@ozdao/prometheus-framework 0.2.43 → 0.2.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (444) hide show
  1. package/dist/main-2247448a.js +91 -0
  2. package/dist/main-6c51a895.mjs +13628 -0
  3. package/dist/main.css +1 -1
  4. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  5. package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
  6. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  7. package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
  8. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  9. package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
  10. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  11. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
  12. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
  13. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  14. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
  15. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
  16. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
  17. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  18. package/dist/node_modules/ethereum-cryptography/esm/utils.js +4 -3
  19. package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
  20. package/dist/node_modules/vue3-carousel/dist/carousel.css.js +4 -1
  21. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  22. package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
  23. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
  24. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
  25. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  26. package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
  27. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
  28. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
  29. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  30. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
  31. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
  32. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
  33. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
  34. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
  35. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  36. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
  37. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  38. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
  39. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  40. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
  41. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  42. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
  43. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  44. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
  45. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
  46. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
  47. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  48. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
  49. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  50. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
  51. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
  52. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
  53. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  54. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
  55. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  56. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
  57. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  58. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
  59. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  60. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
  61. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  62. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
  63. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
  64. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
  65. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  66. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
  67. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  68. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
  69. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  70. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
  71. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  72. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
  73. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
  74. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
  75. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
  76. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
  77. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  78. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
  79. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  80. package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
  81. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
  82. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
  83. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
  84. package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
  85. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
  86. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
  87. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
  88. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
  89. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
  90. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
  91. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
  92. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
  93. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
  94. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
  95. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
  96. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
  97. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  98. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
  99. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
  100. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
  101. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
  102. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
  103. package/dist/products.server.js +875 -0
  104. package/dist/products.server.mjs +875 -0
  105. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/components/Address/Address.vue.js +4 -1
  107. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +4 -1
  109. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -225
  111. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  112. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +227 -1
  113. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +2 -61
  115. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  116. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +63 -1
  117. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
  118. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +4 -1
  119. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  120. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +4 -1
  121. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
  122. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +4 -1
  123. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
  125. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  126. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +78 -1
  127. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +18 -18
  129. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  131. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
  132. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +4 -1
  133. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
  135. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
  136. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +4 -1
  137. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
  138. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +4 -1
  139. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +4 -1
  141. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
  142. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +4 -1
  143. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +4 -1
  145. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +4 -1
  147. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
  148. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +4 -1
  149. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/components/Map/Map.vue.js +4 -1
  151. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -70
  153. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  154. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -1
  155. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -95
  157. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  158. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +97 -1
  159. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
  160. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +4 -1
  161. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +4 -1
  163. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +4 -1
  165. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  166. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -1
  167. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  169. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  170. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +4 -1
  171. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  173. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  174. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  175. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  177. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  179. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  181. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +4 -1
  183. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  185. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +4 -1
  187. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
  189. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +4 -1
  191. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
  193. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +4 -1
  195. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
  197. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +4 -1
  199. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +4 -1
  201. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
  203. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  205. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  207. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +4 -1
  209. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  211. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  213. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +4 -1
  215. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +5 -5
  217. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +4 -1
  221. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +4 -1
  223. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  225. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  227. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  229. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +4 -1
  231. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  233. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  234. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -65
  235. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  236. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  237. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  239. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +4 -1
  243. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  245. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +7 -7
  247. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +4 -1
  249. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  251. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +4 -1
  253. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +4 -1
  255. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +4 -1
  257. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  259. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  261. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  263. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +4 -1
  265. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  267. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +4 -1
  269. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  271. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +4 -1
  275. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  277. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +4 -1
  279. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
  281. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  283. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
  285. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -1
  287. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +2 -2
  289. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +4 -1
  291. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
  293. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  295. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +4 -1
  297. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  299. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  301. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +4 -1
  303. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +4 -1
  305. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +4 -1
  307. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +4 -1
  309. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  311. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
  313. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +4 -1
  315. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  317. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  319. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +4 -1
  321. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
  323. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  325. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +4 -1
  327. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  329. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  331. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +4 -1
  333. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +4 -1
  335. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +4 -1
  337. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  338. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  339. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  341. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  343. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  345. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +4 -1
  347. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +4 -1
  349. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  351. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.cjs +1 -0
  352. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.js +43 -0
  353. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -0
  354. package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +4 -0
  355. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
  356. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +4 -1
  357. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  358. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  359. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +4 -1
  361. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  362. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  363. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +41 -1
  365. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -0
  366. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +4 -0
  367. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +4 -1
  369. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +4 -1
  371. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  373. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -1
  375. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +4 -1
  377. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
  378. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +4 -1
  379. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  380. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +5 -5
  381. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +4 -1
  383. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -0
  384. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +87 -0
  385. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -0
  386. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +4 -0
  387. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -0
  388. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +138 -0
  389. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  390. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  391. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  392. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  393. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
  394. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +4 -1
  395. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -0
  396. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +114 -0
  397. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -0
  398. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +4 -0
  399. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -1
  401. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  403. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -0
  404. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +53 -0
  405. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -0
  406. package/dist/prometheus-framework/src/modules/products/products.client.js +56 -0
  407. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  408. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  409. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  410. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  411. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  412. package/dist/prometheus-framework/src/modules/products/store/products.js +3 -1
  413. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  414. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  415. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  416. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  417. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
  418. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +4 -1
  419. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  420. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  421. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  422. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  423. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
  424. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +4 -1
  425. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  426. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  427. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
  428. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +4 -1
  429. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  430. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  431. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  432. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +3 -3
  433. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
  434. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
  435. package/dist/prometheus-framework.cjs.js +1 -1
  436. package/dist/prometheus-framework.es.js +1 -1
  437. package/dist/style.css +1 -1
  438. package/dist/web-65c35f46.mjs +55 -0
  439. package/dist/web-adbe95b6.js +1 -0
  440. package/package.json +1 -1
  441. package/src/modules/products/components/pages/ProductRecommmendation.vue +2 -2
  442. package/src/modules/products/products.client.js +76 -20
  443. package/src/modules/products/products.server.js +10 -6
  444. package/src/modules/products/router/products.router.js +4 -2
