@ozdao/martyrs 0.2.449 → 0.2.450

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/dist/martyrs/src/components/Button/Button.vue.cjs +1 -1
  2. package/dist/martyrs/src/components/Button/Button.vue.js +1 -1
  3. package/dist/martyrs/src/components/Chips/{Chips.vue2.cjs → Chips.vue.cjs} +2 -2
  4. package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +1 -0
  5. package/dist/martyrs/src/components/Chips/{Chips.vue2.js → Chips.vue.js} +2 -2
  6. package/dist/martyrs/src/components/Chips/Chips.vue.js.map +1 -0
  7. package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.cjs → Dropdown.vue.cjs} +2 -2
  8. package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js.map → Dropdown.vue.cjs.map} +1 -1
  9. package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js → Dropdown.vue.js} +2 -2
  10. package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +1 -0
  11. package/dist/martyrs/src/components/Feed/Feed.vue.cjs +2 -2
  12. package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -2
  13. package/dist/martyrs/src/components/Loader/{Loader.vue.cjs → Loader.vue2.cjs} +2 -2
  14. package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -0
  15. package/dist/martyrs/src/components/Loader/{Loader.vue.js → Loader.vue2.js} +2 -2
  16. package/dist/martyrs/src/components/Loader/{Loader.vue.cjs.map → Loader.vue2.js.map} +1 -1
  17. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  18. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  19. package/dist/martyrs/src/components/Menu/{Menu.vue.cjs → Menu.vue2.cjs} +2 -2
  20. package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +1 -0
  21. package/dist/martyrs/src/components/Menu/{Menu.vue.js → Menu.vue2.js} +2 -2
  22. package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +1 -0
  23. package/dist/martyrs/src/components/Popup/{Popup.vue.cjs → Popup.vue2.cjs} +2 -2
  24. package/dist/martyrs/src/components/Popup/Popup.vue2.cjs.map +1 -0
  25. package/dist/martyrs/src/components/Popup/{Popup.vue.js → Popup.vue2.js} +2 -2
  26. package/dist/martyrs/src/components/Popup/{Popup.vue.cjs.map → Popup.vue2.js.map} +1 -1
  27. package/dist/martyrs/src/components/SelectMulti/{SelectMulti.vue2.cjs → SelectMulti.vue.cjs} +2 -2
  28. package/dist/martyrs/src/components/SelectMulti/{SelectMulti.vue2.js.map → SelectMulti.vue.cjs.map} +1 -1
  29. package/dist/martyrs/src/components/SelectMulti/{SelectMulti.vue2.js → SelectMulti.vue.js} +2 -2
  30. package/dist/martyrs/src/components/SelectMulti/SelectMulti.vue.js.map +1 -0
  31. package/dist/martyrs/src/components/Slider/Slider.vue.cjs +1 -1
  32. package/dist/martyrs/src/components/Slider/Slider.vue.js +1 -1
  33. package/dist/martyrs/src/components/Tab/{Tab.vue2.cjs → Tab.vue.cjs} +2 -2
  34. package/dist/martyrs/src/components/Tab/{Tab.vue2.js.map → Tab.vue.cjs.map} +1 -1
  35. package/dist/martyrs/src/components/Tab/{Tab.vue2.js → Tab.vue.js} +2 -2
  36. package/dist/martyrs/src/components/Tab/Tab.vue.js.map +1 -0
  37. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  38. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  39. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
  40. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
  41. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
  42. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
  43. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
  44. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  45. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -3
  46. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +3 -3
  47. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +1 -1
  48. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
  49. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +1 -1
  50. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +1 -1
  51. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
  52. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
  53. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
  54. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
  55. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
  56. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
  57. package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  58. package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
  59. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  60. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  61. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +3 -3
  62. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +3 -3
  63. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  64. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  65. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs +2 -2
  66. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js +2 -2
  67. package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  68. package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  69. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +3 -3
  70. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  71. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  72. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  73. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +2 -2
  74. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +2 -2
  75. package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +1 -1
  76. package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -1
  77. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
  78. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
  79. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs +2 -2
  80. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js +2 -2
  81. package/dist/martyrs/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  82. package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
  83. package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs +1 -1
  84. package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
  85. package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  86. package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  87. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
  88. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  89. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
  90. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
  91. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +2 -2
  92. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +2 -2
  93. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
  94. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
  95. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -1
  96. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +1 -1
  97. package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
  98. package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
  99. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.cjs +1 -1
  100. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +1 -1
  101. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  102. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  103. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +3 -3
  104. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
  105. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  106. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
  107. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +2 -2
  108. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
  109. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  110. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  111. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +3 -3
  112. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  113. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +3 -3
  114. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +3 -3
  115. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +2 -2
  116. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  117. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +2 -2
  118. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
  119. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
  120. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  121. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  122. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  123. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -2
  124. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +2 -2
  125. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
  126. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  127. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
  128. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  129. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
  130. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
  131. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  132. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  133. package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  134. package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  135. package/dist/martyrs/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  136. package/dist/martyrs/src/modules/products/components/blocks/Images360.vue.js +1 -1
  137. package/dist/martyrs/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  138. package/dist/martyrs/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  139. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +2 -2
  140. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +2 -2
  141. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
  142. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  143. package/dist/martyrs/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
  144. package/dist/martyrs/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  145. package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  146. package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  147. package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +2 -2
  148. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
  149. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
  150. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  151. package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  152. package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
  153. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +1 -1
  154. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +1 -1
  155. package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  156. package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  157. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  158. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  159. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  160. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  161. package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.cjs +1 -1
  162. package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.js +1 -1
  163. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.cjs +1 -1
  164. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
  165. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs +2 -2
  166. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +2 -2
  167. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  168. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  169. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  170. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  171. package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  172. package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  173. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
  174. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
  175. package/dist/organizations.server.js +34 -33
  176. package/dist/organizations.server.mjs +34 -33
  177. package/package.json +1 -1
  178. package/src/modules/organizations/controllers/organizations.controller.js +37 -38
  179. package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +0 -1
  180. package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +0 -1
  181. package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.cjs.map +0 -1
  182. package/dist/martyrs/src/components/Loader/Loader.vue.js.map +0 -1
  183. package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +0 -1
  184. package/dist/martyrs/src/components/Menu/Menu.vue.js.map +0 -1
  185. package/dist/martyrs/src/components/Popup/Popup.vue.js.map +0 -1
  186. package/dist/martyrs/src/components/SelectMulti/SelectMulti.vue2.cjs.map +0 -1
  187. package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { createElementBlock, openBlock, createVNode, createElementVNode, createBlock, createCommentVNode, toDisplayString } from "vue";
