@ozdao/prometheus-framework 0.2.112 → 0.2.113

Sign up to get free protection for your applications and to get access to all the features.
Files changed (515) hide show
  1. package/dist/common.schema-BFhpUXUt.js +12 -0
  2. package/dist/common.schema-ChBVARrs.mjs +13 -0
  3. package/dist/community.server.js +6 -4
  4. package/dist/community.server.mjs +4 -2
  5. package/dist/engagement.schema-CI2ifjXN.mjs +28 -0
  6. package/dist/engagement.schema-fdLNO2_6.js +27 -0
  7. package/dist/events.server.js +6 -4
  8. package/dist/events.server.mjs +4 -2
  9. package/dist/files.server.js +81 -29
  10. package/dist/files.server.mjs +81 -29
  11. package/dist/gallery.server.js +66 -39
  12. package/dist/gallery.server.mjs +66 -39
  13. package/dist/main-8APITHuW.mjs +14201 -0
  14. package/dist/main-8N2Jmsuk.js +2 -2
  15. package/dist/main-BJvlNekm.mjs +5 -5
  16. package/dist/main-BQisDfLk.js +2 -2
  17. package/dist/main-BV1Yv9Hy.js +2 -2
  18. package/dist/main-Bw0PvTs-.mjs +5 -5
  19. package/dist/main-ByCtZbHD.mjs +5 -5
  20. package/dist/main-CX2ISR43.mjs +5 -5
  21. package/dist/main-CXObXjv-.js +2 -2
  22. package/dist/main-CkeuHuCY.mjs +5 -5
  23. package/dist/main-CnfcBov2.mjs +5 -5
  24. package/dist/main-D50VqYhy.js +2 -2
  25. package/dist/main-D8gNZLSa.js +2 -2
  26. package/dist/main-DPsHxX0l.mjs +5 -5
  27. package/dist/main-DTlUA63C.mjs +5 -5
  28. package/dist/main-DfD5hLQo.mjs +5 -5
  29. package/dist/main-Dh6Zfei9.js +2 -2
  30. package/dist/main-DmNP-t33.mjs +5 -5
  31. package/dist/main-DwyUYWFX.js +2 -2
  32. package/dist/main-VcxO-jAt.js +92 -0
  33. package/dist/main-cffh4bbv.js +2 -2
  34. package/dist/main-pGo7JpSP.js +2 -2
  35. package/dist/main.css +1 -1
  36. package/dist/metadata.schema-6slGhpQS.js +40 -0
  37. package/dist/metadata.schema-CK5e2O3f.mjs +41 -0
  38. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
  39. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +410 -407
  40. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
  41. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +469 -456
  42. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  43. package/dist/node_modules/web3/lib/esm/accounts.js +5 -2
  44. package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
  45. package/dist/node_modules/web3/lib/esm/index.js +45 -42
  46. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  47. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  48. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
  49. package/dist/node_modules/web3/lib/esm/web3.js +40 -37
  50. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
  51. package/dist/node_modules/web3-core/lib/esm/web3_config.js +28 -18
  52. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  53. package/dist/node_modules/web3-core/lib/esm/web3_context.js +56 -53
  54. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  55. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +100 -87
  56. package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -1
  57. package/dist/node_modules/web3-errors/lib/esm/error_codes.js +97 -95
  58. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -1
  59. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +8 -8
  60. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -1
  61. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +20 -20
  62. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +4 -4
  63. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +2 -2
  64. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -1
  65. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +33 -27
  66. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -1
  67. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +33 -12
  68. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  69. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +183 -179
  70. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  71. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +10 -10
  72. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  73. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +45 -44
  74. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  75. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +59 -57
  76. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  77. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +43 -43
  78. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  79. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +31 -31
  80. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  81. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +26 -26
  82. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  83. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +53 -51
  84. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
  85. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +25 -23
  86. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  87. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +103 -101
  88. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +2 -2
  89. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +159 -156
  90. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  91. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +11 -8
  92. package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -1
  93. package/dist/node_modules/web3-eth-contract/lib/esm/index.js +3 -0
  94. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -1
  95. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +5 -2
  96. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  97. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +19 -16
  98. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  99. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +5 -2
  100. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  101. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +50 -47
  102. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  103. package/dist/node_modules/web3-net/lib/esm/net.js +27 -27
  104. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  105. package/dist/node_modules/web3-utils/lib/esm/converters.js +100 -83
  106. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
  107. package/dist/node_modules/web3-utils/lib/esm/formatter.js +123 -104
  108. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  109. package/dist/node_modules/web3-validator/lib/esm/utils.js +21 -21
  110. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
  111. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +10 -10
  112. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -1
  113. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +30 -28
  114. package/dist/orders.server.js +1 -1
  115. package/dist/orders.server.mjs +1 -1
  116. package/dist/organizations.server.js +56 -59
  117. package/dist/organizations.server.mjs +56 -59
  118. package/dist/products.server.js +1 -1
  119. package/dist/products.server.mjs +1 -1
  120. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  121. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +17 -17
  122. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/components/Block/Block.vue.js +4 -4
  124. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +33 -30
  126. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -9
  128. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.cjs +1 -0
  129. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.js +1 -0
  130. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -0
  131. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +165 -0
  132. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +22 -19
  134. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +132 -64
  136. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.cjs +1 -0
  137. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.js +1 -0
  138. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +9 -9
  140. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +12 -12
  142. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  143. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +16 -16
  144. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/components/Map/Map.vue.js +14 -13
  146. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +8 -8
  148. package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +29 -36
  150. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +6 -6
  154. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +17 -17
  156. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +6 -6
  158. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  160. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +24 -24
  162. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +24 -24
  164. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +10 -10
  166. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +26 -26
  168. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +14 -14
  170. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +6 -6
  172. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +45 -45
  174. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +13 -13
  176. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +5 -5
  178. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +19 -16
  180. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +3 -3
  182. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +13 -13
  184. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +213 -213
  188. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +8 -8
  190. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
  191. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +23 -23
  192. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +9 -9
  194. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +3 -3
  196. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +9 -9
  198. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +8 -8
  199. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +167 -202
  201. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +73 -165
  203. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +3 -47
  205. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  207. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.cjs +1 -0
  208. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.js +75 -0
  209. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +96 -77
  211. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -0
  212. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +1 -0
  213. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +1 -0
  214. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +27 -0
  215. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.cjs +1 -0
  216. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.js +31 -0
  217. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -19
  219. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/globals/store/globals.js +10 -4
  221. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.cjs +1 -0
  222. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.js +31 -0
  223. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.cjs +1 -0
  224. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.js +31 -0
  225. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.cjs +1 -0
  226. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.js +59 -0
  227. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -0
  228. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +80 -0
  229. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +1 -0
  230. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +1 -0
  231. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/landing/landing.client.js +8 -6
  233. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +4 -4
  235. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.js +1 -1
  237. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.js +1 -1
  239. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.js +30 -30
  243. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +21 -45
  245. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +36 -36
  247. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +1 -1
  249. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +53 -53
  251. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +33 -33
  253. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  255. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -10
  257. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +5 -5
  259. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
  261. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +24 -24
  263. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +5 -5
  265. package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -0
  266. package/dist/prometheus-framework/src/modules/orders/store/applications.js +37 -0
  267. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +5 -5
  269. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +11 -11
  271. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +16 -16
  275. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +41 -41
  277. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +9 -9
  279. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +16 -16
  281. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -36
  283. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +8 -8
  285. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  287. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +20 -20
  289. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +12 -12
  291. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +13 -13
  293. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +33 -34
  295. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +16 -16
  297. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +15 -15
  299. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +8 -8
  301. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +8 -8
  303. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +9 -9
  305. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  307. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
  309. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +6 -6
  311. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +8 -8
  313. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +14 -14
  314. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  315. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +51 -56
  316. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  317. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +4 -4
  318. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  319. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +32 -32
  320. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -1
  321. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +1 -1
  322. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
  323. package/dist/prometheus-framework/src/modules/products/products.client.js +28 -30
  324. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  325. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +12 -12
  326. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  327. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +30 -26
  328. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  329. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +34 -34
  330. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  331. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +11 -11
  332. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  333. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +41 -41
  334. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  335. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +13 -13
  336. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -1
  337. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +19 -19
  338. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  339. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +8 -8
  340. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  341. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +13 -10
  342. package/dist/prometheus-framework.cjs.js +1 -1
  343. package/dist/prometheus-framework.es.js +1 -1
  344. package/dist/queryProcessor-BJoJAetd.mjs +162 -0
  345. package/dist/queryProcessor-DWf9tsis.js +161 -0
  346. package/dist/style.css +1 -1
  347. package/dist/wallet.server.js +1 -1
  348. package/dist/wallet.server.mjs +1 -1
  349. package/dist/web-TGdVOTnw.js +1 -0
  350. package/dist/web-_W9a_nWD.mjs +54 -0
  351. package/package.json +1 -1
  352. package/src/components/Address/Address.vue +1 -1
  353. package/src/components/AskToLogin/AskToLogin.vue +1 -1
  354. package/src/components/Block/Block.vue +1 -1
  355. package/src/components/Checkbox/Checkbox.vue +40 -43
  356. package/src/components/Chips/Chips.vue +2 -2
  357. package/src/components/DatePicker/Calendar.vue +29 -31
  358. package/src/components/Dropdown/Dropdown.vue +5 -11
  359. package/src/components/Feed/Feed.vue +98 -15
  360. package/src/components/FieldTags/BlockTags.vue +3 -3
  361. package/src/components/FieldTags/FieldTags.vue +1 -1
  362. package/src/components/FieldTags/vue-tags-input.scss +1 -1
  363. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  364. package/src/components/LocationSelection/LocationSelection.vue +5 -30
  365. package/src/components/Map/LoaderGMaps.js +66 -0
  366. package/src/components/Map/Map.vue +2 -1
  367. package/src/components/Marquee/Marquee.vue +1 -1
  368. package/src/components/Radio/Radio.vue +36 -13
  369. package/src/configurator/components/pages/Styles.vue +1 -1
  370. package/src/modules/auth/components/layouts/Auth.vue +1 -1
  371. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  372. package/src/modules/auth/components/pages/EnterPassword.vue +2 -2
  373. package/src/modules/auth/components/pages/Invite.vue +2 -2
  374. package/src/modules/auth/components/pages/ResetPassword.vue +3 -3
  375. package/src/modules/auth/components/pages/SignIn.vue +4 -4
  376. package/src/modules/auth/components/pages/SignUp.vue +3 -3
  377. package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
  378. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  379. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  380. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  381. package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
  382. package/src/modules/backoffice/components/admin/Users.vue +1 -1
  383. package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
  384. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  385. package/src/modules/community/components/layouts/Community.vue +2 -2
  386. package/src/modules/community/components/pages/BlogPost.vue +2 -2
  387. package/src/modules/community/components/pages/CreateBlogPost.vue +4 -4
  388. package/src/modules/community/components/sections/Comments.vue +2 -2
  389. package/src/modules/community/components/sections/Feed.vue +1 -1
  390. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  391. package/src/modules/constructor/components/elements/Image.vue +1 -1
  392. package/src/modules/constructor/components/elements/Video.vue +2 -2
  393. package/src/modules/events/components/blocks/CardEvent.vue +1 -1
  394. package/src/modules/events/components/pages/EditEvent.vue +32 -32
  395. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  396. package/src/modules/events/components/pages/Event.vue +3 -3
  397. package/src/modules/events/components/pages/Events.vue +4 -3
  398. package/src/modules/events/components/sections/Feed.vue +3 -3
  399. package/src/modules/events/components/sections/List.vue +2 -2
  400. package/src/modules/files/controllers/files.controller.js +8 -6
  401. package/src/modules/files/middlewares/server/middlewareBusboy.js +79 -14
  402. package/src/modules/files/routes/files.routes.js +11 -9
  403. package/src/modules/gallery/components/sections/BackofficeGallery.vue +158 -355
  404. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +26 -244
  405. package/src/modules/gallery/controllers/gallery.controller.js +57 -38
  406. package/src/modules/gallery/models/photo.model.js +20 -11
  407. package/src/modules/gallery/routes/gallery.routes.js +3 -3
  408. package/src/modules/gallery/store/gallery.js +3 -78
  409. package/src/modules/globals/components/blocks/BlockSearch.vue +1 -1
  410. package/src/modules/globals/components/blocks/BlockSorting.vue +77 -0
  411. package/src/modules/globals/components/blocks/CardHeader.vue +27 -25
  412. package/src/modules/globals/components/elements/ButtonDate.vue +66 -0
  413. package/src/modules/globals/components/elements/ButtonSort.vue +41 -0
  414. package/src/modules/globals/components/layouts/Client.vue +273 -0
  415. package/src/{components/Footer → modules/globals/components/partials}/Footer.vue +1 -1
  416. package/src/{components/Header → modules/globals/components/partials}/Header.vue +98 -84
  417. package/src/modules/globals/controllers/utils/queryProcessor.js +3 -3
  418. package/src/modules/globals/models/common.schema.js +1 -1
  419. package/src/modules/globals/services/globals.store.js +11 -6
  420. package/src/modules/globals/store/globals.js +12 -10
  421. package/src/modules/icons/logos/Logotype.vue +23 -19
  422. package/src/modules/icons/navigation/IconCalendar.vue +18 -0
  423. package/src/modules/icons/navigation/IconFilter.vue +18 -0
  424. package/src/modules/icons/navigation/IconSearch.vue +1 -3
  425. package/src/modules/icons/navigation/IconSort.vue +21 -0
  426. package/src/modules/landing/components/pages/Home.vue +4 -4
  427. package/src/modules/landing/components/sections/FeatureSection.vue +5 -5
  428. package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -2
  429. package/src/modules/landing/components/sections/SectionFeature.vue +2 -2
  430. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
  431. package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
  432. package/src/modules/{orders → landing}/components/sections/SubscribeNewsletter.vue +0 -2
  433. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +6 -6
  434. package/src/modules/landing/landing.client.js +2 -0
  435. package/src/modules/landing/router/landing.js +1 -1
  436. package/src/modules/legal/components/pages/Legal.vue +2 -2
  437. package/src/modules/legal/components/pages/legal/Cookies.vue +1 -1
  438. package/src/modules/legal/components/pages/legal/EULA.vue +1 -1
  439. package/src/modules/legal/components/pages/legal/Privacy.vue +1 -1
  440. package/src/modules/legal/components/pages/legal/Terms.vue +1 -1
  441. package/src/modules/marketplace/components/layouts/Marketplace.vue +37 -49
  442. package/src/modules/marketplace/components/pages/Catalog.vue +43 -131
  443. package/src/modules/marketplace/components/sections/Filters.vue +63 -115
  444. package/src/modules/marketplace/store/marketplace.js +22 -167
  445. package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +1 -1
  446. package/src/modules/orders/components/blocks/CardOrderItem.vue +6 -6
  447. package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
  448. package/src/modules/orders/components/blocks/StatusHistory.vue +1 -1
  449. package/src/modules/orders/components/pages/Order.vue +8 -8
  450. package/src/modules/orders/components/pages/OrderBackoffice.vue +7 -7
  451. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  452. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
  453. package/src/modules/orders/components/pages/Orders.vue +3 -5
  454. package/src/modules/orders/components/partials/ShopCart.vue +5 -1
  455. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  456. package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
  457. package/src/modules/orders/store/applications.js +1 -1
  458. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  459. package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
  460. package/src/modules/organizations/components/pages/Department.vue +3 -3
  461. package/src/modules/organizations/components/pages/DepartmentEdit.vue +6 -6
  462. package/src/modules/organizations/components/pages/Members.vue +4 -4
  463. package/src/modules/organizations/components/pages/Organization.vue +3 -3
  464. package/src/modules/organizations/components/pages/OrganizationCreate.vue +2 -2
  465. package/src/modules/organizations/components/pages/OrganizationDetails.vue +1 -1
  466. package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
  467. package/src/modules/organizations/components/pages/OrganizationEdit.vue +9 -9
  468. package/src/modules/organizations/components/pages/OrganizationPeople.vue +1 -1
  469. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  470. package/src/modules/organizations/components/sections/DetailsTab.vue +4 -4
  471. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  472. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  473. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  474. package/src/modules/organizations/controllers/organizations.controller.js +103 -93
  475. package/src/modules/organizations/models/organization.model.js +10 -7
  476. package/src/modules/organizations/store/organizations.js +3 -34
  477. package/src/modules/products/components/blocks/CardPosition.vue +2 -2
  478. package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
  479. package/src/modules/products/components/pages/Categories.vue +1 -1
  480. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  481. package/src/modules/products/components/pages/Leftovers.vue +4 -4
  482. package/src/modules/products/components/pages/Product.vue +1 -5
  483. package/src/modules/products/components/pages/ProductEdit.vue +1 -1
  484. package/src/modules/products/components/pages/Products.vue +2 -2
  485. package/src/modules/products/components/sections/EditProductInfo.vue +1 -1
  486. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  487. package/src/modules/products/components/sections/HeroRecommendation.vue +67 -74
  488. package/src/modules/products/components/sections/MenuSection.vue +2 -2
  489. package/src/modules/products/components/sections/PopularProducts.vue +2 -2
  490. package/src/modules/products/components/sections/SectionProduct.vue +3 -3
  491. package/src/modules/products/products.client.js +0 -2
  492. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  493. package/src/modules/spots/components/blocks/CardSpot.vue +9 -1
  494. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  495. package/src/modules/spots/components/layouts/Spots.vue +0 -2
  496. package/src/modules/spots/components/pages/Spot.vue +4 -4
  497. package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
  498. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  499. package/src/modules/spots/components/sections/Places.vue +1 -1
  500. package/src/modules/users/components/pages/Profile.vue +5 -5
  501. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  502. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  503. package/src/modules/users/components/pages/ProfileEdit.vue +11 -11
  504. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  505. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  506. package/src/modules/users/components/sections/FeaturedUsers.vue +3 -3
  507. package/src/modules/wallet/views/components/pages/Payments.vue +2 -2
  508. package/src/modules/wallet/views/components/pages/Wallet.vue +3 -3
  509. package/src/styles/base/borders.scss +4 -0
  510. package/src/styles/base/shadow_transitions_hover_refactor.scss +4 -0
  511. package/src/styles/config.scss +15 -9
  512. package/src/styles/layout.scss +37 -8
  513. package/src/styles/typography.scss +24 -24
  514. package/src/modules/products/components/sections/SortProducts.vue +0 -74
  515. /package/src/{components/Navigation → modules/globals/components/partials}/Navigation.vue +0 -0
