@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.
Files changed (164) hide show
  1. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +24 -15
  2. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
  3. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +24 -15
  4. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
  5. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +51 -1
  6. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs.map +1 -0
  7. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +37 -22
  8. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js.map +1 -0
  9. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +8 -6
  10. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs.map +1 -1
  11. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +8 -6
  12. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js.map +1 -1
  13. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +6 -5
  14. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs.map +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +6 -5
  16. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
  17. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +6 -5
  18. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +6 -5
  20. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +4 -3
  22. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs.map +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +4 -3
  24. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
  25. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  27. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
  29. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  31. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  33. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  37. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  39. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  41. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  43. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  45. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  47. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
  48. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  49. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +4 -1
  50. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
  51. package/dist/prometheus-framework/src/modules/globals/globals.client.js +4 -1
  52. package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
  53. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +29 -29
  54. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  55. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +30 -30
  56. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  57. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +109 -102
  58. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
  59. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +110 -103
  60. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js.map +1 -1
  61. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs +85 -0
  62. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map +1 -0
  63. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js +85 -0
  64. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js.map +1 -0
  65. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
  70. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +3 -3
  72. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs.map +1 -1
  73. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +3 -3
  74. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
  75. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
  84. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  85. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
  86. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  87. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +4 -5
  88. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  89. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -5
  90. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  91. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
  94. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  95. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +90 -96
  96. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs.map +1 -1
  97. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +91 -97
  98. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js.map +1 -1
  99. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
  104. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  105. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
  114. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  115. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  117. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +72 -25
  118. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  119. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +81 -34
  120. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
  121. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  123. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
  125. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
  127. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +7 -2
  128. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs.map +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +7 -2
  130. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
  131. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
  132. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  133. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  135. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  137. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
  138. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
  139. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  141. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  143. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
  144. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  145. package/dist/prometheus-framework.cjs.js +14 -14
  146. package/dist/prometheus-framework.es.js +2830 -2823
  147. package/dist/style.css +89 -21
  148. package/package.json +1 -1
  149. package/src/components/Feed/Feed.vue +23 -10
  150. package/src/components/Tab/Tab.vue +10 -7
  151. package/src/modules/auth/views/components/pages/ResetPassword.vue +5 -4
  152. package/src/modules/auth/views/components/pages/SignIn.vue +5 -3
  153. package/src/modules/auth/views/components/pages/SignUp.vue +3 -2
  154. package/src/modules/globals/globals.client.js +5 -2
  155. package/src/modules/globals/views/components/layouts/Client.vue +100 -21
  156. package/src/modules/globals/views/components/partials/Header.vue +18 -29
  157. package/src/modules/globals/views/components/partials/Sidebar.vue +0 -2
  158. package/src/modules/marketplace/components/layouts/Marketplace.vue +16 -9
  159. package/src/modules/orders/components/partials/ShopCart.vue +3 -3
  160. package/src/modules/organizations/components/pages/Organization.vue +9 -6
  161. package/src/modules/organizations/components/sections/DetailsTab.vue +132 -133
  162. package/src/modules/products/components/pages/Products.vue +89 -10
  163. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  164. package/src/modules/products/components/sections/SectionProduct.vue +4 -0
