@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 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../Menu/Menu.vue2.cjs"),k=require("../Menu/MenuItem.vue.cjs"),h=require("../FieldPhone/click-outside.cjs"),l=require("vue-router"),r=require("../../modules/auth/views/store/auth.cjs"),n=require("../../modules/globals/views/store/globals.cjs"),_=require("../Checkbox/Checkbox.vue.cjs");;/* empty css */const g={id:"sidebar",class:"o-hidden"},v={class:"pd-medium pos-sticky pos-t-0 h-100vh flex-column flex flex-justify-content"},S=e.createElementVNode("span",null," Backoffice ",-1),q={__name:"Sidebar",props:["stateSidebar"],emits:["closeSidebar"],setup(c,{emit:u}){const d=l.useRouter(),o=l.useRoute();e.ref(!1);const a=c,i=u;e.watch(()=>o.path,()=>{a.stateSidebar===!0&&i("closeSidebar")});let m=h.default;function f(s){const t=s.target.classList.contains("menu-btn");if(console.log(s.target.classList.contains("menu-btn")),t)return null;a.stateSidebar===!0&&i("closeSidebar")}return(s,t)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",v,[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"default")]),e.createVNode(_.default,{label:"Darkmode",radio:n.state.theme.darkmode,"onUpdate:radio":t[0]||(t[0]=b=>n.actions.toggleTheme()),name:"prices",class:"t-semi pd-small p-big mn-b-small br-2px br-solid radius-extra br-black-transp-5"},null,8,["radio"]),r.state.access.roles&&(r.state.access.roles.includes("ROLE_MODERATOR")||r.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(p.default,{key:0,class:"mn-b-regular bg-black t-white"},{default:e.withCtx(()=>[e.createVNode(k.default,{onClick:t[1]||(t[1]=b=>e.unref(d).push({name:"Backoffice",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer",theme:"white"},{default:e.withCtx(()=>[S]),_:1})]),_:1})):e.createCommentVNode("",!0)])])),[[e.unref(m),f]])}};exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../Menu/Menu.vue.cjs"),k=require("../Menu/MenuItem.vue.cjs"),h=require("../FieldPhone/click-outside.cjs"),l=require("vue-router"),r=require("../../modules/auth/views/store/auth.cjs"),n=require("../../modules/globals/views/store/globals.cjs"),_=require("../Checkbox/Checkbox.vue.cjs");;/* empty css */const g={id:"sidebar",class:"o-hidden"},v={class:"pd-medium pos-sticky pos-t-0 h-100vh flex-column flex flex-justify-content"},S=e.createElementVNode("span",null," Backoffice ",-1),q={__name:"Sidebar",props:["stateSidebar"],emits:["closeSidebar"],setup(c,{emit:u}){const d=l.useRouter(),o=l.useRoute();e.ref(!1);const a=c,i=u;e.watch(()=>o.path,()=>{a.stateSidebar===!0&&i("closeSidebar")});let m=h.default;function f(s){const t=s.target.classList.contains("menu-btn");if(console.log(s.target.classList.contains("menu-btn")),t)return null;a.stateSidebar===!0&&i("closeSidebar")}return(s,t)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",v,[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"default")]),e.createVNode(_.default,{label:"Darkmode",radio:n.state.theme.darkmode,"onUpdate:radio":t[0]||(t[0]=b=>n.actions.toggleTheme()),name:"prices",class:"t-semi pd-small p-big mn-b-small br-2px br-solid radius-extra br-black-transp-5"},null,8,["radio"]),r.state.access.roles&&(r.state.access.roles.includes("ROLE_MODERATOR")||r.state.access.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(p.default,{key:0,class:"mn-b-regular bg-black t-white"},{default:e.withCtx(()=>[e.createVNode(k.default,{onClick:t[1]||(t[1]=b=>e.unref(d).push({name:"Backoffice",params:{_id:e.unref(o).params._id}})),class:"cursor-pointer",theme:"white"},{default:e.withCtx(()=>[S]),_:1})]),_:1})):e.createCommentVNode("",!0)])])),[[e.unref(m),f]])}};exports.default=q;
@@ -1,5 +1,5 @@
1
1
  import { ref as k, watch as h, withDirectives as g, openBlock as c, createElementBlock as S, createElementVNode as r, renderSlot as v, createVNode as n, createBlock as x, withCtx as m, unref as s, createCommentVNode as O } from "vue";
2
- import B from "../Menu/Menu.vue2.js";
2
+ import B from "../Menu/Menu.vue.js";
3
3
  import R from "../Menu/MenuItem.vue.js";
4
4
  import $ from "../FieldPhone/click-outside.js";
5
5
  import { useRouter as w, useRoute as E } from "vue-router";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("vue-router");require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const a={id:"account",class:"gap-thin pd-thin cols-2-1_3"},s={key:0,class:"w-100"},u={class:"w-100"},i={__name:"Backoffice",props:{favorites:Array},setup(l){const t=o.useRoute();return o.useRouter(),e.ref(null),e.ref([]),e.onMounted(async()=>{}),(d,_)=>{const n=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("section",a,[e.unref(t).meta.sidebar?(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t).meta.sidebar)))]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",u,[e.createVNode(n,null,{default:e.withCtx(({Component:r,route:c})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r),{ref:"page",key:c.path}))]),_:2},1024)]),_:1})])])}}};exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("vue-router");require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const a={id:"account",class:"gap-thin pd-thin cols-2-1_3"},s={key:0,class:"w-100"},u={class:"w-100"},i={__name:"Backoffice",props:{newsletterPopup:Number},setup(l){const t=o.useRoute();return o.useRouter(),e.ref(null),e.ref([]),e.onMounted(async()=>{}),(d,_)=>{const n=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("section",a,[e.unref(t).meta.sidebar?(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t).meta.sidebar)))]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",u,[e.createVNode(n,null,{default:e.withCtx(({Component:r,route:c})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r),{ref:"page",key:c.path}))]),_:2},1024)]),_:1})])])}}};exports.default=i;
