@ozdao/martyrs 0.2.430 → 0.2.431

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 (213) hide show
  1. package/dist/chats.server.js +0 -19
  2. package/dist/chats.server.mjs +0 -19
  3. package/dist/martyrs/src/components/Button/{Button.vue.cjs → Button.vue2.cjs} +2 -2
  4. package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -0
  5. package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +2 -2
  6. package/dist/martyrs/src/components/Button/{Button.vue.cjs.map → Button.vue2.js.map} +1 -1
  7. package/dist/martyrs/src/components/Chips/{Chips.vue.cjs → Chips.vue2.cjs} +2 -2
  8. package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +1 -0
  9. package/dist/martyrs/src/components/Chips/{Chips.vue.js → Chips.vue2.js} +2 -2
  10. package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +1 -0
  11. package/dist/martyrs/src/components/Menu/{Menu.vue2.cjs → Menu.vue.cjs} +2 -2
  12. package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +1 -0
  13. package/dist/martyrs/src/components/Menu/{Menu.vue2.js → Menu.vue.js} +2 -2
  14. package/dist/martyrs/src/components/Menu/Menu.vue.js.map +1 -0
  15. package/dist/martyrs/src/components/Popup/{Popup.vue2.cjs → Popup.vue.cjs} +2 -2
  16. package/dist/martyrs/src/components/Popup/{Popup.vue2.js.map → Popup.vue.cjs.map} +1 -1
  17. package/dist/martyrs/src/components/Popup/{Popup.vue2.js → Popup.vue.js} +2 -2
  18. package/dist/martyrs/src/components/Popup/Popup.vue.js.map +1 -0
  19. package/dist/martyrs/src/components/Tab/{Tab.vue.cjs → Tab.vue2.cjs} +2 -2
  20. package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +1 -0
  21. package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
  22. package/dist/martyrs/src/components/Tab/{Tab.vue.cjs.map → Tab.vue2.js.map} +1 -1
  23. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
  24. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
  25. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +2 -2
  26. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +2 -2
  27. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
  28. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +2 -2
  29. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +2 -2
  30. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +2 -2
  31. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +1 -1
  32. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
  33. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +2 -2
  34. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +2 -2
  35. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +2 -2
  36. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +2 -2
  37. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -2
  38. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
  39. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +2 -2
  40. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +2 -2
  41. package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +1 -1
  42. package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +1 -1
  43. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  44. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  45. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +3 -3
  46. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +3 -3
  47. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
  48. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  49. package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  50. package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  51. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  52. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  53. package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  54. package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  55. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
  56. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  57. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
  58. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  59. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +1 -1
  60. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -1
  61. package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +1 -1
  62. package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -1
  63. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
  64. package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
  65. package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  66. package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  67. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
  68. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  69. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  70. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
  71. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +2 -2
  72. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +2 -2
  73. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +5 -4
  74. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  75. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +5 -4
  76. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  77. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  78. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  79. package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  80. package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  81. package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
  82. package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
  83. package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.cjs +101 -0
  84. package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.cjs.map +1 -0
  85. package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js +101 -0
  86. package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js.map +1 -0
  87. package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.cjs +85 -0
  88. package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.cjs.map +1 -0
  89. package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js +85 -0
  90. package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js.map +1 -0
  91. package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.cjs +97 -0
  92. package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.cjs.map +1 -0
  93. package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js +97 -0
  94. package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js.map +1 -0
  95. package/dist/martyrs/src/modules/landing/landing.client.cjs +6 -0
  96. package/dist/martyrs/src/modules/landing/landing.client.cjs.map +1 -1
  97. package/dist/martyrs/src/modules/landing/landing.client.js +6 -0
  98. package/dist/martyrs/src/modules/landing/landing.client.js.map +1 -1
  99. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs +4 -12
  100. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs.map +1 -1
  101. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +4 -12
  102. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
  103. package/dist/martyrs/src/modules/notifications/notifications.client.cjs +135 -248
  104. package/dist/martyrs/src/modules/notifications/notifications.client.cjs.map +1 -1
  105. package/dist/martyrs/src/modules/notifications/notifications.client.js +135 -248
  106. package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
  107. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +2 -2
  108. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
  109. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  110. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
  111. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  112. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  113. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +3 -3
  114. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
  115. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  116. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
  117. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  118. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  119. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  120. package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  121. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  122. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  123. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +3 -3
  124. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  125. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +3 -3
  126. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +3 -3
  127. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +5 -5
  128. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
  129. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +5 -5
  130. package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
  131. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  132. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  133. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
  134. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  135. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  136. package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  137. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +1 -1
  138. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
  139. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
  140. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  141. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  142. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  143. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
  144. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  145. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
  146. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
  147. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  148. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  149. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
  150. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
  151. package/dist/martyrs/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  152. package/dist/martyrs/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  153. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  154. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
  155. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  156. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  157. package/dist/martyrs/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  158. package/dist/martyrs/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  159. package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  160. package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  161. package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +12 -10
  162. package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
  163. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +12 -10
  164. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
  165. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
  166. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  167. package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +1 -1
  168. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +1 -1
  169. package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  170. package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  171. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +2 -2
  172. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +2 -2
  173. package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.cjs +1 -1
  174. package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.js +1 -1
  175. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.cjs +1 -1
  176. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
  177. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs +1 -1
  178. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +1 -1
  179. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
  180. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  181. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  182. package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  183. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  184. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
  185. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
  186. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
  187. package/dist/notifications.server.js +85 -1
  188. package/dist/notifications.server.mjs +85 -1
  189. package/dist/orders.server.js +0 -27
  190. package/dist/orders.server.mjs +0 -27
  191. package/dist/style.css +101 -18
  192. package/package.json +1 -1
  193. package/src/builder/modes/ssr.dev.js +0 -20
  194. package/src/modules/chats/routes/chats.routes.js +19 -19
  195. package/src/modules/globals/controllers/utils/queryProcessor.js +1 -1
  196. package/src/modules/globals/views/components/layouts/Client.vue +6 -6
  197. package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
  198. package/src/modules/landing/landing.client.js +7 -0
  199. package/src/modules/notifications/components/elements/NotificationBadge.vue +4 -13
  200. package/src/modules/notifications/notifications.client.js +166 -350
  201. package/src/modules/notifications/services/notification.service.js +4 -3
  202. package/src/modules/notifications/services/websocket.service.js +54 -56
  203. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  204. package/src/modules/orders/controllers/orders.controller.js +1 -2
  205. package/src/modules/organizations/components/pages/Organization.vue +3 -3
  206. package/src/modules/products/components/pages/Product.vue +10 -9
  207. package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
  208. package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +0 -1
  209. package/dist/martyrs/src/components/Chips/Chips.vue.js.map +0 -1
  210. package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +0 -1
  211. package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +0 -1
  212. package/dist/martyrs/src/components/Popup/Popup.vue2.cjs.map +0 -1
  213. package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { ref, watch, onMounted, onUnmounted, resolveComponent, createElementBlock, openBlock, createCommentVNode, createBlock, createElementVNode, unref, createVNode, renderSlot, withCtx, Fragment, renderList } from "vue";
