@ozdao/prometheus-framework 0.2.194 → 0.2.196

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/Sidebar/Sidebar.vue.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/Sidebar/Sidebar.vue.js +1 -1
  4. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  5. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +12 -12
  6. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  7. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  8. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
  10. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  11. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +7 -3
  12. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +102 -74
  14. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +69 -131
  16. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +46 -46
  18. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  20. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  22. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  24. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  26. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  28. package/dist/prometheus-framework.cjs.js +92 -1
  29. package/dist/prometheus-framework.es.js +12891 -36
  30. package/dist/style.css +1 -1
  31. package/package.json +1 -1
  32. package/src/components/index.js +0 -1
  33. package/src/main.js +0 -3
  34. package/src/modules/backoffice/components/layouts/Backoffice.vue +3 -2
  35. package/src/modules/backoffice/router/backoffice.js +10 -2
  36. package/src/modules/globals/views/components/layouts/App.vue +55 -9
  37. package/src/modules/globals/views/components/layouts/Client.vue +34 -71
  38. package/src/modules/globals/views/components/partials/Header.vue +1 -4
  39. package/src/{components/Sidebar → modules/globals/views/components/partials}/Sidebar.vue +2 -4
  40. package/src/styles/layout.scss +1 -0
@@ -1,166 +1,104 @@
1
- import { ref as l, computed as C, onMounted as P, resolveComponent as B, openBlock as s, createElementBlock as L, createVNode as r, Transition as v, withCtx as a, createBlock as n, createCommentVNode as u, unref as b, normalizeClass as O, createElementVNode as x, Suspense as R, resolveDynamicComponent as T } from "vue";
2
- import { useRoute as E, useRouter as I } from "vue-router";
3
- import { state as e } from "../../store/globals.js";
4
- import N from "../../../../../components/Loader/Loader.vue2.js";
5
- import z from "../../../../../components/Status/Status.vue.js";
6
- import V from "../../../../../components/Sidebar/Sidebar.vue.js";
7
- import W from "../../../../../components/Popup/Popup.vue.js";
1
+ import { ref as e, computed as k, onMounted as C, resolveComponent as y, openBlock as r, createElementBlock as P, createVNode as o, Transition as u, withCtx as a, createBlock as s, createCommentVNode as m, Suspense as O, resolveDynamicComponent as L } from "vue";
2
+ import { useRoute as S, useRouter as x } from "vue-router";
3
+ import { state as t } from "../../store/globals.js";
4
+ import B from "../../../../../components/Loader/Loader.vue2.js";
5
+ import I from "../../../../../components/Status/Status.vue.js";
6
+ import E from "../../../../../components/Popup/Popup.vue.js";
8
7
  import "vue-i18n";
9
8
  /* empty css */
10
- import Y from "../partials/LocationSelection.vue.js";
11
- import F from "../partials/Navigation.vue.js";
9
+ import W from "../partials/LocationSelection.vue.js";
12
10
  import "../../../../products/store/categories.js";
13
- import M from "../partials/BottomNavigation.vue.js";
14
- import j from "../../../../orders/components/partials/ShopCart.vue.js";
11
+ import $ from "../../../../orders/components/partials/ShopCart.vue.js";
15
12
  /* empty css */