2
2
  import _sfc_main$1 from "../../../icons/navigation/IconEdit.vue.js";
3
3
  import _sfc_main$2 from "../../../icons/navigation/IconCheckmark.vue.js";
4
- import _sfc_main$3 from "../../../../components/Chips/Chips.vue2.js";
4
+ import _sfc_main$3 from "../../../../components/Chips/Chips.vue.js";
5
5
  import Map from "../../../../components/Map/Map.vue.js";
6
6
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
7
7
  const _hoisted_1 = { class: "pos-relative cols-2-1_3" };
@@ -5,7 +5,7 @@ const vueRouter = require("vue-router");
5
5
  const vueI18n = require("vue-i18n");
6
6
  ;/* empty css */
7
7
  ;/* empty css */
8
- ;/* empty css */
8
+ ;/* empty css */
9
9
  const globals = require("../../../globals/views/store/globals.cjs");
10
10
  const categories = require("../../../products/store/categories.cjs");
11
11
  const marketplace = require("../../../marketplace/views/store/marketplace.cjs");
@@ -3,7 +3,7 @@ import { useRoute, useRouter } from "vue-router";
3
3
  import { useI18n } from "vue-i18n";
4
4
  /* empty css */
5
5
  /* empty css */
6
- /* empty css */
6
+ /* empty css */
7
7
  import { state as state$1 } from "../../../globals/views/store/globals.js";
8
8
  import { actions, state as state$2 } from "../../../products/store/categories.js";
9
9
  import { state } from "../../../marketplace/views/store/marketplace.js";
@@ -4,7 +4,7 @@ const vue = require("vue");
4
4
  const vueRouter = require("vue-router");
5
5
  const Block = require("../../../../components/Block/Block.vue.cjs");
6
6
  const UploadImage = require("../../../../components/UploadImage/UploadImage.vue.cjs");
7
- ;/* empty css */
7
+ ;/* empty css */
8
8
  const Field = require("../../../../components/Field/Field.vue.cjs");
9
9
  const Select = require("../../../../components/Select/Select.vue.cjs");
10
10
  const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
@@ -12,7 +12,7 @@ const Address = require("../../../../components/Address/Address.vue2.cjs");
12
12
  const LocationMarker = require("../../../../components/LocationMarker/LocationMarker.vue2.cjs");
13
13
  const Button = require("../../../../components/Button/Button.vue.cjs");
14
14
  require("vue-i18n");
15
- ;/* empty css */
15
+ ;/* empty css */
16
16
  const spots = require("../../store/spots.cjs");
17
17
  const _hoisted_1 = { class: "for-transition w-100 cols-1 pd-thin gap-thin" };
18
18
  const _hoisted_2 = { class: "mn-r-auto" };