@@ -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.vue2.cjs");
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 _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", {
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 _hoisted_3 = [
29
- _hoisted_2
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("header", {
56
- id: "header",
57
- class: vue.normalizeClass(["pd-thin gap-micro flex-center flex-nowrap flex h-4r w-100 z-index-2", {
58
- "t-black bg-white": __props.theme === "light",
59
- "t-white bg-black": __props.theme === "dark"
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(["menu-btn__before", { "bg-black": __props.theme === "light", "bg-white": __props.theme === "dark" }])
77
- }, null, 2),
78
- vue.createElementVNode("span", {
79
- class: vue.normalizeClass(["menu-btn__after", { "bg-black": __props.theme === "light", "bg-white": __props.theme === "dark" }])
80
- }, null, 2)
81
- ], 2)
82
- ], 2),
83
- props.logotype ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(props.logotype), {
84
- key: 0,
85
- onClick: _cache[1] || (_cache[1] = ($event) => vue.unref(router).push({ path: "/" })),
86
- theme: __props.theme,
87
- class: "h-2r w-auto cursor-pointer"
88
- }, null, 8, ["theme"])) : vue.createCommentVNode("", true),
89
- vue.createElementVNode("button", {
90
- "aria-label": "button_location",
91
- class: vue.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
- (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_3)),
98
- vue.createTextVNode(" " + vue.toDisplayString(((_a = globals.state.position) == null ? void 0 : _a.country) ? globals.state.position.country : "World"), 1)
99
- ], 2),
100
- vue.renderSlot(_ctx.$slots, "default"),
101
- vue.createVNode(Checkbox.default, {
102
- name: "darkmode",
103
- label: "Darkmode",
104
- radio: globals.state.theme.darkmode,
105
- "onUpdate:radio": _cache[3] || (_cache[3] = (event) => globals.actions.toggleTheme()),
106
- class: vue.normalizeClass(["mn-l-thin mn-r-auto desktop-only t-semi pd-micro br-2px br-solid radius-extra", {
107
- "br-light t-black": __props.theme === "light",
108
- "br-dark t-white": __props.theme === "dark"
109
- }]),
110
- theme: __props.theme
111
- }, null, 8, ["radio", "theme", "class"]),
112
- vue.createVNode(Button.default, {
113
- "aria-label": "shopcart",
114
- submit: (a) => shopcart.actions.toggleShopcart(),
115
- counter: shopcart.getters.cartTotalAmount,
116
- showSucces: false,
117
- showLoader: false,
118
- class: "pd-zero mn-l-auto mn-r-micro"
119
- }, {
120
- default: vue.withCtx(() => [
121
- vue.createVNode(IconShopcart.default, {
122
- class: "i-semi",
123
- fill: __props.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
124
- }, null, 8, ["fill"])
125
- ]),
126
- _: 1
127
- }, 8, ["submit", "counter"]),
128
- vue.createVNode(Button.default, {
129
- "aria-label": "profile",
130
- class: "pd-zero bg-transp",
131
- 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 } }),
132
- showSucces: false,
133
- showLoader: false
134
- }, {
135
- default: vue.withCtx(() => [
136
- vue.createVNode(IconProfile.default, {
137
- class: "i-semi",
138
- fill: __props.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
139
- }, null, 8, ["fill"])
140
- ]),
141
- _: 1
142
- }, 8, ["submit"]),
143
- vue.createVNode(Select.default, {
144
- select: _ctx.$i18n.locale,
145
- "onUpdate:select": _cache[4] || (_cache[4] = ($event) => _ctx.$i18n.locale = $event),
146
- options: [{ name: "🌎 En", value: "en" }, { name: "🇷🇺 Ru", value: "ru" }],
147
- property: "value",
148
- class: vue.normalizeClass(["pos-relative uppercase pd-micro t-semi radius-thin", {
149
- "bg-light t-black": __props.theme === "light",
150
- "bg-dark t-white": __props.theme === "dark"
151
- }])
152
- }, null, 8, ["select", "class"])
153
- ], 2);
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
  };
