@ozdao/prometheus-framework 0.1.70 โ†’ 0.1.73

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  2. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
  3. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
  5. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
  7. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
  9. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
  10. package/dist/prometheus-framework/src/modules/auth/auth.client.js +27 -24
  11. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +1 -1
  12. package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +5 -2
  13. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  15. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/community/community.client.js +33 -30
  17. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  21. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
  22. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -61
  23. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
  24. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +61 -2
  25. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  27. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  29. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  31. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  33. package/dist/prometheus-framework/src/modules/events/events.client.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/events/events.client.js +21 -18
  35. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  37. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  39. package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +7 -4
  41. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/globals/globals.client.js +9 -6
  43. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/icons/icons.client.js +49 -46
  45. package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.js +3 -3
  46. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +3 -3
  51. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +3 -3
  53. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/landing/landing.client.js +5 -2
  55. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  57. package/dist/prometheus-framework/src/modules/legal/legal.client.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/legal/legal.client.js +14 -10
  59. package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.js +8 -1
  61. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  63. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  65. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +9 -9
  68. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  70. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  74. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  76. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  78. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  80. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +10 -10
  82. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +61 -58
  84. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +6 -9
  86. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  94. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  96. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  98. package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/reports/reports.client.js +7 -1
  100. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  102. package/dist/prometheus-framework/src/modules/users/users.client.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/users/users.client.js +11 -8
  104. package/dist/prometheus-framework.es.js +15 -5
  105. package/dist/style.css +1 -1
  106. package/package.json +6 -10
  107. package/src/{main.ts โ†’ main.js} +1 -2
  108. package/src/modules/auth/auth.client.js +1 -1
  109. package/src/modules/backoffice/backoffice.client.js +1 -1
  110. package/src/modules/community/community.client.js +1 -1
  111. package/src/modules/events/events.client.js +1 -1
  112. package/src/modules/gallery/gallery.client.js +1 -1
  113. package/src/modules/globals/globals.client.js +1 -1
  114. package/src/modules/icons/icons.client.js +1 -1
  115. package/src/modules/landing/landing.client.js +1 -1
  116. package/src/modules/legal/legal.client.js +1 -1
  117. package/src/modules/middlewares/middlewares.client.js +1 -1
  118. package/src/modules/organizations/organizations.client.js +1 -1
  119. package/src/modules/organizations/router/organizations.js +6 -6
  120. package/src/modules/reports/reports.client.js +1 -1
  121. package/src/modules/users/users.client.js +1 -1
  122. /package/src/components/{index.ts โ†’ index.js} +0 -0
@@ -3,26 +3,26 @@ import { useRouter as v, useRoute as z } from "vue-router";
3
3
  import "../../../../../../node_modules/js-cookie/src/js.cookie.js";
4
4
  import "../../../../components/Tab/Tab.vue.js";
5
5
  import "../../../../components/Field/Field.vue.js";
6
- import "../../../../components/Select/Select.vue2.js";
6
+ import "../../../../components/Select/Select.vue.js";
7
7
  import "../../../../components/Button/Button.vue.js";
8
8
  import "../../../../components/Dropdown/Dropdown.vue2.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.vue2.js";
12
+ import "../../../../components/Popup/Popup.vue.js";
13
13
  import "../../../reports/store/reports.js";
14
14
  import { actions as q } from "../../store/organizations.js";
15
- import B from "../blocks/EmptyState.vue.js";
15
+ import $ 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 C from "../blocks/CardOrganization.vue.js";
22
+ import B from "../blocks/CardOrganization.vue.js";
23
23
  import "./Unit.vue.js";
24
24
  import "./Organizations.vue2.js";