2
2
  import { useRoute, useRouter } from "vue-router";
3
- import _sfc_main$2 from "../../../../components/Tab/Tab.vue.js";
3
+ import _sfc_main$2 from "../../../../components/Tab/Tab.vue2.js";
4
4
  import _sfc_main$5 from "../../../../components/Feed/Feed.vue.js";
5
5
  /* empty css */
6
6
  import "vue-i18n";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  ;/* empty css */
5
- ;/* empty css */
5
+ ;/* empty css */
6
6
  const Field = require("../../../../components/Field/Field.vue.cjs");
7
7
  const Select = require("../../../../components/Select/Select.vue.cjs");
8
8
  const _hoisted_1 = { class: "flex-nowrap flex mn-b-small gap-thin" };
@@ -1,6 +1,6 @@
1
1
  import { createElementBlock, openBlock, Fragment, createElementVNode, createVNode, createCommentVNode, withCtx } from "vue";
2
2
  /* empty css */
3
- /* empty css */
3
+ /* empty css */
4
4
  import Field from "../../../../components/Field/Field.vue.js";
5
5
  import Select from "../../../../components/Select/Select.vue.js";
6
6
  const _hoisted_1 = { class: "flex-nowrap flex mn-b-small gap-thin" };
@@ -1,8 +1,8 @@
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.vue.cjs");
5
- const Tab = require("../../../../components/Tab/Tab.vue.cjs");
4
+ const Button = require("../../../../components/Button/Button.vue2.cjs");
5
+ const Tab = require("../../../../components/Tab/Tab.vue2.cjs");
6
6
  const IconEdit = require("../../../icons/navigation/IconEdit.vue.cjs");
