@ozdao/prometheus-framework 0.2.46 → 0.2.47
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-AMWMdo3t.js +91 -0
- package/dist/main-R6dlNKp-.mjs +13606 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
- package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
- package/dist/node_modules/ethereum-cryptography/esm/utils.js +3 -4
- package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
- package/dist/node_modules/vue3-carousel/dist/carousel.css.js +1 -4
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +10 -10
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +110 -110
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +26 -26
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +20 -20
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +17 -17
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +39 -39
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
- package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +1 -63
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +20 -20
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -4
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +1 -4
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -4
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -72
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -4
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +1 -4
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -21
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +90 -80
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +7 -6
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +51 -62
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-HvAJWryM.js +1 -0
- package/dist/web-XMv5d7hK.mjs +55 -0
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +9 -7
- package/src/modules/products/components/blocks/CardPosition.vue +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +2 -3
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/pages/ProductEdit.vue +15 -0
- package/src/modules/products/components/pages/Products.vue +1 -0
- package/src/modules/products/components/sections/SectionProduct.vue +10 -10
- package/src/styles/base/all.scss +4 -1
@@ -5,31 +5,31 @@ import "../../../web3-types/lib/esm/data_format_types.js";
|
|
5
5
|
import "../../../web3-types/lib/esm/eth_types.js";
|
6
6
|
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
7
7
|
import { isNullish as a } from "../../../web3-validator/lib/esm/validation/object.js";
|
8
|
-
var
|
8
|
+
var l = function(n, o, t, e) {
|
9
9
|
function c(i) {
|
10
10
|
return i instanceof t ? i : new t(function(r) {
|
11
11
|
r(i);
|
12
12
|
});
|
13
13
|
}
|
14
14
|
return new (t || (t = Promise))(function(i, r) {
|
15
|
-
function
|
15
|
+
function f(u) {
|
16
16
|
try {
|
17
|
-
|
18
|
-
} catch (
|
19
|
-
r(
|
17
|
+
d(e.next(u));
|
18
|
+
} catch (s) {
|
19
|
+
r(s);
|
20
20
|
}
|
21
21
|
}
|
22
22
|
function m(u) {
|
23
23
|
try {
|
24
|
-
|
25
|
-
} catch (
|
26
|
-
r(
|
24
|
+
d(e.throw(u));
|
25
|
+
} catch (s) {
|
26
|
+
r(s);
|
27
27
|
}
|
28
28
|
}
|
29
|
-
function
|
30
|
-
u.done ? i(u.value) : c(u.value).then(
|
29
|
+
function d(u) {
|
30
|
+
u.done ? i(u.value) : c(u.value).then(f, m);
|
31
31
|
}
|
32
|
-
|
32
|
+
d((e = e.apply(n, o || [])).next());
|
33
33
|
});
|
34
34
|
};
|
35
35
|
function j(n) {
|
@@ -37,7 +37,7 @@ function j(n) {
|
|
37
37
|
typeof n.then == "function";
|
38
38
|
}
|
39
39
|
function p(n, o, t) {
|
40
|
-
return
|
40
|
+
return l(this, void 0, void 0, function* () {
|
41
41
|
let e;
|
42
42
|
const c = yield Promise.race([
|
43
43
|
n instanceof Promise ? n : n(),
|
@@ -55,12 +55,12 @@ function v(n, o) {
|
|
55
55
|
return [new Promise((c, i) => {
|
56
56
|
t = setInterval(
|
57
57
|
function r() {
|
58
|
-
return
|
58
|
+
return l(this, void 0, void 0, function* () {
|
59
59
|
try {
|
60
|
-
const
|
61
|
-
a(
|
62
|
-
} catch (
|
63
|
-
clearInterval(t), i(
|
60
|
+
const f = yield p(n, o);
|
61
|
+
a(f) || (clearInterval(t), c(f));
|
62
|
+
} catch (f) {
|
63
|
+
clearInterval(t), i(f);
|
64
64
|
}
|
65
65
|
}), r;
|
66
66
|
}(),
|
@@ -69,7 +69,7 @@ function v(n, o) {
|
|
69
69
|
}), t];
|
70
70
|
}
|
71
71
|
function x(n, o) {
|
72
|
-
return
|
72
|
+
return l(this, void 0, void 0, function* () {
|
73
73
|
return v(n, o)[0];
|
74
74
|
});
|
75
75
|
}
|
@@ -86,7 +86,7 @@ function R(n, o) {
|
|
86
86
|
let t;
|
87
87
|
const e = new Promise((c, i) => {
|
88
88
|
t = setInterval(() => {
|
89
|
-
|
89
|
+
l(this, void 0, void 0, function* () {
|
90
90
|
const r = yield n();
|
91
91
|
r && (clearInterval(t), i(r));
|
92
92
|
});
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../web3-errors/lib/esm/errors/connection_errors.cjs"),l=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../web3-errors/lib/esm/errors/connection_errors.cjs"),l=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const R=require("./web3_eip1193_provider.cjs"),v=require("./chunk_response_parser.cjs"),m=require("./validation.cjs"),g=require("./web3_deferred_promise.cjs"),c=require("./json_rpc.cjs");var p=function(f,e,t,s){function i(n){return n instanceof t?n:new t(function(u){u(n)})}return new(t||(t=Promise))(function(n,u){function h(r){try{_(s.next(r))}catch(a){u(a)}}function d(r){try{_(s.throw(r))}catch(a){u(a)}}function _(r){r.done?n(r.value):i(r.value).then(h,d)}_((s=s.apply(f,e||[])).next())})};const q={autoReconnect:!0,delay:5e3,maxAttempts:5},E=1e3;class Q extends R.Eip1193Provider{constructor(e,t,s){if(super(),this._connectionStatus="connecting",this._onMessageHandler=this._onMessage.bind(this),this._onOpenHandler=this._onConnect.bind(this),this._onCloseHandler=this._onCloseEvent.bind(this),this._onErrorHandler=this._onError.bind(this),!this._validateProviderPath(e))throw new l.InvalidClientError(e);this._socketPath=e,this._socketOptions=t,this._reconnectOptions=Object.assign(Object.assign({},q),s??{}),this._pendingRequestsQueue=new Map,this._sentRequestsQueue=new Map,this._init(),this.connect(),this.chunkResponseParser=new v.ChunkResponseParser(this._eventEmitter,this._reconnectOptions.autoReconnect),this.chunkResponseParser.onError(()=>{this._clearQueues()}),this.isReconnecting=!1}get SocketConnection(){return this._socketConnection}_init(){this._reconnectAttempts=0}connect(){try{this._openSocketConnection(),this._connectionStatus="connecting",this._addSocketListeners()}catch(e){if(this.isReconnecting)setImmediate(()=>{this._reconnect()});else throw this._connectionStatus="disconnected",e&&e.message?new o.ConnectionError(`Error while connecting to ${this._socketPath}. Reason: ${e.message}`):new l.InvalidClientError(this._socketPath)}}_validateProviderPath(e){return!!e}getPendingRequestQueueSize(){return this._pendingRequestsQueue.size}getSentRequestsQueueSize(){return this._sentRequestsQueue.size}supportsSubscriptions(){return!0}on(e,t){this._eventEmitter.on(e,t)}once(e,t){this._eventEmitter.once(e,t)}removeListener(e,t){this._eventEmitter.removeListener(e,t)}_onDisconnect(e,t){this._connectionStatus="disconnected",super._onDisconnect(e,t)}disconnect(e,t){const s=e??E;this._removeSocketListeners(),this.getStatus()!=="disconnected"&&this._closeSocketConnection(s,t),this._onDisconnect(s,t)}safeDisconnect(e,t,s=!1,i=1e3){return p(this,void 0,void 0,function*(){let n=0;yield p(this,void 0,void 0,function*(){return new Promise(h=>{const d=setInterval(()=>{s&&n===5&&this.clearQueues(),this.getPendingRequestQueueSize()===0&&this.getSentRequestsQueueSize()===0&&(clearInterval(d),h(!0)),n+=1},i)})}),this.disconnect(e,t)})}removeAllListeners(e){this._eventEmitter.removeAllListeners(e)}_onError(e){this.isReconnecting?this._reconnect():this._eventEmitter.emit("error",e)}reset(){this._sentRequestsQueue.clear(),this._pendingRequestsQueue.clear(),this._init(),this._removeSocketListeners(),this._addSocketListeners()}_reconnect(){this.isReconnecting||(this.isReconnecting=!0,this._sentRequestsQueue.size>0&&this._sentRequestsQueue.forEach((e,t)=>{e.deferredPromise.reject(new o.PendingRequestsOnReconnectingError),this._sentRequestsQueue.delete(t)}),this._reconnectAttempts<this._reconnectOptions.maxAttempts?(this._reconnectAttempts+=1,setTimeout(()=>{this._removeSocketListeners(),this.connect(),this.isReconnecting=!1},this._reconnectOptions.delay)):(this.isReconnecting=!1,this._clearQueues(),this._removeSocketListeners(),this._eventEmitter.emit("error",new o.MaxAttemptsReachedOnReconnectingError(this._reconnectOptions.maxAttempts))))}request(e){return p(this,void 0,void 0,function*(){if(m.isNullish(this._socketConnection))throw new Error("Connection is undefined");this.getStatus()==="disconnected"&&this.connect();const t=c.isBatchRequest(e)?e[0].id:e.id;if(!t)throw new l.Web3WSProviderError("Request Id not defined");if(this._sentRequestsQueue.has(t))throw new o.RequestAlreadySentError(t);const s=new g.Web3DeferredPromise;s.catch(n=>{this._eventEmitter.emit("error",n)});const i={payload:e,deferredPromise:s};if(this.getStatus()==="connecting")return this._pendingRequestsQueue.set(t,i),i.deferredPromise;this._sentRequestsQueue.set(t,i);try{this._sendToSocket(i.payload)}catch(n){this._sentRequestsQueue.delete(t),this._eventEmitter.emit("error",n)}return s})}_onConnect(){this._connectionStatus="connected",this._reconnectAttempts=0,super._onConnect(),this._sendPendingRequests()}_sendPendingRequests(){for(const[e,t]of this._pendingRequestsQueue.entries())this._sendToSocket(t.payload),this._pendingRequestsQueue.delete(e),this._sentRequestsQueue.set(e,t)}_onMessage(e){const t=this._parseResponses(e);if(!(m.isNullish(t)||t.length===0))for(const s of t){if(c.isResponseWithNotification(s)&&s.method.endsWith("_subscription")){this._eventEmitter.emit("message",s);return}const i=c.isBatchResponse(s)?s[0].id:s.id,n=this._sentRequestsQueue.get(i);if(!n)return;(c.isBatchResponse(s)||c.isResponseWithResult(s)||c.isResponseWithError(s))&&(this._eventEmitter.emit("message",s),n.deferredPromise.resolve(s)),this._sentRequestsQueue.delete(i)}}clearQueues(e){this._clearQueues(e)}_clearQueues(e){this._pendingRequestsQueue.size>0&&this._pendingRequestsQueue.forEach((t,s)=>{t.deferredPromise.reject(new o.ConnectionNotOpenError(e)),this._pendingRequestsQueue.delete(s)}),this._sentRequestsQueue.size>0&&this._sentRequestsQueue.forEach((t,s)=>{t.deferredPromise.reject(new o.ConnectionNotOpenError(e)),this._sentRequestsQueue.delete(s)}),this._removeSocketListeners()}}exports.SocketProvider=Q;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { ConnectionError as R, PendingRequestsOnReconnectingError as g, MaxAttemptsReachedOnReconnectingError as v, RequestAlreadySentError as q, ConnectionNotOpenError as m } from "../../../web3-errors/lib/esm/errors/connection_errors.js";
|
2
|
-
import { InvalidClientError as
|
2
|
+
import { InvalidClientError as f, Web3WSProviderError as Q } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
|
3
3
|
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
4
4
|
import { Eip1193Provider as E } from "./web3_eip1193_provider.js";
|
5
5
|
import { ChunkResponseParser as S } from "./chunk_response_parser.js";
|
6
|
-
import { isNullish as
|
6
|
+
import { isNullish as l } from "./validation.js";
|
7
7
|
import { Web3DeferredPromise as w } from "./web3_deferred_promise.js";
|
8
8
|
import { isBatchRequest as P, isResponseWithNotification as k, isBatchResponse as p, isResponseWithResult as C, isResponseWithError as O } from "./json_rpc.js";
|
9
|
-
var
|
9
|
+
var _ = function(a, e, t, s) {
|
10
10
|
function i(n) {
|
11
11
|
return n instanceof t ? n : new t(function(r) {
|
12
12
|
r(n);
|
@@ -16,15 +16,15 @@ var d = globalThis && globalThis.__awaiter || function(a, e, t, s) {
|
|
16
16
|
function c(o) {
|
17
17
|
try {
|
18
18
|
h(s.next(o));
|
19
|
-
} catch (
|
20
|
-
r(
|
19
|
+
} catch (d) {
|
20
|
+
r(d);
|
21
21
|
}
|
22
22
|
}
|
23
23
|
function u(o) {
|
24
24
|
try {
|
25
25
|
h(s.throw(o));
|
26
|
-
} catch (
|
27
|
-
r(
|
26
|
+
} catch (d) {
|
27
|
+
r(d);
|
28
28
|
}
|
29
29
|
}
|
30
30
|
function h(o) {
|
@@ -38,7 +38,7 @@ const A = {
|
|
38
38
|
delay: 5e3,
|
39
39
|
maxAttempts: 5
|
40
40
|
}, L = 1e3;
|
41
|
-
class
|
41
|
+
class W extends E {
|
42
42
|
/**
|
43
43
|
* This is an abstract class for implementing a socket provider (e.g. WebSocket, IPC). It extends the EIP-1193 provider {@link EIP1193Provider}.
|
44
44
|
* @param socketPath - The path to the socket (e.g. /ipc/path or ws://localhost:8546)
|
@@ -47,7 +47,7 @@ class M extends E {
|
|
47
47
|
*/
|
48
48
|
constructor(e, t, s) {
|
49
49
|
if (super(), this._connectionStatus = "connecting", this._onMessageHandler = this._onMessage.bind(this), this._onOpenHandler = this._onConnect.bind(this), this._onCloseHandler = this._onCloseEvent.bind(this), this._onErrorHandler = this._onError.bind(this), !this._validateProviderPath(e))
|
50
|
-
throw new
|
50
|
+
throw new f(e);
|
51
51
|
this._socketPath = e, this._socketOptions = t, this._reconnectOptions = Object.assign(Object.assign({}, A), s ?? {}), this._pendingRequestsQueue = /* @__PURE__ */ new Map(), this._sentRequestsQueue = /* @__PURE__ */ new Map(), this._init(), this.connect(), this.chunkResponseParser = new S(this._eventEmitter, this._reconnectOptions.autoReconnect), this.chunkResponseParser.onError(() => {
|
52
52
|
this._clearQueues();
|
53
53
|
}), this.isReconnecting = !1;
|
@@ -70,7 +70,7 @@ class M extends E {
|
|
70
70
|
this._reconnect();
|
71
71
|
});
|
72
72
|
else
|
73
|
-
throw this._connectionStatus = "disconnected", e && e.message ? new R(`Error while connecting to ${this._socketPath}. Reason: ${e.message}`) : new
|
73
|
+
throw this._connectionStatus = "disconnected", e && e.message ? new R(`Error while connecting to ${this._socketPath}. Reason: ${e.message}`) : new f(this._socketPath);
|
74
74
|
}
|
75
75
|
}
|
76
76
|
// eslint-disable-next-line class-methods-use-this
|
@@ -130,15 +130,15 @@ class M extends E {
|
|
130
130
|
* @param data - The data to be sent to the server
|
131
131
|
*/
|
132
132
|
safeDisconnect(e, t, s = !1, i = 1e3) {
|
133
|
-
return
|
133
|
+
return _(this, void 0, void 0, function* () {
|
134
134
|
let n = 0;
|
135
|
-
yield (
|
135
|
+
yield _(this, void 0, void 0, function* () {
|
136
136
|
return new Promise((c) => {
|
137
137
|
const u = setInterval(() => {
|
138
138
|
s && n === 5 && this.clearQueues(), this.getPendingRequestQueueSize() === 0 && this.getSentRequestsQueueSize() === 0 && (clearInterval(u), c(!0)), n += 1;
|
139
139
|
}, i);
|
140
140
|
});
|
141
|
-
})
|
141
|
+
}), this.disconnect(e, t);
|
142
142
|
});
|
143
143
|
}
|
144
144
|
/**
|
@@ -168,8 +168,8 @@ class M extends E {
|
|
168
168
|
* Creates a request object to be sent to the server
|
169
169
|
*/
|
170
170
|
request(e) {
|
171
|
-
return
|
172
|
-
if (
|
171
|
+
return _(this, void 0, void 0, function* () {
|
172
|
+
if (l(this._socketConnection))
|
173
173
|
throw new Error("Connection is undefined");
|
174
174
|
this.getStatus() === "disconnected" && this.connect();
|
175
175
|
const t = P(e) ? e[0].id : e.id;
|
@@ -205,7 +205,7 @@ class M extends E {
|
|
205
205
|
}
|
206
206
|
_onMessage(e) {
|
207
207
|
const t = this._parseResponses(e);
|
208
|
-
if (!(
|
208
|
+
if (!(l(t) || t.length === 0))
|
209
209
|
for (const s of t) {
|
210
210
|
if (k(s) && s.method.endsWith("_subscription")) {
|
211
211
|
this._eventEmitter.emit("message", s);
|
@@ -229,5 +229,5 @@ class M extends E {
|
|
229
229
|
}
|
230
230
|
}
|
231
231
|
export {
|
232
|
-
|
232
|
+
W as SocketProvider
|
233
233
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");var a=
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");var a=function(c,t,e,s){function n(i){return i instanceof e?i:new e(function(o){o(i)})}return new(e||(e=Promise))(function(i,o){function _(r){try{u(s.next(r))}catch(h){o(h)}}function d(r){try{u(s.throw(r))}catch(h){o(h)}}function u(r){r.done?i(r.value):n(r.value).then(_,d)}u((s=s.apply(c,t||[])).next())})},m;class l{constructor({timeout:t,eagerStart:e,timeoutMessage:s}={timeout:0,eagerStart:!1,timeoutMessage:"DeferredPromise timed out"}){this[m]="Promise",this._state="pending",this._promise=new Promise((n,i)=>{this._resolve=n,this._reject=i}),this._timeoutMessage=s,this._timeoutInterval=t,e&&this.startTimer()}get state(){return this._state}then(t,e){return a(this,void 0,void 0,function*(){return this._promise.then(t,e)})}catch(t){return a(this,void 0,void 0,function*(){return this._promise.catch(t)})}finally(t){return a(this,void 0,void 0,function*(){return this._promise.finally(t)})}resolve(t){this._resolve(t),this._state="fulfilled",this._clearTimeout()}reject(t){this._reject(t),this._state="rejected",this._clearTimeout()}startTimer(){this._timeoutInterval&&this._timeoutInterval>0&&(this._timeoutId=setTimeout(this._checkTimeout.bind(this),this._timeoutInterval))}_checkTimeout(){this._state==="pending"&&this._timeoutId&&this.reject(new f.OperationTimeoutError(this._timeoutMessage))}_clearTimeout(){this._timeoutId&&clearTimeout(this._timeoutId)}}m=Symbol.toStringTag;exports.Web3DeferredPromise=l;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { OperationTimeoutError as
|
1
|
+
import { OperationTimeoutError as d } from "../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
2
|
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
-
var a =
|
3
|
+
var a = function(m, t, e, r) {
|
4
4
|
function n(i) {
|
5
5
|
return i instanceof e ? i : new e(function(o) {
|
6
6
|
o(i);
|
@@ -14,7 +14,7 @@ var a = globalThis && globalThis.__awaiter || function(m, t, e, r) {
|
|
14
14
|
o(u);
|
15
15
|
}
|
16
16
|
}
|
17
|
-
function
|
17
|
+
function f(s) {
|
18
18
|
try {
|
19
19
|
h(r.throw(s));
|
20
20
|
} catch (u) {
|
@@ -22,7 +22,7 @@ var a = globalThis && globalThis.__awaiter || function(m, t, e, r) {
|
|
22
22
|
}
|
23
23
|
}
|
24
24
|
function h(s) {
|
25
|
-
s.done ? i(s.value) : n(s.value).then(_,
|
25
|
+
s.done ? i(s.value) : n(s.value).then(_, f);
|
26
26
|
}
|
27
27
|
h((r = r.apply(m, t || [])).next());
|
28
28
|
});
|
@@ -102,7 +102,7 @@ class p {
|
|
102
102
|
this._timeoutInterval && this._timeoutInterval > 0 && (this._timeoutId = setTimeout(this._checkTimeout.bind(this), this._timeoutInterval));
|
103
103
|
}
|
104
104
|
_checkTimeout() {
|
105
|
-
this._state === "pending" && this._timeoutId && this.reject(new
|
105
|
+
this._state === "pending" && this._timeoutId && this.reject(new d(this._timeoutMessage));
|
106
106
|
}
|
107
107
|
_clearTimeout() {
|
108
108
|
this._timeoutId && clearTimeout(this._timeoutId);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");const v=require("../../../web3-types/lib/esm/web3_base_provider.cjs"),m=require("../../../events/events.cjs"),f=require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs"),a=require("./json_rpc.cjs");var d=
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");const v=require("../../../web3-types/lib/esm/web3_base_provider.cjs"),m=require("../../../events/events.cjs"),f=require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs"),a=require("./json_rpc.cjs");var d=function(h,t,e,r){function u(i){return i instanceof e?i:new e(function(o){o(i)})}return new(e||(e=Promise))(function(i,o){function _(n){try{c(r.next(n))}catch(s){o(s)}}function l(n){try{c(r.throw(n))}catch(s){o(s)}}function c(n){n.done?i(n.value):u(n.value).then(_,l)}c((r=r.apply(h,t||[])).next())})};class p extends v.Web3BaseProvider{constructor(){super(...arguments),this._eventEmitter=new m.eventsExports.EventEmitter,this._chainId="",this._accounts=[]}_getChainId(){var t;return d(this,void 0,void 0,function*(){const e=yield this.request(a.toPayload({method:"eth_chainId",params:[]}));return(t=e==null?void 0:e.result)!==null&&t!==void 0?t:""})}_getAccounts(){var t;return d(this,void 0,void 0,function*(){const e=yield this.request(a.toPayload({method:"eth_accounts",params:[]}));return(t=e==null?void 0:e.result)!==null&&t!==void 0?t:[]})}_onConnect(){Promise.all([this._getChainId().then(t=>{t!==this._chainId&&(this._chainId=t,this._eventEmitter.emit("chainChanged",this._chainId))}).catch(t=>{console.error(t)}),this._getAccounts().then(t=>{this._accounts.length===t.length&&t.every(e=>t.includes(e))||(this._accounts=t,this._onAccountsChanged())}).catch(t=>{console.error(t)})]).then(()=>this._eventEmitter.emit("connect",{chainId:this._chainId})).catch(t=>{console.error(t)})}_onDisconnect(t,e){this._eventEmitter.emit("disconnect",new f.EIP1193ProviderRpcError(t,e))}_onAccountsChanged(){this._eventEmitter.emit("accountsChanged",this._accounts)}}exports.Eip1193Provider=p;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import "../../../web3-types/lib/esm/data_format_types.js";
|
2
2
|
import "../../../web3-types/lib/esm/eth_types.js";
|
3
|
-
import { Web3BaseProvider as
|
3
|
+
import { Web3BaseProvider as l } from "../../../web3-types/lib/esm/web3_base_provider.js";
|
4
4
|
import { e as v } from "../../../events/events.js";
|
5
5
|
import { EIP1193ProviderRpcError as f } from "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
6
6
|
import { toPayload as a } from "./json_rpc.js";
|
7
|
-
var d =
|
7
|
+
var d = function(h, t, e, o) {
|
8
8
|
function u(i) {
|
9
9
|
return i instanceof e ? i : new e(function(r) {
|
10
10
|
r(i);
|
@@ -18,7 +18,7 @@ var d = globalThis && globalThis.__awaiter || function(h, t, e, o) {
|
|
18
18
|
r(s);
|
19
19
|
}
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function m(n) {
|
22
22
|
try {
|
23
23
|
c(o.throw(n));
|
24
24
|
} catch (s) {
|
@@ -26,12 +26,12 @@ var d = globalThis && globalThis.__awaiter || function(h, t, e, o) {
|
|
26
26
|
}
|
27
27
|
}
|
28
28
|
function c(n) {
|
29
|
-
n.done ? i(n.value) : u(n.value).then(_,
|
29
|
+
n.done ? i(n.value) : u(n.value).then(_, m);
|
30
30
|
}
|
31
31
|
c((o = o.apply(h, t || [])).next());
|
32
32
|
});
|
33
33
|
};
|
34
|
-
class C extends
|
34
|
+
class C extends l {
|
35
35
|
constructor() {
|
36
36
|
super(...arguments), this._eventEmitter = new v.EventEmitter(), this._chainId = "", this._accounts = [];
|
37
37
|
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue");require("./Checkbox.vue2.cjs");const o=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),u={class:"flex-v-center flex-nowrap flex"},s={key:0,class:"mn-r-auto t-transp mn-r-small"},m=["name","value","checked"],y={__name:"Checkbox",props:{label:String,name:String,value:String,radio:{type:[Array,Boolean,Object],default:()=>[]}},emits:["update:radio"],setup(e,{emit:d}){const t=e,l=d,c=i=>{if(Array.isArray(t.radio)){let r=[...t.radio];if(i.target.checked)r.push(t.value);else{const n=r.indexOf(t.value);n!==-1&&r.splice(n,1)}l("update:radio",r)}else typeof t.radio=="boolean"&&l("update:radio",i.target.checked)};return(i,r)=>(a.openBlock(),a.createElementBlock("label",u,[e.label?(a.openBlock(),a.createElementBlock("div",s,[a.createElementVNode("span",null,a.toDisplayString(e.label),1)])):a.createCommentVNode("",!0),a.createElementVNode("input",{onChange:c,class:"round radiobutton",type:"checkbox",name:e.name,value:e.value,checked:Array.isArray(e.radio)?e.radio.includes(e.value):e.radio},null,40,m),a.createElementVNode("div",{class:a.normalizeClass(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra",{"bg-grey":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"bg-main":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},[a.createElementVNode("div",{class:a.normalizeClass(["transition-linear w-1r h-1r radius-extra h-100 bg-white",{"mn-r-auto":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"mn-l-auto":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},null,2)],2)]))}},h=o.default(y,[["__scopeId","data-v-ef88ec33"]]);exports.default=h;
|
@@ -1,4 +1,63 @@
|
|
1
|
-
|
1
|
+
import { openBlock as d, createElementBlock as o, createElementVNode as t, toDisplayString as m, createCommentVNode as h, normalizeClass as c } from "vue";
|
2
|
+
import "./Checkbox.vue2.js";
|
3
|
+
import y from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const f = { class: "flex-v-center flex-nowrap flex" }, v = {
|
5
|
+
key: 0,
|
6
|
+
class: "mn-r-auto t-transp mn-r-small"
|
7
|
+
}, x = ["name", "value", "checked"], b = {
|
8
|
+
__name: "Checkbox",
|
9
|
+
props: {
|
10
|
+
label: String,
|
11
|
+
name: String,
|
12
|
+
value: String,
|
13
|
+
radio: {
|
14
|
+
type: [Array, Boolean, Object],
|
15
|
+
default: () => []
|
16
|
+
}
|
17
|
+
},
|
18
|
+
emits: ["update:radio"],
|
19
|
+
setup(e, { emit: u }) {
|
20
|
+
const a = e, n = u, s = (r) => {
|
21
|
+
if (Array.isArray(a.radio)) {
|
22
|
+
let i = [...a.radio];
|
23
|
+
if (r.target.checked)
|
24
|
+
i.push(a.value);
|
25
|
+
else {
|
26
|
+
const l = i.indexOf(a.value);
|
27
|
+
l !== -1 && i.splice(l, 1);
|
28
|
+
}
|
29
|
+
n("update:radio", i);
|
30
|
+
} else
|
31
|
+
typeof a.radio == "boolean" && n("update:radio", r.target.checked);
|
32
|
+
};
|
33
|
+
return (r, i) => (d(), o("label", f, [
|
34
|
+
e.label ? (d(), o("div", v, [
|
35
|
+
t("span", null, m(e.label), 1)
|
36
|
+
])) : h("", !0),
|
37
|
+
t("input", {
|
38
|
+
onChange: s,
|
39
|
+
class: "round radiobutton",
|
40
|
+
type: "checkbox",
|
41
|
+
name: e.name,
|
42
|
+
value: e.value,
|
43
|
+
checked: Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
|
44
|
+
}, null, 40, x),
|
45
|
+
t("div", {
|
46
|
+
class: c(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra", {
|
47
|
+
"bg-grey": !(Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio),
|
48
|
+
"bg-main": Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
|
49
|
+
}])
|
50
|
+
}, [
|
51
|
+
t("div", {
|
52
|
+
class: c(["transition-linear w-1r h-1r radius-extra h-100 bg-white", {
|
53
|
+
"mn-r-auto": !(Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio),
|
54
|
+
"mn-l-auto": Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
|
55
|
+
}])
|
56
|
+
}, null, 2)
|
57
|
+
], 2)
|
58
|
+
]));
|
59
|
+
}
|
60
|
+
}, w = /* @__PURE__ */ y(b, [["__scopeId", "data-v-ef88ec33"]]);
|
2
61
|
export {
|
3
|
-
|
62
|
+
w as default
|
4
63
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,63 +1 @@
|
|
1
|
-
|
2
|
-
import "./Checkbox.vue.js";
|
3
|
-
import y from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const f = { class: "flex-v-center flex-nowrap flex" }, v = {
|
5
|
-
key: 0,
|
6
|
-
class: "mn-r-auto t-transp mn-r-small"
|
7
|
-
}, x = ["name", "value", "checked"], b = {
|
8
|
-
__name: "Checkbox",
|
9
|
-
props: {
|
10
|
-
label: String,
|
11
|
-
name: String,
|
12
|
-
value: String,
|
13
|
-
radio: {
|
14
|
-
type: [Array, Boolean, Object],
|
15
|
-
default: () => []
|
16
|
-
}
|
17
|
-
},
|
18
|
-
emits: ["update:radio"],
|
19
|
-
setup(e, { emit: u }) {
|
20
|
-
const a = e, n = u, s = (r) => {
|
21
|
-
if (Array.isArray(a.radio)) {
|
22
|
-
let i = [...a.radio];
|
23
|
-
if (r.target.checked)
|
24
|
-
i.push(a.value);
|
25
|
-
else {
|
26
|
-
const l = i.indexOf(a.value);
|
27
|
-
l !== -1 && i.splice(l, 1);
|
28
|
-
}
|
29
|
-
n("update:radio", i);
|
30
|
-
} else
|
31
|
-
typeof a.radio == "boolean" && n("update:radio", r.target.checked);
|
32
|
-
};
|
33
|
-
return (r, i) => (d(), o("label", f, [
|
34
|
-
e.label ? (d(), o("div", v, [
|
35
|
-
t("span", null, m(e.label), 1)
|
36
|
-
])) : h("", !0),
|
37
|
-
t("input", {
|
38
|
-
onChange: s,
|
39
|
-
class: "round radiobutton",
|
40
|
-
type: "checkbox",
|
41
|
-
name: e.name,
|
42
|
-
value: e.value,
|
43
|
-
checked: Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
|
44
|
-
}, null, 40, x),
|
45
|
-
t("div", {
|
46
|
-
class: c(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra", {
|
47
|
-
"bg-grey": !(Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio),
|
48
|
-
"bg-main": Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
|
49
|
-
}])
|
50
|
-
}, [
|
51
|
-
t("div", {
|
52
|
-
class: c(["transition-linear w-1r h-1r radius-extra h-100 bg-white", {
|
53
|
-
"mn-r-auto": !(Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio),
|
54
|
-
"mn-l-auto": Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
|
55
|
-
}])
|
56
|
-
}, null, 2)
|
57
|
-
], 2)
|
58
|
-
]));
|
59
|
-
}
|
60
|
-
}, w = /* @__PURE__ */ y(b, [["__scopeId", "data-v-ef88ec33"]]);
|
61
|
-
export {
|
62
|
-
w as default
|
63
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const f=require("../EmptyState/EmptyState.vue.cjs");require("vue-i18n");const v={__name:"Feed",props:{showLoadMore:{type:Boolean,default:!0},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},setup(i){const a=i,
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const f=require("../EmptyState/EmptyState.vue.cjs");require("vue-i18n");const v={__name:"Feed",props:{showLoadMore:{type:Boolean,default:!0},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},setup(i){const a=i,o=e.ref([]),l=e.ref(!1);let r=e.ref(!0),u=e.ref(a.options.skip?a.options.skip:0),n=e.ref(a.options.limit?a.options.limit:10);const d=async()=>{if(l.value){u.value+=n.value;const t=await a.store.read({skip:u.value,limit:n.value,...a.options});t.length===0||t.length<n.value?l.value=!1:l.value=!0,o.value=[...o.value,...t]}},c=async()=>{const t=await a.store.read({skip:u.value,limit:n.value,...a.options});t.length===0||t.length<n.value?l.value=!1:l.value=!0,console.log(t),o.value=t,r.value=!1};return e.watch(()=>a.options,(t,s)=>{(t.organization!==s.organization||t.categories!==s.categories||t.prices!==s.prices||t.delivery!==s.delivery)&&c()},{deep:!0}),e.onMounted(async()=>{await c()}),(t,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(r)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:0,tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[e.unref(r)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(n),m=>(e.openBlock(),e.createBlock(p.default,{key:m}))),128)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(r)&&o.value.length<1?(e.openBlock(),e.createBlock(f.default,{key:0,title:i.states.empty.title,description:i.states.empty.description,class:"pd-medium mn-b-thin bg-grey radius-big"},null,8,["title","description"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(r)&&o.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:o.value,user:t.user}):e.createCommentVNode("",!0),i.showLoadMore&&l.value&&o.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"col-w-100 w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:3},8,["class"])],64))}};exports.default=v;
|