@ozdao/prometheus-framework 0.2.203 → 0.2.204

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) 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/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/community/components/pages/Community.vue.cjs +2 -2
  32. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  33. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
  34. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  35. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  37. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.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/elements/ButtonJoin.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  43. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
  44. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  45. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
  46. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  47. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
  48. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  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/blocks/BlockSearch.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
  57. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +27 -27
  58. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  59. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +28 -28
  60. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  61. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +109 -102
  62. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
  63. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +110 -103
  64. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js.map +1 -1
  65. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs +85 -0
  68. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map +1 -0
  69. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js +85 -0
  70. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js.map +1 -0
  71. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
  74. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  75. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +3 -3
  78. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
  79. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +3 -3
  82. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs.map +1 -1
  83. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +3 -3
  84. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
  85. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +2 -2
  86. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  87. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +3 -3
  94. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  95. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +5 -6
  98. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  99. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -5
  100. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  101. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
  102. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  103. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +89 -95
  106. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs.map +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +90 -96
  108. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js.map +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
  110. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
  112. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  113. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
  114. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  115. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
  116. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
  117. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +2 -2
  118. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
  119. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  123. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  125. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  127. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
  130. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  131. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  133. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  135. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
  136. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  137. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +73 -26
  138. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  139. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +82 -35
  140. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
  141. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  143. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +2 -2
  144. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  145. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
  147. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +8 -3
  150. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs.map +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +8 -3
  152. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
  153. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  155. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  157. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  159. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
  161. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
  162. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
  163. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
  164. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  165. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  167. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +3 -3
  168. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  169. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  171. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
  173. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  175. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  177. package/dist/prometheus-framework.cjs.js +14 -14
  178. package/dist/prometheus-framework.es.js +2830 -2823
  179. package/dist/style.css +68 -0
  180. package/package.json +1 -1
  181. package/src/components/Feed/Feed.vue +23 -10
  182. package/src/components/Tab/Tab.vue +10 -7
  183. package/src/modules/auth/views/components/pages/ResetPassword.vue +5 -4
  184. package/src/modules/auth/views/components/pages/SignIn.vue +5 -3
  185. package/src/modules/auth/views/components/pages/SignUp.vue +3 -2
  186. package/src/modules/globals/globals.client.js +5 -2
  187. package/src/modules/globals/views/components/layouts/Client.vue +99 -19
  188. package/src/modules/globals/views/components/partials/Header.vue +18 -29
  189. package/src/modules/globals/views/components/partials/Sidebar.vue +0 -2
  190. package/src/modules/marketplace/components/layouts/Marketplace.vue +16 -9
  191. package/src/modules/orders/components/partials/ShopCart.vue +3 -3
  192. package/src/modules/organizations/components/pages/Organization.vue +9 -6
  193. package/src/modules/organizations/components/sections/DetailsTab.vue +132 -133
  194. package/src/modules/products/components/pages/Products.vue +89 -10
  195. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  196. package/src/modules/products/components/sections/SectionProduct.vue +4 -0
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const vueRouter = require("vue-router");
5
- ;/* empty css */
5
+ ;/* empty css */
6
6
  const Block = require("../../../../components/Block/Block.vue.cjs");
7
7
  const orders = require("../../store/orders.cjs");
8
8
  const auth = require("../../../auth/views/store/auth.cjs");
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, unref, Fragment, renderList, createBlock, createTextVNode, Transition, createCommentVNode, withModifiers } from "vue";
2
2
  import { useRoute, useRouter } from "vue-router";
3
- /* empty css */
3
+ /* empty css */
4
4
  import _sfc_main$2 from "../../../../components/Block/Block.vue.js";
5
5
  import { state, actions, getters } from "../../store/orders.js";
6
6
  import { state as state$1 } from "../../../auth/views/store/auth.js";
@@ -16,13 +16,13 @@ const _hoisted_6 = {
16
16
  key: 0,
17
17
  class: "mn-t-medium"
18
18
  };
19
- const _hoisted_7 = { class: "shopcart-footer pd-b-medium pd-t-medium pd-big transition-cubic bg-black t-white" };
19
+ const _hoisted_7 = { class: "shopcart-footer pd-b-medium pd-t-medium pd-big transition-cubic bg-light t-black" };
20
20
  const _hoisted_8 = {
21
21
  key: 0,
22
22
  class: "mn-b-small total-price"
23
23
  };
