@ozdao/prometheus-framework 0.2.135 → 0.2.138

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/dist/main-DTHFR7H_.mjs +14510 -0
  2. package/dist/main-wXdocsbd.js +92 -0
  3. package/dist/main.css +1 -1
  4. package/dist/organizations.server.js +1 -2
  5. package/dist/organizations.server.mjs +1 -2
  6. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +19 -20
  8. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/Map/Map.vue.js +3 -2
  10. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -0
  11. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +44 -0
  12. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  14. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  16. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  18. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +51 -52
  20. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  22. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +7 -7
  24. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +81 -76
  26. package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/spots/router/spots.js +1 -1
  28. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  30. package/dist/prometheus-framework.cjs.js +1 -1
  31. package/dist/prometheus-framework.es.js +1 -1
  32. package/dist/spots.server.js +3 -3
  33. package/dist/spots.server.mjs +3 -3
  34. package/dist/style.css +1 -1
  35. package/dist/web-Dh669DqQ.mjs +54 -0
  36. package/dist/web-Dt2RCU54.js +1 -0
  37. package/package.json +9 -9
  38. package/src/components/Map/Map.vue +2 -2
  39. package/src/modules/organizations/components/pages/Organization.vue +3 -3
  40. package/src/modules/organizations/controllers/memberships.controller.js +2 -2
  41. package/src/modules/spots/components/blocks/CardSpot.vue +0 -1
  42. package/src/modules/spots/components/pages/SpotEdit.vue +8 -5
  43. package/src/modules/spots/controllers/spots.controller.js +1 -5
  44. package/src/modules/spots/router/spots.js +1 -1
@@ -501,10 +501,9 @@ const controllerFactory$4 = (db) => {
501
501
  req.query.limit
502
502
  )
503
503
  ]);
504
- if (!memberships || memberships.length === 0) {
504
+ if (!memberships) {
505
505
  return res.status(404).send({ errorCode: "MEMBERSHIPS_NOT_FOUND" });
506
506
  }
507
- console.log("membership is", memberships[0].user);
508
507
  res.send(memberships);
509
508
  } catch (err) {
510
509
  console.log(err);
@@ -500,10 +500,9 @@ const controllerFactory$4 = (db) => {
500
500
  req.query.limit
501
501
  )
502
502
  ]);
503
- if (!memberships || memberships.length === 0) {
503
+ if (!memberships) {
504
504
  return res.status(404).send({ errorCode: "MEMBERSHIPS_NOT_FOUND" });
505
505
  }
506
- console.log("membership is", memberships[0].user);
507
506
  res.send(memberships);
508
507
  } catch (err) {
509
508
  console.log(err);
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={key:0,class:"t-transp mn-r-small"},c={class:"w-100"},m=["type","value","placeholder","tabindex","disabled"],b=["value","placeholder","tabindex","disabled"],f={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-b-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,value:null,validation:!1,disabled:null,tabindex:-1},emits:["update:field","focus","blur"],setup(l,{emit:s}){const a=s,d=l;d.value&&a("update:field",d.value);const i=e.ref(d.field);return(o,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[o.$attrs.class,{"bg-fourth-nano":l.validation}],"flex-center flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[l.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:t[0]||(t[0]=n=>i.value=a("update:field",n.target.value)),onFocus:t[1]||(t[1]=n=>a("focus",n)),onBlur:t[2]||(t[2]=n=>a("blur",n)),type:l.type,class:"w-100",value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:t[3]||(t[3]=n=>i.value=a("update:field",n.target.value)),onFocus:t[4]||(t[4]=n=>a("focus",n)),onBlur:t[5]||(t[5]=n=>a("blur",n)),class:"w-100",style:{resize:"vertical"},value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,b))]),e.renderSlot(o.$slots,"default",{},void 0,!0),l.symbol?(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("span",null,e.toDisplayString(l.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-47c78b3c"]]);exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const u={key:0,class:"t-transp mn-r-small"},r={class:"w-100"},c=["type","value","placeholder","tabindex","disabled"],m=["value","placeholder","tabindex","disabled"],b={key:1,class:"t-transp mn-l-small"},f={key:0,class:"mn-t-thin mn-b-thin mn-b-thin invalid-feedback"},v={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,value:null,validation:!1,disabled:null,tabindex:-1},emits:["update:field","focus","blur"],setup(l,{emit:s}){const n=s,d=l;d.value&&n("update:field",d.value);const i=e.ref(d.field);return(o,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[o.$attrs.class,{"bg-fourth-nano":l.validation}],"flex-center flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",r,[l.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:t[0]||(t[0]=a=>i.value=n("update:field",a.target.value)),onFocus:t[1]||(t[1]=a=>n("focus",a)),onBlur:t[2]||(t[2]=a=>n("blur",a)),type:l.type,class:"w-100",value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,c)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:t[3]||(t[3]=a=>i.value=n("update:field",a.target.value)),onFocus:t[4]||(t[4]=a=>n("focus",a)),onBlur:t[5]||(t[5]=a=>n("blur",a)),class:"w-100",style:{resize:"vertical"},value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,m))]),e.renderSlot(o.$slots,"default"),l.symbol?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",null,e.toDisplayString(l.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",f," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}};exports.default=v;
@@ -1,16 +1,15 @@
1
- import { ref as f, openBlock as n, createElementBlock as d, Fragment as v, createElementVNode as i, normalizeClass as c, toDisplayString as o, createCommentVNode as u, renderSlot as x, createVNode as y, Transition as h, withCtx as k } from "vue";
1
+ import { ref as f, openBlock as n, createElementBlock as d, Fragment as v, createElementVNode as i, normalizeClass as c, toDisplayString as u, createCommentVNode as o, renderSlot as x, createVNode as y, Transition as h, withCtx as k } from "vue";
2
2
  /* empty css */
