@ozdao/prometheus-framework 0.2.112 → 0.2.114

Sign up to get free protection for your applications and to get access to all the features.
Files changed (529) hide show
  1. package/dist/common.schema-BFhpUXUt.js +12 -0
  2. package/dist/common.schema-ChBVARrs.mjs +13 -0
  3. package/dist/community.server.js +6 -4
  4. package/dist/community.server.mjs +4 -2
  5. package/dist/engagement.schema-CI2ifjXN.mjs +28 -0
  6. package/dist/engagement.schema-fdLNO2_6.js +27 -0
  7. package/dist/events.server.js +6 -4
  8. package/dist/events.server.mjs +4 -2
  9. package/dist/files.server.js +81 -29
  10. package/dist/files.server.mjs +81 -29
  11. package/dist/gallery.server.js +66 -39
  12. package/dist/gallery.server.mjs +66 -39
  13. package/dist/main-8APITHuW.mjs +14201 -0
  14. package/dist/main-8N2Jmsuk.js +2 -2
  15. package/dist/main-BJvlNekm.mjs +5 -5
  16. package/dist/main-BQisDfLk.js +2 -2
  17. package/dist/main-BV1Yv9Hy.js +2 -2
  18. package/dist/main-Bw0PvTs-.mjs +5 -5
  19. package/dist/main-ByCtZbHD.mjs +5 -5
  20. package/dist/main-CX2ISR43.mjs +5 -5
  21. package/dist/main-CXObXjv-.js +2 -2
  22. package/dist/main-CkeuHuCY.mjs +5 -5
  23. package/dist/main-CnfcBov2.mjs +5 -5
  24. package/dist/main-D50VqYhy.js +2 -2
  25. package/dist/main-D8gNZLSa.js +2 -2
  26. package/dist/main-DPsHxX0l.mjs +5 -5
  27. package/dist/main-DTlUA63C.mjs +5 -5
  28. package/dist/main-DfD5hLQo.mjs +5 -5
  29. package/dist/main-Dh6Zfei9.js +2 -2
  30. package/dist/main-DmNP-t33.mjs +5 -5
  31. package/dist/main-DwyUYWFX.js +2 -2
  32. package/dist/main-VcxO-jAt.js +92 -0
  33. package/dist/main-cffh4bbv.js +2 -2
  34. package/dist/main-pGo7JpSP.js +2 -2
  35. package/dist/main.css +1 -1
  36. package/dist/metadata.schema-6slGhpQS.js +40 -0
  37. package/dist/metadata.schema-CK5e2O3f.mjs +41 -0
  38. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
  39. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +410 -407
  40. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
  41. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +469 -456
  42. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  43. package/dist/node_modules/web3/lib/esm/accounts.js +5 -2
  44. package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
  45. package/dist/node_modules/web3/lib/esm/index.js +45 -42
  46. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  47. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  48. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
  49. package/dist/node_modules/web3/lib/esm/web3.js +40 -37
  50. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
  51. package/dist/node_modules/web3-core/lib/esm/web3_config.js +28 -18
  52. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  53. package/dist/node_modules/web3-core/lib/esm/web3_context.js +56 -53
  54. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  55. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +100 -87
  56. package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -1
  57. package/dist/node_modules/web3-errors/lib/esm/error_codes.js +97 -95
  58. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -1
  59. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +8 -8
  60. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -1
  61. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +20 -20
  62. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +4 -4
  63. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +2 -2
  64. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -1
  65. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +33 -27
  66. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -1
  67. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +33 -12
  68. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  69. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +183 -179
  70. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  71. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +10 -10
  72. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  73. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +45 -44
  74. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  75. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +59 -57
  76. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  77. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +43 -43
  78. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  79. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +31 -31
  80. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  81. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +26 -26
  82. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  83. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +53 -51
  84. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
  85. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +25 -23
  86. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  87. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +103 -101
  88. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +2 -2
  89. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +159 -156
  90. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  91. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +11 -8
  92. package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -1
  93. package/dist/node_modules/web3-eth-contract/lib/esm/index.js +3 -0
  94. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -1
  95. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +5 -2
  96. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  97. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +19 -16
  98. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  99. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +5 -2
  100. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  101. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +50 -47
  102. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  103. package/dist/node_modules/web3-net/lib/esm/net.js +27 -27
  104. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  105. package/dist/node_modules/web3-utils/lib/esm/converters.js +100 -83
  106. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
  107. package/dist/node_modules/web3-utils/lib/esm/formatter.js +123 -104
  108. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  109. package/dist/node_modules/web3-validator/lib/esm/utils.js +21 -21
  110. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
  111. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +10 -10
  112. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -1
  113. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +30 -28
  114. package/dist/orders.server.js +1 -1
  115. package/dist/orders.server.mjs +1 -1
  116. package/dist/organizations.server.js +56 -59
  117. package/dist/organizations.server.mjs +56 -59
  118. package/dist/products.server.js +1 -1
  119. package/dist/products.server.mjs +1 -1
  120. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  121. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +17 -17
  122. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/components/Block/Block.vue.js +5 -5
  124. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +33 -30
  126. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -9
  128. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.cjs +1 -0
  129. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.js +1 -0
  130. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -0
  131. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +165 -0
  132. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +22 -19
  134. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +132 -64
  136. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.cjs +1 -0
  137. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.js +1 -0
  138. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +9 -9
  140. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +12 -12
  142. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  143. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +16 -16
  144. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/components/Map/Map.vue.js +14 -13
  146. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +8 -8
  148. package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +29 -36
  150. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  152. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  153. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  154. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  156. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +6 -6
  158. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +17 -17
  160. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +6 -6
  162. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  164. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +24 -24
  166. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +24 -24
  168. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +11 -11
  170. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +26 -26
  172. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +14 -14
  174. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +6 -6
  176. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +46 -46
  178. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +13 -13
  180. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +5 -5
  182. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +19 -16
  184. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +3 -3
  186. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  187. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
  188. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  189. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  190. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +13 -13
  192. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  194. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  196. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +214 -214
  198. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +8 -8
  200. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
  201. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +23 -23
  202. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +9 -9
  204. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +3 -3
  206. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +9 -9
  208. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +8 -8
  209. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +167 -202
  211. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +73 -165
  213. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +3 -47
  215. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  217. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.cjs +1 -0
  218. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.js +75 -0
  219. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +96 -77
  221. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -0
  222. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +1 -0
  223. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +1 -0
  224. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +27 -0
  225. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.cjs +1 -0
  226. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.js +31 -0
  227. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -19
  229. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/globals/store/globals.js +10 -4
  231. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.cjs +1 -0
  232. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.js +31 -0
  233. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.cjs +1 -0
  234. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.js +31 -0
  235. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.cjs +1 -0
  236. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.js +59 -0
  237. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -0
  238. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +80 -0
  239. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +1 -0
  240. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +1 -0
  241. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/landing/landing.client.js +8 -6
  243. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +5 -5
  245. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.js +1 -1
  247. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.js +1 -1
  249. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.js +1 -1
  251. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.js +30 -30
  253. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +21 -45
  255. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
  257. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
  259. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +36 -36
  261. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +1 -1
  263. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +53 -53
  265. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +33 -33
  267. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  269. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -10
  271. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +5 -5
  273. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
  275. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +24 -24
  277. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +5 -5
  279. package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -0
  280. package/dist/prometheus-framework/src/modules/orders/store/applications.js +37 -0
  281. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +5 -5
  283. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +11 -11
  285. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  287. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +16 -16
  289. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +41 -41
  291. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +11 -11
  293. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +17 -17
  295. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -36
  297. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +8 -8
  299. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  301. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +20 -20
  303. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +12 -12
  305. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +13 -13
  307. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +33 -34
  309. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +16 -16
  311. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +15 -15
  313. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +8 -8
  315. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +8 -8
  317. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +9 -9
  319. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  321. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
  323. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +6 -6
  325. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +8 -8
  327. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +14 -14
  328. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  329. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +51 -56
  330. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  331. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +4 -4
  332. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  333. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +32 -32
  334. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -1
  335. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +1 -1
  336. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
  337. package/dist/prometheus-framework/src/modules/products/products.client.js +28 -30
  338. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  339. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +12 -12
  340. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  341. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +30 -26
  342. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  343. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +35 -35
  344. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  345. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +11 -11
  346. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  347. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +41 -41
  348. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  349. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +13 -13
  350. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -1
  351. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +19 -19
  352. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  353. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +8 -8
  354. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  355. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +14 -11
  356. package/dist/prometheus-framework.cjs.js +1 -1
  357. package/dist/prometheus-framework.es.js +1 -1
  358. package/dist/queryProcessor-BJoJAetd.mjs +162 -0
  359. package/dist/queryProcessor-DWf9tsis.js +161 -0
  360. package/dist/style.css +1 -1
  361. package/dist/wallet.server.js +1 -1
  362. package/dist/wallet.server.mjs +1 -1
  363. package/dist/web-TGdVOTnw.js +1 -0
  364. package/dist/web-_W9a_nWD.mjs +54 -0
  365. package/package.json +1 -1
  366. package/src/components/Address/Address.vue +1 -1
  367. package/src/components/AskToLogin/AskToLogin.vue +1 -1
  368. package/src/components/Block/Block.vue +1 -1
  369. package/src/components/Checkbox/Checkbox.vue +40 -43
  370. package/src/components/Chips/Chips.vue +2 -2
  371. package/src/components/DatePicker/Calendar.vue +29 -31
  372. package/src/components/Dropdown/Dropdown.vue +5 -11
  373. package/src/components/Feed/Feed.vue +98 -15
  374. package/src/components/FieldTags/BlockTags.vue +3 -3
  375. package/src/components/FieldTags/FieldTags.vue +1 -1
  376. package/src/components/FieldTags/vue-tags-input.scss +1 -1
  377. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  378. package/src/components/LocationSelection/LocationSelection.vue +5 -30
  379. package/src/components/Map/LoaderGMaps.js +66 -0
  380. package/src/components/Map/Map.vue +2 -1
  381. package/src/components/Marquee/Marquee.vue +1 -1
  382. package/src/components/Radio/Radio.vue +36 -13
  383. package/src/configurator/components/pages/Styles.vue +1 -1
  384. package/src/modules/auth/components/layouts/Auth.vue +1 -1
  385. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  386. package/src/modules/auth/components/pages/EnterPassword.vue +2 -2
  387. package/src/modules/auth/components/pages/Invite.vue +2 -2
  388. package/src/modules/auth/components/pages/ResetPassword.vue +3 -3
  389. package/src/modules/auth/components/pages/SignIn.vue +4 -4
  390. package/src/modules/auth/components/pages/SignUp.vue +3 -3
  391. package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
  392. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  393. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  394. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  395. package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
  396. package/src/modules/backoffice/components/admin/Users.vue +1 -1
  397. package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
  398. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  399. package/src/modules/community/components/layouts/Community.vue +2 -2
  400. package/src/modules/community/components/pages/BlogPost.vue +2 -2
  401. package/src/modules/community/components/pages/CreateBlogPost.vue +4 -4
  402. package/src/modules/community/components/sections/Comments.vue +2 -2
  403. package/src/modules/community/components/sections/Feed.vue +1 -1
  404. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  405. package/src/modules/constructor/components/elements/Image.vue +1 -1
  406. package/src/modules/constructor/components/elements/Video.vue +2 -2
  407. package/src/modules/events/components/blocks/CardEvent.vue +1 -1
  408. package/src/modules/events/components/pages/EditEvent.vue +32 -32
  409. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  410. package/src/modules/events/components/pages/Event.vue +3 -3
  411. package/src/modules/events/components/pages/Events.vue +4 -3
  412. package/src/modules/events/components/sections/Feed.vue +3 -3
  413. package/src/modules/events/components/sections/List.vue +2 -2
  414. package/src/modules/files/controllers/files.controller.js +8 -6
  415. package/src/modules/files/middlewares/server/middlewareBusboy.js +79 -14
  416. package/src/modules/files/routes/files.routes.js +11 -9
  417. package/src/modules/gallery/components/sections/BackofficeGallery.vue +158 -355
  418. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +26 -244
  419. package/src/modules/gallery/controllers/gallery.controller.js +57 -38
  420. package/src/modules/gallery/models/photo.model.js +20 -11
  421. package/src/modules/gallery/routes/gallery.routes.js +3 -3
  422. package/src/modules/gallery/store/gallery.js +3 -78
  423. package/src/modules/globals/components/blocks/BlockSearch.vue +1 -1
  424. package/src/modules/globals/components/blocks/BlockSorting.vue +77 -0
  425. package/src/modules/globals/components/blocks/CardHeader.vue +27 -25
  426. package/src/modules/globals/components/elements/ButtonDate.vue +66 -0
  427. package/src/modules/globals/components/elements/ButtonSort.vue +41 -0
  428. package/src/modules/globals/components/layouts/Client.vue +273 -0
  429. package/src/{components/Footer → modules/globals/components/partials}/Footer.vue +1 -1
  430. package/src/{components/Header → modules/globals/components/partials}/Header.vue +98 -84
  431. package/src/modules/globals/controllers/utils/queryProcessor.js +3 -3
  432. package/src/modules/globals/models/common.schema.js +1 -1
  433. package/src/modules/globals/services/globals.store.js +11 -6
  434. package/src/modules/globals/store/globals.js +12 -10
  435. package/src/modules/icons/logos/Logotype.vue +23 -19
  436. package/src/modules/icons/navigation/IconCalendar.vue +18 -0
  437. package/src/modules/icons/navigation/IconFilter.vue +18 -0
  438. package/src/modules/icons/navigation/IconSearch.vue +1 -3
  439. package/src/modules/icons/navigation/IconSort.vue +21 -0
  440. package/src/modules/landing/components/pages/Home.vue +4 -4
  441. package/src/modules/landing/components/sections/FeatureSection.vue +5 -5
  442. package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -2
  443. package/src/modules/landing/components/sections/SectionFeature.vue +2 -2
  444. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
  445. package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
  446. package/src/modules/{orders → landing}/components/sections/SubscribeNewsletter.vue +0 -2
  447. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +6 -6
  448. package/src/modules/landing/landing.client.js +2 -0
  449. package/src/modules/landing/router/landing.js +1 -1
  450. package/src/modules/legal/components/pages/Legal.vue +2 -2
  451. package/src/modules/legal/components/pages/legal/Cookies.vue +1 -1
  452. package/src/modules/legal/components/pages/legal/EULA.vue +1 -1
  453. package/src/modules/legal/components/pages/legal/Privacy.vue +1 -1
  454. package/src/modules/legal/components/pages/legal/Terms.vue +1 -1
  455. package/src/modules/marketplace/components/layouts/Marketplace.vue +37 -49
  456. package/src/modules/marketplace/components/pages/Catalog.vue +43 -131
  457. package/src/modules/marketplace/components/sections/Filters.vue +63 -115
  458. package/src/modules/marketplace/store/marketplace.js +22 -167
  459. package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +1 -1
  460. package/src/modules/orders/components/blocks/CardOrderItem.vue +6 -6
  461. package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
  462. package/src/modules/orders/components/blocks/StatusHistory.vue +1 -1
  463. package/src/modules/orders/components/pages/Order.vue +8 -8
  464. package/src/modules/orders/components/pages/OrderBackoffice.vue +7 -7
  465. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  466. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
  467. package/src/modules/orders/components/pages/Orders.vue +3 -5
  468. package/src/modules/orders/components/partials/ShopCart.vue +5 -1
  469. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  470. package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
  471. package/src/modules/orders/store/applications.js +1 -1
  472. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  473. package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
  474. package/src/modules/organizations/components/pages/Department.vue +3 -3
  475. package/src/modules/organizations/components/pages/DepartmentEdit.vue +6 -6
  476. package/src/modules/organizations/components/pages/Members.vue +4 -4
  477. package/src/modules/organizations/components/pages/Organization.vue +3 -3
  478. package/src/modules/organizations/components/pages/OrganizationCreate.vue +2 -2
  479. package/src/modules/organizations/components/pages/OrganizationDetails.vue +1 -1
  480. package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
  481. package/src/modules/organizations/components/pages/OrganizationEdit.vue +9 -9
  482. package/src/modules/organizations/components/pages/OrganizationPeople.vue +1 -1
  483. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  484. package/src/modules/organizations/components/sections/DetailsTab.vue +4 -4
  485. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  486. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  487. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  488. package/src/modules/organizations/controllers/organizations.controller.js +103 -93
  489. package/src/modules/organizations/models/organization.model.js +10 -7
  490. package/src/modules/organizations/store/organizations.js +3 -34
  491. package/src/modules/products/components/blocks/CardPosition.vue +2 -2
  492. package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
  493. package/src/modules/products/components/pages/Categories.vue +1 -1
  494. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  495. package/src/modules/products/components/pages/Leftovers.vue +4 -4
  496. package/src/modules/products/components/pages/Product.vue +1 -5
  497. package/src/modules/products/components/pages/ProductEdit.vue +1 -1
  498. package/src/modules/products/components/pages/Products.vue +2 -2
  499. package/src/modules/products/components/sections/EditProductInfo.vue +1 -1
  500. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  501. package/src/modules/products/components/sections/HeroRecommendation.vue +67 -74
  502. package/src/modules/products/components/sections/MenuSection.vue +2 -2
  503. package/src/modules/products/components/sections/PopularProducts.vue +2 -2
  504. package/src/modules/products/components/sections/SectionProduct.vue +3 -3
  505. package/src/modules/products/products.client.js +0 -2
  506. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  507. package/src/modules/spots/components/blocks/CardSpot.vue +9 -1
  508. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  509. package/src/modules/spots/components/layouts/Spots.vue +0 -2
  510. package/src/modules/spots/components/pages/Spot.vue +4 -4
  511. package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
  512. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  513. package/src/modules/spots/components/sections/Places.vue +1 -1
  514. package/src/modules/users/components/pages/Profile.vue +5 -5
  515. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  516. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  517. package/src/modules/users/components/pages/ProfileEdit.vue +11 -11
  518. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  519. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  520. package/src/modules/users/components/sections/FeaturedUsers.vue +3 -3
  521. package/src/modules/wallet/views/components/pages/Payments.vue +2 -2
  522. package/src/modules/wallet/views/components/pages/Wallet.vue +3 -3
  523. package/src/styles/base/borders.scss +4 -0
  524. package/src/styles/base/shadow_transitions_hover_refactor.scss +4 -0
  525. package/src/styles/config.scss +15 -9
  526. package/src/styles/layout.scss +37 -8
  527. package/src/styles/typography.scss +24 -24
  528. package/src/modules/products/components/sections/SortProducts.vue +0 -74
  529. /package/src/{components/Navigation → modules/globals/components/partials}/Navigation.vue +0 -0
