@ozdao/prometheus-framework 0.2.193 → 0.2.195
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +108 -59
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +73 -99
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +60 -57
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/globals/views/components/layouts/App.vue +51 -12
- package/src/modules/globals/views/components/layouts/Client.vue +1 -19
- package/src/modules/globals/views/components/partials/Header.vue +8 -10
@@ -1,14 +1,15 @@
|
|
1
|
-
import { computed as
|
2
|
-
import { u as
|
3
|
-
import { useI18n as
|
4
|
-
import { useRoute as
|
5
|
-
import { state as
|
6
|
-
import
|
7
|
-
import
|
8
|
-
|
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";
|
7
|
+
import I from "../partials/BottomNavigation.vue.js";
|
8
|
+
import { Preferences as L } from "../../../../../../node_modules/@capacitor/preferences/dist/esm/index.js";
|
9
|
+
const M = {
|
9
10
|
key: 0,
|
10
11
|
class: "w-100 h-100"
|
11
|
-
},
|
12
|
+
}, u = "https://weeder.delivery", K = {
|
12
13
|
__name: "App",
|
13
14
|
props: {
|
14
15
|
messages: {
|
@@ -17,16 +18,19 @@ const I = {
|
|
17
18
|
},
|
18
19
|
logotype: {
|
19
20
|
type: Object
|
21
|
+
},
|
22
|
+
navigation: {
|
23
|
+
type: Object
|
20
24
|
}
|
21
25
|
},
|
22
|
-
setup(
|
23
|
-
const
|
24
|
-
messages:
|
25
|
-
}),
|
26
|
-
function
|
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) {
|
27
31
|
return e.endsWith("/") ? e.slice(0, -1) : e;
|
28
32
|
}
|
29
|
-
const
|
33
|
+
const S = f(() => ({
|
30
34
|
title: t("meta.title"),
|
31
35
|
description: t("meta.description"),
|
32
36
|
meta: [
|
@@ -36,89 +40,134 @@ const I = {
|
|
36
40
|
{ hid: "keywords", name: "keywords", content: t("meta.keywords") },
|
37
41
|
{ hid: "og:title", property: "og:title", content: t("meta.og.title") },
|
38
42
|
{ hid: "og:description", property: "og:description", content: t("meta.og.description") },
|
39
|
-
{ hid: "og:image", property: "og:image", content:
|
40
|
-
{ hid: "og:url", property: "og:url", content:
|
43
|
+
{ hid: "og:image", property: "og:image", content: u + "/favicon/cover.jpg" },
|
44
|
+
{ hid: "og:url", property: "og:url", content: w.value },
|
41
45
|
{ hid: "twitter:title", name: "twitter:title", content: t("meta.twitter.title") },
|
42
46
|
{ hid: "twitter:description", name: "twitter:description", content: t("meta.twitter.description") },
|
43
|
-
{ hid: "twitter:image", name: "twitter:image", content:
|
47
|
+
{ hid: "twitter:image", name: "twitter:image", content: u + "/favicon/cover.jpg" },
|
44
48
|
{ hid: "twitter:card", name: "twitter:card", content: t("meta.twitter.card") }
|
45
49
|
],
|
46
50
|
link: [
|
47
|
-
{ hid: "canonical", rel: "canonical", href:
|
48
|
-
|
51
|
+
{ hid: "canonical", rel: "canonical", href: w.value },
|
52
|
+
...$.value
|
49
53
|
],
|
50
54
|
htmlAttrs: { lang: t("meta.htmlAttrs.lang") }
|
51
|
-
})),
|
52
|
-
let
|
53
|
-
|
54
|
-
const
|
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}`);
|
55
59
|
return {
|
56
60
|
hid: "alternate",
|
57
61
|
rel: "alternate",
|
58
62
|
hreflang: e,
|
59
|
-
href:
|
63
|
+
href: p
|
60
64
|
};
|
61
65
|
}));
|
62
|
-
|
63
|
-
const
|
64
|
-
async function
|
65
|
-
const e = await
|
66
|
-
|
66
|
+
U(S.value);
|
67
|
+
const g = B(!1);
|
68
|
+
async function F() {
|
69
|
+
const e = await L.get({ key: "first-use" });
|
70
|
+
g.value = e.value ? JSON.parse(e.value) : !0;
|
67
71
|
}
|
68
|
-
const
|
69
|
-
|
72
|
+
const A = (e) => {
|
73
|
+
g.value = e;
|
70
74
|
};
|
71
75
|
return C(async () => {
|
72
|
-
await
|
73
|
-
}), (e,
|
74
|
-
const
|
75
|
-
return a(),
|
76
|
-
|
76
|
+
await F();
|
77
|
+
}), (e, o) => {
|
78
|
+
const p = P("router-view");
|
79
|
+
return a(), k(T, null, [
|
80
|
+
m(v, {
|
77
81
|
name: "scaleTransition",
|
78
82
|
mode: "out-in"
|
79
83
|
}, {
|
80
|
-
default:
|
81
|
-
|
82
|
-
|
84
|
+
default: r(() => [
|
85
|
+
g.value ? (a(), k("section", M, [
|
86
|
+
m(p, {
|
83
87
|
name: "Walkthrough",
|
84
|
-
onUpdateFirstUse:
|
88
|
+
onUpdateFirstUse: A,
|
85
89
|
slides: [1, 2, 3],
|
86
90
|
class: "tab"
|
87
91
|
})
|
88
|
-
])) :
|
92
|
+
])) : s("", !0)
|
89
93
|
]),
|
90
94
|
_: 1
|
91
95
|
}),
|
92
|
-
|
96
|
+
m(v, {
|
93
97
|
name: "moveFromTop",
|
94
98
|
mode: "out-in",
|
95
99
|
appear: ""
|
96
100
|
}, {
|
97
|
-
default:
|
98
|
-
|
101
|
+
default: r(() => [
|
102
|
+
i.isOpenSidebar ? (a(), n(E, {
|
99
103
|
key: 0,
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
},
|
104
|
+
stateSidebar: i.isOpenSidebar,
|
105
|
+
onCloseSidebar: o[0] || (o[0] = () => {
|
106
|
+
i.isOpenSidebar = !i.isOpenSidebar;
|
107
|
+
}),
|
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
|
111
|
+
}])
|
112
|
+
}, {
|
113
|
+
default: r(() => [
|
114
|
+
l.navigation ? (a(), n(d(l.navigation), {
|
115
|
+
key: 0,
|
116
|
+
class: "h3 pd-big cols-1"
|
117
|
+
})) : s("", !0)
|
118
|
+
]),
|
119
|
+
_: 1
|
120
|
+
}, 8, ["stateSidebar", "class"])) : s("", !0)
|
109
121
|
]),
|
110
122
|
_: 1
|
111
123
|
}),
|
112
|
-
|
113
|
-
|
114
|
-
|
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
|
134
|
+
}, {
|
135
|
+
default: r(({ Component: h }) => [
|
136
|
+
m(v, {
|
137
|
+
name: "moveFromTop",
|
138
|
+
mode: "out-in",
|
139
|
+
appear: ""
|
140
|
+
}, {
|
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))
|
151
|
+
]),
|
152
|
+
_: 2
|
153
|
+
}, 1024)
|
115
154
|
]),
|
116
155
|
_: 1
|
117
|
-
})
|
156
|
+
}, 8, ["theme", "logotype", "class"])),
|
157
|
+
m(p, null, {
|
158
|
+
default: r(({ Component: h }) => [
|
159
|
+
(a(), n(d(h)))
|
160
|
+
]),
|
161
|
+
_: 1
|
162
|
+
}),
|
163
|
+
e.MOBILE_APP && j(c).meta.title_hide ? (a(), n(I, {
|
164
|
+
key: 1,
|
165
|
+
class: "pd-small z-index-2"
|
166
|
+
})) : s("", !0)
|
118
167
|
], 64);
|
119
168
|
};
|
120
169
|
}
|
121
170
|
};
|
122
171
|
export {
|
123
|
-
|
172
|
+
K as default
|
124
173
|
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
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;
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js
CHANGED
@@ -1,146 +1,120 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { useRoute as
|
3
|
-
import { state as
|
1
|
+
import { ref as s, computed as S, onMounted as O, resolveComponent as P, openBlock as l, createElementBlock as B, createVNode as a, Transition as g, withCtx as n, createBlock as i, createCommentVNode as d, createElementVNode as L, normalizeClass as R, Suspense as b, resolveDynamicComponent as x, unref as E } from "vue";
|
2
|
+
import { useRoute as I, useRouter as T } from "vue-router";
|
3
|
+
import { state as t } from "../../store/globals.js";
|
4
4
|
import N from "../../../../../components/Loader/Loader.vue2.js";
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import W from "../../../../../components/Popup/Popup.vue.js";
|
5
|
+
import V from "../../../../../components/Status/Status.vue.js";
|
6
|
+
import W from "../../../../../components/Popup/Popup.vue2.js";
|
8
7
|
import "vue-i18n";
|
9
8
|
/* empty css */
|
10
9
|
import Y from "../partials/LocationSelection.vue.js";
|
11
|
-
|
10
|
+
/* empty css */
|
12
11
|
import "../../../../products/store/categories.js";
|
13
|
-
import
|
14
|
-
import
|
12
|
+
import z from "../partials/BottomNavigation.vue.js";
|
13
|
+
import M from "../../../../orders/components/partials/ShopCart.vue.js";
|
15
14
|
/* empty css */
|
16
|
-
const
|
15
|
+
const j = {
|
17
16
|
id: "app-wrapper",
|
18
17
|
class: "pos-relative"
|
19
|
-
},
|
18
|
+
}, re = {
|
20
19
|
__name: "Client",
|
21
|
-
setup(
|
22
|
-
const
|
23
|
-
|
24
|
-
let
|
25
|
-
const
|
26
|
-
function $() {
|
27
|
-
e.isOpenLocationPopup = !1;
|
28
|
-
}
|
20
|
+
setup(q) {
|
21
|
+
const u = I();
|
22
|
+
T();
|
23
|
+
let h = s(!1);
|
24
|
+
const m = s(null), $ = s(null), v = s(u.query.referalCode);
|
29
25
|
function w() {
|
26
|
+
t.isOpenLocationPopup = !1;
|
27
|
+
}
|
28
|
+
function y() {
|
30
29
|
document.getElementById("app").scrollIntoView();
|
31
30
|
}
|
32
|
-
const
|
33
|
-
let
|
34
|
-
const o =
|
35
|
-
|
36
|
-
const
|
37
|
-
if (
|
38
|
-
|
39
|
-
const
|
40
|
-
o.value.$el.style.transform = `translateY(${
|
31
|
+
const c = s(0);
|
32
|
+
let p = !1;
|
33
|
+
const o = s(null);
|
34
|
+
S(() => c.value > 50 ? "light" : u.meta.header_theme || "light");
|
35
|
+
const k = () => {
|
36
|
+
if (c.value = event.target.scrollTop, c.value > 50 && !p) {
|
37
|
+
p = !0, o.value.$el.classList.add("scrolled");
|
38
|
+
const e = -o.value.$el.getBoundingClientRect().top;
|
39
|
+
o.value.$el.style.transform = `translateY(${e}px)`, setTimeout(() => {
|
41
40
|
o.value.$el.style.transform = "translateY(0)";
|
42
41
|
}, 0);
|
43
|
-
} else if (
|
44
|
-
|
45
|
-
const
|
46
|
-
o.value.$el.style.transform = `translateY(${
|
42
|
+
} else if (c.value <= 75 && p) {
|
43
|
+
p = !1, o.value.$el.classList.remove("scrolled");
|
44
|
+
const e = o.value.$el.getBoundingClientRect().top;
|
45
|
+
o.value.$el.style.transform = `translateY(${e}px)`, setTimeout(() => {
|
47
46
|
o.value.$el.style.transform = "translateY(0)";
|
48
47
|
}, 0);
|
49
48
|
}
|
50
49
|
};
|
51
|
-
return
|
50
|
+
return O(async () => {
|
52
51
|
"serviceWorker" in navigator && window.addEventListener("load", () => {
|
53
|
-
navigator.serviceWorker.register("/service-worker.js").then((
|
54
|
-
console.log("SW registered: ",
|
55
|
-
}).catch((
|
56
|
-
console.log("SW registration failed: ",
|
52
|
+
navigator.serviceWorker.register("/service-worker.js").then((e) => {
|
53
|
+
console.log("SW registered: ", e);
|
54
|
+
}).catch((e) => {
|
55
|
+
console.log("SW registration failed: ", e);
|
57
56
|
});
|
58
|
-
}),
|
59
|
-
const
|
60
|
-
|
61
|
-
}), (
|
62
|
-
const
|
63
|
-
return
|
64
|
-
|
57
|
+
}), m && (h.value = !0);
|
58
|
+
const r = localStorage.getItem("position");
|
59
|
+
r ? t.position = JSON.parse(r) : t.isOpenLocationPopup = !0, v.value && localStorage.setItem("referalCode", v.value);
|
60
|
+
}), (r, e) => {
|
61
|
+
const C = P("router-view");
|
62
|
+
return l(), B("div", j, [
|
63
|
+
a(g, {
|
65
64
|
name: "moveFromTop",
|
66
65
|
appear: ""
|
67
66
|
}, {
|
68
|
-
default:
|
69
|
-
|
67
|
+
default: n(() => [
|
68
|
+
m.value ? d("", !0) : (l(), i(N, {
|
70
69
|
key: 0,
|
71
70
|
class: "pos-fixed"
|
72
71
|
}))
|
73
72
|
]),
|
74
73
|
_: 1
|
75
74
|
}),
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
appear: ""
|
80
|
-
}, {
|
81
|
-
default: a(() => [
|
82
|
-
b(g) && e.isOpenSidebar ? (s(), n(V, {
|
83
|
-
key: 0,
|
84
|
-
stateSidebar: e.isOpenSidebar,
|
85
|
-
onCloseSidebar: t[0] || (t[0] = () => {
|
86
|
-
e.isOpenSidebar = !e.isOpenSidebar;
|
87
|
-
}),
|
88
|
-
class: O(["transition-ease-in-out pos-absolute w-70 z-index-0 bg-light", {
|
89
|
-
"pos-l-70-negative": !e.isOpenSidebar,
|
90
|
-
"pos-l-0": e.isOpenSidebar
|
91
|
-
}])
|
92
|
-
}, {
|
93
|
-
default: a(() => [
|
94
|
-
r(F, { class: "h3 pd-big cols-1" })
|
95
|
-
]),
|
96
|
-
_: 1
|
97
|
-
}, 8, ["stateSidebar", "class"])) : u("", !0)
|
98
|
-
]),
|
99
|
-
_: 1
|
100
|
-
}),
|
101
|
-
r(W, {
|
102
|
-
onClosePopup: $,
|
103
|
-
isPopupOpen: e.isOpenLocationPopup,
|
75
|
+
a(W, {
|
76
|
+
onClosePopup: w,
|
77
|
+
isPopupOpen: t.isOpenLocationPopup,
|
104
78
|
class: "bg-white pd-semi w-m-33r radius-big"
|
105
79
|
}, {
|
106
|
-
default:
|
107
|
-
|
80
|
+
default: n(() => [
|
81
|
+
a(Y)
|
108
82
|
]),
|
109
83
|
_: 1
|
110
84
|
}, 8, ["isPopupOpen"]),
|
111
|
-
|
85
|
+
L("section", {
|
112
86
|
id: "screen",
|
113
87
|
ref_key: "screen",
|
114
|
-
ref:
|
115
|
-
onScroll:
|
116
|
-
onClick:
|
88
|
+
ref: $,
|
89
|
+
onScroll: k,
|
90
|
+
onClick: e[0] || (e[0] = (_) => t.isOpenSidebar ? (f) => t.isOpenSidebar = !1 : (f) => {
|
117
91
|
console.log("not succes");
|
118
92
|
}),
|
119
|
-
class:
|
120
|
-
"pos-l-70":
|
121
|
-
"pos-l-0": !
|
93
|
+
class: R(["transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll", {
|
94
|
+
"pos-l-70": t.isOpenSidebar,
|
95
|
+
"pos-l-0": !t.isOpenSidebar
|
122
96
|
}])
|
123
97
|
}, [
|
124
|
-
|
125
|
-
|
98
|
+
a(M),
|
99
|
+
t.error.show ? (l(), i(V, {
|
126
100
|
key: 0,
|
127
|
-
data:
|
101
|
+
data: t.error,
|
128
102
|
class: "z-index-7"
|
129
|
-
}, null, 8, ["data"])) :
|
130
|
-
(
|
131
|
-
default:
|
132
|
-
|
133
|
-
default:
|
134
|
-
|
135
|
-
onBeforeEnter:
|
103
|
+
}, null, 8, ["data"])) : d("", !0),
|
104
|
+
(l(), i(b, null, {
|
105
|
+
default: n(() => [
|
106
|
+
a(C, null, {
|
107
|
+
default: n(({ Component: _, route: f }) => [
|
108
|
+
a(g, {
|
109
|
+
onBeforeEnter: y,
|
136
110
|
name: "scaleIn",
|
137
111
|
mode: "out-in",
|
138
112
|
appear: ""
|
139
113
|
}, {
|
140
|
-
default:
|
141
|
-
(
|
114
|
+
default: n(() => [
|
115
|
+
(l(), i(x(_), {
|
142
116
|
ref_key: "page",
|
143
|
-
ref:
|
117
|
+
ref: m,
|
144
118
|
key: f.path
|
145
119
|
}))
|
146
120
|
]),
|
@@ -153,14 +127,14 @@ const q = {
|
|
153
127
|
_: 1
|
154
128
|
}))
|
155
129
|
], 34),
|
156
|
-
|
130
|
+
r.MOBILE_APP && E(u).meta.title_hide ? (l(), i(z, {
|
157
131
|
key: 0,
|
158
132
|
class: "pd-small z-index-2"
|
159
|
-
})) :
|
133
|
+
})) : d("", !0)
|
160
134
|
]);
|
161
135
|
};
|
162
136
|
}
|
163
137
|
};
|
164
138
|
export {
|
165
|
-
|
139
|
+
re as default
|
166
140
|
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),b=require("vue-i18n"),a=require("../../store/globals.cjs"),n=require("../../../../orders/store/shopcart.cjs"),m=require("../../../../auth/views/store/auth.cjs");;/* empty css */const h=require("../../../../../components/Button/Button.vue2.cjs"),g=require("../../../../../components/Select/Select.vue2.cjs"),f=require("../../../../../components/Checkbox/Checkbox.vue.cjs"),k=require("../../../../icons/entities/IconShopcart.vue.cjs"),p=require("../../../../icons/entities/IconProfile.vue.cjs");;/* empty css */const w={class:"i-small",fill:"inherit",xmlns:"http://www.w3.org/2000/svg",width:"50",height:"67",viewBox:"0 0 50 67"},v=e.createElementVNode("path",{d:"M25 0C11.207 0 0 11.207 0 25C0 38.793 20.832 66.668 25 66.668C29.168 66.668 50 38.793 50 25C50 11.207 38.793 0 25 0ZM25 33.332C20.418 33.332 16.668 29.582 16.668 25C16.668 20.418 20.418 16.668 25 16.668C29.582 16.668 33.332 20.418 33.332 25C33.332 29.582 29.582 33.332 25 33.332Z",fill:"inherit"},null,-1),C=[v],S={__name:"Header",props:{theme:{type:String,default:"light"},logotype:{type:Object}},setup(t){const s=t,o=u.useRouter();u.useRoute(),b.useI18n();function d(){a.state.isOpenLocationPopup=!0}return e.onMounted(()=>{n.actions.setShopcart()}),(i,l)=>{var c;return e.openBlock(),e.createElementBlock("header",{id:"header",class:e.normalizeClass(["pd-thin gap-micro flex-center flex-nowrap flex h-4r w-100 z-index-2",{"t-black bg-white":t.theme==="light","t-white bg-black":t.theme==="dark"}])},[e.createElementVNode("button",{"aria-label":"menu",onClick:l[0]||(l[0]=()=>a.state.isOpenSidebar=!a.state.isOpenSidebar),class:e.normalizeClass(["mobile-only menu-btn",{"menu-btn_active":a.state.isOpenSidebar}])},[e.createElementVNode("span",{class:e.normalizeClass(["no-events",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},[e.createElementVNode("span",{class:e.normalizeClass(["menu-btn__before",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},null,2),e.createElementVNode("span",{class:e.normalizeClass(["menu-btn__after",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},null,2)],2)],2),s.logotype?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.logotype),{key:0,onClick:l[1]||(l[1]=r=>e.unref(o).push({path:"/"})),theme:t.theme,class:"h-2r w-auto cursor-pointer"},null,8,["theme"])):e.createCommentVNode("",!0),e.createElementVNode("button",{"aria-label":"button_location",class:e.normalizeClass(["cursor-pointer bg-transp pd-l-micro pd-r-micro radius-extra uppercase t-semi br-solid br-2px transition-linear",{"fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white":t.theme==="light","fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black":t.theme==="dark"}]),onClick:l[2]||(l[2]=r=>d())},[(e.openBlock(),e.createElementBlock("svg",w,C)),e.createTextVNode(" "+e.toDisplayString((c=a.state.position)!=null&&c.country?a.state.position.country:"World"),1)],2),e.renderSlot(i.$slots,"default"),e.createVNode(f.default,{name:"darkmode",label:"Darkmode",radio:a.state.theme.darkmode,"onUpdate:radio":l[3]||(l[3]=r=>a.actions.toggleTheme()),class:e.normalizeClass(["mn-l-thin mn-r-auto desktop-only t-semi pd-micro br-2px br-solid radius-extra",{"br-light t-black":t.theme==="light","br-dark t-white":t.theme==="dark"}]),theme:t.theme},null,8,["radio","theme","class"]),e.createVNode(h.default,{"aria-label":"shopcart",submit:r=>n.actions.toggleShopcart(),counter:n.getters.cartTotalAmount,showSucces:!1,showLoader:!1,class:"pd-zero mn-l-auto mn-r-micro"},{default:e.withCtx(()=>[e.createVNode(k.default,{class:"i-semi",fill:t.theme==="light"?"rgb(var(--black))":"rgb(var(--white))"},null,8,["fill"])]),_:1},8,["submit","counter"]),e.createVNode(h.default,{"aria-label":"profile",class:"pd-zero bg-transp",submit:m.state.access.status===!1?r=>e.unref(o).push({name:"Sign In"}):r=>e.unref(o).push({name:"User Profile",params:{_id:m.state.user._id}}),showSucces:!1,showLoader:!1},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-semi",fill:t.theme==="light"?"rgb(var(--black))":"rgb(var(--white))"},null,8,["fill"])]),_:1},8,["submit"]),e.createVNode(g.default,{select:i.$i18n.locale,"onUpdate:select":l[4]||(l[4]=r=>i.$i18n.locale=r),options:[{name:"🌎 En",value:"en"},{name:"🇷🇺 Ru",value:"ru"}],property:"value",class:e.normalizeClass(["pos-relative uppercase pd-micro t-semi radius-thin",{"bg-light t-black":t.theme==="light","bg-dark t-white":t.theme==="dark"}])},null,8,["select","class"])],2)}}};exports.default=S;
|