@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
@@ -6,10 +6,10 @@ import require$$3 from "uuidv4";
6
6
  import require$$0 from "mongoose";
7
7
  import require$$5 from "@googlemaps/google-maps-services-js";
8
8
  import { a as addUserStatusFields_1, b as addMembersQuantity_1 } from "./addMembersQuantity-BXp_LeQd.mjs";
9
- import { q as queryProcessor } from "./queryProcessor-BJdKh0Ow.mjs";
9
+ import { q as queryProcessor } from "./queryProcessor-BJoJAetd.mjs";
10
10
  import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
11
11
  import { s as server } from "./index-B6a1mPgp.mjs";
12
- import require$$0$2 from "mongodb";
12
+ import { e as engagement_schema } from "./engagement.schema-CI2ifjXN.mjs";
13
13
  import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
14
14
  import { c as credentials_schema } from "./credentials.schema-C9dmNy7o.mjs";
15
15
  const controllerFactory$6 = (db) => {
@@ -84,7 +84,7 @@ const controllerFactory$6 = (db) => {
84
84
  };
85
85
  var departments_controller = controllerFactory$6;
86
86
  const jwt = require$$0$1;
87
- const ObjectId$2 = require$$0.Types.ObjectId;
87
+ const ObjectId$1 = require$$0.Types.ObjectId;
88
88
  const { Client } = require$$5;
89
89
  const client = new Client({});
90
90
  const addUserStatusFields = addUserStatusFields_1;
@@ -95,23 +95,19 @@ const controllerFactory$5 = (db) => {
95
95
  db.user;
96
96
  db.role;
97
97
  const read = async (req, res2) => {
98
- const Organization2 = db.organization;
99
- db.membership;
100
- db.user;
101
- db.role;
102
98
  const sortParam = req.query.sortParam || "numberOfProducts";
103
99
  const sortOrder = req.query.sortOrder || "desc";
104
100
  const sort = {
101
+ ...sortParam === "distance" ? { "distanceExist": -1 } : {},
105
102
  "numberOfProducts": -1,
106
103
  [sortParam]: sortOrder === "desc" ? -1 : 1,
107
104
  "_id": 1
108
105
  };
109
- const options = {
106
+ console.log(sort);
107
+ const pagination = {
110
108
  skip: parseInt(req.query.skip) || 0,
111
109
  limit: parseInt(req.query.limit) || 20
112
110
  };
113
- const categories = req.query.categories?.split(",") || [];
114
- const delivery = req.query.delivery?.split(",") || [];
115
111
  const prices = req.query.prices?.split(",") || [];
116
112
  let priceConditions = prices.map((priceRange) => {
117
113
  if (priceRange.startsWith("<"))
@@ -128,20 +124,36 @@ const controllerFactory$5 = (db) => {
128
124
  }));
129
125
  }
130
126
  const matchConditions = [
131
- ...req.query._id ? [{ _id: new ObjectId$2(req.query._id) }] : [],
132
- ...req.query.owner ? [{ owner: new ObjectId$2(req.query.owner) }] : [],
133
- ...req.query.member ? [{ "memberships.user": new ObjectId$2(req.query.member), "memberships.role": "member" }] : [],
134
- ...req.query.subscriber ? [{ "memberships.user": new ObjectId$2(req.query.subscriber), "memberships.role": "subscriber" }] : [],
135
- ...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" } }] }] }] : [],
127
+ ...req.query._id ? [{ _id: new ObjectId$1(req.query._id) }] : [],
128
+ ...req.query.owner ? [{ owner: new ObjectId$1(req.query.owner) }] : [],
129
+ ...req.query.member ? [{ "memberships.user": new ObjectId$1(req.query.member), "memberships.role": "member" }] : [],
130
+ ...req.query.subscriber ? [{ "memberships.user": new ObjectId$1(req.query.subscriber), "memberships.role": "subscriber" }] : [],
131
+ ...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" } }] }] }] : [],
136
132
  ...req.query.types ? [{ types: { $in: req.query.types } }] : [],
137
133
  // Если req.query.types - строка
138
134
  // to remove
139
- ...req.query.onlyuser ? [{ "memberships.user": new ObjectId$2(req.query.onlyuser) }] : [],
140
- ...categories.length > 0 ? [{ "products.category": { $in: categories } }] : [],
141
- ...delivery.length > 0 ? [{ "spots.delivery": { $all: delivery } }] : [],
135
+ ...req.query.onlyuser ? [{ "memberships.user": new ObjectId$1(req.query.onlyuser) }] : [],
136
+ ...req.query.categories?.split(",").length > 0 ? [{ "products.category": { $in: req.query.categories?.split(",") } }] : [],
137
+ ...req.query.delivery?.split(",").length > 0 ? [{ "spots.delivery": { $all: req.query.delivery?.split(",") } }] : [],
142
138
  ...priceConditions.length > 0 ? [{ $or: priceConditions }] : [],
143
139
  ...req.query.contain ? containConditions : []
144
140
  ];
141
+ const search = req.query.search;
142
+ if (search) {
143
+ const parts = search.split(".");
144
+ let regexPattern = "";
145
+ if (parts.length === 2) {
146
+ regexPattern = parts.map((part) => part.substr(0, part.length - 1) + ".{1}").join("\\.");
147
+ } else {
148
+ regexPattern = search.substr(0, search.length - 1) + ".{1}";
149
+ }
150
+ matchConditions.push({
151
+ $or: [
152
+ { "profile.name": { $regex: regexPattern, $options: "i" } },
153
+ { "products.name": { $regex: regexPattern, $options: "i" } }
154
+ ]
155
+ });
156
+ }
145
157
  let { location, address, locationRadius, city, state, country } = req.query;
146
158
  let userLocation = { coordinates: [0, 0] };
147
159
  if (!location && (address || city || state || country)) {
@@ -180,22 +192,6 @@ const controllerFactory$5 = (db) => {
180
192
  }
181
193
  });
182
194
  }
183
- const search = req.query.search;
184
- if (search) {
185
- const parts = search.split(".");
186
- let regexPattern = "";
187
- if (parts.length === 2) {
188
- regexPattern = parts.map((part) => part.substr(0, part.length - 1) + ".{1}").join("\\.");
189
- } else {
190
- regexPattern = search.substr(0, search.length - 1) + ".{1}";
191
- }
192
- matchConditions.push({
193
- $or: [
194
- { "profile.name": { $regex: regexPattern, $options: "i" } },
195
- { "products.name": { $regex: regexPattern, $options: "i" } }
196
- ]
197
- });
198
- }
199
195
  if (location) {
200
196
  console.log(location);
201
197
  if (typeof location === "string") {
@@ -247,6 +243,11 @@ const controllerFactory$5 = (db) => {
247
243
  as: "products"
248
244
  }
249
245
  },
246
+ {
247
+ $addFields: {
248
+ numberOfProducts: { $size: "$products" }
249
+ }
250
+ },
250
251
  {
251
252
  $lookup: {
252
253
  from: "blogposts",
@@ -255,11 +256,6 @@ const controllerFactory$5 = (db) => {
255
256
  as: "blogposts"
256
257
  }
257
258
  },
258
- {
259
- $addFields: {
260
- numberOfProducts: { $size: "$products" }
261
- }
262
- },
263
259
  {
264
260
  $lookup: {
265
261
  from: "departments",
@@ -325,7 +321,13 @@ const controllerFactory$5 = (db) => {
325
321
  {
326
322
  $addFields: {
327
323
  distance: { $min: "$spots.distance" }
328
- // Add the minDistance field here
324
+ }
325
+ },
326
+ {
327
+ $addFields: {
328
+ distanceExist: {
329
+ $cond: { if: { $eq: [{ $type: "$distance" }, "double"] }, then: true, else: false }
330
+ }
329
331
  }
330
332
  },
331
333
  {
@@ -338,20 +340,14 @@ const controllerFactory$5 = (db) => {
338
340
  },
339
341
  addMembersQuantity(),
340
342
  addUserStatusFields(req.query.user),
341
- {
342
- $addFields: {
343
- numberOfProducts: { $size: "$products" }
344
- }
345
- },
346
343
  ...matchStage != null ? [matchStage] : [],
347
344
  { $sort: sort },
348
- { $skip: options.skip },
349
- { $limit: options.limit }
345
+ { $skip: pagination.skip },
346
+ { $limit: pagination.limit }
350
347
  ];
351
348
  try {
352
349
  console.log(stages);
353
- const organizations = await Organization2.aggregate(stages);
354
- console.log(organizations);
350
+ const organizations = await Organization.aggregate(stages);
355
351
  res2.status(200).send(organizations);
356
352
  } catch (err) {
357
353
  console.log(err);
@@ -426,7 +422,7 @@ const controllerFactory$5 = (db) => {
426
422
  if (!organization) {
427
423
  return res2.status(404).send({ message: "Organization not found" });
428
424
  }
429
- Membership.deleteMany({ organization: req.params._id }).then(() => {
425
+ Membership.deleteMany({ target: req.params._id }).then(() => {
430
426
  const newToken = jwt.sign({
431
427
  _id: user._id,
432
428
  organization: null
@@ -452,7 +448,7 @@ const controllerFactory$5 = (db) => {
452
448
  };
453
449
  };
454
450
  var organizations_controller = controllerFactory$5;
455
- const ObjectId$1 = require$$0.Types.ObjectId;
451
+ const ObjectId = require$$0.Types.ObjectId;
456
452
  const queryProcessorGlobals = queryProcessor;
457
453
  const controllerFactory$4 = (db) => {
458
454
  const Membership = db.membership;
@@ -480,9 +476,9 @@ const controllerFactory$4 = (db) => {
480
476
  },
481
477
  {
482
478
  $match: {
483
- ...req.query.user && { user: new ObjectId$1(req.query.user) },
479
+ ...req.query.user && { user: new ObjectId(req.query.user) },
484
480
  ...req.query.type && { type: req.query.type },
485
- ...req.query.target && { target: new ObjectId$1(req.query.target) },
481
+ ...req.query.target && { target: new ObjectId(req.query.target) },
486
482
  ...req.query.role && { role: { $in: req.query.role } },
487
483
  ...req.query.search && {
488
484
  $or: [
@@ -544,7 +540,7 @@ const controllerFactory$4 = (db) => {
544
540
  const deleteMembership = async (req, res2) => {
545
541
  console.log(req.body);
546
542
  try {
547
- const membership = await Membership.findOneAndDelete({ _id: new ObjectId$1(req.body._id) });
543
+ const membership = await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id) });
548
544
  if (!membership) {
549
545
  return res2.status(404).send({ errorCode: "MEMBERSHIP_NOT_FOUND" });
550
546
  } else {
@@ -952,12 +948,12 @@ var department_model = (mongoose) => {
952
948
  const Department = mongoose.model("Department", departmentSchema);
953
949
  return Department;
954
950
  };
955
- const { ObjectId } = require$$0$2;
956
- var organization_model = (mongoose) => {
957
- const OrganizationSchema = new mongoose.Schema({
951
+ const applyEngagementSchema = engagement_schema;
952
+ var organization_model = (db) => {
953
+ const OrganizationSchema = new db.mongoose.Schema({
958
954
  // Creator and owner of organizations
959
955
  owner: {
960
- type: ObjectId,
956
+ type: db.mongoose.Schema.Types.ObjectId,
961
957
  ref: "User",
962
958
  required: true
963
959
  },
@@ -1018,7 +1014,8 @@ var organization_model = (mongoose) => {
1018
1014
  }, {
1019
1015
  timestamps: true
1020
1016
  });
1021
- const Organization = mongoose.model("Organization", OrganizationSchema);
1017
+ applyEngagementSchema(OrganizationSchema);
1018
+ const Organization = db.mongoose.model("Organization", OrganizationSchema);
1022
1019
  return Organization;
1023
1020
  };
1024
1021
  var membership_model = (mongoose) => {
@@ -7,7 +7,7 @@ const require$$0 = require("mongoose");
7
7
  require("path");
8
8
  const require$$3 = require("openai");
9
9
  const index = require("./index-BCCiEK_u.js");
10
- const queryProcessor = require("./queryProcessor-DRMo_GWK.js");
10
+ const queryProcessor = require("./queryProcessor-DWf9tsis.js");
11
11
  var product_model = (mongoose) => {
12
12
  const ProductSchema = new mongoose.Schema({
13
13
  status: { type: String },
@@ -5,7 +5,7 @@ import require$$0 from "mongoose";
5
5
  import "path";
6
6
  import require$$3 from "openai";
7
7
  import { s as server } from "./index-B6a1mPgp.mjs";
8
- import { q as queryProcessor } from "./queryProcessor-BJdKh0Ow.mjs";
8
+ import { q as queryProcessor } from "./queryProcessor-BJoJAetd.mjs";
9
9
  var product_model = (mongoose) => {
10
10
  const ProductSchema = new mongoose.Schema({
11
11
  status: { type: String },
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");require("./Address.vue.cjs");const v=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),_={key:0,class:"t-transp mn-r-small"},h=["placeholder","value"],k={key:0,class:"mn-t-thin invalid-feedback"},b={__name:"Address",props:{apiKey:{type:String,required:!0},label:null,placeholder:"Enter something here",field:null,location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},locale:{type:String,default:"en"}},emits:["update:address","update:location","update:country","update:state","update:city"],setup(l,{emit:u}){const p=l,o=u,c=e.ref(null);let d;const m=()=>{const t=d.getPlace();if(!t.geometry||!t.address_components)return;let a="",s="",i="";for(let r=0;r<t.address_components.length;r++){let n=t.address_components[r];n.types.includes("country")&&(a=n.long_name),n.types.includes("administrative_area_level_1")&&(s=n.long_name),n.types.includes("locality")&&(i=n.long_name)}const y=t.formatted_address,g={lat:t.geometry.location.lat(),lng:t.geometry.location.lng()};o("update:address",y),o("update:location",g),o("update:country",a),o("update:state",s),o("update:city",i)};return e.onMounted(()=>{new f.Loader({apiKey:p.apiKey,version:"weekly",libraries:["places"]}).load().then(()=>{d=new google.maps.places.Autocomplete(c.value),d.addListener("place_changed",m)}).catch(a=>{console.error(a)})}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.$attrs.class,"flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"addressInput",ref:c,class:"w-100",placeholder:l.placeholder,value:l.address,onInput:a[0]||(a[0]=(...s)=>t.onInput&&t.onInput(...s))},null,40,h),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",k," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],2))}},w=v.default(b,[["__scopeId","data-v-1fe1017e"]]);exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");require("./Address.vue.cjs");const v=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),_={key:0,class:"t-transp mn-r-small"},h=["placeholder","value"],k={key:0,class:"mn-t-thin invalid-feedback"},b={__name:"Address",props:{apiKey:{type:String,required:!0},label:null,placeholder:"Enter something here",field:null,location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},locale:{type:String,default:"en"}},emits:["update:address","update:location","update:country","update:state","update:city"],setup(l,{emit:p}){const c=l,o=p,i=e.ref(null);let d;const m=()=>{const t=d.getPlace();if(!t.geometry||!t.address_components)return;let a="",s="",u="";for(let r=0;r<t.address_components.length;r++){let n=t.address_components[r];n.types.includes("country")&&(a=n.long_name),n.types.includes("administrative_area_level_1")&&(s=n.long_name),n.types.includes("locality")&&(u=n.long_name)}const y=t.formatted_address,g={lat:t.geometry.location.lat(),lng:t.geometry.location.lng()};o("update:address",y),o("update:location",g),o("update:country",a),o("update:state",s),o("update:city",u)};return e.onMounted(()=>{new f.Loader({apiKey:c.apiKey,version:"weekly",libraries:["places"],language:c.locale}).load().then(()=>{d=new google.maps.places.Autocomplete(i.value),d.addListener("place_changed",m)}).catch(a=>{console.error(a)})}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.$attrs.class,"flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"addressInput",ref:i,class:"w-100",placeholder:l.placeholder,value:l.address,onInput:a[0]||(a[0]=(...s)=>t.onInput&&t.onInput(...s))},null,40,h),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",k," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],2))}},w=v.default(b,[["__scopeId","data-v-0fc64e8d"]]);exports.default=w;
@@ -1,4 +1,4 @@
1
- import { ref as w, onMounted as k, openBlock as r, createElementBlock as i, normalizeClass as b, createElementVNode as u, toDisplayString as m, createCommentVNode as y, createVNode as I, Transition as A, withCtx as C } from "vue";
1
+ import { ref as w, onMounted as k, openBlock as r, createElementBlock as i, normalizeClass as b, createElementVNode as m, toDisplayString as y, createCommentVNode as f, createVNode as I, Transition as A, withCtx as C } from "vue";
2
2
  import { Loader as S } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
3
3
  import "./Address.vue.js";
4
4
  import E from "../../../../_virtual/_plugin-vue_export-helper.js";
@@ -32,29 +32,29 @@ const K = {
32
32
  }
33
33
  },
34
34
  emits: ["update:address", "update:location", "update:country", "update:state", "update:city"],
35
- setup(n, { emit: f }) {
36
- const g = n, o = f, c = w(null);
35
+ setup(n, { emit: g }) {
36
+ const c = n, l = g, p = w(null);
37
37
  let s;
38
38
  const h = () => {
39
39
  const e = s.getPlace();
40
40
  if (!e.geometry || !e.address_components)
41
41
  return;
42
- let t = "", l = "", p = "";
42
+ let t = "", o = "", u = "";
43
43
  for (let d = 0; d < e.address_components.length; d++) {
44
44
  let a = e.address_components[d];
45
- a.types.includes("country") && (t = a.long_name), a.types.includes("administrative_area_level_1") && (l = a.long_name), a.types.includes("locality") && (p = a.long_name);
45
+ a.types.includes("country") && (t = a.long_name), a.types.includes("administrative_area_level_1") && (o = a.long_name), a.types.includes("locality") && (u = a.long_name);
46
46
  }
47
47
  const _ = e.formatted_address, v = { lat: e.geometry.location.lat(), lng: e.geometry.location.lng() };
48
- o("update:address", _), o("update:location", v), o("update:country", t), o("update:state", l), o("update:city", p);
48
+ l("update:address", _), l("update:location", v), l("update:country", t), l("update:state", o), l("update:city", u);
49
49
  };
50
50
  return k(() => {
51
51
  new S({
52
- apiKey: g.apiKey,
52
+ apiKey: c.apiKey,
53
53
  version: "weekly",
54
- libraries: ["places"]
55
- // language: props.locale,
54
+ libraries: ["places"],
55
+ language: c.locale
56
56
  }).load().then(() => {
57
- s = new google.maps.places.Autocomplete(c.value), s.addListener("place_changed", h);
57
+ s = new google.maps.places.Autocomplete(p.value), s.addListener("place_changed", h);
58
58
  }).catch((t) => {
59
59
  console.error(t);
60
60
  });
@@ -62,28 +62,28 @@ const K = {
62
62
  class: b([e.$attrs.class, "flex-nowrap flex"])
63
63
  }, [
64
64
  n.label ? (r(), i("div", K, [
65
- u("span", null, m(n.label), 1)
66
- ])) : y("", !0),
67
- u("input", {
65
+ m("span", null, y(n.label), 1)
66
+ ])) : f("", !0),
67
+ m("input", {
68
68
  ref_key: "addressInput",
69
- ref: c,
69
+ ref: p,
70
70
  class: "w-100",
71
71
  placeholder: n.placeholder,
72
72
  value: n.address,
73
- onInput: t[0] || (t[0] = (...l) => e.onInput && e.onInput(...l))
73
+ onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o))
74
74
  }, null, 40, L),
75
75
  I(A, {
76
76
  mode: "out-in",
77
77
  name: "fade"
78
78
  }, {
79
79
  default: C(() => [
80
- e.validation ? (r(), i("div", N, " * " + m(e.validation.message), 1)) : y("", !0)
80
+ e.validation ? (r(), i("div", N, " * " + y(e.validation.message), 1)) : f("", !0)
81
81
  ]),
82
82
  _: 1
83
83
  })
84
84
  ], 2));
85
85
  }
86
- }, x = /* @__PURE__ */ E(V, [["__scopeId", "data-v-1fe1017e"]]);
86
+ }, x = /* @__PURE__ */ E(V, [["__scopeId", "data-v-0fc64e8d"]]);
87
87
  export {
88
88
  x as default
89
89
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../Tooltip/Tooltip.vue2.cjs"),a={class:"bg-grey pd-medium radius-big"},c={key:0,class:"mn-b-small flex-v-center flex-nowrap flex"},s={key:0,class:"mn-r-thin t-medium p-big"},u=["onClick"],d=e.createElementVNode("p",{class:"bg-main radius-small t-center i-medium"},"i",-1),m={key:1,class:"w-100"},k={__name:"Block",props:{title:{type:String,default:null},tooltip:{type:String,default:null},actions:{type:Array,default:null},placeholder:{type:String,default:"Nothing here"},options:{type:Object,default:{theme:"white"}}},setup(t){e.useSlots();const r=(n,o={})=>n?n(o).some(l=>Array.isArray(l.children)?!!l.children.length:l.type!==e.Comment):!1;return(n,o)=>(e.openBlock(),e.createElementBlock("div",a,[t.title||t.actions?(e.openBlock(),e.createElementBlock("div",c,[t.title?(e.openBlock(),e.createElementBlock("p",s,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,l=>(e.openBlock(),e.createElementBlock("button",{onClick:l.function,class:e.normalizeClass(["pd-thin button-delete button",l.class||"bg-main radius-small t-center i-medium"])},e.toDisplayString(l.label),11,u))),256)),t.tooltip?(e.openBlock(),e.createBlock(i.default,{key:1,text:t.tooltip},{default:e.withCtx(()=>[d]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r(n.$slots.default)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.placeholder),1)),e.renderSlot(n.$slots,"default")]))}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../Tooltip/Tooltip.vue2.cjs"),a={class:"bg-light pd-medium radius-big"},c={key:0,class:"mn-b-small flex-v-center flex-nowrap flex"},s={key:0,class:"mn-r-thin t-medium p-big"},u=["onClick"],d=e.createElementVNode("p",{class:"bg-main radius-small t-center i-medium"},"i",-1),m={key:1,class:"w-100"},h={__name:"Block",props:{title:{type:String,default:null},tooltip:{type:String,default:null},actions:{type:Array,default:null},placeholder:{type:String,default:"Nothing here"},options:{type:Object,default:{theme:"white"}}},setup(t){e.useSlots();const r=(n,o={})=>n?n(o).some(l=>Array.isArray(l.children)?!!l.children.length:l.type!==e.Comment):!1;return(n,o)=>(e.openBlock(),e.createElementBlock("div",a,[t.title||t.actions?(e.openBlock(),e.createElementBlock("div",c,[t.title?(e.openBlock(),e.createElementBlock("p",s,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,l=>(e.openBlock(),e.createElementBlock("button",{onClick:l.function,class:e.normalizeClass(["pd-thin button-delete button",l.class||"bg-main radius-small t-center i-medium"])},e.toDisplayString(l.label),11,u))),256)),t.tooltip?(e.openBlock(),e.createBlock(i.default,{key:1,text:t.tooltip},{default:e.withCtx(()=>[d]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r(n.$slots.default)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.placeholder),1)),e.renderSlot(n.$slots,"default")]))}};exports.default=h;
@@ -1,12 +1,12 @@
1
- import { useSlots as u, openBlock as l, createElementBlock as n, toDisplayString as o, createCommentVNode as r, Fragment as c, renderList as d, normalizeClass as m, createBlock as h, withCtx as f, renderSlot as y, createElementVNode as p, Comment as g } from "vue";
1
+ import { useSlots as u, openBlock as l, createElementBlock as n, toDisplayString as o, createCommentVNode as r, Fragment as c, renderList as d, normalizeClass as m, createBlock as h, withCtx as f, renderSlot as p, createElementVNode as y, Comment as g } from "vue";
2
2
  import b from "../Tooltip/Tooltip.vue2.js";
3
- const k = { class: "bg-grey pd-medium radius-big" }, C = {
3
+ const k = { class: "bg-light pd-medium radius-big" }, C = {
4
4
  key: 0,
5
5
  class: "mn-b-small flex-v-center flex-nowrap flex"
6
6
  }, S = {
7
7
  key: 0,
8
8
  class: "mn-r-thin t-medium p-big"
9
- }, x = ["onClick"], w = /* @__PURE__ */ p("p", { class: "bg-main radius-small t-center i-medium" }, "i", -1), B = {
9
+ }, x = ["onClick"], w = /* @__PURE__ */ y("p", { class: "bg-main radius-small t-center i-medium" }, "i", -1), B = {
10
10
  key: 1,
11
11
  class: "w-100"
12
12
  }, _ = {
@@ -56,7 +56,7 @@ const k = { class: "bg-grey pd-medium radius-big" }, C = {
56
56
  }, 8, ["text"])) : r("", !0)
57
57
  ])) : r("", !0),
58
58
  a(i.$slots.default) ? r("", !0) : (l(), n("span", B, o(t.placeholder), 1)),
59
- y(i.$slots, "default")
59
+ p(i.$slots, "default")
60
60
  ]));
61
61
  }
62
62
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue");require("./Checkbox.vue2.cjs");const o=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),u={class:"flex-v-center flex-nowrap flex"},s={key:0,class:"mn-r-auto t-transp mn-r-small"},m=["name","value","checked"],y={__name:"Checkbox",props:{label:String,name:String,value:String,radio:{type:[Array,Boolean,Object],default:()=>[]}},emits:["update:radio"],setup(e,{emit:d}){const t=e,l=d,c=i=>{if(Array.isArray(t.radio)){let r=[...t.radio];if(i.target.checked)r.push(t.value);else{const n=r.indexOf(t.value);n!==-1&&r.splice(n,1)}l("update:radio",r)}else typeof t.radio=="boolean"&&l("update:radio",i.target.checked)};return(i,r)=>(a.openBlock(),a.createElementBlock("label",u,[e.label?(a.openBlock(),a.createElementBlock("div",s,[a.createElementVNode("span",null,a.toDisplayString(e.label),1)])):a.createCommentVNode("",!0),a.createElementVNode("input",{onChange:c,class:"round radiobutton",type:"checkbox",name:e.name,value:e.value,checked:Array.isArray(e.radio)?e.radio.includes(e.value):e.radio},null,40,m),a.createElementVNode("div",{class:a.normalizeClass(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra",{"bg-grey":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"bg-main":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},[a.createElementVNode("div",{class:a.normalizeClass(["transition-linear w-1r h-1r radius-extra h-100 bg-white",{"mn-r-auto":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"mn-l-auto":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},null,2)],2)]))}},h=o.default(y,[["__scopeId","data-v-ef88ec33"]]);exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),u={class:"flex-v-center flex-nowrap flex"},o={key:0,class:"mn-r-auto t-transp mn-r-small"},s=["name","value","checked"],m={__name:"Checkbox",props:{label:String,name:String,value:String,radio:{type:[Array,Boolean,Object],default:()=>[]},theme:{type:String,default:"light"}},emits:["update:radio"],setup(e,{emit:d}){const t=e,l=d,c=r=>{if(Array.isArray(t.radio)){let i=[...t.radio];if(r.target.checked)i.push(t.value);else{const n=i.indexOf(t.value);n!==-1&&i.splice(n,1)}l("update:radio",i)}else typeof t.radio=="boolean"&&l("update:radio",r.target.checked)};return(r,i)=>(a.openBlock(),a.createElementBlock("label",u,[e.label?(a.openBlock(),a.createElementBlock("div",o,[a.createElementVNode("span",null,a.toDisplayString(e.label),1)])):a.createCommentVNode("",!0),a.createElementVNode("input",{onChange:c,class:"round radiobutton",type:"checkbox",name:e.name,value:e.value,checked:Array.isArray(e.radio)?e.radio.includes(e.value):e.radio},null,40,s),a.createElementVNode("div",{class:a.normalizeClass(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra",{"bg-dark":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio)&&e.theme==="dark","bg-light":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio)&&e.theme==="light","bg-main":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},[a.createElementVNode("div",{class:a.normalizeClass(["transition-linear w-1r h-1r radius-extra h-100 bg-white",{"mn-r-auto":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"mn-l-auto":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},null,2)],2)]))}};exports.default=m;
@@ -1,10 +1,8 @@
1
- import { openBlock as d, createElementBlock as o, createElementVNode as t, toDisplayString as m, createCommentVNode as h, normalizeClass as c } from "vue";
2
- import "./Checkbox.vue2.js";
3
- import y from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = { class: "flex-v-center flex-nowrap flex" }, v = {
1
+ import { openBlock as d, createElementBlock as c, createElementVNode as t, toDisplayString as s, createCommentVNode as h, normalizeClass as u } from "vue";
2
+ const y = { class: "flex-v-center flex-nowrap flex" }, g = {
5
3
  key: 0,
6
4
  class: "mn-r-auto t-transp mn-r-small"
7
- }, x = ["name", "value", "checked"], b = {
5
+ }, v = ["name", "value", "checked"], f = {
8
6
  __name: "Checkbox",
9
7
  props: {
10
8
  label: String,
@@ -13,51 +11,56 @@ const f = { class: "flex-v-center flex-nowrap flex" }, v = {
13
11
  radio: {
14
12
  type: [Array, Boolean, Object],
15
13
  default: () => []
14
+ },
15
+ theme: {
16
+ type: String,
17
+ default: "light"
16
18
  }
17
19
  },
18
20
  emits: ["update:radio"],
19
- setup(e, { emit: u }) {
20
- const a = e, n = u, s = (r) => {
21
- if (Array.isArray(a.radio)) {
22
- let i = [...a.radio];
21
+ setup(a, { emit: o }) {
22
+ const e = a, l = o, m = (r) => {
23
+ if (Array.isArray(e.radio)) {
24
+ let i = [...e.radio];
23
25
  if (r.target.checked)
24
- i.push(a.value);
26
+ i.push(e.value);
25
27
  else {
26
- const l = i.indexOf(a.value);
27
- l !== -1 && i.splice(l, 1);
28
+ const n = i.indexOf(e.value);
29
+ n !== -1 && i.splice(n, 1);
28
30
  }
29
- n("update:radio", i);
31
+ l("update:radio", i);
30
32
  } else
31
- typeof a.radio == "boolean" && n("update:radio", r.target.checked);
33
+ typeof e.radio == "boolean" && l("update:radio", r.target.checked);
32
34
  };
33
- return (r, i) => (d(), o("label", f, [
34
- e.label ? (d(), o("div", v, [
35
- t("span", null, m(e.label), 1)
35
+ return (r, i) => (d(), c("label", y, [
36
+ a.label ? (d(), c("div", g, [
37
+ t("span", null, s(a.label), 1)
36
38
  ])) : h("", !0),
37
39
  t("input", {
38
- onChange: s,
40
+ onChange: m,
39
41
  class: "round radiobutton",
40
42
  type: "checkbox",
41
- name: e.name,
42
- value: e.value,
43
- checked: Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
44
- }, null, 40, x),
43
+ name: a.name,
44
+ value: a.value,
45
+ checked: Array.isArray(a.radio) ? a.radio.includes(a.value) : a.radio
46
+ }, null, 40, v),
45
47
  t("div", {
46
- class: c(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra", {
47
- "bg-grey": !(Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio),
48
- "bg-main": Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
48
+ class: u(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra", {
49
+ "bg-dark": !(Array.isArray(a.radio) ? a.radio.includes(a.value) : a.radio) && a.theme === "dark",
50
+ "bg-light": !(Array.isArray(a.radio) ? a.radio.includes(a.value) : a.radio) && a.theme === "light",
51
+ "bg-main": Array.isArray(a.radio) ? a.radio.includes(a.value) : a.radio
49
52
  }])
50
53
  }, [
51
54
  t("div", {
52
- class: c(["transition-linear w-1r h-1r radius-extra h-100 bg-white", {
53
- "mn-r-auto": !(Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio),
54
- "mn-l-auto": Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
55
+ class: u(["transition-linear w-1r h-1r radius-extra h-100 bg-white", {
56
+ "mn-r-auto": !(Array.isArray(a.radio) ? a.radio.includes(a.value) : a.radio),
57
+ "mn-l-auto": Array.isArray(a.radio) ? a.radio.includes(a.value) : a.radio
55
58
  }])
56
59
  }, null, 2)
57
60
  ], 2)
58
61
  ]));
59
62
  }
60
- }, w = /* @__PURE__ */ y(b, [["__scopeId", "data-v-ef88ec33"]]);
63
+ };
61
64
  export {
62
- w as default
65
+ f as default
63
66
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Chips.vue2.cjs");const l=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),i={class:"t-trimmed"},o={class:"t-truncate"},c={key:1,class:"pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"},a={__name:"Chips",props:["chips"],setup(n){return(s,u)=>{var r;return e.openBlock(),e.createElementBlock("div",i,[(r=n.chips)!=null&&r.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.chips,(t,m)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([s.$attrs.class||"p-medium","mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])},[e.createElementVNode("span",o,e.toDisplayString(t.text?t.text:t),1)],2))),256)):(e.openBlock(),e.createElementBlock("div",c,[e.renderSlot(s.$slots,"default",{},void 0,!0)]))])}}},d=l.default(a,[["__scopeId","data-v-5db8d9f5"]]);exports.default=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Chips.vue2.cjs");const i=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),l={class:"t-trimmed font-main"},o={class:"font-main t-truncate"},a={key:1,class:"pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"},c={__name:"Chips",props:["chips"],setup(n){return(s,m)=>{var r;return e.openBlock(),e.createElementBlock("div",l,[(r=n.chips)!=null&&r.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.chips,(t,u)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([s.$attrs.class||"p-medium","mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])},[e.createElementVNode("span",o,e.toDisplayString(t.text?t.text:t),1)],2))),256)):(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(s.$slots,"default",{},void 0,!0)]))])}}},d=i.default(c,[["__scopeId","data-v-20cd2675"]]);exports.default=d;
@@ -1,27 +1,27 @@
1
- import { openBlock as t, createElementBlock as e, Fragment as d, renderList as a, normalizeClass as o, createElementVNode as m, toDisplayString as c, renderSlot as l } from "vue";
1
+ import { openBlock as t, createElementBlock as e, Fragment as a, renderList as o, normalizeClass as d, createElementVNode as m, toDisplayString as c, renderSlot as l } from "vue";
2
2
  import "./Chips.vue2.js";
