@ozdao/prometheus-framework 0.1.82 โ†’ 0.1.84

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs +4 -4
  2. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +3 -3
  3. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
  4. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +22 -22
  5. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  6. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2981 -2804
  7. package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.cjs +1 -0
  8. package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.js +10 -0
  9. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -2
  10. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +26 -26
  11. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.cjs +1 -0
  12. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.js +7 -0
  13. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.cjs +1 -1
  14. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.js +28 -29
  15. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.cjs +2 -2
  16. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.js +55 -65
  17. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  18. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  19. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/Address/Address.vue.js +23 -23
  21. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
  22. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +31 -31
  23. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -224
  25. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  26. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +224 -2
  27. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +22 -22
  29. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +18 -18
  31. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +24 -24
  33. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
  35. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
  37. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +31 -30
  39. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  40. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +20 -20
  42. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +33 -33
  44. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +21 -21
  46. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
  48. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  49. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
  50. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
  52. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  53. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
  54. package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/components/Text/Text.vue.js +11 -11
  56. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +27 -27
  58. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +18 -18
  60. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +17 -17
  62. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  64. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  68. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  72. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +44 -43
  74. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  76. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/auth/store/auth.js +65 -96
  78. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +24 -24
  80. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  84. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +19 -19
  86. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +2 -2
  87. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +16 -16
  88. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +13 -13
  90. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +16 -16
  92. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +3 -3
  93. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +30 -30
  94. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +22 -22
  96. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
  97. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -62
  98. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
  99. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +62 -2
  100. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +56 -56
  102. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +44 -43
  104. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +15 -15
  106. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  108. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +13 -13
  110. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  112. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +51 -53
  114. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +59 -61
  116. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  120. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +22 -22
  122. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +25 -25
  124. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +9 -9
  126. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +23 -23
  128. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +11 -11
  130. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  132. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -4
  134. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
  136. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  140. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +19 -19
  142. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  144. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +30 -30
  146. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  148. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +24 -24
  150. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  152. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +21 -21
  154. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  156. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  160. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  162. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
  164. package/dist/prometheus-framework.cjs.js +27 -27
  165. package/dist/prometheus-framework.es.js +1949 -1937
  166. package/dist/style.css +1 -1
  167. package/package.json +2 -4
  168. package/src/modules/auth/components/pages/ResetPassword.vue +1 -1
  169. package/src/modules/auth/components/pages/SignIn.vue +1 -0
  170. package/src/modules/auth/store/auth.js +42 -51
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let u,l;const o=a;e.ref("departments"),[u,l]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await u,l();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.unref(i).length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organization/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-thin"},null,8,["department","organization"]))),128)),e.unref(i).length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organization/${o.organization._id}/departments/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let l,u;const o=a;e.ref("departments"),[l,u]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await l,u();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[i.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organization/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-thin"},null,8,["department","organization"]))),128)),i.value.length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organization/${o.organization._id}/departments/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
@@ -1,10 +1,10 @@
1
- import { ref as f, withAsyncContext as b, computed as y, openBlock as n, createBlock as d, Transition as _, withCtx as h, createElementVNode as u, unref as m, createCommentVNode as c, createElementBlock as g, Fragment as z, renderList as k } from "vue";
2
- import "../../../../components/Tab/Tab.vue2.js";
3
- import $ from "../blocks/EmptyState.vue.js";
4
- import A from "../blocks/CardDepartment.vue.js";
5
- import { actions as v, state as w } from "../../store/departments.js";
6
- import { state as C } from "../../../auth/store/auth.js";
7
- const N = {
1
+ import { ref as g, withAsyncContext as f, computed as b, openBlock as n, createBlock as d, Transition as y, withCtx as _, createElementVNode as u, createCommentVNode as p, createElementBlock as c, Fragment as h, renderList as z } from "vue";
2
+ import "../../../../components/Tab/Tab.vue.js";
3
+ import k from "../blocks/EmptyState.vue.js";
4
+ import v from "../blocks/CardDepartment.vue.js";
5
+ import { actions as $, state as A } from "../../store/departments.js";
6
+ import { state as w } from "../../../auth/store/auth.js";
7
+ const L = {
8
8
  __name: "FeedDepartments",
9
9
  props: {
10
10
  organization: Object,
@@ -12,39 +12,39 @@ const N = {
12
12
  memberships: Array
13
13
  },
14
14
  async setup(a) {
15
- let l, p;
15
+ let m, l;
16
16
  const o = a;
17
- f("departments"), [l, p] = b(() => v.read(o.organization._id)), await l, p();
18
- const i = y(() => {
19
- const e = w.departments, r = e.flatMap(
17
+ g("departments"), [m, l] = f(() => $.read(o.organization._id)), await m, l();
18
+ const i = b(() => {
19
+ const e = A.departments, r = e.flatMap(
20
20
  (t) => t.subdepartments.map((s) => s._id)
21
21
  );
22
22
  return e.filter(
23
23
  (t) => !r.includes(t._id)
24
24
  );
25
25
  });
26
- return (e, r) => (n(), d(_, { name: "slide-fade" }, {
27
- default: h(() => [
26
+ return (e, r) => (n(), d(y, { name: "slide-fade" }, {
27
+ default: _(() => [
28
28
  u("div", null, [
29
- m(i).length < 1 ? (n(), d($, {
29
+ i.value.length < 1 ? (n(), d(k, {
30
30
  key: 0,
31
31
  title: "You don't have any spots yet.",
32
32
  description: "Add spots to your hub.",
33
33
  action: "Add spot",
34
34
  callback: () => e.$router.push(`/organization/${o.organization._id}/departments/create`)
35
- }, null, 8, ["callback"])) : c("", !0),
35
+ }, null, 8, ["callback"])) : p("", !0),
36
36
  u("div", null, [
37
- (n(!0), g(z, null, k(m(i), (t, s) => (n(), d(A, {
37
+ (n(!0), c(h, null, z(i.value, (t, s) => (n(), d(v, {
38
38
  key: s,
39
39
  department: t,
40
40
  organization: a.organization,
41
41
  class: "radius-big bg-grey mn-thin"
42
42
  }, null, 8, ["department", "organization"]))), 128)),
43
- m(i).length > 0 && C.user._id === a.organization.owner ? (n(), g("button", {
43
+ i.value.length > 0 && w.user._id === a.organization.owner ? (n(), c("button", {
44
44
  key: 0,
45
45
  onClick: r[0] || (r[0] = (t) => e.$router.push(`/organization/${o.organization._id}/departments/create`)),
46
46
  class: "mn-thin button w-100"
47
- }, " Add spot ")) : c("", !0)
47
+ }, " Add spot ")) : p("", !0)
48
48
  ])
49
49
  ])
50
50
  ]),
@@ -53,5 +53,5 @@ const N = {
53
53
  }
54
54
  };
55
55
  export {
56
- N as default
56
+ L as default
57
57
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Field/Field.vue.cjs"),_=require("../../../../components/Select/Select.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");const c=require("../../store/invites.cjs"),h={class:"mn-medium radius-medium pd-semi bg-white"},b=e.createElementVNode("h3",{class:"mn-medium"},"ะ”ะพะฑะฐะฒะธั‚ัŒ ัƒั‡ะฐัั‚ะฝะธะบะพะฒ",-1),k=e.createElementVNode("p",{class:"mn-small t-transp p-medium"},"ะฃะบะฐะถะธั‚ะต email ะธะปะธ ั‚ะตะปะตั„ะพะฝ, ั‡ั‚ะพะฑั‹ ะพั‚ะฟั€ะฐะฒะธั‚ัŒ ััั‹ะปะบัƒ ั ะฟั€ะธะณะปะฐัˆะตะฝะธะตะผ:",-1),E={class:"w-100 flex-nowrap flex"},V={key:0,class:"mn-r-medium flex-v-center flex"},N=["onClick"],g=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ ะ”ะพะฑะฐะฒะธั‚ัŒ ะฟั€ะธะณะปะฐัˆะตะฝะธะต",-1),w=[g],B=e.createElementVNode("span",null,"ะžั‚ะฟั€ะฐะฒะธั‚ัŒ ะฟั€ะธะณะปะฐัˆะตะฝะธั ",-1),x={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(s,{emit:q}){const i=s,r=e.ref(null),t=e.ref([{contact:"",role:""}]);function d(){t.value.push({contact:"",role:""})}function m(n){t.value.splice(n,1)}async function u(n){await c.actions.create(i.organization._id,t.value)}function p(){}return(n,y)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",h,[b,k,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(l,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"br-1px br-solid br-grey flex radius-small mn-thin"},[e.createElementVNode("div",E,[e.createVNode(v.default,{field:l.contact,"onUpdate:field":a=>l.contact=a,placeholder:"Email ะธะปะธ ั‚ะตะปะตั„ะพะฝ",class:"w-100 bg-white",validation:r.value},null,8,["field","onUpdate:field","validation"]),o>0?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("button",{onClick:a=>m(o),class:"button-small button"},"ร—",8,N)])):e.createCommentVNode("",!0)]),e.createVNode(_.default,{options:[{name:"ะ”ะธั€ะตะบั‚ะพั€",value:"director"},{name:"ะœะตะฝะตะดะถะตั€",value:"manager"},{name:"ะกะพั‚ั€ัƒะดะฝะธะบ",value:"member"}],prop:l,content:"role",placeholder:"ะ ะพะปัŒ",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:d,class:"mn-small flex-v-center flex-nowrap flex"},w),e.createVNode(f.default,{submit:n.a=()=>u(c.state.invites),callback:p,class:"mn-t-medium"},{default:e.withCtx(()=>[B]),_:1},8,["submit"])])]))}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");require("../../../middlewares/client/inputs.validation.cjs");const c=require("../../store/invites.cjs"),h={class:"mn-medium radius-medium pd-semi bg-white"},b=e.createElementVNode("h3",{class:"mn-medium"},"ะ”ะพะฑะฐะฒะธั‚ัŒ ัƒั‡ะฐัั‚ะฝะธะบะพะฒ",-1),k=e.createElementVNode("p",{class:"mn-small t-transp p-medium"},"ะฃะบะฐะถะธั‚ะต email ะธะปะธ ั‚ะตะปะตั„ะพะฝ, ั‡ั‚ะพะฑั‹ ะพั‚ะฟั€ะฐะฒะธั‚ัŒ ััั‹ะปะบัƒ ั ะฟั€ะธะณะปะฐัˆะตะฝะธะตะผ:",-1),E={class:"w-100 flex-nowrap flex"},V={key:0,class:"mn-r-medium flex-v-center flex"},N=["onClick"],g=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ ะ”ะพะฑะฐะฒะธั‚ัŒ ะฟั€ะธะณะปะฐัˆะตะฝะธะต",-1),w=[g],B=e.createElementVNode("span",null,"ะžั‚ะฟั€ะฐะฒะธั‚ัŒ ะฟั€ะธะณะปะฐัˆะตะฝะธั ",-1),x={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(s,{emit:q}){const i=s,r=e.ref(null),t=e.ref([{contact:"",role:""}]);function d(){t.value.push({contact:"",role:""})}function m(n){t.value.splice(n,1)}async function u(n){await c.actions.create(i.organization._id,t.value)}function p(){}return(n,y)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",h,[b,k,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(l,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"br-1px br-solid br-grey flex radius-small mn-thin"},[e.createElementVNode("div",E,[e.createVNode(_.default,{field:l.contact,"onUpdate:field":a=>l.contact=a,placeholder:"Email ะธะปะธ ั‚ะตะปะตั„ะพะฝ",class:"w-100 bg-white",validation:r.value},null,8,["field","onUpdate:field","validation"]),o>0?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("button",{onClick:a=>m(o),class:"button-small button"},"ร—",8,N)])):e.createCommentVNode("",!0)]),e.createVNode(v.default,{options:[{name:"ะ”ะธั€ะตะบั‚ะพั€",value:"director"},{name:"ะœะตะฝะตะดะถะตั€",value:"manager"},{name:"ะกะพั‚ั€ัƒะดะฝะธะบ",value:"member"}],prop:l,content:"role",placeholder:"ะ ะพะปัŒ",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:d,class:"mn-small flex-v-center flex-nowrap flex"},w),e.createVNode(f.default,{submit:n.a=()=>u(c.state.invites),callback:p,class:"mn-t-medium"},{default:e.withCtx(()=>[B]),_:1},8,["submit"])])]))}};exports.default=x;
@@ -1,7 +1,7 @@
1
1
  import { ref as m, openBlock as l, createElementBlock as o, createElementVNode as e, Fragment as h, renderList as b, createVNode as i, createCommentVNode as w, withCtx as x } from "vue";
2
- import g from "../../../../components/Field/Field.vue.js";
3
- import k from "../../../../components/Select/Select.vue.js";
4
- import C from "../../../../components/Button/Button.vue.js";
2
+ import g from "../../../../components/Field/Field.vue2.js";
3
+ import k from "../../../../components/Select/Select.vue2.js";
4
+ import C from "../../../../components/Button/Button.vue2.js";
5
5
  import "../../../middlewares/client/inputs.validation.js";
6
6
  import { state as y, actions as V } from "../../store/invites.js";
7
7
  const z = { class: "mn-medium radius-medium pd-semi bg-white" }, E = /* @__PURE__ */ e("h3", { class: "mn-medium" }, "ะ”ะพะฑะฐะฒะธั‚ัŒ ัƒั‡ะฐัั‚ะฝะธะบะพะฒ", -1), M = /* @__PURE__ */ e("p", { class: "mn-small t-transp p-medium" }, "ะฃะบะฐะถะธั‚ะต email ะธะปะธ ั‚ะตะปะตั„ะพะฝ, ั‡ั‚ะพะฑั‹ ะพั‚ะฟั€ะฐะฒะธั‚ัŒ ััั‹ะปะบัƒ ั ะฟั€ะธะณะปะฐัˆะตะฝะธะตะผ:", -1), N = { class: "w-100 flex-nowrap flex" }, B = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Tab/Tab.vue.cjs"),p={class:"mn-big radius-medium bg-white"},v={key:0,class:"pd-semi"},b={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},_={class:"w-100 mn-r-small"},k={class:"t-transp"},h={key:0,class:"mn-l-medium flex-v-center flex"},B=["onClick"],f={key:1,class:"pd-semi"},g={key:0},E={class:"br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium"},y={class:"w-100 mn-r-small"},x={class:"t-transp"},N={class:"mn-l-medium flex-v-center flex"},V=["onClick"],C={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(n,{emit:i}){const c=n,o=e.ref("members");function a(l,s){c.memberships.splice(l,1),i("removeMember",s)}function m(l,s){c.invites.splice(l,1),i("removeInvite",s)}return(l,s)=>(e.openBlock(),e.createElementBlock("section",p,[e.createVNode(u.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=t=>o.value=t),class:"br-grey br-b br-solid radius-small",tabs:[{name:"ะฃั‡ะฐัั‚ะฝะธะบะธ",value:"members"},{name:"ะŸั€ะธะณะปะฐัˆะตะฝะธั",value:"invites"}]},null,8,["selected"]),o.value==="members"?(e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.memberships,(t,r)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",_,e.toDisplayString(t.user.email)+" "+e.toDisplayString(t.user.phone),1),e.createElementVNode("span",k,e.toDisplayString(t.position),1),t.position!=="ะžัะฝะพะฒะฐั‚ะตะปัŒ"?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("button",{onClick:d=>a(r,t),class:"button-small button"},"ร—",8,B)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),o.value==="invites"?(e.openBlock(),e.createElementBlock("div",f,[n.invites.length<1?(e.openBlock(),e.createElementBlock("span",g,"ะ’ ะพั€ะณะฐะฝะธะทะฐั†ะธะธ ะฝะตั‚ ะฟั€ะธะณะปะฐัˆะตะฝะธะน")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("span",y,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",x,e.toDisplayString(t.status),1),e.createElementVNode("div",N,[e.createElementVNode("button",{onClick:d=>m(r,t),class:"button-small button"},"ร—",8,V)])]))),256))])):e.createCommentVNode("",!0)]))}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../components/Tab/Tab.vue2.cjs"),v={class:"mn-big radius-medium bg-white"},b={key:0,class:"pd-semi"},_={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},k={class:"w-100 mn-r-small"},h={class:"t-transp"},B={key:0,class:"mn-l-medium flex-v-center flex"},f=["onClick"],g={key:1,class:"pd-semi"},E={key:0},y={class:"br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium"},x={class:"w-100 mn-r-small"},N={class:"t-transp"},V={class:"mn-l-medium flex-v-center flex"},C=["onClick"],S={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(n,{emit:a}){const i=n,c=a,o=e.ref("members");function m(l,s){i.memberships.splice(l,1),c("removeMember",s)}function d(l,s){i.invites.splice(l,1),c("removeInvite",s)}return(l,s)=>(e.openBlock(),e.createElementBlock("section",v,[e.createVNode(p.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=t=>o.value=t),class:"br-grey br-b br-solid radius-small",tabs:[{name:"ะฃั‡ะฐัั‚ะฝะธะบะธ",value:"members"},{name:"ะŸั€ะธะณะปะฐัˆะตะฝะธั",value:"invites"}]},null,8,["selected"]),o.value==="members"?(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.memberships,(t,r)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",k,e.toDisplayString(t.user.email)+" "+e.toDisplayString(t.user.phone),1),e.createElementVNode("span",h,e.toDisplayString(t.position),1),t.position!=="ะžัะฝะพะฒะฐั‚ะตะปัŒ"?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("button",{onClick:u=>m(r,t),class:"button-small button"},"ร—",8,f)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),o.value==="invites"?(e.openBlock(),e.createElementBlock("div",g,[n.invites.length<1?(e.openBlock(),e.createElementBlock("span",E,"ะ’ ะพั€ะณะฐะฝะธะทะฐั†ะธะธ ะฝะตั‚ ะฟั€ะธะณะปะฐัˆะตะฝะธะน")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("span",x,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",N,e.toDisplayString(t.status),1),e.createElementVNode("div",V,[e.createElementVNode("button",{onClick:u=>d(r,t),class:"button-small button"},"ร—",8,C)])]))),256))])):e.createCommentVNode("",!0)]))}};exports.default=S;
@@ -1,15 +1,15 @@
1
- import { ref as f, openBlock as s, createElementBlock as t, createVNode as x, Fragment as v, renderList as p, createElementVNode as n, toDisplayString as o, createCommentVNode as m } from "vue";
2
- import k from "../../../../components/Tab/Tab.vue.js";
3
- const y = { class: "mn-big radius-medium bg-white" }, g = {
1
+ import { ref as x, openBlock as s, createElementBlock as t, createVNode as k, Fragment as v, renderList as p, createElementVNode as n, toDisplayString as o, createCommentVNode as m } from "vue";
2
+ import y from "../../../../components/Tab/Tab.vue2.js";
3
+ const g = { class: "mn-big radius-medium bg-white" }, w = {
4
4
  key: 0,
5
5
  class: "pd-semi"
6
- }, w = { class: "br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium" }, C = { class: "w-100 mn-r-small" }, M = { class: "t-transp" }, E = {
6
+ }, C = { class: "br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium" }, M = { class: "w-100 mn-r-small" }, E = { class: "t-transp" }, I = {
7
7
  key: 0,
8
8
  class: "mn-l-medium flex-v-center flex"
9
- }, I = ["onClick"], N = {
9
+ }, N = ["onClick"], V = {
10
10
  key: 1,
11
11
  class: "pd-semi"
12
- }, V = { key: 0 }, $ = { class: "br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium" }, A = { class: "w-100 mn-r-small" }, B = { class: "t-transp" }, L = { class: "mn-l-medium flex-v-center flex" }, j = ["onClick"], F = {
12
+ }, $ = { key: 0 }, A = { class: "br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium" }, B = { class: "w-100 mn-r-small" }, L = { class: "t-transp" }, j = { class: "mn-l-medium flex-v-center flex" }, z = ["onClick"], O = {
13
13
  __name: "MembersList",
14
14
  props: {
15
15
  organization: Object,
@@ -17,16 +17,16 @@ const y = { class: "mn-big radius-medium bg-white" }, g = {
17
17
  invites: Array
18
18
  },
19
19
  emits: [["removeMember", "removeInvite"]],
20
- setup(l, { emit: d }) {
21
- const u = l, r = f("members");
22
- function b(a, i) {
23
- u.memberships.splice(a, 1), d("removeMember", i);
24
- }
20
+ setup(l, { emit: b }) {
21
+ const d = l, u = b, r = x("members");
25
22
  function _(a, i) {
26
- u.invites.splice(a, 1), d("removeInvite", i);
23
+ d.memberships.splice(a, 1), u("removeMember", i);
24
+ }
25
+ function h(a, i) {
26
+ d.invites.splice(a, 1), u("removeInvite", i);
27
27
  }
28
- return (a, i) => (s(), t("section", y, [
29
- x(k, {
28
+ return (a, i) => (s(), t("section", g, [
29
+ k(y, {
30
30
  selected: r.value,
31
31
  "onUpdate:selected": i[0] || (i[0] = (e) => r.value = e),
32
32
  class: "br-grey br-b br-solid radius-small",
@@ -35,28 +35,28 @@ const y = { class: "mn-big radius-medium bg-white" }, g = {
35
35
  { name: "ะŸั€ะธะณะปะฐัˆะตะฝะธั", value: "invites" }
36
36
  ]
37
37
  }, null, 8, ["selected"]),
38
- r.value === "members" ? (s(), t("div", g, [
39
- (s(!0), t(v, null, p(l.memberships, (e, c) => (s(), t("div", w, [
40
- n("span", C, o(e.user.email) + " " + o(e.user.phone), 1),
41
- n("span", M, o(e.position), 1),
42
- e.position !== "ะžัะฝะพะฒะฐั‚ะตะปัŒ" ? (s(), t("div", E, [
38
+ r.value === "members" ? (s(), t("div", w, [
39
+ (s(!0), t(v, null, p(l.memberships, (e, c) => (s(), t("div", C, [
40
+ n("span", M, o(e.user.email) + " " + o(e.user.phone), 1),
41
+ n("span", E, o(e.position), 1),
42
+ e.position !== "ะžัะฝะพะฒะฐั‚ะตะปัŒ" ? (s(), t("div", I, [
43
43
  n("button", {
44
- onClick: (h) => b(c, e),
44
+ onClick: (f) => _(c, e),
45
45
  class: "button-small button"
46
- }, "ร—", 8, I)
46
+ }, "ร—", 8, N)
47
47
  ])) : m("", !0)
48
48
  ]))), 256))
49
49
  ])) : m("", !0),
50
- r.value === "invites" ? (s(), t("div", N, [
51
- l.invites.length < 1 ? (s(), t("span", V, "ะ’ ะพั€ะณะฐะฝะธะทะฐั†ะธะธ ะฝะตั‚ ะฟั€ะธะณะปะฐัˆะตะฝะธะน")) : m("", !0),
52
- (s(!0), t(v, null, p(l.invites, (e, c) => (s(), t("div", $, [
53
- n("span", A, o(e.invitedEmail) + " " + o(e.invitedPhone), 1),
54
- n("span", B, o(e.status), 1),
55
- n("div", L, [
50
+ r.value === "invites" ? (s(), t("div", V, [
51
+ l.invites.length < 1 ? (s(), t("span", $, "ะ’ ะพั€ะณะฐะฝะธะทะฐั†ะธะธ ะฝะตั‚ ะฟั€ะธะณะปะฐัˆะตะฝะธะน")) : m("", !0),
52
+ (s(!0), t(v, null, p(l.invites, (e, c) => (s(), t("div", A, [
53
+ n("span", B, o(e.invitedEmail) + " " + o(e.invitedPhone), 1),
54
+ n("span", L, o(e.status), 1),
55
+ n("div", j, [
56
56
  n("button", {
57
- onClick: (h) => _(c, e),
57
+ onClick: (f) => h(c, e),
58
58
  class: "button-small button"
59
- }, "ร—", 8, j)
59
+ }, "ร—", 8, z)
60
60
  ])
61
61
  ]))), 256))
62
62
  ])) : m("", !0)
@@ -64,5 +64,5 @@ const y = { class: "mn-big radius-medium bg-white" }, g = {
64
64
  }
65
65
  };
66
66
  export {
67
- F as default
67
+ O as default
68
68
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/src/js.cookie.cjs");require("../../../../components/Tab/Tab.vue2.cjs");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Dropdown/Dropdown.vue.cjs");const p=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/EmptyState.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const b=require("../blocks/CardOrganization.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let q=n.query.tab?n.query.tab:"details";const i=e.ref(q);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(b.default,{key:l._id,organization:l,user:p.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/src/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Dropdown/Dropdown.vue.cjs");const p=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/EmptyState.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const b=require("../blocks/CardOrganization.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let q=n.query.tab?n.query.tab:"details";const i=e.ref(q);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(b.default,{key:l._id,organization:l,user:p.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
@@ -1,10 +1,10 @@
1
1
  import { ref as m, withAsyncContext as b, watch as _, openBlock as t, createElementBlock as n, createElementVNode as f, createBlock as p, Fragment as g, renderList as h, normalizeClass as w } from "vue";
2
2
  import { useRouter as v, useRoute as z } from "vue-router";
3
3
  import "../../../../../../node_modules/js-cookie/src/js.cookie.js";
4
- import "../../../../components/Tab/Tab.vue2.js";
5
- import "../../../../components/Field/Field.vue2.js";
6
- import "../../../../components/Select/Select.vue2.js";
7
- import "../../../../components/Button/Button.vue2.js";
4
+ import "../../../../components/Tab/Tab.vue.js";
5
+ import "../../../../components/Field/Field.vue.js";
6
+ import "../../../../components/Select/Select.vue.js";
7
+ import "../../../../components/Button/Button.vue.js";
8
8
  import "../../../../components/Dropdown/Dropdown.vue.js";
9
9
  import { state as k } from "../../../auth/store/auth.js";
10
10
  import "../../store/memberships.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),c=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("vue-i18n"),u=require("../../store/categories.cjs");require("./FilterProducts.vue2.cjs");const v={class:"pd-medium bg-grey radius-big"},x={class:"mn-small"},y=e.createElementVNode("hr",{class:"mn-small"},null,-1),k={class:"mn-r-auto t-medium p-big"},C=e.createElementVNode("hr",{class:"mn-small"},null,-1),w={class:"mn-r-auto t-medium p-big"},E=e.createElementVNode("hr",{class:"mn-small"},null,-1),F=e.createElementVNode("p",{class:"mn-r-auto t-medium p-big"},"Delivery",-1),B=e.createElementVNode("hr",{class:"mn-semi"},null,-1),N={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under $5",value:{min:0,max:5}},{label:"$5 to $10",value:{min:5,max:10}},{label:"$10 to $20",value:{min:10,max:20}},{label:"$20 and above",value:{min:20,max:1/0}}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(m,{emit:d}){let h,g;[h,g]=e.withAsyncContext(()=>u.actions.fetchCategories()),await h,g();let n=e.ref({categories:[],prices:[],delivery:[],extra:[]});const i=(s,l)=>{d("updateFilters",{filterType:s,value:l})},f=()=>{d("resetFilters")},b={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"ะšะฐั‚ะตะณะพั€ะธั",categories:[],filters:{title:"ะคะธะปัŒั‚ั€ั‹",price:{title:"ะฆะตะฝะฐ",from:"ะžั‚",to:"ะ”ะพ"},filters:[],reset:"ะกะฑั€ะพัะธั‚ัŒ ั„ะธะปัŒั‚ั€ั‹"}}}};u.state.all.forEach(s=>{s.localization.forEach(l=>{b.messages[l.locale].categories.push(l.text)})});const{t:r}=_.useI18n(b);return(s,l)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("h3",x,e.toDisplayString(e.unref(r)("filters.title")),1),y,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",k,e.toDisplayString(e.unref(r)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.name,value:t.url,class:"w-100 mn-t-small mn-small bg-white radius-small pd-small",radio:e.unref(n).categories,onChange:p=>i("categories",t.url)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),C,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",w,e.toDisplayString(e.unref(r)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.prices,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.label,value:t.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(n).prices,onChange:p=>i("prices",t.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),E,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[F]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.deliveryOptions,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.label,value:t.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(n).delivery,onChange:p=>i("delivery",t.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),B,e.createElementVNode("button",{onClick:f,class:"bg-main w-100 button"},e.toDisplayString(e.unref(r)("filters.reset")),1)]))}};exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),c=require("../../../../components/Checkbox/Checkbox.vue.cjs"),v=require("vue-i18n"),u=require("../../store/categories.cjs");require("./FilterProducts.vue2.cjs");const x={class:"pd-medium bg-grey radius-big"},y={class:"mn-small"},k=e.createElementVNode("hr",{class:"mn-small"},null,-1),C={class:"mn-r-auto t-medium p-big"},w=e.createElementVNode("hr",{class:"mn-small"},null,-1),E={class:"mn-r-auto t-medium p-big"},F=e.createElementVNode("hr",{class:"mn-small"},null,-1),B=e.createElementVNode("p",{class:"mn-r-auto t-medium p-big"},"Delivery",-1),N=e.createElementVNode("hr",{class:"mn-semi"},null,-1),V={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under $5",value:{min:0,max:5}},{label:"$5 to $10",value:{min:5,max:10}},{label:"$10 to $20",value:{min:10,max:20}},{label:"$20 and above",value:{min:20,max:1/0}}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(m,{emit:f}){let d,h;[d,h]=e.withAsyncContext(()=>u.actions.fetchCategories()),await d,h();let n=e.ref({categories:[],prices:[],delivery:[],extra:[]});const g=f,i=(r,l)=>{g("updateFilters",{filterType:r,value:l})},_=()=>{g("resetFilters")},b={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"ะšะฐั‚ะตะณะพั€ะธั",categories:[],filters:{title:"ะคะธะปัŒั‚ั€ั‹",price:{title:"ะฆะตะฝะฐ",from:"ะžั‚",to:"ะ”ะพ"},filters:[],reset:"ะกะฑั€ะพัะธั‚ัŒ ั„ะธะปัŒั‚ั€ั‹"}}}};u.state.all.forEach(r=>{r.localization.forEach(l=>{b.messages[l.locale].categories.push(l.text)})});const{t:s}=v.useI18n(b);return(r,l)=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("h3",y,e.toDisplayString(e.unref(s)("filters.title")),1),k,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",C,e.toDisplayString(e.unref(s)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.name,value:t.url,class:"w-100 mn-t-small mn-small bg-white radius-small pd-small",radio:e.unref(n).categories,onChange:p=>i("categories",t.url)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),w,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",E,e.toDisplayString(e.unref(s)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.prices,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.label,value:t.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(n).prices,onChange:p=>i("prices",t.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),F,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[B]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.deliveryOptions,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.label,value:t.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(n).delivery,onChange:p=>i("delivery",t.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),N,e.createElementVNode("button",{onClick:_,class:"bg-main w-100 button"},e.toDisplayString(e.unref(s)("filters.reset")),1)]))}};exports.default=V;
@@ -1,10 +1,10 @@
1
- import { withAsyncContext as E, ref as P, openBlock as t, createElementBlock as m, createElementVNode as l, toDisplayString as c, unref as s, createVNode as b, withCtx as a, Fragment as h, renderList as p, createBlock as g } from "vue";
1
+ import { withAsyncContext as P, ref as T, openBlock as t, createElementBlock as m, createElementVNode as l, toDisplayString as c, unref as s, createVNode as b, withCtx as a, Fragment as h, renderList as p, createBlock as g } from "vue";
2
2
  import _ from "../../../../components/Spoiler/Spoiler.vue2.js";
3
3
  import f from "../../../../components/Checkbox/Checkbox.vue.js";
4
- import { useI18n as T } from "vue-i18n";
5
- import { actions as A, state as $ } from "../../store/categories.js";
4
+ import { useI18n as A } from "vue-i18n";
5
+ import { actions as B, state as $ } from "../../store/categories.js";
6
6
  import "./FilterProducts.vue2.js";
7
- const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" }, I = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), N = { class: "mn-r-auto t-medium p-big" }, V = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), j = { class: "mn-r-auto t-medium p-big" }, L = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), O = /* @__PURE__ */ l("p", { class: "mn-r-auto t-medium p-big" }, "Delivery", -1), R = /* @__PURE__ */ l("hr", { class: "mn-semi" }, null, -1), J = {
7
+ const D = { class: "pd-medium bg-grey radius-big" }, I = { class: "mn-small" }, N = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), V = { class: "mn-r-auto t-medium p-big" }, j = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), L = { class: "mn-r-auto t-medium p-big" }, O = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), R = /* @__PURE__ */ l("p", { class: "mn-r-auto t-medium p-big" }, "Delivery", -1), S = /* @__PURE__ */ l("hr", { class: "mn-semi" }, null, -1), K = {
8
8
  __name: "FilterProducts",
9
9
  props: {
10
10
  selectedFilters: Object,
@@ -27,19 +27,19 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
27
27
  }
28
28
  },
29
29
  emits: ["updateFilters", "resetFilters"],
30
- async setup(v, { emit: x }) {
31
- let y, C;
32
- [y, C] = E(() => A.fetchCategories()), await y, C();
33
- let u = P({
30
+ async setup(v, { emit: k }) {
31
+ let x, y;
32
+ [x, y] = P(() => B.fetchCategories()), await x, y();
33
+ let u = T({
34
34
  categories: [],
35
35
  prices: [],
36
36
  delivery: [],
37
37
  extra: []
38
38
  });
39
- const d = (o, r) => {
40
- x("updateFilters", { filterType: o, value: r });
41
- }, k = () => {
42
- x("resetFilters");
39
+ const C = k, d = (o, r) => {
40
+ C("updateFilters", { filterType: o, value: r });
41
+ }, E = () => {
42
+ C("resetFilters");
43
43
  }, F = {
44
44
  locale: "en",
45
45
  messages: {
@@ -78,16 +78,16 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
78
78
  F.messages[r.locale].categories.push(r.text);
79
79
  });
80
80
  });
81
- const { t: n } = T(F);
82
- return (o, r) => (t(), m("div", B, [
83
- l("h3", D, c(s(n)("filters.title")), 1),
84
- I,
81
+ const { t: n } = A(F);
82
+ return (o, r) => (t(), m("div", D, [
83
+ l("h3", I, c(s(n)("filters.title")), 1),
84
+ N,
85
85
  b(_, {
86
86
  class: "radius-small o-hidden br-1px br-solid br-grey mn-small",
87
87
  status: !0
88
88
  }, {
89
89
  header: a(() => [
90
- l("p", N, c(s(n)("categoriesTitle")), 1)
90
+ l("p", V, c(s(n)("categoriesTitle")), 1)
91
91
  ]),
92
92
  content: a(() => [
93
93
  (t(!0), m(h, null, p($.all, (e, i) => (t(), g(f, {
@@ -101,13 +101,13 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
101
101
  ]),
102
102
  _: 1
103
103
  }),
104
- V,
104
+ j,
105
105
  b(_, {
106
106
  class: "radius-small o-hidden br-1px br-solid br-grey mn-small",
107
107
  status: !1
108
108
  }, {
109
109
  header: a(() => [
110
- l("p", j, c(s(n)("filters.price.title")), 1)
110
+ l("p", L, c(s(n)("filters.price.title")), 1)
111
111
  ]),
112
112
  content: a(() => [
113
113
  (t(!0), m(h, null, p(v.prices, (e, i) => (t(), g(f, {
@@ -121,13 +121,13 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
121
121
  ]),
122
122
  _: 1
123
123
  }),
124
- L,
124
+ O,
125
125
  b(_, {
126
126
  class: "radius-small o-hidden br-1px br-solid br-grey mn-small",
127
127
  status: !1
128
128
  }, {
129
129
  header: a(() => [
130
- O
130
+ R
131
131
  ]),
132
132
  content: a(() => [
133
133
  (t(!0), m(h, null, p(v.deliveryOptions, (e, i) => (t(), g(f, {
@@ -141,14 +141,14 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
141
141
  ]),
142
142
  _: 1
143
143
  }),
144
- R,
144
+ S,
145
145
  l("button", {
146
- onClick: k,
146
+ onClick: E,
147
147
  class: "bg-main w-100 button"
148
148
  }, c(s(n)("filters.reset")), 1)
149
149
  ]));
150
150
  }
151
151
  };
152
152
  export {
153
- J as default
153
+ K as default
154
154
  };
@@ -1 +1 @@
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.vue.cjs"),m=require("../../../../components/Select/Select.vue.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
+ "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,7 +1,7 @@
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
2
  import v from "../../../../components/Popup/Popup.vue.js";
3
- import w from "../../../../components/Button/Button.vue.js";
4
- import S from "../../../../components/Select/Select.vue.js";
3
+ import w from "../../../../components/Button/Button.vue2.js";
4
+ import S from "../../../../components/Select/Select.vue2.js";
5
5
  import { actions as k } from "../../store/reports.js";
6
6
  const P = /* @__PURE__ */ o("h3", { class: "mn-small" }, " Report Content ", -1), R = /* @__PURE__ */ o("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), x = /* @__PURE__ */ o("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 = {
7
7
  __name: "FormReport",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");const d=require("../../../organizations/components/blocks/EmptyState.vue.cjs"),p=require("../blocks/CardSpot.vue.cjs"),c=require("../../store/spots.cjs"),m=require("../../../auth/store/auth.cjs"),g={__name:"Feed",props:{organization:Object,units:Array,memberships:Array},async setup(r){let u,l;const s=r;e.ref("spots"),[u,l]=e.withAsyncContext(()=>c.actions.read(s.organization._id)),await u,l();const a=e.computed(()=>{const o=c.state.spots,n=o.flatMap(t=>t.subspots.map(i=>i._id));return o.filter(t=>!n.includes(t._id))});return(o,n)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.unref(a).length<1?(e.openBlock(),e.createBlock(d.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>o.$router.push(`/spots/${s.organization._id}/spots/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(t,i)=>(e.openBlock(),e.createBlock(p.default,{key:i,spot:t,organization:r.organization,class:"radius-big bg-grey mn-thin"},null,8,["spot","organization"]))),128)),e.unref(a).length>0&&m.state.user._id===r.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=t=>o.$router.push(`/spots/${s.organization._id}/spots/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const d=require("../../../organizations/components/blocks/EmptyState.vue.cjs"),p=require("../blocks/CardSpot.vue.cjs"),c=require("../../store/spots.cjs"),m=require("../../../auth/store/auth.cjs"),g={__name:"Feed",props:{organization:Object,units:Array,memberships:Array},async setup(r){let l,u;const s=r;e.ref("spots"),[l,u]=e.withAsyncContext(()=>c.actions.read(s.organization._id)),await l,u();const a=e.computed(()=>{const o=c.state.spots,n=o.flatMap(t=>t.subspots.map(i=>i._id));return o.filter(t=>!n.includes(t._id))});return(o,n)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[a.value.length<1?(e.openBlock(),e.createBlock(d.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>o.$router.push(`/spots/${s.organization._id}/spots/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(t,i)=>(e.openBlock(),e.createBlock(p.default,{key:i,spot:t,organization:r.organization,class:"radius-big bg-grey mn-thin"},null,8,["spot","organization"]))),128)),a.value.length>0&&m.state.user._id===r.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=t=>o.$router.push(`/spots/${s.organization._id}/spots/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
@@ -1,10 +1,10 @@
1
- import { ref as g, withAsyncContext as b, computed as y, openBlock as o, createBlock as p, Transition as _, withCtx as h, createElementVNode as c, unref as l, createCommentVNode as m, createElementBlock as f, Fragment as k, renderList as z } from "vue";
2
- import "../../../../components/Tab/Tab.vue2.js";
3
- import $ from "../../../organizations/components/blocks/EmptyState.vue.js";
4
- import A from "../blocks/CardSpot.vue.js";
5
- import { actions as v, state as w } from "../../store/spots.js";
6
- import { state as C } from "../../../auth/store/auth.js";
7
- const S = {
1
+ import { ref as g, withAsyncContext as f, computed as b, openBlock as o, createBlock as l, Transition as y, withCtx as _, createElementVNode as d, createCommentVNode as c, createElementBlock as m, Fragment as h, renderList as k } from "vue";
2
+ import "../../../../components/Tab/Tab.vue.js";
3
+ import v from "../../../organizations/components/blocks/EmptyState.vue.js";
4
+ import z from "../blocks/CardSpot.vue.js";
5
+ import { actions as $, state as A } from "../../store/spots.js";
6
+ import { state as w } from "../../../auth/store/auth.js";
7
+ const N = {
8
8
  __name: "Feed",
9
9
  props: {
10
10
  organization: Object,
@@ -12,39 +12,39 @@ const S = {
12
12
  memberships: Array
13
13
  },
14
14
  async setup(r) {
15
- let u, d;
15
+ let p, u;
16
16
  const s = r;
17
- g("spots"), [u, d] = b(() => v.read(s.organization._id)), await u, d();
18
- const a = y(() => {
19
- const e = w.spots, n = e.flatMap(
17
+ g("spots"), [p, u] = f(() => $.read(s.organization._id)), await p, u();
18
+ const a = b(() => {
19
+ const e = A.spots, n = e.flatMap(
20
20
  (t) => t.subspots.map((i) => i._id)
21
21
  );
22
22
  return e.filter(
23
23
  (t) => !n.includes(t._id)
24
24
  );
25
25
  });
26
- return (e, n) => (o(), p(_, { name: "slide-fade" }, {
27
- default: h(() => [
28
- c("div", null, [
29
- l(a).length < 1 ? (o(), p($, {
26
+ return (e, n) => (o(), l(y, { name: "slide-fade" }, {
27
+ default: _(() => [
28
+ d("div", null, [
29
+ a.value.length < 1 ? (o(), l(v, {
30
30
  key: 0,
31
31
  title: "You don't have any spots yet.",
32
32
  description: "Add spots to your hub.",
33
33
  action: "Add spot",
34
34
  callback: () => e.$router.push(`/spots/${s.organization._id}/spots/create`)
35
- }, null, 8, ["callback"])) : m("", !0),
36
- c("div", null, [
37
- (o(!0), f(k, null, z(l(a), (t, i) => (o(), p(A, {
35
+ }, null, 8, ["callback"])) : c("", !0),
36
+ d("div", null, [
37
+ (o(!0), m(h, null, k(a.value, (t, i) => (o(), l(z, {
38
38
  key: i,
39
39
  spot: t,
40
40
  organization: r.organization,
41
41
  class: "radius-big bg-grey mn-thin"
42
42
  }, null, 8, ["spot", "organization"]))), 128)),
43
- l(a).length > 0 && C.user._id === r.organization.owner ? (o(), f("button", {
43
+ a.value.length > 0 && w.user._id === r.organization.owner ? (o(), m("button", {
44
44
  key: 0,
45
45
  onClick: n[0] || (n[0] = (t) => e.$router.push(`/spots/${s.organization._id}/spots/create`)),
46
46
  class: "mn-thin button w-100"
47
- }, " Add spot ")) : m("", !0)
47
+ }, " Add spot ")) : c("", !0)
48
48
  ])
49
49
  ])
50
50
  ]),
@@ -53,5 +53,5 @@ const S = {
53
53
  }
54
54
  };
55
55
  export {
56
- S as default
56
+ N as default
57
57
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Button/Button.vue2.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
+ "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,6 +1,6 @@
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
- import "../../../../components/Field/Field.vue2.js";
3
- import "../../../../components/Button/Button.vue2.js";
2
+ import "../../../../components/Field/Field.vue.js";
3
+ import "../../../../components/Button/Button.vue.js";
4
4
  import S from "../../../../components/Dropdown/Dropdown.vue2.js";
5
5
  import k from "../../../mobile/components/Menu/Menu.vue2.js";
6
6
  import _ from "../../../mobile/components/Menu/MenuItem.vue.js";