3
- import g from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const w = {
3
+ const g = {
5
4
  key: 0,
6
5
  class: "t-transp mn-r-small"
7
- }, F = { class: "w-100" }, B = ["type", "value", "placeholder", "tabindex", "disabled"], p = ["value", "placeholder", "tabindex", "disabled"], C = {
6
+ }, w = { class: "w-100" }, B = ["type", "value", "placeholder", "tabindex", "disabled"], F = ["value", "placeholder", "tabindex", "disabled"], C = {
8
7
  key: 1,
9
8
  class: "t-transp mn-l-small"
10
9
  }, E = {
11
10
  key: 0,
12
11
  class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
13
- }, I = {
12
+ }, z = {
14
13
  __name: "Field",
15
14
  props: {
16
15
  label: null,
@@ -24,23 +23,23 @@ const w = {
24
23
  tabindex: -1
25
24
  },
26
25
  emits: ["update:field", "focus", "blur"],
27
- setup(e, { emit: b }) {
28
- const a = b, s = e;
26
+ setup(e, { emit: m }) {
27
+ const a = m, s = e;
29
28
  s.value && a("update:field", s.value);
30
29
  const r = f(s.field);
31
- return (m, l) => (n(), d(v, null, [
30
+ return (b, l) => (n(), d(v, null, [
32
31
  i("div", {
33
32
  class: c([[
34
- m.$attrs.class,
33
+ b.$attrs.class,
35
34
  {
36
35
  "bg-fourth-nano": e.validation
37
36
  }
38
37
  ], "flex-center flex-nowrap flex"])
39
38
  }, [
40
- e.label ? (n(), d("div", w, [
41
- i("span", null, o(e.label), 1)
42
- ])) : u("", !0),
43
- i("div", F, [
39
+ e.label ? (n(), d("div", g, [
40
+ i("span", null, u(e.label), 1)
41
+ ])) : o("", !0),
42
+ i("div", w, [
44
43
  e.type !== "textarea" ? (n(), d("input", {
45
44
  key: 0,
46
45
  onInput: l[0] || (l[0] = (t) => r.value = a("update:field", t.target.value)),
@@ -63,22 +62,22 @@ const w = {
63
62
  placeholder: e.placeholder,
64
63
  tabindex: e.tabindex,
65
64
  disabled: e.disabled
66
- }, null, 40, p))
65
+ }, null, 40, F))
67
66
  ]),
68
- x(m.$slots, "default", {}, void 0, !0),
67
+ x(b.$slots, "default"),
69
68
  e.symbol ? (n(), d("div", C, [
70
- i("span", null, o(e.symbol), 1)
71
- ])) : u("", !0)
69
+ i("span", null, u(e.symbol), 1)
70
+ ])) : o("", !0)
72
71
  ], 2),
73
72
  y(h, { name: "fade" }, {
74
73
  default: k(() => [
75
- e.validation ? (n(), d("div", E, " * " + o(e.validation.message), 1)) : u("", !0)
74
+ e.validation ? (n(), d("div", E, " * " + u(e.validation.message), 1)) : o("", !0)
76
75
  ]),
77
76
  _: 1
78
77
  })
79
78
  ], 64));
80
79
  }
81
- }, S = /* @__PURE__ */ g(I, [["__scopeId", "data-v-47c78b3c"]]);
80
+ };
82
81
  export {
83
- S as default
82
+ z as default
84
83
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");;/* empty css */const s=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),p={__name:"Map",props:{location:Object,apiKey:String},setup(r){const e=r;let t=o.ref(null),l=null,a=null;return o.onMounted(async()=>{new i.Loader({apiKey:e.apiKey,version:"weekly",libraries:["places"],language:e.locale}).load().then(()=>{l=new google.maps.Map(t.value,{zoom:13,center:{lat:e.location.lat,lng:e.location.lng}}),a=new google.maps.Marker({position:{lat:e.location.lat,lng:e.location.lng},map:l})}).catch(n=>{console.error(n)})}),o.watch(()=>e.location,()=>{l&&a&&(a.setPosition(new google.maps.LatLng(e.location.lat,e.location.lng)),l.setCenter(new google.maps.LatLng(e.location.lat,e.location.lng)))},{deep:!0}),(c,n)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"gmap",ref:t,class:"gmap"},null,512))}},u=s.default(p,[["__scopeId","data-v-935b49b3"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");;/* empty css */const s=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),p={__name:"Map",props:{location:Object,apiKey:String,locale:String},setup(r){const e=r;let t=o.ref(null),l=null,a=null;return o.onMounted(async()=>{new i.Loader({apiKey:e.apiKey,version:"weekly",libraries:["places"],language:e.locale}).load().then(()=>{l=new google.maps.Map(t.value,{zoom:13,center:{lat:e.location.lat,lng:e.location.lng}}),a=new google.maps.Marker({position:{lat:e.location.lat,lng:e.location.lng},map:l})}).catch(n=>{console.error(n)})}),o.watch(()=>e.location,()=>{l&&a&&(a.setPosition(new google.maps.LatLng(e.location.lat,e.location.lng)),l.setCenter(new google.maps.LatLng(e.location.lat,e.location.lng)))},{deep:!0}),(c,n)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"gmap",ref:t,class:"gmap"},null,512))}},g=s.default(p,[["__scopeId","data-v-786189a4"]]);exports.default=g;
@@ -6,7 +6,8 @@ const _ = {
6
6
  __name: "Map",
7
7
  props: {
8
8
  location: Object,
9
- apiKey: String
9
+ apiKey: String,
10
+ locale: String
10
11
  },
11
12
  setup(n) {
12
13
  const o = n;
@@ -42,7 +43,7 @@ const _ = {
42
43
  class: "gmap"
43
44
  }, null, 512));