@@ -0,0 +1,875 @@
1
+ import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-83b1d755.mjs";
2
+ import "uuid";
3
+ import require$$0 from "mongoose";
4
+ import "path";
5
+ import require$$3 from "openai";
6
+ import { s as server } from "./index-d769324d.mjs";
7
+ import "jsonwebtoken";
8
+ import "mongodb";
9
+ var product_model = (mongoose) => {
10
+ const ProductSchema = new mongoose.Schema({
11
+ owner: {
12
+ type: mongoose.Schema.Types.ObjectId,
13
+ ref: "User"
14
+ },
15
+ organization: {
16
+ type: mongoose.Schema.Types.ObjectId,
17
+ ref: "Organization"
18
+ },
19
+ status: { type: String },
20
+ name: { type: String },
21
+ category: { type: Array },
22
+ description: { type: String },
23
+ sale: { type: Number },
24
+ price: { type: Number },
25
+ images: { type: Array },
26
+ popularity: { type: Number },
27
+ localization: { type: Array },
28
+ ingredients: { type: Array },
29
+ information: [{
30
+ name: { type: String },
31
+ value: { type: String }
32
+ }],
33
+ // MoySklad
34
+ quantity: { type: Number },
35
+ quantityDiscount: [{
36
+ quantity: {
37
+ type: Number,
38
+ required: true,
39
+ min: [1, "Quantity cannot be less than 1"]
40
+ },
41
+ discount: {
42
+ type: Number,
43
+ required: true,
44
+ min: [0, "Quantity-based discount cannot be less than 0"],
45
+ max: [100, "Quantity-based discount cannot be more than 100"]
46
+ }
47
+ }]
48
+ }, {
49
+ timestamps: {
50
+ currentTime: () => Date.now()
51
+ }
52
+ });
53
+ ProductSchema.index({ organization: 1 });
54
+ ProductSchema.index({ category: 1 });
55
+ ProductSchema.index({ price: 1 });
56
+ const Product = mongoose.model("Product", ProductSchema);
57
+ return Product;
58
+ };
59
+ const product_model$1 = /* @__PURE__ */ getDefaultExportFromCjs(product_model);
60
+ var category_model = (mongoose) => {
61
+ const СategorySchema = new mongoose.Schema({
62
+ name: {
63
+ type: String,
64
+ required: true,
65
+ trim: true
66
+ },
67
+ url: {
68
+ type: String,
69
+ required: true,
70
+ trim: true
71
+ },
72
+ subcategories: {
73
+ type: Array
74
+ },
75
+ localization: {
76
+ type: Array
77
+ },
78
+ filters: {
79
+ type: Array
80
+ },
81
+ owner: {
82
+ type: {
83
+ type: String,
84
+ required: true
85
+ },
86
+ target: {
87
+ type: mongoose.Schema.Types.ObjectId,
88
+ ref: function(value) {
89
+ if (this.owner.type === "user")
90
+ return "User";
91
+ if (this.owner.type === "organization")
92
+ return "Organization";
93
+ },
94
+ required: true
95
+ }
96
+ },
97
+ creator: {
98
+ hidden: {
99
+ type: Boolean,
100
+ required: true
101
+ },
102
+ type: {
103
+ type: String,
104
+ required: true
105
+ },
106
+ target: {
107
+ type: mongoose.Schema.Types.ObjectId,
108
+ ref: function(value) {
109
+ if (this.owner.type === "user")
110
+ return "User";
111
+ if (this.owner.type === "organization")
112
+ return "Organization";
113
+ },
114
+ required: true
115
+ }
116
+ }
117
+ }, {
118
+ timestamps: {
119
+ currentTime: () => Date.now()
120
+ }
121
+ });
122
+ СategorySchema.index({ "owner.target": 1, "creator.target": 1 });
123
+ const Сategory = mongoose.model("Сategory", СategorySchema, "categories");
124
+ return Сategory;
125
+ };
126
+ const category_model$1 = /* @__PURE__ */ getDefaultExportFromCjs(category_model);
127
+ var modification_model = (mongoose) => {
128
+ const ModificationSchema = new mongoose.Schema({
129
+ name: {
130
+ type: String
131
+ },
132
+ product: {
133
+ type: mongoose.Schema.Types.ObjectId,
134
+ ref: "Product",
135
+ required: true
136
+ },
137
+ price: {
138
+ type: Number
139
+ },
140
+ quantity: {
141
+ type: Number
142
+ },
143
+ // dups: {type: Array},
144
+ characteristics: [{
145
+ _id: {
146
+ type: String
147
+ },
148
+ name: {
149
+ type: String
150
+ },
151
+ value: {
152
+ type: String
153
+ }
154
+ }]
155
+ }, {
156
+ timestamps: {
157
+ currentTime: () => Date.now()
158
+ }
159
+ });
160
+ ModificationSchema.index({ product: 1 });
161
+ const Modification = mongoose.model("Modification", ModificationSchema);
162
+ return Modification;
163
+ };
164
+ const modification_model$1 = /* @__PURE__ */ getDefaultExportFromCjs(modification_model);
165
+ var leftover_model = (mongoose) => {
166
+ const LeftoverSchema = new mongoose.Schema({
167
+ organization: {
168
+ type: mongoose.Schema.Types.ObjectId,
169
+ ref: "Organization"
170
+ },
171
+ type: {
172
+ type: String,
173
+ enum: ["stock-in", "stock-out", "write-off"],
174
+ default: "stock-in",
175
+ required: true
176
+ },
177
+ order: {
178
+ type: String
179
+ },
180
+ store: {
181
+ type: Object
182
+ },
183
+ positions: [{
184
+ _id: {
185
+ type: mongoose.Schema.Types.ObjectId,
186
+ ref: "Product"
187
+ },
188
+ name: {
189
+ type: String
190
+ },
191
+ quantity: {
192
+ type: Number
193
+ },
194
+ price: {
195
+ type: Number
196
+ },
197
+ type: {
198
+ type: String
199
+ }
200
+ }]
201
+ }, {
202
+ timestamps: {
203
+ currentTime: () => Date.now()
204
+ }
205
+ });
206
+ LeftoverSchema.index({ user: 1, type: 1, target: 1 });
207
+ const Leftover = mongoose.model("Leftover", LeftoverSchema);
208
+ return Leftover;
209
+ };
210
+ const leftover_model$1 = /* @__PURE__ */ getDefaultExportFromCjs(leftover_model);
211
+ const ObjectId$1 = require$$0.Types.ObjectId;
212
+ const OpenAI = require$$3;
213
+ const openai = new OpenAI();
214
+ const controllerFactory$5 = (db) => {
215
+ const Product = db.product;
216
+ db.modification;
217
+ db.leftover;
218
+ const Create = async (req, res) => {
219
+ try {
220
+ const newProduct = new Product(req.body);
221
+ const data = await newProduct.save();
222
+ res.send(data);
223
+ } catch (err) {
224
+ console.log(err);
225
+ res.status(500).send({ message: err.message });
226
+ }
227
+ };
228
+ const Read = async (req, res) => {
229
+ try {
230
+ let query = {};
231
+ let options = {};
232
+ if (req.query.organization) {
233
+ query.organization = new ObjectId$1(req.query.organization);
234
+ }
235
+ if (req.query._id) {
236
+ query._id = req.query._id;
237
+ }
238
+ if (req.query.status) {
239
+ query.status = req.query.status;
240
+ }
241
+ const categories = req.query.categories?.split(",") || [];
242
+ if (categories.length) {
243
+ query.category = { $in: categories };
244
+ }
245
+ const deliveryOptions = req.query.delivery?.split(",") || [];
246
+ if (deliveryOptions.length) {
247
+ query.delivery = { $in: deliveryOptions };
248
+ }
249
+ const prices = req.query.prices?.split(",") || [];
250
+ console.log(prices);
251
+ if (prices.length) {
252
+ const priceConditions = prices.map((priceRange) => {
253
+ if (priceRange.startsWith("<")) {
254
+ return { price: { $lt: parseInt(priceRange.slice(1)) } };
255
+ }
256
+ if (priceRange.startsWith(">")) {
257
+ return { price: { $gt: parseInt(priceRange.slice(1)) } };
258
+ }
259
+ const [min, max] = priceRange.split("-").map(Number);
260
+ return { price: { $gte: min, $lte: max } };
261
+ });
262
+ console.log(priceConditions);
263
+ if (priceConditions.length) {
264
+ query = {
265
+ ...query,
266
+ ...{ $or: priceConditions }
267
+ };
268
+ }
269
+ }
270
+ options.skip = parseInt(req.query.skip) || 0;
271
+ options.limit = parseInt(req.query.limit) || 10;
272
+ options.sort = { createdAt: -1 };
273
+ if (req.query.count) {
274
+ try {
275
+ const count = await Product.countDocuments(query);
276
+ return res.status(200).json({ count });
277
+ } catch (err) {
278
+ return res.status(500).json({ message: err.message });
279
+ }
280
+ }
281
+ console.log(query);
282
+ const products = await Product.find(query, null, options);
283
+ if (!products.length) {
284
+ return res.status(200).json([]);
285
+ }
286
+ res.status(200).json(products);
287
+ } catch (err) {
288
+ return res.status(500).json({ message: err.message });
289
+ }
290
+ };
291
+ const Update = async (req, res) => {
292
+ try {
293
+ const { _id } = req.params;
294
+ console.log(_id);
295
+ const updatedProduct = await Product.findOneAndUpdate(
296
+ { _id },
297
+ {
298
+ name: req.body.name,
299
+ status: req.body.status,
300
+ description: req.body.description,
301
+ price: req.body.price,
302
+ sale: req.body.sale,
303
+ category: req.body.category,
304
+ images: req.body.images,
305
+ information: req.body.information,
306
+ localization: req.body.localization,
307
+ quantity: req.body.quantity,
308
+ quantityDiscount: req.body.quantityDiscount
309
+ },
310
+ { new: true }
311
+ );
312
+ if (!updatedProduct) {
313
+ return res.status(404).send({ message: "Something wrong when updating product." });
314
+ }
315
+ res.status(200).send(updatedProduct);
316
+ } catch (err) {
317
+ res.status(500).send({ message: err.message });
318
+ }
319
+ };
320
+ const Delete = async (req, res) => {
321
+ try {
322
+ const { _id } = req.params;
323
+ const deletedProduct = await Product.findOneAndDelete({ _id });
324
+ if (!deletedProduct) {
325
+ return res.status(404).send({ message: "Product not found for deletion." });
326
+ }
327
+ res.status(200).send(deletedProduct);
328
+ } catch (err) {
329
+ res.status(500).send({ message: err.message });
330
+ }
331
+ };
332
+ const getProducts = (req, res) => {
333
+ Product.aggregate([
334
+ {
335
+ $facet: {
336
+ "withIngredients": [
337
+ {
338
+ $match: {
339
+ ingridients: { $exists: true, $not: { $size: 0 } }
340
+ // Продукты с ингредиентами
341
+ }
342
+ },
343
+ {
344
+ $lookup: {
345
+ from: "products",
346
+ localField: "ingridients",
347
+ foreignField: "_id",
348
+ as: "ingredientDetails"
349
+ }
350
+ },
351
+ { $unwind: "$ingredientDetails" },
352
+ {
353
+ $lookup: {
354
+ from: "leftovers",
355
+ let: { "ingredientId": "$ingredientDetails._id" },
356
+ pipeline: [
357
+ { $unwind: "$positions" },
358
+ {
359
+ $match: {
360
+ $expr: {
361
+ $eq: ["$positions._id", "$$ingredientId"]
362
+ }
363
+ }
364
+ },
365
+ {
366
+ $project: {
367
+ quantity: "$positions.quantity"
368
+ }
369
+ }
370
+ ],
371
+ as: "ingredientLeftovers"
372
+ }
373
+ },
374
+ {
375
+ $group: {
376
+ _id: "$_id",
377
+ name: { $first: "$name" },
378
+ minQuantity: { $min: "$ingredientLeftovers.quantity" }
379
+ }
380
+ }
381
+ ],
382
+ "withoutIngredients": [
383
+ {
384
+ $match: {
385
+ $or: [
386
+ { ingridients: { $exists: false } },
387
+ // Продукты без ингредиентов
388
+ { ingridients: { $size: 0 } }
389
+ ]
390
+ }
391
+ },
392
+ {
393
+ $lookup: {
394
+ from: "leftovers",
395
+ let: { "productId": "$_id" },
396
+ pipeline: [
397
+ { $unwind: "$positions" },
398
+ {
399
+ $match: {
400
+ $expr: {
401
+ $eq: ["$positions._id", "$$productId"]
402
+ }
403
+ }
404
+ },
405
+ {
406
+ $project: {
407
+ quantity: "$positions.quantity"
408
+ }
409
+ }
410
+ ],
411
+ as: "productLeftovers"
412
+ }
413
+ },
414
+ {
415
+ $set: {
416
+ minQuantity: { $sum: "$productLeftovers.quantity" }
417
+ }
418
+ }
419
+ ]
420
+ }
421
+ },
422
+ {
423
+ $project: {
424
+ products: { $setUnion: ["$withIngredients", "$withoutIngredients"] }
425
+ }
426
+ },
427
+ { $unwind: "$products" },
428
+ { $replaceRoot: { newRoot: "$products" } }
429
+ ]).exec((err, products) => {
430
+ if (err) {
431
+ return res.status(500).send({ message: err });
432
+ }
433
+ if (!products) {
434
+ return res.status(404).send({ message: "Products not found." });
435
+ }
436
+ res.status(200).send(products);
437
+ console.log(products);
438
+ });
439
+ };
440
+ const getProductRecommendation = async (req, res) => {
441
+ const { mood } = req.body;
442
+ try {
443
+ const products = await Product.find({
444
+ status: "published"
445
+ }).limit(40);
446
+ if (!products) {
447
+ console.log("no products");
448
+ return res.status(404).send({ message: "Products not found." });
449
+ }
450
+ const productsList = products.map((p) => `
451
+ ${p._id}:
452
+ ${p.name}
453
+ (${p.information[0].value})
454
+ (${p.information[1].value}%)
455
+ (${p.information[2].value})
456
+ `).join(", ");
457
+ const prompt = `
458
+ 1. When asked how the client wants to feel, they responded "${mood}".
459
+ 2. Here is a list of products in our store: ${productsList}.
460
+ 3. Based on the information about the products (strain, THC content) and the user's desires, choose 1 product to recommend to the user.
461
+ 4. The response should be in the language that the user used in mood (${mood}).
462
+ 5. Please format your response as a JSON object '{"_id": "ID of the recommended product (it must correspond to one of the product IDs I sent)", "recommendationText": "Text explaining why this particular product"'. Write only the JSON object without any other text outside of it.
463
+ `;
464
+ console.log(prompt);
465
+ let response;
466
+ let result;
467
+ while (true) {
468
+ try {
469
+ response = await openai.chat.completions.create({
470
+ model: "gpt-4",
471
+ messages: [{ role: "user", content: prompt }]
472
+ });
473
+ console.log(response);
474
+ result = JSON.parse(response.choices[0].message.content);
475
+ break;
476
+ } catch (err) {
477
+ if (err instanceof SyntaxError) {
478
+ console.log("Received invalid JSON, retrying...");
479
+ } else {
480
+ console.log(err);
481
+ res.status(500).send({ message: err });
482
+ return;
483
+ }
484
+ }
485
+ }
486
+ console.log(result._id);
487
+ console.log(result.recommendationText);
488
+ const recommendedProduct = await Product.findById(result._id);
489
+ if (!recommendedProduct) {
490
+ console.log(`No product found with _id: ${result._id}`);
491
+ return res.status(404).send({ message: "Recommended product not found." });
492
+ }
493
+ res.status(200).json({ product: recommendedProduct, recommendationText: result.recommendationText });
494
+ } catch (err) {
495
+ console.log(err);
496
+ res.status(500).send({ message: err });
497
+ }
498
+ };
499
+ const getProductsPopular = (req, res) => {
500
+ Product.find({
501
+ status: "published",
502
+ popularity: { $gt: 10 }
503
+ }).populate("modifications").limit(10).exec((err, products) => {
504
+ if (err) {
505
+ return res.status(500).send({ message: err });
506
+ }
507
+ if (!products) {
508
+ return res.status(404).send({ message: "Products not found." });
509
+ }
510
+ res.status(200).send(products);
511
+ });
512
+ };
513
+ const getProduct = async (req, res) => {
514
+ try {
515
+ const product = await Product.aggregate([
516
+ {
517
+ $match: { "_id": new ObjectId$1(req.params._id) }
518
+ },
519
+ {
520
+ $lookup: {
521
+ from: "leftovers",
522
+ let: { productId: "$_id", ingredients: { $ifNull: ["$ingredients", []] } },
523
+ pipeline: [
524
+ {
525
+ $unwind: "$positions"
526
+ },
527
+ {
528
+ "$match": { "$expr": { "$eq": ["$positions._id", "$$productId"] } }
529
+ },
530
+ {
531
+ "$addFields": {
532
+ "positions.quantity": {
533
+ $cond: {
534
+ if: { $eq: ["$type", "stock-in"] },
535
+ then: "$positions.quantity",
536
+ else: { $multiply: ["$positions.quantity", -1] }
537
+ }
538
+ }
539
+ }
540
+ },
541
+ {
542
+ "$project": {
543
+ _id: "$positions._id",
544
+ quantity: "$positions.quantity",
545
+ name: "$positions.name"
546
+ }
547
+ }
548
+ ],
549
+ as: "variants"
550
+ }
551
+ },
552
+ {
553
+ $set: {
554
+ quantity: {
555
+ $sum: ["$quantity", { $sum: "$variants.quantity" }]
556
+ }
557
+ }
558
+ },
559
+ { $unset: "variants" }
560
+ ]);
561
+ if (!product || product.length < 1) {
562
+ return res.status(404).send({ message: "Product not found." });
563
+ }
564
+ const updatedProduct = await Product.findOneAndUpdate(
565
+ { _id: req.params._id },
566
+ { $inc: { popularity: 1 } },
567
+ { new: true }
568
+ );
569
+ console.log("Popularity updated:", updatedProduct);
570
+ res.status(200).send(product);
571
+ } catch (err) {
572
+ console.error("Error:", err);
573
+ res.status(500).send({ message: err });
574
+ }
575
+ };
576
+ return {
577
+ Create,
578
+ Read,
579
+ Update,
580
+ Delete,
581
+ getProducts,
582
+ getProductsPopular,
583
+ getProduct,
584
+ getProductRecommendation
585
+ };
586
+ };
587
+ var products_controller = controllerFactory$5;
588
+ const controllerFactory$4 = products_controller;
589
+ var products_routes = function(app, db, allowedOrigins) {
590
+ const controller = controllerFactory$4(db);
591
+ app.use(function(req, res, next) {
592
+ res.header(
593
+ "Access-Control-Allow-Headers",
594
+ "Access-Control-Allow-Origin: *",
595
+ "x-access-token, Origin, Content-Type, Accept"
596
+ );
597
+ next();
598
+ });
599
+ app.post(
600
+ "/api/products/create",
601
+ controller.Create
602
+ );
603
+ app.get(
604
+ "/api/products/read",
605
+ controller.Read
606
+ );
607
+ app.post(
608
+ "/api/products/:_id",
609
+ controller.Update
610
+ );
611
+ app.delete(
612
+ "/api/products/:_id",
613
+ controller.Delete
614
+ );
615
+ app.post(
616
+ "/api/product/recommended",
617
+ controller.getProductRecommendation
618
+ );
619
+ app.get(
620
+ "/api/products/:_id",
621
+ controller.getProduct
622
+ );
623
+ };
624
+ const products_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(products_routes);
625
+ const controllerFactory$3 = (db) => {
626
+ const Category = db.category;
627
+ const getCategories = async (req, res) => {
628
+ console.log(Category);
629
+ try {
630
+ const categories = await Category.find({}).sort({ "order": "asc" }).exec();
631
+ if (!categories) {
632
+ return res.status(404).send({ message: "Categories not found." });
633
+ }
634
+ res.status(200).send(categories);
635
+ } catch (err) {
636
+ console.log(err);
637
+ res.status(500).send({ message: err });
638
+ }
639
+ };
640
+ const updateCategories = async (req, res) => {
641
+ try {
642
+ const updates = req.body.all.map(async (categoryUpdated) => {
643
+ const category = await Category.findOneAndUpdate(
644
+ { url: categoryUpdated.url },
645
+ { $set: categoryUpdated },
646
+ { new: true }
647
+ ).exec();
648
+ if (!category) {
649
+ throw new Error("Categories is not updated.");
650
+ }
651
+ });
652
+ await Promise.all(updates);
653
+ console.log("success");
654
+ res.status(200).send({ message: "Categories updated successfully." });
655
+ } catch (err) {
656
+ res.send({ message: err.message });
657
+ }
658
+ };
659
+ const getCategory = async (req, res) => {
660
+ try {
661
+ const category = await Category.findOne({ url: req.params.url }).exec();
662
+ if (!category) {
663
+ return res.status(404).send({ message: "Category not found." });
664
+ }
665
+ res.status(200).send(category);
666
+ } catch (err) {
667
+ res.status(500).send({ message: err });
668
+ }
669
+ };
670
+ const addCategory = async (req, res) => {
671
+ try {
672
+ const category = await Category.create(req.body);
673
+ if (!category) {
674
+ return res.status(404).send({ message: "Category is not created." });
675
+ }
676
+ res.status(200).send(category);
677
+ } catch (err) {
678
+ console.log(req.body);
679
+ console.log(req.category);
680
+ res.status(500).send({ message: err });
681
+ }
682
+ };
683
+ const updateCategory = async (req, res) => {
684
+ try {
685
+ const category = await Category.findOneAndUpdate(
686
+ { url: req.params.url },
687
+ { $set: req.body },
688
+ { new: true }
689
+ ).exec();
690
+ if (!category) {
691
+ return res.status(404).send({ message: "Something wrong when updating category." });
692
+ }
693
+ res.status(200).send(category);
694
+ } catch (err) {
695
+ res.status(500).send({ message: err });
696
+ }
697
+ };
698
+ const deleteCategory = async (req, res) => {
699
+ try {
700
+ const category = await Category.findOneAndDelete({ url: req.params.url }).exec();
701
+ if (!category) {
702
+ return res.status(404).send({ message: "Category is not deleted." });
703
+ }
704
+ res.status(200).send(category);
705
+ } catch (err) {
706
+ res.status(500).send({ message: err });
707
+ }
708
+ };
709
+ return {
710
+ getCategories,
711
+ updateCategories,
712
+ getCategory,
713
+ addCategory,
714
+ updateCategory,
715
+ deleteCategory
716
+ };
717
+ };
718
+ var categories_controller = controllerFactory$3;
719
+ const controllerFactory$2 = categories_controller;
720
+ const middlewareFactory = server;
721
+ var categories_routes = function(app, db) {
722
+ const controller = controllerFactory$2(db);
723
+ const { verifyCategory } = middlewareFactory(db);
724
+ app.use(function(req, res, next) {
725
+ res.header(
726
+ "Access-Control-Allow-Headers",
727
+ "Access-Control-Allow-Origin",
728
+ "x-access-token, Origin, Content-Type, Accept"
729
+ );
730
+ next();
731
+ });
732
+ app.get(
733
+ "/categories",
734
+ controller.getCategories
735
+ );
736
+ app.post(
737
+ "/categories",
738
+ controller.updateCategories
739
+ );
740
+ app.get(
741
+ "/categories/:url",
742
+ controller.getCategory
743
+ );
744
+ app.post(
745
+ "/categories/add",
746
+ [
747
+ verifyCategory.checkCategoryExistOrNot
748
+ ],
749
+ controller.addCategory
750
+ );
751
+ app.post(
752
+ "/categories/:url",
753
+ controller.updateCategory
754
+ );
755
+ app.delete(
756
+ "/categories/:url",
757
+ controller.deleteCategory
758
+ );
759
+ };
760
+ const categories_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(categories_routes);
761
+ const ObjectId = require$$0.Types.ObjectId;
762
+ const controllerFactory$1 = (db) => {
763
+ const Leftover = db.leftover;
764
+ const getAll = async (req, res) => {
765
+ try {
766
+ let query = {};
767
+ let options = {};
768
+ if (req.query.organization)
769
+ query.organization = new ObjectId(req.query.organization);
770
+ const leftoveres = await Leftover.find(query, null, options).sort({ "createdAt": "desc" }).exec();
771
+ if (!leftoveres) {
772
+ return res.status(404).send({ message: "LEFTOVERES_NOT_FOUND" });
773
+ }
774
+ res.status(200).send(leftoveres);
775
+ } catch (err) {
776
+ res.status(500).send({ message: "ERROR_GET_ALL_LEFTOVERES" });
777
+ }
778
+ };
779
+ const create = async (req, res) => {
780
+ try {
781
+ const leftover = await Leftover.create({
782
+ organization: req.body.organization,
783
+ type: req.body.type,
784
+ order: req.body.order,
785
+ positions: req.body.positions
786
+ });
787
+ if (!leftover) {
788
+ return res.status(404).send({ message: "ERROR_CREATING_LEFTOVER" });
789
+ }
790
+ res.status(200).send(leftover);
791
+ } catch (err) {
792
+ res.status(500).send({ message: "ERROR_CREATE_LEFTOVER" });
793
+ }
794
+ };
795
+ const get = async (req, res) => {
796
+ try {
797
+ const leftover = await Leftover.findOne({ _id: req.params._id }).exec();
798
+ if (!leftover) {
799
+ return res.status(404).send({ message: "LEFTOVER_NOT_FOUND" });
800
+ }
801
+ res.status(200).send(leftover);
802
+ } catch (err) {
803
+ res.status(500).send({ message: "ERROR_GET_LEFTOVER" });
804
+ }
805
+ };
806
+ const update = async (req, res) => {
807
+ try {
808
+ const leftover = await Leftover.findOneAndUpdate({ _id: req.params._id }, req.body, { new: true, upsert: true }).exec();
809
+ if (!leftover) {
810
+ return res.status(404).send({ message: "LEFTOVER_NOT_FOUND" });
811
+ }
812
+ res.status(200).send(leftover);
813
+ } catch (err) {
814
+ console.log(err);
815
+ res.status(500).send({ message: "ERROR_UPDATING_LEFTOVER" });
816
+ }
817
+ };
818
+ const deleteLeftover = async (req, res) => {
819
+ try {
820
+ const leftover = await Leftover.findOneAndDelete({ _id: req.params._id });
821
+ if (!leftover) {
822
+ return res.status(404).send({ message: "ERROR_DELETING_LEFTOVER" });
823
+ }
824
+ res.status(200).send(leftover);
825
+ } catch (err) {
826
+ res.status(500).send({ message: "ERROR_DELETE_LEFTOVER" });
827
+ }
828
+ };
829
+ return {
830
+ getAll,
831
+ create,
832
+ get,
833
+ update,
834
+ delete: deleteLeftover
835
+ };
836
+ };
837
+ var leftovers_controller = controllerFactory$1;
838
+ const controllerFactory = leftovers_controller;
839
+ var leftovers_routes = function(app, db) {
840
+ const controller = controllerFactory(db);
841
+ app.use(function(req, res, next) {
842
+ res.header("Access-Control-Allow-Headers", "Access-Control-Allow-Origin: *", "x-access-token, Origin, Content-Type, Accept");
843
+ next();
844
+ });
845
+ app.get(
846
+ "/leftovers",
847
+ controller.getAll
848
+ );
849
+ app.get(
850
+ "/leftovers/:_id",
851
+ controller.get
852
+ );
853
+ app.post(
854
+ "/leftovers/:_id",
855
+ controller.update
856
+ );
857
+ app.post(
858
+ "/leftovers",
859
+ controller.create
860
+ );
861
+ app.delete(
862
+ "/leftovers/:_id",
863
+ controller.delete
864
+ );
865
+ };
866
+ const leftovers_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(leftovers_routes);
867
+ export {
868
+ category_model$1 as CategoryModel,
869
+ leftover_model$1 as LeftoverModel,
870
+ modification_model$1 as ModificationModel,
871
+ product_model$1 as ProductModel,
872
+ categories_routes$1 as categoriesRoutes,
873
+ leftovers_routes$1 as leftoversRoutes,
874
+ products_routes$1 as productsRoutes
875
+ };