@ozdao/prometheus-framework 0.1.63 → 0.1.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (675) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +1 -1
  2. package/dist/_virtual/_commonjsHelpers.js +5 -3
  3. package/dist/_virtual/browser-ponyfill.cjs +1 -0
  4. package/dist/_virtual/browser-ponyfill.js +4 -0
  5. package/dist/_virtual/crc32.cjs +1 -0
  6. package/dist/_virtual/crc32.js +4 -0
  7. package/dist/_virtual/events.cjs +1 -0
  8. package/dist/_virtual/events.js +4 -0
  9. package/dist/_virtual/index.cjs +1 -0
  10. package/dist/_virtual/index.js +4 -0
  11. package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -0
  12. package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +557 -0
  13. package/dist/node_modules/@ethereumjs/rlp/dist/index.cjs +1 -0
  14. package/dist/node_modules/@ethereumjs/rlp/dist/index.js +164 -0
  15. package/dist/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -0
  16. package/dist/node_modules/@noble/curves/esm/_shortw_utils.js +19 -0
  17. package/dist/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -0
  18. package/dist/node_modules/@noble/curves/esm/abstract/curve.js +88 -0
  19. package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -0
  20. package/dist/node_modules/@noble/curves/esm/abstract/modular.js +210 -0
  21. package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -0
  22. package/dist/node_modules/@noble/curves/esm/abstract/utils.js +178 -0
  23. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -0
  24. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +581 -0
  25. package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -0
  26. package/dist/node_modules/@noble/curves/esm/secp256k1.js +47 -0
  27. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
  28. package/dist/node_modules/@noble/hashes/esm/_assert.js +48 -0
  29. package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -0
  30. package/dist/node_modules/@noble/hashes/esm/_sha2.js +61 -0
  31. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -0
  32. package/dist/node_modules/@noble/hashes/esm/_u64.js +48 -0
  33. package/dist/node_modules/@noble/hashes/esm/crypto.cjs +1 -0
  34. package/dist/node_modules/@noble/hashes/esm/crypto.js +4 -0
  35. package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -0
  36. package/dist/node_modules/@noble/hashes/esm/hmac.js +43 -0
  37. package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -0
  38. package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +32 -0
  39. package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -0
  40. package/dist/node_modules/@noble/hashes/esm/scrypt.js +73 -0
  41. package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -0
  42. package/dist/node_modules/@noble/hashes/esm/sha256.js +120 -0
  43. package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -0
  44. package/dist/node_modules/@noble/hashes/esm/sha3.js +118 -0
  45. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -0
  46. package/dist/node_modules/@noble/hashes/esm/sha512.js +144 -0
  47. package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -0
  48. package/dist/node_modules/@noble/hashes/esm/utils.js +64 -0
  49. package/dist/node_modules/abitype/dist/chunk-NHABU752.cjs +1 -0
  50. package/dist/node_modules/abitype/dist/chunk-NHABU752.js +4 -0
  51. package/dist/node_modules/abitype/dist/chunk-WP7KDV47.cjs +1 -0
  52. package/dist/node_modules/abitype/dist/chunk-WP7KDV47.js +11 -0
  53. package/dist/node_modules/abitype/dist/index.cjs +2 -0
  54. package/dist/node_modules/abitype/dist/index.js +299 -0
  55. package/dist/node_modules/crc-32/crc32.cjs +1 -0
  56. package/dist/node_modules/crc-32/crc32.js +51 -0
  57. package/dist/node_modules/cross-fetch/dist/browser-ponyfill.cjs +2 -0
  58. package/dist/node_modules/cross-fetch/dist/browser-ponyfill.js +320 -0
  59. package/dist/node_modules/ethereum-cryptography/esm/aes.cjs +1 -0
  60. package/dist/node_modules/ethereum-cryptography/esm/aes.js +61 -0
  61. package/dist/node_modules/ethereum-cryptography/esm/keccak.cjs +1 -0
  62. package/dist/node_modules/ethereum-cryptography/esm/keccak.js +9 -0
  63. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.cjs +1 -0
  64. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.js +15 -0
  65. package/dist/node_modules/ethereum-cryptography/esm/random.cjs +1 -0
  66. package/dist/node_modules/ethereum-cryptography/esm/random.js +7 -0
  67. package/dist/node_modules/ethereum-cryptography/esm/scrypt.cjs +1 -0
  68. package/dist/node_modules/ethereum-cryptography/esm/scrypt.js +8 -0
  69. package/dist/node_modules/ethereum-cryptography/esm/secp256k1.cjs +1 -0
  70. package/dist/node_modules/ethereum-cryptography/esm/secp256k1.js +4 -0
  71. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -0
  72. package/dist/node_modules/ethereum-cryptography/esm/utils.js +35 -0
  73. package/dist/node_modules/events/events.cjs +1 -0
  74. package/dist/node_modules/events/events.js +229 -0
  75. package/dist/node_modules/isomorphic-ws/browser.cjs +1 -0
  76. package/dist/node_modules/isomorphic-ws/browser.js +6 -0
  77. package/dist/node_modules/setimmediate/setImmediate.cjs +1 -0
  78. package/dist/node_modules/setimmediate/setImmediate.js +99 -0
  79. package/dist/node_modules/web3/lib/esm/abi.cjs +1 -0
  80. package/dist/node_modules/web3/lib/esm/abi.js +24 -0
  81. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -0
  82. package/dist/node_modules/web3/lib/esm/accounts.js +101 -0
  83. package/dist/node_modules/web3/lib/esm/index.cjs +1 -0
  84. package/dist/node_modules/web3/lib/esm/index.js +76 -0
  85. package/dist/node_modules/web3/lib/esm/version.cjs +1 -0
  86. package/dist/node_modules/web3/lib/esm/version.js +4 -0
  87. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -0
  88. package/dist/node_modules/web3/lib/esm/web3.js +89 -0
  89. package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -0
  90. package/dist/node_modules/web3-core/lib/esm/utils.js +14 -0
  91. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -0
  92. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +83 -0
  93. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -0
  94. package/dist/node_modules/web3-core/lib/esm/web3_config.js +343 -0
  95. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -0
  96. package/dist/node_modules/web3-core/lib/esm/web3_context.js +227 -0
  97. package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.cjs +1 -0
  98. package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.js +39 -0
  99. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -0
  100. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +58 -0
  101. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -0
  102. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +240 -0
  103. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -0
  104. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +155 -0
  105. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -0
  106. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +111 -0
  107. package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -0
  108. package/dist/node_modules/web3-errors/lib/esm/error_codes.js +106 -0
  109. package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.cjs +1 -0
  110. package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +58 -0
  111. package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.cjs +1 -0
  112. package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.js +37 -0
  113. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -0
  114. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +49 -0
  115. package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.cjs +1 -0
  116. package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.js +16 -0
  117. package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.cjs +1 -0
  118. package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.js +16 -0
  119. package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.cjs +1 -0
  120. package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.js +49 -0
  121. package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.cjs +1 -0
  122. package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.js +28 -0
  123. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -0
  124. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +30 -0
  125. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.cjs +1 -0
  126. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.js +161 -0
  127. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs +1 -0
  128. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.js +129 -0
  129. package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.cjs +1 -0
  130. package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.js +13 -0
  131. package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.cjs +1 -0
  132. package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.js +10 -0
  133. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +5 -0
  134. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +256 -0
  135. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -0
  136. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +76 -0
  137. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -0
  138. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +28 -0
  139. package/dist/node_modules/web3-eth/lib/esm/constants.cjs +1 -0
  140. package/dist/node_modules/web3-eth/lib/esm/constants.js +14 -0
  141. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -0
  142. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +413 -0
  143. package/dist/node_modules/web3-eth/lib/esm/schemas.cjs +1 -0
  144. package/dist/node_modules/web3-eth/lib/esm/schemas.js +570 -0
  145. package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.cjs +1 -0
  146. package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.js +31 -0
  147. package/dist/node_modules/web3-eth/lib/esm/utils/decoding.cjs +1 -0
  148. package/dist/node_modules/web3-eth/lib/esm/utils/decoding.js +34 -0
  149. package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.cjs +1 -0
  150. package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.js +90 -0
  151. package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.cjs +1 -0
  152. package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.js +30 -0
  153. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -0
  154. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +77 -0
  155. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -0
  156. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +50 -0
  157. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -0
  158. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +79 -0
  159. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -0
  160. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +102 -0
  161. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -0
  162. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +109 -0
  163. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -0
  164. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +143 -0
  165. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -0
  166. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +131 -0
  167. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -0
  168. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +52 -0
  169. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -0
  170. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +61 -0
  171. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_pooling.cjs +1 -0
  172. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_pooling.js +51 -0
  173. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -0
  174. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +77 -0
  175. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -0
  176. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +42 -0
  177. package/dist/node_modules/web3-eth/lib/esm/validation.cjs +1 -0
  178. package/dist/node_modules/web3-eth/lib/esm/validation.js +111 -0
  179. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -0
  180. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +1512 -0
  181. package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.cjs +1 -0
  182. package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.js +65 -0
  183. package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.cjs +1 -0
  184. package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.js +13 -0
  185. package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.cjs +1 -0
  186. package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.js +13 -0
  187. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -0
  188. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +20 -0
  189. package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.cjs +1 -0
  190. package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.js +14 -0
  191. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -0
  192. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +22 -0
  193. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.cjs +1 -0
  194. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.js +47 -0
  195. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.cjs +1 -0
  196. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.js +72 -0
  197. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.cjs +1 -0
  198. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.js +37 -0
  199. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -0
  200. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +66 -0
  201. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -0
  202. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +59 -0
  203. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs +1 -0
  204. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.js +85 -0
  205. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.cjs +1 -0
  206. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.js +15 -0
  207. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.cjs +1 -0
  208. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.js +22 -0
  209. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.cjs +1 -0
  210. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.js +77 -0
  211. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.cjs +1 -0
  212. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.js +15 -0
  213. package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.cjs +1 -0
  214. package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.js +16 -0
  215. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -0
  216. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +23 -0
  217. package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.cjs +1 -0
  218. package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.js +58 -0
  219. package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.cjs +1 -0
  220. package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.js +18 -0
  221. package/dist/node_modules/web3-eth-abi/lib/esm/utils.cjs +1 -0
  222. package/dist/node_modules/web3-eth-abi/lib/esm/utils.js +39 -0
  223. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -0
  224. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +219 -0
  225. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.cjs +1 -0
  226. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.js +99 -0
  227. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.cjs +1 -0
  228. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.js +115 -0
  229. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.cjs +1 -0
  230. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.js +102 -0
  231. package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.cjs +1 -0
  232. package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.js +741 -0
  233. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.cjs +1 -0
  234. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.js +25 -0
  235. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.cjs +1 -0
  236. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.js +29 -0
  237. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.cjs +1 -0
  238. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.js +28 -0
  239. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.cjs +1 -0
  240. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.js +181 -0
  241. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.cjs +1 -0
  242. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.js +20 -0
  243. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.cjs +1 -0
  244. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.js +14 -0
  245. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.cjs +1 -0
  246. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.js +87 -0
  247. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.cjs +1 -0
  248. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.js +24 -0
  249. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.cjs +1 -0
  250. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.js +20 -0
  251. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.cjs +1 -0
  252. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.js +29 -0
  253. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.cjs +1 -0
  254. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.js +16 -0
  255. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.cjs +1 -0
  256. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.js +15 -0
  257. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.cjs +1 -0
  258. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.js +20 -0
  259. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.cjs +1 -0
  260. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.js +16 -0
  261. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.cjs +1 -0
  262. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.js +16 -0
  263. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.cjs +1 -0
  264. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.js +16 -0
  265. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.cjs +1 -0
  266. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.js +16 -0
  267. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.cjs +1 -0
  268. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.js +21 -0
  269. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.cjs +1 -0
  270. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.js +26 -0
  271. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.cjs +1 -0
  272. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.js +20 -0
  273. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.cjs +1 -0
  274. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.js +16 -0
  275. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.cjs +1 -0
  276. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.js +20 -0
  277. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.cjs +1 -0
  278. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.js +49 -0
  279. package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.cjs +1 -0
  280. package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.js +27 -0
  281. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.cjs +1 -0
  282. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.js +14 -0
  283. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.cjs +1 -0
  284. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.js +10 -0
  285. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.cjs +1 -0
  286. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.js +59 -0
  287. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.cjs +1 -0
  288. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.js +441 -0
  289. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.cjs +1 -0
  290. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.js +71 -0
  291. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.cjs +1 -0
  292. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.js +13 -0
  293. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.cjs +1 -0
  294. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.js +14 -0
  295. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.cjs +1 -0
  296. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.js +18 -0
  297. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.cjs +1 -0
  298. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.js +39 -0
  299. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.cjs +1 -0
  300. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.js +90 -0
  301. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.cjs +1 -0
  302. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.js +10 -0
  303. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.cjs +1 -0
  304. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.js +15 -0
  305. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.cjs +1 -0
  306. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.js +10 -0
  307. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.cjs +1 -0
  308. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.js +18 -0
  309. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.cjs +1 -0
  310. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.js +42 -0
  311. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.cjs +1 -0
  312. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.js +10 -0
  313. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.cjs +1 -0
  314. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.js +23 -0
  315. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.cjs +1 -0
  316. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.js +46 -0
  317. package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.cjs +1 -0
  318. package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.js +7 -0
  319. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -0
  320. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +277 -0
  321. package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.cjs +1 -0
  322. package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.js +25 -0
  323. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.cjs +1 -0
  324. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.js +57 -0
  325. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -0
  326. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +272 -0
  327. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs +1 -0
  328. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.js +11 -0
  329. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs +1 -0
  330. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.js +285 -0
  331. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs +1 -0
  332. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.js +268 -0
  333. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.cjs +1 -0
  334. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.js +256 -0
  335. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -0
  336. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +89 -0
  337. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.cjs +1 -0
  338. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.js +18 -0
  339. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.cjs +1 -0
  340. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.js +80 -0
  341. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -0
  342. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +361 -0
  343. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -0
  344. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +510 -0
  345. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -0
  346. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +80 -0
  347. package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -0
  348. package/dist/node_modules/web3-eth-contract/lib/esm/index.js +27 -0
  349. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -0
  350. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +36 -0
  351. package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -0
  352. package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +90 -0
  353. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.cjs +1 -0
  354. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.js +168 -0
  355. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.cjs +1 -0
  356. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.js +578 -0
  357. package/dist/node_modules/web3-eth-ens/lib/esm/config.cjs +1 -0
  358. package/dist/node_modules/web3-eth-ens/lib/esm/config.js +27 -0
  359. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -0
  360. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +241 -0
  361. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -0
  362. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +105 -0
  363. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -0
  364. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +95 -0
  365. package/dist/node_modules/web3-eth-ens/lib/esm/utils.cjs +1 -0
  366. package/dist/node_modules/web3-eth-ens/lib/esm/utils.js +19 -0
  367. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -0
  368. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +283 -0
  369. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -0
  370. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +265 -0
  371. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -0
  372. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +93 -0
  373. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -0
  374. package/dist/node_modules/web3-net/lib/esm/net.js +97 -0
  375. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -0
  376. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +51 -0
  377. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -0
  378. package/dist/node_modules/web3-providers-http/lib/esm/index.js +98 -0
  379. package/dist/node_modules/web3-providers-ws/lib/esm/index.cjs +1 -0
  380. package/dist/node_modules/web3-providers-ws/lib/esm/index.js +70 -0
  381. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -0
  382. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +407 -0
  383. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -0
  384. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +56 -0
  385. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -0
  386. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +84 -0
  387. package/dist/node_modules/web3-types/lib/esm/data_format_types.cjs +1 -0
  388. package/dist/node_modules/web3-types/lib/esm/data_format_types.js +15 -0
  389. package/dist/node_modules/web3-types/lib/esm/eth_types.cjs +1 -0
  390. package/dist/node_modules/web3-types/lib/esm/eth_types.js +12 -0
  391. package/dist/node_modules/web3-types/lib/esm/primitives_types.cjs +1 -0
  392. package/dist/node_modules/web3-types/lib/esm/primitives_types.js +4 -0
  393. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -0
  394. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +89 -0
  395. package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.cjs +1 -0
  396. package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.js +8 -0
  397. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -0
  398. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +37 -0
  399. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -0
  400. package/dist/node_modules/web3-utils/lib/esm/converters.js +177 -0
  401. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -0
  402. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +91 -0
  403. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -0
  404. package/dist/node_modules/web3-utils/lib/esm/formatter.js +134 -0
  405. package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -0
  406. package/dist/node_modules/web3-utils/lib/esm/hash.js +107 -0
  407. package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -0
  408. package/dist/node_modules/web3-utils/lib/esm/index.js +107 -0
  409. package/dist/node_modules/web3-utils/lib/esm/json_rpc.cjs +1 -0
  410. package/dist/node_modules/web3-utils/lib/esm/json_rpc.js +41 -0
  411. package/dist/node_modules/web3-utils/lib/esm/objects.cjs +1 -0
  412. package/dist/node_modules/web3-utils/lib/esm/objects.js +20 -0
  413. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -0
  414. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +104 -0
  415. package/dist/node_modules/web3-utils/lib/esm/random.cjs +1 -0
  416. package/dist/node_modules/web3-utils/lib/esm/random.js +7 -0
  417. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -0
  418. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +195 -0
  419. package/dist/node_modules/web3-utils/lib/esm/string_manipulation.cjs +1 -0
  420. package/dist/node_modules/web3-utils/lib/esm/string_manipulation.js +48 -0
  421. package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -0
  422. package/dist/node_modules/web3-utils/lib/esm/uint8array.js +21 -0
  423. package/dist/node_modules/web3-utils/lib/esm/uuid.cjs +1 -0
  424. package/dist/node_modules/web3-utils/lib/esm/uuid.js +17 -0
  425. package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -0
  426. package/dist/node_modules/web3-utils/lib/esm/validation.js +50 -0
  427. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -0
  428. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +114 -0
  429. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -0
  430. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +86 -0
  431. package/dist/node_modules/web3-validator/lib/esm/constants.cjs +1 -0
  432. package/dist/node_modules/web3-validator/lib/esm/constants.js +4 -0
  433. package/dist/node_modules/web3-validator/lib/esm/default_validator.cjs +1 -0
  434. package/dist/node_modules/web3-validator/lib/esm/default_validator.js +5 -0
  435. package/dist/node_modules/web3-validator/lib/esm/errors.cjs +3 -0
  436. package/dist/node_modules/web3-validator/lib/esm/errors.js +17 -0
  437. package/dist/node_modules/web3-validator/lib/esm/formats.cjs +1 -0
  438. package/dist/node_modules/web3-validator/lib/esm/formats.js +31 -0
  439. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -0
  440. package/dist/node_modules/web3-validator/lib/esm/utils.js +178 -0
  441. package/dist/node_modules/web3-validator/lib/esm/validation/abi.cjs +1 -0
  442. package/dist/node_modules/web3-validator/lib/esm/validation/abi.js +4 -0
  443. package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -0
  444. package/dist/node_modules/web3-validator/lib/esm/validation/address.js +22 -0
  445. package/dist/node_modules/web3-validator/lib/esm/validation/block.cjs +1 -0
  446. package/dist/node_modules/web3-validator/lib/esm/validation/block.js +10 -0
  447. package/dist/node_modules/web3-validator/lib/esm/validation/bloom.cjs +1 -0
  448. package/dist/node_modules/web3-validator/lib/esm/validation/bloom.js +29 -0
  449. package/dist/node_modules/web3-validator/lib/esm/validation/boolean.cjs +1 -0
  450. package/dist/node_modules/web3-validator/lib/esm/validation/boolean.js +5 -0
  451. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -0
  452. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +27 -0
  453. package/dist/node_modules/web3-validator/lib/esm/validation/filter.cjs +1 -0
  454. package/dist/node_modules/web3-validator/lib/esm/validation/filter.js +26 -0
  455. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -0
  456. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +52 -0
  457. package/dist/node_modules/web3-validator/lib/esm/validation/object.cjs +1 -0
  458. package/dist/node_modules/web3-validator/lib/esm/validation/object.js +13 -0
  459. package/dist/node_modules/web3-validator/lib/esm/validation/string.cjs +1 -0
  460. package/dist/node_modules/web3-validator/lib/esm/validation/string.js +23 -0
  461. package/dist/node_modules/web3-validator/lib/esm/validation/topic.cjs +1 -0
  462. package/dist/node_modules/web3-validator/lib/esm/validation/topic.js +6 -0
  463. package/dist/node_modules/web3-validator/lib/esm/validator.cjs +1 -0
  464. package/dist/node_modules/web3-validator/lib/esm/validator.js +84 -0
  465. package/dist/node_modules/web3-validator/lib/esm/web3_validator.cjs +1 -0
  466. package/dist/node_modules/web3-validator/lib/esm/web3_validator.js +31 -0
  467. package/dist/node_modules/zod/lib/index.cjs +1 -0
  468. package/dist/node_modules/zod/lib/index.js +2854 -0
  469. package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.cjs +3 -0
  470. package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.js +51 -0
  471. package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.cjs +1 -1
  472. package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.js +105 -79
  473. package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -1
  474. package/dist/prometheus-framework/node_modules/axios/lib/axios.js +41 -35
  475. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +1 -1
  476. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +57 -44
  477. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.cjs +1 -1
  478. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.js +8 -15
  479. package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.cjs +1 -1
  480. package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.js +3 -6
  481. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +1 -1
  482. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +101 -72
  483. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.cjs +1 -1
  484. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.js +19 -19
  485. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -0
  486. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +165 -0
  487. package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.cjs +1 -1
  488. package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.js +56 -22
  489. package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.cjs +1 -1
  490. package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.js +6 -6
  491. package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.cjs +1 -1
  492. package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.js +23 -38
  493. package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.cjs +1 -1
  494. package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.js +62 -58
  495. package/dist/prometheus-framework/node_modules/axios/lib/core/settle.cjs +1 -1
  496. package/dist/prometheus-framework/node_modules/axios/lib/core/settle.js +11 -18
  497. package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.cjs +1 -1
  498. package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.js +11 -9
  499. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
  500. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +49 -48
  501. package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.cjs +1 -1
  502. package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.js +2 -2
  503. package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
  504. package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +2 -7
  505. package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.cjs +1 -0
  506. package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  507. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -0
  508. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +72 -0
  509. package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.cjs +1 -1
  510. package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.js +4 -6
  511. package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.cjs +1 -1
  512. package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.js +13 -24
  513. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
  514. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +4 -4
  515. package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.cjs +1 -1
  516. package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.js +30 -40
  517. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -0
  518. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +30 -0
  519. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +1 -1
  520. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.js +3 -3
  521. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.cjs +1 -1
  522. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.js +4 -11
  523. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +1 -1
  524. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +34 -39
  525. package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.cjs +1 -1
  526. package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.js +2 -5
  527. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.cjs +2 -2
  528. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.js +28 -38
  529. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.cjs +1 -1
  530. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.js +4 -7
  531. package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.cjs +1 -0
  532. package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.js +19 -0
  533. package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.cjs +1 -1
  534. package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.js +5 -8
  535. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.cjs +1 -1
  536. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.js +79 -32
  537. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.cjs +1 -0
  538. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
  539. package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.cjs +1 -1
  540. package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.js +33 -31
  541. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.cjs +1 -0
  542. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  543. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.cjs +1 -0
  544. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  545. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.cjs +1 -0
  546. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  547. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.cjs +1 -0
  548. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.js +15 -0
  549. package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -0
  550. package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +7 -0
  551. package/dist/prometheus-framework/node_modules/axios/lib/platform/index.cjs +1 -0
  552. package/dist/prometheus-framework/node_modules/axios/lib/platform/index.js +9 -0
  553. package/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  554. package/dist/prometheus-framework/node_modules/axios/lib/utils.js +212 -140
  555. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  556. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
  557. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  558. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
  559. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  560. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
  561. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  562. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
  563. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  564. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  565. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  566. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  567. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  568. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  569. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  570. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +65 -67
  571. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  572. package/dist/prometheus-framework/src/modules/auth/store/auth.js +1 -1
  573. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  574. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  575. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  576. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  577. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  578. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  579. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  580. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  581. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  582. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  583. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  584. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  585. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  586. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  587. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  588. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -7
  589. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  590. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  591. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
  592. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -61
  593. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
  594. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +61 -2
  595. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  596. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  597. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  598. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  599. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  600. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  601. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  602. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  603. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  604. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  605. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  606. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  607. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  608. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  609. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  610. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  611. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  612. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  613. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  614. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  615. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  616. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  617. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  618. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  619. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  620. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  621. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  622. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  623. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  624. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  625. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  626. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  627. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  628. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  629. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  630. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  631. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  632. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  633. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  634. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  635. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
  636. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +30 -61
  637. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  638. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +20 -21
  639. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  640. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  641. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  642. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +28 -33
  643. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  644. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  645. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
  646. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
  647. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  648. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  649. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  650. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +6 -41
  651. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  652. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  653. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  654. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  655. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  656. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
  657. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  658. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  659. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  660. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  661. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  662. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  663. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  664. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  665. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  666. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +75 -33
  667. package/dist/prometheus-framework.cjs.js +29 -30
  668. package/dist/prometheus-framework.es.js +4123 -3405
  669. package/dist/style.css +1 -1
  670. package/package.json +3 -2
  671. package/src/modules/auth/components/pages/SignIn.vue +2 -2
  672. package/src/modules/payments/components/pages/Payments.vue +32 -34
  673. package/src/modules/products/components/blocks/CardLeftover.vue +1 -2
  674. package/src/modules/products/components/blocks/CardProduct.vue +1 -17
  675. package/src/modules/products/components/sections/EditProductInfo.vue +3 -5