@@ -1,105 +1,108 @@
1
- import { Web3ConfigEvent as W } from "../../../web3-core/lib/esm/web3_config.js";
1
+ import { Web3ConfigEvent as T } from "../../../web3-core/lib/esm/web3_config.js";
2
2
  import "../../../web3-core/lib/esm/web3_request_manager.js";
3
3
  import "../../../web3-core/lib/esm/web3_subscription_manager.js";
4
4
  import "../../../web3-core/lib/esm/web3_subscriptions.js";
5
- import { Web3Context as P } from "../../../web3-core/lib/esm/web3_context.js";
5
+ import { Web3Context as C } from "../../../web3-core/lib/esm/web3_context.js";
6
6
  import "../../../web3-core/lib/esm/web3_batch_request.js";
7
- import { DEFAULT_RETURN_FORMAT as g } from "../../../web3-types/lib/esm/data_format_types.js";
8
- import { BlockTags as Q } from "../../../web3-types/lib/esm/eth_types.js";
7
+ import { DEFAULT_RETURN_FORMAT as W } from "../../../web3-types/lib/esm/data_format_types.js";
8
+ import { BlockTags as z } from "../../../web3-types/lib/esm/eth_types.js";
9
9
  import "../../../web3-types/lib/esm/web3_base_provider.js";
