@ozdao/prometheus-framework 0.1.73 โ†’ 0.1.75

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -1
  2. package/dist/node_modules/vue3-carousel/dist/carousel.es.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
  9. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
  11. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
  14. package/dist/prometheus-framework/src/components/Map/Map.vue2.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
  17. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
  19. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/auth.client.js +24 -27
  24. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +2 -5
  30. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  33. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +133 -177
  35. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/community/community.client.js +30 -33
  37. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  40. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  50. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  52. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/events/events.client.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/events/events.client.js +18 -21
  55. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +4 -7
  61. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/globals/components/layouts/Empty.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/globals/globals.client.js +6 -9
  68. package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/icons/icons.client.js +46 -49
  72. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/icons/navigation/IconCross.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/icons/socials/dribbble.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.js +3 -3
  80. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.js +1 -1
  84. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +3 -3
  87. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +3 -3
  89. package/dist/prometheus-framework/src/modules/icons/socials/vk.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/landing/landing.client.js +2 -5
  93. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/legal/legal.client.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/legal/legal.client.js +10 -14
  101. package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.js +1 -8
  103. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  105. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
  107. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +9 -9
  116. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Unit.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  124. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +10 -10
  131. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +58 -61
  134. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/reports/reports.client.js +1 -7
  140. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  144. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/users/users.client.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/users/users.client.js +8 -11
  148. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  149. package/dist/style.css +1 -1
  150. package/package.json +1 -1
  151. package/src/modules/auth/auth.client.js +1 -1
  152. package/src/modules/backoffice/backoffice.client.js +1 -1
  153. package/src/modules/backoffice/router/backoffice.js +130 -128
  154. package/src/modules/community/community.client.js +1 -1
  155. package/src/modules/events/events.client.js +1 -1
  156. package/src/modules/gallery/gallery.client.js +1 -1
  157. package/src/modules/globals/globals.client.js +1 -1
  158. package/src/modules/icons/icons.client.js +1 -1
  159. package/src/modules/landing/landing.client.js +1 -1
  160. package/src/modules/legal/legal.client.js +1 -1
  161. package/src/modules/middlewares/middlewares.client.js +1 -1
  162. package/src/modules/organizations/organizations.client.js +1 -1
  163. package/src/modules/reports/reports.client.js +1 -1
  164. package/src/modules/users/users.client.js +1 -1
@@ -5,24 +5,24 @@ import "../../../../components/Tab/Tab.vue.js";
5
5
  import "../../../../components/Field/Field.vue.js";
6
6
  import "../../../../components/Select/Select.vue.js";
7
7
  import "../../../../components/Button/Button.vue.js";
8
- import "../../../../components/Dropdown/Dropdown.vue2.js";
8
+ import "../../../../components/Dropdown/Dropdown.vue.js";
9
9
  import { state as k } from "../../../auth/store/auth.js";
10
10
  import "../../store/memberships.js";
11
11
  import "vue-i18n";
12
- import "../../../../components/Popup/Popup.vue.js";
12
+ import "../../../../components/Popup/Popup.vue2.js";
13
13
  import "../../../reports/store/reports.js";
14
14
  import { actions as q } from "../../store/organizations.js";
15
- import $ from "../blocks/EmptyState.vue.js";
15
+ import B from "../blocks/EmptyState.vue.js";
16
16
  import "../../../../components/Spoiler/Spoiler.vue.js";
17
17
  import "../../../../components/Map/Map.vue.js";
18
18
  import "../blocks/DepartmentSub.vue2.js";
19
19
  import "../blocks/User.vue2.js";
20
20
  import "../blocks/CardDepartment.vue2.js";
21
21
  import "../../store/departments.js";
22
- import B from "../blocks/CardOrganization.vue.js";
22
+ import C from "../blocks/CardOrganization.vue.js";
23
23
  import "./Unit.vue.js";
24
24
  import "./Organizations.vue2.js";
