@ozdao/prometheus-framework 0.2.31 → 0.2.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (497) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -1
  3. package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +222 -218
  4. package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -1
  5. package/dist/node_modules/@noble/curves/esm/abstract/modular.js +102 -91
  6. package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -1
  7. package/dist/node_modules/@noble/curves/esm/abstract/utils.js +138 -115
  8. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
  9. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +185 -185
  10. package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -1
  11. package/dist/node_modules/@noble/curves/esm/secp256k1.js +11 -8
  12. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  13. package/dist/node_modules/@noble/hashes/esm/_assert.js +29 -33
  14. package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -1
  15. package/dist/node_modules/@noble/hashes/esm/_sha2.js +15 -15
  16. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  17. package/dist/node_modules/@noble/hashes/esm/_u64.js +38 -20
  18. package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -1
  19. package/dist/node_modules/@noble/hashes/esm/hmac.js +20 -20
  20. package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -1
  21. package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +20 -20
  22. package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -1
  23. package/dist/node_modules/@noble/hashes/esm/scrypt.js +41 -41
  24. package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -1
  25. package/dist/node_modules/@noble/hashes/esm/sha256.js +23 -29
  26. package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
  27. package/dist/node_modules/@noble/hashes/esm/sha3.js +44 -55
  28. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  29. package/dist/node_modules/@noble/hashes/esm/sha512.js +23 -41
  30. package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -1
  31. package/dist/node_modules/@noble/hashes/esm/utils.js +37 -33
  32. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +20 -0
  33. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +3974 -0
  34. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -0
  35. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1202 -0
  36. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -0
  37. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +97 -0
  38. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +1 -0
  39. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +37 -0
  40. package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +1 -0
  41. package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +22 -0
  42. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  43. package/dist/node_modules/ethereum-cryptography/esm/utils.js +1 -4
  44. package/dist/node_modules/js-cookie/dist/js.cookie.cjs +1 -0
  45. package/dist/node_modules/js-cookie/dist/js.cookie.js +74 -0
  46. package/dist/node_modules/vue3-carousel/dist/carousel.es.cjs +4 -4
  47. package/dist/node_modules/vue3-carousel/dist/carousel.es.js +340 -244
  48. package/dist/node_modules/web3/lib/esm/abi.cjs +1 -1
  49. package/dist/node_modules/web3/lib/esm/abi.js +5 -10
  50. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  51. package/dist/node_modules/web3/lib/esm/accounts.js +27 -24
  52. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  53. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  54. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
  55. package/dist/node_modules/web3/lib/esm/web3.js +53 -57
  56. package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -1
  57. package/dist/node_modules/web3-core/lib/esm/utils.js +3 -4
  58. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
  59. package/dist/node_modules/web3-core/lib/esm/web3_config.js +22 -19
  60. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  61. package/dist/node_modules/web3-core/lib/esm/web3_context.js +72 -57
  62. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  63. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +53 -61
  64. package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +8 -8
  65. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  66. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +1 -1
  67. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  68. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +42 -42
  69. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  70. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +19 -19
  71. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  72. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +29 -29
  73. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -0
  74. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +51 -0
  75. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  76. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +1 -1
  77. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
  78. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +1 -1
  79. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +132 -47
  80. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -1
  81. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +21 -15
  82. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -1
  83. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +15 -13
  84. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -1
  85. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +1 -1
  86. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -1
  87. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +61 -53
  88. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -1
  89. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +36 -9
  90. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  91. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +107 -103
  92. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -1
  93. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +135 -133
  94. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -1
  95. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +47 -31
  96. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -1
  97. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +18 -17
  98. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  99. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +113 -111
  100. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  101. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +27 -27
  102. package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -1
  103. package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +28 -40
  104. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -1
  105. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +10 -10
  106. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  107. package/dist/node_modules/web3-utils/lib/esm/converters.js +78 -75
  108. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
  109. package/dist/node_modules/web3-utils/lib/esm/formatter.js +8 -8
  110. package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -1
  111. package/dist/node_modules/web3-utils/lib/esm/hash.js +44 -43
  112. package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -1
  113. package/dist/node_modules/web3-utils/lib/esm/index.js +64 -62
  114. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  115. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +78 -40
  116. package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -1
  117. package/dist/node_modules/web3-utils/lib/esm/uint8array.js +16 -11
  118. package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -1
  119. package/dist/node_modules/web3-utils/lib/esm/validation.js +45 -33
  120. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  121. package/dist/node_modules/web3-validator/lib/esm/utils.js +127 -104
  122. package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -1
  123. package/dist/node_modules/web3-validator/lib/esm/validation/address.js +12 -11
  124. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
  125. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +17 -13
  126. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +1 -1
  127. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +7 -9
  128. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
  129. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +8 -8
  130. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +1 -1
  131. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +3 -3
  132. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
  133. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +52 -52
  134. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  135. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2501 -2482
  136. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +2 -1
  137. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +75 -61
  138. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
  139. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +33 -33
  140. package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
  141. package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +1 -1
  142. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
  143. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +1 -1
  144. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -1
  145. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +4 -2
  146. package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.cjs +1 -0
  147. package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.js +701 -0
  148. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +1 -1
  149. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +14 -7
  150. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  151. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  152. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/components/Address/Address.vue.js +2 -80
  154. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  155. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +80 -2
  156. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -0
  157. package/dist/prometheus-framework/src/components/Block/Block.vue.js +62 -0
  158. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
  159. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +15 -15
  160. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  161. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +51 -40
  162. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +21 -21
  164. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -7
  166. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +12 -13
  168. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
  170. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  171. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
  172. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +53 -36
  174. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -0
  175. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +117 -0
  176. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +48 -40
  178. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -2
  180. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
  181. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +20 -10
  182. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +2 -98
  184. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +2 -2
  186. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +25 -27
  188. package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -0
  189. package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +55 -0
  190. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/components/Select/Select.vue.js +55 -40
  192. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  193. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +5 -5
  194. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  195. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +1 -1
  196. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -0
  197. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -0
  198. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -0
  199. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -0
  200. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +2 -73
  202. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  203. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +73 -2
  204. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +3 -3
  206. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +94 -33
  208. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +12 -12
  210. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +69 -61
  212. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +26 -27
  214. package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.js +2 -2
  216. package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.js +7 -7
  218. package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.js +2 -2
  220. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -1
  221. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +3 -3
  222. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -1
  223. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +3 -3
  224. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  225. package/dist/prometheus-framework/src/modules/auth/store/auth.js +30 -30
  226. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  227. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  228. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  229. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  230. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  231. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +9 -9
  232. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  233. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +90 -47
  234. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  235. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +166 -133
  236. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  237. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +86 -68
  238. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  239. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +105 -41
  240. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  241. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +16 -16
  242. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  243. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +51 -42
  244. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  245. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +14 -14
  246. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
  247. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +108 -94
  249. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +19 -19
  251. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +11 -11
  253. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +2 -2
  254. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  255. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +40 -29
  256. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  257. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +10 -9
  258. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  259. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +1 -1
  260. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  261. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +27 -16
  262. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  263. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +21 -21
  264. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -3
  265. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +31 -28
  266. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -0
  267. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +48 -0
  268. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -0
  269. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +33 -0
  270. package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.cjs +1 -0
  271. package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.js +13 -0
  272. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  273. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +106 -85
  274. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  275. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +31 -34
  276. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +8 -8
  277. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
  279. package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/events/router/events.js +1 -1
  281. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  283. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  285. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +13 -6
  287. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/globals/store/globals.js +50 -22
  289. package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.js +13 -13
  291. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.js +3 -3
  293. package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.js +5 -5
  295. package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.cjs +1 -0
  296. package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.js +21 -0
  297. package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.cjs +1 -0
  298. package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.js +21 -0
  299. package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.cjs +1 -0
  300. package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.js +21 -0
  301. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/icons/icons.client.js +38 -34
  303. package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.js +9 -9
  305. package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.js +7 -7
  307. package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.cjs +1 -0
  308. package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.js +30 -0
  309. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +12 -12
  311. package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.cjs +1 -0
  312. package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.js +27 -0
  313. package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.cjs +1 -0
  314. package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.js +29 -0
  315. package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.cjs +1 -0
  316. package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.js +33 -0
  317. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.cjs +1 -0
  318. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.js +21 -0
  319. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.cjs +1 -0
  320. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.js +28 -0
  321. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.js +21 -20
  323. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.js +5 -5
  325. package/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/icons/socials/line.vue.js +6 -6
  327. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.js +1 -1
  329. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +7 -7
  331. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +6 -6
  333. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.js +1 -1
  335. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +48 -35
  337. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -0
  338. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +63 -0
  339. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +6 -8
  341. package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.js +5 -7
  343. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +16 -22
  345. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -0
  346. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -0
  347. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +61 -88
  349. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +104 -193
  351. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +29 -31
  353. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -0
  354. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +129 -0
  355. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  356. package/dist/prometheus-framework/src/modules/orders/store/orders.js +45 -36
  357. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  358. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +27 -26
  359. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +6 -6
  361. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  362. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +85 -79
  363. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +10 -10
  365. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +29 -23
  367. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +5 -5
  369. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +4 -4
  371. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +55 -169
  373. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +48 -59
  375. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +173 -94
  377. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  378. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +27 -20
  379. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  380. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +43 -33
  381. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +67 -63
  383. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  384. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +28 -30
  385. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  386. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +2 -2
  387. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  388. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  389. package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
  390. package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +2 -2
  391. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  392. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -6
  393. package/dist/prometheus-framework/src/modules/organizations/router/products.router.cjs +1 -1
  394. package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +69 -20
  395. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  396. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  397. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  398. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  399. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +38 -38
  401. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +2 -2
  403. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  404. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +39 -44
  405. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  406. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +73 -44
  407. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  408. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +25 -54
  409. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  410. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +39 -39
  411. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  412. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
  413. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -0
  414. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +4 -0
  415. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs +1 -1
  416. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js +18 -11
  417. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
  418. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +24 -24
  419. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -0
  420. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +140 -0
  421. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -0
  422. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -0
  423. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  424. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +27 -23
  425. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  426. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +24 -25
  427. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  428. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +246 -102
  429. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  430. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +28 -24
  431. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  432. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +23 -24
  433. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  434. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +56 -7
  435. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  436. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +82 -65
  437. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  438. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +71 -54
  439. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -0
  440. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -0
  441. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  442. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +60 -86
  443. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  444. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +29 -37
  445. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  446. package/dist/prometheus-framework/src/modules/products/store/products.js +32 -29
  447. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  448. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +43 -107
  449. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  450. package/dist/prometheus-framework/src/modules/spots/store/spots.js +46 -40
  451. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  452. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +89 -94
  453. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  454. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  455. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  456. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +30 -30
  457. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  458. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  459. package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
  460. package/dist/prometheus-framework/src/modules/users/router/users.js +2 -2
  461. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  462. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +80 -71
  463. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -0
  464. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +29 -0
  465. package/dist/prometheus-framework.cjs.js +21 -21
  466. package/dist/prometheus-framework.es.js +1037 -1023
  467. package/dist/style.css +1 -1
  468. package/package.json +1 -1
  469. package/src/components/Countdown/Countdown.vue +75 -0
  470. package/src/components/EditImages/EditImages.vue +10 -2
  471. package/src/components/Upload/Upload.vue +32 -6
  472. package/src/components/UploadImage/UploadImage.vue +12 -8
  473. package/src/components/UploadImageMultiple/UploadImageMultiple.vue +4 -2
  474. package/src/modules/events/components/pages/EditEvent.vue +288 -1
  475. package/src/modules/events/components/pages/Event.vue +125 -46
  476. package/src/modules/events/components/sections/HeroEvent.vue +161 -0
  477. package/src/modules/events/components/sections/SectionLineup.vue +42 -0
  478. package/src/modules/events/components/sections/SectionMainGuest.vue +104 -0
  479. package/src/modules/events/components/sections/SectionPreviousEvents.vue +119 -0
  480. package/src/modules/events/components/sections/SectionSpecialGuests.vue +47 -0
  481. package/src/modules/events/controllers/events.controller.js +1 -0
  482. package/src/modules/events/controllers/utils/queryProcessor.js +2 -0
  483. package/src/modules/events/models/event.model.js +28 -0
  484. package/src/modules/events/store/events.js +4 -0
  485. package/src/modules/files/controllers/files.controller.js +3 -0
  486. package/src/modules/files/middlewares/server/middlewareBusboy.js +115 -100
  487. package/src/modules/files/routes/files.routes.js +3 -4
  488. package/src/modules/globals/globals.server.js +0 -1
  489. package/src/modules/orders/components/blocks/CardOrder.vue +5 -5
  490. package/src/modules/orders/components/blocks/StatusHistory.vue +84 -0
  491. package/src/modules/orders/components/pages/Order.vue +11 -54
  492. package/src/modules/orders/components/pages/Orders.vue +0 -4
  493. package/src/modules/orders/controllers/orders.controller.js +17 -9
  494. package/src/modules/orders/models/order.model.js +19 -0
  495. package/src/modules/orders/routes/orders.routes.js +4 -1
  496. package/src/modules/products/components/sections/FilterProducts.vue +9 -10
  497. package/src/modules/wallet/components/pages/Wallet.vue +2 -3