44
45
  }
45
- }, y = /* @__PURE__ */ u(_, [["__scopeId", "data-v-935b49b3"]]);
46
+ }, y = /* @__PURE__ */ u(_, [["__scopeId", "data-v-786189a4"]]);
46
47
  export {
47
48
  y as default
48
49
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const s={__name:"Tooltip",props:{text:{type:String,required:!0}},setup(n){const l=e.ref(!1),t=e.reactive({position:"absolute",width:"max-content",zIndex:1e3,background:"#333",color:"#fff",padding:"5px 10px",borderRadius:"3px",fontSize:"14px",display:"none"});function i(o){l.value=!0,t.left=`${o.clientX/100+10}px`,t.top=`${o.clientY/100+10}px`,t.display="block"}function r(){l.value=!1,t.display="none"}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"cursor-pointer tooltip-container",onMouseover:i,onMouseleave:r},[e.renderSlot(o.$slots,"default"),e.createElementVNode("div",{class:"tooltip-content",style:e.normalizeStyle(t)},e.toDisplayString(n.text),5)],32))}};exports.default=s;
@@ -0,0 +1,44 @@
1
+ import { ref as r, reactive as p, openBlock as s, createElementBlock as a, renderSlot as c, createElementVNode as d, normalizeStyle as u, toDisplayString as f } from "vue";
2
+ /* empty css */
3
+ const v = {
4
+ __name: "Tooltip",
5
+ props: {
6
+ text: {
7
+ type: String,
8
+ required: !0
9
+ }
10
+ },
11
+ setup(n) {
12
+ const o = r(!1), e = p({
13
+ position: "absolute",
14
+ width: "max-content",
15
+ zIndex: 1e3,
16
+ background: "#333",
17
+ color: "#fff",
18
+ padding: "5px 10px",
19
+ borderRadius: "3px",
20
+ fontSize: "14px",
21
+ display: "none"
22
+ });
23
+ function l(t) {
24
+ o.value = !0, e.left = `${t.clientX / 100 + 10}px`, e.top = `${t.clientY / 100 + 10}px`, e.display = "block";
25
+ }
26
+ function i() {
27
+ o.value = !1, e.display = "none";
28
+ }
29
+ return (t, x) => (s(), a("div", {
30
+ class: "cursor-pointer tooltip-container",
31
+ onMouseover: l,
32
+ onMouseleave: i
33
+ }, [
34
+ c(t.$slots, "default"),
35
+ d("div", {
36
+ class: "tooltip-content",
37
+ style: u(e)
38
+ }, f(n.text), 5)
39
+ ], 32));
40
+ }
41
+ };
42
+ export {
43
+ v as default
44
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Menu/Menu.vue.cjs"),s=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const a=require("../../../icons/entities/IconProducts.vue.cjs"),u=require("../../../icons/entities/IconEvents.vue.cjs"),i=require("../../../icons/entities/IconGroups.vue.cjs"),c=require("../../../icons/entities/IconGallery.vue.cjs"),d=require("../../../icons/entities/IconOrders.vue.cjs"),f=require("../../../icons/entities/IconLeftovers.vue.cjs"),l=require("vue-router");require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice2",-1),N=e.createElementVNode("span",null," Members ",-1),V=e.createElementVNode("span",null," Community ",-1),v=e.createElementVNode("span",null," Products ",-1),h=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),k=e.createElementVNode("span",null," Events ",-1),g=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),b=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),x={__name:"Dashboard",props:{favorites:Array},setup(q){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),($,t)=>(e.openBlock(),e.createElementBlock("div",m,[p,e.createVNode(n.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[0]||(t[0]=o=>e.unref(r).push({name:"Organization Members"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1}),e.createVNode(s.default,{onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(s.default,{onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1}),e.createVNode(s.default,{onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Leftovers"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(s.default,{onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Backoffice Orders"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),_]),_:1}),e.createVNode(s.default,{onClick:t[5]||(t[5]=o=>e.unref(r).push({name:"Backoffice Gallery"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(c.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1}),e.createVNode(s.default,{onClick:t[6]||(t[6]=o=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),k]),_:1}),e.createVNode(s.default,{onClick:t[7]||(t[7]=o=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1})]),_:1}),e.createVNode(n.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[8]||(t[8]=o=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(s.default,{onClick:t[9]||(t[9]=o=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[b]),_:1}),e.createVNode(s.default,{onClick:t[10]||(t[10]=o=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Menu/Menu.vue2.cjs"),s=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const a=require("../../../icons/entities/IconProducts.vue.cjs"),u=require("../../../icons/entities/IconEvents.vue.cjs"),i=require("../../../icons/entities/IconGroups.vue.cjs"),c=require("../../../icons/entities/IconGallery.vue.cjs"),d=require("../../../icons/entities/IconOrders.vue.cjs"),f=require("../../../icons/entities/IconLeftovers.vue.cjs"),l=require("vue-router");require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice2",-1),N=e.createElementVNode("span",null," Members ",-1),V=e.createElementVNode("span",null," Community ",-1),v=e.createElementVNode("span",null," Products ",-1),h=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),k=e.createElementVNode("span",null," Events ",-1),g=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),b=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),x={__name:"Dashboard",props:{favorites:Array},setup(q){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),($,t)=>(e.openBlock(),e.createElementBlock("div",m,[p,e.createVNode(n.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[0]||(t[0]=o=>e.unref(r).push({name:"Organization Members"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1}),e.createVNode(s.default,{onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(s.default,{onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1}),e.createVNode(s.default,{onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Leftovers"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(s.default,{onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Backoffice Orders"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),_]),_:1}),e.createVNode(s.default,{onClick:t[5]||(t[5]=o=>e.unref(r).push({name:"Backoffice Gallery"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(c.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1}),e.createVNode(s.default,{onClick:t[6]||(t[6]=o=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),k]),_:1}),e.createVNode(s.default,{onClick:t[7]||(t[7]=o=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1})]),_:1}),e.createVNode(n.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[8]||(t[8]=o=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(s.default,{onClick:t[9]||(t[9]=o=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[b]),_:1}),e.createVNode(s.default,{onClick:t[10]||(t[10]=o=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=x;
@@ -1,5 +1,5 @@
1
1
  import { ref as a, onMounted as m, openBlock as f, createElementBlock as c, createVNode as e, withCtx as o, unref as i, createElementVNode as t } from "vue";
2
- import u from "../../../../components/Menu/Menu.vue.js";
2
+ import u from "../../../../components/Menu/Menu.vue2.js";
3
3
  import r from "../../../../components/Menu/MenuItem.vue.js";
4
4
  /* empty css */
5
5
  import p from "../../../icons/entities/IconProducts.vue.js";
@@ -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.vue.cjs"),r=require("../../../../components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/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.vue2.cjs"),r=require("../../../../components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/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.vue.js";
5
+ import p from "../../../../components/Menu/Menu.vue2.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/store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("vue-router"),p=require("../../../../components/Feed/Feed.vue.cjs");;/* empty css */;/* empty css */const q=require("../../../../components/Popup/Popup.vue.cjs"),M=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),N=require("../sections/MembersAdd.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");const g=require("../../../users/components/blocks/CardUser.vue.cjs"),x=require("../blocks/CardDepartment.vue.cjs"),_=require("../../../icons/navigation/IconDelete.vue.cjs"),m=require("../../../auth/store/auth.cjs"),u=require("../../store/invites.cjs"),f=require("../../store/memberships.cjs"),k=require("../../store/organizations.cjs"),b=require("../../store/departments.cjs"),z={class:"pd-thin"},P={key:2,class:"cols-1 gap-thin"},V={key:3},I={__name:"Members",setup(A){const o=v.useRoute();v.useRouter();const d=e.ref(null),s=e.ref("members"),c=e.ref(!1);function w(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{d.value=(await k.actions.read({_id:o.params._id,user:m.state.user._id}))[0]}),e.computed(()=>{const a=b.state.departments,n=a.flatMap(i=>i.subdepartments.map(r=>r._id));return a.filter(i=>!n.includes(i._id))});async function y(a){await u.actions.create({owner:{type:"Organization",target:d.value._id},creator:{type:"User",target:m.state.user._id},invites:a}),h()}async function B(a,n){confirm("Confirm remove of member")==!0&&(f.state.memberships.splice(a,1),await f.actions.delete(n))}async function C(a,n){confirm("Confirm remove of member")==!0&&(u.state.invites.splice(a,1),await u.actions.delete(n._id))}return(a,n)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(M.default,{title:"Members","onUpdate:tabs_current":n[0]||(n[0]=r=>s.value=r),tabs_current:s.value,tabs:[{name:`Members (${k.state.current.numberOfMembers||0})`,value:"members"},{name:"Departments",value:"departments"},{name:"Invites",value:"invites"}],actions:[{method:w,label:"Invite members"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","tabs","actions"]),e.createVNode(q.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(N.default,{text:"Please enter your email or phone number to send an invitation link:",organization:d.value,onSendInvite:y},null,8,["organization"])]),_:1},8,["isPopupOpen"]),s.value==="departments"?(e.openBlock(),e.createBlock(p.default,{key:0,states:{empty:{title:"No Departments Found",description:"Currently, there are no departments available.",action:"Add department",callback:()=>a.$router.push(`/organizations/${e.unref(o).params._id}/departments/create`)}},store:{read:r=>b.actions.read(r),state:null},options:{organization:e.unref(o).params._id,user:m.state.user._id}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,l)=>(e.openBlock(),e.createBlock(x.default,{key:l,department:t,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),s.value==="departments"&&b.state.departments.length>0?(e.openBlock(),e.createBlock(i,{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),s.value==="members"?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(p.default,{search:!0,states:{empty:{title:"No Members Found",description:"Currently, there are no members."}},store:{read:r=>f.actions.read(r)},options:{target:e.unref(o).params._id,role:["member","owner"]},class:"gap-thin cols-1"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,l)=>(e.openBlock(),e.createBlock(g.default,{key:l,user:t,_id:t.user._id,photo:t.user.profile.photo,phone:t.user.phone,email:t.user.email,name:t.user.profile.name||"No name",role:t.label||t.role,onClick:F=>a.$router.push(`/profile/${t.user._id}`),action:t.role!=="owner"?{label:{is:_.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>B(l,t)}: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),s.value==="invites"?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(p.default,{search:!0,states:{empty:{title:"No Invites Found",description:"Currently, there are no members."}},store:{read:r=>u.actions.read(r)},options:{owner:e.unref(o).params._id},class:"gap-thin cols-1"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,t=>(e.openBlock(),e.createBlock(g.default,{key:a.index,user:{type:"invite"},name:t.email||t.phone,role:t.status,action:{label:{is:_.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>C(a.index,t)},class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["name","role","action"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)])}}};exports.default=I;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("vue-router"),p=require("../../../../components/Feed/Feed.vue.cjs");;/* empty css */;/* empty css */const q=require("../../../../components/Popup/Popup.vue.cjs"),M=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),N=require("../sections/MembersAdd.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");const g=require("../../../users/components/blocks/CardUser.vue.cjs"),x=require("../blocks/CardDepartment.vue.cjs"),_=require("../../../icons/navigation/IconDelete.vue.cjs"),m=require("../../../auth/store/auth.cjs"),u=require("../../store/invites.cjs"),f=require("../../store/memberships.cjs"),k=require("../../store/organizations.cjs"),b=require("../../store/departments.cjs"),z={class:"pd-thin"},P={key:2,class:"cols-1 gap-thin"},V={key:3},I={__name:"Members",setup(A){const o=v.useRoute();v.useRouter();const d=e.ref(null),s=e.ref("members"),c=e.ref(!1);function w(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{d.value=(await k.actions.read({_id:o.params._id,user:m.state.user._id}))[0]}),e.computed(()=>{const a=b.state.departments,n=a.flatMap(i=>i.subdepartments.map(r=>r._id));return a.filter(i=>!n.includes(i._id))});async function y(a){await u.actions.create({owner:{type:"Organization",target:d.value._id},creator:{type:"User",target:m.state.user._id},invites:a}),h()}async function B(a,n){confirm("Confirm remove of member")==!0&&(f.state.memberships.splice(a,1),await f.actions.delete(n))}async function C(a,n){confirm("Confirm remove of member")==!0&&(u.state.invites.splice(a,1),await u.actions.delete(n._id))}return(a,n)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(M.default,{title:"Members","onUpdate:tabs_current":n[0]||(n[0]=r=>s.value=r),tabs_current:s.value,tabs:[{name:`Members (${k.state.current.numberOfMembers||0})`,value:"members"},{name:"Departments",value:"departments"},{name:"Invites",value:"invites"}],actions:[{method:w,label:"Invite members"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","tabs","actions"]),e.createVNode(q.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(N.default,{text:"Please enter your email or phone number to send an invitation link:",organization:d.value,onSendInvite:y},null,8,["organization"])]),_:1},8,["isPopupOpen"]),s.value==="departments"?(e.openBlock(),e.createBlock(p.default,{key:0,states:{empty:{title:"No Departments Found",description:"Currently, there are no departments available.",action:"Add department",callback:()=>a.$router.push(`/organizations/${e.unref(o).params._id}/departments/create`)}},store:{read:r=>b.actions.read(r),state:null},options:{organization:e.unref(o).params._id,user:m.state.user._id}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,l)=>(e.openBlock(),e.createBlock(x.default,{key:l,department:t,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),s.value==="departments"&&b.state.departments.length>0?(e.openBlock(),e.createBlock(i,{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),s.value==="members"?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(p.default,{search:!0,states:{empty:{title:"No Members Found",description:"Currently, there are no members."}},store:{read:r=>f.actions.read(r)},options:{target:e.unref(o).params._id,role:["member","owner"]},class:"gap-thin cols-1"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,l)=>(e.openBlock(),e.createBlock(g.default,{key:l,user:t,_id:t.user._id,photo:t.user.profile.photo,phone:t.user.phone,email:t.user.email,name:t.user.profile.name||"No name",role:t.label||t.role,onClick:F=>a.$router.push(`/profile/${t.user._id}`),action:t.role!=="owner"?{label:{is:_.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>B(l,t)}: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),s.value==="invites"?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(p.default,{search:!0,states:{empty:{title:"No Invites Found",description:"Currently, there are no members."}},store:{read:r=>u.actions.read(r)},options:{owner:e.unref(o).params._id},class:"gap-thin cols-1"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,t=>(e.openBlock(),e.createBlock(g.default,{key:a.index,user:{type:"invite"},name:t.email||t.phone,role:t.status,action:{label:{is:_.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>C(a.index,t)},class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["name","role","action"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)])}}};exports.default=I;
@@ -6,7 +6,7 @@ import y from "../../../../components/Feed/Feed.vue.js";
6
6
  import R from "../../../../components/Popup/Popup.vue.js";
7
7
  import U from "../../../globals/components/sections/SectionPageTitle.vue.js";
8
8
  import E from "../sections/MembersAdd.vue.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  import "../../../../components/Menu/MenuItem.vue.js";
11
11
  import C from "../../../users/components/blocks/CardUser.vue.js";
12
12
  import L 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");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const k=require("../../../../components/Tab/Tab.vue2.cjs"),b=require("../../../../components/Block/Block.vue.cjs"),m=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const g=require("../../../events/components/sections/Feed.vue.cjs"),v=require("../../../spots/components/blocks/CardSpot.vue.cjs"),q=,/* empty css */B=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),s=require("../../store/organizations.cjs"),w=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../community/store/blogposts.cjs"),y=require("../../../spots/store/spots.cjs");;/* empty css */const N={key:0,class:"pd-thin for-transition w-100"},V={class:"pos-relative"},x={key:0},z={__name:"Organization",setup(T){const p=d.useRouter(),t=d.useRoute();let _=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 w.actions.read({target:t.params._id})});const r=e.ref(_);return t.query.tab=r.value,e.watch(r,c=>{p.replace({query:null})}),(c,n)=>{const i=e.resolveComponent("router-link");return l.value?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(q.default,{organization:s.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(k.default,{selected:r.value,"onUpdate:selected":n[0]||(n[0]=a=>r.value=a),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",V,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="community"?(e.openBlock(),e.createBlock(m.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:a=>C.read(a)},options:{status:"published",user:o.state.user._id,owner:e.unref(t).params._id},class:"row-1 gap-thin"},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,u=>(e.openBlock(),e.createBlock(h.default,{key:u._id,blogpost:u,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(()=>[r.value==="events"?(e.openBlock(),e.createBlock(g.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}),r.value==="products"&&o.state.user._id===s.state.current.owner?(e.openBlock(),e.createBlock(b.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(i,{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(i,{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(i,{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(()=>[r.value==="products"?(e.openBlock(),e.createBlock(B.default,{key:0,organization:s.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="spots"?(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(m.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:a=>y.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:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(u,f)=>(e.openBlock(),e.createBlock(v.default,{key:f,spot:u,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]=a=>c.$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=z;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* 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=,/* empty css */B=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),s=require("../../store/organizations.cjs"),q=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../community/store/blogposts.cjs"),w=require("../../../spots/store/spots.cjs");;/* empty css */const N={key:0,class:"pd-thin for-transition w-100"},y={class:"pos-relative"},V={key:0},x={__name:"Organization",setup(z){d.useRouter();const t=d.useRoute();let m=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 q.actions.read({target:t.params._id})});const a=e.ref(m);return t.query.tab=a.value,(p,n)=>{const u=e.resolveComponent("router-link");return l.value?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(v.default,{organization:s.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),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(B.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",V,[e.createVNode(c.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:r=>w.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=>p.$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=x;
@@ -1,55 +1,54 @@
1
- import { ref as h, onMounted as C, watch as B, resolveComponent as N, openBlock as t, createElementBlock as d, createVNode as r, createElementVNode as P, Transition as _, withCtx as a, createBlock as l, unref as m, Fragment as y, renderList as k, createCommentVNode as n, createTextVNode as b } from "vue";
2
- import { useRouter as V, useRoute as q } from "vue-router";
1
+ import { ref as v, onMounted as z, resolveComponent as C, openBlock as t, createElementBlock as d, createVNode as r, createElementVNode as B, Transition as _, withCtx as a, createBlock as m, unref as l, Fragment as h, renderList as k, createCommentVNode as n, createTextVNode as b } from "vue";
2
+ import { useRouter as N, useRoute as P } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  /* empty css */
6
6
  import M from "../../../../components/Tab/Tab.vue2.js";
7
7
  import O from "../../../../components/Block/Block.vue.js";
8
- import w from "../../../../components/Feed/Feed.vue.js";
9
- import A from "../../../community/components/blocks/CardBlogpost.vue.js";
10
- /* empty css */
8
+ import y from "../../../../components/Feed/Feed.vue.js";
9
+ import V from "../../../community/components/blocks/CardBlogpost.vue.js";
10
+ /* empty css */
11
11
  import "../../../../components/Menu/MenuItem.vue.js";
12
12
  /* empty css */
13
- import E from "../../../events/components/sections/Feed.vue.js";
14
- import F from "../../../spots/components/blocks/CardSpot.vue.js";
15
- import L from "../sections/DetailsTab.vue.js";
16
- import S from "../../../products/components/pages/Products.vue.js";
13
+ import q from "../../../events/components/sections/Feed.vue.js";
14
+ import A from "../../../spots/components/blocks/CardSpot.vue.js";
15
+ import E from "../sections/DetailsTab.vue.js";
16
+ import F from "../../../products/components/pages/Products.vue.js";
17
17
  import { state as i } from "../../../auth/store/auth.js";
18
- import { actions as R, state as u } from "../../store/organizations.js";
19
- import { actions as T } from "../../store/memberships.js";
18
+ import { actions as L, state as u } from "../../store/organizations.js";
19
+ import { actions as S } from "../../store/memberships.js";
20
20
  import "../../store/departments.js";
21
- import { read as D } from "../../../community/store/blogposts.js";
22
- import { actions as G } from "../../../spots/store/spots.js";
21
+ import { read as R } from "../../../community/store/blogposts.js";
22
+ import { actions as T } from "../../../spots/store/spots.js";
23
23
  /* empty css */
24
- const I = {
24
+ const D = {
25
25
  key: 0,
26
26
  class: "pd-thin for-transition w-100"
27
- }, U = { class: "pos-relative" }, j = { key: 0 }, be = {
27
+ }, G = { class: "pos-relative" }, I = { key: 0 }, _e = {
28
28
  __name: "Organization",
29
- setup(H) {
30
- const $ = V(), e = q();
31
- let x = e.query.tab ? e.query.tab : "products";
32
- const g = h(null);
33
- C(async () => {
34
- g.value = await R.read({
29
+ setup(U) {
30
+ N();
31
+ const e = P();
32
+ let w = e.query.tab ? e.query.tab : "products";
33
+ const g = v(null);
34
+ z(async () => {
35
+ g.value = await L.read({
35
36
  _id: e.params._id,
36
37
  user: i.user._id
37
- }), await T.read({ target: e.params._id });
38
+ }), await S.read({ target: e.params._id });
38
39
  });
39
- const o = h(x);
40
- return e.query.tab = o.value, B(o, (v) => {
41
- $.replace({ query: null });
42
- }), (v, p) => {
43
- const f = N("router-link");
44
- return g.value ? (t(), d("div", I, [
45
- r(L, {
40
+ const s = v(w);
41
+ return e.query.tab = s.value, ($, p) => {
42
+ const f = C("router-link");
43
+ return g.value ? (t(), d("div", D, [
44
+ r(E, {
46
45
  organization: u.current,
47
46
  user: i.user,
48
47
  class: "mn-b-semi"
49
48
  }, null, 8, ["organization", "user"]),
50
49
  r(M, {
51
- selected: o.value,
52
- "onUpdate:selected": p[0] || (p[0] = (s) => o.value = s),
50
+ selected: s.value,
51
+ "onUpdate:selected": p[0] || (p[0] = (o) => s.value = o),
53
52
  tabs: [
54
53
  { name: "Community", value: "community" },
55
54
  { name: "Menu", value: "products" },
@@ -58,10 +57,10 @@ const I = {
58
57
  ],
59
58
  class: "mn-b-small o-hidden h5 radius-big bg-light"
60
59
  }, null, 8, ["selected"]),
61
- P("div", U, [
60
+ B("div", G, [
62
61
  r(_, { name: "slide-fade" }, {
63
62
  default: a(() => [
64
- o.value === "community" ? (t(), l(w, {
63
+ s.value === "community" ? (t(), m(y, {
65
64
  key: 0,
66
65
  showLoadMore: !1,
67
66
  states: {
@@ -71,19 +70,19 @@ const I = {
71
70
  }
72
71
  },
73
72
  store: {
74
- read: (s) => D(s)
73
+ read: (o) => R(o)
75
74
  },
76
75
  options: {
77
76
  status: "published",
78
77
  user: i.user._id,
79
- owner: m(e).params._id
78
+ owner: l(e).params._id
80
79
  },
81
80
  class: "row-1 gap-thin"
82
81
  }, {
83
82
  default: a(({
84
- items: s
83
+ items: o
85
84
  }) => [
86
- (t(!0), d(y, null, k(s, (c) => (t(), l(A, {
85
+ (t(!0), d(h, null, k(o, (c) => (t(), m(V, {
87
86
  key: c._id,
88
87
  blogpost: c,
89
88
  user: i.user._id,
@@ -97,17 +96,17 @@ const I = {
97
96
  }),
98
97
  r(_, { name: "slide-fade" }, {
99
98
  default: a(() => [
100
- o.value === "events" ? (t(), l(E, {
99
+ s.value === "events" ? (t(), m(q, {
101
100
  key: 0,
102
101
  user: i.user._id,
103
- owner: m(e).params._id,
102
+ owner: l(e).params._id,
104
103
  sortOrder: "desc",
105
104
  sortParam: "date.start"
106
105
  }, null, 8, ["user", "owner"])) : n("", !0)
107
106
  ]),
108
107
  _: 1
109
108
  }),
110
- o.value === "products" && i.user._id === u.current.owner ? (t(), l(O, {
109
+ s.value === "products" && i.user._id === u.current.owner ? (t(), m(O, {
111
110
  key: 0,
112
111
  class: "flex-nowrap gap-thin mn-b-small flex"
113
112
  }, {
@@ -117,7 +116,7 @@ const I = {
117
116
  to: {
118
117
  name: "ProductAdd",
119
118
  params: {
120
- _id: m(e).params._id
119
+ _id: l(e).params._id
121
120
  }
122
121
  }
123
122
  }, {
@@ -131,7 +130,7 @@ const I = {
131
130
  to: {
132
131
  name: "Leftovers",
133
132
  params: {
134
- _id: m(e).params._id
133
+ _id: l(e).params._id
135
134
  }
136
135
  }
137
136
  }, {
@@ -145,7 +144,7 @@ const I = {
145
144
  to: {
146
145
  name: "Backoffice",
147
146
  params: {
148
- _id: m(e).params._id
147
+ _id: l(e).params._id
149
148
  }
150
149
  }
151
150
  }, {
@@ -159,7 +158,7 @@ const I = {
159
158
  })) : n("", !0),
160
159
  r(_, { name: "slide-fade" }, {
161
160
  default: a(() => [
162
- o.value === "products" ? (t(), l(S, {
161
+ s.value === "products" ? (t(), m(F, {
163
162
  key: 0,
164
163
  organization: u.current
165
164
  }, null, 8, ["organization"])) : n("", !0)
@@ -168,8 +167,8 @@ const I = {
168
167
  }),
169
168
  r(_, { name: "slide-fade" }, {
170
169
  default: a(() => [
171
- o.value === "spots" ? (t(), d("div", j, [
172
- r(w, {
170
+ s.value === "spots" ? (t(), d("div", I, [
171
+ r(y, {
173
172
  states: {
174
173
  empty: {
175
174
  title: "No Spots Found",
@@ -177,7 +176,7 @@ const I = {
177
176
  }
178
177
  },
179
178
  store: {
180
- read: (s) => G.read(m(e).params._id),
179
+ read: (o) => T.read(l(e).params._id),
181
180
  state: u
182
181
  },
183
182
  options: {
@@ -188,10 +187,10 @@ const I = {
188
187
  }
189
188
  }, {
190
189
  default: a(({
191
- items: s
190
+ items: o
192
191
  }) => [
193
- (t(!0), d(y, null, k(s, (c, z) => (t(), l(F, {
194
- key: z,
192
+ (t(!0), d(h, null, k(o, (c, x) => (t(), m(A, {
193
+ key: x,
195
194
  spot: c,
196
195
  organization: u.current,
197
196
  class: "radius-big bg-light mn-b-thin"
@@ -201,7 +200,7 @@ const I = {
201
200
  }, 8, ["store", "options"]),
202
201
  i.user._id === u.current.owner ? (t(), d("button", {
203
202
  key: 0,
204
- onClick: p[1] || (p[1] = (s) => v.$router.push(`/spots/${u.current._id}/spots/create`)),
203
+ onClick: p[1] || (p[1] = (o) => $.$router.push(`/spots/${u.current._id}/spots/create`)),
205
204
  class: "mn-b-thin bg-main button w-100"
206
205
  }, " Add spot ")) : n("", !0)
207
206
  ])) : n("", !0)
@@ -214,5 +213,5 @@ const I = {
214
213
  }
215
214
  };
216
215
  export {
217
- be as default
216
+ _e as default
218
217
  };
@@ -1 +1 @@
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/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.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/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.vue.js";
2
+ import v from "../../../../components/Menu/Menu.vue2.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";