10
- import { ContractTransactionDataAndInputError as X, Web3ContractError as I, ContractExecutionError as D } from "../../../web3-errors/lib/esm/errors/contract_errors.js";
10
+ import { ContractTransactionDataAndInputError as Q, Web3ContractError as A, ContractExecutionError as F } from "../../../web3-errors/lib/esm/errors/contract_errors.js";
11
11
  import { SubscriptionError as N } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
12
12
  import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
13
13
  import "../../../web3-eth-iban/lib/esm/iban.js";
14
- import { Web3ValidatorError as Y } from "../../../web3-validator/lib/esm/errors.js";
14
+ import { Web3ValidatorError as X } from "../../../web3-validator/lib/esm/errors.js";
15
15
  import "../../../web3-validator/lib/esm/formats.js";
16
- import { transformJsonDataToAbiFormat as Z } from "../../../web3-validator/lib/esm/utils.js";
16
+ import { transformJsonDataToAbiFormat as Y } from "../../../web3-validator/lib/esm/utils.js";
17
17
  import { validator as x } from "../../../web3-validator/lib/esm/default_validator.js";
18
- import { isNullish as j } from "../../../web3-validator/lib/esm/validation/object.js";
18
+ import { isNullish as I } from "../../../web3-validator/lib/esm/validation/object.js";
19
19
  import "../../../web3-core/lib/esm/web3_promi_event.js";
20
20
  import "../../../setimmediate/setImmediate.js";
21
21
  import "../../../web3-eth/lib/esm/web3_eth.js";
22
- import { decodeEventABI as R } from "../../../web3-eth/lib/esm/utils/decoding.js";
22
+ import { decodeEventABI as Z } from "../../../web3-eth/lib/esm/utils/decoding.js";
23
23
  import "../../../web3-eth/lib/esm/schemas.js";
24
24
  import { ALL_EVENTS as B, ALL_EVENTS_ABI as L } from "../../../web3-eth/lib/esm/constants.js";
25
- import { getLogs as O, call as tt, createAccessList as it, sendTransaction as G, estimateGas as et } from "../../../web3-eth/lib/esm/rpc_method_wrappers.js";
25
+ import { getLogs as O, call as tt, createAccessList as et, sendTransaction as G, estimateGas as it } from "../../../web3-eth/lib/esm/rpc_method_wrappers.js";
26
26
  import "../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.js";
27
- import { NewHeadsSubscription as $ } from "../../../web3-eth/lib/esm/web3_subscriptions.js";
27
+ import { NewHeadsSubscription as R } from "../../../web3-eth/lib/esm/web3_subscriptions.js";
28
28
  import "../../../web3-eth/lib/esm/utils/transaction_builder.js";
29
- import { jsonInterfaceMethodToString as E, isAbiErrorFragment as nt, isAbiFunctionFragment as ot, isAbiEventFragment as st } from "../../../web3-eth-abi/lib/esm/utils.js";
29
+ import "../../../web3-eth/lib/esm/utils/wait_for_transaction_receipt.js";
30
+ import "../../../web3-eth/lib/esm/utils/try_send_transaction.js";
31
+ import "../../../web3-eth/lib/esm/utils/send_tx_helper.js";
32
+ import { jsonInterfaceMethodToString as y, isAbiErrorFragment as nt, isAbiFunctionFragment as ot, isAbiEventFragment as st } from "../../../web3-eth-abi/lib/esm/utils.js";
30
33
  import { encodeEventSignature as rt } from "../../../web3-eth-abi/lib/esm/api/events_api.js";
31
- import { encodeFunctionSignature as V } from "../../../web3-eth-abi/lib/esm/api/functions_api.js";
34
+ import { encodeFunctionSignature as $ } from "../../../web3-eth-abi/lib/esm/api/functions_api.js";
32
35
  import "../../../web3-eth-abi/lib/esm/coders/base/number.js";