7
7
  const PlaceholderImage = require("../../../icons/placeholders/PlaceholderImage.vue.cjs");
8
8
  const Images360 = require("../blocks/Images360.vue.cjs");
@@ -1,6 +1,6 @@
1
1
  import { computed, ref, createElementBlock, openBlock, createElementVNode, createBlock, createCommentVNode, createVNode, unref, toDisplayString, Transition, withCtx, Fragment, renderList, createTextVNode } from "vue";
2
- import _sfc_main$4 from "../../../../components/Button/Button.vue.js";
3
- import _sfc_main$3 from "../../../../components/Tab/Tab.vue.js";
2
+ import _sfc_main$4 from "../../../../components/Button/Button.vue2.js";
3
+ import _sfc_main$3 from "../../../../components/Tab/Tab.vue2.js";
4
4
  import _sfc_main$1 from "../../../icons/navigation/IconEdit.vue.js";
5
5
  import PlaceholderImage from "../../../icons/placeholders/PlaceholderImage.vue.js";
6
6
  import Images360 from "../blocks/Images360.vue.js";
@@ -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 Tab = require("../../../../../components/Tab/Tab.vue.cjs");
4
+ const Tab = require("../../../../../components/Tab/Tab.vue2.cjs");
5
5
  const Select = require("../../../../../components/Select/Select.vue.cjs");
6
6
  const IconChevronRight = require("../../../../icons/navigation/IconChevronRight.vue.cjs");
7
7
  const IconChevronLeft = require("../../../../icons/navigation/IconChevronLeft.vue.cjs");
@@ -1,5 +1,5 @@
1
1
  import { useCssVars, ref, computed, watch, onMounted, nextTick, createElementBlock, openBlock, createElementVNode, createVNode, withDirectives, Fragment, renderList, toDisplayString, vModelSelect, createCommentVNode, normalizeClass, normalizeStyle } from "vue";
2
- import _sfc_main$1 from "../../../../../components/Tab/Tab.vue.js";
2
+ import _sfc_main$1 from "../../../../../components/Tab/Tab.vue2.js";
3
3
  import Select from "../../../../../components/Select/Select.vue.js";
4
4
  import IconChevronRight from "../../../../icons/navigation/IconChevronRight.vue.js";
5
5
  import IconChevronLeft from "../../../../icons/navigation/IconChevronLeft.vue.js";
@@ -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 Tab = require("../../../../../components/Tab/Tab.vue.cjs");
4
+ const Tab = require("../../../../../components/Tab/Tab.vue2.cjs");
5
5
  const Feed = require("../../../../../components/Feed/Feed.vue.cjs");
6
6
  ;/* empty css */
7
7
  const GanttChart = require("./GanttChart.vue.cjs");
@@ -1,5 +1,5 @@
1
1
  import { ref, createElementBlock, openBlock, createElementVNode, createVNode, unref, toDisplayString, withCtx } from "vue";
2
- import _sfc_main$1 from "../../../../../components/Tab/Tab.vue.js";
2
+ import _sfc_main$1 from "../../../../../components/Tab/Tab.vue2.js";
3
3
  import _sfc_main$2 from "../../../../../components/Feed/Feed.vue.js";
4
4
  /* empty css */
5
5
  import GanttChart from "./GanttChart.vue.js";
@@ -4,7 +4,7 @@ const vue = require("vue");
4
4
  const Block = require("../../../../../components/Block/Block.vue.cjs");
5
5
  const Field = require("../../../../../components/Field/Field.vue.cjs");
6
6
  const Feed = require("../../../../../components/Feed/Feed.vue.cjs");