@@ -1,112 +1,116 @@
1
- import { openBlock as i, createBlock as n, Transition as k, withCtx as m, createElementVNode as r, createVNode as u, createCommentVNode as o, createElementBlock as l, toDisplayString as c, Fragment as w, renderList as x, unref as b } from "vue";
2
- import { useRoute as y } from "vue-router";
3
- import U from "../../../../components/Dropdown/Dropdown.vue.js";
4
- import p from "../../../../components/Text/Text.vue.js";
5
- import E from "../../../icons/navigation/IconEdit.vue.js";
6
- import B from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
1
+ import { openBlock as e, createBlock as o, Transition as k, withCtx as l, createElementVNode as r, createVNode as m, createCommentVNode as n, createElementBlock as d, toDisplayString as g, unref as b } from "vue";
2
+ import { useRoute as w } from "vue-router";
3
+ import y from "../../../../components/Dropdown/Dropdown.vue2.js";
4
+ import x from "../../../../components/Text/Text.vue.js";
5
+ import E from "../../../../components/Chips/Chips.vue.js";
6
+ import O from "../../../icons/navigation/IconEdit.vue.js";
7
+ import U from "../../../icons/placeholders/PlaceholderOrganizationPic.vue.js";
7
8
  import f from "../elements/ButtonToggleMembership.vue.js";