@@ -1,5 +1,5 @@
1
- import { ref as r, onMounted as d, resolveComponent as p, openBlock as e, createElementBlock as a, unref as s, createVNode as t, Transition as c, withCtx as o, createBlock as i, resolveDynamicComponent as m, createCommentVNode as f, createElementVNode as h } from "vue";
2
- import { useRoute as v, useRouter as k } from "vue-router";
1
+ import { ref as r, onMounted as p, resolveComponent as d, openBlock as e, createElementBlock as s, unref as a, createVNode as t, Transition as c, withCtx as o, createBlock as i, resolveDynamicComponent as u, createCommentVNode as f, createElementVNode as h } from "vue";
2
+ import { useRoute as k, useRouter as v } from "vue-router";
3
3
  import "../../../auth/views/store/auth.js";
4
4
  import "../../../organizations/store/organizations.js";
5
5
  const w = {
@@ -11,34 +11,34 @@ const w = {
11
11
  }, B = { class: "w-100" }, I = {
12
12
  __name: "Backoffice",
13
13
  props: {
14
- favorites: Array
14
+ newsletterPopup: Number
15
15
  },
16
16
  setup(C) {
17
- const n = v();
18
- return k(), r(null), r([]), d(async () => {
19
- }), (x, N) => {
20
- const u = p("router-view");
21
- return e(), a("section", w, [
22
- s(n).meta.sidebar ? (e(), a("div", y, [
17
+ const n = k();
18
+ return v(), r(null), r([]), p(async () => {
19
+ }), (N, b) => {
20
+ const m = d("router-view");
21
+ return e(), s("section", w, [
22
+ a(n).meta.sidebar ? (e(), s("div", y, [
23
23
  t(c, {
24
24
  name: "scaleIn",
25
25
  mode: "out-in"
26
26
  }, {
27
27
  default: o(() => [
28
- (e(), i(m(s(n).meta.sidebar)))
28
+ (e(), i(u(a(n).meta.sidebar)))
29
29
  ]),
30
30
  _: 1
31
31
  })
32
32
  ])) : f("", !0),
33
33
  h("div", B, [
34
- t(u, null, {
34
+ t(m, null, {
35
35
  default: o(({ Component: l, route: _ }) => [
36
36
  t(c, {
37
37
  name: "scaleIn",
38
38
  mode: "out-in"
39
39
  }, {
40
40
  default: o(() => [
41
- (e(), i(m(l), {
41
+ (e(), i(u(l), {
42
42
  ref: "page",
43
43
  key: _.path
44
44
  }))
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const r=require("vue-router");require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const t={class:""},o=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice",-1),u=[o],s={__name:"Dashboard",props:{favorites:Array},setup(c){return r.useRoute(),r.useRouter(),e.ref(null),e.ref([]),e.onMounted(async()=>{}),(i,n)=>(e.openBlock(),e.createElementBlock("div",t,u))}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const r=require("vue-router");require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const t={class:""},o=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice",-1),u=[o],s={__name:"Dashboard",props:{favorites:Array},setup(c){return r.useRoute(),r.useRouter(),e.ref(null),e.ref([]),e.onMounted(async()=>{}),(i,n)=>(e.openBlock(),e.createElementBlock("div",t,u))}};exports.default=s;
@@ -1,5 +1,5 @@
1
1
  import { ref as e, onMounted as o, openBlock as t, createElementBlock as r, createElementVNode as s } from "vue";
2
- /* empty css */
2
+ /* empty css */
3
3
  import "../../../../components/Menu/MenuItem.vue.js";
4
4
  /* empty css */
5
5
  import { useRoute as m, useRouter as c } from "vue-router";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Menu/Menu.vue2.cjs"),n=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const u=require("../../../icons/entities/IconProducts.vue.cjs"),a=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/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Community ",-1),V=e.createElementVNode("span",null," Products ",-1),v=e.createElementVNode("span",null," Leftovers ",-1),C=e.createElementVNode("span",null," Orders ",-1),_=e.createElementVNode("span",null," Gallery ",-1),h=e.createElementVNode("span",null," Events ",-1),k=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),g=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),b={__name:"Sidebar",props:{favorites:Array},setup(x){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(q,t)=>(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(o.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=s=>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))"}),p]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=s=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=s=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),V]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=s=>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))"}),v]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=s=>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))"}),C]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=s=>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))"}),_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=s=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=s=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1})]),_:1}),e.createVNode(o.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[8]||(t[8]=s=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(n.default,{onClick:t[9]||(t[9]=s=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1}),e.createVNode(n.default,{onClick:t[10]||(t[10]=s=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Menu/Menu.vue.cjs"),n=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const u=require("../../../icons/entities/IconProducts.vue.cjs"),a=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/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Community ",-1),V=e.createElementVNode("span",null," Products ",-1),v=e.createElementVNode("span",null," Leftovers ",-1),C=e.createElementVNode("span",null," Orders ",-1),_=e.createElementVNode("span",null," Gallery ",-1),h=e.createElementVNode("span",null," Events ",-1),k=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),g=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),b={__name:"Sidebar",props:{favorites:Array},setup(x){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(q,t)=>(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(o.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=s=>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))"}),p]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=s=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=s=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),V]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=s=>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))"}),v]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=s=>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))"}),C]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=s=>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))"}),_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=s=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=s=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1})]),_:1}),e.createVNode(o.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[8]||(t[8]=s=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(n.default,{onClick:t[9]||(t[9]=s=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1}),e.createVNode(n.default,{onClick:t[10]||(t[10]=s=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=b;
@@ -1,5 +1,5 @@
1
1
  import { ref as a, onMounted as m, openBlock as f, createElementBlock as p, createVNode as e, withCtx as o, unref as n, createElementVNode as i } from "vue";
2
- import u from "../../../../components/Menu/Menu.vue2.js";
2
+ import u from "../../../../components/Menu/Menu.vue.js";
3
3
  import r from "../../../../components/Menu/MenuItem.vue.js";
4
4
  /* empty css */
5
5
  import c from "../../../icons/entities/IconProducts.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../components/layouts/Backoffice.vue.cjs"),t=require("../components/partials/Sidebar.vue.cjs");require("vue");const o=require("../../auth/views/middlewares/auth.validation.cjs"),i=[{path:"backoffice",name:"Backoffice Root",component:e.default,beforeEnter:[o.requiresAdmin],children:[{path:"",name:"Backoffice Admin",meta:{title:{en:"Backoffice",ru:"Управление"},sidebar:t.default,authorize:[]},component:()=>Promise.resolve().then(()=>require("../components/pages/Dashboard.vue.cjs"))},{path:"reports",name:"Backoffice Reports",meta:{title:{en:"Backoffice Reports",ru:"Управление Жалобами"}},component:()=>Promise.resolve().then(()=>require("../../reports/components/pages/BackofficeReports.vue.cjs"))},{path:"organizations",name:"Backoffice Organizations",meta:{title:{en:"Backoffice Organizations",ru:"Управление Организациями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../organizations/components/pages/Organizations.vue.cjs"))},{path:"events",name:"Backoffice Events",meta:{title:{en:"Backoffice Events",ru:"Управление Событиями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../events/components/pages/Events.vue.cjs"))},{path:"community",name:"Backoffice Community",meta:{title:{en:"Backoffice Community",ru:"Управление Сообществом"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../community/components/pages/Community.vue.cjs"))}]}];exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../components/layouts/Backoffice.vue.cjs"),t=require("../components/partials/Sidebar.vue.cjs");require("vue");const o=require("../../auth/views/middlewares/auth.validation.cjs"),i=[{path:"backoffice",name:"Backoffice Root",component:e.default,meta:{sidebar:t.default},props:{newsletterPopup:12344},beforeEnter:[o.requiresAdmin],children:[{path:"",name:"Backoffice Admin",meta:{title:{en:"Backoffice",ru:"Управление"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Dashboard.vue.cjs"))},{path:"reports",name:"Backoffice Reports",meta:{title:{en:"Backoffice Reports",ru:"Управление Жалобами"}},component:()=>Promise.resolve().then(()=>require("../../reports/components/pages/BackofficeReports.vue.cjs"))},{path:"organizations",name:"Backoffice Organizations",meta:{title:{en:"Backoffice Organizations",ru:"Управление Организациями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../organizations/components/pages/Organizations.vue.cjs"))},{path:"events",name:"Backoffice Events",meta:{title:{en:"Backoffice Events",ru:"Управление Событиями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../events/components/pages/Events.vue.cjs"))},{path:"community",name:"Backoffice Community",meta:{title:{en:"Backoffice Community",ru:"Управление Сообществом"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../community/components/pages/Community.vue.cjs"))}]}];exports.default=i;
@@ -6,6 +6,12 @@ const c = [{
6
6
  path: "backoffice",
7
7
  name: "Backoffice Root",
8
8
  component: e,
9
+ meta: {
10
+ sidebar: t
11
+ },
12
+ props: {
13
+ newsletterPopup: 12344
14
+ },
9
15
  beforeEnter: [
10
16
  o
11
17
  ],
@@ -17,9 +23,7 @@ const c = [{
17
23
  title: {
18
24
  en: "Backoffice",
19
25
  ru: "Управление"
20
- },
21
- sidebar: t,
22
- authorize: []
26
+ }
23
27
  },
24
28
  component: () => import(
25
29
  /* webpackChunkName: 'BackofficeGallery' */
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs"),k=require("vue-i18n"),_=require("vue-router"),d=require("../../store/globals.cjs"),b=require("../../../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),B={key:0,class:"w-100 h-100"},i="https://weeder.delivery",C={__name:"App",props:{messages:{type:Object,required:!0},logotype:{type:Object}},setup(c){const p=c,{t:o,locale:$}=k.useI18n({messages:p.messages}),l=e.computed(()=>u(`${i}${a.path}`)),a=_.useRoute(),m=["en","ru"];function u(t){return t.endsWith("/")?t.slice(0,-1):t}const h=e.computed(()=>({title:o("meta.title"),description:o("meta.description"),meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"},{hid:"description",name:"description",content:o("meta.description")},{hid:"keywords",name:"keywords",content:o("meta.keywords")},{hid:"og:title",property:"og:title",content:o("meta.og.title")},{hid:"og:description",property:"og:description",content:o("meta.og.description")},{hid:"og:image",property:"og:image",content:i+"/favicon/cover.jpg"},{hid:"og:url",property:"og:url",content:l.value},{hid:"twitter:title",name:"twitter:title",content:o("meta.twitter.title")},{hid:"twitter:description",name:"twitter:description",content:o("meta.twitter.description")},{hid:"twitter:image",name:"twitter:image",content:i+"/favicon/cover.jpg"},{hid:"twitter:card",name:"twitter:card",content:o("meta.twitter.card")}],link:[{hid:"canonical",rel:"canonical",href:l.value},...g.value],htmlAttrs:{lang:o("meta.htmlAttrs.lang")}})),g=e.computed(()=>m.map(t=>{let r=a.path;a.params.locale?r=r.replace(`/${a.params.locale}`,`/${t}`):r=`/${t}${r}`;const n=u(`${i}${r}`);return{hid:"alternate",rel:"alternate",hreflang:t,href:n}}));y.u(h.value);const s=e.ref(!1);async function v(){const t=await b.Preferences.get({key:"first-use"});s.value=t.value?JSON.parse(t.value):!0}const w=t=>{s.value=t};return e.onMounted(async()=>{await v()}),(t,r)=>{const n=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"scaleTransition",mode:"out-in"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("section",B,[e.createVNode(n,{name:"Walkthrough",onUpdateFirstUse:w,slides:[1,2,3],class:"tab"})])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"moveFromTop",mode:"out-in",appear:""},{default:e.withCtx(()=>[t.MOBILE_APP?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(n,{key:0,name:"Header",ref:"header",class:e.normalizeClass(["transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0",{"pos-l-70":d.state.isOpenSidebar,"pos-l-0":!d.state.isOpenSidebar}]),theme:t.headerTheme,logotype:c.logotype},null,8,["theme","logotype","class"]))]),_:1}),e.createVNode(n,null,{default:e.withCtx(({Component:f})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f)))]),_:1})],64)}}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs"),y=require("vue-i18n"),k=require("vue-router"),n=require("../../store/globals.cjs"),C=require("../partials/BottomNavigation.vue.cjs"),S=require("../../../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),i="https://weeder.delivery",O={__name:"App",props:{messages:{type:Object,required:!0},logotype:{type:Object}},setup(c){const m=c,{t:a,locale:B}=y.useI18n({messages:m.messages}),d=e.computed(()=>p(`${i}${o.path}`)),o=k.useRoute(),u=["en","ru"];function p(t){return t.endsWith("/")?t.slice(0,-1):t}const g=e.computed(()=>({title:a("meta.title"),description:a("meta.description"),meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"},{hid:"description",name:"description",content:a("meta.description")},{hid:"keywords",name:"keywords",content:a("meta.keywords")},{hid:"og:title",property:"og:title",content:a("meta.og.title")},{hid:"og:description",property:"og:description",content:a("meta.og.description")},{hid:"og:image",property:"og:image",content:i+"/favicon/cover.jpg"},{hid:"og:url",property:"og:url",content:d.value},{hid:"twitter:title",name:"twitter:title",content:a("meta.twitter.title")},{hid:"twitter:description",name:"twitter:description",content:a("meta.twitter.description")},{hid:"twitter:image",name:"twitter:image",content:i+"/favicon/cover.jpg"},{hid:"twitter:card",name:"twitter:card",content:a("meta.twitter.card")}],link:[{hid:"canonical",rel:"canonical",href:d.value},...h.value],htmlAttrs:{lang:a("meta.htmlAttrs.lang")}})),h=e.computed(()=>u.map(t=>{let r=o.path;o.params.locale?r=r.replace(`/${o.params.locale}`,`/${t}`):r=`/${t}${r}`;const s=p(`${i}${r}`);return{hid:"alternate",rel:"alternate",hreflang:t,href:s}}));w.u(g.value);const v=e.ref(!1);async function f(){const t=await S.Preferences.get({key:"first-use"});v.value=t.value?JSON.parse(t.value):!0}return e.onMounted(async()=>{await f()}),(t,r)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"moveFromTop",mode:"out-in",appear:""},{default:e.withCtx(()=>[e.unref(o).meta.sidebar&&n.state.isOpenSidebar?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o).meta.sidebar),{key:0,stateSidebar:n.state.isOpenSidebar,onCloseSidebar:r[0]||(r[0]=()=>{n.state.isOpenSidebar=!n.state.isOpenSidebar}),class:e.normalizeClass(["transition-ease-in-out pos-absolute w-70 z-index-0 bg-light",{"pos-l-70-negative":!n.state.isOpenSidebar,"pos-l-0":n.state.isOpenSidebar}])},{default:e.withCtx(({Component:l})=>[e.unref(o).meta.navigation?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o).meta.navigation),{key:0,class:"h3 pd-big cols-1"})):e.createCommentVNode("",!0)]),_:1},40,["stateSidebar","class"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"moveFromTop",mode:"out-in",appear:""},{default:e.withCtx(()=>[!t.MOBILE_APP&&e.unref(o).meta.header?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o).meta.header),{key:0,ref:"header",class:e.normalizeClass(["transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0",{"pos-l-70":n.state.isOpenSidebar,"pos-l-0":!n.state.isOpenSidebar}]),theme:t.headerTheme,logotype:c.logotype},{default:e.withCtx(()=>[e.unref(o).meta.navigation?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o).meta.navigation),{key:0,class:"mn-l-auto desktop-only"})):e.createCommentVNode("",!0)]),_:1},8,["theme","logotype","class"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(s,{class:e.normalizeClass([{"pos-l-70":n.state.isOpenSidebar,"pos-l-0":!n.state.isOpenSidebar},"transition-ease-in-out h-min-100 w-100 bg-white pos-relative"]),ref:"screen",onScroll:t.handleScroll,onClick:r[1]||(r[1]=l=>n.state.isOpenSidebar?b=>n.state.isOpenSidebar=!1:b=>{console.log("not succes")})},{default:e.withCtx(({Component:l})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l)))]),_:1},8,["class","onScroll"]),t.MOBILE_APP&&e.unref(o).meta.title_hide?(e.openBlock(),e.createBlock(C.default,{key:0,class:"pd-small z-index-2"})):e.createCommentVNode("",!0)],64)}}};exports.default=O;
@@ -1,13 +1,11 @@
1
- import { computed as l, ref as A, onMounted as C, resolveComponent as T, openBlock as a, createElementBlock as h, Fragment as U, createVNode as i, Transition as g, withCtx as m, createCommentVNode as f, createBlock as w, normalizeClass as j, resolveDynamicComponent as B } from "vue";
2
- import { u as P } from "../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
3
- import { useI18n as S } from "vue-i18n";
4
- import { useRoute as N } from "vue-router";
5
- import { state as v } from "../../store/globals.js";
6
- import { Preferences as E } from "../../../../../../node_modules/@capacitor/preferences/dist/esm/index.js";
7
- const H = {
8
- key: 0,
9
- class: "w-100 h-100"
10
- }, s = "https://weeder.delivery", z = {
1
+ import { computed as g, ref as B, onMounted as P, resolveComponent as F, openBlock as n, createElementBlock as T, Fragment as j, createVNode as h, Transition as y, withCtx as l, unref as i, createBlock as s, resolveDynamicComponent as p, normalizeClass as f, createCommentVNode as m } from "vue";
2
+ import { u as N } from "../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
3
+ import { useI18n as z } from "vue-i18n";
4
+ import { useRoute as E } from "vue-router";
5
+ import { state as a } from "../../store/globals.js";
6
+ import I from "../partials/BottomNavigation.vue.js";
7
+ import { Preferences as L } from "../../../../../../node_modules/@capacitor/preferences/dist/esm/index.js";
8
+ const c = "https://weeder.delivery", R = {
11
9
  __name: "App",
12
10
  props: {
13
11
  messages: {
@@ -18,106 +16,136 @@ const H = {
18
16
  type: Object
19
17
  }
20
18
  },
21
- setup(p) {
22
- const y = p, { t, locale: I } = S({
23
- messages: y.messages
24
- }), d = l(() => u(`${s}${n.path}`)), n = N(), k = ["en", "ru"];
25
- function u(e) {
19
+ setup(v) {
20
+ const S = v, { t: o, locale: M } = z({
21
+ messages: S.messages
22
+ }), b = g(() => w(`${c}${t.path}`)), t = E(), k = ["en", "ru"];
23
+ function w(e) {
26
24
  return e.endsWith("/") ? e.slice(0, -1) : e;
27
25
  }
28
- const _ = l(() => ({
29
- title: t("meta.title"),
30
- description: t("meta.description"),
26
+ const O = g(() => ({
27
+ title: o("meta.title"),
28
+ description: o("meta.description"),
31
29
  meta: [
32
30
  { charset: "utf-8" },
33
31
  { name: "viewport", content: "width=device-width, initial-scale=1, shrink-to-fit=no" },
34
- { hid: "description", name: "description", content: t("meta.description") },
35
- { hid: "keywords", name: "keywords", content: t("meta.keywords") },
36
- { hid: "og:title", property: "og:title", content: t("meta.og.title") },
37
- { hid: "og:description", property: "og:description", content: t("meta.og.description") },
38
- { hid: "og:image", property: "og:image", content: s + "/favicon/cover.jpg" },
39
- { hid: "og:url", property: "og:url", content: d.value },
40
- { hid: "twitter:title", name: "twitter:title", content: t("meta.twitter.title") },
41
- { hid: "twitter:description", name: "twitter:description", content: t("meta.twitter.description") },
42
- { hid: "twitter:image", name: "twitter:image", content: s + "/favicon/cover.jpg" },
43
- { hid: "twitter:card", name: "twitter:card", content: t("meta.twitter.card") }
32
+ { hid: "description", name: "description", content: o("meta.description") },
33
+ { hid: "keywords", name: "keywords", content: o("meta.keywords") },
34
+ { hid: "og:title", property: "og:title", content: o("meta.og.title") },
35
+ { hid: "og:description", property: "og:description", content: o("meta.og.description") },
36
+ { hid: "og:image", property: "og:image", content: c + "/favicon/cover.jpg" },
37
+ { hid: "og:url", property: "og:url", content: b.value },
38
+ { hid: "twitter:title", name: "twitter:title", content: o("meta.twitter.title") },
39
+ { hid: "twitter:description", name: "twitter:description", content: o("meta.twitter.description") },
40
+ { hid: "twitter:image", name: "twitter:image", content: c + "/favicon/cover.jpg" },
41
+ { hid: "twitter:card", name: "twitter:card", content: o("meta.twitter.card") }
44
42
  ],
45
43
  link: [
46
- { hid: "canonical", rel: "canonical", href: d.value },
47
- ...b.value
44
+ { hid: "canonical", rel: "canonical", href: b.value },
45
+ ..._.value
48
46
  ],
49
- htmlAttrs: { lang: t("meta.htmlAttrs.lang") }
50
- })), b = l(() => k.map((e) => {
51
- let r = n.path;
52
- n.params.locale ? r = r.replace(`/${n.params.locale}`, `/${e}`) : r = `/${e}${r}`;
53
- const o = u(`${s}${r}`);
47
+ htmlAttrs: { lang: o("meta.htmlAttrs.lang") }
48
+ })), _ = g(() => k.map((e) => {
49
+ let r = t.path;
50
+ t.params.locale ? r = r.replace(`/${t.params.locale}`, `/${e}`) : r = `/${e}${r}`;
51
+ const d = w(`${c}${r}`);
54
52
  return {
55
53
  hid: "alternate",
56
54
  rel: "alternate",
57
55
  hreflang: e,
58
- href: o
56
+ href: d
59
57
  };
60
58
  }));
61
- P(_.value);
62
- const c = A(!1);
63
- async function $() {
64
- const e = await E.get({ key: "first-use" });
65
- c.value = e.value ? JSON.parse(e.value) : !0;
59
+ N(O.value);
60
+ const $ = B(!1);
61
+ async function C() {
62
+ const e = await L.get({ key: "first-use" });
63
+ $.value = e.value ? JSON.parse(e.value) : !0;
66
64
  }
67
- const F = (e) => {
68
- c.value = e;
69
- };
70
- return C(async () => {
71
- await $();
65
+ return P(async () => {
66
+ await C();
72
67
  }), (e, r) => {
73
- const o = T("router-view");
74
- return a(), h(U, null, [
75
- i(g, {
76
- name: "scaleTransition",
77
- mode: "out-in"
68
+ const d = F("router-view");
69
+ return n(), T(j, null, [
70
+ h(y, {
71
+ name: "moveFromTop",
72
+ mode: "out-in",
73
+ appear: ""
78
74
  }, {
79
- default: m(() => [
80
- c.value ? (a(), h("section", H, [
81
- i(o, {
82
- name: "Walkthrough",
83
- onUpdateFirstUse: F,
84
- slides: [1, 2, 3],
85
- class: "tab"
86
- })
87
- ])) : f("", !0)
75
+ default: l(() => [
76
+ i(t).meta.sidebar && a.isOpenSidebar ? (n(), s(p(i(t).meta.sidebar), {
77
+ key: 0,
78
+ stateSidebar: a.isOpenSidebar,
79
+ onCloseSidebar: r[0] || (r[0] = () => {
80
+ a.isOpenSidebar = !a.isOpenSidebar;
81
+ }),
82
+ class: f(["transition-ease-in-out pos-absolute w-70 z-index-0 bg-light", {
83
+ "pos-l-70-negative": !a.isOpenSidebar,
84
+ "pos-l-0": a.isOpenSidebar
85
+ }])
86
+ }, {
87
+ default: l(({ Component: u }) => [
88
+ i(t).meta.navigation ? (n(), s(p(i(t).meta.navigation), {
89
+ key: 0,
90
+ class: "h3 pd-big cols-1"
91
+ })) : m("", !0)
92
+ ]),
93
+ _: 1
94
+ }, 40, ["stateSidebar", "class"])) : m("", !0)
88
95
  ]),
89
96
  _: 1
90
97
  }),
91
- i(g, {
98
+ h(y, {
92
99
  name: "moveFromTop",
93
100
  mode: "out-in",
94
101
  appear: ""
95
102
  }, {
96
- default: m(() => [
97
- e.MOBILE_APP ? f("", !0) : (a(), w(o, {
103
+ default: l(() => [
104
+ !e.MOBILE_APP && i(t).meta.header ? (n(), s(p(i(t).meta.header), {
98
105
  key: 0,
99
- name: "Header",
100
106
  ref: "header",
101
- class: j(["transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0", {
102
- "pos-l-70": v.isOpenSidebar,
103
- "pos-l-0": !v.isOpenSidebar
107
+ class: f(["transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0", {
108
+ "pos-l-70": a.isOpenSidebar,
109
+ "pos-l-0": !a.isOpenSidebar
104
110
  }]),
105
111
  theme: e.headerTheme,
106
- logotype: p.logotype
107
- }, null, 8, ["theme", "logotype", "class"]))
112
+ logotype: v.logotype
113
+ }, {
114
+ default: l(() => [
115
+ i(t).meta.navigation ? (n(), s(p(i(t).meta.navigation), {
116
+ key: 0,
117
+ class: "mn-l-auto desktop-only"
118
+ })) : m("", !0)
119
+ ]),
120
+ _: 1
121
+ }, 8, ["theme", "logotype", "class"])) : m("", !0)
108
122
  ]),
109
123
  _: 1
110
124
  }),
111
- i(o, null, {
112
- default: m(({ Component: O }) => [
113
- (a(), w(B(O)))
125
+ h(d, {
126
+ class: f([{
127
+ "pos-l-70": a.isOpenSidebar,
128
+ "pos-l-0": !a.isOpenSidebar
129
+ }, "transition-ease-in-out h-min-100 w-100 bg-white pos-relative"]),
130
+ ref: "screen",
131
+ onScroll: e.handleScroll,
132
+ onClick: r[1] || (r[1] = (u) => a.isOpenSidebar ? (A) => a.isOpenSidebar = !1 : (A) => {
133
+ console.log("not succes");
134
+ })
135
+ }, {
136
+ default: l(({ Component: u }) => [
137
+ (n(), s(p(u)))
114
138
  ]),
115
139
  _: 1
116
- })
140
+ }, 8, ["class", "onScroll"]),
141
+ e.MOBILE_APP && i(t).meta.title_hide ? (n(), s(I, {
142
+ key: 0,
143
+ class: "pd-small z-index-2"
144
+ })) : m("", !0)
117
145
  ], 64);
118
146
  };
119
147
  }
120
148
  };
121
149
  export {
122
- z as default
150
+ R as default
123
151
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("vue-router"),t=require("../../store/globals.cjs"),C=require("../../../../../components/Loader/Loader.vue2.cjs"),b=require("../../../../../components/Status/Status.vue.cjs"),h=require("../../../../../components/Sidebar/Sidebar.vue.cjs"),_=require("../../../../../components/Popup/Popup.vue.cjs");require("vue-i18n");;/* empty css */const w=require("../partials/LocationSelection.vue.cjs"),B=require("../partials/Navigation.vue.cjs");require("../../../../products/store/categories.cjs");const O=require("../partials/BottomNavigation.vue.cjs"),q=require("../../../../orders/components/partials/ShopCart.vue.cjs");;/* empty css */const y={id:"app-wrapper",class:"pos-relative"},N={__name:"Client",setup(V){const n=f.useRoute();f.useRouter();let u=e.ref(!1);const i=e.ref(null),m=e.ref(null),d=e.ref(n.query.referalCode);function v(){t.state.isOpenLocationPopup=!1}function g(){document.getElementById("app").scrollIntoView()}const s=e.ref(0);let l=!1;const r=e.ref(null);e.computed(()=>s.value>50?"light":n.meta.header_theme||"light");const S=()=>{if(s.value=event.target.scrollTop,s.value>50&&!l){l=!0,r.value.$el.classList.add("scrolled");const o=-r.value.$el.getBoundingClientRect().top;r.value.$el.style.transform=`translateY(${o}px)`,setTimeout(()=>{r.value.$el.style.transform="translateY(0)"},0)}else if(s.value<=75&&l){l=!1,r.value.$el.classList.remove("scrolled");const o=r.value.$el.getBoundingClientRect().top;r.value.$el.style.transform=`translateY(${o}px)`,setTimeout(()=>{r.value.$el.style.transform="translateY(0)"},0)}};return e.onMounted(async()=>{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/service-worker.js").then(o=>{console.log("SW registered: ",o)}).catch(o=>{console.log("SW registration failed: ",o)})}),i&&(u.value=!0);const a=localStorage.getItem("position");a?t.state.position=JSON.parse(a):t.state.isOpenLocationPopup=!0,d.value&&localStorage.setItem("referalCode",d.value)}),(a,o)=>{const k=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",y,[e.createVNode(e.Transition,{name:"moveFromTop",appear:""},{default:e.withCtx(()=>[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(C.default,{key:0,class:"pos-fixed"}))]),_:1}),e.createVNode(e.Transition,{name:"moveFromTop",mode:"out-in",appear:""},{default:e.withCtx(()=>[e.unref(u)&&t.state.isOpenSidebar?(e.openBlock(),e.createBlock(h.default,{key:0,stateSidebar:t.state.isOpenSidebar,onCloseSidebar:o[0]||(o[0]=()=>{t.state.isOpenSidebar=!t.state.isOpenSidebar}),class:e.normalizeClass(["transition-ease-in-out pos-absolute w-70 z-index-0 bg-light",{"pos-l-70-negative":!t.state.isOpenSidebar,"pos-l-0":t.state.isOpenSidebar}])},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"h3 pd-big cols-1"})]),_:1},8,["stateSidebar","class"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(_.default,{onClosePopup:v,isPopupOpen:t.state.isOpenLocationPopup,class:"bg-white pd-semi w-m-33r radius-big"},{default:e.withCtx(()=>[e.createVNode(w.default)]),_:1},8,["isPopupOpen"]),e.createElementVNode("section",{id:"screen",ref_key:"screen",ref:m,onScroll:S,onClick:o[1]||(o[1]=p=>t.state.isOpenSidebar?c=>t.state.isOpenSidebar=!1:c=>{console.log("not succes")}),class:e.normalizeClass(["transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll",{"pos-l-70":t.state.isOpenSidebar,"pos-l-0":!t.state.isOpenSidebar}])},[e.createVNode(q.default),t.state.error.show?(e.openBlock(),e.createBlock(b.default,{key:0,data:t.state.error,class:"z-index-7"},null,8,["data"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(k,null,{default:e.withCtx(({Component:p,route:c})=>[e.createVNode(e.Transition,{onBeforeEnter:g,name:"scaleIn",mode:"out-in",appear:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p),{ref_key:"page",ref:i,key:c.path}))]),_:2},1024)]),_:1})]),_:1}))],34),a.MOBILE_APP&&e.unref(n).meta.title_hide?(e.openBlock(),e.createBlock(O.default,{key:0,class:"pd-small z-index-2"})):e.createCommentVNode("",!0)])}}};exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),t=require("../../store/globals.cjs"),v=require("../../../../../components/Loader/Loader.vue2.cjs"),_=require("../../../../../components/Status/Status.vue.cjs"),g=require("../../../../../components/Popup/Popup.vue.cjs");require("vue-i18n");;/* empty css */const h=require("../partials/LocationSelection.vue.cjs");require("../../../../products/store/categories.cjs");const k=require("../../../../orders/components/partials/ShopCart.vue.cjs");;/* empty css */const w={id:"app-wrapper",class:"pos-relative"},C={__name:"Client",setup(q){const n=l.useRoute();l.useRouter();let i=e.ref(!1);const r=e.ref(null);e.ref(null);const s=e.ref(n.query.referalCode);function c(){t.state.isOpenLocationPopup=!1}function u(){document.getElementById("app").scrollIntoView()}const p=e.ref(0);return e.ref(null),e.computed(()=>p.value>50?"light":n.meta.header_theme||"light"),e.onMounted(async()=>{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/service-worker.js").then(o=>{console.log("SW registered: ",o)}).catch(o=>{console.log("SW registration failed: ",o)})}),r&&(i.value=!0);const a=localStorage.getItem("position");a?t.state.position=JSON.parse(a):t.state.isOpenLocationPopup=!0,s.value&&localStorage.setItem("referalCode",s.value)}),(a,o)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(e.Transition,{name:"moveFromTop",appear:""},{default:e.withCtx(()=>[r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v.default,{key:0,class:"pos-fixed"}))]),_:1}),e.createVNode(g.default,{onClosePopup:c,isPopupOpen:t.state.isOpenLocationPopup,class:"bg-white pd-semi w-m-33r radius-big"},{default:e.withCtx(()=>[e.createVNode(h.default)]),_:1},8,["isPopupOpen"]),e.createVNode(k.default),t.state.error.show?(e.openBlock(),e.createBlock(_.default,{key:0,data:t.state.error,class:"z-index-7"},null,8,["data"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(d,{class:"o-scroll"},{default:e.withCtx(({Component:f,route:m})=>[e.createVNode(e.Transition,{onBeforeEnter:u,name:"scaleIn",mode:"out-in",appear:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f),{ref_key:"page",ref:r,key:m.path}))]),_:2},1024)]),_:1})]),_:1}))])}}};exports.default=C;