@ozdao/prometheus-framework 0.1.69 โ†’ 0.1.72

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. package/dist/auth.server.js +1 -1
  2. package/dist/auth.server.mjs +1 -1
  3. package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
  4. package/dist/main.css +1 -1
  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/modules/events/components/sections/Feed.vue.d.ts +1 -1
  8. package/dist/modules/products/components/sections/EditProductInfo.vue.d.ts +5 -1
  9. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
  11. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
  13. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
  14. package/dist/prometheus-framework/src/modules/auth/auth.client.js +27 -24
  15. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +5 -2
  17. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/community/community.client.js +33 -30
  21. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +24 -21
  27. package/dist/prometheus-framework/src/modules/events/events.client.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/events/events.client.js +21 -18
  29. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +7 -4
  31. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/globals/globals.client.js +9 -6
  33. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/icons/icons.client.js +49 -46
  35. package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.js +3 -3
  36. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.js +1 -1
  39. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +3 -3
  41. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +3 -3
  43. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/landing/landing.client.js +5 -2
  45. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  47. package/dist/prometheus-framework/src/modules/legal/legal.client.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/legal/legal.client.js +14 -10
  49. package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.js +8 -1
  51. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  53. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  55. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +9 -9
  56. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +9 -9
  68. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +61 -58
  70. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +2 -78
  76. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +78 -2
  78. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  80. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  84. package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/reports/reports.client.js +7 -1
  86. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/users/users.client.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/users/users.client.js +11 -8
  90. package/dist/prometheus-framework.cjs.js +21 -21
  91. package/dist/prometheus-framework.es.js +705 -687
  92. package/dist/style.css +1 -1
  93. package/package.json +40 -39
  94. package/src/components/Button/Button.vue +1 -1
  95. package/src/components/Search/Search.vue +1 -1
  96. package/src/components/Sidebar/Sidebar.vue +8 -10
  97. package/src/components/Status/Status.vue +1 -1
  98. package/src/components/Upload/Upload.vue +28 -8
  99. package/src/{main.ts โ†’ main.js} +1 -2
  100. package/src/modules/auth/auth.client.js +1 -1
  101. package/src/modules/auth/controllers/auth.controller.js +1 -1
  102. package/src/modules/auth/store/auth.js +24 -21
  103. package/src/modules/backoffice/backoffice.client.js +1 -1
  104. package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
  105. package/src/modules/backoffice/components/admin/Categories.vue +1 -1
  106. package/src/modules/backoffice/components/admin/CategoryEdit.vue +1 -1
  107. package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
  108. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  109. package/src/modules/backoffice/components/admin/PageEdit.vue +1 -1
  110. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  111. package/src/modules/backoffice/components/admin/ProductEdit.vue +0 -2
  112. package/src/modules/backoffice/components/admin/User.vue +1 -1
  113. package/src/modules/backoffice/components/admin/Users.vue +1 -1
  114. package/src/modules/community/community.client.js +1 -1
  115. package/src/modules/constructor/components/elements/Audio.vue +82 -0
  116. package/src/modules/constructor/components/elements/Embed.vue +85 -0
  117. package/src/modules/constructor/components/sections/Constructor.vue +54 -7
  118. package/src/modules/events/components/pages/Events.vue +2 -2
  119. package/src/modules/events/events.client.js +1 -1
  120. package/src/modules/gallery/components/pages/Gallery.vue +1 -7
  121. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +8 -24
  122. package/src/modules/gallery/gallery.client.js +2 -6
  123. package/src/modules/globals/globals.client.js +1 -1
  124. package/src/modules/globals/mixins/mixins.js +52 -0
  125. package/src/modules/globals/router/routerGuards.js +28 -0
  126. package/src/modules/icons/icons.client.js +1 -1
  127. package/src/modules/landing/landing.client.js +1 -1
  128. package/src/modules/legal/legal.client.js +1 -1
  129. package/src/modules/marketplace/components/layouts/Marketplace.vue +0 -1
  130. package/src/modules/middlewares/middlewares.client.js +1 -1
  131. package/src/modules/orders/components/blocks/Positions.vue +1 -1
  132. package/src/modules/orders/components/pages/ViewOrder.vue +1 -1
  133. package/src/modules/organizations/components/pages/Organization.vue +2 -2
  134. package/src/modules/organizations/organizations.client.js +1 -1
  135. package/src/modules/payments/components/pages/Payments.vue +3 -4
  136. package/src/modules/products/components/blocks/CardLeftover.vue +1 -0
  137. package/src/modules/products/components/blocks/CardProduct.vue +1 -15
  138. package/src/modules/products/components/sections/EditProductInfo.vue +14 -16
  139. package/src/modules/products/components/sections/FilterProducts.vue +2 -0
  140. package/src/modules/products/components/sections/ProductInformationSection.vue +2 -5
  141. package/src/modules/products/components/sections/SectionProduct.vue +0 -1
  142. package/src/modules/products/components/sections/SortProducts.vue +0 -2
  143. package/src/modules/products/store/categories.js +9 -9
  144. package/src/modules/products/store/leftovers.js +9 -6
  145. package/src/modules/products/store/products.js +0 -2
  146. package/src/modules/reports/reports.client.js +1 -1
  147. package/src/modules/users/components/pages/Profile.vue +5 -3
  148. package/src/modules/users/users.client.js +1 -1
  149. package/src/modules/wallet/components/pages/Wallet.vue +1 -1
  150. package/src/styles/theme.scss +0 -1
  151. package/src/styles/components/button.scss +0 -253
  152. /package/src/components/{index.ts โ†’ index.js} +0 -0