@@ -2,7 +2,7 @@ import { ref, onMounted, createElementBlock, openBlock, createVNode, createEleme
2
2
  import { useRouter, useRoute } from "vue-router";
3
3
  import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
4
4
  import _sfc_main$3 from "../../../../components/UploadImage/UploadImage.vue.js";
5
- /* empty css */
5
+ /* empty css */
6
6
  import Field from "../../../../components/Field/Field.vue.js";
7
7
  import Select from "../../../../components/Select/Select.vue.js";
8
8
  import _sfc_main$4 from "../../../../components/Checkbox/Checkbox.vue.js";
@@ -10,7 +10,7 @@ import _sfc_main$5 from "../../../../components/Address/Address.vue2.js";
10
10
  import _sfc_main$6 from "../../../../components/LocationMarker/LocationMarker.vue2.js";
11
11
  import _sfc_main$2 from "../../../../components/Button/Button.vue.js";
12
12
  import "vue-i18n";
13
- /* empty css */
13
+ /* empty css */
14
14
  import { actions, state } from "../../store/spots.js";
15
15
  const _hoisted_1 = { class: "for-transition w-100 cols-1 pd-thin gap-thin" };
16
16
  const _hoisted_2 = { class: "mn-r-auto" };
@@ -445,8 +445,9 @@ function requireOrganizations_controller() {
445
445
  const savedMembership = await membership.save();
446
446
  const orgTag = `organization_${savedOrganization._id}`;
447
447
  await cache.delByTag(orgTag);
448
- const newCacheKey = JSON.stringify({ _id: savedOrganization._id });
449
- await cache.setWithTags(newCacheKey, [savedOrganization], [orgTag, "organizations"]);
448
+ const organizationObject = savedOrganization.toObject();
449
+ const newCacheKey = JSON.stringify({ id: organizationObject._id });
450
+ await cache.setWithTags(newCacheKey, [organizationObject], [orgTag, "organizations"]);
450
451
  res.status(201).json(savedOrganization);
451
452
  } catch (error) {
452
453
  console.error("Error:", error);
@@ -466,35 +467,35 @@ function requireOrganizations_controller() {
466
467
  }
467
468
  const orgTag = `organization_${organizationId}`;
468
469
  await cache.delByTag(orgTag);
470
+ const organizationObject = organization.toObject();
469
471
  const updateCacheKey = JSON.stringify({ _id: organizationId });
470
- await cache.setWithTags(updateCacheKey, [organization], [orgTag, "organizations"]);
472
+ await cache.setWithTags(updateCacheKey, [organizationObject], [orgTag, "organizations"]);
471
473
  res.status(200).json({ message: "Organization updated successfully", organization });
472
474
  } catch (error) {
473
475
  res.status(500).json({ error: error.message });
474
476
  }
475
477
  };