@@ -54,25 +54,25 @@ const O = ["hex", "number", "blockNumber", "blockNumberOrTag", "filter", "bloom"
54
54
  };
55
55
  for (const [r, s] of e.entries()) {
56
56
  let i, o, m = [];
57
- w(s) ? (i = s.type, o = s.name, m = s.components) : typeof s == "string" ? (i = s, o = `${t}/${r}`) : Array.isArray(s) && (s[0] && typeof s[0] == "string" && s[0].startsWith("tuple") && !Array.isArray(s[0]) && s[1] && Array.isArray(s[1]) ? (i = s[0], o = `${t}/${r}`, m = s[1]) : (i = "tuple", o = `${t}/${r}`, m = s));
58
- const { baseType: c, isArray: y, arraySizes: l } = I(i);
57
+ w(s) ? (i = s.type, o = s.name || `${t}/${r}`, m = s.components) : typeof s == "string" ? (i = s, o = `${t}/${r}`) : Array.isArray(s) && (s[0] && typeof s[0] == "string" && s[0].startsWith("tuple") && !Array.isArray(s[0]) && s[1] && Array.isArray(s[1]) ? (i = s[0], o = `${t}/${r}`, m = s[1]) : (i = "tuple", o = `${t}/${r}`, m = s));
58
+ const { baseType: c, isArray: l, arraySizes: u } = I(i);
59
59
  let p, f = n;
60
- for (let a = l.length - 1; a > 0; a -= 1)
60
+ for (let a = u.length - 1; a > 0; a -= 1)
61
61
  p = {
62
62
  type: "array",
63
63
  $id: o,
64
64
  items: [],
65
- maxItems: l[a],
66
- minItems: l[a]
67
- }, l[a] < 0 && (delete p.maxItems, delete p.minItems), Array.isArray(f.items) ? f.items.length === 0 ? f.items = [p] : f.items.push(p) : f.items = [f.items, p], f = p;
68
- if (c === "tuple" && !y) {
65
+ maxItems: u[a],
66
+ minItems: u[a]
67
+ }, u[a] < 0 && (delete p.maxItems, delete p.minItems), Array.isArray(f.items) ? f.items.length === 0 ? f.items = [p] : f.items.push(p) : f.items = [f.items, p], f = p;
68
+ if (c === "tuple" && !l) {
69
69
  const a = A(m, o);
70
70
  a.$id = o, f.items.push(a);
71
- } else if (c === "tuple" && y) {
72
- const a = l[0], h = Object.assign({ type: "array", $id: o, items: A(m, o) }, a >= 0 && { minItems: a, maxItems: a });
71
+ } else if (c === "tuple" && l) {
72
+ const a = u[0], h = Object.assign({ type: "array", $id: o, items: A(m, o) }, a >= 0 && { minItems: a, maxItems: a });
73
73
  f.items.push(h);
74
- } else if (y) {
75
- const a = l[0], h = Object.assign({ type: "array", $id: o, items: g(i) }, a >= 0 && { minItems: a, maxItems: a });
74
+ } else if (l) {
75
+ const a = u[0], h = Object.assign({ type: "array", $id: o, items: g(i) }, a >= 0 && { minItems: a, maxItems: a });
76
76
  f.items.push(h);
77
77
  } else
78
78
  Array.isArray(f.items) ? f.items.push(Object.assign({ $id: o }, g(i))) : f.items.push(Object.assign({ $id: o }, g(i)));
@@ -84,10 +84,10 @@ const O = ["hex", "number", "blockNumber", "blockNumberOrTag", "filter", "bloom"
84
84
  for (const [s, i] of e.entries()) {
85
85
  let o, m, c = [];
86
86
  w(i) ? (o = i.type, m = i.name, c = i.components) : typeof i == "string" ? o = i : Array.isArray(i) && (i[1] && Array.isArray(i[1]) ? (o = i[0], c = i[1]) : (o = "tuple", c = i));
87
- const { baseType: y, isArray: l, arraySizes: p } = I(o), f = Array.isArray(t) ? t[s] : t[m];
88
- if (y === "tuple" && !l)
87
+ const { baseType: l, isArray: u, arraySizes: p } = I(o), f = Array.isArray(t) ? t[s] : t[m];
88
+ if (l === "tuple" && !u)
89
89
  r.push(d(c, f, n));
90
- else if (y === "tuple" && l) {
90
+ else if (l === "tuple" && u) {
91
91
  const a = [];
92
92
  for (const h of f)
93
93
  if (p.length > 1) {
@@ -141,7 +141,7 @@ function M(e) {
141
141
  }
142
142
  return t;
143
143
  }
144
- const u = {
144
+ const y = {
145
145
  zero: 48,
146
146
  nine: 57,
147
147
  A: 65,
@@ -150,12 +150,12 @@ const u = {
150
150
  f: 102
151
151
  };
152
152
  function x(e) {
153
- if (e >= u.zero && e <= u.nine)
154
- return e - u.zero;
155
- if (e >= u.A && e <= u.F)
156
- return e - (u.A - 10);
157
- if (e >= u.a && e <= u.f)
158
- return e - (u.a - 10);
153
+ if (e >= y.zero && e <= y.nine)
154
+ return e - y.zero;
155
+ if (e >= y.A && e <= y.F)
156
+ return e - (y.A - 10);
157
+ if (e >= y.a && e <= y.f)
158
+ return e - (y.a - 10);
159
159
  }
160
160
  function R(e) {
161
161
  let t = 0;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../utils.cjs"),n=require("./string.cjs"),y=r=>{var e;return r instanceof Uint8Array||((e=r==null?void 0:r.constructor)===null||e===void 0?void 0:e.name)==="Uint8Array"},f=(r,e={abiType:"bytes"})=>{if(typeof r!="string"&&!Array.isArray(r)&&!y(r)||typeof r=="string"&&n.isHexStrict(r)&&r.startsWith("-")||typeof r=="string"&&!n.isHexStrict(r))return!1;let t;if(typeof r=="string"){if(r.length%2!==0)return!1;t=s.hexToUint8Array(r)}else if(Array.isArray(r)){if(r.some(i=>i<0||i>255||!Number.isInteger(i)))return!1;t=new Uint8Array(r)}else t=r;if(e!=null&&e.abiType){const{baseTypeSize:i}=s.parseBaseType(e.abiType);return i?t.length===i:!0}return e!=null&&e.size?t.length===(e==null?void 0:e.size):!0};exports.isBytes=f;exports.isUint8Array=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../utils.cjs"),s=require("./string.cjs"),y=r=>{var e,i;return r instanceof Uint8Array||((e=r==null?void 0:r.constructor)===null||e===void 0?void 0:e.name)==="Uint8Array"||((i=r==null?void 0:r.constructor)===null||i===void 0?void 0:i.name)==="Buffer"},f=(r,e={abiType:"bytes"})=>{if(typeof r!="string"&&!Array.isArray(r)&&!y(r)||typeof r=="string"&&s.isHexStrict(r)&&r.startsWith("-")||typeof r=="string"&&!s.isHexStrict(r))return!1;let i;if(typeof r=="string"){if(r.length%2!==0)return!1;i=n.hexToUint8Array(r)}else if(Array.isArray(r)){if(r.some(t=>t<0||t>255||!Number.isInteger(t)))return!1;i=new Uint8Array(r)}else i=r;if(e!=null&&e.abiType){const{baseTypeSize:t}=n.parseBaseType(e.abiType);return t?i.length===t:!0}return e!=null&&e.size?i.length===(e==null?void 0:e.size):!0};exports.isBytes=f;exports.isUint8Array=y;
@@ -1,29 +1,29 @@
1
1
  import { hexToUint8Array as s, parseBaseType as f } from "../utils.js";
2
2
  import { isHexStrict as n } from "./string.js";
3
3
  const y = (r) => {
4
- var e;
5
- return r instanceof Uint8Array || ((e = r == null ? void 0 : r.constructor) === null || e === void 0 ? void 0 : e.name) === "Uint8Array";
4
+ var e, i;
5
+ return r instanceof Uint8Array || ((e = r == null ? void 0 : r.constructor) === null || e === void 0 ? void 0 : e.name) === "Uint8Array" || ((i = r == null ? void 0 : r.constructor) === null || i === void 0 ? void 0 : i.name) === "Buffer";
6
6
  }, c = (r, e = {
7
7
  abiType: "bytes"
8
8
  }) => {
9
9
  if (typeof r != "string" && !Array.isArray(r) && !y(r) || typeof r == "string" && n(r) && r.startsWith("-") || typeof r == "string" && !n(r))
10
10
  return !1;
11
- let t;
11
+ let i;
12
12
  if (typeof r == "string") {
13
13
  if (r.length % 2 !== 0)
14
14
  return !1;
15
- t = s(r);
15
+ i = s(r);
16
16
  } else if (Array.isArray(r)) {
17
- if (r.some((i) => i < 0 || i > 255 || !Number.isInteger(i)))
17
+ if (r.some((t) => t < 0 || t > 255 || !Number.isInteger(t)))
18
18
  return !1;
19
- t = new Uint8Array(r);
19
+ i = new Uint8Array(r);
20
20
  } else
21
- t = r;
21
+ i = r;
22
22
  if (e != null && e.abiType) {
23
- const { baseTypeSize: i } = f(e.abiType);
24
- return i ? t.length === i : !0;
23
+ const { baseTypeSize: t } = f(e.abiType);
24
+ return t ? i.length === t : !0;
25
25
  }
26
- return e != null && e.size ? t.length === (e == null ? void 0 : e.size) : !0;
26
+ return e != null && e.size ? i.length === (e == null ? void 0 : e.size) : !0;
27
27
  };
28
28
  export {
29
29
  c as isBytes,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../utils.cjs"),g=require("./string.cjs"),b=(e,i)=>{let t=e;for(let n=1;n<i;n+=1)t*=e;return t},y=(e,i={abiType:"uint"})=>{if(!["number","string","bigint"].includes(typeof e)||typeof e=="string"&&e.length===0)return!1;let t;if(i!=null&&i.abiType){const{baseTypeSize:r}=f.parseBaseType(i.abiType);r&&(t=r)}else i.bitSize&&(t=i.bitSize);const n=b(BigInt(2),BigInt(t??256))-BigInt(1);try{const r=typeof e=="string"&&g.isHexStrict(e)?BigInt(f.hexToNumber(e)):BigInt(e);return r>=0&&r<=n}catch{return!1}},c=(e,i={abiType:"int"})=>{if(!["number","string","bigint"].includes(typeof e)||typeof e=="number"&&e>Number.MAX_SAFE_INTEGER)return!1;let t;if(i!=null&&i.abiType){const{baseTypeSize:s,baseType:u}=f.parseBaseType(i.abiType);if(u!=="int")return!1;s&&(t=s)}else i.bitSize&&(t=i.bitSize);const n=b(BigInt(2),BigInt((t??256)-1)),r=BigInt(-1)*b(BigInt(2),BigInt((t??256)-1));try{const s=typeof e=="string"&&g.isHexStrict(e)?BigInt(f.hexToNumber(e)):BigInt(e);return s>=r&&s<=n}catch{return!1}},o=e=>!!(c(e)||typeof e=="string"&&/[0-9.]/.test(e)&&e.indexOf(".")===e.lastIndexOf(".")||typeof e=="number");exports.bigintPower=b;exports.isInt=c;exports.isNumber=o;exports.isUInt=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../utils.cjs"),b=require("./string.cjs"),g=(e,i)=>{if(i===BigInt(0))return BigInt(1);let t=e;for(let n=1;n<i;n+=1)t*=e;return t},y=(e,i={abiType:"uint"})=>{if(!["number","string","bigint"].includes(typeof e)||typeof e=="string"&&e.length===0)return!1;let t;if(i!=null&&i.abiType){const{baseTypeSize:r}=f.parseBaseType(i.abiType);r&&(t=r)}else i.bitSize&&(t=i.bitSize);const n=g(BigInt(2),BigInt(t??256))-BigInt(1);try{const r=typeof e=="string"&&b.isHexStrict(e)?BigInt(f.hexToNumber(e)):BigInt(e);return r>=0&&r<=n}catch{return!1}},c=(e,i={abiType:"int"})=>{if(!["number","string","bigint"].includes(typeof e)||typeof e=="number"&&e>Number.MAX_SAFE_INTEGER)return!1;let t;if(i!=null&&i.abiType){const{baseTypeSize:s,baseType:u}=f.parseBaseType(i.abiType);if(u!=="int")return!1;s&&(t=s)}else i.bitSize&&(t=i.bitSize);const n=g(BigInt(2),BigInt((t??256)-1)),r=BigInt(-1)*g(BigInt(2),BigInt((t??256)-1));try{const s=typeof e=="string"&&b.isHexStrict(e)?BigInt(f.hexToNumber(e)):BigInt(e);return s>=r&&s<=n}catch{return!1}},o=e=>!!(c(e)||typeof e=="string"&&/[0-9.]/.test(e)&&e.indexOf(".")===e.lastIndexOf(".")||typeof e=="number");exports.bigintPower=g;exports.isInt=c;exports.isNumber=o;exports.isUInt=y;
@@ -1,52 +1,54 @@
1
- import { parseBaseType as b, hexToNumber as g } from "../utils.js";
1
+ import { parseBaseType as g, hexToNumber as b } from "../utils.js";
2
2
  import { isHexStrict as c } from "./string.js";
3
- const s = (e, i) => {
4
- let t = e;
5
- for (let n = 1; n < i; n += 1)
6
- t *= e;
7
- return t;
8
- }, m = (e, i = {
3
+ const s = (t, e) => {
4
+ if (e === BigInt(0))
5
+ return BigInt(1);
6
+ let i = t;
7
+ for (let n = 1; n < e; n += 1)
8
+ i *= t;
9
+ return i;
10
+ }, B = (t, e = {
9
11
  abiType: "uint"
10
12
  }) => {
11
- if (!["number", "string", "bigint"].includes(typeof e) || typeof e == "string" && e.length === 0)
13
+ if (!["number", "string", "bigint"].includes(typeof t) || typeof t == "string" && t.length === 0)
12
14
  return !1;
13
- let t;
14
- if (i != null && i.abiType) {
15
- const { baseTypeSize: r } = b(i.abiType);
16
- r && (t = r);
15
+ let i;
16
+ if (e != null && e.abiType) {
17
+ const { baseTypeSize: r } = g(e.abiType);
18
+ r && (i = r);
17
19
  } else
18
- i.bitSize && (t = i.bitSize);
19
- const n = s(BigInt(2), BigInt(t ?? 256)) - BigInt(1);
20
+ e.bitSize && (i = e.bitSize);
21
+ const n = s(BigInt(2), BigInt(i ?? 256)) - BigInt(1);
20
22
  try {
21
- const r = typeof e == "string" && c(e) ? BigInt(g(e)) : BigInt(e);
23
+ const r = typeof t == "string" && c(t) ? BigInt(b(t)) : BigInt(t);
22
24
  return r >= 0 && r <= n;
23
25
  } catch {
24
26
  return !1;
25
27
  }
26
- }, o = (e, i = {
28
+ }, I = (t, e = {
27
29
  abiType: "int"
28
30
  }) => {
29
- if (!["number", "string", "bigint"].includes(typeof e) || typeof e == "number" && e > Number.MAX_SAFE_INTEGER)
31
+ if (!["number", "string", "bigint"].includes(typeof t) || typeof t == "number" && t > Number.MAX_SAFE_INTEGER)
30
32
  return !1;
31
- let t;
32
- if (i != null && i.abiType) {
33
- const { baseTypeSize: f, baseType: y } = b(i.abiType);
33
+ let i;
34
+ if (e != null && e.abiType) {
35
+ const { baseTypeSize: f, baseType: y } = g(e.abiType);
34
36
  if (y !== "int")
35
37
  return !1;
36
- f && (t = f);
38
+ f && (i = f);
37
39
  } else
38
- i.bitSize && (t = i.bitSize);
39
- const n = s(BigInt(2), BigInt((t ?? 256) - 1)), r = BigInt(-1) * s(BigInt(2), BigInt((t ?? 256) - 1));
40
+ e.bitSize && (i = e.bitSize);
41
+ const n = s(BigInt(2), BigInt((i ?? 256) - 1)), r = BigInt(-1) * s(BigInt(2), BigInt((i ?? 256) - 1));
40
42
  try {
41
- const f = typeof e == "string" && c(e) ? BigInt(g(e)) : BigInt(e);
43
+ const f = typeof t == "string" && c(t) ? BigInt(b(t)) : BigInt(t);
42
44
  return f >= r && f <= n;
43
45
  } catch {
44
46
  return !1;
45
47
  }
46
- }, T = (e) => !!(o(e) || typeof e == "string" && /[0-9.]/.test(e) && e.indexOf(".") === e.lastIndexOf(".") || typeof e == "number");
48
+ }, m = (t) => !!(I(t) || typeof t == "string" && /[0-9.]/.test(t) && t.indexOf(".") === t.lastIndexOf(".") || typeof t == "number");
47
49
  export {
48
50
  s as bigintPower,
49
- o as isInt,
50
- T as isNumber,
51
- m as isUInt
51
+ I as isInt,
52
+ m as isNumber,
53
+ B as isUInt
52
54
  };
@@ -3,7 +3,7 @@ const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
3
3
  const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
4
4
  const profile_schema = require("./profile.schema-CkOhhf37.js");
5
5
  const credentials_schema = require("./credentials.schema-B-KD_ozQ.js");
6
- const queryProcessor = require("./queryProcessor-DRMo_GWK.js");
6
+ const queryProcessor = require("./queryProcessor-DWf9tsis.js");
7
7
  const mailing = require("./mailing-BX0q8DIs.js");
8
8
  const index = require("./index-BCCiEK_u.js");
9
9
  const require$$0 = require("node-cache");
@@ -2,7 +2,7 @@ import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
2
2
  import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
3
3
  import { p as profile_schema } from "./profile.schema-24ZpZQJe.mjs";
4
4
  import { c as credentials_schema } from "./credentials.schema-C9dmNy7o.mjs";
5
- import { q as queryProcessor } from "./queryProcessor-BJdKh0Ow.mjs";
5
+ import { q as queryProcessor } from "./queryProcessor-BJoJAetd.mjs";
6
6
  import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
7
7
  import { s as server } from "./index-B6a1mPgp.mjs";
8
8
  import require$$0 from "node-cache";
@@ -7,10 +7,10 @@ const require$$3 = require("uuidv4");
7
7
  const require$$0 = require("mongoose");
8
8
  const require$$5 = require("@googlemaps/google-maps-services-js");
9
9
  const addMembersQuantity$1 = require("./addMembersQuantity-B8UgqlUM.js");
10
- const queryProcessor = require("./queryProcessor-DRMo_GWK.js");
10
+ const queryProcessor = require("./queryProcessor-DWf9tsis.js");
11
11
  const mailing = require("./mailing-BX0q8DIs.js");
12
12
  const index = require("./index-BCCiEK_u.js");
13
- const require$$0$2 = require("mongodb");
13
+ const engagement_schema = require("./engagement.schema-fdLNO2_6.js");
14
14
  const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
15
15
  const credentials_schema = require("./credentials.schema-B-KD_ozQ.js");
16
16
  const controllerFactory$6 = (db) => {
@@ -85,7 +85,7 @@ const controllerFactory$6 = (db) => {
85
85
  };
86
86
  var departments_controller = controllerFactory$6;
87
87
  const jwt = require$$0$1;
88
- const ObjectId$2 = require$$0.Types.ObjectId;
88
+ const ObjectId$1 = require$$0.Types.ObjectId;
89
89
  const { Client } = require$$5;
90
90
  const client = new Client({});
91
91
  const addUserStatusFields = addMembersQuantity$1.addUserStatusFields_1;
@@ -96,23 +96,19 @@ const controllerFactory$5 = (db) => {
96
96
  db.user;
97
97
  db.role;
98
98
  const read = async (req, res2) => {
99
- const Organization2 = db.organization;
100
- db.membership;
101
- db.user;
102
- db.role;
103
99
  const sortParam = req.query.sortParam || "numberOfProducts";
104
100
  const sortOrder = req.query.sortOrder || "desc";
105
101
  const sort = {
102
+ ...sortParam === "distance" ? { "distanceExist": -1 } : {},
106
103
  "numberOfProducts": -1,
107
104
  [sortParam]: sortOrder === "desc" ? -1 : 1,
108
105
  "_id": 1
109
106
  };
110
- const options = {
107
+ console.log(sort);
108
+ const pagination = {
111
109
  skip: parseInt(req.query.skip) || 0,
112
110
  limit: parseInt(req.query.limit) || 20
113
111
  };
114
- const categories = req.query.categories?.split(",") || [];
115
- const delivery = req.query.delivery?.split(",") || [];
116
112
  const prices = req.query.prices?.split(",") || [];
117
113
  let priceConditions = prices.map((priceRange) => {
118
114
  if (priceRange.startsWith("<"))
@@ -129,20 +125,36 @@ const controllerFactory$5 = (db) => {
129
125
  }));
130
126
  }
131
127
  const matchConditions = [
132
- ...req.query._id ? [{ _id: new ObjectId$2(req.query._id) }] : [],
133
- ...req.query.owner ? [{ owner: new ObjectId$2(req.query.owner) }] : [],
134
- ...req.query.member ? [{ "memberships.user": new ObjectId$2(req.query.member), "memberships.role": "member" }] : [],
135
- ...req.query.subscriber ? [{ "memberships.user": new ObjectId$2(req.query.subscriber), "memberships.role": "subscriber" }] : [],
136
- ...req.query.postable ? [{ $or: [{ $and: [{ types: { $elemMatch: { $eq: "public" } } }, { "memberships.user": new ObjectId$2(req.query.postable) }] }, { $and: [{ types: { $elemMatch: { $in: ["exclusive", "hidden"] } } }, { "memberships.user": new ObjectId$2(req.query.postable) }, { "memberships.role": { $ne: "subscriber" } }] }] }] : [],
128
+ ...req.query._id ? [{ _id: new ObjectId$1(req.query._id) }] : [],
129
+ ...req.query.owner ? [{ owner: new ObjectId$1(req.query.owner) }] : [],
130
+ ...req.query.member ? [{ "memberships.user": new ObjectId$1(req.query.member), "memberships.role": "member" }] : [],
131
+ ...req.query.subscriber ? [{ "memberships.user": new ObjectId$1(req.query.subscriber), "memberships.role": "subscriber" }] : [],
132
+ ...req.query.postable ? [{ $or: [{ $and: [{ types: { $elemMatch: { $eq: "public" } } }, { "memberships.user": new ObjectId$1(req.query.postable) }] }, { $and: [{ types: { $elemMatch: { $in: ["exclusive", "hidden"] } } }, { "memberships.user": new ObjectId$1(req.query.postable) }, { "memberships.role": { $ne: "subscriber" } }] }] }] : [],
137
133
  ...req.query.types ? [{ types: { $in: req.query.types } }] : [],
138
134
  // Если req.query.types - строка
139
135
  // to remove
140
- ...req.query.onlyuser ? [{ "memberships.user": new ObjectId$2(req.query.onlyuser) }] : [],
141
- ...categories.length > 0 ? [{ "products.category": { $in: categories } }] : [],
142
- ...delivery.length > 0 ? [{ "spots.delivery": { $all: delivery } }] : [],
136
+ ...req.query.onlyuser ? [{ "memberships.user": new ObjectId$1(req.query.onlyuser) }] : [],
137
+ ...req.query.categories?.split(",").length > 0 ? [{ "products.category": { $in: req.query.categories?.split(",") } }] : [],
138
+ ...req.query.delivery?.split(",").length > 0 ? [{ "spots.delivery": { $all: req.query.delivery?.split(",") } }] : [],
143
139
  ...priceConditions.length > 0 ? [{ $or: priceConditions }] : [],
144
140
  ...req.query.contain ? containConditions : []
145
141
  ];
142
+ const search = req.query.search;
143
+ if (search) {
144
+ const parts = search.split(".");
145
+ let regexPattern = "";
146
+ if (parts.length === 2) {
147
+ regexPattern = parts.map((part) => part.substr(0, part.length - 1) + ".{1}").join("\\.");
148
+ } else {
149
+ regexPattern = search.substr(0, search.length - 1) + ".{1}";
150
+ }
151
+ matchConditions.push({
152
+ $or: [
153
+ { "profile.name": { $regex: regexPattern, $options: "i" } },
154
+ { "products.name": { $regex: regexPattern, $options: "i" } }
155
+ ]
156
+ });
157
+ }
146
158
  let { location, address, locationRadius, city, state, country } = req.query;
147
159
  let userLocation = { coordinates: [0, 0] };
148
160
  if (!location && (address || city || state || country)) {
@@ -181,22 +193,6 @@ const controllerFactory$5 = (db) => {
181
193
  }
182
194
  });
183
195
  }
184
- const search = req.query.search;
185
- if (search) {
186
- const parts = search.split(".");
187
- let regexPattern = "";
188
- if (parts.length === 2) {
189
- regexPattern = parts.map((part) => part.substr(0, part.length - 1) + ".{1}").join("\\.");
190
- } else {
191
- regexPattern = search.substr(0, search.length - 1) + ".{1}";
192
- }
193
- matchConditions.push({
194
- $or: [
195
- { "profile.name": { $regex: regexPattern, $options: "i" } },
196
- { "products.name": { $regex: regexPattern, $options: "i" } }
197
- ]
198
- });
199
- }
200
196
  if (location) {
201
197
  console.log(location);
202
198
  if (typeof location === "string") {
@@ -248,6 +244,11 @@ const controllerFactory$5 = (db) => {
248
244
  as: "products"
249
245
  }
250
246
  },
247
+ {
248
+ $addFields: {
249
+ numberOfProducts: { $size: "$products" }
250
+ }
251
+ },
251
252
  {
252
253
  $lookup: {
253
254
  from: "blogposts",
@@ -256,11 +257,6 @@ const controllerFactory$5 = (db) => {
256
257
  as: "blogposts"
257
258
  }
258
259
  },
259
- {
260
- $addFields: {
261
- numberOfProducts: { $size: "$products" }
262
- }
263
- },
264
260
  {
265
261
  $lookup: {
266
262
  from: "departments",
@@ -326,7 +322,13 @@ const controllerFactory$5 = (db) => {
326
322
  {
327
323
  $addFields: {
328
324
  distance: { $min: "$spots.distance" }
329
- // Add the minDistance field here
325
+ }
326
+ },
327
+ {
328
+ $addFields: {
329
+ distanceExist: {
330
+ $cond: { if: { $eq: [{ $type: "$distance" }, "double"] }, then: true, else: false }
331
+ }
330
332
  }
331
333
  },
332
334
  {
@@ -339,20 +341,14 @@ const controllerFactory$5 = (db) => {
339
341
  },
340
342
  addMembersQuantity(),
341
343
  addUserStatusFields(req.query.user),
342
- {
343
- $addFields: {
344
- numberOfProducts: { $size: "$products" }
345
- }
346
- },
347
344
  ...matchStage != null ? [matchStage] : [],
348
345
  { $sort: sort },
349
- { $skip: options.skip },
350
- { $limit: options.limit }
346
+ { $skip: pagination.skip },
347
+ { $limit: pagination.limit }
351
348
  ];
352
349
  try {
353
350
  console.log(stages);
354
- const organizations = await Organization2.aggregate(stages);
355
- console.log(organizations);
351
+ const organizations = await Organization.aggregate(stages);
356
352
  res2.status(200).send(organizations);
357
353
  } catch (err) {
358
354
  console.log(err);
@@ -427,7 +423,7 @@ const controllerFactory$5 = (db) => {
427
423
  if (!organization) {
428
424
  return res2.status(404).send({ message: "Organization not found" });
429
425
  }
430
- Membership.deleteMany({ organization: req.params._id }).then(() => {
426
+ Membership.deleteMany({ target: req.params._id }).then(() => {
431
427
  const newToken = jwt.sign({
432
428
  _id: user._id,
433
429
  organization: null
@@ -453,7 +449,7 @@ const controllerFactory$5 = (db) => {
453
449
  };
454
450
  };
455
451
  var organizations_controller = controllerFactory$5;
456
- const ObjectId$1 = require$$0.Types.ObjectId;
452
+ const ObjectId = require$$0.Types.ObjectId;
457
453
  const queryProcessorGlobals = queryProcessor.queryProcessor;
458
454
  const controllerFactory$4 = (db) => {
459
455
  const Membership = db.membership;
@@ -481,9 +477,9 @@ const controllerFactory$4 = (db) => {
481
477
  },
482
478
  {
483
479
  $match: {
484
- ...req.query.user && { user: new ObjectId$1(req.query.user) },
480
+ ...req.query.user && { user: new ObjectId(req.query.user) },
485
481
  ...req.query.type && { type: req.query.type },
486
- ...req.query.target && { target: new ObjectId$1(req.query.target) },
482
+ ...req.query.target && { target: new ObjectId(req.query.target) },
487
483
  ...req.query.role && { role: { $in: req.query.role } },
488
484
  ...req.query.search && {
489
485
  $or: [
@@ -545,7 +541,7 @@ const controllerFactory$4 = (db) => {
545
541
  const deleteMembership = async (req, res2) => {
546
542
  console.log(req.body);
547
543
  try {
548
- const membership = await Membership.findOneAndDelete({ _id: new ObjectId$1(req.body._id) });
544
+ const membership = await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id) });
549
545
  if (!membership) {
550
546
  return res2.status(404).send({ errorCode: "MEMBERSHIP_NOT_FOUND" });
551
547
  } else {
@@ -953,12 +949,12 @@ var department_model = (mongoose) => {
953
949
  const Department = mongoose.model("Department", departmentSchema);
954
950
  return Department;
955
951
  };
956
- const { ObjectId } = require$$0$2;
957
- var organization_model = (mongoose) => {
958
- const OrganizationSchema = new mongoose.Schema({
952
+ const applyEngagementSchema = engagement_schema.engagement_schema;
953
+ var organization_model = (db) => {
954
+ const OrganizationSchema = new db.mongoose.Schema({
959
955
  // Creator and owner of organizations
960
956
  owner: {
961
- type: ObjectId,
957
+ type: db.mongoose.Schema.Types.ObjectId,
962
958
  ref: "User",
963
959
  required: true
964
960
  },
@@ -1019,7 +1015,8 @@ var organization_model = (mongoose) => {
1019
1015
  }, {
1020
1016
  timestamps: true
1021
1017
  });
1022
- const Organization = mongoose.model("Organization", OrganizationSchema);
1018
+ applyEngagementSchema(OrganizationSchema);
1019
+ const Organization = db.mongoose.model("Organization", OrganizationSchema);
1023
1020
  return Organization;
1024
1021
  };
1025
1022
  var membership_model = (mongoose) => {