@ozdao/prometheus-framework 0.2.203 → 0.2.205
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +24 -15
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +24 -15
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +51 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +37 -22
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js.map +1 -0
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +8 -6
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +8 -6
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +6 -5
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +6 -5
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +6 -5
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +6 -5
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +4 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +4 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +4 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +4 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +29 -29
- 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 +30 -30
- 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/Header.vue.cjs +109 -102
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +110 -103
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs +85 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js +85 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +4 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +90 -96
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +91 -97
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +72 -25
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +81 -34
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +7 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +7 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/dist/prometheus-framework.cjs.js +14 -14
- package/dist/prometheus-framework.es.js +2830 -2823
- package/dist/style.css +89 -21
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +23 -10
- package/src/components/Tab/Tab.vue +10 -7
- package/src/modules/auth/views/components/pages/ResetPassword.vue +5 -4
- package/src/modules/auth/views/components/pages/SignIn.vue +5 -3
- package/src/modules/auth/views/components/pages/SignUp.vue +3 -2
- package/src/modules/globals/globals.client.js +5 -2
- package/src/modules/globals/views/components/layouts/Client.vue +100 -21
- package/src/modules/globals/views/components/partials/Header.vue +18 -29
- package/src/modules/globals/views/components/partials/Sidebar.vue +0 -2
- package/src/modules/marketplace/components/layouts/Marketplace.vue +16 -9
- package/src/modules/orders/components/partials/ShopCart.vue +3 -3
- package/src/modules/organizations/components/pages/Organization.vue +9 -6
- package/src/modules/organizations/components/sections/DetailsTab.vue +132 -133
- package/src/modules/products/components/pages/Products.vue +89 -10
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/products/components/sections/SectionProduct.vue +4 -0
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs
CHANGED
@@ -8,12 +8,13 @@ const shopcart = require("../../../../orders/store/shopcart.cjs");
|
|
8
8
|
const auth = require("../../../../auth/views/store/auth.cjs");
|
9
9
|
;/* empty css */
|
10
10
|
const Button = require("../../../../../components/Button/Button.vue2.cjs");
|
11
|
-
const Select = require("../../../../../components/Select/Select.
|
11
|
+
const Select = require("../../../../../components/Select/Select.vue.cjs");
|
12
12
|
const Checkbox = require("../../../../../components/Checkbox/Checkbox.vue.cjs");
|
13
13
|
const IconShopcart = require("../../../../icons/entities/IconShopcart.vue.cjs");
|
14
14
|
const IconProfile = require("../../../../icons/entities/IconProfile.vue.cjs");
|
15
15
|
;/* empty css */
|
16
|
-
const _hoisted_1 = {
|
16
|
+
const _hoisted_1 = { class: "flex-nowrap flex-v-center flex-justify-start flex gap-micro w-min-20 w-max-20r" };
|
17
|
+
const _hoisted_2 = {
|
17
18
|
class: "i-small",
|
18
19
|
fill: "inherit",
|
19
20
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -21,13 +22,15 @@ const _hoisted_1 = {
|
|
21
22
|
height: "67",
|
22
23
|
viewBox: "0 0 50 67"
|
23
24
|
};
|
24
|
-
const
|
25
|
+
const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", {
|
25
26
|
d: "M25 0C11.207 0 0 11.207 0 25C0 38.793 20.832 66.668 25 66.668C29.168 66.668 50 38.793 50 25C50 11.207 38.793 0 25 0ZM25 33.332C20.418 33.332 16.668 29.582 16.668 25C16.668 20.418 20.418 16.668 25 16.668C29.582 16.668 33.332 20.418 33.332 25C33.332 29.582 29.582 33.332 25 33.332Z",
|
26
27
|
fill: "inherit"
|
27
28
|
}, null, -1);
|
28
|
-
const
|
29
|
-
|
29
|
+
const _hoisted_4 = [
|
30
|
+
_hoisted_3
|
30
31
|
];
|
32
|
+
const _hoisted_5 = { class: "flex-nowrap flex" };
|
33
|
+
const _hoisted_6 = { class: "flex-justify-end flex-v-center flex-nowrap flex gap-micro w-min-20 w-max-20r" };
|
31
34
|
const _sfc_main = {
|
32
35
|
__name: "Header",
|
33
36
|
props: {
|
@@ -37,10 +40,13 @@ const _sfc_main = {
|
|
37
40
|
},
|
38
41
|
logotype: {
|
39
42
|
type: Object
|
43
|
+
},
|
44
|
+
location: {
|
45
|
+
type: Boolean,
|
46
|
+
default: true
|
40
47
|
}
|
41
48
|
},
|
42
49
|
setup(__props) {
|
43
|
-
const props = __props;
|
44
50
|
const router = vueRouter.useRouter();
|
45
51
|
vueRouter.useRoute();
|
46
52
|
vueI18n.useI18n();
|
@@ -52,105 +58,106 @@ const _sfc_main = {
|
|
52
58
|
});
|
53
59
|
return (_ctx, _cache) => {
|
54
60
|
var _a;
|
55
|
-
return vue.openBlock(), vue.createElementBlock(
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
vue.createElementVNode("button", {
|
63
|
-
"aria-label": "menu",
|
64
|
-
onClick: _cache[0] || (_cache[0] = () => globals.state.isOpenSidebar = !globals.state.isOpenSidebar),
|
65
|
-
class: vue.normalizeClass(["mobile-only menu-btn", {
|
66
|
-
"menu-btn_active": globals.state.isOpenSidebar
|
67
|
-
}])
|
68
|
-
}, [
|
69
|
-
vue.createElementVNode("span", {
|
70
|
-
class: vue.normalizeClass(["no-events", {
|
71
|
-
"bg-black": __props.theme === "light",
|
72
|
-
"bg-white": __props.theme === "dark"
|
61
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
62
|
+
vue.createElementVNode("div", _hoisted_1, [
|
63
|
+
vue.createElementVNode("button", {
|
64
|
+
"aria-label": "menu",
|
65
|
+
onClick: _cache[0] || (_cache[0] = () => globals.state.isOpenSidebar = !globals.state.isOpenSidebar),
|
66
|
+
class: vue.normalizeClass(["mobile-only menu-btn", {
|
67
|
+
"menu-btn_active": globals.state.isOpenSidebar
|
73
68
|
}])
|
74
69
|
}, [
|
75
70
|
vue.createElementVNode("span", {
|
76
|
-
class: vue.normalizeClass(["
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
},
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
}]),
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
71
|
+
class: vue.normalizeClass(["no-events", {
|
72
|
+
"bg-black": __props.theme === "light",
|
73
|
+
"bg-white": __props.theme === "dark"
|
74
|
+
}])
|
75
|
+
}, [
|
76
|
+
vue.createElementVNode("span", {
|
77
|
+
class: vue.normalizeClass(["menu-btn__before", { "bg-black": __props.theme === "light", "bg-white": __props.theme === "dark" }])
|
78
|
+
}, null, 2),
|
79
|
+
vue.createElementVNode("span", {
|
80
|
+
class: vue.normalizeClass(["menu-btn__after", { "bg-black": __props.theme === "light", "bg-white": __props.theme === "dark" }])
|
81
|
+
}, null, 2)
|
82
|
+
], 2)
|
83
|
+
], 2),
|
84
|
+
__props.logotype.component ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.logotype.component), {
|
85
|
+
key: 0,
|
86
|
+
onClick: _cache[1] || (_cache[1] = ($event) => vue.unref(router).push({ path: "/" })),
|
87
|
+
theme: __props.theme,
|
88
|
+
class: vue.normalizeClass(__props.logotype.class)
|
89
|
+
}, null, 8, ["theme", "class"])) : vue.createCommentVNode("", true),
|
90
|
+
__props.location ? (vue.openBlock(), vue.createElementBlock("button", {
|
91
|
+
key: 1,
|
92
|
+
"aria-label": "button_location",
|
93
|
+
class: vue.normalizeClass(["cursor-pointer bg-transp pd-l-micro pd-r-micro radius-extra uppercase t-semi br-solid br-2px transition-linear", {
|
94
|
+
"fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white": __props.theme === "light",
|
95
|
+
"fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black": __props.theme === "dark"
|
96
|
+
}]),
|
97
|
+
onClick: _cache[2] || (_cache[2] = ($event) => openLocationPopup())
|
98
|
+
}, [
|
99
|
+
(vue.openBlock(), vue.createElementBlock("svg", _hoisted_2, _hoisted_4)),
|
100
|
+
vue.createTextVNode(" " + vue.toDisplayString(((_a = globals.state.position) == null ? void 0 : _a.country) ? globals.state.position.country : "World"), 1)
|
101
|
+
], 2)) : vue.createCommentVNode("", true)
|
102
|
+
]),
|
103
|
+
vue.createElementVNode("div", _hoisted_5, [
|
104
|
+
vue.renderSlot(_ctx.$slots, "default"),
|
105
|
+
vue.createVNode(Checkbox.default, {
|
106
|
+
name: "darkmode",
|
107
|
+
label: "Darkmode",
|
108
|
+
radio: globals.state.theme.darkmode,
|
109
|
+
"onUpdate:radio": _cache[3] || (_cache[3] = (event) => globals.actions.toggleTheme()),
|
110
|
+
class: vue.normalizeClass(["mn-l-thin desktop-only t-semi pd-micro br-2px br-solid radius-extra", {
|
111
|
+
"br-light t-black": __props.theme === "light",
|
112
|
+
"br-dark t-white": __props.theme === "dark"
|
113
|
+
}]),
|
114
|
+
theme: __props.theme
|
115
|
+
}, null, 8, ["radio", "theme", "class"])
|
116
|
+
]),
|
117
|
+
vue.createElementVNode("div", _hoisted_6, [
|
118
|
+
vue.createVNode(Button.default, {
|
119
|
+
"aria-label": "shopcart",
|
120
|
+
submit: (a) => shopcart.actions.toggleShopcart(),
|
121
|
+
counter: shopcart.getters.cartTotalAmount,
|
122
|
+
showSucces: false,
|
123
|
+
showLoader: false,
|
124
|
+
class: "pd-zero mn-r-micro"
|
125
|
+
}, {
|
126
|
+
default: vue.withCtx(() => [
|
127
|
+
vue.createVNode(IconShopcart.default, {
|
128
|
+
class: "i-semi",
|
129
|
+
fill: __props.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
|
130
|
+
}, null, 8, ["fill"])
|
131
|
+
]),
|
132
|
+
_: 1
|
133
|
+
}, 8, ["submit", "counter"]),
|
134
|
+
vue.createVNode(Button.default, {
|
135
|
+
"aria-label": "profile",
|
136
|
+
class: "pd-zero bg-transp",
|
137
|
+
submit: auth.state.access.status === false ? (a) => vue.unref(router).push({ name: "Sign In" }) : (a) => vue.unref(router).push({ name: "User Profile", params: { _id: auth.state.user._id } }),
|
138
|
+
showSucces: false,
|
139
|
+
showLoader: false
|
140
|
+
}, {
|
141
|
+
default: vue.withCtx(() => [
|
142
|
+
vue.createVNode(IconProfile.default, {
|
143
|
+
class: "i-semi",
|
144
|
+
fill: __props.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
|
145
|
+
}, null, 8, ["fill"])
|
146
|
+
]),
|
147
|
+
_: 1
|
148
|
+
}, 8, ["submit"]),
|
149
|
+
vue.createVNode(Select.default, {
|
150
|
+
select: _ctx.$i18n.locale,
|
151
|
+
"onUpdate:select": _cache[4] || (_cache[4] = ($event) => _ctx.$i18n.locale = $event),
|
152
|
+
options: [{ name: "🌎 En", value: "en" }, { name: "🇷🇺 Ru", value: "ru" }],
|
153
|
+
property: "value",
|
154
|
+
class: vue.normalizeClass(["pos-relative uppercase pd-micro t-semi radius-thin", {
|
155
|
+
"bg-light t-black": __props.theme === "light",
|
156
|
+
"bg-dark t-white": __props.theme === "dark"
|
157
|
+
}])
|
158
|
+
}, null, 8, ["select", "class"])
|
159
|
+
])
|
160
|
+
], 64);
|
154
161
|
};
|
155
162
|
}
|
156
163
|
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Header.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/partials/Header.vue"],"sourcesContent":["<script setup=\"props\">\n\timport { computed, onMounted, toRefs, ref, inject } from 'vue'\n\n\timport { useRouter,useRoute } from 'vue-router'\n\timport { useI18n } from 'vue-i18n'\n\t\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\t\n\t// Globasls Component\n\timport Navigation from '@pf/src/modules/globals/views/components/partials/Navigation.vue'\n\t// Prometheus Component\n\timport Button from '@pf/src/components/Button/Button.vue'\n\timport Select from '@pf/src/components/Select/Select.vue'\n\timport Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'\n\t// Icons module\n\timport IconShopcart from '@pf/src/modules/icons/entities/IconShopcart.vue'\n\timport IconProfile from '@pf/src/modules/icons/entities/IconProfile.vue'\n\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\t// Accessing state\n\tconst router = useRouter()\n\tconst route = useRoute()\n\t// Localization\n\tconst { t } = useI18n()\n\t// const search = computed(() => store.products.state.search)\n\n\tfunction openLocationPopup() {\n\t globals.state.isOpenLocationPopup = true;\n\t}\n\t/////////////////////////////\n\t// MOUNTED\n\t/////////////////////////////\n\tonMounted(() => {\n shopcart.actions.setShopcart()\n });\n</script>\n\n<template>\n\t
|
1
|
+
{"version":3,"file":"Header.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/partials/Header.vue"],"sourcesContent":["<script setup=\"props\">\n\timport { computed, onMounted, toRefs, ref, inject } from 'vue'\n\n\timport { useRouter,useRoute } from 'vue-router'\n\timport { useI18n } from 'vue-i18n'\n\t\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\t\n\t// Globasls Component\n\timport Navigation from '@pf/src/modules/globals/views/components/partials/Navigation.vue'\n\t// Prometheus Component\n\timport Button from '@pf/src/components/Button/Button.vue'\n\timport Select from '@pf/src/components/Select/Select.vue'\n\timport Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'\n\t// Icons module\n\timport IconShopcart from '@pf/src/modules/icons/entities/IconShopcart.vue'\n\timport IconProfile from '@pf/src/modules/icons/entities/IconProfile.vue'\n\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\t location: {\n\t type: Boolean,\n\t\t default: true\n\t },\n });\n\t// Accessing state\n\tconst router = useRouter()\n\tconst route = useRoute()\n\t// Localization\n\tconst { t } = useI18n()\n\t// const search = computed(() => store.products.state.search)\n\n\tfunction openLocationPopup() {\n\t globals.state.isOpenLocationPopup = true;\n\t}\n\t/////////////////////////////\n\t// MOUNTED\n\t/////////////////////////////\n\tonMounted(() => {\n shopcart.actions.setShopcart()\n });\n</script>\n\n<template>\n\t\n\t<div class=\"flex-nowrap flex-v-center flex-justify-start flex gap-micro w-min-20 w-max-20r\">\n\t\t<!-- MENU -->\n\t\t<button \n\t\t\taria-label=\"menu\"\n\t\t\t@click=\"() => globals.state.isOpenSidebar = !globals.state.isOpenSidebar\" \n\t\t\tclass=\"mobile-only menu-btn\"\n\t\t\t:class=\"{\n\t\t\t\t'menu-btn_active': globals.state.isOpenSidebar\n\t\t\t}\"\n\t\t>\n\t <span\n\t \tclass=\"no-events\"\n\t\t :class=\"{\n\t\t 'bg-black': theme === 'light',\n\t\t 'bg-white': theme === 'dark'\n\t\t }\"\n\t\t >\n\t\t <span class=\"menu-btn__before\" :class=\"{ 'bg-black': theme === 'light', 'bg-white': theme === 'dark' }\"></span>\n\t\t <span class=\"menu-btn__after\" :class=\"{ 'bg-black': theme === 'light', 'bg-white': theme === 'dark' }\"></span>\n\t\t </span>\n\t </button>\n\n\t\t<!-- LOGO -->\n\t\t<component\n\t\t\tv-if=\"logotype.component\"\n\t\t :is=\"logotype.component\"\n\t\t @click=\"router.push({ path: '/' })\" \n\t\t :theme=\"theme\"\n\t\t :class=\"logotype.class\"\n\t\t/>\n\n\t\t<button\n\t\t\tv-if=\"location\"\n\t\t\taria-label=\"button_location\"\n \tclass=\"\n \t\tcursor-pointer\n \t\tbg-transp \n \t\tpd-l-micro pd-r-micro\n \t\tradius-extra \n \t\tuppercase \n \t\tt-semi\n \t\tbr-solid \n \t\tbr-2px \n \t\ttransition-linear\n \t\n \t\"\n \t:class=\"{\n \t\t'fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white': theme === 'light',\n \t\t'fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black': theme === 'dark' \n \t}\"\n \t@click=\"openLocationPopup()\"\n >\n \t<svg class=\"i-small\" :fill=\"'inherit'\" xmlns=\"http://www.w3.org/2000/svg\" width=\"50\" height=\"67\" viewBox=\"0 0 50 67\" fill=\"none\">\n\t\t\t <path d=\"M25 0C11.207 0 0 11.207 0 25C0 38.793 20.832 66.668 25 66.668C29.168 66.668 50 38.793 50 25C50 11.207 38.793 0 25 0ZM25 33.332C20.418 33.332 16.668 29.582 16.668 25C16.668 20.418 20.418 16.668 25 16.668C29.582 16.668 33.332 20.418 33.332 25C33.332 29.582 29.582 33.332 25 33.332Z\" :fill=\"'inherit'\"/>\n\t\t\t</svg>\n \t {{globals.state.position?.country ? globals.state.position.country : 'World'}}\n </button>\n </div>\n\n <div class=\"flex-nowrap flex\">\t\n\t\t<!-- NAGIVATION -->\n\t\t<slot></slot>\n\t\t<Checkbox \n name=\"darkmode\"\n :label=\"'Darkmode'\"\n :radio=\"globals.state.theme.darkmode\"\n @update:radio=\"event => globals.actions.toggleTheme()\"\n class=\"mn-l-thin desktop-only t-semi pd-micro br-2px br-solid radius-extra\"\n :theme=\"theme\"\n :class=\"{\n \t\t'br-light t-black': theme === 'light',\n \t\t'br-dark t-white': theme === 'dark' \n \t}\"\n />\n </div>\n\n\t<div class=\"flex-justify-end flex-v-center flex-nowrap flex gap-micro w-min-20 w-max-20r\">\n\t\t<Button\n\t\t\taria-label=\"shopcart\"\n\t\t\t:submit=\"a => shopcart.actions.toggleShopcart()\" \n\t\t\t:counter=\"shopcart.getters.cartTotalAmount\" \n\t\t\t:showSucces=\"false\"\n\t\t\t:showLoader=\"false\"\n\t\t\tclass=\"pd-zero mn-r-micro\"\n\t\t\t> \n\t\t\t<IconShopcart \n\t\t\t\tclass=\"i-semi\"\n\t\t\t\t:fill=\"theme === 'light' ? 'rgb(var(--black))' : 'rgb(var(--white))'\" \n\t\t\t/>\n\t\t\t<!-- <div class=\"w-max p-small pos-absolute pos-t-100 pos-r-0\">Product Added to Shopcart</div> -->\n\t\t</Button>\n\t\t\n\t\t<Button \n\t\t\taria-label=\"profile\"\n\t\t\tclass=\"pd-zero bg-transp\"\n\t\t\t:submit=\"\n\t\t\t\tauth.state.access.status === false \n\t\t\t\t? \n\t\t\t\ta => router.push({name: 'Sign In'}) \n\t\t\t\t: \n\t\t\t\ta => router.push({ name: 'User Profile', params: { _id: auth.state.user._id }})\n\t\t\t\"\n\t\t\t:showSucces=\"false\"\n\t\t\t:showLoader=\"false\"\n\t\t>\n\t\t\t<IconProfile \n\t\t\t\tclass=\"i-semi\"\n\t\t\t\t:fill=\"theme === 'light' ? 'rgb(var(--black))' : 'rgb(var(--white))'\" \n\t\t\t/>\n\t\t</Button>\n\n\n\t\t<Select \n\t\t\tv-model:select=\"$i18n.locale\"\n\t\t :options=\"[{name: '🌎 En', value: 'en'}, {name: '🇷🇺 Ru', value: 'ru'}]\"\n\t\t :property=\"'value'\"\n class=\"pos-relative uppercase pd-micro t-semi radius-thin\"\n :class=\"{\n \t\t'bg-light t-black': theme === 'light',\n \t\t'bg-dark t-white': theme === 'dark' \n \t}\"\n />\n </div>\n</template>\n\n<style lang=\"scss\">\n.location-button { \n\t&:hover {\n\t\tbox-shadow: inset 0 0 0 2px rgb(var(--main));\n\t}\n}\n\n.menu-btn {\n display: block;\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n position: relative;\n}\n.menu-btn span,\n.menu-btn__before,\n.menu-btn__after {\n position: absolute;\n top: 50%;\n margin-top: -1px;\n left: 50%;\n margin-left: -10px;\n width: 20px;\n height: 2px;\n}\n.menu-btn__before,\n.menu-btn__after {\n display: block;\n transition: 0.2s;\n}\n.menu-btn__before {\n transform: translateY(-5px);\n}\n.menu-btn__after {\n transform: translateY(5px);\n}\n.menu-btn_active .menu-btn__before {\n transform: rotate(-35deg);\n width: 10px;\n transform-origin: left bottom;\n}\n.menu-btn_active .menu-btn__after {\n transform: rotate(35deg);\n width: 10px;\n transform-origin: left top;\n}\n\n.menu-btn_active span:before {\n transform: rotate(-35deg);\n width: 10px;\n transform-origin: left bottom;\n}\n.menu-btn_active span:after {\n transform: rotate(35deg);\n width: 10px;\n transform-origin: left top;\n}\n\n.menu-block {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.menu-nav {\n background-color: #fff;\n height: 50px;\n \n}\n.menu-nav__link {\n display: inline-block;\n text-decoration: none;\n color: #fff;\n margin-right: 20px;\n}\n.menu-nav__link {\n transition: 0.5s;\n transform-origin: right center;\n transform: translateX(50%);\n opacity: 0;\n}\n.menu-nav__link_active {\n transform: translateX(0%);\n opacity: 1;\n}\n\n</style>"],"names":["useRouter","useRoute","useI18n","globals.state","onMounted","shopcart.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCC,UAAM,SAASA,UAAAA,UAAW;AACZC,uBAAU;AAEVC,oBAAS;AAGvB,aAAS,oBAAoB;AAC3BC,cAAa,MAAC,sBAAsB;AAAA,IACrC;AAIDC,QAAAA,UAAU,MAAM;AACbC,eAAAA,QAAiB,YAAa;AAAA,IAClC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { onMounted, openBlock, createElementBlock,
|
1
|
+
import { onMounted, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, createBlock, resolveDynamicComponent, unref, createCommentVNode, createTextVNode, toDisplayString, renderSlot, createVNode, withCtx } from "vue";
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
3
3
|
import { useI18n } from "vue-i18n";
|
4
4
|
import { state, actions as actions$1 } from "../../store/globals.js";
|
@@ -6,12 +6,13 @@ import { actions, getters } from "../../../../orders/store/shopcart.js";
|
|
6
6
|
import { state as state$1 } from "../../../../auth/views/store/auth.js";
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$2 from "../../../../../components/Button/Button.vue2.js";
|
9
|
-
import Select from "../../../../../components/Select/Select.
|
9
|
+
import Select from "../../../../../components/Select/Select.vue.js";
|
10
10
|
import _sfc_main$1 from "../../../../../components/Checkbox/Checkbox.vue.js";
|
11
11
|
import _sfc_main$3 from "../../../../icons/entities/IconShopcart.vue.js";
|
12
12
|
import _sfc_main$4 from "../../../../icons/entities/IconProfile.vue.js";
|
13
13
|
/* empty css */
|
14
|
-
const _hoisted_1 = {
|
14
|
+
const _hoisted_1 = { class: "flex-nowrap flex-v-center flex-justify-start flex gap-micro w-min-20 w-max-20r" };
|
15
|
+
const _hoisted_2 = {
|
15
16
|
class: "i-small",
|
16
17
|
fill: "inherit",
|
17
18
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -19,13 +20,15 @@ const _hoisted_1 = {
|
|
19
20
|
height: "67",
|
20
21
|
viewBox: "0 0 50 67"
|
21
22
|
};
|
22
|
-
const
|
23
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("path", {
|
23
24
|
d: "M25 0C11.207 0 0 11.207 0 25C0 38.793 20.832 66.668 25 66.668C29.168 66.668 50 38.793 50 25C50 11.207 38.793 0 25 0ZM25 33.332C20.418 33.332 16.668 29.582 16.668 25C16.668 20.418 20.418 16.668 25 16.668C29.582 16.668 33.332 20.418 33.332 25C33.332 29.582 29.582 33.332 25 33.332Z",
|
24
25
|
fill: "inherit"
|
25
26
|
}, null, -1);
|
26
|
-
const
|
27
|
-
|
27
|
+
const _hoisted_4 = [
|
28
|
+
_hoisted_3
|
28
29
|
];
|
30
|
+
const _hoisted_5 = { class: "flex-nowrap flex" };
|
31
|
+
const _hoisted_6 = { class: "flex-justify-end flex-v-center flex-nowrap flex gap-micro w-min-20 w-max-20r" };
|
29
32
|
const _sfc_main = {
|
30
33
|
__name: "Header",
|
31
34
|
props: {
|
@@ -35,10 +38,13 @@ const _sfc_main = {
|
|
35
38
|
},
|
36
39
|
logotype: {
|
37
40
|
type: Object
|
41
|
+
},
|
42
|
+
location: {
|
43
|
+
type: Boolean,
|
44
|
+
default: true
|
38
45
|
}
|
39
46
|
},
|
40
47
|
setup(__props) {
|
41
|
-
const props = __props;
|
42
48
|
const router = useRouter();
|
43
49
|
useRoute();
|
44
50
|
useI18n();
|
@@ -50,105 +56,106 @@ const _sfc_main = {
|
|
50
56
|
});
|
51
57
|
return (_ctx, _cache) => {
|
52
58
|
var _a;
|
53
|
-
return openBlock(), createElementBlock(
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
createElementVNode("button", {
|
61
|
-
"aria-label": "menu",
|
62
|
-
onClick: _cache[0] || (_cache[0] = () => state.isOpenSidebar = !state.isOpenSidebar),
|
63
|
-
class: normalizeClass(["mobile-only menu-btn", {
|
64
|
-
"menu-btn_active": state.isOpenSidebar
|
65
|
-
}])
|
66
|
-
}, [
|
67
|
-
createElementVNode("span", {
|
68
|
-
class: normalizeClass(["no-events", {
|
69
|
-
"bg-black": __props.theme === "light",
|
70
|
-
"bg-white": __props.theme === "dark"
|
59
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
60
|
+
createElementVNode("div", _hoisted_1, [
|
61
|
+
createElementVNode("button", {
|
62
|
+
"aria-label": "menu",
|
63
|
+
onClick: _cache[0] || (_cache[0] = () => state.isOpenSidebar = !state.isOpenSidebar),
|
64
|
+
class: normalizeClass(["mobile-only menu-btn", {
|
65
|
+
"menu-btn_active": state.isOpenSidebar
|
71
66
|
}])
|
72
67
|
}, [
|
73
68
|
createElementVNode("span", {
|
74
|
-
class: normalizeClass(["
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
},
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
}]),
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
69
|
+
class: normalizeClass(["no-events", {
|
70
|
+
"bg-black": __props.theme === "light",
|
71
|
+
"bg-white": __props.theme === "dark"
|
72
|
+
}])
|
73
|
+
}, [
|
74
|
+
createElementVNode("span", {
|
75
|
+
class: normalizeClass(["menu-btn__before", { "bg-black": __props.theme === "light", "bg-white": __props.theme === "dark" }])
|
76
|
+
}, null, 2),
|
77
|
+
createElementVNode("span", {
|
78
|
+
class: normalizeClass(["menu-btn__after", { "bg-black": __props.theme === "light", "bg-white": __props.theme === "dark" }])
|
79
|
+
}, null, 2)
|
80
|
+
], 2)
|
81
|
+
], 2),
|
82
|
+
__props.logotype.component ? (openBlock(), createBlock(resolveDynamicComponent(__props.logotype.component), {
|
83
|
+
key: 0,
|
84
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(router).push({ path: "/" })),
|
85
|
+
theme: __props.theme,
|
86
|
+
class: normalizeClass(__props.logotype.class)
|
87
|
+
}, null, 8, ["theme", "class"])) : createCommentVNode("", true),
|
88
|
+
__props.location ? (openBlock(), createElementBlock("button", {
|
89
|
+
key: 1,
|
90
|
+
"aria-label": "button_location",
|
91
|
+
class: normalizeClass(["cursor-pointer bg-transp pd-l-micro pd-r-micro radius-extra uppercase t-semi br-solid br-2px transition-linear", {
|
92
|
+
"fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white": __props.theme === "light",
|
93
|
+
"fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black": __props.theme === "dark"
|
94
|
+
}]),
|
95
|
+
onClick: _cache[2] || (_cache[2] = ($event) => openLocationPopup())
|
96
|
+
}, [
|
97
|
+
(openBlock(), createElementBlock("svg", _hoisted_2, _hoisted_4)),
|
98
|
+
createTextVNode(" " + toDisplayString(((_a = state.position) == null ? void 0 : _a.country) ? state.position.country : "World"), 1)
|
99
|
+
], 2)) : createCommentVNode("", true)
|
100
|
+
]),
|
101
|
+
createElementVNode("div", _hoisted_5, [
|
102
|
+
renderSlot(_ctx.$slots, "default"),
|
103
|
+
createVNode(_sfc_main$1, {
|
104
|
+
name: "darkmode",
|
105
|
+
label: "Darkmode",
|
106
|
+
radio: state.theme.darkmode,
|
107
|
+
"onUpdate:radio": _cache[3] || (_cache[3] = (event) => actions$1.toggleTheme()),
|
108
|
+
class: normalizeClass(["mn-l-thin desktop-only t-semi pd-micro br-2px br-solid radius-extra", {
|
109
|
+
"br-light t-black": __props.theme === "light",
|
110
|
+
"br-dark t-white": __props.theme === "dark"
|
111
|
+
}]),
|
112
|
+
theme: __props.theme
|
113
|
+
}, null, 8, ["radio", "theme", "class"])
|
114
|
+
]),
|
115
|
+
createElementVNode("div", _hoisted_6, [
|
116
|
+
createVNode(_sfc_main$2, {
|
117
|
+
"aria-label": "shopcart",
|
118
|
+
submit: (a) => actions.toggleShopcart(),
|
119
|
+
counter: getters.cartTotalAmount,
|
120
|
+
showSucces: false,
|
121
|
+
showLoader: false,
|
122
|
+
class: "pd-zero mn-r-micro"
|
123
|
+
}, {
|
124
|
+
default: withCtx(() => [
|
125
|
+
createVNode(_sfc_main$3, {
|
126
|
+
class: "i-semi",
|
127
|
+
fill: __props.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
|
128
|
+
}, null, 8, ["fill"])
|
129
|
+
]),
|
130
|
+
_: 1
|
131
|
+
}, 8, ["submit", "counter"]),
|
132
|
+
createVNode(_sfc_main$2, {
|
133
|
+
"aria-label": "profile",
|
134
|
+
class: "pd-zero bg-transp",
|
135
|
+
submit: state$1.access.status === false ? (a) => unref(router).push({ name: "Sign In" }) : (a) => unref(router).push({ name: "User Profile", params: { _id: state$1.user._id } }),
|
136
|
+
showSucces: false,
|
137
|
+
showLoader: false
|
138
|
+
}, {
|
139
|
+
default: withCtx(() => [
|
140
|
+
createVNode(_sfc_main$4, {
|
141
|
+
class: "i-semi",
|
142
|
+
fill: __props.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
|
143
|
+
}, null, 8, ["fill"])
|
144
|
+
]),
|
145
|
+
_: 1
|
146
|
+
}, 8, ["submit"]),
|
147
|
+
createVNode(Select, {
|
148
|
+
select: _ctx.$i18n.locale,
|
149
|
+
"onUpdate:select": _cache[4] || (_cache[4] = ($event) => _ctx.$i18n.locale = $event),
|
150
|
+
options: [{ name: "🌎 En", value: "en" }, { name: "🇷🇺 Ru", value: "ru" }],
|
151
|
+
property: "value",
|
152
|
+
class: normalizeClass(["pos-relative uppercase pd-micro t-semi radius-thin", {
|
153
|
+
"bg-light t-black": __props.theme === "light",
|
154
|
+
"bg-dark t-white": __props.theme === "dark"
|
155
|
+
}])
|
156
|
+
}, null, 8, ["select", "class"])
|
157
|
+
])
|
158
|
+
], 64);
|
152
159
|
};
|
153
160
|
}
|
154
161
|
};
|