25
- const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: "" }, O = {
25
+ const C = { class: "for-transition bg-white radius-big w-100" }, M = { class: "" }, N = {
26
26
  key: 1,
27
27
  class: "cols-1"
28
28
  }, te = {
@@ -50,16 +50,16 @@ const M = { class: "for-transition bg-white radius-big w-100" }, N = { 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, S) => (t(), n("div", M, [
54
- f("div", N, [
55
- o.value < 1 ? (t(), p(B, {
53
+ }), (e, O) => (t(), n("div", C, [
54
+ f("div", M, [
55
+ o.value < 1 ? (t(), p($, {
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", O, [
62
- (t(!0), n(g, null, h(o.value, (u) => (t(), p(C, {
61
+ }, null, 8, ["callback"])) : (t(), n("div", N, [
62
+ (t(!0), n(g, null, h(o.value, (u) => (t(), p(B, {
63
63
  key: u._id,
64
64
  organization: u,
65
65
  user: k.user,
@@ -1 +1 @@
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
+ "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,60 +1,63 @@
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";
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
+ };
30
61
  export {
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
62
+ mm as default
60
63
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),t=require("./organizations.router.cjs"),r=require("./departments.router.cjs"),o=require("./members.router.cjs"),u=require("./products.router.cjs"),n=[{path:"organizations",component:e.default,meta:{title:{en:"Organizations",ru:"ะžั€ะณะฐะฝะธะทะฐั†ะธะธ"}},children:[...t.default,...r.default,...u.default,...o.default]}];exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),t=require("./organizations.router.cjs"),o=[{path:"organizations",component:e.default,meta:{title:{en:"Organizations",ru:"ะžั€ะณะฐะฝะธะทะฐั†ะธะธ"}},children:[...t.default]}];exports.default=o;
@@ -1,9 +1,6 @@
1
1
  import o from "../../globals/components/layouts/Empty.vue.js";
2
2
  import t from "./organizations.router.js";
3
- import r from "./departments.router.js";
4
- import m from "./members.router.js";
5
- import e from "./products.router.js";
6
- const u = [{
3
+ const i = [{
7
4
  path: "organizations",
8
5
  component: o,
9
6
  meta: {
@@ -13,12 +10,12 @@ const u = [{
13
10
  }
14
11
  },
15
12
  children: [
16
- ...t,
17
- ...r,
18
- ...e,
19
- ...m
13
+ ...t
14
+ // ...departmentRoutes,
15
+ // ...productRoutes,
16
+ // ...membersRoutes
20
17
  ]
21
18
  }];
22
19
  export {
23
- u as default
20
+ i as default
24
21
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Field/Field.vue2.cjs"),m=require("../../../../components/Select/Select.vue.cjs"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),f=["disabled"],v={__name:"CardPosition",props:{product:Object,products:Array,quantity:Number,type:String,price:Number},emits:["add","remove"],setup(n,{emit:i}){const u=e.ref(null),a=e.ref(null),d=e.ref("pcs"),r=e.ref(null),s=e.computed(()=>u.value&&a.value>0&&r.value>0);function c(){i("add",{product:u.value,price:r.value,quantity:a.value,type:d.value})}return(p,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(b.default,{modelValue:u.value,"onUpdate:modelValue":l[0]||(l[0]=t=>u.value=t),options:n.products,label:"name",multiple:!1,taggable:!1,placeholder:"Select a product",class:"bg-grey pd-medium radius-small"},null,8,["modelValue","options"]),e.createVNode(o.default,{field:r.value,"onUpdate:field":l[1]||(l[1]=t=>r.value=t),type:"number",label:"Price",symbol:p.returnCurrency(),class:"bg-grey pd-medium radius-small"},null,8,["field","symbol"]),e.createVNode(o.default,{field:a.value,"onUpdate:field":l[3]||(l[3]=t=>a.value=t),type:"number",label:"Quantity",class:"bg-grey pd-medium radius-small"},{default:e.withCtx(()=>[e.createVNode(m.default,{select:d.value,"onUpdate:select":l[2]||(l[2]=t=>d.value=t),options:["pcs","g","ml"],class:"bg-white pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),e.createElementVNode("button",{disabled:!e.unref(s),onClick:c,class:"bg-main button"}," Add ",8,f)],64))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Field/Field.vue2.cjs"),m=require("../../../../components/Select/Select.vue2.cjs"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),f=["disabled"],v={__name:"CardPosition",props:{product:Object,products:Array,quantity:Number,type:String,price:Number},emits:["add","remove"],setup(n,{emit:i}){const u=e.ref(null),a=e.ref(null),d=e.ref("pcs"),r=e.ref(null),s=e.computed(()=>u.value&&a.value>0&&r.value>0);function c(){i("add",{product:u.value,price:r.value,quantity:a.value,type:d.value})}return(p,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(b.default,{modelValue:u.value,"onUpdate:modelValue":l[0]||(l[0]=t=>u.value=t),options:n.products,label:"name",multiple:!1,taggable:!1,placeholder:"Select a product",class:"bg-grey pd-medium radius-small"},null,8,["modelValue","options"]),e.createVNode(o.default,{field:r.value,"onUpdate:field":l[1]||(l[1]=t=>r.value=t),type:"number",label:"Price",symbol:p.returnCurrency(),class:"bg-grey pd-medium radius-small"},null,8,["field","symbol"]),e.createVNode(o.default,{field:a.value,"onUpdate:field":l[3]||(l[3]=t=>a.value=t),type:"number",label:"Quantity",class:"bg-grey pd-medium radius-small"},{default:e.withCtx(()=>[e.createVNode(m.default,{select:d.value,"onUpdate:select":l[2]||(l[2]=t=>d.value=t),options:["pcs","g","ml"],class:"bg-white pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),e.createElementVNode("button",{disabled:!e.unref(s),onClick:c,class:"bg-main button"}," Add ",8,f)],64))}};exports.default=v;
@@ -1,6 +1,6 @@
1
1
  import { ref as o, computed as b, openBlock as f, createElementBlock as y, Fragment as v, createVNode as d, withCtx as g, createElementVNode as V, unref as P } from "vue";
2
2
  import i from "../../../../components/Field/Field.vue2.js";
3
- import C from "../../../../components/Select/Select.vue.js";
3
+ import C from "../../../../components/Select/Select.vue2.js";
4
4
  import N from "../../../../components/SelectMulti/SelectMulti.vue.js";
5
5
  const S = ["disabled"], w = {
6
6
  __name: "CardPosition",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Popup/Popup.vue.cjs"),c=require("../../../../components/Magnifier/Magnifier.vue.cjs");require("./ImagesThumbnails.vue2.cjs");const d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),p={class:"product-images"},m={class:"no-responsive cols-4 thumbnails"},g=["src","onClick"],_={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(o){const t=e.ref(!1),r=e.ref(0),i=s=>{r.value=s,t.value=!0},l=()=>{t.value=!1};return(s,h)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.images,(n,a)=>(e.openBlock(),e.createElementBlock("img",{key:a,src:(s.FILE_SERVER_URL||"")+n,onClick:v=>i(a),class:"radius-medium bg-white o-hidden thumbnail"},null,8,g))),128))]),e.createVNode(u.default,{onClosePopup:l,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(c.default,{imageSrc:s.path+o.images[r.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},f=d.default(_,[["__scopeId","data-v-732c99c3"]]);exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Popup/Popup.vue2.cjs"),c=require("../../../../components/Magnifier/Magnifier.vue.cjs");require("./ImagesThumbnails.vue2.cjs");const d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),p={class:"product-images"},m={class:"no-responsive cols-4 thumbnails"},g=["src","onClick"],_={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(o){const t=e.ref(!1),r=e.ref(0),i=s=>{r.value=s,t.value=!0},l=()=>{t.value=!1};return(s,h)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.images,(n,a)=>(e.openBlock(),e.createElementBlock("img",{key:a,src:(s.FILE_SERVER_URL||"")+n,onClick:v=>i(a),class:"radius-medium bg-white o-hidden thumbnail"},null,8,g))),128))]),e.createVNode(u.default,{onClosePopup:l,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(c.default,{imageSrc:s.path+o.images[r.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},f=d.default(_,[["__scopeId","data-v-732c99c3"]]);exports.default=f;
@@ -1,5 +1,5 @@
1
1
  import { ref as r, openBlock as o, createElementBlock as i, createElementVNode as p, Fragment as d, renderList as _, createVNode as c, withCtx as f } from "vue";
2
- import g from "../../../../components/Popup/Popup.vue.js";
2
+ import g from "../../../../components/Popup/Popup.vue2.js";
3
3
  import h from "../../../../components/Magnifier/Magnifier.vue.js";
4
4
  import "./ImagesThumbnails.vue2.js";
5
5
  import v from "../../../../../../_virtual/_plugin-vue_export-helper.js";
@@ -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");const h=require("../../../../components/Select/Select.vue.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const _=require("../blocks/LeftoverPositions.vue.cjs"),v=require("../blocks/CardPosition.vue.cjs"),l=require("vue-router"),t=require("../../store/leftovers.cjs"),i=require("../../store/products.cjs");require("./LeftoverAdd.vue2.cjs");const y=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Inventory")],-1),N=e.createElementVNode("h5",{class:"mn-small"},"Select Type",-1),V=e.createElementVNode("h5",{class:"mn-small"},"Add Position",-1),k={class:"mn-semi gap-thin flex-nowrap flex"},q={class:"gap-thin flex-v-center flex-nojustify flex"},E={class:"mn-r-auto"},g={__name:"LeftoverAdd",setup(b){const s=l.useRoute(),n=l.useRouter(),c=e.ref(i.state.all),u=e.computed(()=>t.state.current.positions.reduce((r,o)=>r+o.price*(o.quantity||1),0));e.onMounted(async()=>{if(s.params._id)try{await t.actions.fetch(s.params._id)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const r=await i.actions.read({organization:"65141c476cf9860013b49f6d"});c.value=r}catch{console.error("error")}});function d(){s.params._id?t.actions.fetch(s.params._id):t.state.current={type:"",order:"",positions:[]}}function m(r){t.actions.addProductToLeftover(r)}function f(){s.params._id?t.actions.update(t.state.current).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error")):t.actions.create(t.state.current).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error"))}function p(){t.actions.delete(s.params._id).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error"))}return(r,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y,N,e.createVNode(h.default,{select:t.state.current.type,"onUpdate:select":o[0]||(o[0]=a=>t.state.current.type=a),options:["stock-in","stock-out","write-off"],placeholder:"Select type",class:"mn-semi bg-grey pd-medium radius-small"},null,8,["select"]),V,e.createElementVNode("div",k,[e.createVNode(v.default,{onAdd:m,products:c.value},null,8,["products"])]),e.createElementVNode("h5",{class:"mn-small"},[e.createTextVNode(" Invetory Sheet "),e.createElementVNode("a",{class:"mn-l-thin t-main",onClick:d}," Reset ")]),e.createVNode(_.default,{order:t.state.current,products:c.value,class:"mn-semi"},null,8,["order","products"]),e.createElementVNode("section",q,[e.createElementVNode("h3",E," In total: "+e.toDisplayString(r.formatPrice(e.unref(u))),1),e.createElementVNode("a",{onClick:o[1]||(o[1]=a=>f()),class:"bg-main button"}," Save "),e.unref(s).params._id?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:o[2]||(o[2]=a=>p()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])],64))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");const h=require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const _=require("../blocks/LeftoverPositions.vue.cjs"),v=require("../blocks/CardPosition.vue.cjs"),l=require("vue-router"),t=require("../../store/leftovers.cjs"),i=require("../../store/products.cjs");require("./LeftoverAdd.vue2.cjs");const y=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Inventory")],-1),N=e.createElementVNode("h5",{class:"mn-small"},"Select Type",-1),V=e.createElementVNode("h5",{class:"mn-small"},"Add Position",-1),k={class:"mn-semi gap-thin flex-nowrap flex"},q={class:"gap-thin flex-v-center flex-nojustify flex"},E={class:"mn-r-auto"},g={__name:"LeftoverAdd",setup(b){const s=l.useRoute(),n=l.useRouter(),c=e.ref(i.state.all),u=e.computed(()=>t.state.current.positions.reduce((r,o)=>r+o.price*(o.quantity||1),0));e.onMounted(async()=>{if(s.params._id)try{await t.actions.fetch(s.params._id)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const r=await i.actions.read({organization:"65141c476cf9860013b49f6d"});c.value=r}catch{console.error("error")}});function d(){s.params._id?t.actions.fetch(s.params._id):t.state.current={type:"",order:"",positions:[]}}function m(r){t.actions.addProductToLeftover(r)}function f(){s.params._id?t.actions.update(t.state.current).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error")):t.actions.create(t.state.current).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error"))}function p(){t.actions.delete(s.params._id).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error"))}return(r,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y,N,e.createVNode(h.default,{select:t.state.current.type,"onUpdate:select":o[0]||(o[0]=a=>t.state.current.type=a),options:["stock-in","stock-out","write-off"],placeholder:"Select type",class:"mn-semi bg-grey pd-medium radius-small"},null,8,["select"]),V,e.createElementVNode("div",k,[e.createVNode(v.default,{onAdd:m,products:c.value},null,8,["products"])]),e.createElementVNode("h5",{class:"mn-small"},[e.createTextVNode(" Invetory Sheet "),e.createElementVNode("a",{class:"mn-l-thin t-main",onClick:d}," Reset ")]),e.createVNode(_.default,{order:t.state.current,products:c.value,class:"mn-semi"},null,8,["order","products"]),e.createElementVNode("section",q,[e.createElementVNode("h3",E," In total: "+e.toDisplayString(r.formatPrice(e.unref(u))),1),e.createElementVNode("a",{onClick:o[1]||(o[1]=a=>f()),class:"bg-main button"}," Save "),e.unref(s).params._id?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:o[2]||(o[2]=a=>p()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])],64))}};exports.default=g;
@@ -1,6 +1,6 @@
1
1
  import { ref as y, computed as k, onMounted as x, openBlock as m, createElementBlock as u, Fragment as g, createVNode as l, createElementVNode as r, createTextVNode as b, toDisplayString as S, unref as d, createCommentVNode as w } from "vue";
2
2
  import "../../../../components/Field/Field.vue.js";
3
- import L from "../../../../components/Select/Select.vue.js";
3
+ import L from "../../../../components/Select/Select.vue2.js";
4
4
  import "../../../../components/SelectMulti/SelectMulti.vue2.js";
5
5
  import P from "../blocks/LeftoverPositions.vue.js";
6
6
  import $ from "../blocks/CardPosition.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"),g=require("../../../../components/Breadcrumbs/Breadcrumbs.vue2.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");const N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");const E=require("../sections/EditProductInfo.vue.cjs"),i=require("../sections/EditParameters.vue.cjs"),V=require("../sections/EditProductImages.vue.cjs"),t=require("../../store/products.cjs"),d=require("../../store/categories.cjs");require("./ProductEdit.vue2.cjs");const v={class:"for-transition w-100"},q={class:"pd-b-zero pd-t-zero pd-thin"},k={class:"pd-thin"},y={class:"flex-nowrap flex bg-grey pd-medium radius-big"},B={key:0,class:"mn-r-auto"},x={key:1,class:"mn-r-auto"},P={class:"flex-nowrap flex pd-thin"},w={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},z={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},I=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),C={class:"mn-semi"},A=e.createElementVNode("h5",null,"Categories",-1),L={class:""},M={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},S=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),R={__name:"ProductEdit",async setup(T){let a,r;const o=c.useRoute(),l=c.useRouter();[a,r]=e.withAsyncContext(()=>d.actions.fetchCategories()),await a,r(),o.params.product&&([a,r]=e.withAsyncContext(()=>t.actions.read({_id:o.params.product})),await a,r());function u(){t.state.current.information.push({name:"",value:""})}function m(s){t.state.current.information.splice(s,1)}function p(){t.state.current.localization.push({locale:"",text:""})}function _(s){t.state.current.localization.splice(s,1)}function h(){o.params.product?t.actions.update(o.params.product,t.state.current):t.actions.create(o.params._id,t.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:o.params._id,product:t.state.current._id}})}return(s,D)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",q,[e.createVNode(g.default,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",k,[e.createElementVNode("header",y,[e.unref(o).params.product?(e.openBlock(),e.createElementBlock("h1",B,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",x,"Create Product")),e.createElementVNode("section",P,[e.createVNode(b.default,{submit:h,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",w,[e.createElementVNode("div",z,[I,e.createVNode(E.default,{product:t.state.current},null,8,["product"]),e.createElementVNode("div",C,[A,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.state.all,(n,$)=>(e.openBlock(),e.createBlock(N.default,{label:n.name,name:"categories",value:n.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(i.default,{items:t.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:u,onDeleteInfo:m},null,8,["items"]),e.createVNode(i.default,{items:t.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:p,onDeleteInfo:_},null,8,["items"])]),e.createElementVNode("div",L,[e.createElementVNode("div",M,[S,e.createVNode(V.default,{product:t.state.current},null,8,["product"])])])])]))}};exports.default=R;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),g=require("../../../../components/Breadcrumbs/Breadcrumbs.vue2.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");const N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue.cjs");const E=require("../sections/EditProductInfo.vue.cjs"),i=require("../sections/EditParameters.vue.cjs"),V=require("../sections/EditProductImages.vue.cjs"),t=require("../../store/products.cjs"),d=require("../../store/categories.cjs");require("./ProductEdit.vue2.cjs");const v={class:"for-transition w-100"},q={class:"pd-b-zero pd-t-zero pd-thin"},k={class:"pd-thin"},y={class:"flex-nowrap flex bg-grey pd-medium radius-big"},B={key:0,class:"mn-r-auto"},x={key:1,class:"mn-r-auto"},P={class:"flex-nowrap flex pd-thin"},w={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},z={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},I=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),C={class:"mn-semi"},A=e.createElementVNode("h5",null,"Categories",-1),L={class:""},M={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},S=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),R={__name:"ProductEdit",async setup(T){let a,r;const o=c.useRoute(),l=c.useRouter();[a,r]=e.withAsyncContext(()=>d.actions.fetchCategories()),await a,r(),o.params.product&&([a,r]=e.withAsyncContext(()=>t.actions.read({_id:o.params.product})),await a,r());function u(){t.state.current.information.push({name:"",value:""})}function m(s){t.state.current.information.splice(s,1)}function p(){t.state.current.localization.push({locale:"",text:""})}function _(s){t.state.current.localization.splice(s,1)}function h(){o.params.product?t.actions.update(o.params.product,t.state.current):t.actions.create(o.params._id,t.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:o.params._id,product:t.state.current._id}})}return(s,D)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",q,[e.createVNode(g.default,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",k,[e.createElementVNode("header",y,[e.unref(o).params.product?(e.openBlock(),e.createElementBlock("h1",B,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",x,"Create Product")),e.createElementVNode("section",P,[e.createVNode(b.default,{submit:h,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",w,[e.createElementVNode("div",z,[I,e.createVNode(E.default,{product:t.state.current},null,8,["product"]),e.createElementVNode("div",C,[A,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.state.all,(n,$)=>(e.openBlock(),e.createBlock(N.default,{label:n.name,name:"categories",value:n.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(i.default,{items:t.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:u,onDeleteInfo:m},null,8,["items"]),e.createVNode(i.default,{items:t.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:p,onDeleteInfo:_},null,8,["items"])]),e.createElementVNode("div",L,[e.createElementVNode("div",M,[S,e.createVNode(V.default,{product:t.state.current},null,8,["product"])])])])]))}};exports.default=R;
@@ -3,11 +3,11 @@ import { useRoute as I, useRouter as P } from "vue-router";
3
3
  import $ from "../../../../components/Breadcrumbs/Breadcrumbs.vue2.js";
4
4
  import "../../../../components/Tab/Tab.vue.js";
5
5
  import "../../../../components/Field/Field.vue.js";
6
- import "../../../../components/Select/Select.vue2.js";
6
+ import "../../../../components/Select/Select.vue.js";
7
7
  import C from "../../../../components/Checkbox/Checkbox.vue.js";
8
8
  import L from "../../../../components/Button/Button.vue2.js";
9
9
  import "vue-i18n";
10
- import "../../../../components/Popup/Popup.vue2.js";
10
+ import "../../../../components/Popup/Popup.vue.js";
11
11
  import A from "../sections/EditProductInfo.vue.js";
12
12
  import u from "../sections/EditParameters.vue.js";
13
13
  import B from "../sections/EditProductImages.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");const o={class:"mn-big flex-column flex"},c={__name:"EditProductInfo",props:{product:Object},setup(r){const t=r;return e.toRefs(t),(u,s)=>(e.openBlock(),e.createElementBlock("div",o))}};exports.default=c;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");const o={class:"mn-big flex-column flex"},c={__name:"EditProductInfo",props:{product:Object},setup(r){const t=r;return e.toRefs(t),(u,s)=>(e.openBlock(),e.createElementBlock("div",o))}};exports.default=c;
@@ -1,7 +1,7 @@
1
1
  import { toRefs as t, openBlock as e, createElementBlock as r } from "vue";
2
2
  import "../../../../components/Button/Button.vue.js";
3
3
  import "../../../../components/Field/Field.vue.js";
4
- import "../../../../components/Select/Select.vue2.js";
4
+ import "../../../../components/Select/Select.vue.js";
5
5
  const c = { class: "mn-big flex-column flex" }, a = {
6
6
  __name: "EditProductInfo",
7
7
  props: {
@@ -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.vue2.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),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.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,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
- import v from "../../../../components/Popup/Popup.vue.js";
2
+ import v from "../../../../components/Popup/Popup.vue2.js";
3
3
  import w from "../../../../components/Button/Button.vue2.js";
4
- import S from "../../../../components/Select/Select.vue.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.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./store/reports.cjs");exports.reportsStore=e;
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,4 +1,10 @@
1
1
  import * as r from "./store/reports.js";
2
+ const t = {
3
+ // Profile,
4
+ // ProfileEdit,
5
+ reportsStore: r
6
+ // usersRoutes
7
+ };
2
8
  export {
3
- r as reportsStore
9
+ t as default
4
10
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const h=require("../../../../components/Dropdown/Dropdown.vue.cjs"),d=require("../../../mobile/components/Menu/Menu.vue2.cjs"),l=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),g=require("../../../reports/components/sections/FormReport.vue.cjs"),b=require("../../../organizations/components/blocks/Socials.vue.cjs"),N=require("../sections/ProfileCompletion.vue.cjs"),V=require("../../../icons/entities/IconEvents.vue.cjs"),B=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),E=require("../../../icons/navigation/IconEdit.vue.cjs"),C=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),f=require("vue-router"),a=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),y=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const v={key:0,class:"for-transition w-100"},x={key:0,class:"flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey"},M={class:"bg-black pd-thin radius-small"},R=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),U=["src"],$={class:"mn-thin"},D={class:"mn-thin t-main t-semi"},O={class:"mn-small p-medium"},I={class:"mn-medium flex-center flex-nowrap flex"},L={class:"t-semi mn-small"},P={key:5,class:"mn-t-small mn-thin"},F=e.createElementVNode("span",null," Backoffice ",-1),j=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),T=e.createElementVNode("span",null,"Posts",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),H=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),J={__name:"Profile",setup(K){const o=f.useRoute(),n=f.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:o.params._id,user:a.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{y.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function _(){a.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",v,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",x," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(o).params._id===a.state.user._id&&u.value?(e.openBlock(),e.createBlock(N.default,{key:0,user:a.state.user._id,target:t.state.current,cta:!0},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",M,[e.createVNode(g.default,{user:a.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[R]),_:1},8,["user","target"]),a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:a.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(o).params._id===a.state.user._id?(e.openBlock(),e.createBlock(E.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:a.state.user._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-small object-fit-cover i-extra"},null,8,U)):(e.openBlock(),e.createBlock(C.default,{key:3,class:"radius-medium mn-small i-extra"})),e.createElementVNode("h3",$,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Not specified"),1),e.createElementVNode("p",D," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1),e.createElementVNode("p",O,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",L," ๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),a.state.user._id&&e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:4,user:a.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",P," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(b.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),a.state.access.roles&&a.state.user._id===e.unref(o).params._id&&(a.state.access.roles.includes("ROLE_MODERATOR")||a.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-regular bg-black t-white"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"Backoffice",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer",theme:"white"},{default:e.withCtx(()=>[F]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"mn-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(V.default,{class:"i-semi",icon:!0}),j]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),T]),_:1})]),_:1}),a.state.user._id===e.unref(o).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>_())},{default:e.withCtx(()=>[H]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const h=require("../../../../components/Dropdown/Dropdown.vue.cjs"),d=require("../../../mobile/components/Menu/Menu.vue.cjs"),l=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),g=require("../../../reports/components/sections/FormReport.vue.cjs"),b=require("../../../organizations/components/blocks/Socials.vue.cjs"),N=require("../sections/ProfileCompletion.vue.cjs"),V=require("../../../icons/entities/IconEvents.vue.cjs"),B=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),E=require("../../../icons/navigation/IconEdit.vue.cjs"),C=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),f=require("vue-router"),a=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),y=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const v={key:0,class:"for-transition w-100"},x={key:0,class:"flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey"},M={class:"bg-black pd-thin radius-small"},R=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),U=["src"],$={class:"mn-thin"},D={class:"mn-thin t-main t-semi"},O={class:"mn-small p-medium"},I={class:"mn-medium flex-center flex-nowrap flex"},L={class:"t-semi mn-small"},P={key:5,class:"mn-t-small mn-thin"},F=e.createElementVNode("span",null," Backoffice ",-1),j=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),T=e.createElementVNode("span",null,"Posts",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),H=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),J={__name:"Profile",setup(K){const o=f.useRoute(),n=f.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:o.params._id,user:a.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{y.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function _(){a.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",v,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",x," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(o).params._id===a.state.user._id&&u.value?(e.openBlock(),e.createBlock(N.default,{key:0,user:a.state.user._id,target:t.state.current,cta:!0},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",M,[e.createVNode(g.default,{user:a.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[R]),_:1},8,["user","target"]),a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:a.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(o).params._id===a.state.user._id?(e.openBlock(),e.createBlock(E.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:a.state.user._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-small object-fit-cover i-extra"},null,8,U)):(e.openBlock(),e.createBlock(C.default,{key:3,class:"radius-medium mn-small i-extra"})),e.createElementVNode("h3",$,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Not specified"),1),e.createElementVNode("p",D," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1),e.createElementVNode("p",O,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",L," ๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),a.state.user._id&&e.unref(o).params._id&&e.unref(o).params._id!==a.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:4,user:a.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",P," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(b.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),a.state.access.roles&&a.state.user._id===e.unref(o).params._id&&(a.state.access.roles.includes("ROLE_MODERATOR")||a.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-regular bg-black t-white"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"Backoffice",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer",theme:"white"},{default:e.withCtx(()=>[F]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"mn-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(V.default,{class:"i-semi",icon:!0}),j]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),T]),_:1})]),_:1}),a.state.user._id===e.unref(o).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>_())},{default:e.withCtx(()=>[H]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=J;
@@ -2,7 +2,7 @@ import { ref as $, onMounted as E, openBlock as a, createElementBlock as p, unre
2
2
  import "../../../../components/Field/Field.vue.js";
3
3
  import "../../../../components/Button/Button.vue.js";
4
4
  import S from "../../../../components/Dropdown/Dropdown.vue.js";
5
- import k from "../../../mobile/components/Menu/Menu.vue2.js";
5
+ import k from "../../../mobile/components/Menu/Menu.vue.js";
6
6
  import _ from "../../../mobile/components/Menu/MenuItem.vue.js";
7
7
  import w from "../../../organizations/components/elements/ButtonToggleMembership.vue.js";
8
8
  import B from "../../../reports/components/sections/FormReport.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/pages/Profile.vue.cjs"),r=require("./components/pages/ProfileEdit.vue.cjs"),t=require("./store/users.cjs"),s=require("./router/users.cjs");exports.Profile=e.default;exports.ProfileEdit=r.default;exports.usersStore=t;exports.usersRoutes=s.default;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./components/pages/Profile.vue.cjs"),r=require("./components/pages/ProfileEdit.vue.cjs"),t=require("./store/users.cjs"),s=require("./router/users.cjs"),u={Profile:e.default,ProfileEdit:r.default,usersStore:t,usersRoutes:s.default};exports.default=u;
@@ -1,10 +1,13 @@
1
- import { default as s } from "./components/pages/Profile.vue.js";
2
- import { default as f } from "./components/pages/ProfileEdit.vue.js";
3
- import * as r from "./store/users.js";
4
- import { default as u } from "./router/users.js";
1
+ import r from "./components/pages/Profile.vue.js";
2
+ import s from "./components/pages/ProfileEdit.vue.js";
3
+ import * as o from "./store/users.js";
4
+ import e from "./router/users.js";
5
+ const f = {
6
+ Profile: r,
7
+ ProfileEdit: s,
8
+ usersStore: o,
9
+ usersRoutes: e
10
+ };
5
11
  export {
6
- s as Profile,
7
- f as ProfileEdit,
8
- u as usersRoutes,
9
- r as usersStore
12
+ f as default
10
13
  };
@@ -2481,6 +2481,7 @@ function ce(e) {
2481
2481
  }
2482
2482
  const Ql = /* @__PURE__ */ rn({
2483
2483
  name: "Vue3ReactiveTelInput",
2484
+ // vue component name
2484
2485
  directives: {
2485
2486
  clickOutside: Vi
2486
2487
  },
@@ -2567,7 +2568,7 @@ const Ql = /* @__PURE__ */ rn({
2567
2568
  default: !1
2568
2569
  },
2569
2570
  /**
2570
- * customized validation RegExp or flag
2571
+ * customized validation RegExp or flag
2571
2572
  */
2572
2573
  customValidate: {
2573
2574
  type: [Boolean, RegExp],
@@ -2702,7 +2703,7 @@ const Ql = /* @__PURE__ */ rn({
2702
2703
  default: () => ""
2703
2704
  },
2704
2705
  /**
2705
- * the input id
2706
+ * the input id
2706
2707
  */
2707
2708
  inputId: {
2708
2709
  type: [String, Array, Object],
@@ -2789,7 +2790,9 @@ const Ql = /* @__PURE__ */ rn({
2789
2790
  return this.mode === "auto" ? !this.phone || this.phone[0] !== "+" ? "national" : "international" : ["international", "national"].includes(this.mode) ? this.mode : (console.error('Invalid value of prop "mode"'), "international");
2790
2791
  },
2791
2792
  filteredCountries() {
2792
- return this.onlyCountries.length ? this.allCountries.filter(({ iso2: e }) => this.onlyCountries.some((t) => t.toUpperCase() === e)) : this.ignoredCountries.length ? this.allCountries.filter(({ iso2: e }) => !this.ignoredCountries.includes(e.toUpperCase()) && !this.ignoredCountries.includes(e.toLowerCase())) : this.allCountries;
2793
+ return this.onlyCountries.length ? this.allCountries.filter(({ iso2: e }) => this.onlyCountries.some((t) => t.toUpperCase() === e)) : this.ignoredCountries.length ? this.allCountries.filter(
2794
+ ({ iso2: e }) => !this.ignoredCountries.includes(e.toUpperCase()) && !this.ignoredCountries.includes(e.toLowerCase())
2795
+ ) : this.allCountries;
2793
2796
  },
2794
2797
  sortedCountries() {
2795
2798
  return [...this.getCountries(this.preferredCountries).map((t) => ({ ...t, preferred: !0 })), ...this.filteredCountries];
@@ -2798,7 +2801,10 @@ const Ql = /* @__PURE__ */ rn({
2798
2801
  var a, o, s;
2799
2802
  let e;
2800
2803
  ((a = this.phone) == null ? void 0 : a[0]) === "+" ? e = _n(this.phone) || {} : e = _n(this.phone, this.activeCountryCode) || {};
2801
- const { metadata: t, ...n } = e;
2804
+ const {
2805
+ metadata: t,
2806
+ ...n
2807
+ } = e;
2802
2808
  console.log(e);
2803
2809
  let r = (o = e.isValid) == null ? void 0 : o.call(e), i = this.phone;
2804
2810
  return r && (i = (s = e.format) == null ? void 0 : s.call(e, this.parsedMode.toUpperCase(), { nationalPrefix: !1 })), e.country && (this.ignoredCountries.length || this.onlyCountries.length) && (this.findCountry(e.country) || (r = !1, Object.assign(e, { country: null }))), Object.assign(n, {
@@ -2868,7 +2874,10 @@ const Ql = /* @__PURE__ */ rn({
2868
2874
  let t = e;
2869
2875
  if (typeof t == "string" && (t = this.findCountry(t)), !!t) {
2870
2876
  if (((n = this.phone) == null ? void 0 : n[0]) === "+" && t.iso2 && this.phoneObject.nationalNumber) {
2871
- this.activeCountryCode = t.iso2, this.phone = _n(this.phoneObject.nationalNumber, t.iso2).formatInternational();
2877
+ this.activeCountryCode = t.iso2, this.phone = _n(
2878
+ this.phoneObject.nationalNumber,
2879
+ t.iso2
2880
+ ).formatInternational();
2872
2881
  return;
2873
2882
  }
2874
2883
  if ((r = this.inputOptions) != null && r.showDialCode && t) {
@@ -8980,6 +8989,7 @@ const z1 = {
8980
8989
  __name: "UploadImage",
8981
8990
  props: [
8982
8991
  "uploadPath",
8992
+ // only necessary prop
8983
8993
  "photo"
8984
8994
  // new prop for holding the image url
8985
8995
  ],