24
- const _hoisted_9 = { class: "t-transp t-white mn-b-micro" };
25
- const _hoisted_10 = { class: "t-demi t-white p-big" };
24
+ const _hoisted_9 = { class: "t-transp mn-b-micro" };
25
+ const _hoisted_10 = { class: "t-demi p-big" };
26
26
  const _sfc_main = {
27
27
  __name: "ShopCart",
28
28
  setup(__props) {
@@ -1 +1 @@
1
- {"version":3,"file":"ShopCart.vue.cjs","sources":["../../../../../../../src/modules/orders/components/partials/ShopCart.vue"],"sourcesContent":["<template>\n\t<section class=\"z-index-4 transition-cubic pd-big bg-white shop-cart\" :class=\"{'shop-cart-active':shopcart.state.currentState === true}\">\n <!-- ---------------------------------------------------------------- -->\n <!-- 01. Popup Header -->\n <!-- ---------------------------------------------------------------- -->\n <div class=\"flex-nowrap flex\">\n <div class=\"mn-b-small w-100\">\n <h4 class=\"mn-b-thin p-big\">{{t('title')}}</h4>\n <p class=\"t-transp p-small\">{{t('subtitle')}} {{ t('positions', { count: StoreCartAmount }) }}</p>\n </div>\n <IconCross @click=\"shopcart.actions.toggleShopcart\" class=\"button-icon\"/>\n </div>\n <!-- ---------------------------------------------------------------- -->\n <!-- 02. Popup Content -->\n <!-- ---------------------------------------------------------------- -->\n <div class=\"mn-b-big shopcart-content\">\n <!-- Empty State -->\n <p v-if=\"!(shopcart.state.positions.length > 0)\" class=\"mn-t-medium\"><i>{{t('emptystate')}}</i></p>\n <!-- Shopcart positions -->\n <CardOrderItem \n v-for=\"product in shopcart.state.positions\" \n :key=\"product._id\" \n :editable=\"true\" \n :product=\"product\" \n :increase=\"product => shopcart.actions.incrementItemQuantity(product._id)\"\n :decrease=\"product => shopcart.actions.decrementItemQuantity(product._id)\"\n :remove=\"product => shopcart.actions.removeProduct(product._id)\"\n />\n </div>\n <!-- ---------------------------------------------------------------- -->\n <!-- 03. Footer -->\n <!-- ---------------------------------------------------------------- -->\n <div class=\"shopcart-footer pd-b-medium pd-t-medium pd-big transition-cubic bg-black t-white\">\n <div v-if=\"shopcart.state.positions.length > 0\" class=\"mn-b-small total-price\">\n <p class=\"t-transp t-white mn-b-micro\">{{ t('intotal') }}</p>\n <p class=\"t-demi t-white p-big\">{{cartTotalPrice}} {{returnCurrency()}}</p>\n </div>\n <button v-if=\"shopcart.state.positions.length > 0\" @click=\"openOrder()\" class=\"bg-main t-black w-100 button\">{{ t('fastorder') }}</button>\n </div> \n </section>\n <!-- ---------------------------------------------------------------- -->\n <!-- 04. Color Overlay -->\n <!-- ---------------------------------------------------------------- -->\n <div \n @click=\"shopcart.actions.toggleShopcart\" \n :class=\"{'active':shopcart.state.currentState === true}\" \n class=\"color-overlay z-index-3\">\n </div>\n</template>\n\n\n<script setup>\n /////////////////////////////\n // COMPONENT DEPENDENCIES\n /////////////////////////////\n\timport { computed,onMounted } from 'vue'\n // Route\n import { useRouter,useRoute } from 'vue-router'\n // i18n\n import { useI18n } from 'vue-i18n'\n // Components\n import CardOrderItem from '@pf/src/modules/orders/components/blocks/CardOrderItem.vue';\n\n import IconCross from '@pf/src/modules/icons/navigation/IconCross.vue';\n\n\n import * as shopcart from '@pf/src/modules/orders/store/shopcart';\n /////////////////////////////\n // CREATED\n /////////////////////////////\n const route = useRoute()\n const router = useRouter()\n // Accessing state\n const cartTotalPrice = shopcart.getters.cartTotalPrice\n const StoreCartAmount = shopcart.getters.cartTotalAmount\n // \n // router.beforeEach((to, from, next) => {\n // if (shopcart.state.currentState === true) {\n // shopcart.actions.toggleShopcart();\n // }\n // next(); // Убедитесь, что вызываете next() для продолжения перехода по роуту\n // });\n\n /////////////////////////////\n // LOCALIZATION\n /////////////////////////////\n const text = {\n messages: {\n en: {\n title: 'Your order',\n subtitle: 'You have',\n positions: 'no products in shop cart | 1 product in shop cart | {count} products in shop card',\n emptystate: \"You don't have any positions in your shop cart yet. Maybe something needs to be added?\",\n intotal: 'In total',\n fastorder: 'Checkout'\n },\n ru: {\n title: 'Ваш заказ',\n subtitle: 'У вас',\n positions: 'нет товаров в корзине | 1 товар в корзине | {count} товаров в корзине',\n emptystate: \"У вас еще нет товаров в корзине. Может стоит что-нибудь добавить?\",\n intotal: 'Итого',\n fastorder: 'Подтвердить заказ'\n }\n }\n }\n\n const { t } = useI18n(text)\n /////////////////////////////\n // MOUNTED\n /////////////////////////////\n function openOrder() {\n // store.dispatch(\"shopcart/toggleShopCart\");\n // store.dispatch(\"shopcart/setSearch\");\n router.push({name: 'Form Order'})\n shopcart.actions.toggleShopcart();\n }\n</script>\n\n<style lang=\"scss\">\n.shop-cart {\n display: block;\n position: fixed;\n\n right: -33%;\n top: 0;\n\n height: 100%;\n width: 33%;\n\n overflow-y: scroll; \n\n .shopcart-footer {\n position: fixed;\n bottom: 0;\n \n width: 33%;\n right: -33%;\n }\n}\n\n.shop-cart-active {\n right: 0;\n\n .shopcart-footer {\n right: 0;\n }\n}\n\n@media screen and (max-width: 1025px) {\n .shop-cart {\n width: 100%;\n right: -100%;\n\n .shopcart-footer {\n width: 100%;\n right: -100%;\n }\n\n &-active {\n right: 0;\n\n .shopcart-footer {\n right: 0;\n }\n }\n }\n}\n</style>\n\n\n"],"names":["useRoute","useRouter","shopcart.getters","useI18n","shopcart.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEgBA,uBAAU;AACxB,UAAM,SAASC,UAAAA,UAAW;AAE1B,UAAM,iBAAiBC,SAAAA,QAAiB;AACxC,UAAM,kBAAkBA,SAAAA,QAAiB;AAYzC,UAAM,OAAO;AAAA,MACX,UAAU;AAAA,QACR,IAAI;AAAA,UACF,OAAO;AAAA,UACP,UAAU;AAAA,UACV,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,SAAS;AAAA,UACT,WAAW;AAAA,QACZ;AAAA,QACD,IAAI;AAAA,UACF,OAAO;AAAA,UACP,UAAU;AAAA,UACV,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,SAAS;AAAA,UACT,WAAW;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAED,UAAM,EAAE,EAAC,IAAKC,QAAO,QAAC,IAAI;AAI1B,aAAS,YAAY;AAGnB,aAAO,KAAK,EAAC,MAAM,aAAY,CAAC;AAChCC,eAAgB,QAAC,eAAc;AAAA,IAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ShopCart.vue.cjs","sources":["../../../../../../../src/modules/orders/components/partials/ShopCart.vue"],"sourcesContent":["<template>\n\t<section class=\"z-index-4 transition-cubic pd-big bg-white shop-cart\" :class=\"{'shop-cart-active':shopcart.state.currentState === true}\">\n <!-- ---------------------------------------------------------------- -->\n <!-- 01. Popup Header -->\n <!-- ---------------------------------------------------------------- -->\n <div class=\"flex-nowrap flex\">\n <div class=\"mn-b-small w-100\">\n <h4 class=\"mn-b-thin p-big\">{{t('title')}}</h4>\n <p class=\"t-transp p-small\">{{t('subtitle')}} {{ t('positions', { count: StoreCartAmount }) }}</p>\n </div>\n <IconCross @click=\"shopcart.actions.toggleShopcart\" class=\"button-icon\"/>\n </div>\n <!-- ---------------------------------------------------------------- -->\n <!-- 02. Popup Content -->\n <!-- ---------------------------------------------------------------- -->\n <div class=\"mn-b-big shopcart-content\">\n <!-- Empty State -->\n <p v-if=\"!(shopcart.state.positions.length > 0)\" class=\"mn-t-medium\"><i>{{t('emptystate')}}</i></p>\n <!-- Shopcart positions -->\n <CardOrderItem \n v-for=\"product in shopcart.state.positions\" \n :key=\"product._id\" \n :editable=\"true\" \n :product=\"product\" \n :increase=\"product => shopcart.actions.incrementItemQuantity(product._id)\"\n :decrease=\"product => shopcart.actions.decrementItemQuantity(product._id)\"\n :remove=\"product => shopcart.actions.removeProduct(product._id)\"\n />\n </div>\n <!-- ---------------------------------------------------------------- -->\n <!-- 03. Footer -->\n <!-- ---------------------------------------------------------------- -->\n <div class=\"shopcart-footer pd-b-medium pd-t-medium pd-big transition-cubic bg-light t-black\">\n <div v-if=\"shopcart.state.positions.length > 0\" class=\"mn-b-small total-price\">\n <p class=\"t-transp mn-b-micro\">{{ t('intotal') }}</p>\n <p class=\"t-demi p-big\">{{cartTotalPrice}} {{returnCurrency()}}</p>\n </div>\n <button v-if=\"shopcart.state.positions.length > 0\" @click=\"openOrder()\" class=\"bg-main t-black w-100 button\">{{ t('fastorder') }}</button>\n </div> \n </section>\n <!-- ---------------------------------------------------------------- -->\n <!-- 04. Color Overlay -->\n <!-- ---------------------------------------------------------------- -->\n <div \n @click=\"shopcart.actions.toggleShopcart\" \n :class=\"{'active':shopcart.state.currentState === true}\" \n class=\"color-overlay z-index-3\">\n </div>\n</template>\n\n\n<script setup>\n /////////////////////////////\n // COMPONENT DEPENDENCIES\n /////////////////////////////\n\timport { computed,onMounted } from 'vue'\n // Route\n import { useRouter,useRoute } from 'vue-router'\n // i18n\n import { useI18n } from 'vue-i18n'\n // Components\n import CardOrderItem from '@pf/src/modules/orders/components/blocks/CardOrderItem.vue';\n\n import IconCross from '@pf/src/modules/icons/navigation/IconCross.vue';\n\n\n import * as shopcart from '@pf/src/modules/orders/store/shopcart';\n /////////////////////////////\n // CREATED\n /////////////////////////////\n const route = useRoute()\n const router = useRouter()\n // Accessing state\n const cartTotalPrice = shopcart.getters.cartTotalPrice\n const StoreCartAmount = shopcart.getters.cartTotalAmount\n // \n // router.beforeEach((to, from, next) => {\n // if (shopcart.state.currentState === true) {\n // shopcart.actions.toggleShopcart();\n // }\n // next(); // Убедитесь, что вызываете next() для продолжения перехода по роуту\n // });\n\n /////////////////////////////\n // LOCALIZATION\n /////////////////////////////\n const text = {\n messages: {\n en: {\n title: 'Your order',\n subtitle: 'You have',\n positions: 'no products in shop cart | 1 product in shop cart | {count} products in shop card',\n emptystate: \"You don't have any positions in your shop cart yet. Maybe something needs to be added?\",\n intotal: 'In total',\n fastorder: 'Checkout'\n },\n ru: {\n title: 'Ваш заказ',\n subtitle: 'У вас',\n positions: 'нет товаров в корзине | 1 товар в корзине | {count} товаров в корзине',\n emptystate: \"У вас еще нет товаров в корзине. Может стоит что-нибудь добавить?\",\n intotal: 'Итого',\n fastorder: 'Подтвердить заказ'\n }\n }\n }\n\n const { t } = useI18n(text)\n /////////////////////////////\n // MOUNTED\n /////////////////////////////\n function openOrder() {\n // store.dispatch(\"shopcart/toggleShopCart\");\n // store.dispatch(\"shopcart/setSearch\");\n router.push({name: 'Form Order'})\n shopcart.actions.toggleShopcart();\n }\n</script>\n\n<style lang=\"scss\">\n.shop-cart {\n display: block;\n position: fixed;\n\n right: -33%;\n top: 0;\n\n height: 100%;\n width: 33%;\n\n overflow-y: scroll; \n\n .shopcart-footer {\n position: fixed;\n bottom: 0;\n \n width: 33%;\n right: -33%;\n }\n}\n\n.shop-cart-active {\n right: 0;\n\n .shopcart-footer {\n right: 0;\n }\n}\n\n@media screen and (max-width: 1025px) {\n .shop-cart {\n width: 100%;\n right: -100%;\n\n .shopcart-footer {\n width: 100%;\n right: -100%;\n }\n\n &-active {\n right: 0;\n\n .shopcart-footer {\n right: 0;\n }\n }\n }\n}\n</style>\n\n\n"],"names":["useRoute","useRouter","shopcart.getters","useI18n","shopcart.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEgBA,uBAAU;AACxB,UAAM,SAASC,UAAAA,UAAW;AAE1B,UAAM,iBAAiBC,SAAAA,QAAiB;AACxC,UAAM,kBAAkBA,SAAAA,QAAiB;AAYzC,UAAM,OAAO;AAAA,MACX,UAAU;AAAA,QACR,IAAI;AAAA,UACF,OAAO;AAAA,UACP,UAAU;AAAA,UACV,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,SAAS;AAAA,UACT,WAAW;AAAA,QACZ;AAAA,QACD,IAAI;AAAA,UACF,OAAO;AAAA,UACP,UAAU;AAAA,UACV,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,SAAS;AAAA,UACT,WAAW;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAED,UAAM,EAAE,EAAC,IAAKC,QAAO,QAAC,IAAI;AAI1B,aAAS,YAAY;AAGnB,aAAO,KAAK,EAAC,MAAM,aAAY,CAAC;AAChCC,eAAgB,QAAC,eAAc;AAAA,IAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -14,13 +14,13 @@ const _hoisted_6 = {
14
14
  key: 0,
15
15
  class: "mn-t-medium"
16
16
  };
17
- const _hoisted_7 = { class: "shopcart-footer pd-b-medium pd-t-medium pd-big transition-cubic bg-black t-white" };
17
+ const _hoisted_7 = { class: "shopcart-footer pd-b-medium pd-t-medium pd-big transition-cubic bg-light t-black" };
18
18
  const _hoisted_8 = {
19
19
  key: 0,
20
20
  class: "mn-b-small total-price"
21
21
  };
22
- const _hoisted_9 = { class: "t-transp t-white mn-b-micro" };
23
- const _hoisted_10 = { class: "t-demi t-white p-big" };
22
+ const _hoisted_9 = { class: "t-transp mn-b-micro" };
23
+ const _hoisted_10 = { class: "t-demi p-big" };
24
24
  const _sfc_main = {
25
25
  __name: "ShopCart",
26
26
  setup(__props) {
@@ -1 +1 @@
1
- {"version":3,"file":"ShopCart.vue.js","sources":["../../../../../../../src/modules/orders/components/partials/ShopCart.vue"],"sourcesContent":["<template>\n\t<section class=\"z-index-4 transition-cubic pd-big bg-white shop-cart\" :class=\"{'shop-cart-active':shopcart.state.currentState === true}\">\n <!-- ---------------------------------------------------------------- -->\n <!-- 01. Popup Header -->\n <!-- ---------------------------------------------------------------- -->\n <div class=\"flex-nowrap flex\">\n <div class=\"mn-b-small w-100\">\n <h4 class=\"mn-b-thin p-big\">{{t('title')}}</h4>\n <p class=\"t-transp p-small\">{{t('subtitle')}} {{ t('positions', { count: StoreCartAmount }) }}</p>\n </div>\n <IconCross @click=\"shopcart.actions.toggleShopcart\" class=\"button-icon\"/>\n </div>\n <!-- ---------------------------------------------------------------- -->\n <!-- 02. Popup Content -->\n <!-- ---------------------------------------------------------------- -->\n <div class=\"mn-b-big shopcart-content\">\n <!-- Empty State -->\n <p v-if=\"!(shopcart.state.positions.length > 0)\" class=\"mn-t-medium\"><i>{{t('emptystate')}}</i></p>\n <!-- Shopcart positions -->\n <CardOrderItem \n v-for=\"product in shopcart.state.positions\" \n :key=\"product._id\" \n :editable=\"true\" \n :product=\"product\" \n :increase=\"product => shopcart.actions.incrementItemQuantity(product._id)\"\n :decrease=\"product => shopcart.actions.decrementItemQuantity(product._id)\"\n :remove=\"product => shopcart.actions.removeProduct(product._id)\"\n />\n </div>\n <!-- ---------------------------------------------------------------- -->\n <!-- 03. Footer -->\n <!-- ---------------------------------------------------------------- -->\n <div class=\"shopcart-footer pd-b-medium pd-t-medium pd-big transition-cubic bg-black t-white\">\n <div v-if=\"shopcart.state.positions.length > 0\" class=\"mn-b-small total-price\">\n <p class=\"t-transp t-white mn-b-micro\">{{ t('intotal') }}</p>\n <p class=\"t-demi t-white p-big\">{{cartTotalPrice}} {{returnCurrency()}}</p>\n </div>\n <button v-if=\"shopcart.state.positions.length > 0\" @click=\"openOrder()\" class=\"bg-main t-black w-100 button\">{{ t('fastorder') }}</button>\n </div> \n </section>\n <!-- ---------------------------------------------------------------- -->\n <!-- 04. Color Overlay -->\n <!-- ---------------------------------------------------------------- -->\n <div \n @click=\"shopcart.actions.toggleShopcart\" \n :class=\"{'active':shopcart.state.currentState === true}\" \n class=\"color-overlay z-index-3\">\n </div>\n</template>\n\n\n<script setup>\n /////////////////////////////\n // COMPONENT DEPENDENCIES\n /////////////////////////////\n\timport { computed,onMounted } from 'vue'\n // Route\n import { useRouter,useRoute } from 'vue-router'\n // i18n\n import { useI18n } from 'vue-i18n'\n // Components\n import CardOrderItem from '@pf/src/modules/orders/components/blocks/CardOrderItem.vue';\n\n import IconCross from '@pf/src/modules/icons/navigation/IconCross.vue';\n\n\n import * as shopcart from '@pf/src/modules/orders/store/shopcart';\n /////////////////////////////\n // CREATED\n /////////////////////////////\n const route = useRoute()\n const router = useRouter()\n // Accessing state\n const cartTotalPrice = shopcart.getters.cartTotalPrice\n const StoreCartAmount = shopcart.getters.cartTotalAmount\n // \n // router.beforeEach((to, from, next) => {\n // if (shopcart.state.currentState === true) {\n // shopcart.actions.toggleShopcart();\n // }\n // next(); // Убедитесь, что вызываете next() для продолжения перехода по роуту\n // });\n\n /////////////////////////////\n // LOCALIZATION\n /////////////////////////////\n const text = {\n messages: {\n en: {\n title: 'Your order',\n subtitle: 'You have',\n positions: 'no products in shop cart | 1 product in shop cart | {count} products in shop card',\n emptystate: \"You don't have any positions in your shop cart yet. Maybe something needs to be added?\",\n intotal: 'In total',\n fastorder: 'Checkout'\n },\n ru: {\n title: 'Ваш заказ',\n subtitle: 'У вас',\n positions: 'нет товаров в корзине | 1 товар в корзине | {count} товаров в корзине',\n emptystate: \"У вас еще нет товаров в корзине. Может стоит что-нибудь добавить?\",\n intotal: 'Итого',\n fastorder: 'Подтвердить заказ'\n }\n }\n }\n\n const { t } = useI18n(text)\n /////////////////////////////\n // MOUNTED\n /////////////////////////////\n function openOrder() {\n // store.dispatch(\"shopcart/toggleShopCart\");\n // store.dispatch(\"shopcart/setSearch\");\n router.push({name: 'Form Order'})\n shopcart.actions.toggleShopcart();\n }\n</script>\n\n<style lang=\"scss\">\n.shop-cart {\n display: block;\n position: fixed;\n\n right: -33%;\n top: 0;\n\n height: 100%;\n width: 33%;\n\n overflow-y: scroll; \n\n .shopcart-footer {\n position: fixed;\n bottom: 0;\n \n width: 33%;\n right: -33%;\n }\n}\n\n.shop-cart-active {\n right: 0;\n\n .shopcart-footer {\n right: 0;\n }\n}\n\n@media screen and (max-width: 1025px) {\n .shop-cart {\n width: 100%;\n right: -100%;\n\n .shopcart-footer {\n width: 100%;\n right: -100%;\n }\n\n &-active {\n right: 0;\n\n .shopcart-footer {\n right: 0;\n }\n }\n }\n}\n</style>\n\n\n"],"names":["shopcart.getters","shopcart.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAsEgB,aAAU;AACxB,UAAM,SAAS,UAAW;AAE1B,UAAM,iBAAiBA,QAAiB;AACxC,UAAM,kBAAkBA,QAAiB;AAYzC,UAAM,OAAO;AAAA,MACX,UAAU;AAAA,QACR,IAAI;AAAA,UACF,OAAO;AAAA,UACP,UAAU;AAAA,UACV,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,SAAS;AAAA,UACT,WAAW;AAAA,QACZ;AAAA,QACD,IAAI;AAAA,UACF,OAAO;AAAA,UACP,UAAU;AAAA,UACV,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,SAAS;AAAA,UACT,WAAW;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAED,UAAM,EAAE,EAAC,IAAK,QAAQ,IAAI;AAI1B,aAAS,YAAY;AAGnB,aAAO,KAAK,EAAC,MAAM,aAAY,CAAC;AAChCC,cAAiB,eAAc;AAAA,IAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ShopCart.vue.js","sources":["../../../../../../../src/modules/orders/components/partials/ShopCart.vue"],"sourcesContent":["<template>\n\t<section class=\"z-index-4 transition-cubic pd-big bg-white shop-cart\" :class=\"{'shop-cart-active':shopcart.state.currentState === true}\">\n <!-- ---------------------------------------------------------------- -->\n <!-- 01. Popup Header -->\n <!-- ---------------------------------------------------------------- -->\n <div class=\"flex-nowrap flex\">\n <div class=\"mn-b-small w-100\">\n <h4 class=\"mn-b-thin p-big\">{{t('title')}}</h4>\n <p class=\"t-transp p-small\">{{t('subtitle')}} {{ t('positions', { count: StoreCartAmount }) }}</p>\n </div>\n <IconCross @click=\"shopcart.actions.toggleShopcart\" class=\"button-icon\"/>\n </div>\n <!-- ---------------------------------------------------------------- -->\n <!-- 02. Popup Content -->\n <!-- ---------------------------------------------------------------- -->\n <div class=\"mn-b-big shopcart-content\">\n <!-- Empty State -->\n <p v-if=\"!(shopcart.state.positions.length > 0)\" class=\"mn-t-medium\"><i>{{t('emptystate')}}</i></p>\n <!-- Shopcart positions -->\n <CardOrderItem \n v-for=\"product in shopcart.state.positions\" \n :key=\"product._id\" \n :editable=\"true\" \n :product=\"product\" \n :increase=\"product => shopcart.actions.incrementItemQuantity(product._id)\"\n :decrease=\"product => shopcart.actions.decrementItemQuantity(product._id)\"\n :remove=\"product => shopcart.actions.removeProduct(product._id)\"\n />\n </div>\n <!-- ---------------------------------------------------------------- -->\n <!-- 03. Footer -->\n <!-- ---------------------------------------------------------------- -->\n <div class=\"shopcart-footer pd-b-medium pd-t-medium pd-big transition-cubic bg-light t-black\">\n <div v-if=\"shopcart.state.positions.length > 0\" class=\"mn-b-small total-price\">\n <p class=\"t-transp mn-b-micro\">{{ t('intotal') }}</p>\n <p class=\"t-demi p-big\">{{cartTotalPrice}} {{returnCurrency()}}</p>\n </div>\n <button v-if=\"shopcart.state.positions.length > 0\" @click=\"openOrder()\" class=\"bg-main t-black w-100 button\">{{ t('fastorder') }}</button>\n </div> \n </section>\n <!-- ---------------------------------------------------------------- -->\n <!-- 04. Color Overlay -->\n <!-- ---------------------------------------------------------------- -->\n <div \n @click=\"shopcart.actions.toggleShopcart\" \n :class=\"{'active':shopcart.state.currentState === true}\" \n class=\"color-overlay z-index-3\">\n </div>\n</template>\n\n\n<script setup>\n /////////////////////////////\n // COMPONENT DEPENDENCIES\n /////////////////////////////\n\timport { computed,onMounted } from 'vue'\n // Route\n import { useRouter,useRoute } from 'vue-router'\n // i18n\n import { useI18n } from 'vue-i18n'\n // Components\n import CardOrderItem from '@pf/src/modules/orders/components/blocks/CardOrderItem.vue';\n\n import IconCross from '@pf/src/modules/icons/navigation/IconCross.vue';\n\n\n import * as shopcart from '@pf/src/modules/orders/store/shopcart';\n /////////////////////////////\n // CREATED\n /////////////////////////////\n const route = useRoute()\n const router = useRouter()\n // Accessing state\n const cartTotalPrice = shopcart.getters.cartTotalPrice\n const StoreCartAmount = shopcart.getters.cartTotalAmount\n // \n // router.beforeEach((to, from, next) => {\n // if (shopcart.state.currentState === true) {\n // shopcart.actions.toggleShopcart();\n // }\n // next(); // Убедитесь, что вызываете next() для продолжения перехода по роуту\n // });\n\n /////////////////////////////\n // LOCALIZATION\n /////////////////////////////\n const text = {\n messages: {\n en: {\n title: 'Your order',\n subtitle: 'You have',\n positions: 'no products in shop cart | 1 product in shop cart | {count} products in shop card',\n emptystate: \"You don't have any positions in your shop cart yet. Maybe something needs to be added?\",\n intotal: 'In total',\n fastorder: 'Checkout'\n },\n ru: {\n title: 'Ваш заказ',\n subtitle: 'У вас',\n positions: 'нет товаров в корзине | 1 товар в корзине | {count} товаров в корзине',\n emptystate: \"У вас еще нет товаров в корзине. Может стоит что-нибудь добавить?\",\n intotal: 'Итого',\n fastorder: 'Подтвердить заказ'\n }\n }\n }\n\n const { t } = useI18n(text)\n /////////////////////////////\n // MOUNTED\n /////////////////////////////\n function openOrder() {\n // store.dispatch(\"shopcart/toggleShopCart\");\n // store.dispatch(\"shopcart/setSearch\");\n router.push({name: 'Form Order'})\n shopcart.actions.toggleShopcart();\n }\n</script>\n\n<style lang=\"scss\">\n.shop-cart {\n display: block;\n position: fixed;\n\n right: -33%;\n top: 0;\n\n height: 100%;\n width: 33%;\n\n overflow-y: scroll; \n\n .shopcart-footer {\n position: fixed;\n bottom: 0;\n \n width: 33%;\n right: -33%;\n }\n}\n\n.shop-cart-active {\n right: 0;\n\n .shopcart-footer {\n right: 0;\n }\n}\n\n@media screen and (max-width: 1025px) {\n .shop-cart {\n width: 100%;\n right: -100%;\n\n .shopcart-footer {\n width: 100%;\n right: -100%;\n }\n\n &-active {\n right: 0;\n\n .shopcart-footer {\n right: 0;\n }\n }\n }\n}\n</style>\n\n\n"],"names":["shopcart.getters","shopcart.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAsEgB,aAAU;AACxB,UAAM,SAAS,UAAW;AAE1B,UAAM,iBAAiBA,QAAiB;AACxC,UAAM,kBAAkBA,QAAiB;AAYzC,UAAM,OAAO;AAAA,MACX,UAAU;AAAA,QACR,IAAI;AAAA,UACF,OAAO;AAAA,UACP,UAAU;AAAA,UACV,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,SAAS;AAAA,UACT,WAAW;AAAA,QACZ;AAAA,QACD,IAAI;AAAA,UACF,OAAO;AAAA,UACP,UAAU;AAAA,UACV,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,SAAS;AAAA,UACT,WAAW;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAED,UAAM,EAAE,EAAC,IAAK,QAAQ,IAAI;AAI1B,aAAS,YAAY;AAGnB,aAAO,KAAK,EAAC,MAAM,aAAY,CAAC;AAChCC,cAAiB,eAAc;AAAA,IAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,11 +3,11 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  const vueRouter = require("vue-router");
5
5
  const Block = require("../../../../components/Block/Block.vue.cjs");
6
- ;/* empty css */
6
+ ;/* empty css */
7
7
  const clickOutside = require("../../../../components/FieldPhone/click-outside.cjs");
8
8
  ;/* empty css */
9
9
  const Feed = require("../../../../components/Feed/Feed.vue.cjs");
10
- const Button = require("../../../../components/Button/Button.vue2.cjs");
10
+ const Button = require("../../../../components/Button/Button.vue.cjs");
11
11
  const BlockSearch = require("../../../globals/views/components/blocks/BlockSearch.vue.cjs");
12
12
  const CardUser = require("../../../users/components/blocks/CardUser.vue.cjs");
13
13
  const FormCustomerDetails = require("./FormCustomerDetails.vue.cjs");
@@ -1,11 +1,11 @@
1
1
  import { ref, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, withDirectives, createBlock, isRef, renderList, createCommentVNode, createTextVNode } from "vue";
2
2
  import { useRoute } from "vue-router";
3
3
  import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
4
- /* empty css */
4
+ /* empty css */
5
5
  import clickOutside from "../../../../components/FieldPhone/click-outside.js";
6
6
  /* empty css */
7
7
  import _sfc_main$4 from "../../../../components/Feed/Feed.vue.js";
8
- import _sfc_main$6 from "../../../../components/Button/Button.vue2.js";
8
+ import _sfc_main$6 from "../../../../components/Button/Button.vue.js";
9
9
  import _sfc_main$2 from "../../../globals/views/components/blocks/BlockSearch.vue.js";
10
10
  import _sfc_main$3 from "../../../users/components/blocks/CardUser.vue.js";
11
11
  import _sfc_main$5 from "./FormCustomerDetails.vue.js";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const Block = require("../../../../components/Block/Block.vue.cjs");
5
- const Field = require("../../../../components/Field/Field.vue2.cjs");
5
+ const Field = require("../../../../components/Field/Field.vue.cjs");
6
6
  const FieldPhone = require("../../../../components/FieldPhone/FieldPhone.vue.cjs");
7
7
  const Select = require("../../../../components/Select/Select.vue2.cjs");
8
8
  const _hoisted_1 = { class: "gap-thin flex-justify-between flex-nowrap flex" };
@@ -1,6 +1,6 @@
1
1
  import { ref, openBlock, createBlock, withCtx, createVNode, createElementVNode, unref, isRef } from "vue";
2
2
  import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
3
- import Field from "../../../../components/Field/Field.vue2.js";
3
+ import Field from "../../../../components/Field/Field.vue.js";
4
4
  import _sfc_main$2 from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
5
  import Select from "../../../../components/Select/Select.vue2.js";
6
6
  const _hoisted_1 = { class: "gap-thin flex-justify-between flex-nowrap flex" };
@@ -6,7 +6,7 @@ const Block = require("../../../../components/Block/Block.vue.cjs");
6
6
  const Address = require("../../../../components/Address/Address.vue2.cjs");
7
7
  const LocationMarker = require("../../../../components/LocationMarker/LocationMarker.vue2.cjs");
8
8
  const Radio = require("../../../../components/Radio/Radio.vue.cjs");
9
- const Field = require("../../../../components/Field/Field.vue2.cjs");
9
+ const Field = require("../../../../components/Field/Field.vue.cjs");
10
10
  const _hoisted_1 = /* @__PURE__ */ vue.createElementVNode("h4", { class: "font-second mn-b-thin" }, "Select deliverty type", -1);
11
11
  const _hoisted_2 = { class: "mn-b-small flex-nowrap flex" };
12
12
  const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("h4", { class: "font-second mn-b-thin" }, "Address", -1);
@@ -4,7 +4,7 @@ import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
4
4
  import _sfc_main$3 from "../../../../components/Address/Address.vue2.js";
5
5
  import _sfc_main$4 from "../../../../components/LocationMarker/LocationMarker.vue2.js";
6
6
  import _sfc_main$2 from "../../../../components/Radio/Radio.vue.js";
7
- import Field from "../../../../components/Field/Field.vue2.js";
7
+ import Field from "../../../../components/Field/Field.vue.js";
8
8
  const _hoisted_1 = /* @__PURE__ */ createElementVNode("h4", { class: "font-second mn-b-thin" }, "Select deliverty type", -1);
9
9
  const _hoisted_2 = { class: "mn-b-small flex-nowrap flex" };
10
10
  const _hoisted_3 = /* @__PURE__ */ createElementVNode("h4", { class: "font-second mn-b-thin" }, "Address", -1);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const Button = require("../../../../components/Button/Button.vue2.cjs");
4
+ const Button = require("../../../../components/Button/Button.vue.cjs");
5
5
  require("../../../auth/views/store/auth.cjs");
6
6
  const memberships = require("../../store/memberships.cjs");
7
7
  const _sfc_main = {
@@ -1,5 +1,5 @@
1
1
  import { openBlock, createBlock, withCtx, createTextVNode, toDisplayString } from "vue";
2
- import _sfc_main$1 from "../../../../components/Button/Button.vue2.js";
2
+ import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
3
3
  import "../../../auth/views/store/auth.js";
4
4
  import { actions } from "../../store/memberships.js";
5
5
  const _sfc_main = {
@@ -6,15 +6,15 @@ require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");
6
6
  require("vue-i18n");
7
7
  ;/* empty css */
8
8
  const UploadImage = require("../../../../components/UploadImage/UploadImage.vue.cjs");
9
- ;/* empty css */
10
- const Field = require("../../../../components/Field/Field.vue2.cjs");
9
+ ;/* empty css */
10
+ const Field = require("../../../../components/Field/Field.vue.cjs");
11
11
  ;/* empty css */
12
12
  const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
13
13
  require("../../../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");
14
14
  ;/* empty css */
15
15
  ;/* empty css */
16
16
  ;/* empty css */
17
- const Button = require("../../../../components/Button/Button.vue2.cjs");
17
+ const Button = require("../../../../components/Button/Button.vue.cjs");
18
18
  const Popup = require("../../../../components/Popup/Popup.vue2.cjs");
19
19
  const Block = require("../../../../components/Block/Block.vue.cjs");
20
20
  const Feed = require("../../../../components/Feed/Feed.vue.cjs");
@@ -4,15 +4,15 @@ import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
4
4
  import "vue-i18n";
5
5
  /* empty css */
6
6
  import _sfc_main$3 from "../../../../components/UploadImage/UploadImage.vue.js";
7
- /* empty css */
8
- import Field from "../../../../components/Field/Field.vue2.js";
7
+ /* empty css */
8
+ import Field from "../../../../components/Field/Field.vue.js";
9
9
  /* empty css */
10
10
  import _sfc_main$8 from "../../../../components/Checkbox/Checkbox.vue.js";
11
11
  import "../../../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
- import _sfc_main$1 from "../../../../components/Button/Button.vue2.js";
15
+ import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
16
16
  import _sfc_main$6 from "../../../../components/Popup/Popup.vue2.js";
17
17
  import _sfc_main$2 from "../../../../components/Block/Block.vue.js";
18
18
  import _sfc_main$7 from "../../../../components/Feed/Feed.vue.js";
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  const vueRouter = require("vue-router");
5
5
  const Feed = require("../../../../components/Feed/Feed.vue.cjs");
6
- ;/* empty css */
6
+ ;/* empty css */
7
7
  ;/* empty css */
8
8
  const Popup = require("../../../../components/Popup/Popup.vue2.cjs");
9
9
  const SectionPageTitle = require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs");
@@ -1,7 +1,7 @@
1
1
  import { ref, onMounted, computed, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createBlock, unref, Fragment, renderList, createCommentVNode, createTextVNode } from "vue";
2
2
  import { useRoute, useRouter } from "vue-router";
3
3
  import _sfc_main$4 from "../../../../components/Feed/Feed.vue.js";
4
- /* empty css */
4
+ /* empty css */
5
5
  /* empty css */
6
6
  import _sfc_main$2 from "../../../../components/Popup/Popup.vue2.js";
7
7
  import _sfc_main$1 from "../../../globals/views/components/sections/SectionPageTitle.vue.js";
@@ -4,14 +4,14 @@ const vue = require("vue");
4
4
  const vueRouter = require("vue-router");
5
5
  require("vue-i18n");
6
6
  ;/* empty css */
7
- const Tab = require("../../../../components/Tab/Tab.vue2.cjs");
7
+ const Tab = require("../../../../components/Tab/Tab.vue.cjs");
8
8
  const Block = require("../../../../components/Block/Block.vue.cjs");
9
9
  const Feed = require("../../../../components/Feed/Feed.vue.cjs");
10
10
  const CardBlogpost = require("../../../community/components/blocks/CardBlogpost.vue.cjs");
11
11
  ;/* empty css */
12
12
  require("../../../../components/Menu/MenuItem.vue.cjs");
13
13
  ;/* empty css */
14
- const DetailsTab = ;/* empty css */
14
+ const DetailsTab = require("../sections/DetailsTab.vue.cjs");
15
15
  const Feed$1 = require("../../../events/components/sections/Feed.vue.cjs");
16
16
  const CardSpot = require("../../../spots/components/blocks/CardSpot.vue.cjs");
17
17
  const Products = require("../../../products/components/pages/Products.vue.cjs");
@@ -35,6 +35,7 @@ const _sfc_main = {
35
35
  const route = vueRouter.useRoute();
36
36
  let tab = route.query.tab ? route.query.tab : "products";
37
37
  const organizationData = vue.ref(null);
38
+ const tabOrganization = vue.ref(tab);
38
39
  vue.onMounted(async () => {
39
40
  organizationData.value = await organizations.actions.read({
40
41
  _id: route.params._id,
@@ -42,15 +43,13 @@ const _sfc_main = {
42
43
  });
43
44
  await memberships.actions.read({ target: route.params._id });
44
45
  });
45
- const tabOrganization = vue.ref(tab);
46
- route.query.tab = tabOrganization.value;
47
46
  return (_ctx, _cache) => {
48
47
  const _component_router_link = vue.resolveComponent("router-link");
49
48
  return organizationData.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
50
49
  vue.createVNode(DetailsTab.default, {
51
50
  organization: organizations.state.current,
52
51
  user: auth.state.user,
53
- class: "mn-b-semi"
52
+ class: "mn-b-thin"
54
53
  }, null, 8, ["organization", "user"]),
55
54
  vue.createVNode(Tab.default, {
56
55
  selected: tabOrganization.value,
@@ -61,7 +60,7 @@ const _sfc_main = {
61
60
  { name: "Events", value: "events" },
62
61
  { name: "Spots", value: "spots" }
63
62
  ],
64
- class: "mn-b-small o-hidden h5 radius-big bg-light"
63
+ class: "mn-b-thin o-hidden h5 radius-small bg-light"
65
64
  }, null, 8, ["selected"]),
66
65
  vue.createElementVNode("div", _hoisted_2, [
67
66
  vue.createVNode(vue.Transition, { name: "slide-fade" }, {
@@ -1 +1 @@
1
- {"version":3,"file":"Organization.vue.cjs","sources":["../../../../../../../src/modules/organizations/components/pages/Organization.vue"],"sourcesContent":["<template>\n\t<div v-if=\"organizationData\" class=\"pd-thin for-transition w-100\">\n\n\t\t<!-- <Breadcrumbs class=\"mn-b-thin pd-medium bg-light radius-big\"/> -->\n\t\t<!-- <pre>{{organization.state.current}}</pre> -->\n\n\t\t<DetailsTab \t\n\t\t\t:organization=\"organization.state.current\" \n\t\t\t:user=\"auth.state.user\"\n\t\t\tclass=\"mn-b-semi\"\n\t\t/>\n\n\t\t<Tab \n\t\t\tv-model:selected=\"tabOrganization\"\n\t\t\t:tabs=\"[\n\t\t\t\t{ name: 'Community', value: 'community' },\n\t\t\t\t{ name: 'Menu', value: 'products' },\t\n\t\t\t\t{ name: 'Events', value: 'events' },\n\t\t\t\t{ name: 'Spots', value: 'spots' }\t\n\t\t\t]\"\n\t\t\tclass=\"mn-b-small o-hidden h5 radius-big bg-light\"\n\t\t/>\n\n\t\t<div class=\"pos-relative\">\n\n\t\t\t<transition name=\"slide-fade\">\n\t\t <Feed\n\t\t \tv-if=\"tabOrganization === 'community'\"\n\t\t\t :showLoadMore=\"false\"\n\t\t\t :states=\"{\n\t\t\t empty: {\n\t\t\t title: 'No Blog Posts Found',\n\t\t\t description: 'Currently, there are no posts available in this blog. Please check back later.'\n\t\t\t }\n\t\t\t }\"\n\t\t\t :store=\"{\n\t\t\t read: (options) => blog.read(options)\n\t\t\t }\"\n\t\t\t :options=\"{\n\t\t\t status: 'published',\n\t\t\t user: auth.state.user._id,\n\t\t\t owner: route.params._id,\n\t\t\t }\"\n\t\t\t v-slot=\"{ \n\t\t\t items \n\t\t\t }\"\n\t\t\t class=\"row-1 gap-thin\"\n\t\t\t >\n\t\t\t <CardBlogpost \n\t\t\t v-for=\"item in items\" \n\t\t\t :key=\"item._id\" \n\t\t\t :blogpost=\"item\" \n\t\t\t :user=\"auth.state.user._id\" \n\t\t\t class=\"h-max-40r mn-b-medium\"\n\t\t\t />\n\t\t\t </Feed>\n\t\t\t</transition>\n\n\t\n\t\t\t<transition name=\"slide-fade\">\n\t\t\t\t<FeedEvents \n\t\t\t\t\tv-if=\"tabOrganization === 'events'\"\n\t\t\t \t:user=\"auth.state.user._id\"\n\t\t\t\t\t:owner=\"route.params._id\"\n\t\t\t\t\t:sortOrder=\"'desc'\"\n\t\t\t\t\t:sortParam=\"'date.start'\"\n\t\t\t\t/>\n\t\t\t</transition>\n\n\t\t\t<Block\n\t\t\t\tv-if=\"tabOrganization === 'products' && auth.state.user._id === organization.state.current.owner\"\n\t\t\t\tclass=\"flex-nowrap\t gap-thin mn-b-small flex\"\n\t\t\t>\n\n\t\t\t\t<router-link \n\t\t\t\t\tclass=\"bg-black t-white uppercase t-semi pd-thin radius-extra \"\n\t\t\t\t\t:to=\"{\n\t\t\t\t\t\tname:'ProductAdd', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: route.params._id\n\t\t\t\t\t\t}\n\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\tAdd Product\n\t\t\t\t</router-link>\n\n\t\t\t\t<router-link \n\t\t\t\t\tclass=\" uppercase t-semi pd-thin radius-extra \"\n\t\t\t\t\t:to=\"{\n\t\t\t\t\t\tname:'Leftovers', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: route.params._id\n\t\t\t\t\t\t}\n\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\tChange Invetory\n\t\t\t\t</router-link>\n\n\t\t\t\t\n\t\t\t\t<router-link \n\t\t\t\t\tclass=\"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra \"\n\t\t\t\t\t:to=\"{\n\t\t\t\t\t\tname:'Backoffice', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: route.params._id\n\t\t\t\t\t\t}\n\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\tGo to Backoffice\n\t\t\t\t</router-link>\n\n\t\t\t</Block>\n\n\t\t\t<transition name=\"slide-fade\">\n\t\t\t\t<Products \n\t\t\t\t\tv-if=\"tabOrganization === 'products'\"\n\t\t\t\t\t:organization=\"organization.state.current\"\n\t\t\t\t/>\n\n\t\t\t</transition>\n\n\t\t\t<transition name=\"slide-fade\">\n\t\t\t\t<div v-if=\"tabOrganization === 'spots'\">\n\t\t\t\t\t<Feed\n\t\t\t :states=\"{\n\t\t\t empty: {\n\t\t\t title: 'No Spots Found',\n\t\t\t description: 'Currently, there are no spots available.'\n\t\t\t }\n\t\t\t }\"\n\t\t\t :store=\"{\n\t\t\t read: (options) => spots.actions.read(route.params._id),\n\t\t\t state: organization.state\n\t\t\t }\"\n\t\t\t :options=\"{\n\t\t\t \tuser: auth.state.user._id,\n\t\t\t\t\t\t\t\tsort: 'numberOfMemberships',\n\t\t\t\t\t\t\t\tcontain: ['blogposts'],\n\t\t\t\t\t\t\t\tlimit: 10\n\t\t\t }\"\n\t\t\t v-slot=\"{ \n\t\t\t items \n\t\t\t }\"\n\t\t\t >\n\t\t\t \t<CardSpot\n\t\t v-for=\"(spot, index) in items\"\n\t\t :key=\"index\"\n\t\t :spot=\"spot\"\n\t\t :organization=\"organization.state.current\"\n\t\t class=\"radius-big bg-light mn-b-thin\"\n\t\t />\n\t\t\t </Feed>\n\n\t\t\t <button\n\t v-if=\"auth.state.user._id === organization.state.current.owner\"\n\t @click=\"$router.push(`/spots/${organization.state.current._id}/spots/create`)\"\n\t class=\"mn-b-thin bg-main button w-100\"\n\t >\n\t Add spot\n\t </button>\n\n\t\t\t\t</div>\n\t\t\t</transition>\n\n\t\t</div>\n\t</div>\n</template>\n\n<script setup>\n\timport { computed, reactive, ref, onMounted, watch } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Import components\n\timport Breadcrumbs \tfrom '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n\timport Block \t\tfrom '@pf/src/components/Block/Block.vue'\n\timport Feed from '@pf/src/components/Feed/Feed.vue'\n\t// Community\n\t import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';\n\t// Mobile Module\n\timport Menu from '@pf/src/components/Menu/Menu.vue'\n\timport MenuItem from '@pf/src/components/Menu/MenuItem.vue'\n\t// Organizations\n\timport DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';\n\timport DetailsTab from '@pf/src/modules/organizations/components/sections/DetailsTab.vue';\n\timport User from '@pf/src/modules/users/components/blocks/CardUser.vue';\n\t// Feeds\n\timport FeedEvents from '@pf/src/modules/events/components/sections/Feed.vue'; \n\t// Spots\n\timport CardSpot from '@pf/src/modules/spots/components/blocks/CardSpot.vue';\t\n\t// Local\n\timport Products from '@pf/src/modules/products/components/pages/Products.vue';\n\t// Import state\n\timport * as auth from '@pf/src/modules/auth/views/store/auth';\n\timport * as organization from '@pf/src/modules/organizations/store/organizations';\n\timport * as memberships from '@pf/src/modules/organizations/store/memberships';\n\timport * as departments from '@pf/src/modules/organizations/store/departments';\n\t// Community\n import * as blog from '@pf/src/modules/community/store/blogposts.js';\n\t// Spots\n\timport * as spots from '@pf/src/modules/spots/store/spots';\n\t// Init router\n\tconst router \t= useRouter()\n\tconst route \t= useRoute()\n\t// Accesing state\n\tlet tab = route.query.tab ? route.query.tab : 'products';\n\n\tconst organizationData = ref(null)\n\n\tonMounted(async () => {\n\t\t\n\t\torganizationData.value = await organization.actions.read({\n\t\t\t_id: route.params._id, \n\t\t\tuser: auth.state.user._id\n\t\t})\n\n \t\tawait memberships.actions.read({target: route.params._id})\n\t})\n\n\tconst tabOrganization = ref(tab)\n\n\troute.query.tab = tabOrganization.value\n\n\t// watch(tabOrganization, (newValue) => {\n\t// router.replace({ query: null});\n\t// });\n</script>\n\n<style lang=\"scss\">\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\tposition: absolute;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n</style>\n"],"names":["useRouter","useRoute","ref","onMounted","organization.actions","auth.state","memberships.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyMiBA,wBAAW;AAC3B,UAAM,QAASC,UAAAA,SAAU;AAEzB,QAAI,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM;AAE9C,UAAM,mBAAmBC,IAAG,IAAC,IAAI;AAEjCC,QAAAA,UAAU,YAAY;AAErB,uBAAiB,QAAQ,MAAMC,cAAoB,QAAC,KAAK;AAAA,QACxD,KAAK,MAAM,OAAO;AAAA,QAClB,MAAMC,KAAAA,MAAW,KAAK;AAAA,MACzB,CAAG;AAEA,YAAMC,YAAAA,QAAoB,KAAK,EAAC,QAAQ,MAAM,OAAO,IAAG,CAAC;AAAA,IAC5D,CAAE;AAED,UAAM,kBAAkBJ,IAAG,IAAC,GAAG;AAE/B,UAAM,MAAM,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Organization.vue.cjs","sources":["../../../../../../../src/modules/organizations/components/pages/Organization.vue"],"sourcesContent":["<template>\n\t<div v-if=\"organizationData\" class=\"pd-thin for-transition w-100\">\n\n\t\t<!-- <Breadcrumbs class=\"mn-b-thin pd-medium bg-light radius-big\"/> -->\n\t\t<!-- <pre>{{organization.state.current}}</pre> -->\n\n\t\t<DetailsTab \t\n\t\t\t:organization=\"organization.state.current\" \n\t\t\t:user=\"auth.state.user\"\n\t\t\tclass=\"mn-b-thin\"\n\t\t>\n\n\t\t</DetailsTab>\n\n\t\t<Tab \n\t\t\tv-model:selected=\"tabOrganization\"\n\t\t\t:tabs=\"[\n\t\t\t\t{ name: 'Community', value: 'community' },\n\t\t\t\t{ name: 'Menu', value: 'products' },\t\n\t\t\t\t{ name: 'Events', value: 'events' },\n\t\t\t\t{ name: 'Spots', value: 'spots' }\t\n\t\t\t]\"\n\t\t\tclass=\"mn-b-thin o-hidden h5 radius-small bg-light\"\n\t\t/>\n\n\t\t<div class=\"pos-relative\">\n\n\t\t\t<transition name=\"slide-fade\">\n\t\t <Feed\n\t\t \tv-if=\"tabOrganization === 'community'\"\n\t\t\t :showLoadMore=\"false\"\n\t\t\t :states=\"{\n\t\t\t empty: {\n\t\t\t title: 'No Blog Posts Found',\n\t\t\t description: 'Currently, there are no posts available in this blog. Please check back later.'\n\t\t\t }\n\t\t\t }\"\n\t\t\t :store=\"{\n\t\t\t read: (options) => blog.read(options)\n\t\t\t }\"\n\t\t\t :options=\"{\n\t\t\t status: 'published',\n\t\t\t user: auth.state.user._id,\n\t\t\t owner: route.params._id,\n\t\t\t }\"\n\t\t\t v-slot=\"{ \n\t\t\t items \n\t\t\t }\"\n\t\t\t class=\"row-1 gap-thin\"\n\t\t\t >\n\t\t\t <CardBlogpost \n\t\t\t v-for=\"item in items\" \n\t\t\t :key=\"item._id\" \n\t\t\t :blogpost=\"item\" \n\t\t\t :user=\"auth.state.user._id\" \n\t\t\t class=\"h-max-40r mn-b-medium\"\n\t\t\t />\n\t\t\t </Feed>\n\t\t\t</transition>\n\n\t\n\t\t\t<transition name=\"slide-fade\">\n\t\t\t\t<FeedEvents \n\t\t\t\t\tv-if=\"tabOrganization === 'events'\"\n\t\t\t \t:user=\"auth.state.user._id\"\n\t\t\t\t\t:owner=\"route.params._id\"\n\t\t\t\t\t:sortOrder=\"'desc'\"\n\t\t\t\t\t:sortParam=\"'date.start'\"\n\t\t\t\t/>\n\t\t\t</transition>\n\n\t\t\t<Block\n\t\t\t\tv-if=\"tabOrganization === 'products' && auth.state.user._id === organization.state.current.owner\"\n\t\t\t\tclass=\"flex-nowrap\t gap-thin mn-b-small flex\"\n\t\t\t>\n\n\t\t\t\t<router-link \n\t\t\t\t\tclass=\"bg-black t-white uppercase t-semi pd-thin radius-extra \"\n\t\t\t\t\t:to=\"{\n\t\t\t\t\t\tname:'ProductAdd', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: route.params._id\n\t\t\t\t\t\t}\n\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\tAdd Product\n\t\t\t\t</router-link>\n\n\t\t\t\t<router-link \n\t\t\t\t\tclass=\" uppercase t-semi pd-thin radius-extra \"\n\t\t\t\t\t:to=\"{\n\t\t\t\t\t\tname:'Leftovers', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: route.params._id\n\t\t\t\t\t\t}\n\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\tChange Invetory\n\t\t\t\t</router-link>\n\n\t\t\t\t\n\t\t\t\t<router-link \n\t\t\t\t\tclass=\"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra \"\n\t\t\t\t\t:to=\"{\n\t\t\t\t\t\tname:'Backoffice', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: route.params._id\n\t\t\t\t\t\t}\n\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\tGo to Backoffice\n\t\t\t\t</router-link>\n\n\t\t\t</Block>\n\n\t\t\t<transition name=\"slide-fade\">\n\t\t\t\t<Products \n\t\t\t\t\tv-if=\"tabOrganization === 'products'\"\n\t\t\t\t\t:organization=\"organization.state.current\"\n\t\t\t\t/>\n\n\t\t\t</transition>\n\n\t\t\t<transition name=\"slide-fade\">\n\t\t\t\t<div v-if=\"tabOrganization === 'spots'\">\n\t\t\t\t\t<Feed\n\t\t\t :states=\"{\n\t\t\t empty: {\n\t\t\t title: 'No Spots Found',\n\t\t\t description: 'Currently, there are no spots available.'\n\t\t\t }\n\t\t\t }\"\n\t\t\t :store=\"{\n\t\t\t read: (options) => spots.actions.read(route.params._id),\n\t\t\t state: organization.state\n\t\t\t }\"\n\t\t\t :options=\"{\n\t\t\t \tuser: auth.state.user._id,\n\t\t\t\t\t\t\t\tsort: 'numberOfMemberships',\n\t\t\t\t\t\t\t\tcontain: ['blogposts'],\n\t\t\t\t\t\t\t\tlimit: 10\n\t\t\t }\"\n\t\t\t v-slot=\"{ \n\t\t\t items \n\t\t\t }\"\n\t\t\t >\n\t\t\t \t<CardSpot\n\t\t v-for=\"(spot, index) in items\"\n\t\t :key=\"index\"\n\t\t :spot=\"spot\"\n\t\t :organization=\"organization.state.current\"\n\t\t class=\"radius-big bg-light mn-b-thin\"\n\t\t />\n\t\t\t </Feed>\n\n\t\t\t <button\n\t v-if=\"auth.state.user._id === organization.state.current.owner\"\n\t @click=\"$router.push(`/spots/${organization.state.current._id}/spots/create`)\"\n\t class=\"mn-b-thin bg-main button w-100\"\n\t >\n\t Add spot\n\t </button>\n\n\t\t\t\t</div>\n\t\t\t</transition>\n\n\t\t</div>\n\t</div>\n</template>\n\n<script setup>\n\timport { computed, reactive, ref, onMounted, watch } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Import components\n\timport Breadcrumbs \tfrom '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n\timport Block \t\tfrom '@pf/src/components/Block/Block.vue'\n\timport Feed from '@pf/src/components/Feed/Feed.vue'\n\t// Community\n\t import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';\n\t// Mobile Module\n\timport Menu from '@pf/src/components/Menu/Menu.vue'\n\timport MenuItem from '@pf/src/components/Menu/MenuItem.vue'\n\t// Organizations\n\timport DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';\n\timport DetailsTab from '@pf/src/modules/organizations/components/sections/DetailsTab.vue';\n\timport User from '@pf/src/modules/users/components/blocks/CardUser.vue';\n\t// Feeds\n\timport FeedEvents from '@pf/src/modules/events/components/sections/Feed.vue'; \n\t// Spots\n\timport CardSpot from '@pf/src/modules/spots/components/blocks/CardSpot.vue';\t\n\t// Local\n\timport Products from '@pf/src/modules/products/components/pages/Products.vue';\n\t// Import state\n\timport * as auth from '@pf/src/modules/auth/views/store/auth';\n\timport * as organization from '@pf/src/modules/organizations/store/organizations';\n\timport * as memberships from '@pf/src/modules/organizations/store/memberships';\n\timport * as departments from '@pf/src/modules/organizations/store/departments';\n\t// Community\n import * as blog from '@pf/src/modules/community/store/blogposts.js';\n\t// Spots\n\timport * as spots from '@pf/src/modules/spots/store/spots';\n\t// Init router\n\tconst router \t= useRouter()\n\tconst route \t= useRoute()\n\t// Accesing state\n\tlet tab = route.query.tab ? route.query.tab : 'products';\n\n\tconst organizationData = ref(null)\n\tconst tabOrganization = ref(tab)\n\t// route.query.tab = tabOrganization.value\n\n\tonMounted(async () => {\n\t\t\n\t\torganizationData.value = await organization.actions.read({\n\t\t\t_id: route.params._id, \n\t\t\tuser: auth.state.user._id\n\t\t})\n\n \t\tawait memberships.actions.read({target: route.params._id})\n\t})\n\n\n\n\n\t// watch(tabOrganization, (newValue) => {\n\t// router.query.tab = newValue\n\t// });\n</script>\n\n<style lang=\"scss\">\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\tposition: absolute;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n</style>\n"],"names":["useRouter","useRoute","ref","onMounted","organization.actions","auth.state","memberships.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2MiBA,wBAAW;AAC3B,UAAM,QAASC,UAAAA,SAAU;AAEzB,QAAI,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM;AAE9C,UAAM,mBAAmBC,IAAG,IAAC,IAAI;AACjC,UAAM,kBAAkBA,IAAG,IAAC,GAAG;AAG/BC,QAAAA,UAAU,YAAY;AAErB,uBAAiB,QAAQ,MAAMC,cAAoB,QAAC,KAAK;AAAA,QACxD,KAAK,MAAM,OAAO;AAAA,QAClB,MAAMC,KAAAA,MAAW,KAAK;AAAA,MACzB,CAAG;AAEA,YAAMC,YAAAA,QAAoB,KAAK,EAAC,QAAQ,MAAM,OAAO,IAAG,CAAC;AAAA,IAC5D,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,7 +2,7 @@ import { ref, onMounted, resolveComponent, openBlock, createElementBlock, create
2
2
  import { useRouter, useRoute } from "vue-router";
3
3
  import "vue-i18n";
4
4
  /* empty css */
5
- import _sfc_main$2 from "../../../../components/Tab/Tab.vue2.js";
5
+ import _sfc_main$2 from "../../../../components/Tab/Tab.vue.js";
6
6
  import _sfc_main$6 from "../../../../components/Block/Block.vue.js";
7
7
  import _sfc_main$3 from "../../../../components/Feed/Feed.vue.js";
8
8
  import _sfc_main$4 from "../../../community/components/blocks/CardBlogpost.vue.js";
@@ -33,6 +33,7 @@ const _sfc_main = {
33
33
  const route = useRoute();
34
34
  let tab = route.query.tab ? route.query.tab : "products";
35
35
  const organizationData = ref(null);
36
+ const tabOrganization = ref(tab);
36
37
  onMounted(async () => {
37
38
  organizationData.value = await actions.read({
38
39
  _id: route.params._id,
@@ -40,15 +41,13 @@ const _sfc_main = {
40
41
  });
41
42
  await actions$1.read({ target: route.params._id });
42
43
  });
43
- const tabOrganization = ref(tab);
44
- route.query.tab = tabOrganization.value;
45
44
  return (_ctx, _cache) => {
46
45
  const _component_router_link = resolveComponent("router-link");
47
46
  return organizationData.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
48
47
  createVNode(_sfc_main$1, {
49
48
  organization: state$1.current,
50
49
  user: state.user,
51
- class: "mn-b-semi"
50
+ class: "mn-b-thin"
52
51
  }, null, 8, ["organization", "user"]),
53
52
  createVNode(_sfc_main$2, {
54
53
  selected: tabOrganization.value,
@@ -59,7 +58,7 @@ const _sfc_main = {
59
58
  { name: "Events", value: "events" },
60
59
  { name: "Spots", value: "spots" }
61
60
  ],
62
- class: "mn-b-small o-hidden h5 radius-big bg-light"
61
+ class: "mn-b-thin o-hidden h5 radius-small bg-light"
63
62
  }, null, 8, ["selected"]),
64
63
  createElementVNode("div", _hoisted_2, [
65
64
  createVNode(Transition, { name: "slide-fade" }, {
@@ -1 +1 @@
1
- {"version":3,"file":"Organization.vue.js","sources":["../../../../../../../src/modules/organizations/components/pages/Organization.vue"],"sourcesContent":["<template>\n\t<div v-if=\"organizationData\" class=\"pd-thin for-transition w-100\">\n\n\t\t<!-- <Breadcrumbs class=\"mn-b-thin pd-medium bg-light radius-big\"/> -->\n\t\t<!-- <pre>{{organization.state.current}}</pre> -->\n\n\t\t<DetailsTab \t\n\t\t\t:organization=\"organization.state.current\" \n\t\t\t:user=\"auth.state.user\"\n\t\t\tclass=\"mn-b-semi\"\n\t\t/>\n\n\t\t<Tab \n\t\t\tv-model:selected=\"tabOrganization\"\n\t\t\t:tabs=\"[\n\t\t\t\t{ name: 'Community', value: 'community' },\n\t\t\t\t{ name: 'Menu', value: 'products' },\t\n\t\t\t\t{ name: 'Events', value: 'events' },\n\t\t\t\t{ name: 'Spots', value: 'spots' }\t\n\t\t\t]\"\n\t\t\tclass=\"mn-b-small o-hidden h5 radius-big bg-light\"\n\t\t/>\n\n\t\t<div class=\"pos-relative\">\n\n\t\t\t<transition name=\"slide-fade\">\n\t\t <Feed\n\t\t \tv-if=\"tabOrganization === 'community'\"\n\t\t\t :showLoadMore=\"false\"\n\t\t\t :states=\"{\n\t\t\t empty: {\n\t\t\t title: 'No Blog Posts Found',\n\t\t\t description: 'Currently, there are no posts available in this blog. Please check back later.'\n\t\t\t }\n\t\t\t }\"\n\t\t\t :store=\"{\n\t\t\t read: (options) => blog.read(options)\n\t\t\t }\"\n\t\t\t :options=\"{\n\t\t\t status: 'published',\n\t\t\t user: auth.state.user._id,\n\t\t\t owner: route.params._id,\n\t\t\t }\"\n\t\t\t v-slot=\"{ \n\t\t\t items \n\t\t\t }\"\n\t\t\t class=\"row-1 gap-thin\"\n\t\t\t >\n\t\t\t <CardBlogpost \n\t\t\t v-for=\"item in items\" \n\t\t\t :key=\"item._id\" \n\t\t\t :blogpost=\"item\" \n\t\t\t :user=\"auth.state.user._id\" \n\t\t\t class=\"h-max-40r mn-b-medium\"\n\t\t\t />\n\t\t\t </Feed>\n\t\t\t</transition>\n\n\t\n\t\t\t<transition name=\"slide-fade\">\n\t\t\t\t<FeedEvents \n\t\t\t\t\tv-if=\"tabOrganization === 'events'\"\n\t\t\t \t:user=\"auth.state.user._id\"\n\t\t\t\t\t:owner=\"route.params._id\"\n\t\t\t\t\t:sortOrder=\"'desc'\"\n\t\t\t\t\t:sortParam=\"'date.start'\"\n\t\t\t\t/>\n\t\t\t</transition>\n\n\t\t\t<Block\n\t\t\t\tv-if=\"tabOrganization === 'products' && auth.state.user._id === organization.state.current.owner\"\n\t\t\t\tclass=\"flex-nowrap\t gap-thin mn-b-small flex\"\n\t\t\t>\n\n\t\t\t\t<router-link \n\t\t\t\t\tclass=\"bg-black t-white uppercase t-semi pd-thin radius-extra \"\n\t\t\t\t\t:to=\"{\n\t\t\t\t\t\tname:'ProductAdd', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: route.params._id\n\t\t\t\t\t\t}\n\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\tAdd Product\n\t\t\t\t</router-link>\n\n\t\t\t\t<router-link \n\t\t\t\t\tclass=\" uppercase t-semi pd-thin radius-extra \"\n\t\t\t\t\t:to=\"{\n\t\t\t\t\t\tname:'Leftovers', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: route.params._id\n\t\t\t\t\t\t}\n\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\tChange Invetory\n\t\t\t\t</router-link>\n\n\t\t\t\t\n\t\t\t\t<router-link \n\t\t\t\t\tclass=\"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra \"\n\t\t\t\t\t:to=\"{\n\t\t\t\t\t\tname:'Backoffice', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: route.params._id\n\t\t\t\t\t\t}\n\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\tGo to Backoffice\n\t\t\t\t</router-link>\n\n\t\t\t</Block>\n\n\t\t\t<transition name=\"slide-fade\">\n\t\t\t\t<Products \n\t\t\t\t\tv-if=\"tabOrganization === 'products'\"\n\t\t\t\t\t:organization=\"organization.state.current\"\n\t\t\t\t/>\n\n\t\t\t</transition>\n\n\t\t\t<transition name=\"slide-fade\">\n\t\t\t\t<div v-if=\"tabOrganization === 'spots'\">\n\t\t\t\t\t<Feed\n\t\t\t :states=\"{\n\t\t\t empty: {\n\t\t\t title: 'No Spots Found',\n\t\t\t description: 'Currently, there are no spots available.'\n\t\t\t }\n\t\t\t }\"\n\t\t\t :store=\"{\n\t\t\t read: (options) => spots.actions.read(route.params._id),\n\t\t\t state: organization.state\n\t\t\t }\"\n\t\t\t :options=\"{\n\t\t\t \tuser: auth.state.user._id,\n\t\t\t\t\t\t\t\tsort: 'numberOfMemberships',\n\t\t\t\t\t\t\t\tcontain: ['blogposts'],\n\t\t\t\t\t\t\t\tlimit: 10\n\t\t\t }\"\n\t\t\t v-slot=\"{ \n\t\t\t items \n\t\t\t }\"\n\t\t\t >\n\t\t\t \t<CardSpot\n\t\t v-for=\"(spot, index) in items\"\n\t\t :key=\"index\"\n\t\t :spot=\"spot\"\n\t\t :organization=\"organization.state.current\"\n\t\t class=\"radius-big bg-light mn-b-thin\"\n\t\t />\n\t\t\t </Feed>\n\n\t\t\t <button\n\t v-if=\"auth.state.user._id === organization.state.current.owner\"\n\t @click=\"$router.push(`/spots/${organization.state.current._id}/spots/create`)\"\n\t class=\"mn-b-thin bg-main button w-100\"\n\t >\n\t Add spot\n\t </button>\n\n\t\t\t\t</div>\n\t\t\t</transition>\n\n\t\t</div>\n\t</div>\n</template>\n\n<script setup>\n\timport { computed, reactive, ref, onMounted, watch } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Import components\n\timport Breadcrumbs \tfrom '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n\timport Block \t\tfrom '@pf/src/components/Block/Block.vue'\n\timport Feed from '@pf/src/components/Feed/Feed.vue'\n\t// Community\n\t import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';\n\t// Mobile Module\n\timport Menu from '@pf/src/components/Menu/Menu.vue'\n\timport MenuItem from '@pf/src/components/Menu/MenuItem.vue'\n\t// Organizations\n\timport DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';\n\timport DetailsTab from '@pf/src/modules/organizations/components/sections/DetailsTab.vue';\n\timport User from '@pf/src/modules/users/components/blocks/CardUser.vue';\n\t// Feeds\n\timport FeedEvents from '@pf/src/modules/events/components/sections/Feed.vue'; \n\t// Spots\n\timport CardSpot from '@pf/src/modules/spots/components/blocks/CardSpot.vue';\t\n\t// Local\n\timport Products from '@pf/src/modules/products/components/pages/Products.vue';\n\t// Import state\n\timport * as auth from '@pf/src/modules/auth/views/store/auth';\n\timport * as organization from '@pf/src/modules/organizations/store/organizations';\n\timport * as memberships from '@pf/src/modules/organizations/store/memberships';\n\timport * as departments from '@pf/src/modules/organizations/store/departments';\n\t// Community\n import * as blog from '@pf/src/modules/community/store/blogposts.js';\n\t// Spots\n\timport * as spots from '@pf/src/modules/spots/store/spots';\n\t// Init router\n\tconst router \t= useRouter()\n\tconst route \t= useRoute()\n\t// Accesing state\n\tlet tab = route.query.tab ? route.query.tab : 'products';\n\n\tconst organizationData = ref(null)\n\n\tonMounted(async () => {\n\t\t\n\t\torganizationData.value = await organization.actions.read({\n\t\t\t_id: route.params._id, \n\t\t\tuser: auth.state.user._id\n\t\t})\n\n \t\tawait memberships.actions.read({target: route.params._id})\n\t})\n\n\tconst tabOrganization = ref(tab)\n\n\troute.query.tab = tabOrganization.value\n\n\t// watch(tabOrganization, (newValue) => {\n\t// router.replace({ query: null});\n\t// });\n</script>\n\n<style lang=\"scss\">\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\tposition: absolute;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n</style>\n"],"names":["organization.actions","auth.state","memberships.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyMiB,cAAW;AAC3B,UAAM,QAAS,SAAU;AAEzB,QAAI,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM;AAE9C,UAAM,mBAAmB,IAAI,IAAI;AAEjC,cAAU,YAAY;AAErB,uBAAiB,QAAQ,MAAMA,QAAqB,KAAK;AAAA,QACxD,KAAK,MAAM,OAAO;AAAA,QAClB,MAAMC,MAAW,KAAK;AAAA,MACzB,CAAG;AAEA,YAAMC,UAAoB,KAAK,EAAC,QAAQ,MAAM,OAAO,IAAG,CAAC;AAAA,IAC5D,CAAE;AAED,UAAM,kBAAkB,IAAI,GAAG;AAE/B,UAAM,MAAM,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Organization.vue.js","sources":["../../../../../../../src/modules/organizations/components/pages/Organization.vue"],"sourcesContent":["<template>\n\t<div v-if=\"organizationData\" class=\"pd-thin for-transition w-100\">\n\n\t\t<!-- <Breadcrumbs class=\"mn-b-thin pd-medium bg-light radius-big\"/> -->\n\t\t<!-- <pre>{{organization.state.current}}</pre> -->\n\n\t\t<DetailsTab \t\n\t\t\t:organization=\"organization.state.current\" \n\t\t\t:user=\"auth.state.user\"\n\t\t\tclass=\"mn-b-thin\"\n\t\t>\n\n\t\t</DetailsTab>\n\n\t\t<Tab \n\t\t\tv-model:selected=\"tabOrganization\"\n\t\t\t:tabs=\"[\n\t\t\t\t{ name: 'Community', value: 'community' },\n\t\t\t\t{ name: 'Menu', value: 'products' },\t\n\t\t\t\t{ name: 'Events', value: 'events' },\n\t\t\t\t{ name: 'Spots', value: 'spots' }\t\n\t\t\t]\"\n\t\t\tclass=\"mn-b-thin o-hidden h5 radius-small bg-light\"\n\t\t/>\n\n\t\t<div class=\"pos-relative\">\n\n\t\t\t<transition name=\"slide-fade\">\n\t\t <Feed\n\t\t \tv-if=\"tabOrganization === 'community'\"\n\t\t\t :showLoadMore=\"false\"\n\t\t\t :states=\"{\n\t\t\t empty: {\n\t\t\t title: 'No Blog Posts Found',\n\t\t\t description: 'Currently, there are no posts available in this blog. Please check back later.'\n\t\t\t }\n\t\t\t }\"\n\t\t\t :store=\"{\n\t\t\t read: (options) => blog.read(options)\n\t\t\t }\"\n\t\t\t :options=\"{\n\t\t\t status: 'published',\n\t\t\t user: auth.state.user._id,\n\t\t\t owner: route.params._id,\n\t\t\t }\"\n\t\t\t v-slot=\"{ \n\t\t\t items \n\t\t\t }\"\n\t\t\t class=\"row-1 gap-thin\"\n\t\t\t >\n\t\t\t <CardBlogpost \n\t\t\t v-for=\"item in items\" \n\t\t\t :key=\"item._id\" \n\t\t\t :blogpost=\"item\" \n\t\t\t :user=\"auth.state.user._id\" \n\t\t\t class=\"h-max-40r mn-b-medium\"\n\t\t\t />\n\t\t\t </Feed>\n\t\t\t</transition>\n\n\t\n\t\t\t<transition name=\"slide-fade\">\n\t\t\t\t<FeedEvents \n\t\t\t\t\tv-if=\"tabOrganization === 'events'\"\n\t\t\t \t:user=\"auth.state.user._id\"\n\t\t\t\t\t:owner=\"route.params._id\"\n\t\t\t\t\t:sortOrder=\"'desc'\"\n\t\t\t\t\t:sortParam=\"'date.start'\"\n\t\t\t\t/>\n\t\t\t</transition>\n\n\t\t\t<Block\n\t\t\t\tv-if=\"tabOrganization === 'products' && auth.state.user._id === organization.state.current.owner\"\n\t\t\t\tclass=\"flex-nowrap\t gap-thin mn-b-small flex\"\n\t\t\t>\n\n\t\t\t\t<router-link \n\t\t\t\t\tclass=\"bg-black t-white uppercase t-semi pd-thin radius-extra \"\n\t\t\t\t\t:to=\"{\n\t\t\t\t\t\tname:'ProductAdd', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: route.params._id\n\t\t\t\t\t\t}\n\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\tAdd Product\n\t\t\t\t</router-link>\n\n\t\t\t\t<router-link \n\t\t\t\t\tclass=\" uppercase t-semi pd-thin radius-extra \"\n\t\t\t\t\t:to=\"{\n\t\t\t\t\t\tname:'Leftovers', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: route.params._id\n\t\t\t\t\t\t}\n\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\tChange Invetory\n\t\t\t\t</router-link>\n\n\t\t\t\t\n\t\t\t\t<router-link \n\t\t\t\t\tclass=\"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra \"\n\t\t\t\t\t:to=\"{\n\t\t\t\t\t\tname:'Backoffice', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: route.params._id\n\t\t\t\t\t\t}\n\t\t\t\t\t}\"\n\t\t\t\t\t>\n\t\t\t\t\tGo to Backoffice\n\t\t\t\t</router-link>\n\n\t\t\t</Block>\n\n\t\t\t<transition name=\"slide-fade\">\n\t\t\t\t<Products \n\t\t\t\t\tv-if=\"tabOrganization === 'products'\"\n\t\t\t\t\t:organization=\"organization.state.current\"\n\t\t\t\t/>\n\n\t\t\t</transition>\n\n\t\t\t<transition name=\"slide-fade\">\n\t\t\t\t<div v-if=\"tabOrganization === 'spots'\">\n\t\t\t\t\t<Feed\n\t\t\t :states=\"{\n\t\t\t empty: {\n\t\t\t title: 'No Spots Found',\n\t\t\t description: 'Currently, there are no spots available.'\n\t\t\t }\n\t\t\t }\"\n\t\t\t :store=\"{\n\t\t\t read: (options) => spots.actions.read(route.params._id),\n\t\t\t state: organization.state\n\t\t\t }\"\n\t\t\t :options=\"{\n\t\t\t \tuser: auth.state.user._id,\n\t\t\t\t\t\t\t\tsort: 'numberOfMemberships',\n\t\t\t\t\t\t\t\tcontain: ['blogposts'],\n\t\t\t\t\t\t\t\tlimit: 10\n\t\t\t }\"\n\t\t\t v-slot=\"{ \n\t\t\t items \n\t\t\t }\"\n\t\t\t >\n\t\t\t \t<CardSpot\n\t\t v-for=\"(spot, index) in items\"\n\t\t :key=\"index\"\n\t\t :spot=\"spot\"\n\t\t :organization=\"organization.state.current\"\n\t\t class=\"radius-big bg-light mn-b-thin\"\n\t\t />\n\t\t\t </Feed>\n\n\t\t\t <button\n\t v-if=\"auth.state.user._id === organization.state.current.owner\"\n\t @click=\"$router.push(`/spots/${organization.state.current._id}/spots/create`)\"\n\t class=\"mn-b-thin bg-main button w-100\"\n\t >\n\t Add spot\n\t </button>\n\n\t\t\t\t</div>\n\t\t\t</transition>\n\n\t\t</div>\n\t</div>\n</template>\n\n<script setup>\n\timport { computed, reactive, ref, onMounted, watch } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Import components\n\timport Breadcrumbs \tfrom '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n\timport Block \t\tfrom '@pf/src/components/Block/Block.vue'\n\timport Feed from '@pf/src/components/Feed/Feed.vue'\n\t// Community\n\t import CardBlogpost from '@pf/src/modules/community/components/blocks/CardBlogpost.vue';\n\t// Mobile Module\n\timport Menu from '@pf/src/components/Menu/Menu.vue'\n\timport MenuItem from '@pf/src/components/Menu/MenuItem.vue'\n\t// Organizations\n\timport DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';\n\timport DetailsTab from '@pf/src/modules/organizations/components/sections/DetailsTab.vue';\n\timport User from '@pf/src/modules/users/components/blocks/CardUser.vue';\n\t// Feeds\n\timport FeedEvents from '@pf/src/modules/events/components/sections/Feed.vue'; \n\t// Spots\n\timport CardSpot from '@pf/src/modules/spots/components/blocks/CardSpot.vue';\t\n\t// Local\n\timport Products from '@pf/src/modules/products/components/pages/Products.vue';\n\t// Import state\n\timport * as auth from '@pf/src/modules/auth/views/store/auth';\n\timport * as organization from '@pf/src/modules/organizations/store/organizations';\n\timport * as memberships from '@pf/src/modules/organizations/store/memberships';\n\timport * as departments from '@pf/src/modules/organizations/store/departments';\n\t// Community\n import * as blog from '@pf/src/modules/community/store/blogposts.js';\n\t// Spots\n\timport * as spots from '@pf/src/modules/spots/store/spots';\n\t// Init router\n\tconst router \t= useRouter()\n\tconst route \t= useRoute()\n\t// Accesing state\n\tlet tab = route.query.tab ? route.query.tab : 'products';\n\n\tconst organizationData = ref(null)\n\tconst tabOrganization = ref(tab)\n\t// route.query.tab = tabOrganization.value\n\n\tonMounted(async () => {\n\t\t\n\t\torganizationData.value = await organization.actions.read({\n\t\t\t_id: route.params._id, \n\t\t\tuser: auth.state.user._id\n\t\t})\n\n \t\tawait memberships.actions.read({target: route.params._id})\n\t})\n\n\n\n\n\t// watch(tabOrganization, (newValue) => {\n\t// router.query.tab = newValue\n\t// });\n</script>\n\n<style lang=\"scss\">\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\tposition: absolute;\n\t transform: translateX(20px);\n\t opacity: 0;\n\t left: 0;\n\t top: 0;\n\t}\n\n</style>\n"],"names":["organization.actions","auth.state","memberships.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2MiB,cAAW;AAC3B,UAAM,QAAS,SAAU;AAEzB,QAAI,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM;AAE9C,UAAM,mBAAmB,IAAI,IAAI;AACjC,UAAM,kBAAkB,IAAI,GAAG;AAG/B,cAAU,YAAY;AAErB,uBAAiB,QAAQ,MAAMA,QAAqB,KAAK;AAAA,QACxD,KAAK,MAAM,OAAO;AAAA,QAClB,MAAMC,MAAW,KAAK;AAAA,MACzB,CAAG;AAEA,YAAMC,UAAoB,KAAK,EAAC,QAAQ,MAAM,OAAO,IAAG,CAAC;AAAA,IAC5D,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -5,12 +5,12 @@ const vueRouter = require("vue-router");
5
5
  require("vue-i18n");
6
6
  ;/* empty css */
7
7
  const BlockTags = require("../../../../components/FieldTags/BlockTags.vue.cjs");
8
- ;/* empty css */
9
- const Field = require("../../../../components/Field/Field.vue2.cjs");
8
+ ;/* empty css */
9
+ const Field = require("../../../../components/Field/Field.vue.cjs");
10
10
  ;/* empty css */
11
11
  const SelectMulti = require("../../../../components/SelectMulti/SelectMulti.vue.cjs");
12
12
  const UploadImage = require("../../../../components/UploadImage/UploadImage.vue.cjs");
13
- const Button = require("../../../../components/Button/Button.vue2.cjs");
13
+ const Button = require("../../../../components/Button/Button.vue.cjs");
14
14
  ;/* empty css */
15
15
  const auth = require("../../../auth/views/store/auth.cjs");
16
16
  const organizations = require("../../store/organizations.cjs");
@@ -3,12 +3,12 @@ import { useRoute, useRouter } from "vue-router";
3
3
  import "vue-i18n";
4
4
  /* empty css */
5
5
  import _sfc_main$2 from "../../../../components/FieldTags/BlockTags.vue.js";
6
- /* empty css */
7
- import Field from "../../../../components/Field/Field.vue2.js";
6
+ /* empty css */
7
+ import Field from "../../../../components/Field/Field.vue.js";
8
8
  /* empty css */
9
9
  import SelectMulti from "../../../../components/SelectMulti/SelectMulti.vue.js";
10
10
  import _sfc_main$1 from "../../../../components/UploadImage/UploadImage.vue.js";
11
- import _sfc_main$3 from "../../../../components/Button/Button.vue2.js";
11
+ import _sfc_main$3 from "../../../../components/Button/Button.vue.js";
12
12
  /* empty css */
13
13
  import { state as state$1 } from "../../../auth/views/store/auth.js";
14
14
  import { actions, state } from "../../store/organizations.js";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const vueRouter = require("vue-router");
5
- const Tab = require("../../../../components/Tab/Tab.vue2.cjs");
5
+ const Tab = require("../../../../components/Tab/Tab.vue.cjs");
6
6
  const Feed = require("../sections/Feed.vue.cjs");
7
7
  const auth = require("../../../auth/views/store/auth.cjs");
8
8
  const _hoisted_1 = { class: "pd-thin" };
@@ -1,6 +1,6 @@
1
1
  import { ref, watch, openBlock, createElementBlock, createElementVNode, createVNode, Transition, withCtx, createBlock, unref, createCommentVNode } from "vue";
2
2
  import { useRoute, useRouter } from "vue-router";
3
- import _sfc_main$1 from "../../../../components/Tab/Tab.vue2.js";
3
+ import _sfc_main$1 from "../../../../components/Tab/Tab.vue.js";
4
4
  import _sfc_main$2 from "../sections/Feed.vue.js";
5
5
  import { state } from "../../../auth/views/store/auth.js";
6
6
  const _hoisted_1 = { class: "pd-thin" };