25
- const C = { class: "for-transition bg-white radius-big w-100" }, M = { class: "" }, N = {
25
+ const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: "" }, O = {
26
26
  key: 1,
27
27
  class: "cols-1"
28
28
  }, te = {
@@ -50,16 +50,16 @@ const C = { class: "for-transition bg-white radius-big w-100" }, M = { class: ""
50
50
  const l = m(y);
51
51
  return a.query.tab = l.value, _(l, (e) => {
52
52
  d.replace({ query: { ...a.query, tab: e } });
53
- }), (e, O) => (t(), n("div", C, [
54
- f("div", M, [
55
- o.value < 1 ? (t(), p($, {
53
+ }), (e, S) => (t(), n("div", M, [
54
+ f("div", N, [
55
+ o.value < 1 ? (t(), p(B, {
56
56
  key: 0,
57
57
  title: "You Haven't Joined Any Organization Yet",
58
58
  description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
59
59
  action: "Create organization",
60
60
  callback: e.a = () => e.$router.push("/app/organization/create/details")
61
- }, null, 8, ["callback"])) : (t(), n("div", N, [
62
- (t(!0), n(g, null, h(o.value, (u) => (t(), p(B, {
61
+ }, null, 8, ["callback"])) : (t(), n("div", O, [
62
+ (t(!0), n(g, null, h(o.value, (u) => (t(), p(C, {
63
63
  key: u._id,
64
64
  organization: u,
65
65
  user: k.user,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../blocks/CardOrganization.vue.cjs"),c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),i=require("../../../auth/store/auth.cjs"),d=require("../../store/organizations.cjs"),m=require("../../store/memberships.cjs");require("./Publics.vue2.cjs");const p={class:"w-100 o-scroll"},f={key:1,class:"w-max gap-thin flex-nowrap flex"},h={__name:"Publics",setup(_){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:i.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const a=({membership:n,status:o,target:r},s,u)=>{m.mutations.handleMembershipUpdate(organizations.state.current,n,o,r,s,u)};return(n,o)=>(e.openBlock(),e.createElementBlock("div",p,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(c.default,{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",f,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(r,s)=>(e.openBlock(),e.createBlock(l.default,{key:r._id,organization:r,user:i.state.user,onUpdateMembership:a,class:"flex-child-1 flex-child w-25r"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../blocks/CardOrganization.vue.cjs"),c=require("../../../../components/EmptyState/EmptyState.vue.cjs"),a=require("../../../auth/store/auth.cjs"),d=require("../../store/organizations.cjs"),m=require("../../store/memberships.cjs");require("./Publics.vue2.cjs");const p={class:"w-100 o-scroll"},f={key:1,class:"w-max gap-thin flex-nowrap flex"},h={__name:"Publics",setup(_){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:a.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const i=({membership:n,status:o,target:r},s,u)=>{m.mutations.handleMembershipUpdate(organizations.state.current,n,o,r,s,u)};return(n,o)=>(e.openBlock(),e.createElementBlock("div",p,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(c.default,{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",f,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(r,s)=>(e.openBlock(),e.createBlock(l.default,{key:r._id,organization:r,user:a.state.user,onUpdateMembership:i,class:"flex-child-1 flex-child w-25r"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.default=h;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./components/pages/Organization.vue.cjs"),t=require("./components/pages/Department.vue.cjs"),r=require("./components/pages/OrganizationEdit.vue.cjs"),i=require("./components/pages/Organizations.vue.cjs"),a=require("./components/pages/DepartmentEdit.vue.cjs"),n=require("./components/blocks/CardOrganization.vue.cjs"),o=require("./components/blocks/EditArray.vue.cjs"),s=require("./components/blocks/User.vue.cjs"),u=require("./components/blocks/Unit.vue.cjs"),d=require("./components/blocks/DepartmentSub.vue.cjs"),c=require("./components/blocks/DepartmentMemberModify.vue.cjs"),l=require("./components/blocks/CardDepartment.vue.cjs"),m=require("./components/blocks/Rating.vue.cjs"),f=require("./components/blocks/EmptyState.vue.cjs"),q=require("./components/blocks/Contacts.vue.cjs"),g=require("./components/blocks/Socials.vue.cjs"),p=require("./components/sections/MembersAdd.vue.cjs"),b=require("./components/sections/FeedDepartments.vue.cjs"),D=require("./components/sections/DetailsTab.vue.cjs"),z=require("./components/sections/Organizations.vue.cjs"),S=require("./components/sections/Publics.vue.cjs"),M=require("./components/sections/Documents.vue.cjs"),O=require("./components/sections/MembersList.vue.cjs"),E=require("./components/elements/ButtonToggleMembership.vue.cjs"),y=require("./store/invites.cjs"),C=require("./store/departments.cjs"),T=require("./store/memberships.cjs"),h=require("./store/organizations.cjs"),v=require("./router/organizations.cjs"),A={Organization:e.default,Department:t.default,OrganizationEdit:r.default,Organizations:i.default,DepartmentEdit:a.default,CardOrganization:n.default,EditArray:o.default,User:s.default,Unit:u.default,DepartmentSub:d.default,DepartmentMemberModify:c.default,CardDepartment:l.default,Rating:m.default,EmptyState:f.default,Contacts:q.default,Socials:g.default,MembersAdd:p.default,FeedDepartments:b.default,DetailsTab:D.default,OrganizationsSection:z.default,Publics:S.default,Documents:M.default,MembersList:O.default,ButtonToggleMembership:E.default,invitesStore:y,departmentsStore:C,membershipsStore:T,organizationStore:h,organizationsRouter:v.default};exports.default=A;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/pages/Organization.vue.cjs"),t=require("./components/pages/Department.vue.cjs"),r=require("./components/pages/OrganizationEdit.vue.cjs"),i=require("./components/pages/Organizations.vue.cjs"),a=require("./components/pages/DepartmentEdit.vue.cjs"),n=require("./components/blocks/CardOrganization.vue.cjs"),o=require("./components/blocks/EditArray.vue.cjs"),s=require("./components/blocks/User.vue.cjs"),u=require("./components/blocks/Unit.vue.cjs"),d=require("./components/blocks/DepartmentSub.vue.cjs"),c=require("./components/blocks/DepartmentMemberModify.vue.cjs"),l=require("./components/blocks/CardDepartment.vue.cjs"),m=require("./components/blocks/Rating.vue.cjs"),q=require("./components/blocks/EmptyState.vue.cjs"),f=require("./components/blocks/Contacts.vue.cjs"),g=require("./components/blocks/Socials.vue.cjs"),p=require("./components/sections/MembersAdd.vue.cjs"),b=require("./components/sections/FeedDepartments.vue.cjs"),D=require("./components/sections/DetailsTab.vue.cjs"),z=require("./components/sections/Organizations.vue.cjs"),S=require("./components/sections/Publics.vue.cjs"),M=require("./components/sections/Documents.vue.cjs"),O=require("./components/sections/MembersList.vue.cjs"),y=require("./components/elements/ButtonToggleMembership.vue.cjs"),E=require("./store/invites.cjs"),C=require("./store/departments.cjs"),T=require("./store/memberships.cjs"),h=require("./store/organizations.cjs"),A=require("./router/organizations.cjs");exports.Organization=e.default;exports.Department=t.default;exports.OrganizationEdit=r.default;exports.Organizations=i.default;exports.DepartmentEdit=a.default;exports.CardOrganization=n.default;exports.EditArray=o.default;exports.User=s.default;exports.Unit=u.default;exports.DepartmentSub=d.default;exports.DepartmentMemberModify=c.default;exports.CardDepartment=l.default;exports.Rating=m.default;exports.EmptyState=q.default;exports.Contacts=f.default;exports.Socials=g.default;exports.MembersAdd=p.default;exports.FeedDepartments=b.default;exports.DetailsTab=D.default;exports.OrganizationsSection=z.default;exports.Publics=S.default;exports.Documents=M.default;exports.MembersList=O.default;exports.ButtonToggleMembership=y.default;exports.invitesStore=E;exports.departmentsStore=C;exports.membershipsStore=T;exports.organizationStore=h;exports.organizationsRouter=A.default;
@@ -1,63 +1,60 @@
1
- import m from "./components/pages/Organization.vue.js";
2
- import r from "./components/pages/Department.vue.js";
3
- import o from "./components/pages/OrganizationEdit.vue.js";
4
- import i from "./components/pages/Organizations.vue.js";
5
- import t from "./components/pages/DepartmentEdit.vue.js";
6
- import a from "./components/blocks/CardOrganization.vue.js";
7
- import n from "./components/blocks/EditArray.vue.js";
8
- import f from "./components/blocks/User.vue.js";
9
- import s from "./components/blocks/Unit.vue.js";
10
- import e from "./components/blocks/DepartmentSub.vue.js";
11
- import p from "./components/blocks/DepartmentMemberModify.vue.js";
12
- import _ from "./components/blocks/CardDepartment.vue.js";
13
- import c from "./components/blocks/Rating.vue.js";
14
- import $ from "./components/blocks/EmptyState.vue.js";
15
- import g from "./components/blocks/Contacts.vue.js";
16
- import d from "./components/blocks/Socials.vue.js";
17
- import b from "./components/sections/MembersAdd.vue.js";
18
- import z from "./components/sections/FeedDepartments.vue.js";
19
- import D from "./components/sections/DetailsTab.vue.js";
20
- import S from "./components/sections/Organizations.vue.js";
21
- import l from "./components/sections/Publics.vue.js";
22
- import u from "./components/sections/Documents.vue.js";
23
- import M from "./components/sections/MembersList.vue.js";
24
- import O from "./components/elements/ButtonToggleMembership.vue.js";
25
- import * as h from "./store/invites.js";
26
- import * as E from "./store/departments.js";
27
- import * as y from "./store/memberships.js";
28
- import * as C from "./store/organizations.js";
29
- import v from "./router/organizations.js";
30
- const mm = {
31
- Organization: m,
32
- Department: r,
33
- OrganizationEdit: o,
34
- Organizations: i,
35
- DepartmentEdit: t,
36
- CardOrganization: a,
37
- EditArray: n,
38
- User: f,
39
- Unit: s,
40
- DepartmentSub: e,
41
- DepartmentMemberModify: p,
42
- CardDepartment: _,
43
- Rating: c,
44
- EmptyState: $,
45
- Contacts: g,
46
- Socials: d,
47
- MembersAdd: b,
48
- FeedDepartments: z,
49
- DetailsTab: D,
50
- OrganizationsSection: S,
51
- Publics: l,
52
- Documents: u,
53
- MembersList: M,
54
- ButtonToggleMembership: O,
55
- invitesStore: h,
56
- departmentsStore: E,
57
- membershipsStore: y,
58
- organizationStore: C,
59
- organizationsRouter: v
60
- };
1
+ import { default as f } from "./components/pages/Organization.vue.js";
2
+ import { default as p } from "./components/pages/Department.vue.js";
3
+ import { default as d } from "./components/pages/OrganizationEdit.vue.js";
4
+ import { default as u } from "./components/pages/Organizations.vue.js";
5
+ import { default as x } from "./components/pages/DepartmentEdit.vue.js";
6
+ import { default as b } from "./components/blocks/CardOrganization.vue.js";
7
+ import { default as D } from "./components/blocks/EditArray.vue.js";
8
+ import { default as c } from "./components/blocks/User.vue.js";
9
+ import { default as O } from "./components/blocks/Unit.vue.js";
10
+ import { default as h } from "./components/blocks/DepartmentSub.vue.js";
11
+ import { default as C } from "./components/blocks/DepartmentMemberModify.vue.js";
12
+ import { default as A } from "./components/blocks/CardDepartment.vue.js";
13
+ import { default as T } from "./components/blocks/Rating.vue.js";
14
+ import { default as B } from "./components/blocks/EmptyState.vue.js";
15
+ import { default as L } from "./components/blocks/Contacts.vue.js";
16
+ import { default as j } from "./components/blocks/Socials.vue.js";
17
+ import { default as q } from "./components/sections/MembersAdd.vue.js";
18
+ import { default as G } from "./components/sections/FeedDepartments.vue.js";
19
+ import { default as I } from "./components/sections/DetailsTab.vue.js";
20
+ import { default as K } from "./components/sections/Organizations.vue.js";
21
+ import { default as Q } from "./components/sections/Publics.vue.js";
22
+ import { default as W } from "./components/sections/Documents.vue.js";
23
+ import { default as Y } from "./components/sections/MembersList.vue.js";
24
+ import { default as _ } from "./components/elements/ButtonToggleMembership.vue.js";
25
+ import * as t from "./store/invites.js";
26
+ import * as e from "./store/departments.js";
27
+ import * as r from "./store/memberships.js";
28
+ import * as a from "./store/organizations.js";
29
+ import { default as tt } from "./router/organizations.js";
61
30
  export {
62
- mm as default
31
+ _ as ButtonToggleMembership,
32
+ A as CardDepartment,
33
+ b as CardOrganization,
34
+ L as Contacts,
35
+ p as Department,
36
+ x as DepartmentEdit,
37
+ C as DepartmentMemberModify,
38
+ h as DepartmentSub,
39
+ I as DetailsTab,
40
+ W as Documents,
41
+ D as EditArray,
42
+ B as EmptyState,
43
+ G as FeedDepartments,
44
+ q as MembersAdd,
45
+ Y as MembersList,
46
+ f as Organization,
47
+ d as OrganizationEdit,
48
+ u as Organizations,
49
+ K as OrganizationsSection,
50
+ Q as Publics,
51
+ T as Rating,
52
+ j as Socials,
53
+ O as Unit,
54
+ c as User,
55
+ e as departmentsStore,
56
+ t as invitesStore,
57
+ r as membershipsStore,
58
+ a as organizationStore,
59
+ tt as organizationsRouter
63
60
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-i18n"),l=require("../elements/THC.vue.cjs"),n=require("../elements/Price.vue.cjs");require("./CardProduct.vue2.cjs");const i=["src"],r={key:1,class:"h-100 w-100",style:{"object-fit":"cover"},width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),d=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),s=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),u=e.createElementVNode("path",{fill:"#00ff88",d:"M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"},null,-1),m=[a,d,s,u],h={class:"pd-medium t-left product-card-content"},C={class:"mn-thin h4"},f={key:1,class:"mn-small t-transp p-small"},g=e.createElementVNode("div",null,null,-1),k={__name:"CardProduct",props:["product"],setup(t){return c.useI18n(),(o,V)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big product",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 h-100 square",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.product.images[0],class:"w-100 h-100"},null,8,i)):(e.openBlock(),e.createElementBlock("svg",r,m)),t.product.information.length>0?(e.openBlock(),e.createBlock(l.default,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",h,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",C,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",f,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(n.default,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])]),g],2))}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-i18n"),l=require("../elements/THC.vue.cjs"),n=require("../elements/Price.vue.cjs");require("./CardProduct.vue2.cjs");const i=["src"],r={key:1,class:"h-100 w-100",style:{"object-fit":"cover"},width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),d=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),s=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),u=e.createElementVNode("path",{fill:"#00ff88",d:"M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"},null,-1),m=[a,d,s,u],h={class:"pd-medium t-left product-card-content"},C={class:"mn-thin h4"},f={key:1,class:"mn-small t-transp p-small"},g=e.createElementVNode("div",null,null,-1),k={__name:"CardProduct",props:["product"],setup(t){return c.useI18n(),(o,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big product",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 h-100 square",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.product.images[0],class:"w-100 h-100"},null,8,i)):(e.openBlock(),e.createElementBlock("svg",r,m)),t.product.information.length>0?(e.openBlock(),e.createBlock(l.default,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",h,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",C,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",f,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(n.default,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])]),g],2))}};exports.default=k;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),i=require("../../../../node_modules/axios/lib/axios.cjs"),s=require("../../globals/store/globals.cjs"),n=i.default.create({baseURL:process.env.API_URL,withCredentials:!0}),t=c.reactive({all:[],current:{recommendation:!1,category:[],status:"unpublished",information:[],coverImage:"",images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],description:""}}),u={async create(e,r){const a={...r,organization:e};return await n.post("/products/create",a).then(o=>(l(o.data,"current"),Promise.resolve(o.data)),o=>(s.setError(o),Promise.reject(o)))},async read(e={}){let r={params:{}};e._id&&(r.params._id=e._id),e.category&&(r.params.category=e.category),r.params.skip=e.skip||0,r.params.limit=e.limit||10,e.organization&&(r.params.organization=e.organization),console.log(e),e.status&&(r.params.status=e.status),r.params.sort="createdAt",console.log(r);try{const a=await n.get("/products/read",{params:r.params});return e._id?t.current=a.data[0]:t.all=a.data,Promise.resolve(a.data)}catch(a){return s.setError(a),Promise.reject(a)}},async update(e,r){return await n.post("/products/"+e,r).then(a=>Promise.resolve(a.data),a=>(s.setError(a),Promise.reject(a)))},async deleteProduct(e){return await n.delete("/products/"+e).then(r=>Promise.resolve(r.data),r=>(s.setError(r),Promise.reject(r)))},async submitMood(e=null){return console.log(e),n.post("/product/recommended",{mood:e}).then(r=>(t.current=r.data.product,t.current.recommendation=r.data.recommendationText,Promise.resolve(r.data)),r=>(console.log(r),s.setError(r),Promise.reject(r)))},async fetchProducts(){return await n.get("/products/read").then(e=>(t.all=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPopular(){return await n.get("/products/popular").then(e=>(t.popular=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPublished(){return await n.get("/products").then(e=>{let r=e.data.filter(function(a,o){return a.status!=="unpublished"});return t.all=r,t.filtered=r.slice(),t.filteredPrice=t.filtered,t.filteredPrice.sort(function(a,o){return a[t.sort.current]>o[t.sort.current]?t.sort.ascending?1:-1:a[t.sort.current]<o[t.sort.current]?t.sort.ascending?-1:1:0}),Promise.resolve(e.data)},e=>(s.setError(e),Promise.reject(e)))},async fetchProduct(e){return await n.get("/products/"+e).then(r=>(r.localization||(r.localization=[]),t.current=r.data,Promise.resolve(r.data)),r=>(s.setError(r),Promise.reject(r)))},async fetchProductPopular(){return await n.get("/products").then(e=>(t.all=e.data.slice(1,5),Promise.resolve(e.data.slice(1,5))),e=>(s.setError(e),Promise.reject(e)))}};function l(e,r){t[r]=e}c.watch(t,(e,r)=>{});exports.actions=u;exports.state=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),i=require("../../../../node_modules/axios/lib/axios.cjs"),s=require("../../globals/store/globals.cjs"),n=i.default.create({baseURL:process.env.API_URL,withCredentials:!0}),r=c.reactive({all:[],current:{recommendation:!1,category:[],status:"unpublished",information:[],coverImage:"",images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],description:""}}),u={async create(e,t){const a={...t,organization:e};return await n.post("/products/create",a).then(o=>(l(o.data,"current"),Promise.resolve(o.data)),o=>(s.setError(o),Promise.reject(o)))},async read(e={}){let t={params:{}};e._id&&(t.params._id=e._id),e.category&&(t.params.category=e.category),t.params.skip=e.skip||0,t.params.limit=e.limit||10,e.organization&&(t.params.organization=e.organization),console.log(e),e.status&&(t.params.status=e.status),t.params.sort="createdAt",console.log(t);try{const a=await n.get("/products/read",{params:t.params});return e._id?r.current=a.data[0]:r.all=a.data,Promise.resolve(a.data)}catch(a){return s.setError(a),Promise.reject(a)}},async update(e,t){return await n.post("/products/"+e,t).then(a=>Promise.resolve(a.data),a=>(s.setError(a),Promise.reject(a)))},async deleteProduct(e){return await n.delete("/products/"+e).then(t=>Promise.resolve(t.data),t=>(s.setError(t),Promise.reject(t)))},async submitMood(e=null){return console.log(e),n.post("/product/recommended",{mood:e}).then(t=>(r.current=t.data.product,r.current.recommendation=t.data.recommendationText,Promise.resolve(t.data)),t=>(console.log(t),s.setError(t),Promise.reject(t)))},async fetchProducts(){return await n.get("/products/read").then(e=>(r.all=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPopular(){return await n.get("/products/popular").then(e=>(r.popular=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPublished(){return await n.get("/products").then(e=>{let t=e.data.filter(function(a,o){return a.status!=="unpublished"});return r.all=t,r.filtered=t.slice(),r.filteredPrice=r.filtered,r.filteredPrice.sort(function(a,o){return a[r.sort.current]>o[r.sort.current]?r.sort.ascending?1:-1:a[r.sort.current]<o[r.sort.current]?r.sort.ascending?-1:1:0}),Promise.resolve(e.data)},e=>(s.setError(e),Promise.reject(e)))},async fetchProduct(e){return await n.get("/products/"+e).then(t=>(t.localization||(t.localization=[]),r.current=t.data,Promise.resolve(t.data)),t=>(s.setError(t),Promise.reject(t)))},async fetchProductPopular(){return await n.get("/products").then(e=>(r.all=e.data.slice(1,5),Promise.resolve(e.data.slice(1,5))),e=>(s.setError(e),Promise.reject(e)))}};function l(e,t){r[t]=e}c.watch(r,(e,t)=>{});exports.actions=u;exports.state=r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue2.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../store/reports.cjs"),g=e.createElementVNode("h3",{class:"mn-small"}," Report Content ",-1),b=e.createElementVNode("p",{class:"p-medium mn-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),h=e.createElementVNode("p",{class:"p-medium mn-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),v={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(l){const t=l,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function i(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:o[0]||(o[0]=n=>u())},[e.renderSlot(p.$slots,"default")]),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[g,b,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[1]||(o[1]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),h,e.createVNode(d.default,{submit:i,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])],64))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../store/reports.cjs"),g=e.createElementVNode("h3",{class:"mn-small"}," Report Content ",-1),b=e.createElementVNode("p",{class:"p-medium mn-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),v=e.createElementVNode("p",{class:"p-medium mn-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),h={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(l){const t=l,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function i(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:o[0]||(o[0]=n=>u())},[e.renderSlot(p.$slots,"default")]),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[g,b,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[1]||(o[1]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),v,e.createVNode(d.default,{submit:i,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])],64))}};exports.default=h;
@@ -1,5 +1,5 @@
1
1
  import { reactive as d, ref as f, openBlock as g, createElementBlock as b, Fragment as h, createElementVNode as o, renderSlot as y, createVNode as a, withCtx as l, createTextVNode as _ } from "vue";
2
- import v from "../../../../components/Popup/Popup.vue2.js";
2
+ import v from "../../../../components/Popup/Popup.vue.js";
3
3
  import w from "../../../../components/Button/Button.vue2.js";
4
4
  import S from "../../../../components/Select/Select.vue2.js";
5
5
  import { actions as k } from "../../store/reports.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./store/reports.cjs"),t={reportsStore:e};exports.default=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./store/reports.cjs");exports.reportsStore=e;
@@ -1,10 +1,4 @@
1
1
  import * as r from "./store/reports.js";
2
- const t = {
3
- // Profile,
4
- // ProfileEdit,
5
- reportsStore: r
6
- // usersRoutes
7
- };
8
2
  export {
9
- t as default
3
+ r as reportsStore
10
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),c=require("../../../../components/Map/Map.vue2.cjs"),u=require("./SpotSub.vue.cjs"),p=require("../../../organizations/components/blocks/User.vue.cjs");require("./CardSpot.vue2.cjs");const m=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),s=t=>(e.pushScopeId("data-v-6ef388c4"),t=t(),e.popScopeId(),t),h={class:"radius-big o-hidden cols-2-1_3"},g={class:"pd-medium w-100"},L=s(()=>e.createElementVNode("path",{d:"M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",fill:"black"},null,-1)),w=[L],k=["innerHTML"],v=["innerHTML"],b={class:"pd-small flex-v-center flex-nowrap flex"},f=s(()=>e.createElementVNode("h5",{class:"w-100"},"Contacts ",-1)),C={class:"mn-r-small"},E=s(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),V={key:0},N={class:"pd-small flex-v-center flex-nowrap flex"},$=s(()=>e.createElementVNode("h5",{class:"w-100"},"Working Hours ",-1)),B={class:"mn-r-small"},_=s(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),x={key:0},M={__name:"CardSpot",props:{spot:Object,organization:Object},setup(t){const r=t;return(n,l)=>(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(c.default,{location:{lat:t.spot.location.coordinates[1],lng:t.spot.location.coordinates[0]},class:""},null,8,["location"]),e.createElementVNode("div",g,[(e.openBlock(),e.createElementBlock("svg",{onClick:l[0]||(l[0]=o=>n.$router.push(`/organizations/${r.organization._id}/spots/${t.spot._id}/edit`)),class:"i-regular pos-absolute pos-r-0 pos-t-0 t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w)),e.createElementVNode("h3",{onClick:l[1]||(l[1]=o=>n.$router.push(`/app/organization/${r.organization._id}/spots/${t.spot._id}`)),class:"mn-small w-100",innerHTML:t.spot.profile.name},null,8,k),e.createElementVNode("p",{onClick:l[2]||(l[2]=o=>n.$router.push(`/app/organization/${r.organization._id}/spots/${t.spot._id}`)),class:"mn-small p-big w-100",innerHTML:t.spot.address},null,8,v),e.createVNode(a.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",b,[f,e.createElementVNode("p",C,e.toDisplayString(t.spot.members.length)+"ย ั‡ะตะปะพะฒะตะบ",1),E])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.spot.members.length<1?(e.openBlock(),e.createElementBlock("li",V,"ะ’ ะพั‚ะดะตะปะต ะตั‰ะต ะฝะตั‚ ัƒั‡ะฐัั‚ะฝะธะบะพะฒ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.spot.members,(o,i)=>(e.openBlock(),e.createBlock(p.default,{class:"br-b br-solid br-grey",key:i,user:o.user,position:o.position,onClick:d=>n.$router.push(`/app/profile/${o.user._id}`)},null,8,["user","position","onClick"]))),128))])]),_:1}),e.createVNode(a.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",N,[$,e.createElementVNode("p",B,e.toDisplayString(t.spot.subspots?t.spot.subspots.length:0)+"ย ะพั‚ะดะตะปะพะฒ",1),_])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.spot.subspots.length<1?(e.openBlock(),e.createElementBlock("li",x,"ะ’ ะพั‚ะดะตะปะต ะตั‰ะต ะฝะตั‚ ะฟะพะดะพั‚ะดะตะปะพะฒ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.spot.subspots,(o,i)=>(e.openBlock(),e.createBlock(u.default,{onClick:d=>n.$router.push(`/app/organization/spots/${o._id}`),key:i,class:"br-b br-solid br-grey",spot:o},null,8,["onClick","spot"]))),128))])]),_:1})])]))}},S=m.default(M,[["__scopeId","data-v-6ef388c4"]]);exports.default=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),c=require("../../../../components/Map/Map.vue2.cjs"),u=require("./SpotSub.vue.cjs"),p=require("../../../organizations/components/blocks/User.vue.cjs");require("./CardSpot.vue2.cjs");const m=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),s=t=>(e.pushScopeId("data-v-6ef388c4"),t=t(),e.popScopeId(),t),h={class:"radius-big o-hidden cols-2-1_3"},g={class:"pd-medium w-100"},L=s(()=>e.createElementVNode("path",{d:"M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",fill:"black"},null,-1)),w=[L],k=["innerHTML"],v=["innerHTML"],b={class:"pd-small flex-v-center flex-nowrap flex"},f=s(()=>e.createElementVNode("h5",{class:"w-100"},"Contacts ",-1)),C={class:"mn-r-small"},E=s(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),V={key:0},N={class:"pd-small flex-v-center flex-nowrap flex"},B=s(()=>e.createElementVNode("h5",{class:"w-100"},"Working Hours ",-1)),$={class:"mn-r-small"},_=s(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),x={key:0},M={__name:"CardSpot",props:{spot:Object,organization:Object},setup(t){const i=t;return(n,l)=>(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(c.default,{location:{lat:t.spot.location.coordinates[1],lng:t.spot.location.coordinates[0]},class:""},null,8,["location"]),e.createElementVNode("div",g,[(e.openBlock(),e.createElementBlock("svg",{onClick:l[0]||(l[0]=o=>n.$router.push(`/organizations/${i.organization._id}/spots/${t.spot._id}/edit`)),class:"i-regular pos-absolute pos-r-0 pos-t-0 t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w)),e.createElementVNode("h3",{onClick:l[1]||(l[1]=o=>n.$router.push(`/app/organization/${i.organization._id}/spots/${t.spot._id}`)),class:"mn-small w-100",innerHTML:t.spot.profile.name},null,8,k),e.createElementVNode("p",{onClick:l[2]||(l[2]=o=>n.$router.push(`/app/organization/${i.organization._id}/spots/${t.spot._id}`)),class:"mn-small p-big w-100",innerHTML:t.spot.address},null,8,v),e.createVNode(a.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",b,[f,e.createElementVNode("p",C,e.toDisplayString(t.spot.members.length)+"ย ั‡ะตะปะพะฒะตะบ",1),E])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.spot.members.length<1?(e.openBlock(),e.createElementBlock("li",V,"ะ’ ะพั‚ะดะตะปะต ะตั‰ะต ะฝะตั‚ ัƒั‡ะฐัั‚ะฝะธะบะพะฒ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.spot.members,(o,r)=>(e.openBlock(),e.createBlock(p.default,{class:"br-b br-solid br-grey",key:r,user:o.user,position:o.position,onClick:d=>n.$router.push(`/app/profile/${o.user._id}`)},null,8,["user","position","onClick"]))),128))])]),_:1}),e.createVNode(a.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",N,[B,e.createElementVNode("p",$,e.toDisplayString(t.spot.subspots?t.spot.subspots.length:0)+"ย ะพั‚ะดะตะปะพะฒ",1),_])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.spot.subspots.length<1?(e.openBlock(),e.createElementBlock("li",x,"ะ’ ะพั‚ะดะตะปะต ะตั‰ะต ะฝะตั‚ ะฟะพะดะพั‚ะดะตะปะพะฒ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.spot.subspots,(o,r)=>(e.openBlock(),e.createBlock(u.default,{onClick:d=>n.$router.push(`/app/organization/spots/${o._id}`),key:r,class:"br-b br-solid br-grey",spot:o},null,8,["onClick","spot"]))),128))])]),_:1})])]))}},S=m.default(M,[["__scopeId","data-v-6ef388c4"]]);exports.default=S;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./SpotSub.vue2.cjs");const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),a={class:"pd-small flex-nowrap flex"},n={class:"user-card__info"},s={class:"user-card__name"},o={class:"user-card__position"},c={__name:"SpotSub",props:{department:{type:Object,required:!0}},setup(t){return(l,i)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",n,[e.createElementVNode("p",s,e.toDisplayString(t.department.name?t.department.name:"ะ‘ะตะทั‹ะผัะฝะฝั‹ะน"),1),e.createElementVNode("p",o,e.toDisplayString(t.department.members?t.department.members.length:"0")+" ั‡ะตะปะพะฒะตะบ",1)])]))}},d=r.default(c,[["__scopeId","data-v-58a64d57"]]);exports.default=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./SpotSub.vue2.cjs");const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),a={class:"pd-small flex-nowrap flex"},n={class:"user-card__info"},s={class:"user-card__name"},o={class:"user-card__position"},c={__name:"SpotSub",props:{department:{type:Object,required:!0}},setup(t){return(l,u)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",n,[e.createElementVNode("p",s,e.toDisplayString(t.department.name?t.department.name:"ะ‘ะตะทั‹ะผัะฝะฝั‹ะน"),1),e.createElementVNode("p",o,e.toDisplayString(t.department.members?t.department.members.length:"0")+" ั‡ะตะปะพะฒะตะบ",1)])]))}},d=r.default(c,[["__scopeId","data-v-58a64d57"]]);exports.default=d;
@@ -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.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
+ "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.vue2.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"],D={class:"mn-thin"},O={class:"mn-thin t-main t-semi"},$={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",D,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Not specified"),1),e.createElementVNode("p",O," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1),e.createElementVNode("p",$,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,8 +1,8 @@
1
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 S from "../../../../components/Dropdown/Dropdown.vue.js";
5
- import k from "../../../mobile/components/Menu/Menu.vue.js";
4
+ import S from "../../../../components/Dropdown/Dropdown.vue2.js";
5
+ import k from "../../../mobile/components/Menu/Menu.vue2.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.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),l=require("../../../events/components/sections/Feed.vue.cjs"),n=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),v={__name:"ProfileEvents",setup(b){const t=c.useRoute(),o=c.useRouter();let i=t.query.tab?t.query.tab:"owner";const r=e.ref(i);return t.query.tab=r.value,e.watch(r,s=>{o.replace({query:{...t.query,tab:s}})}),(s,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,n.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=u=>e.unref(o).push({name:"Create Event"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=u=>r.value=u),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),r.value==="owner"?(e.openBlock(),e.createBlock(l.default,{key:0,user:n.state.user._id,creator:e.unref(t).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="participant"?(e.openBlock(),e.createBlock(l.default,{key:1,user:n.state.user._id,participant:e.unref(t).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),l=require("../../../events/components/sections/Feed.vue.cjs"),n=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},v=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(b){const t=c.useRoute(),o=c.useRouter();let i=t.query.tab?t.query.tab:"owner";const r=e.ref(i);return t.query.tab=r.value,e.watch(r,s=>{o.replace({query:{...t.query,tab:s}})}),(s,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[v,n.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=u=>e.unref(o).push({name:"Create Event"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=u=>r.value=u),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),r.value==="owner"?(e.openBlock(),e.createBlock(l.default,{key:0,user:n.state.user._id,creator:e.unref(t).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="participant"?(e.openBlock(),e.createBlock(l.default,{key:1,user:n.state.user._id,participant:e.unref(t).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=_;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),c=require("../../../../components/Tab/Tab.vue2.cjs"),l=require("../../../organizations/components/sections/Feed.vue.cjs"),u=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},b={class:"mn-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),p={__name:"ProfileOrganizations",setup(_){const r=n.useRoute(),i=n.useRouter();let d=r.query.tab?r.query.tab:"member";const t=e.ref(d);return r.query.tab=t.value,e.watch(t,o=>{i.replace({query:{...r.query,tab:o}})}),(o,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",b,[f,u.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=s=>o.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(c.default,{selected:t.value,"onUpdate:selected":a[1]||(a[1]=s=>t.value=s),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(l.default,{key:0,user:u.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(l.default,{key:0,user:u.state.user._id,subscriber:e.unref(r).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),c=require("../../../../components/Tab/Tab.vue2.cjs"),l=require("../../../organizations/components/sections/Feed.vue.cjs"),u=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},b={class:"mn-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),p={__name:"ProfileOrganizations",setup(_){const t=n.useRoute(),i=n.useRouter();let d=t.query.tab?t.query.tab:"member";const r=e.ref(d);return t.query.tab=r.value,e.watch(r,o=>{i.replace({query:{...t.query,tab:o}})}),(o,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",b,[f,u.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=s=>o.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(c.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(l.default,{key:0,user:u.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(l.default,{key:0,user:u.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=p;
@@ -1 +1 @@
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
+ "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,13 +1,10 @@
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
- };
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";
11
5
  export {
12
- f as default
6
+ s as Profile,
7
+ f as ProfileEdit,
8
+ u as usersRoutes,
9
+ r as usersStore
13
10
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../../../../../node_modules/web3/lib/esm/web3.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_config.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_request_manager.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_subscriptions.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_context.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_batch_request.cjs");require("../../../../../../node_modules/web3-types/lib/esm/data_format_types.cjs");require("../../../../../../node_modules/web3-types/lib/esm/eth_types.cjs");require("../../../../../../node_modules/web3-types/lib/esm/web3_base_provider.cjs");require("../../../../../../node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../../../node_modules/web3-eth-iban/lib/esm/iban.cjs");require("../../../../../../node_modules/web3-validator/lib/esm/formats.cjs");require("../../../../../../node_modules/web3-validator/lib/esm/default_validator.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_promi_event.cjs");require("../../../../../../node_modules/setimmediate/setImmediate.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/web3_eth.cjs");require("../../../../../../node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/schemas.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/constants.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../../../../node_modules/web3-eth-contract/lib/esm/contract.cjs");require("../../../../../../node_modules/web3-eth-personal/lib/esm/personal.cjs");require("../../../../../../node_modules/web3-net/lib/esm/net.cjs");require("../../../../../../node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../node_modules/web3-providers-http/lib/esm/index.cjs");require("../../../../../../node_modules/isomorphic-ws/browser.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/wallet.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/account.cjs");require("../../../../../../node_modules/crc-32/crc32.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/common/types.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../../../node_modules/@ethereumjs/rlp/dist/index.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../../../node_modules/web3-eth-ens/lib/esm/ens.cjs");require("../../../../../../node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../../../node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../../../node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const i=require("vue-router"),c={class:"pd-big"},u=e.createElementVNode("h1",{class:"mn-small"}," Your Wallet ",-1),d=e.createElementVNode("p",{class:"mn-semi p-big"}," Earn Weeder Token Crypto with buying our weed, use it as money when buying our products or withdraw and trade ",-1),m={class:"mn-semi flex-nowrap flex gap-thin"},_={key:0,class:"w-100 pd-medium radius-medium t-center bg-grey"},p=e.createElementVNode("h3",{class:"mn-small"},"Make first order and start earning Weeder Token ",-1),h=e.createElementVNode("button",{class:"mn-l-auto mn-r-auto bg-main button"},"Explore marketplace",-1),q=[p,h],b={key:1,class:"w-100 pd-medium radius-medium bg-grey"},k=e.createElementVNode("p",{class:"h4 mn-thin"},"You own: ",-1),g=e.createElementVNode("h3",{class:"mn-small"},"0.14% of Weeder",-1),E=e.createElementVNode("button",{class:"w-100 bg-main button"},"Get More",-1),y=[k,g,E],N={key:2,class:"w-100 pd-medium radius-medium bg-grey"},V=e.createElementVNode("p",{class:"h4 mn-thin"},"You earn: ",-1),w=e.createElementVNode("h3",{class:"mn-small"},"245.43 WDT",-1),v=e.createElementVNode("button",{class:"w-100 bg-main button"},"Get More",-1),B=[V,w,v],f={class:"w-50 bg-black radius-semi pd-medium t-white"},W=e.createElementVNode("p",{class:"h4 mn-thin"},"Your Metamask",-1),C={key:0,class:"mn-small pd-small br-solid br-1px br-white-transp-10 radius-small"},M={key:1,class:"p-medium t-transp mn-small"},D=e.createElementVNode("h3",{class:"mn-small"}," Incomes ",-1),S={class:"cols-4 gap-thin"},j={class:"pd-medium radius-medium bg-grey"},T={class:"mn-small"},Y={class:"p-small mn-small"},x={__name:"Wallet",setup($){i.useRoute(),e.ref(!1);const a=new s.Web3(s.Web3.givenProvider||"http://localhost:8080"),t=e.ref(null);async function l(){const o=await a.eth.requestAccounts();t.value=o[0]}return e.onMounted(()=>{}),(o,n)=>(e.openBlock(),e.createElementBlock("section",c,[u,d,e.createElementVNode("div",m,[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_,q)),t.value?(e.openBlock(),e.createElementBlock("div",b,y)):e.createCommentVNode("",!0),t.value?(e.openBlock(),e.createElementBlock("div",N,B)):e.createCommentVNode("",!0),e.createElementVNode("div",f,[W,t.value?(e.openBlock(),e.createElementBlock("div",C,e.toDisplayString(t.value),1)):e.createCommentVNode("",!0),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",M,"Connect Metamask to withdrawal your earnings.")),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:2,onClick:l,class:"w-100 button"}," Connect Wallet ")),t.value?(e.openBlock(),e.createElementBlock("button",{key:3,onClick:n[0]||(n[0]=(...r)=>o.disconnectWallet&&o.disconnectWallet(...r)),class:"w-100 bg-red button"}," Disonnect Wallet ")):e.createCommentVNode("",!0)])]),D,e.createElementVNode("section",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList([{balance:34,type:"income",reason:"order",target:"ef34dsdase4389snjnu (_id)"},{balance:25,type:"income",reason:"post",target:"ef34dsdase4389snjnu (_id)"},{balance:17,type:"income",reason:"comment",target:"ef34dsdase4389snjnu (_id)"},{balance:43,type:"event",reason:"order",target:"ef34dsdase4389snjnu (_id)"}],r=>(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("h3",T,"+ "+e.toDisplayString(r.balance)+" WDT",1),e.createElementVNode("p",Y,"For "+e.toDisplayString(r.reason)+" "+e.toDisplayString(r.target),1)]))),256))])]))}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../../../../../node_modules/web3/lib/esm/web3.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_config.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_request_manager.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_subscriptions.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_context.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_batch_request.cjs");require("../../../../../../node_modules/web3-types/lib/esm/data_format_types.cjs");require("../../../../../../node_modules/web3-types/lib/esm/eth_types.cjs");require("../../../../../../node_modules/web3-types/lib/esm/web3_base_provider.cjs");require("../../../../../../node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../../../node_modules/web3-eth-iban/lib/esm/iban.cjs");require("../../../../../../node_modules/web3-validator/lib/esm/formats.cjs");require("../../../../../../node_modules/web3-validator/lib/esm/default_validator.cjs");require("../../../../../../node_modules/web3-core/lib/esm/web3_promi_event.cjs");require("../../../../../../node_modules/setimmediate/setImmediate.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/web3_eth.cjs");require("../../../../../../node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/schemas.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/constants.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../../../../node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../../../../node_modules/web3-eth-contract/lib/esm/contract.cjs");require("../../../../../../node_modules/web3-eth-personal/lib/esm/personal.cjs");require("../../../../../../node_modules/web3-net/lib/esm/net.cjs");require("../../../../../../node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../node_modules/web3-providers-http/lib/esm/index.cjs");require("../../../../../../node_modules/isomorphic-ws/browser.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/wallet.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/account.cjs");require("../../../../../../node_modules/crc-32/crc32.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/common/types.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../../../node_modules/@ethereumjs/rlp/dist/index.cjs");require("../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../../../node_modules/web3-eth-ens/lib/esm/ens.cjs");require("../../../../../../node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../../../node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../../../node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const i=require("vue-router"),c={class:"pd-big"},u=e.createElementVNode("h1",{class:"mn-small"}," Your Wallet ",-1),d=e.createElementVNode("p",{class:"mn-semi p-big"}," Earn Weeder Token Crypto with buying our weed, use it as money when buying our products or withdraw and trade ",-1),m={class:"mn-semi flex-nowrap flex gap-thin"},_={key:0,class:"w-100 pd-medium radius-medium t-center bg-grey"},p=e.createElementVNode("h3",{class:"mn-small"},"Make first order and start earning Weeder Token ",-1),h=e.createElementVNode("button",{class:"mn-l-auto mn-r-auto bg-main button"},"Explore marketplace",-1),q=[p,h],b={key:1,class:"w-100 pd-medium radius-medium bg-grey"},k=e.createElementVNode("p",{class:"h4 mn-thin"},"You own: ",-1),g=e.createElementVNode("h3",{class:"mn-small"},"0.14% of Weeder",-1),E=e.createElementVNode("button",{class:"w-100 bg-main button"},"Get More",-1),y=[k,g,E],N={key:2,class:"w-100 pd-medium radius-medium bg-grey"},V=e.createElementVNode("p",{class:"h4 mn-thin"},"You earn: ",-1),v=e.createElementVNode("h3",{class:"mn-small"},"245.43 WDT",-1),w=e.createElementVNode("button",{class:"w-100 bg-main button"},"Get More",-1),B=[V,v,w],f={class:"w-50 bg-black radius-semi pd-medium t-white"},W=e.createElementVNode("p",{class:"h4 mn-thin"},"Your Metamask",-1),C={key:0,class:"mn-small pd-small br-solid br-1px br-white-transp-10 radius-small"},M={key:1,class:"p-medium t-transp mn-small"},D=e.createElementVNode("h3",{class:"mn-small"}," Incomes ",-1),S={class:"cols-4 gap-thin"},j={class:"pd-medium radius-medium bg-grey"},T={class:"mn-small"},Y={class:"p-small mn-small"},x={__name:"Wallet",setup(F){i.useRoute(),e.ref(!1);const a=new s.Web3(s.Web3.givenProvider||"http://localhost:8080"),t=e.ref(null);async function l(){const o=await a.eth.requestAccounts();t.value=o[0]}return e.onMounted(()=>{}),(o,n)=>(e.openBlock(),e.createElementBlock("section",c,[u,d,e.createElementVNode("div",m,[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_,q)),t.value?(e.openBlock(),e.createElementBlock("div",b,y)):e.createCommentVNode("",!0),t.value?(e.openBlock(),e.createElementBlock("div",N,B)):e.createCommentVNode("",!0),e.createElementVNode("div",f,[W,t.value?(e.openBlock(),e.createElementBlock("div",C,e.toDisplayString(t.value),1)):e.createCommentVNode("",!0),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",M,"Connect Metamask to withdrawal your earnings.")),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:2,onClick:l,class:"w-100 button"}," Connect Wallet ")),t.value?(e.openBlock(),e.createElementBlock("button",{key:3,onClick:n[0]||(n[0]=(...r)=>o.disconnectWallet&&o.disconnectWallet(...r)),class:"w-100 bg-red button"}," Disonnect Wallet ")):e.createCommentVNode("",!0)])]),D,e.createElementVNode("section",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList([{balance:34,type:"income",reason:"order",target:"ef34dsdase4389snjnu (_id)"},{balance:25,type:"income",reason:"post",target:"ef34dsdase4389snjnu (_id)"},{balance:17,type:"income",reason:"comment",target:"ef34dsdase4389snjnu (_id)"},{balance:43,type:"event",reason:"order",target:"ef34dsdase4389snjnu (_id)"}],r=>(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("h3",T,"+ "+e.toDisplayString(r.balance)+" WDT",1),e.createElementVNode("p",Y,"For "+e.toDisplayString(r.reason)+" "+e.toDisplayString(r.target),1)]))),256))])]))}};exports.default=x;