@@ -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<header \n\t\tid=\"header\" \n\t\tclass=\"\n\t\t\tpd-thin \n\t\t\tgap-micro\n\t\t\tflex-center\n\t\t\tflex-nowrap\n\t\t\tflex\n\t\t\th-4r\n\t\t\tw-100\n\t\t\tz-index-2 \n\t\t\"\n\t\t:class=\"{\n \t\t't-black bg-white': theme === 'light',\n \t\t't-white bg-black': theme === 'dark' \n \t}\"\n\t>\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=\"props.logotype\"\n\t\t :is=\"props.logotype\"\n\t\t @click=\"router.push({ path: '/' })\" \n\t\t :theme=\"theme\"\n\t\t class=\"\n\t\t h-2r\n\t\t w-auto\n\t\t cursor-pointer\n\t\t \"\n\t\t/>\n\n\t\t<button\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\n\t\t<!-- NAGIVATION -->\n\t\t<slot></slot>\n\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 mn-r-auto 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\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-l-auto 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: '🌎&nbsp;En', value: 'en'}, {name: '🇷🇺&nbsp;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\t</header>\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBC,UAAM,QAAQ;AAUd,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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: '🌎&nbsp;En', value: 'en'}, {name: '🇷🇺&nbsp;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { onMounted, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, resolveDynamicComponent, unref, createCommentVNode, createTextVNode, toDisplayString, renderSlot, createVNode, withCtx } from "vue";
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.vue2.js";
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 _hoisted_2 = /* @__PURE__ */ createElementVNode("path", {
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 _hoisted_3 = [
27
- _hoisted_2
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("header", {
54
- id: "header",
55
- class: normalizeClass(["pd-thin gap-micro flex-center flex-nowrap flex h-4r w-100 z-index-2", {
56
- "t-black bg-white": __props.theme === "light",
57
- "t-white bg-black": __props.theme === "dark"
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(["menu-btn__before", { "bg-black": __props.theme === "light", "bg-white": __props.theme === "dark" }])
75
- }, null, 2),
76
- createElementVNode("span", {
77
- class: normalizeClass(["menu-btn__after", { "bg-black": __props.theme === "light", "bg-white": __props.theme === "dark" }])
78
- }, null, 2)
79
- ], 2)
80
- ], 2),
81
- props.logotype ? (openBlock(), createBlock(resolveDynamicComponent(props.logotype), {
82
- key: 0,
83
- onClick: _cache[1] || (_cache[1] = ($event) => unref(router).push({ path: "/" })),
84
- theme: __props.theme,
85
- class: "h-2r w-auto cursor-pointer"
86
- }, null, 8, ["theme"])) : createCommentVNode("", true),
87
- createElementVNode("button", {
88
- "aria-label": "button_location",
89
- class: normalizeClass(["cursor-pointer bg-transp pd-l-micro pd-r-micro radius-extra uppercase t-semi br-solid br-2px transition-linear", {
90
- "fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white": __props.theme === "light",
91
- "fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black": __props.theme === "dark"
92
- }]),
93
- onClick: _cache[2] || (_cache[2] = ($event) => openLocationPopup())
94
- }, [
95
- (openBlock(), createElementBlock("svg", _hoisted_1, _hoisted_3)),
96
- createTextVNode(" " + toDisplayString(((_a = state.position) == null ? void 0 : _a.country) ? state.position.country : "World"), 1)
97
- ], 2),
98
- renderSlot(_ctx.$slots, "default"),
99
- createVNode(_sfc_main$1, {
100
- name: "darkmode",
101
- label: "Darkmode",
102
- radio: state.theme.darkmode,
103
- "onUpdate:radio": _cache[3] || (_cache[3] = (event) => actions$1.toggleTheme()),
104
- class: normalizeClass(["mn-l-thin mn-r-auto desktop-only t-semi pd-micro br-2px br-solid radius-extra", {
105
- "br-light t-black": __props.theme === "light",
106
- "br-dark t-white": __props.theme === "dark"
107
- }]),
108
- theme: __props.theme
109
- }, null, 8, ["radio", "theme", "class"]),
110
- createVNode(_sfc_main$2, {
111
- "aria-label": "shopcart",
112
- submit: (a) => actions.toggleShopcart(),
113
- counter: getters.cartTotalAmount,
114
- showSucces: false,
115
- showLoader: false,
116
- class: "pd-zero mn-l-auto mn-r-micro"
117
- }, {
118
- default: withCtx(() => [
119
- createVNode(_sfc_main$3, {
120
- class: "i-semi",
121
- fill: __props.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
122
- }, null, 8, ["fill"])
123
- ]),
124
- _: 1
125
- }, 8, ["submit", "counter"]),
126
- createVNode(_sfc_main$2, {
127
- "aria-label": "profile",
128
- class: "pd-zero bg-transp",
129
- 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 } }),
130
- showSucces: false,
131
- showLoader: false
132
- }, {
133
- default: withCtx(() => [
134
- createVNode(_sfc_main$4, {
135
- class: "i-semi",
136
- fill: __props.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
137
- }, null, 8, ["fill"])
138
- ]),
139
- _: 1
140
- }, 8, ["submit"]),
141
- createVNode(Select, {
142
- select: _ctx.$i18n.locale,
143
- "onUpdate:select": _cache[4] || (_cache[4] = ($event) => _ctx.$i18n.locale = $event),
144
- options: [{ name: "🌎 En", value: "en" }, { name: "🇷🇺 Ru", value: "ru" }],
145
- property: "value",
146
- class: normalizeClass(["pos-relative uppercase pd-micro t-semi radius-thin", {
147
- "bg-light t-black": __props.theme === "light",
148
- "bg-dark t-white": __props.theme === "dark"
149
- }])
150
- }, null, 8, ["select", "class"])
151
- ], 2);
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
  };