@@ -1,51 +1,50 @@
1
- import { ref as p, inject as _, onMounted as k, resolveComponent as C, openBlock as x, createElementBlock as D, createElementVNode as i, createTextVNode as m, toDisplayString as r, unref as l, createVNode as s, withCtx as d, Transition as v, withDirectives as w, vShow as b } from "vue";
2
- import L from "../../../../components/Tab/Tab.vue2.js";
3
- import g from "../../../../components/Field/Field.vue2.js";
4
- import R from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import T from "../../../../components/Button/Button.vue2.js";
6
- import { useRoute as j, useRouter as A } from "vue-router";
7
- import { useI18n as N } from "vue-i18n";
8
- import { state as t, actions as F } from "../../store/auth.js";
9
- import { validateInputs as y, validatePhone as O, validateEmail as B } from "../../../middlewares/client/inputs.validation.js";
1
+ import { ref as p, inject as f, onMounted as U, resolveComponent as C, openBlock as k, createElementBlock as x, createElementVNode as i, createTextVNode as m, toDisplayString as r, unref as o, createVNode as s, withCtx as d, Transition as v, withDirectives as w, vShow as g } from "vue";
2
+ import D from "../../../../components/Tab/Tab.vue2.js";
3
+ import b from "../../../../components/Field/Field.vue2.js";
4
+ import L from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
+ import R from "../../../../components/Button/Button.vue2.js";
6
+ import { useRoute as T, useRouter as j } from "vue-router";
7
+ import { useI18n as A } from "vue-i18n";
8
+ import { state as t, actions as N } from "../../store/auth.js";
9
+ import { validateInputs as P, validatePhone as F, validateEmail as O } from "../../../middlewares/client/inputs.validation.js";
10
10
  import "./SignIn.vue2.js";