3
3
  import p from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const u = { class: "t-trimmed" }, h = { class: "t-truncate" }, _ = {
4
+ const u = { class: "t-trimmed font-main" }, h = { class: "font-main t-truncate" }, _ = {
5
5
  key: 1,
6
6
  class: "pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"
7
7
  }, f = {
8
8
  __name: "Chips",
9
9
  props: ["chips"],
10
- setup(i) {
11
- return (r, b) => {
12
- var n;
10
+ setup(n) {
11
+ return (i, b) => {
12
+ var r;
13
13
  return t(), e("div", u, [
14
- (n = i.chips) != null && n.length ? (t(!0), e(d, { key: 0 }, a(i.chips, (s, g) => (t(), e("span", {
15
- class: o([r.$attrs.class || "p-medium", "mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])
14
+ (r = n.chips) != null && r.length ? (t(!0), e(a, { key: 0 }, o(n.chips, (s, g) => (t(), e("span", {
15
+ class: d([i.$attrs.class || "p-medium", "mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])
16
16
  }, [
17
17
  m("span", h, c(s.text ? s.text : s), 1)
18
18
  ], 2))), 256)) : (t(), e("div", _, [
19
- l(r.$slots, "default", {}, void 0, !0)
19
+ l(i.$slots, "default", {}, void 0, !0)
20
20
  ]))
21
21
  ]);
22
22
  };
23
23
  }
24
- }, y = /* @__PURE__ */ p(f, [["__scopeId", "data-v-5db8d9f5"]]);
24
+ }, y = /* @__PURE__ */ p(f, [["__scopeId", "data-v-20cd2675"]]);
25
25
  export {
26
26
  y as default
27
27
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("./Calendar.vue.cjs");const N=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),B={class:"calendar"},S={key:0,class:"br-b br-solid br-grey gap-thin flex flex-nowrap pd-thin"},L={class:"pd-thin flex flex-nowrap flex-v-center flex-justify-between"},W={class:"calendar__body"},O={class:"calendar__week"},R={class:"gap-micro calendar__dates"},j=["onClick"],q={__name:"Calendar",props:{modelValue:[Date,Object],allowRange:Boolean},emits:["update:modelValue"],setup(C,{emit:U}){const m=C,r=U,v=new Date,s=t.ref(v),g=t.ref(null),l=t.ref(null),n=t.ref(null),p=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),h=t.computed(()=>{const e=s.value.toLocaleString("default",{month:"long",timeZone:"UTC"}),a=s.value.getUTCFullYear();return`${e} ${a}`}),f=t.computed(()=>{const e=[],a=new Date(Date.UTC(s.value.getUTCFullYear(),s.value.getUTCMonth(),1)),u=new Date(Date.UTC(s.value.getUTCFullYear(),s.value.getUTCMonth()+1,0)),d=a.getUTCDay();let o=new Date(a);o.setUTCDate(o.getUTCDate()-d);for(let i=0;i<d;i++)e.push({date:new Date(o),day:o.getUTCDate(),isToday:T(o)}),o.setUTCDate(o.getUTCDate()+1);let D=1;for(o=a;o<=u;o.setUTCDate(o.getUTCDate()+1))e.push({date:new Date(o),day:D,isToday:T(o)}),D++;const x=e[e.length-1].date.getUTCDay();for(let i=x+1;i<=6;i++)e.push({date:new Date(o),day:o.getUTCDate(),isToday:T(o)}),o.setUTCDate(o.getUTCDate()+1);return e}),T=e=>{const a=new Date;return e.getUTCDate()===a.getUTCDate()&&e.getUTCMonth()===a.getUTCMonth()&&e.getUTCFullYear()===a.getUTCFullYear()},_=e=>e.getUTCMonth()===s.value.getUTCMonth()&&e.getUTCFullYear()===s.value.getUTCFullYear(),w=e=>{if(m.allowRange){if(l.value&&n.value)return e>=l.value&&e<=n.value;if(l.value)return e.getTime()===l.value.getTime()}else return g.value&&e.getTime()===g.value.getTime()},y=e=>l.value&&n.value?e>l.value&&e<n.value:!1,k=e=>{const a=c(e);if(!m.allowRange)r("update:modelValue",a),g.value=a;else if(!l.value&&!n.value)r("update:modelValue",a),l.value=a;else if(n.value)l.value=a,n.value=null,r("update:modelValue",a);else{if(n.value=a,a<l.value){const u=l.value;l.value=a,n.value=u}r("update:modelValue",{start:l.value,end:n.value})}s.value=a},b=()=>{s.value=new Date(Date.UTC(s.value.getUTCFullYear(),s.value.getUTCMonth()-1,1))},V=()=>{s.value=new Date(Date.UTC(s.value.getUTCFullYear(),s.value.getUTCMonth()+1,1))},M=()=>{const e=new Date(v);e.setUTCHours(0,0,0,0);const a=new Date(e);a.setUTCHours(24,0,0,-1),l.value=c(e),n.value=c(a),r("update:modelValue",{start:l.value,end:n.value})},F=()=>{const e=new Date;e.setUTCDate(e.getUTCDate()-7),l.value=c(e),n.value=c(v),r("update:modelValue",{start:l.value,end:n.value})},Y=()=>{const e=new Date;e.setUTCMonth(e.getUTCMonth()-1),l.value=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)),n.value=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+1,0)),r("update:modelValue",{start:l.value,end:n.value})},E=()=>{const e=new Date;e.setUTCFullYear(e.getUTCFullYear()-1),l.value=new Date(Date.UTC(e.getUTCFullYear(),0,1)),n.value=new Date(Date.UTC(e.getUTCFullYear(),11,31)),r("update:modelValue",{start:l.value,end:n.value})};return(e,a)=>(t.openBlock(),t.createElementBlock("div",B,[C.allowRange?(t.openBlock(),t.createElementBlock("div",S,[t.createElementVNode("button",{class:"font-second pd-thin bg-main-transp-10 radius-small",onClick:M},"Today"),t.createElementVNode("button",{class:"font-second pd-thin bg-main-transp-10 radius-small",onClick:F},"Last Week"),t.createElementVNode("button",{class:"font-second pd-thin bg-main-transp-10 radius-small",onClick:Y},"Last Month"),t.createElementVNode("button",{class:"font-second pd-thin bg-main-transp-10 radius-small",onClick:E},"All time")])):t.createCommentVNode("",!0),t.createElementVNode("div",L,[t.createElementVNode("button",{class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small",onClick:b},"<"),t.createElementVNode("span",null,t.toDisplayString(h.value),1),t.createElementVNode("button",{class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small",onClick:V},">")]),t.createElementVNode("div",W,[t.createElementVNode("div",O,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(p,(u,d)=>t.createElementVNode("div",{key:d,class:"calendar__weekday"},t.toDisplayString(u),1)),64))]),t.createElementVNode("div",R,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,u=>(t.openBlock(),t.createElementBlock("div",{key:u.date,class:t.normalizeClass(["flex flex-center cursor-pointer aspect-ratio-1x1 radius-small",{"bg-main t-white":u.isToday},{"calendar__date--selected":w(u.date)},{"calendar__date--range":y(u.date)},{"calendar__date--disabled":!_(u.date)}]),onClick:d=>k(u.date)},t.toDisplayString(u.day),11,j))),128))])])]))}},H=N.default(q,[["__scopeId","data-v-f695bc9a"]]);exports.default=H;