@ozdao/prometheus-framework 0.2.202 → 0.2.204

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +25 -16
  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 +25 -16
  4. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
  5. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  7. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +51 -1
  8. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs.map +1 -0
  9. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +37 -22
  10. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js.map +1 -0
  11. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +3 -3
  12. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +3 -3
  13. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +3 -3
  16. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +3 -3
  17. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +3 -3
  18. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +3 -3
  19. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +9 -8
  20. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs.map +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +9 -8
  22. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +9 -8
  24. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
  25. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +9 -8
  26. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +7 -6
  28. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs.map +1 -1
  29. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +7 -6
  30. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
  31. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  33. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  37. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  39. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +2 -2
  40. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  41. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +3 -3
  42. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  43. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +2 -2
  44. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
  45. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  47. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +2 -2
  50. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +2 -2
  51. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  53. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +3 -3
  54. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  55. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +3 -3
  56. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +3 -3
  57. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +5 -5
  60. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +5 -5
  61. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +4 -1
  62. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
  63. package/dist/prometheus-framework/src/modules/globals/globals.client.js +4 -1
  64. package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
  65. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
  68. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
  69. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +31 -34
  70. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  71. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +32 -35
  72. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  73. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +110 -103
  74. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
  75. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +111 -104
  76. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js.map +1 -1
  77. package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +2 -2
  78. package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.js +2 -2
  79. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs.map +1 -1
  81. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js.map +1 -1
  83. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs +85 -0
  84. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map +1 -0
  85. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js +85 -0
  86. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js.map +1 -0
  87. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +3 -3
  90. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  91. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +2 -2
  92. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
  93. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +5 -5
  94. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +5 -5
  95. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +3 -3
  98. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs.map +1 -1
  99. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +3 -3
  100. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
  101. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +3 -3
  102. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
  103. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +2 -2
  104. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +2 -2
  105. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +3 -3
  106. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +3 -3
  107. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +7 -7
  114. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +7 -7
  115. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +3 -3
  116. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +3 -3
  117. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +6 -7
  118. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +5 -6
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +5 -5
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
  125. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +91 -97
  128. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs.map +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +92 -98
  130. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js.map +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +3 -3
  132. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  133. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +3 -3
  134. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  135. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +6 -6
  136. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +6 -6
  137. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
  138. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
  139. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +2 -2
  140. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
  141. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
  142. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
  143. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +2 -2
  144. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  145. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  147. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  153. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +3 -3
  154. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
  155. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +3 -3
  156. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +3 -3
  157. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  159. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +4 -4
  160. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +4 -4
  161. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +73 -26
  162. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  163. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +82 -35
  164. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
  165. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  167. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +3 -3
  168. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  169. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
  171. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  172. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +8 -3
  174. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs.map +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +8 -3
  176. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
  177. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +3 -3
  178. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  179. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  181. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +2 -2
  182. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +2 -2
  183. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +2 -2
  184. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +2 -2
  185. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
  187. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +7 -7
  188. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +7 -7
  189. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +4 -4
  190. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +4 -4
  191. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  193. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +3 -3
  194. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  195. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  197. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
  199. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +2 -2
  200. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +2 -2
  201. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +5 -5
  202. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +5 -5
  203. package/dist/prometheus-framework.cjs.js +14 -14
  204. package/dist/prometheus-framework.es.js +2830 -2823
  205. package/dist/style.css +89 -21
  206. package/package.json +1 -1
  207. package/src/components/Feed/Feed.vue +23 -10
  208. package/src/components/Tab/Tab.vue +10 -7
  209. package/src/modules/auth/views/components/pages/ResetPassword.vue +5 -4
  210. package/src/modules/auth/views/components/pages/SignIn.vue +5 -3
  211. package/src/modules/auth/views/components/pages/SignUp.vue +3 -2
  212. package/src/modules/globals/globals.client.js +5 -2
  213. package/src/modules/globals/views/components/layouts/Client.vue +101 -21
  214. package/src/modules/globals/views/components/partials/Header.vue +18 -29
  215. package/src/modules/globals/views/components/partials/NavigationBar.vue +1 -18
  216. package/src/modules/globals/views/components/partials/Sidebar.vue +0 -2
  217. package/src/modules/marketplace/components/layouts/Marketplace.vue +16 -9
  218. package/src/modules/orders/components/partials/ShopCart.vue +3 -3
  219. package/src/modules/organizations/components/pages/Organization.vue +9 -6
  220. package/src/modules/organizations/components/sections/DetailsTab.vue +132 -133
  221. package/src/modules/products/components/pages/Products.vue +89 -10
  222. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  223. package/src/modules/products/components/sections/SectionProduct.vue +4 -0
@@ -4,13 +4,14 @@ const vue = require("vue");
4
4
  const vueRouter = require("vue-router");
5
5
  const globals = require("../../store/globals.cjs");
6
6
  const Status = require("../../../../../components/Status/Status.vue.cjs");
7
- const Popup = require("../../../../../components/Popup/Popup.vue.cjs");
7
+ const Popup = require("../../../../../components/Popup/Popup.vue2.cjs");
8
8
  require("vue-i18n");
9
9
  ;/* empty css */
10
+ const Loader = require("../../../../../components/Loader/Loader.vue2.cjs");
11
+ const NavigationBar = require("../partials/NavigationBar.vue.cjs");
10
12
  const LocationSelection = require("../partials/LocationSelection.vue.cjs");
11
13
  require("../../../../products/store/categories.cjs");
12
14
  const BottomNavigation = ;/* empty css */
13
- const NavigationBar = require("../partials/NavigationBar.vue.cjs");
14
15
  const ShopCart = require("../../../../orders/components/partials/ShopCart.vue.cjs");
15
16
  ;/* empty css */
16
17
  const _hoisted_1 = {
@@ -20,10 +21,6 @@ const _hoisted_1 = {
20
21
  const _sfc_main = {
21
22
  __name: "Client",
22
23
  setup(__props) {
23
- const Loader = vue.defineAsyncComponent(() => Promise.resolve().then(() => require(
24
- /* webpackChunkName: "loader" */
25
- "../../../../../components/Loader/Loader.vue2.cjs"
26
- )));
27
24
  let show = vue.ref(false);
28
25
  const page = vue.ref(null);
29
26
  const route = vueRouter.useRoute();
@@ -96,38 +93,38 @@ const _sfc_main = {
96
93
  appear: ""
97
94
  }, {
98
95
  default: vue.withCtx(() => [
99
- !page.value ? (vue.openBlock(), vue.createBlock(vue.unref(Loader), {
96
+ !page.value ? (vue.openBlock(), vue.createBlock(Loader.default, {
100
97
  key: 0,
101
98
  class: "pos-fixed"
102
99
  })) : vue.createCommentVNode("", true)
103
100
  ]),
104
101
  _: 1
105
102
  }),
106
- vue.createVNode(vue.Transition, {
107
- name: "moveFromTop",
108
- mode: "out-in",
109
- appear: ""
110
- }, {
111
- default: vue.withCtx(() => [
112
- !_ctx.MOBILE_APP ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(route).meta.header), {
113
- key: 0,
114
- ref_key: "header",
115
- ref: header,
116
- class: "transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0",
117
- theme: headerTheme.value,
118
- logotype: vue.unref(route).meta.logotype
119
- }, {
120
- default: vue.withCtx(() => [
121
- vue.unref(route).meta.navigation ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(route).meta.navigation), {
122
- key: 0,
123
- class: "mn-l-auto desktop-only"
124
- })) : vue.createCommentVNode("", true)
125
- ]),
126
- _: 1
127
- }, 8, ["theme", "logotype"])) : vue.createCommentVNode("", true)
128
- ]),
129
- _: 1
130
- }),
103
+ vue.unref(route).meta.header.component ? (vue.openBlock(), vue.createElementBlock("header", {
104
+ key: 0,
105
+ id: "header",
106
+ class: vue.normalizeClass(["pd-thin gap-micro flex-justify-between flex-nowrap flex h-4r w-100 z-index-2 pos-relative pos-t-0", {
107
+ "t-black bg-white": headerTheme.value === "light",
108
+ "t-white bg-black": headerTheme.value === "dark"
109
+ }])
110
+ }, [
111
+ !_ctx.MOBILE_APP ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(route).meta.header.component), {
112
+ key: 0,
113
+ ref_key: "header",
114
+ ref: header,
115
+ theme: headerTheme.value,
116
+ logotype: vue.unref(route).meta.header.logotype,
117
+ location: vue.unref(route).meta.header.location
118
+ }, {
119
+ default: vue.withCtx(() => [
120
+ vue.unref(route).meta.navigation ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(route).meta.navigation), {
121
+ key: 0,
122
+ class: "mn-l-auto desktop-only"
123
+ })) : vue.createCommentVNode("", true)
124
+ ]),
125
+ _: 1
126
+ }, 8, ["theme", "logotype", "location"])) : vue.createCommentVNode("", true)
127
+ ], 2)) : vue.createCommentVNode("", true),
131
128
  vue.createVNode(vue.Transition, {
132
129
  name: "moveFromTop",
133
130
  mode: "out-in",
@@ -172,7 +169,7 @@ const _sfc_main = {
172
169
  }, null, 8, ["data"])) : vue.createCommentVNode("", true),
