@ozdao/prometheus-framework 0.2.201 → 0.2.203
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +113 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +76 -51
- package/dist/prometheus-framework/src/components/Address/Address.vue.js.map +1 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +169 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +125 -82
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js.map +1 -0
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +17 -1
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +11 -7
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +3 -6
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +4 -7
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js.map +1 -1
- package/dist/style.css +21 -21
- package/package.json +1 -1
- package/src/modules/globals/views/components/layouts/Client.vue +3 -3
- package/src/modules/globals/views/components/partials/NavigationBar.vue +1 -18
@@ -1 +1,113 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const vue = require("vue");
|
4
|
+
const index = require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");
|
5
|
+
;/* empty css */
|
6
|
+
const _hoisted_1 = {
|
7
|
+
key: 0,
|
8
|
+
class: "t-transp mn-r-small"
|
9
|
+
};
|
10
|
+
const _hoisted_2 = ["placeholder", "value"];
|
11
|
+
const _hoisted_3 = {
|
12
|
+
key: 0,
|
13
|
+
class: "mn-t-thin invalid-feedback"
|
14
|
+
};
|
15
|
+
const _sfc_main = {
|
16
|
+
__name: "Address",
|
17
|
+
props: {
|
18
|
+
apiKey: {
|
19
|
+
type: String,
|
20
|
+
required: true
|
21
|
+
},
|
22
|
+
label: null,
|
23
|
+
placeholder: "Enter something here",
|
24
|
+
field: null,
|
25
|
+
location: {
|
26
|
+
type: Object,
|
27
|
+
default: { lat: 48.6900735, lng: 41.1620239 }
|
28
|
+
},
|
29
|
+
address: {
|
30
|
+
type: String,
|
31
|
+
default: ""
|
32
|
+
},
|
33
|
+
locale: {
|
34
|
+
type: String,
|
35
|
+
default: "en"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
emits: ["update:address", "update:location", "update:country", "update:state", "update:city"],
|
39
|
+
setup(__props, { emit: __emit }) {
|
40
|
+
const props = __props;
|
41
|
+
const emit = __emit;
|
42
|
+
const addressInput = vue.ref(null);
|
43
|
+
let autocomplete;
|
44
|
+
const onPlaceChanged = () => {
|
45
|
+
const place = autocomplete.getPlace();
|
46
|
+
if (!place.geometry || !place.address_components) {
|
47
|
+
return;
|
48
|
+
}
|
49
|
+
let country = "", state = "", city = "";
|
50
|
+
for (let i = 0; i < place.address_components.length; i++) {
|
51
|
+
let addr = place.address_components[i];
|
52
|
+
if (addr.types.includes("country")) {
|
53
|
+
country = addr.long_name;
|
54
|
+
}
|
55
|
+
if (addr.types.includes("administrative_area_level_1")) {
|
56
|
+
state = addr.long_name;
|
57
|
+
}
|
58
|
+
if (addr.types.includes("locality")) {
|
59
|
+
city = addr.long_name;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
const newAddress = place.formatted_address;
|
63
|
+
const newLocation = { lat: place.geometry.location.lat(), lng: place.geometry.location.lng() };
|
64
|
+
emit("update:address", newAddress);
|
65
|
+
emit("update:location", newLocation);
|
66
|
+
emit("update:country", country);
|
67
|
+
emit("update:state", state);
|
68
|
+
emit("update:city", city);
|
69
|
+
};
|
70
|
+
vue.onMounted(() => {
|
71
|
+
const loader = new index.Loader({
|
72
|
+
apiKey: props.apiKey,
|
73
|
+
version: "weekly",
|
74
|
+
libraries: ["places"],
|
75
|
+
language: props.locale
|
76
|
+
});
|
77
|
+
loader.load().then(() => {
|
78
|
+
autocomplete = new google.maps.places.Autocomplete(addressInput.value);
|
79
|
+
autocomplete.addListener("place_changed", onPlaceChanged);
|
80
|
+
}).catch((e) => {
|
81
|
+
console.error(e);
|
82
|
+
});
|
83
|
+
});
|
84
|
+
return (_ctx, _cache) => {
|
85
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
86
|
+
class: vue.normalizeClass([_ctx.$attrs.class, "flex-nowrap flex"])
|
87
|
+
}, [
|
88
|
+
__props.label ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
89
|
+
vue.createElementVNode("span", null, vue.toDisplayString(__props.label), 1)
|
90
|
+
])) : vue.createCommentVNode("", true),
|
91
|
+
vue.createElementVNode("input", {
|
92
|
+
ref_key: "addressInput",
|
93
|
+
ref: addressInput,
|
94
|
+
class: "w-100",
|
95
|
+
placeholder: __props.placeholder,
|
96
|
+
value: __props.address,
|
97
|
+
onInput: _cache[0] || (_cache[0] = (...args) => _ctx.onInput && _ctx.onInput(...args))
|
98
|
+
}, null, 40, _hoisted_2),
|
99
|
+
vue.createVNode(vue.Transition, {
|
100
|
+
mode: "out-in",
|
101
|
+
name: "fade"
|
102
|
+
}, {
|
103
|
+
default: vue.withCtx(() => [
|
104
|
+
_ctx.validation ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, " * " + vue.toDisplayString(_ctx.validation.message), 1)) : vue.createCommentVNode("", true)
|
105
|
+
]),
|
106
|
+
_: 1
|
107
|
+
})
|
108
|
+
], 2);
|
109
|
+
};
|
110
|
+
}
|
111
|
+
};
|
112
|
+
exports.default = _sfc_main;
|
113
|
+
//# sourceMappingURL=Address.vue.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Address.vue.cjs","sources":["../../../../../src/components/Address/Address.vue"],"sourcesContent":["<template>\n <div :class=\"$attrs.class\" class=\"flex-nowrap flex\"> \n <!-- ////////////////////////// -->\n <!-- Label -->\n <!-- ////////////////////////// -->\n <div v-if=\"label\" class=\"t-transp mn-r-small\">\n <span>{{label}}</span>\n </div>\n <!-- ////////////////////////// -->\n <!-- Input -->\n <!-- ////////////////////////// -->\n <input\n ref=\"addressInput\"\n class=\"w-100\"\n :placeholder=\"placeholder\"\n :value=\"address\"\n @input=\"onInput\"\n />\n <!-- ////////////////////////// -->\n <!-- Validation -->\n <!-- ////////////////////////// -->\n <transition mode=\"out-in\" name=\"fade\">\n <div v-if=\"validation\" class=\"mn-t-thin invalid-feedback\">\n * {{validation.message}}\n </div>\n </transition>\n </div>\n</template>\n\n<style>\n.pac-container {\n position: absolute;\n background-color: white;\n z-index: 1000;\n border-radius: 2rem;\n overflow: hidden;\n}\n</style>\n\n<script setup>\nimport { ref, onMounted, watchEffect } from 'vue';\n\nimport { Loader as GMLoader } from \"@googlemaps/js-api-loader\";\n\nconst props = defineProps({\n apiKey: {\n type: String,\n required: true,\n },\n label: null,\n placeholder: 'Enter something here',\n field: null,\n location: {\n type: Object,\n default: { lat: 48.6900735, lng: 41.16202390 }\n },\n address: {\n type: String,\n default: \"\"\n },\n locale: {\n type: String,\n default: 'en'\n }\n});\n\nconst emit = defineEmits(['update:address', 'update:location', 'update:country', 'update:state', 'update:city']);\n\nconst addressInput = ref(null);\n\nlet autocomplete;\n\nconst onPlaceChanged = () => {\n const place = autocomplete.getPlace();\n\n if (!place.geometry || !place.address_components) {\n return;\n }\n\n let country = '', state = '', city = '';\n\n for (let i = 0; i < place.address_components.length; i++) {\n\n let addr = place.address_components[i];\n\n if (addr.types.includes('country')) {\n country = addr.long_name;\n }\n if (addr.types.includes('administrative_area_level_1')) {\n state = addr.long_name;\n }\n if (addr.types.includes('locality')) {\n city = addr.long_name;\n }\n }\n \n const newAddress = place.formatted_address;\n const newLocation = { lat: place.geometry.location.lat(), lng: place.geometry.location.lng() };\n\n emit('update:address', newAddress);\n emit('update:location', newLocation);\n \n // Add new emits\n emit('update:country', country);\n emit('update:state', state);\n emit('update:city', city);\n};\n\nonMounted(() => { \n const loader = new GMLoader({ \n apiKey: props.apiKey, \n version: \"weekly\", \n libraries: [\"places\"],\n language: props.locale, \n });\n\n loader.load().then(() => { \n autocomplete = new google.maps.places.Autocomplete(addressInput.value); \n autocomplete.addListener('place_changed', onPlaceChanged); \n }).catch(e => { \n console.error(e); \n }); \n});\n</script>"],"names":["ref","onMounted","GMLoader"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,UAAM,QAAQ;AAsBd,UAAM,OAAO;AAEb,UAAM,eAAeA,IAAAA,IAAI,IAAI;AAE7B,QAAI;AAEJ,UAAM,iBAAiB,MAAM;AAC3B,YAAM,QAAQ,aAAa;AAE3B,UAAI,CAAC,MAAM,YAAY,CAAC,MAAM,oBAAoB;AAChD;AAAA,MACD;AAED,UAAI,UAAU,IAAI,QAAQ,IAAI,OAAO;AAErC,eAAS,IAAI,GAAG,IAAI,MAAM,mBAAmB,QAAQ,KAAK;AAExD,YAAI,OAAO,MAAM,mBAAmB,CAAC;AAErC,YAAI,KAAK,MAAM,SAAS,SAAS,GAAG;AAClC,oBAAU,KAAK;AAAA,QAChB;AACD,YAAI,KAAK,MAAM,SAAS,6BAA6B,GAAG;AACtD,kBAAQ,KAAK;AAAA,QACd;AACD,YAAI,KAAK,MAAM,SAAS,UAAU,GAAG;AACnC,iBAAO,KAAK;AAAA,QACb;AAAA,MACF;AAED,YAAM,aAAa,MAAM;AACzB,YAAM,cAAc,EAAE,KAAK,MAAM,SAAS,SAAS,OAAO,KAAK,MAAM,SAAS,SAAS,IAAK,EAAA;AAE5F,WAAK,kBAAkB,UAAU;AACjC,WAAK,mBAAmB,WAAW;AAGnC,WAAK,kBAAkB,OAAO;AAC9B,WAAK,gBAAgB,KAAK;AAC1B,WAAK,eAAe,IAAI;AAAA,IAC1B;AAEAC,QAAAA,UAAU,MAAM;AACd,YAAM,SAAS,IAAIC,aAAS;AAAA,QAC1B,QAAQ,MAAM;AAAA,QACd,SAAS;AAAA,QACT,WAAW,CAAC,QAAQ;AAAA,QACpB,UAAU,MAAM;AAAA,MACpB,CAAG;AAED,aAAO,OAAO,KAAK,MAAM;AACvB,uBAAe,IAAI,OAAO,KAAK,OAAO,aAAa,aAAa,KAAK;AACrE,qBAAa,YAAY,iBAAiB,cAAc;AAAA,MAC5D,CAAG,EAAE,MAAM,OAAK;AACZ,gBAAQ,MAAM,CAAC;AAAA,MACnB,CAAG;AAAA,IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,18 +1,21 @@
|
|
1
|
-
import { ref
|
2
|
-
import { Loader
|
1
|
+
import { ref, onMounted, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, createVNode, Transition, withCtx } from "vue";
|
2
|
+
import { Loader } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
|
3
3
|
/* empty css */
|
4
|
-
const
|
4
|
+
const _hoisted_1 = {
|
5
5
|
key: 0,
|
6
6
|
class: "t-transp mn-r-small"
|
7
|
-
}
|
7
|
+
};
|
8
|
+
const _hoisted_2 = ["placeholder", "value"];
|
9
|
+
const _hoisted_3 = {
|
8
10
|
key: 0,
|
9
11
|
class: "mn-t-thin invalid-feedback"
|
10
|
-
}
|
12
|
+
};
|
13
|
+
const _sfc_main = {
|
11
14
|
__name: "Address",
|
12
15
|
props: {
|
13
16
|
apiKey: {
|
14
17
|
type: String,
|
15
|
-
required:
|
18
|
+
required: true
|
16
19
|
},
|
17
20
|
label: null,
|
18
21
|
placeholder: "Enter something here",
|
@@ -31,58 +34,80 @@ const E = {
|
|
31
34
|
}
|
32
35
|
},
|
33
36
|
emits: ["update:address", "update:location", "update:country", "update:state", "update:city"],
|
34
|
-
setup(
|
35
|
-
const
|
36
|
-
|
37
|
-
const
|
38
|
-
|
39
|
-
|
37
|
+
setup(__props, { emit: __emit }) {
|
38
|
+
const props = __props;
|
39
|
+
const emit = __emit;
|
40
|
+
const addressInput = ref(null);
|
41
|
+
let autocomplete;
|
42
|
+
const onPlaceChanged = () => {
|
43
|
+
const place = autocomplete.getPlace();
|
44
|
+
if (!place.geometry || !place.address_components) {
|
40
45
|
return;
|
41
|
-
let t = "", o = "", p = "";
|
42
|
-
for (let d = 0; d < e.address_components.length; d++) {
|
43
|
-
let a = e.address_components[d];
|
44
|
-
a.types.includes("country") && (t = a.long_name), a.types.includes("administrative_area_level_1") && (o = a.long_name), a.types.includes("locality") && (p = a.long_name);
|
45
46
|
}
|
46
|
-
|
47
|
-
|
47
|
+
let country = "", state = "", city = "";
|
48
|
+
for (let i = 0; i < place.address_components.length; i++) {
|
49
|
+
let addr = place.address_components[i];
|
50
|
+
if (addr.types.includes("country")) {
|
51
|
+
country = addr.long_name;
|
52
|
+
}
|
53
|
+
if (addr.types.includes("administrative_area_level_1")) {
|
54
|
+
state = addr.long_name;
|
55
|
+
}
|
56
|
+
if (addr.types.includes("locality")) {
|
57
|
+
city = addr.long_name;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
const newAddress = place.formatted_address;
|
61
|
+
const newLocation = { lat: place.geometry.location.lat(), lng: place.geometry.location.lng() };
|
62
|
+
emit("update:address", newAddress);
|
63
|
+
emit("update:location", newLocation);
|
64
|
+
emit("update:country", country);
|
65
|
+
emit("update:state", state);
|
66
|
+
emit("update:city", city);
|
48
67
|
};
|
49
|
-
|
50
|
-
new
|
51
|
-
apiKey:
|
68
|
+
onMounted(() => {
|
69
|
+
const loader = new Loader({
|
70
|
+
apiKey: props.apiKey,
|
52
71
|
version: "weekly",
|
53
72
|
libraries: ["places"],
|
54
|
-
language:
|
55
|
-
}).load().then(() => {
|
56
|
-
s = new google.maps.places.Autocomplete(u.value), s.addListener("place_changed", h);
|
57
|
-
}).catch((t) => {
|
58
|
-
console.error(t);
|
73
|
+
language: props.locale
|
59
74
|
});
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
class: "
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
75
|
+
loader.load().then(() => {
|
76
|
+
autocomplete = new google.maps.places.Autocomplete(addressInput.value);
|
77
|
+
autocomplete.addListener("place_changed", onPlaceChanged);
|
78
|
+
}).catch((e) => {
|
79
|
+
console.error(e);
|
80
|
+
});
|
81
|
+
});
|
82
|
+
return (_ctx, _cache) => {
|
83
|
+
return openBlock(), createElementBlock("div", {
|
84
|
+
class: normalizeClass([_ctx.$attrs.class, "flex-nowrap flex"])
|
85
|
+
}, [
|
86
|
+
__props.label ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
87
|
+
createElementVNode("span", null, toDisplayString(__props.label), 1)
|
88
|
+
])) : createCommentVNode("", true),
|
89
|
+
createElementVNode("input", {
|
90
|
+
ref_key: "addressInput",
|
91
|
+
ref: addressInput,
|
92
|
+
class: "w-100",
|
93
|
+
placeholder: __props.placeholder,
|
94
|
+
value: __props.address,
|
95
|
+
onInput: _cache[0] || (_cache[0] = (...args) => _ctx.onInput && _ctx.onInput(...args))
|
96
|
+
}, null, 40, _hoisted_2),
|
97
|
+
createVNode(Transition, {
|
98
|
+
mode: "out-in",
|
99
|
+
name: "fade"
|
100
|
+
}, {
|
101
|
+
default: withCtx(() => [
|
102
|
+
_ctx.validation ? (openBlock(), createElementBlock("div", _hoisted_3, " * " + toDisplayString(_ctx.validation.message), 1)) : createCommentVNode("", true)
|
103
|
+
]),
|
104
|
+
_: 1
|
105
|
+
})
|
106
|
+
], 2);
|
107
|
+
};
|
84
108
|
}
|
85
109
|
};
|
86
110
|
export {
|
87
|
-
|
111
|
+
_sfc_main as default
|
88
112
|
};
|
113
|
+
//# sourceMappingURL=Address.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Address.vue.js","sources":["../../../../../src/components/Address/Address.vue"],"sourcesContent":["<template>\n <div :class=\"$attrs.class\" class=\"flex-nowrap flex\"> \n <!-- ////////////////////////// -->\n <!-- Label -->\n <!-- ////////////////////////// -->\n <div v-if=\"label\" class=\"t-transp mn-r-small\">\n <span>{{label}}</span>\n </div>\n <!-- ////////////////////////// -->\n <!-- Input -->\n <!-- ////////////////////////// -->\n <input\n ref=\"addressInput\"\n class=\"w-100\"\n :placeholder=\"placeholder\"\n :value=\"address\"\n @input=\"onInput\"\n />\n <!-- ////////////////////////// -->\n <!-- Validation -->\n <!-- ////////////////////////// -->\n <transition mode=\"out-in\" name=\"fade\">\n <div v-if=\"validation\" class=\"mn-t-thin invalid-feedback\">\n * {{validation.message}}\n </div>\n </transition>\n </div>\n</template>\n\n<style>\n.pac-container {\n position: absolute;\n background-color: white;\n z-index: 1000;\n border-radius: 2rem;\n overflow: hidden;\n}\n</style>\n\n<script setup>\nimport { ref, onMounted, watchEffect } from 'vue';\n\nimport { Loader as GMLoader } from \"@googlemaps/js-api-loader\";\n\nconst props = defineProps({\n apiKey: {\n type: String,\n required: true,\n },\n label: null,\n placeholder: 'Enter something here',\n field: null,\n location: {\n type: Object,\n default: { lat: 48.6900735, lng: 41.16202390 }\n },\n address: {\n type: String,\n default: \"\"\n },\n locale: {\n type: String,\n default: 'en'\n }\n});\n\nconst emit = defineEmits(['update:address', 'update:location', 'update:country', 'update:state', 'update:city']);\n\nconst addressInput = ref(null);\n\nlet autocomplete;\n\nconst onPlaceChanged = () => {\n const place = autocomplete.getPlace();\n\n if (!place.geometry || !place.address_components) {\n return;\n }\n\n let country = '', state = '', city = '';\n\n for (let i = 0; i < place.address_components.length; i++) {\n\n let addr = place.address_components[i];\n\n if (addr.types.includes('country')) {\n country = addr.long_name;\n }\n if (addr.types.includes('administrative_area_level_1')) {\n state = addr.long_name;\n }\n if (addr.types.includes('locality')) {\n city = addr.long_name;\n }\n }\n \n const newAddress = place.formatted_address;\n const newLocation = { lat: place.geometry.location.lat(), lng: place.geometry.location.lng() };\n\n emit('update:address', newAddress);\n emit('update:location', newLocation);\n \n // Add new emits\n emit('update:country', country);\n emit('update:state', state);\n emit('update:city', city);\n};\n\nonMounted(() => { \n const loader = new GMLoader({ \n apiKey: props.apiKey, \n version: \"weekly\", \n libraries: [\"places\"],\n language: props.locale, \n });\n\n loader.load().then(() => { \n autocomplete = new google.maps.places.Autocomplete(addressInput.value); \n autocomplete.addListener('place_changed', onPlaceChanged); \n }).catch(e => { \n console.error(e); \n }); \n});\n</script>"],"names":["GMLoader"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,UAAM,QAAQ;AAsBd,UAAM,OAAO;AAEb,UAAM,eAAe,IAAI,IAAI;AAE7B,QAAI;AAEJ,UAAM,iBAAiB,MAAM;AAC3B,YAAM,QAAQ,aAAa;AAE3B,UAAI,CAAC,MAAM,YAAY,CAAC,MAAM,oBAAoB;AAChD;AAAA,MACD;AAED,UAAI,UAAU,IAAI,QAAQ,IAAI,OAAO;AAErC,eAAS,IAAI,GAAG,IAAI,MAAM,mBAAmB,QAAQ,KAAK;AAExD,YAAI,OAAO,MAAM,mBAAmB,CAAC;AAErC,YAAI,KAAK,MAAM,SAAS,SAAS,GAAG;AAClC,oBAAU,KAAK;AAAA,QAChB;AACD,YAAI,KAAK,MAAM,SAAS,6BAA6B,GAAG;AACtD,kBAAQ,KAAK;AAAA,QACd;AACD,YAAI,KAAK,MAAM,SAAS,UAAU,GAAG;AACnC,iBAAO,KAAK;AAAA,QACb;AAAA,MACF;AAED,YAAM,aAAa,MAAM;AACzB,YAAM,cAAc,EAAE,KAAK,MAAM,SAAS,SAAS,OAAO,KAAK,MAAM,SAAS,SAAS,IAAK,EAAA;AAE5F,WAAK,kBAAkB,UAAU;AACjC,WAAK,mBAAmB,WAAW;AAGnC,WAAK,kBAAkB,OAAO;AAC9B,WAAK,gBAAgB,KAAK;AAC1B,WAAK,eAAe,IAAI;AAAA,IAC1B;AAEA,cAAU,MAAM;AACd,YAAM,SAAS,IAAIA,OAAS;AAAA,QAC1B,QAAQ,MAAM;AAAA,QACd,SAAS;AAAA,QACT,WAAW,CAAC,QAAQ;AAAA,QACpB,UAAU,MAAM;AAAA,MACpB,CAAG;AAED,aAAO,OAAO,KAAK,MAAM;AACvB,uBAAe,IAAI,OAAO,KAAK,OAAO,aAAa,aAAa,KAAK;AACrE,qBAAa,YAAY,iBAAiB,cAAc;AAAA,MAC5D,CAAG,EAAE,MAAM,OAAK;AACZ,gBAAQ,MAAM,CAAC;AAAA,MACnB,CAAG;AAAA,IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1 +1,169 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const vue = require("vue");
|
4
|
+
const index = require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");
|
5
|
+
const Loader = require("../Loader/Loader.vue2.cjs");
|
6
|
+
;/* empty css */
|
7
|
+
const _hoisted_1 = { class: "pos-relative" };
|
8
|
+
const _hoisted_2 = {
|
9
|
+
key: 0,
|
10
|
+
class: "i-regular",
|
11
|
+
width: "98",
|
12
|
+
height: "98",
|
13
|
+
viewBox: "0 0 98 98",
|
14
|
+
fill: "none",
|
15
|
+
xmlns: "http://www.w3.org/2000/svg"
|
16
|
+
};
|
17
|
+
const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", {
|
18
|
+
d: "M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",
|
19
|
+
fill: "rgb(var(--white))"
|
20
|
+
}, null, -1);
|
21
|
+
const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("path", {
|
22
|
+
d: "M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",
|
23
|
+
fill: "rgb(var(--white))"
|
24
|
+
}, null, -1);
|
25
|
+
const _hoisted_5 = [
|
26
|
+
_hoisted_3,
|
27
|
+
_hoisted_4
|
28
|
+
];
|
29
|
+
const _sfc_main = {
|
30
|
+
__name: "LocationMarker",
|
31
|
+
props: {
|
32
|
+
location: {
|
33
|
+
type: Object,
|
34
|
+
default: () => ({ lat: 15.87, lng: 100.9925 })
|
35
|
+
},
|
36
|
+
address: {
|
37
|
+
type: String,
|
38
|
+
default: null
|
39
|
+
},
|
40
|
+
apiKey: String,
|
41
|
+
locale: {
|
42
|
+
type: String,
|
43
|
+
default: "en"
|
44
|
+
}
|
45
|
+
},
|
46
|
+
emits: ["update:location", "update:address", "update:country", "update:state", "update:city"],
|
47
|
+
setup(__props, { emit: __emit }) {
|
48
|
+
const props = __props;
|
49
|
+
const emit = __emit;
|
50
|
+
const mapContainer = vue.ref(null);
|
51
|
+
const locationLoading = vue.ref(false);
|
52
|
+
let map, marker;
|
53
|
+
vue.onMounted(() => {
|
54
|
+
const loader = new index.Loader({
|
55
|
+
apiKey: props.apiKey,
|
56
|
+
version: "weekly",
|
57
|
+
libraries: ["places"],
|
58
|
+
language: props.locale
|
59
|
+
});
|
60
|
+
loader.load().then(() => {
|
61
|
+
map = new google.maps.Map(mapContainer.value, {
|
62
|
+
center: props.location,
|
63
|
+
zoom: 15,
|
64
|
+
mapTypeControl: false,
|
65
|
+
fullscreenControl: false,
|
66
|
+
disableDefaultUI: true
|
67
|
+
});
|
68
|
+
marker = new google.maps.Marker({
|
69
|
+
position: props.location,
|
70
|
+
map,
|
71
|
+
draggable: true
|
72
|
+
});
|
73
|
+
marker.addListener("dragend", (e) => {
|
74
|
+
const newLocation = { lat: e.latLng.lat(), lng: e.latLng.lng() };
|
75
|
+
emit("update:location", newLocation);
|
76
|
+
getAddressFromLocation(newLocation);
|
77
|
+
});
|
78
|
+
}).catch((e) => {
|
79
|
+
console.error(e);
|
80
|
+
});
|
81
|
+
});
|
82
|
+
vue.watchEffect(() => {
|
83
|
+
if (props.location && marker) {
|
84
|
+
marker.setPosition(new google.maps.LatLng(props.location.lat, props.location.lng));
|
85
|
+
}
|
86
|
+
});
|
87
|
+
vue.watchEffect(() => {
|
88
|
+
if (props.location && map) {
|
89
|
+
const newCenter = new google.maps.LatLng(props.location.lat, props.location.lng);
|
90
|
+
map.setCenter(newCenter);
|
91
|
+
map.setZoom(15);
|
92
|
+
}
|
93
|
+
});
|
94
|
+
function getAddressFromLocation(location) {
|
95
|
+
const geocoder = new google.maps.Geocoder();
|
96
|
+
geocoder.geocode({ "location": location }, (results, status) => {
|
97
|
+
if (status === "OK") {
|
98
|
+
if (results[0]) {
|
99
|
+
emit("update:address", results[0].formatted_address);
|
100
|
+
let country = "", state = "", city = "";
|
101
|
+
results[0].address_components.forEach((addr) => {
|
102
|
+
if (addr.types.includes("country")) {
|
103
|
+
country = addr.long_name;
|
104
|
+
}
|
105
|
+
if (addr.types.includes("administrative_area_level_1")) {
|
106
|
+
state = addr.long_name;
|
107
|
+
}
|
108
|
+
if (addr.types.includes("locality")) {
|
109
|
+
city = addr.long_name;
|
110
|
+
}
|
111
|
+
});
|
112
|
+
emit("update:country", country);
|
113
|
+
emit("update:state", state);
|
114
|
+
emit("update:city", city);
|
115
|
+
} else {
|
116
|
+
console.error("No results found");
|
117
|
+
}
|
118
|
+
} else {
|
119
|
+
console.error("Geocoder failed due to: " + status);
|
120
|
+
}
|
121
|
+
});
|
122
|
+
}
|
123
|
+
async function setUserLocation() {
|
124
|
+
locationLoading.value = true;
|
125
|
+
if (navigator.geolocation) {
|
126
|
+
navigator.geolocation.getCurrentPosition((position) => {
|
127
|
+
const newLocation = { lat: position.coords.latitude, lng: position.coords.longitude };
|
128
|
+
emit("update:location", newLocation);
|
129
|
+
getAddressFromLocation(newLocation);
|
130
|
+
locationLoading.value = false;
|
131
|
+
}, () => {
|
132
|
+
console.error("Error getting location");
|
133
|
+
locationLoading.value = false;
|
134
|
+
});
|
135
|
+
} else {
|
136
|
+
console.error("Geolocation is not supported by this browser.");
|
137
|
+
locationLoading.value = false;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
return (_ctx, _cache) => {
|
141
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
142
|
+
vue.createElementVNode("div", {
|
143
|
+
ref_key: "mapContainer",
|
144
|
+
ref: mapContainer,
|
145
|
+
class: "w-100 h-100"
|
146
|
+
}, null, 512),
|
147
|
+
vue.createElementVNode("button", {
|
148
|
+
class: "cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra",
|
149
|
+
onClick: setUserLocation
|
150
|
+
}, [
|
151
|
+
vue.createVNode(vue.Transition, {
|
152
|
+
name: "ScaleOut",
|
153
|
+
mode: "out-in"
|
154
|
+
}, {
|
155
|
+
default: vue.withCtx(() => [
|
156
|
+
!locationLoading.value ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_2, _hoisted_5)) : (vue.openBlock(), vue.createBlock(Loader.default, {
|
157
|
+
key: 1,
|
158
|
+
class: "pos-t-0 pos-l-0 i-small"
|
159
|
+
}))
|
160
|
+
]),
|
161
|
+
_: 1
|
162
|
+
})
|
163
|
+
])
|
164
|
+
]);
|
165
|
+
};
|
166
|
+
}
|
167
|
+
};
|
168
|
+
exports.default = _sfc_main;
|
169
|
+
//# sourceMappingURL=LocationMarker.vue.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LocationMarker.vue.cjs","sources":["../../../../../src/components/LocationMarker/LocationMarker.vue"],"sourcesContent":["<template>\n <div class=\"pos-relative\">\n <div ref=\"mapContainer\" class=\"w-100 h-100\"></div>\n\n <button class=\"cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra\" @click=\"setUserLocation\">\n\n <transition name=\"ScaleOut\" mode=\"out-in\"> \n <svg v-if=\"!locationLoading\" class=\"i-regular\" width=\"98\" height=\"98\" viewBox=\"0 0 98 98\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z\" fill=\"rgb(var(--white))\"/>\n <path d=\"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z\" fill=\"rgb(var(--white))\"/> \n </svg>\n\n <Loader v-else class=\"pos-t-0 pos-l-0 i-small\"/>\n </transition>\n\n </button>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted, watchEffect } from 'vue';\nimport { Loader as GMLoader } from \"@googlemaps/js-api-loader\";\n\nimport Loader from '@pf/src/components/Loader/Loader.vue'\n\n// Добавим новый проп для ключа API\nconst props = defineProps({\n location: {\n type: Object,\n default: () => ({ lat: 15.8700, lng: 100.9925 })\n },\n address: {\n type: String,\n default: null\n },\n apiKey: String,\n locale: {\n type: String,\n default: 'en'\n }\n})\n\nconst emit = defineEmits(['update:location', 'update:address', 'update:country', 'update:state', 'update:city']);\n\nconst mapContainer = ref(null);\nconst locationLoading = ref(false);\n\nlet map, marker;\n\nonMounted(() => {\n const loader = new GMLoader({\n apiKey: props.apiKey,\n version: \"weekly\",\n libraries: [\"places\"],\n language: props.locale, \n });\n\n loader.load().then(() => {\n map = new google.maps.Map(mapContainer.value, {\n center: props.location,\n zoom: 15,\n mapTypeControl: false,\n fullscreenControl: false,\n disableDefaultUI: true\n });\n\n marker = new google.maps.Marker({\n position: props.location,\n map,\n draggable: true,\n });\n\n marker.addListener(\"dragend\", (e) => {\n const newLocation = { lat: e.latLng.lat(), lng: e.latLng.lng() };\n\n emit('update:location', newLocation);\n\n getAddressFromLocation(newLocation);\n });\n }).catch(e => {\n console.error(e);\n });\n});\n\nwatchEffect(() => {\n if (props.location && marker) {\n marker.setPosition(new google.maps.LatLng(props.location.lat, props.location.lng));\n }\n});\n\nwatchEffect(() => {\n if (props.location && map) {\n const newCenter = new google.maps.LatLng(props.location.lat, props.location.lng);\n \n map.setCenter(newCenter);\n map.setZoom(15);\n }\n});\n\nfunction getAddressFromLocation(location) {\n \n const geocoder = new google.maps.Geocoder;\n\n geocoder.geocode({ 'location': location }, (results, status) => {\n if (status === 'OK') {\n if (results[0]) {\n emit('update:address', results[0].formatted_address);\n\n let country = '', state = '', city = '';\n\n results[0].address_components.forEach((addr) => {\n if (addr.types.includes('country')) {\n country = addr.long_name;\n }\n if (addr.types.includes('administrative_area_level_1')) {\n state = addr.long_name;\n }\n if (addr.types.includes('locality')) {\n city = addr.long_name;\n }\n });\n\n emit('update:country', country);\n emit('update:state', state);\n emit('update:city', city);\n } else {\n console.error('No results found');\n }\n } else {\n console.error('Geocoder failed due to: ' + status);\n }\n });\n}\n\n// Функция для установки местоположения пользователя\nasync function setUserLocation() {\n locationLoading.value = true\n \n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition((position) => {\n const newLocation = { lat: position.coords.latitude, lng: position.coords.longitude };\n emit('update:location', newLocation);\n getAddressFromLocation(newLocation);\n locationLoading.value = false\n }, () => {\n console.error('Error getting location');\n locationLoading.value = false\n });\n } else {\n console.error('Geolocation is not supported by this browser.');\n locationLoading.value = false\n }\n}\n</script>\n\n\n<style >\n.my-location-button {\n position: absolute;\n right: 10px;\n top: 10px;\n z-index: 99;\n}\n\n.gm-style-cc { display:none; }\n\n\n</style>\n"],"names":["ref","onMounted","GMLoader","watchEffect"],"mappings":"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"}
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import { ref
|
2
|
-
import { Loader
|
3
|
-
import
|
1
|
+
import { ref, onMounted, watchEffect, openBlock, createElementBlock, createElementVNode, createVNode, Transition, withCtx, createBlock } from "vue";
|
2
|
+
import { Loader } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
|
3
|
+
import Loader$1 from "../Loader/Loader.vue2.js";
|
4
4
|
/* empty css */
|
5
|
-
const
|
5
|
+
const _hoisted_1 = { class: "pos-relative" };
|
6
|
+
const _hoisted_2 = {
|
6
7
|
key: 0,
|
7
8
|
class: "i-regular",
|
8
9
|
width: "98",
|
@@ -10,16 +11,20 @@ const B = { class: "pos-relative" }, H = {
|
|
10
11
|
viewBox: "0 0 98 98",
|
11
12
|
fill: "none",
|
12
13
|
xmlns: "http://www.w3.org/2000/svg"
|
13
|
-
}
|
14
|
+
};
|
15
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("path", {
|
14
16
|
d: "M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",
|
15
17
|
fill: "rgb(var(--white))"
|
16
|
-
}, null, -1)
|
18
|
+
}, null, -1);
|
19
|
+
const _hoisted_4 = /* @__PURE__ */ createElementVNode("path", {
|
17
20
|
d: "M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",
|
18
21
|
fill: "rgb(var(--white))"
|
19
|
-
}, null, -1)
|
20
|
-
|
21
|
-
|
22
|
-
|
22
|
+
}, null, -1);
|
23
|
+
const _hoisted_5 = [
|
24
|
+
_hoisted_3,
|
25
|
+
_hoisted_4
|
26
|
+
];
|
27
|
+
const _sfc_main = {
|
23
28
|
__name: "LocationMarker",
|
24
29
|
props: {
|
25
30
|
location: {
|
@@ -37,90 +42,128 @@ const B = { class: "pos-relative" }, H = {
|
|
37
42
|
}
|
38
43
|
},
|
39
44
|
emits: ["update:location", "update:address", "update:country", "update:state", "update:city"],
|
40
|
-
setup(
|
41
|
-
const
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
45
|
+
setup(__props, { emit: __emit }) {
|
46
|
+
const props = __props;
|
47
|
+
const emit = __emit;
|
48
|
+
const mapContainer = ref(null);
|
49
|
+
const locationLoading = ref(false);
|
50
|
+
let map, marker;
|
51
|
+
onMounted(() => {
|
52
|
+
const loader = new Loader({
|
53
|
+
apiKey: props.apiKey,
|
46
54
|
version: "weekly",
|
47
55
|
libraries: ["places"],
|
48
|
-
language:
|
49
|
-
})
|
50
|
-
|
51
|
-
|
56
|
+
language: props.locale
|
57
|
+
});
|
58
|
+
loader.load().then(() => {
|
59
|
+
map = new google.maps.Map(mapContainer.value, {
|
60
|
+
center: props.location,
|
52
61
|
zoom: 15,
|
53
|
-
mapTypeControl:
|
54
|
-
fullscreenControl:
|
55
|
-
disableDefaultUI:
|
56
|
-
})
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
const n = { lat: o.latLng.lat(), lng: o.latLng.lng() };
|
62
|
-
a("update:location", n), p(n);
|
62
|
+
mapTypeControl: false,
|
63
|
+
fullscreenControl: false,
|
64
|
+
disableDefaultUI: true
|
65
|
+
});
|
66
|
+
marker = new google.maps.Marker({
|
67
|
+
position: props.location,
|
68
|
+
map,
|
69
|
+
draggable: true
|
63
70
|
});
|
64
|
-
|
65
|
-
|
71
|
+
marker.addListener("dragend", (e) => {
|
72
|
+
const newLocation = { lat: e.latLng.lat(), lng: e.latLng.lng() };
|
73
|
+
emit("update:location", newLocation);
|
74
|
+
getAddressFromLocation(newLocation);
|
75
|
+
});
|
76
|
+
}).catch((e) => {
|
77
|
+
console.error(e);
|
66
78
|
});
|
67
|
-
})
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
const t = new google.maps.LatLng(e.location.lat, e.location.lng);
|
72
|
-
s.setCenter(t), s.setZoom(15);
|
79
|
+
});
|
80
|
+
watchEffect(() => {
|
81
|
+
if (props.location && marker) {
|
82
|
+
marker.setPosition(new google.maps.LatLng(props.location.lat, props.location.lng));
|
73
83
|
}
|
74
84
|
});
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
+
watchEffect(() => {
|
86
|
+
if (props.location && map) {
|
87
|
+
const newCenter = new google.maps.LatLng(props.location.lat, props.location.lng);
|
88
|
+
map.setCenter(newCenter);
|
89
|
+
map.setZoom(15);
|
90
|
+
}
|
91
|
+
});
|
92
|
+
function getAddressFromLocation(location) {
|
93
|
+
const geocoder = new google.maps.Geocoder();
|
94
|
+
geocoder.geocode({ "location": location }, (results, status) => {
|
95
|
+
if (status === "OK") {
|
96
|
+
if (results[0]) {
|
97
|
+
emit("update:address", results[0].formatted_address);
|
98
|
+
let country = "", state = "", city = "";
|
99
|
+
results[0].address_components.forEach((addr) => {
|
100
|
+
if (addr.types.includes("country")) {
|
101
|
+
country = addr.long_name;
|
102
|
+
}
|
103
|
+
if (addr.types.includes("administrative_area_level_1")) {
|
104
|
+
state = addr.long_name;
|
105
|
+
}
|
106
|
+
if (addr.types.includes("locality")) {
|
107
|
+
city = addr.long_name;
|
108
|
+
}
|
109
|
+
});
|
110
|
+
emit("update:country", country);
|
111
|
+
emit("update:state", state);
|
112
|
+
emit("update:city", city);
|
113
|
+
} else {
|
85
114
|
console.error("No results found");
|
86
|
-
|
87
|
-
|
115
|
+
}
|
116
|
+
} else {
|
117
|
+
console.error("Geocoder failed due to: " + status);
|
118
|
+
}
|
88
119
|
});
|
89
120
|
}
|
90
|
-
async function
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
121
|
+
async function setUserLocation() {
|
122
|
+
locationLoading.value = true;
|
123
|
+
if (navigator.geolocation) {
|
124
|
+
navigator.geolocation.getCurrentPosition((position) => {
|
125
|
+
const newLocation = { lat: position.coords.latitude, lng: position.coords.longitude };
|
126
|
+
emit("update:location", newLocation);
|
127
|
+
getAddressFromLocation(newLocation);
|
128
|
+
locationLoading.value = false;
|
129
|
+
}, () => {
|
130
|
+
console.error("Error getting location");
|
131
|
+
locationLoading.value = false;
|
132
|
+
});
|
133
|
+
} else {
|
134
|
+
console.error("Geolocation is not supported by this browser.");
|
135
|
+
locationLoading.value = false;
|
136
|
+
}
|
97
137
|
}
|
98
|
-
return (
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
138
|
+
return (_ctx, _cache) => {
|
139
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
140
|
+
createElementVNode("div", {
|
141
|
+
ref_key: "mapContainer",
|
142
|
+
ref: mapContainer,
|
143
|
+
class: "w-100 h-100"
|
144
|
+
}, null, 512),
|
145
|
+
createElementVNode("button", {
|
146
|
+
class: "cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra",
|
147
|
+
onClick: setUserLocation
|
148
|
+
}, [
|
149
|
+
createVNode(Transition, {
|
150
|
+
name: "ScaleOut",
|
151
|
+
mode: "out-in"
|
152
|
+
}, {
|
153
|
+
default: withCtx(() => [
|
154
|
+
!locationLoading.value ? (openBlock(), createElementBlock("svg", _hoisted_2, _hoisted_5)) : (openBlock(), createBlock(Loader$1, {
|
155
|
+
key: 1,
|
156
|
+
class: "pos-t-0 pos-l-0 i-small"
|
157
|
+
}))
|
158
|
+
]),
|
159
|
+
_: 1
|
160
|
+
})
|
161
|
+
])
|
162
|
+
]);
|
163
|
+
};
|
122
164
|
}
|
123
165
|
};
|
124
166
|
export {
|
125
|
-
|
167
|
+
_sfc_main as default
|
126
168
|
};
|
169
|
+
//# sourceMappingURL=LocationMarker.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LocationMarker.vue.js","sources":["../../../../../src/components/LocationMarker/LocationMarker.vue"],"sourcesContent":["<template>\n <div class=\"pos-relative\">\n <div ref=\"mapContainer\" class=\"w-100 h-100\"></div>\n\n <button class=\"cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra\" @click=\"setUserLocation\">\n\n <transition name=\"ScaleOut\" mode=\"out-in\"> \n <svg v-if=\"!locationLoading\" class=\"i-regular\" width=\"98\" height=\"98\" viewBox=\"0 0 98 98\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z\" fill=\"rgb(var(--white))\"/>\n <path d=\"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z\" fill=\"rgb(var(--white))\"/> \n </svg>\n\n <Loader v-else class=\"pos-t-0 pos-l-0 i-small\"/>\n </transition>\n\n </button>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted, watchEffect } from 'vue';\nimport { Loader as GMLoader } from \"@googlemaps/js-api-loader\";\n\nimport Loader from '@pf/src/components/Loader/Loader.vue'\n\n// Добавим новый проп для ключа API\nconst props = defineProps({\n location: {\n type: Object,\n default: () => ({ lat: 15.8700, lng: 100.9925 })\n },\n address: {\n type: String,\n default: null\n },\n apiKey: String,\n locale: {\n type: String,\n default: 'en'\n }\n})\n\nconst emit = defineEmits(['update:location', 'update:address', 'update:country', 'update:state', 'update:city']);\n\nconst mapContainer = ref(null);\nconst locationLoading = ref(false);\n\nlet map, marker;\n\nonMounted(() => {\n const loader = new GMLoader({\n apiKey: props.apiKey,\n version: \"weekly\",\n libraries: [\"places\"],\n language: props.locale, \n });\n\n loader.load().then(() => {\n map = new google.maps.Map(mapContainer.value, {\n center: props.location,\n zoom: 15,\n mapTypeControl: false,\n fullscreenControl: false,\n disableDefaultUI: true\n });\n\n marker = new google.maps.Marker({\n position: props.location,\n map,\n draggable: true,\n });\n\n marker.addListener(\"dragend\", (e) => {\n const newLocation = { lat: e.latLng.lat(), lng: e.latLng.lng() };\n\n emit('update:location', newLocation);\n\n getAddressFromLocation(newLocation);\n });\n }).catch(e => {\n console.error(e);\n });\n});\n\nwatchEffect(() => {\n if (props.location && marker) {\n marker.setPosition(new google.maps.LatLng(props.location.lat, props.location.lng));\n }\n});\n\nwatchEffect(() => {\n if (props.location && map) {\n const newCenter = new google.maps.LatLng(props.location.lat, props.location.lng);\n \n map.setCenter(newCenter);\n map.setZoom(15);\n }\n});\n\nfunction getAddressFromLocation(location) {\n \n const geocoder = new google.maps.Geocoder;\n\n geocoder.geocode({ 'location': location }, (results, status) => {\n if (status === 'OK') {\n if (results[0]) {\n emit('update:address', results[0].formatted_address);\n\n let country = '', state = '', city = '';\n\n results[0].address_components.forEach((addr) => {\n if (addr.types.includes('country')) {\n country = addr.long_name;\n }\n if (addr.types.includes('administrative_area_level_1')) {\n state = addr.long_name;\n }\n if (addr.types.includes('locality')) {\n city = addr.long_name;\n }\n });\n\n emit('update:country', country);\n emit('update:state', state);\n emit('update:city', city);\n } else {\n console.error('No results found');\n }\n } else {\n console.error('Geocoder failed due to: ' + status);\n }\n });\n}\n\n// Функция для установки местоположения пользователя\nasync function setUserLocation() {\n locationLoading.value = true\n \n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition((position) => {\n const newLocation = { lat: position.coords.latitude, lng: position.coords.longitude };\n emit('update:location', newLocation);\n getAddressFromLocation(newLocation);\n locationLoading.value = false\n }, () => {\n console.error('Error getting location');\n locationLoading.value = false\n });\n } else {\n console.error('Geolocation is not supported by this browser.');\n locationLoading.value = false\n }\n}\n</script>\n\n\n<style >\n.my-location-button {\n position: absolute;\n right: 10px;\n top: 10px;\n z-index: 99;\n}\n\n.gm-style-cc { display:none; }\n\n\n</style>\n"],"names":["GMLoader"],"mappings":"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"}
|
@@ -1 +1,17 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const vue = require("vue");
|
4
|
+
;/* empty css */
|
5
|
+
const _hoisted_1 = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" };
|
6
|
+
const _sfc_main = {
|
7
|
+
__name: "Menu",
|
8
|
+
setup(__props) {
|
9
|
+
return (_ctx, _cache) => {
|
10
|
+
return vue.openBlock(), vue.createElementBlock("section", _hoisted_1, [
|
11
|
+
vue.renderSlot(_ctx.$slots, "default")
|
12
|
+
]);
|
13
|
+
};
|
14
|
+
}
|
15
|
+
};
|
16
|
+
exports.default = _sfc_main;
|
17
|
+
//# sourceMappingURL=Menu.vue.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Menu.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
@@ -1,13 +1,17 @@
|
|
1
|
-
import { openBlock
|
1
|
+
import { openBlock, createElementBlock, renderSlot } from "vue";
|
2
2
|
/* empty css */
|
3
|
-
const
|
3
|
+
const _hoisted_1 = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" };
|
4
|
+
const _sfc_main = {
|
4
5
|
__name: "Menu",
|
5
|
-
setup(
|
6
|
-
return (
|
7
|
-
|
8
|
-
|
6
|
+
setup(__props) {
|
7
|
+
return (_ctx, _cache) => {
|
8
|
+
return openBlock(), createElementBlock("section", _hoisted_1, [
|
9
|
+
renderSlot(_ctx.$slots, "default")
|
10
|
+
]);
|
11
|
+
};
|
9
12
|
}
|
10
13
|
};
|
11
14
|
export {
|
12
|
-
|
15
|
+
_sfc_main as default
|
13
16
|
};
|
17
|
+
//# sourceMappingURL=Menu.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Menu.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs
CHANGED
@@ -7,10 +7,11 @@ const Status = require("../../../../../components/Status/Status.vue.cjs");
|
|
7
7
|
const Popup = require("../../../../../components/Popup/Popup.vue2.cjs");
|
8
8
|
require("vue-i18n");
|
9
9
|
;/* empty css */
|
10
|
+
const Loader = require("../../../../../components/Loader/Loader.vue2.cjs");
|
11
|
+
const NavigationBar = require("../partials/NavigationBar.vue.cjs");
|
10
12
|
const LocationSelection = require("../partials/LocationSelection.vue.cjs");
|
11
13
|
require("../../../../products/store/categories.cjs");
|
12
14
|
const BottomNavigation = ;/* empty css */
|
13
|
-
const NavigationBar = require("../partials/NavigationBar.vue.cjs");
|
14
15
|
const ShopCart = require("../../../../orders/components/partials/ShopCart.vue.cjs");
|
15
16
|
;/* empty css */
|
16
17
|
const _hoisted_1 = {
|
@@ -20,10 +21,6 @@ const _hoisted_1 = {
|
|
20
21
|
const _sfc_main = {
|
21
22
|
__name: "Client",
|
22
23
|
setup(__props) {
|
23
|
-
const Loader = vue.defineAsyncComponent(() => Promise.resolve().then(() => require(
|
24
|
-
/* webpackChunkName: "loader" */
|
25
|
-
"../../../../../components/Loader/Loader.vue2.cjs"
|
26
|
-
)));
|
27
24
|
let show = vue.ref(false);
|
28
25
|
const page = vue.ref(null);
|
29
26
|
const route = vueRouter.useRoute();
|
@@ -96,7 +93,7 @@ const _sfc_main = {
|
|
96
93
|
appear: ""
|
97
94
|
}, {
|
98
95
|
default: vue.withCtx(() => [
|
99
|
-
!page.value ? (vue.openBlock(), vue.createBlock(
|
96
|
+
!page.value ? (vue.openBlock(), vue.createBlock(Loader.default, {
|
100
97
|
key: 0,
|
101
98
|
class: "pos-fixed"
|
102
99
|
})) : vue.createCommentVNode("", true)
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Client.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/layouts/Client.vue"],"sourcesContent":["<template>\n\t<div id=\"app-wrapper\" class=\"pos-relative\">\n\t\t<transition name=\"moveFromTop\" appear>\n\t\t\t<Loader v-if=\"!page\" class=\"pos-fixed\"/>\n\t\t</transition>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n <component\n\t\t \tv-if=\"!MOBILE_APP\"\n :is=\"route.meta.header\"\n ref=\"header\" \n class=\"transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0\" \n :theme=\"headerTheme\"\n :logotype=\"route.meta.logotype\"\n >\n <component\n v-if=\"route.meta.navigation\"\n :is=\"route.meta.navigation\"\n class=\"mn-l-auto desktop-only\"\n />\n </component>\n </transition>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n\t\t\t<NavigationBar\n\t\t \tv-if=\"MOBILE_APP\"\n\t\t \t:logotype=\"route.meta.logotype\"\n\t\t\t\t:style=\"MOBILE_APP === 'ios' ?'padding-top: 6rem;':''\" \n\t\t />\n\t\t</transition>\n\n\t <Popup \n\t \t@close-popup=\"closeLocationPopup\" \n\t \t:isPopupOpen=\"globals.state.isOpenLocationPopup\"\n\t \tclass=\"bg-white pd-semi w-m-33r radius-big\"\n\t >\t\n\t \t<LocationSelection />\n\t </Popup>\n\n\t\t<section \n\t\t\tid=\"screen\" \n\t\t\tref=\"screen\"\n\t\t\t@scroll=\"handleScroll\"\n\t\t\tclass=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll\"\n\t\t>\n\t\t\t<ShopCart />\n\n\t\t\t<!-- <section v-if=\"!route.meta?.breadcrumbs?.hide\" class=\"pd-thin pd-b-zero\">\n\t\t\t\t<Breadcrumbs \n\t\t\t\t\tv-if=\"!MOBILE_APP\"\n\t\t\t\t\tclass=\"bg-light pd-small radius-big\"\n\t\t\t\t/>\n\t\t\t</section> -->\n\n\t\t\t<Suspense>\n\t\t\t\t<router-view \n\t\t\t\t\tv-slot=\"{ Component, route }\" \n\t\t\t\t\t:class=\"{'mn-b-extra': MOBILE_APP}\"\n\t\t\t\t>\n\t\t\t\t\t<Status \n\t\t\t\t\t\tv-if=\"globals.state.error.show\" \n\t\t\t\t\t\t:data=\"globals.state.error\"\n\t\t\t\t\t\tclass=\"z-index-7\" \n\t\t\t\t\t/>\n\n\n\t\t\t\t\t<transition @before-enter=\"scrollTop\" name=\"scaleIn\" mode=\"out-in\" appear>\n\t\t \t<component \n\t\t \t\tref=\"page\" \n\t\t \t\t:is=\"Component\" \n\t\t \t\t:key=\"route.path\"\n\t\t \t/>\n\t\t </transition>\n\n\t\t <!-- <Footer /> -->\n\t\t\t\t</router-view>\n\t\t\t</Suspense>\n \n\t\t</section>\n\n <BottomNavigation \n v-if=\"MOBILE_APP && route.meta.title_hide\"\n class=\"pd-small z-index-2\"\n />\n\t</div>\n</template>\n\n\n\n<script setup>\n\timport { computed, ref, onMounted, provide, inject, onUnmounted, onServerPrefetch, onBeforeMount, defineAsyncComponent } from 'vue'\n\t// Router\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Store\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\t// Partials\n\timport Status from '@pf/src/components/Status/Status.vue'\n\n\timport Popup from '@pf/src/components/Popup/Popup.vue'\n\timport Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\tconst Loader = defineAsyncComponent(() => import(/* webpackChunkName: \"loader\" */ '@pf/src/components/Loader/Loader.vue'))\n\n\n\timport LocationSelection from '@pf/src/modules/globals/views/components/partials/LocationSelection.vue'\n\timport Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'\n\timport BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue';\n\timport NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue';\n\n\timport ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue'\n\t/////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n\t/////////////////////////////\n\t// CREATED\n\t/////////////////////////////\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// Ref Code\n\tconst referalCode = ref(route.query.referalCode);\n\t/////////////////////////////\n\t// Methods\n\t/////////////////////////////\n\tfunction closeLocationPopup() {\n\t globals.state.isOpenLocationPopup = false;\n\t}\n\tfunction scrollTop(){\n\t\tdocument.getElementById('app').scrollIntoView();\n\t}\n\t// Scrolling header\n\tconst scrollOffset = ref(0)\n\tlet isScrolled = false\n\tconst header = ref(null)\n\n\tconst headerTheme = computed(() => {\n\t\tif (scrollOffset.value > 50) {\n\t\t\treturn 'light'\n\t\t} else {\n\t\t\treturn route.meta.header_theme || 'light'\n\t\t}\n\t})\n\tconst handleScroll = () => {\n\t scrollOffset.value = event.target.scrollTop\n\n\t if (scrollOffset.value > 50 && !isScrolled) {\n\t isScrolled = true;\n\n\t header.value.$el.classList.add('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = -firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t // headerTheme.value - light\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t } else if (scrollOffset.value <= 75 && isScrolled) {\n\t isScrolled = false;\n\t header.value.$el.classList.remove('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t }\n\t};\n\t/////////////////////////////\n\t// MOUNTED\n\t/////////////////////////////\n\t// if (typeof window === 'undefined') {\n\t// show.value = true\n\t// } else {\n\t// \tshow.value = false\n\t// }\n\n\tonMounted(async () => {\n\t\t \n\t\tif ('serviceWorker' in navigator) {\n\t \twindow.addEventListener('load', () => {\n\t \tnavigator.serviceWorker.register('/service-worker.js').then(registration => {\n\t \tconsole.log('SW registered: ', registration);\n\t \t}).catch(registrationError => {\n\t \tconsole.log('SW registration failed: ', registrationError);\n\t \t});\n\t });\n\t \t}\n\t\t\n\t\tconst savedPosition = localStorage.getItem('position');\n\n\t if (savedPosition) {\n\t globals.state.position = JSON.parse(savedPosition);\n\t } else {\n \t\tglobals.state.isOpenLocationPopup = true;\n\t }\n\n\t\tif (referalCode.value) {\n\t\t localStorage.setItem('referalCode', referalCode.value);\n\t\t}\n\n\t\tif (page) show.value = true\n\t});\n</script>\n\n<style lang=\"scss\">;\t\n\t.scaleIn-enter-active,\n\t.scaleIn-leave-active {\n\t\ttransform: scale(1); \n\t\ttransition: all 0.5s ease; \n\t}\n\t.scaleIn-enter-from,\n\t.scaleIn-leave-to {\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease; \n\t}\n\n\t.moveFromTop-enter-active,\n\t.moveFromTop-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTop-enter-from,\n\t.moveFromTop-leave-to {\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\n\t.moveFromTopAbsolute-enter-active,\n\t.moveFromTopAbsolute-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTopAbsolute-enter-from,\n\t.moveFromTopAbsolute-leave-to {\n\t\tposition: absolute;\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\t.ScaleOut-enter-active,\n\t.ScaleOut-leave-active {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t\ttransition: all 0.3s ease; \n\t\t\n\t}\n\t.ScaleOut-enter-from,\n\t.ScaleOut-leave-to {\n\t\topacity: 0;\n\t\ttransform: scale(0.9);\n\t\ttransition: all 0.3s ease;\n\t}\n\t.slide-fade-enter-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-leave-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-enter-from,\n\t.slide-fade-leave-to {\n\t\tmin-height: 0;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n</style>"],"names":["defineAsyncComponent","ref","useRoute","useRouter","globals.state","computed","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAoGC,UAAM,SAASA,IAAoB,qBAAC,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAiC;AAAA,IAAsC,CAAA,CAAC;AAaxH,QAAI,OAAOC,IAAG,IAAC,KAAK;AAEpB,UAAM,OAAOA,IAAG,IAAC,IAAI;AAItB,UAAM,QAAQC,UAAAA,SAAU;AACTC,wBAAW;AAE1B,UAAM,cAAcF,IAAG,IAAC,MAAM,MAAM,WAAW;AAI/C,aAAS,qBAAqB;AAC5BG,cAAa,MAAC,sBAAsB;AAAA,IACrC;AACD,aAAS,YAAW;AACnB,eAAS,eAAe,KAAK,EAAE,eAAc;AAAA,IAC7C;AAED,UAAM,eAAeH,IAAG,IAAC,CAAC;AAC1B,QAAI,aAAa;AACjB,UAAM,SAASA,IAAG,IAAC,IAAI;AAEvB,UAAM,cAAcI,IAAAA,SAAS,MAAM;AAClC,UAAI,aAAa,QAAQ,IAAI;AAC5B,eAAO;AAAA,MACV,OAAS;AACN,eAAO,MAAM,KAAK,gBAAgB;AAAA,MAClC;AAAA,IACH,CAAE;AACD,UAAM,eAAe,MAAM;AACzB,mBAAa,QAAQ,MAAM,OAAO;AAElC,UAAI,aAAa,QAAQ,MAAM,CAAC,YAAY;AAC1C,qBAAa;AAEb,eAAO,MAAM,IAAI,UAAU,IAAI,UAAU;AAEzC,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,CAAC,UAAU;AAE1B,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAIvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL,WAAU,aAAa,SAAS,MAAM,YAAY;AACjD,qBAAa;AACb,eAAO,MAAM,IAAI,UAAU,OAAO,UAAU;AAE5C,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,UAAU;AAEzB,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAEvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL;AAAA,IACJ;AAUCC,QAAAA,UAAU,YAAY;AAErB,UAAI,mBAAmB,WAAW;AAC/B,eAAO,iBAAiB,QAAQ,MAAM;AACpC,oBAAU,cAAc,SAAS,oBAAoB,EAAE,KAAK,kBAAgB;AAC1E,oBAAQ,IAAI,mBAAmB,YAAY;AAAA,UACpD,CAAQ,EAAE,MAAM,uBAAqB;AAC5B,oBAAQ,IAAI,4BAA4B,iBAAiB;AAAA,UAClE,CAAQ;AAAA,QACR,CAAK;AAAA,MACD;AAEF,YAAM,gBAAgB,aAAa,QAAQ,UAAU;AAEpD,UAAI,eAAe;AACjBF,gBAAAA,MAAc,WAAW,KAAK,MAAM,aAAa;AAAA,MACtD,OAAU;AACNA,gBAAa,MAAC,sBAAsB;AAAA,MACpC;AAEF,UAAI,YAAY,OAAO;AACrB,qBAAa,QAAQ,eAAe,YAAY,KAAK;AAAA,MACtD;AAED,UAAI,KAAM,MAAK,QAAQ;AAAA,IACzB,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"Client.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/layouts/Client.vue"],"sourcesContent":["<template>\n\t<div id=\"app-wrapper\" class=\"pos-relative\">\n\t\t<transition name=\"moveFromTop\" appear>\n\t\t\t<Loader v-if=\"!page\" class=\"pos-fixed\"/>\n\t\t</transition>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n <component\n\t\t \tv-if=\"!MOBILE_APP\"\n :is=\"route.meta.header\"\n ref=\"header\" \n class=\"transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0\" \n :theme=\"headerTheme\"\n :logotype=\"route.meta.logotype\"\n >\n <component\n v-if=\"route.meta.navigation\"\n :is=\"route.meta.navigation\"\n class=\"mn-l-auto desktop-only\"\n />\n </component>\n </transition>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n\t\t\t<NavigationBar\n\t\t \tv-if=\"MOBILE_APP\"\n\t\t \t:logotype=\"route.meta.logotype\"\n\t\t\t\t:style=\"MOBILE_APP === 'ios' ?'padding-top: 6rem;':''\" \n\t\t />\n\t\t</transition>\n\n\t <Popup \n\t \t@close-popup=\"closeLocationPopup\" \n\t \t:isPopupOpen=\"globals.state.isOpenLocationPopup\"\n\t \tclass=\"bg-white pd-semi w-m-33r radius-big\"\n\t >\t\n\t \t<LocationSelection />\n\t </Popup>\n\n\t\t<section \n\t\t\tid=\"screen\" \n\t\t\tref=\"screen\"\n\t\t\t@scroll=\"handleScroll\"\n\t\t\tclass=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll\"\n\t\t>\n\t\t\t<ShopCart />\n\n\t\t\t<!-- <section v-if=\"!route.meta?.breadcrumbs?.hide\" class=\"pd-thin pd-b-zero\">\n\t\t\t\t<Breadcrumbs \n\t\t\t\t\tv-if=\"!MOBILE_APP\"\n\t\t\t\t\tclass=\"bg-light pd-small radius-big\"\n\t\t\t\t/>\n\t\t\t</section> -->\n\n\t\t\t<Suspense>\n\t\t\t\t<router-view \n\t\t\t\t\tv-slot=\"{ Component, route }\" \n\t\t\t\t\t:class=\"{'mn-b-extra': MOBILE_APP}\"\n\t\t\t\t>\n\t\t\t\t\t<Status \n\t\t\t\t\t\tv-if=\"globals.state.error.show\" \n\t\t\t\t\t\t:data=\"globals.state.error\"\n\t\t\t\t\t\tclass=\"z-index-7\" \n\t\t\t\t\t/>\n\n\n\t\t\t\t\t<transition @before-enter=\"scrollTop\" name=\"scaleIn\" mode=\"out-in\" appear>\n\t\t \t<component \n\t\t \t\tref=\"page\" \n\t\t \t\t:is=\"Component\" \n\t\t \t\t:key=\"route.path\"\n\t\t \t/>\n\t\t </transition>\n\n\t\t <!-- <Footer /> -->\n\t\t\t\t</router-view>\n\t\t\t</Suspense>\n \n\t\t</section>\n\n <BottomNavigation \n v-if=\"MOBILE_APP && route.meta.title_hide\"\n class=\"pd-small z-index-2\"\n />\n\t</div>\n</template>\n\n\n\n<script setup>\n\timport { computed, ref, onMounted, provide, inject, onUnmounted, onServerPrefetch, onBeforeMount, defineAsyncComponent } from 'vue'\n\t// Router\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Store\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\t// Partials\n\timport Status from '@pf/src/components/Status/Status.vue'\n\n\timport Popup from '@pf/src/components/Popup/Popup.vue'\n\timport Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\timport Loader from '@pf/src/components/Loader/Loader.vue'\n\n\n\timport NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue'\n\timport LocationSelection from '@pf/src/modules/globals/views/components/partials/LocationSelection.vue'\n\timport Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'\n\timport BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue'\n\n\timport ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue'\n\t/////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n\t/////////////////////////////\n\t// CREATED\n\t/////////////////////////////\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// Ref Code\n\tconst referalCode = ref(route.query.referalCode);\n\t/////////////////////////////\n\t// Methods\n\t/////////////////////////////\n\tfunction closeLocationPopup() {\n\t globals.state.isOpenLocationPopup = false;\n\t}\n\tfunction scrollTop(){\n\t\tdocument.getElementById('app').scrollIntoView();\n\t}\n\t// Scrolling header\n\tconst scrollOffset = ref(0)\n\tlet isScrolled = false\n\tconst header = ref(null)\n\n\tconst headerTheme = computed(() => {\n\t\tif (scrollOffset.value > 50) {\n\t\t\treturn 'light'\n\t\t} else {\n\t\t\treturn route.meta.header_theme || 'light'\n\t\t}\n\t})\n\tconst handleScroll = () => {\n\t scrollOffset.value = event.target.scrollTop\n\n\t if (scrollOffset.value > 50 && !isScrolled) {\n\t isScrolled = true;\n\n\t header.value.$el.classList.add('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = -firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t // headerTheme.value - light\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t } else if (scrollOffset.value <= 75 && isScrolled) {\n\t isScrolled = false;\n\t header.value.$el.classList.remove('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t }\n\t};\n\t/////////////////////////////\n\t// MOUNTED\n\t/////////////////////////////\n\t// if (typeof window === 'undefined') {\n\t// show.value = true\n\t// } else {\n\t// \tshow.value = false\n\t// }\n\n\tonMounted(async () => {\n\t\t \n\t\tif ('serviceWorker' in navigator) {\n\t \twindow.addEventListener('load', () => {\n\t \tnavigator.serviceWorker.register('/service-worker.js').then(registration => {\n\t \tconsole.log('SW registered: ', registration);\n\t \t}).catch(registrationError => {\n\t \tconsole.log('SW registration failed: ', registrationError);\n\t \t});\n\t });\n\t \t}\n\t\t\n\t\tconst savedPosition = localStorage.getItem('position');\n\n\t if (savedPosition) {\n\t globals.state.position = JSON.parse(savedPosition);\n\t } else {\n \t\tglobals.state.isOpenLocationPopup = true;\n\t }\n\n\t\tif (referalCode.value) {\n\t\t localStorage.setItem('referalCode', referalCode.value);\n\t\t}\n\n\t\tif (page) show.value = true\n\t});\n</script>\n\n<style lang=\"scss\">;\t\n\t.scaleIn-enter-active,\n\t.scaleIn-leave-active {\n\t\ttransform: scale(1); \n\t\ttransition: all 0.5s ease; \n\t}\n\t.scaleIn-enter-from,\n\t.scaleIn-leave-to {\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease; \n\t}\n\n\t.moveFromTop-enter-active,\n\t.moveFromTop-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTop-enter-from,\n\t.moveFromTop-leave-to {\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\n\t.moveFromTopAbsolute-enter-active,\n\t.moveFromTopAbsolute-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTopAbsolute-enter-from,\n\t.moveFromTopAbsolute-leave-to {\n\t\tposition: absolute;\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\t.ScaleOut-enter-active,\n\t.ScaleOut-leave-active {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t\ttransition: all 0.3s ease; \n\t\t\n\t}\n\t.ScaleOut-enter-from,\n\t.ScaleOut-leave-to {\n\t\topacity: 0;\n\t\ttransform: scale(0.9);\n\t\ttransition: all 0.3s ease;\n\t}\n\t.slide-fade-enter-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-leave-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-enter-from,\n\t.slide-fade-leave-to {\n\t\tmin-height: 0;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n</style>"],"names":["ref","useRoute","useRouter","globals.state","computed","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAiHE,QAAI,OAAOA,IAAG,IAAC,KAAK;AAEpB,UAAM,OAAOA,IAAG,IAAC,IAAI;AAItB,UAAM,QAAQC,UAAAA,SAAU;AACTC,wBAAW;AAE1B,UAAM,cAAcF,IAAG,IAAC,MAAM,MAAM,WAAW;AAI/C,aAAS,qBAAqB;AAC5BG,cAAa,MAAC,sBAAsB;AAAA,IACrC;AACD,aAAS,YAAW;AACnB,eAAS,eAAe,KAAK,EAAE,eAAc;AAAA,IAC7C;AAED,UAAM,eAAeH,IAAG,IAAC,CAAC;AAC1B,QAAI,aAAa;AACjB,UAAM,SAASA,IAAG,IAAC,IAAI;AAEvB,UAAM,cAAcI,IAAAA,SAAS,MAAM;AAClC,UAAI,aAAa,QAAQ,IAAI;AAC5B,eAAO;AAAA,MACV,OAAS;AACN,eAAO,MAAM,KAAK,gBAAgB;AAAA,MAClC;AAAA,IACH,CAAE;AACD,UAAM,eAAe,MAAM;AACzB,mBAAa,QAAQ,MAAM,OAAO;AAElC,UAAI,aAAa,QAAQ,MAAM,CAAC,YAAY;AAC1C,qBAAa;AAEb,eAAO,MAAM,IAAI,UAAU,IAAI,UAAU;AAEzC,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,CAAC,UAAU;AAE1B,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAIvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL,WAAU,aAAa,SAAS,MAAM,YAAY;AACjD,qBAAa;AACb,eAAO,MAAM,IAAI,UAAU,OAAO,UAAU;AAE5C,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,UAAU;AAEzB,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAEvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL;AAAA,IACJ;AAUCC,QAAAA,UAAU,YAAY;AAErB,UAAI,mBAAmB,WAAW;AAC/B,eAAO,iBAAiB,QAAQ,MAAM;AACpC,oBAAU,cAAc,SAAS,oBAAoB,EAAE,KAAK,kBAAgB;AAC1E,oBAAQ,IAAI,mBAAmB,YAAY;AAAA,UACpD,CAAQ,EAAE,MAAM,uBAAqB;AAC5B,oBAAQ,IAAI,4BAA4B,iBAAiB;AAAA,UAClE,CAAQ;AAAA,QACR,CAAK;AAAA,MACD;AAEF,YAAM,gBAAgB,aAAa,QAAQ,UAAU;AAEpD,UAAI,eAAe;AACjBF,gBAAAA,MAAc,WAAW,KAAK,MAAM,aAAa;AAAA,MACtD,OAAU;AACNA,gBAAa,MAAC,sBAAsB;AAAA,MACpC;AAEF,UAAI,YAAY,OAAO;AACrB,qBAAa,QAAQ,eAAe,YAAY,KAAK;AAAA,MACtD;AAED,UAAI,KAAM,MAAK,QAAQ;AAAA,IACzB,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js
CHANGED
@@ -1,14 +1,15 @@
|
|
1
|
-
import {
|
1
|
+
import { ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, Transition, withCtx, createBlock, createCommentVNode, resolveDynamicComponent, unref, normalizeStyle, createElementVNode, Suspense, normalizeClass } from "vue";
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
3
3
|
import { state } from "../../store/globals.js";
|
4
4
|
import _sfc_main$5 from "../../../../../components/Status/Status.vue.js";
|
5
5
|
import _sfc_main$2 from "../../../../../components/Popup/Popup.vue2.js";
|
6
6
|
import "vue-i18n";
|
7
7
|
/* empty css */
|
8
|
+
import Loader from "../../../../../components/Loader/Loader.vue2.js";
|
9
|
+
import _sfc_main$1 from "../partials/NavigationBar.vue.js";
|
8
10
|
import _sfc_main$3 from "../partials/LocationSelection.vue.js";
|
9
11
|
import "../../../../products/store/categories.js";
|
10
12
|
import BottomNavigation from "../partials/BottomNavigation.vue.js";
|
11
|
-
import _sfc_main$1 from "../partials/NavigationBar.vue.js";
|
12
13
|
import _sfc_main$4 from "../../../../orders/components/partials/ShopCart.vue.js";
|
13
14
|
/* empty css */
|
14
15
|
const _hoisted_1 = {
|
@@ -18,10 +19,6 @@ const _hoisted_1 = {
|
|
18
19
|
const _sfc_main = {
|
19
20
|
__name: "Client",
|
20
21
|
setup(__props) {
|
21
|
-
const Loader = defineAsyncComponent(() => import(
|
22
|
-
/* webpackChunkName: "loader" */
|
23
|
-
"../../../../../components/Loader/Loader.vue2.js"
|
24
|
-
));
|
25
22
|
let show = ref(false);
|
26
23
|
const page = ref(null);
|
27
24
|
const route = useRoute();
|
@@ -94,7 +91,7 @@ const _sfc_main = {
|
|
94
91
|
appear: ""
|
95
92
|
}, {
|
96
93
|
default: withCtx(() => [
|
97
|
-
!page.value ? (openBlock(), createBlock(
|
94
|
+
!page.value ? (openBlock(), createBlock(Loader, {
|
98
95
|
key: 0,
|
99
96
|
class: "pos-fixed"
|
100
97
|
})) : createCommentVNode("", true)
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Client.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/layouts/Client.vue"],"sourcesContent":["<template>\n\t<div id=\"app-wrapper\" class=\"pos-relative\">\n\t\t<transition name=\"moveFromTop\" appear>\n\t\t\t<Loader v-if=\"!page\" class=\"pos-fixed\"/>\n\t\t</transition>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n <component\n\t\t \tv-if=\"!MOBILE_APP\"\n :is=\"route.meta.header\"\n ref=\"header\" \n class=\"transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0\" \n :theme=\"headerTheme\"\n :logotype=\"route.meta.logotype\"\n >\n <component\n v-if=\"route.meta.navigation\"\n :is=\"route.meta.navigation\"\n class=\"mn-l-auto desktop-only\"\n />\n </component>\n </transition>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n\t\t\t<NavigationBar\n\t\t \tv-if=\"MOBILE_APP\"\n\t\t \t:logotype=\"route.meta.logotype\"\n\t\t\t\t:style=\"MOBILE_APP === 'ios' ?'padding-top: 6rem;':''\" \n\t\t />\n\t\t</transition>\n\n\t <Popup \n\t \t@close-popup=\"closeLocationPopup\" \n\t \t:isPopupOpen=\"globals.state.isOpenLocationPopup\"\n\t \tclass=\"bg-white pd-semi w-m-33r radius-big\"\n\t >\t\n\t \t<LocationSelection />\n\t </Popup>\n\n\t\t<section \n\t\t\tid=\"screen\" \n\t\t\tref=\"screen\"\n\t\t\t@scroll=\"handleScroll\"\n\t\t\tclass=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll\"\n\t\t>\n\t\t\t<ShopCart />\n\n\t\t\t<!-- <section v-if=\"!route.meta?.breadcrumbs?.hide\" class=\"pd-thin pd-b-zero\">\n\t\t\t\t<Breadcrumbs \n\t\t\t\t\tv-if=\"!MOBILE_APP\"\n\t\t\t\t\tclass=\"bg-light pd-small radius-big\"\n\t\t\t\t/>\n\t\t\t</section> -->\n\n\t\t\t<Suspense>\n\t\t\t\t<router-view \n\t\t\t\t\tv-slot=\"{ Component, route }\" \n\t\t\t\t\t:class=\"{'mn-b-extra': MOBILE_APP}\"\n\t\t\t\t>\n\t\t\t\t\t<Status \n\t\t\t\t\t\tv-if=\"globals.state.error.show\" \n\t\t\t\t\t\t:data=\"globals.state.error\"\n\t\t\t\t\t\tclass=\"z-index-7\" \n\t\t\t\t\t/>\n\n\n\t\t\t\t\t<transition @before-enter=\"scrollTop\" name=\"scaleIn\" mode=\"out-in\" appear>\n\t\t \t<component \n\t\t \t\tref=\"page\" \n\t\t \t\t:is=\"Component\" \n\t\t \t\t:key=\"route.path\"\n\t\t \t/>\n\t\t </transition>\n\n\t\t <!-- <Footer /> -->\n\t\t\t\t</router-view>\n\t\t\t</Suspense>\n \n\t\t</section>\n\n <BottomNavigation \n v-if=\"MOBILE_APP && route.meta.title_hide\"\n class=\"pd-small z-index-2\"\n />\n\t</div>\n</template>\n\n\n\n<script setup>\n\timport { computed, ref, onMounted, provide, inject, onUnmounted, onServerPrefetch, onBeforeMount, defineAsyncComponent } from 'vue'\n\t// Router\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Store\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\t// Partials\n\timport Status from '@pf/src/components/Status/Status.vue'\n\n\timport Popup from '@pf/src/components/Popup/Popup.vue'\n\timport Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\
|
1
|
+
{"version":3,"file":"Client.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/layouts/Client.vue"],"sourcesContent":["<template>\n\t<div id=\"app-wrapper\" class=\"pos-relative\">\n\t\t<transition name=\"moveFromTop\" appear>\n\t\t\t<Loader v-if=\"!page\" class=\"pos-fixed\"/>\n\t\t</transition>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n <component\n\t\t \tv-if=\"!MOBILE_APP\"\n :is=\"route.meta.header\"\n ref=\"header\" \n class=\"transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0\" \n :theme=\"headerTheme\"\n :logotype=\"route.meta.logotype\"\n >\n <component\n v-if=\"route.meta.navigation\"\n :is=\"route.meta.navigation\"\n class=\"mn-l-auto desktop-only\"\n />\n </component>\n </transition>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n\t\t\t<NavigationBar\n\t\t \tv-if=\"MOBILE_APP\"\n\t\t \t:logotype=\"route.meta.logotype\"\n\t\t\t\t:style=\"MOBILE_APP === 'ios' ?'padding-top: 6rem;':''\" \n\t\t />\n\t\t</transition>\n\n\t <Popup \n\t \t@close-popup=\"closeLocationPopup\" \n\t \t:isPopupOpen=\"globals.state.isOpenLocationPopup\"\n\t \tclass=\"bg-white pd-semi w-m-33r radius-big\"\n\t >\t\n\t \t<LocationSelection />\n\t </Popup>\n\n\t\t<section \n\t\t\tid=\"screen\" \n\t\t\tref=\"screen\"\n\t\t\t@scroll=\"handleScroll\"\n\t\t\tclass=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll\"\n\t\t>\n\t\t\t<ShopCart />\n\n\t\t\t<!-- <section v-if=\"!route.meta?.breadcrumbs?.hide\" class=\"pd-thin pd-b-zero\">\n\t\t\t\t<Breadcrumbs \n\t\t\t\t\tv-if=\"!MOBILE_APP\"\n\t\t\t\t\tclass=\"bg-light pd-small radius-big\"\n\t\t\t\t/>\n\t\t\t</section> -->\n\n\t\t\t<Suspense>\n\t\t\t\t<router-view \n\t\t\t\t\tv-slot=\"{ Component, route }\" \n\t\t\t\t\t:class=\"{'mn-b-extra': MOBILE_APP}\"\n\t\t\t\t>\n\t\t\t\t\t<Status \n\t\t\t\t\t\tv-if=\"globals.state.error.show\" \n\t\t\t\t\t\t:data=\"globals.state.error\"\n\t\t\t\t\t\tclass=\"z-index-7\" \n\t\t\t\t\t/>\n\n\n\t\t\t\t\t<transition @before-enter=\"scrollTop\" name=\"scaleIn\" mode=\"out-in\" appear>\n\t\t \t<component \n\t\t \t\tref=\"page\" \n\t\t \t\t:is=\"Component\" \n\t\t \t\t:key=\"route.path\"\n\t\t \t/>\n\t\t </transition>\n\n\t\t <!-- <Footer /> -->\n\t\t\t\t</router-view>\n\t\t\t</Suspense>\n \n\t\t</section>\n\n <BottomNavigation \n v-if=\"MOBILE_APP && route.meta.title_hide\"\n class=\"pd-small z-index-2\"\n />\n\t</div>\n</template>\n\n\n\n<script setup>\n\timport { computed, ref, onMounted, provide, inject, onUnmounted, onServerPrefetch, onBeforeMount, defineAsyncComponent } from 'vue'\n\t// Router\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Store\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\t// Partials\n\timport Status from '@pf/src/components/Status/Status.vue'\n\n\timport Popup from '@pf/src/components/Popup/Popup.vue'\n\timport Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\timport Loader from '@pf/src/components/Loader/Loader.vue'\n\n\n\timport NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue'\n\timport LocationSelection from '@pf/src/modules/globals/views/components/partials/LocationSelection.vue'\n\timport Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'\n\timport BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue'\n\n\timport ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue'\n\t/////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n\t/////////////////////////////\n\t// CREATED\n\t/////////////////////////////\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// Ref Code\n\tconst referalCode = ref(route.query.referalCode);\n\t/////////////////////////////\n\t// Methods\n\t/////////////////////////////\n\tfunction closeLocationPopup() {\n\t globals.state.isOpenLocationPopup = false;\n\t}\n\tfunction scrollTop(){\n\t\tdocument.getElementById('app').scrollIntoView();\n\t}\n\t// Scrolling header\n\tconst scrollOffset = ref(0)\n\tlet isScrolled = false\n\tconst header = ref(null)\n\n\tconst headerTheme = computed(() => {\n\t\tif (scrollOffset.value > 50) {\n\t\t\treturn 'light'\n\t\t} else {\n\t\t\treturn route.meta.header_theme || 'light'\n\t\t}\n\t})\n\tconst handleScroll = () => {\n\t scrollOffset.value = event.target.scrollTop\n\n\t if (scrollOffset.value > 50 && !isScrolled) {\n\t isScrolled = true;\n\n\t header.value.$el.classList.add('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = -firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t // headerTheme.value - light\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t } else if (scrollOffset.value <= 75 && isScrolled) {\n\t isScrolled = false;\n\t header.value.$el.classList.remove('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t }\n\t};\n\t/////////////////////////////\n\t// MOUNTED\n\t/////////////////////////////\n\t// if (typeof window === 'undefined') {\n\t// show.value = true\n\t// } else {\n\t// \tshow.value = false\n\t// }\n\n\tonMounted(async () => {\n\t\t \n\t\tif ('serviceWorker' in navigator) {\n\t \twindow.addEventListener('load', () => {\n\t \tnavigator.serviceWorker.register('/service-worker.js').then(registration => {\n\t \tconsole.log('SW registered: ', registration);\n\t \t}).catch(registrationError => {\n\t \tconsole.log('SW registration failed: ', registrationError);\n\t \t});\n\t });\n\t \t}\n\t\t\n\t\tconst savedPosition = localStorage.getItem('position');\n\n\t if (savedPosition) {\n\t globals.state.position = JSON.parse(savedPosition);\n\t } else {\n \t\tglobals.state.isOpenLocationPopup = true;\n\t }\n\n\t\tif (referalCode.value) {\n\t\t localStorage.setItem('referalCode', referalCode.value);\n\t\t}\n\n\t\tif (page) show.value = true\n\t});\n</script>\n\n<style lang=\"scss\">;\t\n\t.scaleIn-enter-active,\n\t.scaleIn-leave-active {\n\t\ttransform: scale(1); \n\t\ttransition: all 0.5s ease; \n\t}\n\t.scaleIn-enter-from,\n\t.scaleIn-leave-to {\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease; \n\t}\n\n\t.moveFromTop-enter-active,\n\t.moveFromTop-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTop-enter-from,\n\t.moveFromTop-leave-to {\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\n\t.moveFromTopAbsolute-enter-active,\n\t.moveFromTopAbsolute-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTopAbsolute-enter-from,\n\t.moveFromTopAbsolute-leave-to {\n\t\tposition: absolute;\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\t.ScaleOut-enter-active,\n\t.ScaleOut-leave-active {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t\ttransition: all 0.3s ease; \n\t\t\n\t}\n\t.ScaleOut-enter-from,\n\t.ScaleOut-leave-to {\n\t\topacity: 0;\n\t\ttransform: scale(0.9);\n\t\ttransition: all 0.3s ease;\n\t}\n\t.slide-fade-enter-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-leave-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-enter-from,\n\t.slide-fade-leave-to {\n\t\tmin-height: 0;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n</style>"],"names":["globals.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAiHE,QAAI,OAAO,IAAI,KAAK;AAEpB,UAAM,OAAO,IAAI,IAAI;AAItB,UAAM,QAAQ,SAAU;AACT,cAAW;AAE1B,UAAM,cAAc,IAAI,MAAM,MAAM,WAAW;AAI/C,aAAS,qBAAqB;AAC5BA,YAAc,sBAAsB;AAAA,IACrC;AACD,aAAS,YAAW;AACnB,eAAS,eAAe,KAAK,EAAE,eAAc;AAAA,IAC7C;AAED,UAAM,eAAe,IAAI,CAAC;AAC1B,QAAI,aAAa;AACjB,UAAM,SAAS,IAAI,IAAI;AAEvB,UAAM,cAAc,SAAS,MAAM;AAClC,UAAI,aAAa,QAAQ,IAAI;AAC5B,eAAO;AAAA,MACV,OAAS;AACN,eAAO,MAAM,KAAK,gBAAgB;AAAA,MAClC;AAAA,IACH,CAAE;AACD,UAAM,eAAe,MAAM;AACzB,mBAAa,QAAQ,MAAM,OAAO;AAElC,UAAI,aAAa,QAAQ,MAAM,CAAC,YAAY;AAC1C,qBAAa;AAEb,eAAO,MAAM,IAAI,UAAU,IAAI,UAAU;AAEzC,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,CAAC,UAAU;AAE1B,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAIvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL,WAAU,aAAa,SAAS,MAAM,YAAY;AACjD,qBAAa;AACb,eAAO,MAAM,IAAI,UAAU,OAAO,UAAU;AAE5C,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,UAAU;AAEzB,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAEvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL;AAAA,IACJ;AAUC,cAAU,YAAY;AAErB,UAAI,mBAAmB,WAAW;AAC/B,eAAO,iBAAiB,QAAQ,MAAM;AACpC,oBAAU,cAAc,SAAS,oBAAoB,EAAE,KAAK,kBAAgB;AAC1E,oBAAQ,IAAI,mBAAmB,YAAY;AAAA,UACpD,CAAQ,EAAE,MAAM,uBAAqB;AAC5B,oBAAQ,IAAI,4BAA4B,iBAAiB;AAAA,UAClE,CAAQ;AAAA,QACR,CAAK;AAAA,MACD;AAEF,YAAM,gBAAgB,aAAa,QAAQ,UAAU;AAEpD,UAAI,eAAe;AACjBA,cAAc,WAAW,KAAK,MAAM,aAAa;AAAA,MACtD,OAAU;AACNA,cAAc,sBAAsB;AAAA,MACpC;AAEF,UAAI,YAAY,OAAO;AACrB,qBAAa,QAAQ,eAAe,YAAY,KAAK;AAAA,MACtD;AAED,UAAI,KAAM,MAAK,QAAQ;AAAA,IACzB,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NavigationBar.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/partials/NavigationBar.vue"],"sourcesContent":["<template>\n\t<header \n\t\tclass=\"pos-sticky w-100 z-index-4 br-b br-solid br-black-transp flex-center flex t-center pd-medium bg-white\"\n\t>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<Button\n\t\t\t\tv-if=\"route.meta.title_hide\"\n\t\t\t\t:submit=\"a => shopcart.actions.toggleShopcart()\" \n\t\t\t\t:counter=\"shopcart.getters.cartTotalAmount\" \n\t\t\t\t:showSucces=\"false\"\n\t\t\t\t:showLoader=\"false\"\n\t\t\t\tclass=\"header-shopcart pd-zero mn-l-auto\"\n\t\t\t\t> \n\t\t\t\t<IconShopcart class=\"i-semi\" fill=\"#00ff88\" />\n\t\t\t</Button>\n\t\t</transition>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\n\t\t\t<IconProfile \n\t\t\t\tv-if=\"route.meta.title_hide\"\n\t\t\t\t@click=\"handleToggle()\" \n\t\t\t\tclass=\"header-profile i-semi\"\n\t\t\t\tfill=\"#00ff88\" \n\t\t\t/>\n\n\t\t\t<svg \n\t\t\t\tv-else \n\t\t\t\t@click=\"handleBackNavigation()\" \n\t\t\t\tclass=\"i-semi header-arrow\"\n\t\t\t\twidth=\"12\"\n\t\t\t\theight=\"22\"\n\t\t\t\tviewBox=\"0 0 12 22\"\n\t\t\t\tfill=\"none\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t>\n\t\t\t\t<path fill=\"rgb(var(--main))\" d=\"M9.70312 20.7969C10.125 21.2188 10.8281 21.2188 11.2969 20.7969C11.7188 20.375 11.7188 19.6719 11.2969 19.2031L3.42188 11L11.2969 2.79688C11.7188 2.32813 11.7188 1.625 11.2969 1.20313C10.8281 0.734377 10.125 0.781252 9.70312 1.20313L1.07812 10.2031C0.84375 10.4375 0.75 10.7188 0.75 11C0.75 11.2813 0.84375 11.5625 1.07812 11.7969L9.70312 20.7969Z\" />\n\t\t\t</svg>\n\t\t</transition>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<div :key=\"route.meta.title_hide\" class=\"header-title\">\n\t\t\t\t<component\n\t\t\t\t\tv-if=\"props.logotype && route.meta.title_hide\"\n\t\t\t\t :is=\"props.logotype\"\n\t\t\t\t :theme=\"theme\"\n\t\t\t\t class=\"\n\t\t\t\t h-2r\n\t\t\t\t w-auto\n\t\t\t\t cursor-pointer\n\t\t\t\t \"\n\t\t\t\t/>\n\n\t\t\t\t<p v-else class=\"t-semi h-2r h4 d-block\" >\n\t\t\t\t\t{{route.meta.title[locale.toLowerCase()]}}\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</transition>\n\t</header>\n</template>\n\n<script setup>\n\timport { ref, onMounted, onUnmounted } from 'vue' \n\timport { useRoute, useRouter } from 'vue-router'\n\timport { useI18n } from 'vue-i18n'
|
1
|
+
{"version":3,"file":"NavigationBar.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/partials/NavigationBar.vue"],"sourcesContent":["<template>\n\t<header \n\t\tclass=\"pos-sticky w-100 z-index-4 br-b br-solid br-black-transp flex-center flex t-center pd-medium bg-white\"\n\t>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<Button\n\t\t\t\tv-if=\"route.meta.title_hide\"\n\t\t\t\t:submit=\"a => shopcart.actions.toggleShopcart()\" \n\t\t\t\t:counter=\"shopcart.getters.cartTotalAmount\" \n\t\t\t\t:showSucces=\"false\"\n\t\t\t\t:showLoader=\"false\"\n\t\t\t\tclass=\"header-shopcart pd-zero mn-l-auto\"\n\t\t\t\t> \n\t\t\t\t<IconShopcart class=\"i-semi\" fill=\"#00ff88\" />\n\t\t\t</Button>\n\t\t</transition>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\n\t\t\t<IconProfile \n\t\t\t\tv-if=\"route.meta.title_hide\"\n\t\t\t\t@click=\"handleToggle()\" \n\t\t\t\tclass=\"header-profile i-semi\"\n\t\t\t\tfill=\"#00ff88\" \n\t\t\t/>\n\n\t\t\t<svg \n\t\t\t\tv-else \n\t\t\t\t@click=\"handleBackNavigation()\" \n\t\t\t\tclass=\"i-semi header-arrow\"\n\t\t\t\twidth=\"12\"\n\t\t\t\theight=\"22\"\n\t\t\t\tviewBox=\"0 0 12 22\"\n\t\t\t\tfill=\"none\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t>\n\t\t\t\t<path fill=\"rgb(var(--main))\" d=\"M9.70312 20.7969C10.125 21.2188 10.8281 21.2188 11.2969 20.7969C11.7188 20.375 11.7188 19.6719 11.2969 19.2031L3.42188 11L11.2969 2.79688C11.7188 2.32813 11.7188 1.625 11.2969 1.20313C10.8281 0.734377 10.125 0.781252 9.70312 1.20313L1.07812 10.2031C0.84375 10.4375 0.75 10.7188 0.75 11C0.75 11.2813 0.84375 11.5625 1.07812 11.7969L9.70312 20.7969Z\" />\n\t\t\t</svg>\n\t\t</transition>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<div :key=\"route.meta.title_hide\" class=\"header-title\">\n\t\t\t\t<component\n\t\t\t\t\tv-if=\"props.logotype && route.meta.title_hide\"\n\t\t\t\t :is=\"props.logotype\"\n\t\t\t\t :theme=\"theme\"\n\t\t\t\t class=\"\n\t\t\t\t h-2r\n\t\t\t\t w-auto\n\t\t\t\t cursor-pointer\n\t\t\t\t \"\n\t\t\t\t/>\n\n\t\t\t\t<p v-else class=\"t-semi h-2r h4 d-block\" >\n\t\t\t\t\t{{route.meta.title[locale.toLowerCase()]}}\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</transition>\n\t</header>\n</template>\n\n<script setup>\n\timport { ref, onMounted, onUnmounted } from 'vue' \n\timport { useRoute, useRouter } from 'vue-router'\n\timport { useI18n } from 'vue-i18n'\n\t\n import IconShopcart from '@pf/src/modules/icons/entities/IconShopcart.vue'\n\timport IconProfile from '@pf/src/modules/icons/entities/IconProfile.vue'\n\n\timport Button \t\t\t\tfrom '@pf/src/components/Button/Button.vue'\n\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\timport * as shopcart from '@pf/src/modules/orders/store/shopcart'\n\timport * as auth from '@pf/src/modules/auth/views/store/auth'\n\n\t\t// Props\n\tconst props = defineProps({\n theme: {\n \ttype: String,\n\t default: \"light\"\n },\n logotype: {\n\t type: Object\n\t }\n });\n\n\tconst router = useRouter()\n\tconst route = useRoute()\n\n\tconst { t, mergeLocaleMessage, locale } = useI18n();\n\n\tfunction handleBackNavigation() {\n\t if (route.query?.afterAuth) { \n\t \trouter.push({name: 'Home'}) \n\t } else {\n\t \trouter.back();\n\t }\n\t}\n\n\tfunction handleToggle() {\n\t\tif (auth.state.access.status === false) {\n\t\t\trouter.push({name: 'Sign In'}) \n\t\t} else {\n\t\t\trouter.push({ name: 'User Profile', params: { _id: auth.state.user._id }})\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n\t.header-arrow {\n\t\tposition: absolute;\n\t\tleft: 1.25rem;\n\t\theight: 2rem;\n\t}\n\n\t.header-profile {\n\t\tposition: absolute;\n\t\tright: 1.25rem;\n\t\theight: 2rem;\n\t}\n\n\t.header-shopcart {\n\t\tposition: absolute;\n\t\tright: 4.25rem;\n\t\theight: 2rem;\n\t}\n\n\t.header-title {\n\t\tpointer-events: none;\n\t}\n\n\t.slideIn-enter-active,\n\t.slideIn-leave-active {\n\t\ttransition: all 0.33s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slideIn-enter-from,\n\t.slideIn-leave-to {\n\t\topacity: 0;\n\t\ttransform: translateX(50px);\n\n\t\tspan {\tposition: absolute; } \n\t}\n\n\t.slideY-enter-active,\n\t.slideY-leave-active {\n\t\ttransition: all 0.33s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slideY-enter-from,\n\t.slideY-leave-to {\n\t\topacity: 0;\n\t\ttransform: translateY(50px);\n\n\t\tspan {\tposition: absolute; } \n\t}\n</style>"],"names":["useRouter","useRoute","useI18n","auth.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EC,UAAM,QAAQ;AAUd,UAAM,SAASA,UAAAA,UAAW;AAC1B,UAAM,QAAQC,UAAAA,SAAU;AAExB,UAAM,EAAE,GAAG,oBAAoB,OAAQ,IAAGC,QAAO,QAAA;AAEjD,aAAS,uBAAuB;;AAC5B,WAAI,WAAM,UAAN,mBAAa,WAAY;AAC5B,eAAO,KAAK,EAAC,MAAM,OAAM,CAAC;AAAA,MAChC,OAAY;AACN,eAAO,KAAI;AAAA,MACX;AAAA,IACJ;AAED,aAAS,eAAe;AACvB,UAAIC,WAAW,OAAO,WAAW,OAAO;AACvC,eAAO,KAAK,EAAC,MAAM,UAAS,CAAC;AAAA,MAChC,OAAS;AACN,eAAO,KAAK,EAAE,MAAM,gBAAgB,QAAQ,EAAE,KAAKA,KAAU,MAAC,KAAK,IAAK,EAAA,CAAC;AAAA,MACzE;AAAA,IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NavigationBar.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/partials/NavigationBar.vue"],"sourcesContent":["<template>\n\t<header \n\t\tclass=\"pos-sticky w-100 z-index-4 br-b br-solid br-black-transp flex-center flex t-center pd-medium bg-white\"\n\t>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<Button\n\t\t\t\tv-if=\"route.meta.title_hide\"\n\t\t\t\t:submit=\"a => shopcart.actions.toggleShopcart()\" \n\t\t\t\t:counter=\"shopcart.getters.cartTotalAmount\" \n\t\t\t\t:showSucces=\"false\"\n\t\t\t\t:showLoader=\"false\"\n\t\t\t\tclass=\"header-shopcart pd-zero mn-l-auto\"\n\t\t\t\t> \n\t\t\t\t<IconShopcart class=\"i-semi\" fill=\"#00ff88\" />\n\t\t\t</Button>\n\t\t</transition>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\n\t\t\t<IconProfile \n\t\t\t\tv-if=\"route.meta.title_hide\"\n\t\t\t\t@click=\"handleToggle()\" \n\t\t\t\tclass=\"header-profile i-semi\"\n\t\t\t\tfill=\"#00ff88\" \n\t\t\t/>\n\n\t\t\t<svg \n\t\t\t\tv-else \n\t\t\t\t@click=\"handleBackNavigation()\" \n\t\t\t\tclass=\"i-semi header-arrow\"\n\t\t\t\twidth=\"12\"\n\t\t\t\theight=\"22\"\n\t\t\t\tviewBox=\"0 0 12 22\"\n\t\t\t\tfill=\"none\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t>\n\t\t\t\t<path fill=\"rgb(var(--main))\" d=\"M9.70312 20.7969C10.125 21.2188 10.8281 21.2188 11.2969 20.7969C11.7188 20.375 11.7188 19.6719 11.2969 19.2031L3.42188 11L11.2969 2.79688C11.7188 2.32813 11.7188 1.625 11.2969 1.20313C10.8281 0.734377 10.125 0.781252 9.70312 1.20313L1.07812 10.2031C0.84375 10.4375 0.75 10.7188 0.75 11C0.75 11.2813 0.84375 11.5625 1.07812 11.7969L9.70312 20.7969Z\" />\n\t\t\t</svg>\n\t\t</transition>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<div :key=\"route.meta.title_hide\" class=\"header-title\">\n\t\t\t\t<component\n\t\t\t\t\tv-if=\"props.logotype && route.meta.title_hide\"\n\t\t\t\t :is=\"props.logotype\"\n\t\t\t\t :theme=\"theme\"\n\t\t\t\t class=\"\n\t\t\t\t h-2r\n\t\t\t\t w-auto\n\t\t\t\t cursor-pointer\n\t\t\t\t \"\n\t\t\t\t/>\n\n\t\t\t\t<p v-else class=\"t-semi h-2r h4 d-block\" >\n\t\t\t\t\t{{route.meta.title[locale.toLowerCase()]}}\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</transition>\n\t</header>\n</template>\n\n<script setup>\n\timport { ref, onMounted, onUnmounted } from 'vue' \n\timport { useRoute, useRouter } from 'vue-router'\n\timport { useI18n } from 'vue-i18n'
|
1
|
+
{"version":3,"file":"NavigationBar.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/partials/NavigationBar.vue"],"sourcesContent":["<template>\n\t<header \n\t\tclass=\"pos-sticky w-100 z-index-4 br-b br-solid br-black-transp flex-center flex t-center pd-medium bg-white\"\n\t>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<Button\n\t\t\t\tv-if=\"route.meta.title_hide\"\n\t\t\t\t:submit=\"a => shopcart.actions.toggleShopcart()\" \n\t\t\t\t:counter=\"shopcart.getters.cartTotalAmount\" \n\t\t\t\t:showSucces=\"false\"\n\t\t\t\t:showLoader=\"false\"\n\t\t\t\tclass=\"header-shopcart pd-zero mn-l-auto\"\n\t\t\t\t> \n\t\t\t\t<IconShopcart class=\"i-semi\" fill=\"#00ff88\" />\n\t\t\t</Button>\n\t\t</transition>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\n\t\t\t<IconProfile \n\t\t\t\tv-if=\"route.meta.title_hide\"\n\t\t\t\t@click=\"handleToggle()\" \n\t\t\t\tclass=\"header-profile i-semi\"\n\t\t\t\tfill=\"#00ff88\" \n\t\t\t/>\n\n\t\t\t<svg \n\t\t\t\tv-else \n\t\t\t\t@click=\"handleBackNavigation()\" \n\t\t\t\tclass=\"i-semi header-arrow\"\n\t\t\t\twidth=\"12\"\n\t\t\t\theight=\"22\"\n\t\t\t\tviewBox=\"0 0 12 22\"\n\t\t\t\tfill=\"none\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t>\n\t\t\t\t<path fill=\"rgb(var(--main))\" d=\"M9.70312 20.7969C10.125 21.2188 10.8281 21.2188 11.2969 20.7969C11.7188 20.375 11.7188 19.6719 11.2969 19.2031L3.42188 11L11.2969 2.79688C11.7188 2.32813 11.7188 1.625 11.2969 1.20313C10.8281 0.734377 10.125 0.781252 9.70312 1.20313L1.07812 10.2031C0.84375 10.4375 0.75 10.7188 0.75 11C0.75 11.2813 0.84375 11.5625 1.07812 11.7969L9.70312 20.7969Z\" />\n\t\t\t</svg>\n\t\t</transition>\n\n\t\t<transition name=\"slideIn\" mode=\"out-in\">\n\t\t\t<div :key=\"route.meta.title_hide\" class=\"header-title\">\n\t\t\t\t<component\n\t\t\t\t\tv-if=\"props.logotype && route.meta.title_hide\"\n\t\t\t\t :is=\"props.logotype\"\n\t\t\t\t :theme=\"theme\"\n\t\t\t\t class=\"\n\t\t\t\t h-2r\n\t\t\t\t w-auto\n\t\t\t\t cursor-pointer\n\t\t\t\t \"\n\t\t\t\t/>\n\n\t\t\t\t<p v-else class=\"t-semi h-2r h4 d-block\" >\n\t\t\t\t\t{{route.meta.title[locale.toLowerCase()]}}\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</transition>\n\t</header>\n</template>\n\n<script setup>\n\timport { ref, onMounted, onUnmounted } from 'vue' \n\timport { useRoute, useRouter } from 'vue-router'\n\timport { useI18n } from 'vue-i18n'\n\t\n import IconShopcart from '@pf/src/modules/icons/entities/IconShopcart.vue'\n\timport IconProfile from '@pf/src/modules/icons/entities/IconProfile.vue'\n\n\timport Button \t\t\t\tfrom '@pf/src/components/Button/Button.vue'\n\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\timport * as shopcart from '@pf/src/modules/orders/store/shopcart'\n\timport * as auth from '@pf/src/modules/auth/views/store/auth'\n\n\t\t// Props\n\tconst props = defineProps({\n theme: {\n \ttype: String,\n\t default: \"light\"\n },\n logotype: {\n\t type: Object\n\t }\n });\n\n\tconst router = useRouter()\n\tconst route = useRoute()\n\n\tconst { t, mergeLocaleMessage, locale } = useI18n();\n\n\tfunction handleBackNavigation() {\n\t if (route.query?.afterAuth) { \n\t \trouter.push({name: 'Home'}) \n\t } else {\n\t \trouter.back();\n\t }\n\t}\n\n\tfunction handleToggle() {\n\t\tif (auth.state.access.status === false) {\n\t\t\trouter.push({name: 'Sign In'}) \n\t\t} else {\n\t\t\trouter.push({ name: 'User Profile', params: { _id: auth.state.user._id }})\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n\t.header-arrow {\n\t\tposition: absolute;\n\t\tleft: 1.25rem;\n\t\theight: 2rem;\n\t}\n\n\t.header-profile {\n\t\tposition: absolute;\n\t\tright: 1.25rem;\n\t\theight: 2rem;\n\t}\n\n\t.header-shopcart {\n\t\tposition: absolute;\n\t\tright: 4.25rem;\n\t\theight: 2rem;\n\t}\n\n\t.header-title {\n\t\tpointer-events: none;\n\t}\n\n\t.slideIn-enter-active,\n\t.slideIn-leave-active {\n\t\ttransition: all 0.33s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slideIn-enter-from,\n\t.slideIn-leave-to {\n\t\topacity: 0;\n\t\ttransform: translateX(50px);\n\n\t\tspan {\tposition: absolute; } \n\t}\n\n\t.slideY-enter-active,\n\t.slideY-leave-active {\n\t\ttransition: all 0.33s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slideY-enter-from,\n\t.slideY-leave-to {\n\t\topacity: 0;\n\t\ttransform: translateY(50px);\n\n\t\tspan {\tposition: absolute; } \n\t}\n</style>"],"names":["auth.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EC,UAAM,QAAQ;AAUd,UAAM,SAAS,UAAW;AAC1B,UAAM,QAAQ,SAAU;AAExB,UAAM,EAAE,GAAG,oBAAoB,OAAQ,IAAG,QAAO;AAEjD,aAAS,uBAAuB;;AAC5B,WAAI,WAAM,UAAN,mBAAa,WAAY;AAC5B,eAAO,KAAK,EAAC,MAAM,OAAM,CAAC;AAAA,MAChC,OAAY;AACN,eAAO,KAAI;AAAA,MACX;AAAA,IACJ;AAED,aAAS,eAAe;AACvB,UAAIA,MAAW,OAAO,WAAW,OAAO;AACvC,eAAO,KAAK,EAAC,MAAM,UAAS,CAAC;AAAA,MAChC,OAAS;AACN,eAAO,KAAK,EAAE,MAAM,gBAAgB,QAAQ,EAAE,KAAKA,MAAW,KAAK,IAAK,EAAA,CAAC;AAAA,MACzE;AAAA,IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/style.css
CHANGED
@@ -1068,27 +1068,6 @@ to {
|
|
1068
1068
|
left: 0;
|
1069
1069
|
right: 0;
|
1070
1070
|
opacity: 0.9;
|
1071
|
-
}
|
1072
|
-
.pac-container {
|
1073
|
-
position: absolute;
|
1074
|
-
background-color: white;
|
1075
|
-
z-index: 1000;
|
1076
|
-
border-radius: 2rem;
|
1077
|
-
overflow: hidden;
|
1078
|
-
}
|
1079
|
-
|
1080
|
-
.my-location-button {
|
1081
|
-
position: absolute;
|
1082
|
-
right: 10px;
|
1083
|
-
top: 10px;
|
1084
|
-
z-index: 99;
|
1085
|
-
}
|
1086
|
-
.gm-style-cc { display:none;
|
1087
|
-
}
|
1088
|
-
|
1089
|
-
|
1090
|
-
.no-hover-color[data-v-71a26b8f]:hover {
|
1091
|
-
color: unset;
|
1092
1071
|
}.header-arrow {
|
1093
1072
|
position: absolute;
|
1094
1073
|
left: 1.25rem;
|
@@ -1132,6 +1111,27 @@ to {
|
|
1132
1111
|
.slideY-enter-from span,
|
1133
1112
|
.slideY-leave-to span {
|
1134
1113
|
position: absolute;
|
1114
|
+
}
|
1115
|
+
.pac-container {
|
1116
|
+
position: absolute;
|
1117
|
+
background-color: white;
|
1118
|
+
z-index: 1000;
|
1119
|
+
border-radius: 2rem;
|
1120
|
+
overflow: hidden;
|
1121
|
+
}
|
1122
|
+
|
1123
|
+
.my-location-button {
|
1124
|
+
position: absolute;
|
1125
|
+
right: 10px;
|
1126
|
+
top: 10px;
|
1127
|
+
z-index: 99;
|
1128
|
+
}
|
1129
|
+
.gm-style-cc { display:none;
|
1130
|
+
}
|
1131
|
+
|
1132
|
+
|
1133
|
+
.no-hover-color[data-v-71a26b8f]:hover {
|
1134
|
+
color: unset;
|
1135
1135
|
}.shop-cart {
|
1136
1136
|
display: block;
|
1137
1137
|
position: fixed;
|
package/package.json
CHANGED
@@ -98,13 +98,13 @@
|
|
98
98
|
|
99
99
|
import Popup from '@pf/src/components/Popup/Popup.vue'
|
100
100
|
import Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'
|
101
|
-
|
101
|
+
import Loader from '@pf/src/components/Loader/Loader.vue'
|
102
102
|
|
103
103
|
|
104
|
+
import NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue'
|
104
105
|
import LocationSelection from '@pf/src/modules/globals/views/components/partials/LocationSelection.vue'
|
105
106
|
import Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'
|
106
|
-
import BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue'
|
107
|
-
import NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue';
|
107
|
+
import BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue'
|
108
108
|
|
109
109
|
import ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue'
|
110
110
|
/////////////////////////////
|
@@ -63,7 +63,7 @@
|
|
63
63
|
<script setup>
|
64
64
|
import { ref, onMounted, onUnmounted } from 'vue'
|
65
65
|
import { useRoute, useRouter } from 'vue-router'
|
66
|
-
import { useI18n } from 'vue-i18n'
|
66
|
+
import { useI18n } from 'vue-i18n'
|
67
67
|
|
68
68
|
import IconShopcart from '@pf/src/modules/icons/entities/IconShopcart.vue'
|
69
69
|
import IconProfile from '@pf/src/modules/icons/entities/IconProfile.vue'
|
@@ -85,7 +85,6 @@
|
|
85
85
|
}
|
86
86
|
});
|
87
87
|
|
88
|
-
|
89
88
|
const router = useRouter()
|
90
89
|
const route = useRoute()
|
91
90
|
|
@@ -109,22 +108,6 @@
|
|
109
108
|
</script>
|
110
109
|
|
111
110
|
<style lang="scss">
|
112
|
-
// * {
|
113
|
-
// -ms-overflow-style: none; /* IE and Edge */
|
114
|
-
// scrollbar-width: none; /* Firefox */
|
115
|
-
// }
|
116
|
-
|
117
|
-
// *::-webkit-scrollbar {
|
118
|
-
// display: none; /* Chrome, Safari and Opera*/
|
119
|
-
// }
|
120
|
-
|
121
|
-
// #header {
|
122
|
-
// top: 0;
|
123
|
-
// // height: 6rem;
|
124
|
-
// // padding-top: 4rem;
|
125
|
-
// position: fixed;
|
126
|
-
// width: 100%;
|
127
|
-
// }
|
128
111
|
.header-arrow {
|
129
112
|
position: absolute;
|
130
113
|
left: 1.25rem;
|