@ozdao/prometheus-framework 0.2.195 → 0.2.197

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  3. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +12 -12
  4. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  5. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  6. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  7. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
  8. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  9. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +7 -3
  10. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +94 -116
  12. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +71 -105
  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 +1 -1
  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/users/components/pages/Profile.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  24. package/dist/prometheus-framework.cjs.js +92 -1
  25. package/dist/prometheus-framework.es.js +12891 -36
  26. package/dist/style.css +1 -1
  27. package/package.json +1 -1
  28. package/src/components/index.js +0 -1
  29. package/src/main.js +0 -3
  30. package/src/modules/backoffice/components/layouts/Backoffice.vue +3 -2
  31. package/src/modules/backoffice/router/backoffice.js +10 -2
  32. package/src/modules/globals/views/components/layouts/App.vue +36 -31
  33. package/src/modules/globals/views/components/layouts/Client.vue +35 -53
  34. package/src/{components/Sidebar → modules/globals/views/components/partials}/Sidebar.vue +2 -4
  35. 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"),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.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
+ "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,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.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 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"),f=require("../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs"),y=require("vue-i18n"),b=require("vue-router"),n=require("../../store/globals.cjs"),B=require("../../../../../components/Sidebar/Sidebar.vue.cjs"),C=require("../partials/BottomNavigation.vue.cjs"),_=require("../../../../../../node_modules/@capacitor/preferences/dist/esm/index.cjs"),S={key:0,class:"w-100 h-100"},c="https://weeder.delivery",O={__name:"App",props:{messages:{type:Object,required:!0},logotype:{type:Object},navigation:{type:Object}},setup(p){const r=p,{t:o,locale:N}=y.useI18n({messages:r.messages}),u=e.computed(()=>m(`${c}${i.path}`)),i=b.useRoute(),g=["en","ru"];function m(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:c+"/favicon/cover.jpg"},{hid:"og:url",property:"og:url",content:u.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:c+"/favicon/cover.jpg"},{hid:"twitter:card",name:"twitter:card",content:o("meta.twitter.card")}],link:[{hid:"canonical",rel:"canonical",href:u.value},...v.value],htmlAttrs:{lang:o("meta.htmlAttrs.lang")}})),v=e.computed(()=>g.map(t=>{let a=i.path;i.params.locale?a=a.replace(`/${i.params.locale}`,`/${t}`):a=`/${t}${a}`;const s=m(`${c}${a}`);return{hid:"alternate",rel:"alternate",hreflang:t,href:s}}));f.u(h.value);const l=e.ref(!1);async function k(){const t=await _.Preferences.get({key:"first-use"});l.value=t.value?JSON.parse(t.value):!0}const w=t=>{l.value=t};return e.onMounted(async()=>{await k()}),(t,a)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"scaleTransition",mode:"out-in"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("section",S,[e.createVNode(s,{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(()=>[n.state.isOpenSidebar?(e.openBlock(),e.createBlock(B.default,{key:0,stateSidebar:n.state.isOpenSidebar,onCloseSidebar:a[0]||(a[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(()=>[r.navigation?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.navigation),{key:0,class:"h3 pd-big cols-1"})):e.createCommentVNode("",!0)]),_:1},8,["stateSidebar","class"])):e.createCommentVNode("",!0)]),_:1}),t.MOBILE_APP?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s,{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":n.state.isOpenSidebar,"pos-l-0":!n.state.isOpenSidebar}]),theme:t.headerTheme,logotype:p.logotype},{default:e.withCtx(({Component:d})=>[e.createVNode(e.Transition,{name:"moveFromTop",mode:"out-in",appear:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d),null,{default:e.withCtx(()=>[r.navigation?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.navigation),{key:0,class:"mn-l-auto desktop-only"})):e.createCommentVNode("",!0)]),_:2},1024))]),_:2},1024)]),_:1},8,["theme","logotype","class"])),e.createVNode(s,null,{default:e.withCtx(({Component:d})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d)))]),_:1}),t.MOBILE_APP&&e.unref(i).meta.title_hide?(e.openBlock(),e.createBlock(C.default,{key:1,class:"pd-small z-index-2"})):e.createCommentVNode("",!0)],64)}}};exports.default=O;
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,15 +1,11 @@
1
- import { computed as f, ref as B, onMounted as C, resolveComponent as P, openBlock as a, createElementBlock as k, Fragment as T, createVNode as m, Transition as v, withCtx as r, createCommentVNode as s, createBlock as n, normalizeClass as _, resolveDynamicComponent as d, unref as j } from "vue";
2
- import { u as U } from "../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
3
- import { useI18n as N } from "vue-i18n";
4
- import { useRoute as z } from "vue-router";
5
- import { state as i } from "../../store/globals.js";
6
- import E from "../../../../../components/Sidebar/Sidebar.vue.js";
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";
7
6
  import I from "../partials/BottomNavigation.vue.js";
8
7
  import { Preferences as L } from "../../../../../../node_modules/@capacitor/preferences/dist/esm/index.js";
9
- const M = {
10
- key: 0,
11
- class: "w-100 h-100"
12
- }, u = "https://weeder.delivery", K = {
8
+ const c = "https://weeder.delivery", R = {
13
9
  __name: "App",
14
10
  props: {
15
11
  messages: {
@@ -18,156 +14,138 @@ const M = {
18
14
  },
19
15
  logotype: {
20
16
  type: Object
21
- },
22
- navigation: {
23
- type: Object
24
17
  }
25
18
  },
26
- setup(y) {
27
- const l = y, { t, locale: x } = N({
28
- messages: l.messages
29
- }), w = f(() => b(`${u}${c.path}`)), c = z(), O = ["en", "ru"];
30
- function b(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) {
31
24
  return e.endsWith("/") ? e.slice(0, -1) : e;
32
25
  }
33
- const S = f(() => ({
34
- title: t("meta.title"),
35
- description: t("meta.description"),
26
+ const O = g(() => ({
27
+ title: o("meta.title"),
28
+ description: o("meta.description"),
36
29
  meta: [
37
30
  { charset: "utf-8" },
38
31
  { name: "viewport", content: "width=device-width, initial-scale=1, shrink-to-fit=no" },
39
- { hid: "description", name: "description", content: t("meta.description") },
40
- { hid: "keywords", name: "keywords", content: t("meta.keywords") },
41
- { hid: "og:title", property: "og:title", content: t("meta.og.title") },
42
- { hid: "og:description", property: "og:description", content: t("meta.og.description") },
43
- { hid: "og:image", property: "og:image", content: u + "/favicon/cover.jpg" },
44
- { hid: "og:url", property: "og:url", content: w.value },
45
- { hid: "twitter:title", name: "twitter:title", content: t("meta.twitter.title") },
46
- { hid: "twitter:description", name: "twitter:description", content: t("meta.twitter.description") },
47
- { hid: "twitter:image", name: "twitter:image", content: u + "/favicon/cover.jpg" },
48
- { 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") }
49
42
  ],
50
43
  link: [
51
- { hid: "canonical", rel: "canonical", href: w.value },
52
- ...$.value
44
+ { hid: "canonical", rel: "canonical", href: b.value },
45
+ ..._.value
53
46
  ],
54
- htmlAttrs: { lang: t("meta.htmlAttrs.lang") }
55
- })), $ = f(() => O.map((e) => {
56
- let o = c.path;
57
- c.params.locale ? o = o.replace(`/${c.params.locale}`, `/${e}`) : o = `/${e}${o}`;
58
- const p = b(`${u}${o}`);
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}`);
59
52
  return {
60
53
  hid: "alternate",
61
54
  rel: "alternate",
62
55
  hreflang: e,
63
- href: p
56
+ href: d
64
57
  };
65
58
  }));
66
- U(S.value);
67
- const g = B(!1);
68
- async function F() {
59
+ N(O.value);
60
+ const $ = B(!1);
61
+ async function C() {
69
62
  const e = await L.get({ key: "first-use" });
70
- g.value = e.value ? JSON.parse(e.value) : !0;
63
+ $.value = e.value ? JSON.parse(e.value) : !0;
71
64
  }
72
- const A = (e) => {
73
- g.value = e;
74
- };
75
- return C(async () => {
76
- await F();
77
- }), (e, o) => {
78
- const p = P("router-view");
79
- return a(), k(T, null, [
80
- m(v, {
81
- name: "scaleTransition",
82
- mode: "out-in"
83
- }, {
84
- default: r(() => [
85
- g.value ? (a(), k("section", M, [
86
- m(p, {
87
- name: "Walkthrough",
88
- onUpdateFirstUse: A,
89
- slides: [1, 2, 3],
90
- class: "tab"
91
- })
92
- ])) : s("", !0)
93
- ]),
94
- _: 1
95
- }),
96
- m(v, {
65
+ return P(async () => {
66
+ await C();
67
+ }), (e, r) => {
68
+ const d = F("router-view");
69
+ return n(), T(j, null, [
70
+ h(y, {
97
71
  name: "moveFromTop",
98
72
  mode: "out-in",
99
73
  appear: ""
100
74
  }, {
101
- default: r(() => [
102
- i.isOpenSidebar ? (a(), n(E, {
75
+ default: l(() => [
76
+ i(t).meta.sidebar && a.isOpenSidebar ? (n(), s(p(i(t).meta.sidebar), {
103
77
  key: 0,
104
- stateSidebar: i.isOpenSidebar,
105
- onCloseSidebar: o[0] || (o[0] = () => {
106
- i.isOpenSidebar = !i.isOpenSidebar;
78
+ stateSidebar: a.isOpenSidebar,
79
+ onCloseSidebar: r[0] || (r[0] = () => {
80
+ a.isOpenSidebar = !a.isOpenSidebar;
107
81
  }),
108
- class: _(["transition-ease-in-out pos-absolute w-70 z-index-0 bg-light", {
109
- "pos-l-70-negative": !i.isOpenSidebar,
110
- "pos-l-0": i.isOpenSidebar
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
111
85
  }])
112
86
  }, {
113
- default: r(() => [
114
- l.navigation ? (a(), n(d(l.navigation), {
87
+ default: l(({ Component: u }) => [
88
+ i(t).meta.navigation ? (n(), s(p(i(t).meta.navigation), {
115
89
  key: 0,
116
90
  class: "h3 pd-big cols-1"
117
- })) : s("", !0)
91
+ })) : m("", !0)
118
92
  ]),
119
93
  _: 1
120
- }, 8, ["stateSidebar", "class"])) : s("", !0)
94
+ }, 40, ["stateSidebar", "class"])) : m("", !0)
121
95
  ]),
122
96
  _: 1
123
97
  }),
124
- e.MOBILE_APP ? s("", !0) : (a(), n(p, {
125
- key: 0,
126
- name: "Header",
127
- ref: "header",
128
- class: _(["transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0", {
129
- "pos-l-70": i.isOpenSidebar,
130
- "pos-l-0": !i.isOpenSidebar
131
- }]),
132
- theme: e.headerTheme,
133
- logotype: y.logotype
98
+ h(y, {
99
+ name: "moveFromTop",
100
+ mode: "out-in",
101
+ appear: ""
134
102
  }, {
135
- default: r(({ Component: h }) => [
136
- m(v, {
137
- name: "moveFromTop",
138
- mode: "out-in",
139
- appear: ""
103
+ default: l(() => [
104
+ !e.MOBILE_APP && i(t).meta.header ? (n(), s(p(i(t).meta.header), {
105
+ key: 0,
106
+ ref: "header",
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
110
+ }]),
111
+ theme: e.headerTheme,
112
+ logotype: v.logotype
140
113
  }, {
141
- default: r(() => [
142
- (a(), n(d(h), null, {
143
- default: r(() => [
144
- l.navigation ? (a(), n(d(l.navigation), {
145
- key: 0,
146
- class: "mn-l-auto desktop-only"
147
- })) : s("", !0)
148
- ]),
149
- _: 2
150
- }, 1024))
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)
151
119
  ]),
152
- _: 2
153
- }, 1024)
120
+ _: 1
121
+ }, 8, ["theme", "logotype", "class"])) : m("", !0)
154
122
  ]),
155
123
  _: 1
156
- }, 8, ["theme", "logotype", "class"])),
157
- m(p, null, {
158
- default: r(({ Component: h }) => [
159
- (a(), n(d(h)))
124
+ }),
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)))
160
138
  ]),
161
139
  _: 1
162
- }),
163
- e.MOBILE_APP && j(c).meta.title_hide ? (a(), n(I, {
164
- key: 1,
140
+ }, 8, ["class", "onScroll"]),
141
+ e.MOBILE_APP && i(t).meta.title_hide ? (n(), s(I, {
142
+ key: 0,
165
143
  class: "pd-small z-index-2"
166
- })) : s("", !0)
144
+ })) : m("", !0)
167
145
  ], 64);
168
146
  };
169
147
  }
170
148
  };
171
149
  export {
172
- K as default
150
+ R as default
173
151
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router"),o=require("../../store/globals.cjs"),h=require("../../../../../components/Loader/Loader.vue2.cjs"),C=require("../../../../../components/Status/Status.vue.cjs"),w=require("../../../../../components/Popup/Popup.vue2.cjs");require("vue-i18n");;/* empty css */const B=require("../partials/LocationSelection.vue.cjs");;/* empty css */require("../../../../products/store/categories.cjs");const S=,/* empty css */q=require("../../../../orders/components/partials/ShopCart.vue.cjs");;/* empty css */const y={id:"app-wrapper",class:"pos-relative"},O={__name:"Client",setup(N){const n=d.useRoute();d.useRouter();let f=e.ref(!1);const i=e.ref(null),m=e.ref(null),u=e.ref(n.query.referalCode);function v(){o.state.isOpenLocationPopup=!1}function g(){document.getElementById("app").scrollIntoView()}const a=e.ref(0);let l=!1;const r=e.ref(null);e.computed(()=>a.value>50?"light":n.meta.header_theme||"light");const k=()=>{if(a.value=event.target.scrollTop,a.value>50&&!l){l=!0,r.value.$el.classList.add("scrolled");const t=-r.value.$el.getBoundingClientRect().top;r.value.$el.style.transform=`translateY(${t}px)`,setTimeout(()=>{r.value.$el.style.transform="translateY(0)"},0)}else if(a.value<=75&&l){l=!1,r.value.$el.classList.remove("scrolled");const t=r.value.$el.getBoundingClientRect().top;r.value.$el.style.transform=`translateY(${t}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(t=>{console.log("SW registered: ",t)}).catch(t=>{console.log("SW registration failed: ",t)})}),i&&(f.value=!0);const s=localStorage.getItem("position");s?o.state.position=JSON.parse(s):o.state.isOpenLocationPopup=!0,u.value&&localStorage.setItem("referalCode",u.value)}),(s,t)=>{const _=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(h.default,{key:0,class:"pos-fixed"}))]),_:1}),e.createVNode(w.default,{onClosePopup:v,isPopupOpen:o.state.isOpenLocationPopup,class:"bg-white pd-semi w-m-33r radius-big"},{default:e.withCtx(()=>[e.createVNode(B.default)]),_:1},8,["isPopupOpen"]),e.createElementVNode("section",{id:"screen",ref_key:"screen",ref:m,onScroll:k,onClick:t[0]||(t[0]=p=>o.state.isOpenSidebar?c=>o.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":o.state.isOpenSidebar,"pos-l-0":!o.state.isOpenSidebar}])},[e.createVNode(q.default),o.state.error.show?(e.openBlock(),e.createBlock(C.default,{key:0,data:o.state.error,class:"z-index-7"},null,8,["data"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(_,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),s.MOBILE_APP&&e.unref(n).meta.title_hide?(e.openBlock(),e.createBlock(S.default,{key:0,class:"pd-small z-index-2"})):e.createCommentVNode("",!0)])}}};exports.default=O;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=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.vue2.cjs");require("vue-i18n");;/* empty css */const h=require("../partials/LocationSelection.vue.cjs");require("../../../../products/store/categories.cjs");const w=require("../../../../orders/components/partials/ShopCart.vue.cjs");;/* empty css */const k={id:"app-wrapper",class:"pos-relative"},C={__name:"Client",setup(q){const s=i.useRoute();i.useRouter();let r=e.ref(!1);const a=e.ref(null);e.ref(null);const l=e.ref(s.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":s.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)})}),a&&(r.value=!0);const n=localStorage.getItem("position");n?t.state.position=JSON.parse(n):t.state.isOpenLocationPopup=!0,l.value&&localStorage.setItem("referalCode",l.value)}),(n,o)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",k,[e.createVNode(e.Transition,{name:"moveFromTop",appear:""},{default:e.withCtx(()=>[!a.value&&!e.unref(r)?(e.openBlock(),e.createBlock(v.default,{key:0,class:"pos-fixed"})):e.createCommentVNode("",!0)]),_: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(w.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.withDirectives(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:a,key:m.path}))]),_:2},1024)]),_:1},512),[[e.vShow,e.unref(r)]])]),_:1}))])}}};exports.default=C;