@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,16 +1,16 @@
1
- import { openBlock as r, createElementBlock as a, createVNode as i, unref as s, withCtx as c, Fragment as m, renderList as u, createBlock as p } from "vue";
2
- import { useRoute as _, useRouter as d } from "vue-router";
3
- import l from "../sections/FilterProducts.vue.js";
4
- import f from "../../../globals/components/sections/Feed.vue.js";
5
- import h from "../blocks/CardProduct.vue.js";
6
- import { actions as k, state as $ } from "../../store/products.js";
7
- const g = { class: "cols-2-1_3 gap-thin pd-thin" }, R = {
1
+ import { openBlock as i, createElementBlock as s, createVNode as a, unref as t, withCtx as c, Fragment as u, renderList as p, createBlock as m } from "vue";
2
+ import { useRoute as d, useRouter as l } from "vue-router";
3
+ import _ from "../sections/FilterProducts.vue.js";
4
+ import f from "../../../../components/Feed/Feed.vue.js";
5
+ import g from "../blocks/CardProduct.vue.js";
6
+ import { actions as y, state as h } from "../../store/products.js";
7
+ const k = { class: "cols-2-1_3 bg-grey radius-big gap-thin pd-thin" }, F = {
8
8
  __name: "Products",
9
- setup(C) {
10
- const o = _();
11
- return d(), (n, v) => (r(), a("div", g, [
12
- i(l),
13
- i(f, {
9
+ setup(v) {
10
+ const e = d();
11
+ return l(), (n, $) => (i(), s("div", k, [
12
+ a(_),
13
+ a(f, {
14
14
  states: {
15
15
  empty: {
16
16
  title: "No Products Found",
@@ -18,26 +18,30 @@ const g = { class: "cols-2-1_3 gap-thin pd-thin" }, R = {
18
18
  }
19
19
  },
20
20
  store: {
21
- read: (t) => k.read(t),
22
- state: $
21
+ read: (r) => y.read(r),
22
+ state: h
23
23
  },
24
24
  options: {
25
25
  limit: 15,
26
- organization: s(o).params._id
26
+ organization: t(e).params._id,
27
+ categories: t(e).query.categories,
28
+ prices: t(e).query.prices,
29
+ delivery: t(e).query.delivery
27
30
  // user: user
28
- }
31
+ },
32
+ class: "cols-3 gap-thin"
29
33
  }, {
30
34
  default: c(({
31
- items: t
35
+ items: r
32
36
  }) => [
33
- (r(!0), a(m, null, u(t, (e) => (r(), p(h, {
34
- key: e._id,
35
- product: e,
36
- onClick: (y) => n.$router.push({
37
+ (i(!0), s(u, null, p(r, (o) => (i(), m(g, {
38
+ key: o._id,
39
+ product: o,
40
+ onClick: (C) => n.$router.push({
37
41
  name: "Product Organization",
38
42
  params: {
39
- _id: s(o).params._id,
40
- product: e._id
43
+ _id: t(e).params._id,
44
+ product: o._id
41
45
  }
42
46
  })
43
47
  }, null, 8, ["product", "onClick"]))), 128))
@@ -48,5 +52,5 @@ const g = { class: "cols-2-1_3 gap-thin pd-thin" }, R = {
48
52
  }
49
53
  };
50
54
  export {
51
- R as default
55
+ F as default
52
56
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),n=require("../../store/products.cjs"),i=require("../../../globals/components/sections/Feed.vue.cjs"),c=require("../blocks/CardProduct.vue.cjs"),m=require("../../../../components/Tab/Tab.vue2.cjs"),p={class:"mn-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Products",-1),v={__name:"ProductsBackoffice",setup(h){const t=l.useRoute(),d=l.useRouter(),a=e.ref(t.query.tab?t.query.tab:"posts");return t.query.tab=a.value,e.watch(a,o=>{d.replace({query:{...t.query,tab:o}})}),e.onMounted(async()=>{await n.actions.fetchProducts()}),(o,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",p,[b,e.createElementVNode("button",{onClick:u[0]||(u[0]=r=>o.$router.push({name:"AddProduct"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(m.default,{selected:a.value,"onUpdate:selected":u[1]||(u[1]=r=>a.value=r),tabs:[{name:"All",value:"all"},{name:"Published",value:"published"},{name:"Unpublished",value:"unpublished"},{name:"Archivied",value:"archivied"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(i.default,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:r=>n.actions.read(r),state:n.state},options:{limit:15,organization:e.unref(t).params._id,status:a.value}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,s=>(e.openBlock(),e.createBlock(c.default,{key:s._id,product:s,onClick:f=>o.$router.push({name:"Product Organization",params:{_id:e.unref(t).params._id,product:s._id}})},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])],64))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),n=require("../../store/products.cjs"),d=require("../../../../components/Feed/Feed.vue.cjs"),i=require("../blocks/CardProduct.vue.cjs"),m=require("../../../../components/Tab/Tab.vue2.cjs"),p={class:"mn-b-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Products",-1),v={__name:"ProductsBackoffice",setup(h){const r=l.useRoute(),c=l.useRouter(),o=e.ref(r.query.tab?r.query.tab:"posts");return r.query.tab=o.value,e.watch(o,u=>{c.replace({query:{...r.query,tab:u}})}),e.onMounted(async()=>{await n.actions.fetchProducts()}),(u,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",p,[b,e.createElementVNode("button",{onClick:a[0]||(a[0]=t=>u.$router.push({name:"AddProduct"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(m.default,{selected:o.value,"onUpdate:selected":a[1]||(a[1]=t=>o.value=t),tabs:[{name:"All",value:"all"},{name:"Published",value:"published"},{name:"Unpublished",value:"unpublished"},{name:"Archivied",value:"archivied"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(d.default,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:t=>n.actions.read(t),state:n.state},options:{limit:15,organization:e.unref(r).params._id,status:o.value}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,s=>(e.openBlock(),e.createBlock(i.default,{key:s._id,product:s,onClick:f=>u.$router.push({name:"ProductEdit",params:{product:s._id}})},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])],64))}};exports.default=v;
@@ -1,37 +1,37 @@
1
- import { ref as f, watch as _, onMounted as h, openBlock as n, createElementBlock as i, Fragment as l, createElementVNode as u, createVNode as d, unref as c, withCtx as b, renderList as v, createBlock as y } from "vue";
2
- import { useRoute as g, useRouter as k } from "vue-router";
3
- import { actions as m, state as P } from "../../store/products.js";
4
- import $ from "../../../globals/components/sections/Feed.vue.js";
1
+ import { ref as p, watch as f, onMounted as b, openBlock as n, createElementBlock as l, Fragment as i, createElementVNode as u, createVNode as d, unref as h, withCtx as _, renderList as v, createBlock as y } from "vue";
2
+ import { useRoute as k, useRouter as g } from "vue-router";
3
+ import { actions as c, state as P } from "../../store/products.js";
4
+ import $ from "../../../../components/Feed/Feed.vue.js";
5
5
  import q from "../blocks/CardProduct.vue.js";
6
6
  import w from "../../../../components/Tab/Tab.vue2.js";
7
- const C = { class: "mn-medium flex-v-center flex-nowrap flex" }, x = /* @__PURE__ */ u("h2", { class: "mn-r-medium" }, "Products", -1), V = {
7
+ const C = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, x = /* @__PURE__ */ u("h2", { class: "mn-r-medium" }, "Products", -1), z = {
8
8
  __name: "ProductsBackoffice",
9
9
  setup(B) {
10
- const e = g(), p = k(), r = f(e.query.tab ? e.query.tab : "posts");
11
- return e.query.tab = r.value, _(r, (a) => {
12
- p.replace({ query: { ...e.query, tab: a } });
13
- }), h(async () => {
14
- await m.fetchProducts();
15
- }), (a, o) => (n(), i(l, null, [
10
+ const t = k(), m = g(), r = p(t.query.tab ? t.query.tab : "posts");
11
+ return t.query.tab = r.value, f(r, (o) => {
12
+ m.replace({ query: { ...t.query, tab: o } });
13
+ }), b(async () => {
14
+ await c.fetchProducts();
15
+ }), (o, a) => (n(), l(i, null, [
16
16
  u("header", C, [
17
17
  x,
18
18
  u("button", {
19
- onClick: o[0] || (o[0] = (t) => a.$router.push({
19
+ onClick: a[0] || (a[0] = (e) => o.$router.push({
20
20
  name: "AddProduct"
21
21
  })),
22
- class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
22
+ class: "radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"
23
23
  }, " + ")
24
24
  ]),
25
25
  d(w, {
26
26
  selected: r.value,
27
- "onUpdate:selected": o[1] || (o[1] = (t) => r.value = t),
27
+ "onUpdate:selected": a[1] || (a[1] = (e) => r.value = e),
28
28
  tabs: [
29
29
  { name: "All", value: "all" },
30
30
  { name: "Published", value: "published" },
31
31
  { name: "Unpublished", value: "unpublished" },
32
32
  { name: "Archivied", value: "archivied" }
33
33
  ],
34
- class: "mn-small o-hidden h5 radius-big bg-grey"
34
+ class: "mn-b-small o-hidden h5 radius-big bg-grey"
35
35
  }, null, 8, ["selected"]),
36
36
  d($, {
37
37
  states: {
@@ -41,26 +41,25 @@ const C = { class: "mn-medium flex-v-center flex-nowrap flex" }, x = /* @__PURE_
41
41
  }
42
42
  },
43
43
  store: {
44
- read: (t) => m.read(t),
44
+ read: (e) => c.read(e),
45
45
  state: P
46
46
  },
47
47
  options: {
48
48
  limit: 15,
49
- organization: c(e).params._id,
49
+ organization: h(t).params._id,
50
50
  status: r.value
51
51
  // user: user
52
52
  }
53
53
  }, {
54
- default: b(({
55
- items: t
54
+ default: _(({
55
+ items: e
56
56
  }) => [
57
- (n(!0), i(l, null, v(t, (s) => (n(), y(q, {
57
+ (n(!0), l(i, null, v(e, (s) => (n(), y(q, {
58
58
  key: s._id,
59
59
  product: s,
60
- onClick: (A) => a.$router.push({
61
- name: "Product Organization",
60
+ onClick: (A) => o.$router.push({
61
+ name: "ProductEdit",
62
62
  params: {
63
- _id: c(e).params._id,
64
63
  product: s._id
65
64
  }
66
65
  })
@@ -72,5 +71,5 @@ const C = { class: "mn-medium flex-v-center flex-nowrap flex" }, x = /* @__PURE_
72
71
  }
73
72
  };
74
73
  export {
75
- V as default
74
+ z as default
76
75
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");const o={class:"mn-big flex-column flex"},c={__name:"EditProductInfo",props:{product:Object},setup(r){const t=r;return e.toRefs(t),(u,s)=>(e.openBlock(),e.createElementBlock("div",o))}};exports.default=c;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Button/Button.vue.cjs");const r=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/Select/Select.vue.cjs"),i={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,l)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(u.default,{select:e.product.status,"onUpdate:select":l[0]||(l[0]=t=>e.product.status=t),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":l[1]||(l[1]=t=>e.product.name=t),label:"Name",placeholder:"Введите название",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":l[3]||(l[3]=t=>e.product.price=t),label:"Price",placeholder:"Введите цену",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(u.default,{select:e.product.price.currency,"onUpdate:select":l[2]||(l[2]=t=>e.product.price.currency=t),placeholder:"฿",options:["฿"],class:"pos-relative bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":l[4]||(l[4]=t=>e.product.description=t),label:"Description",placeholder:"Введите описание",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=i;
@@ -1,16 +1,65 @@
1
- import { toRefs as t, openBlock as e, createElementBlock as r } from "vue";
1
+ import { openBlock as a, createElementBlock as u, Fragment as s, createVNode as d, withCtx as o } from "vue";
2
2
  import "../../../../components/Button/Button.vue.js";
3
- import "../../../../components/Field/Field.vue.js";
4
- import "../../../../components/Select/Select.vue.js";
5
- const c = { class: "mn-big flex-column flex" }, a = {
3
+ import i from "../../../../components/Field/Field.vue2.js";
4
+ import r from "../../../../components/Select/Select.vue.js";
5
+ const f = {
6
6
  __name: "EditProductInfo",
7
7
  props: {
8
8
  product: Object
9
9
  },
10
- setup(o) {
11
- return t(o), (s, n) => (e(), r("div", c));
10
+ setup(e) {
11
+ return (n, l) => (a(), u(s, null, [
12
+ d(r, {
13
+ select: e.product.status,
14
+ "onUpdate:select": l[0] || (l[0] = (t) => e.product.status = t),
15
+ label: "Status",
16
+ options: [
17
+ "unpublished",
18
+ "published",
19
+ "archivied"
20
+ ],
21
+ placeholder: "Display product",
22
+ class: "pos-relative w-100 mn-b-small bg-white radius-small pd-medium"
23
+ }, null, 8, ["select"]),
24
+ d(i, {
25
+ field: e.product.name,
26
+ "onUpdate:field": l[1] || (l[1] = (t) => e.product.name = t),
27
+ label: "Name",
28
+ placeholder: "Введите название",
29
+ class: "w-100 mn-b-small bg-white radius-small pd-medium"
30
+ }, null, 8, ["field"]),
31
+ d(i, {
32
+ field: e.product.price,
33
+ "onUpdate:field": l[3] || (l[3] = (t) => e.product.price = t),
34
+ label: "Price",
35
+ placeholder: "Введите цену",
36
+ class: "w-100 mn-b-small bg-white radius-small pd-medium",
37
+ type: "number"
38
+ }, {
39
+ default: o(() => [
40
+ d(r, {
41
+ select: e.product.price.currency,
42
+ "onUpdate:select": l[2] || (l[2] = (t) => e.product.price.currency = t),
43
+ placeholder: "฿",
44
+ options: [
45
+ "฿"
46
+ ],
47
+ class: "pos-relative bg-grey pd-thin radius-thin"
48
+ }, null, 8, ["select"])
49
+ ]),
50
+ _: 1
51
+ }, 8, ["field"]),
52
+ d(i, {
53
+ field: e.product.description,
54
+ "onUpdate:field": l[4] || (l[4] = (t) => e.product.description = t),
55
+ label: "Description",
56
+ placeholder: "Введите описание",
57
+ class: "w-100 bg-white radius-small pd-medium",
58
+ type: "textarea"
59
+ }, null, 8, ["field"])
60
+ ], 64));
12
61
  }
13
62
  };
14
63
  export {
15
- a as default
64
+ f as default
16
65
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),c=require("../../../../components/Checkbox/Checkbox.vue.cjs"),v=require("vue-i18n"),u=require("../../store/categories.cjs");require("./FilterProducts.vue2.cjs");const x={class:"pd-medium bg-grey radius-big"},y={class:"mn-b-small"},k=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),C={class:"mn-r-auto t-medium p-big"},w=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),E={class:"mn-r-auto t-medium p-big"},F=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),B=e.createElementVNode("p",{class:"mn-r-auto t-medium p-big"},"Delivery",-1),N=e.createElementVNode("hr",{class:"mn-b-semi"},null,-1),V={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under $5",value:{min:0,max:5}},{label:"$5 to $10",value:{min:5,max:10}},{label:"$10 to $20",value:{min:10,max:20}},{label:"$20 and above",value:{min:20,max:1/0}}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(m,{emit:f}){let d,b;[d,b]=e.withAsyncContext(()=>u.actions.fetchCategories()),await d,b();let n=e.ref({categories:[],prices:[],delivery:[],extra:[]});const h=f,i=(r,l)=>{h("updateFilters",{filterType:r,value:l})},_=()=>{h("resetFilters")},g={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};u.state.all.forEach(r=>{r.localization.forEach(l=>{g.messages[l.locale].categories.push(l.text)})});const{t:s}=v.useI18n(g);return(r,l)=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("h3",y,e.toDisplayString(e.unref(s)("filters.title")),1),k,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",C,e.toDisplayString(e.unref(s)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.name,value:t.url,class:"w-100 mn-t-small mn-b-small bg-white radius-small pd-small",radio:e.unref(n).categories,onChange:p=>i("categories",t.url)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),w,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",E,e.toDisplayString(e.unref(s)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.prices,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.label,value:t.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(n).prices,onChange:p=>i("prices",t.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),F,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!1},{header:e.withCtx(()=>[B]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.deliveryOptions,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.label,value:t.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(n).delivery,onChange:p=>i("delivery",t.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),N,e.createElementVNode("button",{onClick:_,class:"bg-main w-100 button"},e.toDisplayString(e.unref(s)("filters.reset")),1)]))}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),d=require("../../../../components/Checkbox/Checkbox.vue.cjs"),w=require("vue-i18n"),y=require("vue-router"),m=require("../../store/categories.cjs"),a=require("../../../marketplace/store/marketplace.cjs");require("./FilterProducts.vue2.cjs");const x={class:"pd-medium bg-grey radius-big"},E={class:"cursor-pointer mn-r-auto t-medium p-big"},B=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),q={class:"cursor-pointer mn-r-auto t-medium p-big"},F=e.createElementVNode("hr",{class:"mn-b-small"},null,-1),C=e.createElementVNode("p",{class:"cursor-pointer mn-r-auto t-medium p-big"},"Delivery",-1),V=e.createElementVNode("hr",{class:"mn-b-semi"},null,-1),N={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under 300฿",value:"<300"},{label:"300฿ to 600฿",value:"300-600"},{label:"600฿ to 1200฿",value:"600-1200"},{label:"$1200 and above",value:">1200"}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(p,{emit:h}){let b,f;const n=y.useRoute(),v=y.useRouter();[b,f]=e.withAsyncContext(()=>m.actions.fetchCategories()),await b,f(),e.ref({categories:[],prices:[],delivery:[],extra:[]}),e.watch(()=>a.state.filter,(r,t)=>{const l={...n.query};Object.keys(t).forEach(s=>{l[s]&&delete l[s]});const i=Object.fromEntries(Object.entries(r).filter(([s,o])=>Array.isArray(o)&&o.length>0).map(([s,o])=>[s,o.join(",")]));Object.assign(l,i),v.push({query:l})},{deep:!0}),e.onMounted(async()=>{if(n.query){const r=n.query,t={categories:r.categories?r.categories.split(","):[],prices:r.prices?r.prices.split(","):[],delivery:r.delivery?r.delivery.split(","):[]};a.state.filter=t}});const k=h,_=()=>{k("resetFilters")},g={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};m.state.all.forEach(r=>{r.localization.forEach(t=>{g.messages[t.locale].categories.push(t.text)})});const{t:c}=w.useI18n(g);return(r,t)=>(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(u.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",E,e.toDisplayString(e.unref(c)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.state.all,(l,i)=>(e.openBlock(),e.createBlock(d.default,{key:i,label:l.name,value:l.url,class:"w-100 mn-t-small mn-b-small bg-white radius-small pd-small",radio:a.state.filter.categories,"onUpdate:radio":t[0]||(t[0]=s=>a.state.filter.categories=s)},null,8,["label","value","radio"]))),128))]),_:1}),B,e.createVNode(u.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",q,e.toDisplayString(e.unref(c)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.prices,(l,i)=>(e.openBlock(),e.createBlock(d.default,{key:i,label:l.label,value:l.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:a.state.filter.prices,"onUpdate:radio":t[1]||(t[1]=s=>a.state.filter.prices=s)},null,8,["label","value","radio"]))),128))]),_:1}),F,e.createVNode(u.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-small",status:!1},{header:e.withCtx(()=>[C]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.deliveryOptions,(l,i)=>(e.openBlock(),e.createBlock(d.default,{key:i,label:l.label,value:l.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:a.state.filter.delivery,"onUpdate:radio":t[2]||(t[2]=s=>a.state.filter.delivery=s)},null,8,["label","value","radio"]))),128))]),_:1}),V,e.createElementVNode("button",{onClick:_,class:"bg-main w-100 button"},e.toDisplayString(e.unref(c)("filters.reset")),1)]))}};exports.default=N;
@@ -1,20 +1,22 @@
1
- import { withAsyncContext as P, ref as T, openBlock as t, createElementBlock as m, createElementVNode as l, toDisplayString as c, unref as s, createVNode as b, withCtx as a, Fragment as h, renderList as p, createBlock as g } from "vue";
2
- import _ from "../../../../components/Spoiler/Spoiler.vue2.js";
3
- import f from "../../../../components/Checkbox/Checkbox.vue.js";
4
- import { useI18n as A } from "vue-i18n";
5
- import { actions as B, state as $ } from "../../store/categories.js";
1
+ import { withAsyncContext as A, ref as P, watch as T, onMounted as U, openBlock as i, createElementBlock as c, createVNode as p, withCtx as n, createElementVNode as o, toDisplayString as b, unref as f, Fragment as g, renderList as y, createBlock as h } from "vue";
2
+ import v from "../../../../components/Spoiler/Spoiler.vue2.js";
3
+ import _ from "../../../../components/Checkbox/Checkbox.vue.js";
4
+ import { useI18n as V } from "vue-i18n";
5
+ import { useRoute as B, useRouter as R } from "vue-router";
6
+ import { actions as $, state as C } from "../../store/categories.js";
7
+ import { state as s } from "../../../marketplace/store/marketplace.js";
6
8
  import "./FilterProducts.vue2.js";
7
- const D = { class: "pd-medium bg-grey radius-big" }, I = { class: "mn-b-small" }, N = /* @__PURE__ */ l("hr", { class: "mn-b-small" }, null, -1), V = { class: "mn-r-auto t-medium p-big" }, j = /* @__PURE__ */ l("hr", { class: "mn-b-small" }, null, -1), L = { class: "mn-r-auto t-medium p-big" }, O = /* @__PURE__ */ l("hr", { class: "mn-b-small" }, null, -1), R = /* @__PURE__ */ l("p", { class: "mn-r-auto t-medium p-big" }, "Delivery", -1), S = /* @__PURE__ */ l("hr", { class: "mn-b-semi" }, null, -1), K = {
9
+ const D = { class: "pd-medium bg-grey radius-big" }, N = { class: "cursor-pointer mn-r-auto t-medium p-big" }, I = /* @__PURE__ */ o("hr", { class: "mn-b-small" }, null, -1), L = { class: "cursor-pointer mn-r-auto t-medium p-big" }, M = /* @__PURE__ */ o("hr", { class: "mn-b-small" }, null, -1), Q = /* @__PURE__ */ o("p", { class: "cursor-pointer mn-r-auto t-medium p-big" }, "Delivery", -1), S = /* @__PURE__ */ o("hr", { class: "mn-b-semi" }, null, -1), Z = {
8
10
  __name: "FilterProducts",
9
11
  props: {
10
12
  selectedFilters: Object,
11
13
  prices: {
12
14
  type: Array,
13
15
  default: () => [
14
- { label: "Under $5", value: { min: 0, max: 5 } },
15
- { label: "$5 to $10", value: { min: 5, max: 10 } },
16
- { label: "$10 to $20", value: { min: 10, max: 20 } },
17
- { label: "$20 and above", value: { min: 20, max: 1 / 0 } }
16
+ { label: "Under 300฿", value: "<300" },
17
+ { label: "300฿ to 600฿", value: "300-600" },
18
+ { label: "600฿ to 1200฿", value: "600-1200" },
19
+ { label: "$1200 and above", value: ">1200" }
18
20
  ]
19
21
  },
20
22
  deliveryOptions: {
@@ -27,20 +29,37 @@ const D = { class: "pd-medium bg-grey radius-big" }, I = { class: "mn-b-small" }
27
29
  }
28
30
  },
29
31
  emits: ["updateFilters", "resetFilters"],
30
- async setup(v, { emit: k }) {
31
- let x, y;
32
- [x, y] = P(() => B.fetchCategories()), await x, y();
33
- let u = T({
32
+ async setup(x, { emit: j }) {
33
+ let w, F;
34
+ const m = B(), E = R();
35
+ [w, F] = A(() => $.fetchCategories()), await w, F(), P({
34
36
  categories: [],
35
37
  prices: [],
36
38
  delivery: [],
37
39
  extra: []
40
+ }), T(() => s.filter, (r, e) => {
41
+ const t = { ...m.query };
42
+ Object.keys(e).forEach((l) => {
43
+ t[l] && delete t[l];
44
+ });
45
+ const a = Object.fromEntries(
46
+ Object.entries(r).filter(([l, u]) => Array.isArray(u) && u.length > 0).map(([l, u]) => [l, u.join(",")])
47
+ );
48
+ Object.assign(t, a), E.push({ query: t });
49
+ }, { deep: !0 }), U(async () => {
50
+ if (m.query) {
51
+ const r = m.query, e = {
52
+ categories: r.categories ? r.categories.split(",") : [],
53
+ prices: r.prices ? r.prices.split(",") : [],
54
+ delivery: r.delivery ? r.delivery.split(",") : []
55
+ // Продолжайте этот паттерн для остальных полей фильтра
56
+ };
57
+ s.filter = e;
58
+ }
38
59
  });
39
- const C = k, d = (o, r) => {
40
- C("updateFilters", { filterType: o, value: r });
41
- }, E = () => {
42
- C("resetFilters");
43
- }, F = {
60
+ const O = j, q = () => {
61
+ O("resetFilters");
62
+ }, k = {
44
63
  locale: "en",
45
64
  messages: {
46
65
  en: {
@@ -73,82 +92,80 @@ const D = { class: "pd-medium bg-grey radius-big" }, I = { class: "mn-b-small" }
73
92
  }
74
93
  }
75
94
  };
76
- $.all.forEach((o) => {
77
- o.localization.forEach((r) => {
78
- F.messages[r.locale].categories.push(r.text);
95
+ C.all.forEach((r) => {
96
+ r.localization.forEach((e) => {
97
+ k.messages[e.locale].categories.push(e.text);
79
98
  });
80
99
  });
81
- const { t: n } = A(F);
82
- return (o, r) => (t(), m("div", D, [
83
- l("h3", I, c(s(n)("filters.title")), 1),
84
- N,
85
- b(_, {
100
+ const { t: d } = V(k);
101
+ return (r, e) => (i(), c("div", D, [
102
+ p(v, {
86
103
  class: "radius-small o-hidden br-1px br-solid br-grey mn-b-small",
87
104
  status: !0
88
105
  }, {
89
- header: a(() => [
90
- l("p", V, c(s(n)("categoriesTitle")), 1)
106
+ header: n(() => [
107
+ o("p", N, b(f(d)("categoriesTitle")), 1)
91
108
  ]),
92
- content: a(() => [
93
- (t(!0), m(h, null, p($.all, (e, i) => (t(), g(f, {
94
- key: i,
95
- label: e.name,
96
- value: e.url,
109
+ content: n(() => [
110
+ (i(!0), c(g, null, y(C.all, (t, a) => (i(), h(_, {
111
+ key: a,
112
+ label: t.name,
113
+ value: t.url,
97
114
  class: "w-100 mn-t-small mn-b-small bg-white radius-small pd-small",
98
- radio: s(u).categories,
99
- onChange: (w) => d("categories", e.url)
100
- }, null, 8, ["label", "value", "radio", "onChange"]))), 128))
115
+ radio: s.filter.categories,
116
+ "onUpdate:radio": e[0] || (e[0] = (l) => s.filter.categories = l)
117
+ }, null, 8, ["label", "value", "radio"]))), 128))
101
118
  ]),
102
119
  _: 1
103
120
  }),
104
- j,
105
- b(_, {
121
+ I,
122
+ p(v, {
106
123
  class: "radius-small o-hidden br-1px br-solid br-grey mn-b-small",
107
124
  status: !1
108
125
  }, {
109
- header: a(() => [
110
- l("p", L, c(s(n)("filters.price.title")), 1)
126
+ header: n(() => [
127
+ o("p", L, b(f(d)("filters.price.title")), 1)
111
128
  ]),
112
- content: a(() => [
113
- (t(!0), m(h, null, p(v.prices, (e, i) => (t(), g(f, {
114
- key: i,
115
- label: e.label,
116
- value: e.value,
129
+ content: n(() => [
130
+ (i(!0), c(g, null, y(x.prices, (t, a) => (i(), h(_, {
131
+ key: a,
132
+ label: t.label,
133
+ value: t.value,
117
134
  class: "w-100 mn-t-small bg-white radius-small pd-small",
118
- radio: s(u).prices,
119
- onChange: (w) => d("prices", e.value)
120
- }, null, 8, ["label", "value", "radio", "onChange"]))), 128))
135
+ radio: s.filter.prices,
136
+ "onUpdate:radio": e[1] || (e[1] = (l) => s.filter.prices = l)
137
+ }, null, 8, ["label", "value", "radio"]))), 128))
121
138
  ]),
122
139
  _: 1
123
140
  }),
124
- O,
125
- b(_, {
141
+ M,
142
+ p(v, {
126
143
  class: "radius-small o-hidden br-1px br-solid br-grey mn-b-small",
127
144
  status: !1
128
145
  }, {
129
- header: a(() => [
130
- R
146
+ header: n(() => [
147
+ Q
131
148
  ]),
132
- content: a(() => [
133
- (t(!0), m(h, null, p(v.deliveryOptions, (e, i) => (t(), g(f, {
134
- key: i,
135
- label: e.label,
136
- value: e.value,
149
+ content: n(() => [
150
+ (i(!0), c(g, null, y(x.deliveryOptions, (t, a) => (i(), h(_, {
151
+ key: a,
152
+ label: t.label,
153
+ value: t.value,
137
154
  class: "w-100 mn-t-small bg-white radius-small pd-small",
138
- radio: s(u).delivery,
139
- onChange: (w) => d("delivery", e.value)
140
- }, null, 8, ["label", "value", "radio", "onChange"]))), 128))
155
+ radio: s.filter.delivery,
156
+ "onUpdate:radio": e[2] || (e[2] = (l) => s.filter.delivery = l)
157
+ }, null, 8, ["label", "value", "radio"]))), 128))
141
158
  ]),
142
159
  _: 1
143
160
  }),
144
161
  S,
145
- l("button", {
146
- onClick: E,
162
+ o("button", {
163
+ onClick: q,
147
164
  class: "bg-main w-100 button"
148
- }, c(s(n)("filters.reset")), 1)
165
+ }, b(f(d)("filters.reset")), 1)
149
166
  ]));
150
167
  }
151
168
  };
152
169
  export {
153
- K as default
170
+ Z as default
154
171
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router"),p=require("vue-i18n");require("../../../../../../node_modules/vue3-carousel/dist/carousel.css.cjs");const s=require("../../../../../../node_modules/vue3-carousel/dist/carousel.es.cjs"),_=require("../blocks/CardProduct.vue.cjs"),u=require("../../store/products.cjs"),m={id:"popularProducts",class:"pd-thin"},h={class:"bg-grey radius-big pd-t-big pd-b-big"},f={class:"mn-semi t-center title"},y={class:""},g={__name:"PopularProducts",async setup(b){let t,o;d.useRouter(),[t,o]=e.withAsyncContext(()=>u.actions.read({limit:10})),await t,o();const i={messages:{en:{title:"Explore Hot Products 🔥",subtitle:"We attach great importance to high quality and customer satisfaction"},ru:{title:"Самое Горячее 🔥",subtitle:"Мы придаем большое значение высокому качеству товаров и удовлетворенности клиентов"}}},{t:n}=p.useI18n(i),r=e.ref(null),a={320:{itemsToShow:1},640:{itemsToShow:3},1024:{itemsToShow:3}};return e.onMounted(async()=>{setTimeout(()=>{r.value.updateSlideWidth()},500)}),(k,w)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("div",h,[e.createElementVNode("div",f,[e.createElementVNode("h2",y,e.toDisplayString(e.unref(n)("title")),1)]),e.createVNode(e.unref(s.Carousel),{ref_key:"myCarousel",ref:r,"items-to-show":3,transition:330,wrapAround:!0,autoplay:3e3,pauseAutoplayOnHover:!0,breakpoints:a},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(c,l,q)=>(e.openBlock(),e.createBlock(e.unref(s.Slide),{class:"pd-thin",key:l},{default:e.withCtx(()=>[e.createVNode(_.default,{class:"carousel__item h-100 w-100",product:c},null,8,["product"])]),_:2},1024))),128))]),_:1},512)])]))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("vue-router"),b=require("vue-i18n"),f=require("../../../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs"),v=require("../../../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs"),g=require("../../../../components/Loader/Loader.vue2.cjs"),h=require("../blocks/CardProduct.vue.cjs"),k=require("../../store/products.cjs");require("./PopularProducts.vue2.cjs");const y={id:"popularProducts",class:"pd-thin"},E={class:"bg-grey radius-big pd-t-big pd-b-big"},q={class:"mn-b-semi t-center"},B={class:"embla__container"},S={key:0,class:"h-100 w-100 radius-big flex-center bg-grey"},N={__name:"PopularProducts",setup(I){_.useRouter();const l={messages:{en:{title:"Explore Hot Products 🔥",subtitle:"We attach great importance to high quality and customer satisfaction"},ru:{title:"Самое Горячее 🔥",subtitle:"Мы придаем большое значение высокому качеству товаров и удовлетворенности клиентов"}}},{t:c}=b.useI18n(l),r=e.ref(10),i=e.ref(0),u=e.ref([]),d={delay:2e3,jump:!1,stopOnInteraction:!1,stopOnMouseEnter:!1,stopOnFocusIn:!0,stopOnLastSnap:!1,rootNode:o=>o.parentElement},[p,t]=f.default({loop:!0},[v.default(d)]),s=o=>u.value=t.value.scrollSnapList(),a=o=>i.value=t.value.selectedScrollSnap();return e.onMounted(async()=>{r.value=await k.actions.read({limit:10,organization:"657e7134efb8110c51b8b713"}),s(),a(),t.value.on("reInit",s),t.value.on("reInit",a),t.value.on("select",a)}),(o,O)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",E,[e.createElementVNode("h2",q,e.toDisplayString(e.unref(c)("title")),1),e.createElementVNode("div",{class:"embla",ref_key:"emblaNode",ref:p},[e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(n,m,P)=>(e.openBlock(),e.createElementBlock("div",{class:"embla__slide pd-thin",key:m},[e.createVNode(e.Transition,{name:"fade",mode:"out-in",appear:""},{default:e.withCtx(()=>[n.name?(e.openBlock(),e.createBlock(h.default,{key:1,onClick:V=>o.$router.push({name:"Product Organization",params:{_id:n.organization,product:n._id}}),product:n,class:"cursor-pointer transition-ease-in hover-scale-0 h-100 w-100"},null,8,["onClick","product"])):(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(g.default,{class:"pos-relative"})]))]),_:2},1024)]))),128))])],512)])]))}};exports.default=N;