8
- import O from "../blocks/Socials.vue.js";
9
- import R from "../../../reports/components/sections/FormReport.vue.js";
10
- import { state as S } from "../../store/organizations.js";
11
- import { mutations as $ } from "../../store/memberships.js";
12
- const v = { class: "t-center flex-center flex-column flex pd-medium radius-big bg-grey" }, F = { class: "bg-black pd-thin radius-small" }, L = /* @__PURE__ */ r("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), M = ["src"], V = { class: "mn-b-thin" }, j = { class: "mn-b-medium p-big" }, C = { class: "flex-center flex-wrap gap-thin flex mn-b-semi" }, D = { class: "pd-thin radius-small t-semi uppercase t-black bg-main p-medium" }, N = { class: "t-semi mn-b-small" }, I = {
13
- key: 5,
9
+ import $ from "../blocks/Socials.vue.js";
10
+ import B from "../../../reports/components/sections/FormReport.vue.js";
11
+ import { state as R } from "../../store/organizations.js";
12
+ import { mutations as S } from "../../store/memberships.js";
13
+ const v = { class: "t-center flex-center flex-column flex pd-medium radius-big bg-grey" }, M = { class: "bg-black pd-thin radius-small" }, V = /* @__PURE__ */ r("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), j = ["src"], C = { class: "mn-b-thin" }, D = { class: "mn-b-medium p-big" }, F = { class: "t-semi mn-b-small" }, L = {
14
+ key: 6,
14
15
  class: "mn-t-small mn-b-thin"
15
- }, Y = {
16
+ }, W = {
16
17
  __name: "DetailsTab",
17
18
  props: {
18
19
  organization: Object,
19
20
  user: Object
20
21
  },
21
- setup(e) {
22
- const d = y(), g = ({ membership: s, status: a, target: t }, h, z) => {
23
- $.handleMembershipUpdate(S.current, s, a, t, h, z);
22
+ setup(t) {
23
+ const u = w(), c = ({ membership: s, status: i, target: a }, z, h) => {
24
+ S.handleMembershipUpdate(R.current, s, i, a, z, h);
24
25
  };
25
- return (s, a) => (i(), n(k, { name: "slide-fade" }, {
26
- default: m(() => [
26
+ return (s, i) => (e(), o(k, { name: "slide-fade" }, {
27
+ default: l(() => [
27
28
  r("section", v, [
28
- e.user._id !== e.organization.owner ? (i(), n(U, {
29
+ t.user._id !== t.organization.owner ? (e(), o(y, {
29
30
  key: 0,
30
31
  label: "...",
31
32
  align: "right",
32
33
  class: "cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"
33
34
  }, {
34
- default: m(() => [
35
- r("section", F, [
36
- u(R, {
37
- user: e.user._id,
35
+ default: l(() => [
36
+ r("section", M, [
37
+ m(B, {
38
+ user: t.user._id,
38
39
  type: "organization",
39
- target: e.organization._id,
40
+ target: t.organization._id,
40
41
  text: "Report",
41
42
  class: "w-100"
42
43
  }, {
43
- default: m(() => [
44
- L
44
+ default: l(() => [
45
+ V
45
46
  ]),
46
47
  _: 1
47
48
  }, 8, ["user", "target"]),
48
- e.user._id && e.user._id !== e.organization.owner ? (i(), n(f, {
49
+ t.user._id && t.user._id !== t.organization.owner ? (e(), o(f, {
49
50
  key: 0,
50
- user: e.user._id,
51
+ user: t.user._id,
51
52
  type: "organization",
52
53
  role: "blocked",
53
- target: e.organization._id,
54
- status: e.organization.isBlocked,
54
+ target: t.organization._id,
55
+ status: t.organization.isBlocked,
55
56
  text: { create: "Block", remove: "Unblock" },
56
- onUpdateMembership: a[0] || (a[0] = (t) => g(t, "isBlocked")),
57
+ onUpdateMembership: i[0] || (i[0] = (a) => c(a, "isBlocked")),
57
58
  class: "t-white mn-t-thin bg-red"
58
- }, null, 8, ["user", "target", "status"])) : o("", !0)
59
+ }, null, 8, ["user", "target", "status"])) : n("", !0)
59
60
  ])
60
61
  ]),
61
62
  _: 1
62
- }, 8, ["label"])) : o("", !0),
63
- e.user._id === e.organization.owner ? (i(), n(E, {
63
+ }, 8, ["label"])) : n("", !0),
64
+ t.user._id === t.organization.owner ? (e(), o(O, {
64
65
  key: 1,
65
- onClick: a[1] || (a[1] = (t) => s.$router.push({
66
+ onClick: i[1] || (i[1] = (a) => s.$router.push({
66
67
  name: "Organization Edit",
67
68
  params: {
68
- _id: e.organization._id
69
+ _id: t.organization._id
69
70
  }
70
71
  })),
71
- class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
72
- })) : o("", !0),
73
- e.organization.profile.photo ? (i(), l("img", {
72
+ class: "pos-absolute cursor-pointer pos-t-big pos-r-big i-regular t-transp"
73
+ })) : n("", !0),
74
+ t.organization.profile.photo ? (e(), d("img", {
74
75
  key: 2,
75
- src: (s.FILE_SERVER_URL || "") + e.organization.profile.photo,
76
+ src: (s.FILE_SERVER_URL || "") + t.organization.profile.photo,
76
77
  class: "radius-big bg-grey flex-center flex mn-b-small i-extra"
77
- }, null, 8, M)) : (i(), n(B, {
78
+ }, null, 8, j)) : (e(), o(U, {
78
79
  key: 3,
79
80
  class: "radius-medium mn-b-small i-extra"
80
81
  })),
81
- r("h1", V, c(e.organization.profile.name), 1),
82
- r("p", j, [
83
- u(p, {
84
- text: e.organization.profile.description ? e.organization.profile.description : "",
82
+ r("h1", C, g(t.organization.profile.name), 1),
83
+ r("p", D, [
84
+ m(x, {
85
+ text: t.organization.profile.description ? t.organization.profile.description : "",
85
86
  maxLen: 240
86
87
  }, null, 8, ["text"])
87
88
  ]),
88
- r("div", C, [
89
- (i(!0), l(w, null, x(e.organization.profile.tags, (t) => (i(), l("span", D, c(t), 1))), 256))
90
- ]),
91
- r("p", N, " 👨‍👨‍👧‍👧 " + c(e.organization.numberOfSubscribers) + " followers ", 1),
92
- e.user._id && b(d).params._id && b(d).params._id !== e.user._id && e.organization.owner !== e.user._id ? (i(), n(f, {
89
+ t.organization.profile.tags.length > 0 ? (e(), o(E, {
93
90
  key: 4,
94
- user: e.user._id,
91
+ chips: t.organization.profile.tags,
92
+ class: "mn-b-semi"
93
+ }, null, 8, ["chips"])) : n("", !0),
94
+ r("p", F, " 👨‍👨‍👧‍👧 " + g(t.organization.numberOfSubscribers) + " followers ", 1),
95
+ t.user._id && b(u).params._id && b(u).params._id !== t.user._id && t.organization.owner !== t.user._id ? (e(), o(f, {
96
+ key: 5,
97
+ user: t.user._id,
95
98
  type: "organization",
96
99
  role: "subscriber",
97
- target: e.organization._id,
98
- status: e.organization.isSubscriber,
100
+ target: t.organization._id,
101
+ status: t.organization.isSubscriber,
99
102
  text: { create: "Follow", remove: "Unfollow" },
100
- onUpdateMembership: a[2] || (a[2] = (t) => g(t, "isSubscriber", "numberOfSubscribers")),
103
+ onUpdateMembership: i[2] || (i[2] = (a) => c(a, "isSubscriber", "numberOfSubscribers")),
101
104
  class: "w-min mn-b-medium mn-r-auto mn-l-auto"
102
- }, null, 8, ["user", "target", "status"])) : o("", !0),
103
- Object.values(e.organization.socials).some((t) => t) ? (i(), l("h4", I, " Find us in socials ")) : o("", !0),
104
- u(O, {
105
- telegram: e.organization.socials.telegram,
106
- facebook: e.organization.socials.facebook,
107
- instagram: e.organization.socials.instagram,
108
- twitter: e.organization.socials.twitter
109
- }, null, 8, ["telegram", "facebook", "instagram", "twitter"])
105
+ }, null, 8, ["user", "target", "status"])) : n("", !0),
106
+ Object.values(t.organization.socials).some((a) => a) ? (e(), d("h4", L, " Find us in socials ")) : n("", !0),
107
+ m($, {
108
+ telegram: t.organization.socials.telegram,
109
+ facebook: t.organization.socials.facebook,
110
+ instagram: t.organization.socials.instagram,
111
+ twitter: t.organization.socials.twitter,
112
+ youtube: t.organization.socials.youtube
113
+ }, null, 8, ["telegram", "facebook", "instagram", "twitter", "youtube"])
110
114
  ])
111
115
  ]),
112
116
  _: 1
@@ -114,5 +118,5 @@ const v = { class: "t-center flex-center flex-column flex pd-medium radius-big b
114
118
  }
115
119
  };
116
120
  export {
117
- Y as default
121
+ W as default
118
122
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const m=require("../../../../components/EmptyState/EmptyState.vue.cjs"),p=require("../blocks/CardOrganization.vue.cjs"),b=require("../../../icons/skeletons/SkeletonOrganization.vue.cjs"),c=require("../../store/organizations.cjs"),f={class:"pos-relative"},y={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(i){const t=i,r=e.ref([]),n=e.ref(!1),l=e.ref(!0),s=e.ref(0),u=e.ref(20),d=async()=>{if(n.value){s.value+=u.value;const a=await c.actions.read({skip:s.value,limit:u.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=[...r.value,...a]}};return e.onMounted(async()=>{l.value=!0,console.log(t.selectedDate);const a=await c.actions.read({skip:s.value,limit:u.value,category:t.category,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,sortOrder:t.sortOrder,user:t.user,owner:t.owner,date:t.selectedDate,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=a,l.value=!1}),(a,v)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[l.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,o=>(e.openBlock(),e.createBlock(b.default,{key:o}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!l.value&&r.value.length<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"No Organizations Found",description:"Currently, there are no organizations available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"cols-1"},{default:e.withCtx(()=>[!l.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(o,g)=>(e.openBlock(),e.createBlock(p.default,{onClick:k=>a.$router.push({name:"Organization",params:{_id:o._id}}),key:o._id,organization:o,user:i.user,type:"normal",class:e.normalizeClass(["w-100 radius-big mn-b-medium",{"br-b br-solid br-black-transp-10":g!==r.value.length-1}])},null,8,["onClick","organization","user","class"]))),128)):e.createCommentVNode("",!0),n.value&&r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const g=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),p=require("../../../icons/skeletons/SkeletonOrganization.vue.cjs"),c=require("../../store/organizations.cjs"),f={class:"pos-relative"},y={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(s){const t=s,r=e.ref([]),n=e.ref(!1),o=e.ref(!0),i=e.ref(0),u=e.ref(20),d=async()=>{if(n.value){i.value+=u.value;const a=await c.actions.read({skip:i.value,limit:u.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=[...r.value,...a]}};return e.onMounted(async()=>{o.value=!0,console.log(t.selectedDate);const a=await c.actions.read({skip:i.value,limit:u.value,category:t.category,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,sortOrder:t.sortOrder,user:t.user,owner:t.owner,date:t.selectedDate,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=a,o.value=!1}),(a,b)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[o.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,l=>(e.openBlock(),e.createBlock(p.default,{key:l}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!o.value&&r.value.length<1?(e.openBlock(),e.createBlock(g.default,{key:0,title:"No Organizations Found",description:"Currently, there are no organizations available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"cols-1"},{default:e.withCtx(()=>[!o.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(l,v)=>(e.openBlock(),e.createBlock(m.default,{onClick:k=>a.$router.push({name:"Organization",params:{_id:l._id}}),key:l._id,organization:l,user:s.user,type:"normal",class:"w-100 radius-big mn-b-medium"},null,8,["onClick","organization","user"]))),128)):e.createCommentVNode("",!0),n.value&&r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=y;
@@ -1,10 +1,10 @@
1
- import { ref as o, onMounted as z, openBlock as r, createElementBlock as i, createVNode as m, TransitionGroup as f, withCtx as g, Fragment as y, renderList as v, createBlock as p, createCommentVNode as d, Transition as S, normalizeClass as w } from "vue";
1
+ import { ref as s, onMounted as h, openBlock as a, createElementBlock as i, createVNode as m, TransitionGroup as y, withCtx as g, Fragment as b, renderList as v, createBlock as p, createCommentVNode as d, Transition as z } from "vue";
2
2
  import "../../../../components/Loader/Loader.vue.js";
3
- import O from "../../../../components/EmptyState/EmptyState.vue.js";
4
- import C from "../blocks/CardOrganization.vue.js";
5
- import N from "../../../icons/skeletons/SkeletonOrganization.vue.js";
3
+ import S from "../../../../components/EmptyState/EmptyState.vue.js";
4
+ import w from "../blocks/CardOrganization.vue.js";
5
+ import O from "../../../icons/skeletons/SkeletonOrganization.vue.js";
6
6
  import { actions as k } from "../../store/organizations.js";
7
- const D = { class: "pos-relative" }, E = {
7
+ const C = { class: "pos-relative" }, V = {
8
8
  __name: "Feed",
9
9
  props: {
10
10
  category: {
@@ -52,11 +52,11 @@ const D = { class: "pos-relative" }, E = {
52
52
  default: null
53
53
  }
54
54
  },
55
- setup(b) {
56
- const e = b, t = o([]), n = o(!1), l = o(!0), c = o(0), u = o(20), h = async () => {
55
+ setup(f) {
56
+ const e = f, t = s([]), n = s(!1), l = s(!0), c = s(0), u = s(20), _ = async () => {
57
57
  if (n.value) {
58
58
  c.value += u.value;
59
- const a = await k.read({
59
+ const r = await k.read({
60
60
  skip: c.value,
61
61
  limit: u.value,
62
62
  category: e.category,
@@ -71,12 +71,12 @@ const D = { class: "pos-relative" }, E = {
71
71
  period: e.period,
72
72
  status: e.status
73
73
  });
74
- a.length === 0 ? n.value = !1 : n.value = !0, t.value = [...t.value, ...a];
74
+ r.length === 0 ? n.value = !1 : n.value = !0, t.value = [...t.value, ...r];
75
75
  }
76
76
  };
77
- return z(async () => {
77
+ return h(async () => {
78
78
  l.value = !0, console.log(e.selectedDate);
79
- const a = await k.read({
79
+ const r = await k.read({
80
80
  skip: c.value,
81
81
  limit: u.value,
82
82
  category: e.category,
@@ -91,21 +91,21 @@ const D = { class: "pos-relative" }, E = {
91
91
  period: e.period,
92
92
  status: e.status
93
93
  });
94
- a.length === 0 ? n.value = !1 : n.value = !0, t.value = a, l.value = !1;
95
- }), (a, L) => (r(), i("section", D, [
96
- m(f, {
94
+ r.length === 0 ? n.value = !1 : n.value = !0, t.value = r, l.value = !1;
95
+ }), (r, N) => (a(), i("section", C, [
96
+ m(y, {
97
97
  tag: "ul",
98
98
  name: "fade",
99
99
  class: "o-hidden bg-grey radius-big"
100
100
  }, {
101
101
  default: g(() => [
102
- l.value ? (r(!0), i(y, { key: 0 }, v(u.value, (s) => (r(), p(N, { key: s }))), 128)) : d("", !0)
102
+ l.value ? (a(!0), i(b, { key: 0 }, v(u.value, (o) => (a(), p(O, { key: o }))), 128)) : d("", !0)
103
103
  ]),
104
104
  _: 1
105
105
  }),
106
- m(S, { name: "fade" }, {
106
+ m(z, { name: "fade" }, {
107
107
  default: g(() => [
108
- !l.value && t.value.length < 1 ? (r(), p(O, {
108
+ !l.value && t.value.length < 1 ? (a(), p(S, {
109
109
  key: 0,
110
110
  title: "No Organizations Found",
111
111
  description: "Currently, there are no organizations available. Please check back later.",
@@ -114,25 +114,23 @@ const D = { class: "pos-relative" }, E = {
114
114
  ]),
115
115
  _: 1
116
116
  }),
117
- m(f, {
117
+ m(y, {
118
118
  tag: "ul",
119
119
  name: "fade",
120
120
  class: "cols-1"
121
121
  }, {
122
122
  default: g(() => [
123
- !l.value && t.value.length > 0 ? (r(!0), i(y, { key: 0 }, v(t.value, (s, _) => (r(), p(C, {
124
- onClick: ($) => a.$router.push({ name: "Organization", params: { _id: s._id } }),
125
- key: s._id,
126
- organization: s,
127
- user: b.user,
123
+ !l.value && t.value.length > 0 ? (a(!0), i(b, { key: 0 }, v(t.value, (o, D) => (a(), p(w, {
124
+ onClick: (L) => r.$router.push({ name: "Organization", params: { _id: o._id } }),
125
+ key: o._id,
126
+ organization: o,
127
+ user: f.user,
128
128
  type: "normal",
129
- class: w(["w-100 radius-big mn-b-medium", {
130
- "br-b br-solid br-black-transp-10": _ !== t.value.length - 1
131
- }])
132
- }, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : d("", !0),
133
- n.value && t.value.length > 0 ? (r(), i("button", {
129
+ class: "w-100 radius-big mn-b-medium"
130
+ }, null, 8, ["onClick", "organization", "user"]))), 128)) : d("", !0),
131
+ n.value && t.value.length > 0 ? (a(), i("button", {
134
132
  key: 1,
135
- onClick: h,
133
+ onClick: _,
136
134
  class: "w-100 bg-main button"
137
135
  }, "Load more")) : d("", !0)
138
136
  ]),
@@ -142,5 +140,5 @@ const D = { class: "pos-relative" }, E = {
142
140
  }
143
141
  };
144
142
  export {
145
- E as default
143
+ V as default
146
144
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let l,u;const o=a;e.ref("departments"),[l,u]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await l,u();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[i.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organization/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-b-thin"},null,8,["department","organization"]))),128)),i.value.length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organization/${o.organization._id}/departments/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let l,u;const o=a;e.ref("departments"),[l,u]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await l,u();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[i.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organizations/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-b-thin"},null,8,["department","organization"]))),128)),i.value.length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organizations/${o.organization._id}/departments/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
@@ -31,7 +31,7 @@ const L = {
31
31
  title: "You don't have any spots yet.",
32
32
  description: "Add spots to your hub.",
33
33
  action: "Add spot",
34
- callback: () => e.$router.push(`/organization/${o.organization._id}/departments/create`)
34
+ callback: () => e.$router.push(`/organizations/${o.organization._id}/departments/create`)
35
35
  }, null, 8, ["callback"])) : p("", !0),
36
36
  u("div", null, [
37
37
  (n(!0), c(h, null, z(i.value, (t, s) => (n(), d(v, {
@@ -42,7 +42,7 @@ const L = {
42
42
  }, null, 8, ["department", "organization"]))), 128)),
43
43
  i.value.length > 0 && w.user._id === a.organization.owner ? (n(), c("button", {
44
44
  key: 0,
45
- onClick: r[0] || (r[0] = (t) => e.$router.push(`/organization/${o.organization._id}/departments/create`)),
45
+ onClick: r[0] || (r[0] = (t) => e.$router.push(`/organizations/${o.organization._id}/departments/create`)),
46
46
  class: "mn-b-thin button w-100"
47
47
  }, " Add spot ")) : p("", !0)
48
48
  ])
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/src/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");const p=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/EmptyState.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const b=require("../blocks/CardOrganization.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let q=n.query.tab?n.query.tab:"details";const i=e.ref(q);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(b.default,{key:l._id,organization:l,user:p.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Dropdown/Dropdown.vue.cjs");const p=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/EmptyState.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const b=require("../blocks/CardOrganization.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let q=n.query.tab?n.query.tab:"details";const i=e.ref(q);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(b.default,{key:l._id,organization:l,user:p.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
@@ -1,11 +1,11 @@
1
1
  import { ref as m, withAsyncContext as b, watch as _, openBlock as t, createElementBlock as n, createElementVNode as f, createBlock as p, Fragment as g, renderList as h, normalizeClass as w } from "vue";
2
2
  import { useRouter as v, useRoute as z } from "vue-router";
3
- import "../../../../../../node_modules/js-cookie/src/js.cookie.js";
3
+ import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
4
4
  import "../../../../components/Tab/Tab.vue.js";
5
5
  import "../../../../components/Field/Field.vue.js";
6
6
  import "../../../../components/Select/Select.vue2.js";
7
7
  import "../../../../components/Button/Button.vue.js";
8
- import "../../../../components/Dropdown/Dropdown.vue2.js";
8
+ import "../../../../components/Dropdown/Dropdown.vue.js";
9
9
  import { state as k } from "../../../auth/store/auth.js";
10
10
  import "../../store/memberships.js";
11
11
  import "vue-i18n";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../middlewares/client/auth.validation.cjs");const e=[{path:":_id/members",name:"Organization Members",meta:{title:{en:"Members",ru:"Участникb"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Members.vue.cjs"))},{path:":_id/members/invite",name:"Invite Member",component:()=>Promise.resolve().then(()=>require("../components/sections/MembersAdd.vue.cjs"))}];exports.default=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../auth/store/auth.cjs");const e=[{path:":_id/members",name:"Organization Members",meta:{title:{en:"Members",ru:"Участникb"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Members.vue.cjs"))},{path:":_id/members/invite",name:"Invite Member",component:()=>Promise.resolve().then(()=>require("../components/sections/MembersAdd.vue.cjs"))}];exports.membersRoutes=e;
@@ -1,4 +1,4 @@
1
- import "../../middlewares/client/auth.validation.js";
1
+ import "../../auth/store/auth.js";
2
2
  const m = [{
3
3
  path: ":_id/members",
4
4
  name: "Organization Members",
@@ -15,5 +15,5 @@ const m = [{
15
15
  component: () => import("../components/sections/MembersAdd.vue.js")
16
16
  }];
17
17
  export {
18
- m as default
18
+ m as membersRoutes
19
19
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),t=require("./organizations.router.cjs"),o=[{path:"organizations",component:e.default,meta:{title:{en:"Organizations",ru:"Организации"}},children:[...t.default]}];exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),t=require("./organizations.router.cjs"),r=require("./members.router.cjs"),o=require("./departments.router.cjs"),u=require("./products.router.cjs"),n=[{path:"organizations",component:e.default,meta:{title:{en:"Organizations",ru:"Организации"}},children:[...t.default,...r.membersRoutes,...o.default,...u.default]}];exports.default=n;
@@ -1,6 +1,9 @@
1
1
  import o from "../../globals/components/layouts/Empty.vue.js";
2
2
  import t from "./organizations.router.js";
3
- const i = [{
3
+ import { membersRoutes as r } from "./members.router.js";
4
+ import m from "./departments.router.js";
5
+ import e from "./products.router.js";
6
+ const u = [{
4
7
  path: "organizations",
5
8
  component: o,
6
9
  meta: {
@@ -10,12 +13,12 @@ const i = [{
10
13
  }
11
14
  },
12
15
  children: [
13
- ...t
14
- // ...departmentRoutes,
15
- // ...productRoutes,
16
- // ...membersRoutes
16
+ ...t,
17
+ ...r,
18
+ ...m,
19
+ ...e
17
20
  ]
18
21
  }];
19
22
  export {
20
- i as default
23
+ u as default
21
24
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../middlewares/client/auth.validation.cjs"),t=[{path:":_id/products/:product",name:"Product Organization",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("../../products/components/pages/Product.vue.cjs"))},{path:":_id/products/:product/edit",name:"ProductEdit",beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../../products/components/pages/ProductEdit.vue.cjs"))},{path:":_id/products/add",name:"AddProduct",component:()=>Promise.resolve().then(()=>require("../../products/components/pages/ProductEdit.vue.cjs"))}];exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../middlewares/client/auth.validation.cjs"),t=[{path:":_id/products/:product",name:"Product Organization",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("../../products/components/pages/Product.vue.cjs"))},{path:":_id/products/:product/edit",name:"ProductEdit",beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../../products/components/pages/ProductEdit.vue.cjs"))},{path:":_id/products/add",name:"ProductAdd",component:()=>Promise.resolve().then(()=>require("../../products/components/pages/ProductEdit.vue.cjs"))},{path:":_id/leftovers",name:"Leftovers",meta:{title:{en:"Leftovers",ru:"Остатки"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../products/components/pages/Leftovers.vue.cjs"))},{path:":_id/leftovers/add",name:"LeftoverAdd",meta:{title:{en:"Leftovers Add",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../products/components/pages/EditLeftover.vue.cjs"))},{path:":_id/leftovers/:leftover",name:"LeftoverEdit",meta:{title:{en:"Leftovers Edit",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("../../products/components/pages/EditLeftover.vue.cjs"))}];exports.default=t;
@@ -1,24 +1,73 @@
1
1
  import { requiresAuth as t } from "../../middlewares/client/auth.validation.js";
2
- const r = [{
3
- path: ":_id/products/:product",
4
- name: "Product Organization",
5
- meta: {
6
- title: {
7
- en: "Product",
8
- ru: "Продукт"
9
- }
2
+ const o = [
3
+ {
4
+ path: ":_id/products/:product",
5
+ name: "Product Organization",
6
+ meta: {
7
+ title: {
8
+ en: "Product",
9
+ ru: "Продукт"
10
+ }
11
+ },
12
+ component: () => import("../../products/components/pages/Product.vue.js")
10
13
  },
11
- component: () => import("../../products/components/pages/Product.vue.js")
12
- }, {
13
- path: ":_id/products/:product/edit",
14
- name: "ProductEdit",
15
- beforeEnter: [t],
16
- component: () => import("../../products/components/pages/ProductEdit.vue.js")
17
- }, {
18
- path: ":_id/products/add",
19
- name: "AddProduct",
20
- component: () => import("../../products/components/pages/ProductEdit.vue.js")
21
- }];
14
+ {
15
+ path: ":_id/products/:product/edit",
16
+ name: "ProductEdit",
17
+ beforeEnter: [t],
18
+ component: () => import("../../products/components/pages/ProductEdit.vue.js")
19
+ },
20
+ {
21
+ path: ":_id/products/add",
22
+ name: "ProductAdd",
23
+ component: () => import("../../products/components/pages/ProductEdit.vue.js")
24
+ },
25
+ {
26
+ path: ":_id/leftovers",
27
+ name: "Leftovers",
28
+ meta: {
29
+ title: {
30
+ en: "Leftovers",
31
+ ru: "Остатки"
32
+ },
33
+ authorize: []
34
+ },
35
+ component: () => import(
36
+ /* webpackChunkName: 'ProductsLeftovers' */
37
+ "../../products/components/pages/Leftovers.vue.js"
38
+ )
39
+ },
40
+ {
41
+ path: ":_id/leftovers/add",
42
+ name: "LeftoverAdd",
43
+ meta: {
44
+ title: {
45
+ en: "Leftovers Add",
46
+ ru: "Управление Остатками"
47
+ },
48
+ authorize: []
49
+ },
50
+ component: () => import(
51
+ /* webpackChunkName: 'LeftoverEdit' */
52
+ "../../products/components/pages/EditLeftover.vue.js"
53
+ )
54
+ },
55
+ {
56
+ path: ":_id/leftovers/:leftover",
57
+ name: "LeftoverEdit",
58
+ meta: {
59
+ title: {
60
+ en: "Leftovers Edit",
61
+ ru: "Управление Остатками"
62
+ },
63
+ authorize: []
64
+ },
65
+ component: () => import(
66
+ /* webpackChunkName: 'LeftoverEdit' */
67
+ "../../products/components/pages/EditLeftover.vue.js"
68
+ )
69
+ }
70
+ ];
22
71
  export {
23
- r as default
72
+ o as default
24
73
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/src/js.cookie.cjs");const o=require("vue"),s=require("../../globals/store/globals.cjs"),n=i.default.create({baseURL:process.env.API_URL,withCredentials:!0});n.defaults.withCredentials=!0;const a=o.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),l={async readOne(t){await n.get(`/api/departments/get/${t}`).then(e=>{a.department=e.data,a.error=null}).catch(e=>{s.setError(e)})},async read(t){await n.get(`/api/departments/${t}`).then(e=>{console.log("Response:",e),a.departments=e.data,a.error=null}).catch(e=>{s.setError(e)})},async create(t,e){await n.post(`/api/departments/${t}/create`,e).then(r=>{a.error=null,a.department=r.data}).catch(r=>{s.setError(r)})},async update(t,e){await n.post(`/api/departments/${t}/update`,e).then(()=>{a.error=null}).catch(r=>{s.setError(r)})},async delete(t,e){await n.delete(`/api/departments/${t}/delete`,{data:{_id:e}}).then(()=>{a.error=null}).catch(r=>{s.setError(r)})}};o.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const o=require("vue"),s=require("../../globals/store/globals.cjs"),n=i.default.create({baseURL:process.env.API_URL,withCredentials:!0});n.defaults.withCredentials=!0;const a=o.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),l={async readOne(t){await n.get(`/api/departments/get/${t}`).then(e=>{a.department=e.data,a.error=null}).catch(e=>{s.setError(e)})},async read(t){await n.get(`/api/departments/${t}`).then(e=>{console.log("Response:",e),a.departments=e.data,a.error=null}).catch(e=>{s.setError(e)})},async create(t,e){await n.post(`/api/departments/${t}/create`,e).then(r=>{a.error=null,a.department=r.data}).catch(r=>{s.setError(r)})},async update(t,e){await n.post(`/api/departments/${t}/update`,e).then(()=>{a.error=null}).catch(r=>{s.setError(r)})},async delete(t,e){await n.delete(`/api/departments/${t}/delete`,{data:{_id:e}}).then(()=>{a.error=null}).catch(r=>{s.setError(r)})}};o.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
@@ -1,5 +1,5 @@
1
1
  import s from "../../../../node_modules/axios/lib/axios.js";
2
- import "../../../../../node_modules/js-cookie/src/js.cookie.js";
2
+ import "../../../../../node_modules/js-cookie/dist/js.cookie.js";
3
3
  import { reactive as i, watch as d } from "vue";
4
4
  import { setError as o } from "../../globals/store/globals.js";
5
5
  const n = s.create({ baseURL: process.env.API_URL, withCredentials: !0 });
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/src/js.cookie.cjs");const c=require("vue"),i=require("../../globals/store/globals.cjs"),s=require("../../auth/store/auth.cjs"),r=o.default.create({baseURL:process.env.API_URL,withCredentials:!0});r.defaults.withCredentials=!0;const a=c.reactive({invites:[],invite:null,error:null}),l={async read(t){await r.get(`/api/invites/${t}`).then(e=>{a.invites=e.data,a.error=null}).catch(e=>{i.setError(e)})},async readOne(t){await r.get(`/api/invites/get/${t}`).then(e=>{a.invite=e.data,s.state.user.phone=e.data.invitedPhone,s.state.user.email=e.data.invitedEmail}).catch(e=>{i.setError(e)})},async create(t,e){await r.post(`/api/invites/${t}/create`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async update(t,e){await r.put(`/api/invites/${t}/update`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async delete(t){await r.delete(`/api/invites/${t}/delete`).then(()=>{a.error=null}).catch(e=>{i.setError(e)})}};c.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const c=require("vue"),i=require("../../globals/store/globals.cjs"),s=require("../../auth/store/auth.cjs"),r=o.default.create({baseURL:process.env.API_URL,withCredentials:!0});r.defaults.withCredentials=!0;const a=c.reactive({invites:[],invite:null,error:null}),l={async read(t){await r.get(`/api/invites/${t}`).then(e=>{a.invites=e.data,a.error=null}).catch(e=>{i.setError(e)})},async readOne(t){await r.get(`/api/invites/get/${t}`).then(e=>{a.invite=e.data,s.state.user.phone=e.data.invitedPhone,s.state.user.email=e.data.invitedEmail}).catch(e=>{i.setError(e)})},async create(t,e){await r.post(`/api/invites/${t}/create`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async update(t,e){await r.put(`/api/invites/${t}/update`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async delete(t){await r.delete(`/api/invites/${t}/delete`).then(()=>{a.error=null}).catch(e=>{i.setError(e)})}};c.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
@@ -1,5 +1,5 @@
1
1
  import c from "../../../../node_modules/axios/lib/axios.js";
2
- import "../../../../../node_modules/js-cookie/src/js.cookie.js";
2
+ import "../../../../../node_modules/js-cookie/dist/js.cookie.js";
3
3
  import { reactive as o, watch as l } from "vue";
4
4
  import { setError as r } from "../../globals/store/globals.js";
5
5
  import { state as s } from "../../auth/store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../node_modules/axios/lib/axios.cjs"),m=require("../../../../../node_modules/js-cookie/src/js.cookie.cjs"),u=require("vue"),c=require("../../globals/store/globals.cjs"),t=i.default.create({baseURL:process.env.API_URL,withCredentials:!0}),s=u.reactive({all:[],current:{_id:null,profile:{tags:[],photo:"",name:"",description:""},structure:[],owner:null,types:"",contacts:{email:"",website:"",phone:"",address:""},socials:{telegram:"",line:"",facebook:"",instagram:""},rating:{popularity:0,median:0,amount:0}}}),d={async create(e,a){e.owner=a;try{const r=await t.post("/api/organizations/create",e);return console.log("Organization created successfully"),s.current=r.data,r.data}catch(r){throw console.log("Organization creation failed"),c.setError(r),r}},async read(e={}){console.log(e),e.params=e.params||{},e.location&&(e.params.location=e.location),e.country&&(e.params.country=e.country),e.state&&(e.params.state=e.state),e.city&&(e.params.city=e.city),e.categories&&(e.params.categories=e.categories),e.prices&&(e.params.prices=e.prices),e.delivery&&(e.params.delivery=e.delivery),e._id&&(e.params=e.params||{},e.params._id=e._id),e.types&&(e.params=e.params||[],e.params.types=e.types),e.owner&&(e.params=e.params||{},e.params.owner=e.owner),e.user&&(e.params=e.params||{},e.params.user=e.user),e.member&&(e.params=e.params||{},e.params.member=e.member),e.subscriber&&(e.params=e.params||{},e.params.subscriber=e.subscriber),e.postable&&(e.params=e.params||{},e.params.postable=e.postable),e.params=e.params||{},e.params.skip=e.skip||0,e.params.limit=e.limit||9,e.params.sortParam=e.sort;try{console.log("Request params:"+e.params);const a=await t.get("/api/organizations",{params:e.params});return e._id?(Object.assign(s.current||{},a.data[0]),console.log(s.current)):console.log(a.data),Promise.resolve(a.data)}catch(a){return c.setError(a),Promise.reject(a)}},async update(e,a){return console.log(e,a),await t.post(`/api/organizations/${e}/update`,a).then(r=>(console.log("Organization updated successfully"),Promise.resolve(r.data)),r=>(console.log("Updating organization failed"),Promise.reject(r)))},async remove(e){await t.delete(`/api/organizations/${e}/delete`).then(a=>{s.error=null;let r=m.default.get("user"),l=JSON.parse(r);return l.organization=null,m.default.set("user",JSON.stringify(l),{expires:7,domain:".osi.plus",sameSite:"none",secure:!0}),Promise.resolve(a.data)},a=>(c.setError(a),Promise.reject(a))).catch(a=>{c.setError(a)})},async reset(){s.current={_id:null,profile:{categories:[],photo:"",name:"",description:""},structure:[],owner:null,types:"",contacts:{email:"",website:"",phone:"",address:""},socials:{telegram:"",line:"",facebook:"",instagram:""},rating:{popularity:0,median:0,amount:0}}}};u.watch(s,(e,a)=>{});exports.actions=d;exports.state=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../node_modules/axios/lib/axios.cjs"),l=require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs"),n=require("vue"),i=require("../../globals/store/globals.cjs"),c=u.default.create({baseURL:process.env.API_URL,withCredentials:!0}),t=n.reactive({all:[],current:{_id:null,profile:{tags:[],photo:"",name:"",description:""},structure:[],owner:null,types:"",contacts:{email:"",website:"",phone:"",address:""},socials:{telegram:"",line:"",facebook:"",instagram:"",youtube:""},rating:{popularity:0,median:0,amount:0}}}),o={async create(e,r){e.owner=r;try{const a=await c.post("/api/organizations/create",e);return console.log("Organization created successfully"),t.current=a.data,a.data}catch(a){throw console.log("Organization creation failed"),i.setError(a),a}},async read(e={}){let r={};e._id&&(r._id=e._id),e.owner&&(r.owner=e.owner),e.user&&(r.user=e.user),e.member&&(r.member=e.member),e.subscriber&&(r.subscriber=e.subscriber),e.postable&&(r.postable=e.postable),e.location&&(r.location=e.location),e.search&&(r.search=e.search),e.location&&(r.location=e.location),e.locationRadius&&(r.locationRadius=e.locationRadius),e.country&&(r.country=e.country),e.state&&(r.state=e.state),e.city&&(r.city=e.city),e.categories&&(r.categories=e.categories),e.prices&&(r.prices=e.prices),e.delivery&&(r.delivery=e.delivery),e.types&&(r.types=e.types),e.skip&&(r.skip=e.skip),e.limit&&(r.limit=e.limit),r.contain=e.contain||[],r.sortParam=e.sortParam,r.sortOrder=e.sortOrder,console.log(r);try{const a=await c.get("/api/organizations",{params:r});return e._id&&Object.assign(t.current||{},a.data[0]),Promise.resolve(a.data)}catch(a){return i.setError(a),Promise.reject(a)}},async update(e,r){return console.log(e,r),await c.post(`/api/organizations/${e}/update`,r).then(a=>(console.log("Organization updated successfully"),Promise.resolve(a.data)),a=>(console.log("Updating organization failed"),Promise.reject(a)))},async remove(e){await c.delete(`/api/organizations/${e}/delete`).then(r=>{t.error=null;let a=l.default.get("user"),s=JSON.parse(a);return s.organization=null,l.default.set("user",JSON.stringify(s),{expires:7,domain:".osi.plus",sameSite:"none",secure:!0}),Promise.resolve(r.data)},r=>(i.setError(r),Promise.reject(r))).catch(r=>{i.setError(r)})},async reset(){t.current={_id:null,profile:{categories:[],photo:"",name:"",description:""},structure:[],owner:null,types:"",contacts:{email:"",website:"",phone:"",address:""},socials:{telegram:"",line:"",facebook:"",instagram:""},rating:{popularity:0,median:0,amount:0}}}};n.watch(t,(e,r)=>{});exports.actions=o;exports.state=t;