11
- import P from "./SignIn.vue3.js";
12
- const $ = { class: "" }, q = { class: "mn-medium" }, M = /* @__PURE__ */ i("br", null, null, -1), z = { class: "t-semi" }, G = { class: "mn-big" }, H = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, J = { class: "" }, K = { class: "mn-thin radius-small" }, Q = { class: "mn-thin radius-small o-hidden" }, W = { class: "w-100 mn-big" }, X = {
11
+ const B = { class: "" }, $ = { class: "mn-medium" }, q = /* @__PURE__ */ i("br", null, null, -1), M = { class: "t-semi" }, z = { class: "mn-big" }, G = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, H = { class: "" }, J = { class: "mn-thin radius-small" }, K = { class: "mn-thin radius-small o-hidden" }, Q = { class: "w-100 mn-big" }, ne = {
13
12
  __name: "SignIn",
14
- setup(Y) {
15
- const { t: o } = N({
13
+ setup(W) {
14
+ const { t: a } = A({
16
15
  inheritLocale: !0,
17
16
  useScope: "local"
18
- }), h = p(null), E = p(null), f = p(null);
19
- j();
20
- const S = A(), n = p("phone");
21
- _("APPLE_CLIENTID"), _("APPLE_REDIRECT_URL");
22
- const V = (c) => new Promise((a, u) => {
17
+ }), h = p(null), y = p(null), _ = p(null);
18
+ T();
19
+ const E = j(), n = p("phone");
20
+ f("APPLE_CLIENTID"), f("APPLE_REDIRECT_URL");
21
+ const S = (c) => new Promise((l, u) => {
23
22
  const e = document.createElement("script");
24
- e.type = "text/javascript", e.src = c, e.onload = a, e.onerror = u, document.head.appendChild(e);
23
+ e.type = "text/javascript", e.src = c, e.onload = l, e.onerror = u, document.head.appendChild(e);
25
24
  });
26
- k(async () => {
27
- await V("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
25
+ U(async () => {
26
+ await S("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
28
27
  });
29
- async function I() {
28
+ async function V() {
30
29
  try {
31
- n.value === "phone" && await y(
30
+ n.value === "phone" && await P(
32
31
  h,
33
- O,
32
+ F,
34
33
  t.user.phone,
35
34
  "Некорректный телефон"
36
- ), n.value === "email" && await y(
37
- f,
38
- B,
35
+ ), n.value === "email" && await P(
36
+ _,
37
+ O,
39
38
  t.user.email,
40
39
  "Некорректный email"
41
40
  );
42
41
  } catch {
43
42
  throw new Error();
44
43
  }
45
- t.user.phone = t.user.phone.number, await F.login(t.user, n.value);
44
+ t.user.phone = t.user.phone.number, await N.login(t.user, n.value);
46
45
  }
47
- function U() {
48
- S.push({
46
+ function I() {
47
+ E.push({
49
48
  name: "User Profile",
50
49
  params: {
51
50
  _id: t.user._id
@@ -53,42 +52,42 @@ const $ = { class: "" }, q = { class: "mn-medium" }, M = /* @__PURE__ */ i("br",
53
52
  query: { afterAuth: "true" }
54
53
  });
55
54
  }
56
- return (c, a) => {
55
+ return (c, l) => {
57
56
  const u = C("router-link");
58
- return x(), D("section", $, [
59
- i("h3", q, [
60
- m(r(l(o)("title")) + " ", 1),
61
- M,
62
- i("span", z, r(l(o)("subtitle")), 1)
57
+ return k(), x("section", B, [
58
+ i("h3", $, [
59
+ m(r(o(a)("title")) + " ", 1),
60
+ q,
61
+ i("span", M, r(o(a)("subtitle")), 1)
63
62
  ]),
64
- i("p", G, [
63
+ i("p", z, [
65
64
  s(u, {
66
65
  to: { name: "Sign Up" },
67
66
  class: "underline t-second"
68
67
  }, {
69
68
  default: d(() => [
70
- m(r(l(o)("signup")), 1)
69
+ m(r(o(a)("signup")), 1)
71
70
  ]),
72
71
  _: 1
73
72
  })
74
73
  ]),
75
- i("div", H, [
76
- s(L, {
74
+ i("div", G, [
75
+ s(D, {
77
76
  selected: n.value,
78
- "onUpdate:selected": a[0] || (a[0] = (e) => n.value = e),
77
+ "onUpdate:selected": l[0] || (l[0] = (e) => n.value = e),
79
78
  tabs: [
80
- { name: l(o)("phone"), value: "phone" },
81
- { name: l(o)("email"), value: "email" }
79
+ { name: o(a)("phone"), value: "phone" },
80
+ { name: o(a)("email"), value: "email" }
82
81
  ]
83
82
  }, null, 8, ["selected", "tabs"])
84
83
  ]),
85
- i("div", J, [
84
+ i("div", H, [
86
85
  s(v, { name: "slide-fade" }, {
87
86
  default: d(() => [
88
- w(i("div", K, [
89
- s(R, {
87
+ w(i("div", J, [
88
+ s(L, {
90
89
  modelValue: t.user.phone,
91
- "onUpdate:modelValue": a[1] || (a[1] = (e) => t.user.phone = e),
90
+ "onUpdate:modelValue": l[1] || (l[1] = (e) => t.user.phone = e),
92
91
  dropdownOptions: {
93
92
  showDialCodeInSelection: !0,
94
93
  showFlags: !0,
@@ -96,58 +95,58 @@ const $ = { class: "" }, q = { class: "mn-medium" }, M = /* @__PURE__ */ i("br",
96
95
  },
97
96
  validation: h.value,
98
97
  mode: "national",
99
- inputOptions: { placeholder: l(o)("phonePlaceholder") },
98
+ inputOptions: { placeholder: o(a)("phonePlaceholder") },
100
99
  class: "bg-grey pd-small radius-small mn-thin"
101
100
  }, null, 8, ["modelValue", "validation", "inputOptions"])
102
101
  ], 512), [
103
- [b, n.value === "phone"]
102
+ [g, n.value === "phone"]
104
103
  ])
105
104
  ]),
106
105
  _: 1
107
106
  }),
108
107
  s(v, { name: "slide-fade" }, {
109
108
  default: d(() => [
110
- w(i("div", Q, [
111
- s(g, {
109
+ w(i("div", K, [
110
+ s(b, {
112
111
  field: t.user.email,
113
- "onUpdate:field": a[2] || (a[2] = (e) => t.user.email = e),
114
- placeholder: l(o)("emailPlaceholder"),
115
- validation: f.value,
112
+ "onUpdate:field": l[2] || (l[2] = (e) => t.user.email = e),
113
+ placeholder: o(a)("emailPlaceholder"),
114
+ validation: _.value,
116
115
  class: "bg-grey pd-medium radius-small"
117
116
  }, null, 8, ["field", "placeholder", "validation"])
118
117
  ], 512), [
119
- [b, n.value === "email"]
118
+ [g, n.value === "email"]
120
119
  ])
121
120
  ]),
122
121
  _: 1
123
122
  })
124
123
  ]),
125
- s(g, {
124
+ s(b, {
126
125
  field: t.user.password,
127
- "onUpdate:field": a[3] || (a[3] = (e) => t.user.password = e),
126
+ "onUpdate:field": l[3] || (l[3] = (e) => t.user.password = e),
128
127
  type: "password",
129
- validation: E.value,
130
- placeholder: l(o)("passwordPlaceholder"),
128
+ validation: y.value,
129
+ placeholder: o(a)("passwordPlaceholder"),
131
130
  class: "bg-grey pd-medium radius-small mn-semi"
132
131
  }, null, 8, ["field", "validation", "placeholder"]),
133
- i("div", W, [
132
+ i("div", Q, [
134
133
  s(u, {
135
134
  to: "/auth/reset-password",
136
135
  class: "underline d-block t-blue"
137
136
  }, {
138
137
  default: d(() => [
139
- m(r(l(o)("forgotPassword")), 1)
138
+ m(r(o(a)("forgotPassword")), 1)
140
139
  ]),
141
140
  _: 1
142
141
  })
143
142
  ]),
144
- s(T, {
145
- submit: I,
146
- callback: U,
143
+ s(R, {
144
+ submit: V,
145
+ callback: I,
147
146
  class: "mn-thin"
148
147
  }, {
149
148
  default: d(() => [
150
- m(r(l(o)("signin")), 1)
149
+ m(r(o(a)("signin")), 1)
151
150
  ]),
152
151
  _: 1
153
152
  })
@@ -155,7 +154,6 @@ const $ = { class: "" }, q = { class: "mn-medium" }, M = /* @__PURE__ */ i("br",
155
154
  };
156
155
  }
157
156
  };
158
- typeof P == "function" && P(X);
159
157
  export {
160
- X as default
158
+ ne as default
161
159
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../../../../node_modules/axios/index.cjs"),p=require("../../../../../node_modules/js-cookie/src/js.cookie.cjs"),d=require("../../../../node_modules/@capacitor/core/dist/index.cjs"),l=require("vue"),n=require("../../globals/store/globals.cjs"),O=require("./twofa.cjs"),c=w.default.create({baseURL:process.env.API_URL,withCredentials:!0}),o=l.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1}}),f={async login(s,t){try{const e=await c.post("/api/auth/signin",{...s,type:t});return u("user",e.data),Object.assign(o.user,{...e.data}),Object.assign(o.access,{token:e.data.accessToken,status:!0,roles:e.data.roles}),e.data}catch(e){return Object.assign(o.access,{token:null,status:!1,roles:null}),n.setError(e),Promise.reject(e)}},async signup(s,t,e){const{password:i,passwordRepeat:r}=o.user;if(i!==r){const a={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw n.setError(a),new Error(a.response.status)}try{s.phone=s.phone.number;const a=await c.post("/api/auth/signup",{...s,type:t,inviteCode:e});return a.data.accessToken&&u("user",a.data),Object.assign(o.user,{...a.data}),Object.assign(o.access,{token:a.data.accessToken,status:!0,roles:a.data.roles}),a.data}catch(a){throw n.setError(a),console.log("Sign up falied"),a}},logout(){h("user"),Object.assign(o.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(o.access,{token:null,status:!1})},async resetPassword(s,t){try{const e=await c.post("/api/auth/reset-password",{email:s.email,phone:s.phone.number,type:t});return Object.assign(O.state.code,{...e.data,isSended:!0}),e.data}catch(e){return n.setError(e),Promise.reject(e)}},async updatePassword(s,t){const{password:e,passwordRepeat:i}=o.user;if(e!==i){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw n.setError(r),new Error(r.response.status)}try{const r=await c.post("/api/auth/update-password",{email:s.email,phone:s.phone.number,password:s.password,passwordRepeat:s.passwordRepeat,type:t});return r.data.accessToken&&u("user",r.data),Object.assign(o.user,{...r.data}),Object.assign(o.access,{token:r.data.accessToken,status:!0}),r.data}catch(r){return n.setError(r),Promise.reject(r)}}},g={development:{secure:!1,expires:1},production:{expires:1,domain:process.env.API_URL,sameSite:"none",secure:!0}};function u(s,t,e=process.env.NODE_ENV){process.env.MOBILE_APP?d.CapacitorCookies.setCookie({url:process.env.API_URL,key:s,value:JSON.stringify(t)}):p.default.set(s,JSON.stringify(t),g[e])}function h(s,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)d.CapacitorCookies.deleteCookie({url:process.env.API_URL,key:s});else{const e=t==="production"?{domain:process.env.API_URL}:{};p.default.remove(s,e)}}l.watch(o,(s,t)=>{});exports.actions=f;exports.state=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../../../../node_modules/axios/lib/axios.cjs"),p=require("../../../../../node_modules/js-cookie/src/js.cookie.cjs"),d=require("../../../../node_modules/@capacitor/core/dist/index.cjs"),l=require("vue"),n=require("../../globals/store/globals.cjs"),O=require("./twofa.cjs"),c=w.default.create({baseURL:process.env.API_URL,withCredentials:!0}),o=l.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1}}),f={async login(s,t){try{const e=await c.post("/api/auth/signin",{...s,type:t});return u("user",e.data),Object.assign(o.user,{...e.data}),Object.assign(o.access,{token:e.data.accessToken,status:!0,roles:e.data.roles}),e.data}catch(e){return Object.assign(o.access,{token:null,status:!1,roles:null}),n.setError(e),Promise.reject(e)}},async signup(s,t,e){const{password:i,passwordRepeat:r}=o.user;if(i!==r){const a={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw n.setError(a),new Error(a.response.status)}try{s.phone=s.phone.number;const a=await c.post("/api/auth/signup",{...s,type:t,inviteCode:e});return a.data.accessToken&&u("user",a.data),Object.assign(o.user,{...a.data}),Object.assign(o.access,{token:a.data.accessToken,status:!0,roles:a.data.roles}),a.data}catch(a){throw n.setError(a),console.log("Sign up falied"),a}},logout(){h("user"),Object.assign(o.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(o.access,{token:null,status:!1})},async resetPassword(s,t){try{const e=await c.post("/api/auth/reset-password",{email:s.email,phone:s.phone.number,type:t});return Object.assign(O.state.code,{...e.data,isSended:!0}),e.data}catch(e){return n.setError(e),Promise.reject(e)}},async updatePassword(s,t){const{password:e,passwordRepeat:i}=o.user;if(e!==i){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw n.setError(r),new Error(r.response.status)}try{const r=await c.post("/api/auth/update-password",{email:s.email,phone:s.phone.number,password:s.password,passwordRepeat:s.passwordRepeat,type:t});return r.data.accessToken&&u("user",r.data),Object.assign(o.user,{...r.data}),Object.assign(o.access,{token:r.data.accessToken,status:!0}),r.data}catch(r){return n.setError(r),Promise.reject(r)}}},g={development:{secure:!1,expires:1},production:{expires:1,domain:process.env.API_URL,sameSite:"none",secure:!0}};function u(s,t,e=process.env.NODE_ENV){process.env.MOBILE_APP?d.CapacitorCookies.setCookie({url:process.env.API_URL,key:s,value:JSON.stringify(t)}):p.default.set(s,JSON.stringify(t),g[e])}function h(s,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)d.CapacitorCookies.deleteCookie({url:process.env.API_URL,key:s});else{const e=t==="production"?{domain:process.env.API_URL}:{};p.default.remove(s,e)}}l.watch(o,(s,t)=>{});exports.actions=f;exports.state=o;
@@ -1,4 +1,4 @@
1
- import l from "../../../../node_modules/axios/index.js";
1
+ import l from "../../../../node_modules/axios/lib/axios.js";
2
2
  import u from "../../../../../node_modules/js-cookie/src/js.cookie.js";
3
3
  import { CapacitorCookies as d } from "../../../../node_modules/@capacitor/core/dist/index.js";
4
4
  import { reactive as m, watch as w } from "vue";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../node_modules/axios/index.cjs");require("../../../../../node_modules/js-cookie/src/js.cookie.cjs");const c=require("vue"),i=require("../../globals/store/globals.cjs"),s=require("./auth.cjs"),r=o.default.create({baseURL:process.env.API_URL,withCredentials:!0});r.defaults.withCredentials=!0;const a=c.reactive({invites:[],invite:null,error:null}),l={async read(t){await r.get(`/api/invites/${t}`).then(e=>{a.invites=e.data,a.error=null}).catch(e=>{i.setError(e)})},async readOne(t){await r.get(`/api/invites/get/${t}`).then(e=>{a.invite=e.data,s.state.user.phone=e.data.invitedPhone,s.state.user.email=e.data.invitedEmail}).catch(e=>{i.setError(e)})},async create(t,e){await r.post(`/api/invites/${t}/create`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async update(t,e){await r.put(`/api/invites/${t}/update`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async delete(t){await r.delete(`/api/invites/${t}/delete`).then(()=>{a.error=null}).catch(e=>{i.setError(e)})}};c.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/src/js.cookie.cjs");const c=require("vue"),i=require("../../globals/store/globals.cjs"),s=require("./auth.cjs"),r=o.default.create({baseURL:process.env.API_URL,withCredentials:!0});r.defaults.withCredentials=!0;const a=c.reactive({invites:[],invite:null,error:null}),l={async read(t){await r.get(`/api/invites/${t}`).then(e=>{a.invites=e.data,a.error=null}).catch(e=>{i.setError(e)})},async readOne(t){await r.get(`/api/invites/get/${t}`).then(e=>{a.invite=e.data,s.state.user.phone=e.data.invitedPhone,s.state.user.email=e.data.invitedEmail}).catch(e=>{i.setError(e)})},async create(t,e){await r.post(`/api/invites/${t}/create`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async update(t,e){await r.put(`/api/invites/${t}/update`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async delete(t){await r.delete(`/api/invites/${t}/delete`).then(()=>{a.error=null}).catch(e=>{i.setError(e)})}};c.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
@@ -1,4 +1,4 @@
1
- import c from "../../../../node_modules/axios/index.js";
1
+ import c from "../../../../node_modules/axios/lib/axios.js";
2
2
  import "../../../../../node_modules/js-cookie/src/js.cookie.js";
3
3
  import { reactive as o, watch as l } from "vue";
4
4
  import { setError as r } from "../../globals/store/globals.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../node_modules/axios/index.cjs");require("../../../../../node_modules/js-cookie/src/js.cookie.cjs");const s=require("vue"),d=require("../../globals/store/globals.cjs"),i=r.default.create({baseURL:process.env.API_URL,withCredentials:!0}),t=s.reactive({code:{value:"",type:"",method:"",isSended:!1,isValid:!1}});async function c(o,a,n){return await i.post("/api/twofa/sendcode",{phone:o.phone.number,email:o.email,method:a,type:n}).then(e=>(t.code=e.data,t.code.isSended=!0,Promise.resolve(e.data)),e=>(console.log(e),d.setError(e),Promise.reject(e)))}s.watch(t,(o,a)=>{});exports.sendCode=c;exports.state=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/src/js.cookie.cjs");const s=require("vue"),i=require("../../globals/store/globals.cjs"),d=n.default.create({baseURL:process.env.API_URL,withCredentials:!0}),t=s.reactive({code:{value:"",type:"",method:"",isSended:!1,isValid:!1}});async function c(o,a,r){return await d.post("/api/twofa/sendcode",{phone:o.phone.number,email:o.email,method:a,type:r}).then(e=>(t.code=e.data,t.code.isSended=!0,Promise.resolve(e.data)),e=>(console.log(e),i.setError(e),Promise.reject(e)))}s.watch(t,(o,a)=>{});exports.sendCode=c;exports.state=t;
@@ -1,4 +1,4 @@
1
- import r from "../../../../node_modules/axios/index.js";
1
+ import r from "../../../../node_modules/axios/lib/axios.js";
2
2
  import "../../../../../node_modules/js-cookie/src/js.cookie.js";
3
3
  import { reactive as s, watch as n } from "vue";
4
4
  import { setError as d } from "../../globals/store/globals.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue2.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;
@@ -1,6 +1,6 @@
1
1
  import { resolveComponent as f, openBlock as n, createElementBlock as m, createElementVNode as o, createVNode as i, normalizeClass as r, unref as t, createCommentVNode as g, withCtx as p, Transition as h, createBlock as w, resolveDynamicComponent as y } from "vue";
2
2
  import { useRoute as _, useRouter as k } from "vue-router";
3
- import b from "../../../../components/Select/Select.vue.js";
3
+ import b from "../../../../components/Select/Select.vue2.js";
4
4
  import { state as c } from "../../store/blogposts.js";
5
5
  import { state as v } from "../../../auth/store/auth.js";
6
6
  const x = { class: "min-h-100vh pd-thin" }, C = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, B = { class: "flex-v-center flex-nowrap flex t-left" }, $ = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), N = { class: "w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex" }, V = { class: "" }, D = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.vue.cjs"),V=require("../../../constructor/components/sections/Constructor.vue.cjs"),y=require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/FieldTags/tag-input.vue.cjs");require("../../../../components/FieldTags/vue-tags-input.scss.cjs");const B=require("../../../../components/FieldTags/BlockTags.vue.cjs"),N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/Button/Button.vue2.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),C=require("../../../organizations/store/organizations.cjs"),q={class:"pd-thin"},E={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},T={class:"w-full h-full"},z={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},O={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},$=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),D=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),M={key:0,class:"mn-thin"},S={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},U={__name:"CreateBlogPost",setup(A){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{if(s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await C.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});console.log(o),p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function h(){d.value=!0}function v(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",q,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",E,[e.createElementVNode("div",T,[e.createVNode(w.default,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(V.default,{content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",z,[e.createElementVNode("div",O,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>h()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:v,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[$,e.createVNode(B.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),D,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[5]||(a[5]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",M,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(N.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[6]||(a[6]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(x.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=U;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../constructor/components/elements/Textarea.vue2.cjs"),V=require("../../../constructor/components/sections/Constructor.vue.cjs"),y=require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/FieldTags/tag-input.vue.cjs");require("../../../../components/FieldTags/vue-tags-input.scss.cjs");const B=require("../../../../components/FieldTags/BlockTags.vue.cjs"),N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),x=require("../../../../components/Button/Button.vue2.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/store/auth.cjs"),C=require("../../../organizations/store/organizations.cjs"),q={class:"pd-thin"},E={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},T={class:"w-full h-full"},z={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},O={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},$=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),D=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),M={key:0,class:"mn-thin"},S={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},U={__name:"CreateBlogPost",setup(A){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{if(s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const o=await C.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});console.log(o),p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo}))});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function h(){d.value=!0}function v(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",q,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",E,[e.createElementVNode("div",T,[e.createVNode(w.default,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(V.default,{content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",z,[e.createElementVNode("div",O,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>h()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(y.default,{title:"Добавить участника",onClosePopup:v,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[$,e.createVNode(B.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags},null,8,["tags"]),D,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[5]||(a[5]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",M,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(N.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[6]||(a[6]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(x.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=U;
@@ -1,7 +1,7 @@
1
1
  import { ref as r, onMounted as V, computed as _, openBlock as u, createElementBlock as i, unref as a, createElementVNode as p, createVNode as n, createCommentVNode as m, withCtx as w, createTextVNode as z } from "vue";
2
- import D from "../../../constructor/components/elements/Textarea.vue.js";
2
+ import D from "../../../constructor/components/elements/Textarea.vue2.js";
3
3
  import N from "../../../constructor/components/sections/Constructor.vue.js";
4
- import O from "../../../../components/Popup/Popup.vue.js";
4
+ import O from "../../../../components/Popup/Popup.vue2.js";
5
5
  import "../../../../components/FieldTags/tag-input.vue.js";
6
6
  import "../../../../components/FieldTags/vue-tags-input.scss.js";
7
7
  import U from "../../../../components/FieldTags/BlockTags.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../../node_modules/axios/index.cjs"),d=require("../../../globals/components/blocks/CardHeader.vue.cjs"),p={class:"mn-small"},g=e.createElementVNode("p",{class:"t-semi uppercase"},"Please log in to leave a comment.",-1),v=[g],y={key:1,class:"mn-small"},b=["onSubmit"],w=e.createElementVNode("button",{type:"submit",class:"mn-l-auto bg-main button"},"Send",-1),h={class:"pd-t-zero"},k={class:"p-big"},_={__name:"Comments",props:["target","owner","type"],setup(s){const o=s,c=u.default.create({baseURL:process.env.API_URL}),a=e.ref([]),r=e.ref(""),i=async()=>{const{data:n}=await c.get(`/comments/read?type=${o.type}&target=${o.target}&user=${o.owner}`);a.value=n},m=async()=>{if(r.value)try{const n=await c.post("/comments/create",{target:o.target,user:o.owner,type:o.type,content:r.value});n.data.owner=o.owner,a.value.push(n.data),r.value=""}catch(n){console.error(n)}};return i(),(n,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",null,[e.createElementVNode("h3",p,e.toDisplayString(a.value.length)+" comments",1),s.owner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l[0]||(l[0]=t=>n.$router.push({name:"Sign In"})),class:"cursor-pointer mn-small section bg-black t-white flex-center flex radius-big"},v)),s.owner?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("form",{onSubmit:e.withModifiers(m,["prevent"]),class:"bg-grey radius-big pd-medium"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[1]||(l[1]=t=>r.value=t),placeholder:"Enter your comment",class:"pd-small p-big w-100 radius-small mn-r-small"},null,512),[[e.vModelText,r.value]]),w],40,b)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,t=>(e.openBlock(),e.createElementBlock("div",{key:t._id,class:"comment mn-small radius-big pd-medium bg-grey"},[e.createVNode(d.default,{class:"mn-medium",entity:t,entityType:"comment",user:s.owner,owner:{target:t.user},creator:{target:t.user},date:t.createdAt},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",h,[e.createElementVNode("p",k,e.toDisplayString(t.content),1)])]))),128))]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../../node_modules/axios/lib/axios.cjs"),d=require("../../../globals/components/blocks/CardHeader.vue.cjs"),p={class:"mn-small"},g=e.createElementVNode("p",{class:"t-semi uppercase"},"Please log in to leave a comment.",-1),v=[g],y={key:1,class:"mn-small"},b=["onSubmit"],w=e.createElementVNode("button",{type:"submit",class:"mn-l-auto bg-main button"},"Send",-1),h={class:"pd-t-zero"},k={class:"p-big"},_={__name:"Comments",props:["target","owner","type"],setup(s){const o=s,c=u.default.create({baseURL:process.env.API_URL}),a=e.ref([]),r=e.ref(""),i=async()=>{const{data:n}=await c.get(`/comments/read?type=${o.type}&target=${o.target}&user=${o.owner}`);a.value=n},m=async()=>{if(r.value)try{const n=await c.post("/comments/create",{target:o.target,user:o.owner,type:o.type,content:r.value});n.data.owner=o.owner,a.value.push(n.data),r.value=""}catch(n){console.error(n)}};return i(),(n,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",null,[e.createElementVNode("h3",p,e.toDisplayString(a.value.length)+" comments",1),s.owner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l[0]||(l[0]=t=>n.$router.push({name:"Sign In"})),class:"cursor-pointer mn-small section bg-black t-white flex-center flex radius-big"},v)),s.owner?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("form",{onSubmit:e.withModifiers(m,["prevent"]),class:"bg-grey radius-big pd-medium"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[1]||(l[1]=t=>r.value=t),placeholder:"Enter your comment",class:"pd-small p-big w-100 radius-small mn-r-small"},null,512),[[e.vModelText,r.value]]),w],40,b)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,t=>(e.openBlock(),e.createElementBlock("div",{key:t._id,class:"comment mn-small radius-big pd-medium bg-grey"},[e.createVNode(d.default,{class:"mn-medium",entity:t,entityType:"comment",user:s.owner,owner:{target:t.user},creator:{target:t.user},date:t.createdAt},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",h,[e.createElementVNode("p",k,e.toDisplayString(t.content),1)])]))),128))]))}};exports.default=_;
@@ -1,5 +1,5 @@
1
1
  import { ref as u, openBlock as r, createElementBlock as a, createElementVNode as s, toDisplayString as d, createCommentVNode as p, withModifiers as y, withDirectives as b, vModelText as w, Fragment as h, renderList as _, createVNode as f } from "vue";
2
- import k from "../../../../../node_modules/axios/index.js";
2
+ import k from "../../../../../node_modules/axios/lib/axios.js";
3
3
  import x from "../../../globals/components/blocks/CardHeader.vue.js";
4
4
  const $ = { class: "mn-small" }, C = /* @__PURE__ */ s("p", { class: "t-semi uppercase" }, "Please log in to leave a comment.", -1), S = [
5
5
  C
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/index.cjs"),u=require("vue"),s=require("../../globals/store/globals.cjs"),c=d.default.create({baseURL:process.env.API_URL,withCredentials:!0});c.defaults.withCredentials=!0;const a=u.reactive({all:[],filter:{tags:[],period:""},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",url:"",status:"",name:"",tags:[],owner:{},date:"",views:0,content:[]}});async function i(e={}){e.params=e.params||{},e.params.skip=e.skip||0,e.params.limit=e.limit||9,e.params.tags=e.tags||[],e.period&&(e.params.period=e.period),e.url&&(e.params={url:e.url}),e.category&&(e.params.category=e.category),e.owner&&(e.params.owner=e.owner),e.following&&(e.params.following=e.following),e.creator&&(e.params.creator=e.creator),e.status&&(e.params.status=e.status),e.user&&(e.params.user=e.user),e.params.skip=e.skip||0,e.params.limit=e.limit||10;try{console.log("Request params:"+e.params);const r=await c.get("/api/blog/read",{params:e.params});return e.url?t(r.data,"current"):t(r.data,"all"),Promise.resolve(r.data)}catch(r){return s.setError(r),Promise.reject(r)}}async function m(e){return c.post("/api/blog/create",e).then(r=>(t(r.data,"current"),Promise.resolve(r.data)),r=>(s.setError(r),Promise.reject(r)))}async function f(e){return c.post("/api/blog/update",e).then(r=>(t(r.data,"current"),Promise.resolve(r.data)),r=>(s.setError(r),Promise.reject(r)))}async function g(e){return await c.delete(`/api/blog/delete/${e}`).then(r=>{const l=a.all.findIndex(n=>n._id===e);return l!==-1&&a.all.splice(l,1),Promise.resolve(r.data)},r=>(s.setError(r),Promise.reject(r)))}function t(e,r){a[r]=e}function w(){a.current={_id:"",url:"",status:"",name:"",tags:[],author:"",owner:"",date:"",views:0,content:[]}}function y(e){const r={order:a.project.content.length+1,type:e.type,data:e.data,class:e.class,content:e.content};a.project.content.push(r)}u.watch(a,(e,r)=>{});exports.blockAdd=y;exports.clean=w;exports.create=m;exports.read=i;exports.remove=g;exports.set=t;exports.state=a;exports.update=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/lib/axios.cjs"),u=require("vue"),s=require("../../globals/store/globals.cjs"),c=d.default.create({baseURL:process.env.API_URL,withCredentials:!0});c.defaults.withCredentials=!0;const a=u.reactive({all:[],filter:{tags:[],period:""},pagination:{page:1,perPage:18},sort:{current:"popularity",ascending:!1},current:{_id:"",url:"",status:"",name:"",tags:[],owner:{},date:"",views:0,content:[]}});async function i(e={}){e.params=e.params||{},e.params.skip=e.skip||0,e.params.limit=e.limit||9,e.params.tags=e.tags||[],e.period&&(e.params.period=e.period),e.url&&(e.params={url:e.url}),e.category&&(e.params.category=e.category),e.owner&&(e.params.owner=e.owner),e.following&&(e.params.following=e.following),e.creator&&(e.params.creator=e.creator),e.status&&(e.params.status=e.status),e.user&&(e.params.user=e.user),e.params.skip=e.skip||0,e.params.limit=e.limit||10;try{console.log("Request params:"+e.params);const r=await c.get("/api/blog/read",{params:e.params});return e.url?t(r.data,"current"):t(r.data,"all"),Promise.resolve(r.data)}catch(r){return s.setError(r),Promise.reject(r)}}async function m(e){return c.post("/api/blog/create",e).then(r=>(t(r.data,"current"),Promise.resolve(r.data)),r=>(s.setError(r),Promise.reject(r)))}async function f(e){return c.post("/api/blog/update",e).then(r=>(t(r.data,"current"),Promise.resolve(r.data)),r=>(s.setError(r),Promise.reject(r)))}async function g(e){return await c.delete(`/api/blog/delete/${e}`).then(r=>{const l=a.all.findIndex(n=>n._id===e);return l!==-1&&a.all.splice(l,1),Promise.resolve(r.data)},r=>(s.setError(r),Promise.reject(r)))}function t(e,r){a[r]=e}function w(){a.current={_id:"",url:"",status:"",name:"",tags:[],author:"",owner:"",date:"",views:0,content:[]}}function y(e){const r={order:a.project.content.length+1,type:e.type,data:e.data,class:e.class,content:e.content};a.project.content.push(r)}u.watch(a,(e,r)=>{});exports.blockAdd=y;exports.clean=w;exports.create=m;exports.read=i;exports.remove=g;exports.set=t;exports.state=a;exports.update=f;
@@ -1,4 +1,4 @@
1
- import m from "../../../../node_modules/axios/index.js";
1
+ import m from "../../../../node_modules/axios/lib/axios.js";
2
2
  import { reactive as n, watch as d } from "vue";
3
3
  import { setError as s } from "../../globals/store/globals.js";
4
4
  const t = m.create({ baseURL: process.env.API_URL, withCredentials: !0 });
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../node_modules/axios/index.cjs"),c=require("vue"),n=require("../../globals/store/globals.cjs"),i=u.default.create({baseURL:process.env.API_URL,withCredentials:!0}),o=c.reactive({reactions:[],error:null}),d={async read({user:r,type:e,target:a,role:t}){try{const s=await i.get("/api/reactions",{params:{user:r,type:e,target:a,role:t}});return o.error=null,o.reactions=s.data,Promise.resolve(s.data)}catch(s){return n.setError(s),Promise.reject(s)}},async create(r){try{const e=await i.post("/api/reactions/create",r);return o.error=null,Promise.resolve(e.data)}catch(e){return console.log(e),n.setError(e),Promise.reject(e)}},async update(r){try{const e=await i.post("/api/reactions/update",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}},async delete(r){try{const e=await i.post("/api/reactions/delete",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}}},p={handleReactionUpdate(r,e,a){let t;if(Array.isArray(r)?t=r.find(s=>s._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t.hasReaction=a,a)t.reactions.push(e),t.numberOfReactions+=1;else{const s=t.reactions.findIndex(l=>l._id===e._id);s!==-1&&(t.reactions.splice(s,1),t.numberOfReactions-=1)}}};c.watch(o,r=>{});exports.actions=d;exports.mutations=p;exports.state=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../node_modules/axios/lib/axios.cjs"),c=require("vue"),n=require("../../globals/store/globals.cjs"),i=u.default.create({baseURL:process.env.API_URL,withCredentials:!0}),o=c.reactive({reactions:[],error:null}),d={async read({user:r,type:e,target:a,role:t}){try{const s=await i.get("/api/reactions",{params:{user:r,type:e,target:a,role:t}});return o.error=null,o.reactions=s.data,Promise.resolve(s.data)}catch(s){return n.setError(s),Promise.reject(s)}},async create(r){try{const e=await i.post("/api/reactions/create",r);return o.error=null,Promise.resolve(e.data)}catch(e){return console.log(e),n.setError(e),Promise.reject(e)}},async update(r){try{const e=await i.post("/api/reactions/update",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}},async delete(r){try{const e=await i.post("/api/reactions/delete",r);return o.error=null,Promise.resolve(e.data)}catch(e){return n.setError(e),Promise.reject(e)}}},p={handleReactionUpdate(r,e,a){let t;if(Array.isArray(r)?t=r.find(s=>s._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t.hasReaction=a,a)t.reactions.push(e),t.numberOfReactions+=1;else{const s=t.reactions.findIndex(l=>l._id===e._id);s!==-1&&(t.reactions.splice(s,1),t.numberOfReactions-=1)}}};c.watch(o,r=>{});exports.actions=d;exports.mutations=p;exports.state=o;
@@ -1,4 +1,4 @@
1
- import l from "../../../../node_modules/axios/index.js";
1
+ import l from "../../../../node_modules/axios/lib/axios.js";
2
2
  import { reactive as p, watch as u } from "vue";
3
3
  import { setError as n } from "../../globals/store/globals.js";
4
4
  const i = l.create({
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../../node_modules/axios/lib/axios.cjs");const r={class:"w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small"},o=["src"],c={__name:"Image",props:["label","value","prop"],setup(t){return e.ref(null),(l,a)=>(e.openBlock(),e.createElementBlock("div",r,[t.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:(l.FILE_SERVER_URL||"")+t.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,o)):e.createCommentVNode("",!0)]))}};exports.default=c;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o={class:"w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small"},r=["src"],c={__name:"Image",props:["label","value","prop"],setup(t){return e.ref(null),(l,a)=>(e.openBlock(),e.createElementBlock("div",o,[t.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:(l.FILE_SERVER_URL||"")+t.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,r)):e.createCommentVNode("",!0)]))}};exports.default=c;
@@ -1,6 +1,5 @@
1
- import { ref as l, openBlock as t, createElementBlock as a, createCommentVNode as r } from "vue";
2
- import "../../../../../node_modules/axios/lib/axios.js";
3
- const c = { class: "w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small" }, n = ["src"], p = {
1
+ import { ref as o, openBlock as t, createElementBlock as a, createCommentVNode as c } from "vue";
2
+ const n = { class: "w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small" }, r = ["src"], m = {
4
3
  __name: "Image",
5
4
  props: [
6
5
  "label",
@@ -8,16 +7,16 @@ const c = { class: "w-100 bg-white radius-big image-upload-area flex-v-center fl
8
7
  "prop"
9
8
  ],
10
9
  setup(e) {
11
- return l(null), (o, s) => (t(), a("div", c, [
10
+ return o(null), (l, s) => (t(), a("div", n, [
12
11
  e.prop.content ? (t(), a("img", {
13
12
  key: 0,
14
- src: (o.FILE_SERVER_URL || "") + e.prop.content,
13
+ src: (l.FILE_SERVER_URL || "") + e.prop.content,
15
14
  alt: "Uploaded image",
16
15
  class: "w-100 h-30r object-fit-contain"
17
- }, null, 8, n)) : r("", !0)
16
+ }, null, 8, r)) : c("", !0)
18
17
  ]));
19
18
  }
20
19
  };
21
20
  export {
22
- p as default
21
+ m as default
23
22
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../../node_modules/axios/index.cjs"),k=["src"],v={key:1,class:"t-transp pd-extra"},h={__name:"ImageUpload",props:["label","value","prop"],emits:["input","updateBlock"],setup(n,{emit:r}){const p=n,l=e.ref(null),i=e.ref(null);function u(){i.value.click()}async function s(t){let o=t.target.files[0];console.log(o);let a=new FormData,f="unsorted";a.append("file",o),console.log(a.has("file"));try{let m=await g.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(f)}`,a,{headers:{"Content-Type":"multipart/form-data"}});l.value=m.data.filepath,console.log(l.value),r("input",l.value),r("updateBlock",p.prop,{content:l.value})}catch(c){console.error(c)}}function d(t){t.preventDefault(),s({target:{files:t.dataTransfer.files}})}return(t,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:u,onDrop:d,onDragover:o[0]||(o[0]=e.withModifiers(()=>{},["prevent"])),class:"w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-small"},[n.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:(t.FILE_SERVER_URL||"")+n.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,k)):(e.openBlock(),e.createElementBlock("span",v,"Click or drag-and-drop your image")),e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:i,onChange:s,style:{display:"none"}},null,544)],32))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../../node_modules/axios/lib/axios.cjs"),k=["src"],v={key:1,class:"t-transp pd-extra"},h={__name:"ImageUpload",props:["label","value","prop"],emits:["input","updateBlock"],setup(n,{emit:r}){const p=n,l=e.ref(null),i=e.ref(null);function u(){i.value.click()}async function s(t){let o=t.target.files[0];console.log(o);let a=new FormData,f="unsorted";a.append("file",o),console.log(a.has("file"));try{let m=await g.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(f)}`,a,{headers:{"Content-Type":"multipart/form-data"}});l.value=m.data.filepath,console.log(l.value),r("input",l.value),r("updateBlock",p.prop,{content:l.value})}catch(c){console.error(c)}}function d(t){t.preventDefault(),s({target:{files:t.dataTransfer.files}})}return(t,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:u,onDrop:d,onDragover:o[0]||(o[0]=e.withModifiers(()=>{},["prevent"])),class:"w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-small"},[n.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:(t.FILE_SERVER_URL||"")+n.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,k)):(e.openBlock(),e.createElementBlock("span",v,"Click or drag-and-drop your image")),e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:i,onChange:s,style:{display:"none"}},null,544)],32))}};exports.default=h;
@@ -1,5 +1,5 @@
1
1
  import { ref as u, openBlock as l, createElementBlock as r, withModifiers as k, createElementVNode as v } from "vue";
2
- import y from "../../../../../node_modules/axios/index.js";
2
+ import y from "../../../../../node_modules/axios/lib/axios.js";
3
3
  const C = ["src"], x = {
4
4
  key: 1,
5
5
  class: "t-transp pd-extra"
@@ -1,4 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Textarea.vue2.cjs");const f=["placeholder"],k={__name:"Textarea",props:["prop","value","content","placeholder","index","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(l,{emit:c}){const t=l;e.ref(t);const o=e.ref(null);e.ref(0);function d(a){let n=a.target.value.split(/\n+/);if(n.length>1){t.prop[t.content]=n[0],e.nextTick(()=>{r()});let u=n.slice(1).map(p=>({__name:"Textarea",content:p}));c("addBlock","Textarea","",t.index,{blocks:u,ref:o})}else a.target.value.trim()===""&&a.target.value.includes(`
2
-
3
- `)&&(console.log("We are adding new block:"+t.index+newBlocks+o),c("addBlock","Textarea","",t.index,{blocks:newBlocks,ref:o})),r()}function i(a){(a.keyCode===8||a.keyCode===46)&&t.prop[t.content].trim()===""&&c("deleteBlock",t.prop)}function s(){e.nextTick(()=>{o.value.focus(),c("updateBlock",t.prop,{setFocus:!1})})}function r(){o.value.style.height="1rem",o.value.style.height=o.value.scrollHeight+"px"}return e.onUpdated(()=>{t.setFocus&&e.nextTick(()=>{s()}),r()}),e.onMounted(()=>{t.setFocus&&e.nextTick(()=>{s()}),r()}),(a,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=u=>l.prop[l.content]=u),placeholder:l.placeholder?l.placeholder:"Enter text",onInput:d,onFocus:n[1]||(n[1]=u=>c("focus",o.value)),onKeyup:i,ref_key:"textarea",ref:o,class:"text-area mn-thin"},`
4
- `,40,f),[[e.vModelText,l.prop[l.content]]])]))}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,63 +1,4 @@
1
- import { ref as d, onUpdated as k, nextTick as s, onMounted as x, openBlock as h, createElementBlock as B, withDirectives as m, createElementVNode as g, vModelText as v } from "vue";
2
- import "./Textarea.vue2.js";
3
- const y = ["placeholder"], F = {
4
- __name: "Textarea",
5
- props: ["prop", "value", "content", "placeholder", "index", "setFocus"],
6
- emits: ["deleteBlock", "updateBlock", "addBlock", "focus"],
7
- setup(l, { emit: a }) {
8
- const e = l;
9
- d(e);
10
- const t = d(null);
11
- d(0);
12
- function i(n) {
13
- let o = n.target.value.split(/\n+/);
14
- if (o.length > 1) {
15
- e.prop[e.content] = o[0], s(() => {
16
- c();
17
- });
18
- let r = o.slice(1).map((f) => ({ __name: "Textarea", content: f }));
19
- a("addBlock", "Textarea", "", e.index, { blocks: r, ref: t });
20
- } else
21
- n.target.value.trim() === "" && n.target.value.includes(`
22
-
23
- `) && (console.log("We are adding new block:" + e.index + newBlocks + t), a("addBlock", "Textarea", "", e.index, { blocks: newBlocks, ref: t })), c();
24
- }
25
- function p(n) {
26
- (n.keyCode === 8 || n.keyCode === 46) && e.prop[e.content].trim() === "" && a("deleteBlock", e.prop);
27
- }
28
- function u() {
29
- s(() => {
30
- t.value.focus(), a("updateBlock", e.prop, { setFocus: !1 });
31
- });
32
- }
33
- function c() {
34
- t.value.style.height = "1rem", t.value.style.height = t.value.scrollHeight + "px";
35
- }
36
- return k(() => {
37
- e.setFocus && s(() => {
38
- u();
39
- }), c();
40
- }), x(() => {
41
- e.setFocus && s(() => {
42
- u();
43
- }), c();
44
- }), (n, o) => (h(), B("div", null, [
45
- m(g("textarea", {
46
- "onUpdate:modelValue": o[0] || (o[0] = (r) => l.prop[l.content] = r),
47
- placeholder: l.placeholder ? l.placeholder : "Enter text",
48
- onInput: i,
49
- onFocus: o[1] || (o[1] = (r) => a("focus", t.value)),
50
- onKeyup: p,
51
- ref_key: "textarea",
52
- ref: t,
53
- class: "text-area mn-thin"
54
- }, `
55
- `, 40, y), [
56
- [v, l.prop[l.content]]
57
- ])
58
- ]));
59
- }
60
- };
1
+ const e = "";
61
2
  export {
62
- F as default
3
+ e as default
63
4
  };
@@ -1 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Textarea.vue.cjs");const f=["placeholder"],k={__name:"Textarea",props:["prop","value","content","placeholder","index","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(l,{emit:c}){const t=l;e.ref(t);const o=e.ref(null);e.ref(0);function d(a){let n=a.target.value.split(/\n+/);if(n.length>1){t.prop[t.content]=n[0],e.nextTick(()=>{r()});let u=n.slice(1).map(p=>({__name:"Textarea",content:p}));c("addBlock","Textarea","",t.index,{blocks:u,ref:o})}else a.target.value.trim()===""&&a.target.value.includes(`
2
+
3
+ `)&&(console.log("We are adding new block:"+t.index+newBlocks+o),c("addBlock","Textarea","",t.index,{blocks:newBlocks,ref:o})),r()}function i(a){(a.keyCode===8||a.keyCode===46)&&t.prop[t.content].trim()===""&&c("deleteBlock",t.prop)}function s(){e.nextTick(()=>{o.value.focus(),c("updateBlock",t.prop,{setFocus:!1})})}function r(){o.value.style.height="1rem",o.value.style.height=o.value.scrollHeight+"px"}return e.onUpdated(()=>{t.setFocus&&e.nextTick(()=>{s()}),r()}),e.onMounted(()=>{t.setFocus&&e.nextTick(()=>{s()}),r()}),(a,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=u=>l.prop[l.content]=u),placeholder:l.placeholder?l.placeholder:"Enter text",onInput:d,onFocus:n[1]||(n[1]=u=>c("focus",o.value)),onKeyup:i,ref_key:"textarea",ref:o,class:"text-area mn-thin"},`
4
+ `,40,f),[[e.vModelText,l.prop[l.content]]])]))}};exports.default=k;