33
- import { decodeContractErrorData as T } from "../../../web3-eth-abi/lib/esm/decode_contract_error_data.js";
34
- import { encodeMethodABI as U, decodeMethodParams as F, encodeEventABI as H, decodeMethodReturn as at } from "./encoding.js";
35
- import { LogsSubscription as q } from "./log_subscription.js";
36
- import { isWeb3ContractContext as J, getEthTxCallParams as ct, getCreateAccessListParams as dt, getSendTxParams as k, getEstimateGasParams as lt } from "./utils.js";
37
- import { format as M, isDataFormat as A } from "../../../web3-utils/lib/esm/formatter.js";
38
- import { isContractInitOptions as K } from "../../../web3-utils/lib/esm/validation.js";
36
+ import { decodeContractErrorData as P } from "../../../web3-eth-abi/lib/esm/decode_contract_error_data.js";
37
+ import { encodeMethodABI as V, decodeMethodParams as D, encodeEventABI as U, decodeMethodReturn as at } from "./encoding.js";
38
+ import { LogsSubscription as K } from "./log_subscription.js";
39
+ import { isWeb3ContractContext as H, getEthTxCallParams as ct, getCreateAccessListParams as dt, getSendTxParams as J, getEstimateGasParams as lt } from "./utils.js";
40
+ import { isDataFormat as _, format as E } from "../../../web3-utils/lib/esm/formatter.js";
41
+ import { isContractInitOptions as k } from "../../../web3-utils/lib/esm/validation.js";
39
42
  import { keccak256Wrapper as ht } from "../../../web3-utils/lib/esm/hash.js";
40
43
  import { toChecksumAddress as ut } from "../../../web3-utils/lib/esm/converters.js";