16
- const q = {
13
+ const N = {
17
14
  id: "app-wrapper",
18
15
  class: "pos-relative"
19
- }, ie = {
16
+ }, H = {
20
17
  __name: "Client",
21
- setup(A) {
22
- const m = E();
23
- I();
24
- let g = l(!1);
25
- const d = l(null), h = l(null), _ = l(m.query.referalCode);
26
- function $() {
27
- e.isOpenLocationPopup = !1;
18
+ setup(T) {
19
+ const p = S();
20
+ x();
21
+ let f = e(!1);
22
+ const i = e(null);
23
+ e(null);
24
+ const c = e(p.query.referalCode);
25
+ function d() {
26
+ t.isOpenLocationPopup = !1;
28
27
  }
29
- function w() {
28
+ function _() {
30
29
  document.getElementById("app").scrollIntoView();
31
30
  }
32
- const p = l(0);
33
- let c = !1;
34
- const o = l(null);
35
- C(() => p.value > 50 ? "light" : m.meta.header_theme || "light");
36
- const y = () => {
37
- if (p.value = event.target.scrollTop, p.value > 50 && !c) {
38
- c = !0, o.value.$el.classList.add("scrolled");
39
- const t = -o.value.$el.getBoundingClientRect().top;
40
- o.value.$el.style.transform = `translateY(${t}px)`, setTimeout(() => {
41
- o.value.$el.style.transform = "translateY(0)";
42
- }, 0);
43
- } else if (p.value <= 75 && c) {
44
- c = !1, o.value.$el.classList.remove("scrolled");
45
- const t = o.value.$el.getBoundingClientRect().top;
46
- o.value.$el.style.transform = `translateY(${t}px)`, setTimeout(() => {
47
- o.value.$el.style.transform = "translateY(0)";
48
- }, 0);
49
- }
50
- };
51
- return P(async () => {
31
+ const v = e(0);
32
+ return e(null), k(() => v.value > 50 ? "light" : p.meta.header_theme || "light"), C(async () => {
52
33
  "serviceWorker" in navigator && window.addEventListener("load", () => {
53
- navigator.serviceWorker.register("/service-worker.js").then((t) => {
54
- console.log("SW registered: ", t);
55
- }).catch((t) => {
56
- console.log("SW registration failed: ", t);
34
+ navigator.serviceWorker.register("/service-worker.js").then((n) => {
35
+ console.log("SW registered: ", n);
36
+ }).catch((n) => {
37
+ console.log("SW registration failed: ", n);
57
38
  });
58
- }), d && (g.value = !0);
59
- const i = localStorage.getItem("position");
60
- i ? e.position = JSON.parse(i) : e.isOpenLocationPopup = !0, _.value && localStorage.setItem("referalCode", _.value);
61
- }), (i, t) => {
62
- const k = B("router-view");
63
- return s(), L("div", q, [
64
- r(v, {
39
+ }), i && (f.value = !0);
40
+ const l = localStorage.getItem("position");
41
+ l ? t.position = JSON.parse(l) : t.isOpenLocationPopup = !0, c.value && localStorage.setItem("referalCode", c.value);
42
+ }), (l, n) => {
43
+ const g = y("router-view");
44
+ return r(), P("div", N, [
45
+ o(u, {
65
46
  name: "moveFromTop",
66
47
  appear: ""
67
48
  }, {
68
49
  default: a(() => [
69
- d.value ? u("", !0) : (s(), n(N, {
50
+ i.value ? m("", !0) : (r(), s(B, {
70
51
  key: 0,
71
52
  class: "pos-fixed"
72
53
  }))
73
54
  ]),
74
55
  _: 1
75
56
  }),
76
- r(v, {
77
- name: "moveFromTop",
78
- mode: "out-in",
79
- appear: ""
80
- }, {
81
- default: a(() => [
82
- b(g) && e.isOpenSidebar ? (s(), n(V, {
83
- key: 0,
84
- stateSidebar: e.isOpenSidebar,
85
- onCloseSidebar: t[0] || (t[0] = () => {
86
- e.isOpenSidebar = !e.isOpenSidebar;
87
- }),
88
- class: O(["transition-ease-in-out pos-absolute w-70 z-index-0 bg-light", {
89
- "pos-l-70-negative": !e.isOpenSidebar,
90
- "pos-l-0": e.isOpenSidebar
91
- }])
92
- }, {
93
- default: a(() => [
94
- r(F, { class: "h3 pd-big cols-1" })
95
- ]),
96
- _: 1
97
- }, 8, ["stateSidebar", "class"])) : u("", !0)
98
- ]),
99
- _: 1
100
- }),
101
- r(W, {
102
- onClosePopup: $,
103
- isPopupOpen: e.isOpenLocationPopup,
57
+ o(E, {
58
+ onClosePopup: d,
59
+ isPopupOpen: t.isOpenLocationPopup,
104
60
  class: "bg-white pd-semi w-m-33r radius-big"
105
61
  }, {
106
62
  default: a(() => [
107
- r(Y)
63
+ o(W)
108
64
  ]),
109
65
  _: 1
110
66
  }, 8, ["isPopupOpen"]),
111
- x("section", {
112
- id: "screen",
113
- ref_key: "screen",
114
- ref: h,
115
- onScroll: y,
116
- onClick: t[1] || (t[1] = (S) => e.isOpenSidebar ? (f) => e.isOpenSidebar = !1 : (f) => {
117
- console.log("not succes");
118
- }),
119
- class: O(["transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll", {
120
- "pos-l-70": e.isOpenSidebar,
121
- "pos-l-0": !e.isOpenSidebar
122
- }])
123
- }, [
124
- r(j),
125
- e.error.show ? (s(), n(z, {
126
- key: 0,
127
- data: e.error,
128
- class: "z-index-7"
129
- }, null, 8, ["data"])) : u("", !0),
130
- (s(), n(R, null, {
131
- default: a(() => [
132
- r(k, null, {
133
- default: a(({ Component: S, route: f }) => [
134
- r(v, {
135
- onBeforeEnter: w,
136
- name: "scaleIn",
137
- mode: "out-in",
138
- appear: ""
139
- }, {
140
- default: a(() => [
141
- (s(), n(T(S), {
142
- ref_key: "page",
143
- ref: d,
144
- key: f.path
145
- }))
146
- ]),
147
- _: 2
148
- }, 1024)
149
- ]),
150
- _: 1
151
- })
152
- ]),
153
- _: 1
154
- }))
155
- ], 34),
156
- i.MOBILE_APP && b(m).meta.title_hide ? (s(), n(M, {
67
+ o($),
68
+ t.error.show ? (r(), s(I, {
157
69
  key: 0,
158
- class: "pd-small z-index-2"
159
- })) : u("", !0)
70
+ data: t.error,
71
+ class: "z-index-7"
72
+ }, null, 8, ["data"])) : m("", !0),
73
+ (r(), s(O, null, {
74
+ default: a(() => [
75
+ o(g, { class: "o-scroll" }, {
76
+ default: a(({ Component: h, route: w }) => [
77
+ o(u, {
78
+ onBeforeEnter: _,
79
+ name: "scaleIn",
80
+ mode: "out-in",
81
+ appear: ""
82
+ }, {
83
+ default: a(() => [
84
+ (r(), s(L(h), {
85
+ ref_key: "page",
86
+ ref: i,
87
+ key: w.path
88
+ }))
89
+ ]),
90
+ _: 2
91
+ }, 1024)
92
+ ]),
93
+ _: 1
94
+ })
95
+ ]),
96
+ _: 1
97
+ }))
160
98
  ]);
161
99
  };
162
100
  }
163
101
  };
164
102
  export {
165
- ie as default
103
+ H as default
166
104
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),b=require("vue-i18n"),l=require("../../store/globals.cjs"),i=require("../../../../orders/store/shopcart.cjs"),m=require("../../../../auth/views/store/auth.cjs"),g=require("./Navigation.vue.cjs"),h=require("../../../../../components/Button/Button.vue2.cjs"),f=require("../../../../../components/Select/Select.vue.cjs"),k=require("../../../../../components/Checkbox/Checkbox.vue.cjs"),p=require("../../../../icons/entities/IconShopcart.vue.cjs"),w=require("../../../../icons/entities/IconProfile.vue.cjs");;/* empty css */const v={class:"i-small",fill:"inherit",xmlns:"http://www.w3.org/2000/svg",width:"50",height:"67",viewBox:"0 0 50 67"},C=e.createElementVNode("path",{d:"M25 0C11.207 0 0 11.207 0 25C0 38.793 20.832 66.668 25 66.668C29.168 66.668 50 38.793 50 25C50 11.207 38.793 0 25 0ZM25 33.332C20.418 33.332 16.668 29.582 16.668 25C16.668 20.418 20.418 16.668 25 16.668C29.582 16.668 33.332 20.418 33.332 25C33.332 29.582 29.582 33.332 25 33.332Z",fill:"inherit"},null,-1),N=[C],y={__name:"Header",props:{theme:{type:String,default:"light"},logotype:{type:Object}},setup(t){const n=t,o=u.useRouter();u.useRoute(),b.useI18n();function d(){l.state.isOpenLocationPopup=!0}return e.onMounted(()=>{i.actions.setShopcart()}),(s,a)=>{var c;return e.openBlock(),e.createElementBlock("header",{id:"header",class:e.normalizeClass(["pd-thin gap-micro flex-center flex-nowrap flex h-4r w-100 z-index-2",{"t-black bg-white":t.theme==="light","t-white bg-black":t.theme==="dark"}])},[e.createElementVNode("button",{"aria-label":"menu",onClick:a[0]||(a[0]=()=>l.state.isOpenSidebar=!l.state.isOpenSidebar),class:e.normalizeClass(["mobile-only menu-btn",{"menu-btn_active":l.state.isOpenSidebar}])},[e.createElementVNode("span",{class:e.normalizeClass(["no-events",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},[e.createElementVNode("span",{class:e.normalizeClass(["menu-btn__before",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},null,2),e.createElementVNode("span",{class:e.normalizeClass(["menu-btn__after",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},null,2)],2)],2),n.logotype?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.logotype),{key:0,onClick:a[1]||(a[1]=r=>e.unref(o).push({path:"/"})),theme:t.theme,class:"h-2r w-auto cursor-pointer"},null,8,["theme"])):e.createCommentVNode("",!0),e.createElementVNode("button",{"aria-label":"button_location",class:e.normalizeClass(["cursor-pointer bg-transp pd-l-micro pd-r-micro radius-extra uppercase t-semi br-solid br-2px transition-linear",{"fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white":t.theme==="light","fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black":t.theme==="dark"}]),onClick:a[2]||(a[2]=r=>d())},[(e.openBlock(),e.createElementBlock("svg",v,N)),e.createTextVNode(" "+e.toDisplayString((c=l.state.position)!=null&&c.country?l.state.position.country:"World"),1)],2),e.createVNode(g.default,{class:"mn-l-auto desktop-only"}),e.createVNode(k.default,{name:"darkmode",label:"Darkmode",radio:l.state.theme.darkmode,"onUpdate:radio":a[3]||(a[3]=r=>l.actions.toggleTheme()),class:e.normalizeClass(["mn-l-thin mn-r-auto desktop-only t-semi pd-micro br-2px br-solid radius-extra",{"br-light t-black":t.theme==="light","br-dark t-white":t.theme==="dark"}]),theme:t.theme},null,8,["radio","theme","class"]),e.createVNode(h.default,{"aria-label":"shopcart",submit:r=>i.actions.toggleShopcart(),counter:i.getters.cartTotalAmount,showSucces:!1,showLoader:!1,class:"pd-zero mn-l-auto mn-r-micro"},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-semi",fill:t.theme==="light"?"rgb(var(--black))":"rgb(var(--white))"},null,8,["fill"])]),_:1},8,["submit","counter"]),e.createVNode(h.default,{"aria-label":"profile",class:"pd-zero bg-transp",submit:m.state.access.status===!1?r=>e.unref(o).push({name:"Sign In"}):r=>e.unref(o).push({name:"User Profile",params:{_id:m.state.user._id}}),showSucces:!1,showLoader:!1},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",fill:t.theme==="light"?"rgb(var(--black))":"rgb(var(--white))"},null,8,["fill"])]),_:1},8,["submit"]),e.createVNode(f.default,{select:s.$i18n.locale,"onUpdate:select":a[4]||(a[4]=r=>s.$i18n.locale=r),options:[{name:"🌎 En",value:"en"},{name:"🇷🇺 Ru",value:"ru"}],property:"value",class:e.normalizeClass(["pos-relative uppercase pd-micro t-semi radius-thin",{"bg-light t-black":t.theme==="light","bg-dark t-white":t.theme==="dark"}])},null,8,["select","class"])],2)}}};exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),b=require("vue-i18n"),a=require("../../store/globals.cjs"),n=require("../../../../orders/store/shopcart.cjs"),m=require("../../../../auth/views/store/auth.cjs");;/* empty css */const h=require("../../../../../components/Button/Button.vue2.cjs"),g=require("../../../../../components/Select/Select.vue.cjs"),f=require("../../../../../components/Checkbox/Checkbox.vue.cjs"),k=require("../../../../icons/entities/IconShopcart.vue.cjs"),p=require("../../../../icons/entities/IconProfile.vue.cjs");;/* empty css */const w={class:"i-small",fill:"inherit",xmlns:"http://www.w3.org/2000/svg",width:"50",height:"67",viewBox:"0 0 50 67"},v=e.createElementVNode("path",{d:"M25 0C11.207 0 0 11.207 0 25C0 38.793 20.832 66.668 25 66.668C29.168 66.668 50 38.793 50 25C50 11.207 38.793 0 25 0ZM25 33.332C20.418 33.332 16.668 29.582 16.668 25C16.668 20.418 20.418 16.668 25 16.668C29.582 16.668 33.332 20.418 33.332 25C33.332 29.582 29.582 33.332 25 33.332Z",fill:"inherit"},null,-1),C=[v],S={__name:"Header",props:{theme:{type:String,default:"light"},logotype:{type:Object}},setup(t){const s=t,o=u.useRouter();u.useRoute(),b.useI18n();function d(){a.state.isOpenLocationPopup=!0}return e.onMounted(()=>{n.actions.setShopcart()}),(i,l)=>{var c;return e.openBlock(),e.createElementBlock("header",{id:"header",class:e.normalizeClass(["pd-thin gap-micro flex-center flex-nowrap flex h-4r w-100 z-index-2",{"t-black bg-white":t.theme==="light","t-white bg-black":t.theme==="dark"}])},[e.createElementVNode("button",{"aria-label":"menu",onClick:l[0]||(l[0]=()=>a.state.isOpenSidebar=!a.state.isOpenSidebar),class:e.normalizeClass(["mobile-only menu-btn",{"menu-btn_active":a.state.isOpenSidebar}])},[e.createElementVNode("span",{class:e.normalizeClass(["no-events",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},[e.createElementVNode("span",{class:e.normalizeClass(["menu-btn__before",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},null,2),e.createElementVNode("span",{class:e.normalizeClass(["menu-btn__after",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},null,2)],2)],2),s.logotype?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.logotype),{key:0,onClick:l[1]||(l[1]=r=>e.unref(o).push({path:"/"})),theme:t.theme,class:"h-2r w-auto cursor-pointer"},null,8,["theme"])):e.createCommentVNode("",!0),e.createElementVNode("button",{"aria-label":"button_location",class:e.normalizeClass(["cursor-pointer bg-transp pd-l-micro pd-r-micro radius-extra uppercase t-semi br-solid br-2px transition-linear",{"fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white":t.theme==="light","fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black":t.theme==="dark"}]),onClick:l[2]||(l[2]=r=>d())},[(e.openBlock(),e.createElementBlock("svg",w,C)),e.createTextVNode(" "+e.toDisplayString((c=a.state.position)!=null&&c.country?a.state.position.country:"World"),1)],2),e.renderSlot(i.$slots,"default"),e.createVNode(f.default,{name:"darkmode",label:"Darkmode",radio:a.state.theme.darkmode,"onUpdate:radio":l[3]||(l[3]=r=>a.actions.toggleTheme()),class:e.normalizeClass(["mn-l-thin mn-r-auto desktop-only t-semi pd-micro br-2px br-solid radius-extra",{"br-light t-black":t.theme==="light","br-dark t-white":t.theme==="dark"}]),theme:t.theme},null,8,["radio","theme","class"]),e.createVNode(h.default,{"aria-label":"shopcart",submit:r=>n.actions.toggleShopcart(),counter:n.getters.cartTotalAmount,showSucces:!1,showLoader:!1,class:"pd-zero mn-l-auto mn-r-micro"},{default:e.withCtx(()=>[e.createVNode(k.default,{class:"i-semi",fill:t.theme==="light"?"rgb(var(--black))":"rgb(var(--white))"},null,8,["fill"])]),_:1},8,["submit","counter"]),e.createVNode(h.default,{"aria-label":"profile",class:"pd-zero bg-transp",submit:m.state.access.status===!1?r=>e.unref(o).push({name:"Sign In"}):r=>e.unref(o).push({name:"User Profile",params:{_id:m.state.user._id}}),showSucces:!1,showLoader:!1},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-semi",fill:t.theme==="light"?"rgb(var(--black))":"rgb(var(--white))"},null,8,["fill"])]),_:1},8,["submit"]),e.createVNode(g.default,{select:i.$i18n.locale,"onUpdate:select":l[4]||(l[4]=r=>i.$i18n.locale=r),options:[{name:"🌎 En",value:"en"},{name:"🇷🇺 Ru",value:"ru"}],property:"value",class:e.normalizeClass(["pos-relative uppercase pd-micro t-semi radius-thin",{"bg-light t-black":t.theme==="light","bg-dark t-white":t.theme==="dark"}])},null,8,["select","class"])],2)}}};exports.default=S;
@@ -1,10 +1,10 @@
1
- import { onMounted as w, openBlock as s, createElementBlock as b, normalizeClass as a, createElementVNode as r, createBlock as v, resolveDynamicComponent as C, unref as m, createCommentVNode as y, createTextVNode as x, toDisplayString as S, createVNode as i, withCtx as d } from "vue";
2
- import { useRouter as $, useRoute as N } from "vue-router";
3
- import { useI18n as O } from "vue-i18n";
4
- import { state as o, actions as z } from "../../store/globals.js";
5
- import { actions as g, getters as B } from "../../../../orders/store/shopcart.js";
1
+ import { onMounted as w, openBlock as m, createElementBlock as b, normalizeClass as l, createElementVNode as o, createBlock as v, resolveDynamicComponent as C, unref as h, createCommentVNode as y, createTextVNode as S, toDisplayString as x, renderSlot as $, createVNode as r, withCtx as d } from "vue";
2
+ import { useRouter as O, useRoute as z } from "vue-router";
3
+ import { useI18n as B } from "vue-i18n";
4
+ import { state as i, actions as L } from "../../store/globals.js";
5
+ import { actions as g, getters as N } from "../../../../orders/store/shopcart.js";
6
6
  import { state as f } from "../../../../auth/views/store/auth.js";
7
- import L from "./Navigation.vue.js";
7
+ /* empty css */
8
8
  import p from "../../../../../components/Button/Button.vue2.js";
9
9
  import V from "../../../../../components/Select/Select.vue.js";
10
10
  import D from "../../../../../components/Checkbox/Checkbox.vue.js";
@@ -18,7 +18,7 @@ const P = {
18
18
  width: "50",
19
19
  height: "67",
20
20
  viewBox: "0 0 50 67"
21
- }, R = /* @__PURE__ */ r("path", {
21
+ }, R = /* @__PURE__ */ o("path", {
22
22
  d: "M25 0C11.207 0 0 11.207 0 25C0 38.793 20.832 66.668 25 66.668C29.168 66.668 50 38.793 50 25C50 11.207 38.793 0 25 0ZM25 33.332C20.418 33.332 16.668 29.582 16.668 25C16.668 20.418 20.418 16.668 25 16.668C29.582 16.668 33.332 20.418 33.332 25C33.332 29.582 29.582 33.332 25 33.332Z",
23
23
  fill: "inherit"
24
24
  }, null, -1), T = [
@@ -35,109 +35,109 @@ const P = {
35
35
  }
36
36
  },
37
37
  setup(e) {
38
- const h = e, n = $();
39
- N(), O();
38
+ const c = e, n = O();
39
+ z(), B();
40
40
  function k() {
41
- o.isOpenLocationPopup = !0;
41
+ i.isOpenLocationPopup = !0;
42
42
  }
43
43
  return w(() => {
44
44
  g.setShopcart();
45
- }), (c, t) => {
45
+ }), (s, t) => {
46
46
  var u;
47
- return s(), b("header", {
47
+ return m(), b("header", {
48
48
  id: "header",
49
- class: a(["pd-thin gap-micro flex-center flex-nowrap flex h-4r w-100 z-index-2", {
49
+ class: l(["pd-thin gap-micro flex-center flex-nowrap flex h-4r w-100 z-index-2", {
50
50
  "t-black bg-white": e.theme === "light",
51
51
  "t-white bg-black": e.theme === "dark"
52
52
  }])
53
53
  }, [
54
- r("button", {
54
+ o("button", {
55
55
  "aria-label": "menu",
56
- onClick: t[0] || (t[0] = () => o.isOpenSidebar = !o.isOpenSidebar),
57
- class: a(["mobile-only menu-btn", {
58
- "menu-btn_active": o.isOpenSidebar
56
+ onClick: t[0] || (t[0] = () => i.isOpenSidebar = !i.isOpenSidebar),
57
+ class: l(["mobile-only menu-btn", {
58
+ "menu-btn_active": i.isOpenSidebar
59
59
  }])
60
60
  }, [
61
- r("span", {
62
- class: a(["no-events", {
61
+ o("span", {
62
+ class: l(["no-events", {
63
63
  "bg-black": e.theme === "light",
64
64
  "bg-white": e.theme === "dark"
65
65
  }])
66
66
  }, [
67
- r("span", {
68
- class: a(["menu-btn__before", { "bg-black": e.theme === "light", "bg-white": e.theme === "dark" }])
67
+ o("span", {
68
+ class: l(["menu-btn__before", { "bg-black": e.theme === "light", "bg-white": e.theme === "dark" }])
69
69
  }, null, 2),
70
- r("span", {
71
- class: a(["menu-btn__after", { "bg-black": e.theme === "light", "bg-white": e.theme === "dark" }])
70
+ o("span", {
71
+ class: l(["menu-btn__after", { "bg-black": e.theme === "light", "bg-white": e.theme === "dark" }])
72
72
  }, null, 2)
73
73
  ], 2)
74
74
  ], 2),
75
- h.logotype ? (s(), v(C(h.logotype), {
75
+ c.logotype ? (m(), v(C(c.logotype), {
76
76
  key: 0,
77
- onClick: t[1] || (t[1] = (l) => m(n).push({ path: "/" })),
77
+ onClick: t[1] || (t[1] = (a) => h(n).push({ path: "/" })),
78
78
  theme: e.theme,
79
79
  class: "h-2r w-auto cursor-pointer"
80
80
  }, null, 8, ["theme"])) : y("", !0),
81
- r("button", {
81
+ o("button", {
82
82
  "aria-label": "button_location",
83
- class: a(["cursor-pointer bg-transp pd-l-micro pd-r-micro radius-extra uppercase t-semi br-solid br-2px transition-linear", {
83
+ class: l(["cursor-pointer bg-transp pd-l-micro pd-r-micro radius-extra uppercase t-semi br-solid br-2px transition-linear", {
84
84
  "fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white": e.theme === "light",
85
85
  "fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black": e.theme === "dark"
86
86
  }]),
87
- onClick: t[2] || (t[2] = (l) => k())
87
+ onClick: t[2] || (t[2] = (a) => k())
88
88
  }, [
89
- (s(), b("svg", P, T)),
90
- x(" " + S((u = o.position) != null && u.country ? o.position.country : "World"), 1)
89
+ (m(), b("svg", P, T)),
90
+ S(" " + x((u = i.position) != null && u.country ? i.position.country : "World"), 1)
91
91
  ], 2),
92
- i(L, { class: "mn-l-auto desktop-only" }),
93
- i(D, {
92
+ $(s.$slots, "default"),
93
+ r(D, {
94
94
  name: "darkmode",
95
95
  label: "Darkmode",
96
- radio: o.theme.darkmode,
97
- "onUpdate:radio": t[3] || (t[3] = (l) => z.toggleTheme()),
98
- class: a(["mn-l-thin mn-r-auto desktop-only t-semi pd-micro br-2px br-solid radius-extra", {
96
+ radio: i.theme.darkmode,
97
+ "onUpdate:radio": t[3] || (t[3] = (a) => L.toggleTheme()),
98
+ class: l(["mn-l-thin mn-r-auto desktop-only t-semi pd-micro br-2px br-solid radius-extra", {
99
99
  "br-light t-black": e.theme === "light",
100
100
  "br-dark t-white": e.theme === "dark"
101
101
  }]),
102
102
  theme: e.theme
103
103
  }, null, 8, ["radio", "theme", "class"]),
104
- i(p, {
104
+ r(p, {
105
105
  "aria-label": "shopcart",
106
- submit: (l) => g.toggleShopcart(),
107
- counter: B.cartTotalAmount,
106
+ submit: (a) => g.toggleShopcart(),
107
+ counter: N.cartTotalAmount,
108
108
  showSucces: !1,
109
109
  showLoader: !1,
110
110
  class: "pd-zero mn-l-auto mn-r-micro"
111
111
  }, {
112
112
  default: d(() => [
113
- i(E, {
113
+ r(E, {
114
114
  class: "i-semi",
115
115
  fill: e.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
116
116
  }, null, 8, ["fill"])
117
117
  ]),
118
118
  _: 1
119
119
  }, 8, ["submit", "counter"]),
120
- i(p, {
120
+ r(p, {
121
121
  "aria-label": "profile",
122
122
  class: "pd-zero bg-transp",
123
- submit: f.access.status === !1 ? (l) => m(n).push({ name: "Sign In" }) : (l) => m(n).push({ name: "User Profile", params: { _id: f.user._id } }),
123
+ submit: f.access.status === !1 ? (a) => h(n).push({ name: "Sign In" }) : (a) => h(n).push({ name: "User Profile", params: { _id: f.user._id } }),
124
124
  showSucces: !1,
125
125
  showLoader: !1
126
126
  }, {
127
127
  default: d(() => [
128
- i(M, {
128
+ r(M, {
129
129
  class: "i-semi",
130
130
  fill: e.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
131
131
  }, null, 8, ["fill"])
132
132
  ]),
133
133
  _: 1
134
134
  }, 8, ["submit"]),
135
- i(V, {
136
- select: c.$i18n.locale,
137
- "onUpdate:select": t[4] || (t[4] = (l) => c.$i18n.locale = l),
135
+ r(V, {
136
+ select: s.$i18n.locale,
137
+ "onUpdate:select": t[4] || (t[4] = (a) => s.$i18n.locale = a),
138
138
  options: [{ name: "🌎 En", value: "en" }, { name: "🇷🇺 Ru", value: "ru" }],
139
139
  property: "value",
140
- class: a(["pos-relative uppercase pd-micro t-semi radius-thin", {
140
+ class: l(["pos-relative uppercase pd-micro t-semi radius-thin", {
141
141
  "bg-light t-black": e.theme === "light",
142
142
  "bg-dark t-white": e.theme === "dark"
143
143
  }])
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const a=require("../../../../components/Menu/Menu.vue2.cjs"),r=require("../../../../components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/views/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-light radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */const a=require("../../../../components/Menu/Menu.vue.cjs"),r=require("../../../../components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/views/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-light radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
@@ -2,7 +2,7 @@ import { ref as l, openBlock as m, createElementBlock as u, createVNode as t, wi
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import p from "../../../../components/Menu/Menu.vue2.js";
5
+ import p from "../../../../components/Menu/Menu.vue.js";
6
6
  import n from "../../../../components/Menu/MenuItem.vue.js";
7
7
  import { useRoute as d, useRouter as h } from "vue-router";
8
8
  import "../../../auth/views/store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("vue-router"),m=require("../../../../components/Feed/Feed.vue.cjs");;/* empty css */;/* empty css */const M=require("../../../../components/Popup/Popup.vue.cjs"),N=require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs"),z=require("../sections/MembersAdd.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");const _=require("../../../users/components/blocks/CardUser.vue.cjs"),P=require("../blocks/CardDepartment.vue.cjs"),k=require("../../../icons/navigation/IconDelete.vue.cjs"),p=require("../../../auth/views/store/auth.cjs"),w=require("../../../globals/views/store/globals.cjs"),f=require("../../store/invites.cjs"),b=require("../../store/memberships.cjs"),y=require("../../store/organizations.cjs"),v=require("../../store/departments.cjs"),V={class:"pd-thin"},I={key:2,class:"cols-1 gap-thin"},A={key:3},F={__name:"Members",setup(S){const o=g.useRoute();g.useRouter();const d=e.ref(null),i=e.ref("members"),l=e.ref([]),c=e.ref(!1);function B(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{d.value=(await y.actions.read({_id:o.params._id,user:p.state.user._id}))[0]}),e.computed(()=>{const n=v.state.departments,a=n.flatMap(s=>s.subdepartments.map(t=>t._id));return n.filter(s=>!a.includes(s._id))});async function C(n,a,s){try{const t=await f.actions.create({owner:{type:"Organization",target:d.value._id},creator:{type:"User",target:p.state.user._id},invites:n});for(let r of t.createdInvites)w.actions.add(l.value,r);h(),a()}catch(t){s(t)}}async function q(n,a){confirm("Confirm remove of member")==!0&&(b.state.memberships.splice(n,1),await b.actions.delete(a))}async function x(n,a){confirm("Confirm remove of member")==!0&&(w.actions.delete(l.value,a),await f.actions.delete(a._id))}return(n,a)=>{const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",V,[e.createVNode(N.default,{title:"Members","onUpdate:tabs_current":a[0]||(a[0]=t=>i.value=t),tabs_current:i.value,tabs:[{name:`Members (${y.state.current.numberOfMembers||0})`,value:"members"},{name:"Departments",value:"departments"},{name:"Invites",value:"invites"}],actions:[{method:B,label:"Invite members"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","tabs","actions"]),e.createVNode(M.default,{title:"Add members",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createVNode(z.default,{text:"Please enter your email or phone number to send an invitation link:",organization:d.value,onSendInvite:C},null,8,["organization"])]),_:1},8,["isPopupOpen"]),i.value==="departments"?(e.openBlock(),e.createBlock(m.default,{key:0,states:{empty:{title:"No Departments Found",description:"Currently, there are no departments available.",action:"Add department",callback:()=>n.$router.push(`/organizations/${e.unref(o).params._id}/departments/create`)}},store:{read:t=>v.actions.read(t),state:null},options:{organization:e.unref(o).params._id,user:p.state.user._id}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(r,u)=>(e.openBlock(),e.createBlock(P.default,{key:u,department:r,organization:e.unref(o).params._id,class:"radius-semi bg-light pos-relative mn-b-thin"},null,8,["department","organization"]))),128))]),_:1},8,["states","store","options"])):e.createCommentVNode("",!0),i.value==="departments"&&v.state.departments.length>0?(e.openBlock(),e.createBlock(s,{key:1,to:{path:`/organizations/${e.unref(o).params._id}/departments/create`},class:"d-block flex-center flex uppercase t-semi bg-main w-100 pd-small radius-extra"},{default:e.withCtx(()=>[e.createTextVNode(" Add department ")]),_:1},8,["to"])):e.createCommentVNode("",!0),i.value==="members"?(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(m.default,{search:!0,states:{empty:{title:"No Members Found",description:"Currently, there are no members."}},store:{read:t=>b.actions.read(t)},options:{target:e.unref(o).params._id,role:["member","owner"]},class:"gap-thin cols-1"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(r,u)=>(e.openBlock(),e.createBlock(_.default,{key:u,user:r,_id:r.user._id,photo:r.user.profile.photo,phone:r.user.phone,email:r.user.email,name:r.user.profile.name||"No name",role:r.label||r.role,onClick:$=>n.$router.push(`/profile/${r.user._id}`),action:r.role!=="owner"?{label:{is:k.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>q(u,r)}:null,class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["user","_id","photo","phone","email","name","role","onClick","action"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0),i.value==="invites"?(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(m.default,{items:l.value,"onUpdate:items":a[1]||(a[1]=t=>l.value=t),states:{empty:{title:"No Invites Found",description:"Currently, there are no members."}},store:{read:t=>f.actions.read(t)},options:{owner:e.unref(o).params._id},class:"gap-thin cols-1"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,r=>(e.openBlock(),e.createBlock(_.default,{key:n.index,user:{type:"invite"},name:r.email||r.phone,role:r.status,action:{label:{is:k.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>x(n.index,r)},class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["name","role","action"]))),128))]),_:1},8,["items","store","options"])])):e.createCommentVNode("",!0)])}}};exports.default=F;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("vue-router"),m=require("../../../../components/Feed/Feed.vue.cjs");;/* empty css */;/* empty css */const M=require("../../../../components/Popup/Popup.vue.cjs"),N=require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs"),z=require("../sections/MembersAdd.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");const _=require("../../../users/components/blocks/CardUser.vue.cjs"),P=require("../blocks/CardDepartment.vue.cjs"),k=require("../../../icons/navigation/IconDelete.vue.cjs"),p=require("../../../auth/views/store/auth.cjs"),w=require("../../../globals/views/store/globals.cjs"),f=require("../../store/invites.cjs"),b=require("../../store/memberships.cjs"),y=require("../../store/organizations.cjs"),v=require("../../store/departments.cjs"),V={class:"pd-thin"},I={key:2,class:"cols-1 gap-thin"},A={key:3},F={__name:"Members",setup(S){const o=g.useRoute();g.useRouter();const d=e.ref(null),i=e.ref("members"),l=e.ref([]),c=e.ref(!1);function B(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{d.value=(await y.actions.read({_id:o.params._id,user:p.state.user._id}))[0]}),e.computed(()=>{const n=v.state.departments,a=n.flatMap(s=>s.subdepartments.map(t=>t._id));return n.filter(s=>!a.includes(s._id))});async function C(n,a,s){try{const t=await f.actions.create({owner:{type:"Organization",target:d.value._id},creator:{type:"User",target:p.state.user._id},invites:n});for(let r of t.createdInvites)w.actions.add(l.value,r);h(),a()}catch(t){s(t)}}async function q(n,a){confirm("Confirm remove of member")==!0&&(b.state.memberships.splice(n,1),await b.actions.delete(a))}async function x(n,a){confirm("Confirm remove of member")==!0&&(w.actions.delete(l.value,a),await f.actions.delete(a._id))}return(n,a)=>{const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",V,[e.createVNode(N.default,{title:"Members","onUpdate:tabs_current":a[0]||(a[0]=t=>i.value=t),tabs_current:i.value,tabs:[{name:`Members (${y.state.current.numberOfMembers||0})`,value:"members"},{name:"Departments",value:"departments"},{name:"Invites",value:"invites"}],actions:[{method:B,label:"Invite members"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","tabs","actions"]),e.createVNode(M.default,{title:"Add members",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createVNode(z.default,{text:"Please enter your email or phone number to send an invitation link:",organization:d.value,onSendInvite:C},null,8,["organization"])]),_:1},8,["isPopupOpen"]),i.value==="departments"?(e.openBlock(),e.createBlock(m.default,{key:0,states:{empty:{title:"No Departments Found",description:"Currently, there are no departments available.",action:"Add department",callback:()=>n.$router.push(`/organizations/${e.unref(o).params._id}/departments/create`)}},store:{read:t=>v.actions.read(t),state:null},options:{organization:e.unref(o).params._id,user:p.state.user._id}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(r,u)=>(e.openBlock(),e.createBlock(P.default,{key:u,department:r,organization:e.unref(o).params._id,class:"radius-semi bg-light pos-relative mn-b-thin"},null,8,["department","organization"]))),128))]),_:1},8,["states","store","options"])):e.createCommentVNode("",!0),i.value==="departments"&&v.state.departments.length>0?(e.openBlock(),e.createBlock(s,{key:1,to:{path:`/organizations/${e.unref(o).params._id}/departments/create`},class:"d-block flex-center flex uppercase t-semi bg-main w-100 pd-small radius-extra"},{default:e.withCtx(()=>[e.createTextVNode(" Add department ")]),_:1},8,["to"])):e.createCommentVNode("",!0),i.value==="members"?(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(m.default,{search:!0,states:{empty:{title:"No Members Found",description:"Currently, there are no members."}},store:{read:t=>b.actions.read(t)},options:{target:e.unref(o).params._id,role:["member","owner"]},class:"gap-thin cols-1"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(r,u)=>(e.openBlock(),e.createBlock(_.default,{key:u,user:r,_id:r.user._id,photo:r.user.profile.photo,phone:r.user.phone,email:r.user.email,name:r.user.profile.name||"No name",role:r.label||r.role,onClick:$=>n.$router.push(`/profile/${r.user._id}`),action:r.role!=="owner"?{label:{is:k.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>q(u,r)}:null,class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["user","_id","photo","phone","email","name","role","onClick","action"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0),i.value==="invites"?(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(m.default,{items:l.value,"onUpdate:items":a[1]||(a[1]=t=>l.value=t),states:{empty:{title:"No Invites Found",description:"Currently, there are no members."}},store:{read:t=>f.actions.read(t)},options:{owner:e.unref(o).params._id},class:"gap-thin cols-1"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,r=>(e.openBlock(),e.createBlock(_.default,{key:n.index,user:{type:"invite"},name:r.email||r.phone,role:r.status,action:{label:{is:k.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>x(n.index,r)},class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["name","role","action"]))),128))]),_:1},8,["items","store","options"])])):e.createCommentVNode("",!0)])}}};exports.default=F;
@@ -6,7 +6,7 @@ import $ from "../../../../components/Feed/Feed.vue.js";
6
6
  import E from "../../../../components/Popup/Popup.vue.js";
7
7
  import L from "../../../globals/views/components/sections/SectionPageTitle.vue.js";
8
8
  import T from "../sections/MembersAdd.vue.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  import "../../../../components/Menu/MenuItem.vue.js";
11
11
  import x from "../../../users/components/blocks/CardUser.vue.js";
12
12
  import j from "../blocks/CardDepartment.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");;/* empty css */const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),c=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const h=require("../../../events/components/sections/Feed.vue.cjs"),g=require("../../../spots/components/blocks/CardSpot.vue.cjs"),v=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/views/store/auth.cjs"),s=require("../../store/organizations.cjs"),B=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../community/store/blogposts.cjs"),q=require("../../../spots/store/spots.cjs");;/* empty css */const w={key:0,class:"pd-thin for-transition w-100"},y={class:"pos-relative"},N={key:0},V={__name:"Organization",setup(x){d.useRouter();const t=d.useRoute();let p=t.query.tab?t.query.tab:"products";const l=e.ref(null);e.onMounted(async()=>{l.value=await s.actions.read({_id:t.params._id,user:o.state.user._id}),await B.actions.read({target:t.params._id})});const a=e.ref(p);return t.query.tab=a.value,(m,n)=>{const u=e.resolveComponent("router-link");return l.value?(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(f.default,{selected:a.value,"onUpdate:selected":n[0]||(n[0]=r=>a.value=r),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createElementVNode("div",y,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="community"?(e.openBlock(),e.createBlock(c.default,{key:0,showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:r=>C.read(r)},options:{status:"published",user:o.state.user._id,owner:e.unref(t).params._id},class:"row-1 gap-thin"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,i=>(e.openBlock(),e.createBlock(b.default,{key:i._id,blogpost:i,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="events"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),a.value==="products"&&o.state.user._id===s.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="products"?(e.openBlock(),e.createBlock(v.default,{key:0,organization:s.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="spots"?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(c.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:r=>q.actions.read(e.unref(t).params._id),state:s.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(i,_)=>(e.openBlock(),e.createBlock(g.default,{key:_,spot:i,organization:s.state.current,class:"radius-big bg-light mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===s.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=r=>m.$router.push(`/spots/${s.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");;/* empty css */const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),c=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const h=require("../../../events/components/sections/Feed.vue.cjs"),g=require("../../../spots/components/blocks/CardSpot.vue.cjs"),v=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/views/store/auth.cjs"),s=require("../../store/organizations.cjs"),B=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../community/store/blogposts.cjs"),q=require("../../../spots/store/spots.cjs");;/* empty css */const w={key:0,class:"pd-thin for-transition w-100"},y={class:"pos-relative"},N={key:0},V={__name:"Organization",setup(x){d.useRouter();const t=d.useRoute();let p=t.query.tab?t.query.tab:"products";const l=e.ref(null);e.onMounted(async()=>{l.value=await s.actions.read({_id:t.params._id,user:o.state.user._id}),await B.actions.read({target:t.params._id})});const a=e.ref(p);return t.query.tab=a.value,(m,n)=>{const u=e.resolveComponent("router-link");return l.value?(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(f.default,{selected:a.value,"onUpdate:selected":n[0]||(n[0]=r=>a.value=r),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createElementVNode("div",y,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="community"?(e.openBlock(),e.createBlock(c.default,{key:0,showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:r=>C.read(r)},options:{status:"published",user:o.state.user._id,owner:e.unref(t).params._id},class:"row-1 gap-thin"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,i=>(e.openBlock(),e.createBlock(b.default,{key:i._id,blogpost:i,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="events"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),a.value==="products"&&o.state.user._id===s.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="products"?(e.openBlock(),e.createBlock(v.default,{key:0,organization:s.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="spots"?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(c.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:r=>q.actions.read(e.unref(t).params._id),state:s.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(i,_)=>(e.openBlock(),e.createBlock(g.default,{key:_,spot:i,organization:s.state.current,class:"radius-big bg-light mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===s.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=r=>m.$router.push(`/spots/${s.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=V;
@@ -6,7 +6,7 @@ import M from "../../../../components/Tab/Tab.vue2.js";
6
6
  import O from "../../../../components/Block/Block.vue.js";
7
7
  import y from "../../../../components/Feed/Feed.vue.js";
8
8
  import V from "../../../community/components/blocks/CardBlogpost.vue.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  import "../../../../components/Menu/MenuItem.vue.js";
11
11
  /* empty css */
12
12
  import q from "../../../events/components/sections/Feed.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Menu/Menu.vue2.cjs"),o=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const l=require("../../../icons/entities/IconProducts.vue.cjs"),d=require("../../../icons/entities/IconEvents.vue.cjs"),m=require("../../../icons/entities/IconGroups.vue.cjs"),f=require("../../../icons/entities/IconGallery.vue.cjs"),p=require("../../../icons/entities/IconOrders.vue.cjs"),_=require("../../../icons/entities/IconLeftovers.vue.cjs"),u=require("vue-router"),n=require("../../../auth/views/store/auth.cjs");require("../../store/organizations.cjs");const k={class:""},h=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice",-1),v=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Products ",-1),V=e.createElementVNode("span",null," Leftovers ",-1),B=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),b=e.createElementVNode("span",null," Events ",-1),g={__name:"OrganizationBackoffice",props:{favorites:Array},setup(q){const r=u.useRoute(),t=u.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(a,s)=>(e.openBlock(),e.createElementBlock("div",k,[h,e.createVNode(i.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[a.hasAccess(e.unref(r).params._id,"members","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:0,onClick:s[0]||(s[0]=c=>e.unref(t).push({name:"Organization Members",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(m.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"products","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:1,onClick:s[1]||(s[1]=c=>e.unref(t).push({name:"Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(l.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"leftovers","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:2,onClick:s[2]||(s[2]=c=>e.unref(t).push({name:"Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(_.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),V]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"orders","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:3,onClick:s[3]||(s[3]=c=>e.unref(t).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),B]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"gallery","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:4,onClick:s[4]||(s[4]=c=>e.unref(t).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"events","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:5,onClick:s[5]||(s[5]=c=>e.unref(t).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),b]),_:1})):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Menu/Menu.vue.cjs"),o=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const l=require("../../../icons/entities/IconProducts.vue.cjs"),d=require("../../../icons/entities/IconEvents.vue.cjs"),m=require("../../../icons/entities/IconGroups.vue.cjs"),f=require("../../../icons/entities/IconGallery.vue.cjs"),p=require("../../../icons/entities/IconOrders.vue.cjs"),_=require("../../../icons/entities/IconLeftovers.vue.cjs"),u=require("vue-router"),n=require("../../../auth/views/store/auth.cjs");require("../../store/organizations.cjs");const k={class:""},h=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice",-1),v=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Products ",-1),V=e.createElementVNode("span",null," Leftovers ",-1),B=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),b=e.createElementVNode("span",null," Events ",-1),g={__name:"OrganizationBackoffice",props:{favorites:Array},setup(q){const r=u.useRoute(),t=u.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(a,s)=>(e.openBlock(),e.createElementBlock("div",k,[h,e.createVNode(i.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[a.hasAccess(e.unref(r).params._id,"members","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:0,onClick:s[0]||(s[0]=c=>e.unref(t).push({name:"Organization Members",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(m.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"products","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:1,onClick:s[1]||(s[1]=c=>e.unref(t).push({name:"Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(l.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"leftovers","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:2,onClick:s[2]||(s[2]=c=>e.unref(t).push({name:"Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(_.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),V]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"orders","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:3,onClick:s[3]||(s[3]=c=>e.unref(t).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),B]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"gallery","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:4,onClick:s[4]||(s[4]=c=>e.unref(t).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"events","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:5,onClick:s[5]||(s[5]=c=>e.unref(t).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),b]),_:1})):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=g;
@@ -1,5 +1,5 @@
1
1
  import { ref as f, onMounted as _, openBlock as a, createElementBlock as k, createVNode as i, withCtx as o, unref as s, createBlock as c, createCommentVNode as l, createElementVNode as t } from "vue";
2
- import v from "../../../../components/Menu/Menu.vue2.js";
2
+ import v from "../../../../components/Menu/Menu.vue.js";
3
3
  import p from "../../../../components/Menu/MenuItem.vue.js";
4
4
  /* empty css */
5
5
  import h from "../../../icons/entities/IconProducts.vue.js";