7
- const Popup = require("../../../../../components/Popup/Popup.vue2.cjs");
7
+ const Popup = require("../../../../../components/Popup/Popup.vue.cjs");
8
8
  ;/* empty css */
9
9
  ;/* empty css */
10
10
  const CardOrderItem = require("../../../../orders/components/blocks/CardOrderItem.vue.cjs");
@@ -2,7 +2,7 @@ import { ref, computed, onMounted, createElementBlock, openBlock, createElementV
2
2
  import _sfc_main$4 from "../../../../../components/Block/Block.vue.js";
3
3
  import Field from "../../../../../components/Field/Field.vue.js";
4
4
  import _sfc_main$2 from "../../../../../components/Feed/Feed.vue.js";
5
- import _sfc_main$1 from "../../../../../components/Popup/Popup.vue2.js";
5
+ import _sfc_main$1 from "../../../../../components/Popup/Popup.vue.js";
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  import _sfc_main$3 from "../../../../orders/components/blocks/CardOrderItem.vue.js";
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const Popup = require("../../../../components/Popup/Popup.vue2.cjs");
5
- const Button = require("../../../../components/Button/Button.vue.cjs");
4
+ const Popup = require("../../../../components/Popup/Popup.vue.cjs");
5
+ const Button = require("../../../../components/Button/Button.vue2.cjs");
6
6
  const Select = require("../../../../components/Select/Select.vue.cjs");
7
7
  const reports = require("../../store/reports.cjs");
8
8
  const _sfc_main = {
@@ -1,6 +1,6 @@
1
1
  import { reactive, ref, createElementBlock, openBlock, renderSlot, createVNode, withCtx, createElementVNode, createTextVNode } from "vue";
2
- import _sfc_main$1 from "../../../../components/Popup/Popup.vue2.js";
3
- import _sfc_main$2 from "../../../../components/Button/Button.vue.js";
2
+ import _sfc_main$1 from "../../../../components/Popup/Popup.vue.js";
3
+ import _sfc_main$2 from "../../../../components/Button/Button.vue2.js";
4
4
  import Select from "../../../../components/Select/Select.vue.js";
5
5
  import { actions } from "../../store/reports.js";
6
6
  const _sfc_main = {
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  const IconEdit = require("../../../icons/navigation/IconEdit.vue.cjs");
5
5
  const IconCheckmark = require("../../../icons/navigation/IconCheckmark.vue.cjs");
6
- const Chips = require("../../../../components/Chips/Chips.vue.cjs");
6
+ const Chips = require("../../../../components/Chips/Chips.vue2.cjs");
7
7
  const Map = require("../../../../components/Map/Map.vue.cjs");
8
8
  const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
9
9
  const _hoisted_1 = { class: "pos-relative cols-2-1_3" };
@@ -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.vue.js";
4
+ import _sfc_main$3 from "../../../../components/Chips/Chips.vue2.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" };
@@ -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 index = require("../../../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");
6
- const Button = require("../../../../components/Button/Button.vue.cjs");
6
+ const Button = require("../../../../components/Button/Button.vue2.cjs");
7
7
  const organizations = require("../../../organizations/store/organizations.cjs");
8
8
  const globals = require("../../../globals/views/store/globals.cjs");
9
9
  const marketplace = require("../../../marketplace/views/store/marketplace.cjs");
@@ -1,7 +1,7 @@
1
1
  import { ref, onMounted, createElementBlock, openBlock, createElementVNode, createVNode, withCtx, createTextVNode } from "vue";
2
2
  import { useRouter, useRoute } from "vue-router";
3
3
  import { Loader } from "../../../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
4
- import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
4
+ import _sfc_main$1 from "../../../../components/Button/Button.vue2.js";
5
5
  import { actions, state as state$2 } from "../../../organizations/store/organizations.js";
6
6
  import { state } from "../../../globals/views/store/globals.js";
7
7
  import { state as state$1 } from "../../../marketplace/views/store/marketplace.js";
@@ -4,15 +4,15 @@ 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");
11
11
  const Address = require("../../../../components/Address/Address.vue2.cjs");
12
12
  const LocationMarker = require("../../../../components/LocationMarker/LocationMarker.vue2.cjs");
13
- const Button = require("../../../../components/Button/Button.vue.cjs");
13
+ const Button = require("../../../../components/Button/Button.vue2.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,15 +2,15 @@ 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";
9
9
  import _sfc_main$5 from "../../../../components/Address/Address.vue2.js";
10
10
  import _sfc_main$6 from "../../../../components/LocationMarker/LocationMarker.vue2.js";
11
- import _sfc_main$2 from "../../../../components/Button/Button.vue.js";
11
+ import _sfc_main$2 from "../../../../components/Button/Button.vue2.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" };
@@ -8,6 +8,89 @@ require("dotenv");
8
8
  require("nodemailer");
9
9
  require("axios");
10
10
  const globals_abac = require("./globals.abac-DT0VjfaZ.js");
11
+ var websocket_service;
12
+ var hasRequiredWebsocket_service;
13
+ function requireWebsocket_service() {
14
+ if (hasRequiredWebsocket_service) return websocket_service;
15
+ hasRequiredWebsocket_service = 1;
16
+ const WebSocketService = (wss) => {
17
+ const connections = /* @__PURE__ */ new Map();
18
+ const addConnection = (userId, ws) => {
19
+ if (!connections.has(userId)) {
20
+ connections.set(userId, /* @__PURE__ */ new Set());
21
+ }
22
+ connections.get(userId).add(ws);
23
+ ws.on("close", () => {
24
+ removeConnection(userId, ws);
25
+ });
26
+ };
27
+ const removeConnection = (userId, ws) => {
28
+ if (connections.has(userId)) {
29
+ connections.get(userId).delete(ws);
30
+ if (connections.get(userId).size === 0) {
31
+ connections.delete(userId);
32
+ }
33
+ }
34
+ };
35
+ const sendToUser = (userId, data) => {
36
+ return new Promise((resolve) => {
37
+ try {
38
+ if (!connections.has(userId)) {
39
+ return resolve({ delivered: false, reason: "user-not-connected" });
40
+ }
41
+ const userSockets = connections.get(userId);
42
+ let delivered = 0;
43
+ userSockets.forEach((ws) => {
44
+ if (ws.readyState === 1) {
45
+ ws.send(JSON.stringify({
46
+ type: "notification",
47
+ data
48
+ }));
49
+ delivered++;
50
+ }
51
+ });
52
+ console.log(userSockets);
53
+ resolve({ delivered: delivered > 0, connections: delivered });
54
+ } catch (error) {
55
+ console.error("Ошибка отправки уведомления:", error);
56
+ resolve({ delivered: false, reason: "error", error: error.message });
57
+ }
58
+ });
59
+ };
60
+ const broadcast = (data) => {
61
+ return new Promise((resolve) => {
62
+ let count = 0;
63
+ wss.clients.forEach((ws) => {
64
+ if (ws.readyState === 1) {
65
+ try {
66
+ ws.send(JSON.stringify({
67
+ type: "notification",
68
+ data
69
+ }));
70
+ count++;
71
+ } catch (e) {
72
+ console.error("Ошибка рассылки клиенту:", e);
73
+ }
74
+ }
75
+ });
76
+ resolve({ delivered: count > 0, connections: count });
77
+ });
78
+ };
79
+ wss.on("connection", (ws, req) => {
80
+ if (req.userId) {
81
+ addConnection(req.userId, ws);
82
+ }
83
+ });
84
+ return {
85
+ addConnection,
86
+ removeConnection,
87
+ sendToUser,
88
+ broadcast
89
+ };
90
+ };
91
+ websocket_service = WebSocketService;
92
+ return websocket_service;
93
+ }
11
94
  var apns_service;
12
95
  var hasRequiredApns_service;
13
96
  function requireApns_service() {
@@ -252,8 +335,9 @@ function requireNotification_service() {
252
335
  );
253
336
  }
254
337
  };
338
+ const webSocketService = requireWebsocket_service()(wss);
255
339
  const sendWebNotification = async (notification, user) => {
256
- return wss.sendToUser(user._id, {
340
+ return webSocketService.sendToUser(user._id, {
257
341
  type: "notification",
258
342
  data: notification
259
343
  });
@@ -7,6 +7,89 @@ import "dotenv";
7
7
  import "nodemailer";
8
8
  import "axios";
9
9
  import { r as requireGlobals_abac } from "./globals.abac-CvmZM8XG.mjs";
10
+ var websocket_service;
11
+ var hasRequiredWebsocket_service;
12
+ function requireWebsocket_service() {
13
+ if (hasRequiredWebsocket_service) return websocket_service;
14
+ hasRequiredWebsocket_service = 1;
15
+ const WebSocketService = (wss) => {
16
+ const connections = /* @__PURE__ */ new Map();
17
+ const addConnection = (userId, ws) => {
18
+ if (!connections.has(userId)) {
19
+ connections.set(userId, /* @__PURE__ */ new Set());
20
+ }
21
+ connections.get(userId).add(ws);
22
+ ws.on("close", () => {
23
+ removeConnection(userId, ws);
24
+ });
25
+ };
26
+ const removeConnection = (userId, ws) => {
27
+ if (connections.has(userId)) {
28
+ connections.get(userId).delete(ws);
29
+ if (connections.get(userId).size === 0) {
30
+ connections.delete(userId);
31
+ }
32
+ }
33
+ };
34
+ const sendToUser = (userId, data) => {
35
+ return new Promise((resolve) => {
36
+ try {
37
+ if (!connections.has(userId)) {
38
+ return resolve({ delivered: false, reason: "user-not-connected" });
39
+ }
40
+ const userSockets = connections.get(userId);
41
+ let delivered = 0;
42
+ userSockets.forEach((ws) => {
43
+ if (ws.readyState === 1) {
44
+ ws.send(JSON.stringify({
45
+ type: "notification",
46
+ data
47
+ }));
48
+ delivered++;
49
+ }
50
+ });
51
+ console.log(userSockets);
52
+ resolve({ delivered: delivered > 0, connections: delivered });
53
+ } catch (error) {
54
+ console.error("Ошибка отправки уведомления:", error);
55
+ resolve({ delivered: false, reason: "error", error: error.message });
56
+ }
57
+ });
58
+ };
59
+ const broadcast = (data) => {
60
+ return new Promise((resolve) => {
61
+ let count = 0;
62
+ wss.clients.forEach((ws) => {
63
+ if (ws.readyState === 1) {
64
+ try {
65
+ ws.send(JSON.stringify({
66
+ type: "notification",
67
+ data
68
+ }));
69
+ count++;
70
+ } catch (e) {
71
+ console.error("Ошибка рассылки клиенту:", e);
72
+ }
73
+ }
74
+ });
75
+ resolve({ delivered: count > 0, connections: count });
76
+ });
77
+ };
78
+ wss.on("connection", (ws, req) => {
79
+ if (req.userId) {
80
+ addConnection(req.userId, ws);
81
+ }
82
+ });
83
+ return {
84
+ addConnection,
85
+ removeConnection,
86
+ sendToUser,
87
+ broadcast
88
+ };
89
+ };
90
+ websocket_service = WebSocketService;
91
+ return websocket_service;
92
+ }
10
93
  var apns_service;
11
94
  var hasRequiredApns_service;
12
95
  function requireApns_service() {
@@ -251,8 +334,9 @@ function requireNotification_service() {
251
334
  );
252
335
  }
253
336
  };
337
+ const webSocketService = requireWebsocket_service()(wss);
254
338
  const sendWebNotification = async (notification, user) => {
255
- return wss.sendToUser(user._id, {
339
+ return webSocketService.sendToUser(user._id, {
256
340
  type: "notification",
257
341
  data: notification
258
342
  });
@@ -241,24 +241,6 @@ function requireOrders_controller() {
241
241
  hasRequiredOrders_controller = 1;
242
242
  const queryProcessorGlobals = queryProcessor.requireQueryProcessor();
243
243
  const { sendChatMessageTelegram } = mailing.requireMailing();
244
- function formatPositions(positions) {
245
- return positions.map((pos) => `🔹 ${pos.name} - Price: $${pos.price}, Quantity: ${pos.quantity}`).join("\n");
246
- }
247
- function formatOrderMessage(order) {
248
- return `
249
- 🆕 New Order Received!
250
- 👤 Customer: ${order.customer?.name} (${order.customer?.phone?.number ? order.customer?.phone?.number : "No phone"})
251
- 💬 Messenger: ${order.customer?.messenger ? order.customer?.messenger?.type + " " + order.customer?.messenger?.value : "None"}
252
- 🏢 Organization: ${order.organization}
253
- 📦 Positions:
254
- ${formatPositions(order.positions)}
255
- 📝 Comment: ${order.comment ? order.comment : "No comment"}
256
- 💳 Payment: ${order.payment?.type}
257
- 🚚 Delivery: ${order.delivery?.type} to ${order.delivery?.address}
258
- 📌 Status: ${order.status}
259
- 🧑 Agent: ${order.referralCode}
260
- `;
261
- }
262
244
  async function findOrCreateCustomer(Customer, customerInfo, orderOwner, orderCreator) {
263
245
  let searchCriteria = {};
264
246
  if (customerInfo.phone) {
@@ -301,14 +283,6 @@ ${formatPositions(order.positions)}
301
283
  }
302
284
  return customer;
303
285
  }
304
- async function sendOrderMessage(orderData) {
305
- try {
306
- const formattedMessage = formatOrderMessage(orderData);
307
- await sendChatMessageTelegram(process.env.TELEGRAM_BOT_USERS.split(","), formattedMessage);
308
- } catch (err) {
309
- console.error(err);
310
- }
311
- }
312
286
  const controllerFactory = (db2) => {
313
287
  const Order = db2.order;
314
288
  const Customer = db2.customer;
@@ -382,7 +356,6 @@ ${formatPositions(order.positions)}
382
356
  }
383
357
  }
384
358
  await session.commitTransaction();
385
- sendOrderMessage(orderData);
386
359
  res.status(201).send(createdOrder);
387
360
  } catch (err) {
388
361
  await session.abortTransaction();
@@ -240,24 +240,6 @@ function requireOrders_controller() {
240
240
  hasRequiredOrders_controller = 1;
241
241
  const queryProcessorGlobals = requireQueryProcessor();
242
242
  const { sendChatMessageTelegram } = requireMailing();
243
- function formatPositions(positions) {
244
- return positions.map((pos) => `🔹 ${pos.name} - Price: $${pos.price}, Quantity: ${pos.quantity}`).join("\n");
245
- }
246
- function formatOrderMessage(order) {
247
- return `
248
- 🆕 New Order Received!
249
- 👤 Customer: ${order.customer?.name} (${order.customer?.phone?.number ? order.customer?.phone?.number : "No phone"})
250
- 💬 Messenger: ${order.customer?.messenger ? order.customer?.messenger?.type + " " + order.customer?.messenger?.value : "None"}
251
- 🏢 Organization: ${order.organization}
252
- 📦 Positions:
253
- ${formatPositions(order.positions)}
254
- 📝 Comment: ${order.comment ? order.comment : "No comment"}
255
- 💳 Payment: ${order.payment?.type}
256
- 🚚 Delivery: ${order.delivery?.type} to ${order.delivery?.address}
257
- 📌 Status: ${order.status}
258
- 🧑 Agent: ${order.referralCode}
259
- `;
260
- }
261
243
  async function findOrCreateCustomer(Customer, customerInfo, orderOwner, orderCreator) {
262
244
  let searchCriteria = {};
263
245
  if (customerInfo.phone) {
@@ -300,14 +282,6 @@ ${formatPositions(order.positions)}
300
282
  }
301
283
  return customer;
302
284
  }
303
- async function sendOrderMessage(orderData) {
304
- try {
305
- const formattedMessage = formatOrderMessage(orderData);
306
- await sendChatMessageTelegram(process.env.TELEGRAM_BOT_USERS.split(","), formattedMessage);
307
- } catch (err) {
308
- console.error(err);
309
- }
310
- }
311
285
  const controllerFactory = (db2) => {
312
286
  const Order = db2.order;
313
287
  const Customer = db2.customer;
@@ -381,7 +355,6 @@ ${formatPositions(order.positions)}
381
355
  }
382
356
  }
383
357
  await session.commitTransaction();
384
- sendOrderMessage(orderData);
385
358
  res.status(201).send(createdOrder);
386
359
  } catch (err) {
387
360
  await session.abortTransaction();