476
478
  const deleteOrganization = async (req, res) => {
477
- Organization.findOneAndRemove({ _id: req.params._id }).then((organization) => {
479
+ try {
480
+ const organization = await Organization.findOneAndRemove({ _id: req.params._id });
478
481
  if (!organization) {
479
482
  return res.status(404).send({ message: "Organization not found" });
480
483
  }
481
- Membership.deleteMany({ target: req.params._id }).then(() => {
482
- const newToken = jwt.sign({
483
- _id: user._id,
484
- organization: null
485
- }, process.env.SECRET_KEY, {
486
- expiresIn: 86400
487
- // 24 hours
488
- });
489
- const orgTag = `organization_${req.params._id}`;
490
- cache.delByTag(orgTag);
491
- res.send({ newToken });
492
- }).catch((err) => {
493
- res.status(500).send({ message: "Error deleting memberships: " + err.message });
484
+ await Membership.deleteMany({ target: req.params._id });
485
+ const newToken = jwt.sign({
486
+ _id: req.userId,
487
+ // Предполагаю, что req.userId доступен
488
+ organization: null
489
+ }, process.env.SECRET_KEY, {
490
+ expiresIn: 86400
491
+ // 24 hours
494
492
  });
495
- }).catch((err) => {
493
+ const orgTag = `organization_${req.params._id}`;
494
+ await cache.delByTag(orgTag);
495
+ res.send({ newToken });
496
+ } catch (err) {
496
497
  res.status(500).send({ message: err.message });
497
- });
498
+ }
498
499
  };
499
500
  const checkAccesses = async (req, res) => {
500
501
  try {
@@ -504,8 +505,8 @@ function requireOrganizations_controller() {
504
505
  if (cachedResult) {
505
506
  return res.status(200).json(cachedResult);
506
507
  }
507
- const depts = await Department.find({ "members.user": uid });
508
- const ownedOrgs = await Organization.find({ owner: uid });
508
+ const depts = await Department.find({ "members.user": uid }).lean();
509
+ const ownedOrgs = await Organization.find({ owner: uid }).lean();
509
510
  const ownedOrgIds = ownedOrgs.map((org) => org._id.toString());
510
511
  const accesses = {};
511
512
  const processAccesses = (orgId, isOwner, deptAccesses) => {
@@ -668,16 +669,16 @@ function requireMemberships_controller() {
668
669
  }
669
670
  };
670
671
  const deleteMembership = async (req, res) => {
671
- const { _id, type, target, user: user2, role } = req.body;
672
+ const { _id, type, target, user, role } = req.body;
672
673
  try {
673
- const membership = _id ? await Membership.findOneAndDelete({ _id: new ObjectId(_id) }) : await Membership.findOneAndDelete({ type, target, user: user2, role });
674
+ const membership = _id ? await Membership.findOneAndDelete({ _id: new ObjectId(_id) }) : await Membership.findOneAndDelete({ type, target, user, role });
674
675
  if (!membership) {
675
676
  return res.status(404).send({ errorCode: "MEMBERSHIP_NOT_FOUND" });
676
677
  }
677
678
  if (membership.type === "organization") {
678
679
  await Department.updateMany(
679
680
  { organization: target },
680
- { $pull: { members: { user: user2 } } }
681
+ { $pull: { members: { user } } }
681
682
  );
682
683
  }
683
684
  res.status(200).send(membership);
@@ -737,18 +738,18 @@ function requireInvites_controller() {
737
738
  const createdMemberships = [];
738
739
  try {
739
740
  for (let invite of list) {
740
- let user2 = null;
741
+ let user = null;
741
742
  if (!invite || !invite.contact) {
742
743
  continue;
743
744
  }
744
745
  if (invite.contact.includes("@")) {
745
- user2 = await User.findOne({ email: invite.contact });
746
+ user = await User.findOne({ email: invite.contact });
746
747
  } else {
747
- user2 = await User.findOne({ phone: invite.contact });
748
+ user = await User.findOne({ phone: invite.contact });
748
749
  }
749
- if (user2) {
750
+ if (user) {
750
751
  const membership = new Membership({
751
- user: user2._id,
752
+ user: user._id,
752
753
  type: "organization",
753
754
  target: req.body.owner.target,
754
755
  role: "member",
@@ -1376,7 +1377,7 @@ function requireOrganizations_policies() {
1376
1377
  }
1377
1378
  });
1378
1379
  abacAccessControl.registerGlobalPolicy("OrganizationAccessPolicy", async (context) => {
1379
- const { user: user2, resource, data, action, currentResource, req } = context;
1380
+ const { user, resource, data, action, currentResource, req } = context;
1380
1381
  if (!resource || !action) {
1381
1382
  return false;
1382
1383
  }
@@ -1395,19 +1396,19 @@ function requireOrganizations_policies() {
1395
1396
  };
1396
1397
  const orgId = findOrgId();
1397
1398
  if (orgId) {
1398
- if (user2) {
1399
+ if (user) {
1399
1400
  try {
1400
1401
  const objectId = new db.mongoose.Types.ObjectId(orgId);
1401
1402
  const isOrgOwner = await Organization.exists({
1402
1403
  _id: objectId,
1403
- owner: user2
1404
+ owner: user
1404
1405
  });
1405
1406
  if (isOrgOwner) {
1406
1407
  return true;
1407
1408
  }
1408
1409
  const departments = await Department.find({
1409
1410
  organization: objectId,
1410
- "members.user": user2
1411
+ "members.user": user
1411
1412
  });
1412
1413
  const hasAccess = departments.some((department) => {
1413
1414
  const accessRights = department.accesses?.[resource];
@@ -444,8 +444,9 @@ function requireOrganizations_controller() {
444
444
  const savedMembership = await membership.save();
445
445
  const orgTag = `organization_${savedOrganization._id}`;
446
446
  await cache.delByTag(orgTag);
447
- const newCacheKey = JSON.stringify({ _id: savedOrganization._id });
448
- await cache.setWithTags(newCacheKey, [savedOrganization], [orgTag, "organizations"]);
447
+ const organizationObject = savedOrganization.toObject();
448
+ const newCacheKey = JSON.stringify({ id: organizationObject._id });
449
+ await cache.setWithTags(newCacheKey, [organizationObject], [orgTag, "organizations"]);
449
450
  res.status(201).json(savedOrganization);
450
451
  } catch (error) {
451
452
  console.error("Error:", error);
@@ -465,35 +466,35 @@ function requireOrganizations_controller() {
465
466
  }
466
467
  const orgTag = `organization_${organizationId}`;
467
468
  await cache.delByTag(orgTag);
469
+ const organizationObject = organization.toObject();
468
470
  const updateCacheKey = JSON.stringify({ _id: organizationId });
469
- await cache.setWithTags(updateCacheKey, [organization], [orgTag, "organizations"]);
471
+ await cache.setWithTags(updateCacheKey, [organizationObject], [orgTag, "organizations"]);
470
472
  res.status(200).json({ message: "Organization updated successfully", organization });
471
473
  } catch (error) {
472
474
  res.status(500).json({ error: error.message });
473
475
  }
474
476
  };
475
477
  const deleteOrganization = async (req, res) => {
476
- Organization.findOneAndRemove({ _id: req.params._id }).then((organization) => {
478
+ try {
479
+ const organization = await Organization.findOneAndRemove({ _id: req.params._id });
477
480
  if (!organization) {
478
481
  return res.status(404).send({ message: "Organization not found" });
479
482
  }
480
- Membership.deleteMany({ target: req.params._id }).then(() => {
481
- const newToken = jwt.sign({
482
- _id: user._id,
483
- organization: null
484
- }, process.env.SECRET_KEY, {
485
- expiresIn: 86400
486
- // 24 hours
487
- });
488
- const orgTag = `organization_${req.params._id}`;
489
- cache.delByTag(orgTag);
490
- res.send({ newToken });
491
- }).catch((err) => {
492
- res.status(500).send({ message: "Error deleting memberships: " + err.message });
483
+ await Membership.deleteMany({ target: req.params._id });
484
+ const newToken = jwt.sign({
485
+ _id: req.userId,
486
+ // Предполагаю, что req.userId доступен
487
+ organization: null
488
+ }, process.env.SECRET_KEY, {
489
+ expiresIn: 86400
490
+ // 24 hours
493
491
  });
494
- }).catch((err) => {
492
+ const orgTag = `organization_${req.params._id}`;
493
+ await cache.delByTag(orgTag);
494
+ res.send({ newToken });
495
+ } catch (err) {
495
496
  res.status(500).send({ message: err.message });
496
- });
497
+ }
497
498
  };
498
499
  const checkAccesses = async (req, res) => {
499
500
  try {
@@ -503,8 +504,8 @@ function requireOrganizations_controller() {
503
504
  if (cachedResult) {
504
505
  return res.status(200).json(cachedResult);
505
506
  }
506
- const depts = await Department.find({ "members.user": uid });
507
- const ownedOrgs = await Organization.find({ owner: uid });
507
+ const depts = await Department.find({ "members.user": uid }).lean();
508
+ const ownedOrgs = await Organization.find({ owner: uid }).lean();
508
509
  const ownedOrgIds = ownedOrgs.map((org) => org._id.toString());
509
510
  const accesses = {};
510
511
  const processAccesses = (orgId, isOwner, deptAccesses) => {
@@ -667,16 +668,16 @@ function requireMemberships_controller() {
667
668
  }
668
669
  };
669
670
  const deleteMembership = async (req, res) => {
670
- const { _id, type, target, user: user2, role } = req.body;
671
+ const { _id, type, target, user, role } = req.body;
671
672
  try {
672
- const membership = _id ? await Membership.findOneAndDelete({ _id: new ObjectId(_id) }) : await Membership.findOneAndDelete({ type, target, user: user2, role });
673
+ const membership = _id ? await Membership.findOneAndDelete({ _id: new ObjectId(_id) }) : await Membership.findOneAndDelete({ type, target, user, role });
673
674
  if (!membership) {
674
675
  return res.status(404).send({ errorCode: "MEMBERSHIP_NOT_FOUND" });
675
676
  }
676
677
  if (membership.type === "organization") {
677
678
  await Department.updateMany(
678
679
  { organization: target },
679
- { $pull: { members: { user: user2 } } }
680
+ { $pull: { members: { user } } }
680
681
  );
681
682
  }
682
683
  res.status(200).send(membership);
@@ -736,18 +737,18 @@ function requireInvites_controller() {
736
737
  const createdMemberships = [];
737
738
  try {
738
739
  for (let invite of list) {
739
- let user2 = null;
740
+ let user = null;
740
741
  if (!invite || !invite.contact) {
741
742
  continue;
742
743
  }
743
744
  if (invite.contact.includes("@")) {
744
- user2 = await User.findOne({ email: invite.contact });
745
+ user = await User.findOne({ email: invite.contact });
745
746
  } else {
746
- user2 = await User.findOne({ phone: invite.contact });
747
+ user = await User.findOne({ phone: invite.contact });
747
748
  }
748
- if (user2) {
749
+ if (user) {
749
750
  const membership = new Membership({
750
- user: user2._id,
751
+ user: user._id,
751
752
  type: "organization",
752
753
  target: req.body.owner.target,
753
754
  role: "member",
@@ -1375,7 +1376,7 @@ function requireOrganizations_policies() {
1375
1376
  }
1376
1377
  });
1377
1378
  abacAccessControl.registerGlobalPolicy("OrganizationAccessPolicy", async (context) => {
1378
- const { user: user2, resource, data, action, currentResource, req } = context;
1379
+ const { user, resource, data, action, currentResource, req } = context;
1379
1380
  if (!resource || !action) {
1380
1381
  return false;
1381
1382
  }
@@ -1394,19 +1395,19 @@ function requireOrganizations_policies() {
1394
1395
  };
1395
1396
  const orgId = findOrgId();
1396
1397
  if (orgId) {
1397
- if (user2) {
1398
+ if (user) {
1398
1399
  try {
1399
1400
  const objectId = new db.mongoose.Types.ObjectId(orgId);
1400
1401
  const isOrgOwner = await Organization.exists({
1401
1402
  _id: objectId,
1402
- owner: user2
1403
+ owner: user
1403
1404
  });
1404
1405
  if (isOrgOwner) {
1405
1406
  return true;
1406
1407
  }
1407
1408
  const departments = await Department.find({
1408
1409
  organization: objectId,
1409
- "members.user": user2
1410
+ "members.user": user
1410
1411
  });
1411
1412
  const hasAccess = departments.some((department) => {
1412
1413
  const accessRights = department.accesses?.[resource];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/martyrs",
3
- "version": "0.2.449",
3
+ "version": "0.2.450",
4
4
  "description": "Fullstack framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",
@@ -84,11 +84,9 @@ const controllerFactory = (db) => {
84
84
  if(req.body._id === null) {
85
85
  delete req.body._id;
86
86
  }
87
-
88
87
  try {
89
88
  const organization = new Organization(req.body);
90
89
  const savedOrganization = await organization.save();
91
-
92
90
  const membership = new Membership({
93
91
  user: savedOrganization.owner,
94
92
  type: 'organization',
@@ -98,15 +96,18 @@ const controllerFactory = (db) => {
98
96
  });
99
97
 
100
98
  const savedMembership = await membership.save();
101
-
99
+
102
100
  // Очищаем кэш для этой организации
103
101
  const orgTag = `organization_${savedOrganization._id}`;
104
102
  await cache.delByTag(orgTag);
105
-
103
+
104
+ // Convert the Mongoose document to a plain JavaScript object before caching
105
+ const organizationObject = savedOrganization.toObject();
106
+
106
107
  // Обновляем кэш, добавляя новую организацию
107
- const newCacheKey = JSON.stringify({ _id: savedOrganization._id }); // Ключ для новой записи
108
- await cache.setWithTags(newCacheKey, [savedOrganization], [orgTag, 'organizations']);
109
-
108
+ const newCacheKey = JSON.stringify({ id: organizationObject._id });
109
+ await cache.setWithTags(newCacheKey, [organizationObject], [orgTag, 'organizations']);
110
+
110
111
  res.status(201).json(savedOrganization);
111
112
  } catch (error) {
112
113
  console.error('Error:', error);
@@ -117,7 +118,6 @@ const controllerFactory = (db) => {
117
118
  const update = async (req, res) => {
118
119
  try {
119
120
  const organizationId = req.params._id;
120
-
121
121
  const updatedData = req.body;
122
122
 
123
123
  const organization = await Organization.findByIdAndUpdate(organizationId, updatedData, {
@@ -133,9 +133,12 @@ const controllerFactory = (db) => {
133
133
  const orgTag = `organization_${organizationId}`;
134
134
  await cache.delByTag(orgTag);
135
135
 
136
+ // Преобразуем документ Mongoose в обычный объект перед кэшированием
137
+ const organizationObject = organization.toObject();
138
+
136
139
  // Обновляем кэш новой версией организации
137
- const updateCacheKey = JSON.stringify({ _id: organizationId }); // Ключ для обновленной записи
138
- await cache.setWithTags(updateCacheKey, [organization], [orgTag, 'organizations']);
140
+ const updateCacheKey = JSON.stringify({ _id: organizationId });
141
+ await cache.setWithTags(updateCacheKey, [organizationObject], [orgTag, 'organizations']);
139
142
 
140
143
  res.status(200).json({ message: 'Organization updated successfully', organization });
141
144
  } catch (error) {
@@ -144,35 +147,31 @@ const controllerFactory = (db) => {
144
147
  };
145
148
 
146
149
  const deleteOrganization = async (req, res) => {
147
- Organization.findOneAndRemove({ _id: req.params._id })
148
- .then(organization => {
149
- if (!organization) {
150
- return res.status(404).send({ message: "Organization not found" });
151
- }
150
+ try {
151
+ const organization = await Organization.findOneAndRemove({ _id: req.params._id });
152
+
153
+ if (!organization) {
154
+ return res.status(404).send({ message: "Organization not found" });
155
+ }
152
156
 
153
- // Удаление всех memberships, связанных с этой организацией
154
- Membership.deleteMany({ target: req.params._id })
155
- .then(() => {
156
- const newToken = jwt.sign({
157
- _id: user._id,
158
- organization: null
159
- }, process.env.SECRET_KEY, {
160
- expiresIn: 86400 // 24 hours
161
- });
157
+ // Удаление всех memberships, связанных с этой организацией
158
+ await Membership.deleteMany({ target: req.params._id });
159
+
160
+ const newToken = jwt.sign({
161
+ _id: req.userId, // Предполагаю, что req.userId доступен
162
+ organization: null
163
+ }, process.env.SECRET_KEY, {
164
+ expiresIn: 86400 // 24 hours
165
+ });
162
166
 
163
- // Очищаем кэш для этой организации
164
- const orgTag = `organization_${req.params._id}`;
165
- cache.delByTag(orgTag);
167
+ // Очищаем кэш для этой организации
168
+ const orgTag = `organization_${req.params._id}`;
169
+ await cache.delByTag(orgTag);
166
170
 
167
- res.send({ newToken });
168
- })
169
- .catch(err => {
170
- res.status(500).send({ message: "Error deleting memberships: " + err.message });
171
- });
172
- })
173
- .catch(err => {
174
- res.status(500).send({ message: err.message });
175
- });
171
+ res.send({ newToken });
172
+ } catch (err) {
173
+ res.status(500).send({ message: err.message });
174
+ }
176
175
  };
177
176
 
178
177
  const checkAccesses = async (req, res) => {
@@ -186,8 +185,8 @@ const controllerFactory = (db) => {
186
185
  return res.status(200).json(cachedResult);
187
186
  }
188
187
 
189
- const depts = await Department.find({ 'members.user': uid });
190
- const ownedOrgs = await Organization.find({ owner: uid });
188
+ const depts = await Department.find({ 'members.user': uid }).lean(); // Используем lean() для получения обычных объектов
189
+ const ownedOrgs = await Organization.find({ owner: uid }).lean(); // Используем lean() для получения обычных объектов
191
190
  const ownedOrgIds = ownedOrgs.map(org => org._id.toString());
192
191
 
193
192
  const accesses = {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chips.vue2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chips.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Dropdown.vue2.cjs","sources":["../../../../../src/components/Dropdown/Dropdown.vue"],"sourcesContent":["<template>\n <div class=\"dropdown pos-relative\" v-click-outside=\"clickedOutside\" @click.stop=\"isOpen = !isOpen\">\n <div v-if=\"isComponentLabel\" class=\"w-100 h-100 flex-center flex\">\n <component :is=\"label.component\" v-bind=\"label.props\" :class=\"label.class\"></component>\n </div>\n <div v-else>\n {{ label }}\n </div>\n <transition name=\"TransitionTranslateY\" mode=\"out-in\">\n <div \n v-show=\"isOpen\" \n :style=\"{ left: align === 'left' ? '0' : 'auto', right: align === 'right' ? '0' : 'auto' }\" \n class=\"dropdown-content radius-big\" \n >\n <slot></slot>\n </div>\n </transition>\n </div>\n</template>\n\n<script setup>\nimport { ref, computed } from 'vue';\nimport clickOutside from '../FieldPhone/click-outside';\n\nlet vClickOutside = clickOutside\n\nconst props = defineProps({\n label: {\n type: [String, Object],\n default: 'Open'\n },\n align: {\n type: String,\n default: 'left'\n }\n})\n\nconst isOpen = ref(false);\nconst isComponentLabel = computed(() => typeof props.label === 'object');\n\nfunction clickedOutside () {\n isOpen.value = false\n}\n</script>\n\n<style >\n.dropdown-content {\n display: block;\n position: absolute;\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n z-index: 1;\n}\n\n/*.dropdown:hover .dropdown-content {\n display: block;\n}*/\n</style>\n"],"names":["clickOutside","ref","computed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwBA,QAAI,gBAAgBA,aAAAA;AAEpB,UAAM,QAAQ;AAWd,UAAM,SAASC,IAAG,IAAC,KAAK;AACxB,UAAM,mBAAmBC,IAAAA,SAAS,MAAM,OAAO,MAAM,UAAU,QAAQ;AAEvE,aAAS,iBAAkB;AACzB,aAAO,QAAQ;AAAA,IACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Loader.vue.js","sources":["../../../../../src/components/Loader/Loader.vue"],"sourcesContent":["<template>\n <div class=\"circular-loader\" :class=\"{ 'circular-loader-centered': centered }\">\n <svg viewBox=\"25 25 50 50\">\n <circle class=\"circular-loader-fill\" cx=\"50\" cy=\"50\" r=\"20\" fill=\"none\" stroke-width=\"4\" stroke-miterlimit=\"10\" />\n <circle class=\"circular-loader-circle\" cx=\"50\" cy=\"50\" r=\"20\" fill=\"none\" stroke-width=\"4\" stroke-miterlimit=\"10\" />\n </svg>\n <div v-if=\"progress\" class=\"progress-text\">{{ progress }}</div>\n <div v-if=\"status\" class=\"uppercase t-semi w-m-10r status-text\">{{ status }}</div>\n </div>\n</template>\n\n<script>\nexport default {\n props: {\n progress: {\n type: Number,\n default: null,\n },\n status: {\n type: String,\n default: null,\n },\n centered: {\n type: Boolean,\n default: true, // По умолчанию лоадер центрирован (для обратной совместимости)\n },\n },\n};\n</script>\n\n<style>\n.circular-loader {\n position: relative;\n z-index: 50;\n height: 2rem;\n width: 2rem;\n}\n\n.circular-loader-centered {\n top: calc(50% - 1rem);\n left: calc(50% - 1rem);\n}\n\n.circular-loader svg {\n animation: rotate 2s linear infinite;\n}\n\n.circular-loader-circle {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n stroke-linecap: round;\n stroke: rgb(var(--main));\n animation: dash 1.5s ease-in-out infinite;\n}\n\n.circular-loader-fill {\n stroke-linecap: round;\n stroke: rgba(var(--black),0.2);\n}\n\n.progress-text {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 0.8rem;\n color: rgb(var(--main));;\n}\n\n.status-text {\n position: absolute;\n top: 120%;\n left: calc(50% - 5rem);\n font-size: 0.8rem;\n width: 10rem !important;\n text-align: center;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: -124;\n }\n}\n</style>"],"names":["_createElementBlock","_normalizeClass","_createElementVNode","_toDisplayString","_createCommentVNode"],"mappings":";;;AAYA,MAAK,YAAU;AAAA,EACb,OAAO;AAAA,IACL,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA;AAAA,IACV;AAAA,EACF;AACH;;EA3BA,KAAA;AAAA,EAMyB,OAAM;;;EAN/B,KAAA;AAAA,EAOuB,OAAM;;;sBAN3BA,mBAOM,OAAA;AAAA,IAPD,OADPC,eAAA,CACa,mBAAiB,EAAA,4BAAuC,OAAQ,UAAA,CAAA;AAAA;8BACzEC,mBAGM,OAAA,EAHD,SAAQ,iBAAa;AAAA,MACxBA,mBAAkH,UAAA;AAAA,QAA1G,OAAM;AAAA,QAAuB,IAAG;AAAA,QAAK,IAAG;AAAA,QAAK,GAAE;AAAA,QAAK,MAAK;AAAA,QAAO,gBAAa;AAAA,QAAI,qBAAkB;AAAA;MAC3GA,mBAAoH,UAAA;AAAA,QAA5G,OAAM;AAAA,QAAyB,IAAG;AAAA,QAAK,IAAG;AAAA,QAAK,GAAE;AAAA,QAAK,MAAK;AAAA,QAAO,gBAAa;AAAA,QAAI,qBAAkB;AAAA;;IAEpG,OAAQ,yBAAnBF,mBAA+D,OAA/D,YAA+DG,gBAAjB,OAAQ,QAAA,GAAA,CAAA,KAN1DC,mBAAA,IAAA,IAAA;AAAA,IAOe,OAAM,uBAAjBJ,mBAAkF,OAAlF,YAAkFG,gBAAf,OAAM,MAAA,GAAA,CAAA,KAP7EC,mBAAA,IAAA,IAAA;AAAA;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Menu.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Menu.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Popup.vue.js","sources":["../../../../../src/components/Popup/Popup.vue"],"sourcesContent":["<template>\n\t\t<transition name=\"moveFromTop\">\n\t\t\t<teleport to=\"body\" v-if=\"isPopupOpen\">\n\t\t\t\t<div v-if=\"isPopupOpen\" key=\"popup-content\" class=\"pd-small z-index-6 popup-wrapper\"\n\t\t\t\t\t:class=\"{\n \t\t\t\t\t'pd-t-extra': MOBILE_APP === 'ios', \n\t\t\t\t\t}\"\n\t\t\t\t>\n\n\t\t\t\t\t<transition name=\"TransitionTranslateY\" mode=\"out-in\">\n\t\t\t\t\t\t<section class=\"h-max-100 o-y-scroll pos-relative z-index-4\" v-bind=\"$attrs\" :class=\"$attrs.class\">\n\t\t\t\t\t\t\t\t<h4 v-if=\"title\" class=\"mn-b-small\">{{title}}</h4>\n\t\t\t\t\t\t\t\t<IconCross :fill=\"'rgb(var(--white))'\" @click=\"closePopup()\" class=\"cursor-pointer bg-second pd-micro radius-extra pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-medium z-index-5\"/>\n\t\t\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t\t</section> \n\t\t\t\t\t</transition>\n\n\t\t\t\t\t<div \n\t\t\t\t\t\t@click=\"closePopup()\" \n\t\t\t\t :class=\"{'active':isPopupOpen === true}\" \n\t\t\t\t class=\"color-overlay z-index-3\">\n\t\t\t\t\t</div>\n\n\t\t\t\t</div>\n\t\t</teleport>\n\t</transition>\n</template>\n\n<script setup>\nimport { computed, watch, onMounted, ref, nextTick } from 'vue';\n// Import libs\nimport { useRoute, useRouter } from 'vue-router'\nimport { useI18n } from 'vue-i18n'\n// Icons\nimport IconCross from '@martyrs/src/modules/icons/navigation/IconCross.vue';\n// Define props\nconst props = defineProps({\n isPopupOpen: {\n \ttype: Boolean,\n\t default: false\n },\n style: String,\n title: String,\n});\nconst emits = defineEmits(['close-popup'])\n\nfunction closePopup() {\n emits(\"close-popup\");\n} \n\nwatch(() => props.isPopupOpen, (newVal) => {\n if (newVal) {\n document.body.classList.add('no-scroll');\n } else {\n document.body.classList.remove('no-scroll');\n }\n});\n\n// Accessing router and store\nconst route = useRoute()\nconst router = useRouter()\n// Localization\nconst text = {\n \tmessages: {\n\t en: {},\n\t ru: {}\n\t}\n}\nconst { t } = useI18n(text)\n</script>\n\n<style lang=\"scss\">\n\t.no-scroll {\n\t overflow: hidden;\n\t}\n\n\t.popup-wrapper {\n\t\tdisplay: flex;\n\t\tposition: fixed;\n\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\tleft: 0;\n\t\ttop: 0;\n\n\t\tz-index: 40;\n\n\t\t.popup {\n\t\t\tposition: absolute;\n\t\t\theight: auto;\n\t\t\tpadding: 2rem;\n\t\t\tmin-width: 24rem;\n\t\t\tborder-radius: 2rem;\n\t\t\toverflow: hidden;\n\n\t\t\tcolor: white;\n\t\t\tbackground: black;\n\n\t\t\tz-index: 40;\n\t\t}\n\t}\n\n\t.color-overlay {\n\t\tdisplay: block;\n\t\tposition: fixed;\n\n\t\tleft: 0;\n\t\ttop: 0;\n\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\tbackground: rgba(0,0,0,0.0);\n\t\tpointer-events: none;\n\n\t\ttransform: scale(1.5);\n\n\t\ttransition: all 0.5s cubic-bezier(.31,.79,.24,.92);\n\n\t\t&.active {\n\t\t\tbackground: rgba(#000,0.25);\n\t\t\tpointer-events: all;\n\t\t}\n\t}\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoCA,UAAM,QAAQ;AAQd,UAAM,QAAQ;AAEd,aAAS,aAAa;AACpB,YAAM,aAAa;AAAA,IACrB;AAEA,UAAM,MAAM,MAAM,aAAa,CAAC,WAAW;AACzC,UAAI,QAAQ;AACV,iBAAS,KAAK,UAAU,IAAI,WAAW;AAAA,MAC3C,OAAS;AACL,iBAAS,KAAK,UAAU,OAAO,WAAW;AAAA,MAC9C;AAAA,IACA,CAAC;AAGa,aAAQ;AACP,cAAS;AAExB,UAAM,OAAO;AAAA,MACV,UAAU;AAAA,QACR,IAAI,CAAE;AAAA,QACN,IAAI,CAAA;AAAA,MACT;AAAA,IACA;AACA,UAAM,EAAE,EAAC,IAAK,QAAQ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}