@darkfrost-1107/scaff-z-react 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +5 -0
- package/README.md +75 -0
- package/dist/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/action-processor.d.ts +2 -0
- package/dist/app/config/sqlite.registry.cjs +1 -0
- package/dist/app/config/sqlite.registry.esm +37 -0
- package/dist/app.config.d.ts +1 -0
- package/dist/async-combobox.input.d.ts +4 -0
- package/dist/async-multi-select.input.d.ts +4 -0
- package/dist/async-select.input.d.ts +4 -0
- package/dist/audit-view.d.ts +2 -0
- package/dist/back-button.action.d.ts +6 -0
- package/dist/badge.d.ts +2 -0
- package/dist/base.connector.d.ts +4 -0
- package/dist/base.entity.d.ts +2 -0
- package/dist/base.node.d.ts +2 -0
- package/dist/base.service.d.ts +4 -0
- package/dist/breadcrumb.d.ts +2 -0
- package/dist/build.router.d.ts +4 -0
- package/dist/builder-device.guard.d.ts +2 -0
- package/dist/builder.d.ts +2 -0
- package/dist/button.d.ts +2 -0
- package/dist/calendar.d.ts +2 -0
- package/dist/canvas-view.layout.d.ts +2 -0
- package/dist/card.d.ts +2 -0
- package/dist/checkbox-inline.input.d.ts +4 -0
- package/dist/checkbox.d.ts +2 -0
- package/dist/checkbox.input.d.ts +4 -0
- package/dist/code.input.d.ts +4 -0
- package/dist/color.input.d.ts +4 -0
- package/dist/combobox.d.ts +2 -0
- package/dist/combobox.input.d.ts +4 -0
- package/dist/command.d.ts +2 -0
- package/dist/component.factory.d.ts +4 -0
- package/dist/component.guard.d.ts +2 -0
- package/dist/components.registry.d.ts +2 -0
- package/dist/context.guard.d.ts +2 -0
- package/dist/context.verifier.d.ts +2 -0
- package/dist/crypto.service.d.ts +2 -0
- package/dist/dark.style.d.ts +2 -0
- package/dist/data-table.component.d.ts +2 -0
- package/dist/data-table.provider.d.ts +1 -0
- package/dist/date.input.d.ts +2 -0
- package/dist/deckgl-overlay.d.ts +2 -0
- package/dist/detail-tabs.layout.d.ts +6 -0
- package/dist/detail-view.layout.d.ts +6 -0
- package/dist/device-artifact.guard.d.ts +2 -0
- package/dist/device.guard.d.ts +2 -0
- package/dist/device.verifier.registry.d.ts +2 -0
- package/dist/dialog.d.ts +2 -0
- package/dist/dnd.provider.d.ts +2 -0
- package/dist/draggeable.d.ts +2 -0
- package/dist/droppable.d.ts +2 -0
- package/dist/droppeable.d.ts +2 -0
- package/dist/dynamic-device.guard.d.ts +2 -0
- package/dist/dynamic-icon.d.ts +6 -0
- package/dist/email.input.d.ts +4 -0
- package/dist/enum.verifier.d.ts +2 -0
- package/dist/env.manager.d.ts +2 -0
- package/dist/feedback.layout.d.ts +2 -0
- package/dist/field.d.ts +2 -0
- package/dist/file.input.d.ts +4 -0
- package/dist/flow-canvas.d.ts +2 -0
- package/dist/flow.renderer.d.ts +2 -0
- package/dist/flow.types.d.ts +1 -0
- package/dist/form-dialog-layout.d.ts +4 -0
- package/dist/form-tab-layout.d.ts +4 -0
- package/dist/form.component.d.ts +2 -0
- package/dist/grid.layout.d.ts +2 -0
- package/dist/guard.d.ts +2 -0
- package/dist/hover.d.ts +2 -0
- package/dist/icon-box.d.ts +2 -0
- package/dist/icon-button.d.ts +2 -0
- package/dist/image.input.d.ts +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/indexeddb.service.d.ts +6 -0
- package/dist/input-group.d.ts +2 -0
- package/dist/input.d.ts +2 -0
- package/dist/interceptor.builder.d.ts +2 -0
- package/dist/label.d.ts +2 -0
- package/dist/language-toggle.d.ts +2 -0
- package/dist/list-select.input.d.ts +4 -0
- package/dist/logger.d.ts +2 -0
- package/dist/main.connector.d.ts +2 -0
- package/dist/main.service.d.ts +6 -0
- package/dist/maps.renderer.d.ts +4 -0
- package/dist/marker.factory.d.ts +2 -0
- package/dist/marker.guard.d.ts +2 -0
- package/dist/markers.meta.d.ts +1 -0
- package/dist/modules/actions/entities/action.entity.cjs +1 -0
- package/dist/modules/actions/entities/action.entity.esm +139 -0
- package/dist/modules/artifacts/entities/artifact.entity.cjs +1 -0
- package/dist/modules/artifacts/entities/artifact.entity.esm +82 -0
- package/dist/modules/integrations/entities/integration.entity.cjs +1 -0
- package/dist/modules/integrations/entities/integration.entity.esm +75 -0
- package/dist/modules/inventory/entities/category.entity.cjs +1 -0
- package/dist/modules/inventory/entities/category.entity.esm +50 -0
- package/dist/modules/inventory/entities/inventory-item.entity.cjs +1 -0
- package/dist/modules/inventory/entities/inventory-item.entity.esm +68 -0
- package/dist/modules/inventory/entities/product-item.entity.cjs +1 -0
- package/dist/modules/inventory/entities/product-item.entity.esm +69 -0
- package/dist/modules/inventory/entities/zone.entity.cjs +1 -0
- package/dist/modules/inventory/entities/zone.entity.esm +50 -0
- package/dist/modules/memberships/entities/membership.entity.cjs +1 -0
- package/dist/modules/memberships/entities/membership.entity.esm +53 -0
- package/dist/modules/organizations/entities/organization.entity.cjs +1 -0
- package/dist/modules/organizations/entities/organization.entity.esm +75 -0
- package/dist/modules/projects/entities/project.entity.cjs +1 -0
- package/dist/modules/projects/entities/project.entity.esm +100 -0
- package/dist/modules/test/entities/experiment.entity.cjs +1 -0
- package/dist/modules/test/entities/experiment.entity.esm +71 -0
- package/dist/modules/tickets/entities/ticket.entity.cjs +1 -0
- package/dist/modules/tickets/entities/ticket.entity.esm +92 -0
- package/dist/modules/tools/entities/tool.entity.cjs +1 -0
- package/dist/modules/tools/entities/tool.entity.esm +129 -0
- package/dist/modules/users/entities/user-role.enum.cjs +1 -0
- package/dist/modules/users/entities/user-role.enum.esm +6 -0
- package/dist/modules/users/entities/user.entity.cjs +1 -0
- package/dist/modules/users/entities/user.entity.esm +88 -0
- package/dist/nfc.service.d.ts +6 -0
- package/dist/nosql.repo.d.ts +2 -0
- package/dist/nosql.repo.service.d.ts +4 -0
- package/dist/packages/capacitor/app.config.cjs +1 -0
- package/dist/packages/capacitor/app.config.d.ts +1 -0
- package/dist/packages/capacitor/app.config.esm +7 -0
- package/dist/packages/crypto/crypto.service.cjs +1 -0
- package/dist/packages/crypto/crypto.service.d.ts +6 -0
- package/dist/packages/crypto/crypto.service.esm +17 -0
- package/dist/packages/crypto/index.cjs +1 -0
- package/dist/packages/crypto/index.d.ts +1 -0
- package/dist/packages/crypto/index.esm +2 -0
- package/dist/packages/dnd/dnd.provider.cjs +1 -0
- package/dist/packages/dnd/dnd.provider.d.ts +3 -0
- package/dist/packages/dnd/dnd.provider.esm +8 -0
- package/dist/packages/dnd/draggeable.cjs +1 -0
- package/dist/packages/dnd/draggeable.d.ts +4 -0
- package/dist/packages/dnd/draggeable.esm +12 -0
- package/dist/packages/dnd/droppable.cjs +1 -0
- package/dist/packages/dnd/droppable.d.ts +8 -0
- package/dist/packages/dnd/droppable.esm +14 -0
- package/dist/packages/dnd/droppeable.cjs +1 -0
- package/dist/packages/dnd/droppeable.d.ts +5 -0
- package/dist/packages/dnd/droppeable.esm +13 -0
- package/dist/packages/dnd/sortable.cjs +1 -0
- package/dist/packages/dnd/sortable.d.ts +11 -0
- package/dist/packages/dnd/sortable.esm +18 -0
- package/dist/packages/env/env.manager.cjs +1 -0
- package/dist/packages/env/env.manager.d.ts +11 -0
- package/dist/packages/env/env.manager.esm +69 -0
- package/dist/packages/env/index.cjs +1 -0
- package/dist/packages/env/index.d.ts +1 -0
- package/dist/packages/env/index.esm +2 -0
- package/dist/packages/flow/flow.renderer.cjs +1 -0
- package/dist/packages/flow/flow.renderer.d.ts +13 -0
- package/dist/packages/flow/flow.renderer.esm +50 -0
- package/dist/packages/flow/flow.types.cjs +0 -0
- package/dist/packages/flow/flow.types.d.ts +30 -0
- package/dist/packages/flow/flow.types.esm +0 -0
- package/dist/packages/formatters/qr-code/qr.encoder.service.cjs +1 -0
- package/dist/packages/formatters/qr-code/qr.encoder.service.d.ts +5 -0
- package/dist/packages/formatters/qr-code/qr.encoder.service.esm +17 -0
- package/dist/packages/formatters/qr-code/qr.renderer.cjs +1 -0
- package/dist/packages/formatters/qr-code/qr.renderer.d.ts +3 -0
- package/dist/packages/formatters/qr-code/qr.renderer.esm +16 -0
- package/dist/packages/formatters/text-code/text-coder.service.cjs +1 -0
- package/dist/packages/formatters/text-code/text-coder.service.d.ts +9 -0
- package/dist/packages/formatters/text-code/text-coder.service.esm +36 -0
- package/dist/packages/i18n/index.cjs +1 -0
- package/dist/packages/i18n/index.d.ts +10 -0
- package/dist/packages/i18n/index.esm +18 -0
- package/dist/packages/i18n/language-toggle.cjs +1 -0
- package/dist/packages/i18n/language-toggle.d.ts +9 -0
- package/dist/packages/i18n/language-toggle.esm +73 -0
- package/dist/packages/indexeddb/builder.cjs +1 -0
- package/dist/packages/indexeddb/builder.d.ts +13 -0
- package/dist/packages/indexeddb/builder.esm +35 -0
- package/dist/packages/indexeddb/index.cjs +1 -0
- package/dist/packages/indexeddb/index.d.ts +5 -0
- package/dist/packages/indexeddb/index.esm +5 -0
- package/dist/packages/indexeddb/indexeddb.service.cjs +1 -0
- package/dist/packages/indexeddb/indexeddb.service.d.ts +21 -0
- package/dist/packages/indexeddb/indexeddb.service.esm +59 -0
- package/dist/packages/indexeddb/nosql.repo.cjs +1 -0
- package/dist/packages/indexeddb/nosql.repo.d.ts +33 -0
- package/dist/packages/indexeddb/nosql.repo.esm +69 -0
- package/dist/packages/indexeddb/nosql.repo.service.cjs +1 -0
- package/dist/packages/indexeddb/nosql.repo.service.d.ts +46 -0
- package/dist/packages/indexeddb/nosql.repo.service.esm +87 -0
- package/dist/packages/indexeddb/registry.cjs +1 -0
- package/dist/packages/indexeddb/registry.d.ts +21 -0
- package/dist/packages/indexeddb/registry.esm +22 -0
- package/dist/packages/indexeddb/types.cjs +0 -0
- package/dist/packages/indexeddb/types.d.ts +33 -0
- package/dist/packages/indexeddb/types.esm +0 -0
- package/dist/packages/logger/index.cjs +1 -0
- package/dist/packages/logger/index.d.ts +2 -0
- package/dist/packages/logger/index.esm +3 -0
- package/dist/packages/logger/logger.cjs +1 -0
- package/dist/packages/logger/logger.d.ts +137 -0
- package/dist/packages/logger/logger.esm +186 -0
- package/dist/packages/logger/registry.cjs +1 -0
- package/dist/packages/logger/registry.d.ts +9 -0
- package/dist/packages/logger/registry.esm +17 -0
- package/dist/packages/maps/deckgl-overlay.cjs +1 -0
- package/dist/packages/maps/deckgl-overlay.d.ts +9 -0
- package/dist/packages/maps/deckgl-overlay.esm +12 -0
- package/dist/packages/maps/maps.renderer.cjs +1 -0
- package/dist/packages/maps/maps.renderer.d.ts +19 -0
- package/dist/packages/maps/maps.renderer.esm +25 -0
- package/dist/packages/maps/markers/marker.factory.cjs +1 -0
- package/dist/packages/maps/markers/marker.factory.d.ts +8 -0
- package/dist/packages/maps/markers/marker.factory.esm +58 -0
- package/dist/packages/maps/markers/marker.guard.cjs +1 -0
- package/dist/packages/maps/markers/marker.guard.d.ts +22 -0
- package/dist/packages/maps/markers/marker.guard.esm +37 -0
- package/dist/packages/maps/markers/markers.meta.cjs +0 -0
- package/dist/packages/maps/markers/markers.meta.d.ts +12 -0
- package/dist/packages/maps/markers/markers.meta.esm +0 -0
- package/dist/packages/maps/styles/dark.style.cjs +1 -0
- package/dist/packages/maps/styles/dark.style.d.ts +1 -0
- package/dist/packages/maps/styles/dark.style.esm +93 -0
- package/dist/packages/nfc/nfc.service.cjs +1 -0
- package/dist/packages/nfc/nfc.service.d.ts +41 -0
- package/dist/packages/nfc/nfc.service.esm +104 -0
- package/dist/packages/requests/axios/base.connector.cjs +1 -0
- package/dist/packages/requests/axios/base.connector.d.ts +37 -0
- package/dist/packages/requests/axios/base.connector.esm +25 -0
- package/dist/packages/requests/axios/base.service.cjs +1 -0
- package/dist/packages/requests/axios/base.service.d.ts +41 -0
- package/dist/packages/requests/axios/base.service.esm +11 -0
- package/dist/packages/requests/axios/interceptor.builder.cjs +1 -0
- package/dist/packages/requests/axios/interceptor.builder.d.ts +26 -0
- package/dist/packages/requests/axios/interceptor.builder.esm +20 -0
- package/dist/packages/router/build.router.cjs +1 -0
- package/dist/packages/router/build.router.d.ts +6 -0
- package/dist/packages/router/build.router.esm +9 -0
- package/dist/packages/router/route.builder.cjs +1 -0
- package/dist/packages/router/route.builder.d.ts +46 -0
- package/dist/packages/router/route.builder.esm +50 -0
- package/dist/packages/scanner/scanner.formats.cjs +1 -0
- package/dist/packages/scanner/scanner.formats.d.ts +51 -0
- package/dist/packages/scanner/scanner.formats.esm +96 -0
- package/dist/packages/scanner/scanner.service.cjs +1 -0
- package/dist/packages/scanner/scanner.service.d.ts +32 -0
- package/dist/packages/scanner/scanner.service.esm +32 -0
- package/dist/packages/sheets/index.cjs +1 -0
- package/dist/packages/sheets/index.d.ts +2 -0
- package/dist/packages/sheets/index.esm +3 -0
- package/dist/packages/sheets/sheets.connector.cjs +1 -0
- package/dist/packages/sheets/sheets.connector.d.ts +6 -0
- package/dist/packages/sheets/sheets.connector.esm +21 -0
- package/dist/packages/sheets/sheets.service.cjs +1 -0
- package/dist/packages/sheets/sheets.service.d.ts +21 -0
- package/dist/packages/sheets/sheets.service.esm +38 -0
- package/dist/packages/sqlite/base/base.entity.cjs +1 -0
- package/dist/packages/sqlite/base/base.entity.d.ts +5 -0
- package/dist/packages/sqlite/base/base.entity.esm +41 -0
- package/dist/packages/sqlite/repo.service.cjs +1 -0
- package/dist/packages/sqlite/repo.service.d.ts +22 -0
- package/dist/packages/sqlite/repo.service.esm +52 -0
- package/dist/packages/sqlite/sqlite.service.cjs +1 -0
- package/dist/packages/sqlite/sqlite.service.d.ts +40 -0
- package/dist/packages/sqlite/sqlite.service.esm +77 -0
- package/dist/packages/sqlite/templates/test.entity.cjs +1 -0
- package/dist/packages/sqlite/templates/test.entity.d.ts +6 -0
- package/dist/packages/sqlite/templates/test.entity.esm +62 -0
- package/dist/packages/sqlite/templates/test.repo.service.cjs +1 -0
- package/dist/packages/sqlite/templates/test.repo.service.d.ts +8 -0
- package/dist/packages/sqlite/templates/test.repo.service.esm +26 -0
- package/dist/packages/stores/storage.service.cjs +1 -0
- package/dist/packages/stores/storage.service.d.ts +5 -0
- package/dist/packages/stores/storage.service.esm +22 -0
- package/dist/packages/stores/store.hook.cjs +1 -0
- package/dist/packages/stores/store.hook.d.ts +23 -0
- package/dist/packages/stores/store.hook.esm +22 -0
- package/dist/packages/stores/store.service.cjs +1 -0
- package/dist/packages/stores/store.service.d.ts +12 -0
- package/dist/packages/stores/store.service.esm +48 -0
- package/dist/packages/theme/theme-builder.cjs +1 -0
- package/dist/packages/theme/theme-builder.d.ts +19 -0
- package/dist/packages/theme/theme-builder.esm +25 -0
- package/dist/packages/theme/theme-provider.cjs +1 -0
- package/dist/packages/theme/theme-provider.d.ts +7 -0
- package/dist/packages/theme/theme-provider.esm +17 -0
- package/dist/packages/theme/theme-toggle.cjs +1 -0
- package/dist/packages/theme/theme-toggle.d.ts +6 -0
- package/dist/packages/theme/theme-toggle.esm +33 -0
- package/dist/packages/w3/tron/index.cjs +1 -0
- package/dist/packages/w3/tron/index.d.ts +4 -0
- package/dist/packages/w3/tron/index.esm +4 -0
- package/dist/packages/w3/tron/tron-assets.service.cjs +1 -0
- package/dist/packages/w3/tron/tron-assets.service.d.ts +38 -0
- package/dist/packages/w3/tron/tron-assets.service.esm +116 -0
- package/dist/packages/w3/tron/tron-wallet.entity.cjs +1 -0
- package/dist/packages/w3/tron/tron-wallet.entity.d.ts +15 -0
- package/dist/packages/w3/tron/tron-wallet.entity.esm +88 -0
- package/dist/packages/w3/tron/tron-wallet.repo.cjs +1 -0
- package/dist/packages/w3/tron/tron-wallet.repo.d.ts +30 -0
- package/dist/packages/w3/tron/tron-wallet.repo.esm +52 -0
- package/dist/packages/w3/tron/tron.service.cjs +1 -0
- package/dist/packages/w3/tron/tron.service.d.ts +124 -0
- package/dist/packages/w3/tron/tron.service.esm +406 -0
- package/dist/packages/w3/tron/tron.types.cjs +0 -0
- package/dist/packages/w3/tron/tron.types.d.ts +129 -0
- package/dist/packages/w3/tron/tron.types.esm +0 -0
- package/dist/page-container.d.ts +2 -0
- package/dist/popover.d.ts +2 -0
- package/dist/qr.encoder.service.d.ts +4 -0
- package/dist/qr.renderer.d.ts +4 -0
- package/dist/registry.d.ts +2 -0
- package/dist/repo.service.d.ts +4 -0
- package/dist/repository.contract.d.ts +1 -0
- package/dist/route.builder.d.ts +4 -0
- package/dist/scanner.formats.d.ts +2 -0
- package/dist/scanner.service.d.ts +2 -0
- package/dist/scroll-area.d.ts +2 -0
- package/dist/secret.input.d.ts +4 -0
- package/dist/select.d.ts +2 -0
- package/dist/select.input.d.ts +4 -0
- package/dist/separator.d.ts +2 -0
- package/dist/shared/assets/social-icons.cjs +1 -0
- package/dist/shared/assets/social-icons.d.ts +2 -0
- package/dist/shared/assets/social-icons.esm +30 -0
- package/dist/shared/constants/connectors/main.connector.cjs +1 -0
- package/dist/shared/constants/connectors/main.connector.d.ts +8 -0
- package/dist/shared/constants/connectors/main.connector.esm +38 -0
- package/dist/shared/constants/services/main.service.cjs +1 -0
- package/dist/shared/constants/services/main.service.d.ts +7 -0
- package/dist/shared/constants/services/main.service.esm +26 -0
- package/dist/shared/contracts/repository.contract.cjs +0 -0
- package/dist/shared/contracts/repository.contract.d.ts +26 -0
- package/dist/shared/contracts/repository.contract.esm +0 -0
- package/dist/shared/custom/actions/back-button.action.cjs +1 -0
- package/dist/shared/custom/actions/back-button.action.d.ts +13 -0
- package/dist/shared/custom/actions/back-button.action.esm +20 -0
- package/dist/shared/custom/audit/audit-view.cjs +1 -0
- package/dist/shared/custom/audit/audit-view.d.ts +46 -0
- package/dist/shared/custom/audit/audit-view.esm +73 -0
- package/dist/shared/custom/confirm/use-confirm.cjs +1 -0
- package/dist/shared/custom/confirm/use-confirm.d.ts +15 -0
- package/dist/shared/custom/confirm/use-confirm.esm +57 -0
- package/dist/shared/custom/data-table/data-table.component.cjs +1 -0
- package/dist/shared/custom/data-table/data-table.component.d.ts +9 -0
- package/dist/shared/custom/data-table/data-table.component.esm +26 -0
- package/dist/shared/custom/data-table/data-table.provider.cjs +0 -0
- package/dist/shared/custom/data-table/data-table.provider.d.ts +1 -0
- package/dist/shared/custom/data-table/data-table.provider.esm +0 -0
- package/dist/shared/custom/flow/flow-canvas.cjs +1 -0
- package/dist/shared/custom/flow/flow-canvas.d.ts +10 -0
- package/dist/shared/custom/flow/flow-canvas.esm +23 -0
- package/dist/shared/custom/flow/nodes/base.node.cjs +1 -0
- package/dist/shared/custom/flow/nodes/base.node.d.ts +9 -0
- package/dist/shared/custom/flow/nodes/base.node.esm +51 -0
- package/dist/shared/custom/form/form.component.cjs +1 -0
- package/dist/shared/custom/form/form.component.d.ts +13 -0
- package/dist/shared/custom/form/form.component.esm +26 -0
- package/dist/shared/custom/form/index.cjs +1 -0
- package/dist/shared/custom/form/index.d.ts +17 -0
- package/dist/shared/custom/form/index.esm +2 -0
- package/dist/shared/custom/form/inputs/async-combobox.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/async-combobox.input.d.ts +18 -0
- package/dist/shared/custom/form/inputs/async-combobox.input.esm +91 -0
- package/dist/shared/custom/form/inputs/async-multi-select.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/async-multi-select.input.d.ts +20 -0
- package/dist/shared/custom/form/inputs/async-multi-select.input.esm +127 -0
- package/dist/shared/custom/form/inputs/async-select.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/async-select.input.d.ts +15 -0
- package/dist/shared/custom/form/inputs/async-select.input.esm +71 -0
- package/dist/shared/custom/form/inputs/checkbox-inline.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/checkbox-inline.input.d.ts +15 -0
- package/dist/shared/custom/form/inputs/checkbox-inline.input.esm +41 -0
- package/dist/shared/custom/form/inputs/checkbox.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/checkbox.input.d.ts +21 -0
- package/dist/shared/custom/form/inputs/checkbox.input.esm +50 -0
- package/dist/shared/custom/form/inputs/code.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/code.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/code.input.esm +58 -0
- package/dist/shared/custom/form/inputs/color.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/color.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/color.input.esm +47 -0
- package/dist/shared/custom/form/inputs/combobox.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/combobox.input.d.ts +18 -0
- package/dist/shared/custom/form/inputs/combobox.input.esm +73 -0
- package/dist/shared/custom/form/inputs/date.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/date.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/date.input.esm +52 -0
- package/dist/shared/custom/form/inputs/email.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/email.input.d.ts +12 -0
- package/dist/shared/custom/form/inputs/email.input.esm +47 -0
- package/dist/shared/custom/form/inputs/file.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/file.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/file.input.esm +95 -0
- package/dist/shared/custom/form/inputs/image.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/image.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/image.input.esm +90 -0
- package/dist/shared/custom/form/inputs/list-select.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/list-select.input.d.ts +17 -0
- package/dist/shared/custom/form/inputs/list-select.input.esm +53 -0
- package/dist/shared/custom/form/inputs/secret.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/secret.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/secret.input.esm +53 -0
- package/dist/shared/custom/form/inputs/select.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/select.input.d.ts +17 -0
- package/dist/shared/custom/form/inputs/select.input.esm +44 -0
- package/dist/shared/custom/form/inputs/tags.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/tags.input.d.ts +16 -0
- package/dist/shared/custom/form/inputs/tags.input.esm +80 -0
- package/dist/shared/custom/form/inputs/text.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/text.input.d.ts +13 -0
- package/dist/shared/custom/form/inputs/text.input.esm +47 -0
- package/dist/shared/custom/form/inputs/textarea.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/textarea.input.d.ts +12 -0
- package/dist/shared/custom/form/inputs/textarea.input.esm +36 -0
- package/dist/shared/custom/form/layout/form-dialog-layout.cjs +1 -0
- package/dist/shared/custom/form/layout/form-dialog-layout.d.ts +25 -0
- package/dist/shared/custom/form/layout/form-dialog-layout.esm +37 -0
- package/dist/shared/custom/form/layout/form-tab-layout.cjs +1 -0
- package/dist/shared/custom/form/layout/form-tab-layout.d.ts +30 -0
- package/dist/shared/custom/form/layout/form-tab-layout.esm +69 -0
- package/dist/shared/custom/hover/hover.cjs +1 -0
- package/dist/shared/custom/hover/hover.d.ts +6 -0
- package/dist/shared/custom/hover/hover.esm +20 -0
- package/dist/shared/custom/layouts/canvas-view.layout.cjs +1 -0
- package/dist/shared/custom/layouts/canvas-view.layout.d.ts +18 -0
- package/dist/shared/custom/layouts/canvas-view.layout.esm +15 -0
- package/dist/shared/custom/layouts/detail-tabs.layout.cjs +1 -0
- package/dist/shared/custom/layouts/detail-tabs.layout.d.ts +27 -0
- package/dist/shared/custom/layouts/detail-tabs.layout.esm +32 -0
- package/dist/shared/custom/layouts/detail-view.layout.cjs +1 -0
- package/dist/shared/custom/layouts/detail-view.layout.d.ts +33 -0
- package/dist/shared/custom/layouts/detail-view.layout.esm +64 -0
- package/dist/shared/custom/layouts/feedback.layout.cjs +1 -0
- package/dist/shared/custom/layouts/feedback.layout.d.ts +14 -0
- package/dist/shared/custom/layouts/feedback.layout.esm +20 -0
- package/dist/shared/custom/layouts/grid.layout.cjs +1 -0
- package/dist/shared/custom/layouts/grid.layout.d.ts +38 -0
- package/dist/shared/custom/layouts/grid.layout.esm +39 -0
- package/dist/shared/custom/layouts/page-container.cjs +1 -0
- package/dist/shared/custom/layouts/page-container.d.ts +6 -0
- package/dist/shared/custom/layouts/page-container.esm +12 -0
- package/dist/shared/custom/ui/icon-box.cjs +1 -0
- package/dist/shared/custom/ui/icon-box.d.ts +12 -0
- package/dist/shared/custom/ui/icon-box.esm +21 -0
- package/dist/shared/custom/ui/typography.cjs +1 -0
- package/dist/shared/custom/ui/typography.d.ts +11 -0
- package/dist/shared/custom/ui/typography.esm +30 -0
- package/dist/shared/hooks/use-device.cjs +1 -0
- package/dist/shared/hooks/use-device.d.ts +10 -0
- package/dist/shared/hooks/use-device.esm +37 -0
- package/dist/shared/hooks/use-i18n.cjs +1 -0
- package/dist/shared/hooks/use-i18n.d.ts +10 -0
- package/dist/shared/hooks/use-i18n.esm +15 -0
- package/dist/shared/hooks/use-mobile.cjs +1 -0
- package/dist/shared/hooks/use-mobile.d.ts +1 -0
- package/dist/shared/hooks/use-mobile.esm +14 -0
- package/dist/shared/lib/utils.cjs +1 -0
- package/dist/shared/lib/utils.d.ts +2 -0
- package/dist/shared/lib/utils.esm +8 -0
- package/dist/shared/logic/action/action-processor.cjs +1 -0
- package/dist/shared/logic/action/action-processor.d.ts +86 -0
- package/dist/shared/logic/action/action-processor.esm +30 -0
- package/dist/shared/logic/components/components.registry.cjs +1 -0
- package/dist/shared/logic/components/components.registry.d.ts +16 -0
- package/dist/shared/logic/components/components.registry.esm +26 -0
- package/dist/shared/logic/events/startable.cjs +1 -0
- package/dist/shared/logic/events/startable.d.ts +7 -0
- package/dist/shared/logic/events/startable.esm +32 -0
- package/dist/shared/logic/events/use-on-start.hook.cjs +1 -0
- package/dist/shared/logic/events/use-on-start.hook.d.ts +12 -0
- package/dist/shared/logic/events/use-on-start.hook.esm +15 -0
- package/dist/shared/logic/factory/component.factory.cjs +1 -0
- package/dist/shared/logic/factory/component.factory.d.ts +9 -0
- package/dist/shared/logic/factory/component.factory.esm +28 -0
- package/dist/shared/logic/guards/builder-device.guard.cjs +1 -0
- package/dist/shared/logic/guards/builder-device.guard.d.ts +5 -0
- package/dist/shared/logic/guards/builder-device.guard.esm +10 -0
- package/dist/shared/logic/guards/component.guard.cjs +1 -0
- package/dist/shared/logic/guards/component.guard.d.ts +5 -0
- package/dist/shared/logic/guards/component.guard.esm +13 -0
- package/dist/shared/logic/guards/context.guard.cjs +1 -0
- package/dist/shared/logic/guards/context.guard.d.ts +13 -0
- package/dist/shared/logic/guards/context.guard.esm +9 -0
- package/dist/shared/logic/guards/device-artifact.guard.cjs +1 -0
- package/dist/shared/logic/guards/device-artifact.guard.d.ts +16 -0
- package/dist/shared/logic/guards/device-artifact.guard.esm +44 -0
- package/dist/shared/logic/guards/device.guard.cjs +1 -0
- package/dist/shared/logic/guards/device.guard.d.ts +17 -0
- package/dist/shared/logic/guards/device.guard.esm +40 -0
- package/dist/shared/logic/guards/dynamic-device.guard.cjs +1 -0
- package/dist/shared/logic/guards/dynamic-device.guard.d.ts +5 -0
- package/dist/shared/logic/guards/dynamic-device.guard.esm +10 -0
- package/dist/shared/logic/guards/guard.cjs +1 -0
- package/dist/shared/logic/guards/guard.d.ts +24 -0
- package/dist/shared/logic/guards/guard.esm +18 -0
- package/dist/shared/logic/service/base.service.cjs +1 -0
- package/dist/shared/logic/service/base.service.d.ts +3 -0
- package/dist/shared/logic/service/base.service.esm +5 -0
- package/dist/shared/logic/verifiers/context.verifier.cjs +1 -0
- package/dist/shared/logic/verifiers/context.verifier.d.ts +7 -0
- package/dist/shared/logic/verifiers/context.verifier.esm +31 -0
- package/dist/shared/logic/verifiers/device.verifier.registry.cjs +1 -0
- package/dist/shared/logic/verifiers/device.verifier.registry.d.ts +13 -0
- package/dist/shared/logic/verifiers/device.verifier.registry.esm +36 -0
- package/dist/shared/logic/verifiers/enum.verifier.cjs +1 -0
- package/dist/shared/logic/verifiers/enum.verifier.d.ts +4 -0
- package/dist/shared/logic/verifiers/enum.verifier.esm +9 -0
- package/dist/shared/logic/verifiers/value.verifier.cjs +1 -0
- package/dist/shared/logic/verifiers/value.verifier.d.ts +5 -0
- package/dist/shared/logic/verifiers/value.verifier.esm +9 -0
- package/dist/shared/ui/badge.cjs +1 -0
- package/dist/shared/ui/badge.d.ts +9 -0
- package/dist/shared/ui/badge.esm +27 -0
- package/dist/shared/ui/breadcrumb.cjs +1 -0
- package/dist/shared/ui/breadcrumb.d.ts +11 -0
- package/dist/shared/ui/breadcrumb.esm +70 -0
- package/dist/shared/ui/button.cjs +1 -0
- package/dist/shared/ui/button.d.ts +11 -0
- package/dist/shared/ui/button.esm +47 -0
- package/dist/shared/ui/calendar.cjs +1 -0
- package/dist/shared/ui/calendar.d.ts +10 -0
- package/dist/shared/ui/calendar.esm +92 -0
- package/dist/shared/ui/card.cjs +1 -0
- package/dist/shared/ui/card.d.ts +11 -0
- package/dist/shared/ui/card.esm +56 -0
- package/dist/shared/ui/checkbox.cjs +1 -0
- package/dist/shared/ui/checkbox.d.ts +4 -0
- package/dist/shared/ui/checkbox.esm +20 -0
- package/dist/shared/ui/combobox.cjs +1 -0
- package/dist/shared/ui/combobox.d.ts +24 -0
- package/dist/shared/ui/combobox.esm +163 -0
- package/dist/shared/ui/command.cjs +1 -0
- package/dist/shared/ui/command.d.ts +18 -0
- package/dist/shared/ui/command.esm +87 -0
- package/dist/shared/ui/custom/dynamic-icon.cjs +1 -0
- package/dist/shared/ui/custom/dynamic-icon.d.ts +13 -0
- package/dist/shared/ui/custom/dynamic-icon.esm +15 -0
- package/dist/shared/ui/dialog.cjs +1 -0
- package/dist/shared/ui/dialog.d.ts +17 -0
- package/dist/shared/ui/dialog.esm +95 -0
- package/dist/shared/ui/field.cjs +1 -0
- package/dist/shared/ui/field.d.ts +24 -0
- package/dist/shared/ui/field.esm +107 -0
- package/dist/shared/ui/icon-button.cjs +1 -0
- package/dist/shared/ui/icon-button.d.ts +6 -0
- package/dist/shared/ui/icon-button.esm +14 -0
- package/dist/shared/ui/index.cjs +1 -0
- package/dist/shared/ui/index.d.ts +23 -0
- package/dist/shared/ui/index.esm +24 -0
- package/dist/shared/ui/input-group.cjs +1 -0
- package/dist/shared/ui/input-group.d.ts +16 -0
- package/dist/shared/ui/input-group.esm +77 -0
- package/dist/shared/ui/input.cjs +1 -0
- package/dist/shared/ui/input.d.ts +3 -0
- package/dist/shared/ui/input.esm +14 -0
- package/dist/shared/ui/label.cjs +1 -0
- package/dist/shared/ui/label.d.ts +4 -0
- package/dist/shared/ui/label.esm +14 -0
- package/dist/shared/ui/popover.cjs +1 -0
- package/dist/shared/ui/popover.d.ts +7 -0
- package/dist/shared/ui/popover.esm +35 -0
- package/dist/shared/ui/scroll-area.cjs +1 -0
- package/dist/shared/ui/scroll-area.d.ts +5 -0
- package/dist/shared/ui/scroll-area.esm +36 -0
- package/dist/shared/ui/select.cjs +1 -0
- package/dist/shared/ui/select.d.ts +15 -0
- package/dist/shared/ui/select.esm +99 -0
- package/dist/shared/ui/separator.cjs +1 -0
- package/dist/shared/ui/separator.d.ts +4 -0
- package/dist/shared/ui/separator.esm +16 -0
- package/dist/shared/ui/sheet.cjs +1 -0
- package/dist/shared/ui/sheet.d.ts +14 -0
- package/dist/shared/ui/sheet.esm +89 -0
- package/dist/shared/ui/sidebar.cjs +1 -0
- package/dist/shared/ui/sidebar.d.ts +69 -0
- package/dist/shared/ui/sidebar.esm +348 -0
- package/dist/shared/ui/skeleton.cjs +1 -0
- package/dist/shared/ui/skeleton.d.ts +2 -0
- package/dist/shared/ui/skeleton.esm +12 -0
- package/dist/shared/ui/sonner.cjs +1 -0
- package/dist/shared/ui/sonner.d.ts +3 -0
- package/dist/shared/ui/sonner.esm +29 -0
- package/dist/shared/ui/table.cjs +1 -0
- package/dist/shared/ui/table.d.ts +10 -0
- package/dist/shared/ui/table.esm +66 -0
- package/dist/shared/ui/tabs.cjs +1 -0
- package/dist/shared/ui/tabs.d.ts +11 -0
- package/dist/shared/ui/tabs.esm +45 -0
- package/dist/shared/ui/textarea.cjs +1 -0
- package/dist/shared/ui/textarea.d.ts +3 -0
- package/dist/shared/ui/textarea.esm +13 -0
- package/dist/shared/ui/tooltip.cjs +1 -0
- package/dist/shared/ui/tooltip.d.ts +7 -0
- package/dist/shared/ui/tooltip.esm +36 -0
- package/dist/sheet.d.ts +2 -0
- package/dist/sheets.connector.d.ts +2 -0
- package/dist/sheets.service.d.ts +2 -0
- package/dist/sidebar.d.ts +2 -0
- package/dist/skeleton.d.ts +2 -0
- package/dist/social-icons.d.ts +2 -0
- package/dist/sonner.d.ts +2 -0
- package/dist/sortable.d.ts +2 -0
- package/dist/sqlite.service.d.ts +6 -0
- package/dist/startable.d.ts +4 -0
- package/dist/storage.service.d.ts +4 -0
- package/dist/store.hook.d.ts +4 -0
- package/dist/store.service.d.ts +4 -0
- package/dist/table.d.ts +2 -0
- package/dist/tabs.d.ts +2 -0
- package/dist/tags.input.d.ts +4 -0
- package/dist/test.entity.d.ts +2 -0
- package/dist/test.repo.service.d.ts +6 -0
- package/dist/text-coder.service.d.ts +2 -0
- package/dist/text.input.d.ts +4 -0
- package/dist/textarea.d.ts +2 -0
- package/dist/textarea.input.d.ts +4 -0
- package/dist/theme-builder.d.ts +2 -0
- package/dist/theme-provider.d.ts +2 -0
- package/dist/theme-toggle.d.ts +2 -0
- package/dist/tooltip.d.ts +2 -0
- package/dist/tron-assets.service.d.ts +2 -0
- package/dist/tron-wallet.entity.d.ts +2 -0
- package/dist/tron-wallet.repo.d.ts +2 -0
- package/dist/tron.service.d.ts +2 -0
- package/dist/tron.types.d.ts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/typography.d.ts +2 -0
- package/dist/use-confirm.d.ts +2 -0
- package/dist/use-device.d.ts +2 -0
- package/dist/use-i18n.d.ts +2 -0
- package/dist/use-mobile.d.ts +2 -0
- package/dist/use-on-start.hook.d.ts +2 -0
- package/dist/utils.d.ts +2 -0
- package/dist/value.verifier.d.ts +4 -0
- package/package.json +155 -0
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import { GLOBAL_LOGGER as e } from "../../logger/logger.esm";
|
|
2
|
+
import { TronWeb as t } from "tronweb";
|
|
3
|
+
//#region src/packages/w3/tron/tron.service.ts
|
|
4
|
+
function n(e, t) {
|
|
5
|
+
if (!{}.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
|
|
6
|
+
return e;
|
|
7
|
+
}
|
|
8
|
+
var r = 0;
|
|
9
|
+
function i(e) {
|
|
10
|
+
return "__private_" + r++ + "_" + e;
|
|
11
|
+
}
|
|
12
|
+
var a = e.child("[TronService]"), o = /* @__PURE__ */ i("instance"), s = class e {
|
|
13
|
+
constructor(e) {
|
|
14
|
+
this.tronWeb = void 0, this.fullHost = void 0, this.networkHeaders = void 0, this.fullHost = e?.fullHost ?? "https://nile.trongrid.io", this.networkHeaders = e?.headers, this.tronWeb = new t({
|
|
15
|
+
fullHost: this.fullHost,
|
|
16
|
+
headers: this.networkHeaders
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
static get instance() {
|
|
20
|
+
return n(e, o)[o] || (n(e, o)[o] = new e()), n(e, o)[o];
|
|
21
|
+
}
|
|
22
|
+
buildSigner(e) {
|
|
23
|
+
return new t({
|
|
24
|
+
fullHost: this.fullHost,
|
|
25
|
+
headers: this.networkHeaders,
|
|
26
|
+
privateKey: e
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
async createWallet() {
|
|
30
|
+
let e = a.trace("createWallet");
|
|
31
|
+
try {
|
|
32
|
+
let e = await this.tronWeb.createAccount();
|
|
33
|
+
return a.success("Wallet created successfully", { address: e.address.base58 }), {
|
|
34
|
+
address: e.address.base58,
|
|
35
|
+
privateKey: e.privateKey,
|
|
36
|
+
publicKey: e.publicKey
|
|
37
|
+
};
|
|
38
|
+
} catch (e) {
|
|
39
|
+
throw a.error("Failed to create wallet", e), e;
|
|
40
|
+
} finally {
|
|
41
|
+
e.end();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
async sendTrx(e, t, n) {
|
|
45
|
+
let r = a.trace("sendTrx");
|
|
46
|
+
try {
|
|
47
|
+
let r = this.buildSigner(n), i = Number(r.toSun(t)), o = await r.trx.sendTransaction(e, i);
|
|
48
|
+
return o.result ? (a.success("TRX transaction broadcasted", { txId: o.txid }), {
|
|
49
|
+
success: !0,
|
|
50
|
+
txId: o.txid
|
|
51
|
+
}) : (a.error("TRX transaction rejected", o), {
|
|
52
|
+
success: !1,
|
|
53
|
+
error: "Transaction rejected by network"
|
|
54
|
+
});
|
|
55
|
+
} catch (e) {
|
|
56
|
+
return a.error("Failed to send TRX", e), {
|
|
57
|
+
success: !1,
|
|
58
|
+
error: e.message ?? "Unknown error"
|
|
59
|
+
};
|
|
60
|
+
} finally {
|
|
61
|
+
r.end();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
async sendTRC10(e) {
|
|
65
|
+
let t = a.trace("sendTRC10"), { to: n, tokenId: r, amount: i, privateKey: o } = e;
|
|
66
|
+
try {
|
|
67
|
+
let e = await this.buildSigner(o).trx.sendToken(n, i, r);
|
|
68
|
+
return e.result ? (a.success("TRC10 transfer broadcasted", {
|
|
69
|
+
txId: e.txid,
|
|
70
|
+
tokenId: r,
|
|
71
|
+
amount: i
|
|
72
|
+
}), {
|
|
73
|
+
success: !0,
|
|
74
|
+
txId: e.txid
|
|
75
|
+
}) : (a.error("TRC10 transfer rejected", e), {
|
|
76
|
+
success: !1,
|
|
77
|
+
error: "TRC10 transfer rejected by network"
|
|
78
|
+
});
|
|
79
|
+
} catch (e) {
|
|
80
|
+
return a.error("Failed to send TRC10 token", e), {
|
|
81
|
+
success: !1,
|
|
82
|
+
error: e.message ?? "Unknown error"
|
|
83
|
+
};
|
|
84
|
+
} finally {
|
|
85
|
+
t.end();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
async sendTRC20(e) {
|
|
89
|
+
let t = a.trace("sendTRC20"), { to: n, contractAddress: r, amount: i, privateKey: o, feeLimit: s = 1e5 } = e;
|
|
90
|
+
try {
|
|
91
|
+
let e = await this.buildSigner(o).contract().at(r), t = Number(await e.decimals().call().catch(() => 6)), c = BigInt(Math.round(i * 10 ** t)), l = await e.transfer(n, c).send({
|
|
92
|
+
feeLimit: s,
|
|
93
|
+
shouldPollResponse: !1
|
|
94
|
+
});
|
|
95
|
+
return l ? (a.success("TRC20 transfer broadcasted", {
|
|
96
|
+
txId: l,
|
|
97
|
+
contractAddress: r,
|
|
98
|
+
amount: i
|
|
99
|
+
}), {
|
|
100
|
+
success: !0,
|
|
101
|
+
txId: l
|
|
102
|
+
}) : (a.error("TRC20 transfer rejected"), {
|
|
103
|
+
success: !1,
|
|
104
|
+
error: "TRC20 transfer rejected by network"
|
|
105
|
+
});
|
|
106
|
+
} catch (e) {
|
|
107
|
+
return a.error("Failed to send TRC20 token", e), {
|
|
108
|
+
success: !1,
|
|
109
|
+
error: e.message ?? "Unknown error"
|
|
110
|
+
};
|
|
111
|
+
} finally {
|
|
112
|
+
t.end();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
splitAmount(e, t, n = !1) {
|
|
116
|
+
let r = e * Math.min(Math.max(t, 0), 1), i = n ? Math.floor(r) : parseFloat(r.toFixed(8));
|
|
117
|
+
return {
|
|
118
|
+
commission: i,
|
|
119
|
+
main: n ? e - i : parseFloat((e - i).toFixed(8))
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
async sendTrxSplit(e, t, n, r) {
|
|
123
|
+
let i = a.trace("sendTrxSplit"), { commission: o, main: s } = this.splitAmount(t, r.rate);
|
|
124
|
+
try {
|
|
125
|
+
a.info("TRX split transfer", {
|
|
126
|
+
total: t,
|
|
127
|
+
commissionAmount: o,
|
|
128
|
+
mainAmount: s,
|
|
129
|
+
rate: r.rate
|
|
130
|
+
});
|
|
131
|
+
let i = await this.sendTrx(r.address, o, n), c = await this.sendTrx(e, s, n), l = i.success && c.success, u = l ? void 0 : [!i.success && `Comisión: ${i.error}`, !c.success && `Principal: ${c.error}`].filter(Boolean).join(" | ");
|
|
132
|
+
return a.info("TRX split result", {
|
|
133
|
+
success: l,
|
|
134
|
+
commissionTxId: i.txId,
|
|
135
|
+
mainTxId: c.txId
|
|
136
|
+
}), {
|
|
137
|
+
success: l,
|
|
138
|
+
mainAmount: s,
|
|
139
|
+
mainTxId: c.txId,
|
|
140
|
+
mainTx: c,
|
|
141
|
+
commissionAmount: o,
|
|
142
|
+
commissionTxId: i.txId,
|
|
143
|
+
commissionTx: i,
|
|
144
|
+
error: u
|
|
145
|
+
};
|
|
146
|
+
} catch (e) {
|
|
147
|
+
a.error("Failed TRX split transfer", e);
|
|
148
|
+
let t = {
|
|
149
|
+
success: !1,
|
|
150
|
+
error: e.message
|
|
151
|
+
};
|
|
152
|
+
return {
|
|
153
|
+
success: !1,
|
|
154
|
+
mainAmount: s,
|
|
155
|
+
mainTx: t,
|
|
156
|
+
commissionAmount: o,
|
|
157
|
+
commissionTx: t,
|
|
158
|
+
error: e.message
|
|
159
|
+
};
|
|
160
|
+
} finally {
|
|
161
|
+
i.end();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
async sendTRC10Split(e, t) {
|
|
165
|
+
let n = a.trace("sendTRC10Split"), { commission: r, main: i } = this.splitAmount(e.amount, t.rate, !0);
|
|
166
|
+
try {
|
|
167
|
+
a.info("TRC10 split transfer", {
|
|
168
|
+
total: e.amount,
|
|
169
|
+
commissionAmount: r,
|
|
170
|
+
mainAmount: i
|
|
171
|
+
});
|
|
172
|
+
let n = await this.sendTRC10({
|
|
173
|
+
...e,
|
|
174
|
+
to: t.address,
|
|
175
|
+
amount: r
|
|
176
|
+
}), o = await this.sendTRC10({
|
|
177
|
+
...e,
|
|
178
|
+
amount: i
|
|
179
|
+
}), s = n.success && o.success, c = s ? void 0 : [!n.success && `Comisión: ${n.error}`, !o.success && `Principal: ${o.error}`].filter(Boolean).join(" | ");
|
|
180
|
+
return {
|
|
181
|
+
success: s,
|
|
182
|
+
mainAmount: i,
|
|
183
|
+
mainTxId: o.txId,
|
|
184
|
+
mainTx: o,
|
|
185
|
+
commissionAmount: r,
|
|
186
|
+
commissionTxId: n.txId,
|
|
187
|
+
commissionTx: n,
|
|
188
|
+
error: c
|
|
189
|
+
};
|
|
190
|
+
} catch (e) {
|
|
191
|
+
a.error("Failed TRC10 split transfer", e);
|
|
192
|
+
let t = {
|
|
193
|
+
success: !1,
|
|
194
|
+
error: e.message
|
|
195
|
+
};
|
|
196
|
+
return {
|
|
197
|
+
success: !1,
|
|
198
|
+
mainAmount: i,
|
|
199
|
+
mainTx: t,
|
|
200
|
+
commissionAmount: r,
|
|
201
|
+
commissionTx: t,
|
|
202
|
+
error: e.message
|
|
203
|
+
};
|
|
204
|
+
} finally {
|
|
205
|
+
n.end();
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
async sendTRC20Split(e, t) {
|
|
209
|
+
let n = a.trace("sendTRC20Split"), { commission: r, main: i } = this.splitAmount(e.amount, t.rate);
|
|
210
|
+
try {
|
|
211
|
+
a.info("TRC20 split transfer", {
|
|
212
|
+
total: e.amount,
|
|
213
|
+
commissionAmount: r,
|
|
214
|
+
mainAmount: i
|
|
215
|
+
});
|
|
216
|
+
let n = await this.sendTRC20({
|
|
217
|
+
...e,
|
|
218
|
+
to: t.address,
|
|
219
|
+
amount: r
|
|
220
|
+
}), o = await this.sendTRC20({
|
|
221
|
+
...e,
|
|
222
|
+
amount: i
|
|
223
|
+
}), s = n.success && o.success, c = s ? void 0 : [!n.success && `Comisión: ${n.error}`, !o.success && `Principal: ${o.error}`].filter(Boolean).join(" | ");
|
|
224
|
+
return {
|
|
225
|
+
success: s,
|
|
226
|
+
mainAmount: i,
|
|
227
|
+
mainTxId: o.txId,
|
|
228
|
+
mainTx: o,
|
|
229
|
+
commissionAmount: r,
|
|
230
|
+
commissionTxId: n.txId,
|
|
231
|
+
commissionTx: n,
|
|
232
|
+
error: c
|
|
233
|
+
};
|
|
234
|
+
} catch (e) {
|
|
235
|
+
a.error("Failed TRC20 split transfer", e);
|
|
236
|
+
let t = {
|
|
237
|
+
success: !1,
|
|
238
|
+
error: e.message
|
|
239
|
+
};
|
|
240
|
+
return {
|
|
241
|
+
success: !1,
|
|
242
|
+
mainAmount: i,
|
|
243
|
+
mainTx: t,
|
|
244
|
+
commissionAmount: r,
|
|
245
|
+
commissionTx: t,
|
|
246
|
+
error: e.message
|
|
247
|
+
};
|
|
248
|
+
} finally {
|
|
249
|
+
n.end();
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
getSenderAddress(e) {
|
|
253
|
+
return t.address.fromPrivateKey(e);
|
|
254
|
+
}
|
|
255
|
+
async sendTrxBatchAtomic(e) {
|
|
256
|
+
let t = a.trace("sendTrxBatchAtomic"), { recipients: n, privateKey: r, contractAddress: i, feeLimit: o = 5e5 } = e, s = n.reduce((e, t) => e + t.amount, 0), c = Math.round(s * 1e6), l = n.map((e) => e.address), u = n.map((e) => Math.round(e.amount * 1e6));
|
|
257
|
+
try {
|
|
258
|
+
let e = this.buildSigner(r), t = this.getSenderAddress(r);
|
|
259
|
+
a.info("TRX batch atomic", {
|
|
260
|
+
recipients: n.length,
|
|
261
|
+
totalTrx: s,
|
|
262
|
+
contractAddress: i
|
|
263
|
+
});
|
|
264
|
+
let { transaction: d } = await e.transactionBuilder.triggerSmartContract(i, "batchSendTRX(address[],uint256[])", {
|
|
265
|
+
callValue: c,
|
|
266
|
+
feeLimit: o
|
|
267
|
+
}, [{
|
|
268
|
+
type: "address[]",
|
|
269
|
+
value: l
|
|
270
|
+
}, {
|
|
271
|
+
type: "uint256[]",
|
|
272
|
+
value: u
|
|
273
|
+
}], t), f = await e.trx.sign(d, r), p = await e.trx.sendRawTransaction(f);
|
|
274
|
+
return p.result ? (a.success("TRX batch atomic success", {
|
|
275
|
+
txId: p.txid,
|
|
276
|
+
recipients: n.length
|
|
277
|
+
}), {
|
|
278
|
+
success: !0,
|
|
279
|
+
txId: p.txid,
|
|
280
|
+
recipients: n,
|
|
281
|
+
totalAmount: s
|
|
282
|
+
}) : {
|
|
283
|
+
success: !1,
|
|
284
|
+
recipients: n,
|
|
285
|
+
totalAmount: s,
|
|
286
|
+
error: "Contract call rejected"
|
|
287
|
+
};
|
|
288
|
+
} catch (e) {
|
|
289
|
+
return a.error("TRX batch atomic failed", e), {
|
|
290
|
+
success: !1,
|
|
291
|
+
recipients: n,
|
|
292
|
+
totalAmount: s,
|
|
293
|
+
error: e.message ?? "Unknown error"
|
|
294
|
+
};
|
|
295
|
+
} finally {
|
|
296
|
+
t.end();
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
async approveTRC20Batch(e, t, n, r, i = 1e5) {
|
|
300
|
+
let o = a.trace("approveTRC20Batch");
|
|
301
|
+
try {
|
|
302
|
+
let o = await (await this.buildSigner(e).contract().at(t)).approve(n, r).send({ feeLimit: i });
|
|
303
|
+
return a.success("TRC20 approve success", { txId: o }), {
|
|
304
|
+
success: !0,
|
|
305
|
+
txId: o
|
|
306
|
+
};
|
|
307
|
+
} catch (e) {
|
|
308
|
+
return a.error("TRC20 approve failed", e), {
|
|
309
|
+
success: !1,
|
|
310
|
+
error: e.message
|
|
311
|
+
};
|
|
312
|
+
} finally {
|
|
313
|
+
o.end();
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
async sendTRC20BatchAtomic(e) {
|
|
317
|
+
let t = a.trace("sendTRC20BatchAtomic"), { recipients: n, privateKey: r, tokenContractAddress: i, batchContractAddress: o, decimals: s, feeLimit: c = 1e6 } = e;
|
|
318
|
+
try {
|
|
319
|
+
let e = this.buildSigner(r), t = this.getSenderAddress(r), l = 10 ** (s ?? await (async () => {
|
|
320
|
+
let t = await e.contract().at(i);
|
|
321
|
+
return Number(await t.decimals().call().catch(() => 6));
|
|
322
|
+
})()), u = n.reduce((e, t) => e + t.amount, 0), d = n.map((e) => e.address), f = n.map((e) => BigInt(Math.round(e.amount * l)).toString());
|
|
323
|
+
a.info("TRC20 batch atomic", {
|
|
324
|
+
recipients: n.length,
|
|
325
|
+
totalAmount: u,
|
|
326
|
+
tokenContractAddress: i
|
|
327
|
+
});
|
|
328
|
+
let { transaction: p } = await e.transactionBuilder.triggerSmartContract(o, "batchSendTRC20(address,address[],uint256[])", { feeLimit: c }, [
|
|
329
|
+
{
|
|
330
|
+
type: "address",
|
|
331
|
+
value: i
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
type: "address[]",
|
|
335
|
+
value: d
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
type: "uint256[]",
|
|
339
|
+
value: f
|
|
340
|
+
}
|
|
341
|
+
], t), m = await e.trx.sign(p, r), h = await e.trx.sendRawTransaction(m);
|
|
342
|
+
return h.result ? (a.success("TRC20 batch atomic success", { txId: h.txid }), {
|
|
343
|
+
success: !0,
|
|
344
|
+
txId: h.txid,
|
|
345
|
+
recipients: n,
|
|
346
|
+
totalAmount: u
|
|
347
|
+
}) : {
|
|
348
|
+
success: !1,
|
|
349
|
+
recipients: n,
|
|
350
|
+
totalAmount: u,
|
|
351
|
+
error: "Contract call rejected"
|
|
352
|
+
};
|
|
353
|
+
} catch (e) {
|
|
354
|
+
return a.error("TRC20 batch atomic failed", e), {
|
|
355
|
+
success: !1,
|
|
356
|
+
recipients: n,
|
|
357
|
+
totalAmount: 0,
|
|
358
|
+
error: e.message ?? "Unknown error"
|
|
359
|
+
};
|
|
360
|
+
} finally {
|
|
361
|
+
t.end();
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
async sendTrxSplitAtomic(e, t, n, r, i, a) {
|
|
365
|
+
let { commission: o, main: s } = this.splitAmount(t, r.rate);
|
|
366
|
+
return this.sendTrxBatchAtomic({
|
|
367
|
+
recipients: [{
|
|
368
|
+
address: r.address,
|
|
369
|
+
amount: o,
|
|
370
|
+
label: "commission"
|
|
371
|
+
}, {
|
|
372
|
+
address: e,
|
|
373
|
+
amount: s,
|
|
374
|
+
label: "main"
|
|
375
|
+
}],
|
|
376
|
+
privateKey: n,
|
|
377
|
+
contractAddress: i,
|
|
378
|
+
feeLimit: a
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
async sendTRC20SplitAtomic(e, t, n, r) {
|
|
382
|
+
let { commission: i, main: a } = this.splitAmount(e.amount, t.rate);
|
|
383
|
+
return this.sendTRC20BatchAtomic({
|
|
384
|
+
recipients: [{
|
|
385
|
+
address: t.address,
|
|
386
|
+
amount: i,
|
|
387
|
+
label: "commission"
|
|
388
|
+
}, {
|
|
389
|
+
address: e.to,
|
|
390
|
+
amount: a,
|
|
391
|
+
label: "main"
|
|
392
|
+
}],
|
|
393
|
+
privateKey: e.privateKey,
|
|
394
|
+
tokenContractAddress: e.contractAddress,
|
|
395
|
+
batchContractAddress: n,
|
|
396
|
+
feeLimit: r
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
Object.defineProperty(s, o, {
|
|
401
|
+
writable: !0,
|
|
402
|
+
value: void 0
|
|
403
|
+
});
|
|
404
|
+
var c = s.instance;
|
|
405
|
+
//#endregion
|
|
406
|
+
export { c as TRON_SERVICE, s as TronService };
|
|
File without changes
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export interface TronWallet {
|
|
2
|
+
address: string;
|
|
3
|
+
privateKey: string;
|
|
4
|
+
publicKey: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TronTransactionResult {
|
|
7
|
+
success: boolean;
|
|
8
|
+
txId?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface TronConfig {
|
|
12
|
+
fullHost: string;
|
|
13
|
+
headers?: Record<string, string>;
|
|
14
|
+
}
|
|
15
|
+
/** Token TRC10 (token nativo de la red Tron, identificado por ID numérico) */
|
|
16
|
+
export interface TronTRC10Asset {
|
|
17
|
+
tokenId: string;
|
|
18
|
+
name: string;
|
|
19
|
+
abbreviation: string;
|
|
20
|
+
balance: number;
|
|
21
|
+
}
|
|
22
|
+
/** Token TRC20 (contrato inteligente compatible con ERC20) */
|
|
23
|
+
export interface TronTRC20Asset {
|
|
24
|
+
contractAddress: string;
|
|
25
|
+
name: string;
|
|
26
|
+
symbol: string;
|
|
27
|
+
decimals: number;
|
|
28
|
+
rawBalance: string;
|
|
29
|
+
balance: number;
|
|
30
|
+
}
|
|
31
|
+
/** Resultado completo de activos de una dirección */
|
|
32
|
+
export interface TronWalletAssets {
|
|
33
|
+
address: string;
|
|
34
|
+
trxBalance: number;
|
|
35
|
+
trxBalanceSun: number;
|
|
36
|
+
trc10: TronTRC10Asset[];
|
|
37
|
+
trc20: TronTRC20Asset[];
|
|
38
|
+
fetchedAt: Date;
|
|
39
|
+
}
|
|
40
|
+
/** Parámetros para transferir un token TRC10 */
|
|
41
|
+
export interface TronTRC10TransferParams {
|
|
42
|
+
to: string;
|
|
43
|
+
tokenId: string;
|
|
44
|
+
/** Cantidad en unidad mínima del token (sin decimales) */
|
|
45
|
+
amount: number;
|
|
46
|
+
privateKey: string;
|
|
47
|
+
}
|
|
48
|
+
/** Parámetros para transferir un token TRC20 */
|
|
49
|
+
export interface TronTRC20TransferParams {
|
|
50
|
+
to: string;
|
|
51
|
+
contractAddress: string;
|
|
52
|
+
/** Cantidad legible (el servicio multiplica por 10^decimals) */
|
|
53
|
+
amount: number;
|
|
54
|
+
privateKey: string;
|
|
55
|
+
/** Límite de energía consumible. Default: 100_000 */
|
|
56
|
+
feeLimit?: number;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Configuración de la wallet base que recibe la comisión.
|
|
60
|
+
* `rate` es un valor entre 0 y 1 (ej. 0.05 = 5%).
|
|
61
|
+
*/
|
|
62
|
+
export interface TronCommissionConfig {
|
|
63
|
+
/** Dirección Base58 de la wallet que recibe la comisión */
|
|
64
|
+
address: string;
|
|
65
|
+
/** Porcentaje en decimal: 0.05 → 5%, 0.10 → 10% */
|
|
66
|
+
rate: number;
|
|
67
|
+
}
|
|
68
|
+
/** Resultado de una transacción doble (comisión + principal) */
|
|
69
|
+
export interface TronSplitResult {
|
|
70
|
+
success: boolean;
|
|
71
|
+
/** Monto enviado al destino original (después de descontar comisión) */
|
|
72
|
+
mainAmount: number;
|
|
73
|
+
mainTxId?: string;
|
|
74
|
+
mainTx: TronTransactionResult;
|
|
75
|
+
/** Monto enviado a la wallet de comisión */
|
|
76
|
+
commissionAmount: number;
|
|
77
|
+
commissionTxId?: string;
|
|
78
|
+
commissionTx: TronTransactionResult;
|
|
79
|
+
/** Error general si alguna de las dos tx falló */
|
|
80
|
+
error?: string;
|
|
81
|
+
}
|
|
82
|
+
/** Un destinatario dentro de una transferencia batch */
|
|
83
|
+
export interface TronBatchRecipient {
|
|
84
|
+
address: string;
|
|
85
|
+
/** Monto en unidad legible (TRX o token). El servicio convierte a SUN/raw internamente. */
|
|
86
|
+
amount: number;
|
|
87
|
+
/** Etiqueta opcional para logging */
|
|
88
|
+
label?: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Resultado de una transferencia batch atómica.
|
|
92
|
+
* Al ir por smart contract, hay UN solo txId para todos los destinatarios.
|
|
93
|
+
* Si el contrato falla, ninguna transferencia se ejecuta.
|
|
94
|
+
*/
|
|
95
|
+
export interface TronBatchResult {
|
|
96
|
+
success: boolean;
|
|
97
|
+
/** TX ID único del contrato — cubre TODOS los destinatarios */
|
|
98
|
+
txId?: string;
|
|
99
|
+
recipients: TronBatchRecipient[];
|
|
100
|
+
totalAmount: number;
|
|
101
|
+
error?: string;
|
|
102
|
+
}
|
|
103
|
+
/** Resultado del paso `approve` previo requerido para batch TRC20 */
|
|
104
|
+
export interface TronApproveResult {
|
|
105
|
+
success: boolean;
|
|
106
|
+
txId?: string;
|
|
107
|
+
error?: string;
|
|
108
|
+
}
|
|
109
|
+
/** Parámetros para batch TRX atómico vía contrato */
|
|
110
|
+
export interface TronTRXBatchParams {
|
|
111
|
+
recipients: TronBatchRecipient[];
|
|
112
|
+
privateKey: string;
|
|
113
|
+
/** Dirección Base58 del contrato TronMultisender desplegado */
|
|
114
|
+
contractAddress: string;
|
|
115
|
+
/** Límite de energía. Default: 500_000 */
|
|
116
|
+
feeLimit?: number;
|
|
117
|
+
}
|
|
118
|
+
/** Parámetros para batch TRC20 atómico vía contrato */
|
|
119
|
+
export interface TronTRC20BatchParams {
|
|
120
|
+
recipients: TronBatchRecipient[];
|
|
121
|
+
privateKey: string;
|
|
122
|
+
/** Dirección del token TRC20 */
|
|
123
|
+
tokenContractAddress: string;
|
|
124
|
+
/** Dirección Base58 del contrato TronMultisender desplegado */
|
|
125
|
+
batchContractAddress: string;
|
|
126
|
+
decimals?: number;
|
|
127
|
+
/** Límite de energía. Default: 1_000_000 */
|
|
128
|
+
feeLimit?: number;
|
|
129
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/select.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`react/jsx-runtime`);var t=()=>(0,e.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,children:[(0,e.jsx)(`path`,{d:`M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z`,fill:`#4285F4`}),(0,e.jsx)(`path`,{d:`M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z`,fill:`#34A853`}),(0,e.jsx)(`path`,{d:`M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z`,fill:`#FBBC05`}),(0,e.jsx)(`path`,{d:`M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z`,fill:`#EA4335`})]}),n=()=>(0,e.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,children:(0,e.jsx)(`path`,{d:`M12 2C6.477 2 2 6.477 2 12c0 4.42 2.865 8.166 6.839 9.49.5.092.682-.217.682-.482 0-.237-.008-.866-.013-1.7-2.782.603-3.369-1.34-3.369-1.34-.454-1.156-1.11-1.462-1.11-1.462-.908-.62.069-.608.069-.608 1.003.07 1.531 1.03 1.531 1.03.892 1.529 2.341 1.087 2.91.831.092-.646.35-1.086.636-1.336-2.22-.253-4.555-1.11-4.555-4.943 0-1.091.39-1.984 1.029-2.683-.103-.253-.446-1.27.098-2.647 0 0 .84-.269 2.75 1.025A9.578 9.578 0 0112 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.747-1.025 2.747-1.025.546 1.377.203 2.394.1 2.647.64.699 1.028 1.592 1.028 2.683 0 3.842-2.339 4.687-4.566 4.935.359.309.678.919.678 1.852 0 1.336-.012 2.415-.012 2.743 0 .267.18.578.688.48C19.138 20.161 22 16.416 22 12c0-5.523-4.477-10-10-10z`})});exports.GitHubIcon=n,exports.GoogleIcon=t;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
//#region src/shared/assets/social-icons.tsx
|
|
3
|
+
var n = () => /* @__PURE__ */ t("svg", {
|
|
4
|
+
viewBox: "0 0 24 24",
|
|
5
|
+
fill: "currentColor",
|
|
6
|
+
children: [
|
|
7
|
+
/* @__PURE__ */ e("path", {
|
|
8
|
+
d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",
|
|
9
|
+
fill: "#4285F4"
|
|
10
|
+
}),
|
|
11
|
+
/* @__PURE__ */ e("path", {
|
|
12
|
+
d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",
|
|
13
|
+
fill: "#34A853"
|
|
14
|
+
}),
|
|
15
|
+
/* @__PURE__ */ e("path", {
|
|
16
|
+
d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",
|
|
17
|
+
fill: "#FBBC05"
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ e("path", {
|
|
20
|
+
d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",
|
|
21
|
+
fill: "#EA4335"
|
|
22
|
+
})
|
|
23
|
+
]
|
|
24
|
+
}), r = () => /* @__PURE__ */ e("svg", {
|
|
25
|
+
viewBox: "0 0 24 24",
|
|
26
|
+
fill: "currentColor",
|
|
27
|
+
children: /* @__PURE__ */ e("path", { d: "M12 2C6.477 2 2 6.477 2 12c0 4.42 2.865 8.166 6.839 9.49.5.092.682-.217.682-.482 0-.237-.008-.866-.013-1.7-2.782.603-3.369-1.34-3.369-1.34-.454-1.156-1.11-1.462-1.11-1.462-.908-.62.069-.608.069-.608 1.003.07 1.531 1.03 1.531 1.03.892 1.529 2.341 1.087 2.91.831.092-.646.35-1.086.636-1.336-2.22-.253-4.555-1.11-4.555-4.943 0-1.091.39-1.984 1.029-2.683-.103-.253-.446-1.27.098-2.647 0 0 .84-.269 2.75 1.025A9.578 9.578 0 0112 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.747-1.025 2.747-1.025.546 1.377.203 2.394.1 2.647.64.699 1.028 1.592 1.028 2.683 0 3.842-2.339 4.687-4.566 4.935.359.309.678.919.678 1.852 0 1.336-.012 2.415-.012 2.743 0 .267.18.578.688.48C19.138 20.161 22 16.416 22 12c0-5.523-4.477-10-10-10z" })
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { r as GitHubIcon, n as GoogleIcon };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../packages/env/env.manager.cjs`),t=require(`../../../packages/requests/axios/base.connector.cjs`);function n(e,t){if(!{}.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var r=0;function i(e){return`__private_`+ r+++`_`+e}var a=i(`instance`),o=class r extends t{constructor(){super({config:{baseURL:e.ENV_MANAGER.get(`VITE_MAIN_URL`),headers:{"Content-Type":`application/json`},withCredentials:!0}})}static get instance(){return n(r,a)[a]||(n(r,a)[a]=new r),n(r,a)[a]}async healthCheck(){try{let{data:e}=await this.service.get(`/health`);return e.status===`ok`}catch{return!1}}};Object.defineProperty(o,a,{writable:!0,value:void 0});var s=o.instance;exports.MAIN_CONNECTOR=s,exports.MainConnector=o;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as BaseAxiosConnector } from '../../../packages/requests/axios/base.connector';
|
|
2
|
+
export declare class MainConnector extends BaseAxiosConnector {
|
|
3
|
+
#private;
|
|
4
|
+
protected constructor();
|
|
5
|
+
static get instance(): MainConnector;
|
|
6
|
+
healthCheck(): Promise<boolean>;
|
|
7
|
+
}
|
|
8
|
+
export declare const MAIN_CONNECTOR: MainConnector;
|