41
- var _ = function(z, t, n, s) {
42
- function r(e) {
43
- return e instanceof n ? e : new n(function(o) {
44
- o(e);
44
+ var b = function(q, t, n, s) {
45
+ function r(i) {
46
+ return i instanceof n ? i : new n(function(o) {
47
+ o(i);
45
48
  });
46
49
  }
47
- return new (n || (n = Promise))(function(e, o) {
50
+ return new (n || (n = Promise))(function(i, o) {
48
51
  function d(c) {
49
52
  try {
50
- i(s.next(c));
53
+ e(s.next(c));
51
54
  } catch (l) {
52
55
  o(l);
53
56
  }
54
57
  }
55
58
  function a(c) {
56
59
  try {
57
- i(s.throw(c));
60
+ e(s.throw(c));
58
61
  } catch (l) {
59
62
  o(l);
60
63
  }
61
64
  }
62
- function i(c) {
63
- c.done ? e(c.value) : r(c.value).then(d, a);
65
+ function e(c) {
66
+ c.done ? i(c.value) : r(c.value).then(d, a);
64
67
  }
65
- i((s = s.apply(z, t || [])).next());
68
+ e((s = s.apply(q, t || [])).next());
66
69
  });
67
70
  };
68
71
  const ft = {
69
- logs: q,
70
- newHeads: $,
71
- newBlockHeaders: $
72
+ logs: K,
73
+ newHeads: R,
74
+ newBlockHeaders: R
72
75
  };
73
- class S extends P {
74
- constructor(t, n, s, r, e) {
76
+ class M extends C {
77
+ constructor(t, n, s, r, i) {
75
78
  var o, d, a;
76
- const i = K(n) ? n : K(s) ? s : void 0;
79
+ const e = k(n) ? n : k(s) ? s : void 0;
77
80
  let c;
78
- J(n) ? c = n : J(s) ? c = s : c = r;
81
+ H(n) ? c = n : H(s) ? c = s : c = r;
79
82
  let l;
80
- if (typeof n == "object" && "provider" in n ? l = n.provider : typeof s == "object" && "provider" in s ? l = s.provider : typeof r == "object" && "provider" in r ? l = r.provider : l = S.givenProvider, super(Object.assign(Object.assign({}, c), { provider: l, registeredSubscriptions: ft })), this.syncWithContext = !1, this._functions = {}, c != null && c.wallet && (this._wallet = c.wallet), c != null && c.accountProvider && (this._accountProvider = c.accountProvider), !j(i) && !j(i.data) && !j(i.input) && this.config.contractDataInputFill !== "both")
81
- throw new X({
82
- data: i.data,
83
- input: i.input
83
+ if (typeof n == "object" && "provider" in n ? l = n.provider : typeof s == "object" && "provider" in s ? l = s.provider : typeof r == "object" && "provider" in r ? l = r.provider : l = M.givenProvider, super(Object.assign(Object.assign({}, c), { provider: l, registeredSubscriptions: ft })), this.syncWithContext = !1, this._functions = {}, c != null && c.wallet && (this._wallet = c.wallet), c != null && c.accountProvider && (this._accountProvider = c.accountProvider), !I(e) && !I(e.data) && !I(e.input) && this.config.contractDataInputFill !== "both")
84
+ throw new Q({
85
+ data: e.data,
86
+ input: e.input
84
87
  });
85
88
  this._overloadedMethodAbis = /* @__PURE__ */ new Map();
86
- const h = A(r) ? r : A(s) ? s : e ?? g, v = typeof n == "string" ? n : void 0;
87
- this.config.contractDataInputFill = (o = i == null ? void 0 : i.dataInputFill) !== null && o !== void 0 ? o : this.config.contractDataInputFill, this._parseAndSetJsonInterface(t, h), j(v) || this._parseAndSetAddress(v, h), this.options = {
88
- address: v,
89
+ const h = _(r) ? r : _(s) ? s : i ?? this.defaultReturnFormat, m = typeof n == "string" ? n : void 0;
90
+ this.config.contractDataInputFill = (o = e == null ? void 0 : e.dataInputFill) !== null && o !== void 0 ? o : this.config.contractDataInputFill, this._parseAndSetJsonInterface(t, h), this.defaultReturnFormat !== h && (this.defaultReturnFormat = h), I(m) || this._parseAndSetAddress(m, h), this.options = {
91
+ address: m,
89
92
  jsonInterface: this._jsonInterface,
90
- gas: (d = i == null ? void 0 : i.gas) !== null && d !== void 0 ? d : i == null ? void 0 : i.gasLimit,
91
- gasPrice: i == null ? void 0 : i.gasPrice,
92
- from: i == null ? void 0 : i.from,
93
- input: i == null ? void 0 : i.input,
94
- data: i == null ? void 0 : i.data
95
- }, this.syncWithContext = (a = i == null ? void 0 : i.syncWithContext) !== null && a !== void 0 ? a : !1, c instanceof P && this.subscribeToContextEvents(c), Object.defineProperty(this.options, "address", {
96
- set: (m) => this._parseAndSetAddress(m, h),
93
+ gas: (d = e == null ? void 0 : e.gas) !== null && d !== void 0 ? d : e == null ? void 0 : e.gasLimit,
94
+ gasPrice: e == null ? void 0 : e.gasPrice,
95
+ from: e == null ? void 0 : e.from,
96
+ input: e == null ? void 0 : e.input,
97
+ data: e == null ? void 0 : e.data
98
+ }, this.syncWithContext = (a = e == null ? void 0 : e.syncWithContext) !== null && a !== void 0 ? a : !1, c instanceof C && this.subscribeToContextEvents(c), Object.defineProperty(this.options, "address", {
99
+ set: (v) => this._parseAndSetAddress(v, h),
97
100
  get: () => this._address
98
101
  }), Object.defineProperty(this.options, "jsonInterface", {
99
- set: (m) => this._parseAndSetJsonInterface(m, h),
102
+ set: (v) => this._parseAndSetJsonInterface(v, h),
100
103
  get: () => this._jsonInterface
101
- }), c instanceof P && c.on(W.CONFIG_CHANGE, (m) => {
102
- this.setConfig({ [m.name]: m.newValue });
104
+ }), c instanceof C && c.on(T.CONFIG_CHANGE, (v) => {
105
+ this.setConfig({ [v.name]: v.newValue });
103
106
  });
104
107
  }
105
108
  /**
@@ -178,7 +181,7 @@ class S extends P {
178
181
  */
179
182
  clone() {
180
183
  let t;
181
- return this.options.address ? t = new S([...this._jsonInterface, ...this._errorsInterface], this.options.address, {
184
+ return this.options.address ? t = new M([...this._jsonInterface, ...this._errorsInterface], this.options.address, {
182
185
  gas: this.options.gas,
183
186
  gasPrice: this.options.gasPrice,
184
187
  from: this.options.from,
@@ -187,7 +190,7 @@ class S extends P {
187
190
  provider: this.currentProvider,
188
191
  syncWithContext: this.syncWithContext,
189
192
  dataInputFill: this.config.contractDataInputFill
190
- }, this.getContextObject()) : t = new S([...this._jsonInterface, ...this._errorsInterface], {
193
+ }, this.getContextObject()) : t = new M([...this._jsonInterface, ...this._errorsInterface], {
191
194
  gas: this.options.gas,
192
195
  gasPrice: this.options.gasPrice,
193
196
  from: this.options.from,
@@ -277,84 +280,84 @@ class S extends P {
277
280
  */
278
281
  deploy(t) {
279
282
  var n, s, r;
280
- let e = this._jsonInterface.find((l) => l.type === "constructor");
281
- e || (e = {
283
+ let i = this._jsonInterface.find((l) => l.type === "constructor");
284
+ i || (i = {
282
285
  type: "constructor",
283
286
  stateMutability: ""
284
287
  });
285
- const o = M({ format: "bytes" }, (n = t == null ? void 0 : t.input) !== null && n !== void 0 ? n : this.options.input, g), d = M({ format: "bytes" }, (s = t == null ? void 0 : t.data) !== null && s !== void 0 ? s : this.options.data, g);
288
+ const o = E({ format: "bytes" }, (n = t == null ? void 0 : t.input) !== null && n !== void 0 ? n : this.options.input, W), d = E({ format: "bytes" }, (s = t == null ? void 0 : t.data) !== null && s !== void 0 ? s : this.options.data, W);
286
289
  if ((!o || o.trim() === "0x") && (!d || d.trim() === "0x"))
287
- throw new I("contract creation without any data provided.");
288
- const a = (r = t == null ? void 0 : t.arguments) !== null && r !== void 0 ? r : [], i = Object.assign(Object.assign({}, this.options), { input: o, data: d }), c = o ?? d;
290
+ throw new A("contract creation without any data provided.");
291
+ const a = (r = t == null ? void 0 : t.arguments) !== null && r !== void 0 ? r : [], e = Object.assign(Object.assign({}, this.options), { input: o, data: d }), c = o ?? d;
289
292
  return {
290
293
  arguments: a,
291
294
  send: (l) => {
292
295
  const h = Object.assign({}, l);
293
- return this._contractMethodDeploySend(e, a, h, i);
296
+ return this._contractMethodDeploySend(i, a, h, e);
294
297
  },
295
- estimateGas: (l, h = g) => _(this, void 0, void 0, function* () {
296
- const v = Object.assign({}, l);
298
+ estimateGas: (l, h = this.defaultReturnFormat) => b(this, void 0, void 0, function* () {
299
+ const m = Object.assign({}, l);
297
300
  return this._contractMethodEstimateGas({
298
- abi: e,
301
+ abi: i,
299
302
  params: a,
300
303
  returnFormat: h,
301
- options: v,
302
- contractOptions: i
304
+ options: m,
305
+ contractOptions: e
303
306
  });
304
307
  }),
305
- encodeABI: () => U(e, a, M({ format: "bytes" }, c, g)),
306
- decodeData: (l) => Object.assign(Object.assign({}, F(e, l.replace(c, ""), !1)), { __method__: e.type })
308
+ encodeABI: () => V(i, a, E({ format: "bytes" }, c, this.defaultReturnFormat)),
309
+ decodeData: (l) => Object.assign(Object.assign({}, D(i, l.replace(c, ""), !1)), { __method__: i.type })
307
310
  };
308
311
  }
309
312
  getPastEvents(t, n, s) {
310
313
  var r;
311
- return _(this, void 0, void 0, function* () {
312
- const e = typeof t == "string" ? t : B, o = (
314
+ return b(this, void 0, void 0, function* () {
315
+ const i = typeof t == "string" ? t : B, o = (
313
316
  // eslint-disable-next-line no-nested-ternary
314
- typeof t != "string" && !A(t) ? t : A(n) ? {} : n
315
- ), d = A(t) ? t : A(n) ? n : s ?? g, a = e === "allEvents" || e === B ? L : this._jsonInterface.find((p) => "name" in p && p.name === e);
317
+ typeof t != "string" && !_(t) ? t : _(n) ? {} : n
318
+ ), d = _(t) ? t : _(n) ? n : s ?? this.defaultReturnFormat, a = i === "allEvents" || i === B ? L : this._jsonInterface.find((p) => "name" in p && p.name === i);
316
319
  if (!a)
317
- throw new I(`Event ${e} not found.`);
318
- const { fromBlock: i, toBlock: c, topics: l, address: h } = H(this.options, a, o ?? {}), v = yield O(this, { fromBlock: i, toBlock: c, topics: l, address: h }, d), m = v ? v.map((p) => typeof p == "string" ? p : R(a, p, this._jsonInterface, d)) : [], u = (r = o == null ? void 0 : o.filter) !== null && r !== void 0 ? r : {}, f = Object.keys(u);
319
- return f.length > 0 ? m.filter((p) => typeof p == "string" ? !0 : f.every((b) => {
320
- var C;
321
- if (Array.isArray(u[b]))
322
- return u[b].some((y) => String(p.returnValues[b]).toUpperCase() === String(y).toUpperCase());
323
- const w = (C = a.inputs) === null || C === void 0 ? void 0 : C.filter((y) => y.name === b)[0];
324
- return w != null && w.indexed && w.type === "string" && ht(u[b]) === String(p.returnValues[b]) ? !0 : String(p.returnValues[b]).toUpperCase() === String(u[b]).toUpperCase();
325
- })) : m;
320
+ throw new A(`Event ${i} not found.`);
321
+ const { fromBlock: e, toBlock: c, topics: l, address: h } = U(this.options, a, o ?? {}), m = yield O(this, { fromBlock: e, toBlock: c, topics: l, address: h }, d), v = m ? m.map((p) => typeof p == "string" ? p : Z(a, p, this._jsonInterface, d)) : [], u = (r = o == null ? void 0 : o.filter) !== null && r !== void 0 ? r : {}, f = Object.keys(u);
322
+ return f.length > 0 ? v.filter((p) => typeof p == "string" ? !0 : f.every((g) => {
323
+ var S;
324
+ if (Array.isArray(u[g]))
325
+ return u[g].some((w) => String(p.returnValues[g]).toUpperCase() === String(w).toUpperCase());
326
+ const j = (S = a.inputs) === null || S === void 0 ? void 0 : S.filter((w) => w.name === g)[0];
327
+ return j != null && j.indexed && j.type === "string" && ht(u[g]) === String(p.returnValues[g]) ? !0 : String(p.returnValues[g]).toUpperCase() === String(u[g]).toUpperCase();
328
+ })) : v;
326
329
  });
327
330
  }
328
- _parseAndSetAddress(t, n = g) {
329
- this._address = t && ut(M({ format: "address" }, t, n));
331
+ _parseAndSetAddress(t, n = this.defaultReturnFormat) {
332
+ this._address = t && ut(E({ format: "address" }, t, n));
330
333
  }
331
334
  decodeMethodData(t) {
332
- const n = t.slice(0, 10), r = this._jsonInterface.filter((e) => e.type !== "error").find((e) => n === V(E(e)));
335
+ const n = t.slice(0, 10), r = this._jsonInterface.filter((i) => i.type !== "error").find((i) => n === $(y(i)));
333
336
  if (!r)
334
- throw new I(`The ABI for the provided method signature ${n} was not found.`);
335
- return Object.assign(Object.assign({}, F(r, t)), { __method__: E(r) });
337
+ throw new A(`The ABI for the provided method signature ${n} was not found.`);
338
+ return Object.assign(Object.assign({}, D(r, t)), { __method__: y(r) });
336
339
  }
337
- _parseAndSetJsonInterface(t, n = g) {
338
- var s, r, e, o, d;
340
+ _parseAndSetJsonInterface(t, n = this.defaultReturnFormat) {
341
+ var s, r, i, o, d;
339
342
  this._functions = {}, this._methods = {}, this._events = {};
340
343
  let a = [];
341
- const i = t.filter((l) => l.type !== "error"), c = t.filter((l) => nt(l));
342
- for (const l of i) {
344
+ const e = t.filter((l) => l.type !== "error"), c = t.filter((l) => nt(l));
345
+ for (const l of e) {
343
346
  const h = Object.assign(Object.assign({}, l), { signature: "" });
344
347
  if (ot(h)) {
345
- const v = E(h), m = V(v);
346
- h.methodNameWithInputs = v, h.signature = m, h.constant = (r = (s = h.stateMutability === "view") !== null && s !== void 0 ? s : h.stateMutability === "pure") !== null && r !== void 0 ? r : h.constant, h.payable = (e = h.stateMutability === "payable") !== null && e !== void 0 ? e : h.payable, this._overloadedMethodAbis.set(h.name, [
348
+ const m = y(h), v = $(m);
349
+ h.methodNameWithInputs = m, h.signature = v, h.constant = (r = (s = h.stateMutability === "view") !== null && s !== void 0 ? s : h.stateMutability === "pure") !== null && r !== void 0 ? r : h.constant, h.payable = (i = h.stateMutability === "payable") !== null && i !== void 0 ? i : h.payable, this._overloadedMethodAbis.set(h.name, [
347
350
  ...(o = this._overloadedMethodAbis.get(h.name)) !== null && o !== void 0 ? o : [],
348
351
  h
349
352
  ]);
350
353
  const u = (d = this._overloadedMethodAbis.get(h.name)) !== null && d !== void 0 ? d : [], f = this._createContractMethod(u, c), p = this._createContractMethod(u, c, !0);
351
- this._functions[v] = {
352
- signature: m,
354
+ this._functions[m] = {
355
+ signature: v,
353
356
  method: p
354
- }, this._methods[h.name] = f, this._methods[v] = p, this._methods[m] = p;
357
+ }, this._methods[h.name] = f, this._methods[m] = p, this._methods[v] = p;
355
358
  } else if (st(h)) {
356
- const v = E(h), m = rt(v), u = this._createContractEvent(h, n);
357
- h.signature = m, (!(v in this._events) || h.name === "bound") && (this._events[v] = u), this._events[h.name] = u, this._events[m] = u;
359
+ const m = y(h), v = rt(m), u = this._createContractEvent(h, n);
360
+ h.signature = v, (!(m in this._events) || h.name === "bound") && (this._events[m] = u), this._events[h.name] = u, this._events[v] = u;
358
361
  }
359
362
  a = [...a, h];
360
363
  }
@@ -364,63 +367,63 @@ class S extends P {
364
367
  _getAbiParams(t, n) {
365
368
  var s;
366
369
  try {
367
- return Z((s = t.inputs) !== null && s !== void 0 ? s : [], n);
370
+ return Y((s = t.inputs) !== null && s !== void 0 ? s : [], n);
368
371
  } catch (r) {
369
- throw new I(`Invalid parameters for method ${t.name}: ${r.message}`);
372
+ throw new A(`Invalid parameters for method ${t.name}: ${r.message}`);
370
373
  }
371
374
  }
372
375
  _createContractMethod(t, n, s = !1) {
373
376
  const r = t[t.length - 1];
374
- return (...e) => {
377
+ return (...i) => {
375
378
  var o, d, a;
376
- let i;
379
+ let e;
377
380
  const c = (d = s ? (o = this._overloadedMethodAbis.get(r.name)) === null || o === void 0 ? void 0 : o.filter((u) => u.signature === r.signature) : this._overloadedMethodAbis.get(r.name)) !== null && d !== void 0 ? d : [];
378
381
  let l = c[0];
379
- const h = n, v = c.filter((u) => {
382
+ const h = n, m = c.filter((u) => {
380
383
  var f;
381
- return ((f = u.inputs) !== null && f !== void 0 ? f : []).length === e.length;
384
+ return ((f = u.inputs) !== null && f !== void 0 ? f : []).length === i.length;
382
385
  });
383
- if (c.length === 1 || v.length === 0)
384
- i = this._getAbiParams(l, e), x.validate((a = r.inputs) !== null && a !== void 0 ? a : [], i);
386
+ if (c.length === 1 || m.length === 0)
387
+ e = this._getAbiParams(l, i), x.validate((a = r.inputs) !== null && a !== void 0 ? a : [], e);
385
388
  else {
386
389
  const u = [], f = [];
387
- for (const p of v)
390
+ for (const p of m)
388
391
  try {
389
- i = this._getAbiParams(p, e), x.validate(p.inputs, i), f.push(p);
390
- } catch (b) {
391
- u.push(b);
392
+ e = this._getAbiParams(p, i), x.validate(p.inputs, e), f.push(p);
393
+ } catch (g) {
394
+ u.push(g);
392
395
  }
393
396
  if (f.length === 1 ? [l] = f : f.length > 1 && ([l] = f, console.warn(`Multiple methods found that is compatible with the given inputs.
394
397
  Found ${f.length} compatible methods: ${JSON.stringify(f.map((p) => `${p.methodNameWithInputs} (signature: ${p.signature})`))}
395
- The first one will be used: ${l.methodNameWithInputs}`)), u.length === v.length)
396
- throw new Y(u);
398
+ The first one will be used: ${l.methodNameWithInputs}`)), u.length === m.length)
399
+ throw new X(u);
397
400
  }
398
- const m = {
399
- arguments: i,
400
- call: (u, f) => _(this, void 0, void 0, function* () {
401
- return this._contractMethodCall(l, i, h, u, f);
401
+ const v = {
402
+ arguments: e,
403
+ call: (u, f) => b(this, void 0, void 0, function* () {
404
+ return this._contractMethodCall(l, e, h, u, f);
402
405
  }),
403
- send: (u) => this._contractMethodSend(l, i, h, u),
404
- estimateGas: (u, f = g) => _(this, void 0, void 0, function* () {
406
+ send: (u) => this._contractMethodSend(l, e, h, u),
407
+ estimateGas: (u, f = this.defaultReturnFormat) => b(this, void 0, void 0, function* () {
405
408
  return this._contractMethodEstimateGas({
406
409
  abi: l,
407
- params: i,
410
+ params: e,
408
411
  returnFormat: f,
409
412
  options: u
410
413
  });
411
414
  }),
412
- encodeABI: () => U(l, i),
413
- decodeData: (u) => F(l, u),
414
- createAccessList: (u, f) => _(this, void 0, void 0, function* () {
415
- return this._contractMethodCreateAccessList(l, i, h, u, f);
415
+ encodeABI: () => V(l, e),
416
+ decodeData: (u) => D(l, u),
417
+ createAccessList: (u, f) => b(this, void 0, void 0, function* () {
418
+ return this._contractMethodCreateAccessList(l, e, h, u, f);
416
419
  })
417
420
  };
418
- return l.stateMutability === "payable", m;
421
+ return l.stateMutability === "payable", v;
419
422
  };
420
423
  }
421
- _contractMethodCall(t, n, s, r, e) {
424
+ _contractMethodCall(t, n, s, r, i) {
422
425
  var o;
423
- return _(this, void 0, void 0, function* () {
426
+ return b(this, void 0, void 0, function* () {
424
427
  const d = ct({
425
428
  abi: t,
426
429
  params: n,
@@ -428,16 +431,16 @@ class S extends P {
428
431
  contractOptions: Object.assign(Object.assign({}, this.options), { from: (o = this.options.from) !== null && o !== void 0 ? o : this.config.defaultAccount })
429
432
  });
430
433
  try {
431
- const a = yield tt(this, d, e, g);
434
+ const a = yield tt(this, d, i, this.defaultReturnFormat);
432
435
  return at(t, a);
433
436
  } catch (a) {
434
- throw a instanceof D && T(s, a.cause), a;
437
+ throw a instanceof F && P(s, a.cause), a;
435
438
  }
436
439
  });
437
440
  }
438
- _contractMethodCreateAccessList(t, n, s, r, e) {
441
+ _contractMethodCreateAccessList(t, n, s, r, i) {
439
442
  var o;
440
- return _(this, void 0, void 0, function* () {
443
+ return b(this, void 0, void 0, function* () {
441
444
  const d = dt({
442
445
  abi: t,
443
446
  params: n,
@@ -445,70 +448,70 @@ class S extends P {
445
448
  contractOptions: Object.assign(Object.assign({}, this.options), { from: (o = this.options.from) !== null && o !== void 0 ? o : this.config.defaultAccount })
446
449
  });
447
450
  try {
448
- return it(this, d, e, g);
451
+ return et(this, d, i, this.defaultReturnFormat);
449
452
  } catch (a) {
450
- throw a instanceof D && T(s, a.cause), a;
453
+ throw a instanceof F && P(s, a.cause), a;
451
454
  }
452
455
  });
453
456
  }
454
- _contractMethodSend(t, n, s, r, e) {
457
+ _contractMethodSend(t, n, s, r, i) {
455
458
  var o, d;
456
- let a = e ?? this.options;
459
+ let a = i ?? this.options;
457
460
  a = Object.assign(Object.assign({}, a), { input: void 0, from: (d = (o = a.from) !== null && o !== void 0 ? o : this.defaultAccount) !== null && d !== void 0 ? d : void 0 });
458
- const i = k({
461
+ const e = J({
459
462
  abi: t,
460
463
  params: n,
461
464
  options: Object.assign(Object.assign({}, r), { dataInputFill: this.config.contractDataInputFill }),
462
465
  contractOptions: a
463
- }), c = G(this, i, g, {
466
+ }), c = G(this, e, this.defaultReturnFormat, {
464
467
  // TODO Should make this configurable by the user
465
468
  checkRevertBeforeSending: !1,
466
469
  contractAbi: this._jsonInterface
467
470
  });
468
471
  return c.on("error", (l) => {
469
- l instanceof D && T(s, l.cause);
472
+ l instanceof F && P(s, l.cause);
470
473
  }), c;
471
474
  }
472
475
  _contractMethodDeploySend(t, n, s, r) {
473
- var e, o;
476
+ var i, o;
474
477
  let d = r ?? this.options;
475
- d = Object.assign(Object.assign({}, d), { from: (o = (e = d.from) !== null && e !== void 0 ? e : this.defaultAccount) !== null && o !== void 0 ? o : void 0 });
476
- const a = k({
478
+ d = Object.assign(Object.assign({}, d), { from: (o = (i = d.from) !== null && i !== void 0 ? i : this.defaultAccount) !== null && o !== void 0 ? o : void 0 });
479
+ const a = J({
477
480
  abi: t,
478
481
  params: n,
479
- options: Object.assign(Object.assign({}, s), { dataInputFill: this.config.contractDataInputFill }),
482
+ options: Object.assign(Object.assign({}, s), { dataInputFill: this.contractDataInputFill }),
480
483
  contractOptions: d
481
484
  });
482
- return G(this, a, g, {
483
- transactionResolver: (i) => {
484
- if (i.status === BigInt(0))
485
- throw new I("code couldn't be stored", i);
485
+ return G(this, a, this.defaultReturnFormat, {
486
+ transactionResolver: (e) => {
487
+ if (e.status === BigInt(0))
488
+ throw new A("code couldn't be stored", e);
486
489
  const c = this.clone();
487
- return c.options.address = i.contractAddress, c;
490
+ return c.options.address = e.contractAddress, c;
488
491
  },
489
492
  contractAbi: this._jsonInterface,
490
493
  // TODO Should make this configurable by the user
491
494
  checkRevertBeforeSending: !1
492
495
  });
493
496
  }
494
- _contractMethodEstimateGas({ abi: t, params: n, returnFormat: s, options: r, contractOptions: e }) {
495
- return _(this, void 0, void 0, function* () {
497
+ _contractMethodEstimateGas({ abi: t, params: n, returnFormat: s, options: r, contractOptions: i }) {
498
+ return b(this, void 0, void 0, function* () {
496
499
  const o = lt({
497
500
  abi: t,
498
501
  params: n,
499
502
  options: Object.assign(Object.assign({}, r), { dataInputFill: this.config.contractDataInputFill }),
500
- contractOptions: e ?? this.options
503
+ contractOptions: i ?? this.options
501
504
  });
502
- return et(this, o, Q.LATEST, s);
505
+ return it(this, o, z.LATEST, s ?? this.defaultReturnFormat);
503
506
  });
504
507
  }
505
508
  // eslint-disable-next-line class-methods-use-this
506
- _createContractEvent(t, n = g) {
509
+ _createContractEvent(t, n = this.defaultReturnFormat) {
507
510
  return (...s) => {
508
511
  var r;
509
- const { topics: e, fromBlock: o } = H(this.options, t, s[0]), d = new q({
512
+ const { topics: i, fromBlock: o } = U(this.options, t, s[0]), d = new K({
510
513
  address: this.options.address,
511
- topics: e,
514
+ topics: i,
512
515
  abi: t,
513
516
  jsonInterface: this._jsonInterface
514
517
  }, {
@@ -516,8 +519,8 @@ class S extends P {
516
519
  subscriptionManager: this.subscriptionManager,
517
520
  returnFormat: n
518
521
  });
519
- return j(o) || this.getPastEvents(t.name, { fromBlock: o, topics: e }, n).then((a) => {
520
- a && a.forEach((i) => d.emit("data", i));
522
+ return I(o) || this.getPastEvents(t.name, { fromBlock: o, topics: i }, n).then((a) => {
523
+ a && a.forEach((e) => d.emit("data", e));
521
524
  }).catch((a) => {
522
525
  d.emit("error", new N("Failed to get past events.", a));
523
526
  }), (r = this.subscriptionManager) === null || r === void 0 || r.addSubscription(d).catch((a) => {
@@ -527,11 +530,11 @@ class S extends P {
527
530
  }
528
531
  subscribeToContextEvents(t) {
529
532
  const n = this;
530
- this.context = t, n.syncWithContext && t.on(W.CONFIG_CHANGE, (s) => {
533
+ this.context = t, n.syncWithContext && t.on(T.CONFIG_CHANGE, (s) => {
531
534
  n.setConfig({ [s.name]: s.newValue });
532
535
  });
533
536
  }
534
537
  }
535
538
  export {
536
- S as Contract
539
+ M as Contract
537
540
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const d=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const E=require("../../../web3-eth-abi/lib/esm/utils.cjs"),y=require("../../../web3-eth-abi/lib/esm/api/events_api.cjs"),A=require("../../../web3-eth-abi/lib/esm/api/functions_api.cjs"),l=require("../../../web3-eth-abi/lib/esm/api/parameters_api.cjs"),h=require("../../../web3-eth-abi/lib/esm/coders/encode.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const f=require("../../../web3-eth/lib/esm/schemas.cjs"),m=require("../../../web3-eth/lib/esm/constants.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");const p=require("../../../web3-utils/lib/esm/validation.cjs"),q=require("../../../web3-utils/lib/esm/formatter.cjs"),g=require("../../../web3-utils/lib/esm/hash.cjs"),B=({address:t},r,e)=>{var i,o;const a=e==null?void 0:e.topics,v=(i=e==null?void 0:e.filter)!==null&&i!==void 0?i:{},n={};if(p.isNullish(e==null?void 0:e.fromBlock)||(n.fromBlock=q.format(f.blockSchema.properties.number,e==null?void 0:e.fromBlock,{number:c.FMT_NUMBER.HEX,bytes:c.FMT_BYTES.HEX})),p.isNullish(e==null?void 0:e.toBlock)||(n.toBlock=q.format(f.blockSchema.properties.number,e==null?void 0:e.toBlock,{number:c.FMT_NUMBER.HEX,bytes:c.FMT_BYTES.HEX})),a&&Array.isArray(a))n.topics=[...a];else if(n.topics=[],r&&!r.anonymous&&![m.ALL_EVENTS,"allEvents"].includes(r.name)&&n.topics.push((o=r.signature)!==null&&o!==void 0?o:y.encodeEventSignature(E.jsonInterfaceMethodToString(r))),![m.ALL_EVENTS,"allEvents"].includes(r.name)&&r.inputs)for(const s of r.inputs){if(!s.indexed)continue;const u=v[s.name];if(!u){n.topics.push(null);continue}Array.isArray(u)?n.topics.push(u.map(_=>l.encodeParameter(s.type,_))):s.type==="string"?n.topics.push(g.keccak256Wrapper(u)):n.topics.push(l.encodeParameter(s.type,u))}return n.topics.length||delete n.topics,t&&(n.address=t.toLowerCase()),n},M=(t,r,e)=>{const i=Array.isArray(t.inputs)?t.inputs.length:0;if(t.inputs&&i!==r.length)throw new d.Web3ContractError(`The number of arguments is not matching the methods required number. You need to pass ${i} arguments.`);let o;if(t.inputs?o=h.encodeParameters(Array.isArray(t.inputs)?t.inputs:[],r).replace("0x",""):o=h.inferTypesAndEncodeParameters(r).replace("0x",""),E.isAbiConstructorFragment(t)){if(!e)throw new d.Web3ContractError("The contract has no contract data option set. This is necessary to append the constructor parameters.");return e.startsWith("0x")?`${e}${o}`:`0x${e}${o}`}return`${A.encodeFunctionSignature(t)}${o}`},T=(t,r,e=!0)=>{const i=e&&r&&r.length>=10&&r.startsWith("0x")?r.slice(10):r;if(!t.inputs)throw new d.Web3ContractError("No inputs found in the ABI");return l.decodeParameters([...t.inputs],i)},S=(t,r)=>{if(t.type==="constructor")return r;if(!r)return null;const e=r.length>=2?r.slice(2):r;if(!t.outputs)return null;const i=l.decodeParameters([...t.outputs],e);return i.__length__===1?i[0]:i};exports.decodeMethodParams=T;exports.decodeMethodReturn=S;exports.encodeEventABI=B;exports.encodeMethodABI=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const d=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const E=require("../../../web3-eth-abi/lib/esm/utils.cjs"),y=require("../../../web3-eth-abi/lib/esm/api/events_api.cjs"),A=require("../../../web3-eth-abi/lib/esm/api/functions_api.cjs"),l=require("../../../web3-eth-abi/lib/esm/api/parameters_api.cjs"),h=require("../../../web3-eth-abi/lib/esm/coders/encode.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const f=require("../../../web3-eth/lib/esm/schemas.cjs"),m=require("../../../web3-eth/lib/esm/constants.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs");require("../../../web3-eth/lib/esm/utils/try_send_transaction.cjs");require("../../../web3-eth/lib/esm/utils/send_tx_helper.cjs");const p=require("../../../web3-utils/lib/esm/validation.cjs"),q=require("../../../web3-utils/lib/esm/formatter.cjs"),g=require("../../../web3-utils/lib/esm/hash.cjs"),B=({address:t},r,e)=>{var i,o;const a=e==null?void 0:e.topics,v=(i=e==null?void 0:e.filter)!==null&&i!==void 0?i:{},n={};if(p.isNullish(e==null?void 0:e.fromBlock)||(n.fromBlock=q.format(f.blockSchema.properties.number,e==null?void 0:e.fromBlock,{number:c.FMT_NUMBER.HEX,bytes:c.FMT_BYTES.HEX})),p.isNullish(e==null?void 0:e.toBlock)||(n.toBlock=q.format(f.blockSchema.properties.number,e==null?void 0:e.toBlock,{number:c.FMT_NUMBER.HEX,bytes:c.FMT_BYTES.HEX})),a&&Array.isArray(a))n.topics=[...a];else if(n.topics=[],r&&!r.anonymous&&![m.ALL_EVENTS,"allEvents"].includes(r.name)&&n.topics.push((o=r.signature)!==null&&o!==void 0?o:y.encodeEventSignature(E.jsonInterfaceMethodToString(r))),![m.ALL_EVENTS,"allEvents"].includes(r.name)&&r.inputs)for(const u of r.inputs){if(!u.indexed)continue;const s=v[u.name];if(!s){n.topics.push(null);continue}Array.isArray(s)?n.topics.push(s.map(_=>l.encodeParameter(u.type,_))):u.type==="string"?n.topics.push(g.keccak256Wrapper(s)):n.topics.push(l.encodeParameter(u.type,s))}return n.topics.length||delete n.topics,t&&(n.address=t.toLowerCase()),n},M=(t,r,e)=>{const i=Array.isArray(t.inputs)?t.inputs.length:0;if(t.inputs&&i!==r.length)throw new d.Web3ContractError(`The number of arguments is not matching the methods required number. You need to pass ${i} arguments.`);let o;if(t.inputs?o=h.encodeParameters(Array.isArray(t.inputs)?t.inputs:[],r).replace("0x",""):o=h.inferTypesAndEncodeParameters(r).replace("0x",""),E.isAbiConstructorFragment(t)){if(!e)throw new d.Web3ContractError("The contract has no contract data option set. This is necessary to append the constructor parameters.");return e.startsWith("0x")?`${e}${o}`:`0x${e}${o}`}return`${A.encodeFunctionSignature(t)}${o}`},T=(t,r,e=!0)=>{const i=e&&r&&r.length>=10&&r.startsWith("0x")?r.slice(10):r;if(!t.inputs)throw new d.Web3ContractError("No inputs found in the ABI");return l.decodeParameters([...t.inputs],i)},S=(t,r)=>{if(t.type==="constructor")return r;if(!r)return null;const e=r.length>=2?r.slice(2):r;if(!t.outputs)return null;const i=l.decodeParameters([...t.outputs],e);return i.__length__===1?i[0]:i};exports.decodeMethodParams=T;exports.decodeMethodReturn=S;exports.encodeEventABI=B;exports.encodeMethodABI=M;
@@ -25,10 +25,13 @@ import "../../../web3-core/lib/esm/web3_batch_request.js";
25
25
  import "../../../web3-eth-iban/lib/esm/iban.js";
26
26
  import "../../../web3-core/lib/esm/web3_promi_event.js";
27
27
  import "../../../web3-eth/lib/esm/utils/transaction_builder.js";
28
+ import "../../../web3-eth/lib/esm/utils/wait_for_transaction_receipt.js";
29
+ import "../../../web3-eth/lib/esm/utils/try_send_transaction.js";
30
+ import "../../../web3-eth/lib/esm/utils/send_tx_helper.js";
28
31
  import { isNullish as a } from "../../../web3-utils/lib/esm/validation.js";
29
32
  import { format as v } from "../../../web3-utils/lib/esm/formatter.js";
30
33
  import { keccak256Wrapper as x } from "../../../web3-utils/lib/esm/hash.js";
31
- const or = ({ address: e }, t, r) => {
34
+ const sr = ({ address: e }, t, r) => {
32
35
  var i, n;
33
36
  const c = r == null ? void 0 : r.topics, y = (i = r == null ? void 0 : r.filter) !== null && i !== void 0 ? i : {}, o = {};
34
37
  if (a(r == null ? void 0 : r.fromBlock) || (o.fromBlock = v(d.properties.number, r == null ? void 0 : r.fromBlock, {
@@ -51,7 +54,7 @@ const or = ({ address: e }, t, r) => {
51
54
  Array.isArray(m) ? o.topics.push(m.map((A) => f(s.type, A))) : s.type === "string" ? o.topics.push(x(m)) : o.topics.push(f(s.type, m));
52
55
  }
53
56
  return o.topics.length || delete o.topics, e && (o.address = e.toLowerCase()), o;
54
- }, ir = (e, t, r) => {
57
+ }, mr = (e, t, r) => {
55
58
  const i = Array.isArray(e.inputs) ? e.inputs.length : 0;
56
59
  if (e.inputs && i !== t.length)
57
60
  throw new u(`The number of arguments is not matching the methods required number. You need to pass ${i} arguments.`);
@@ -62,12 +65,12 @@ const or = ({ address: e }, t, r) => {
62
65
  return r.startsWith("0x") ? `${r}${n}` : `0x${r}${n}`;
63
66
  }
64
67
  return `${T(e)}${n}`;
65
- }, nr = (e, t, r = !0) => {
68
+ }, cr = (e, t, r = !0) => {
66
69
  const i = r && t && t.length >= 10 && t.startsWith("0x") ? t.slice(10) : t;
67
70
  if (!e.inputs)
68
71
  throw new u("No inputs found in the ABI");
69
72
  return g([...e.inputs], i);
70
- }, sr = (e, t) => {
73
+ }, ur = (e, t) => {
71
74
  if (e.type === "constructor")
72
75
  return t;
73
76
  if (!t)
@@ -79,8 +82,8 @@ const or = ({ address: e }, t, r) => {
79
82
  return i.__length__ === 1 ? i[0] : i;
80
83
  };
81
84
  export {
82
- nr as decodeMethodParams,
83
- sr as decodeMethodReturn,
84
- or as encodeEventABI,
85
- ir as encodeMethodABI
85
+ cr as decodeMethodParams,
86
+ ur as decodeMethodReturn,
87
+ sr as encodeEventABI,
88
+ mr as encodeMethodABI
86
89
  };