@@ -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"),d=require("../../../mobile/components/Menu/Menu.vue2.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
+ "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;
@@ -2,7 +2,7 @@ import { ref as $, onMounted as E, openBlock as a, createElementBlock as p, unre
2
2
  import "../../../../components/Field/Field.vue.js";
3
3
  import "../../../../components/Button/Button.vue.js";
4
4
  import S from "../../../../components/Dropdown/Dropdown.vue.js";
5
- import k from "../../../mobile/components/Menu/Menu.vue2.js";
5
+ import k from "../../../mobile/components/Menu/Menu.vue.js";
6
6
  import _ from "../../../mobile/components/Menu/MenuItem.vue.js";
7
7
  import w from "../../../organizations/components/elements/ButtonToggleMembership.vue.js";
8
8
  import B from "../../../reports/components/sections/FormReport.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/pages/Profile.vue.cjs"),r=require("./components/pages/ProfileEdit.vue.cjs"),t=require("./store/users.cjs"),s=require("./router/users.cjs");exports.Profile=e.default;exports.ProfileEdit=r.default;exports.usersStore=t;exports.usersRoutes=s.default;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./components/pages/Profile.vue.cjs"),r=require("./components/pages/ProfileEdit.vue.cjs"),t=require("./store/users.cjs"),s=require("./router/users.cjs"),u={Profile:e.default,ProfileEdit:r.default,usersStore:t,usersRoutes:s.default};exports.default=u;
@@ -1,10 +1,13 @@
1
- import { default as s } from "./components/pages/Profile.vue.js";
2
- import { default as f } from "./components/pages/ProfileEdit.vue.js";
3
- import * as r from "./store/users.js";
4
- import { default as u } from "./router/users.js";
1
+ import r from "./components/pages/Profile.vue.js";
2
+ import s from "./components/pages/ProfileEdit.vue.js";
3
+ import * as o from "./store/users.js";
4
+ import e from "./router/users.js";
5
+ const f = {
6
+ Profile: r,
7
+ ProfileEdit: s,
8
+ usersStore: o,
9
+ usersRoutes: e
10
+ };
5
11
  export {
6
- s as Profile,
7
- f as ProfileEdit,
8
- u as usersRoutes,
9
- r as usersStore
12
+ f as default
10
13
  };