173
170
  vue.createVNode(vue.Transition, {
174
171
  onBeforeEnter: scrollTop,
175
- name: "scaleIn",
172
+ name: "scaleTransition",
176
173
  mode: "out-in",
177
174
  appear: ""
178
175
  }, {
@@ -193,7 +190,7 @@ const _sfc_main = {
193
190
  }))
194
191
  ], 544),
195
192
  _ctx.MOBILE_APP && vue.unref(route).meta.title_hide ? (vue.openBlock(), vue.createBlock(BottomNavigation.default, {
196
- key: 0,
193
+ key: 1,
197
194
  class: "pd-small z-index-2"
198
195
  })) : vue.createCommentVNode("", true)
199
196
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"Client.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/layouts/Client.vue"],"sourcesContent":["<template>\n\t<div id=\"app-wrapper\" class=\"pos-relative\">\n\t\t<transition name=\"moveFromTop\" appear>\n\t\t\t<Loader v-if=\"!page\" class=\"pos-fixed\"/>\n\t\t</transition>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n <component\n\t\t \tv-if=\"!MOBILE_APP\"\n :is=\"route.meta.header\"\n ref=\"header\" \n class=\"transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0\" \n :theme=\"headerTheme\"\n :logotype=\"route.meta.logotype\"\n >\n <component\n v-if=\"route.meta.navigation\"\n :is=\"route.meta.navigation\"\n class=\"mn-l-auto desktop-only\"\n />\n </component>\n </transition>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n\t\t\t<NavigationBar\n\t\t \tv-if=\"MOBILE_APP\"\n\t\t \t:logotype=\"route.meta.logotype\"\n\t\t\t\t:style=\"MOBILE_APP === 'ios' ?'padding-top: 6rem;':''\" \n\t\t />\n\t\t</transition>\n\n\t <Popup \n\t \t@close-popup=\"closeLocationPopup\" \n\t \t:isPopupOpen=\"globals.state.isOpenLocationPopup\"\n\t \tclass=\"bg-white pd-semi w-m-33r radius-big\"\n\t >\t\n\t \t<LocationSelection />\n\t </Popup>\n\n\t\t<section \n\t\t\tid=\"screen\" \n\t\t\tref=\"screen\"\n\t\t\t@scroll=\"handleScroll\"\n\t\t\tclass=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll\"\n\t\t>\n\t\t\t<ShopCart />\n\n\t\t\t<!-- <section v-if=\"!route.meta?.breadcrumbs?.hide\" class=\"pd-thin pd-b-zero\">\n\t\t\t\t<Breadcrumbs \n\t\t\t\t\tv-if=\"!MOBILE_APP\"\n\t\t\t\t\tclass=\"bg-light pd-small radius-big\"\n\t\t\t\t/>\n\t\t\t</section> -->\n\n\t\t\t<Suspense>\n\t\t\t\t<router-view \n\t\t\t\t\tv-slot=\"{ Component, route }\" \n\t\t\t\t\t:class=\"{'mn-b-extra': MOBILE_APP}\"\n\t\t\t\t>\n\t\t\t\t\t<Status \n\t\t\t\t\t\tv-if=\"globals.state.error.show\" \n\t\t\t\t\t\t:data=\"globals.state.error\"\n\t\t\t\t\t\tclass=\"z-index-7\" \n\t\t\t\t\t/>\n\n\n\t\t\t\t\t<transition @before-enter=\"scrollTop\" name=\"scaleIn\" mode=\"out-in\" appear>\n\t\t \t<component \n\t\t \t\tref=\"page\" \n\t\t \t\t:is=\"Component\" \n\t\t \t\t:key=\"route.path\"\n\t\t \t/>\n\t\t </transition>\n\n\t\t <!-- <Footer /> -->\n\t\t\t\t</router-view>\n\t\t\t</Suspense>\n \n\t\t</section>\n\n <BottomNavigation \n v-if=\"MOBILE_APP && route.meta.title_hide\"\n class=\"pd-small z-index-2\"\n />\n\t</div>\n</template>\n\n\n\n<script setup>\n\timport { computed, ref, onMounted, provide, inject, onUnmounted, onServerPrefetch, onBeforeMount, defineAsyncComponent } from 'vue'\n\t// Router\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Store\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\t// Partials\n\timport Status from '@pf/src/components/Status/Status.vue'\n\n\timport Popup from '@pf/src/components/Popup/Popup.vue'\n\timport Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\tconst Loader = defineAsyncComponent(() => import(/* webpackChunkName: \"loader\" */ '@pf/src/components/Loader/Loader.vue'))\n\n\n\timport LocationSelection from '@pf/src/modules/globals/views/components/partials/LocationSelection.vue'\n\timport Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'\n\timport BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue'\n\timport NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue'\n\n\timport ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue'\n\t/////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n\t/////////////////////////////\n\t// CREATED\n\t/////////////////////////////\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// Ref Code\n\tconst referalCode = ref(route.query.referalCode);\n\t/////////////////////////////\n\t// Methods\n\t/////////////////////////////\n\tfunction closeLocationPopup() {\n\t globals.state.isOpenLocationPopup = false;\n\t}\n\tfunction scrollTop(){\n\t\tdocument.getElementById('app').scrollIntoView();\n\t}\n\t// Scrolling header\n\tconst scrollOffset = ref(0)\n\tlet isScrolled = false\n\tconst header = ref(null)\n\n\tconst headerTheme = computed(() => {\n\t\tif (scrollOffset.value > 50) {\n\t\t\treturn 'light'\n\t\t} else {\n\t\t\treturn route.meta.header_theme || 'light'\n\t\t}\n\t})\n\tconst handleScroll = () => {\n\t scrollOffset.value = event.target.scrollTop\n\n\t if (scrollOffset.value > 50 && !isScrolled) {\n\t isScrolled = true;\n\n\t header.value.$el.classList.add('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = -firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t // headerTheme.value - light\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t } else if (scrollOffset.value <= 75 && isScrolled) {\n\t isScrolled = false;\n\t header.value.$el.classList.remove('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t }\n\t};\n\t/////////////////////////////\n\t// MOUNTED\n\t/////////////////////////////\n\t// if (typeof window === 'undefined') {\n\t// show.value = true\n\t// } else {\n\t// \tshow.value = false\n\t// }\n\n\tonMounted(async () => {\n\t\t \n\t\tif ('serviceWorker' in navigator) {\n\t \twindow.addEventListener('load', () => {\n\t \tnavigator.serviceWorker.register('/service-worker.js').then(registration => {\n\t \tconsole.log('SW registered: ', registration);\n\t \t}).catch(registrationError => {\n\t \tconsole.log('SW registration failed: ', registrationError);\n\t \t});\n\t });\n\t \t}\n\t\t\n\t\tconst savedPosition = localStorage.getItem('position');\n\n\t if (savedPosition) {\n\t globals.state.position = JSON.parse(savedPosition);\n\t } else {\n \t\tglobals.state.isOpenLocationPopup = true;\n\t }\n\n\t\tif (referalCode.value) {\n\t\t localStorage.setItem('referalCode', referalCode.value);\n\t\t}\n\n\t\tif (page) show.value = true\n\t});\n</script>\n\n<style lang=\"scss\">;\t\n\t.scaleIn-enter-active,\n\t.scaleIn-leave-active {\n\t\ttransform: scale(1); \n\t\ttransition: all 0.5s ease; \n\t}\n\t.scaleIn-enter-from,\n\t.scaleIn-leave-to {\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease; \n\t}\n\n\t.moveFromTop-enter-active,\n\t.moveFromTop-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTop-enter-from,\n\t.moveFromTop-leave-to {\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\n\t.moveFromTopAbsolute-enter-active,\n\t.moveFromTopAbsolute-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTopAbsolute-enter-from,\n\t.moveFromTopAbsolute-leave-to {\n\t\tposition: absolute;\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\t.ScaleOut-enter-active,\n\t.ScaleOut-leave-active {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t\ttransition: all 0.3s ease; \n\t\t\n\t}\n\t.ScaleOut-enter-from,\n\t.ScaleOut-leave-to {\n\t\topacity: 0;\n\t\ttransform: scale(0.9);\n\t\ttransition: all 0.3s ease;\n\t}\n\t.slide-fade-enter-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-leave-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-enter-from,\n\t.slide-fade-leave-to {\n\t\tmin-height: 0;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n</style>"],"names":["defineAsyncComponent","ref","useRoute","useRouter","globals.state","computed","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAoGC,UAAM,SAASA,IAAoB,qBAAC,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAiC;AAAA,IAAsC,CAAA,CAAC;AAaxH,QAAI,OAAOC,IAAG,IAAC,KAAK;AAEpB,UAAM,OAAOA,IAAG,IAAC,IAAI;AAItB,UAAM,QAAQC,UAAAA,SAAU;AACTC,wBAAW;AAE1B,UAAM,cAAcF,IAAG,IAAC,MAAM,MAAM,WAAW;AAI/C,aAAS,qBAAqB;AAC5BG,cAAa,MAAC,sBAAsB;AAAA,IACrC;AACD,aAAS,YAAW;AACnB,eAAS,eAAe,KAAK,EAAE,eAAc;AAAA,IAC7C;AAED,UAAM,eAAeH,IAAG,IAAC,CAAC;AAC1B,QAAI,aAAa;AACjB,UAAM,SAASA,IAAG,IAAC,IAAI;AAEvB,UAAM,cAAcI,IAAAA,SAAS,MAAM;AAClC,UAAI,aAAa,QAAQ,IAAI;AAC5B,eAAO;AAAA,MACV,OAAS;AACN,eAAO,MAAM,KAAK,gBAAgB;AAAA,MAClC;AAAA,IACH,CAAE;AACD,UAAM,eAAe,MAAM;AACzB,mBAAa,QAAQ,MAAM,OAAO;AAElC,UAAI,aAAa,QAAQ,MAAM,CAAC,YAAY;AAC1C,qBAAa;AAEb,eAAO,MAAM,IAAI,UAAU,IAAI,UAAU;AAEzC,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,CAAC,UAAU;AAE1B,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAIvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL,WAAU,aAAa,SAAS,MAAM,YAAY;AACjD,qBAAa;AACb,eAAO,MAAM,IAAI,UAAU,OAAO,UAAU;AAE5C,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,UAAU;AAEzB,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAEvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL;AAAA,IACJ;AAUCC,QAAAA,UAAU,YAAY;AAErB,UAAI,mBAAmB,WAAW;AAC/B,eAAO,iBAAiB,QAAQ,MAAM;AACpC,oBAAU,cAAc,SAAS,oBAAoB,EAAE,KAAK,kBAAgB;AAC1E,oBAAQ,IAAI,mBAAmB,YAAY;AAAA,UACpD,CAAQ,EAAE,MAAM,uBAAqB;AAC5B,oBAAQ,IAAI,4BAA4B,iBAAiB;AAAA,UAClE,CAAQ;AAAA,QACR,CAAK;AAAA,MACD;AAEF,YAAM,gBAAgB,aAAa,QAAQ,UAAU;AAEpD,UAAI,eAAe;AACjBF,gBAAAA,MAAc,WAAW,KAAK,MAAM,aAAa;AAAA,MACtD,OAAU;AACNA,gBAAa,MAAC,sBAAsB;AAAA,MACpC;AAEF,UAAI,YAAY,OAAO;AACrB,qBAAa,QAAQ,eAAe,YAAY,KAAK;AAAA,MACtD;AAED,UAAI,KAAM,MAAK,QAAQ;AAAA,IACzB,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Client.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/layouts/Client.vue"],"sourcesContent":["<template>\n\t<div id=\"app-wrapper\" class=\"pos-relative\">\n\t\t<transition name=\"moveFromTop\" appear>\n\t\t\t<Loader v-if=\"!page\" class=\"pos-fixed\"/>\n\t\t</transition>\n\n\t\t<!-- <transition name=\"moveFromTop\" mode=\"out-in\" appear> -->\n\t\t\t<header \n\t\t\t\tid=\"header\" \n\t\t\t\tv-if=\"route.meta.header.component\"\n\t\t\t\tclass=\"\n\t\t\t\t\tpd-thin \n\t\t\t\t\tgap-micro\n\t\t\t\t\tflex-justify-between\n\t\t\t\t\tflex-nowrap\n\t\t\t\t\tflex\n\t\t\t\t\th-4r\n\t\t\t\t\tw-100\n\t\t\t\t\tz-index-2 \n\t\t\t\t\tpos-relative pos-t-0\n\t\t\t\t\"\n\t\t\t\t:class=\"{\n\t\t \t\t't-black bg-white': headerTheme === 'light',\n\t\t \t\t't-white bg-black': headerTheme === 'dark' \n\t\t \t}\"\n\t\t\t>\n\t <component\n\t\t\t \tv-if=\"!MOBILE_APP\"\n\t :is=\"route.meta.header.component\"\n\t ref=\"header\" \n\t :theme=\"headerTheme\"\n\t :logotype=\"route.meta.header.logotype\"\n\t :location=\"route.meta.header.location\"\n\t >\n\t <component\n\t v-if=\"route.meta.navigation\"\n\t :is=\"route.meta.navigation\"\n\t class=\"mn-l-auto desktop-only\"\n\t />\n\t </component>\n\t\t </header>\n <!-- </transition> -->\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n\t\t\t<NavigationBar\n\t\t \tv-if=\"MOBILE_APP\"\n\t\t \t:logotype=\"route.meta.logotype\"\n\t\t\t\t:style=\"MOBILE_APP === 'ios' ?'padding-top: 6rem;':''\" \n\t\t />\n\t\t</transition>\n\n\t <Popup \n\t \t@close-popup=\"closeLocationPopup\" \n\t \t:isPopupOpen=\"globals.state.isOpenLocationPopup\"\n\t \tclass=\"bg-white pd-semi w-m-33r radius-big\"\n\t >\t\n\t \t<LocationSelection />\n\t </Popup>\n\n\t\t<section \n\t\t\tid=\"screen\" \n\t\t\tref=\"screen\"\n\t\t\t@scroll=\"handleScroll\"\n\t\t\tclass=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll\"\n\t\t>\n\t\t\t<ShopCart />\n\n\t\t\t<!-- <section v-if=\"!route.meta?.breadcrumbs?.hide\" class=\"pd-thin pd-b-zero\">\n\t\t\t\t<Breadcrumbs \n\t\t\t\t\tv-if=\"!MOBILE_APP\"\n\t\t\t\t\tclass=\"bg-light pd-small radius-big\"\n\t\t\t\t/>\n\t\t\t</section> -->\n\n\t\t\t<Suspense>\n\t\t\t\t<router-view \n\t\t\t\t\tv-slot=\"{ Component, route }\" \n\t\t\t\t\t:class=\"{'mn-b-extra': MOBILE_APP}\"\n\t\t\t\t>\n\t\t\t\t\t<Status \n\t\t\t\t\t\tv-if=\"globals.state.error.show\" \n\t\t\t\t\t\t:data=\"globals.state.error\"\n\t\t\t\t\t\tclass=\"z-index-7\" \n\t\t\t\t\t/>\n\n\n\t\t\t\t\t<transition @before-enter=\"scrollTop\" name=\"scaleTransition\" mode=\"out-in\" appear>\n\t\t \t<component \n\t\t \t\tref=\"page\" \n\t\t \t\t:is=\"Component\" \n\t\t \t\t:key=\"route.path\"\n\t\t \t/>\n\t\t \t<!-- Key пока выключил непонятно какие проблемы это вызовет -->\n\t\t \t<!-- -->\n\t\t </transition>\n\n\t\t <!-- <Footer /> -->\n\t\t\t\t</router-view>\n\t\t\t</Suspense>\n \n\t\t</section>\n\n <BottomNavigation \n v-if=\"MOBILE_APP && route.meta.title_hide\"\n class=\"pd-small z-index-2\"\n />\n\t</div>\n</template>\n\n\n\n<script setup>\n\timport { computed, ref, onMounted, provide, inject, onUnmounted, onServerPrefetch, onBeforeMount, defineAsyncComponent } from 'vue'\n\t// Router\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Store\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\t// Partials\n\timport Status from '@pf/src/components/Status/Status.vue'\n\timport Popup from '@pf/src/components/Popup/Popup.vue'\n\timport Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\timport Loader from '@pf/src/components/Loader/Loader.vue'\n\n\timport NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue'\n\timport LocationSelection from '@pf/src/modules/globals/views/components/partials/LocationSelection.vue'\n\timport Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'\n\timport BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue'\n\n\timport ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue'\n\t/////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n\t/////////////////////////////\n\t// CREATED\n\t/////////////////////////////\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// Ref Code\n\tconst referalCode = ref(route.query.referalCode);\n\t/////////////////////////////\n\t// Methods\n\t/////////////////////////////\n\tfunction closeLocationPopup() {\n\t globals.state.isOpenLocationPopup = false;\n\t}\n\tfunction scrollTop(){\n\t\tdocument.getElementById('app').scrollIntoView();\n\t}\n\t// Scrolling header\n\tconst scrollOffset = ref(0)\n\tlet isScrolled = false\n\tconst header = ref(null)\n\n\tconst headerTheme = computed(() => {\n\t\tif (scrollOffset.value > 50) {\n\t\t\treturn 'light'\n\t\t} else {\n\t\t\treturn route.meta.header_theme || 'light'\n\t\t}\n\t})\n\tconst handleScroll = () => {\n\t scrollOffset.value = event.target.scrollTop\n\n\t if (scrollOffset.value > 50 && !isScrolled) {\n\t isScrolled = true;\n\n\t header.value.$el.classList.add('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = -firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t // headerTheme.value - light\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t } else if (scrollOffset.value <= 75 && isScrolled) {\n\t isScrolled = false;\n\t header.value.$el.classList.remove('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t }\n\t};\n\t/////////////////////////////\n\t// MOUNTED\n\t/////////////////////////////\n\t// if (typeof window === 'undefined') {\n\t// show.value = true\n\t// } else {\n\t// \tshow.value = false\n\t// }\n\n\tonMounted(async () => {\n\t\t \n\t\tif ('serviceWorker' in navigator) {\n\t \twindow.addEventListener('load', () => {\n\t \tnavigator.serviceWorker.register('/service-worker.js').then(registration => {\n\t \tconsole.log('SW registered: ', registration);\n\t \t}).catch(registrationError => {\n\t \tconsole.log('SW registration failed: ', registrationError);\n\t \t});\n\t });\n\t \t}\n\t\t\n\t\tconst savedPosition = localStorage.getItem('position');\n\n\t if (savedPosition) {\n\t globals.state.position = JSON.parse(savedPosition);\n\t } else {\n \t\tglobals.state.isOpenLocationPopup = true;\n\t }\n\n\t\tif (referalCode.value) {\n\t\t localStorage.setItem('referalCode', referalCode.value);\n\t\t}\n\n\t\tif (page) show.value = true\n\t});\n</script>\n\n<style lang=\"scss\">;\t\n\t.scaleIn-enter-active,\n\t.scaleIn-leave-active {\n\t\ttransform: scale(1); \n\t\ttransition: all 0.5s ease; \n\t}\n\t.scaleIn-enter-from,\n\t.scaleIn-leave-to {\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease; \n\t}\n\n\t.moveFromTop-enter-active,\n\t.moveFromTop-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTop-enter-from,\n\t.moveFromTop-leave-to {\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\n\t.moveFromTopAbsolute-enter-active,\n\t.moveFromTopAbsolute-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTopAbsolute-enter-from,\n\t.moveFromTopAbsolute-leave-to {\n\t\tposition: absolute;\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\t.ScaleOut-enter-active,\n\t.ScaleOut-leave-active {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t\ttransition: all 0.3s ease; \n\t\t\n\t}\n\t.ScaleOut-enter-from,\n\t.ScaleOut-leave-to {\n\t\topacity: 0;\n\t\ttransform: scale(0.9);\n\t\ttransition: all 0.3s ease;\n\t}\n\t.slide-fade-enter-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-leave-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-enter-from,\n\t.slide-fade-leave-to {\n\t\tmin-height: 0;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n\t.scaleTransition-5px-enter-active,\n .scaleTransition-5px-leave-active {\n transform: translateY(0px); \n opacity: 1;\n z-index: 1;\n transition: all 0.2s ease;\n }\n\n .scaleTransition-5px-enter-from,\n .scaleTransition-5px-leave-to {\n opacity: 0;\n z-index: 0;\n position: absolute;\n transform: translateY(-30px); \n transition: all 0.2s ease;\n }\n\n .scaleTransition-enter-from,\n .scaleTransition-leave-to {\n opacity: 0;\n z-index: 0;\n position: absolute;\n width: inherit;\n height: inherit;\n display: block;\n transform: translateY(-30px); \n transition: all 0.5s ease;\n }\n\n .scaleTransition-enter-active,\n .scaleTransition-leave-active {\n transform: translateY(0px); \n opacity: 1;\n z-index: 1;\n transition: all 0.5s ease;\n }\n .scaleTransition-enter-from,\n .scaleTransition-leave-to {\n opacity: 0;\n z-index: 0;\n position: absolute;\n width: inherit;\n height: inherit;\n display: block;\n transform: translateY(-30px); \n transition: all 0.5s ease;\n }\n\n .scaleIn-enter-active,\n .scaleIn-leave-active {\n // background: red;\n transition: all 0.5s ease;\n > section,div { transform-origin: 0 0; transform: translateZ(0px); transition: all 0.5s ease; }\n }\n .scaleIn-enter-from,\n .scaleIn-leave-to {\n opacity: 0;\n > section,div { transform: translateZ(-30px); transition: all 0.5s ease; }\n transform: scale(0.95);\n }\n</style>"],"names":["ref","useRoute","useRouter","globals.state","computed","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAqIE,QAAI,OAAOA,IAAG,IAAC,KAAK;AAEpB,UAAM,OAAOA,IAAG,IAAC,IAAI;AAItB,UAAM,QAAQC,UAAAA,SAAU;AACTC,wBAAW;AAE1B,UAAM,cAAcF,IAAG,IAAC,MAAM,MAAM,WAAW;AAI/C,aAAS,qBAAqB;AAC5BG,cAAa,MAAC,sBAAsB;AAAA,IACrC;AACD,aAAS,YAAW;AACnB,eAAS,eAAe,KAAK,EAAE,eAAc;AAAA,IAC7C;AAED,UAAM,eAAeH,IAAG,IAAC,CAAC;AAC1B,QAAI,aAAa;AACjB,UAAM,SAASA,IAAG,IAAC,IAAI;AAEvB,UAAM,cAAcI,IAAAA,SAAS,MAAM;AAClC,UAAI,aAAa,QAAQ,IAAI;AAC5B,eAAO;AAAA,MACV,OAAS;AACN,eAAO,MAAM,KAAK,gBAAgB;AAAA,MAClC;AAAA,IACH,CAAE;AACD,UAAM,eAAe,MAAM;AACzB,mBAAa,QAAQ,MAAM,OAAO;AAElC,UAAI,aAAa,QAAQ,MAAM,CAAC,YAAY;AAC1C,qBAAa;AAEb,eAAO,MAAM,IAAI,UAAU,IAAI,UAAU;AAEzC,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,CAAC,UAAU;AAE1B,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAIvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL,WAAU,aAAa,SAAS,MAAM,YAAY;AACjD,qBAAa;AACb,eAAO,MAAM,IAAI,UAAU,OAAO,UAAU;AAE5C,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,UAAU;AAEzB,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAEvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL;AAAA,IACJ;AAUCC,QAAAA,UAAU,YAAY;AAErB,UAAI,mBAAmB,WAAW;AAC/B,eAAO,iBAAiB,QAAQ,MAAM;AACpC,oBAAU,cAAc,SAAS,oBAAoB,EAAE,KAAK,kBAAgB;AAC1E,oBAAQ,IAAI,mBAAmB,YAAY;AAAA,UACpD,CAAQ,EAAE,MAAM,uBAAqB;AAC5B,oBAAQ,IAAI,4BAA4B,iBAAiB;AAAA,UAClE,CAAQ;AAAA,QACR,CAAK;AAAA,MACD;AAEF,YAAM,gBAAgB,aAAa,QAAQ,UAAU;AAEpD,UAAI,eAAe;AACjBF,gBAAAA,MAAc,WAAW,KAAK,MAAM,aAAa;AAAA,MACtD,OAAU;AACNA,gBAAa,MAAC,sBAAsB;AAAA,MACpC;AAEF,UAAI,YAAY,OAAO;AACrB,qBAAa,QAAQ,eAAe,YAAY,KAAK;AAAA,MACtD;AAED,UAAI,KAAM,MAAK,QAAQ;AAAA,IACzB,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,14 +1,15 @@
1
- import { defineAsyncComponent, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, Transition, withCtx, createBlock, unref, createCommentVNode, resolveDynamicComponent, normalizeStyle, createElementVNode, Suspense, normalizeClass } from "vue";
1
+ import { ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, Transition, withCtx, createBlock, createCommentVNode, unref, normalizeClass, resolveDynamicComponent, normalizeStyle, createElementVNode, Suspense } from "vue";
2
2
  import { useRoute, useRouter } from "vue-router";
3
3
  import { state } from "../../store/globals.js";
4
4
  import _sfc_main$5 from "../../../../../components/Status/Status.vue.js";
5
- import _sfc_main$2 from "../../../../../components/Popup/Popup.vue.js";
5
+ import _sfc_main$2 from "../../../../../components/Popup/Popup.vue2.js";
6
6
  import "vue-i18n";
7
7
  /* empty css */
8
+ import Loader from "../../../../../components/Loader/Loader.vue2.js";
9
+ import _sfc_main$1 from "../partials/NavigationBar.vue.js";
8
10
  import _sfc_main$3 from "../partials/LocationSelection.vue.js";
9
11
  import "../../../../products/store/categories.js";
10
12
  import BottomNavigation from "../partials/BottomNavigation.vue.js";
11
- import _sfc_main$1 from "../partials/NavigationBar.vue.js";
12
13
  import _sfc_main$4 from "../../../../orders/components/partials/ShopCart.vue.js";
13
14
  /* empty css */
14
15
  const _hoisted_1 = {
@@ -18,10 +19,6 @@ const _hoisted_1 = {
18
19
  const _sfc_main = {
19
20
  __name: "Client",
20
21
  setup(__props) {
21
- const Loader = defineAsyncComponent(() => import(
22
- /* webpackChunkName: "loader" */
23
- "../../../../../components/Loader/Loader.vue2.js"
24
- ));
25
22
  let show = ref(false);
26
23
  const page = ref(null);
27
24
  const route = useRoute();
@@ -94,38 +91,38 @@ const _sfc_main = {
94
91
  appear: ""
95
92
  }, {
96
93
  default: withCtx(() => [
97
- !page.value ? (openBlock(), createBlock(unref(Loader), {
94
+ !page.value ? (openBlock(), createBlock(Loader, {
98
95
  key: 0,
99
96
  class: "pos-fixed"
100
97
  })) : createCommentVNode("", true)
101
98
  ]),
102
99
  _: 1
103
100
  }),
104
- createVNode(Transition, {
105
- name: "moveFromTop",
106
- mode: "out-in",
107
- appear: ""
108
- }, {
109
- default: withCtx(() => [
110
- !_ctx.MOBILE_APP ? (openBlock(), createBlock(resolveDynamicComponent(unref(route).meta.header), {
111
- key: 0,
112
- ref_key: "header",
113
- ref: header,
114
- class: "transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0",
115
- theme: headerTheme.value,
116
- logotype: unref(route).meta.logotype
117
- }, {
118
- default: withCtx(() => [
119
- unref(route).meta.navigation ? (openBlock(), createBlock(resolveDynamicComponent(unref(route).meta.navigation), {
120
- key: 0,
121
- class: "mn-l-auto desktop-only"
122
- })) : createCommentVNode("", true)
123
- ]),
124
- _: 1
125
- }, 8, ["theme", "logotype"])) : createCommentVNode("", true)
126
- ]),
127
- _: 1
128
- }),
101
+ unref(route).meta.header.component ? (openBlock(), createElementBlock("header", {
102
+ key: 0,
103
+ id: "header",
104
+ class: normalizeClass(["pd-thin gap-micro flex-justify-between flex-nowrap flex h-4r w-100 z-index-2 pos-relative pos-t-0", {
105
+ "t-black bg-white": headerTheme.value === "light",
106
+ "t-white bg-black": headerTheme.value === "dark"
107
+ }])
108
+ }, [
109
+ !_ctx.MOBILE_APP ? (openBlock(), createBlock(resolveDynamicComponent(unref(route).meta.header.component), {
110
+ key: 0,
111
+ ref_key: "header",
112
+ ref: header,
113
+ theme: headerTheme.value,
114
+ logotype: unref(route).meta.header.logotype,
115
+ location: unref(route).meta.header.location
116
+ }, {
117
+ default: withCtx(() => [
118
+ unref(route).meta.navigation ? (openBlock(), createBlock(resolveDynamicComponent(unref(route).meta.navigation), {
119
+ key: 0,
120
+ class: "mn-l-auto desktop-only"
121
+ })) : createCommentVNode("", true)
122
+ ]),
123
+ _: 1
124
+ }, 8, ["theme", "logotype", "location"])) : createCommentVNode("", true)
125
+ ], 2)) : createCommentVNode("", true),
129
126
  createVNode(Transition, {
130
127
  name: "moveFromTop",
131
128
  mode: "out-in",
@@ -170,7 +167,7 @@ const _sfc_main = {
170
167
  }, null, 8, ["data"])) : createCommentVNode("", true),
171
168
  createVNode(Transition, {
172
169
  onBeforeEnter: scrollTop,
173
- name: "scaleIn",
170
+ name: "scaleTransition",
174
171
  mode: "out-in",
175
172
  appear: ""
176
173
  }, {
@@ -191,7 +188,7 @@ const _sfc_main = {
191
188
  }))
192
189
  ], 544),
193
190
  _ctx.MOBILE_APP && unref(route).meta.title_hide ? (openBlock(), createBlock(BottomNavigation, {
194
- key: 0,
191
+ key: 1,
195
192
  class: "pd-small z-index-2"
196
193
  })) : createCommentVNode("", true)
197
194
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"Client.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/layouts/Client.vue"],"sourcesContent":["<template>\n\t<div id=\"app-wrapper\" class=\"pos-relative\">\n\t\t<transition name=\"moveFromTop\" appear>\n\t\t\t<Loader v-if=\"!page\" class=\"pos-fixed\"/>\n\t\t</transition>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n <component\n\t\t \tv-if=\"!MOBILE_APP\"\n :is=\"route.meta.header\"\n ref=\"header\" \n class=\"transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0\" \n :theme=\"headerTheme\"\n :logotype=\"route.meta.logotype\"\n >\n <component\n v-if=\"route.meta.navigation\"\n :is=\"route.meta.navigation\"\n class=\"mn-l-auto desktop-only\"\n />\n </component>\n </transition>\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n\t\t\t<NavigationBar\n\t\t \tv-if=\"MOBILE_APP\"\n\t\t \t:logotype=\"route.meta.logotype\"\n\t\t\t\t:style=\"MOBILE_APP === 'ios' ?'padding-top: 6rem;':''\" \n\t\t />\n\t\t</transition>\n\n\t <Popup \n\t \t@close-popup=\"closeLocationPopup\" \n\t \t:isPopupOpen=\"globals.state.isOpenLocationPopup\"\n\t \tclass=\"bg-white pd-semi w-m-33r radius-big\"\n\t >\t\n\t \t<LocationSelection />\n\t </Popup>\n\n\t\t<section \n\t\t\tid=\"screen\" \n\t\t\tref=\"screen\"\n\t\t\t@scroll=\"handleScroll\"\n\t\t\tclass=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll\"\n\t\t>\n\t\t\t<ShopCart />\n\n\t\t\t<!-- <section v-if=\"!route.meta?.breadcrumbs?.hide\" class=\"pd-thin pd-b-zero\">\n\t\t\t\t<Breadcrumbs \n\t\t\t\t\tv-if=\"!MOBILE_APP\"\n\t\t\t\t\tclass=\"bg-light pd-small radius-big\"\n\t\t\t\t/>\n\t\t\t</section> -->\n\n\t\t\t<Suspense>\n\t\t\t\t<router-view \n\t\t\t\t\tv-slot=\"{ Component, route }\" \n\t\t\t\t\t:class=\"{'mn-b-extra': MOBILE_APP}\"\n\t\t\t\t>\n\t\t\t\t\t<Status \n\t\t\t\t\t\tv-if=\"globals.state.error.show\" \n\t\t\t\t\t\t:data=\"globals.state.error\"\n\t\t\t\t\t\tclass=\"z-index-7\" \n\t\t\t\t\t/>\n\n\n\t\t\t\t\t<transition @before-enter=\"scrollTop\" name=\"scaleIn\" mode=\"out-in\" appear>\n\t\t \t<component \n\t\t \t\tref=\"page\" \n\t\t \t\t:is=\"Component\" \n\t\t \t\t:key=\"route.path\"\n\t\t \t/>\n\t\t </transition>\n\n\t\t <!-- <Footer /> -->\n\t\t\t\t</router-view>\n\t\t\t</Suspense>\n \n\t\t</section>\n\n <BottomNavigation \n v-if=\"MOBILE_APP && route.meta.title_hide\"\n class=\"pd-small z-index-2\"\n />\n\t</div>\n</template>\n\n\n\n<script setup>\n\timport { computed, ref, onMounted, provide, inject, onUnmounted, onServerPrefetch, onBeforeMount, defineAsyncComponent } from 'vue'\n\t// Router\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Store\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\t// Partials\n\timport Status from '@pf/src/components/Status/Status.vue'\n\n\timport Popup from '@pf/src/components/Popup/Popup.vue'\n\timport Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\tconst Loader = defineAsyncComponent(() => import(/* webpackChunkName: \"loader\" */ '@pf/src/components/Loader/Loader.vue'))\n\n\n\timport LocationSelection from '@pf/src/modules/globals/views/components/partials/LocationSelection.vue'\n\timport Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'\n\timport BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue'\n\timport NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue'\n\n\timport ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue'\n\t/////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n\t/////////////////////////////\n\t// CREATED\n\t/////////////////////////////\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// Ref Code\n\tconst referalCode = ref(route.query.referalCode);\n\t/////////////////////////////\n\t// Methods\n\t/////////////////////////////\n\tfunction closeLocationPopup() {\n\t globals.state.isOpenLocationPopup = false;\n\t}\n\tfunction scrollTop(){\n\t\tdocument.getElementById('app').scrollIntoView();\n\t}\n\t// Scrolling header\n\tconst scrollOffset = ref(0)\n\tlet isScrolled = false\n\tconst header = ref(null)\n\n\tconst headerTheme = computed(() => {\n\t\tif (scrollOffset.value > 50) {\n\t\t\treturn 'light'\n\t\t} else {\n\t\t\treturn route.meta.header_theme || 'light'\n\t\t}\n\t})\n\tconst handleScroll = () => {\n\t scrollOffset.value = event.target.scrollTop\n\n\t if (scrollOffset.value > 50 && !isScrolled) {\n\t isScrolled = true;\n\n\t header.value.$el.classList.add('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = -firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t // headerTheme.value - light\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t } else if (scrollOffset.value <= 75 && isScrolled) {\n\t isScrolled = false;\n\t header.value.$el.classList.remove('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t }\n\t};\n\t/////////////////////////////\n\t// MOUNTED\n\t/////////////////////////////\n\t// if (typeof window === 'undefined') {\n\t// show.value = true\n\t// } else {\n\t// \tshow.value = false\n\t// }\n\n\tonMounted(async () => {\n\t\t \n\t\tif ('serviceWorker' in navigator) {\n\t \twindow.addEventListener('load', () => {\n\t \tnavigator.serviceWorker.register('/service-worker.js').then(registration => {\n\t \tconsole.log('SW registered: ', registration);\n\t \t}).catch(registrationError => {\n\t \tconsole.log('SW registration failed: ', registrationError);\n\t \t});\n\t });\n\t \t}\n\t\t\n\t\tconst savedPosition = localStorage.getItem('position');\n\n\t if (savedPosition) {\n\t globals.state.position = JSON.parse(savedPosition);\n\t } else {\n \t\tglobals.state.isOpenLocationPopup = true;\n\t }\n\n\t\tif (referalCode.value) {\n\t\t localStorage.setItem('referalCode', referalCode.value);\n\t\t}\n\n\t\tif (page) show.value = true\n\t});\n</script>\n\n<style lang=\"scss\">;\t\n\t.scaleIn-enter-active,\n\t.scaleIn-leave-active {\n\t\ttransform: scale(1); \n\t\ttransition: all 0.5s ease; \n\t}\n\t.scaleIn-enter-from,\n\t.scaleIn-leave-to {\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease; \n\t}\n\n\t.moveFromTop-enter-active,\n\t.moveFromTop-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTop-enter-from,\n\t.moveFromTop-leave-to {\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\n\t.moveFromTopAbsolute-enter-active,\n\t.moveFromTopAbsolute-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTopAbsolute-enter-from,\n\t.moveFromTopAbsolute-leave-to {\n\t\tposition: absolute;\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\t.ScaleOut-enter-active,\n\t.ScaleOut-leave-active {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t\ttransition: all 0.3s ease; \n\t\t\n\t}\n\t.ScaleOut-enter-from,\n\t.ScaleOut-leave-to {\n\t\topacity: 0;\n\t\ttransform: scale(0.9);\n\t\ttransition: all 0.3s ease;\n\t}\n\t.slide-fade-enter-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-leave-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-enter-from,\n\t.slide-fade-leave-to {\n\t\tmin-height: 0;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n</style>"],"names":["globals.state"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoGC,UAAM,SAAS,qBAAqB,MAAM;AAAA;AAAA,MAAwC;AAAA,IAAsC,CAAC;AAaxH,QAAI,OAAO,IAAI,KAAK;AAEpB,UAAM,OAAO,IAAI,IAAI;AAItB,UAAM,QAAQ,SAAU;AACT,cAAW;AAE1B,UAAM,cAAc,IAAI,MAAM,MAAM,WAAW;AAI/C,aAAS,qBAAqB;AAC5BA,YAAc,sBAAsB;AAAA,IACrC;AACD,aAAS,YAAW;AACnB,eAAS,eAAe,KAAK,EAAE,eAAc;AAAA,IAC7C;AAED,UAAM,eAAe,IAAI,CAAC;AAC1B,QAAI,aAAa;AACjB,UAAM,SAAS,IAAI,IAAI;AAEvB,UAAM,cAAc,SAAS,MAAM;AAClC,UAAI,aAAa,QAAQ,IAAI;AAC5B,eAAO;AAAA,MACV,OAAS;AACN,eAAO,MAAM,KAAK,gBAAgB;AAAA,MAClC;AAAA,IACH,CAAE;AACD,UAAM,eAAe,MAAM;AACzB,mBAAa,QAAQ,MAAM,OAAO;AAElC,UAAI,aAAa,QAAQ,MAAM,CAAC,YAAY;AAC1C,qBAAa;AAEb,eAAO,MAAM,IAAI,UAAU,IAAI,UAAU;AAEzC,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,CAAC,UAAU;AAE1B,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAIvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL,WAAU,aAAa,SAAS,MAAM,YAAY;AACjD,qBAAa;AACb,eAAO,MAAM,IAAI,UAAU,OAAO,UAAU;AAE5C,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,UAAU;AAEzB,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAEvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL;AAAA,IACJ;AAUC,cAAU,YAAY;AAErB,UAAI,mBAAmB,WAAW;AAC/B,eAAO,iBAAiB,QAAQ,MAAM;AACpC,oBAAU,cAAc,SAAS,oBAAoB,EAAE,KAAK,kBAAgB;AAC1E,oBAAQ,IAAI,mBAAmB,YAAY;AAAA,UACpD,CAAQ,EAAE,MAAM,uBAAqB;AAC5B,oBAAQ,IAAI,4BAA4B,iBAAiB;AAAA,UAClE,CAAQ;AAAA,QACR,CAAK;AAAA,MACD;AAEF,YAAM,gBAAgB,aAAa,QAAQ,UAAU;AAEpD,UAAI,eAAe;AACjBA,cAAc,WAAW,KAAK,MAAM,aAAa;AAAA,MACtD,OAAU;AACNA,cAAc,sBAAsB;AAAA,MACpC;AAEF,UAAI,YAAY,OAAO;AACrB,qBAAa,QAAQ,eAAe,YAAY,KAAK;AAAA,MACtD;AAED,UAAI,KAAM,MAAK,QAAQ;AAAA,IACzB,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Client.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/layouts/Client.vue"],"sourcesContent":["<template>\n\t<div id=\"app-wrapper\" class=\"pos-relative\">\n\t\t<transition name=\"moveFromTop\" appear>\n\t\t\t<Loader v-if=\"!page\" class=\"pos-fixed\"/>\n\t\t</transition>\n\n\t\t<!-- <transition name=\"moveFromTop\" mode=\"out-in\" appear> -->\n\t\t\t<header \n\t\t\t\tid=\"header\" \n\t\t\t\tv-if=\"route.meta.header.component\"\n\t\t\t\tclass=\"\n\t\t\t\t\tpd-thin \n\t\t\t\t\tgap-micro\n\t\t\t\t\tflex-justify-between\n\t\t\t\t\tflex-nowrap\n\t\t\t\t\tflex\n\t\t\t\t\th-4r\n\t\t\t\t\tw-100\n\t\t\t\t\tz-index-2 \n\t\t\t\t\tpos-relative pos-t-0\n\t\t\t\t\"\n\t\t\t\t:class=\"{\n\t\t \t\t't-black bg-white': headerTheme === 'light',\n\t\t \t\t't-white bg-black': headerTheme === 'dark' \n\t\t \t}\"\n\t\t\t>\n\t <component\n\t\t\t \tv-if=\"!MOBILE_APP\"\n\t :is=\"route.meta.header.component\"\n\t ref=\"header\" \n\t :theme=\"headerTheme\"\n\t :logotype=\"route.meta.header.logotype\"\n\t :location=\"route.meta.header.location\"\n\t >\n\t <component\n\t v-if=\"route.meta.navigation\"\n\t :is=\"route.meta.navigation\"\n\t class=\"mn-l-auto desktop-only\"\n\t />\n\t </component>\n\t\t </header>\n <!-- </transition> -->\n\n\t\t<transition name=\"moveFromTop\" mode=\"out-in\" appear>\n\t\t\t<NavigationBar\n\t\t \tv-if=\"MOBILE_APP\"\n\t\t \t:logotype=\"route.meta.logotype\"\n\t\t\t\t:style=\"MOBILE_APP === 'ios' ?'padding-top: 6rem;':''\" \n\t\t />\n\t\t</transition>\n\n\t <Popup \n\t \t@close-popup=\"closeLocationPopup\" \n\t \t:isPopupOpen=\"globals.state.isOpenLocationPopup\"\n\t \tclass=\"bg-white pd-semi w-m-33r radius-big\"\n\t >\t\n\t \t<LocationSelection />\n\t </Popup>\n\n\t\t<section \n\t\t\tid=\"screen\" \n\t\t\tref=\"screen\"\n\t\t\t@scroll=\"handleScroll\"\n\t\t\tclass=\"transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll\"\n\t\t>\n\t\t\t<ShopCart />\n\n\t\t\t<!-- <section v-if=\"!route.meta?.breadcrumbs?.hide\" class=\"pd-thin pd-b-zero\">\n\t\t\t\t<Breadcrumbs \n\t\t\t\t\tv-if=\"!MOBILE_APP\"\n\t\t\t\t\tclass=\"bg-light pd-small radius-big\"\n\t\t\t\t/>\n\t\t\t</section> -->\n\n\t\t\t<Suspense>\n\t\t\t\t<router-view \n\t\t\t\t\tv-slot=\"{ Component, route }\" \n\t\t\t\t\t:class=\"{'mn-b-extra': MOBILE_APP}\"\n\t\t\t\t>\n\t\t\t\t\t<Status \n\t\t\t\t\t\tv-if=\"globals.state.error.show\" \n\t\t\t\t\t\t:data=\"globals.state.error\"\n\t\t\t\t\t\tclass=\"z-index-7\" \n\t\t\t\t\t/>\n\n\n\t\t\t\t\t<transition @before-enter=\"scrollTop\" name=\"scaleTransition\" mode=\"out-in\" appear>\n\t\t \t<component \n\t\t \t\tref=\"page\" \n\t\t \t\t:is=\"Component\" \n\t\t \t\t:key=\"route.path\"\n\t\t \t/>\n\t\t \t<!-- Key пока выключил непонятно какие проблемы это вызовет -->\n\t\t \t<!-- -->\n\t\t </transition>\n\n\t\t <!-- <Footer /> -->\n\t\t\t\t</router-view>\n\t\t\t</Suspense>\n \n\t\t</section>\n\n <BottomNavigation \n v-if=\"MOBILE_APP && route.meta.title_hide\"\n class=\"pd-small z-index-2\"\n />\n\t</div>\n</template>\n\n\n\n<script setup>\n\timport { computed, ref, onMounted, provide, inject, onUnmounted, onServerPrefetch, onBeforeMount, defineAsyncComponent } from 'vue'\n\t// Router\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Store\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\t// Partials\n\timport Status from '@pf/src/components/Status/Status.vue'\n\timport Popup from '@pf/src/components/Popup/Popup.vue'\n\timport Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\timport Loader from '@pf/src/components/Loader/Loader.vue'\n\n\timport NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue'\n\timport LocationSelection from '@pf/src/modules/globals/views/components/partials/LocationSelection.vue'\n\timport Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'\n\timport BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue'\n\n\timport ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue'\n\t/////////////////////////////\n // LOADING\n /////////////////////////////\n // State\n let show = ref(false)\n // Preloader\n const page = ref(null)\n\t/////////////////////////////\n\t// CREATED\n\t/////////////////////////////\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// Ref Code\n\tconst referalCode = ref(route.query.referalCode);\n\t/////////////////////////////\n\t// Methods\n\t/////////////////////////////\n\tfunction closeLocationPopup() {\n\t globals.state.isOpenLocationPopup = false;\n\t}\n\tfunction scrollTop(){\n\t\tdocument.getElementById('app').scrollIntoView();\n\t}\n\t// Scrolling header\n\tconst scrollOffset = ref(0)\n\tlet isScrolled = false\n\tconst header = ref(null)\n\n\tconst headerTheme = computed(() => {\n\t\tif (scrollOffset.value > 50) {\n\t\t\treturn 'light'\n\t\t} else {\n\t\t\treturn route.meta.header_theme || 'light'\n\t\t}\n\t})\n\tconst handleScroll = () => {\n\t scrollOffset.value = event.target.scrollTop\n\n\t if (scrollOffset.value > 50 && !isScrolled) {\n\t isScrolled = true;\n\n\t header.value.$el.classList.add('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = -firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t // headerTheme.value - light\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t } else if (scrollOffset.value <= 75 && isScrolled) {\n\t isScrolled = false;\n\t header.value.$el.classList.remove('scrolled');\n\n\t const firstRect = header.value.$el.getBoundingClientRect();\n\t const invert = firstRect.top;\n\n\t header.value.$el.style.transform = `translateY(${invert}px)`;\n\n\t setTimeout(() => {\n\t header.value.$el.style.transform = 'translateY(0)';\n\t }, 0);\n\t }\n\t};\n\t/////////////////////////////\n\t// MOUNTED\n\t/////////////////////////////\n\t// if (typeof window === 'undefined') {\n\t// show.value = true\n\t// } else {\n\t// \tshow.value = false\n\t// }\n\n\tonMounted(async () => {\n\t\t \n\t\tif ('serviceWorker' in navigator) {\n\t \twindow.addEventListener('load', () => {\n\t \tnavigator.serviceWorker.register('/service-worker.js').then(registration => {\n\t \tconsole.log('SW registered: ', registration);\n\t \t}).catch(registrationError => {\n\t \tconsole.log('SW registration failed: ', registrationError);\n\t \t});\n\t });\n\t \t}\n\t\t\n\t\tconst savedPosition = localStorage.getItem('position');\n\n\t if (savedPosition) {\n\t globals.state.position = JSON.parse(savedPosition);\n\t } else {\n \t\tglobals.state.isOpenLocationPopup = true;\n\t }\n\n\t\tif (referalCode.value) {\n\t\t localStorage.setItem('referalCode', referalCode.value);\n\t\t}\n\n\t\tif (page) show.value = true\n\t});\n</script>\n\n<style lang=\"scss\">;\t\n\t.scaleIn-enter-active,\n\t.scaleIn-leave-active {\n\t\ttransform: scale(1); \n\t\ttransition: all 0.5s ease; \n\t}\n\t.scaleIn-enter-from,\n\t.scaleIn-leave-to {\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease; \n\t}\n\n\t.moveFromTop-enter-active,\n\t.moveFromTop-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTop-enter-from,\n\t.moveFromTop-leave-to {\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\n\t.moveFromTopAbsolute-enter-active,\n\t.moveFromTopAbsolute-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.moveFromTopAbsolute-enter-from,\n\t.moveFromTopAbsolute-leave-to {\n\t\tposition: absolute;\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\t.ScaleOut-enter-active,\n\t.ScaleOut-leave-active {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t\ttransition: all 0.3s ease; \n\t\t\n\t}\n\t.ScaleOut-enter-from,\n\t.ScaleOut-leave-to {\n\t\topacity: 0;\n\t\ttransform: scale(0.9);\n\t\ttransition: all 0.3s ease;\n\t}\n\t.slide-fade-enter-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-leave-active {\n\t\t// min-height: 100vh;\n\t transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.slide-fade-enter-from,\n\t.slide-fade-leave-to {\n\t\tmin-height: 0;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n\t.scaleTransition-5px-enter-active,\n .scaleTransition-5px-leave-active {\n transform: translateY(0px); \n opacity: 1;\n z-index: 1;\n transition: all 0.2s ease;\n }\n\n .scaleTransition-5px-enter-from,\n .scaleTransition-5px-leave-to {\n opacity: 0;\n z-index: 0;\n position: absolute;\n transform: translateY(-30px); \n transition: all 0.2s ease;\n }\n\n .scaleTransition-enter-from,\n .scaleTransition-leave-to {\n opacity: 0;\n z-index: 0;\n position: absolute;\n width: inherit;\n height: inherit;\n display: block;\n transform: translateY(-30px); \n transition: all 0.5s ease;\n }\n\n .scaleTransition-enter-active,\n .scaleTransition-leave-active {\n transform: translateY(0px); \n opacity: 1;\n z-index: 1;\n transition: all 0.5s ease;\n }\n .scaleTransition-enter-from,\n .scaleTransition-leave-to {\n opacity: 0;\n z-index: 0;\n position: absolute;\n width: inherit;\n height: inherit;\n display: block;\n transform: translateY(-30px); \n transition: all 0.5s ease;\n }\n\n .scaleIn-enter-active,\n .scaleIn-leave-active {\n // background: red;\n transition: all 0.5s ease;\n > section,div { transform-origin: 0 0; transform: translateZ(0px); transition: all 0.5s ease; }\n }\n .scaleIn-enter-from,\n .scaleIn-leave-to {\n opacity: 0;\n > section,div { transform: translateZ(-30px); transition: all 0.5s ease; }\n transform: scale(0.95);\n }\n</style>"],"names":["globals.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqIE,QAAI,OAAO,IAAI,KAAK;AAEpB,UAAM,OAAO,IAAI,IAAI;AAItB,UAAM,QAAQ,SAAU;AACT,cAAW;AAE1B,UAAM,cAAc,IAAI,MAAM,MAAM,WAAW;AAI/C,aAAS,qBAAqB;AAC5BA,YAAc,sBAAsB;AAAA,IACrC;AACD,aAAS,YAAW;AACnB,eAAS,eAAe,KAAK,EAAE,eAAc;AAAA,IAC7C;AAED,UAAM,eAAe,IAAI,CAAC;AAC1B,QAAI,aAAa;AACjB,UAAM,SAAS,IAAI,IAAI;AAEvB,UAAM,cAAc,SAAS,MAAM;AAClC,UAAI,aAAa,QAAQ,IAAI;AAC5B,eAAO;AAAA,MACV,OAAS;AACN,eAAO,MAAM,KAAK,gBAAgB;AAAA,MAClC;AAAA,IACH,CAAE;AACD,UAAM,eAAe,MAAM;AACzB,mBAAa,QAAQ,MAAM,OAAO;AAElC,UAAI,aAAa,QAAQ,MAAM,CAAC,YAAY;AAC1C,qBAAa;AAEb,eAAO,MAAM,IAAI,UAAU,IAAI,UAAU;AAEzC,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,CAAC,UAAU;AAE1B,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAIvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL,WAAU,aAAa,SAAS,MAAM,YAAY;AACjD,qBAAa;AACb,eAAO,MAAM,IAAI,UAAU,OAAO,UAAU;AAE5C,cAAM,YAAY,OAAO,MAAM,IAAI,sBAAqB;AACxD,cAAM,SAAS,UAAU;AAEzB,eAAO,MAAM,IAAI,MAAM,YAAY,cAAc,MAAM;AAEvD,mBAAW,MAAM;AACf,iBAAO,MAAM,IAAI,MAAM,YAAY;AAAA,QACpC,GAAE,CAAC;AAAA,MACL;AAAA,IACJ;AAUC,cAAU,YAAY;AAErB,UAAI,mBAAmB,WAAW;AAC/B,eAAO,iBAAiB,QAAQ,MAAM;AACpC,oBAAU,cAAc,SAAS,oBAAoB,EAAE,KAAK,kBAAgB;AAC1E,oBAAQ,IAAI,mBAAmB,YAAY;AAAA,UACpD,CAAQ,EAAE,MAAM,uBAAqB;AAC5B,oBAAQ,IAAI,4BAA4B,iBAAiB;AAAA,UAClE,CAAQ;AAAA,QACR,CAAK;AAAA,MACD;AAEF,YAAM,gBAAgB,aAAa,QAAQ,UAAU;AAEpD,UAAI,eAAe;AACjBA,cAAc,WAAW,KAAK,MAAM,aAAa;AAAA,MACtD,OAAU;AACNA,cAAc,sBAAsB;AAAA,MACpC;AAEF,UAAI,YAAY,OAAO;AACrB,qBAAa,QAAQ,eAAe,YAAY,KAAK;AAAA,MACtD;AAED,UAAI,KAAM,MAAK,QAAQ;AAAA,IACzB,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -7,13 +7,14 @@ const globals = require("../../store/globals.cjs");
7
7
  const shopcart = require("../../../../orders/store/shopcart.cjs");
8
8
  const auth = require("../../../../auth/views/store/auth.cjs");
9
9
  ;/* empty css */
10
- const Button = require("../../../../../components/Button/Button.vue2.cjs");
11
- const Select = require("../../../../../components/Select/Select.vue.cjs");
10
+ const Button = require("../../../../../components/Button/Button.vue.cjs");
11
+ const Select = require("../../../../../components/Select/Select.vue2.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
  };