From 37add6d990a633a41f6bab8a1dcdbdd34ee755ea Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Thu, 28 Dec 2023 22:20:19 -0800 Subject: [PATCH] Rip out more front end code & dependencies then rebuild --- dist/App.js | 1 - dist/App.js.map | 1 - dist/index.js | 92 +- dist/index.js.map | 2 +- dist/models/Choice.js | 4 +- dist/models/Community.js | 4 +- dist/models/Polls.js | 10 +- dist/models/Proposal.js | 4 +- dist/models/Token.js | 76 +- dist/modules/common/BackButton.js | 1 - dist/modules/common/BackButton.js.map | 1 - dist/modules/common/Blockie.js | 1 - dist/modules/common/Blockie.js.map | 1 - dist/modules/common/ChangeNetworkButton.js | 1 - .../modules/common/ChangeNetworkButton.js.map | 1 - dist/modules/common/CloseButton.js | 1 - dist/modules/common/CloseButton.js.map | 1 - dist/modules/common/CopyAddress.js | 1 - dist/modules/common/CopyAddress.js.map | 1 - dist/modules/common/CopyButton.js | 1 - dist/modules/common/CopyButton.js.map | 1 - dist/modules/common/ExternalLink.js | 1 - dist/modules/common/ExternalLink.js.map | 1 - dist/modules/common/Footer.js | 1 - dist/modules/common/Footer.js.map | 1 - dist/modules/common/GridContainer.js | 1 - dist/modules/common/GridContainer.js.map | 1 - dist/modules/common/MainButton.js | 1 - dist/modules/common/MainButton.js.map | 1 - dist/modules/common/Markdown.js | 1 - dist/modules/common/Markdown.js.map | 1 - dist/modules/common/ScrollToTop.js | 1 - dist/modules/common/ScrollToTop.js.map | 1 - dist/modules/common/SmallButton.js | 1 - dist/modules/common/SmallButton.js.map | 1 - dist/modules/common/TitleBlock.js | 1 - dist/modules/common/TitleBlock.js.map | 1 - dist/modules/common/Toolbar.js | 1 - dist/modules/common/Toolbar.js.map | 1 - dist/modules/common/WarningFooter.js | 1 - dist/modules/common/WarningFooter.js.map | 1 - dist/modules/common/hooks/useLocalStorage.js | 1 - .../common/hooks/useLocalStorage.js.map | 1 - dist/modules/common/hooks/useNotification.js | 1 - .../common/hooks/useNotification.js.map | 1 - dist/modules/creator/components/ClaimName.js | 1 - .../creator/components/ClaimName.js.map | 1 - .../creator/components/ConnectWallet.js | 1 - .../creator/components/ConnectWallet.js.map | 1 - .../creator/components/DeploymentLoader.js | 1 - .../components/DeploymentLoader.js.map | 1 - .../creator/components/NavigationBar.js | 1 - .../creator/components/NavigationBar.js.map | 1 - .../creator/components/ProtectedRoute.js | 1 - .../creator/components/ProtectedRoute.js.map | 1 - .../creator/components/SuspenseDots.js | 1 - .../creator/components/SuspenseDots.js.map | 1 - dist/modules/creator/deployment/index.js | 1 - dist/modules/creator/deployment/index.js.map | 1 - dist/modules/creator/deployment/router.js | 1 - dist/modules/creator/deployment/router.js.map | 1 - .../creator/deployment/state/context.js | 1 - .../creator/deployment/state/context.js.map | 1 - .../modules/creator/deployment/state/index.js | 1 - .../creator/deployment/state/index.js.map | 1 - .../modules/creator/deployment/state/types.js | 1 - .../creator/deployment/state/types.js.map | 1 - .../modules/creator/deployment/state/utils.js | 1 - .../creator/deployment/state/utils.js.map | 1 - .../creator/deployment/steps/Config.js | 1 - .../creator/deployment/steps/Config.js.map | 1 - .../creator/deployment/steps/Distribution.js | 1 - .../deployment/steps/Distribution.js.map | 1 - .../creator/deployment/steps/Ownership.js | 1 - .../creator/deployment/steps/Ownership.js.map | 1 - .../creator/deployment/steps/Success.js | 1 - .../creator/deployment/steps/Success.js.map | 1 - .../creator/deployment/steps/Summary.js | 1 - .../creator/deployment/steps/Summary.js.map | 1 - .../modules/creator/deployment/steps/index.js | 1 - .../creator/deployment/steps/index.js.map | 1 - dist/modules/creator/index.js | 1 - dist/modules/creator/index.js.map | 1 - dist/modules/creator/router.js | 1 - dist/modules/creator/router.js.map | 1 - dist/modules/creator/state/context.js | 1 - dist/modules/creator/state/context.js.map | 1 - dist/modules/creator/state/index.js | 1 - dist/modules/creator/state/index.js.map | 1 - dist/modules/creator/state/types.js | 1 - dist/modules/creator/state/types.js.map | 1 - dist/modules/creator/state/utils.js | 1 - dist/modules/creator/state/utils.js.map | 1 - dist/modules/creator/steps/DaoSettings.js | 1 - dist/modules/creator/steps/DaoSettings.js.map | 1 - dist/modules/creator/steps/Governance.js | 2 - dist/modules/creator/steps/Governance.js.map | 1 - dist/modules/creator/steps/Quorum.js | 1 - dist/modules/creator/steps/Quorum.js.map | 1 - dist/modules/creator/steps/Review.js | 1 - dist/modules/creator/steps/Review.js.map | 1 - dist/modules/creator/steps/Summary.js | 1 - dist/modules/creator/steps/Summary.js.map | 1 - dist/modules/creator/steps/Template.js | 1 - dist/modules/creator/steps/Template.js.map | 1 - dist/modules/creator/steps/index.js | 1 - dist/modules/creator/steps/index.js.map | 1 - dist/modules/creator/utils.js | 1 - dist/modules/creator/utils.js.map | 1 - .../explorer/components/AllProposalsList.js | 1 - .../components/AllProposalsList.js.map | 1 - dist/modules/explorer/components/AppTabBar.js | 1 - .../explorer/components/AppTabBar.js.map | 1 - dist/modules/explorer/components/BatchBar.js | 1 - .../explorer/components/BatchBar.js.map | 1 - .../explorer/components/BottomSheet.js | 1 - .../explorer/components/BottomSheet.js.map | 1 - .../components/ChangeNetworkButton.js | 1 - .../components/ChangeNetworkButton.js.map | 1 - .../explorer/components/CodeCollapse.js | 1 - .../explorer/components/CodeCollapse.js.map | 1 - .../explorer/components/ConfigProposalForm.js | 1 - .../components/ConfigProposalForm.js.map | 1 - .../components/ConfigProposalFormLambda.js | 48 - .../ConfigProposalFormLambda.js.map | 1 - .../explorer/components/ContentContainer.js | 1 - .../components/ContentContainer.js.map | 1 - .../modules/explorer/components/CopyButton.js | 1 - .../explorer/components/CopyButton.js.map | 1 - dist/modules/explorer/components/Countdown.js | 1 - .../explorer/components/Countdown.js.map | 1 - .../explorer/components/CycleDescription.js | 1 - .../components/CycleDescription.js.map | 1 - .../explorer/components/DAOStatsRow.js | 1 - .../explorer/components/DAOStatsRow.js.map | 1 - .../DelegationChangeProposalForm.js | 1 - .../DelegationChangeProposalForm.js.map | 1 - dist/modules/explorer/components/Dropdown.js | 1 - .../explorer/components/Dropdown.js.map | 1 - .../explorer/components/EstimatedTime.js | 1 - .../explorer/components/EstimatedTime.js.map | 1 - dist/modules/explorer/components/FA2Symbol.js | 1 - .../explorer/components/FA2Symbol.js.map | 1 - .../explorer/components/FreezeDialog.js | 1 - .../explorer/components/FreezeDialog.js.map | 1 - .../components/GuardianChangeProposalForm.js | 1 - .../GuardianChangeProposalForm.js.map | 1 - dist/modules/explorer/components/Hero.js | 1 - dist/modules/explorer/components/Hero.js.map | 1 - dist/modules/explorer/components/HeroTitle.js | 1 - .../explorer/components/HeroTitle.js.map | 1 - .../modules/explorer/components/ItemDialog.js | 1 - .../explorer/components/ItemDialog.js.map | 1 - dist/modules/explorer/components/NFT.js | 1 - dist/modules/explorer/components/NFT.js.map | 1 - dist/modules/explorer/components/NFTDialog.js | 1 - .../explorer/components/NFTDialog.js.map | 1 - .../explorer/components/NFTTransfer.js | 1 - .../explorer/components/NFTTransfer.js.map | 1 - .../explorer/components/NavigationMenu.js | 1 - .../explorer/components/NavigationMenu.js.map | 1 - .../explorer/components/NetworkSheet.js | 1 - .../explorer/components/NetworkSheet.js.map | 1 - .../components/NewTreasuryProposalDialog.js | 1 - .../NewTreasuryProposalDialog.js.map | 1 - dist/modules/explorer/components/NotFound.js | 1 - .../explorer/components/NotFound.js.map | 1 - .../modules/explorer/components/NotIndexed.js | 1 - .../explorer/components/NotIndexed.js.map | 1 - .../explorer/components/ProgressBar.js | 1 - .../explorer/components/ProgressBar.js.map | 1 - .../components/ProposalActionsDialog.js | 1 - .../components/ProposalActionsDialog.js.map | 1 - .../explorer/components/ProposalForm.js | 1 - .../explorer/components/ProposalForm.js.map | 1 - .../explorer/components/ProposalFormInput.js | 1 - .../components/ProposalFormInput.js.map | 1 - .../components/ProposalFormSendButton.js | 1 - .../components/ProposalFormSendButton.js.map | 1 - .../components/ProposalSelectionMenu.js | 1 - .../components/ProposalSelectionMenu.js.map | 1 - .../components/ProposalSelectionMenuLambda.js | 1 - .../ProposalSelectionMenuLambda.js.map | 1 - .../explorer/components/ProposalTableRow.js | 1 - .../components/ProposalTableRow.js.map | 1 - .../components/ProposalTableRowStatusBadge.js | 1 - .../ProposalTableRowStatusBadge.js.map | 1 - .../components/ProposalTransferBadge.js | 1 - .../components/ProposalTransferBadge.js.map | 1 - .../explorer/components/ProposalsFilter.js | 1 - .../components/ProposalsFilter.js.map | 1 - .../explorer/components/ProposalsList.js | 1 - .../explorer/components/ProposalsList.js.map | 1 - .../explorer/components/ProposalsTable.js | 1 - .../explorer/components/ProposalsTable.js.map | 1 - .../explorer/components/ResponsiveDialog.js | 1 - .../components/ResponsiveDialog.js.map | 1 - .../explorer/components/ResponsiveTable.js | 1 - .../components/ResponsiveTable.js.map | 1 - dist/modules/explorer/components/SideBar.js | 1 - .../explorer/components/SideBar.js.map | 1 - .../explorer/components/StatusBadge.js | 1 - .../explorer/components/StatusBadge.js.map | 1 - dist/modules/explorer/components/TabPanel.js | 1 - .../explorer/components/TabPanel.js.map | 1 - .../explorer/components/TemplateHeader.js | 1 - .../explorer/components/TemplateHeader.js.map | 1 - dist/modules/explorer/components/Toolbar.js | 1 - .../explorer/components/Toolbar.js.map | 1 - .../explorer/components/TransferBadge.js | 1 - .../explorer/components/TransferBadge.js.map | 1 - .../components/UpdateRegistryDialog.js | 1 - .../components/UpdateRegistryDialog.js.map | 1 - dist/modules/explorer/components/UserBadge.js | 1 - .../explorer/components/UserBadge.js.map | 1 - .../explorer/components/UserBalances.js | 1 - .../explorer/components/UserBalances.js.map | 1 - .../explorer/components/UserBalancesWidget.js | 1 - .../components/UserBalancesWidget.js.map | 1 - .../explorer/components/UserMenuSheet.js | 1 - .../explorer/components/UserMenuSheet.js.map | 1 - .../explorer/components/UserProfileName.js | 1 - .../components/UserProfileName.js.map | 1 - .../modules/explorer/components/UsersTable.js | 1 - .../explorer/components/UsersTable.js.map | 1 - .../modules/explorer/components/ViewButton.js | 1 - .../explorer/components/ViewButton.js.map | 1 - .../modules/explorer/components/VoteDialog.js | 1 - .../explorer/components/VoteDialog.js.map | 1 - .../explorer/components/VotersDialog.js | 1 - .../explorer/components/VotersDialog.js.map | 1 - .../explorer/components/VotersProgress.js | 1 - .../explorer/components/VotersProgress.js.map | 1 - .../explorer/components/VotesDetailDialog.js | 1 - .../components/VotesDetailDialog.js.map | 1 - .../modules/explorer/components/VotesTable.js | 1 - .../explorer/components/VotesTable.js.map | 1 - .../explorer/components/WarningDialog.js | 1 - .../explorer/components/WarningDialog.js.map | 1 - .../explorer/components/XTZTransferBadge.js | 1 - .../components/XTZTransferBadge.js.map | 1 - .../explorer/components/styled/ErrorText.js | 1 - .../components/styled/ErrorText.js.map | 1 - .../components/styled/HighlightedBadge.js | 1 - .../components/styled/HighlightedBadge.js.map | 1 - .../explorer/components/styled/InfoIcon.js | 1 - .../components/styled/InfoIcon.js.map | 1 - .../components/styled/ProfileAvatar.js | 1 - .../components/styled/ProfileAvatar.js.map | 1 - .../components/styled/RectangleHeader.js | 1 - .../components/styled/RectangleHeader.js.map | 1 - .../components/styled/SearchLambda.js | 1 - .../components/styled/SearchLambda.js.map | 1 - .../explorer/components/styled/TableHeader.js | 1 - .../components/styled/TableHeader.js.map | 1 - .../components/tables/RowContainer.js | 1 - .../components/tables/RowContainer.js.map | 1 - .../explorer/context/ActionSheets/index.js | 1 - .../context/ActionSheets/index.js.map | 1 - .../explorer/hooks/useCanDropProposal.js | 1 - .../explorer/hooks/useCanDropProposal.js.map | 1 - .../explorer/hooks/useTimeLeftInCycle.js | 1 - .../explorer/hooks/useTimeLeftInCycle.js.map | 1 - dist/modules/explorer/hooks/useVotesStats.js | 1 - .../explorer/hooks/useVotesStats.js.map | 1 - .../pages/Config/components/DAOInfoTable.js | 1 - .../Config/components/DAOInfoTable.js.map | 1 - dist/modules/explorer/pages/Config/index.js | 1 - .../explorer/pages/Config/index.js.map | 1 - .../explorer/pages/DAO/components/Settings.js | 1 - .../pages/DAO/components/Settings.js.map | 1 - dist/modules/explorer/pages/DAO/index.js | 1 - dist/modules/explorer/pages/DAO/index.js.map | 1 - dist/modules/explorer/pages/DAO/router.js | 1 - dist/modules/explorer/pages/DAO/router.js.map | 1 - .../DAOList/components/ConnectMessage.js | 1 - .../DAOList/components/ConnectMessage.js.map | 1 - .../pages/DAOList/components/DAOItem.js | 1 - .../pages/DAOList/components/DAOItem.js.map | 1 - .../pages/DAOList/components/Searchbar.js | 1 - .../pages/DAOList/components/Searchbar.js.map | 1 - dist/modules/explorer/pages/DAOList/index.js | 1 - .../explorer/pages/DAOList/index.js.map | 1 - dist/modules/explorer/pages/NFTs/index.js | 1 - dist/modules/explorer/pages/NFTs/index.js.map | 1 - .../ProposalDetails/components/CodeVisor.js | 1 - .../components/CodeVisor.js.map | 1 - .../components/QuorumThreshold.js | 1 - .../components/QuorumThreshold.js.map | 1 - .../explorer/pages/ProposalDetails/index.js | 1 - .../pages/ProposalDetails/index.js.map | 1 - .../modules/explorer/pages/Proposals/index.js | 1 - .../explorer/pages/Proposals/index.js.map | 1 - .../pages/Registry/components/OverflowCell.js | 1 - .../Registry/components/OverflowCell.js.map | 1 - .../Registry/components/RegistryTable.js | 1 - .../Registry/components/RegistryTable.js.map | 1 - .../pages/Registry/components/UpdatesTable.js | 1 - .../Registry/components/UpdatesTable.js.map | 1 - dist/modules/explorer/pages/Registry/index.js | 1 - .../explorer/pages/Registry/index.js.map | 1 - .../Treasury/components/BalancesTable.js | 1 - .../Treasury/components/BalancesTable.js.map | 1 - .../Treasury/components/TransfersTable.js | 1 - .../Treasury/components/TransfersTable.js.map | 1 - dist/modules/explorer/pages/Treasury/index.js | 1 - .../explorer/pages/Treasury/index.js.map | 1 - dist/modules/explorer/pages/User/index.js | 1 - dist/modules/explorer/pages/User/index.js.map | 1 - dist/modules/explorer/router.js | 1 - dist/modules/explorer/router.js.map | 1 - dist/modules/explorer/utils/FormatNumber.js | 1 - .../explorer/utils/FormatNumber.js.map | 1 - dist/modules/explorer/utils/debounce.js | 1 - dist/modules/explorer/utils/debounce.js.map | 1 - dist/modules/home/FAQ.js | 1 - dist/modules/home/FAQ.js.map | 1 - dist/modules/home/FAQItem.js | 1 - dist/modules/home/FAQItem.js.map | 1 - dist/modules/home/Header.js | 1 - dist/modules/home/Header.js.map | 1 - dist/modules/home/Landing.js | 1 - dist/modules/home/Landing.js.map | 1 - dist/modules/home/LandingHeader.js | 1 - dist/modules/home/LandingHeader.js.map | 1 - dist/modules/home/hooks/useGenerateFAQ.js | 1 - dist/modules/home/hooks/useGenerateFAQ.js.map | 1 - dist/modules/lite/components/BackButton.js | 1 - .../modules/lite/components/BackButton.js.map | 1 - dist/modules/lite/components/GridContainer.js | 1 - .../lite/components/GridContainer.js.map | 1 - dist/modules/lite/components/LinearChart.js | 1 - .../lite/components/LinearChart.js.map | 1 - .../lite/components/hooks/useNotification.js | 1 - .../components/hooks/useNotification.js.map | 1 - .../lite/creator/components/Plugins.js | 1 - .../lite/creator/components/Plugins.js.map | 1 - .../lite/creator/components/UploadAvatar.js | 1 - .../creator/components/UploadAvatar.js.map | 1 - dist/modules/lite/creator/index.js | 1 - dist/modules/lite/creator/index.js.map | 1 - .../lite/explorer/components/BottomSheet.js | 1 - .../explorer/components/BottomSheet.js.map | 1 - .../components/ChangeNetworkButton.js | 1 - .../components/ChangeNetworkButton.js.map | 1 - .../lite/explorer/components/ChoiceDetails.js | 1 - .../explorer/components/ChoiceDetails.js.map | 1 - .../lite/explorer/components/ChoiceItem.js | 1 - .../explorer/components/ChoiceItem.js.map | 1 - .../explorer/components/ChoiceItemSelected.js | 1 - .../components/ChoiceItemSelected.js.map | 1 - .../lite/explorer/components/Choices.js | 1 - .../lite/explorer/components/Choices.js.map | 1 - .../explorer/components/CommunityBadge.js | 1 - .../explorer/components/CommunityBadge.js.map | 1 - .../explorer/components/ContentContainer.js | 1 - .../components/ContentContainer.js.map | 1 - .../lite/explorer/components/CreatorBadge.js | 1 - .../explorer/components/CreatorBadge.js.map | 1 - .../lite/explorer/components/DaoCard.js | 1 - .../lite/explorer/components/DaoCard.js.map | 1 - .../lite/explorer/components/DaoCardDetail.js | 1 - .../explorer/components/DaoCardDetail.js.map | 1 - .../explorer/components/ProposalDetailCard.js | 1 - .../components/ProposalDetailCard.js.map | 1 - .../lite/explorer/components/ProposalList.js | 1 - .../explorer/components/ProposalList.js.map | 1 - .../explorer/components/ProposalTableRow.js | 1 - .../components/ProposalTableRow.js.map | 1 - .../components/ProposalTableRowStatusBadge.js | 1 - .../ProposalTableRowStatusBadge.js.map | 1 - .../explorer/components/UserProfileName.js | 1 - .../components/UserProfileName.js.map | 1 - .../lite/explorer/components/VoteDetails.js | 1 - .../explorer/components/VoteDetails.js.map | 1 - .../lite/explorer/components/VotesDialog.js | 1 - .../explorer/components/VotesDialog.js.map | 1 - .../explorer/components/styled/ErrorText.js | 1 - .../components/styled/ErrorText.js.map | 1 - .../components/styled/HighlightedBadge.js | 1 - .../components/styled/HighlightedBadge.js.map | 1 - .../explorer/components/styled/InfoIcon.js | 1 - .../components/styled/InfoIcon.js.map | 1 - .../components/styled/ProfileAvatar.js | 1 - .../components/styled/ProfileAvatar.js.map | 1 - .../components/styled/RectangleHeader.js | 1 - .../components/styled/RectangleHeader.js.map | 1 - .../explorer/components/styled/TableHeader.js | 1 - .../components/styled/TableHeader.js.map | 1 - .../components/tables/RowContainer.js | 1 - .../components/tables/RowContainer.js.map | 1 - .../context/ActionSheets/explorer/index.js | 1 - .../ActionSheets/explorer/index.js.map | 1 - .../explorer/context/ActionSheets/index.js | 1 - .../context/ActionSheets/index.js.map | 1 - .../lite/explorer/hooks/useCommunity.js | 1 - .../lite/explorer/hooks/useCommunity.js.map | 1 - .../explorer/hooks/useCommunityForContract.js | 1 - .../hooks/useCommunityForContract.js.map | 1 - .../lite/explorer/hooks/useCommunityToken.js | 1 - .../explorer/hooks/useCommunityToken.js.map | 1 - .../lite/explorer/hooks/useHasVoted.js | 1 - .../lite/explorer/hooks/useHasVoted.js.map | 1 - dist/modules/lite/explorer/hooks/usePoll.js | 1 - .../lite/explorer/hooks/usePoll.js.map | 1 - .../lite/explorer/hooks/usePollChoices.js | 1 - .../lite/explorer/hooks/usePollChoices.js.map | 1 - dist/modules/lite/explorer/hooks/usePolls.js | 1 - .../lite/explorer/hooks/usePolls.js.map | 1 - dist/modules/lite/explorer/hooks/useToken.js | 1 - .../lite/explorer/hooks/useToken.js.map | 1 - .../explorer/pages/CommunityDetails/index.js | 1 - .../pages/CommunityDetails/index.js.map | 1 - .../explorer/pages/CommunityDetails/router.js | 1 - .../pages/CommunityDetails/router.js.map | 1 - .../CreateProposal/ProposalCreatorModal.js | 1 - .../ProposalCreatorModal.js.map | 1 - .../CreateProposal/components/ProposalForm.js | 1 - .../components/ProposalForm.js.map | 1 - .../explorer/pages/CreateProposal/index.js | 1 - .../pages/CreateProposal/index.js.map | 1 - .../explorer/pages/ProposalDetails/index.js | 1 - .../pages/ProposalDetails/index.js.map | 1 - dist/modules/lite/explorer/router.js | 1 - dist/modules/lite/explorer/router.js.map | 1 - dist/services/agora/hooks/useTopic.js | 1 - dist/services/agora/hooks/useTopic.js.map | 1 - dist/services/agora/index.js | 1 - dist/services/agora/index.js.map | 1 - dist/services/agora/topics/index.js | 1 - dist/services/agora/topics/index.js.map | 1 - dist/services/agora/topics/types.js | 1 - dist/services/agora/topics/types.js.map | 1 - .../bakingBad/context/TZKTSubscriptions.js | 49 +- dist/services/bakingBad/delegations/index.js | 32 +- .../bakingBad/delegations/index.js.map | 2 +- dist/services/bakingBad/delegations/types.js | 4 +- dist/services/bakingBad/index.js | 9 +- dist/services/bakingBad/lambdas/constants.js | 13 +- dist/services/bakingBad/lambdas/index.js | 55 +- dist/services/bakingBad/lambdas/index.js.map | 2 +- dist/services/bakingBad/lambdas/types.js | 4 +- dist/services/bakingBad/stats/index.js | 39 +- dist/services/bakingBad/stats/index.js.map | 2 +- dist/services/bakingBad/stats/types.js | 4 +- .../services/bakingBad/tokenBalances/index.js | 180 +- .../bakingBad/tokenBalances/index.js.map | 2 +- .../services/bakingBad/tokenBalances/types.js | 4 +- dist/services/bakingBad/transfers/index.js | 74 +- .../services/bakingBad/transfers/index.js.map | 2 +- dist/services/bakingBad/transfers/types.js | 4 +- dist/services/baseDAODocker/index.js | 36 +- dist/services/baseDAODocker/index.js.map | 2 +- dist/services/baseDAODocker/mappers.js | 40 +- dist/services/baseDAODocker/types.js | 4 +- dist/services/beacon/actions.js | 10 +- dist/services/beacon/context.js | 65 +- dist/services/beacon/hooks/useTezos.js | 15 +- dist/services/beacon/hooks/useTezos.js.map | 2 +- dist/services/beacon/index.js | 21 +- dist/services/beacon/reducer.js | 25 +- dist/services/beacon/utils.js | 82 +- dist/services/config/constants.js | 31 +- dist/services/config/env.js | 11 +- dist/services/config/hooks/featureFlags.js | 12 +- dist/services/config/hooks/index.js | 19 +- dist/services/config/index.js | 21 +- dist/services/contracts/baseDAO/class.js | 217 +- dist/services/contracts/baseDAO/class.js.map | 2 +- .../baseDAO/hooks/useDropAllExpired.js | 1 - .../baseDAO/hooks/useDropAllExpired.js.map | 1 - .../baseDAO/hooks/useDropProposal.js | 1 - .../baseDAO/hooks/useDropProposal.js.map | 1 - .../contracts/baseDAO/hooks/useFlush.js | 1 - .../contracts/baseDAO/hooks/useFlush.js.map | 1 - .../contracts/baseDAO/hooks/useFreeze.js | 1 - .../contracts/baseDAO/hooks/useFreeze.js.map | 1 - .../baseDAO/hooks/useLambdaAddPropose.js | 1 - .../baseDAO/hooks/useLambdaAddPropose.js.map | 1 - .../baseDAO/hooks/useLambdaExecutePropose.js | 1 - .../hooks/useLambdaExecutePropose.js.map | 1 - .../baseDAO/hooks/useLambdaRemovePropose.js | 1 - .../hooks/useLambdaRemovePropose.js.map | 1 - .../contracts/baseDAO/hooks/useOriginate.js | 1 - .../baseDAO/hooks/useOriginate.js.map | 1 - .../baseDAO/hooks/useProposeConfigChange.js | 1 - .../hooks/useProposeConfigChange.js.map | 1 - .../hooks/useProposeDelegationChange.js | 1 - .../hooks/useProposeDelegationChange.js.map | 1 - .../baseDAO/hooks/useProposeGuardianChange.js | 1 - .../hooks/useProposeGuardianChange.js.map | 1 - .../baseDAO/hooks/useRegistryPropose.js | 1 - .../baseDAO/hooks/useRegistryPropose.js.map | 1 - .../contracts/baseDAO/hooks/useSendXTZ.js | 1 - .../contracts/baseDAO/hooks/useSendXTZ.js.map | 1 - .../baseDAO/hooks/useTreasuryPropose.js | 1 - .../baseDAO/hooks/useTreasuryPropose.js.map | 1 - .../hooks/useUnstakeFromAllProposals.js | 1 - .../hooks/useUnstakeFromAllProposals.js.map | 1 - .../baseDAO/hooks/useUnstakeVotes.js | 1 - .../baseDAO/hooks/useUnstakeVotes.js.map | 1 - .../contracts/baseDAO/hooks/useVote.js | 1 - .../contracts/baseDAO/hooks/useVote.js.map | 1 - dist/services/contracts/baseDAO/index.js | 22 +- .../contracts/baseDAO/lambdaDAO/index.js | 171 +- .../baseDAO/lambdaDAO/michelson/propose.js | 7 +- .../lambdaDAO/michelson/proposelambda.js | 7 +- .../contracts/baseDAO/lambdaDAO/types.js | 4 +- .../contracts/baseDAO/michelson/baseDAO.js | 7 +- .../contracts/baseDAO/michelson/lambdaDAO.js | 7 +- dist/services/contracts/baseDAO/state.js | 77 + dist/services/contracts/baseDAO/state.js.map | 1 + dist/services/contracts/baseDAO/types.js | 4 +- dist/services/contracts/baseDAO/utils.js | 71 +- .../contracts/metadataCarrier/code.js | 8 +- .../contracts/metadataCarrier/deploy.js | 56 +- .../contracts/metadataCarrier/index.js | 35 +- .../contracts/metadataCarrier/metadata.js | 581 +- .../contracts/metadataCarrier/types.js | 4 +- .../contracts/token/assets/MultiAsset.json | 4592 ----- .../contracts/token/hooks/useToken.js | 1 - .../contracts/token/hooks/useToken.js.map | 1 - dist/services/contracts/token/index.js | 1 - dist/services/contracts/token/index.js.map | 1 - dist/services/contracts/utils.js | 61 +- dist/services/ipfs/index.js | 6 +- dist/services/lite/utils.js | 1 - dist/services/lite/utils.js.map | 1 - .../services/services/dao/hooks/useDAO.js.map | 2 +- .../services/dao/mappers/proposal/index.js | 97 +- .../services/dao/mappers/proposal/types.js | 256 +- .../dao/mappers/proposal/types.js.map | 2 +- dist/services/services/dao/queries.js | 24 +- dist/services/services/dao/services.js | 68 +- dist/services/services/graphql.js | 29 +- dist/services/services/lite/lite-services.js | 168 +- .../services/lite/lite-services.js.map | 2 +- dist/services/services/types.js | 4 +- dist/services/tzprofiles/claims/index.js | 1 - dist/services/tzprofiles/claims/index.js.map | 1 - dist/services/tzprofiles/claims/types.js | 1 - dist/services/tzprofiles/claims/types.js.map | 1 - .../tzprofiles/hooks/useProfileClaim.js | 1 - .../tzprofiles/hooks/useProfileClaim.js.map | 1 - dist/services/tzprofiles/index.js | 1 - dist/services/tzprofiles/index.js.map | 1 - dist/services/utils/utils.js | 194 +- dist/services/utils/utils.js.map | 2 +- dist/theme/index.js | 1 - dist/theme/index.js.map | 1 - dist/theme/legacy.js | 1 - dist/theme/legacy.js.map | 1 - dist/utils.js | 19 +- package.json | 29 - .../bakingBad/context/TZKTSubscriptions.tsx | 53 - src/services/beacon/hooks/useTezos.ts | 95 +- .../baseDAO/hooks/useBlockchainInfo.ts | 9 - .../contracts/baseDAO/hooks/useCycleInfo.ts | 14 - .../contracts/baseDAO/hooks/useDAOHoldings.ts | 65 - .../contracts/baseDAO/hooks/useDAOLambda.ts | 23 - .../contracts/baseDAO/hooks/useDAOLambdas.ts | 23 - .../contracts/baseDAO/hooks/useDelegate.ts | 27 - .../baseDAO/hooks/useTezosBalance.ts | 24 - .../baseDAO/hooks/useTokenHoldersWithVotes.ts | 44 - .../baseDAO/hooks/useTokenMetadata.ts | 19 - .../contracts/baseDAO/hooks/useTransfers.ts | 59 - src/services/services/dao/hooks/useAllDAOs.ts | 19 - src/services/services/dao/hooks/useDAO.ts | 155 - .../services/dao/hooks/useProposal.ts | 34 - .../services/dao/hooks/useProposals.ts | 35 - yarn.lock | 16609 ++++------------ 571 files changed, 7113 insertions(+), 18625 deletions(-) delete mode 100644 dist/App.js delete mode 100644 dist/App.js.map delete mode 100644 dist/modules/common/BackButton.js delete mode 100644 dist/modules/common/BackButton.js.map delete mode 100644 dist/modules/common/Blockie.js delete mode 100644 dist/modules/common/Blockie.js.map delete mode 100644 dist/modules/common/ChangeNetworkButton.js delete mode 100644 dist/modules/common/ChangeNetworkButton.js.map delete mode 100644 dist/modules/common/CloseButton.js delete mode 100644 dist/modules/common/CloseButton.js.map delete mode 100644 dist/modules/common/CopyAddress.js delete mode 100644 dist/modules/common/CopyAddress.js.map delete mode 100644 dist/modules/common/CopyButton.js delete mode 100644 dist/modules/common/CopyButton.js.map delete mode 100644 dist/modules/common/ExternalLink.js delete mode 100644 dist/modules/common/ExternalLink.js.map delete mode 100644 dist/modules/common/Footer.js delete mode 100644 dist/modules/common/Footer.js.map delete mode 100644 dist/modules/common/GridContainer.js delete mode 100644 dist/modules/common/GridContainer.js.map delete mode 100644 dist/modules/common/MainButton.js delete mode 100644 dist/modules/common/MainButton.js.map delete mode 100644 dist/modules/common/Markdown.js delete mode 100644 dist/modules/common/Markdown.js.map delete mode 100644 dist/modules/common/ScrollToTop.js delete mode 100644 dist/modules/common/ScrollToTop.js.map delete mode 100644 dist/modules/common/SmallButton.js delete mode 100644 dist/modules/common/SmallButton.js.map delete mode 100644 dist/modules/common/TitleBlock.js delete mode 100644 dist/modules/common/TitleBlock.js.map delete mode 100644 dist/modules/common/Toolbar.js delete mode 100644 dist/modules/common/Toolbar.js.map delete mode 100644 dist/modules/common/WarningFooter.js delete mode 100644 dist/modules/common/WarningFooter.js.map delete mode 100644 dist/modules/common/hooks/useLocalStorage.js delete mode 100644 dist/modules/common/hooks/useLocalStorage.js.map delete mode 100644 dist/modules/common/hooks/useNotification.js delete mode 100644 dist/modules/common/hooks/useNotification.js.map delete mode 100644 dist/modules/creator/components/ClaimName.js delete mode 100644 dist/modules/creator/components/ClaimName.js.map delete mode 100644 dist/modules/creator/components/ConnectWallet.js delete mode 100644 dist/modules/creator/components/ConnectWallet.js.map delete mode 100644 dist/modules/creator/components/DeploymentLoader.js delete mode 100644 dist/modules/creator/components/DeploymentLoader.js.map delete mode 100644 dist/modules/creator/components/NavigationBar.js delete mode 100644 dist/modules/creator/components/NavigationBar.js.map delete mode 100644 dist/modules/creator/components/ProtectedRoute.js delete mode 100644 dist/modules/creator/components/ProtectedRoute.js.map delete mode 100644 dist/modules/creator/components/SuspenseDots.js delete mode 100644 dist/modules/creator/components/SuspenseDots.js.map delete mode 100644 dist/modules/creator/deployment/index.js delete mode 100644 dist/modules/creator/deployment/index.js.map delete mode 100644 dist/modules/creator/deployment/router.js delete mode 100644 dist/modules/creator/deployment/router.js.map delete mode 100644 dist/modules/creator/deployment/state/context.js delete mode 100644 dist/modules/creator/deployment/state/context.js.map delete mode 100644 dist/modules/creator/deployment/state/index.js delete mode 100644 dist/modules/creator/deployment/state/index.js.map delete mode 100644 dist/modules/creator/deployment/state/types.js delete mode 100644 dist/modules/creator/deployment/state/types.js.map delete mode 100644 dist/modules/creator/deployment/state/utils.js delete mode 100644 dist/modules/creator/deployment/state/utils.js.map delete mode 100644 dist/modules/creator/deployment/steps/Config.js delete mode 100644 dist/modules/creator/deployment/steps/Config.js.map delete mode 100644 dist/modules/creator/deployment/steps/Distribution.js delete mode 100644 dist/modules/creator/deployment/steps/Distribution.js.map delete mode 100644 dist/modules/creator/deployment/steps/Ownership.js delete mode 100644 dist/modules/creator/deployment/steps/Ownership.js.map delete mode 100644 dist/modules/creator/deployment/steps/Success.js delete mode 100644 dist/modules/creator/deployment/steps/Success.js.map delete mode 100644 dist/modules/creator/deployment/steps/Summary.js delete mode 100644 dist/modules/creator/deployment/steps/Summary.js.map delete mode 100644 dist/modules/creator/deployment/steps/index.js delete mode 100644 dist/modules/creator/deployment/steps/index.js.map delete mode 100644 dist/modules/creator/index.js delete mode 100644 dist/modules/creator/index.js.map delete mode 100644 dist/modules/creator/router.js delete mode 100644 dist/modules/creator/router.js.map delete mode 100644 dist/modules/creator/state/context.js delete mode 100644 dist/modules/creator/state/context.js.map delete mode 100644 dist/modules/creator/state/index.js delete mode 100644 dist/modules/creator/state/index.js.map delete mode 100644 dist/modules/creator/state/types.js delete mode 100644 dist/modules/creator/state/types.js.map delete mode 100644 dist/modules/creator/state/utils.js delete mode 100644 dist/modules/creator/state/utils.js.map delete mode 100644 dist/modules/creator/steps/DaoSettings.js delete mode 100644 dist/modules/creator/steps/DaoSettings.js.map delete mode 100644 dist/modules/creator/steps/Governance.js delete mode 100644 dist/modules/creator/steps/Governance.js.map delete mode 100644 dist/modules/creator/steps/Quorum.js delete mode 100644 dist/modules/creator/steps/Quorum.js.map delete mode 100644 dist/modules/creator/steps/Review.js delete mode 100644 dist/modules/creator/steps/Review.js.map delete mode 100644 dist/modules/creator/steps/Summary.js delete mode 100644 dist/modules/creator/steps/Summary.js.map delete mode 100644 dist/modules/creator/steps/Template.js delete mode 100644 dist/modules/creator/steps/Template.js.map delete mode 100644 dist/modules/creator/steps/index.js delete mode 100644 dist/modules/creator/steps/index.js.map delete mode 100644 dist/modules/creator/utils.js delete mode 100644 dist/modules/creator/utils.js.map delete mode 100644 dist/modules/explorer/components/AllProposalsList.js delete mode 100644 dist/modules/explorer/components/AllProposalsList.js.map delete mode 100644 dist/modules/explorer/components/AppTabBar.js delete mode 100644 dist/modules/explorer/components/AppTabBar.js.map delete mode 100644 dist/modules/explorer/components/BatchBar.js delete mode 100644 dist/modules/explorer/components/BatchBar.js.map delete mode 100644 dist/modules/explorer/components/BottomSheet.js delete mode 100644 dist/modules/explorer/components/BottomSheet.js.map delete mode 100644 dist/modules/explorer/components/ChangeNetworkButton.js delete mode 100644 dist/modules/explorer/components/ChangeNetworkButton.js.map delete mode 100644 dist/modules/explorer/components/CodeCollapse.js delete mode 100644 dist/modules/explorer/components/CodeCollapse.js.map delete mode 100644 dist/modules/explorer/components/ConfigProposalForm.js delete mode 100644 dist/modules/explorer/components/ConfigProposalForm.js.map delete mode 100644 dist/modules/explorer/components/ConfigProposalFormLambda.js delete mode 100644 dist/modules/explorer/components/ConfigProposalFormLambda.js.map delete mode 100644 dist/modules/explorer/components/ContentContainer.js delete mode 100644 dist/modules/explorer/components/ContentContainer.js.map delete mode 100644 dist/modules/explorer/components/CopyButton.js delete mode 100644 dist/modules/explorer/components/CopyButton.js.map delete mode 100644 dist/modules/explorer/components/Countdown.js delete mode 100644 dist/modules/explorer/components/Countdown.js.map delete mode 100644 dist/modules/explorer/components/CycleDescription.js delete mode 100644 dist/modules/explorer/components/CycleDescription.js.map delete mode 100644 dist/modules/explorer/components/DAOStatsRow.js delete mode 100644 dist/modules/explorer/components/DAOStatsRow.js.map delete mode 100644 dist/modules/explorer/components/DelegationChangeProposalForm.js delete mode 100644 dist/modules/explorer/components/DelegationChangeProposalForm.js.map delete mode 100644 dist/modules/explorer/components/Dropdown.js delete mode 100644 dist/modules/explorer/components/Dropdown.js.map delete mode 100644 dist/modules/explorer/components/EstimatedTime.js delete mode 100644 dist/modules/explorer/components/EstimatedTime.js.map delete mode 100644 dist/modules/explorer/components/FA2Symbol.js delete mode 100644 dist/modules/explorer/components/FA2Symbol.js.map delete mode 100644 dist/modules/explorer/components/FreezeDialog.js delete mode 100644 dist/modules/explorer/components/FreezeDialog.js.map delete mode 100644 dist/modules/explorer/components/GuardianChangeProposalForm.js delete mode 100644 dist/modules/explorer/components/GuardianChangeProposalForm.js.map delete mode 100644 dist/modules/explorer/components/Hero.js delete mode 100644 dist/modules/explorer/components/Hero.js.map delete mode 100644 dist/modules/explorer/components/HeroTitle.js delete mode 100644 dist/modules/explorer/components/HeroTitle.js.map delete mode 100644 dist/modules/explorer/components/ItemDialog.js delete mode 100644 dist/modules/explorer/components/ItemDialog.js.map delete mode 100644 dist/modules/explorer/components/NFT.js delete mode 100644 dist/modules/explorer/components/NFT.js.map delete mode 100644 dist/modules/explorer/components/NFTDialog.js delete mode 100644 dist/modules/explorer/components/NFTDialog.js.map delete mode 100644 dist/modules/explorer/components/NFTTransfer.js delete mode 100644 dist/modules/explorer/components/NFTTransfer.js.map delete mode 100644 dist/modules/explorer/components/NavigationMenu.js delete mode 100644 dist/modules/explorer/components/NavigationMenu.js.map delete mode 100644 dist/modules/explorer/components/NetworkSheet.js delete mode 100644 dist/modules/explorer/components/NetworkSheet.js.map delete mode 100644 dist/modules/explorer/components/NewTreasuryProposalDialog.js delete mode 100644 dist/modules/explorer/components/NewTreasuryProposalDialog.js.map delete mode 100644 dist/modules/explorer/components/NotFound.js delete mode 100644 dist/modules/explorer/components/NotFound.js.map delete mode 100644 dist/modules/explorer/components/NotIndexed.js delete mode 100644 dist/modules/explorer/components/NotIndexed.js.map delete mode 100644 dist/modules/explorer/components/ProgressBar.js delete mode 100644 dist/modules/explorer/components/ProgressBar.js.map delete mode 100644 dist/modules/explorer/components/ProposalActionsDialog.js delete mode 100644 dist/modules/explorer/components/ProposalActionsDialog.js.map delete mode 100644 dist/modules/explorer/components/ProposalForm.js delete mode 100644 dist/modules/explorer/components/ProposalForm.js.map delete mode 100644 dist/modules/explorer/components/ProposalFormInput.js delete mode 100644 dist/modules/explorer/components/ProposalFormInput.js.map delete mode 100644 dist/modules/explorer/components/ProposalFormSendButton.js delete mode 100644 dist/modules/explorer/components/ProposalFormSendButton.js.map delete mode 100644 dist/modules/explorer/components/ProposalSelectionMenu.js delete mode 100644 dist/modules/explorer/components/ProposalSelectionMenu.js.map delete mode 100644 dist/modules/explorer/components/ProposalSelectionMenuLambda.js delete mode 100644 dist/modules/explorer/components/ProposalSelectionMenuLambda.js.map delete mode 100644 dist/modules/explorer/components/ProposalTableRow.js delete mode 100644 dist/modules/explorer/components/ProposalTableRow.js.map delete mode 100644 dist/modules/explorer/components/ProposalTableRowStatusBadge.js delete mode 100644 dist/modules/explorer/components/ProposalTableRowStatusBadge.js.map delete mode 100644 dist/modules/explorer/components/ProposalTransferBadge.js delete mode 100644 dist/modules/explorer/components/ProposalTransferBadge.js.map delete mode 100644 dist/modules/explorer/components/ProposalsFilter.js delete mode 100644 dist/modules/explorer/components/ProposalsFilter.js.map delete mode 100644 dist/modules/explorer/components/ProposalsList.js delete mode 100644 dist/modules/explorer/components/ProposalsList.js.map delete mode 100644 dist/modules/explorer/components/ProposalsTable.js delete mode 100644 dist/modules/explorer/components/ProposalsTable.js.map delete mode 100644 dist/modules/explorer/components/ResponsiveDialog.js delete mode 100644 dist/modules/explorer/components/ResponsiveDialog.js.map delete mode 100644 dist/modules/explorer/components/ResponsiveTable.js delete mode 100644 dist/modules/explorer/components/ResponsiveTable.js.map delete mode 100644 dist/modules/explorer/components/SideBar.js delete mode 100644 dist/modules/explorer/components/SideBar.js.map delete mode 100644 dist/modules/explorer/components/StatusBadge.js delete mode 100644 dist/modules/explorer/components/StatusBadge.js.map delete mode 100644 dist/modules/explorer/components/TabPanel.js delete mode 100644 dist/modules/explorer/components/TabPanel.js.map delete mode 100644 dist/modules/explorer/components/TemplateHeader.js delete mode 100644 dist/modules/explorer/components/TemplateHeader.js.map delete mode 100644 dist/modules/explorer/components/Toolbar.js delete mode 100644 dist/modules/explorer/components/Toolbar.js.map delete mode 100644 dist/modules/explorer/components/TransferBadge.js delete mode 100644 dist/modules/explorer/components/TransferBadge.js.map delete mode 100644 dist/modules/explorer/components/UpdateRegistryDialog.js delete mode 100644 dist/modules/explorer/components/UpdateRegistryDialog.js.map delete mode 100644 dist/modules/explorer/components/UserBadge.js delete mode 100644 dist/modules/explorer/components/UserBadge.js.map delete mode 100644 dist/modules/explorer/components/UserBalances.js delete mode 100644 dist/modules/explorer/components/UserBalances.js.map delete mode 100644 dist/modules/explorer/components/UserBalancesWidget.js delete mode 100644 dist/modules/explorer/components/UserBalancesWidget.js.map delete mode 100644 dist/modules/explorer/components/UserMenuSheet.js delete mode 100644 dist/modules/explorer/components/UserMenuSheet.js.map delete mode 100644 dist/modules/explorer/components/UserProfileName.js delete mode 100644 dist/modules/explorer/components/UserProfileName.js.map delete mode 100644 dist/modules/explorer/components/UsersTable.js delete mode 100644 dist/modules/explorer/components/UsersTable.js.map delete mode 100644 dist/modules/explorer/components/ViewButton.js delete mode 100644 dist/modules/explorer/components/ViewButton.js.map delete mode 100644 dist/modules/explorer/components/VoteDialog.js delete mode 100644 dist/modules/explorer/components/VoteDialog.js.map delete mode 100644 dist/modules/explorer/components/VotersDialog.js delete mode 100644 dist/modules/explorer/components/VotersDialog.js.map delete mode 100644 dist/modules/explorer/components/VotersProgress.js delete mode 100644 dist/modules/explorer/components/VotersProgress.js.map delete mode 100644 dist/modules/explorer/components/VotesDetailDialog.js delete mode 100644 dist/modules/explorer/components/VotesDetailDialog.js.map delete mode 100644 dist/modules/explorer/components/VotesTable.js delete mode 100644 dist/modules/explorer/components/VotesTable.js.map delete mode 100644 dist/modules/explorer/components/WarningDialog.js delete mode 100644 dist/modules/explorer/components/WarningDialog.js.map delete mode 100644 dist/modules/explorer/components/XTZTransferBadge.js delete mode 100644 dist/modules/explorer/components/XTZTransferBadge.js.map delete mode 100644 dist/modules/explorer/components/styled/ErrorText.js delete mode 100644 dist/modules/explorer/components/styled/ErrorText.js.map delete mode 100644 dist/modules/explorer/components/styled/HighlightedBadge.js delete mode 100644 dist/modules/explorer/components/styled/HighlightedBadge.js.map delete mode 100644 dist/modules/explorer/components/styled/InfoIcon.js delete mode 100644 dist/modules/explorer/components/styled/InfoIcon.js.map delete mode 100644 dist/modules/explorer/components/styled/ProfileAvatar.js delete mode 100644 dist/modules/explorer/components/styled/ProfileAvatar.js.map delete mode 100644 dist/modules/explorer/components/styled/RectangleHeader.js delete mode 100644 dist/modules/explorer/components/styled/RectangleHeader.js.map delete mode 100644 dist/modules/explorer/components/styled/SearchLambda.js delete mode 100644 dist/modules/explorer/components/styled/SearchLambda.js.map delete mode 100644 dist/modules/explorer/components/styled/TableHeader.js delete mode 100644 dist/modules/explorer/components/styled/TableHeader.js.map delete mode 100644 dist/modules/explorer/components/tables/RowContainer.js delete mode 100644 dist/modules/explorer/components/tables/RowContainer.js.map delete mode 100644 dist/modules/explorer/context/ActionSheets/index.js delete mode 100644 dist/modules/explorer/context/ActionSheets/index.js.map delete mode 100644 dist/modules/explorer/hooks/useCanDropProposal.js delete mode 100644 dist/modules/explorer/hooks/useCanDropProposal.js.map delete mode 100644 dist/modules/explorer/hooks/useTimeLeftInCycle.js delete mode 100644 dist/modules/explorer/hooks/useTimeLeftInCycle.js.map delete mode 100644 dist/modules/explorer/hooks/useVotesStats.js delete mode 100644 dist/modules/explorer/hooks/useVotesStats.js.map delete mode 100644 dist/modules/explorer/pages/Config/components/DAOInfoTable.js delete mode 100644 dist/modules/explorer/pages/Config/components/DAOInfoTable.js.map delete mode 100644 dist/modules/explorer/pages/Config/index.js delete mode 100644 dist/modules/explorer/pages/Config/index.js.map delete mode 100644 dist/modules/explorer/pages/DAO/components/Settings.js delete mode 100644 dist/modules/explorer/pages/DAO/components/Settings.js.map delete mode 100644 dist/modules/explorer/pages/DAO/index.js delete mode 100644 dist/modules/explorer/pages/DAO/index.js.map delete mode 100644 dist/modules/explorer/pages/DAO/router.js delete mode 100644 dist/modules/explorer/pages/DAO/router.js.map delete mode 100644 dist/modules/explorer/pages/DAOList/components/ConnectMessage.js delete mode 100644 dist/modules/explorer/pages/DAOList/components/ConnectMessage.js.map delete mode 100644 dist/modules/explorer/pages/DAOList/components/DAOItem.js delete mode 100644 dist/modules/explorer/pages/DAOList/components/DAOItem.js.map delete mode 100644 dist/modules/explorer/pages/DAOList/components/Searchbar.js delete mode 100644 dist/modules/explorer/pages/DAOList/components/Searchbar.js.map delete mode 100644 dist/modules/explorer/pages/DAOList/index.js delete mode 100644 dist/modules/explorer/pages/DAOList/index.js.map delete mode 100644 dist/modules/explorer/pages/NFTs/index.js delete mode 100644 dist/modules/explorer/pages/NFTs/index.js.map delete mode 100644 dist/modules/explorer/pages/ProposalDetails/components/CodeVisor.js delete mode 100644 dist/modules/explorer/pages/ProposalDetails/components/CodeVisor.js.map delete mode 100644 dist/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.js delete mode 100644 dist/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.js.map delete mode 100644 dist/modules/explorer/pages/ProposalDetails/index.js delete mode 100644 dist/modules/explorer/pages/ProposalDetails/index.js.map delete mode 100644 dist/modules/explorer/pages/Proposals/index.js delete mode 100644 dist/modules/explorer/pages/Proposals/index.js.map delete mode 100644 dist/modules/explorer/pages/Registry/components/OverflowCell.js delete mode 100644 dist/modules/explorer/pages/Registry/components/OverflowCell.js.map delete mode 100644 dist/modules/explorer/pages/Registry/components/RegistryTable.js delete mode 100644 dist/modules/explorer/pages/Registry/components/RegistryTable.js.map delete mode 100644 dist/modules/explorer/pages/Registry/components/UpdatesTable.js delete mode 100644 dist/modules/explorer/pages/Registry/components/UpdatesTable.js.map delete mode 100644 dist/modules/explorer/pages/Registry/index.js delete mode 100644 dist/modules/explorer/pages/Registry/index.js.map delete mode 100644 dist/modules/explorer/pages/Treasury/components/BalancesTable.js delete mode 100644 dist/modules/explorer/pages/Treasury/components/BalancesTable.js.map delete mode 100644 dist/modules/explorer/pages/Treasury/components/TransfersTable.js delete mode 100644 dist/modules/explorer/pages/Treasury/components/TransfersTable.js.map delete mode 100644 dist/modules/explorer/pages/Treasury/index.js delete mode 100644 dist/modules/explorer/pages/Treasury/index.js.map delete mode 100644 dist/modules/explorer/pages/User/index.js delete mode 100644 dist/modules/explorer/pages/User/index.js.map delete mode 100644 dist/modules/explorer/router.js delete mode 100644 dist/modules/explorer/router.js.map delete mode 100644 dist/modules/explorer/utils/FormatNumber.js delete mode 100644 dist/modules/explorer/utils/FormatNumber.js.map delete mode 100644 dist/modules/explorer/utils/debounce.js delete mode 100644 dist/modules/explorer/utils/debounce.js.map delete mode 100644 dist/modules/home/FAQ.js delete mode 100644 dist/modules/home/FAQ.js.map delete mode 100644 dist/modules/home/FAQItem.js delete mode 100644 dist/modules/home/FAQItem.js.map delete mode 100644 dist/modules/home/Header.js delete mode 100644 dist/modules/home/Header.js.map delete mode 100644 dist/modules/home/Landing.js delete mode 100644 dist/modules/home/Landing.js.map delete mode 100644 dist/modules/home/LandingHeader.js delete mode 100644 dist/modules/home/LandingHeader.js.map delete mode 100644 dist/modules/home/hooks/useGenerateFAQ.js delete mode 100644 dist/modules/home/hooks/useGenerateFAQ.js.map delete mode 100644 dist/modules/lite/components/BackButton.js delete mode 100644 dist/modules/lite/components/BackButton.js.map delete mode 100644 dist/modules/lite/components/GridContainer.js delete mode 100644 dist/modules/lite/components/GridContainer.js.map delete mode 100644 dist/modules/lite/components/LinearChart.js delete mode 100644 dist/modules/lite/components/LinearChart.js.map delete mode 100644 dist/modules/lite/components/hooks/useNotification.js delete mode 100644 dist/modules/lite/components/hooks/useNotification.js.map delete mode 100644 dist/modules/lite/creator/components/Plugins.js delete mode 100644 dist/modules/lite/creator/components/Plugins.js.map delete mode 100644 dist/modules/lite/creator/components/UploadAvatar.js delete mode 100644 dist/modules/lite/creator/components/UploadAvatar.js.map delete mode 100644 dist/modules/lite/creator/index.js delete mode 100644 dist/modules/lite/creator/index.js.map delete mode 100644 dist/modules/lite/explorer/components/BottomSheet.js delete mode 100644 dist/modules/lite/explorer/components/BottomSheet.js.map delete mode 100644 dist/modules/lite/explorer/components/ChangeNetworkButton.js delete mode 100644 dist/modules/lite/explorer/components/ChangeNetworkButton.js.map delete mode 100644 dist/modules/lite/explorer/components/ChoiceDetails.js delete mode 100644 dist/modules/lite/explorer/components/ChoiceDetails.js.map delete mode 100644 dist/modules/lite/explorer/components/ChoiceItem.js delete mode 100644 dist/modules/lite/explorer/components/ChoiceItem.js.map delete mode 100644 dist/modules/lite/explorer/components/ChoiceItemSelected.js delete mode 100644 dist/modules/lite/explorer/components/ChoiceItemSelected.js.map delete mode 100644 dist/modules/lite/explorer/components/Choices.js delete mode 100644 dist/modules/lite/explorer/components/Choices.js.map delete mode 100644 dist/modules/lite/explorer/components/CommunityBadge.js delete mode 100644 dist/modules/lite/explorer/components/CommunityBadge.js.map delete mode 100644 dist/modules/lite/explorer/components/ContentContainer.js delete mode 100644 dist/modules/lite/explorer/components/ContentContainer.js.map delete mode 100644 dist/modules/lite/explorer/components/CreatorBadge.js delete mode 100644 dist/modules/lite/explorer/components/CreatorBadge.js.map delete mode 100644 dist/modules/lite/explorer/components/DaoCard.js delete mode 100644 dist/modules/lite/explorer/components/DaoCard.js.map delete mode 100644 dist/modules/lite/explorer/components/DaoCardDetail.js delete mode 100644 dist/modules/lite/explorer/components/DaoCardDetail.js.map delete mode 100644 dist/modules/lite/explorer/components/ProposalDetailCard.js delete mode 100644 dist/modules/lite/explorer/components/ProposalDetailCard.js.map delete mode 100644 dist/modules/lite/explorer/components/ProposalList.js delete mode 100644 dist/modules/lite/explorer/components/ProposalList.js.map delete mode 100644 dist/modules/lite/explorer/components/ProposalTableRow.js delete mode 100644 dist/modules/lite/explorer/components/ProposalTableRow.js.map delete mode 100644 dist/modules/lite/explorer/components/ProposalTableRowStatusBadge.js delete mode 100644 dist/modules/lite/explorer/components/ProposalTableRowStatusBadge.js.map delete mode 100644 dist/modules/lite/explorer/components/UserProfileName.js delete mode 100644 dist/modules/lite/explorer/components/UserProfileName.js.map delete mode 100644 dist/modules/lite/explorer/components/VoteDetails.js delete mode 100644 dist/modules/lite/explorer/components/VoteDetails.js.map delete mode 100644 dist/modules/lite/explorer/components/VotesDialog.js delete mode 100644 dist/modules/lite/explorer/components/VotesDialog.js.map delete mode 100644 dist/modules/lite/explorer/components/styled/ErrorText.js delete mode 100644 dist/modules/lite/explorer/components/styled/ErrorText.js.map delete mode 100644 dist/modules/lite/explorer/components/styled/HighlightedBadge.js delete mode 100644 dist/modules/lite/explorer/components/styled/HighlightedBadge.js.map delete mode 100644 dist/modules/lite/explorer/components/styled/InfoIcon.js delete mode 100644 dist/modules/lite/explorer/components/styled/InfoIcon.js.map delete mode 100644 dist/modules/lite/explorer/components/styled/ProfileAvatar.js delete mode 100644 dist/modules/lite/explorer/components/styled/ProfileAvatar.js.map delete mode 100644 dist/modules/lite/explorer/components/styled/RectangleHeader.js delete mode 100644 dist/modules/lite/explorer/components/styled/RectangleHeader.js.map delete mode 100644 dist/modules/lite/explorer/components/styled/TableHeader.js delete mode 100644 dist/modules/lite/explorer/components/styled/TableHeader.js.map delete mode 100644 dist/modules/lite/explorer/components/tables/RowContainer.js delete mode 100644 dist/modules/lite/explorer/components/tables/RowContainer.js.map delete mode 100644 dist/modules/lite/explorer/context/ActionSheets/explorer/index.js delete mode 100644 dist/modules/lite/explorer/context/ActionSheets/explorer/index.js.map delete mode 100644 dist/modules/lite/explorer/context/ActionSheets/index.js delete mode 100644 dist/modules/lite/explorer/context/ActionSheets/index.js.map delete mode 100644 dist/modules/lite/explorer/hooks/useCommunity.js delete mode 100644 dist/modules/lite/explorer/hooks/useCommunity.js.map delete mode 100644 dist/modules/lite/explorer/hooks/useCommunityForContract.js delete mode 100644 dist/modules/lite/explorer/hooks/useCommunityForContract.js.map delete mode 100644 dist/modules/lite/explorer/hooks/useCommunityToken.js delete mode 100644 dist/modules/lite/explorer/hooks/useCommunityToken.js.map delete mode 100644 dist/modules/lite/explorer/hooks/useHasVoted.js delete mode 100644 dist/modules/lite/explorer/hooks/useHasVoted.js.map delete mode 100644 dist/modules/lite/explorer/hooks/usePoll.js delete mode 100644 dist/modules/lite/explorer/hooks/usePoll.js.map delete mode 100644 dist/modules/lite/explorer/hooks/usePollChoices.js delete mode 100644 dist/modules/lite/explorer/hooks/usePollChoices.js.map delete mode 100644 dist/modules/lite/explorer/hooks/usePolls.js delete mode 100644 dist/modules/lite/explorer/hooks/usePolls.js.map delete mode 100644 dist/modules/lite/explorer/hooks/useToken.js delete mode 100644 dist/modules/lite/explorer/hooks/useToken.js.map delete mode 100644 dist/modules/lite/explorer/pages/CommunityDetails/index.js delete mode 100644 dist/modules/lite/explorer/pages/CommunityDetails/index.js.map delete mode 100644 dist/modules/lite/explorer/pages/CommunityDetails/router.js delete mode 100644 dist/modules/lite/explorer/pages/CommunityDetails/router.js.map delete mode 100644 dist/modules/lite/explorer/pages/CreateProposal/ProposalCreatorModal.js delete mode 100644 dist/modules/lite/explorer/pages/CreateProposal/ProposalCreatorModal.js.map delete mode 100644 dist/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.js delete mode 100644 dist/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.js.map delete mode 100644 dist/modules/lite/explorer/pages/CreateProposal/index.js delete mode 100644 dist/modules/lite/explorer/pages/CreateProposal/index.js.map delete mode 100644 dist/modules/lite/explorer/pages/ProposalDetails/index.js delete mode 100644 dist/modules/lite/explorer/pages/ProposalDetails/index.js.map delete mode 100644 dist/modules/lite/explorer/router.js delete mode 100644 dist/modules/lite/explorer/router.js.map delete mode 100644 dist/services/agora/hooks/useTopic.js delete mode 100644 dist/services/agora/hooks/useTopic.js.map delete mode 100644 dist/services/agora/index.js delete mode 100644 dist/services/agora/index.js.map delete mode 100644 dist/services/agora/topics/index.js delete mode 100644 dist/services/agora/topics/index.js.map delete mode 100644 dist/services/agora/topics/types.js delete mode 100644 dist/services/agora/topics/types.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useDropAllExpired.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useDropAllExpired.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useDropProposal.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useDropProposal.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useFlush.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useFlush.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useFreeze.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useFreeze.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useLambdaAddPropose.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useLambdaAddPropose.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useLambdaExecutePropose.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useLambdaExecutePropose.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useLambdaRemovePropose.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useLambdaRemovePropose.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useOriginate.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useOriginate.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useProposeConfigChange.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useProposeConfigChange.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useProposeDelegationChange.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useProposeDelegationChange.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useProposeGuardianChange.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useProposeGuardianChange.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useRegistryPropose.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useRegistryPropose.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useSendXTZ.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useSendXTZ.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useTreasuryPropose.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useTreasuryPropose.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useUnstakeFromAllProposals.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useUnstakeFromAllProposals.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useUnstakeVotes.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useUnstakeVotes.js.map delete mode 100644 dist/services/contracts/baseDAO/hooks/useVote.js delete mode 100644 dist/services/contracts/baseDAO/hooks/useVote.js.map create mode 100644 dist/services/contracts/baseDAO/state.js create mode 100644 dist/services/contracts/baseDAO/state.js.map delete mode 100644 dist/services/contracts/token/assets/MultiAsset.json delete mode 100644 dist/services/contracts/token/hooks/useToken.js delete mode 100644 dist/services/contracts/token/hooks/useToken.js.map delete mode 100644 dist/services/contracts/token/index.js delete mode 100644 dist/services/contracts/token/index.js.map delete mode 100644 dist/services/lite/utils.js delete mode 100644 dist/services/lite/utils.js.map delete mode 100644 dist/services/tzprofiles/claims/index.js delete mode 100644 dist/services/tzprofiles/claims/index.js.map delete mode 100644 dist/services/tzprofiles/claims/types.js delete mode 100644 dist/services/tzprofiles/claims/types.js.map delete mode 100644 dist/services/tzprofiles/hooks/useProfileClaim.js delete mode 100644 dist/services/tzprofiles/hooks/useProfileClaim.js.map delete mode 100644 dist/services/tzprofiles/index.js delete mode 100644 dist/services/tzprofiles/index.js.map delete mode 100644 dist/theme/index.js delete mode 100644 dist/theme/index.js.map delete mode 100644 dist/theme/legacy.js delete mode 100644 dist/theme/legacy.js.map delete mode 100644 src/services/bakingBad/context/TZKTSubscriptions.tsx delete mode 100644 src/services/contracts/baseDAO/hooks/useBlockchainInfo.ts delete mode 100644 src/services/contracts/baseDAO/hooks/useCycleInfo.ts delete mode 100644 src/services/contracts/baseDAO/hooks/useDAOHoldings.ts delete mode 100644 src/services/contracts/baseDAO/hooks/useDAOLambda.ts delete mode 100644 src/services/contracts/baseDAO/hooks/useDAOLambdas.ts delete mode 100644 src/services/contracts/baseDAO/hooks/useDelegate.ts delete mode 100644 src/services/contracts/baseDAO/hooks/useTezosBalance.ts delete mode 100644 src/services/contracts/baseDAO/hooks/useTokenHoldersWithVotes.ts delete mode 100644 src/services/contracts/baseDAO/hooks/useTokenMetadata.ts delete mode 100644 src/services/contracts/baseDAO/hooks/useTransfers.ts delete mode 100644 src/services/services/dao/hooks/useAllDAOs.ts delete mode 100644 src/services/services/dao/hooks/useDAO.ts delete mode 100644 src/services/services/dao/hooks/useProposal.ts delete mode 100644 src/services/services/dao/hooks/useProposals.ts diff --git a/dist/App.js b/dist/App.js deleted file mode 100644 index c8a1a0e..0000000 --- a/dist/App.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});const jsx_runtime_1=require('react/jsx-runtime');const launchdarkly_react_client_sdk_1=require('launchdarkly-react-client-sdk');const react_router_dom_1=require('react-router-dom');const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const react_query_1=require('react-query');const core_1=require('@material-ui/core');const notistack_1=require('notistack');const router_1=require('./modules/explorer/router');const state_1=require('./modules/creator/state');const ScrollToTop_1=__importDefault(require('./modules/common/ScrollToTop'));require('App.css');const TZKTSubscriptions_1=require('./services/bakingBad/context/TZKTSubscriptions');const Landing_1=require('./modules/home/Landing');const ActionSheets_1=require('./modules/explorer/context/ActionSheets');const legacy_1=require('./theme/legacy');const Footer_1=require('./modules/common/Footer');const FAQ_1=require('./modules/home/FAQ');const config_1=require('./services/config');const router_2=require('./modules/creator/router');const LocalizationProvider_1=require('@mui/x-date-pickers/LocalizationProvider');const AdapterDayjs_1=require('@mui/x-date-pickers/AdapterDayjs');const creator_1=require('./modules/lite/creator');const queryClient=new react_query_1.QueryClient({defaultOptions:{queries:{retryDelay:attemptIndex=>Math.min(1000*Math.pow(2,attemptIndex),60000),retry:false,retryOnMount:false,refetchOnMount:false,refetchOnWindowFocus:true,staleTime:5000,cacheTime:300000}}});const styles=(0,core_1.makeStyles)({success:{backgroundColor:'#4BCF93 !important',padding:'6px 28px',height:54,fontSize:13,lineHeight:'0px',opacity:1},error:{backgroundColor:'#ED254E !important',padding:'6px 28px',height:54,fontSize:13,lineHeight:'0px',opacity:1},info:{backgroundColor:'#3866F9 !important',padding:'6px 28px',height:54,fontSize:13,lineHeight:'0px',opacity:1}});const MIXPANEL_TOKEN=(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_MIXPANEL_TOKEN);const MIXPANEL_DEBUG_ENABLED=(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_MIXPANEL_DEBUG_ENABLED);if(!MIXPANEL_TOKEN){throw new Error(`${config_1.EnvKey.REACT_APP_MIXPANEL_TOKEN} env variable is missing`);}if(!MIXPANEL_DEBUG_ENABLED){throw new Error(`${config_1.EnvKey.REACT_APP_MIXPANEL_DEBUG_ENABLED} env variable is missing`);}mixpanel_browser_1.default.init(MIXPANEL_TOKEN,{debug:MIXPANEL_DEBUG_ENABLED==='true'});mixpanel_browser_1.default.track('Visit');const App=()=>{const classes=styles();return(0,jsx_runtime_1.jsx)(core_1.ThemeProvider,{theme:null,children:(0,jsx_runtime_1.jsx)(notistack_1.SnackbarProvider,{classes:{variantSuccess:classes.success,variantError:classes.error,variantInfo:classes.info},children:(0,jsx_runtime_1.jsx)(react_query_1.QueryClientProvider,{client:queryClient,children:(0,jsx_runtime_1.jsx)(ActionSheets_1.ActionSheetProvider,{children:(0,jsx_runtime_1.jsx)(LocalizationProvider_1.LocalizationProvider,{dateAdapter:AdapterDayjs_1.AdapterDayjs,children:(0,jsx_runtime_1.jsx)(core_1.Box,{bgcolor:'primary.dark',position:'absolute',width:'100%',children:(0,jsx_runtime_1.jsxs)(react_router_dom_1.BrowserRouter,{children:[(0,jsx_runtime_1.jsx)(ScrollToTop_1.default,{}),(0,jsx_runtime_1.jsxs)(react_router_dom_1.Switch,{children:[(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:'/creator',children:(0,jsx_runtime_1.jsx)(state_1.CreatorProvider,{children:(0,jsx_runtime_1.jsx)(core_1.ThemeProvider,{theme:legacy_1.legacyTheme,children:(0,jsx_runtime_1.jsx)(router_2.DAOCreatorRouter,{})})})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:'/lite',children:(0,jsx_runtime_1.jsx)(core_1.ThemeProvider,{theme:legacy_1.legacyTheme,children:(0,jsx_runtime_1.jsx)(creator_1.CommunityCreator,{})})}),(0,jsx_runtime_1.jsxs)(react_router_dom_1.Route,{path:'/explorer',children:[(0,jsx_runtime_1.jsx)(TZKTSubscriptions_1.TZKTSubscriptionsProvider,{children:(0,jsx_runtime_1.jsx)(router_1.DAOExplorerRouter,{})}),(0,jsx_runtime_1.jsx)(Footer_1.Footer,{})]}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:'/faq',children:(0,jsx_runtime_1.jsx)(FAQ_1.FAQ,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:'/',children:(0,jsx_runtime_1.jsx)(Landing_1.Landing,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Redirect,{to:'/'})]})]})})})})})})});};const env=(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_ENV);exports.default=(0,launchdarkly_react_client_sdk_1.withLDProvider)({clientSideID:env==='PROD'?(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LAUNCH_DARKLY_SDK_PROD):(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LAUNCH_DARKLY_SDK_DEV)})(App); \ No newline at end of file diff --git a/dist/App.js.map b/dist/App.js.map deleted file mode 100644 index 0c9f084..0000000 --- a/dist/App.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";;;;;;AACA,iFAA8D;AAC9D,uDAAmF;AACnF,wEAAuC;AACvC,6CAA8D;AAC9D,4CAAkE;AAClE,yCAA4C;AAE5C,oDAA2D;AAE3D,iDAAuD;AACvD,6EAAoD;AAEpD,mBAAgB;AAChB,oFAAwF;AACxF,kDAA8C;AAE9C,wEAA2E;AAC3E,yCAA0C;AAC1C,kDAA8C;AAC9C,0CAAsC;AACtC,4CAA+D;AAC/D,mDAAyD;AACzD,mFAA+E;AAC/E,mEAA+D;AAC/D,kDAAuD;AAEvD,MAAM,WAAW,GAAG,IAAI,yBAAW,CAAC;IAClC,cAAc,EAAE;QACd,OAAO,EAAE;YACP,UAAU,EAAE,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,SAAA,CAAC,EAAI,YAAY,CAAA,EAAE,KAAK,CAAC;YACrE,KAAK,EAAE,KAAK;YACZ,YAAY,EAAE,KAAK;YACnB,cAAc,EAAE,KAAK;YACrB,oBAAoB,EAAE,IAAI;YAC1B,SAAS,EAAE,IAAI;YACf,SAAS,EAAE,MAAM;SAClB;KACF;CACF,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,IAAA,iBAAU,EAAC;IACxB,OAAO,EAAE;QACP,eAAe,EAAE,oBAAoB;QACrC,OAA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,IAAA,eAAM,EAAC,eAAM,CAAC,+BAA+B,CAAC;CACpH,CAAC,CAAC,GAAG,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 2d37dbe..cbdfb6a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1,91 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});const dayjs_1=__importDefault(require('dayjs'));const localizedFormat_1=__importDefault(require('dayjs/plugin/localizedFormat'));const express_1=__importDefault(require('express'));const body_parser_1=__importDefault(require('body-parser'));const useTezos_1=require('./services/beacon/hooks/useTezos');const deploy_1=require('./services/contracts/metadataCarrier/deploy');const baseDAO_1=require('./services/contracts/baseDAO');const signer_1=require('@taquito/signer');const config_1=require('./services/config');const cors_1=__importDefault(require('cors'));const connect_timeout_1=__importDefault(require('connect-timeout'));const express_queue_1=__importDefault(require('express-queue'));const fs_1=__importDefault(require('fs'));const https_1=__importDefault(require('https'));dayjs_1.default.extend(localizedFormat_1.default);const app=(0,express_1.default)();const port=3001;const ALICE_PRIV_KEY=(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_PRIVATE_KEY);app.use(body_parser_1.default.urlencoded({extended:false}));app.use(body_parser_1.default.json());app.use((0,cors_1.default)({origin:['https://tezos-homebase.io','https://deploy-preview-609--tezos-homebase.netlify.app']}));app.use((0,connect_timeout_1.default)(2147483646));app.use((0,express_queue_1.default)({activeLimit:1,queuedLimit:-1}));const privateKey=fs_1.default.readFileSync('privkey.pem','utf8');const certificate=fs_1.default.readFileSync('cert.pem','utf8');const ca=fs_1.default.readFileSync('chain.pem','utf8');const credentials={key:privateKey,cert:certificate,ca:ca};app.post('/deploy',(req,res)=>__awaiter(void 0,void 0,void 0,function*(){try{const body=req.body.deployParams;const {metadataParams,params}=body;const template='lambda';const network=metadataParams.metadata.frozenToken.governanceToken.tokenMetadata.network;const newTezos=(0,useTezos_1.initTezosInstance)(network);const signer=yield signer_1.InMemorySigner.fromSecretKey(ALICE_PRIV_KEY);newTezos.setProvider({signer});params.orgSettings.administrator=yield newTezos.wallet.pkh();const metadata=yield(0,deploy_1.deployMetadataCarrier)(Object.assign(Object.assign({},metadataParams),{tezos:newTezos,connect:undefined}));if(!metadata){throw'No Metadata';}const contract=yield baseDAO_1.BaseDAO.baseDeploy(template,{tezos:newTezos,metadata,params,network});console.log('contract: ',contract);if(!contract){throw new Error(`Error deploying ${template}DAO`);}const tx=yield baseDAO_1.BaseDAO.transfer_ownership(contract.address,contract.address,newTezos);if(!tx){throw new Error(`Error transferring ownership of ${template}DAO to itself`);}res.send({address:contract.address});}catch(error){console.log('error: ',error);res.send('OOOppsiess');}}));const httpsServer=https_1.default.createServer(credentials,app);httpsServer.listen(port,()=>{console.log('HTTPS Server running on port',port);}); \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const dayjs_1 = __importDefault(require("dayjs")); +const localizedFormat_1 = __importDefault(require("dayjs/plugin/localizedFormat")); +const express_1 = __importDefault(require("express")); +const body_parser_1 = __importDefault(require("body-parser")); +const useTezos_1 = require("./services/beacon/hooks/useTezos"); +const deploy_1 = require("./services/contracts/metadataCarrier/deploy"); +const baseDAO_1 = require("./services/contracts/baseDAO"); +const signer_1 = require("@taquito/signer"); +const config_1 = require("./services/config"); +const cors_1 = __importDefault(require("cors")); +const connect_timeout_1 = __importDefault(require("connect-timeout")); //express v4 +const express_queue_1 = __importDefault(require("express-queue")); +const fs_1 = __importDefault(require("fs")); +const https_1 = __importDefault(require("https")); +// BigNumber.config({ DECIMAL_PLACES: }) +dayjs_1.default.extend(localizedFormat_1.default); +const app = (0, express_1.default)(); +const port = 3001; +const ALICE_PRIV_KEY = (0, config_1.getEnv)(config_1.EnvKey.REACT_APP_PRIVATE_KEY); +// parse application/x-www-form-urlencoded +app.use(body_parser_1.default.urlencoded({ extended: false })); +// parse application/json +app.use(body_parser_1.default.json()); +app.use((0, cors_1.default)({ + origin: ["https://tezos-homebase.io", "https://deploy-preview-609--tezos-homebase.netlify.app"] +})); +app.use((0, connect_timeout_1.default)(2147483646)); +app.use((0, express_queue_1.default)({ activeLimit: 1, queuedLimit: -1 })); +// Certificate +const privateKey = fs_1.default.readFileSync("privkey.pem", "utf8"); +const certificate = fs_1.default.readFileSync("cert.pem", "utf8"); +const ca = fs_1.default.readFileSync("chain.pem", "utf8"); +const credentials = { + key: privateKey, + cert: certificate, + ca: ca +}; +app.post("/deploy", (req, res) => __awaiter(void 0, void 0, void 0, function* () { + try { + const body = req.body.deployParams; + const { metadataParams, params } = body; + const template = "lambda"; + const network = metadataParams.metadata.frozenToken.governanceToken.tokenMetadata.network; + const newTezos = (0, useTezos_1.initTezosInstance)(network); + const signer = yield signer_1.InMemorySigner.fromSecretKey(ALICE_PRIV_KEY); + newTezos.setProvider({ signer }); + params.orgSettings.administrator = yield newTezos.wallet.pkh(); + const metadata = yield (0, deploy_1.deployMetadataCarrier)(Object.assign(Object.assign({}, metadataParams), { tezos: newTezos, connect: undefined })); + if (!metadata) { + throw "No Metadata"; + } + const contract = yield baseDAO_1.BaseDAO.baseDeploy(template, { + tezos: newTezos, + metadata, + params, + network + }); + console.log("contract: ", contract); + if (!contract) { + throw new Error(`Error deploying ${template}DAO`); + } + const tx = yield baseDAO_1.BaseDAO.transfer_ownership(contract.address, contract.address, newTezos); + if (!tx) { + throw new Error(`Error transferring ownership of ${template}DAO to itself`); + } + res.send({ address: contract.address }); + } + catch (error) { + console.log("error: ", error); + res.send("OOOppsiess"); + } +})); +const httpsServer = https_1.default.createServer(credentials, app); +httpsServer.listen(port, () => { + console.log("HTTPS Server running on port", port); +}); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map index 15a1e83..e1df64a 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAAyB;AACzB,mFAA0D;AAC1D,sDAA6B;AAC7B,8DAAoC;AAGpC,+DAAoE;AAEpE,wEAAmF;AACnF,0DAAsD;AACtD,4CAAgD;AAChD,4CAAgD;AAChD,gDAAuB;AACvB,sEAAqC,CAAC,YAAY;AAClD,kEAAiC;AACjC,4CAAmB;AACnB,kDAAyB;AAEzB,yCAAyC;AAEzC,eAAK,CAAC,MAAM,CAAC,yBAAe,CAAC,CAAA;AAE7B,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAA;AACrB,MAAM,IAAI,GAAG,IAAI,CAAA;AACjB,MAAM,cAAc,GAAG,IAAA,eAAM,EAAC,eAAM,CAAC,qBAAqB,CAAC,CAAA;AAE3D,0CAA0C;AAC1C,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;AAEnD,yBAAyB;AACzB,GA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ACR,CAAC,CAAA;QACF,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAA;QAEnC,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,mBAAmB,QAAQ,KAAK,CAAC,CAAA;SAClD;QAED,MAAM,EAAE,GAAG,MAAM,iBAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;QAEzF,IAAI,CAAC,EAAE,EAAE;YACP,MAAM,IAAI,KAAK,CAAC,mCAAmC,QAAQ,eAAe,CAAC,CAAA;SAC5E;QACD,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAA;KACxC;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QAC7B,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;KACvB;AACH,CAAC,CAAA,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,eAAK,CAAC,YAAY,CAAC,WAAW,EAAE,GAAG,CAAC,CAAA;AAExD,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAA;AACnD,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/models/Choice.js b/dist/models/Choice.js index fa85c5c..406c34c 100644 --- a/dist/models/Choice.js +++ b/dist/models/Choice.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Choice.js.map \ No newline at end of file diff --git a/dist/models/Community.js b/dist/models/Community.js index fa85c5c..934a8d4 100644 --- a/dist/models/Community.js +++ b/dist/models/Community.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Community.js.map \ No newline at end of file diff --git a/dist/models/Polls.js b/dist/models/Polls.js index cb52b5e..4e0a95f 100644 --- a/dist/models/Polls.js +++ b/dist/models/Polls.js @@ -1 +1,9 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalStatus=void 0;var ProposalStatus;(function(ProposalStatus){ProposalStatus['ACTIVE']='active';ProposalStatus['CLOSED']='closed';}(ProposalStatus||(exports.ProposalStatus=ProposalStatus={}))); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProposalStatus = void 0; +var ProposalStatus; +(function (ProposalStatus) { + ProposalStatus["ACTIVE"] = "active"; + ProposalStatus["CLOSED"] = "closed"; +})(ProposalStatus || (exports.ProposalStatus = ProposalStatus = {})); +//# sourceMappingURL=Polls.js.map \ No newline at end of file diff --git a/dist/models/Proposal.js b/dist/models/Proposal.js index fa85c5c..3188a11 100644 --- a/dist/models/Proposal.js +++ b/dist/models/Proposal.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Proposal.js.map \ No newline at end of file diff --git a/dist/models/Token.js b/dist/models/Token.js index 699f216..d3c0452 100644 --- a/dist/models/Token.js +++ b/dist/models/Token.js @@ -1 +1,75 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.NFT=exports.extractQmHash=exports.Token=exports.SUPPORTED_MEDIA_TYPES=exports.SUPPORTED_MIME_TYPES=void 0;const bignumber_js_1=__importDefault(require('bignumber.js'));exports.SUPPORTED_MIME_TYPES=['image/jpeg','image/gif','image/png','video/mp4','audio/mpeg','audio/x-wav'];exports.SUPPORTED_MEDIA_TYPES=['image','audio','video'];class Token{constructor(params){this.id=params.id;this.contract=params.contract;this.token_id=params.token_id;this.symbol=params.symbol;this.name=params.name;this.decimals=params.decimals;this.network=params.network;this.supply=new bignumber_js_1.default(params.supply);this.standard=params.standard?params.standard:'';}}exports.Token=Token;const extractQmHash=ipfsUri=>{if(!ipfsUri){return ipfsUri;}return ipfsUri.startsWith('ipfs://')?ipfsUri.split('ipfs://')[1]:ipfsUri;};exports.extractQmHash=extractQmHash;const getFormatTag=mimeType=>{if(mimeType.includes('video')){return'video';}if(mimeType.includes('audio')){return'audio';}if(mimeType.includes('image')){return'image';}return'unknown';};class NFT extends Token{constructor(params){super(params);this.thumbnail_hash=(0,exports.extractQmHash)(params.thumbnail_uri);this.artifact_hash=(0,exports.extractQmHash)(params.artifact_uri);this.description=params.description;this.artifact_uri=params.artifact_uri;this.thumbnail_uri=params.thumbnail_uri;this.is_transferable=params.is_transferable;this.tags=params.tags||[];this.formats=['image/jpeg'];this.creators=[];if(params.creators&¶ms.creators.length){this.firstCreator=params.creators[0];this.creators=params.creators;}if(params.formats){this.formats=params.formats.map(format=>exports.SUPPORTED_MIME_TYPES.includes(format.mimeType)?format.mimeType:'unknown');}this.preferredFormat=this.formats[0];this.mediaType=getFormatTag(this.preferredFormat);}}exports.NFT=NFT; \ No newline at end of file +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NFT = exports.extractQmHash = exports.Token = exports.SUPPORTED_MEDIA_TYPES = exports.SUPPORTED_MIME_TYPES = void 0; +const bignumber_js_1 = __importDefault(require("bignumber.js")); +exports.SUPPORTED_MIME_TYPES = [ + "image/jpeg", + "image/gif", + "image/png", + "video/mp4", + "audio/mpeg", + "audio/x-wav" +]; +exports.SUPPORTED_MEDIA_TYPES = ["image", "audio", "video"]; +class Token { + constructor(params) { + this.id = params.id; + this.contract = params.contract; + this.token_id = params.token_id; + this.symbol = params.symbol; + this.name = params.name; + this.decimals = params.decimals; + this.network = params.network; + this.supply = new bignumber_js_1.default(params.supply); + this.standard = params.standard ? params.standard : ""; + } +} +exports.Token = Token; +const extractQmHash = (ipfsUri) => { + if (!ipfsUri) { + return ipfsUri; + } + return ipfsUri.startsWith("ipfs://") ? ipfsUri.split("ipfs://")[1] : ipfsUri; +}; +exports.extractQmHash = extractQmHash; +const getFormatTag = (mimeType) => { + if (mimeType.includes("video")) { + return "video"; + } + if (mimeType.includes("audio")) { + return "audio"; + } + if (mimeType.includes("image")) { + return "image"; + } + return "unknown"; +}; +class NFT extends Token { + constructor(params) { + super(params); + this.thumbnail_hash = (0, exports.extractQmHash)(params.thumbnail_uri); + this.artifact_hash = (0, exports.extractQmHash)(params.artifact_uri); + this.description = params.description; + this.artifact_uri = params.artifact_uri; + this.thumbnail_uri = params.thumbnail_uri; + this.is_transferable = params.is_transferable; + this.tags = params.tags || []; + this.formats = ["image/jpeg"]; + this.creators = []; + if (params.creators && params.creators.length) { + this.firstCreator = params.creators[0]; + this.creators = params.creators; + } + if (params.formats) { + this.formats = params.formats.map(format => exports.SUPPORTED_MIME_TYPES.includes(format.mimeType) ? format.mimeType : "unknown"); + } + //On BakingBad's APIs, it's simply the first one + this.preferredFormat = this.formats[0]; + this.mediaType = getFormatTag(this.preferredFormat); + } +} +exports.NFT = NFT; +//# sourceMappingURL=Token.js.map \ No newline at end of file diff --git a/dist/modules/common/BackButton.js b/dist/modules/common/BackButton.js deleted file mode 100644 index fe1aab2..0000000 --- a/dist/modules/common/BackButton.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.CloseButton=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const icons_1=require('@material-ui/icons');const BackIcon=(0,core_1.styled)(icons_1.ArrowBack)({cursor:'pointer',width:'18px',color:'#ffff',marginTop:'-5px'});const CloseButton=({onGoBack})=>{return(0,jsx_runtime_1.jsx)(core_1.Box,{onClick:onGoBack,children:(0,jsx_runtime_1.jsx)(BackIcon,{})});};exports.CloseButton=CloseButton;exports.default=exports.CloseButton; \ No newline at end of file diff --git a/dist/modules/common/BackButton.js.map b/dist/modules/common/BackButton.js.map deleted file mode 100644 index 81c82b5..0000000 --- a/dist/modules/common/BackButton.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BackButton.js","sourceRoot":"","sources":["../../../src/modules/common/BackButton.tsx"],"names":[],"mappings":";;;;AACA,4CAA+C;AAC/C,8CAA8C;AAE9C,MAAM,QAAQ,GAAG,IAAA,aAAM,EAAC,iBAAS,CAAC,CAAC;IACjC,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,MAAM;CAClB,CAAC,CAAA;AAEK,MAAM,WAAW,GAAwC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/E,OAAO,CACL,uBAAC,UAAG,IAAC,OAAO,EAAE,QAAQ,YACpB,uBAAC,QAAQ,KAAG,GACR,CACP,CAAA;AACH,CAAC,CAAA;AANY,QAAA,WAAW,eAMvB;AAED,kBAAe,mBAAW,CAAA"} \ No newline at end of file diff --git a/dist/modules/common/Blockie.js b/dist/modules/common/Blockie.js deleted file mode 100644 index beb936f..0000000 --- a/dist/modules/common/Blockie.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i({width:size||23,height:size||23,minWidth:size||23,maxHeight:size||23,borderRadius:'50%',background:`url(${address})`,backgroundSize:'contain'}));const Blockie=_a=>{var {address,size}=_a,props=__rest(_a,['address','size']);return(0,jsx_runtime_1.jsx)(StyledBox,Object.assign({address:(0,utils_1.getBlockie)(address.toLowerCase()),size:size},props));};exports.Blockie=Blockie; \ No newline at end of file diff --git a/dist/modules/common/Blockie.js.map b/dist/modules/common/Blockie.js.map deleted file mode 100644 index b50f62f..0000000 --- a/dist/modules/common/Blockie.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Blockie.js","sourceRoot":"","sources":["../../../src/modules/common/Blockie.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAAyD;AAEzD,oDAAqD;AAErD,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAsC,EAAE,EAAE,CAAC,CAAC;IACxF,KAAK,EAAE,IAAI,IAAI,EAAE;IACjB,MAAM,EAAE,IAAI,IAAI,EAAE;IAClB,QAAQ,EAAE,IAAI,IAAI,EAAE;IACpB,SAAS,EAAE,IAAI,IAAI,EAAE;IACrB,YAAY,EAAE,KAAK;IACnB,UAAU,EAAE,OAAO,OAAO,GAAG;IAC7B,cAAc,EAAE,SAAS;CAC1B,CAAC,CAAC,CAAA;AAEI,MAAM,OAAO,GAAG,CAAC,EAA0E,EAAE,EAAE;QAA9E,EAAE,OAAO,EAAE,IAAI,OAA2D,EAAtD,KAAK,cAAzB,mBAA2B,CAAF;IAC/C,OAAO,uBAAC,SAAS,kBAAC,OAAO,EAAE,IAAA,kBAAU,EAAC,OAAO,CAAC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,IAAM,KAAK,EAAI,CAAA;AACzF,CAAC,CAAA;AAFY,QAAA,OAAO,WAEnB"} \ No newline at end of file diff --git a/dist/modules/common/ChangeNetworkButton.js b/dist/modules/common/ChangeNetworkButton.js deleted file mode 100644 index c315274..0000000 --- a/dist/modules/common/ChangeNetworkButton.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ChangeNetworkButton=exports.ColorDot=exports.networkDotColorMap=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const ActionSheets_1=require('../explorer/context/ActionSheets');const useTezos_1=require('../../services/beacon/hooks/useTezos');const StyledConnectedButton=(0,core_1.styled)(core_1.Box)(({theme})=>({'& > *':{height:'100%'},'background':theme.palette.primary.dark,'borderRadius':4,'padding':'5px 10px','cursor':'pointer','transition':'.15s ease-out','&:hover':{background:theme.palette.secondary.dark,transition:'.15s ease-in'}}));exports.networkDotColorMap={mainnet:'#9EEE5D',ghostnet:'#291F79'};exports.ColorDot=(0,core_1.styled)(core_1.Box)({height:6,width:6,backgroundColor:({color})=>color,borderRadius:'50%'});const NetworkText=(0,core_1.styled)(core_1.Typography)({fontSize:'14px',color:'#ddd'});const ChangeNetworkButton=()=>{const {network}=(0,useTezos_1.useTezos)();const {open}=(0,ActionSheets_1.useActionSheet)(ActionSheets_1.ActionSheet.Network);return(0,jsx_runtime_1.jsx)(StyledConnectedButton,{onClick:()=>open(),children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:5},alignItems:'center',wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(exports.ColorDot,{color:exports.networkDotColorMap[network]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(NetworkText,{children:(0,core_1.capitalize)(network)})})]})});};exports.ChangeNetworkButton=ChangeNetworkButton; \ No newline at end of file diff --git a/dist/modules/common/ChangeNetworkButton.js.map b/dist/modules/common/ChangeNetworkButton.js.map deleted file mode 100644 index 987effb..0000000 --- a/dist/modules/common/ChangeNetworkButton.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChangeNetworkButton.js","sourceRoot":"","sources":["../../../src/modules/common/ChangeNetworkButton.tsx"],"names":[],"mappings":";;;;AAAA,4CAAoF;AACpF,wEAAmF;AAGnF,6DAAyD;AAEzD,MAAM,qBAAqB,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAoB,E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BAAC,gBAAQ,IAAC,KAAK,EAAE,0BAAkB,CAAC,OAAO,CAAC,GAAI,GAC3C,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,WAAW,cAAE,IAAA,iBAAU,EAAC,OAAO,CAAC,GAAe,GAC3C,IACF,GACe,CACzB,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,mBAAmB,uBAgB/B"} \ No newline at end of file diff --git a/dist/modules/common/CloseButton.js b/dist/modules/common/CloseButton.js deleted file mode 100644 index 42c9550..0000000 --- a/dist/modules/common/CloseButton.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.CloseButton=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const icons_1=require('@material-ui/icons');const CloseIcon=(0,core_1.styled)(icons_1.Close)({cursor:'pointer',width:'18px',color:'#ffff',marginTop:'-5px'});const CloseButton=({onClose})=>{return(0,jsx_runtime_1.jsx)(core_1.Box,{onClick:onClose,children:(0,jsx_runtime_1.jsx)(CloseIcon,{})});};exports.CloseButton=CloseButton;exports.default=exports.CloseButton; \ No newline at end of file diff --git a/dist/modules/common/CloseButton.js.map b/dist/modules/common/CloseButton.js.map deleted file mode 100644 index fe52b1a..0000000 --- a/dist/modules/common/CloseButton.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CloseButton.js","sourceRoot":"","sources":["../../../src/modules/common/CloseButton.tsx"],"names":[],"mappings":";;;;AACA,4CAA+C;AAC/C,8CAA0C;AAE1C,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,aAAK,CAAC,CAAC;IAC9B,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,MAAM;CAClB,CAAC,CAAA;AAEK,MAAM,WAAW,GAAsC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5E,OAAO,CACL,uBAAC,UAAG,IAAC,OAAO,EAAE,OAAO,YACnB,uBAAC,SAAS,KAAG,GACT,CACP,CAAA;AACH,CAAC,CAAA;AANY,QAAA,WAAW,eAMvB;AAED,kBAAe,mBAAW,CAAA"} \ No newline at end of file diff --git a/dist/modules/common/CopyAddress.js b/dist/modules/common/CopyAddress.js deleted file mode 100644 index 1de6ab6..0000000 --- a/dist/modules/common/CopyAddress.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.CopyAddress=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const utils_1=require('../../services/contracts/utils');const CopyButton_1=require('./CopyButton');const CopyAddress=({address,typographyProps})=>{const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,Object.assign({variant:'subtitle1',color:'textPrimary'},typographyProps,{children:isMobileSmall?(0,utils_1.toShortAddress)(address):address}))}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(CopyButton_1.CopyButton,{text:address})})]})});};exports.CopyAddress=CopyAddress; \ No newline at end of file diff --git a/dist/modules/common/CopyAddress.js.map b/dist/modules/common/CopyAddress.js.map deleted file mode 100644 index ecd4afc..0000000 --- a/dist/modules/common/CopyAddress.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CopyAddress.js","sourceRoot":"","sources":["../../../src/modules/common/CopyAddress.tsx"],"names":[],"mappings":";;;;AAAA,4CAAyG;AAEzG,oDAAyD;AACzD,6CAAyC;AAOlC,MAAM,WAAW,GAAoB,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE;IAC3E,MAAM,KAAK,GAAG,IAAA,eAAQ,GAAE,CAAA;IACxB,MAAM,aAAa,GAAG,IAAA,oBAAa,EAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAEjE,OAAO,CACL,2DACE,wBAAC,WAAI,IAAC,SAAS,QAAC,UAAU,EAAC,QAAQ,aACjC,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,iBAAU,kBAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,IAAK,eAAe,cACpE,aAAa,CAAC,CAAC,CAAC,IAAA,sBAAc,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,IACvC,GACR,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,uBAAU,IAAC,IAAI,EAAE,OAAO,GAAI,GACxB,IACF,GACN,CACJ,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,WAAW,eAkBvB"} \ No newline at end of file diff --git a/dist/modules/common/CopyButton.js b/dist/modules/common/CopyButton.js deleted file mode 100644 index fda8718..0000000 --- a/dist/modules/common/CopyButton.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.CopyButton=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const icons_1=require('@material-ui/icons');const CopyIcon=(0,core_1.styled)(icons_1.FileCopyOutlined)({cursor:'pointer'});const CopyButton=({text,style})=>{const [copied,setCopied]=(0,react_1.useState)(false);return(0,jsx_runtime_1.jsx)(core_1.Box,{padding:'5px 0 0 10px',marginTop:'auto',onClick:e=>{e.preventDefault();navigator.clipboard.writeText(text);setCopied(true);setTimeout(()=>{setCopied(false);},2000);},children:(0,jsx_runtime_1.jsx)(core_1.Tooltip,{style:style,placement:'bottom',title:!copied?'Copy to Clipboard':'Copied!',children:(0,jsx_runtime_1.jsx)(CopyIcon,{color:'secondary',fontSize:'small'})})});};exports.CopyButton=CopyButton; \ No newline at end of file diff --git a/dist/modules/common/CopyButton.js.map b/dist/modules/common/CopyButton.js.map deleted file mode 100644 index 94618cf..0000000 --- a/dist/modules/common/CopyButton.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CopyButton.js","sourceRoot":"","sources":["../../../src/modules/common/CopyButton.tsx"],"names":[],"mappings":";;;;AAAA,iCAAuC;AACvC,4CAAwD;AACxD,8CAAqD;AAErD,MAAM,QAAQ,GAAG,IAAA,aAAM,EAAC,wBAAgB,CAAC,CAAC;IACxC,MAAM,EAAE,SAAS;CAClB,CAAC,CAAA;AAEK,MAAM,UAAU,GAA4C,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;IACrF,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAC3C,OAAO,CACL,uBAAC,UAAG,IACF,OAAO,EAAC,cAAc,EACtB,SAAS,EAAC,MAAM,EAChB,OAAO,EAAE,CAAC,CAAC,EAAE;YACX,CAAC,CAAC,cAAc,EAAE,CAAA;YAClB,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;YACnC,SAAS,CAAC,IAAI,CAAC,CAAA;YAEf,UAAU,CAAC,GAAG,EAAE;gBACd,SAAS,CAAC,KAAK,CAAC,CAAA;YAClB,CAAC,EAAE,IAAI,CAAC,CAAA;QACV,CAAC,YAED,uBAAC,cAAO,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,YACxF,uBAAC,QAAQ,IAAC,KAAK,EAAC,WAAW,EAAC,QAAQ,EAAC,OAAO,GAAG,GACvC,GACN,CACP,CAAA;AACH,CAAC,CAAA;AArBY,QAAA,UAAU,cAqBtB"} \ No newline at end of file diff --git a/dist/modules/common/ExternalLink.js b/dist/modules/common/ExternalLink.js deleted file mode 100644 index e550ddf..0000000 --- a/dist/modules/common/ExternalLink.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ExternalLink=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const Link=(0,core_1.styled)('a')({'display':'flex','textDecoration':'none','&:active':{color:'unset'}});const ExternalLink=({link,children,className})=>{return(0,jsx_runtime_1.jsx)(Link,{className:className,href:link,rel:'noreferrer noopener',target:'_blank',children:children});};exports.ExternalLink=ExternalLink; \ No newline at end of file diff --git a/dist/modules/common/ExternalLink.js.map b/dist/modules/common/ExternalLink.js.map deleted file mode 100644 index 83fd0fa..0000000 --- a/dist/modules/common/ExternalLink.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExternalLink.js","sourceRoot":"","sources":["../../../src/modules/common/ExternalLink.tsx"],"names":[],"mappings":";;;;AACA,4CAA0C;AAE1C,MAAM,IAAI,GAAG,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC;IACvB,SAAS,EAAE,MAAM;IACjB,gBAAgB,EAAE,MAAM;IACxB,UAAU,EAAE;QACV,KAAK,EAAE,OAAO;KACf;CACF,CAAC,CAAA;AASK,MAAM,YAAY,GAAG,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAqB,EAAe,EAAE;IAC5F,OAAO,CACL,uBAAC,IAAI,IAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAC,qBAAqB,EAAC,MAAM,EAAC,QAAQ,YAC9E,QAAQ,GACJ,CACR,CAAA;AACH,CAAC,CAAA;AANY,QAAA,YAAY,gBAMxB"} \ No newline at end of file diff --git a/dist/modules/common/Footer.js b/dist/modules/common/Footer.js deleted file mode 100644 index 87a9537..0000000 --- a/dist/modules/common/Footer.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.Footer=void 0;const core_1=require('@material-ui/core');exports.Footer=(0,core_1.styled)(core_1.Grid)(({theme})=>({width:'100%',height:60,background:theme.palette.primary.dark,['@media (max-width:960px)']:{height:100}})); \ No newline at end of file diff --git a/dist/modules/common/Footer.js.map b/dist/modules/common/Footer.js.map deleted file mode 100644 index 21d59da..0000000 --- a/dist/modules/common/Footer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/modules/common/Footer.tsx"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,MAAM,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACjD,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IAEtC,CAAC,0BAA0B,CAAC,EAAE;QAC5B,MAAM,EAAE,GAAG;KACZ;CACF,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/common/GridContainer.js b/dist/modules/common/GridContainer.js deleted file mode 100644 index 5553e45..0000000 --- a/dist/modules/common/GridContainer.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.GridContainer=void 0;const core_1=require('@material-ui/core');exports.GridContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({minHeight:145,borderRadius:8,cursor:'pointer',padding:'32px 46px',background:theme.palette.primary.main,[theme.breakpoints.down('sm')]:{padding:'35px 25px'}})); \ No newline at end of file diff --git a/dist/modules/common/GridContainer.js.map b/dist/modules/common/GridContainer.js.map deleted file mode 100644 index d28fe11..0000000 --- a/dist/modules/common/GridContainer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GridContainer.js","sourceRoot":"","sources":["../../../src/modules/common/GridContainer.tsx"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,aAAa,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACxD,SAAS,EAAE,GAAG;IACd,YAAY,EAAE,CAAC;IACf,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,WAAW;IACpB,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACtC,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,OAAO,EAAE,WAAW;KACrB;CACF,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/common/MainButton.js b/dist/modules/common/MainButton.js deleted file mode 100644 index c0b749d..0000000 --- a/dist/modules/common/MainButton.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.MainButton=void 0;const core_1=require('@material-ui/core');exports.MainButton=(0,core_1.styled)(core_1.Button)(({theme})=>({'fontSize':'18px','justifyItems':'center','boxShadow':'0px 0px 7px -2px rgba(0, 0, 0, 0.2)','transition':'.15s ease-in','background':theme.palette.secondary.main,'textTransform':'none','&$disabled':{boxShadow:'none'},'&:hover':{boxShadow:'0px 0px 7px -2px rgba(0, 0, 0, 0.2)',backgroundColor:'#62eda5 !important',transition:'.15s ease-in'},['@media (max-width:1030px)']:{fontSize:'16px'}})); \ No newline at end of file diff --git a/dist/modules/common/MainButton.js.map b/dist/modules/common/MainButton.js.map deleted file mode 100644 index 4da4a94..0000000 --- a/dist/modules/common/MainButton.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MainButton.js","sourceRoot":"","sources":["../../../src/modules/common/MainButton.tsx"],"names":[],"mappings":";;;AAAA,4CAAkD;AAErC,QAAA,UAAU,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACvD,UAAU,EAAE,MAAM;IAClB,cAAc,EAAE,QAAQ;IACxB,WAAW,EAAE,qCAAqC;IAClD,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;IAC1C,eAAe,EAAE,MAAM;IAEvB,YAAY,EAAE;QACZ,SAAS,EAAE,MAAM;KAClB;IAED,SAAS,EAAE;QACT,SAAS,EAAE,qCAAqC;QAChD,eAAe,EAAE,oBAAoB;QACrC,UAAU,EAAE,cAAc;KAC3B;IAED,CAAC,2BAA2B,CAAC,EAAE;QAC7B,QAAQ,EAAE,MAAM;KACjB;CACF,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/common/Markdown.js b/dist/modules/common/Markdown.js deleted file mode 100644 index 70b01a7..0000000 --- a/dist/modules/common/Markdown.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});const jsx_runtime_1=require('react/jsx-runtime');const Typography_1=__importDefault(require('@material-ui/core/Typography'));const react_markdown_1=__importDefault(require('react-markdown'));const remark_gfm_1=__importDefault(require('remark-gfm'));const remark_breaks_1=__importDefault(require('remark-breaks'));const core_1=require('@material-ui/core');const getSrcPathForLocalImage=src=>{return require(`../../assets/markdown/${src}`).default;};const MarkDownImg=(0,core_1.styled)('img')({maxWidth:'100%'});const MarkdownParagraph=props=>{return(0,jsx_runtime_1.jsx)(Typography_1.default,{style:{fontWeight:300},children:props.children});};const MarkdownLink=props=>{return(0,jsx_runtime_1.jsx)(core_1.Link,{target:'_blank',color:'secondary',underline:'always',href:props.href,children:props.children});};const MarkdownHeader=props=>{switch(props.level){case 1:return(0,jsx_runtime_1.jsx)(Typography_1.default,{variant:'h1',children:props.children});case 2:return(0,jsx_runtime_1.jsx)(Typography_1.default,{variant:'h2',children:props.children});case 3:return(0,jsx_runtime_1.jsx)(Typography_1.default,{variant:'h3',children:props.children});case 4:return(0,jsx_runtime_1.jsx)(Typography_1.default,{variant:'h4',children:props.children});case 5:return(0,jsx_runtime_1.jsx)(Typography_1.default,{variant:'h5',children:props.children});case 6:return(0,jsx_runtime_1.jsx)(Typography_1.default,{variant:'h6',children:props.children});default:return(0,jsx_runtime_1.jsx)(Typography_1.default,{variant:'h6',children:props.children});}};const components={h1:MarkdownHeader,h2:MarkdownHeader,h3:MarkdownHeader,h4:MarkdownHeader,h5:MarkdownHeader,h6:MarkdownHeader,p:MarkdownParagraph,a:MarkdownLink,img:props=>{const {src}=props;if(!src){return null;}if(src.includes('~local/')){const srcWithoutSuffix=src.replace('~local/','');return(0,jsx_runtime_1.jsx)(MarkDownImg,Object.assign({},props,{src:getSrcPathForLocalImage(srcWithoutSuffix)}));}return(0,jsx_runtime_1.jsx)(MarkDownImg,Object.assign({},props));}};const Markdown=props=>{return(0,jsx_runtime_1.jsx)(react_markdown_1.default,Object.assign({components:components,remarkPlugins:[[remark_gfm_1.default],[remark_breaks_1.default]]},props));};exports.default=Markdown; \ No newline at end of file diff --git a/dist/modules/common/Markdown.js.map b/dist/modules/common/Markdown.js.map deleted file mode 100644 index ee919b6..0000000 --- a/dist/modules/common/Markdown.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Markdown.js","sourceRoot":"","sources":["../../../src/modules/common/Markdown.tsx"],"names":[],"mappings":";;;;;;AACA,8EAAqD;AACrD,oEAA0C;AAC1C,4DAAkC;AAClC,kEAAwC;AAGxC,4CAAgD;AAEhD,MAAM,uBAAuB,GAAG,CAAC,GAAY,EAAU,EAAE;IACvD,OAAO,OAAO,CAAC,yBAAyB,GAAG,EAAE,CAAC,CAAC,OAAO,CAAA;AACxD,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,KAAK,CAAC,CAAC;IAChC,QAAQ,EAAE,MAAM;CACjB,CAAC,CAAA;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAA8B,EAAE,EAAE;IAC3D,OAAO,uBAAC,oBAAU,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,YAAG,KAA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AClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,CAAC,EAAE,iBAAiB;IACpB,CAAC,EAAE,YAAY;IACf,GAAG,EAAE,KAAK,CAAC,EAAE;QACX,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,CAAA;QACrB,IAAI,CAAC,GAAG,EAAE;YACR,OAAO,IAAI,CAAA;SACZ;QAED,uFAAuF;QACvF,gFAAgF;QAChF,IAAI,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YAC3B,MAAM,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAA;YACnD,OAAO,uBAAC,WAAW,oBAAK,KAAK,IAAE,GAAG,EAAE,uBAAuB,CAAC,gBAAgB,CAAC,IAAI,CAAA;SAClF;QAED,OAAO,uBAAC,WAAW,oBAAK,KAAK,EAAI,CAAA;IACnC,CAAC;CACF,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,KAA2B,EAAE,EAAE;IAC/C,OAAO,uBAAC,wBAAa,kBAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,CAAC,oBAAS,CAAC,EAAE,CAAC,uBAAY,CAAC,CAAC,IAAM,KAAK,EAAI,CAAA;AAC3G,CAAC,CAAA;AAED,kBAAe,QAAQ,CAAA"} \ No newline at end of file diff --git a/dist/modules/common/ScrollToTop.js b/dist/modules/common/ScrollToTop.js deleted file mode 100644 index cfe5d5d..0000000 --- a/dist/modules/common/ScrollToTop.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});const react_1=require('react');const react_router_dom_1=require('react-router-dom');function ScrollToTop(){const {pathname}=(0,react_router_dom_1.useLocation)();(0,react_1.useEffect)(()=>{},[pathname]);return null;}exports.default=ScrollToTop; \ No newline at end of file diff --git a/dist/modules/common/ScrollToTop.js.map b/dist/modules/common/ScrollToTop.js.map deleted file mode 100644 index f14e18a..0000000 --- a/dist/modules/common/ScrollToTop.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScrollToTop.js","sourceRoot":"","sources":["../../../src/modules/common/ScrollToTop.tsx"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,uDAA8C;AAE9C,SAAwB,WAAW;IACjC,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,8BAAW,GAAE,CAAA;IAElC,IAAA,iBAAS,EAAC,GAAG,EAAE;IACf,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA;IAEd,OAAO,IAAI,CAAA;AACb,CAAC;AAPD,8BAOC"} \ No newline at end of file diff --git a/dist/modules/common/SmallButton.js b/dist/modules/common/SmallButton.js deleted file mode 100644 index d44dbed..0000000 --- a/dist/modules/common/SmallButton.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.SmallButton=void 0;const core_1=require('@material-ui/core');exports.SmallButton=(0,core_1.styled)(core_1.Button)({'justifyItems':'center','fontSize':'16px','boxShadow':'0px 0px 7px -2px rgba(0, 0, 0, 0.2)','transition':'.15s ease-out','textTransform':'capitalize','&$disabled':{boxShadow:'none'},'&:hover':{boxShadow:'0px 0px 7px -2px rgba(0, 0, 0, 0.2)',backgroundColor:'#62eda5 !important',transition:'.15s ease-in'}}); \ No newline at end of file diff --git a/dist/modules/common/SmallButton.js.map b/dist/modules/common/SmallButton.js.map deleted file mode 100644 index 890100a..0000000 --- a/dist/modules/common/SmallButton.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SmallButton.js","sourceRoot":"","sources":["../../../src/modules/common/SmallButton.tsx"],"names":[],"mappings":";;;AAAA,4CAAkD;AAErC,QAAA,WAAW,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC;IACxC,cAAc,EAAE,QAAQ;IACxB,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,qCAAqC;IAClD,YAAY,EAAE,eAAe;IAC7B,eAAe,EAAE,YAAY;IAE7B,YAAY,EAAE;QACZ,SAAS,EAAE,MAAM;KAClB;IAED,SAAS,EAAE;QACT,SAAS,EAAE,qCAAqC;QAChD,eAAe,EAAE,oBAAoB;QACrC,UAAU,EAAE,cAAc;KAC3B;CACF,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/common/TitleBlock.js b/dist/modules/common/TitleBlock.js deleted file mode 100644 index a1b6788..0000000 --- a/dist/modules/common/TitleBlock.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.TitleBlock=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const icons_1=require('@material-ui/icons');const react_router_hash_link_1=require('react-router-hash-link');const StyledGrid=(0,core_1.styled)(core_1.Grid)({height:'fit-content',background:'#2F3438',borderRadius:8,padding:'30px 40px',marginBottom:38});const CustomTypography=(0,core_1.styled)(core_1.Typography)({marginTop:27});const CustomTooltip=(0,core_1.styled)(core_1.Tooltip)({marginLeft:8,['@media (max-width:1167px)']:{marginLeft:0,marginTop:8}});const InfoIconInput=(0,core_1.styled)(icons_1.InfoRounded)(({theme})=>({cursor:'default',color:theme.palette.secondary.light,height:16,width:16}));const CustomTooltipText=(0,core_1.styled)(core_1.Typography)({fontSize:12,marginLeft:2});const CustomTextContainer=(0,core_1.styled)(core_1.Paper)({maxWidth:'fit-content',background:'inherit',boxShadow:'none',display:'flex',alignItems:'center'});const TitleBlock=({title='',description,tooltip=false,tooltipText=''})=>{return(0,jsx_runtime_1.jsxs)(StyledGrid,{container:true,direction:'row',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:12,container:true,direction:'row',alignItems:'flex-end',children:[(0,jsx_runtime_1.jsx)(CustomTextContainer,{children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h3',color:'textSecondary',children:title})}),tooltip?(0,jsx_runtime_1.jsxs)(CustomTextContainer,{children:[(0,jsx_runtime_1.jsx)(CustomTooltip,{placement:'bottom',title:description,children:(0,jsx_runtime_1.jsx)(InfoIconInput,{})}),(0,jsx_runtime_1.jsx)(react_router_hash_link_1.HashLink,{smooth:true,to:'/faq#how-to-create-a-dao-on-homebase',target:'_blank',children:(0,jsx_runtime_1.jsxs)(CustomTooltipText,{color:'secondary',children:[tooltipText,' ']})})]}):null]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:title===''?(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[' ',description]}):description?(0,jsx_runtime_1.jsx)(CustomTypography,{variant:'subtitle1',color:'textSecondary',children:description}):null}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12})]});};exports.TitleBlock=TitleBlock; \ No newline at end of file diff --git a/dist/modules/common/TitleBlock.js.map b/dist/modules/common/TitleBlock.js.map deleted file mode 100644 index 3231544..0000000 --- a/dist/modules/common/TitleBlock.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TitleBlock.js","sourceRoot":"","sources":["../../../src/modules/common/TitleBlock.tsx"],"names":[],"mappings":";;;;AAAA,4CAA4E;AAG5E,8CAAgD;AAChD,mEAAiD;AAGjD,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC9B,MAAM,EAAE,aAAa;IACrB,UAAU,EAAE,SAAS;IACrB,YAAY,EAAE,CAAC;IACf,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,EAAE;CACjB,CAAC,CAAA;AAEF,MAAM,gBAAgB,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IAC1C,SAAS,EAAE,EAAE;CACd,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,IAAA,aAAM,EAAC,cAAO,CAAC,CAAC;IACpC,UAAU,EAAE,CAAC;IACb,CAAC,2BAA2B,CAAC,EAAE;QAC7B,UAAU,EAAE,CAAC;QACb,SAAS,EAAE,CAAC;KACb;CACF,CAAC,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MAAM,QAAC,EAAE,EAAC,sCAAsC,EAAC,MAAM,EAAE,QAAQ,YACzE,wBAAC,iBAAiB,IAAC,KAAK,EAAC,WAAW,aAAE,WAAW,SAAsB,GAC9D,IACS,CACvB,CAAC,CAAC,CAAC,IAAI,IACH,EACP,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,YACd,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,CACd,wBAAC,iBAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,eAAe,aAClD,GAAG,EACH,WAAW,IACD,CACd,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAChB,uBAAC,gBAAgB,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,eAAe,YACxD,WAAW,GACK,CACpB,CAAC,CAAC,CAAC,IAAI,GACH,EACP,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,GAAS,IACf,CACd,CAAA;AACH,CAAC,CAAA;AAnCY,QAAA,UAAU,cAmCtB"} \ No newline at end of file diff --git a/dist/modules/common/Toolbar.js b/dist/modules/common/Toolbar.js deleted file mode 100644 index 4bdc6b0..0000000 --- a/dist/modules/common/Toolbar.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.Navbar=exports.ConnectWalletButton=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importStar(require('react'));const core_1=require('@material-ui/core');const react_router_dom_1=require('react-router-dom');const homebase_logo_svg_1=__importDefault(require('../../assets/logos/homebase_logo.svg'));const useTezos_1=require('../../services/beacon/hooks/useTezos');const utils_1=require('../../services/contracts/utils');const icons_1=require('@material-ui/icons');const UserProfileName_1=require('../explorer/components/UserProfileName');const ProfileAvatar_1=require('../explorer/components/styled/ProfileAvatar');const SmallButton_1=require('./SmallButton');const ChangeNetworkButton_1=require('./ChangeNetworkButton');const icons_2=require('@material-ui/icons');const AddressMenu=(0,core_1.styled)(core_1.Box)(()=>({width:264,borderRadius:4,backgroundColor:'#282B31'}));const AddressMenuItem=(0,core_1.styled)(core_1.Grid)(({theme})=>({cursor:'pointer',boxSizing:'border-box',color:theme.palette.text.secondary,padding:'15px 10px'}));const AddressMenuIcon=(0,core_1.styled)(core_1.Grid)({paddingRight:'12px',marginBottom:'-4px'});const StyledUserProfileName=(0,core_1.styled)(core_1.Typography)({color:'#ddd'});const StyledPopover=(0,core_1.styled)(core_1.Popover)({'.MuiPaper-root':{borderRadius:4}});const Header=(0,core_1.styled)(core_1.Grid)(({theme})=>({width:'1000px',height:'100%',margin:'auto',padding:'28px 0',flexDirection:'row',['@media (max-width: 1425px)']:{},['@media (max-width:1335px)']:{},['@media (max-width:1167px)']:{width:'86vw'},['@media (max-width:1030px)']:{},['@media (max-width:960px)']:{},['@media (max-width:645px)']:{flexDirection:'column'}}));const StyledAppBar=(0,core_1.styled)(core_1.AppBar)(({theme})=>({boxShadow:'none',background:theme.palette.primary.main,position:'sticky',['@media (max-height:750px)']:{position:'sticky'}}));const StyledToolbar=(0,core_1.styled)(core_1.Toolbar)({width:'100%',padding:0,boxSizing:'border-box',justifyContent:'space-between',flexWrap:'wrap'});const AddressContainer=(0,core_1.styled)(core_1.Grid)({cursor:'pointer'});const LogoText=(0,core_1.styled)(core_1.Typography)({fontWeight:'bold',fontSize:'24px',cursor:'pointer',fontFamily:'Roboto',letterSpacing:'initial'});const AddressBarWrapper=(0,core_1.styled)(core_1.Grid)({'boxSizing':'border-box','padding':'8px 16px','borderRadius':4,'&:hover':{background:'rgba(129, 254, 183, 0.03)'}});const LogoItem=(0,core_1.styled)('img')({height:'30px',cursor:'pointer',paddingTop:8});const ToolbarContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({['@media (max-width: 645px)']:{marginBottom:'20px'}}));const BackButtonContainer=(0,core_1.styled)(core_1.Grid)({marginTop:28,alignItems:'baseline'});const BackButton=(0,core_1.styled)(core_1.Typography)(({theme})=>({color:theme.palette.secondary.light,fontSize:18}));const BackButtonIcon=(0,core_1.styled)(icons_2.ArrowBackIos)(({theme})=>({color:theme.palette.secondary.light,fontSize:12,marginRight:15}));const BackButtonText=(0,core_1.styled)(core_1.Grid)({cursor:'pointer',alignItems:'baseline'});const ConnectWalletButton=({connect})=>(0,jsx_runtime_1.jsx)(SmallButton_1.SmallButton,{variant:'outlined',onClick:()=>connect(),children:'Connect Wallet'});exports.ConnectWalletButton=ConnectWalletButton;const Navbar=({mode,children,disableMobileMenu})=>{const {connect,account,reset,changeNetwork,network}=(0,useTezos_1.useTezos)();const [anchorEl,setAnchorEl]=react_1.default.useState(null);const [popperOpen,setPopperOpen]=(0,react_1.useState)(false);const theme=(0,core_1.useTheme)();const isMobileExtraSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const [networkAnchorEl,setNetworkAnchorEl]=react_1.default.useState(null);const [networkPopperOpen,setNetworkPopperOpen]=(0,react_1.useState)(false);const handleNetworkClick=event=>{setNetworkAnchorEl(event.currentTarget);setNetworkPopperOpen(!networkPopperOpen);};const handleNetworkChange=network=>{changeNetwork(network);setPopperOpen(!popperOpen);setNetworkPopperOpen(!networkPopperOpen);history.push('/explorer');};const handleClick=event=>{setAnchorEl(event.currentTarget);setPopperOpen(!popperOpen);};const handleLogout=()=>{reset();setPopperOpen(false);};const handleCopy=address=>{navigator.clipboard.writeText(address);setPopperOpen(false);};const history=(0,react_router_dom_1.useHistory)();return(0,jsx_runtime_1.jsx)(StyledAppBar,{children:(0,jsx_runtime_1.jsx)(StyledToolbar,{children:(0,jsx_runtime_1.jsxs)(Header,{container:true,alignItems:'center',wrap:'wrap',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Box,{onClick:()=>location.href=`/explorer`,children:(0,jsx_runtime_1.jsxs)(ToolbarContainer,{container:true,alignItems:'center',wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(LogoItem,{src:homebase_logo_svg_1.default})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Box,{paddingLeft:'10px',children:(0,jsx_runtime_1.jsx)(LogoText,{color:'textSecondary',children:'Homebase'})})})]})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:isMobileExtraSmall?'center':'flex-end',children:account?(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',style:{gap:12},justifyContent:isMobileExtraSmall?'center':'flex-end',children:[children,(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',style:{gap:8},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ChangeNetworkButton_1.ChangeNetworkButton,{})}),(0,jsx_runtime_1.jsx)(AddressBarWrapper,{item:true,onClick:handleClick,children:(0,jsx_runtime_1.jsxs)(AddressContainer,{container:true,alignItems:'center',wrap:'nowrap',justifyContent:'flex-end',style:{gap:8},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProfileAvatar_1.ProfileAvatar,{size:22,address:account})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledUserProfileName,{children:(0,jsx_runtime_1.jsx)(UserProfileName_1.UserProfileName,{address:account,short:true})})})]})})]})}),(0,jsx_runtime_1.jsx)(StyledPopover,{id:'wallet-Popper',open:popperOpen,anchorEl:anchorEl,style:{zIndex:1500,borderRadius:4},onClose:()=>{setPopperOpen(false);},PaperProps:{style:{borderRadius:4,backgroundColor:'transparent'}},children:(0,jsx_runtime_1.jsxs)(AddressMenu,{children:[(0,jsx_runtime_1.jsxs)(AddressMenuItem,{container:true,alignItems:'center',onClick:()=>handleCopy(account),children:[(0,jsx_runtime_1.jsx)(AddressMenuIcon,{item:true,children:(0,jsx_runtime_1.jsx)(icons_1.FileCopyOutlined,{color:'inherit',fontSize:'inherit'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:(0,utils_1.toShortAddress)(account)})})]}),(0,jsx_runtime_1.jsx)(AddressMenuItem,{container:true,alignItems:'center',onClick:handleNetworkClick,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:['Change network (',network,')']})})}),(0,jsx_runtime_1.jsxs)(AddressMenuItem,{style:{borderTop:'2px solid rgba(255, 255, 255, 0.2)'},container:true,alignItems:'center',onClick:handleLogout,children:[(0,jsx_runtime_1.jsx)(AddressMenuIcon,{item:true,children:(0,jsx_runtime_1.jsx)(icons_1.ExitToAppOutlined,{color:'inherit',fontSize:'inherit'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Log out'})})]})]})})]}):(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:'flex-end',alignItems:'center',wrap:'nowrap',style:{gap:8},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ChangeNetworkButton_1.ChangeNetworkButton,{})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(SmallButton_1.SmallButton,{color:'secondary',variant:'contained',style:{fontSize:'14px'},onClick:()=>connect(),children:'Connect Wallet'})})]})})}),(0,jsx_runtime_1.jsx)(BackButtonContainer,{container:true,justifyContent:'flex-start',children:mode!=='creator'?(0,jsx_runtime_1.jsxs)(BackButtonText,{container:true,item:true,xs:6,md:2,onClick:()=>location.href=`/explorer`,children:[(0,jsx_runtime_1.jsx)(BackButtonIcon,{}),(0,jsx_runtime_1.jsx)(BackButton,{children:'Back'})]}):null})]})})});};exports.Navbar=Navbar; \ No newline at end of file diff --git a/dist/modules/common/Toolbar.js.map b/dist/modules/common/Toolbar.js.map deleted file mode 100644 index 4931451..0000000 --- a/dist/modules/common/Toolbar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../src/modules/common/Toolbar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAuC;AACvC,4CAY0B;AAC1B,uDAA6C;AAG7C,uFAAuD;AACvD,6DAAyD;AACzD,oDAAyD;AACzD,8CAAwE;AAExE,iFAA6E;AAC7E,oFAAgF;AAEhF,+CAA2C;AAC3C,+DAA2D;AAE3D,8CAAiD;AAIjD,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACrC,KAAK,EAAE,GAAG;IACV,YAAY,EAAE,CAAC;IACf,eAAe,EAAE,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AO,EAAE,+BAGZ,GACT,IACF,CACR,GACI,GACF,EACP,uBAAC,mBAAmB,IAAC,SAAS,QAAC,cAAc,EAAC,YAAY,YACvD,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CACpB,wBAAC,cAAc,IAAC,SAAS,QAAC,IAAI,QAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,GAAG,WAAW,CAAC,aACvF,uBAAC,cAAc,KAAG,EAClB,uBAAC,UAAU,uBAAkB,IACd,CAClB,CAAC,CAAC,CAAC,IAAI,GACY,IACf,GAEK,GACH,CAChB,CAAA;AACH,CAAC,CAAA;AAvLY,QAAA,MAAM,UAuLlB"} \ No newline at end of file diff --git a/dist/modules/common/WarningFooter.js b/dist/modules/common/WarningFooter.js deleted file mode 100644 index ecaf99c..0000000 --- a/dist/modules/common/WarningFooter.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.WarningFooter=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const warning_svg_1=require('../../assets/logos/warning.svg');const Close_1=__importDefault(require('@material-ui/icons/Close'));const hex_to_rgba_1=__importDefault(require('hex-to-rgba'));const Container=(0,core_1.styled)(core_1.Box)({position:'fixed',width:'100%',minHeight:92,bottom:0,background:(0,hex_to_rgba_1.default)('#746438',0.95),boxSizing:'border-box',padding:'25px 50px',color:'#FFC839',zIndex:10000});const ContainerText=(0,core_1.styled)(core_1.Typography)({maxWidth:1160,fontWeight:400,color:'inherit',fontSize:'18px',['@media (max-width:1030px)']:{fontSize:'16px'}});const WarningFooter=({text})=>{const [open,setOpen]=(0,react_1.useState)(true);const isWarningClosed=null;const closeButton=()=>{localStorage.setItem('warning-closed','true');setOpen(false);};return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:open&&!isWarningClosed&&isWarningClosed!=='true'&&(0,jsx_runtime_1.jsx)(Container,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',justifyContent:'space-between',wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(warning_svg_1.ReactComponent,{fill:'#FFC839'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,style:{marginRight:'10px'}}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ContainerText,{align:'center',children:text})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.IconButton,{onClick:closeButton,children:(0,jsx_runtime_1.jsx)(Close_1.default,{htmlColor:'#FFC839'})})})]})})});};exports.WarningFooter=WarningFooter; \ No newline at end of file diff --git a/dist/modules/common/WarningFooter.js.map b/dist/modules/common/WarningFooter.js.map deleted file mode 100644 index ae68bf2..0000000 --- a/dist/modules/common/WarningFooter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WarningFooter.js","sourceRoot":"","sources":["../../../src/modules/common/WarningFooter.tsx"],"names":[],"mappings":";;;;;;;AAAA,4CAA6E;AAC7E,iCAAkD;AAClD,0DAAwE;AACxE,qEAAgD;AAChD,8DAAmC;AAEnC,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC;IAC5B,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,MAAM;IACb,SAAS,EAAE,EAAE;IACb,MAAM,EAAE,CAAC;IACT,UAAU,EAAE,IAAA,qBAAS,EAAC,SAAS,EAAE,IAAI,CAAC;IACtC,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,KAAK;CACd,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,IAAA,a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,CAAA;AAlCY,QAAA,aAAa,iBAkCzB"} \ No newline at end of file diff --git a/dist/modules/common/hooks/useLocalStorage.js b/dist/modules/common/hooks/useLocalStorage.js deleted file mode 100644 index 5099af6..0000000 --- a/dist/modules/common/hooks/useLocalStorage.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});const react_1=require('react');function useLocalStorage(key,initialValue){const readValue=()=>{if(typeof window==='undefined'){return initialValue;}try{const item='';return item?JSON.parse(item):initialValue;}catch(error){console.warn(`Error reading localStorage key “${key}”:`,error);return initialValue;}};const [storedValue,setStoredValue]=(0,react_1.useState)(readValue);const setValue=value=>{if(typeof window=='undefined'){console.warn(`Tried setting localStorage key “${key}” even though environment is not a client`);}try{const newValue=value instanceof Function?value(storedValue):value;setStoredValue(newValue);}catch(error){console.warn(`Error setting localStorage key “${key}”:`,error);}};(0,react_1.useEffect)(()=>{setStoredValue(readValue());},[]);(0,react_1.useEffect)(()=>{const handleStorageChange=()=>{setStoredValue(readValue());};return()=>{};},[]);return[storedValue,setValue];}exports.default=useLocalStorage; \ No newline at end of file diff --git a/dist/modules/common/hooks/useLocalStorage.js.map b/dist/modules/common/hooks/useLocalStorage.js.map deleted file mode 100644 index f6feb0a..0000000 --- a/dist/modules/common/hooks/useLocalStorage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useLocalStorage.js","sourceRoot":"","sources":["../../../../src/modules/common/hooks/useLocalStorage.ts"],"names":[],"mappings":";;AAAA,iCAA2C;AAE3C,oEAAoE;AACpE,SAAS,eAAe,CAAI,GAAW,EAAE,YAAe;IACtD,8BAA8B;IAC9B,2CAA2C;IAC3C,MAAM,SAAS,GAAG,GAAG,EAAE;QACrB,kEAAkE;QAClE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;YACjC,OAAO,YAAY,CAAA;SACpB;QACD,IAAI;YACF,MAAM,IAAI,GAAG,EAAE,CAAA;YACf,OAAO,IAAI,CAAC,CAAC,CAA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uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAA;IACN,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAA;AAChC,CAAC;AACD,kBAAe,eAAe,CAAA"} \ No newline at end of file diff --git a/dist/modules/common/hooks/useNotification.js b/dist/modules/common/hooks/useNotification.js deleted file mode 100644 index 0e02463..0000000 --- a/dist/modules/common/hooks/useNotification.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i(0,jsx_runtime_1.jsxs)(react_1.Fragment,{children:[detailsLink?(0,jsx_runtime_1.jsx)(ExternalLink_1.ExternalLink,{link:detailsLink,children:(0,jsx_runtime_1.jsx)(ExpandIcon,{})}):null,(0,jsx_runtime_1.jsx)(core_1.Button,{onClick:onClose,children:(0,jsx_runtime_1.jsx)(CloseIcon,{})})]});const useNotification=()=>{const {enqueueSnackbar,closeSnackbar}=(0,notistack_1.useSnackbar)();const open=_a=>{var {message,detailsLink}=_a,options=__rest(_a,['message','detailsLink']);const key=enqueueSnackbar(message,Object.assign(Object.assign({},options),{persist:true,action:(0,jsx_runtime_1.jsx)(NotificationActions,{detailsLink:detailsLink,onClose:()=>closeSnackbar(key)})}));return{key,closeSnackbar};};return open;};exports.useNotification=useNotification; \ No newline at end of file diff --git a/dist/modules/common/hooks/useNotification.js.map b/dist/modules/common/hooks/useNotification.js.map deleted file mode 100644 index 3566b62..0000000 --- a/dist/modules/common/hooks/useNotification.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useNotification.js","sourceRoot":"","sources":["../../../../src/modules/common/hooks/useNotification.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAuC;AACvC,4CAAkD;AAClD,yCAAsD;AACtD,8CAAqD;AACrD,8DAA0D;AAE1D,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,aAAK,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM;CACd,CAAC,CAAA;AAEF,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,iBAAS,CAAC,CAAC;IACnC,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,EAAE;CACb,CAAC,CAAA;AAEF,MAAM,mBAAmB,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,EAAiD,EAAE,EAAE,CAAC,CACvG,wBAAC,gBAAQ,eACN,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,2BAAY,IAAC,IAAI,EAAE,WAAW,YAC7B,uBAAC,UAAU,KAAG,GACD,CAChB,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,aAAM,IAAC,OAAO,EAAE,OAAO,YACtB,uBAAC,SAAS,KAAG,GACN,IACA,CACZ,CAAA;AAOM,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,EAAE,eAAe,EAAE,aAAa,EAAE,GAAG,IAAA,uBAAW,GAAE,CAAA;IACxD,MAAM,IAAI,GAAG,CAAC,EAAwD,EAAE,EAAE;YAA5D,EAAE,OAAO,EAAE,WAAW,OAAkC,EAA7B,OAAO,cAAlC,0BAAoC,CAAF;QAC9C,MAAM,GAAG,GAAG,eAAe,CAAC,OAAO,kCAC9B,OAAO,KACV,OAAO,EAAE,IAAI,EACb,MAAM,EAAE,uBAAC,mBAAmB,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,GAAI,IAC5F,CAAA;QAEF,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,CAAA;IAC/B,CAAC,CAAA;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAbY,QAAA,eAAe,mBAa3B"} \ No newline at end of file diff --git a/dist/modules/creator/components/ClaimName.js b/dist/modules/creator/components/ClaimName.js deleted file mode 100644 index 1762e49..0000000 --- a/dist/modules/creator/components/ClaimName.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ClaimName=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const CustomUrlButton=(0,core_1.styled)(core_1.Paper)({border:'1px solid #3866F9',width:165,height:31,boxSizing:'border-box',borderRadius:21,cursor:'pointer',backgroundColor:'#fff',boxShadow:'none',textAlign:'center',margin:'auto',padding:5,color:'#3866F9',marginTop:12,fontFamily:'system-ui'});const CustomContainer=(0,core_1.styled)(core_1.Grid)({height:62,width:'100%',background:'#FFFFFF',border:'1px solid #E4E4E4',boxSizing:'border-box',marginTop:14});const ClaimName=()=>{return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h2',children:'Claim a name'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,children:(0,jsx_runtime_1.jsx)(CustomUrlButton,{children:'Use a custom URL'})})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle1',children:'Organization\u2019s name'})})}),(0,jsx_runtime_1.jsx)(CustomContainer,{container:true,direction:'row'})]});};exports.ClaimName=ClaimName; \ No newline at end of file diff --git a/dist/modules/creator/components/ClaimName.js.map b/dist/modules/creator/components/ClaimName.js.map deleted file mode 100644 index a9ab1d4..0000000 --- a/dist/modules/creator/components/ClaimName.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClaimName.js","sourceRoot":"","sources":["../../../../src/modules/creator/components/ClaimName.tsx"],"names":[],"mappings":";;;;AAAA,4CAAmE;AAGnE,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AAC,CAAA;AAnBY,QAAA,SAAS,aAmBrB"} \ No newline at end of file diff --git a/dist/modules/creator/components/ConnectWallet.js b/dist/modules/creator/components/ConnectWallet.js deleted file mode 100644 index 0c4d57e..0000000 --- a/dist/modules/creator/components/ConnectWallet.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ConnectWallet=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const Image_1=__importDefault(require('@material-ui/icons/Image'));const useTezos_1=require('../../../services/beacon/hooks/useTezos');const PageContainer=(0,core_1.styled)(core_1.Grid)({height:'90%'});const SpacingTitle=(0,core_1.styled)(core_1.Typography)({marginBottom:15});const ConnectWallet=()=>{const {connect}=(0,useTezos_1.useTezos)();return(0,jsx_runtime_1.jsx)(PageContainer,{container:true,justifyContent:'flex-start',alignItems:'center',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(SpacingTitle,{align:'left',variant:'h3',color:'textSecondary',children:'Connect your wallet'}),(0,jsx_runtime_1.jsx)(SpacingTitle,{align:'left',variant:'subtitle1',color:'textSecondary',children:'Create an organization by picking a template below'}),(0,jsx_runtime_1.jsx)(core_1.Box,{children:(0,jsx_runtime_1.jsx)(core_1.List,{children:(0,jsx_runtime_1.jsxs)(core_1.ListItem,{button:true,onClick:()=>connect(),children:[(0,jsx_runtime_1.jsx)(core_1.ListItemAvatar,{children:(0,jsx_runtime_1.jsx)(core_1.Avatar,{children:(0,jsx_runtime_1.jsx)(Image_1.default,{})})}),(0,jsx_runtime_1.jsxs)(core_1.ListItemText,{children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[' ','Connect']}),' ']})]})})})]})});};exports.ConnectWallet=ConnectWallet; \ No newline at end of file diff --git a/dist/modules/creator/components/ConnectWallet.js.map b/dist/modules/creator/components/ConnectWallet.js.map deleted file mode 100644 index f9910ac..0000000 --- a/dist/modules/creator/components/ConnectWallet.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConnectWallet.js","sourceRoot":"","sources":["../../../../src/modules/creator/components/ConnectWallet.tsx"],"names":[],"mappings":";;;;;;;AAAA,4CAAuH;AACvH,qEAAgD;AAEhD,6DAAyD;AAEzD,MAAM,aAAa,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IACjC,MAAM,EAAE,KAAK;CACd,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACtC,YAAY,EAAE,EAAE;CACjB,CAAC,CAAA;AAEK,MAAM,aAAa,GAAa,GAAG,EAAE;IAC1C,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAE9B,OAAO,CACL,uBAAC,aAAa,IAAC,SAAS,QAAC,cAAc,EAAC,YAAY,EAAC,UAAU,EAAC,QAAQ,YACtE,wBAAC,WAAI,IAAC,IAAI,mBACR,uBAAC,YAAY,IAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAC,eAAe,oCAE9C,EACf,uBAAC,YAAY,IAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,eAAe,mEAErD,EACf,uBAAC,UAAG,cACF,uBAAC,WAAI,cACH,wBAAC,eAAQ,IAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,aAC9C,uBAAC,qBAAc,cACb,uBAAC,aAAM,cACL,uBAAC,eAAS,KAAG,GACN,GACM,EACjB,wBAAC,mBAAY,eACX,wBAAC,iBAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,eAAe,aAClD,GAAG,eAEO,EAAC,GAAG,IACJ,IACN,GACN,GACH,IACD,GACO,CACjB,CAAA;AACH,CAAC,CAAA;AAhCY,QAAA,aAAa,iBAgCzB"} \ No newline at end of file diff --git a/dist/modules/creator/components/DeploymentLoader.js b/dist/modules/creator/components/DeploymentLoader.js deleted file mode 100644 index 6aeb973..0000000 --- a/dist/modules/creator/components/DeploymentLoader.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.DeploymentLoader=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const SuspenseDots_1=require('./SuspenseDots');const WaitingText=(0,core_1.styled)(core_1.Typography)({marginTop:46,textAlign:'center',justifyContent:'center',marginBottom:20,maxWidth:650});const StyledContainer=(0,core_1.styled)(core_1.Box)({width:'100%',marginTop:'-15%',minWidth:650,['@media (max-width:1167px)']:{minWidth:'auto'}});const StyledStepper=(0,core_1.styled)(core_1.Stepper)(({theme})=>({'width':'100%','paddingLeft':0,'paddingRight':0,'background':'inherit','& .MuiStepConnector-alternativeLabel':{'left':'calc(-50% + 19px)','right':'calc(50% + 19px)','top':16,'& .MuiStepConnector-lineHorizontal':{borderColor:theme.palette.primary.light,borderTopWidth:3}}}));const StyledLabel=(0,core_1.styled)(core_1.StepLabel)(({theme,focused,hasError})=>({'& .MuiStepIcon-root':{borderWidth:3},'& .MuiStepIcon-active':{borderColor:hasError?theme.palette.error.main:focused?'#fff':theme.palette.primary.light,fill:'none'},'& .MuiStepIcon-text':{fill:'none'},'& .MuiStepIcon-completed':{borderColor:focused?'#fff':theme.palette.secondary.main,fill:theme.palette.secondary.main}}));const ColorlibConnector=(0,core_1.withStyles)(theme=>({alternativeLabel:{top:22},active:{'& $line':{backgroundColor:theme.palette.secondary.main}},completed:{'& $line':{backgroundColor:theme.palette.secondary.main}},line:{height:3,border:0,backgroundColor:theme.palette.primary.light,borderRadius:1}}))(core_1.StepConnector);const DeploymentLoader=({states,activeStep,error})=>{const errorMessage='Something went wrong, please try again later.';const [focusedState,setFocusedState]=(0,react_1.useState)(0);const isFinished=activeStep===states.length;const isStarted=Number.isInteger(activeStep);const showActiveText=isStarted&&!isFinished&&activeStep===focusedState;const showCompletedText=isStarted&&focusedState{if(activeStep){if(isFinished){setFocusedState(states.length-1);}else{setFocusedState(activeStep);}}},[activeStep,isFinished,states.length]);return(0,jsx_runtime_1.jsxs)(StyledContainer,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(WaitingText,{variant:'subtitle1',color:'textSecondary',children:[showActiveText?error?errorMessage:states[focusedState].activeText:showCompletedText?states[focusedState].completedText:'',showActiveText&&!error&&(0,jsx_runtime_1.jsx)(SuspenseDots_1.SuspenseDots,{})]})})}),(0,jsx_runtime_1.jsx)(StyledStepper,{activeStep:activeStep,alternativeLabel:true,nonLinear:true,connector:(0,jsx_runtime_1.jsx)(ColorlibConnector,{}),children:states.map((_,index)=>(0,jsx_runtime_1.jsx)(core_1.Step,{onClick:()=>{if(!activeStep){return;}if(index<=activeStep){setFocusedState(index);}},completed:activeStep?index({background:theme.palette.primary.main,marginLeft:47,marginBottom:10,['@media (max-width:1167px)']:{marginLeft:0,marginBottom:50}}));const BackButton=(0,core_1.styled)(core_1.Paper)({boxShadow:'none',height:41,background:'inherit',color:'#fff',textAlign:'start',cursor:'pointer',display:'flex',alignItems:'baseline',padding:8,width:'fit-content'});const NextButton=(0,core_1.styled)(core_1.Paper)(({theme})=>({boxShadow:'none',borderRadius:4,textAlign:'center',float:'right',cursor:'pointer',background:theme.palette.secondary.light,padding:8}));const BackButtonIcon=(0,core_1.styled)(icons_1.ArrowBackIos)(({theme})=>({color:theme.palette.secondary.light,fontSize:12,marginRight:12}));const FooterContainer=(0,core_1.styled)(core_1.Grid)(({isMobile})=>({width:'100%'}));const NavigationBar=({back,next})=>{const theme=(0,core_1.useTheme)();const isMobile=(0,core_1.useMediaQuery)(theme.breakpoints.down('md'));return(0,jsx_runtime_1.jsx)(Footer,{container:true,direction:'row',alignItems:'center',children:(0,jsx_runtime_1.jsxs)(FooterContainer,{item:true,xs:12,container:true,isMobile:isMobile,children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,children:back&&(0,jsx_runtime_1.jsxs)(BackButton,{onClick:back.handler,children:[(0,jsx_runtime_1.jsx)(BackButtonIcon,{}),(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'secondary',children:back.text})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,children:next&&(0,jsx_runtime_1.jsx)(NextButton,{onClick:next.handler,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'primary',children:next.text})})})]})});};exports.NavigationBar=NavigationBar; \ No newline at end of file diff --git a/dist/modules/creator/components/NavigationBar.js.map b/dist/modules/creator/components/NavigationBar.js.map deleted file mode 100644 index 53208a7..0000000 --- a/dist/modules/creator/components/NavigationBar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NavigationBar.js","sourceRoot":"","sources":["../../../../src/modules/creator/components/NavigationBar.tsx"],"names":[],"mappings":";;;;AAAA,4CAA4F;AAE5F,8CAAiD;AAIjD,MAAM,MAAM,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1C,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACtC,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,EAAE;IAChB,CAAC,2BAA2B,CAAC,EAAE;QAC7B,UAAU,EAAE,CAAC;QACb,YAAY,EAAE,EAAE;KACjB;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,YAAK,CAAC,CAAC;IAC/B,SAAS,EAAE,MAAM;IACjB,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,SAAS;IACrB,KAAK,EAAE,MAAM;IACb,SAAS,EAAE,OAAO;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,EAAE,EAAE,EAAE,EAAE,SAAS,QAAC,QAAQ,EAAE,QAAQ,aACxD,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACb,IAAI,IAAI,CACP,wBAAC,UAAU,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,aAC/B,uBAAC,cAAc,KAAG,EAClB,uBAAC,iBAAU,IAAC,KAAK,EAAC,WAAW,YAAE,IAAI,CAAC,IAAI,GAAc,IAC3C,CACd,GACI,EACP,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACb,IAAI,IAAI,CACP,uBAAC,UAAU,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,YAC/B,uBAAC,iBAAU,IAAC,KAAK,EAAC,SAAS,YAAE,IAAI,CAAC,IAAI,GAAc,GACzC,CACd,GACI,IACS,GACX,CACV,CAAA;AACH,CAAC,CAAA;AAzBY,QAAA,aAAa,iBAyBzB"} \ No newline at end of file diff --git a/dist/modules/creator/components/ProtectedRoute.js b/dist/modules/creator/components/ProtectedRoute.js deleted file mode 100644 index e60aa1d..0000000 --- a/dist/modules/creator/components/ProtectedRoute.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};Object.defineProperty(exports,'__esModule',{value:true});exports.ProtectedRoute=exports.useCreatorRouteValidation=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importStar(require('react'));const react_router_dom_1=require('react-router-dom');const state_1=require('../state');const useCreatorRouteValidation=()=>{return'';};exports.useCreatorRouteValidation=useCreatorRouteValidation;const ProtectedRoute=({children})=>{const {successful}=(0,react_1.useContext)(state_1.CreatorContext).state.deploymentStatus;const history=(0,react_router_dom_1.useHistory)();const redirectUrl=(0,exports.useCreatorRouteValidation)();(0,react_1.useEffect)(()=>{if(redirectUrl&&!successful)history.replace(redirectUrl);},[history,redirectUrl,successful]);return(0,jsx_runtime_1.jsx)(react_1.default.Fragment,{children:children});};exports.ProtectedRoute=ProtectedRoute; \ No newline at end of file diff --git a/dist/modules/creator/components/ProtectedRoute.js.map b/dist/modules/creator/components/ProtectedRoute.js.map deleted file mode 100644 index bf973eb..0000000 --- a/dist/modules/creator/components/ProtectedRoute.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProtectedRoute.js","sourceRoot":"","sources":["../../../../src/modules/creator/components/ProtectedRoute.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwD;AACxD,uDAA6C;AAC7C,iDAAsD;AACtD,yDAAyD;AACzD,sEAAsE;AAE/D,MAAM,yBAAyB,GAAG,GAAW,EAAE;IACpD,iCAAiC;IACjC,sCAAsC;IACtC,gCAAgC;IAChC,gFAAgF;IAChF,mBAAmB;IACnB,gBAAgB;IAEhB,2CAA2C;IAC3C,iDAAiD;IAEjD,qDAAqD;IAErD,+DAA+D;IAE/D,0GAA0G;IAC1G,6CAA6C;IAC7C,+DAA+D;IAC/D,YAAY;IAEZ,8EAA8E;IAE9E,yDAAyD;IACzD,0DAA0D;IAC1D,KAAK;IAEL,wBAAwB;IAExB,iBAAiB;IACjB,yDAAyD;IACzD,yDAAyD;IACzD,iCAAiC;IACjC,gEAAgE;IAChE,iCAAiC;IAEjC,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AApCY,QAAA,yBAAyB,6BAoCrC;AAEM,MAAM,cAAc,GAAO,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjD,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,kBAAU,EAAC,sBAAc,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAA;IACxE,MAAM,OAAO,GAAG,IAAA,6BAAU,GAAE,CAAA;IAC5B,MAAM,WAAW,GAAG,IAAA,iCAAyB,GAAE,CAAA;IAC/C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,WAAW,IAAI,CAAC,UAAU;YAAE,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IAC9D,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC,CAAA;IAEtC,OAAO,uBAAC,eAAK,CAAC,QAAQ,cAAE,QAAQ,GAAkB,CAAA;AACpD,CAAC,CAAA;AATY,QAAA,cAAc,kBAS1B"} \ No newline at end of file diff --git a/dist/modules/creator/components/SuspenseDots.js b/dist/modules/creator/components/SuspenseDots.js deleted file mode 100644 index a900932..0000000 --- a/dist/modules/creator/components/SuspenseDots.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.SuspenseDots=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const useStyles=(0,core_1.makeStyles)({'firstDot':{animation:'$firstDot 2s linear infinite'},'secondDot':{animation:'$secondDot 2s linear infinite'},'threeDot':{animation:'$thirdDot 2s linear infinite'},'@keyframes firstDot':{'0%':{opacity:1},'65%':{opacity:1},'66%':{opacity:0},'100%':{opacity:0}},'@keyframes secondDot':{'0%':{opacity:0},'21%':{opacity:0},'22%':{opacity:1},'65%':{opacity:1},'66%':{opacity:0},'100%':{opacity:0}},'@keyframes thirdDot':{'0%':{opacity:0},'43%':{opacity:0},'44%':{opacity:1},'65%':{opacity:1},'66%':{opacity:0},'100%':{opacity:0}}});const SuspenseDots=()=>{const classes=useStyles();return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)('span',{className:classes.firstDot,children:'.'}),(0,jsx_runtime_1.jsx)('span',{className:classes.secondDot,children:'.'}),(0,jsx_runtime_1.jsx)('span',{className:classes.threeDot,children:'.'})]});};exports.SuspenseDots=SuspenseDots; \ No newline at end of file diff --git a/dist/modules/creator/components/SuspenseDots.js.map b/dist/modules/creator/components/SuspenseDots.js.map deleted file mode 100644 index b40f489..0000000 --- a/dist/modules/creator/components/SuspenseDots.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SuspenseDots.js","sourceRoot":"","sources":["../../../../src/modules/creator/components/SuspenseDots.tsx"],"names":[],"mappings":";;;;AACA,4CAA8C;AAE9C,MAAM,SAAS,GAAG,IAAA,iBAAU,EAAC;IAC3B,UAAU,EAAE;QACV,SAAS,EAAE,8BAA8B;KAC1C;IACD,WAAW,EAAE;QACX,SAAS,EAAE,+BAA+B;KAC3C;IACD,UAAU,EAAE;QACV,SAAS,EAAE,8BAA8B;KAC1C;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE;YACJ,OAAO,EAAE,CAAC;SACX;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC;SACX;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC;SACX;QACD,MAAM,EAAE;YACN,OAAO,EAAE,CAAC;SACX;KACF;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE;YACJ,OAAO,EAAE,CAAC;SACX;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC;SACX;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC;SACX;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC;SACX;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC;SACX;QACD,MAAM,EAAE;YACN,OAAO,EAAE,CAAC;SACX;KACF;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE;YACJ,OAAO,EAAE,CAAC;SACX;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC;SACX;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC;SACX;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC;SACX;QACD,KAAK,EAAE;YACL,OAAO,EAAE,CAAC;SACX;QACD,MAAM,EAAE;YACN,OAAO,EAAE,CAAC;SACX;KACF;CACF,CAAC,CAAA;AAEK,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,MAAM,OAAO,GAAG,SAAS,EAAE,CAAA;IAE3B,OAAO,CACL,6DACE,iCAAM,SAAS,EAAE,OAAO,CAAC,QAAQ,kBAAU,EAC3C,iCAAM,SAAS,EAAE,OAAO,CAAC,SAAS,kBAAU,EAC5C,iCAAM,SAAS,EAAE,OAAO,CAAC,QAAQ,kBAAU,IAC1C,CACJ,CAAA;AACH,CAAC,CAAA;AAVY,QAAA,YAAY,gBAUxB"} \ No newline at end of file diff --git a/dist/modules/creator/deployment/index.js b/dist/modules/creator/deployment/index.js deleted file mode 100644 index 4731a1e..0000000 --- a/dist/modules/creator/deployment/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.Deployment=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const Toolbar_1=require('../../common/Toolbar');const react_customizable_progressbar_1=__importDefault(require('react-customizable-progressbar'));const steps_1=require('./steps');const react_router_dom_1=require('react-router-dom');const NavigationBar_1=require('../components/NavigationBar');const context_1=require('./state/context');const PageContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main}));const PageContent=(0,core_1.styled)(core_1.Grid)(({theme})=>({marginTop:0,width:'1000px',height:'100%',margin:'auto',padding:'28px 0',flexDirection:'row',paddingTop:0,['@media (max-width:1167px)']:{width:'86vw'},[theme.breakpoints.down('sm')]:{marginTop:10}}));const IndicatorValue=(0,core_1.styled)(core_1.Paper)(({theme})=>({display:'flex',alignItems:'center',justifyContent:'center',textAlign:'center',position:'absolute',top:0,width:'100%',height:'100%',margin:'0 auto',fontSize:25,color:theme.palette.text.secondary,userSelect:'none',boxShadow:'none',background:'inherit',fontFamily:'Roboto Mono'}));const StepContentContainer=(0,core_1.styled)(core_1.Grid)({alignItems:'baseline',height:'100%',paddingTop:0,boxSizing:'border-box',overflowY:'auto',marginLeft:47,zIndex:10,width:'fit-content',['@media (max-width:1167px)']:{marginLeft:0}});const ProgressContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:'#2F3438',display:'grid',borderRadius:8,maxHeight:410,paddingTop:20,position:'sticky',top:125}));const StyledStepper=(0,core_1.styled)(core_1.Stepper)({'background':'inherit','paddingTop':48,'& .MuiStepLabel-label':{fontSize:14,lineHeight:14},'cursor':'pointer'});const Deployment=()=>{const creator=(0,react_1.useContext)(context_1.DeploymentContext);const {back,next}=creator.state;const theme=(0,core_1.useTheme)();const isMobile=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const history=(0,react_router_dom_1.useHistory)();const step=(0,steps_1.useDeploymentStepNumber)();const progress=(0,react_1.useMemo)(()=>step*50,[step]);return(0,jsx_runtime_1.jsxs)(PageContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(Toolbar_1.Navbar,{mode:'creator'}),(0,jsx_runtime_1.jsxs)(PageContent,{container:true,direction:'row',children:[!isMobile&&(0,jsx_runtime_1.jsx)(ProgressContainer,{item:true,xs:3,container:true,direction:'column',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'column',alignItems:'center',xs:true,children:[(0,jsx_runtime_1.jsx)(react_customizable_progressbar_1.default,{progress:progress,radius:52,strokeWidth:5,strokeColor:theme.palette.secondary.main,trackStrokeWidth:4,trackStrokeColor:'rgba(255, 255, 255, 0.2)',children:(0,jsx_runtime_1.jsx)(core_1.Box,{className:'indicator',children:(0,jsx_runtime_1.jsxs)(IndicatorValue,{children:[progress===0.5?0:step*50,'%']})})}),(0,jsx_runtime_1.jsx)(StyledStepper,{activeStep:step,orientation:'vertical',children:steps_1.STEPS.map(({title,path},index)=>(0,jsx_runtime_1.jsx)(core_1.Step,{children:(0,jsx_runtime_1.jsx)(core_1.StepLabel,{onClick:()=>index{const match=(0,react_router_dom_1.useRouteMatch)();return(0,jsx_runtime_1.jsxs)(react_router_dom_1.Switch,{children:[(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:`${match.url}/deployment`,children:(0,jsx_runtime_1.jsx)(_1.Deployment,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:`${match.url}/ownership`,children:(0,jsx_runtime_1.jsx)(Ownership_1.Ownership,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:`${match.url}/config`,children:(0,jsx_runtime_1.jsx)(Config_1.ConfigContract,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:`${match.url}/distribution`,children:(0,jsx_runtime_1.jsx)(Distribution_1.ContractDistribution,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:`${match.url}/summary`,children:(0,jsx_runtime_1.jsx)(Summary_1.ContractSummary,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:`${match.url}/success`,children:(0,jsx_runtime_1.jsx)(Success_1.Success,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Redirect,{to:`${match.url}/ownership`})]});};exports.TokenDeploymentRouter=TokenDeploymentRouter; \ No newline at end of file diff --git a/dist/modules/creator/deployment/router.js.map b/dist/modules/creator/deployment/router.js.map deleted file mode 100644 index 1b5ccf0..0000000 --- a/dist/modules/creator/deployment/router.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../src/modules/creator/deployment/router.tsx"],"names":[],"mappings":";;;;AACA,uDAAyE;AACzE,wBAA8B;AAC9B,2CAA+C;AAC/C,uDAA2D;AAC3D,6CAAiD;AACjD,iDAA6C;AAC7C,6CAAyC;AAElC,MAAM,qBAAqB,GAAG,GAAgB,EAAE;IACrD,MAAM,KAAK,GAAG,IAAA,gCAAa,GAAE,CAAA;IAE7B,OAAO,CACL,wBAAC,yBAAM,eACL,uBAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,aAAa,YACpC,uBAAC,aAAU,KAAG,GACR,EACR,uBAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,YAAY,YACnC,uBAAC,qBAAS,KAAG,GACP,EACR,uBAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,SAAS,YAChC,uBAAC,uBAAc,KAAG,GACZ,EACR,uBAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,eAAe,YACtC,uBAAC,mCAAoB,KAAG,GAClB,EACR,uBAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,UAAU,YACjC,uBAAC,yBAAe,KAAG,GACb,EACR,uBAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,UAAU,YACjC,uBAAC,iBAAO,KAAG,GACL,EACR,uBAAC,2BAAQ,IAAC,EAAE,EAAE,GAAG,KAAK,CAAC,GAAG,YAAY,GAAI,IACnC,CACV,CAAA;AACH,CAAC,CAAA;AA1BY,QAAA,qBAAqB,yBA0BjC"} \ No newline at end of file diff --git a/dist/modules/creator/deployment/state/context.js b/dist/modules/creator/deployment/state/context.js deleted file mode 100644 index 692e761..0000000 --- a/dist/modules/creator/deployment/state/context.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.DeploymentContext=exports.DeploymentProvider=exports.reducer=exports.INITIAL_STATE=exports.INITIAL_TOKEN_STATE=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const useLocalStorage_1=__importDefault(require('../../../common/hooks/useLocalStorage'));const types_1=require('./types');const bignumber_js_1=__importDefault(require('bignumber.js'));const deploymentStatus={deploying:false,successful:false};const LOCAL_STORAGE_KEY='deploymentParams';exports.INITIAL_TOKEN_STATE={tokenSettings:{name:'',description:'',totalSupply:null,decimals:null,symbol:'',icon:''},tokenDistribution:{holders:[{walletAddress:'',amount:null}],totalAmount:new bignumber_js_1.default(0)}};exports.INITIAL_STATE={data:exports.INITIAL_TOKEN_STATE,deploymentStatus};const DeploymentContext=(0,react_1.createContext)({state:exports.INITIAL_STATE,dispatch:()=>null,updateCache:()=>null});exports.DeploymentContext=DeploymentContext;const reducer=(state,action)=>{switch(action.type){case types_1.ActionTypes.UPDATE_DEPLOYMENT_STATUS:const {contract,deploying}=action.status;state=Object.assign(Object.assign({},state),{deploymentStatus:{contract,deploying,successful:false}});return state;case types_1.ActionTypes.UPDATE_NAVIGATION_BAR:state=Object.assign(Object.assign({},state),{next:action.next,back:action.back});return state;case types_1.ActionTypes.UPDATE_TOKEN_SETTINGS:state=Object.assign(Object.assign({},state),{data:Object.assign(Object.assign({},state.data),{tokenSettings:action.contractInfo})});return state;case types_1.ActionTypes.UPDATE_TOKEN_DISTRIBUTION:state=Object.assign(Object.assign({},state),{data:Object.assign(Object.assign({},state.data),{tokenDistribution:action.distribution})});return state;case types_1.ActionTypes.CLEAR_CACHE:state=Object.assign(Object.assign({},exports.INITIAL_STATE),{deploymentStatus:Object.assign(Object.assign({},exports.INITIAL_STATE.deploymentStatus),{successful:true})});return state;}};exports.reducer=reducer;const DeploymentProvider=({children})=>{const [data,updateCache]=(0,useLocalStorage_1.default)(LOCAL_STORAGE_KEY,exports.INITIAL_STATE.data);const stateWithCache=Object.assign(Object.assign({},exports.INITIAL_STATE),{data});const [state,dispatch]=(0,react_1.useReducer)(exports.reducer,stateWithCache);const contextValue=(0,react_1.useMemo)(()=>{return{state,dispatch};},[state,dispatch]);return(0,jsx_runtime_1.jsx)(DeploymentContext.Provider,{value:Object.assign(Object.assign({},contextValue),{updateCache}),children:children});};exports.DeploymentProvider=DeploymentProvider; \ No newline at end of file diff --git a/dist/modules/creator/deployment/state/context.js.map b/dist/modules/creator/deployment/state/context.js.map deleted file mode 100644 index 4bf9cd3..0000000 --- a/dist/modules/creator/deployment/state/context.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/modules/creator/deployment/state/context.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAA2E;AAC3E,2FAAkE;AAClE,mCAA6F;AAC7F,gEAAoC;AAEpC,MAAM,gBAAgB,GAAG;IACvB,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE,KAAK;CAClB,CAAA;AAED,MAAM,iBAAiB,GAAG,kBAAkB,CAAA;AAE/B,QAAA,mBAAmB,GAAwB;IACtD,aAAa,EAAE;QACb,IAAI,EAAE,EAAE;QACR,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,IAAI;QACjB,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,EAAE;KACT;IACD,iBAAiB,EAAE;QACjB,OAAO,EAAE;YACP;gBACE,aAAa,EAAE,EAAE;gBACjB,MAAM,EAAE,IAAI;aACb;SACF;QACD,WAAW,EAAE,IAAI,sBAAS,CAAC,CAAC,CAAC;KAC9B;CACF,CAAA;AAEY,QAAA,aAAa,GAAoB;IAC5C,IAAI,EAAE,2BAAmB;IACzB,gBAAgB;CACjB,CAAA;AAED,MAAM,iBAAiB,GAAG,IAAA,qBAAa,EAIpC;IACD,KAAK,EAAE,qBAAa;IACpB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI;IACpB,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI;CACxB,CAAC,CAAA;AAmE2B,8CAAiB;AAjEvC,MAAM,OAAO,GAAG,CAAC,KAAsB,EAAE,MAAwB,EAAmB,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,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,kBAAU,EAAC,eAAO,EAAE,cAAc,CAAC,CAAA;IAC7D,MAAM,YAAY,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAChC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAA;IAC5B,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAA;IACrB,OAAO,uBAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,kCAAO,YAAY,KAAE,WAAW,eAAK,QAAQ,GAA8B,CAAA;AACrH,CAAC,CAAA;AAEQ,gDAAkB"} \ No newline at end of file diff --git a/dist/modules/creator/deployment/state/index.js b/dist/modules/creator/deployment/state/index.js deleted file mode 100644 index 3b37446..0000000 --- a/dist/modules/creator/deployment/state/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)if(p!=='default'&&!Object.prototype.hasOwnProperty.call(exports,p))__createBinding(exports,m,p);};Object.defineProperty(exports,'__esModule',{value:true});__exportStar(require('../../state/context'),exports);__exportStar(require('../../state/types'),exports);__exportStar(require('../../state/utils'),exports); \ No newline at end of file diff --git a/dist/modules/creator/deployment/state/index.js.map b/dist/modules/creator/deployment/state/index.js.map deleted file mode 100644 index b3ef50c..0000000 --- a/dist/modules/creator/deployment/state/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/creator/deployment/state/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C;AAC7C,8DAA2C;AAC3C,8DAA2C"} \ No newline at end of file diff --git a/dist/modules/creator/deployment/state/types.js b/dist/modules/creator/deployment/state/types.js deleted file mode 100644 index 29ff7ca..0000000 --- a/dist/modules/creator/deployment/state/types.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ActionTypes=void 0;function updateTokenSettings(contractInfo){return{type:ActionTypes.UPDATE_TOKEN_SETTINGS,contractInfo};}function updateTokenDistribution(distribution){return{type:ActionTypes.UPDATE_TOKEN_DISTRIBUTION,distribution};}function updateDeploymentStatus({deploying,contract}){return{type:ActionTypes.UPDATE_DEPLOYMENT_STATUS,status:{deploying,contract}};}function updateNavigationBar(props){return Object.assign({type:ActionTypes.UPDATE_NAVIGATION_BAR},props);}function clearCache(){return{type:ActionTypes.CLEAR_CACHE};}var ActionTypes;(function(ActionTypes){ActionTypes['UPDATE_NAVIGATION_BAR']='UPDATE_NAVIGATION_BAR';ActionTypes['UPDATE_TOKEN_SETTINGS']='UPDATE_TOKEN_SETTINGS';ActionTypes['UPDATE_TOKEN_DISTRIBUTION']='UPDATE_TOKEN_DISTRIBUTION';ActionTypes['UPDATE_DEPLOYMENT_STATUS']='UPDATE_DEPLOYMENT_STATUS';ActionTypes['CLEAR_CACHE']='CLEAR_CACHE';}(ActionTypes||(exports.ActionTypes=ActionTypes={}))); \ No newline at end of file diff --git a/dist/modules/creator/deployment/state/types.js.map b/dist/modules/creator/deployment/state/types.js.map deleted file mode 100644 index 90cf62f..0000000 --- a/dist/modules/creator/deployment/state/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/modules/creator/deployment/state/types.ts"],"names":[],"mappings":";;;AA8CA,SAAS,mBAAmB,CAAC,YAAmC;IAC9D,OAAc;QACZ,IAAI,EAAE,WAAW,CAAC,qBAAqB;QACvC,YAAY;KACb,CAAA;AACH,CAAC;AAED,SAAS,uBAAuB,CAAC,YAAuC;IACtE,OAAc;QACZ,IAAI,EAAE,WAAW,CAAC,yBAAyB;QAC3C,YAAY;KACb,CAAA;AACH,CAAC;AAED,SAAS,sBAAsB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAoB;IACvE,OAAc;QACZ,IAAI,EAAE,WAAW,CAAC,wBAAwB;QAC1C,MAAM,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE;KAChC,CAAA;AACH,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAyB;IACpD,OAAO,gBACL,IAAI,EAAE,WAAW,CAAC,qBAAqB,IACpC,KAAK,CACT,CAAA;AACH,CAAC;AAED,SAAS,UAAU;IACjB,OAAc;QACZ,IAAI,EAAE,WAAW,CAAC,WAAW;KAC9B,CAAA;AACH,CAAC;AAUD,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,8DAA+C,CAAA;IAC/C,8DAA+C,CAAA;IAC/C,sEAAuD,CAAA;IACvD,oEAAqD,CAAA;IACrD,0CAA2B,CAAA;AAC7B,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB"} \ No newline at end of file diff --git a/dist/modules/creator/deployment/state/utils.js b/dist/modules/creator/deployment/state/utils.js deleted file mode 100644 index 821940f..0000000 --- a/dist/modules/creator/deployment/state/utils.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.numberWithCommas=void 0;const numberWithCommas=x=>{return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g,',');};exports.numberWithCommas=numberWithCommas; \ No newline at end of file diff --git a/dist/modules/creator/deployment/state/utils.js.map b/dist/modules/creator/deployment/state/utils.js.map deleted file mode 100644 index e39c90b..0000000 --- a/dist/modules/creator/deployment/state/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/modules/creator/deployment/state/utils.ts"],"names":[],"mappings":";;;AAEO,MAAM,gBAAgB,GAAG,CAAC,CAAqB,EAAE,EAAE;IACxD,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAA;AAC3D,CAAC,CAAA;AAFY,QAAA,gBAAgB,oBAE5B"} \ No newline at end of file diff --git a/dist/modules/creator/deployment/steps/Config.js b/dist/modules/creator/deployment/steps/Config.js deleted file mode 100644 index 3783cf6..0000000 --- a/dist/modules/creator/deployment/steps/Config.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ConfigContract=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const formik_1=require('formik');const react_1=require('react');const react_router_dom_1=require('react-router-dom');const context_1=require('../state/context');const types_1=require('../state/types');const formik_material_ui_1=require('formik-material-ui');const TitleBlock_1=require('../../../common/TitleBlock');const utils_1=require('../../utils');const ButtonContainer=(0,core_1.styled)(core_1.Grid)({marginTop:40});const CustomTextarea=(0,core_1.styled)((0,core_1.withTheme)(core_1.TextareaAutosize))(props=>({'minHeight':152,'boxSizing':'border-box','width':'100%','marginTop':14,'fontWeight':400,'padding':'21px 20px','fontFamily':'Roboto Mono','border':'none','fontSize':16,'color':props.theme.palette.text.secondary,'background':'#2F3438','borderRadius':8,'paddingRight':40,'wordBreak':'break-word','&:focus-visible':{outline:'none'},'resize':'none'}));const CustomFormikTextField=(0,core_1.withStyles)({root:{'& .MuiInput-root':{fontWeight:300,textAlign:'initial'},'& .MuiInputBase-input':{textAlign:'initial'},'& .MuiInput-underline:before':{borderBottom:'none !important'},'& .MuiInput-underline:hover:before':{borderBottom:'none !important'},'& .MuiInput-underline:after':{borderBottom:'none !important'}},disabled:{}})(formik_material_ui_1.TextField);const CustomInputContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({height:54,boxSizing:'border-box',marginTop:14,background:'#2F3438',borderRadius:8,alignItems:'center',display:'flex',padding:'13px 23px'}));const ErrorText=(0,core_1.styled)(core_1.Typography)({fontSize:14,color:'red'});const TextareaContainer=(0,core_1.styled)(core_1.Grid)({display:'flex',position:'relative'});const validateForm=values=>{const errors={};if(!values.name){errors.name='Required';}if(!values.description){errors.description='Required';}if(!values.totalSupply||values.totalSupply===null){errors.totalSupply='Required';}if(!values.decimals||values.decimals===null){errors.decimals='Required';}if(!values.symbol){errors.symbol='Required';}return errors;};const TokenSettingsForm=({submitForm,values,errors,touched,setFieldValue,setFieldTouched})=>{const {dispatch}=(0,react_1.useContext)(context_1.DeploymentContext);const match=(0,react_router_dom_1.useRouteMatch)();const history=(0,react_router_dom_1.useHistory)();(0,react_1.useEffect)(()=>{if(values){dispatch({type:types_1.ActionTypes.UPDATE_NAVIGATION_BAR,next:{handler:()=>{submitForm(values);},text:'Continue'}});}},[dispatch,errors,history,match.path,match.url,submitForm,values]);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:12,container:true,direction:'row',style:{gap:32},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:12,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[' ','Contract name',' ']}),(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{id:'outlined-basic',placeholder:'Contract name',name:'name',component:CustomFormikTextField})}),errors.name&&touched.name?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.name}):null]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:12,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[' ','Description',' ']}),(0,jsx_runtime_1.jsx)(TextareaContainer,{item:true,xs:12,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'description',children:()=>(0,jsx_runtime_1.jsx)(CustomTextarea,{maxLength:1500,'aria-label':'empty textarea',placeholder:'Description',value:(0,formik_1.getIn)(values,'description'),onChange:newValue=>{setFieldValue('description',newValue.target.value);}})})}),errors.description&&touched.description?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.description}):null]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',spacing:2,children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:6,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[' ','Supply',' ']}),(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{id:'outlined-basic',type:'number',placeholder:'Supply',name:'totalSupply',component:CustomFormikTextField,onKeyDown:e=>(0,utils_1.handleNegativeInput)(e)})}),errors.totalSupply&&touched.totalSupply?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.totalSupply}):null]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:6,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[' ','Decimals',' ']}),(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{id:'outlined-basic',type:'number',placeholder:'Decimals',name:'decimals',component:CustomFormikTextField,onKeyDown:e=>(0,utils_1.handleChange)(e)})}),errors.decimals&&touched.decimals?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.decimals}):null]})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',spacing:2,children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:6,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[' ','Symbol',' ']}),(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{id:'outlined-basic',placeholder:'Symbol',name:'symbol',component:CustomFormikTextField})}),errors.symbol&&touched.symbol?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.symbol}):null]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:6,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[' ','Icon',' ']}),(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{id:'outlined-basic',placeholder:'Icon',name:'icon',component:CustomFormikTextField})})]})]})]})});};const ConfigContract=()=>{const {state,dispatch,updateCache}=(0,react_1.useContext)(context_1.DeploymentContext);const {tokenSettings}=state.data;const history=(0,react_router_dom_1.useHistory)();const saveStepInfo=(values,{setSubmitting})=>{const newValues=Object.assign({},values);const newState=Object.assign(Object.assign({},state.data),{tokenSettings:newValues});updateCache(newState);setSubmitting(true);dispatch({type:types_1.ActionTypes.UPDATE_TOKEN_SETTINGS,contractInfo:newValues});history.push(`distribution`);};return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{children:(0,jsx_runtime_1.jsx)(TitleBlock_1.TitleBlock,{title:'Configure token contract',description:''})}),(0,jsx_runtime_1.jsx)(formik_1.Formik,{enableReinitialize:true,validateOnChange:true,validateOnBlur:false,validate:validateForm,onSubmit:saveStepInfo,initialValues:tokenSettings,children:({submitForm,isSubmitting,setFieldValue,values,errors,touched,setFieldTouched})=>{return(0,jsx_runtime_1.jsx)(formik_1.Form,{style:{width:'100%'},children:(0,jsx_runtime_1.jsx)(TokenSettingsForm,{submitForm:submitForm,isSubmitting:isSubmitting,setFieldValue:setFieldValue,errors:errors,touched:touched,values:values,setFieldTouched:setFieldTouched})});}})]})});};exports.ConfigContract=ConfigContract; \ No newline at end of file diff --git a/dist/modules/creator/deployment/steps/Config.js.map b/dist/modules/creator/deployment/steps/Config.js.map deleted file mode 100644 index bda2388..0000000 --- a/dist/modules/creator/deployment/steps/Config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../../../../src/modules/creator/deployment/steps/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uBAAC,WAAI,cACH,uBAAC,uBAAU,IAAC,KAAK,EAAC,0BAA0B,EAAC,WAAW,EAAE,EAAE,GAAe,GACtE,EAEP,uBAAC,eAAM,IACL,kBAAkB,EAAE,IAAI,EACxB,gBAAgB,EAAE,IAAI,EACtB,cAAc,EAAE,KAAK,EACrB,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,YAAY,EACtB,aAAa,EAAE,aAAa,YAE3B,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE;wBACzF,OAAO,CACL,uBAAC,aAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YAC5B,uBAAC,iBAAiB,IAChB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,GAChC,GACG,CACR,CAAA;oBACH,CAAC,GACM,IACJ,GACN,CACJ,CAAA;AACH,CAAC,CAAA;AAnDY,QAAA,cAAc,kBAmD1B"} \ No newline at end of file diff --git a/dist/modules/creator/deployment/steps/Distribution.js b/dist/modules/creator/deployment/steps/Distribution.js deleted file mode 100644 index d3c24a5..0000000 --- a/dist/modules/creator/deployment/steps/Distribution.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ContractDistribution=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const formik_1=require('formik');const react_1=require('react');const react_router_dom_1=require('react-router-dom');const context_1=require('../state/context');const types_1=require('../state/types');const formik_material_ui_1=require('formik-material-ui');const icons_1=require('@material-ui/icons');const bignumber_js_1=__importDefault(require('bignumber.js'));const utils_1=require('../state/utils');const TitleBlock_1=require('../../../common/TitleBlock');const useTezos_1=require('../../../../services/beacon/hooks/useTezos');const utils_2=require('../../utils');const SupplyContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.dark,padding:'30px 40px',borderRadius:8}));const RemoveButton=(0,core_1.styled)(icons_1.RemoveCircle)({marginTop:13});const AmountText=(0,core_1.styled)(core_1.Typography)({fontWeight:200});const ButtonContainer=(0,core_1.styled)(core_1.Grid)({marginTop:40});const CustomFormikTextField=(0,core_1.withStyles)({root:{'& .MuiInput-root':{fontWeight:300,textAlign:'initial'},'& .MuiInputBase-input':{textAlign:'initial'},'& .MuiInput-underline:before':{borderBottom:'none !important'},'& .MuiInput-underline:hover:before':{borderBottom:'none !important'},'& .MuiInput-underline:after':{borderBottom:'none !important'}}})(formik_material_ui_1.TextField);const CustomInputContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({height:54,boxSizing:'border-box',marginTop:14,background:'#2F3438',borderRadius:8,alignItems:'center',display:'flex',padding:'13px 23px',width:'100%'}));const CustomAmountContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({height:54,boxSizing:'border-box',marginTop:14,background:'#2F3438',borderRadius:8,alignItems:'center',display:'flex',padding:'13px 23px',width:'40%',[theme.breakpoints.down('sm')]:{width:'100%'}}));const ErrorText=(0,core_1.styled)(core_1.Typography)({fontSize:14,color:'red'});const hasDuplicates=options=>{const trimOptions=options.map(option=>option.walletAddress.trim());return new Set(trimOptions).size!==trimOptions.length;};const validateForm=values=>{const errors={};values.holders.forEach((holder,index)=>{if(values.holders[index].walletAddress&&!values.holders[index].amount){errors.holders='Required';}if(!values.holders[index].walletAddress&&values.holders[index].amount){errors.holders='Required';}if(values.holders.length>0&&hasDuplicates(values.holders)){errors.holders='Duplicate wallets are not allowed';}if(values.totalAmount&&values.totalAmount.minus(new bignumber_js_1.default(getTotal(values.holders))){const theme=(0,core_1.useTheme)();const isMobile=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const newValue={walletAddress:'',amount:null};const {dispatch}=(0,react_1.useContext)(context_1.DeploymentContext);const match=(0,react_router_dom_1.useRouteMatch)();const history=(0,react_router_dom_1.useHistory)();(0,react_1.useEffect)(()=>{if(values){dispatch({type:types_1.ActionTypes.UPDATE_NAVIGATION_BAR,next:{text:'Continue',handler:()=>{submitForm(values);}},back:{text:'Back',handler:()=>history.push(`config`)}});}},[dispatch,errors,history,match.path,match.url,submitForm,values]);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'column',children:(0,jsx_runtime_1.jsx)(formik_1.FieldArray,{name:'holders',render:arrayHelpers=>(0,jsx_runtime_1.jsxs)('div',{children:[values.holders&&values.holders.length>0?values.holders.map((holder,index)=>(0,jsx_runtime_1.jsxs)('div',{style:isMobile?{display:'inline-block',gap:16,alignItems:'center'}:{display:'flex',gap:16,alignItems:'center'},children:[(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{type:'text',name:`holders.[${index}].walletAddress`,placeholder:`Wallet address`,component:CustomFormikTextField})}),(0,jsx_runtime_1.jsx)(CustomAmountContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{type:'number',name:`holders.[${index}].amount`,placeholder:`Amount`,component:CustomFormikTextField,onKeyDown:e=>(0,utils_2.handleNegativeInput)(e)})}),index!==0?(0,jsx_runtime_1.jsx)(RemoveButton,{color:'error',onClick:()=>{if(index!==0){arrayHelpers.remove(index);}}}):(0,jsx_runtime_1.jsx)(RemoveButton,{color:'error',style:{visibility:'hidden'}})]},index)):null,errors.holders&&touched.holders?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.holders}):null,(0,jsx_runtime_1.jsx)('div',{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',style:{gap:10},children:[(0,jsx_runtime_1.jsx)(core_1.IconButton,{size:'small',style:{cursor:'pointer'},onClick:()=>arrayHelpers.insert(values.holders.length,newValue),children:(0,jsx_runtime_1.jsx)(icons_1.AddCircleOutline,{htmlColor:theme.palette.secondary.main})}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body2',style:{cursor:'pointer'},onClick:()=>arrayHelpers.insert(values.holders.length,newValue),color:'secondary',children:'Add Member'})]})})]})})})});};const getTotal=holders=>{let total=0;holders.forEach(holder=>total+=Number(holder.amount));return total;};const ContractDistribution=()=>{const {state,dispatch,updateCache}=(0,react_1.useContext)(context_1.DeploymentContext);const {tokenDistribution,tokenSettings}=state.data;const history=(0,react_router_dom_1.useHistory)();const {account}=(0,useTezos_1.useTezos)();const theme=(0,core_1.useTheme)();const isMobile=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));tokenDistribution.totalAmount=new bignumber_js_1.default(Number(tokenSettings.totalSupply));const saveStepInfo=(values,{setSubmitting})=>{const newValues=Object.assign({},values);if(newValues.holders.length===1&&newValues.holders[0].walletAddress===''){newValues.holders[0].walletAddress=account;newValues.holders[0].amount=newValues.totalAmount.toNumber();}const newState=Object.assign(Object.assign({},state.data),{tokenDistribution:newValues});updateCache(newState);setSubmitting(true);dispatch({type:types_1.ActionTypes.UPDATE_TOKEN_DISTRIBUTION,distribution:newValues});history.push(`summary`);};return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'column',children:(0,jsx_runtime_1.jsx)(formik_1.Formik,{enableReinitialize:true,validateOnChange:true,validateOnBlur:false,validate:validateForm,onSubmit:saveStepInfo,initialValues:tokenDistribution,children:({submitForm,isSubmitting,setFieldValue,values,errors,touched,setFieldTouched})=>{return(0,jsx_runtime_1.jsxs)(formik_1.Form,{style:{width:'100%'},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{children:(0,jsx_runtime_1.jsx)(TitleBlock_1.TitleBlock,{title:'Initial token distribution',description:''})}),(0,jsx_runtime_1.jsxs)(SupplyContainer,{item:true,container:true,direction:'column',style:{gap:'12px'},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,item:true,direction:'row',style:{gap:10},children:[(0,jsx_runtime_1.jsx)(AmountText,{color:'textSecondary',children:'Total supply: '}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'secondary',children:[' ',(0,utils_1.numberWithCommas)(values.totalAmount),' ']})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,item:true,direction:'row',style:{gap:10},children:[(0,jsx_runtime_1.jsx)(AmountText,{color:'textSecondary',children:'Available:'}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'secondary',children:[' ',(0,utils_1.numberWithCommas)(values.totalAmount&&values.totalAmount.minus(new bignumber_js_1.default(getTotal(values.holders))))]})]})]}),errors.totalAmount&&touched.totalAmount?(0,jsx_runtime_1.jsx)(ErrorText,{style:{marginTop:6},children:errors.totalAmount}):null,(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:isMobile?'column':'row',alignItems:isMobile?'flex-start':'center',style:{marginTop:35},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textSecondary',children:'Wallet address'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textSecondary',children:'Amount'})})]}),(0,jsx_runtime_1.jsx)(TokenSettingsForm,{submitForm:submitForm,isSubmitting:isSubmitting,setFieldValue:setFieldValue,errors:errors,touched:touched,values:values,setFieldTouched:setFieldTouched})]});}})})});};exports.ContractDistribution=ContractDistribution; \ No newline at end of file diff --git a/dist/modules/creator/deployment/steps/Distribution.js.map b/dist/modules/creator/deployment/steps/Distribution.js.map deleted file mode 100644 index b6ec549..0000000 --- a/dist/modules/creator/deployment/steps/Distribution.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Distribution.js","sourceRoot":"","sources":["../../../../../src/modules/creator/deployment/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AC,KAAK,EACtC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,EAC9C,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,aAExB,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,iBAAU,IAAC,KAAK,EAAC,eAAe,+BAA4B,GACxD,EACP,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,iBAAU,IAAC,KAAK,EAAC,eAAe,uBAAoB,GAChD,IACF,EACP,uBAAC,iBAAiB,IAChB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,GAChC,IACG,CACR,CAAA;gBACH,CAAC,GACM,GACJ,GACN,CACJ,CAAA;AACH,CAAC,CAAA;AAlGY,QAAA,oBAAoB,wBAkGhC"} \ No newline at end of file diff --git a/dist/modules/creator/deployment/steps/Ownership.js b/dist/modules/creator/deployment/steps/Ownership.js deleted file mode 100644 index f8be434..0000000 --- a/dist/modules/creator/deployment/steps/Ownership.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.Ownership=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const MainButton_1=require('../../../common/MainButton');const Toolbar_1=require('../../../common/Toolbar');const PageContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main}));const PageContent=(0,core_1.styled)(core_1.Grid)(({theme})=>({marginTop:60,width:'1000px',height:'100%',margin:'auto',padding:'28px 0',flexDirection:'row',paddingTop:0,['@media (max-width:1167px)']:{width:'86vw'},[theme.breakpoints.down('sm')]:{marginTop:10}}));const Title=(0,core_1.styled)(core_1.Typography)({fontSize:24,textAlign:'center'});const CardContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.dark,borderRadius:8,padding:'36px 47px'}));const DescriptionContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({marginTop:32,[theme.breakpoints.down('sm')]:{paddingLeft:'4%',paddingRight:'4%',marginTop:40}}));const OptionsContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({marginTop:20,[theme.breakpoints.down('sm')]:{paddingLeft:'4%',paddingRight:'4%',marginTop:40}}));const ChoicesContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({marginTop:50,paddingLeft:'24%',paddingRight:'24%',[theme.breakpoints.down('sm')]:{paddingLeft:'2%',paddingRight:'2%'}}));const DescriptionText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontWeight:200,color:theme.palette.text.secondary,[theme.breakpoints.down('sm')]:{fontSize:14}}));const OptionButton=(0,core_1.styled)(core_1.Link)(({theme})=>({[theme.breakpoints.down('sm')]:{width:'95%',display:'flex',textAlign:'center'}}));const Ownership=()=>{return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(PageContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(Toolbar_1.Navbar,{mode:'creator'}),(0,jsx_runtime_1.jsx)(PageContent,{children:(0,jsx_runtime_1.jsxs)(CardContainer,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',children:(0,jsx_runtime_1.jsx)(Title,{color:'textSecondary',children:'Do you already have a governance token?'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsx)(DescriptionContainer,{item:true,children:(0,jsx_runtime_1.jsx)(DescriptionText,{children:'This would be an FA2-compatible token contract that will serve to assign voting weight based on ownership.'})}),(0,jsx_runtime_1.jsx)(OptionsContainer,{item:true,children:(0,jsx_runtime_1.jsx)(DescriptionText,{children:'If you already have this asset deployed, click YES. If not, click NO and we will configure and deploy one now.'})})]}),(0,jsx_runtime_1.jsxs)(ChoicesContainer,{container:true,direction:'row',alignContent:'center',justifyContent:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:true,children:(0,jsx_runtime_1.jsx)(OptionButton,{underline:'none',href:`/creator/build`,children:(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',children:'Yes, I have one'})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:true,children:(0,jsx_runtime_1.jsx)(OptionButton,{underline:'none',href:`/creator/deployment`,children:(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',children:'No, I need one'})})})]})]})})]})});};exports.Ownership=Ownership; \ No newline at end of file diff --git a/dist/modules/creator/deployment/steps/Ownership.js.map b/dist/modules/creator/deployment/steps/Ownership.js.map deleted file mode 100644 index 781711c..0000000 --- a/dist/modules/creator/deployment/steps/Ownership.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ownership.js","sourceRoot":"","sources":["../../../../../src/modules/creator/deployment/steps/Ownership.tsx"],"names":[],"mappings":";;;;AACA,4CAAkE;AAClE,0DAAsD;AACtD,oDAA+C;AAE/C,MAAM,aAAa,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACjD,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;CACvC,CAAC,CAAC,CAAA;AAEH,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/C,SAAS,EAAE,EAAE;IACb,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,QAAQ;IACjB,aAAa,EAAE,KAAK;IACpB,UAAU,EAAE,CAAC;IACb,CAAC,2BAA2B,CAAC,EAAE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AC,IAAI,kBACxB,uBAAC,eAAe,6HAGE,GACG,EAEvB,uBAAC,gBAAgB,IAAC,IAAI,kBACpB,uBAAC,eAAe,iIAGE,GACD,IACd,EAEP,wBAAC,gBAAgB,IAAC,SAAS,QAAC,SAAS,EAAC,KAAK,EAAC,YAAY,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,aACvF,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,kBACX,uBAAC,YAAY,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAE,gBAAgB,YACnD,uBAAC,uBAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,WAAW,gCAEpC,GACA,GACV,EACP,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,kBACX,uBAAC,YAAY,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAE,qBAAqB,YACxD,uBAAC,uBAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,WAAW,+BAEpC,GACA,GACV,IACU,IACL,GACJ,IACA,GACf,CACJ,CAAA;AACH,CAAC,CAAA;AAhDY,QAAA,SAAS,aAgDrB"} \ No newline at end of file diff --git a/dist/modules/creator/deployment/steps/Success.js b/dist/modules/creator/deployment/steps/Success.js deleted file mode 100644 index 24f7bab..0000000 --- a/dist/modules/creator/deployment/steps/Success.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.Success=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const MainButton_1=require('../../../common/MainButton');const Toolbar_1=require('../../../common/Toolbar');const react_router_dom_1=require('react-router-dom');const Blockie_1=require('../../../common/Blockie');const CopyAddress_1=require('../../../common/CopyAddress');const PageContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main}));const PageContent=(0,core_1.styled)(core_1.Grid)(({theme})=>({marginTop:60,width:'1000px',height:'100%',margin:'auto',padding:'28px 0',flexDirection:'row',paddingTop:0,['@media (max-width:1167px)']:{width:'86vw'},[theme.breakpoints.down('sm')]:{marginTop:10}}));const Title=(0,core_1.styled)(core_1.Typography)({fontSize:24,textAlign:'center'});const CardContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.dark,borderRadius:8,padding:'36px 47px'}));const DescriptionContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({display:'inline-flex',[theme.breakpoints.down('sm')]:{paddingLeft:'4%',paddingRight:'4%'}}));const OptionsContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({marginTop:40,[theme.breakpoints.down('sm')]:{paddingLeft:'4%',paddingRight:'4%',marginTop:40}}));const ChoicesContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({marginTop:50,paddingLeft:'24%',paddingRight:'24%',[theme.breakpoints.down('sm')]:{paddingLeft:'2%',paddingRight:'2%'}}));const DescriptionText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontWeight:200,color:theme.palette.text.secondary,[theme.breakpoints.down('sm')]:{fontSize:14}}));const OptionButton=(0,core_1.styled)(core_1.Link)(({theme})=>({[theme.breakpoints.down('sm')]:{width:'95%',display:'flex',textAlign:'center'}}));const Success=()=>{const location=(0,react_router_dom_1.useLocation)();const [address,setAddress]=(0,react_1.useState)('');const history=(0,react_router_dom_1.useHistory)();(0,react_1.useEffect)(()=>{if(location&&location.state&&location.state.address){setAddress(location.state.address);}else{history.push('/explorer');}},[location,history]);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(PageContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(Toolbar_1.Navbar,{mode:'creator'}),(0,jsx_runtime_1.jsx)(PageContent,{children:(0,jsx_runtime_1.jsxs)(CardContainer,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',children:(0,jsx_runtime_1.jsx)(Title,{color:'textSecondary',children:'Governance token successfully deployed!'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(DescriptionText,{style:{marginTop:40,marginBottom:20},children:'Your Token Address:'})}),(0,jsx_runtime_1.jsx)(DescriptionContainer,{item:true,children:(0,jsx_runtime_1.jsxs)(DescriptionText,{style:{display:'inline-flex',alignItems:'center'},children:[(0,jsx_runtime_1.jsx)(Blockie_1.Blockie,{address:address,size:35,style:{marginRight:16}}),address&&(0,jsx_runtime_1.jsx)(CopyAddress_1.CopyAddress,{address:address,typographyProps:{variant:'body1',color:'textSecondary'}})]})}),(0,jsx_runtime_1.jsx)(OptionsContainer,{item:true,children:(0,jsx_runtime_1.jsx)(DescriptionText,{children:'Would you like to continue and create a DAO?'})})]}),(0,jsx_runtime_1.jsxs)(ChoicesContainer,{container:true,direction:'row',alignContent:'center',justifyContent:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:true,children:(0,jsx_runtime_1.jsx)(OptionButton,{underline:'none',href:`/creator/build/dao`,children:(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',children:'Create DAO'})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:true,children:(0,jsx_runtime_1.jsx)(OptionButton,{underline:'none',href:`/explorer`,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'secondary',style:{padding:'6px 16px'},children:'I\'m done'})})})]})]})})]})});};exports.Success=Success; \ No newline at end of file diff --git a/dist/modules/creator/deployment/steps/Success.js.map b/dist/modules/creator/deployment/steps/Success.js.map deleted file mode 100644 index 71b80fa..0000000 --- a/dist/modules/creator/deployment/steps/Success.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Success.js","sourceRoot":"","sources":["../../../../../src/modules/creator/deployment/steps/Success.tsx"],"names":[],"mappings":";;;;AAAA,iCAAkD;AAClD,4CAAkE;AAClE,0DAAsD;AACtD,oDAA+C;AAC/C,uDA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U,EAAE,QAAQ,EAAE,aACtE,uBAAC,iBAAO,IAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,GAAI,EAClE,OAAO,IAAI,CACV,uBAAC,yBAAW,IACV,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE;wDACf,OAAO,EAAE,OAAO;wDAChB,KAAK,EAAE,eAAe;qDACvB,GACD,CACH,IACe,GACG,EAEvB,uBAAC,gBAAgB,IAAC,IAAI,kBACpB,uBAAC,eAAe,+DAA+D,GAC9D,IACd,EAEP,wBAAC,gBAAgB,IAAC,SAAS,QAAC,SAAS,EAAC,KAAK,EAAC,YAAY,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,aACvF,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,kBACX,uBAAC,YAAY,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAE,oBAAoB,YACvD,uBAAC,uBAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,WAAW,2BAEpC,GACA,GACV,EACP,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,kBACX,uBAAC,YAAY,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAE,WAAW,YAC9C,uBAAC,iBAAU,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,YACzD,UAAU,GACA,GACA,GACV,IACU,IACL,GACJ,IACA,GACf,CACJ,CAAA;AACH,CAAC,CAAA;AAnEY,QAAA,OAAO,WAmEnB"} \ No newline at end of file diff --git a/dist/modules/creator/deployment/steps/Summary.js b/dist/modules/creator/deployment/steps/Summary.js deleted file mode 100644 index 82145bc..0000000 --- a/dist/modules/creator/deployment/steps/Summary.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ContractSummary=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const react_router_dom_1=require('react-router-dom');const utils_1=require('../../../../services/contracts/utils');const context_1=require('../state/context');const utils_2=require('../state/utils');const bignumber_js_1=__importDefault(require('bignumber.js'));const Blockie_1=require('../../../common/Blockie');const CopyButton_1=require('../../../common/CopyButton');const types_1=require('../state/types');const TitleBlock_1=require('../../../common/TitleBlock');const useToken_1=require('../../../../services/contracts/token/hooks/useToken');const useNotification_1=require('../../../common/hooks/useNotification');const ThirdContainer=(0,core_1.styled)(core_1.Grid)({marginTop:22,background:'#2F3438',borderRadius:8,boxSizing:'border-box'});const ThirdContainerFirstRow=(0,core_1.styled)(core_1.Grid)({padding:'19px 48px',borderBottom:'0.3px solid #7D8C8B',alignItems:'center',display:'flex',minHeight:70,['@media (max-width:1167px)']:{padding:'12px 15px',maxHeight:'inherit'}});const ThirdContainerLastRow=(0,core_1.styled)(core_1.Grid)({padding:'19px 48px',alignItems:'center',display:'flex',minHeight:70,['@media (max-width:1167px)']:{padding:'12px 15px',maxHeight:'inherit'}});const ThirdContainerRow=(0,core_1.styled)(core_1.Grid)({'borderBottom':'0.3px solid #7D8C8B','padding':'24px 48px','minHeight':70,['@media (max-width:1167px)']:{padding:'12px 15px',maxHeight:'inherit'},'&:last-child':{borderBottom:'none'}});const TitleSpacing=(0,core_1.styled)(core_1.Typography)({marginTop:8,fontWeight:200});const ContainerEdit=(0,core_1.styled)(core_1.Typography)({cursor:'pointer'});const AdminAddress=(0,core_1.styled)(core_1.Typography)({wordBreak:'break-all'});const KeyText=(0,core_1.styled)(core_1.Typography)({fontWeight:300});const AddressText=(0,core_1.styled)(core_1.Typography)({marginLeft:12,fontWeight:300});const ContractSummary=()=>{const theme=(0,core_1.useTheme)();const isMobile=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const history=(0,react_router_dom_1.useHistory)();const match=(0,react_router_dom_1.useRouteMatch)();const openNotification=(0,useNotification_1.useNotification)();const {state,dispatch}=(0,react_1.useContext)(context_1.DeploymentContext);const {tokenDistribution,tokenSettings}=state.data;const [isLoading,setIsLoading]=(0,react_1.useState)(false);const goToSettings=()=>{history.push(`config`);};const goToDistribution=()=>{history.push(`distribution`);};const {mutation:{mutate,data,error}}=(0,useToken_1.useTokenOriginate)(state.data);(0,react_1.useEffect)(()=>{if(data&&data.address){dispatch({type:types_1.ActionTypes.CLEAR_CACHE});history.push('/creator/success',{address:data.address});}},[data,dispatch,history]);(0,react_1.useEffect)(()=>{if(error){setIsLoading(false);openNotification({message:'Error deploying token... try again later',variant:'error',autoHideDuration:2000});}},[error,openNotification]);(0,react_1.useEffect)(()=>{dispatch({type:types_1.ActionTypes.UPDATE_NAVIGATION_BAR,back:{handler:()=>history.push(`distribution`),text:'Back'},next:{handler:()=>{mutate(Object.assign({},state.data));setIsLoading(true);},text:isLoading?'Deploying...':'Launch'}});},[dispatch,history,match.path,match.url,mutate,state.data,isLoading]);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{children:(0,jsx_runtime_1.jsx)(TitleBlock_1.TitleBlock,{title:'Review information',description:'and make sure you\'ve set up your token right.'})}),(0,jsx_runtime_1.jsxs)(ThirdContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(ThirdContainerFirstRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:isMobile?'column':'row',alignItems:isMobile?'baseline':'center',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(TitleSpacing,{color:'textSecondary',variant:'subtitle1',children:'TOKEN CONTRACT SETTINGS'}),(0,jsx_runtime_1.jsx)(ContainerEdit,{color:'secondary',onClick:goToSettings,children:'Edit'})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(KeyText,{variant:'subtitle2',color:'textSecondary',children:'Name'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(AdminAddress,{variant:'subtitle2',color:'textSecondary',align:'right',children:tokenSettings.name})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(KeyText,{variant:'subtitle2',color:'textSecondary',children:'Description'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(AdminAddress,{variant:'subtitle2',color:'textSecondary',align:'right',children:tokenSettings.description})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(KeyText,{variant:'subtitle2',color:'textSecondary',children:'Symbol'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(AdminAddress,{variant:'subtitle2',color:'textSecondary',align:'right',children:tokenSettings.symbol})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(KeyText,{variant:'subtitle2',color:'textSecondary',children:'Supply'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(AdminAddress,{variant:'subtitle2',color:'textSecondary',align:'right',children:(0,utils_2.numberWithCommas)(new bignumber_js_1.default(Number(tokenSettings.totalSupply)))})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerLastRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(KeyText,{variant:'subtitle2',color:'textSecondary',children:'Icon'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(AdminAddress,{variant:'subtitle2',color:'textSecondary',align:'right',children:tokenSettings.icon})})]})})]}),(0,jsx_runtime_1.jsxs)(ThirdContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(ThirdContainerFirstRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:isMobile?'column':'row',alignItems:isMobile?'baseline':'center',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(TitleSpacing,{color:'textSecondary',variant:'subtitle1',children:'INITIAL DISTRIBUTION'}),(0,jsx_runtime_1.jsx)(ContainerEdit,{color:'secondary',onClick:goToDistribution,children:'Edit'})]})}),tokenDistribution.holders&&tokenDistribution.holders.length>0?tokenDistribution.holders.map((holder,index)=>{return(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:isMobile?12:5,container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(Blockie_1.Blockie,{address:holder.walletAddress,size:24}),(0,jsx_runtime_1.jsx)(AddressText,{variant:'subtitle2',color:'textSecondary',children:(0,utils_1.toShortAddress)(holder.walletAddress)}),(0,jsx_runtime_1.jsx)(CopyButton_1.CopyButton,{style:{fontSize:16},text:holder.walletAddress})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:isMobile?12:7,children:(0,jsx_runtime_1.jsx)(AdminAddress,{variant:'subtitle2',style:isMobile?{marginTop:10}:{},color:'textSecondary',align:isMobile?'left':'right',children:(0,utils_2.numberWithCommas)(new bignumber_js_1.default(Number(holder.amount)))})})]})},'holder-'+index);}):null]})]})});};exports.ContractSummary=ContractSummary; \ No newline at end of file diff --git a/dist/modules/creator/deployment/steps/Summary.js.map b/dist/modules/creator/deployment/steps/Summary.js.map deleted file mode 100644 index d0e5436..0000000 --- a/dist/modules/creator/deployment/steps/Summary.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Summary.js","sourceRoot":"","sources":["../../../../../src/modules/creator/deployment/steps/Summary.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAA8D;AAC9D,4CAAqF;AACrF,uDAA4D;AAC5D,oDAAyD;AACzD,8CAAoD;AACpD,0CAAiD;AACjD,gEAAoC;AACpC,oDAAgD;AAChD,0DAAsD;AACtD,0CAA4C;AAC5C,0DAAsD;AACtD,sEAA2E;AAC3E,0EAAsE;AAEtE,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAClC,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,SAAS;IACrB,YAAY,EAAE,CAAC;IACf,SAAS,EAAE,YAAY;CACxB,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC1C,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,qBAAqB;IACnC,UAAU,EAAE,QAAQ;IACpB,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,EAAE;IACb,CAAC,2BAA2B,CAAC,EAAE;QAC7B,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,SAAS;KACrB;CACF,CAAC,CAAA;AAEF,MAAM,qBAAqB,GAAG,IAAA,aAAM,EAAC,WAAI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W,EAAC,KAAK,EAAC,eAAe,YACnD,IAAA,sBAAc,EAAC,MAAM,CAAC,aAAa,CAAC,GACzB,EACd,uBAAC,uBAAU,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,aAAa,GAAI,IAC9D,EACP,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,YAC9B,uBAAC,YAAY,IACX,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EACxC,KAAK,EAAC,eAAe,EACrB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,YAEjC,IAAA,wBAAgB,EAAC,IAAI,sBAAS,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAC1C,GACV,IACF,IAnBe,SAAS,GAAG,KAAK,CAoBrB,CACrB,CAAA;4BACH,CAAC,CAAC;4BACJ,CAAC,CAAC,IAAI,IACO,IACZ,GACN,CACJ,CAAA;AACH,CAAC,CAAA;AAtNY,QAAA,eAAe,mBAsN3B"} \ No newline at end of file diff --git a/dist/modules/creator/deployment/steps/index.js b/dist/modules/creator/deployment/steps/index.js deleted file mode 100644 index 3f37399..0000000 --- a/dist/modules/creator/deployment/steps/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ContractSummary=exports.ContractDistribution=exports.ConfigContract=exports.useDeploymentStepNumber=exports.DeploymentStepRouter=exports.STEPS=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const react_router_1=require('react-router');const react_router_dom_1=require('react-router-dom');const ProtectedRoute_1=require('../../components/ProtectedRoute');const Config_1=require('./Config');const Distribution_1=require('./Distribution');const Summary_1=require('./Summary');exports.STEPS=[{title:'Configure Token Contract',index:0,path:'config'},{title:'Token Distribution',index:1,path:'distribution'},{title:'Review Information',index:2,path:'summary'}];const urlToStepMap={config:0,distribution:1,summary:2};const DeploymentStepRouter=()=>{const match=(0,react_router_dom_1.useRouteMatch)();return(0,jsx_runtime_1.jsx)(ProtectedRoute_1.ProtectedRoute,{children:(0,jsx_runtime_1.jsxs)(react_router_1.Switch,{children:[(0,jsx_runtime_1.jsx)(react_router_1.Route,{path:`${match.url}/config`,children:(0,jsx_runtime_1.jsx)(Config_1.ConfigContract,{})}),(0,jsx_runtime_1.jsx)(react_router_1.Route,{path:`${match.url}/distribution`,children:(0,jsx_runtime_1.jsx)(Distribution_1.ContractDistribution,{})}),(0,jsx_runtime_1.jsx)(react_router_1.Route,{path:`${match.url}/summary`,children:(0,jsx_runtime_1.jsx)(Summary_1.ContractSummary,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Redirect,{to:`${match.url}/config`})]})});};exports.DeploymentStepRouter=DeploymentStepRouter;const useDeploymentStepNumber=()=>{const {pathname}=(0,react_router_1.useLocation)();return(0,react_1.useMemo)(()=>{const extracted=pathname.endsWith('/')?pathname.split('/').slice(-1)[0]:pathname.split('/').slice(-1)[0];return urlToStepMap[extracted];},[pathname]);};exports.useDeploymentStepNumber=useDeploymentStepNumber;var Config_2=require('./Config');Object.defineProperty(exports,'ConfigContract',{enumerable:true,get:function(){return Config_2.ConfigContract;}});var Distribution_2=require('./Distribution');Object.defineProperty(exports,'ContractDistribution',{enumerable:true,get:function(){return Distribution_2.ContractDistribution;}});var Summary_2=require('./Summary');Object.defineProperty(exports,'ContractSummary',{enumerable:true,get:function(){return Summary_2.ContractSummary;}}); \ No newline at end of file diff --git a/dist/modules/creator/deployment/steps/index.js.map b/dist/modules/creator/deployment/steps/index.js.map deleted file mode 100644 index 2b2a3c6..0000000 --- a/dist/modules/creator/deployment/steps/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"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AAE,GAAG,IAAA,0BAAW,GAAE,CAAA;IAElC,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE;QAClB,MAAM,SAAS,GAAsB,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;YACzD,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAClC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAEpC,OAAO,YAAY,CAAC,SAAS,CAAC,CAAA;IAChC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA;AAChB,CAAC,CAAA;AAVY,QAAA,uBAAuB,2BAUnC;AAED,kEAAwE;AAA/D,wGAAA,cAAc,OAAA;AACvB,8EAAoF;AAA3E,oHAAA,oBAAoB,OAAA;AAC7B,oEAA0E;AAAjE,0GAAA,eAAe,OAAA"} \ No newline at end of file diff --git a/dist/modules/creator/index.js b/dist/modules/creator/index.js deleted file mode 100644 index 9185c37..0000000 --- a/dist/modules/creator/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.DAOCreate=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const react_customizable_progressbar_1=__importDefault(require('react-customizable-progressbar'));const react_router_1=require('react-router');const state_1=require('./state');const steps_1=require('./steps');const NavigationBar_1=require('./components/NavigationBar');const Toolbar_1=require('../common/Toolbar');const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const PageContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main}));const StepContentContainer=(0,core_1.styled)(core_1.Grid)({marginTop:28,alignItems:'baseline',height:'100%',paddingTop:0,boxSizing:'border-box',overflowY:'auto',marginLeft:47,zIndex:10,width:'fit-content',['@media (max-width:1167px)']:{marginLeft:0}});const StyledStepper=(0,core_1.styled)(core_1.Stepper)({'background':'inherit','paddingTop':48,'& .MuiStepLabel-label':{fontSize:14,lineHeight:14},'cursor':'pointer'});const IndicatorValue=(0,core_1.styled)(core_1.Paper)(({theme})=>({display:'flex',alignItems:'center',justifyContent:'center',textAlign:'center',position:'absolute',top:0,width:'100%',height:'100%',margin:'0 auto',fontSize:25,color:theme.palette.text.secondary,userSelect:'none',boxShadow:'none',background:'inherit',fontFamily:'Roboto Mono'}));const FAQClickToAction=(0,core_1.styled)(core_1.Typography)(({theme})=>({color:theme.palette.secondary.main,fontSize:'14px',cursor:'pointer',marginTop:16,marginBottom:8}));const ProgressContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:'#2F3438',display:'grid',borderRadius:8,maxHeight:585,paddingTop:20,position:'sticky',top:153}));const custom=theme=>({logo:{height:'100%',alignItems:'baseline',display:'flex',marginTop:22},appBorder:{borderBottom:`2px solid ${theme.palette.primary.light}`},appHeight:{height:'inherit'},appLogoHeight:{height:'inherit',borderRight:`2px solid ${theme.palette.primary.light}`}});const PageContent=(0,core_1.styled)(core_1.Grid)({width:'1000px',height:'100%',margin:'auto',padding:'28px 0',flexDirection:'row',paddingTop:0,['@media (max-width:1167px)']:{width:'86vw'}});const DAOCreate=()=>{const creator=(0,react_1.useContext)(state_1.CreatorContext);const {back,next}=creator.state;const step=(0,steps_1.useStepNumber)();const progress=(0,react_1.useMemo)(()=>step*20,[step]);const history=(0,react_router_1.useHistory)();const theme=(0,core_1.useTheme)();const isMobile=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const goToFAQ=()=>{history.push('/faq');};(0,react_1.useEffect)(()=>{mixpanel_browser_1.default.unregister('daoAddress');mixpanel_browser_1.default.unregister('daoType');mixpanel_browser_1.default.track('Visited Creator');},[]);return(0,jsx_runtime_1.jsxs)(PageContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(Toolbar_1.Navbar,{mode:'creator'}),(0,jsx_runtime_1.jsxs)(PageContent,{container:true,direction:'row',children:[!isMobile&&(0,jsx_runtime_1.jsx)(ProgressContainer,{item:true,xs:3,container:true,direction:'column',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'column',alignItems:'center',xs:true,children:[(0,jsx_runtime_1.jsx)(react_customizable_progressbar_1.default,{progress:progress,radius:52,strokeWidth:5,strokeColor:theme.palette.secondary.main,trackStrokeWidth:4,trackStrokeColor:'rgba(255, 255, 255, 0.2)',children:(0,jsx_runtime_1.jsx)(core_1.Box,{className:'indicator',children:(0,jsx_runtime_1.jsxs)(IndicatorValue,{children:[progress===0.5?0:step*20,'%']})})}),(0,jsx_runtime_1.jsx)(core_1.Box,{children:(0,jsx_runtime_1.jsx)(FAQClickToAction,{onClick:goToFAQ,children:'New to DAOs? Read our FAQ'})}),(0,jsx_runtime_1.jsx)(StyledStepper,{activeStep:step,orientation:'vertical',children:steps_1.STEPS.map(({title,path},index)=>(0,jsx_runtime_1.jsx)(core_1.Step,{children:(0,jsx_runtime_1.jsx)(core_1.StepLabel,{onClick:()=>index{const match=(0,react_router_dom_1.useRouteMatch)();return(0,jsx_runtime_1.jsxs)(react_router_dom_1.Switch,{children:[(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:`${match.url}/build`,children:(0,jsx_runtime_1.jsx)(_1.DAOCreate,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:`${match.url}`,children:(0,jsx_runtime_1.jsx)(context_1.DeploymentProvider,{children:(0,jsx_runtime_1.jsx)(router_1.TokenDeploymentRouter,{})})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Redirect,{to:`${match.url}/build`})]});};exports.DAOCreatorRouter=DAOCreatorRouter; \ No newline at end of file diff --git a/dist/modules/creator/router.js.map b/dist/modules/creator/router.js.map deleted file mode 100644 index 0204b92..0000000 --- a/dist/modules/creator/router.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../src/modules/creator/router.tsx"],"names":[],"mappings":";;;;AACA,uDAAyE;AAGzE,wBAA6B;AAE7B,gDAA2D;AAC3D,wDAA+D;AAExD,MAAM,gBAAgB,GAAG,GAAgB,EAAE;IAChD,MAAM,KAAK,GAAG,IAAA,gCAAa,GAAE,CAAA;IAE7B,OAAO,CACL,wBAAC,yBAAM,eACL,uBAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,QAAQ,YAC/B,uBAAC,YAAS,KAAG,GACP,EACR,uBAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,YACzB,uBAAC,4BAAkB,cACjB,uBAAC,8BAAqB,KAAG,GACN,GACf,EACR,uBAAC,2BAAQ,IAAC,EAAE,EAAE,GAAG,KAAK,CAAC,GAAG,QAAQ,GAAI,IAC/B,CACV,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,gBAAgB,oBAgB5B"} \ No newline at end of file diff --git a/dist/modules/creator/state/context.js b/dist/modules/creator/state/context.js deleted file mode 100644 index 185c41e..0000000 --- a/dist/modules/creator/state/context.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.CreatorContext=exports.CreatorProvider=exports.reducer=exports.INITIAL_STATE=exports.INITIAL_MIGRATION_STATE=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const useLocalStorage_1=__importDefault(require('../../common/hooks/useLocalStorage'));const types_1=require('./types');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const bakingBad_1=require('../../../services/bakingBad');const utils_1=require('../../../services/beacon/utils');const deploymentStatus={deploying:false,successful:false};const LOCAL_STORAGE_KEY='creatorParams';exports.INITIAL_MIGRATION_STATE={template:'lambda',orgSettings:{name:'',symbol:'',description:'',governanceToken:{address:'',tokenId:'0'},administrator:'',guardian:''},votingSettings:{votingBlocks:0,proposeStakeRequired:'0',returnedTokenPercentage:0,minXtzAmount:0,maxXtzAmount:0,proposalFlushBlocks:0,proposalExpiryBlocks:0,votingBlocksDay:0,votingBlocksHours:0,votingBlocksMinutes:5,proposalFlushBlocksDay:0,proposalFlushBlocksHours:0,proposalFlushBlocksMinutes:5,proposalExpiryBlocksDay:0,proposalExpiryBlocksHours:0,proposalExpiryBlocksMinutes:5},quorumSettings:{quorumThreshold:2,minQuorumAmount:1,maxQuorumAmount:90,quorumChange:5,quorumMaxChange:19}};const getInitialState=data=>{const network=(0,utils_1.getTezosNetwork)();data.votingSettings.votingBlocksDay=network===bakingBad_1.networkNameMap.ghostnet?0:3;data.votingSettings.votingBlocksHours=network===bakingBad_1.networkNameMap.ghostnet?0:0;data.votingSettings.votingBlocksMinutes=network===bakingBad_1.networkNameMap.ghostnet?5:0;data.votingSettings.proposalFlushBlocksDay=network===bakingBad_1.networkNameMap.ghostnet?0:1;data.votingSettings.proposalFlushBlocksHours=network===bakingBad_1.networkNameMap.ghostnet?0:0;data.votingSettings.proposalFlushBlocksMinutes=network===bakingBad_1.networkNameMap.ghostnet?5:0;data.votingSettings.proposalExpiryBlocksDay=network===bakingBad_1.networkNameMap.ghostnet?0:6;data.votingSettings.proposalExpiryBlocksHours=network===bakingBad_1.networkNameMap.ghostnet?0:0;data.votingSettings.proposalExpiryBlocksMinutes=network===bakingBad_1.networkNameMap.ghostnet?5:0;return data;};exports.INITIAL_STATE={data:getInitialState(exports.INITIAL_MIGRATION_STATE),deploymentStatus};const CreatorContext=(0,react_1.createContext)({state:exports.INITIAL_STATE,dispatch:()=>null,updateCache:()=>null});exports.CreatorContext=CreatorContext;const reducer=(state,action)=>{switch(action.type){case types_1.ActionTypes.UPDATE_DEPLOYMENT_STATUS:const {contract,deploying}=action.status;state=Object.assign(Object.assign({},state),{deploymentStatus:{contract,deploying,successful:false}});return state;case types_1.ActionTypes.UPDATE_NAVIGATION_BAR:state=Object.assign(Object.assign({},state),{next:action.next,back:action.back});return state;case types_1.ActionTypes.UPDATE_ORGANIZATION_SETTINGS:localStorage.setItem('creator-started','true');state=Object.assign(Object.assign({},state),{data:Object.assign(Object.assign({},state.data),{orgSettings:action.org})});return state;case types_1.ActionTypes.UPDATE_QUORUM_SETTINGS:state=Object.assign(Object.assign({},state),{data:Object.assign(Object.assign({},state.data),{quorumSettings:action.quorum})});return state;case types_1.ActionTypes.UPDATE_VOTING_SETTINGS:state=Object.assign(Object.assign({},state),{data:Object.assign(Object.assign({},state.data),{votingSettings:action.voting})});return state;case types_1.ActionTypes.UPDATE_TEMPLATE:state=Object.assign(Object.assign({},state),{data:Object.assign(Object.assign({},state.data),{template:action.template})});return state;case types_1.ActionTypes.CLEAR_CACHE:state=Object.assign(Object.assign({},exports.INITIAL_STATE),{deploymentStatus:Object.assign(Object.assign({},exports.INITIAL_STATE.deploymentStatus),{successful:true})});return state;}};exports.reducer=reducer;const updateInitialState=(network,values)=>{values.votingSettings.votingBlocksDay=network===bakingBad_1.networkNameMap.ghostnet?0:3;values.votingSettings.votingBlocksHours=network===bakingBad_1.networkNameMap.ghostnet?0:0;values.votingSettings.votingBlocksMinutes=network===bakingBad_1.networkNameMap.ghostnet?5:0;values.votingSettings.proposalFlushBlocksDay=network===bakingBad_1.networkNameMap.ghostnet?0:1;values.votingSettings.proposalFlushBlocksHours=network===bakingBad_1.networkNameMap.ghostnet?0:0;values.votingSettings.proposalFlushBlocksMinutes=network===bakingBad_1.networkNameMap.ghostnet?5:0;values.votingSettings.proposalExpiryBlocksDay=network===bakingBad_1.networkNameMap.ghostnet?0:6;values.votingSettings.proposalExpiryBlocksHours=network===bakingBad_1.networkNameMap.ghostnet?0:0;values.votingSettings.proposalExpiryBlocksMinutes=network===bakingBad_1.networkNameMap.ghostnet?5:0;return values;};const CreatorProvider=({children})=>{const [data,updateCache]=(0,useLocalStorage_1.default)(LOCAL_STORAGE_KEY,exports.INITIAL_STATE.data);const isCreatorStarted=localStorage.getItem('creator-started');const {network}=(0,useTezos_1.useTezos)();const updatedData=isCreatorStarted?data:updateInitialState(network,data);const stateWithCache=Object.assign(Object.assign({},exports.INITIAL_STATE),{updatedData});const [state,dispatch]=(0,react_1.useReducer)(exports.reducer,stateWithCache);const contextValue=(0,react_1.useMemo)(()=>{return{state,dispatch};},[state,dispatch]);return(0,jsx_runtime_1.jsx)(CreatorContext.Provider,{value:Object.assign(Object.assign({},contextValue),{updateCache}),children:children});};exports.CreatorProvider=CreatorProvider; \ No newline at end of file diff --git a/dist/modules/creator/state/context.js.map b/dist/modules/creator/state/context.js.map deleted file mode 100644 index 821b0e2..0000000 --- a/dist/modules/creator/state/context.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/modules/creator/state/context.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAA2E;AAE3E,2FAAkE;AAClE,uDAAuG;AACvG,6DAAyD;AACzD,kDAAmD;AACnD,iDAAuD;AAEvD,MAAM,gBAAgB,GAAG;IACvB,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE,KAAK;CAClB,CAAA;AAED,MAAM,iBAAiB,GAAG,eAAe,CAAA;AAE5B,QAAA,uBAAuB,GAAoB;IACtD,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE;QACX,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,EAAE;QACV,WAAW,EAAE,EAAE;QACf,eAAe,EAAE;YACf,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,GAAG;SACb;QACD,aAAa,EAAE,EAAE;QACjB,QAAQ,EAAE,EAAE;KACb;IACD,cAAc,EAAE;QACd,YAAY,EAAE,CAAC;QACf,oBAAoB,EAAE,GAAG;QACzB,uBAAuB,EAAE,CAAC;QAC1B,YAAY,EAAE,CAAC;QACf,YAAY,EAAE,CAAC;QACf,mBAAmB,EAAE,CAAC;QACtB,oBAAoB,EAAE,CAAC;QACvB,eAAe,EAAE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,CAAC,iBAAiB,CAAC,CAAA;IAEhE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAE9B,MAAM,WAAW,GAAG,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IAE/E,MAAM,cAAc,mCACf,qBAAa,KAChB,WAAW,GACZ,CAAA;IAED,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,kBAAU,EAAC,eAAO,EAAE,cAAc,CAAC,CAAA;IAC7D,MAAM,YAAY,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAChC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAA;IAC5B,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAA;IACrB,OAAO,uBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,kCAAO,YAAY,KAAE,WAAW,eAAK,QAAQ,GAA2B,CAAA;AAC/G,CAAC,CAAA;AAEQ,0CAAe"} \ No newline at end of file diff --git a/dist/modules/creator/state/index.js b/dist/modules/creator/state/index.js deleted file mode 100644 index 09b755e..0000000 --- a/dist/modules/creator/state/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)if(p!=='default'&&!Object.prototype.hasOwnProperty.call(exports,p))__createBinding(exports,m,p);};Object.defineProperty(exports,'__esModule',{value:true});__exportStar(require('./context'),exports);__exportStar(require('./types'),exports);__exportStar(require('./utils'),exports); \ No newline at end of file diff --git a/dist/modules/creator/state/index.js.map b/dist/modules/creator/state/index.js.map deleted file mode 100644 index 4fbffff..0000000 --- a/dist/modules/creator/state/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/creator/state/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C;AAC7C,8DAA2C;AAC3C,8DAA2C"} \ No newline at end of file diff --git a/dist/modules/creator/state/types.js b/dist/modules/creator/state/types.js deleted file mode 100644 index de3e3ff..0000000 --- a/dist/modules/creator/state/types.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ActionTypes=exports.StepperIndex=void 0;var StepperIndex;(function(StepperIndex){StepperIndex[StepperIndex['SELECT_TEMPLATE']=0]='SELECT_TEMPLATE';StepperIndex[StepperIndex['CONFIGURE_TEMPLATE']=1]='CONFIGURE_TEMPLATE';StepperIndex[StepperIndex['REVIEW_INFORMATION']=2]='REVIEW_INFORMATION';StepperIndex[StepperIndex['LAUNCH_ORGANIZATION']=3]='LAUNCH_ORGANIZATION';}(StepperIndex||(exports.StepperIndex=StepperIndex={})));function updateNavigationBar(props){return Object.assign({type:ActionTypes.UPDATE_NAVIGATION_BAR},props);}function updateOrgSettings(org){return{type:ActionTypes.UPDATE_ORGANIZATION_SETTINGS,org};}function updateVotingSettings(voting){return{type:ActionTypes.UPDATE_VOTING_SETTINGS,voting};}function updateTemplate(template){return{type:ActionTypes.UPDATE_TEMPLATE,template};}function updateQuorumSettings(quorum){return{type:ActionTypes.UPDATE_QUORUM_SETTINGS,quorum};}function updateDeploymentStatus({deploying,contract}){return{type:ActionTypes.UPDATE_DEPLOYMENT_STATUS,status:{deploying,contract}};}function clearCache(){return{type:ActionTypes.CLEAR_CACHE};}var ActionTypes;(function(ActionTypes){ActionTypes['UPDATE_NAVIGATION_BAR']='UPDATE_NAVIGATION_BAR';ActionTypes['UPDATE_VOTING_SETTINGS']='UPDATE_VOTING_SETTINGS';ActionTypes['UPDATE_TEMPLATE']='UPDATE_TEMPLATE';ActionTypes['UPDATE_QUORUM_SETTINGS']='UPDATE_QUORUM_SETTINGS';ActionTypes['UPDATE_ORGANIZATION_SETTINGS']='UPDATE_ORGANIZATION_SETTINGS';ActionTypes['UPDATE_DEPLOYMENT_STATUS']='UPDATE_DEPLOYMENT_STATUS';ActionTypes['CLEAR_CACHE']='CLEAR_CACHE';}(ActionTypes||(exports.ActionTypes=ActionTypes={}))); \ No newline at end of file diff --git a/dist/modules/creator/state/types.js.map b/dist/modules/creator/state/types.js.map deleted file mode 100644 index 57ce8ed..0000000 --- a/dist/modules/creator/state/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/creator/state/types.ts"],"names":[],"mappings":";;;AAiFA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,qEAAe,CAAA;IACf,2EAAkB,CAAA;IAClB,2EAAkB,CAAA;IAClB,6EAAmB,CAAA;AACrB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAQD,SAAS,mBAAmB,CAAC,KAAyB;IACpD,OAAO,gBACL,IAAI,EAAE,WAAW,CAAC,qBAAqB,IACpC,KAAK,CACT,CAAA;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,GAAgB;IACzC,OAAc;QACZ,IAAI,EAAE,WAAW,CAAC,4BAA4B;QAC9C,GAAG;KACJ,CAAA;AACH,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAsB;IAClD,OAAc;QACZ,IAAI,EAAE,WAAW,CAAC,sBAAsB;QACxC,MAAM;KACP,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,QAAqB;IAC3C,OAAc;QACZ,IAAI,EAAE,WAAW,CAAC,eAAe;QACjC,QAAQ;KACT,CAAA;AACH,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAsB;IAClD,OAAc;QACZ,IAAI,EAAE,WAAW,CAAC,sBAAsB;QACxC,MAAM;KACP,CAAA;AACH,CAAC;AAED,SAAS,sBAAsB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAoB;IACvE,OAAc;QACZ,IAAI,EAAE,WAAW,CAAC,wBAAwB;QAC1C,MAAM,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE;KAChC,CAAA;AACH,CAAC;AAED,SAAS,UAAU;IACjB,OAAc;QACZ,IAAI,EAAE,WAAW,CAAC,WAAW;KAC9B,CAAA;AACH,CAAC;AAYD,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,8DAA+C,CAAA;IAC/C,gEAAiD,CAAA;IACjD,kDAAmC,CAAA;IACnC,gEAAiD,CAAA;IACjD,4EAA6D,CAAA;IAC7D,oEAAqD,CAAA;IACrD,0CAA2B,CAAA;AAC7B,CAAC,EARW,WAAW,2BAAX,WAAW,QAQtB"} \ No newline at end of file diff --git a/dist/modules/creator/state/utils.js b/dist/modules/creator/state/utils.js deleted file mode 100644 index 5df0941..0000000 --- a/dist/modules/creator/state/utils.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.getTokensInfo=void 0;const getTokensInfo=state=>{const tokenInformation=Object.assign({},state.orgSettings);return{frozenToken:Object.assign(Object.assign({},tokenInformation),{decimals:18}),unfrozenToken:Object.assign(Object.assign({},tokenInformation),{decimals:18})};};exports.getTokensInfo=getTokensInfo; \ No newline at end of file diff --git a/dist/modules/creator/state/utils.js.map b/dist/modules/creator/state/utils.js.map deleted file mode 100644 index 93b1f26..0000000 --- a/dist/modules/creator/state/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/modules/creator/state/utils.ts"],"names":[],"mappings":";;;AAGO,MAAM,aAAa,GAAG,CAAC,KAAsB,EAAoC,EAAE;IACxF,MAAM,gBAAgB,qBAAiC,KAAK,CAAC,WAAW,CAAE,CAAA;IAC1E,OAAO;QACL,WAAW,kCAAO,gBAAgB,KAAE,QAAQ,EAAE,EAAE,GAAE;QAClD,aAAa,kCAAO,gBAAgB,KAAE,QAAQ,EAAE,EAAE,GAAE;KACrD,CAAA;AACH,CAAC,CAAA;AANY,QAAA,aAAa,iBAMzB"} \ No newline at end of file diff --git a/dist/modules/creator/steps/DaoSettings.js b/dist/modules/creator/steps/DaoSettings.js deleted file mode 100644 index 28a944b..0000000 --- a/dist/modules/creator/steps/DaoSettings.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.DaoSettings=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const utils_1=require('@taquito/utils');const react_1=require('react');const react_router_1=require('react-router');const react_router_dom_1=require('react-router-dom');const formik_1=require('formik');const formik_material_ui_1=require('formik-material-ui');const TitleBlock_1=require('../../common/TitleBlock');const state_1=require('../state');const icons_1=require('@material-ui/icons');const useTokenMetadata_1=require('../../../services/contracts/baseDAO/hooks/useTokenMetadata');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const SecondContainer=(0,core_1.styled)(core_1.Grid)({marginTop:25});const CustomInputContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({height:54,boxSizing:'border-box',marginTop:14,background:'#2F3438',borderRadius:8,alignItems:'center',display:'flex',padding:'13px 23px'}));const InfoIcon=(0,core_1.styled)(icons_1.InfoRounded)(({theme})=>({position:'absolute',right:25,top:'20%',color:theme.palette.secondary.light,height:18,width:18}));const InfoIconInput=(0,core_1.styled)(icons_1.InfoRounded)(({theme})=>({cursor:'default',color:theme.palette.secondary.light,height:16,width:16}));const TextareaContainer=(0,core_1.styled)(core_1.Grid)({display:'flex',position:'relative'});const CustomFormikTextField=(0,core_1.withStyles)({root:{'& .MuiInput-root':{fontWeight:300,textAlign:'initial'},'& .MuiInputBase-input':{textAlign:'initial'},'& .MuiInput-underline:before':{borderBottom:'none !important'},'& .MuiInput-underline:hover:before':{borderBottom:'none !important'},'& .MuiInput-underline:after':{borderBottom:'none !important'}}})(formik_material_ui_1.TextField);const MetadataContainer=(0,core_1.styled)(core_1.Grid)({margin:'-4px 0 16px 0'});const CustomTextarea=(0,core_1.styled)((0,core_1.withTheme)(core_1.TextareaAutosize))(props=>({'minHeight':152,'boxSizing':'border-box','width':'100%','marginTop':14,'fontWeight':300,'padding':'21px 20px','fontFamily':'system-ui','border':'none','fontSize':16,'color':props.theme.palette.text.secondary,'background':'#2F3438','borderRadius':8,'paddingRight':40,'wordBreak':'break-word','&:focus-visible':{outline:'none'}}));const ErrorText=(0,core_1.styled)(core_1.Typography)({fontSize:14,color:'red'});const DaoSettingsForm=(0,react_router_1.withRouter)(({submitForm,values,setFieldValue,errors,touched,setFieldTouched})=>{var _a,_b,_c,_d,_e,_f,_g,_h;const theme=(0,core_1.useTheme)();const isMobile=(0,core_1.useMediaQuery)(theme.breakpoints.down('md'));const {data:tokenMetadata,isLoading:loading,error}=(0,useTokenMetadata_1.useTokenMetadata)((_a=values===null||values===void 0?void 0:values.governanceToken)===null||_a===void 0?void 0:_a.address,(_b=values===null||values===void 0?void 0:values.governanceToken)===null||_b===void 0?void 0:_b.tokenId);(0,react_1.useEffect)(()=>{if(tokenMetadata){setFieldValue('governanceToken.tokenMetadata',tokenMetadata);setFieldValue('symbol',tokenMetadata.symbol);}if(error){setFieldValue('governanceToken.tokenMetadata',undefined);setFieldValue('symbol',undefined);}},[error,setFieldValue,tokenMetadata]);const {dispatch}=(0,react_1.useContext)(state_1.CreatorContext);const match=(0,react_router_dom_1.useRouteMatch)();const history=(0,react_router_1.useHistory)();(0,react_1.useEffect)(()=>{if(values){dispatch({type:state_1.ActionTypes.UPDATE_NAVIGATION_BAR,next:{handler:()=>{submitForm(values);},text:'Continue'},back:{handler:()=>history.push(`template`),text:'Back'}});}},[dispatch,errors,history,match.path,match.url,submitForm,values]);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(SecondContainer,{container:true,item:true,direction:'row',spacing:2,wrap:'wrap',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:isMobile?12:9,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[' ','Token Address',' ']}),(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{id:'outlined-basic',placeholder:'KT1....',name:'governanceToken.address',component:CustomFormikTextField,onClick:()=>setFieldTouched('governanceToken.address'),inputProps:{maxLength:36}})}),((_c=errors.governanceToken)===null||_c===void 0?void 0:_c.address)&&((_d=touched.governanceToken)===null||_d===void 0?void 0:_d.address)?(0,jsx_runtime_1.jsx)(ErrorText,{children:(_e=errors.governanceToken)===null||_e===void 0?void 0:_e.address}):null]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:isMobile?12:3,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[' ','Token ID',' ']}),(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{id:'outlined-basic',placeholder:'0',name:'governanceToken.tokenId',component:CustomFormikTextField,InputProps:{endAdornment:(0,jsx_runtime_1.jsx)(core_1.InputAdornment,{position:'start',children:(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Homebase will only track your governance token at a certain ID index, which is a parameter specified upon deploying the token contract. Fungible tokens usually have the ID of 0 (zero).',children:(0,jsx_runtime_1.jsx)(InfoIconInput,{})})})}})}),((_f=errors.governanceToken)===null||_f===void 0?void 0:_f.tokenId)&&((_g=touched.governanceToken)===null||_g===void 0?void 0:_g.tokenId)?(0,jsx_runtime_1.jsx)(ErrorText,{children:(_h=errors.governanceToken)===null||_h===void 0?void 0:_h.tokenId}):null]}),tokenMetadata&&!loading&&(0,jsx_runtime_1.jsx)(MetadataContainer,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'secondary',children:[tokenMetadata.name,' (',tokenMetadata.symbol,')']})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:isMobile?12:12,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[' ','DAO Name',' ']}),(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'name',inputProps:{maxLength:18},type:'text',placeholder:'My Group\u2019s Token',component:CustomFormikTextField})}),errors.name&&touched.name?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.name}):null]})]}),(0,jsx_runtime_1.jsxs)(SecondContainer,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:'Description'})}),(0,jsx_runtime_1.jsxs)(TextareaContainer,{item:true,xs:12,children:[(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'description',children:()=>(0,jsx_runtime_1.jsx)(CustomTextarea,{maxLength:1500,'aria-label':'empty textarea',placeholder:'This is what we\u2019re about...',value:(0,formik_1.getIn)(values,'description'),onChange:newValue=>{setFieldValue('description',newValue.target.value);}})}),(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Description info',children:(0,jsx_runtime_1.jsx)(InfoIcon,{})})]}),errors.description&&touched.description?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.description}):null]}),(0,jsx_runtime_1.jsxs)(SecondContainer,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[' ','Guardian',' ']})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:12,children:[(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'guardian',type:'text',placeholder:'tz1PXn....',component:CustomFormikTextField,onClick:()=>setFieldTouched('guardian'),inputProps:{maxLength:36},InputProps:{endAdornment:(0,jsx_runtime_1.jsx)(core_1.InputAdornment,{position:'start',children:(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Address that can drop/cancel any proposals, Should be a contract like multisig or another DAO',children:(0,jsx_runtime_1.jsx)(InfoIconInput,{color:'secondary'})})})}})}),errors.guardian&&touched.guardian?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.guardian}):null]})]})]});});const isInvalidKtOrTzAddress=address=>(0,utils_1.validateContractAddress)(address)!==3&&(0,utils_1.validateAddress)(address)!==3;const validateForm=values=>{var _a;const errors={};if(!values.name){errors.name='Required';}if(!values.symbol){errors.symbol='Required';}if(!values.description){errors.description='Required';}if(!values.guardian){errors.guardian='Required';}if(values.guardian&&isInvalidKtOrTzAddress(values.guardian)){errors.guardian='Invalid address';}if(!values.governanceToken.address){errors.governanceToken=Object.assign(Object.assign({},errors.governanceToken),{address:'Required'});}if(values.governanceToken.address&&(0,utils_1.validateContractAddress)(values.governanceToken.address)!==3){errors.governanceToken=Object.assign(Object.assign({},errors.governanceToken),{address:'Invalid address'});}if(!values.governanceToken.tokenId){errors.governanceToken=Object.assign(Object.assign({},errors.governanceToken),{tokenId:'Required'});}if(!values.governanceToken.tokenMetadata){errors.governanceToken=Object.assign(Object.assign({},errors.governanceToken),{address:'Could not find token'});}if(((_a=values.governanceToken.tokenMetadata)===null||_a===void 0?void 0:_a.standard)==='fa1.2'){errors.governanceToken=Object.assign(Object.assign({},errors.governanceToken),{address:'FA1.2 Tokens Not Supported'});}return errors;};const DaoSettings=()=>{const {state,dispatch,updateCache}=(0,react_1.useContext)(state_1.CreatorContext);const {orgSettings}=state.data;const history=(0,react_router_1.useHistory)();const {account}=(0,useTezos_1.useTezos)();const saveStepInfo=(values,{setSubmitting})=>{const newValues=Object.assign(Object.assign({},values),{administrator:account});const newState=Object.assign(Object.assign({},state.data),{orgSettings:newValues});updateCache(newState);setSubmitting(true);dispatch({type:state_1.ActionTypes.UPDATE_ORGANIZATION_SETTINGS,org:newValues});history.push(`voting`);};return(0,jsx_runtime_1.jsxs)(core_1.Box,{children:[(0,jsx_runtime_1.jsx)(TitleBlock_1.TitleBlock,{title:'DAO Settings',description:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:['These settings will define the name, symbol, and initial distribution of your token. You will need a pre-existing FA2 token to use as governance token. To deploy your own governance token you can go',' ',(0,jsx_runtime_1.jsx)(core_1.Link,{target:'_blank',href:'https://fa2-bakery.netlify.app/',color:'secondary',children:'here'}),' ','and then come back.']})}),(0,jsx_runtime_1.jsx)(formik_1.Formik,{enableReinitialize:true,validateOnChange:true,validateOnBlur:true,validate:validateForm,onSubmit:saveStepInfo,initialValues:orgSettings,children:({submitForm,isSubmitting,setFieldValue,values,errors,touched,setFieldTouched})=>{return(0,jsx_runtime_1.jsx)(formik_1.Form,{style:{width:'100%'},children:(0,jsx_runtime_1.jsx)(DaoSettingsForm,{submitForm:submitForm,isSubmitting:isSubmitting,setFieldValue:setFieldValue,errors:errors,touched:touched,values:values,setFieldTouched:setFieldTouched})});}})]});};exports.DaoSettings=DaoSettings; \ No newline at end of file diff --git a/dist/modules/creator/steps/DaoSettings.js.map b/dist/modules/creator/steps/DaoSettings.js.map deleted file mode 100644 index 129df83..0000000 --- a/dist/modules/creator/steps/DaoSettings.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DaoSettings.js","sourceRoot":"","sources":["../../../../src/modules/creator/steps/DaoSettings.tsx"],"names":[],"mappings":";;;;AAAA,4CAa0B;AAC1B,0CAAyE;AACzE,iCAAoD;AACpD,+CAAqD;AACrD,uDAAgD;AAChD,mCAAiE;AACjE,2DAAiE;AACjE,0DAAsD;AAEtD,iDAAgF;AAChF,8CAAgD;AAChD,wFAAoF;AACpF,6DAAyD;AAEzD,MAAM,eAAe,GAAG,IAAA,aAAM,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EAAE,eAAe,EAAE,EAAE,EAAE;oBACzF,OAAO,CACL,uBAAC,aAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YAC5B,uBAAC,eAAe,IACd,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,GAChC,GACG,CACR,CAAA;gBACH,CAAC,GACM,IACL,CACP,CAAA;AACH,CAAC,CAAA;AA5DY,QAAA,WAAW,eA4DvB"} \ No newline at end of file diff --git a/dist/modules/creator/steps/Governance.js b/dist/modules/creator/steps/Governance.js deleted file mode 100644 index 41c7f69..0000000 --- a/dist/modules/creator/steps/Governance.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.Governance=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const formik_material_ui_1=require('formik-material-ui');const react_1=require('react');const formik_1=require('formik');const react_router_1=require('react-router');const react_router_dom_1=require('react-router-dom');const state_1=require('../state');const icons_1=require('@material-ui/icons');const stats_1=require('../../../services/bakingBad/stats');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const EstimatedTime_1=require('../../explorer/components/EstimatedTime');const dayjs_1=__importDefault(require('dayjs'));const TitleBlock_1=require('../../common/TitleBlock');const bignumber_js_1=__importDefault(require('bignumber.js'));const utils_1=require('../../../services/contracts/utils');const utils_2=require('../utils');const TimeBox=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.dark,borderRadius:8,width:72,minHeight:59,marginBottom:16,display:'grid'}));const TimeText=(0,core_1.styled)(core_1.Typography)({marginTop:-20,marginLeft:16});const CustomTooltip=(0,core_1.styled)(core_1.Tooltip)({marginLeft:8});const InfoIconInput=(0,core_1.styled)(icons_1.InfoRounded)(({theme})=>({cursor:'default',color:theme.palette.secondary.light,height:16,width:16,marginLeft:8}));const InfoIconDanger=(0,core_1.styled)(icons_1.InfoRounded)(({theme})=>({cursor:'default',color:theme.palette.error.main,height:16,width:16}));const InfoIconCorrect=(0,core_1.styled)(icons_1.InfoRounded)(({theme})=>({cursor:'default',color:theme.palette.secondary.main,height:16,width:16}));const ErrorText=(0,core_1.styled)(core_1.Typography)({display:'block',fontSize:14,color:'red'});const ErrorTextTime=(0,core_1.styled)(core_1.Typography)({display:'block',fontSize:14,color:'red',marginTop:-14});const SecondContainer=(0,core_1.styled)(core_1.Grid)({marginTop:10});const SpacingContainer=(0,core_1.styled)(core_1.Grid)({marginTop:25});const StakeContainer=(0,core_1.styled)(core_1.Grid)({display:'block'});const AdditionContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({marginTop:14,border:'none',height:54,background:'#2F3438',borderRadius:8,marginRight:15,['@media (max-width:1167px)']:{marginRight:0}}));const GridItemCenter=(0,core_1.styled)(core_1.Grid)({textAlign:'center',alignItems:'center',display:'flex',justifyContent:'flex-end'});const ItemContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({height:'100%',padding:'12px 25px'}));const ValueText=(0,core_1.styled)(core_1.Typography)({fontSize:14});const StyledSlider=(0,core_1.withStyles)({root:{textAlign:'center',width:'100%'},valueLabel:{textAlign:'center'},thumb:{height:20,width:20,top:'36.5%',backgroundColor:'#fff',border:'3px solid #fff'},track:{backgroundColor:'#4BCF93',borderRadius:'4px',height:2}})(core_1.Slider);const CustomSliderValue=(0,core_1.styled)((0,core_1.withTheme)(core_1.Paper))(props=>({boxShadow:'none',height:54,display:'flex',alignItems:'center',justifyContent:'center',background:'#2F3438',borderRadius:8,width:97}));const Value=(0,core_1.styled)(core_1.Typography)({textAlign:'center',padding:'15%'});const styles={voting:{marginTop:6,marginBottom:16}};const InputContainer=(0,core_1.styled)(core_1.Grid)({paddingRight:15,['@media (max-width:1167px)']:{paddingRight:0}});const CustomFormikTextField=(0,core_1.withStyles)({root:{'& input':{textAlign:'center'}}})(formik_material_ui_1.TextField);const GridNoPadding=(0,core_1.styled)(core_1.Grid)({paddingLeft:'8px !important'});const InfoBox=(0,core_1.styled)(core_1.Paper)({boxShadow:'none',border:'none',background:'inherit',marginTop:20});const validateForm=values=>{const errors={};Object.keys(values).forEach(key=>{if(values[key]===''){errors[key]='Required';}if(Number(values[key])<0){errors[key]='Cannot be negative';}});if(!values.votingBlocks||values.votingBlocks<=0){errors.votingBlocks='Must be greater than 0';}if(!values.proposalFlushBlocks||Number(values.proposalFlushBlocks)<=0){errors.proposalFlushBlocks='Must be greater than 0';}if(!values.proposalExpiryBlocks||Number(values.proposalExpiryBlocks)<=0){errors.proposalExpiryBlocks='Must be greater than 0';}if(new bignumber_js_1.default(values.proposeStakeRequired).lte(new bignumber_js_1.default(0))){errors.proposeStakeRequired='Must be greater than 0';}if(values.maxXtzAmount<=0){errors.maxXtzAmount='Must be greater than 0';}if(values.minXtzAmount&&new bignumber_js_1.default(values.minXtzAmount).lt((0,utils_1.mutezToXtz)(new bignumber_js_1.default(1)))){errors.minXtzAmount='Too small, number must be bigger';}if(values.maxXtzAmount&&String(values.maxXtzAmount).length>255){errors.maxXtzAmount='Too big, number must be smaller';}if(values.minXtzAmount&&String(values.minXtzAmount).length>255){errors.minXtzAmount='Too big, number must be smaller';}if(values.minXtzAmount>values.maxXtzAmount){errors.maxXtzAmount='Must be greater than Min. XTZ amount';}return errors;};const secondsToTime=seconds=>({days:Math.floor(seconds/(3600*24)),hours:Math.floor(seconds%(3600*24)/3600),minutes:Math.floor(seconds%3600/60)});const useEstimatedBlocks=({votingBlocksDay,votingBlocksMinutes,votingBlocksHours,proposalFlushBlocksDay,proposalFlushBlocksHours,proposalFlushBlocksMinutes,proposalExpiryBlocksDay,proposalExpiryBlocksHours,proposalExpiryBlocksMinutes,blockTimeAverage})=>{const now=(0,dayjs_1.default)();let periodSeconds=votingBlocksDay*86400;periodSeconds+=votingBlocksHours*3600;periodSeconds+=votingBlocksMinutes*60;const periodBlocks=Math.round(periodSeconds/blockTimeAverage);let flushDelaySeconds=proposalFlushBlocksDay*86400;flushDelaySeconds+=proposalFlushBlocksHours*3600;flushDelaySeconds+=proposalFlushBlocksMinutes*60;const flushBlocks=Math.round(flushDelaySeconds/blockTimeAverage);let expiryDelaySeconds=proposalExpiryBlocksDay*86400;expiryDelaySeconds+=proposalExpiryBlocksHours*3600;expiryDelaySeconds+=proposalExpiryBlocksMinutes*60;const expiryBlocks=Math.round(expiryDelaySeconds/blockTimeAverage);const creationMoment=now.add(periodSeconds,'s');const activeMoment=creationMoment.add(periodSeconds,'s');const closeMoment=activeMoment.add(periodSeconds,'s');const flushMoment=closeMoment.add(flushDelaySeconds,'s');const expiryMoment=flushMoment.add(expiryDelaySeconds,'s');return{periodBlocks,flushBlocks,expiryBlocks,creationMoment,activeMoment,closeMoment,flushMoment,expiryMoment,votingTime:secondsToTime(periodSeconds),flushDelayTime:secondsToTime(flushDelaySeconds),expiryDelayTime:secondsToTime(expiryDelaySeconds),periodSeconds};};const GovernanceForm=({submitForm,values,setFieldValue,errors,touched,setFieldTouched})=>{var _a,_b,_c;const {network}=(0,useTezos_1.useTezos)();const {dispatch,state:{data:{orgSettings}}}=(0,react_1.useContext)(state_1.CreatorContext);const match=(0,react_router_dom_1.useRouteMatch)();const history=(0,react_router_1.useHistory)();const [blockTimeAverage,setBlockTimeAverage]=(0,react_1.useState)(0);const {votingBlocksDay,votingBlocksMinutes,votingBlocksHours,proposalFlushBlocksDay,proposalFlushBlocksHours,proposalFlushBlocksMinutes,proposalExpiryBlocksDay,proposalExpiryBlocksHours,proposalExpiryBlocksMinutes}=values;const {votingTime,flushDelayTime,activeMoment,expiryDelayTime,periodSeconds,periodBlocks,flushBlocks,expiryBlocks}=useEstimatedBlocks({votingBlocksDay,votingBlocksMinutes,votingBlocksHours,proposalFlushBlocksDay,proposalFlushBlocksHours,proposalFlushBlocksMinutes,proposalExpiryBlocksDay,proposalExpiryBlocksHours,proposalExpiryBlocksMinutes,blockTimeAverage});(0,react_1.useEffect)(()=>{setFieldValue('votingBlocks',periodBlocks);setFieldValue('proposalFlushBlocks',flushBlocks);setFieldValue('proposalExpiryBlocks',expiryBlocks);},[values,periodBlocks,flushBlocks,expiryBlocks,setFieldValue]);(0,react_1.useEffect)(()=>{;(()=>__awaiter(void 0,void 0,void 0,function*(){const blockchainInfo=yield(0,stats_1.getNetworkStats)(network);if(blockchainInfo){setBlockTimeAverage(blockchainInfo.constants.timeBetweenBlocks);}}))();},[network]);const formatDate=timeInfo=>{const values=[];for(const property in timeInfo){if(timeInfo[property]!==0){values.push(`${timeInfo[property]} ${property}`);}}if(values.length>0){return values.toString().replace(',',' and ');}return'0 minutes';};(0,react_1.useEffect)(()=>{if(values){dispatch({type:state_1.ActionTypes.UPDATE_NAVIGATION_BAR,next:{text:'Continue',handler:()=>{submitForm(values);}},back:{text:'Back',handler:()=>history.push(`dao`)}});}},[dispatch,errors,history,match.path,match.url,submitForm,values]);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsxs)(InputContainer,{item:true,sm:4,xs:12,children:[(0,jsx_runtime_1.jsx)(SecondContainer,{container:true,direction:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{style:styles.voting,variant:'subtitle1',color:'textSecondary',children:'Voting Cycle Duration'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',onKeyDown:e=>(0,utils_2.handleChange)(e),name:'votingBlocksDay',type:'number',placeholder:'0',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'votingBlocksDay')===0){setFieldValue('votingBlocksDay','');setFieldTouched('votingBlocksDay');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('votingBlocksDay','');}else{setFieldValue('votingBlocksDay',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeText,{color:'textSecondary',children:'days'})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',onKeyDown:e=>(0,utils_2.handleChange)(e),name:'votingBlocksHours',type:'number',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'votingBlocksHours')===0){setFieldValue('votingBlocksHours','');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('votingBlocksHours','');}else{setFieldValue('votingBlocksHours',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeText,{color:'textSecondary',children:'hours'})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',onKeyDown:e=>(0,utils_2.handleChange)(e),name:'votingBlocksMinutes',type:'number',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'votingBlocksMinutes')===0){setFieldValue('votingBlocksMinutes','');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('votingBlocksMinutes','');}else{setFieldValue('votingBlocksMinutes',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeText,{color:'textSecondary',children:'minutes'})]})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,style:{marginTop:10,marginLeft:0,height:42},children:(0,jsx_runtime_1.jsx)(EstimatedTime_1.EstimatedBlocks,{blocks:periodBlocks})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:errors.votingBlocks&&(touched.votingBlocksDay||touched.votingBlocksMinutes||touched.votingBlocksHours)?(0,jsx_runtime_1.jsx)(ErrorTextTime,{children:errors.votingBlocks}):null})]}),(0,jsx_runtime_1.jsxs)(InputContainer,{item:true,sm:4,xs:12,children:[(0,jsx_runtime_1.jsx)(SecondContainer,{container:true,direction:'row',children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{style:styles.voting,variant:'subtitle1',color:'textSecondary',children:['Proposal Execution Delay',(0,jsx_runtime_1.jsx)(CustomTooltip,{placement:'bottom',title:'The time for which the proposal execution will be paused, after this time has passed the proposal will be executable',children:errors.proposalFlushBlocks?(0,jsx_runtime_1.jsx)(InfoIconDanger,{}):(0,jsx_runtime_1.jsx)(InfoIconCorrect,{})})]})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',onKeyDown:e=>(0,utils_2.handleChange)(e),name:'proposalFlushBlocksDay',type:'number',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'proposalFlushBlocksDay')===0){setFieldValue('proposalFlushBlocksDay','');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('proposalFlushBlocksDay','');}else{setFieldValue('proposalFlushBlocksDay',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeText,{color:'textSecondary',children:'days'})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',onKeyDown:e=>(0,utils_2.handleChange)(e),name:'proposalFlushBlocksHours',type:'number',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'proposalFlushBlocksHours')===0){setFieldValue('proposalFlushBlocksHours','');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('proposalFlushBlocksHours','');}else{setFieldValue('proposalFlushBlocksHours',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeText,{color:'textSecondary',children:'hours'})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',onKeyDown:e=>(0,utils_2.handleChange)(e),name:'proposalFlushBlocksMinutes',type:'number',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'proposalFlushBlocksMinutes')===0){setFieldValue('proposalFlushBlocksMinutes','');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('proposalFlushBlocksMinutes','');}else{setFieldValue('proposalFlushBlocksMinutes',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeText,{color:'textSecondary',children:'minutes'})]})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,style:{marginLeft:0,height:42,marginTop:10},children:(0,jsx_runtime_1.jsx)(EstimatedTime_1.EstimatedBlocks,{blocks:flushBlocks})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:errors.proposalFlushBlocks&&(touched.proposalFlushBlocksDay||touched.proposalFlushBlocksMinutes||touched.proposalFlushBlocksHours)?(0,jsx_runtime_1.jsx)(ErrorTextTime,{children:errors.proposalFlushBlocks}):null})]}),(0,jsx_runtime_1.jsxs)(InputContainer,{item:true,sm:4,xs:12,children:[(0,jsx_runtime_1.jsx)(SecondContainer,{container:true,direction:'row',children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{style:styles.voting,variant:'subtitle1',color:'textSecondary',children:['Proposal Expiry Threshold',(0,jsx_runtime_1.jsx)(CustomTooltip,{placement:'bottom',title:'This is the time after which if you still haven\'t executed your proposal it will become expired and non-executable',children:errors.proposalExpiryBlocks?(0,jsx_runtime_1.jsx)(InfoIconDanger,{}):(0,jsx_runtime_1.jsx)(InfoIconCorrect,{})})]})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',onKeyDown:e=>(0,utils_2.handleChange)(e),name:'proposalExpiryBlocksDay',type:'number',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'proposalExpiryBlocksDay')===0){setFieldValue('proposalExpiryBlocksDay','');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('proposalExpiryBlocksDay','');}else{setFieldValue('proposalExpiryBlocksDay',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeText,{color:'textSecondary',children:'days'})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',onKeyDown:e=>(0,utils_2.handleChange)(e),name:'proposalExpiryBlocksHours',type:'number',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'proposalExpiryBlocksHours')===0){setFieldValue('proposalExpiryBlocksHours','');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('proposalExpiryBlocksHours','');}else{setFieldValue('proposalExpiryBlocksHours',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeText,{color:'textSecondary',children:'hours'})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',onKeyDown:e=>(0,utils_2.handleChange)(e),name:'proposalExpiryBlocksMinutes',type:'number',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'proposalExpiryBlocksMinutes')===0){setFieldValue('proposalExpiryBlocksMinutes','');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('proposalExpiryBlocksMinutes','');}else{setFieldValue('proposalExpiryBlocksMinutes',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeText,{color:'textSecondary',children:'minutes'})]})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,style:{marginLeft:0,height:42,marginTop:10},children:(0,jsx_runtime_1.jsx)(EstimatedTime_1.EstimatedBlocks,{blocks:expiryBlocks})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:errors.proposalExpiryBlocks&&(touched.proposalExpiryBlocksDay||touched.proposalExpiryBlocksHours||touched.proposalExpiryBlocksMinutes)?(0,jsx_runtime_1.jsx)(ErrorTextTime,{children:errors.proposalExpiryBlocks}):null})]})]}),(0,jsx_runtime_1.jsx)(InfoBox,{children:(0,jsx_runtime_1.jsx)(TitleBlock_1.TitleBlock,{description:(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textSecondary',children:'You will need to wait for a full cycle before making your first proposal.'}),(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textSecondary',style:{marginTop:10},children:`A proposal will accept votes for ${formatDate(votingTime)} after it is created. Once the voting cycle - ends, if the proposal is accepted, it will become executable after another ${formatDate(flushDelayTime)}.`}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textSecondary',style:{marginTop:10},children:['If not executed within ',formatDate(expiryDelayTime),' after voting ends, the proposal will expire and won\'t be available for execution anymore.']})]})})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,style:{marginTop:12},children:[(0,jsx_runtime_1.jsx)(SecondContainer,{container:true,direction:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{style:styles.voting,variant:'subtitle1',color:'textSecondary',children:'Required Stake to Propose'})}),(0,jsx_runtime_1.jsxs)(StakeContainer,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(AdditionContainer,{item:true,xs:12,sm:4,children:(0,jsx_runtime_1.jsxs)(ItemContainer,{container:true,direction:'row',alignItems:'center',justifyContent:'center',children:[(0,jsx_runtime_1.jsx)(GridItemCenter,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'proposeStakeRequired',type:'string',placeholder:'00',inputProps:{min:0,defaultValue:0,step:0.01},component:formik_material_ui_1.TextField,validate:value=>{var _a,_b;let error;if(((_a=orgSettings.governanceToken.tokenMetadata)===null||_a===void 0?void 0:_a.decimals)&&new bignumber_js_1.default(value).lt((0,utils_1.parseUnits)(new bignumber_js_1.default(1),(_b=orgSettings.governanceToken.tokenMetadata)===null||_b===void 0?void 0:_b.decimals))){error='Token value lower than smallest valid token value';}return error;},onClick:()=>setFieldTouched('proposeStakeRequired')})}),(0,jsx_runtime_1.jsxs)(GridItemCenter,{item:true,xs:7,container:true,direction:'row',justifyContent:'space-around',children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textSecondary',children:((_a=orgSettings.governanceToken.tokenMetadata)===null||_a===void 0?void 0:_a.symbol)||''}),(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:`Amount of ${((_b=orgSettings.governanceToken.tokenMetadata)===null||_b===void 0?void 0:_b.symbol)||''} required to make a proposal. Total supply: ${(_c=orgSettings.governanceToken.tokenMetadata)===null||_c===void 0?void 0:_c.supply}`,children:(0,jsx_runtime_1.jsx)(InfoIconInput,{})})]})]})}),errors.proposeStakeRequired||errors.proposeStakePercentage?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.proposeStakeRequired||errors.proposeStakePercentage}):null]})]}),(0,jsx_runtime_1.jsxs)(SecondContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{style:styles.voting,variant:'subtitle1',color:'textSecondary',children:'Returned Stake After Proposal Rejection'}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',style:{marginTop:14},children:[(0,jsx_runtime_1.jsx)(GridNoPadding,{item:true,xs:8,sm:10,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'returnedTokenPercentage',children:()=>(0,jsx_runtime_1.jsx)(StyledSlider,{value:(0,formik_1.getIn)(values,'returnedTokenPercentage'),onChange:(value,newValue)=>setFieldValue('returnedTokenPercentage',newValue||0)})})}),(0,jsx_runtime_1.jsx)(GridNoPadding,{item:true,xs:4,sm:2,container:true,direction:'row',justifyContent:'flex-end',children:(0,jsx_runtime_1.jsx)(CustomSliderValue,{children:(0,jsx_runtime_1.jsxs)(Value,{variant:'subtitle1',color:'textSecondary',children:[(0,formik_1.getIn)(values,'returnedTokenPercentage'),'%']})})})]})]}),(0,jsx_runtime_1.jsx)(SpacingContainer,{direction:'row',container:true,alignItems:'center',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:'Min & Max Transfer Amounts'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',style:{marginTop:14},children:[(0,jsx_runtime_1.jsxs)(AdditionContainer,{item:true,xs:12,sm:4,children:[(0,jsx_runtime_1.jsxs)(ItemContainer,{container:true,direction:'row',alignItems:'center',justifyContent:'center',children:[(0,jsx_runtime_1.jsx)(GridItemCenter,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'minXtzAmount',type:'number',inputProps:{min:0.000001,defaultValue:0,step:0.01},placeholder:'00',component:formik_material_ui_1.TextField,onClick:()=>setFieldTouched('minXtzAmount')})}),(0,jsx_runtime_1.jsxs)(GridItemCenter,{item:true,xs:7,container:true,direction:'row',justifyContent:'space-around',children:[(0,jsx_runtime_1.jsx)(ValueText,{color:'textSecondary',children:'Min. XTZ'}),(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Minimum amount of XTZ that can be transferred',children:(0,jsx_runtime_1.jsx)(InfoIconInput,{})})]})]}),errors.minXtzAmount&&touched.minXtzAmount?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.minXtzAmount}):null]}),(0,jsx_runtime_1.jsxs)(AdditionContainer,{item:true,xs:12,sm:4,children:[(0,jsx_runtime_1.jsxs)(ItemContainer,{container:true,direction:'row',alignItems:'center',justifyContent:'center',children:[(0,jsx_runtime_1.jsx)(GridItemCenter,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'maxXtzAmount',type:'number',placeholder:'00',component:formik_material_ui_1.TextField,inputProps:{min:0.000001,defaultValue:0,step:0.01},onClick:()=>setFieldTouched('maxXtzAmount')})}),(0,jsx_runtime_1.jsxs)(GridItemCenter,{item:true,xs:7,container:true,direction:'row',justifyContent:'space-around',children:[(0,jsx_runtime_1.jsx)(ValueText,{color:'textSecondary',children:'Max. XTZ '}),(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Maximum amount of XTZ that can be transferred',children:(0,jsx_runtime_1.jsx)(InfoIconInput,{})})]})]}),errors.maxXtzAmount&&touched.maxXtzAmount?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.maxXtzAmount}):null]})]})]});};const Governance=()=>{const {dispatch,state,updateCache}=(0,react_1.useContext)(state_1.CreatorContext);const {votingSettings}=state.data;const history=(0,react_router_1.useHistory)();const saveStepInfo=(values,{setSubmitting})=>{const newState=Object.assign(Object.assign({},state.data),{votingSettings:values});updateCache(newState);setSubmitting(true);dispatch({type:state_1.ActionTypes.UPDATE_VOTING_SETTINGS,voting:values});history.push(`quorum`);};return(0,jsx_runtime_1.jsxs)(core_1.Box,{children:[(0,jsx_runtime_1.jsx)(TitleBlock_1.TitleBlock,{title:'Proposals & Voting',tooltipText:'Configure Proposals and Voting',tooltip:true,description:'These settings will define the duration, support and approval required for proposals.'}),(0,jsx_runtime_1.jsx)(formik_1.Formik,{enableReinitialize:true,validateOnChange:true,validateOnBlur:true,validate:validateForm,onSubmit:saveStepInfo,initialValues:votingSettings,children:({submitForm,isSubmitting,setFieldValue,values,errors,touched,setFieldTouched})=>{return(0,jsx_runtime_1.jsx)(formik_1.Form,{style:{width:'100%'},children:(0,jsx_runtime_1.jsx)(GovernanceForm,{submitForm:submitForm,isSubmitting:isSubmitting,setFieldValue:setFieldValue,errors:errors,touched:touched,values:values,setFieldTouched:setFieldTouched})});}})]});};exports.Governance=Governance; \ No newline at end of file diff --git a/dist/modules/creator/steps/Governance.js.map b/dist/modules/creator/steps/Governance.js.map deleted file mode 100644 index 90cadbe..0000000 --- a/dist/modules/creator/steps/Governance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Governance.js","sourceRoot":"","sources":["../../../../src/modules/creator/steps/Governance.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAgH;AAChH,2DAA8C;AAC9C,iCAA8D;AAC9D,mCAAiE;AACjE,+CAAyC;AACzC,uDAAgD;AAEhD,iDAAmF;AACnF,8CAAgD;AAChD,oDAA0D;AAC1D,6DAAyD;AACzD,6EAA2E;AAC3E,kD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AAQ,mCACT,KAAK,CAAC,IAAI,KACb,cAAc,EAAE,MAAM,GACvB,CAAA;QACD,WAAW,CAAC,QAAQ,CAAC,CAAA;QACrB,aAAa,CAAC,IAAI,CAAC,CAAA;QACnB,QAAQ,CAAC,EAAE,IAAI,EAAE,mBAAW,CAAC,sBAAsB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;QACtE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACxB,CAAC,CAAA;IAED,OAAO,CACL,wBAAC,UAAG,eACF,uBAAC,uBAAU,IACT,KAAK,EAAE,oBAAoB,EAC3B,WAAW,EAAE,gCAAgC,EAC7C,OAAO,EAAE,IAAI,EACb,WAAW,EAAE,uFAAuF,GACxF,EAEd,uBAAC,eAAM,IACL,kBAAkB,EAAE,IAAI,EACxB,gBAAgB,EAAE,IAAI,EACtB,cAAc,EAAE,IAAI,EACpB,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,YAAY,EACtB,aAAa,EAAE,cAAc,YAE5B,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE;oBACzF,OAAO,CACL,uBAAC,aAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YAC5B,uBAAC,cAAc,IACb,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,GAChC,GACG,CACR,CAAA;gBACH,CAAC,GACM,IACL,CACP,CAAA;AACH,CAAC,CAAA;AAlDY,QAAA,UAAU,cAkDtB"} \ No newline at end of file diff --git a/dist/modules/creator/steps/Quorum.js b/dist/modules/creator/steps/Quorum.js deleted file mode 100644 index c2d932e..0000000 --- a/dist/modules/creator/steps/Quorum.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.Quorum=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const formik_material_ui_1=require('formik-material-ui');const react_1=require('react');const formik_1=require('formik');const react_router_1=require('react-router');const react_router_dom_1=require('react-router-dom');const state_1=require('../state');const icons_1=require('@material-ui/icons');const TitleBlock_1=require('../../common/TitleBlock');const utils_1=require('../utils');const ErrorText=(0,core_1.styled)(core_1.Typography)({display:'flex',minWidth:'100%',fontSize:14,color:'red'});const SpacingContainer=(0,core_1.styled)(core_1.Grid)({marginTop:25});const AdditionContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({marginTop:14,height:54,background:'#2F3438',borderRadius:8,maxWidth:150,['@media (max-width:1167px)']:{marginRight:0,maxWidth:'100%'}}));const GridItemCenter=(0,core_1.styled)(core_1.Grid)({textAlign:'center',justifyContent:'space-around',['@media (max-width:1167px)']:{justifyContent:'flex-end'}});const GridItemCenterBottom=(0,core_1.styled)(core_1.Grid)({textAlign:'center',justifyContent:'flex-end'});const ItemContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({height:'100%',padding:'12px 25px',['@media (max-width:1167px)']:{paddingLeft:25,paddingRight:25}}));const ValueText=(0,core_1.styled)(core_1.Typography)({fontSize:14,opacity:0.8,['@media (max-width:1167px)']:{marginRight:20}});const GridItemContainer=(0,core_1.styled)(core_1.Grid)(()=>({display:'flex',alignItems:'center'}));const InfoIconInput=(0,core_1.styled)(icons_1.InfoRounded)(({theme})=>({cursor:'default',color:theme.palette.secondary.light,height:16,width:16}));const InfoIconInputQuorum=(0,core_1.styled)(icons_1.InfoRounded)(({theme})=>({cursor:'default',color:theme.palette.secondary.light,height:16,width:16,marginTop:2}));const ParentContainer=(0,core_1.styled)(core_1.Grid)({marginTop:14,maxWidth:'70%',['@media (max-width:1167px)']:{maxWidth:'100%'}});const CustomInputContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({border:'none',height:54,marginTop:14,background:'#2F3438',borderRadius:8,alignItems:'center',justifyContent:'end',padding:'12px 25px',minWidth:150,maxWidth:150,['@media (max-width:1167px)']:{maxWidth:'100%',minWidth:'100%',paddingLeft:25,paddingRight:25}}));const InputContainer=(0,core_1.styled)(core_1.Grid)({paddingRight:15,['@media (max-width:1167px)']:{paddingRight:0}});const validateForm=values=>{const errors={};Object.keys(values).forEach(key=>{if(values[key]===''){errors[key]='Required';}if(Number(values[key])<0){errors[key]='Cannot be negative';}});if(values.minQuorumAmount<=0){errors.minQuorumAmount='Min Quorum amount must be greater than 0';}if(values.maxQuorumAmount>=100){errors.maxQuorumAmount='Max Quorum amount must be lower than 100';}if(values.minQuorumAmount>values.maxQuorumAmount){errors.maxQuorumAmount='Max Quorum amount must be greater than Min. Quorum amount';}if(values.quorumThreshold>=values.maxQuorumAmount||values.quorumThreshold<=values.minQuorumAmount){errors.quorumThreshold='Quorum Threshold must be between Min and Max Quorum amounts';}if(values.quorumChange>values.quorumMaxChange){errors.quorumChange='Cannot be greater than Max Quorum Change';}return errors;};const QuorumForm=({submitForm,values,errors,touched,setFieldValue,setFieldTouched})=>{var _a,_b;const {dispatch,state:{data:{orgSettings}}}=(0,react_1.useContext)(state_1.CreatorContext);const match=(0,react_router_dom_1.useRouteMatch)();const history=(0,react_router_1.useHistory)();(0,react_1.useEffect)(()=>{if(values){dispatch({type:state_1.ActionTypes.UPDATE_NAVIGATION_BAR,next:{text:'Continue',handler:()=>{submitForm(values);}},back:{text:'Back',handler:()=>history.push(`voting`)}});}},[dispatch,errors,history,match.path,match.url,submitForm,values]);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(SpacingContainer,{direction:'row',container:true,alignItems:'center',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:'Quorum Threshold'})}),(0,jsx_runtime_1.jsxs)(ParentContainer,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(InputContainer,{item:true,xs:12,sm:4,children:(0,jsx_runtime_1.jsx)(GridItemContainer,{children:(0,jsx_runtime_1.jsxs)(CustomInputContainer,{item:true,xs:12,container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(GridItemCenter,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'quorumThreshold',type:'number',onKeyDown:e=>(0,utils_1.handleChange)(e),placeholder:'00',inputProps:{min:0,max:100,step:1},component:formik_material_ui_1.TextField,InputProps:{endAdornment:(0,jsx_runtime_1.jsx)(ValueText,{color:'textSecondary',children:'%'})},onClick:()=>setFieldTouched('quorumThreshold')})}),(0,jsx_runtime_1.jsx)(GridItemCenterBottom,{item:true,xs:7,container:true,direction:'row',justifyContent:'flex-end',children:(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:`Initial % of ${((_a=orgSettings.governanceToken.tokenMetadata)===null||_a===void 0?void 0:_a.symbol)||''}'s supply required as votes to pass/reject a proposal. Total supply: ${(_b=orgSettings.governanceToken.tokenMetadata)===null||_b===void 0?void 0:_b.supply}`,children:(0,jsx_runtime_1.jsx)(InfoIconInput,{})})})]})})}),(0,jsx_runtime_1.jsx)(InputContainer,{item:true,xs:12,sm:4,children:(0,jsx_runtime_1.jsx)(GridItemContainer,{children:(0,jsx_runtime_1.jsxs)(CustomInputContainer,{item:true,xs:12,container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(GridItemCenter,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'minQuorumAmount',type:'number',onKeyDown:e=>(0,utils_1.handleChange)(e),placeholder:'00',inputProps:{min:0,max:100,step:1},component:formik_material_ui_1.TextField,InputProps:{endAdornment:(0,jsx_runtime_1.jsx)(ValueText,{color:'textSecondary',children:'%'})},onClick:()=>setFieldTouched('minQuorumAmount')})}),(0,jsx_runtime_1.jsxs)(GridItemCenter,{item:true,xs:7,container:true,direction:'row',justifyContent:'space-around',children:[(0,jsx_runtime_1.jsx)(ValueText,{color:'textSecondary',children:' Min'}),(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Minimum value the quorum can change to after participation adjustment',children:(0,jsx_runtime_1.jsx)(InfoIconInputQuorum,{})})]})]})})}),(0,jsx_runtime_1.jsx)(InputContainer,{item:true,xs:12,sm:4,children:(0,jsx_runtime_1.jsx)(GridItemContainer,{children:(0,jsx_runtime_1.jsxs)(CustomInputContainer,{item:true,xs:12,container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(GridItemCenter,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'maxQuorumAmount',type:'number',onKeyDown:e=>(0,utils_1.handleChange)(e),placeholder:'00',inputProps:{min:0,max:100,step:1},component:formik_material_ui_1.TextField,InputProps:{endAdornment:(0,jsx_runtime_1.jsx)(ValueText,{color:'textSecondary',children:'%'})},onClick:()=>setFieldTouched('maxQuorumAmount')})}),(0,jsx_runtime_1.jsxs)(GridItemCenter,{item:true,xs:7,container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(ValueText,{color:'textSecondary',children:'Max'}),(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Maximum value the quorum can change to after participation adjustment',children:(0,jsx_runtime_1.jsx)(InfoIconInputQuorum,{})})]})]})})}),errors.quorumThreshold&&touched.quorumThreshold?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.quorumThreshold}):null,errors.minQuorumAmount&&touched.minQuorumAmount?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.minQuorumAmount}):null,errors.maxQuorumAmount&&touched.maxQuorumAmount?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.maxQuorumAmount}):null]}),(0,jsx_runtime_1.jsx)(SpacingContainer,{direction:'row',container:true,alignItems:'center',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:'Quorum Change'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',style:{marginTop:14},children:[(0,jsx_runtime_1.jsx)(AdditionContainer,{item:true,xs:12,sm:3,children:(0,jsx_runtime_1.jsxs)(ItemContainer,{container:true,direction:'row',alignItems:'center',justifyContent:'center',children:[(0,jsx_runtime_1.jsx)(GridItemCenter,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'quorumChange',type:'number',onKeyDown:e=>(0,utils_1.handleChange)(e),placeholder:'00',inputProps:{min:0,max:100,step:1},component:formik_material_ui_1.TextField,InputProps:{endAdornment:(0,jsx_runtime_1.jsx)(ValueText,{color:'textSecondary',children:'%'})},onClick:()=>setFieldTouched('quorumChange')})}),(0,jsx_runtime_1.jsx)(GridItemCenterBottom,{item:true,xs:7,container:true,direction:'row',children:(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Participation adjustment value',children:(0,jsx_runtime_1.jsx)(InfoIconInput,{})})})]})}),errors.quorumChange&&touched.quorumChange?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.quorumChange}):null]}),(0,jsx_runtime_1.jsx)(SpacingContainer,{direction:'row',container:true,alignItems:'center',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:'Quorum Max Change'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',style:{marginTop:14},children:[(0,jsx_runtime_1.jsx)(AdditionContainer,{item:true,xs:12,sm:3,children:(0,jsx_runtime_1.jsxs)(ItemContainer,{container:true,direction:'row',alignItems:'center',justifyContent:'center',children:[(0,jsx_runtime_1.jsx)(GridItemCenter,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'quorumMaxChange',type:'number',onKeyDown:e=>(0,utils_1.handleChange)(e),placeholder:'00',inputProps:{min:0,max:100,step:1},component:formik_material_ui_1.TextField,InputProps:{endAdornment:(0,jsx_runtime_1.jsx)(ValueText,{color:'textSecondary',children:'%'})},onClick:()=>setFieldTouched('quorumMaxChange')})}),(0,jsx_runtime_1.jsx)(GridItemCenterBottom,{item:true,xs:7,container:true,direction:'row',justifyContent:'space-around',children:(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Maximum participation adjustment value',children:(0,jsx_runtime_1.jsx)(InfoIconInput,{})})})]})}),errors.quorumMaxChange&&touched.quorumMaxChange?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.quorumMaxChange}):null]})]});};const Quorum=()=>{const {dispatch,state,updateCache}=(0,react_1.useContext)(state_1.CreatorContext);const {quorumSettings}=state.data;const history=(0,react_router_1.useHistory)();const saveStepInfo=(values,{setSubmitting})=>{const newState=Object.assign(Object.assign({},state.data),{quorumSettings:values});updateCache(newState);setSubmitting(true);dispatch({type:state_1.ActionTypes.UPDATE_QUORUM_SETTINGS,quorum:values});history.push(`summary`);};return(0,jsx_runtime_1.jsxs)(core_1.Box,{children:[(0,jsx_runtime_1.jsx)(TitleBlock_1.TitleBlock,{title:'Quorum',description:`Each period, a new quorum threshold is calculated based on the previous`+'\''+'s period participation. It is set as a percentage of the governance token'+'\''+'s total supply',tooltipText:'Quorum Settings',tooltip:true}),(0,jsx_runtime_1.jsx)(formik_1.Formik,{enableReinitialize:true,validateOnChange:true,validateOnBlur:false,validate:values=>validateForm(values),onSubmit:saveStepInfo,initialValues:quorumSettings,children:({submitForm,isSubmitting,setFieldValue,values,errors,touched,setFieldTouched})=>{return(0,jsx_runtime_1.jsx)(formik_1.Form,{style:{width:'100%'},children:(0,jsx_runtime_1.jsx)(QuorumForm,{submitForm:submitForm,isSubmitting:isSubmitting,setFieldValue:setFieldValue,errors:errors,touched:touched,values:values,setFieldTouched:setFieldTouched})});}})]});};exports.Quorum=Quorum; \ No newline at end of file diff --git a/dist/modules/creator/steps/Quorum.js.map b/dist/modules/creator/steps/Quorum.js.map deleted file mode 100644 index 2ea12d6..0000000 --- a/dist/modules/creator/steps/Quorum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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A;QACtE,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACzB,CAAC,CAAA;IAED,OAAO,CACL,wBAAC,UAAG,eACF,uBAAC,uBAAU,IACT,KAAK,EAAE,QAAQ,EACf,WAAW,EACT,yEAAyE;oBACzE,QAAQ;oBACR,2EAA2E;oBAC3E,QAAQ;oBACR,gBAAgB,EAElB,WAAW,EAAE,iBAAiB,EAC9B,OAAO,EAAE,IAAI,GACD,EAEd,uBAAC,eAAM,IACL,kBAAkB,EAAE,IAAI,EACxB,gBAAgB,EAAE,IAAI,EACtB,cAAc,EAAE,KAAK,EACrB,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,EACxC,QAAQ,EAAE,YAAY,EACtB,aAAa,EAAE,cAAc,YAE5B,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE;oBACzF,OAAO,CACL,uBAAC,aAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YAC5B,uBAAC,UAAU,IACT,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,GAChC,GACG,CACR,CAAA;gBACH,CAAC,GACM,IACL,CACP,CAAA;AACH,CAAC,CAAA;AAzDY,QAAA,MAAM,UAyDlB"} \ No newline at end of file diff --git a/dist/modules/creator/steps/Review.js b/dist/modules/creator/steps/Review.js deleted file mode 100644 index 18afe80..0000000 --- a/dist/modules/creator/steps/Review.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.Review=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const react_router_dom_1=require('react-router-dom');const rocket_svg_1=__importDefault(require('../../../assets/img/rocket.svg'));const useOriginate_1=require('../../../services/contracts/baseDAO/hooks/useOriginate');const state_1=require('../state');const DeploymentLoader_1=require('../components/DeploymentLoader');const ProtectedRoute_1=require('../components/ProtectedRoute');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const Toolbar_1=require('../../common/Toolbar');const RocketImg=(0,core_1.styled)('img')({marginBottom:46,height:128});const CustomButton=(0,core_1.styled)(core_1.Button)({marginTop:20});const CustomText=(0,core_1.styled)(core_1.Typography)({fontWeight:'bold',marginLeft:12,marginRight:12});const StyledContainer=(0,core_1.styled)(core_1.Box)({minHeight:500,minWidth:650,display:'grid',['@media (max-width:1167px)']:{minWidth:'auto'}});const Review=()=>{const {account,connect}=(0,useTezos_1.useTezos)();const validDAOData=(0,ProtectedRoute_1.useCreatorRouteValidation)();const {state,dispatch}=(0,react_1.useContext)(state_1.CreatorContext);const info=state.data;const {frozenToken,unfrozenToken}=(0,state_1.getTokensInfo)(info);const metadataCarrierParams=(0,react_1.useMemo)(()=>({keyName:'metadataKey',metadata:{frozenToken,unfrozenToken,description:info.orgSettings.description,authors:[info.orgSettings.administrator],template:state.data.template}}),[frozenToken,info.orgSettings.administrator,info.orgSettings.description,state.data.template,unfrozenToken]);const {mutation:{mutate,data,error},states,activeState}=(0,useOriginate_1.useOriginate)(state.data.template);const history=(0,react_router_dom_1.useHistory)();console.log('states: ',states);(0,react_1.useEffect)(()=>{;(()=>__awaiter(void 0,void 0,void 0,function*(){if(!validDAOData&&info&&metadataCarrierParams){mutate({metadataParams:metadataCarrierParams,params:info});}}))();},[]);(0,react_1.useEffect)(()=>{if(data&&data.address){dispatch({type:state_1.ActionTypes.CLEAR_CACHE});}},[data,dispatch]);return(0,jsx_runtime_1.jsx)(StyledContainer,{children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',justifyContent:'center',children:account?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',justifyContent:'center',alignItems:'center',style:{height:'fit-content'},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(RocketImg,{src:rocket_svg_1.default,alt:'rocket'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',justifyContent:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h4',color:'textSecondary',children:'Deploying'}),(0,jsx_runtime_1.jsxs)(CustomText,{color:'secondary',variant:'h4',children:[' ',state.data.orgSettings.name]}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'h4',color:'textSecondary',children:[' ','to the Tezos Network']})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsx)(core_1.Box,{children:data&&data.address?(0,jsx_runtime_1.jsx)(CustomButton,{color:'secondary',variant:'outlined',onClick:()=>history.push('/explorer/dao/'+data.address),children:'Go to my DAO'}):null})})]}),(0,jsx_runtime_1.jsx)(DeploymentLoader_1.DeploymentLoader,{states:states,activeStep:activeState,error:error}),states[0].activeText!==''&&states[2].completedText===''&&error===null?(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',justifyContent:'center',alignContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'secondary',children:' This may take several minutes '})}):null]}):(0,jsx_runtime_1.jsx)(Toolbar_1.ConnectWalletButton,{connect:connect})})});};exports.Review=Review; \ No newline at end of file diff --git a/dist/modules/creator/steps/Review.js.map b/dist/modules/creator/steps/Review.js.map deleted file mode 100644 index 95c4cad..0000000 --- a/dist/modules/creator/steps/Review.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Review.js","sourceRoot":"","sources":["../../../../src/modules/creator/steps/Review.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iCAA6D;AAC7D,4CAAyE;AACzE,uDAA6C;AAE7C,uEAA0C;AAC1C,gFAA4E;AAC5E,iDAAmG;AAEnG,qEAAiE;AACjE,8EAAqF;AACrF,6DAAyD;AACzD,oDAA4D;AAE5D,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,KAAK,CAAC,CAAC;IAC9B,YAAY,EAAE,EAAE;IAChB,MAAM,EAAE,GAAG;CACZ,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC;IAClC,SAAS,EAAE,EAAE;CACd,CAAC,CAAA;AAEF,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACpC,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;CAChB,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC;IAClC,SAAS,EAAE,GAAG;IACd,QAAQ,EAAE,GAAG;IACb,OAAO,EAAE,MAAM;IACf,CAAC,2BAA2B,CAAC,EAAE;QAC7B,QAAQ,EAAE,MAAM;KACjB;CACF,CAAC,CAAA;AAEK,MAAM,MAAM,GAAa,GAAG,EAAE;IACnC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IACvC,MAAM,YAAY,GAAG,IAAA,0CAAyB,GAAE,CAAA;IAChD,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAA,kBAAU,EAA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AE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC,6BAG/C,CAChB,CAAC,CAAC,CAAC,IAAI,GACJ,GACD,IACF,EACP,uBAAC,mCAAgB,IAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,GAAI,EAE1E,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,KAAK,EAAE,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,aAAa,KAAK,EAAE,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,CACjF,uBAAC,WAAI,IAAC,SAAS,QAAC,SAAS,EAAC,KAAK,EAAC,cAAc,EAAC,QAAQ,EAAC,YAAY,EAAC,QAAQ,YAC3E,uBAAC,iBAAU,IAAC,KAAK,EAAC,WAAW,gDAA6C,GACrE,CACR,CAAC,CAAC,CAAC,IAAI,IACP,CACJ,CAAC,CAAC,CAAC,CACF,uBAAC,6BAAmB,IAAC,OAAO,EAAE,OAAO,GAAI,CAC1C,GACI,GACS,CACnB,CAAA;AACH,CAAC,CAAA;AA1GY,QAAA,MAAM,UA0GlB"} \ No newline at end of file diff --git a/dist/modules/creator/steps/Summary.js b/dist/modules/creator/steps/Summary.js deleted file mode 100644 index 42ad173..0000000 --- a/dist/modules/creator/steps/Summary.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.Summary=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const react_router_dom_1=require('react-router-dom');const state_1=require('../state');const TitleBlock_1=require('../../common/TitleBlock');const utils_1=require('../../../services/contracts/utils');const SecondContainer=(0,core_1.styled)(core_1.Grid)({marginTop:42,background:'#2F3438',borderRadius:8,padding:'26px 48px',boxSizing:'border-box'});const ThirdContainer=(0,core_1.styled)(core_1.Grid)({marginTop:42,background:'#2F3438',borderRadius:8,boxSizing:'border-box'});const ThirdContainerFirstRow=(0,core_1.styled)(core_1.Grid)({padding:'19px 48px',borderBottom:'0.3px solid #7D8C8B',alignItems:'center',display:'flex',maxHeight:70,['@media (max-width:1167px)']:{padding:'12px 15px',maxHeight:'inherit'}});const ThirdContainerLastRow=(0,core_1.styled)(core_1.Grid)({padding:'19px 48px',alignItems:'center',display:'flex',maxHeight:70,['@media (max-width:1167px)']:{padding:'12px 15px',maxHeight:'inherit'}});const ThirdContainerRow=(0,core_1.styled)(core_1.Grid)({borderBottom:'0.3px solid #7D8C8B',padding:'24px 48px',maxHeight:70,['@media (max-width:1167px)']:{padding:'12px 15px',maxHeight:'inherit'}});const ThirdContainerSpecialRow=(0,core_1.styled)(core_1.Grid)({borderBottom:'0.3px solid #7D8C8B',borderTop:'0.3px solid #7D8C8B',padding:'24px 48px',maxHeight:70,['@media (max-width:1167px)']:{padding:'12px 15px',maxHeight:'inherit'}});const FirstContainer=(0,core_1.styled)(core_1.Grid)({background:'#2F3438',borderRadius:8,padding:'22px 48px',boxSizing:'border-box',marginTop:4});const TitleSpacing=(0,core_1.styled)(core_1.Typography)({marginTop:8});const DescriptionSpacing=(0,core_1.styled)(core_1.Typography)({marginTop:16});const ContainerEdit=(0,core_1.styled)(core_1.Typography)({cursor:'pointer'});const AdminAddress=(0,core_1.styled)(core_1.Typography)({wordBreak:'break-all'});const Summary=()=>{const {dispatch,state}=(0,react_1.useContext)(state_1.CreatorContext);const history=(0,react_router_dom_1.useHistory)();const match=(0,react_router_dom_1.useRouteMatch)();const theme=(0,core_1.useTheme)();const isMobile=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const goToVoting=()=>{history.push(`voting`);};const goToQuorum=()=>{history.push(`quorum`);};const goToSettings=()=>{history.push(`dao`);};(0,react_1.useEffect)(()=>{dispatch({type:state_1.ActionTypes.UPDATE_NAVIGATION_BAR,next:{handler:()=>{history.push(`review`);},text:'Launch'},back:{handler:()=>history.push(`quorum`),text:'Back'}});},[dispatch,history,match.path,match.url]);return(0,jsx_runtime_1.jsx)(core_1.Box,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',justifyContent:'space-between',style:{height:'fit-content'},children:[(0,jsx_runtime_1.jsx)(TitleBlock_1.TitleBlock,{title:'Review information',description:'Review your settings to ensure you\u2019ve made the correct choices.'}),(0,jsx_runtime_1.jsxs)(FirstContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',justifyContent:'space-between',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(TitleSpacing,{color:'secondary',variant:'subtitle1',children:state.data.orgSettings.symbol}),(0,jsx_runtime_1.jsx)(ContainerEdit,{color:'secondary',onClick:goToSettings,children:'Edit'})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsx)(TitleSpacing,{color:'textSecondary',variant:'h3',children:state.data.orgSettings.name})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsx)(DescriptionSpacing,{color:'textSecondary',variant:'body1',children:state.data.orgSettings.description})})]}),(0,jsx_runtime_1.jsxs)(ThirdContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(ThirdContainerFirstRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:isMobile?'column':'row',alignItems:isMobile?'baseline':'center',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(TitleSpacing,{color:'textSecondary',variant:'subtitle1',children:'DAO SETTINGS'}),(0,jsx_runtime_1.jsx)(ContainerEdit,{color:'secondary',onClick:goToSettings,children:'Edit'})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Administrator'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(AdminAddress,{variant:'subtitle2',color:'textSecondary',align:'right',children:isMobile?(0,utils_1.toShortAddress)(state.data.orgSettings.administrator):state.data.orgSettings.administrator})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Guardian'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(AdminAddress,{variant:'subtitle2',color:'textSecondary',align:'right',children:isMobile?(0,utils_1.toShortAddress)(state.data.orgSettings.guardian):state.data.orgSettings.guardian})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Governance Token Address'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(AdminAddress,{variant:'subtitle2',color:'textSecondary',align:'right',children:isMobile?(0,utils_1.toShortAddress)(state.data.orgSettings.governanceToken.address):state.data.orgSettings.governanceToken.address})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerLastRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Governance Token ID'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:state.data.orgSettings.governanceToken.tokenId})})]})})]}),(0,jsx_runtime_1.jsxs)(ThirdContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(ThirdContainerFirstRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:isMobile?'column':'row',alignItems:isMobile?'baseline':'center',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(TitleSpacing,{color:'textSecondary',variant:'subtitle1',children:'PROPOSAL & VOTING SETTINGS'}),(0,jsx_runtime_1.jsx)(ContainerEdit,{color:'secondary',onClick:goToVoting,children:'Edit'})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Voting Period Duration'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:[state.data.votingSettings.votingBlocks,' blocks']})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Proposal Execution Delay'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:[state.data.votingSettings.proposalFlushBlocks,' blocks']})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Proposal blocks to expire'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:[state.data.votingSettings.proposalExpiryBlocks,' blocks']})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Stake required to propose'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:[state.data.votingSettings.proposeStakeRequired,' locked tokens']})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerLastRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Stake returned if rejected'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:[state.data.votingSettings.returnedTokenPercentage,'% of locked tokens']})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerSpecialRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Transfer maximum XTZ amount'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:[state.data.votingSettings.maxXtzAmount,' XTZ']})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerLastRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Transfer minimum XTZ amount'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:[state.data.votingSettings.minXtzAmount,' XTZ']})})]})})]}),(0,jsx_runtime_1.jsxs)(ThirdContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(ThirdContainerFirstRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:isMobile?'column':'row',alignItems:isMobile?'baseline':'center',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(TitleSpacing,{color:'textSecondary',variant:'subtitle1',children:'QUORUM SETTINGS'}),(0,jsx_runtime_1.jsx)(ContainerEdit,{color:'secondary',onClick:goToQuorum,children:'Edit'})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,sm:6,xs:7,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Quorum threshold'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,sm:6,xs:5,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:[state.data.quorumSettings.quorumThreshold,'%']})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,sm:6,xs:7,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Quorum Change'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,sm:6,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:[state.data.quorumSettings.quorumChange,'%']})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,sm:6,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Quorum Max Change'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,sm:6,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:[state.data.quorumSettings.quorumMaxChange,'%']})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,sm:6,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Quorum Min. Amount'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,sm:6,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:[state.data.quorumSettings.minQuorumAmount,'%']})})]})}),(0,jsx_runtime_1.jsx)(ThirdContainerLastRow,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:7,sm:6,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',children:'Quorum Max. Amount'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:5,sm:6,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',color:'textSecondary',align:'right',children:[state.data.quorumSettings.maxQuorumAmount,'%']})})]})})]})]})});};exports.Summary=Summary; \ No newline at end of file diff --git a/dist/modules/creator/steps/Summary.js.map b/dist/modules/creator/steps/Summary.js.map deleted file mode 100644 index fe0e80a..0000000 --- a/dist/modules/creator/steps/Summary.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Summary.js","sourceRoot":"","sources":["../../../../src/modules/creator/steps/Summary.tsx"],"names":[],"mappings":";;;;AAAA,4CAA0F;AAC1F,iCAAoD;AACpD,uDAA4D;AAC5D,iDAAmE;AACnE,0DAAsD;AACtD,oDAAyD;AAEzD,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IACnC,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,SAAS;IACrB,YAAY,EAAE,CAAC;IACf,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,YAAY;CACxB,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAClC,SAAS,EAAE,EAAE;IACb,UAAU,EAA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WAAI,IAAC,IAAI,QAAC,SAAS,QAAC,SAAS,EAAC,KAAK,EAAC,UAAU,EAAC,QAAQ,aACtD,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YACrB,uBAAC,iBAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,eAAe,mCAExC,GACR,EACP,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YACrB,wBAAC,iBAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,eAAe,EAAC,KAAK,EAAC,OAAO,aAChE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,eAAe,SAC/B,GACR,IACF,GACe,IACT,IACZ,GACH,CACP,CAAA;AACH,CAAC,CAAA;AA/WY,QAAA,OAAO,WA+WnB"} \ No newline at end of file diff --git a/dist/modules/creator/steps/Template.js b/dist/modules/creator/steps/Template.js deleted file mode 100644 index 92cf78f..0000000 --- a/dist/modules/creator/steps/Template.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.Template=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const react_router_1=require('react-router');const lite_dao_svg_1=require('../../../assets/img/lite-dao.svg');const full_dao_svg_1=require('../../../assets/img/full-dao.svg');const state_1=require('../state');const TitleBlock_1=require('../../common/TitleBlock');const react_router_dom_1=require('react-router-dom');const LambdaCustomBox=(0,core_1.styled)(core_1.Grid)(({theme})=>({'height':273,'marginTop':30,'background':'#2F3438','borderRadius':8,'maxWidth':320,'width':'-webkit-fill-available','padding':'40px 44px','textAlign':'start','cursor':'pointer','paddingBottom':0,'&:hover':{border:'3px solid rgba(129, 254, 183, 0.4)',paddingTop:37,paddingBottom:0,paddingRight:41,paddingLeft:41},['@media (max-width:1167px)']:{marginBottom:20,marginTop:0}}));const styles=(0,core_1.makeStyles)({selected:{border:'3px solid rgba(129, 254, 183, 0.4)',padding:'37px 41px'}});const ErrorText=(0,core_1.styled)(core_1.Typography)({display:'block',fontSize:14,color:'red',marginTop:8});const BoxTitle=(0,core_1.styled)(core_1.Typography)({fontSize:18,fontWeight:500,fontFamily:'Roboto Mono',marginBottom:10});const BoxDescription=(0,core_1.styled)(core_1.Typography)({fontWeight:300,fontSize:16});const Template=()=>{const {state,dispatch,updateCache}=(0,react_1.useContext)(state_1.CreatorContext);const {template}=state.data;const history=(0,react_router_1.useHistory)();const match=(0,react_router_dom_1.useRouteMatch)();const theme=(0,core_1.useTheme)();const style=styles();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));const [selectedTemplate,setTemplate]=(0,react_1.useState)(template);const [error,setError]=(0,react_1.useState)(false);(0,react_1.useEffect)(()=>{dispatch({type:state_1.ActionTypes.UPDATE_NAVIGATION_BAR,next:{handler:()=>{if(!selectedTemplate){return setError(true);}dispatch({type:state_1.ActionTypes.UPDATE_TEMPLATE,template:selectedTemplate});if(selectedTemplate==='lambda'){return history.push(`dao`);}return history.push('/lite');},text:'Continue'}});},[dispatch,history,match.path,match.url,selectedTemplate]);const update=templateValue=>{setError(false);setTemplate(templateValue);};return(0,jsx_runtime_1.jsxs)(core_1.Box,{children:[(0,jsx_runtime_1.jsx)(TitleBlock_1.TitleBlock,{title:'DAO Creator',description:'Create an organization by picking a template below.'}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:isMobileSmall?'center':'space-between',direction:'row',children:[(0,jsx_runtime_1.jsxs)(LambdaCustomBox,{item:true,container:true,direction:'column',justifyContent:'flex-start',alignItems:'center',xs:isMobileSmall?12:6,onClick:()=>update('lambda'),className:selectedTemplate==='lambda'?style.selected:'',children:[(0,jsx_runtime_1.jsx)(full_dao_svg_1.ReactComponent,{style:{marginBottom:14}}),(0,jsx_runtime_1.jsx)(BoxTitle,{color:'textSecondary',children:'Full DAO'}),(0,jsx_runtime_1.jsx)(BoxDescription,{color:'textSecondary',children:'Contract interaction. Transfer assets based on vote outcomes.'})]}),' ',(0,jsx_runtime_1.jsxs)(LambdaCustomBox,{item:true,container:true,direction:'column',justifyContent:'flex-start',alignItems:'center',xs:isMobileSmall?12:6,onClick:()=>update('lite'),className:selectedTemplate==='lite'?style.selected:'',children:[(0,jsx_runtime_1.jsx)(lite_dao_svg_1.ReactComponent,{style:{marginBottom:14}}),(0,jsx_runtime_1.jsx)(BoxTitle,{color:'textSecondary',children:'Lite DAO'}),(0,jsx_runtime_1.jsxs)(BoxDescription,{color:'textSecondary',children:['Off-chain weighted voting. Multiple voting strategies. No treasury.',' ']})]}),' ']}),error?(0,jsx_runtime_1.jsx)(ErrorText,{children:'Must select a template in order to continue'}):null]});};exports.Template=Template; \ No newline at end of file diff --git a/dist/modules/creator/steps/Template.js.map b/dist/modules/creator/steps/Template.js.map deleted file mode 100644 index 9136fb6..0000000 --- a/dist/modules/creator/steps/Template.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Template.js","sourceRoot":"","sources":["../../../../src/modules/creator/steps/Template.tsx"],"names":[],"mappings":";;;;AAAA,iCAA8D;AAC9D,4CAAsG;AACtG,+CAAyC;AAGzC,0DAAoE;AACpE,0DAAoE;AAEpE,iDAAgF;AAChF,0DAAsD;AACtD,uDAAgD;AAEhD,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACnD,QAAQ,EAAE,GAAG;IACb,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,SAAS;IACvB,cAAc,EAAE,CAAC;IACjB,UAAU,EAAE,GAAG;IACf,OAAO,EAAE,wBAAwB;IACjC,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,OAAO;IACpB,QAAQ,EAAE,SAAS;IACnB,eAAe,EAAE,CAAC;IAClB,SAAS,EAAE;QACT,MAAM,EAAE,oCAAoC;QAC5C,UAAU,E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C,SAAS,cAAE,6CAA6C,GAAa,CAAC,CAAC,CAAC,IAAI,IAClF,CACP,CAAA;AACH,CAAC,CAAA;AApFY,QAAA,QAAQ,YAoFpB"} \ No newline at end of file diff --git a/dist/modules/creator/steps/index.js b/dist/modules/creator/steps/index.js deleted file mode 100644 index 4d42fd4..0000000 --- a/dist/modules/creator/steps/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.Review=exports.Governance=exports.DaoSettings=exports.Template=exports.Summary=exports.useStepNumber=exports.StepRouter=exports.STEPS=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const react_router_1=require('react-router');const react_router_dom_1=require('react-router-dom');const steps_1=require('../steps');const ProtectedRoute_1=require('../components/ProtectedRoute');const Quorum_1=require('./Quorum');const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const Template_1=require('./Template');exports.STEPS=[{title:'Select template',index:0,path:'template'},{title:'Configure DAO settings',index:1,path:'dao'},{title:'Configure Proposal & Voting',index:2,path:'voting'},{title:'Adjust Quorum',index:3,path:'quorum'},{title:'Review information',index:4,path:'summary'}];const urlToStepMap={template:0,dao:1,voting:2,quorum:3,summary:4,review:5};const AnalyticsWrappedStep=({name,index,children})=>{(0,react_1.useEffect)(()=>{mixpanel_browser_1.default.track('Visited Creator Step',{stepName:name,stepIndex:index});},[index,name]);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:children});};const StepRouter=()=>{const match=(0,react_router_dom_1.useRouteMatch)();return(0,jsx_runtime_1.jsx)(ProtectedRoute_1.ProtectedRoute,{children:(0,jsx_runtime_1.jsxs)(react_router_1.Switch,{children:[(0,jsx_runtime_1.jsx)(react_router_1.Route,{path:`${match.url}/template`,children:(0,jsx_runtime_1.jsx)(AnalyticsWrappedStep,{name:'Select Template',index:0,children:(0,jsx_runtime_1.jsx)(Template_1.Template,{})})}),(0,jsx_runtime_1.jsx)(react_router_1.Route,{path:`${match.url}/dao`,children:(0,jsx_runtime_1.jsx)(AnalyticsWrappedStep,{name:'DAO Settings',index:1,children:(0,jsx_runtime_1.jsx)(steps_1.DaoSettings,{})})}),(0,jsx_runtime_1.jsx)(react_router_1.Route,{path:`${match.url}/voting`,children:(0,jsx_runtime_1.jsx)(AnalyticsWrappedStep,{name:'Governance',index:2,children:(0,jsx_runtime_1.jsx)(steps_1.Governance,{})})}),(0,jsx_runtime_1.jsx)(react_router_1.Route,{path:`${match.url}/quorum`,children:(0,jsx_runtime_1.jsx)(AnalyticsWrappedStep,{name:'Quorum',index:3,children:(0,jsx_runtime_1.jsx)(Quorum_1.Quorum,{})})}),(0,jsx_runtime_1.jsx)(react_router_1.Route,{path:`${match.url}/summary`,children:(0,jsx_runtime_1.jsx)(AnalyticsWrappedStep,{name:'Summary',index:4,children:(0,jsx_runtime_1.jsx)(steps_1.Summary,{})})}),(0,jsx_runtime_1.jsx)(react_router_1.Route,{path:`${match.url}/review`,children:(0,jsx_runtime_1.jsx)(AnalyticsWrappedStep,{name:'Deployment',index:5,children:(0,jsx_runtime_1.jsx)(steps_1.Review,{})})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Redirect,{to:`${match.url}/template`})]})});};exports.StepRouter=StepRouter;const useStepNumber=()=>{const {pathname}=(0,react_router_1.useLocation)();return(0,react_1.useMemo)(()=>{const extracted=pathname.endsWith('/')?pathname.split('/').slice(-2)[0]:pathname.split('/').slice(-1)[0];return urlToStepMap[extracted];},[pathname]);};exports.useStepNumber=useStepNumber;var Summary_1=require('./Summary');Object.defineProperty(exports,'Summary',{enumerable:true,get:function(){return Summary_1.Summary;}});var Template_2=require('./Template');Object.defineProperty(exports,'Template',{enumerable:true,get:function(){return Template_2.Template;}});var DaoSettings_1=require('./DaoSettings');Object.defineProperty(exports,'DaoSettings',{enumerable:true,get:function(){return DaoSettings_1.DaoSettings;}});var Governance_1=require('./Governance');Object.defineProperty(exports,'Governance',{enumerable:true,get:function(){return Governance_1.Governance;}});var Review_1=require('./Review');Object.defineProperty(exports,'Review',{enumerable:true,get:function(){return Review_1.Review;}}); \ No newline at end of file diff --git a/dist/modules/creator/steps/index.js.map b/dist/modules/creator/steps/index.js.map deleted file mode 100644 index d4d93e1..0000000 --- a/dist/modules/creator/steps/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/creator/steps/index.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAiD;AACjD,+CAAyD;AACzD,uDAA0D;AAG1D,iDAAgF;AAEhF,8EAA0E;AAC1E,qCAAiC;AACjC,wEAAuC;AACvC,yCAAqC;AAExB,QAAA,KAAK,GAAe;IAC/B,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE;IACxD,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE;IAC1D,EAAE,KAAK,EAAE,6BAA6B,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClE,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;IACpD,EAAE,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE;CAC3D,CAAA;AAED,MAAM,YAAY,GAA2B;IAC3C,QAAQ,EAAE,CAAC;IACX,GAAG,EAAE,CAAC;IACN,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;CACV,CAAA;AAED,MAAM,oBAAoB,GAA8C,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpG,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,0BAAQ,CA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ACR,uBAAC,oBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,SAAS,YAChC,uBAAC,oBAAoB,IAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAE,CAAC,YAC9C,uBAAC,cAAM,KAAG,GACW,GACjB,EACR,uBAAC,2BAAQ,IAAC,EAAE,EAAE,GAAG,KAAK,CAAC,GAAG,WAAW,GAAI,IAClC,GACM,CAClB,CAAA;AACH,CAAC,CAAA;AAxCY,QAAA,UAAU,cAwCtB;AAIM,MAAM,aAAa,GAAG,GAAW,EAAE;IACxC,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,0BAAW,GAAE,CAAA;IAElC,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE;QAClB,MAAM,SAAS,GAAsB,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;YACzD,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAClC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAEpC,OAAO,YAAY,CAAC,SAAS,CAAC,CAAA;IAChC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA;AAChB,CAAC,CAAA;AAVY,QAAA,aAAa,iBAUzB;AAED,yDAAuD;AAA9C,kGAAA,OAAO,OAAA;AAChB,2DAAyD;AAAhD,oGAAA,QAAQ,OAAA;AACjB,iEAA+D;AAAtD,0GAAA,WAAW,OAAA;AACpB,+DAA6D;AAApD,wGAAA,UAAU,OAAA;AACnB,uDAAqD;AAA5C,gGAAA,MAAM,OAAA"} \ No newline at end of file diff --git a/dist/modules/creator/utils.js b/dist/modules/creator/utils.js deleted file mode 100644 index b94c54a..0000000 --- a/dist/modules/creator/utils.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.handleNegativeInput=exports.handleChange=void 0;const handleChange=event=>{return event.key==='-'||event.key==='.'||event.key===','?event.preventDefault():null;};exports.handleChange=handleChange;const handleNegativeInput=event=>{return event.key==='-'||event.key===','?event.preventDefault():null;};exports.handleNegativeInput=handleNegativeInput; \ No newline at end of file diff --git a/dist/modules/creator/utils.js.map b/dist/modules/creator/utils.js.map deleted file mode 100644 index a65bc4f..0000000 --- a/dist/modules/creator/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/modules/creator/utils.tsx"],"names":[],"mappings":";;;AAEO,MAAM,YAAY,GAAG,CAAC,KAAkB,EAAE,EAAE;IACjD,OAAO,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACpG,CAAC,CAAA;AAFY,QAAA,YAAY,gBAExB;AAEM,MAAM,mBAAmB,GAAG,CAAC,KAAkB,EAAE,EAAE;IACxD,OAAO,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AAC/E,CAAC,CAAA;AAFY,QAAA,mBAAmB,uBAE/B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/AllProposalsList.js b/dist/modules/explorer/components/AllProposalsList.js deleted file mode 100644 index c632409..0000000 --- a/dist/modules/explorer/components/AllProposalsList.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.AllProposalsList=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const User_1=require('../pages/User');const react_1=require('react');const react_router_dom_1=require('react-router-dom');const ContentContainer_1=require('./ContentContainer');const ProposalsFilter_1=require('./ProposalsFilter');const TableContainer=(0,core_1.styled)(ContentContainer_1.ContentContainer)({width:'100%'});const TableHeader=(0,core_1.styled)(core_1.Grid)(({theme})=>({padding:'16px 46px',minHeight:34,[theme.breakpoints.down('sm')]:{gap:10}}));const ProposalsFooter=(0,core_1.styled)(core_1.Grid)({padding:'16px 46px',borderTop:'.6px solid rgba(125,140,139, 0.2)',minHeight:34});const AllProposalsList=({currentLevel,proposals,title,showFooter,rightItem})=>{const [filteredProposal,setFilteredProposals]=(0,react_1.useState)(proposals);const [filter,setFilter]=(0,react_1.useState)('all');const filterProposals=(0,react_1.useCallback)(status=>{if(status==='all'){return setFilteredProposals(proposals);}else if(status!=='all'&&status!==undefined){const filtered=proposals.filter(proposal=>{var _a;return((_a=proposal['cachedStatus'])===null||_a===void 0?void 0:_a.status)===status;});setFilteredProposals(filtered);}else{return setFilteredProposals(proposals);}},[proposals]);(0,react_1.useEffect)(()=>{filterProposals(filter);},[filter,filterProposals]);(0,react_1.useEffect)(()=>{setFilteredProposals(proposals);},[]);const filterProposalByStatus=status=>{setFilter(status);};return(0,jsx_runtime_1.jsx)(TableContainer,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',wrap:'nowrap',children:[(0,jsx_runtime_1.jsxs)(TableHeader,{item:true,container:true,justifyContent:'space-between',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',style:{fontWeight:'500'},color:'textPrimary',children:title})}),proposals.length?(0,jsx_runtime_1.jsx)(ProposalsFilter_1.ProposalFilter,{filterProposalByStatus:filterProposalByStatus}):null]}),filteredProposal.length?(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,wrap:'nowrap',component:core_1.Collapse,in:true,timeout:'auto',unmountOnExit:true,direction:'column',children:filteredProposal.map((p,i)=>(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(react_router_dom_1.Link,{to:`proposal/${p.id}`,children:(0,jsx_runtime_1.jsx)(User_1.ProposalItem,{proposal:p,status:p.getStatus(currentLevel).status,children:rightItem?rightItem(p):null})})},`proposal-${i}`))}):(0,jsx_runtime_1.jsx)(ProposalsFooter,{item:true,container:true,direction:'column',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',align:'center',children:'No items'})})}),showFooter&&(0,jsx_runtime_1.jsx)(ProposalsFooter,{item:true,container:true,direction:'column',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(react_router_dom_1.Link,{to:'proposals',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'secondary',variant:'body2',align:'center',children:'View All Proposals'})})})})]})});};exports.AllProposalsList=AllProposalsList; \ No newline at end of file diff --git a/dist/modules/explorer/components/AllProposalsList.js.map b/dist/modules/explorer/components/AllProposalsList.js.map deleted file mode 100644 index ce987bb..0000000 --- a/dist/modules/explorer/components/AllProposalsList.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AllProposalsList.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/AllProposalsList.tsx"],"names":[],"mappings":";;;;AAAA,4CAA6E;AAC7E,sDAA0D;AAC1D,iCAA+D;AAC/D,uDAAuC;AAEvC,yDAAqD;AACrD,uDAAkD;AAElD,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,mCAAgB,CAAC,CAAC;IAC9C,KAAK,EAAE,MAAM;CACd,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,CAAC;IACjE,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,EAAE;IACb,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,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AS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GACnB,GACV,IALO,YAAY,CAAC,EAAE,CAMxB,CACR,CAAC,GACG,CACR,CAAC,CAAC,CAAC,CACF,uBAAC,eAAe,IAAC,IAAI,QAAC,SAAS,QAAC,SAAS,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,YACxE,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,iBAAU,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,QAAQ,yBAEjC,GACR,GACS,CACnB,EACA,UAAU,IAAI,CACb,uBAAC,eAAe,IAAC,IAAI,QAAC,SAAS,QAAC,SAAS,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,YACxE,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,uBAAI,IAAC,EAAE,EAAC,WAAW,YAClB,uBAAC,iBAAU,IAAC,KAAK,EAAC,WAAW,EAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ,mCAE/C,GACR,GACF,GACS,CACnB,IACI,GACQ,CAClB,CAAA;AACH,CAAC,CAAA;AAtFY,QAAA,gBAAgB,oBAsF5B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/AppTabBar.js b/dist/modules/explorer/components/AppTabBar.js deleted file mode 100644 index f211625..0000000 --- a/dist/modules/explorer/components/AppTabBar.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.AppTabBar=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const CustomTab=(0,core_1.styled)(core_1.Tab)(({theme})=>({'flex':1,'opacity':1,'paddingBottom':12,'&:hover':{color:theme.palette.secondary.main}}));const StyledAppBar=(0,core_1.styled)(core_1.AppBar)(({theme})=>({'paddingTop':'20px','boxShadow':'unset','borderBottom':'1.5px solid #2b3030','background':theme.palette.primary.dark,'& .Mui-selected':{color:theme.palette.secondary.main}}));const AppTabBar=({value,setValue,labels,class1,centered})=>{const a11yProps=index=>{return{'id':`simple-tab-${index}`,'aria-controls':`simple-tabpanel-${index}`};};const handleChange=(event,newValue)=>{setValue(newValue);};const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));return(0,jsx_runtime_1.jsx)(StyledAppBar,{position:'static',style:centered&&!isMobileSmall?{display:'grid',justifyContent:'center'}:undefined,children:(0,jsx_runtime_1.jsx)(core_1.Tabs,{value:value,onChange:handleChange,'aria-label':'simple tabs example',style:centered&&!isMobileSmall?{display:'flex',justifyContent:'center',marginLeft:12}:undefined,children:labels.map((label,i)=>(0,react_1.createElement)(CustomTab,Object.assign({label:label},a11yProps(i),{key:i,classes:!isMobileSmall?class1:undefined})))})});};exports.AppTabBar=AppTabBar; \ No newline at end of file diff --git a/dist/modules/explorer/components/AppTabBar.js.map b/dist/modules/explorer/components/AppTabBar.js.map deleted file mode 100644 index 8251a47..0000000 --- a/dist/modules/explorer/components/AppTabBar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AppTabBar.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/AppTabBar.tsx"],"names":[],"mappings":";;;;;AACA,4CAA6F;AAE7F,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,eAAe,EAAE,EAAE;IAEnB,SAAS,EAAE;QACT,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;KACpC;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,YAAY,EAAE,MAAM;IACpB,WAAW,EAAE,OAAO;IACpB,cAAc,EAAE,qBAAqB;IACrC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ACxB,2BAAC,SAAS,kBAAC,KAAK,EAAE,KAAK,IAAM,SAAS,CAAC,CAAC,CAAC,IAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,IAAI,CACpG,CAAC,GACG,GACM,CAChB,CAAA;AACH,CAAC,CAAA;AAtCY,QAAA,SAAS,aAsCrB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/BatchBar.js b/dist/modules/explorer/components/BatchBar.js deleted file mode 100644 index 2cfee8f..0000000 --- a/dist/modules/explorer/components/BatchBar.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.BatchBar=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const ProposalFormInput_1=require('./ProposalFormInput');const BatchBarContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({height:47,alignItems:'start',cursor:'pointer',overflowX:'auto',[theme.breakpoints.down('sm')]:{padding:'24px 24px'}}));const SwitchContainer=(0,core_1.styled)(core_1.Grid)({'textAlign':'end','boxShadow':'none','& .Mui-checked.Mui-checked + .MuiSwitch-track':{background:'#81FEB7'},'& .MuiSwitch-colorSecondary.Mui-checked':{color:'#FFFFFF',marginLeft:'4.1px'},'& .MuiSwitch-thumb':{boxShadow:'none'}});const TransferActive=(0,core_1.styled)(core_1.Grid)({height:27,minWidth:27,display:'flex',alignItems:'center',justifyContent:'center',borderRadius:'50%'});const AddButton=(0,core_1.styled)(core_1.Paper)({'marginLeft':12,'minHeight':31,'minWidth':31,'textAlign':'center','padding':0,'background':'#383e43','color':'#fff','alignItems':'center','display':'flex','justifyContent':'center','cursor':'pointer','&:hover':{background:'#3c4349'}});const BatchBar=({isBatch,handleIsBatchChange,onClickAdd,items,activeItem,setActiveItem})=>{return(0,jsx_runtime_1.jsxs)(ProposalFormInput_1.ProposalFormInput,{children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'textPrimary',children:'Batch Transfer?'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,children:(0,jsx_runtime_1.jsx)(SwitchContainer,{item:true,xs:12,justifyContent:'flex-end',children:(0,jsx_runtime_1.jsx)(core_1.Switch,{type:'checkbox',onChange:handleIsBatchChange,checked:isBatch})})})]}),isBatch?(0,jsx_runtime_1.jsxs)(BatchBarContainer,{container:true,direction:'row',wrap:'nowrap',style:{gap:8},children:[items.map((_,index)=>{return(0,jsx_runtime_1.jsx)(TransferActive,{item:true,onClick:()=>setActiveItem(index),style:Number(index+1)===activeItem?{background:'#81FEB7'}:{background:'#3c4349'},children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle2',style:Number(index+1)===activeItem?{color:'#1C1F23'}:{color:'ffff'},children:['#',index+1]})},index);}),(0,jsx_runtime_1.jsx)(AddButton,{onClick:onClickAdd,children:'+'})]}):null]});};exports.BatchBar=BatchBar; \ No newline at end of file diff --git a/dist/modules/explorer/components/BatchBar.js.map b/dist/modules/explorer/components/BatchBar.js.map deleted file mode 100644 index fa84af5..0000000 --- a/dist/modules/explorer/components/BatchBar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BatchBar.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/BatchBar.tsx"],"names":[],"mappings":";;;;AACA,4CAA2E;AAC3E,2DAAuD;AAEvD,MAAM,iBAAiB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACrD,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,OAAO;IACnB,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,MAAM;IACjB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,I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C,CAAC,CAAC,IAAI,IACU,CACrB,CAAA;AACH,CAAC,CAAA;AAxCY,QAAA,QAAQ,YAwCpB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/BottomSheet.js b/dist/modules/explorer/components/BottomSheet.js deleted file mode 100644 index a98d135..0000000 --- a/dist/modules/explorer/components/BottomSheet.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i{var {children}=_a,props=__rest(_a,['children']);return(0,jsx_runtime_1.jsx)(react_spring_bottom_sheet_1.BottomSheet,Object.assign({snapPoints:({minHeight})=>{return minHeight;}},props,{children:children}));};exports.BottomSheet=BottomSheet; \ No newline at end of file diff --git a/dist/modules/explorer/components/BottomSheet.js.map b/dist/modules/explorer/components/BottomSheet.js.map deleted file mode 100644 index 25f5e39..0000000 --- a/dist/modules/explorer/components/BottomSheet.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BottomSheet.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/BottomSheet.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,yEAA8F;AAC9F,oDAAiD;AAE1C,MAAM,WAAW,GAA+B,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,cAApB,YAAsB,CAAF;IAC1E,OAAO,CACL,uBAAC,uCAAiB,kBAChB,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;YAC5B,OAAO,SAAS,CAAA;QAClB,CAAC,IACG,KAAK,cAER,QAAQ,IACS,CACrB,CAAA;AACH,CAAC,CAAA;AAXY,QAAA,WAAW,eAWvB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ChangeNetworkButton.js b/dist/modules/explorer/components/ChangeNetworkButton.js deleted file mode 100644 index 8cefd8a..0000000 --- a/dist/modules/explorer/components/ChangeNetworkButton.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ChangeNetworkButton=exports.ColorDot=exports.networkDotColorMap=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const ActionSheets_1=require('../context/ActionSheets');const StyledConnectedButton=(0,core_1.styled)(core_1.Box)(({theme})=>({'& > *':{height:'100%'},'background':theme.palette.primary.main,'borderRadius':4,'padding':'5px 10px','cursor':'pointer','transition':'.15s ease-out','&:hover':{background:theme.palette.secondary.dark,transition:'.15s ease-in'}}));exports.networkDotColorMap={mainnet:'#9EEE5D',ghostnet:'#291F79'};exports.ColorDot=(0,core_1.styled)(core_1.Box)({height:6,width:6,backgroundColor:({color})=>color,borderRadius:'50%'});const NetworkText=(0,core_1.styled)(core_1.Typography)({fontSize:'14px'});const ChangeNetworkButton=()=>{const {network}=(0,useTezos_1.useTezos)();const {open}=(0,ActionSheets_1.useActionSheet)(ActionSheets_1.ActionSheet.Network);return(0,jsx_runtime_1.jsx)(StyledConnectedButton,{onClick:()=>open(),children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:5},alignItems:'center',wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(exports.ColorDot,{color:exports.networkDotColorMap[network]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(NetworkText,{color:'textPrimary',children:(0,core_1.capitalize)(network)})})]})});};exports.ChangeNetworkButton=ChangeNetworkButton; \ No newline at end of file diff --git a/dist/modules/explorer/components/ChangeNetworkButton.js.map b/dist/modules/explorer/components/ChangeNetworkButton.js.map deleted file mode 100644 index 25e7258..0000000 --- a/dist/modules/explorer/components/ChangeNetworkButton.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChangeNetworkButton.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ChangeNetworkButton.tsx"],"names":[],"mappings":";;;;AAAA,4CAAoF;AAGpF,6DAAyD;AACzD,0DAAqE;AAErE,MAAM,qBAAqB,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,CAAC;IAC1E,OAAO,EAAE;QACP,MAAM,EAAE,MAAM;KACf;IACD,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACxC,cAAc,EAAE,CAAC;IACjB,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE,SAAS;IACnB,YAAY,EAAE,eAAe;IAE7B,SAAS,EAAE;QACT,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;QACxC,UAAU,EAAE,cAAc;KAC3B;CACF,CAAC,CAAC,CAAA;AAEU,QAAA,kBAAkB,GAA4B;IACzD,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,SAAS;CACpB,CAAA;AAEY,QAAA,QAAQ,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC;IAClC,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;IACR,eAAe,EAAE,CAAC,EAAE,KAAK,EAAqB,EAAE,EAAE,CAAC,KAAK;IACxD,YAAY,EAAE,KAAK;CACpB,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACrC,QAAQ,EAAE,MAAM;CACjB,CAAC,CAAA;AAEK,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAC9B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,6BAAc,EAAC,0BAAW,CAAC,OAAO,CAAC,CAAA;IAEpD,OAAO,CACL,uBAAC,qBAAqB,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,YAC1C,wBAAC,WAAI,IAAC,SAAS,QAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,UAAU,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,aAClE,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,gBAAQ,IAAC,KAAK,EAAE,0BAAkB,CAAC,OAAO,CAAC,GAAI,GAC3C,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,WAAW,IAAC,KAAK,EAAC,aAAa,YAAE,IAAA,iBAAU,EAAC,OAAO,CAAC,GAAe,GAC/D,IACF,GACe,CACzB,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,mBAAmB,uBAgB/B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/CodeCollapse.js b/dist/modules/explorer/components/CodeCollapse.js deleted file mode 100644 index b417c5b..0000000 --- a/dist/modules/explorer/components/CodeCollapse.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.CodeCollapse=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const ContentContainer_1=require('./ContentContainer');const KeyboardArrowDown_1=__importDefault(require('@material-ui/icons/KeyboardArrowDown'));const KeyboardArrowUp_1=__importDefault(require('@material-ui/icons/KeyboardArrowUp'));const ProposalFormInput_1=require('./ProposalFormInput');const prismjs_1=__importStar(require('prismjs'));const TableContainer=(0,core_1.styled)(ContentContainer_1.ContentContainer)({width:'100%'});const TableHeader=(0,core_1.styled)(core_1.Grid)({padding:'16px 46px',minHeight:34});const ProposalsFooter=(0,core_1.styled)(core_1.Grid)({padding:'16px 46px',borderTop:'.6px solid rgba(125,140,139, 0.2)',minHeight:34});const CodeCollapse=({code})=>{const [open,setopen]=(0,react_1.useState)(false);return(0,jsx_runtime_1.jsx)(TableContainer,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',wrap:'nowrap',children:[(0,jsx_runtime_1.jsxs)(TableHeader,{item:true,container:true,justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body2',style:{fontWeight:'500'},color:'textPrimary',children:'View Lambda Parameter Code'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.IconButton,{'aria-label':'expand row',size:'small',onClick:()=>setopen(!open),children:open?(0,jsx_runtime_1.jsx)(KeyboardArrowUp_1.default,{htmlColor:'#FFF'}):(0,jsx_runtime_1.jsx)(KeyboardArrowDown_1.default,{htmlColor:'#FFF'})})})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,wrap:'nowrap',component:core_1.Collapse,in:open,timeout:'auto',unmountOnExit:true,direction:'column',children:(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalCodeEditorInput,{label:'',containerstyle:{marginTop:'8px'},insertSpaces:true,ignoreTabKey:false,tabSize:4,padding:10,style:{minHeight:500,fontFamily:'Roboto Mono',fontSize:14,fontWeight:400,outlineWidth:0},value:code,onValueChange:code=>true,highlight:code=>(0,prismjs_1.highlight)(code,prismjs_1.default.languages.javascript,'javascript'),title:''})})]})});};exports.CodeCollapse=CodeCollapse; \ No newline at end of file diff --git a/dist/modules/explorer/components/CodeCollapse.js.map b/dist/modules/explorer/components/CodeCollapse.js.map deleted file mode 100644 index 8d35ecb..0000000 --- a/dist/modules/explorer/components/CodeCollapse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CodeCollapse.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/CodeCollapse.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAkF;AAElF,iCAAuC;AAGvC,yDAAqD;AACrD,6FAAwE;AACxE,yFAAoE;AACpE,2DAA6D;AAC7D,mDAA0C;AAE1C,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,mCAAgB,CAAC,CAAC;IAC9C,KAAK,EAAE,MAAM;CACd,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC/B,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,EAAE;CACd,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IACnC,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,mCAAmC;IAC9C,SAAS,EAAE,EAAE;CACd,CAAC,CAAA;AAMK,MAAM,YAAY,GAAoB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACxD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAEvC,OAAO,CACL,uBAAC,cAAc,IAAC,IAAI,kBAClB,wBAAC,WAAI,IAAC,SAAS,QAAC,SAAS,EAAC,QAAQ,EAAC,IAAI,EAAE,QAAQ,aAC/C,wBAAC,WAAW,IAAC,IAAI,QAAC,SAAS,QAAC,cAAc,EAA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AAC,CAAA;AAnDY,QAAA,YAAY,gBAmDxB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ConfigProposalForm.js b/dist/modules/explorer/components/ConfigProposalForm.js deleted file mode 100644 index 2526757..0000000 --- a/dist/modules/explorer/components/ConfigProposalForm.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ConfigProposalForm=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const ProposalFormSendButton_1=require('./ProposalFormSendButton');const react_hook_form_1=require('react-hook-form');const router_1=require('../pages/DAO/router');const ProposalFormInput_1=require('./ProposalFormInput');const useProposeConfigChange_1=require('../../../services/contracts/baseDAO/hooks/useProposeConfigChange');const ResponsiveDialog_1=require('./ResponsiveDialog');const ConfigProposalForm=({open,handleClose})=>{const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);const methods=(0,react_hook_form_1.useForm)();const {mutate}=(0,useProposeConfigChange_1.useProposeConfigChange)();const onSubmit=(0,react_1.useCallback)(values=>{if(dao){const mutateValues={frozen_extra_value:values.frozen_extra_value,slash_scale_value:!Number.isNaN(parseInt(values.returnedPercentage))?100-Number(values.returnedPercentage):NaN};Object.entries(mutateValues).map(([key,value])=>{if(Number.isNaN(value)){delete mutateValues[key];}});mutate({dao,args:mutateValues});methods.reset();handleClose();}},[dao,handleClose,methods,mutate]);return(0,jsx_runtime_1.jsx)(react_hook_form_1.FormProvider,Object.assign({},methods,{children:(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ResponsiveDialog,{open:open,onClose:handleClose,title:'Change DAO configuration',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:18},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{style:{fontWeight:300,fontSize:'16px'},color:'secondary',children:'All fields are optional. Leave empty what you wish to leave unchanged'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{label:`Proposal fee (Current: ${dao===null||dao===void 0?void 0:dao.data.extra.frozen_extra_value.toString()})`,children:(0,jsx_runtime_1.jsx)(react_hook_form_1.Controller,{control:methods.control,name:`frozen_extra_value`,render:({field})=>(0,jsx_runtime_1.jsx)(core_1.TextField,Object.assign({},field,{type:'number',placeholder:'Proposal fee',InputProps:{disableUnderline:true}}))})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{label:`Percentage of tokens returned after rejection (Current:`,children:(0,jsx_runtime_1.jsx)(react_hook_form_1.Controller,{control:methods.control,name:`returnedPercentage`,render:({field})=>(0,jsx_runtime_1.jsx)(core_1.TextField,Object.assign({},field,{type:'number',placeholder:'Returned tokens percentage',InputProps:{disableUnderline:true}}))})})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{align:'left',variant:'subtitle2',color:'textPrimary',display:'inline',children:['Proposal Fee:',' ']}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{align:'left',variant:'subtitle2',color:'secondary',display:'inline',style:{fontWeight:300},children:[dao&&dao.data.extra.frozen_extra_value.toString(),' ',dao?dao.data.token.symbol:'']})]}),(0,jsx_runtime_1.jsx)(ProposalFormSendButton_1.SendButton,{onClick:methods.handleSubmit(onSubmit),disabled:!dao,children:'Submit'})]})})}));};exports.ConfigProposalForm=ConfigProposalForm; \ No newline at end of file diff --git a/dist/modules/explorer/components/ConfigProposalForm.js.map b/dist/modules/explorer/components/ConfigProposalForm.js.map deleted file mode 100644 index 2258216..0000000 --- a/dist/modules/explorer/components/ConfigProposalForm.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConfigProposalForm.js","sourceRoot":"","sources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,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACrB,uBAAC,gBAAS,oBACJ,KAAK,IACT,IAAI,EAAC,QAAQ,EACb,WAAW,EAAC,4BAA4B,EACxC,UAAU,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,IACtC,CACH,GACD,GACgB,GACf,EACP,wBAAC,WAAI,IAAC,IAAI,mBACR,wBAAC,iBAAU,IAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAE,QAAQ,8BAClE,GAAG,IACN,EACb,wBAAC,iBAAU,IACT,KAAK,EAAC,MAAM,EACZ,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,aAEzB,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,QAAQ,EAAE,OAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAC5E,IACR,EAEP,uBAAC,mCAAU,IAAC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,QAAe,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,uBAE7D,IACR,GACU,IACN,CAChB,CAAA;AACH,CAAC,CAAA;AAnGY,QAAA,kBAAkB,sBAmG9B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ConfigProposalFormLambda.js b/dist/modules/explorer/components/ConfigProposalFormLambda.js deleted file mode 100644 index 157abcb..0000000 --- a/dist/modules/explorer/components/ConfigProposalFormLambda.js +++ /dev/null @@ -1,48 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalFormLambda=exports.ProposalAction=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=__importStar(require('react'));const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const react_hook_form_1=require('react-hook-form');const router_1=require('../pages/DAO/router');const ProposalFormInput_1=require('./ProposalFormInput');const ResponsiveDialog_1=require('./ResponsiveDialog');const prismjs_1=__importStar(require('prismjs'));require('prism-themes/themes/prism-night-owl.css');const MainButton_1=require('../../common/MainButton');const SearchLambda_1=require('./styled/SearchLambda');const icons_1=require('@material-ui/icons');const useLambdaAddPropose_1=require('../../../services/contracts/baseDAO/hooks/useLambdaAddPropose');const useLambdaRemovePropose_1=require('../../../services/contracts/baseDAO/hooks/useLambdaRemovePropose');const useDAOLambdas_1=require('../../../services/contracts/baseDAO/hooks/useDAOLambdas');const useLambdaExecutePropose_1=require('../../../services/contracts/baseDAO/hooks/useLambdaExecutePropose');const utils_1=require('utils');const StyledSendButton=(0,core_1.styled)(MainButton_1.MainButton)(({theme})=>({width:101,color:'#1C1F23'}));const StyledRow=(0,core_1.styled)(core_1.Grid)({marginTop:30});const LoadingContainer=(0,core_1.styled)(core_1.Grid)({minHeight:651});const LoadingStateLabel=(0,core_1.styled)(core_1.Typography)({marginTop:40});const CheckIcon=(0,core_1.styled)(icons_1.CheckOutlined)({fontSize:169});const codeEditorcontainerstyles={marginTop:'8px'};const codeEditorStyles={minHeight:500,fontFamily:'Roboto Mono',fontSize:14,fontWeight:400,outlineWidth:0};var ProposalAction;(function(ProposalAction){ProposalAction[ProposalAction['new']=0]='new';ProposalAction[ProposalAction['remove']=1]='remove';ProposalAction[ProposalAction['execute']=2]='execute';ProposalAction[ProposalAction['none']=3]='none';}(ProposalAction||(exports.ProposalAction=ProposalAction={})));var LambdaProposalState;(function(LambdaProposalState){LambdaProposalState[LambdaProposalState['write_action']=0]='write_action';LambdaProposalState[LambdaProposalState['wallet_action']=1]='wallet_action';LambdaProposalState[LambdaProposalState['action_finished']=2]='action_finished';}(LambdaProposalState||(LambdaProposalState={})));const codeEditorPlaceholder={addLambda:`Write Michelson Code for Lambda's Implementation - -Eg:- - -(Left (Left (Pair (Pair { DROP ; - NIL operation ; - EMPTY_MAP string bytes ; - NONE address ; - PAIR ; - PAIR } - { DROP ; UNIT }) -"sample"))) - `,existingLambda:`Choose a Lambda from the Dropdown, the implementation will appear here - `,lambdaExecuteArgumentsCode:`Write Michelson Code for the input Paramerers of your Lambda - -Eg:- - -{ - "prim": "pair", - "annots": [ - "%xtz_transfer_type" - ], - "args": [ - { - "prim": "mutez", - "annots": [ - "%amount" - ] - }, - { - "prim": "address", - "annots": [ - "%recipient" - ] - } - ] -}, -`,lambdaExecuteParams:`Enter the values for the given params in a JSON/JavaScript Object format. - -Eg:- - -{ - xtz_transfer_type: { - amount: 10000000000000000000, - recipient: "tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb" - } -} - `};const ProposalFormLambda=({open,handleClose,action})=>{const grammar=prismjs_1.default.languages.javascript;const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);const daoLambdas=(0,useDAOLambdas_1.useDAOLambdas)(daoId);const {mutate:lambdaAdd}=(0,useLambdaAddPropose_1.useLambdaAddPropose)();const {mutate:lambdaRemove}=(0,useLambdaRemovePropose_1.useLambdaRemovePropose)();const {mutate:lambdaExecute}=(0,useLambdaExecutePropose_1.useLambdaExecutePropose)();const lambdaForm=(0,react_hook_form_1.useForm)();const [lambda,setLambda]=react_1.default.useState(null);const [state,setState]=react_1.default.useState(LambdaProposalState.write_action);const [lambdaParams,setLambdaParams]=react_1.default.useState('');const [lambdaArguments,setLambdaArguments]=react_1.default.useState('');const [code,setCode]=react_1.default.useState('');(0,react_1.useEffect)(()=>{if(open){setCode('');setState(LambdaProposalState.write_action);setLambda(null);lambdaForm.reset();}},[open,lambdaForm]);const onSubmit=(0,react_1.useCallback)(_=>{const agoraPostId=Number(0);switch(action){case ProposalAction.new:{lambdaAdd({dao:dao,args:{agoraPostId,data:code},handleClose});break;}case ProposalAction.remove:{if(!lambda){return;}setCode('');lambdaRemove({dao:dao,args:{agoraPostId,handler_name:lambda.key},handleClose});break;}case ProposalAction.execute:{if(!lambda||lambdaArguments===''||lambdaParams===''){return;}setCode('');const lambdaCode=JSON.parse(code);const handler_code={code:JSON.stringify(lambdaCode.code),handler_check:JSON.stringify(lambdaCode.handler_check),is_active:lambdaCode.is_active};lambdaExecute({dao:dao,args:{agoraPostId,handler_name:lambda.key,handler_code,handler_params:lambdaParams,lambda_arguments:lambdaArguments},handleClose});break;}default:}},[dao,lambdaAdd,code,action,lambda,lambdaRemove,lambdaArguments,lambdaExecute,lambdaParams,handleClose]);const handleSearchChange=data=>{if(!(data===null||data===void 0?void 0:data.value)){lambdaForm.reset();setCode('');return;}lambdaForm.setValue('lambda_name',data.key);setLambda(data);setCode((0,utils_1.parseLambdaCode)(data.value));return;};const renderNewProposal=()=>{return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalCodeEditorInput,{label:'Implementation',containerstyle:codeEditorcontainerstyles,insertSpaces:true,ignoreTabKey:false,tabSize:4,padding:10,style:codeEditorStyles,value:code,onValueChange:code=>setCode(code),highlight:code=>(0,prismjs_1.highlight)(code,grammar,'javascript'),placeholder:codeEditorPlaceholder.addLambda})});};const renderRemoveProposal=()=>{return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{label:'Lambda Name',children:(0,jsx_runtime_1.jsx)(SearchLambda_1.SearchLambda,{lambdas:daoLambdas,handleChange:handleSearchChange})}),(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalCodeEditorInput,{label:'Implementation',containerstyle:codeEditorcontainerstyles,insertSpaces:true,ignoreTabKey:false,tabSize:4,padding:10,style:codeEditorStyles,value:code,onValueChange:code=>setCode(code),highlight:code=>(0,prismjs_1.highlight)(code,grammar,'javascript'),placeholder:codeEditorPlaceholder.lambdaExecuteArgumentsCode})]});};const renderExecuteProposal=()=>{return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{label:'Lambda Name',children:(0,jsx_runtime_1.jsx)(SearchLambda_1.SearchLambda,{lambdas:daoLambdas,handleChange:handleSearchChange})}),(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalCodeEditorInput,{label:'Implementation',containerstyle:codeEditorcontainerstyles,insertSpaces:true,ignoreTabKey:false,tabSize:4,padding:10,style:codeEditorStyles,value:code,onValueChange:code=>setCode(code),highlight:code=>(0,prismjs_1.highlight)(code,grammar,'javascript'),placeholder:codeEditorPlaceholder.existingLambda}),(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalCodeEditorInput,{label:'Lambda Arguments Code',containerstyle:codeEditorcontainerstyles,insertSpaces:true,ignoreTabKey:false,tabSize:4,padding:10,value:lambdaArguments,onValueChange:lambdaArguments=>setLambdaArguments(lambdaArguments),highlight:lambdaArguments=>(0,prismjs_1.highlight)(lambdaArguments,grammar,'javascript'),style:codeEditorStyles,placeholder:codeEditorPlaceholder.lambdaExecuteArgumentsCode}),(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalCodeEditorInput,{label:'Lambda Params',containerstyle:codeEditorcontainerstyles,insertSpaces:true,ignoreTabKey:false,tabSize:4,padding:10,style:codeEditorStyles,value:lambdaParams,onValueChange:lambdaParams=>setLambdaParams(lambdaParams),highlight:lambdaParams=>(0,prismjs_1.highlight)(lambdaParams,grammar,'javascript'),placeholder:codeEditorPlaceholder.lambdaExecuteParams})]});};return(0,jsx_runtime_1.jsx)(react_hook_form_1.FormProvider,Object.assign({},lambdaForm,{children:(0,jsx_runtime_1.jsxs)(ResponsiveDialog_1.ResponsiveDialog,{open:open,onClose:handleClose,title:ProposalAction[action]+' Lambda Proposal',template:'md',children:[state===LambdaProposalState.write_action?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',spacing:4,children:[action===ProposalAction.new?renderNewProposal():null,action===ProposalAction.remove?renderRemoveProposal():null,action===ProposalAction.execute?renderExecuteProposal():null]}),(0,jsx_runtime_1.jsx)(StyledRow,{container:true,direction:'row',spacing:4,justifyContent:'flex-end',children:(0,jsx_runtime_1.jsx)(StyledSendButton,{onClick:lambdaForm.handleSubmit(onSubmit),disabled:!code,children:'Submit'})})]}):null,state===LambdaProposalState.wallet_action?(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(LoadingContainer,{container:true,direction:'column',alignItems:'center',justifyContent:'center',children:[(0,jsx_runtime_1.jsx)(core_1.CircularProgress,{color:'secondary',size:169}),(0,jsx_runtime_1.jsx)(LoadingStateLabel,{children:'Confirm action in wallet'})]})}):null,state===LambdaProposalState.action_finished?(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(LoadingContainer,{container:true,direction:'column',alignItems:'center',justifyContent:'center',children:[(0,jsx_runtime_1.jsx)(CheckIcon,{color:'secondary'}),(0,jsx_runtime_1.jsx)(LoadingStateLabel,{children:'Proposal created'})]})}):null]})}));};exports.ProposalFormLambda=ProposalFormLambda; \ No newline at end of file diff --git a/dist/modules/explorer/components/ConfigProposalFormLambda.js.map b/dist/modules/explorer/components/ConfigProposalFormLambda.js.map deleted file mode 100644 index 3edaa21..0000000 --- a/dist/modules/explorer/components/ConfigProposalFormLambda.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConfigProposalFormLambda.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ConfigProposalFormLambda.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAyF;AACzF,+CAAqD;AACrD,+DAA2D;AAC3D,qDAAmE;AACnE,gDAA8C;AAC9C,2DAAgF;AAChF,yDAAqD;AACrD,mDAA0C;AAC1C,mDAAgD;AAChD,0DAAsD;AACtD,wDAAoD;AACpD,8CAAkD;AAClD,8FAA0F;AAC1F,oGAAgG;AAEhG,kFAA8E;AAE9E,sGAAkG;AAClG,iCAAuC;AAEvC,MAAM,gBAAgB,GAAG,IAAA,aAAM,EAAC,uBAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1D,KAAK,EAAE,GAAG;IACV,KAAK,EAAE,SAAS;CACjB,CAAC,CAAC,CAAA;AAEH,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC7B,SAAS,EAAE,EAAE;CACd,CAAC,CAAA;AAEF,MAAM,gBAAgB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IACpC,SAAS,EAAE,GAAG;CACf,CAAC,CAAA;AAEF,MAAM,iBAAiB,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IAC3C,SAAS,EAAE,EAAE;CACd,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,qBAAa,CAAC,CAAC;IACtC,QAAQ,EAAE,GAAG;CACd,CAAC,CAAA;AAEF,MAAM,yBAAyB,GAAG;IAChC,SAAS,EAAE,KAAK;CACjB,CAAA;AAED,MAAM,gBAAg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CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,IAAI,uBAE1D,GACT,IACX,CACJ,CAAC,CAAC,CAAC,IAAI,EAEP,KAAK,KAAK,mBAAmB,CAAC,aAAa,CAAC,CAAC,CAAC,CAC7C,2DACE,wBAAC,gBAAgB,IAAC,SAAS,QAAC,SAAS,EAAC,QAAQ,EAAC,UAAU,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,aACxF,uBAAC,uBAAgB,IAAC,KAAK,EAAC,WAAW,EAAC,IAAI,EAAE,GAAG,GAAI,EACjD,uBAAC,iBAAiB,2CAA6C,IAC9C,GAClB,CACJ,CAAC,CAAC,CAAC,IAAI,EAEP,KAAK,KAAK,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAC,CAC/C,2DACE,wBAAC,gBAAgB,IAAC,SAAS,QAAC,SAAS,EAAC,QAAQ,EAAC,UAAU,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,aACxF,uBAAC,SAAS,IAAC,KAAK,EAAC,WAAW,GAAG,EAC/B,uBAAC,iBAAiB,mCAAqC,IACtC,GAClB,CACJ,CAAC,CAAC,CAAC,IAAI,IACS,IACN,CAChB,CAAA;AACH,CAAC,CAAA;AA5PY,QAAA,kBAAkB,sBA4P9B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ContentContainer.js b/dist/modules/explorer/components/ContentContainer.js deleted file mode 100644 index 8bb39ba..0000000 --- a/dist/modules/explorer/components/ContentContainer.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ContentContainer=void 0;const core_1=require('@material-ui/core');exports.ContentContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({borderRadius:8,background:theme.palette.primary.main})); \ No newline at end of file diff --git a/dist/modules/explorer/components/ContentContainer.js.map b/dist/modules/explorer/components/ContentContainer.js.map deleted file mode 100644 index 1559ad6..0000000 --- a/dist/modules/explorer/components/ContentContainer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ContentContainer.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ContentContainer.tsx"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,gBAAgB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3D,YAAY,EAAE,CAAC;IACf,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;CACvC,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/explorer/components/CopyButton.js b/dist/modules/explorer/components/CopyButton.js deleted file mode 100644 index 4c3b2db..0000000 --- a/dist/modules/explorer/components/CopyButton.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.CopyButton=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const icons_1=require('@material-ui/icons');const CopyIcon=(0,core_1.styled)(icons_1.FileCopyOutlined)({cursor:'pointer'});const CopyButton=({text})=>{const [copied,setCopied]=(0,react_1.useState)(false);return(0,jsx_runtime_1.jsx)(core_1.Box,{padding:'5px 0 0 10px',marginTop:'auto',onClick:()=>{navigator.clipboard.writeText(text);setCopied(true);setTimeout(()=>{setCopied(false);},2000);},children:(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:!copied?'Copy to Clipboard':'Copied!',children:(0,jsx_runtime_1.jsx)(CopyIcon,{color:'secondary',fontSize:'small'})})});};exports.CopyButton=CopyButton; \ No newline at end of file diff --git a/dist/modules/explorer/components/CopyButton.js.map b/dist/modules/explorer/components/CopyButton.js.map deleted file mode 100644 index b9624b2..0000000 --- a/dist/modules/explorer/components/CopyButton.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CopyButton.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/CopyButton.tsx"],"names":[],"mappings":";;;;AAAA,iCAAuC;AACvC,4CAAwD;AACxD,8CAAqD;AAErD,MAAM,QAAQ,GAAG,IAAA,aAAM,EAAC,wBAAgB,CAAC,CAAC;IACxC,MAAM,EAAE,SAAS;CAClB,CAAC,CAAA;AAEK,MAAM,UAAU,GAA+B,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACjE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAC3C,OAAO,CACL,uBAAC,UAAG,IACF,OAAO,EAAC,cAAc,EACtB,SAAS,EAAC,MAAM,EAChB,OAAO,EAAE,GAAG,EAAE;YACZ,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;YACnC,SAAS,CAAC,IAAI,CAAC,CAAA;YAEf,UAAU,CAAC,GAAG,EAAE;gBACd,SAAS,CAAC,KAAK,CAAC,CAAA;YAClB,CAAC,EAAE,IAAI,CAAC,CAAA;QACV,CAAC,YAED,uBAAC,cAAO,IAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,YAC1E,uBAAC,QAAQ,IAAC,KAAK,EAAC,WAAW,EAAC,QAAQ,EAAC,OAAO,GAAG,GACvC,GACN,CACP,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,UAAU,cAoBtB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/Countdown.js b/dist/modules/explorer/components/Countdown.js deleted file mode 100644 index 3ebb490..0000000 --- a/dist/modules/explorer/components/Countdown.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.Countdown=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const Countdown=({cycleInfo})=>{const [counter,setCounter]=(0,react_1.useState)(0);const [oldCycle,setOldCycle]=(0,react_1.useState)(0);(0,react_1.useEffect)(()=>{const pendingCycles=cycleInfo.blocksLeft;setCounter(pendingCycles*cycleInfo.timeEstimateForNextBlock);if(cycleInfo.blocksLeft!==oldCycle){setOldCycle(cycleInfo.blocksLeft*cycleInfo.timeEstimateForNextBlock);}},[cycleInfo,oldCycle]);return(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,style:{gap:32},wrap:'nowrap',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'secondary',variant:'body1',children:'Time Left in Cycle'}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{style:{display:'flex',marginTop:12},wrap:'nowrap',children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',variant:'h2',style:{marginRight:15},children:[Math.floor(counter/(3600*24)),'d']}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',variant:'h2',style:{marginRight:15},children:[Math.floor(counter%(3600*24)/3600),'h']}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',variant:'h2',style:{marginRight:15},children:[Math.floor(counter%3600/60),'m']})]})]})});};exports.Countdown=Countdown; \ No newline at end of file diff --git a/dist/modules/explorer/components/Countdown.js.map b/dist/modules/explorer/components/Countdown.js.map deleted file mode 100644 index 08e6023..0000000 --- a/dist/modules/explorer/components/Countdown.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Countdown.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/Countdown.tsx"],"names":[],"mappings":";;;;AAAA,iCAAkD;AAClD,4CAAoD;AAG7C,MAAM,SAAS,GAAuC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;IAC7E,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAS,CAAC,CAAC,CAAA;IACjD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAS,CAAC,CAAC,CAAA;IAEnD,IAAA,iBAAS,EAAC,GAAG,EAAE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G,IAAI,CAAC,GAAG,EAAE,CAAC,SACvB,IACR,IACF,GACF,CACR,CAAA;AACH,CAAC,CAAA;AAhCY,QAAA,SAAS,aAgCrB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/CycleDescription.js b/dist/modules/explorer/components/CycleDescription.js deleted file mode 100644 index 75fa33f..0000000 --- a/dist/modules/explorer/components/CycleDescription.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.CycleDescription=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const ProposalsStatus=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontSize:'20px',color:theme.palette.text.primary,['@media (max-width:1030px)']:{fontSize:'18px'}}));const CycleDescription=({daoAddress})=>{const {cycleInfo}=(0,useDAO_1.useDAO)(daoAddress);const isVotingPeriod=cycleInfo&&cycleInfo.type;const theme=(0,core_1.useTheme)();return(0,jsx_runtime_1.jsx)(ProposalsStatus,{children:isVotingPeriod==='voting'?'Voting on Proposals':'Creating Proposals'});};exports.CycleDescription=CycleDescription; \ No newline at end of file diff --git a/dist/modules/explorer/components/CycleDescription.js.map b/dist/modules/explorer/components/CycleDescription.js.map deleted file mode 100644 index 1f88c0d..0000000 --- a/dist/modules/explorer/components/CycleDescription.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CycleDescription.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/CycleDescription.tsx"],"names":[],"mappings":";;;;AAAA,4CAAsF;AAEtF,+DAA2D;AAE3D,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,CAAC;IAC3E,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;IAEjC,CAAC,2BAA2B,CAAC,EAAE;QAC7B,QAAQ,EAAE,MAAM;KACjB;CACF,CAAC,CAAC,CAAA;AAEI,MAAM,gBAAgB,GAAqC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IACnF,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,eAAM,EAAC,UAAU,CAAC,CAAA;IACxC,MAAM,cAAc,GAAG,SAAS,IAAI,SAAS,CAAC,IAAI,CAAA;IAClD,MAAM,KAAK,GAAG,IAAA,eAAQ,GAAE,CAAA;IAExB,OAAO,uBAAC,eAAe,cAAE,cAAc,KAAK,QAAQ,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,oBAAoB,GAAmB,CAAA;AACxH,CAAC,CAAA;AANY,QAAA,gBAAgB,oBAM5B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/DAOStatsRow.js b/dist/modules/explorer/components/DAOStatsRow.js deleted file mode 100644 index 2c973d0..0000000 --- a/dist/modules/explorer/components/DAOStatsRow.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.DAOStatsRow=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const votingPeriod_svg_1=require('../../../assets/logos/votingPeriod.svg');const react_customizable_progressbar_1=__importDefault(require('react-customizable-progressbar'));const core_1=require('@material-ui/core');const ContentContainer_1=require('./ContentContainer');const CycleDescription_1=require('./CycleDescription');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const useProposals_1=require('../../../services/services/dao/hooks/useProposals');const bignumber_js_1=__importDefault(require('bignumber.js'));const types_1=require('../../../services/services/dao/mappers/proposal/types');const router_1=require('../pages/DAO/router');const useTimeLeftInCycle_1=require('../hooks/useTimeLeftInCycle');const usePolls_1=require('../../lite/explorer/hooks/usePolls');const dayjs_1=__importDefault(require('dayjs'));const StatsContainer=(0,core_1.styled)(ContentContainer_1.ContentContainer)(({theme})=>({padding:'38px 38px',maxHeight:'310px',['@media (max-width:1030px)']:{maxHeight:'303px'},['@media (max-width:831px)']:{minWidth:'99%'},['@media (max-width:390px)']:{maxHeight:'340px'}}));const LockedTokensBar=(0,core_1.styled)(core_1.LinearProgress)(({theme})=>({'width':'100%','height':'8px','marginTop':'15px','marginBottom':'43px','&.MuiLinearProgress-colorSecondary':{background:theme.palette.primary.light},['@media (max-width:1030px)']:{marginTop:'13px',marginBottom:'40px'}}));const IconContainer=(0,core_1.styled)(core_1.SvgIcon)({width:'auto',height:64});const ProgressContainer=(0,core_1.styled)(core_1.Box)({marginLeft:'-18px',marginTop:'-20px',marginBottom:'-5px'});const ProposalInfoTitle=(0,core_1.styled)(core_1.Typography)({fontSize:'18px',['@media (max-width:1155px)']:{whiteSpace:'nowrap'},['@media (max-width:1030px)']:{fontSize:'16.3px',whiteSpace:'initial'},['@media (max-width:830.99px)']:{fontSize:'18px'},['@media (max-width:409.99px)']:{fontSize:'16px'}});const LargeNumber=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontSize:'36px',fontWeight:300,color:theme.palette.text.primary,marginTop:'7px',['@media (max-width:1030px)']:{fontSize:'30px'}}));const CycleTime=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontWeight:300,color:theme.palette.text.primary,fontSize:'20px',['@media (max-width:1030px)']:{fontSize:'16px'},['@media (max-width:830.99px)']:{fontSize:'20px'},['@media (max-width:434px)']:{fontSize:'18px'},['@media (max-width:409.99px)']:{fontSize:'15px'}}));const DAOStatsRow=()=>{var _a;const daoId=(0,router_1.useDAOID)();const {data,cycleInfo,ledger}=(0,useDAO_1.useDAO)(daoId);const symbol=data&&data.data.token.symbol.toUpperCase();const blocksLeft=cycleInfo&&cycleInfo.blocksLeft;const theme=(0,core_1.useTheme)();const isExtraSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));const {data:activeProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.ACTIVE);const {hours,minutes,days}=(0,useTimeLeftInCycle_1.useTimeLeftInCycle)();const polls=(0,usePolls_1.usePolls)((_a=data===null||data===void 0?void 0:data.liteDAOData)===null||_a===void 0?void 0:_a._id);const activeLiteProposals=polls===null||polls===void 0?void 0:polls.filter(p=>Number(p.endTime)>(0,dayjs_1.default)().valueOf());const amountLocked=(0,react_1.useMemo)(()=>{if(!ledger){return new bignumber_js_1.default(0);}return ledger.reduce((acc,current)=>{const frozenBalance=new bignumber_js_1.default(current.total_balance)||new bignumber_js_1.default(0);return acc.plus(frozenBalance);},new bignumber_js_1.default(0));},[ledger]);const amountNotLocked=(0,react_1.useMemo)(()=>{if(!data){return new bignumber_js_1.default(0);}return data.data.token.supply;},[data]);const totalTokens=amountLocked.plus(amountNotLocked);const amountLockedPercentage=totalTokens?amountLocked.div(totalTokens).multipliedBy(100):new bignumber_js_1.default(0);return(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:isExtraSmall?25:44},children:[(0,jsx_runtime_1.jsx)(StatsContainer,{item:true,xs:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:24,marginTop:'-3px'},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(CycleDescription_1.CycleDescription,{daoAddress:daoId})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProgressContainer,{children:(0,jsx_runtime_1.jsx)(react_customizable_progressbar_1.default,{progress:data?(blocksLeft||0)/Number(data.data.period)*100:100,radius:35,strokeWidth:6,strokeColor:theme.palette.secondary.main,trackStrokeWidth:5,trackStrokeColor:'rgba(125,140,139, 0.2)'})})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(ProposalInfoTitle,{color:'secondary',children:'Current Cycle'}),(0,jsx_runtime_1.jsx)(CycleTime,{color:'textPrimary',children:cycleInfo===null||cycleInfo===void 0?void 0:cycleInfo.currentCycle})]})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:28},wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(IconContainer,{children:(0,jsx_runtime_1.jsx)(votingPeriod_svg_1.ReactComponent,{})})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(ProposalInfoTitle,{color:'secondary',style:{marginTop:'-6px'},children:'Time Left In Cycle'}),(0,jsx_runtime_1.jsxs)(CycleTime,{children:[days,'d ',hours,'h ',minutes,'m (',cycleInfo===null||cycleInfo===void 0?void 0:cycleInfo.blocksLeft,' blocks)']})]})]})})]})}),(0,jsx_runtime_1.jsx)(StatsContainer,{item:true,xs:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{marginTop:'-3px'},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(ProposalInfoTitle,{color:'secondary',children:[symbol,' Locked']})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(LargeNumber,{children:amountLocked.dp(10,1).toString()})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(LockedTokensBar,{variant:'determinate',value:amountLockedPercentage.toNumber(),color:'secondary'})})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:isExtraSmall?10:50},wrap:'nowrap',justifyContent:isExtraSmall?'space-between':'flex-start',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(ProposalInfoTitle,{color:'secondary',children:'Voting Addresses'}),(0,jsx_runtime_1.jsx)(LargeNumber,{children:(data===null||data===void 0?void 0:data.data.ledger.length)||'-'})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(ProposalInfoTitle,{color:'secondary',children:'Active Proposals'}),(0,jsx_runtime_1.jsx)(LargeNumber,{color:'textPrimary',children:Number(activeProposals===null||activeProposals===void 0?void 0:activeProposals.length)+Number(activeLiteProposals.length)})]})]})})]})})]})});};exports.DAOStatsRow=DAOStatsRow; \ No newline at end of file diff --git a/dist/modules/explorer/components/DAOStatsRow.js.map b/dist/modules/explorer/components/DAOStatsRow.js.map deleted file mode 100644 index f2b6ac1..0000000 --- a/dist/modules/explorer/components/DAOStatsRow.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DAOStatsRow.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/DAOStatsRow.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAsC;AACtC,oEAAkF;AAClF,oGAAwD;AACxD,4CAAmH;AACnH,yDAAqD;AACrD,yDAAqD;AACrD,+DAA2D;AAC3D,2EAAuE;AACvE,gEAAoC;AACpC,wEAA6E;AAC7E,gDAA8C;AAC9C,oEAAgE;AAChE,mEAA+D;AAC/D,kDAAyB;AAEzB,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,mCAAgB,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9D,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,OAAO;IAElB,CAAC,2BAA2B,CAAC,EAAE;QAC7B,SAAS,EAAE,OAAO;KACnB;IAED,CAAC,0BAA0B,CAAC,EAAE;QAC5B,QAAQ,EAAE,KAAK;KAChB;IAED,CAAC,0BAA0B,CAAC,EAAE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C,aAAa,EAAC,KAAK,EAAE,sBAAsB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAC,WAAW,GAAG,GAChG,IACF,GACF,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,wBAAC,WAAI,IACH,SAAS,QACT,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EACtC,IAAI,EAAC,QAAQ,EACb,cAAc,EAAE,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,YAAY,aAE7D,wBAAC,WAAI,IAAC,IAAI,mBACR,uBAAC,iBAAiB,IAAC,KAAK,EAAC,WAAW,iCAAqC,EACzE,uBAAC,WAAW,cAAE,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,CAAC,MAAM,CAAC,MAAM,KAAI,GAAG,GAAe,IACvD,EACP,wBAAC,WAAI,IAAC,IAAI,mBACR,uBAAC,iBAAiB,IAAC,KAAK,EAAC,WAAW,iCAAqC,EACzE,uBAAC,WAAW,IAAC,KAAK,EAAC,aAAa,YAC7B,MAAM,CAAC,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,MAAM,CAAC,GAAG,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,GACzD,IACT,IACF,GACF,IACF,GACQ,IACZ,GACF,CACR,CAAA;AACH,CAAC,CAAA;AA1HY,QAAA,WAAW,eA0HvB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/DelegationChangeProposalForm.js b/dist/modules/explorer/components/DelegationChangeProposalForm.js deleted file mode 100644 index c82f3ca..0000000 --- a/dist/modules/explorer/components/DelegationChangeProposalForm.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.DelegationChangeProposalForm=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const ProposalFormSendButton_1=require('./ProposalFormSendButton');const react_hook_form_1=require('react-hook-form');const router_1=require('../pages/DAO/router');const ProposalFormInput_1=require('./ProposalFormInput');const ResponsiveDialog_1=require('./ResponsiveDialog');const useProposeDelegationChange_1=require('../../../services/contracts/baseDAO/hooks/useProposeDelegationChange');const Content=(0,core_1.styled)(core_1.Grid)({padding:'10px 0'});const DelegationChangeProposalForm=({open,handleClose,defaultValues})=>{const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);const methods=(0,react_hook_form_1.useForm)({defaultValues:(0,react_1.useMemo)(()=>Object.assign({newDelegationAddress:''},defaultValues),[defaultValues])});const newDelegationAddress=methods.watch('newDelegationAddress');(0,react_1.useEffect)(()=>{methods.reset(defaultValues);},[defaultValues,methods]);const {mutate}=(0,useProposeDelegationChange_1.useProposeDelegationChange)();const onSubmit=(0,react_1.useCallback)(values=>{if(dao){mutate({dao,newDelegationAddress:values.newDelegationAddress});handleClose();}},[dao,handleClose,mutate]);return(0,jsx_runtime_1.jsx)(react_hook_form_1.FormProvider,Object.assign({},methods,{children:(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ResponsiveDialog,{open:open,onClose:handleClose,'aria-labelledby':'alert-dialog-title','aria-describedby':'alert-dialog-description',title:'Change Delegate',children:(0,jsx_runtime_1.jsxs)(Content,{container:true,direction:'column',style:{gap:18},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{label:'New Delegate Address',children:(0,jsx_runtime_1.jsx)(react_hook_form_1.Controller,{control:methods.control,name:`newDelegationAddress`,render:({field})=>(0,jsx_runtime_1.jsx)(core_1.TextField,Object.assign({},field,{type:'text',placeholder:' tz1...',InputProps:{disableUnderline:true}}))})})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{align:'left',variant:'subtitle2',color:'textPrimary',display:'inline',children:['Proposal Fee:',' ']}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{align:'left',variant:'subtitle2',color:'secondary',display:'inline',children:[dao&&dao.data.extra.frozen_extra_value.toString(),' ',dao?dao.data.token.symbol:'']})]}),(0,jsx_runtime_1.jsx)(ProposalFormSendButton_1.SendButton,{onClick:methods.handleSubmit(onSubmit),disabled:!dao||!newDelegationAddress,children:'Submit'})]})})}));};exports.DelegationChangeProposalForm=DelegationChangeProposalForm; \ No newline at end of file diff --git a/dist/modules/explorer/components/DelegationChangeProposalForm.js.map b/dist/modules/explorer/components/DelegationChangeProposalForm.js.map deleted file mode 100644 index 18e9735..0000000 --- a/dist/modules/explorer/components/DelegationChangeProposalForm.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DelegationChangeProposalForm.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/DelegationChangeProposalForm.tsx"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,4CAAuE;AACvE,iCAA8D;AAC9D,+DAA2D;AAC3D,qEAAqD;AAErD,qDAAmE;AACnE,gDAA8C;AAC9C,2DAAuD;AACvD,yDAAqD;AACrD,4GAAwG;AAmBxG,MAAM,OAAO,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC3B,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAA;AAEK,MAAM,4BAA4B,GAAoB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,EAAE;IACpG,MAAM,KAAK,GAAG,IAAA,iBAAQ,GAAE,CAAA;IACxB,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,IAAA,eAAM,EAAC,KAAK,CAAC,CAAA;IAEnC,MAAM,OAAO,GAAG,IAAA,yBAAO,EAAS;QAC9B,aAAa,EAAE,IAAA,eAAO,EACpB,GAAG,EAAE,CAAC,iBACJ,oBAAoB,EAAE,EAAE,IACrB,aAAa,EAChB,EACF,CAAC,aAAa,CAAC,CAChB;QACD,kDAAk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ACgB,GACf,EAEP,wBAAC,WAAI,IAAC,IAAI,mBACR,wBAAC,iBAAU,IAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAE,QAAQ,8BAClE,GAAG,IACN,EACb,wBAAC,iBAAU,IAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,WAAW,EAAC,OAAO,EAAE,QAAQ,aAC7E,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,QAAQ,EAAE,OAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAC5E,IACR,EAEP,uBAAC,mCAAU,IAAC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,QAAe,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC,oBAAoB,uBAEtF,IACL,GACO,IACN,CAChB,CAAA;AACH,CAAC,CAAA;AAvEY,QAAA,4BAA4B,gCAuExC"} \ No newline at end of file diff --git a/dist/modules/explorer/components/Dropdown.js b/dist/modules/explorer/components/Dropdown.js deleted file mode 100644 index ee40b48..0000000 --- a/dist/modules/explorer/components/Dropdown.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.Dropdown=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const useStyles=(0,core_1.makeStyles)(theme=>({icon:{left:0},iconOpen:{transform:'none'},selectSelect:{[theme.breakpoints.down('sm')]:{fontSize:16},paddingLeft:10,paddingTop:0,paddingBottom:0,minHeight:24},option:{'padding':8,'fontFamily':'Roboto Mono','cursor':'pointer','text-transform':'capitalize','&:hover':{background:'rgba(129, 254, 183, .4)'}}}));const Dropdown=({options,value,onSelected})=>{const classes=useStyles();const [selected,setSelected]=(0,react_1.useState)(value);(0,react_1.useEffect)(()=>{setSelected(value);},[value]);const handleSelected=event=>{setSelected(event.target.value);if(onSelected)onSelected(event.target.value);};return(0,jsx_runtime_1.jsx)(core_1.Select,{value:selected,onChange:handleSelected,classes:{select:classes.selectSelect},children:options.map(({name,value},index)=>(0,jsx_runtime_1.jsx)('option',{value:value,className:classes.option,children:name},`${name}-${index}`))});};exports.Dropdown=Dropdown; \ No newline at end of file diff --git a/dist/modules/explorer/components/Dropdown.js.map b/dist/modules/explorer/components/Dropdown.js.map deleted file mode 100644 index c8562cb..0000000 --- a/dist/modules/explorer/components/Dropdown.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/Dropdown.tsx"],"names":[],"mappings":";;;;AAAA,iCAAkD;AAClD,4CAAoF;AAQpF,MAAM,SAAS,GAAG,IAAA,iBAAU,EAAC,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC;KACR;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,MAAM;KAClB;IACD,YAAY,EAAE;QACZ,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;YAC9B,QAAQ,EAAE,EAAE;SACb;QACD,WAAW,EAAE,EAAE;QACf,UAAU,EAAE,CAAC;QACb,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,EAAE;KACd;IACD,MAAM,EAAE;QACN,SAAS,EAAE,CAAC;QACZ,YAAY,EAAE,aAAa;QAC3B,QAAQ,EAAE,SAAS;QACnB,gBAAgB,EAAE,YAAY;QAC9B,SAAS,EAAE;YACT,UAAU,EAAE,yBAAyB;SACtC;KACF;CACF,CAAC,CAAC,CAAA;AAEI,MAAM,QAAQ,GAA4B,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE;IAClF,MAAM,OAAO,GAAG,SAAS,EAAE,CAAA;IAC3B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAqB,KAAK,CAAC,CAAA;IAEnE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,WAAW,CAAC,KAAK,CAAC,CAAA;IACpB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAEX,MAAM,cAAc,GAAG,CAAC,KAAU,EAAE,EAAE;QACpC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAC/B,IAAI,UAAU;YAAE,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IAChD,CAAC,CAAA;IAED,OAAO,CACL,uBAAC,aAAM;IACL,SAAS;;QAAT,SAAS;QACT,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE;YACP,MAAM,EAAE,OAAO,CAAC,YAAY;SAC7B,YAEA,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CACvC,mCAAQ,KAAK,EAAE,KAAK,EAA2B,SAAS,EAAE,OAAO,CAAC,MAAM,YACrE,IAAI,IADoB,GAAG,IAAI,IAAI,KAAK,EAAE,CAEpC,CACV,CAAC,GACK,CACV,CAAA;AACH,CAAC,CAAA;AA7BY,QAAA,QAAQ,YA6BpB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/EstimatedTime.js b/dist/modules/explorer/components/EstimatedTime.js deleted file mode 100644 index daec005..0000000 --- a/dist/modules/explorer/components/EstimatedTime.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.EstimatedBlocks=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const EstimatedBlocks=({blocks})=>{return(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,style:{gap:32},wrap:'nowrap',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{style:{display:'flex',marginTop:2},wrap:'nowrap',children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'secondary',variant:'subtitle2',style:{marginRight:8},children:[blocks,' blocks']})})})});};exports.EstimatedBlocks=EstimatedBlocks; \ No newline at end of file diff --git a/dist/modules/explorer/components/EstimatedTime.js.map b/dist/modules/explorer/components/EstimatedTime.js.map deleted file mode 100644 index 36700a0..0000000 --- a/dist/modules/explorer/components/EstimatedTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EstimatedTime.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/EstimatedTime.tsx"],"names":[],"mappings":";;;;AAAA,4CAAoD;AAO7C,MAAM,eAAe,GAAoB,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;IAC7D,OAAO,CACL,uBAAC,WAAI,IAAC,SAAS,QAAC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAC,QAAQ,YAC/C,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,WAAI,IAAC,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,IAAI,EAAC,QAAQ,YAC3D,wBAAC,iBAAU,IAAC,KAAK,EAAC,WAAW,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,aACxE,MAAM,eACI,GACR,GACF,GACF,CACR,CAAA;AACH,CAAC,CAAA;AAZY,QAAA,eAAe,mBAY3B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/FA2Symbol.js b/dist/modules/explorer/components/FA2Symbol.js deleted file mode 100644 index 6e2a982..0000000 --- a/dist/modules/explorer/components/FA2Symbol.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.FA2Symbol=void 0;const jsx_runtime_1=require('react/jsx-runtime');const Token_1=require('../../../models/Token');const useTokenMetadata_1=require('../../../services/contracts/baseDAO/hooks/useTokenMetadata');const FA2Symbol=({contractAddress,tokenId})=>{const {data}=(0,useTokenMetadata_1.useTokenMetadata)(contractAddress,tokenId);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:data&&(data instanceof Token_1.NFT?`${data.symbol}#${data.token_id}`:data.symbol)});};exports.FA2Symbol=FA2Symbol; \ No newline at end of file diff --git a/dist/modules/explorer/components/FA2Symbol.js.map b/dist/modules/explorer/components/FA2Symbol.js.map deleted file mode 100644 index b648ecc..0000000 --- a/dist/modules/explorer/components/FA2Symbol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FA2Symbol.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/FA2Symbol.tsx"],"names":[],"mappings":";;;;AAAA,wCAAkC;AAElC,wFAAoF;AAO7E,MAAM,SAAS,GAAoB,CAAC,EAAE,eAAe,EAAE,OAAO,EAAE,EAAE,EAAE;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,mCAAgB,EAAC,eAAe,EAAE,OAAO,CAAC,CAAA;IAE3D,OAAO,2DAAG,IAAI,IAAI,CAAC,IAAI,YAAY,WAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAI,CAAA;AAC/F,CAAC,CAAA;AAJY,QAAA,SAAS,aAIrB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/FreezeDialog.js b/dist/modules/explorer/components/FreezeDialog.js deleted file mode 100644 index fbac2d6..0000000 --- a/dist/modules/explorer/components/FreezeDialog.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.FreezeDialog=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importStar(require('react'));const core_1=require('@material-ui/core');const useFreeze_1=require('../../../services/contracts/baseDAO/hooks/useFreeze');const bignumber_js_1=__importDefault(require('bignumber.js'));const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const ResponsiveDialog_1=require('./ResponsiveDialog');const router_1=require('../pages/DAO/router');const ProposalFormInput_1=require('./ProposalFormInput');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const tokenBalances_1=require('../../../services/bakingBad/tokenBalances');const utils_1=require('../../../services/contracts/utils');const CustomDialog=(0,core_1.styled)(ResponsiveDialog_1.ResponsiveDialog)({'& .MuiDialog-paperWidthSm':{minHeight:'400px !important'}});const CustomInput=(0,core_1.styled)(core_1.TextField)(({theme})=>({'& .MuiInputBase-input':{color:theme.palette.secondary.main}}));const CustomLabelsContainer=(0,core_1.styled)(core_1.Grid)({marginBottom:12});const CustomAmountLabel=(0,core_1.styled)(core_1.Typography)({fontWeight:500});const CustomMaxLabel=(0,core_1.styled)(core_1.Typography)({fontSize:16,paddingBottom:5,textDecoration:'underline',textUnderlineOffset:6,cursor:'pointer',marginLeft:12});const FreezeDialog=({freeze})=>{const [open,setOpen]=react_1.default.useState(false);const [amount,setAmount]=react_1.default.useState(0);const daoId=(0,router_1.useDAOID)();const {mutate}=(0,useFreeze_1.useFreeze)();const {data:dao,ledger}=(0,useDAO_1.useDAO)(daoId);const {account}=(0,useTezos_1.useTezos)();const [showMax,setShowMax]=react_1.default.useState(false);const [maxDeposit,setMaxDeposit]=react_1.default.useState(0);const [maxWithdraw,setMaxWithdraw]=react_1.default.useState(0);const handleClickOpen=()=>{setOpen(true);};const handleClose=()=>{setOpen(false);setAmount(0);};const onSubmit=(0,react_1.useCallback)(()=>__awaiter(void 0,void 0,void 0,function*(){if(dao){mutate({dao,amount:new bignumber_js_1.default(amount),freeze});handleClose();}}),[amount,dao,mutate,freeze]);(0,react_1.useMemo)(()=>__awaiter(void 0,void 0,void 0,function*(){if(!ledger){return setShowMax(false);}else{if(account&&dao){const availableBalance=yield(0,tokenBalances_1.getUserTokenBalance)(account.toString(),dao.data.network,dao.data.token.contract);setShowMax(true);if(availableBalance){const formattedBalance=(0,utils_1.parseUnits)(new bignumber_js_1.default(availableBalance),dao.data.token.decimals).dp(10,1).toNumber();setMaxDeposit(formattedBalance);}const userLedger=ledger.find(l=>l.holder.address.toLowerCase()===account.toLowerCase());if(userLedger){if(userLedger.available_balance){setMaxWithdraw(userLedger.available_balance.dp(10,1).toNumber());}}}}}),[ledger,account,dao]);return(0,jsx_runtime_1.jsxs)('div',{children:[(0,jsx_runtime_1.jsx)(core_1.Button,{onClick:handleClickOpen,variant:'contained',color:'secondary',children:freeze?'Deposit':'Withdraw'}),(0,jsx_runtime_1.jsx)(CustomDialog,{open:open,onClose:handleClose,title:freeze?'DEPOSIT':'WITHDRAW',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:36},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'body2',color:'textPrimary',children:['Confirm the ',freeze?'deposit':'withdrawal',' of your tokens']})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsxs)(CustomLabelsContainer,{item:true,container:true,direction:'row',justifyContent:'space-between',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:3,children:(0,jsx_runtime_1.jsx)(CustomAmountLabel,{children:'Amount'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',xs:9,justifyContent:'flex-end',children:[showMax&&freeze?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{children:[maxDeposit,' ',dao===null||dao===void 0?void 0:dao.data.token.symbol]}),(0,jsx_runtime_1.jsx)(CustomMaxLabel,{color:'secondary',onClick:()=>setAmount(maxDeposit),children:'Use Max'})]}):null,showMax&&!freeze?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{children:[maxWithdraw,' ',dao===null||dao===void 0?void 0:dao.data.token.symbol]}),(0,jsx_runtime_1.jsx)(CustomMaxLabel,{color:'secondary',onClick:()=>setAmount(maxWithdraw),children:'Use Max'})]}):null]})]}),(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{children:(0,jsx_runtime_1.jsx)(CustomInput,{value:amount,type:'number',placeholder:'0',onChange:newValue=>setAmount(newValue.target.value),onClick:newValue=>{if(amount===0){setAmount('');}return;},inputProps:{min:0},InputProps:{disableUnderline:true,endAdornment:(0,jsx_runtime_1.jsx)(core_1.InputAdornment,{position:'end',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'secondary',children:dao===null||dao===void 0?void 0:dao.data.token.symbol})})}})})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.Button,{variant:'contained',color:'secondary',disabled:!amount,onClick:onSubmit,children:'Submit'})})]})})]});};exports.FreezeDialog=FreezeDialog; \ No newline at end of file diff --git a/dist/modules/explorer/components/FreezeDialog.js.map b/dist/modules/explorer/components/FreezeDialog.js.map deleted file mode 100644 index 7014517..0000000 --- a/dist/modules/explorer/components/FreezeDialog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FreezeDialog.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/FreezeDialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAmD;AACnD,4CAA+F;AAC/F,0EAAsE;AACtE,gEAAoC;AACpC,+DAA2D;AAC3D,yDAAqD;AACrD,gDAA8C;AAC9C,2DAAuD;AACvD,6DAAyD;AACzD,oEAAsE;AACtE,oDAAiE;AAEjE,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,mCAAgB,CAAC,CAAC;IAC5C,2BAA2B,EAAE;QAC3B,SAAS,EAAE,kBAAkB;KAC9B;CACF,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,gBAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACpD,uBAAuB,EAAE;QACvB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;KACpC;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,qBAAqB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IACzC,YAAY,EAAE,EAAE;CACjB,CAAC,CAAA;AAEF,MAAM,iBAAiB,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IAC3C,UAAU,EAAE,G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QAAC,SAAS,QAAC,SAAS,EAAC,KAAK,EAAC,UAAU,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,YAC9E,uBAAC,aAAM,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,uBAE3E,GACJ,IACF,GACM,IACX,CACP,CAAA;AACH,CAAC,CAAA;AAtIY,QAAA,YAAY,gBAsIxB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/GuardianChangeProposalForm.js b/dist/modules/explorer/components/GuardianChangeProposalForm.js deleted file mode 100644 index 0e86eb0..0000000 --- a/dist/modules/explorer/components/GuardianChangeProposalForm.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.GuardianChangeProposalForm=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const ProposalFormSendButton_1=require('./ProposalFormSendButton');const react_hook_form_1=require('react-hook-form');const router_1=require('../pages/DAO/router');const ProposalFormInput_1=require('./ProposalFormInput');const useProposeGuardianChange_1=require('../../../services/contracts/baseDAO/hooks/useProposeGuardianChange');const ResponsiveDialog_1=require('./ResponsiveDialog');const Content=(0,core_1.styled)(core_1.Grid)({});const GuardianChangeProposalForm=({open,handleClose,defaultValues})=>{const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);const methods=(0,react_hook_form_1.useForm)({defaultValues:(0,react_1.useMemo)(()=>Object.assign({newGuardianAddress:''},defaultValues),[defaultValues])});const newGuardianAddress=methods.watch('newGuardianAddress');(0,react_1.useEffect)(()=>{methods.reset(defaultValues);},[defaultValues,methods]);const {mutate}=(0,useProposeGuardianChange_1.useProposeGuardianChange)();const onSubmit=(0,react_1.useCallback)(values=>{if(dao){mutate({dao,newGuardianAddress:values.newGuardianAddress});handleClose();}},[dao,handleClose,mutate]);return(0,jsx_runtime_1.jsx)(react_hook_form_1.FormProvider,Object.assign({},methods,{children:(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ResponsiveDialog,{open:open,onClose:handleClose,'aria-labelledby':'alert-dialog-title','aria-describedby':'alert-dialog-description',title:'Update Guardian',children:(0,jsx_runtime_1.jsxs)(Content,{container:true,direction:'column',style:{gap:18},children:[dao&&(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'inherit',style:{marginBottom:'7px'},children:['Current Guardian:',' ',(0,jsx_runtime_1.jsx)('span',{style:{fontWeight:300,fontSize:'16px',marginLeft:'-5px'},children:dao.data.guardian})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{label:'New Guardian Address',children:(0,jsx_runtime_1.jsx)(react_hook_form_1.Controller,{control:methods.control,name:`newGuardianAddress`,render:({field})=>(0,jsx_runtime_1.jsx)(core_1.TextField,Object.assign({},field,{type:'text',placeholder:' tz1...',InputProps:{disableUnderline:true}}))})})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{align:'left',variant:'subtitle2',color:'textPrimary',display:'inline',children:['Proposal Fee:',' ']}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{align:'left',variant:'subtitle2',color:'secondary',display:'inline',style:{fontWeight:300},children:[dao&&dao.data.extra.frozen_extra_value.toString(),' ',dao?dao.data.token.symbol:'']})]}),(0,jsx_runtime_1.jsx)(ProposalFormSendButton_1.SendButton,{onClick:methods.handleSubmit(onSubmit),disabled:!dao||!newGuardianAddress,children:'Submit'})]})})}));};exports.GuardianChangeProposalForm=GuardianChangeProposalForm; \ No newline at end of file diff --git a/dist/modules/explorer/components/GuardianChangeProposalForm.js.map b/dist/modules/explorer/components/GuardianChangeProposalForm.js.map deleted file mode 100644 index 377f51a..0000000 --- a/dist/modules/explorer/components/GuardianChangeProposalForm.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GuardianChangeProposalForm.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/GuardianChangeProposalForm.tsx"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,4CAAuE;AACvE,iCAA8D;AAC9D,+DAA2D;AAC3D,qEAAqD;AACrD,qDAAmE;AACnE,gDAA8C;AAC9C,2DAAuD;AACvD,iHAA6G;AAC7G,yDAAqD;AAmBrD,MAAM,OAAO,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,EAAE,CAAC,CAAA;AAEzB,MAAM,0BAA0B,GAAoB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,EAAE;IAClG,MAAM,KAAK,GAAG,IAAA,iBAAQ,GAAE,CAAA;IACxB,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,IAAA,eAAM,EAAC,KAAK,CAAC,CAAA;IAEnC,MAAM,OAAO,GAAG,IAAA,yBAAO,EAAS;QAC9B,aAAa,EAAE,IAAA,eAAO,EACpB,GAAG,EAAE,CAAC,iBACJ,kBAAkB,EAAE,EAAE,IACnB,aAAa,EAChB,EACF,CAAC,aAAa,CAAC,CAChB;QACD,kDAAkD;KACnD,CAAC,CAAA;IAEF,MAAM,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAA;IAE9D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;IAC9B,CAAC,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAA;IAE5B,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,mDAAwB,GAAE,CAAA;IAE7C,MAAM,QAAQ,GAAG,IAAA,mBAAW,EAC1B,CAAC,MAAc,EAAE,EAAE;QACjB,IAAI,GAAG,EAAE;YACP,MAAM,CAAC,EAAE,GA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,WAAW,EAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAE,QAAQ,8BAClE,GAAG,IACN,EACb,wBAAC,iBAAU,IACT,KAAK,EAAC,MAAM,EACZ,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,aAEzB,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,QAAQ,EAAE,OAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAC5E,IACR,EAEP,uBAAC,mCAAU,IAAC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,QAAe,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC,kBAAkB,uBAEpF,IACL,GACO,IACN,CAChB,CAAA;AACH,CAAC,CAAA;AArFY,QAAA,0BAA0B,8BAqFtC"} \ No newline at end of file diff --git a/dist/modules/explorer/components/Hero.js b/dist/modules/explorer/components/Hero.js deleted file mode 100644 index 0a61061..0000000 --- a/dist/modules/explorer/components/Hero.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i *':{height:'100%'}});const Hero=_a=>{var {children}=_a,props=__rest(_a,['children']);return(0,jsx_runtime_1.jsx)(Container,Object.assign({item:true},props,{children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:'space-between',alignItems:'center',children:children})}));};exports.Hero=Hero; \ No newline at end of file diff --git a/dist/modules/explorer/components/Hero.js.map b/dist/modules/explorer/components/Hero.js.map deleted file mode 100644 index 68dde67..0000000 --- a/dist/modules/explorer/components/Hero.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Hero.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/Hero.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAA2D;AAE3D,yDAAqD;AAErD,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,mCAAgB,CAAC,CAAC;IACzC,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,YAAY;IAEzB,OAAO,EAAE;QACP,MAAM,EAAE,MAAM;KACf;CACF,CAAC,CAAA;AAEK,MAAM,IAAI,GAAwB,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,cAApB,YAAsB,CAAF;IAC5D,OAAO,CACL,uBAAC,SAAS,kBAAC,IAAI,UAAK,KAAK,cACvB,uBAAC,WAAI,IAAC,SAAS,QAAC,cAAc,EAAC,eAAe,EAAC,UAAU,EAAC,QAAQ,YAC/D,QAAQ,GACJ,IACG,CACb,CAAA;AACH,CAAC,CAAA;AARY,QAAA,IAAI,QAQhB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/HeroTitle.js b/dist/modules/explorer/components/HeroTitle.js deleted file mode 100644 index 7e1e4a2..0000000 --- a/dist/modules/explorer/components/HeroTitle.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.HeroTitle=void 0;const core_1=require('@material-ui/core');exports.HeroTitle=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontSize:30,fontWeight:500,color:theme.palette.text.primary,lineHeight:0.8,marginBottom:'9px',['@media (max-width:1030px)']:{fontSize:25}})); \ No newline at end of file diff --git a/dist/modules/explorer/components/HeroTitle.js.map b/dist/modules/explorer/components/HeroTitle.js.map deleted file mode 100644 index ee761b0..0000000 --- a/dist/modules/explorer/components/HeroTitle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HeroTitle.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/HeroTitle.tsx"],"names":[],"mappings":";;;AAAA,4CAAsD;AAEzC,QAAA,SAAS,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1D,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,GAAG;IACf,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;IACjC,UAAU,EAAE,GAAG;IACf,YAAY,EAAE,KAAK;IAEnB,CAAC,2BAA2B,CAAC,EAAE;QAC7B,QAAQ,EAAE,EAAE;KACb;CACF,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ItemDialog.js b/dist/modules/explorer/components/ItemDialog.js deleted file mode 100644 index 197da16..0000000 --- a/dist/modules/explorer/components/ItemDialog.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.RegistryItemDialog=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const ResponsiveDialog_1=require('./ResponsiveDialog');const ProposalFormInput_1=require('./ProposalFormInput');const RegistryItemDialog=({item:{key,value},open,handleClose})=>{return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ResponsiveDialog,{open:open,onClose:handleClose,title:key,children:(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{label:'Value',children:(0,jsx_runtime_1.jsx)(core_1.TextField,{InputProps:{disableUnderline:true},multiline:true,maxRows:Infinity,value:value,disabled:true})})})});};exports.RegistryItemDialog=RegistryItemDialog; \ No newline at end of file diff --git a/dist/modules/explorer/components/ItemDialog.js.map b/dist/modules/explorer/components/ItemDialog.js.map deleted file mode 100644 index bcd4496..0000000 --- a/dist/modules/explorer/components/ItemDialog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ItemDialog.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ItemDialog.tsx"],"names":[],"mappings":";;;;AAAA,4CAA6C;AAE7C,yDAAqD;AACrD,2DAAuD;AAEhD,MAAM,kBAAkB,GAI1B,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;IACnD,OAAO,CACL,2DACE,uBAAC,mCAAgB,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,YAC5D,uBAAC,qCAAiB,IAAC,KAAK,EAAE,OAAO,YAC/B,uBAAC,gBAAS,IAAC,UAAU,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE,SAAS,QAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,SAAG,GACvF,GACH,GAClB,CACJ,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,kBAAkB,sBAc9B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/NFT.js b/dist/modules/explorer/components/NFT.js deleted file mode 100644 index 33006c9..0000000 --- a/dist/modules/explorer/components/NFT.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.NFT=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const ipfs_1=require('../../../services/ipfs');const StyledLink=(0,core_1.styled)(core_1.Link)({display:'block',height:'100%'});const NFTImg=(0,core_1.styled)('img')({maxHeight:'100%',maxWidth:'100%',width:'auto',display:'block'});const NFTVideo=(0,core_1.styled)('video')({maxHeight:'100%',maxWidth:'100%',width:'auto',margin:'auto',display:'block'});const NFTAudio=(0,core_1.styled)('audio')({maxHeight:'100%',maxWidth:'100%',width:'256px',margin:'auto',display:'block'});const NFTContainerGrid=(0,core_1.styled)(core_1.Grid)({height:'100%'});const NFTContainer=({children})=>(0,jsx_runtime_1.jsx)(NFTContainerGrid,{container:true,direction:'column',justifyContent:'center',alignItems:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:children})});const NFT=({qmHash,name,mediaType})=>{return(0,jsx_runtime_1.jsx)(StyledLink,{href:`${ipfs_1.IPFS_GATEWAY_URI}/${qmHash}`,rel:'noopener',target:'_blank',style:{height:'100%',display:'block'},onClick:e=>{e.stopPropagation();},children:mediaType==='image'?(0,jsx_runtime_1.jsx)(NFTImg,{src:`${ipfs_1.IPFS_GATEWAY_URI}/${qmHash}`,alt:`${name}-thumbnail`}):mediaType==='audio'?(0,jsx_runtime_1.jsx)(NFTContainer,{children:(0,jsx_runtime_1.jsx)(NFTAudio,{src:`${ipfs_1.IPFS_GATEWAY_URI}/${qmHash}`,controls:true})}):mediaType==='video'?(0,jsx_runtime_1.jsx)(NFTVideo,{src:`${ipfs_1.IPFS_GATEWAY_URI}/${qmHash}`,controls:true,autoPlay:true,muted:true}):(0,jsx_runtime_1.jsx)(NFTContainer,{children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',color:'textPrimary',children:'No Media Available'})})});};exports.NFT=NFT; \ No newline at end of file diff --git a/dist/modules/explorer/components/NFT.js.map b/dist/modules/explorer/components/NFT.js.map deleted file mode 100644 index b256df5..0000000 --- a/dist/modules/explorer/components/NFT.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NFT.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/NFT.tsx"],"names":[],"mappings":";;;;AAAA,4CAAkE;AAElE,wCAAgD;AAGhD,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC9B,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,MAAM;CACf,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,IAAA,aAAM,EAAC,KAAK,CAAC,CAAC;IAC3B,SAAS,EAAE,MAAM;IACjB,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,OAAO;CACjB,CAAC,CAAA;AAEF,MAAM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,EAAE,GAAG,IAAI,YAAY,GAAI,CAC3E,CAAC,CAAC,CAAC,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,CAC1B,uBAAC,YAAY,cACX,uBAAC,QAAQ,IAAC,GAAG,EAAE,GAAG,uBAAgB,IAAI,MAAM,EAAE,EAAE,QAAQ,SAAG,GAC9C,CAChB,CAAC,CAAC,CAAC,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,CAC1B,uBAAC,QAAQ,IAAC,GAAG,EAAE,GAAG,uBAAgB,IAAI,MAAM,EAAE,EAAE,QAAQ,QAAC,QAAQ,QAAC,KAAK,SAAG,CAC3E,CAAC,CAAC,CAAC,CACF,uBAAC,YAAY,cACX,uBAAC,iBAAU,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,mCAErC,GACA,CAChB,GACU,CACd,CAAA;AACH,CAAC,CAAA;AA5BY,QAAA,GAAG,OA4Bf"} \ No newline at end of file diff --git a/dist/modules/explorer/components/NFTDialog.js b/dist/modules/explorer/components/NFTDialog.js deleted file mode 100644 index a0f3a53..0000000 --- a/dist/modules/explorer/components/NFTDialog.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.NFTDialog=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const hex_to_rgba_1=__importDefault(require('hex-to-rgba'));const react_1=require('react');const NFT_1=require('./NFT');const UserBadge_1=require('./UserBadge');const ProposalForm_1=require('./ProposalForm');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const ResponsiveDialog_1=require('./ResponsiveDialog');const useCycleInfo_1=require('../../../services/contracts/baseDAO/hooks/useCycleInfo');const InfoIcon_1=require('./styled/InfoIcon');const router_1=require('../pages/DAO/router');const CustomDialog=(0,core_1.styled)(ResponsiveDialog_1.ResponsiveDialog)({'& .MuiPaper-root':{width:1010,height:822,maxWidth:'100%',maxHeight:'100%'}});const TitleText=(0,core_1.styled)(core_1.Typography)({fontSize:26,fontWeight:500,marginBottom:12});const SubtitleText=(0,core_1.styled)(core_1.Typography)({fontSize:18,fontWeight:500,marginBottom:12});const Tag=(0,core_1.styled)(core_1.Grid)(({theme})=>({boxSizing:'border-box',padding:6,background:(0,hex_to_rgba_1.default)(theme.palette.secondary.main,0.15),borderRadius:4}));const NFTContainer=(0,core_1.styled)(core_1.Grid)({maxWidth:458,maxHeight:415});const NFTDialog=({nft,onClose,open})=>{const [openTransfer,setOpenTransfer]=(0,react_1.useState)(false);const {account}=(0,useTezos_1.useTezos)();const [defaultValues,setDefaultValues]=(0,react_1.useState)();const onOpenTransferModal=nft=>{setDefaultValues({nftTransferForm:{transfers:[{recipient:account,amount:1,asset:nft}]}});setOpenTransfer(true);};const onClick=(e,nft)=>{e.stopPropagation();onOpenTransferModal(nft);};const onCloseTransfer=()=>{setOpenTransfer(false);};const daoId=(0,router_1.useDAOID)();const shouldDisable=(0,useCycleInfo_1.useIsProposalButtonDisabled)(daoId);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(CustomDialog,{onClose:onClose,open:open,children:nft&&(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:32},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:'space-between',style:{gap:32},children:[(0,jsx_runtime_1.jsx)(NFTContainer,{item:true,children:(0,jsx_runtime_1.jsx)(NFT_1.NFT,{qmHash:nft.artifact_hash,name:nft.name,mediaType:nft.mediaType})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:26},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(TitleText,{color:'textPrimary',children:nft.name}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',variant:'body1',children:[nft.symbol,'#',nft.token_id,' \u2022 ',nft.preferredFormat]})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'body1',children:nft.description})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(core_1.Button,{variant:'contained',color:'secondary',onClick:e=>onClick(e,nft),disabled:shouldDisable,children:'PROPOSE TRANSFER'}),shouldDisable&&(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Not on proposal creation period',children:(0,jsx_runtime_1.jsx)(InfoIcon_1.InfoIcon,{color:'secondary'})})]})]})})]})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(SubtitleText,{color:'textPrimary',variant:'body1',children:'Creators'}),nft.creators.length?nft.creators.map((creator,i)=>(0,jsx_runtime_1.jsx)(UserBadge_1.UserBadge,{address:creator,size:35},`creator-${i}`)):(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'body1',children:'Unknown'})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(SubtitleText,{color:'textPrimary',variant:'body1',children:'Tags'}),(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,style:{gap:12},children:nft.tags.map((tag,i)=>(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(Tag,{color:'secondary',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'secondary',children:tag.toUpperCase()})})},`tag-${i}`))})]})]})})}),(0,jsx_runtime_1.jsx)(ProposalForm_1.ProposalFormContainer,{open:openTransfer,handleClose:onCloseTransfer,defaultValues:defaultValues,defaultTab:1})]});};exports.NFTDialog=NFTDialog; \ No newline at end of file diff --git a/dist/modules/explorer/components/NFTDialog.js.map b/dist/modules/explorer/components/NFTDialog.js.map deleted file mode 100644 index 01400ee..0000000 --- a/dist/modules/explorer/components/NFTDialog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NFTDialog.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/NFTDialog.tsx"],"names":[],"mappings":";;;;;;;AAAA,4CAAoF;AACpF,8DAAmC;AACnC,iCAAuC;AACvC,+BAA2B;AAC3B,2CAAuC;AAEvC,iDAAiF;AACjF,6DAAyD;AACzD,yDAAqD;AACrD,yFAAoG;AACpG,gDAA4C;AAC5C,gDAA8C;AAE9C,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,mCAAgB,CAAC,CAAC;IAC5C,kBAAkB,EAAE;QAClB,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,MAAM;KAClB;CACF,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACnC,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,GAAG;IACf,YAAY,EAAE,EAAE;CACjB,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACtC,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,GAAG;IACf,YAAY,EAAE,EAAE;CACjB,CAAC,CAAA;AAEF,MAAM,GAAG,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,CAAC;IACzD,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,CAAC;IACV,UAAU,EAAE,IAAA,qBAAS,EAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACzD,YAAY,EAAE,CAAC;CAChB,CAAC,CAAC,CAAA;AAEH,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/components/NFTTransfer.js deleted file mode 100644 index b0d6e5b..0000000 --- a/dist/modules/explorer/components/NFTTransfer.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i{var _a,_b,_c;const {control,getValues,setValue,watch,reset,formState:{errors,touchedFields:touched}}=(0,react_hook_form_1.useFormContext)();const {fields,append}=(0,react_hook_form_1.useFieldArray)({control,name:'nftTransferForm.transfers'});const values=getValues();const [isBatch,setIsBatch]=(0,react_1.useState)(values.nftTransferForm.isBatch);const [activeTransfer,setActiveTransfer]=react_1.default.useState(1);const daoId=(0,router_1.useDAOID)();const {nftHoldings}=(0,useDAOHoldings_1.useDAONFTHoldings)(daoId);const handleIsBatchChange=()=>{setIsBatch(!isBatch);setValue('nftTransferForm.isBatch',!isBatch);setActiveTransfer(1);};const recipientError=(_c=(_b=(_a=errors.nftTransferForm)===null||_a===void 0?void 0:_a.transfers)===null||_b===void 0?void 0:_b[activeTransfer-1])===null||_c===void 0?void 0:_c.recipient;const {transfers}=watch('nftTransferForm');const activeAsset=transfers[activeTransfer-1].asset;const takenNFTs=transfers.map(t=>{var _a,_b;return`${(_a=t.asset)===null||_a===void 0?void 0:_a.contract}-${(_b=t.asset)===null||_b===void 0?void 0:_b.token_id}`;});const nonSelectedNFTs=nftHoldings?nftHoldings.filter(nft=>{var _a,_b;return!takenNFTs.includes(`${(_a=nft===null||nft===void 0?void 0:nft.token)===null||_a===void 0?void 0:_a.contract}-${(_b=nft===null||nft===void 0?void 0:nft.token)===null||_b===void 0?void 0:_b.token_id}`);}):[];const nftOptions=nonSelectedNFTs.map(n=>n.token);(0,react_1.useMemo)(()=>{if(!open){reset();}},[open,reset]);return(0,jsx_runtime_1.jsx)(core_1.DialogContent,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:31},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(BatchBar_1.BatchBar,{isBatch:isBatch,stateIsBatch:values.nftTransferForm.isBatch,handleIsBatchChange:handleIsBatchChange,onClickAdd:()=>{append(emptyTransfer);setActiveTransfer(activeTransfer+1);},items:values.nftTransferForm.transfers,activeItem:activeTransfer,setActiveItem:index=>setActiveTransfer(index+1)})}),fields.map((field,index)=>{var _a,_b,_c;return index===activeTransfer-1&&(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(ProposalFormInput_1.ProposalFormInput,{label:'Recipient',children:[(0,jsx_runtime_1.jsx)(react_hook_form_1.Controller,{name:`nftTransferForm.transfers.${index}.recipient`,control:control,render:({field})=>(0,jsx_runtime_1.jsx)(core_1.TextField,Object.assign({},field,{type:'string',placeholder:'Type an Address Here',InputProps:{disableUnderline:true}}))},field.id),recipientError&&((_c=(_b=(_a=touched.nftTransferForm)===null||_a===void 0?void 0:_a.transfers)===null||_b===void 0?void 0:_b[activeTransfer-1])===null||_c===void 0?void 0:_c.recipient)?(0,jsx_runtime_1.jsx)(ErrorText_1.ErrorText,{children:recipientError}):null]}),(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{label:'NFT ID',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsx)(react_hook_form_1.Controller,{name:`nftTransferForm.transfers.${index}.asset`,control:control,render:_a=>{var _b=_a.field,{onChange}=_b,props=__rest(_b,['onChange']);return(0,jsx_runtime_1.jsx)(AutoCompleteField,Object.assign({PaperComponent:AutoCompletePaper,options:nftOptions,getOptionLabel:option=>`${option.symbol}#${option.token_id}`,renderInput:params=>(0,jsx_runtime_1.jsx)(core_1.TextField,Object.assign({},params,{label:'Select NFT',InputProps:Object.assign(Object.assign({},params.InputProps),{disableUnderline:true})})),onChange:(e,data)=>onChange(data)},props));}},field.id),activeAsset&&(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:'center',children:(0,jsx_runtime_1.jsx)(NFTContainer,{item:true,children:(0,jsx_runtime_1.jsx)(NFT_1.NFT,{qmHash:activeAsset.artifact_hash,name:activeAsset.name,mediaType:activeAsset.mediaType})})})})]})})]});})]})});};exports.NFTTransferForm=NFTTransferForm; \ No newline at end of file diff --git a/dist/modules/explorer/components/NFTTransfer.js.map b/dist/modules/explorer/components/NFTTransfer.js.map deleted file mode 100644 index a1705ac..0000000 --- a/dist/modules/explorer/components/NFTTransfer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NFTTransfer.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/NFTTransfer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgD;AAChD,4CAAiF;AACjF,oFAAmF;AACnF,4EAAwE;AACxE,yCAA0B;AAC1B,0CAA+C;AAE/C,qDAA2E;AAC3E,yDAAqD;AAErD,yCAAqC;AACrC,2DAAuD;AACvD,gDAA8C;AAE9C,M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MAAM,IAAK,MAAmB,CAAC,QAAQ,EAAE,EAC3F,WAAW,EAAE,MAAM,CAAC,EAAE,CAAC,CACrB,uBAAC,gBAAS,oBACJ,MAAM,IACV,KAAK,EAAC,YAAY,EAClB,UAAU,kCAAO,MAAM,CAAC,UAAU,KAAE,gBAAgB,EAAE,IAAI,OAC1D,CACH,EACD,QAAQ,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IACjC,KAAK,EACT,CACH,CAAA;6CAAA,IAlBI,KAAK,CAAC,EAAE,CAmBb,EACD,WAAW,IAAI,CACd,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,WAAI,IAAC,SAAS,QAAC,cAAc,EAAC,QAAQ,YACrC,uBAAC,YAAY,IAAC,IAAI,kBAChB,uBAAC,SAAG,IACF,MAAM,EAAE,WAAW,CAAC,aAAa,EACjC,IAAI,EAAE,WAAW,CAAC,IAAI,EACtB,SAAS,EAAE,WAAW,CAAC,SAAS,GAChC,GACW,GACV,GACF,CACR,IACI,GACW,IACnB,CACJ,CAAA;iBAAA,CACJ,IACI,GACO,CACjB,CAAA;AACH,CAAC,CAAA;AAjIY,QAAA,eAAe,mBAiI3B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/NavigationMenu.js b/dist/modules/explorer/components/NavigationMenu.js deleted file mode 100644 index 6a510e6..0000000 --- a/dist/modules/explorer/components/NavigationMenu.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.NavigationMenu=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const home_svg_1=require('../../../assets/logos/home.svg');const voting_svg_1=require('../../../assets/logos/voting.svg');const treasury_svg_1=require('../../../assets/logos/treasury.svg');const list_svg_1=require('../../../assets/logos/list.svg');const user_svg_1=require('../../../assets/logos/user.svg');const react_1=require('react');const router_1=require('../pages/DAO/router');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const react_router_1=require('react-router');const react_router_dom_1=require('react-router-dom');const debounce_1=require('../utils/debounce');const Container=(0,core_1.styled)(core_1.Grid)(({theme})=>({width:'100%',background:theme.palette.primary.main,position:'sticky',top:'0px'}));const InnerContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({width:'1000px',margin:'auto',justifyContent:'space-between',['@media (max-width:1167px)']:{width:'86vw'}}));const PageItem=(0,core_1.styled)(core_1.Grid)(({theme,isSelected})=>({'height':'60px','display':'flex','alignItems':'center','padding':'0 8px','borderTop':'2px solid transparent','borderBottom':isSelected?'2px solid'+theme.palette.secondary.main:'2px solid transparent','transition':isSelected?'0s ease-in':'.1s ease-out','& > a > *':{height:'100%'},'&:hover':{'& > a > * > * > * > * > *':{fill:isSelected?theme.palette.secondary.main:theme.palette.secondary.main,stroke:isSelected?theme.palette.secondary.main:theme.palette.secondary.main,transition:isSelected?'none':'.15s ease-in'}},'& > a > * > * > * > * > *':{transition:'.15s ease-out'},'& > a > * > * > *':{transition:'.15s ease-out'},[theme.breakpoints.down('sm')]:{width:'45px'}}));const PageItemBg=(0,core_1.styled)(core_1.Grid)(({theme,isSelected})=>({alignItems:'center',justifyContent:'center',gap:15}));const IconContainer=(0,core_1.styled)('span')(({theme,isSelected})=>({'height':'25px','display':'flex','justifyContent':'center','& > svg > *':{fill:isSelected?theme.palette.secondary.main:theme.palette.text.primary,stroke:isSelected?theme.palette.secondary.main:theme.palette.text.primary}}));const NavText=(0,core_1.styled)(core_1.Typography)(({theme,isSelected})=>({'display':'flex','justifyContent':'center','color':isSelected?theme.palette.secondary.main:theme.palette.text.primary,'&:hover':{color:`${theme.palette.secondary.main} !important`}}));const getPages=daoId=>[{pathId:'overview',name:'Home',icon:home_svg_1.ReactComponent,href:`/explorer/dao/${daoId}`},{pathId:'proposals',name:'Proposals',icon:voting_svg_1.ReactComponent,href:`/explorer/dao/${daoId}/proposals`},{pathId:'treasury',name:'Treasury',icon:treasury_svg_1.ReactComponent,href:`/explorer/dao/${daoId}/treasury`},{pathId:'registry',name:'Registry',icon:list_svg_1.ReactComponent,href:`/explorer/dao/${daoId}/registry`},{pathId:'user',name:'User',icon:user_svg_1.ReactComponent,href:`/explorer/dao/${daoId}/user`}];const StyledBottomBar=(0,core_1.styled)(core_1.Grid)(({theme})=>({position:'fixed',height:55,width:'100%',bottom:0,backgroundColor:theme.palette.primary.main,boxShadow:'0px -4px 7px -4px rgba(0,0,0,0.2)',zIndex:10000,transition:'bottom 0.5s'}));const BottomBarItems=(0,core_1.styled)(core_1.Grid)({width:'86vw',margin:'0 auto',justifyContent:'space-between'});const BottomNavBar=({children})=>{const [prevScrollPos,setPrevScrollPos]=(0,react_1.useState)(0);const [visible,setVisible]=(0,react_1.useState)(true);(0,react_1.useEffect)(()=>{const handleScroll=(0,debounce_1.debounce)(()=>{const currentScrollPos=23;setVisible(prevScrollPos>currentScrollPos||currentScrollPos<10);setPrevScrollPos(currentScrollPos);},100);},[prevScrollPos,visible]);return(0,jsx_runtime_1.jsx)(StyledBottomBar,{container:true,direction:'row',children:(0,jsx_runtime_1.jsx)(BottomBarItems,{container:true,children:children})});};const NavigationMenu=({disableMobileMenu})=>{const [pages,setPages]=(0,react_1.useState)([]);const {account}=(0,useTezos_1.useTezos)();const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);const path=(0,react_router_1.useLocation)();const pathId=path.pathname.split('/').slice(-1)[0];const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down(960));(0,react_1.useEffect)(()=>{if(dao){const disabledPages=[];if(!account){disabledPages.push('User');}setPages(getPages(daoId).filter(page=>!disabledPages.includes(page.name)));}},[account,dao,daoId]);return!isMobileSmall||disableMobileMenu?(0,jsx_runtime_1.jsx)(Container,{container:true,children:(0,jsx_runtime_1.jsx)(InnerContainer,{container:true,children:pages.map((page,i)=>(0,jsx_runtime_1.jsx)(PageItem,{isSelected:pathId===page.pathId,item:true,children:(0,jsx_runtime_1.jsx)(react_router_dom_1.Link,{to:page.href,children:(0,jsx_runtime_1.jsxs)(PageItemBg,{isSelected:pathId===page.pathId,container:true,children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(IconContainer,{isSelected:pathId===page.pathId,children:(0,jsx_runtime_1.jsx)(page.icon,{})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(NavText,{isSelected:pathId===page.pathId,children:page.name})})]})})},`page-${i}`))})}):(0,jsx_runtime_1.jsx)(BottomNavBar,{children:pages.map((page,i)=>(0,jsx_runtime_1.jsx)(PageItem,{isSelected:pathId===page.pathId,container:true,item:true,alignItems:'center',children:(0,jsx_runtime_1.jsx)(react_router_dom_1.Link,{to:page.href,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,alignItems:'center',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(IconContainer,{isSelected:pathId===page.pathId,children:(0,jsx_runtime_1.jsx)(page.icon,{})})})})})},`page-${i}`))});};exports.NavigationMenu=NavigationMenu; \ No newline at end of file diff --git a/dist/modules/explorer/components/NavigationMenu.js.map b/dist/modules/explorer/components/NavigationMenu.js.map deleted file mode 100644 index c27ddb2..0000000 --- a/dist/modules/explorer/components/NavigationMenu.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NavigationMenu.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/NavigationMenu.tsx"],"names":[],"mappings":";;;;AAAA,4CAAmG;AACnG,oDAAmE;AACnE,wDAAsE;AACtE,4DAA0E;AAC1E,oDAAsE;AACtE,oDAAkE;AAClE,iCAAkD;AAClD,gDAA8C;AAC9C,+DAA2D;AAC3D,6DAAyD;AACzD,+CAA0C;AAC1C,uDAAuC;AACvC,gDAA4C;AAE5C,MAAM,SAAS,GAAG,IAAA,aAAM,EA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BAAI,IAAC,EAAE,EAAE,IAAI,CAAC,IAAI,YACjB,wBAAC,UAAU,IAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC,MAAM,EAAE,SAAS,mBACvD,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,aAAa,IAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC,MAAM,YAC/C,uBAAC,IAAI,CAAC,IAAI,KAAG,GACC,GACX,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,OAAO,IAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC,MAAM,YAAG,IAAI,CAAC,IAAI,GAAW,GAC7D,IACI,GACR,IAZM,QAAQ,CAAC,EAAE,CAaf,CACZ,CAAC,GACa,GACP,CACb,CAAC,CAAC,CAAC,CACF,uBAAC,YAAY,cACV,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,QAAQ,IAAmB,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC,MAAM,EAAE,SAAS,QAAC,IAAI,QAAC,UAAU,EAAC,QAAQ,YAChG,uBAAC,uBAAI,IAAC,EAAE,EAAE,IAAI,CAAC,IAAI,YACjB,uBAAC,WAAI,IAAC,SAAS,QAAC,UAAU,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,YACzD,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,aAAa,IAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC,MAAM,YAC/C,uBAAC,IAAI,CAAC,IAAI,KAAG,GACC,GACX,GACF,GACF,IATM,QAAQ,CAAC,EAAE,CAUf,CACZ,CAAC,GACW,CAChB,CAAA;AACH,CAAC,CAAA;AA5DY,QAAA,cAAc,kBA4D1B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/NetworkSheet.js b/dist/modules/explorer/components/NetworkSheet.js deleted file mode 100644 index 79ec6c7..0000000 --- a/dist/modules/explorer/components/NetworkSheet.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.NetworkSheet=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const ResponsiveDialog_1=require('./ResponsiveDialog');const ChangeNetworkButton_1=require('./ChangeNetworkButton');const ContentContainer_1=require('./ContentContainer');const state_1=require('../../creator/state');const SheetItem=(0,core_1.styled)(ContentContainer_1.ContentContainer)({'height':50,'& > *':{height:'100%'},'cursor':'pointer'});const SUPPORTED_NETWORKS=['mainnet','ghostnet'];const NetworkSheet=props=>{const {network,changeNetwork}=(0,useTezos_1.useTezos)();const {dispatch}=(0,react_1.useContext)(state_1.CreatorContext);const options=(0,react_1.useMemo)(()=>SUPPORTED_NETWORKS.filter(n=>n!==network),[network]);return(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ResponsiveDialog,{open:props.open,onClose:props.onClose,title:'Choose Network',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'column',style:{gap:20},children:options.map((networkOption,i)=>(0,jsx_runtime_1.jsx)(SheetItem,{item:true,onClick:()=>{props.onClose();changeNetwork(networkOption);dispatch({type:state_1.ActionTypes.CLEAR_CACHE});},children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:'center',alignItems:'center',style:{gap:8},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ChangeNetworkButton_1.ColorDot,{color:ChangeNetworkButton_1.networkDotColorMap[networkOption]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'textPrimary',children:(0,core_1.capitalize)(networkOption)})})]})},`network-${i}`))})});};exports.NetworkSheet=NetworkSheet; \ No newline at end of file diff --git a/dist/modules/explorer/components/NetworkSheet.js.map b/dist/modules/explorer/components/NetworkSheet.js.map deleted file mode 100644 index 4e6f0d1..0000000 --- a/dist/modules/explorer/components/NetworkSheet.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NetworkSheet.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/NetworkSheet.tsx"],"names":[],"mappings":";;;;AAAA,4CAAwE;AACxE,iCAAkD;AAClD,6DAAyD;AAEzD,yDAAqD;AACrD,+DAAoE;AACpE,yDAAqD;AAErD,iDAAmE;AAEnE,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,mCAAgB,CAAC,CAAC;IACzC,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE;QACP,MAAM,EAAE,MAAM;KACf;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC,CAAA;AAOF,MAAM,kBAAkB,GAAc,CAAC,SAAS,EAAE,UAAU,CAAC,CAAA;AAEtD,MAAM,YAAY,GAAoB,KAAK,CAAC,EAAE;IACnD,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAC7C,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,kBAAU,EAAC,sBAAc,CAAC,CAAA;IAE/C,MAAM,OAAO,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEvF,OAAO,CACL,uBAAC,mCAAgB,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,gBAAgB,YACjF,uBAAC,WAAI,IAAC,SAAS,QAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,YACpD,OAAO,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC,CACjC,uBAAC,SAAS,IACR,IAAI,QAEJ,OAAO,EAAE,GAAG,EAAE;oBACZ,KAAK,CAAC,OAAO,EAAE,CAAA;oBACf,aAAa,CAAC,aAAa,CAAC,CAAA;oBAC5B,QAAQ,CAAC;wBACP,IAAI,EAAE,mBAAW,CAAC,WAAW;qBAC9B,CAAC,CAAA;gBACJ,CAAC,YAED,wBAAC,WAAI,IAAC,SAAS,QAAC,cAAc,EAAC,QAAQ,EAAC,UAAU,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,aAC3E,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,8BAAQ,IAAC,KAAK,EAAE,wCAAkB,CAAC,aAAa,CAAC,GAAI,GACjD,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,iBAAU,IAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAC,aAAa,YAC3C,IAAA,iBAAU,EAAC,aAAa,CAAC,GACf,GACR,IACF,IAlBF,WAAW,CAAC,EAAE,CAmBT,CACb,CAAC,GACG,GACU,CACpB,CAAA;AACH,CAAC,CAAA;AApCY,QAAA,YAAY,gBAoCxB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/NewTreasuryProposalDialog.js b/dist/modules/explorer/components/NewTreasuryProposalDialog.js deleted file mode 100644 index bd84cee..0000000 --- a/dist/modules/explorer/components/NewTreasuryProposalDialog.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i({color:theme.palette.secondary.main,fontSize:14,lineHeight:'146.3%',marginRight:10}));const DAOBalanceText=(0,core_1.styled)(core_1.Typography)({color:'#ffff',fontSize:14,lineHeight:'100%',marginRight:10});const CustomErrorText=(0,core_1.styled)(ErrorText_1.ErrorText)({textTransform:'capitalize'});const AutoCompletePaper=(0,core_1.styled)(core_1.Paper)({background:'#24282B'});const AmountContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({[theme.breakpoints.down('sm')]:{paddingRight:0}}));const AutoCompleteField=(0,core_1.styled)(lab_1.Autocomplete)({'& .MuiInputLabel-root':{display:'none'},'& .MuiAutocomplete-inputRoot':{padding:0},'& label + .MuiInput-formControl':{marginTop:'0'},'& .MuiAutocomplete-inputRoot[class*="MuiInput-root"] .MuiAutocomplete-input:first-child':{padding:0}});const CustomLabelContainer=(0,core_1.styled)(core_1.Grid)({marginBottom:18});const CustomMaxLabel=(0,core_1.styled)(core_1.Typography)({fontSize:16,paddingBottom:5,textDecoration:'underline',textUnderlineOffset:6,cursor:'pointer'});const DaoBalance=(0,core_1.styled)(core_1.Grid)({height:20});const CurrentAsset=(0,core_1.styled)(core_1.Typography)({opacity:0.7});exports.treasuryProposalFormSchema=Yup.object().shape({transferForm:Yup.object().shape({transfers:Yup.array().of(Yup.object().shape({amount:Yup.number().required('Required').positive('Should be positive'),recipient:Yup.string().required('Required')}))})});const emptyTransfer={recipient:'',amount:0};exports.treasuryProposalFormInitialState={transferForm:{transfers:[emptyTransfer],isBatch:false}};const NewTreasuryProposalDialog=({open})=>{var _a,_b,_c,_d,_e,_f,_g,_h,_j;const {control,getValues,setValue,watch,reset,formState:{errors,touchedFields:touched}}=(0,react_hook_form_1.useFormContext)();const {fields,append}=(0,react_hook_form_1.useFieldArray)({control,name:'transferForm.transfers'});const values=getValues();const [isBatch,setIsBatch]=(0,react_1.useState)(values.transferForm.isBatch);const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const [activeTransfer,setActiveTransfer]=react_1.default.useState(1);const daoId=(0,router_1.useDAOID)();const {data:daoData,ledger}=(0,useDAO_1.useDAO)(daoId);const dao=daoData;const {tokenHoldings:daoHoldings}=(0,useDAOHoldings_1.useDAOHoldings)(daoId);const {data:tezosBalance}=(0,useTezosBalance_1.useTezosBalance)(daoId);const [showMax,setShowMax]=react_1.default.useState(false);const [max,setMax]=react_1.default.useState(0);const [index,setIndex]=react_1.default.useState(0);const handleIsBatchChange=()=>{setIsBatch(!isBatch);setValue('transferForm.isBatch',!isBatch);setActiveTransfer(1);};const recipientError=(_c=(_b=(_a=errors.transferForm)===null||_a===void 0?void 0:_a.transfers)===null||_b===void 0?void 0:_b[activeTransfer-1])===null||_c===void 0?void 0:_c.recipient;const amountError=(_f=(_e=(_d=errors.transferForm)===null||_d===void 0?void 0:_d.transfers)===null||_e===void 0?void 0:_e[activeTransfer-1])===null||_f===void 0?void 0:_f.amount;const assetsError=(_j=(_h=(_g=errors.transferForm)===null||_g===void 0?void 0:_g.transfers)===null||_h===void 0?void 0:_h[activeTransfer-1])===null||_j===void 0?void 0:_j.asset;const {transfers}=watch('transferForm');const currentTransfer=transfers[activeTransfer-1];const daoAssets=daoHoldings?[...daoHoldings,{balance:tezosBalance||new bignumber_js_1.default(0),token:{symbol:'XTZ'}}]:[];const assetOptions=daoAssets.filter(a=>a.token.symbol).map(a=>a.token);const currentAssetBalance=daoAssets.find(asset=>{var _a;return currentTransfer!==undefined?asset.token.symbol===((_a=currentTransfer.asset)===null||_a===void 0?void 0:_a.symbol):null;});(0,react_1.useMemo)(()=>{if(!open){setMax(0);setShowMax(false);reset();}},[open,reset]);(0,react_1.useEffect)(()=>{var _a;let result=0;if(currentTransfer!==undefined&&((_a=currentTransfer.asset)===null||_a===void 0?void 0:_a.symbol.toString())!=='XTZ'){result=(currentAssetBalance?currentAssetBalance===null||currentAssetBalance===void 0?void 0:currentAssetBalance.balance.toNumber():0)-(ledger&&ledger[0]?ledger[0].staked.toNumber():0);}else{result=currentAssetBalance?currentAssetBalance===null||currentAssetBalance===void 0?void 0:currentAssetBalance.balance.toNumber():0;}setMax(result);},[index,setValue,max,currentAssetBalance,currentTransfer,ledger]);return(0,jsx_runtime_1.jsx)(core_1.DialogContent,{style:{paddingBottom:29},children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:31},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(BatchBar_1.BatchBar,{isBatch:isBatch,stateIsBatch:values.transferForm.isBatch,handleIsBatchChange:handleIsBatchChange,onClickAdd:()=>{append(emptyTransfer);setActiveTransfer(activeTransfer+1);},items:values.transferForm.transfers,activeItem:activeTransfer,setActiveItem:index=>setActiveTransfer(index+1)})}),fields.map((field,index)=>{var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l;return index===activeTransfer-1&&(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{label:'Recipient',children:(0,jsx_runtime_1.jsx)(react_hook_form_1.Controller,{name:`transferForm.transfers.${index}.recipient`,control:control,rules:{required:true},render:({field})=>(0,jsx_runtime_1.jsx)(core_1.TextField,Object.assign({},field,{type:'string',InputProps:{disableUnderline:true},placeholder:'Type an Address Here'}))},field.id)}),recipientError&&((_c=(_b=(_a=errors.transferForm)===null||_a===void 0?void 0:_a.transfers)===null||_b===void 0?void 0:_b[activeTransfer-1])===null||_c===void 0?void 0:_c.recipient)?(0,jsx_runtime_1.jsx)(CustomErrorText,{children:recipientError.type}):null]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:26},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:isMobileSmall?12:6,children:[(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{label:'Asset',children:(0,jsx_runtime_1.jsx)(react_hook_form_1.Controller,{name:`transferForm.transfers.${index}.asset`,control:control,rules:{required:true},render:_a=>{var _b=_a.field,{onChange}=_b,props=__rest(_b,['onChange']);return(0,jsx_runtime_1.jsx)(AutoCompleteField,Object.assign({options:assetOptions||[],PaperComponent:AutoCompletePaper,getOptionLabel:option=>option.symbol,renderInput:params=>(0,jsx_runtime_1.jsx)(core_1.TextField,Object.assign({},params,{InputProps:Object.assign(Object.assign({},params.InputProps),{disableUnderline:true}),label:'Select asset'})),onChange:(e,data)=>{data!==null?setShowMax(true):setShowMax(false);setValue(`transferForm.transfers.${index}.amount`,0);onChange(data);setIndex(index);}},props));}},field.id)}),assetsError&&((_f=(_e=(_d=errors.transferForm)===null||_d===void 0?void 0:_d.transfers)===null||_e===void 0?void 0:_e[activeTransfer-1])===null||_f===void 0?void 0:_f.asset)?(0,jsx_runtime_1.jsx)(CustomErrorText,{children:assetsError.type}):null]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:isMobileSmall?12:true,children:[(0,jsx_runtime_1.jsxs)(CustomLabelContainer,{container:true,direction:'row',item:true,justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{children:'Amount'}),showMax?(0,jsx_runtime_1.jsx)(CustomMaxLabel,{color:'secondary',onClick:()=>{setValue(`transferForm.transfers.${index}.amount`,max);},children:'Use Max'}):null]}),(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{children:(0,jsx_runtime_1.jsx)(react_hook_form_1.Controller,{name:`transferForm.transfers.${index}.amount`,control:control,rules:{validate:()=>{return getValues(`transferForm.transfers.${index}.amount`)>0;}},render:({field})=>{var _a;return(0,jsx_runtime_1.jsx)(core_1.TextField,Object.assign({},field,{type:'tel',placeholder:'0',InputProps:{inputProps:{step:0.01,min:dao&&dao.data.extra.min_xtz_amount,max:dao&&dao.data.extra.max_xtz_amount},disableUnderline:true,endAdornment:(0,jsx_runtime_1.jsx)(core_1.InputAdornment,{position:'start',children:(0,jsx_runtime_1.jsxs)(CurrentAsset,{color:'textPrimary',variant:'subtitle2',children:[' ',((_a=values.transferForm.transfers[activeTransfer-1].asset)===null||_a===void 0?void 0:_a.symbol)||'-']})})}}));}},field.id)}),amountError&&((_j=(_h=(_g=errors.transferForm)===null||_g===void 0?void 0:_g.transfers)===null||_h===void 0?void 0:_h[activeTransfer-1])===null||_j===void 0?void 0:_j.amount)?(0,jsx_runtime_1.jsx)(ErrorText_1.ErrorText,{children:'Must be greater than zero'}):null]}),(0,jsx_runtime_1.jsxs)(DaoBalance,{container:true,direction:'row',alignItems:'center',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,children:(0,jsx_runtime_1.jsx)(DAOBalanceText,{children:'DAO Balance'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,children:daoAssets?(0,jsx_runtime_1.jsxs)(AmountContainer,{item:true,container:true,direction:'row',justifyContent:'flex-end',children:[currentAssetBalance!==undefined&¤tTransfer!==undefined&&((_k=currentTransfer.asset)===null||_k===void 0?void 0:_k.symbol.toString())!=='XTZ'?(0,jsx_runtime_1.jsx)(AmountText,{children:((currentAssetBalance?currentAssetBalance===null||currentAssetBalance===void 0?void 0:currentAssetBalance.balance.toNumber():0)-(ledger&&ledger[0]?ledger[0].staked.toNumber():0)).toString()||'-'}):currentAssetBalance!==undefined&¤tTransfer!==undefined?(0,jsx_runtime_1.jsx)(AmountText,{children:(currentAssetBalance===null||currentAssetBalance===void 0?void 0:currentAssetBalance.balance.toString())||'-'}):null,(0,jsx_runtime_1.jsx)(AmountText,{children:currentTransfer!==undefined&&((_l=currentTransfer.asset)===null||_l===void 0?void 0:_l.symbol.toString())||'-'})]}):null})]})]})]});})]})});};exports.NewTreasuryProposalDialog=NewTreasuryProposalDialog; \ No newline at end of file diff --git a/dist/modules/explorer/components/NewTreasuryProposalDialog.js.map b/dist/modules/explorer/components/NewTreasuryProposalDialog.js.map deleted file mode 100644 index df37d3e..0000000 --- a/dist/modules/explorer/components/NewTreasuryProposalDialog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NewTreasuryProposalDialog.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/NewTreasuryProposalDialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2D;AAC3D,4CAU0B;AAC1B,+DAA2D;AAC3D,oFAAgF;AAChF,4EAAwE;AACxE,yCAA0B;AAC1B,gEAAoC;AACpC,0CAA+C;AAE/C,qDAA2E;AAC3E,sFAAkF;AAElF,2DAAuD;AACvD,yCAAqC;AACrC,gDAA8C;AAK9C,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACpD,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;IACnC,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,QAAQ;IACpB,WAAW,EAAE,EAAE;CAChB,CAAC,CAAC,CAAA;AAEH,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACxC,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,EAAE;CAChB,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,qBAAS,CAAC,CAAC;IACxC,aAAa,EAAE,YAAY;CAC5B,CAAC,CAAA;AAEF,MA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cAAE,CAAA,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,OAAO,CAAC,QAAQ,EAAE,KAAI,GAAG,GAAc,CAC1E,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,UAAU,cACR,CAAC,eAAe,KAAK,SAAS,KAAI,MAAA,eAAe,CAAC,KAAK,0CAAE,MAAM,CAAC,QAAQ,EAAE,CAAA,CAAC,IAAI,GAAG,GACxE,IACG,CACnB,CAAC,CAAC,CAAC,IAAI,GACH,IACI,IACR,IACN,CACJ,CAAA;iBAAA,CACJ,IACI,GACO,CACjB,CAAA;AACH,CAAC,CAAA;AAxPY,QAAA,yBAAyB,6BAwPrC"} \ No newline at end of file diff --git a/dist/modules/explorer/components/NotFound.js b/dist/modules/explorer/components/NotFound.js deleted file mode 100644 index a13ea49..0000000 --- a/dist/modules/explorer/components/NotFound.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.NotFound=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const NotFound=()=>{return(0,jsx_runtime_1.jsx)(core_1.Box,{width:'100%',padding:'50px',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h2',color:'textSecondary',align:'center',children:'404 Not Found'})});};exports.NotFound=NotFound; \ No newline at end of file diff --git a/dist/modules/explorer/components/NotFound.js.map b/dist/modules/explorer/components/NotFound.js.map deleted file mode 100644 index b83c4b2..0000000 --- a/dist/modules/explorer/components/NotFound.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NotFound.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/NotFound.tsx"],"names":[],"mappings":";;;;AAAA,4CAAmD;AAG5C,MAAM,QAAQ,GAAa,GAAG,EAAE;IACrC,OAAO,CACL,uBAAC,UAAG,IAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAC,MAAM,YAC9B,uBAAC,iBAAU,IAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAC,eAAe,EAAC,KAAK,EAAE,QAAQ,8BAEjD,GACT,CACP,CAAA;AACH,CAAC,CAAA;AARY,QAAA,QAAQ,YAQpB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/NotIndexed.js b/dist/modules/explorer/components/NotIndexed.js deleted file mode 100644 index 641899e..0000000 --- a/dist/modules/explorer/components/NotIndexed.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.NotIndexed=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const SecondaryText=(0,core_1.styled)('span')(({theme})=>({color:theme.palette.secondary.main}));const NotIndexed=({address})=>{return(0,jsx_runtime_1.jsx)(core_1.Box,{width:'100%',padding:'50px',children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',align:'center',children:['Your DAO with address: ',(0,jsx_runtime_1.jsx)('br',{}),' ',(0,jsx_runtime_1.jsx)(SecondaryText,{children:address}),' ',(0,jsx_runtime_1.jsx)('br',{}),' is currently being',' ',(0,jsx_runtime_1.jsx)(SecondaryText,{children:'indexed'}),' and will be available in a few minutes']})});};exports.NotIndexed=NotIndexed; \ No newline at end of file diff --git a/dist/modules/explorer/components/NotIndexed.js.map b/dist/modules/explorer/components/NotIndexed.js.map deleted file mode 100644 index 1ae992f..0000000 --- a/dist/modules/explorer/components/NotIndexed.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NotIndexed.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/NotIndexed.tsx"],"names":[],"mappings":";;;;AAAA,4CAAkE;AAGlE,MAAM,aAAa,GAAG,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,CAAC;IACrE,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;CACpC,CAAC,CAAC,CAAA;AAEI,MAAM,UAAU,GAAkC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACvE,OAAO,CACL,uBAAC,UAAG,IAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAC,MAAM,YAC9B,wBAAC,iBAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,eAAe,EAAC,KAAK,EAAE,QAAQ,wCAC5C,gCAAM,OAAC,uBAAC,aAAa,cAAE,OAAO,GAAiB,OAAC,gCAAM,yBAAoB,GAAG,EACpG,uBAAC,aAAa,0BAAwB,+CAC3B,GACT,CACP,CAAA;AACH,CAAC,CAAA;AATY,QAAA,UAAU,cAStB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ProgressBar.js b/dist/modules/explorer/components/ProgressBar.js deleted file mode 100644 index 85158c8..0000000 --- a/dist/modules/explorer/components/ProgressBar.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.MultiColorBar=exports.ProgressBar=void 0;const core_1=require('@material-ui/core');exports.ProgressBar=(0,core_1.styled)(core_1.LinearProgress)(({theme,favor})=>({'marginTop':10,'&.MuiLinearProgress-colorSecondary, &.MuiLinearProgress-colorPrimary':{'background':theme.palette.primary.light,'color':theme.palette.primary.light,'& .MuiLinearProgress-bar':{backgroundColor:`${favor?theme.palette.secondary.main:theme.palette.error.main} !important`}}}));exports.MultiColorBar=(0,core_1.styled)(core_1.LinearProgress)(({theme})=>({'marginTop':10,'&.MuiLinearProgress-colorSecondary, &.MuiLinearProgress-colorPrimary':{'background':theme.palette.error.main,'color':theme.palette.error.main,'& .MuiLinearProgress-bar':{backgroundColor:`theme.palette.secondary.main !important`}}})); \ No newline at end of file diff --git a/dist/modules/explorer/components/ProgressBar.js.map b/dist/modules/explorer/components/ProgressBar.js.map deleted file mode 100644 index 2d66729..0000000 --- a/dist/modules/explorer/components/ProgressBar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProgressBar.tsx"],"names":[],"mappings":";;;AAAA,4CAAiE;AAEpD,QAAA,WAAW,GAAG,IAAA,aAAM,EAAC,qBAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAoC,EAAE,EAAE,CAAC,CAAC;IACzG,WAAW,EAAE,EAAE;IACf,sEAAsE,EAAE;QACtE,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK;QACzC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK;QACpC,0BAA0B,EAAE;YAC1B,eAAe,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,aAAa;SACjG;KACF;CACF,CAAC,CAAC,CAAA;AAEU,QAAA,aAAa,GAAG,IAAA,aAAM,EAAC,qBAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,CAAC;IACpF,WAAW,EAAE,EAAE;IACf,sEAAsE,EAAE;QACtE,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI;QACtC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI;QACjC,0BAA0B,EAAE;YAC1B,eAAe,EAAE,yCAAyC;SAC3D;KACF;CACF,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalActionsDialog.js b/dist/modules/explorer/components/ProposalActionsDialog.js deleted file mode 100644 index b3c8d5e..0000000 --- a/dist/modules/explorer/components/ProposalActionsDialog.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalActionsDialog=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const router_1=require('../pages/DAO/router');const ConfigProposalForm_1=require('./ConfigProposalForm');const ResponsiveDialog_1=require('./ResponsiveDialog');const GuardianChangeProposalForm_1=require('./GuardianChangeProposalForm');const DelegationChangeProposalForm_1=require('./DelegationChangeProposalForm');const lambdas_1=require('../../../services/bakingBad/lambdas');const ConfigProposalFormLambda_1=require('./ConfigProposalFormLambda');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const ProposalCreatorModal_1=require('../../lite/explorer/pages/CreateProposal/ProposalCreatorModal');const OptionContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({'minHeight':80,'background':theme.palette.primary.main,'borderRadius':8,'padding':'35px 42px','marginBottom':16,'cursor':'pointer','height':110,'&:hover':{background:theme.palette.secondary.dark,scale:1.01,transition:'0.15s ease-in'}}));const ActionText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontWeight:400,fontSize:20,marginBottom:8}));const ActionDescriptionText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontWeight:300,fontSize:16}));const getActions=()=>[{name:'Add Lambda',description:'Write Michelson code to add Lambda',id:ConfigProposalFormLambda_1.ProposalAction.new,isLambda:true},{name:'Remove Lambda',description:'Choose which Lambda to remove',id:ConfigProposalFormLambda_1.ProposalAction.remove,isLambda:true},{name:'Execute Lambda',description:'Execute a Lambda already installed on DAO',id:ConfigProposalFormLambda_1.ProposalAction.execute,isLambda:true},{name:'DAO Configuration',description:'Change proposal fee and returned token amount',id:lambdas_1.SupportedLambdaProposalKey.ConfigurationProposal,isLambda:false},{name:'Change Guardian',description:'Change the DAO Guardian Address',id:lambdas_1.SupportedLambdaProposalKey.UpdateGuardianProposal,isLambda:false},{name:'Change Delegate',description:'Change the DAO Delegate Address',id:lambdas_1.SupportedLambdaProposalKey.UpdateContractDelegateProposal,isLambda:false},{name:'Off Chain Poll',description:'Create an inconsequential poll for your community',id:'off-chain',isLambda:true}];const defaultOpenSupportedExecuteProposalModal='none';const ProposalActionsDialog=({open,handleClose})=>{var _a;const daoId=(0,router_1.useDAOID)();const {data}=(0,useDAO_1.useDAO)(daoId);const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const [proposalAction,setProposalAction]=(0,react_1.useState)(ConfigProposalFormLambda_1.ProposalAction.none);const [openProposalFormLambda,setOpenProposalFormLambda]=(0,react_1.useState)(false);const [openLiteProposal,setOpenLiteProposal]=(0,react_1.useState)(false);const liteDAOId=(_a=data===null||data===void 0?void 0:data.liteDAOData)===null||_a===void 0?void 0:_a._id;const handleOpenCustomProposalModal=key=>{setProposalAction(key);setOpenProposalFormLambda(true);handleClose();};const handleCloseCustomProposalModal=()=>{setProposalAction(ConfigProposalFormLambda_1.ProposalAction.none);setOpenProposalFormLambda(false);handleClose();};const handleOpenSupportedExecuteProposalModal=lambdaKey=>{setOpenSupportedExecuteProposalModal(lambdaKey);handleClose();};const handleCloseSupportedExecuteProposalModal=()=>{setOpenLiteProposal(false);setOpenSupportedExecuteProposalModal(defaultOpenSupportedExecuteProposalModal);handleClose();};const handleLiteProposal=()=>{setOpenLiteProposal(true);handleClose();};const [openSupportedExecuteProposalModalKey,setOpenSupportedExecuteProposalModal]=(0,react_1.useState)(defaultOpenSupportedExecuteProposalModal);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ResponsiveDialog,{open:open,onClose:handleClose,title:'New Proposal',template:'xs',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,style:{marginTop:32},spacing:2,children:getActions().map((elem,index)=>!liteDAOId&&elem.id==='off-chain'?null:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:isMobileSmall?12:4,children:(0,jsx_runtime_1.jsxs)(OptionContainer,{onClick:()=>elem.id==='off-chain'?handleLiteProposal():elem.isLambda?handleOpenCustomProposalModal(elem.id):handleOpenSupportedExecuteProposalModal(elem.id),children:[(0,jsx_runtime_1.jsx)(ActionText,{color:'textPrimary',children:elem.name}),(0,jsx_runtime_1.jsxs)(ActionDescriptionText,{color:'textPrimary',children:[' ',elem.description,' ']})]})},index))})}),(0,jsx_runtime_1.jsx)(ConfigProposalFormLambda_1.ProposalFormLambda,{action:proposalAction,open:openProposalFormLambda,handleClose:handleCloseCustomProposalModal}),(0,jsx_runtime_1.jsx)(ConfigProposalForm_1.ConfigProposalForm,{open:openSupportedExecuteProposalModalKey===lambdas_1.SupportedLambdaProposalKey.ConfigurationProposal,handleClose:handleCloseSupportedExecuteProposalModal}),(0,jsx_runtime_1.jsx)(GuardianChangeProposalForm_1.GuardianChangeProposalForm,{open:openSupportedExecuteProposalModalKey===lambdas_1.SupportedLambdaProposalKey.UpdateGuardianProposal,handleClose:handleCloseSupportedExecuteProposalModal}),(0,jsx_runtime_1.jsx)(DelegationChangeProposalForm_1.DelegationChangeProposalForm,{open:openSupportedExecuteProposalModalKey===lambdas_1.SupportedLambdaProposalKey.UpdateContractDelegateProposal,handleClose:handleCloseSupportedExecuteProposalModal}),(0,jsx_runtime_1.jsx)(ProposalCreatorModal_1.ProposalCreatorModal,{open:openLiteProposal,handleClose:handleCloseSupportedExecuteProposalModal})]});};exports.ProposalActionsDialog=ProposalActionsDialog; \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalActionsDialog.js.map b/dist/modules/explorer/components/ProposalActionsDialog.js.map deleted file mode 100644 index 4053a95..0000000 --- a/dist/modules/explorer/components/ProposalActionsDialog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalActionsDialog.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProposalActionsDialog.tsx"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,4CAA6F;AAG7F,iCAAuC;AAEvC,gDAA8C;AAE9C,6DAAyD;AACzD,yDAAqD;AACrD,6EAAyE;AACzE,iFAA6E;AAE7E,wDAAuE;AACvE,mGAAyG;AACzG,+DAA2D;AAC3D,0GAAsG;AActG,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EA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/modules/explorer/components/ProposalForm.js deleted file mode 100644 index 4d0c9c8..0000000 --- a/dist/modules/explorer/components/ProposalForm.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalFormContainer=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const UpdateRegistryDialog_1=require('./UpdateRegistryDialog');const NewTreasuryProposalDialog_1=require('./NewTreasuryProposalDialog');const react_1=require('react');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const ProposalFormSendButton_1=require('./ProposalFormSendButton');const TabPanel_1=require('./TabPanel');const useDAOHoldings_1=require('../../../services/contracts/baseDAO/hooks/useDAOHoldings');const react_hook_form_1=require('react-hook-form');const useRegistryPropose_1=require('../../../services/contracts/baseDAO/hooks/useRegistryPropose');const NFTTransfer_1=require('./NFTTransfer');const router_1=require('../pages/DAO/router');const ProposalFormInput_1=require('./ProposalFormInput');const ResponsiveDialog_1=require('./ResponsiveDialog');const CloseButton_1=__importDefault(require('../../common/CloseButton'));const swap_svg_1=require('../../../assets/img/swap.svg');const CustomContainer=(0,core_1.styled)(core_1.Grid)({padding:'42px 54px 0px 54px'});const IconSwap=(0,core_1.styled)(swap_svg_1.ReactComponent)({marginLeft:16,marginRight:16,cursor:'pointer'});const DialogTitle=(0,core_1.styled)(core_1.Typography)({fontSize:20,fontWeight:500,textTransform:'capitalize'});const enabledForms={'lambda':[{label:'TRANSFER FUNDS',component:({open})=>(0,jsx_runtime_1.jsx)(NewTreasuryProposalDialog_1.NewTreasuryProposalDialog,{open:open})},{label:'TRANSFER NFTs',component:({open})=>(0,jsx_runtime_1.jsx)(NFTTransfer_1.NFTTransferForm,{open:open})},{label:'UPDATE REGISTRY',component:({open})=>(0,jsx_runtime_1.jsx)(UpdateRegistryDialog_1.UpdateRegistryDialog,{open:open})}],'':[],'lite':[]};const Content=(0,core_1.styled)(core_1.Grid)({padding:'0 54px'});const SwapText=(0,core_1.styled)(core_1.Typography)({opacity:0.65});const ProposalFormContainer=({open,handleClose,defaultValues,defaultTab,handleChangeTab})=>{const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);const {data:daoHoldings}=(0,useDAOHoldings_1.useDAOHoldings)(daoId);const [state,setState]=(0,react_1.useState)(defaultTab);const methods=(0,react_hook_form_1.useForm)({defaultValues:(0,react_1.useMemo)(()=>Object.assign(Object.assign(Object.assign(Object.assign({agoraPostId:'0'},NewTreasuryProposalDialog_1.treasuryProposalFormInitialState),NFTTransfer_1.nftTransferFormInitialState),UpdateRegistryDialog_1.registryProposalFormInitialState),defaultValues),[defaultValues])});(0,react_1.useEffect)(()=>{methods.reset(Object.assign(Object.assign(Object.assign(Object.assign({agoraPostId:'0'},NewTreasuryProposalDialog_1.treasuryProposalFormInitialState),NFTTransfer_1.nftTransferFormInitialState),UpdateRegistryDialog_1.registryProposalFormInitialState),defaultValues));},[defaultValues,methods]);const forms=enabledForms[(dao===null||dao===void 0?void 0:dao.data.type)||'lambda'];const {mutate:registryMutate}=(0,useRegistryPropose_1.useRegistryPropose)();const onSubmit=(0,react_1.useCallback)(values=>{const agoraPostId=Number(values.agoraPostId);const mappedTransfers=[...values.transferForm.transfers,...values.nftTransferForm.transfers].filter(transfer=>!!transfer.amount&&!!transfer.asset&&!!transfer.recipient).map(transfer=>{const type=transfer.asset.standard==='fa2'?'FA2':'FA1.2';return transfer.asset.symbol==='XTZ'?Object.assign(Object.assign({},transfer),{amount:transfer.amount,type:'XTZ'}):Object.assign(Object.assign({},transfer),{amount:transfer.amount,asset:transfer.asset,type:type});});const mappedList=values.registryUpdateForm.list.filter(item=>!!item.key&&!!item.value);if(dao.data.type==='lambda'){registryMutate({dao:dao,args:{agoraPostId,transfer_proposal:{transfers:mappedTransfers,registry_diff:mappedList}}});}methods.reset();handleClose();},[dao,handleClose,methods,registryMutate]);const getLabel=selectedTab=>{switch(selectedTab){case 0:return'NFT';case 1:return'Funds';case 2:return'';}};const changeTab=state=>{setState(state);if(state===0){handleChangeTab===null||handleChangeTab===void 0?void 0:handleChangeTab(1);}else if(state===1){handleChangeTab===null||handleChangeTab===void 0?void 0:handleChangeTab(0);}else{return;}};return(0,jsx_runtime_1.jsx)(react_hook_form_1.FormProvider,Object.assign({},methods,{children:(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ProposalFormResponsiveDialog,{open:open,onClose:handleClose,children:dao&&daoHoldings&&(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(CustomContainer,{container:true,direction:'row',justifyContent:'space-between',alignItems:'center',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',style:{width:'80%'},children:[(0,jsx_runtime_1.jsx)(DialogTitle,{children:forms[defaultTab].label.toLowerCase()}),defaultTab===0||defaultTab===1?(0,jsx_runtime_1.jsx)(IconSwap,{onClick:()=>changeTab(defaultTab)}):null,(0,jsx_runtime_1.jsx)(SwapText,{children:getLabel(defaultTab)})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(CloseButton_1.default,{onClose:handleClose})})]}),forms.map((form,i)=>(0,jsx_runtime_1.jsx)(TabPanel_1.TabPanel,{value:defaultTab,index:i,children:(0,jsx_runtime_1.jsx)(form.component,{open:open})},`tab-${i}`)),(0,jsx_runtime_1.jsxs)(Content,{container:true,direction:'column',style:{gap:10},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{label:'Agora Post ID',children:(0,jsx_runtime_1.jsx)(react_hook_form_1.Controller,{control:methods.control,name:`agoraPostId`,render:({field})=>(0,jsx_runtime_1.jsx)(core_1.TextField,Object.assign({},field,{type:'number',placeholder:'Type an Agora Post ID',InputProps:{disableUnderline:true}}))})})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{align:'left',variant:'subtitle2',color:'textPrimary',display:'inline',children:['Proposal Fee:',' ']}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{align:'left',variant:'subtitle2',color:'secondary',display:'inline',style:{fontWeight:300},children:[dao&&dao.data.extra.frozen_extra_value.toString(),' ',dao?dao.data.token.symbol:'']})]}),(0,jsx_runtime_1.jsx)(ProposalFormSendButton_1.SendButton,{style:{margin:'10px 0 35px 0'},onClick:methods.handleSubmit(onSubmit),disabled:!dao||!daoHoldings,children:'Submit'})]})]})})}));};exports.ProposalFormContainer=ProposalFormContainer; \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalForm.js.map b/dist/modules/explorer/components/ProposalForm.js.map deleted file mode 100644 index d6e99c6..0000000 --- a/dist/modules/explorer/components/ProposalForm.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalForm.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProposalForm.tsx"],"names":[],"mappings":";;;;;;;AAAA,uCAAuC;AACvC,4CAAuE;AACvE,2FAIyD;AACzD,qGAK8D;AAC9D,iCAAwE;AACxE,+DAA2D;AAE3D,qEAAqD;AACrD,yCAAqC;AACrC,oFAAgF;AAChF,qDAAmE;AAEnE,4FAAwF;AAExF,+CAAmG;AAEnG,gDAA8C;AAC9C,2DAAuD;AACvD,yDAAiE;AAEjE,6EAAoD;AACpD,kDAAgE;AAEhE,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IACnC,OAAO,EAAE,oBAAoB;CAC9B,CAAC,CAAA;AAEF,MAAM,QAAQ,GAAG,IAAA,aAAM,EAAC,yBAAQ,CAAC,CAAC;IAChC,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,SAAS;CAClB,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,iBAAU,CA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C4B,IAClB,CAChB,CAAA;AACH,CAAC,CAAA;AAtKY,QAAA,qBAAqB,yBAsKjC"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalFormInput.js b/dist/modules/explorer/components/ProposalFormInput.js deleted file mode 100644 index 615a2af..0000000 --- a/dist/modules/explorer/components/ProposalFormInput.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalCodeEditorInput=exports.ProposalFormInput=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_simple_code_editor_1=__importDefault(require('react-simple-code-editor'));const core_1=require('@material-ui/core');const StyledBody=(0,core_1.styled)(core_1.Grid)(({theme})=>({'borderRadius':4,'background':theme.palette.primary.main,'padding':'0 20px','minHeight':54,'& input':{minHeight:54,padding:0,textAlign:'start'},'& .MuiInputBase-input':{fontWeight:300}}));const ProposalFormInput=({label,children})=>{return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:18},children:[label?(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{style:{fontWeight:400},color:'textPrimary',children:label})}):null,(0,jsx_runtime_1.jsx)(StyledBody,{children:children})]});};exports.ProposalFormInput=ProposalFormInput;const StyledEditorWrapper=(0,core_1.styled)(core_1.Grid)(()=>({'borderRadius':4,'background':'#121416','maxHeight':500,'overflow':'scroll','& input':{maxHeight:500,padding:0,textAlign:'start',overflow:'scroll'},'& .MuiInputBase-input':{fontWeight:300}}));const StyledEditor=(0,core_1.styled)(react_simple_code_editor_1.default)({'& textarea':{outline:'none !important'},'& textarea:focus-visited':{outline:'none !important'}});const ProposalCodeEditorInput=props=>{const {label,containerstyle}=props;return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:Object.assign({gap:18},containerstyle),children:[label?(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{style:{fontWeight:400},color:'textPrimary',children:label})}):null,(0,jsx_runtime_1.jsx)(StyledEditorWrapper,{children:(0,jsx_runtime_1.jsx)(StyledEditor,Object.assign({},props))})]});};exports.ProposalCodeEditorInput=ProposalCodeEditorInput; \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalFormInput.js.map b/dist/modules/explorer/components/ProposalFormInput.js.map deleted file mode 100644 index 991fb1e..0000000 --- a/dist/modules/explorer/components/ProposalFormInput.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalFormInput.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProposalFormInput.tsx"],"names":[],"mappings":";;;;;;;AACA,wFAA6C;AAC7C,4CAA4D;AAE5D,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9C,cAAc,EAAE,CAAC;IACjB,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACxC,SAAS,EAAE,QAAQ;IACnB,WAAW,EAAE,EAAE;IACf,SAAS,EAAE;QACT,SAAS,EAAE,EAAE;QACb,OAAO,EAAE,CAAC;QACV,SAAS,EAAE,OAAO;KACnB;IAED,uBAAuB,EAAE;QACvB,UAAU,EAAE,GAAG;KAChB;CACF,CAAC,CAAC,CAAA;AAEI,MAAM,iBAAiB,GAAiC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,wBAAC,WAAI,IAAC,SAAS,QAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,aAClD,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,iBAAU,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,KAAK,EAA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H,CAAC,CAAA;AAhBY,QAAA,uBAAuB,2BAgBnC"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalFormSendButton.js b/dist/modules/explorer/components/ProposalFormSendButton.js deleted file mode 100644 index 169f0e5..0000000 --- a/dist/modules/explorer/components/ProposalFormSendButton.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i({[theme.breakpoints.down('sm')]:{height:100}}));const StyledSendButton=(0,core_1.styled)(MainButton_1.MainButton)(({theme})=>({width:101,color:'#1C1F23'}));const SendButton=_a=>{var {children}=_a,props=__rest(_a,['children']);return(0,jsx_runtime_1.jsx)(SendContainer,{container:true,direction:'row',justifyContent:'center',alignItems:'center',children:(0,jsx_runtime_1.jsx)(StyledSendButton,Object.assign({},props,{children:children}))});};exports.SendButton=SendButton; \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalFormSendButton.js.map b/dist/modules/explorer/components/ProposalFormSendButton.js.map deleted file mode 100644 index 4d118f0..0000000 --- a/dist/modules/explorer/components/ProposalFormSendButton.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalFormSendButton.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProposalFormSendButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,4CAAgD;AAEhD,0DAAsD;AAEtD,MAAM,aAAa,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,MAAM,EAAE,GAAG;KACZ;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,gBAAgB,GAAG,IAAA,aAAM,EAAC,uBAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1D,KAAK,EAAE,GAAG;IACV,KAAK,EAAE,SAAS;CACjB,CAAC,CAAC,CAAA;AAEI,MAAM,UAAU,GAA8B,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,cAApB,YAAsB,CAAF;IACxE,OAAO,CACL,uBAAC,aAAa,IAAC,SAAS,QAAC,SAAS,EAAC,KAAK,EAAC,cAAc,EAAC,QAAQ,EAAC,UAAU,EAAC,QAAQ,YAClF,uBAAC,gBAAgB,oBAAK,KAAK,cAAG,QAAQ,IAAoB,GAC5C,CACjB,CAAA;AACH,CAAC,CAAA;AANY,QAAA,UAAU,cAMtB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalSelectionMenu.js b/dist/modules/explorer/components/ProposalSelectionMenu.js deleted file mode 100644 index 268872d..0000000 --- a/dist/modules/explorer/components/ProposalSelectionMenu.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalSelectionMenu=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const router_1=require('../pages/DAO/router');const ProposalForm_1=require('./ProposalForm');const ConfigProposalForm_1=require('./ConfigProposalForm');const ResponsiveDialog_1=require('./ResponsiveDialog');const GuardianChangeProposalForm_1=require('./GuardianChangeProposalForm');const DelegationChangeProposalForm_1=require('./DelegationChangeProposalForm');const MainButton_1=require('../../common/MainButton');const Content=(0,core_1.styled)(core_1.Grid)({padding:'0 25px'});var ProposalModalKey;(function(ProposalModalKey){ProposalModalKey[ProposalModalKey['config']=0]='config';ProposalModalKey[ProposalModalKey['guardian']=1]='guardian';ProposalModalKey[ProposalModalKey['transfer']=2]='transfer';ProposalModalKey[ProposalModalKey['registry']=3]='registry';ProposalModalKey[ProposalModalKey['delegation']=4]='delegation';}(ProposalModalKey||(ProposalModalKey={})));const ProposalSelectionMenu=({open,handleClose})=>{const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);const [openModal,setOpenModal]=(0,react_1.useState)();const handleOptionSelected=key=>{setOpenModal(key);handleClose();};const handleCloseModal=()=>{setOpenModal(undefined);};return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ResponsiveDialog,{open:open,onClose:handleClose,title:'Add New Proposal',children:dao&&(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(Content,{container:true,direction:'column',style:{gap:32},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{style:{fontWeight:300},color:'textPrimary',children:'Which proposal would you like to create?'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:'center',style:{gap:20},direction:'column',children:[(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',onClick:()=>handleOptionSelected(ProposalModalKey.transfer),children:'Assets / Registry'}),(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',onClick:()=>handleOptionSelected(ProposalModalKey.config),children:'Configuration'}),(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',onClick:()=>handleOptionSelected(ProposalModalKey.guardian),children:'Change Guardian'}),(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',onClick:()=>handleOptionSelected(ProposalModalKey.delegation),children:'Change Delegate'})]})]})})}),(0,jsx_runtime_1.jsx)(ProposalForm_1.ProposalFormContainer,{defaultTab:0,open:ProposalModalKey.transfer===openModal||ProposalModalKey.registry===openModal,handleClose:()=>handleCloseModal()}),(0,jsx_runtime_1.jsx)(ConfigProposalForm_1.ConfigProposalForm,{open:ProposalModalKey.config===openModal,handleClose:()=>handleCloseModal()}),(0,jsx_runtime_1.jsx)(GuardianChangeProposalForm_1.GuardianChangeProposalForm,{open:ProposalModalKey.guardian===openModal,handleClose:()=>handleCloseModal()}),(0,jsx_runtime_1.jsx)(DelegationChangeProposalForm_1.DelegationChangeProposalForm,{open:ProposalModalKey.delegation===openModal,handleClose:()=>handleCloseModal()})]});};exports.ProposalSelectionMenu=ProposalSelectionMenu; \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalSelectionMenu.js.map b/dist/modules/explorer/components/ProposalSelectionMenu.js.map deleted file mode 100644 index 5ade5c5..0000000 --- a/dist/modules/explorer/components/ProposalSelectionMenu.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalSelectionMenu.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProposalSelectionMenu.tsx"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,4CAAoE;AAGpE,iCAAuC;AACvC,+DAA2D;AAE3D,gDAA8C;AAC9C,iDAAsD;AACtD,6DAAyD;AACzD,yDAAqD;AACrD,6EAAyE;AACzE,iFAA6E;AAC7E,wDAAoD;AAcpD,MAAM,OAAO,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC3B,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAA;AAOF,IAAK,gBAMJ;AAND,WAAK,gBAAgB;IACnB,2DAAM,CAAA;IACN,+DAAQ,CAAA;IACR,+DAAQ,CAAA;IACR,+DAAQ,CAAA;IACR,mEAAU,CAAA;AACZ,CAAC,EANI,gBAAgB,KAAhB,gBAAgB,QAMpB;AAEM,MAAM,qBAAqB,GAAoB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;IAC9E,MAAM,KAAK,GAAG,IAAA,iBAAQ,GAAE,CAAA;IACxB,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,IAAA,eAAM,EAAC,KAAK,CAAC,CAAA;IACnC,MAAM,CAAC,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uBAAC,uBAAU,IACT,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,UAAU,CAAC,gCAGrD,IACR,IACC,GACT,CACJ,GACgB,EACnB,uBAAC,oCAAqB,IACpB,UAAU,EAAE,CAAC,EACb,IAAI,EAAE,gBAAgB,CAAC,QAAQ,KAAK,SAAS,IAAI,gBAAgB,CAAC,QAAQ,KAAK,SAAS,EACxF,WAAW,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,GACrC,EACF,uBAAC,uCAAkB,IAAC,IAAI,EAAE,gBAAgB,CAAC,MAAM,KAAK,SAAS,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,GAAI,EAC1G,uBAAC,uDAA0B,IACzB,IAAI,EAAE,gBAAgB,CAAC,QAAQ,KAAK,SAAS,EAC7C,WAAW,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,GACrC,EACF,uBAAC,2DAA4B,IAC3B,IAAI,EAAE,gBAAgB,CAAC,UAAU,KAAK,SAAS,EAC/C,WAAW,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,GACrC,IACD,CACJ,CAAA;AACH,CAAC,CAAA;AA1EY,QAAA,qBAAqB,yBA0EjC"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalSelectionMenuLambda.js b/dist/modules/explorer/components/ProposalSelectionMenuLambda.js deleted file mode 100644 index 07764bc..0000000 --- a/dist/modules/explorer/components/ProposalSelectionMenuLambda.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalSelectionMenuLambda=void 0;const jsx_runtime_1=require('react/jsx-runtime');const lodash_1=__importDefault(require('lodash'));const core_1=require('@material-ui/core');const react_1=require('react');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const router_1=require('../pages/DAO/router');const ResponsiveDialog_1=require('./ResponsiveDialog');const MainButton_1=require('../../common/MainButton');const ConfigProposalFormLambda_1=require('./ConfigProposalFormLambda');const useDAOLambdas_1=require('../../../services/contracts/baseDAO/hooks/useDAOLambdas');const lambdas_1=require('../../../services/bakingBad/lambdas');const GuardianChangeProposalForm_1=require('./GuardianChangeProposalForm');const ConfigProposalForm_1=require('./ConfigProposalForm');const Content=(0,core_1.styled)(core_1.Grid)({padding:'0 25px'});const defaultOpenSupportedExecuteProposalModal='none';const ProposalSelectionMenuLambda=({open,handleClose})=>{const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);const daoLambdas=(0,useDAOLambdas_1.useDAOLambdas)(daoId);const [proposalAction,setProposalAction]=(0,react_1.useState)(ConfigProposalFormLambda_1.ProposalAction.none);const [isExecuteUI,setIsExecuteUI]=(0,react_1.useState)(false);const [openProposalFormLambda,setOpenProposalFormLambda]=(0,react_1.useState)(false);const [openSupportedExecuteProposalModalKey,setOpenSupportedExecuteProposalModal]=(0,react_1.useState)(defaultOpenSupportedExecuteProposalModal);const toggleExecuteUI=()=>{setIsExecuteUI(!isExecuteUI);};const onClose=()=>{setIsExecuteUI(false);handleClose();};const handleGoBack=()=>{setIsExecuteUI(false);};const handleOpenCustomProposalModal=key=>{setProposalAction(key);setOpenProposalFormLambda(true);onClose();};const handleCloseCustomProposalModal=()=>{setProposalAction(ConfigProposalFormLambda_1.ProposalAction.none);setOpenProposalFormLambda(false);};const handleOpenSupportedExecuteProposalModal=lambdaKey=>{setOpenSupportedExecuteProposalModal(lambdaKey);onClose();};const handleCloseSupportedExecuteProposalModal=()=>{setOpenSupportedExecuteProposalModal(defaultOpenSupportedExecuteProposalModal);};const renderMainMenuContent=()=>(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{style:{fontWeight:300},color:'textPrimary',children:'Which proposal would you like to create?'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:'center',style:{gap:20},direction:'column',children:[(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',onClick:()=>handleOpenCustomProposalModal(ConfigProposalFormLambda_1.ProposalAction.new),children:'Add Lambda'}),(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',onClick:()=>handleOpenCustomProposalModal(ConfigProposalFormLambda_1.ProposalAction.remove),children:'Remove Lambda'}),(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',onClick:toggleExecuteUI,children:'Execute Lambda'})]})]});const renderExecuteMenuContent=()=>(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{style:{fontWeight:300},color:'textPrimary',children:'Execute Lambda'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:'center',style:{gap:20},direction:'column',children:[lodash_1.default.map(daoLambdas,lambda=>{if(lambda.key===lambdas_1.SupportedLambdaProposalKey.UpdateReceiversProposal||lambda.key===lambdas_1.SupportedLambdaProposalKey.TransferProposal||lambda.key===lambdas_1.SupportedLambdaProposalKey.UpdateContractDelegateProposal){return null;}return(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',onClick:()=>handleOpenSupportedExecuteProposalModal(lambda.key),children:lodash_1.default.startCase(lambda.key)});}),(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',onClick:()=>handleOpenCustomProposalModal(ConfigProposalFormLambda_1.ProposalAction.execute),children:'Custom Proposal'})]})]});return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ResponsiveDialog,{open:open,onClose:onClose,onGoBack:isExecuteUI?handleGoBack:undefined,title:'Add New Proposal',children:(0,jsx_runtime_1.jsx)(Content,{container:true,direction:'column',style:{gap:32},children:dao?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[isExecuteUI?renderExecuteMenuContent():null,!isExecuteUI?renderMainMenuContent():null]}):(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:'center',style:{gap:20},direction:'column',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',children:'Something went wrong! please try again later.'})})})})}),(0,jsx_runtime_1.jsx)(ConfigProposalFormLambda_1.ProposalFormLambda,{action:proposalAction,open:openProposalFormLambda,handleClose:handleCloseCustomProposalModal}),(0,jsx_runtime_1.jsx)(ConfigProposalForm_1.ConfigProposalForm,{open:openSupportedExecuteProposalModalKey===lambdas_1.SupportedLambdaProposalKey.ConfigurationProposal,handleClose:handleCloseSupportedExecuteProposalModal}),(0,jsx_runtime_1.jsx)(GuardianChangeProposalForm_1.GuardianChangeProposalForm,{open:openSupportedExecuteProposalModalKey===lambdas_1.SupportedLambdaProposalKey.UpdateGuardianProposal,handleClose:handleCloseSupportedExecuteProposalModal})]});};exports.ProposalSelectionMenuLambda=ProposalSelectionMenuLambda; \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalSelectionMenuLambda.js.map b/dist/modules/explorer/components/ProposalSelectionMenuLambda.js.map deleted file mode 100644 index 0b44380..0000000 --- a/dist/modules/explorer/components/ProposalSelectionMenuLambda.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalSelectionMenuLambda.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProposalSelectionMenuLambda.tsx"],"names":[],"mappings":";;;;;;;AAAA,oDAAsB;AACtB,4CAA4D;AAG5D,iCAAuC;AACvC,+DAA2D;AAE3D,gDAA8C;AAC9C,yDAAqD;AACrD,wDAAoD;AACpD,yEAA+E;AAC/E,kFAA8E;AAE9E,wDAA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,CAAC,CACL,6DACG,WAAW,CAAC,CAAC,CAAC,wBAAwB,EAAE,CAAC,CAAC,CAAC,IAAI,EAC/C,CAAC,WAAW,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,IAAI,IAC7C,CACJ,CAAC,CAAC,CAAC,CACF,2DACE,uBAAC,WAAI,IAAC,SAAS,QAAC,cAAc,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,QAAQ,YAC5E,uBAAC,iBAAU,IAAC,KAAK,EAAC,aAAa,8DAA2D,GACrF,GACN,CACJ,GACO,GACO,EAEnB,uBAAC,6CAAkB,IACjB,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,sBAAsB,EAC5B,WAAW,EAAE,8BAA8B,GAC3C,EACF,uBAAC,uCAAkB,IACjB,IAAI,EAAE,oCAAoC,KAAK,oCAA0B,CAAC,qBAAqB,EAC/F,WAAW,EAAE,wCAAwC,GACrD,EACF,uBAAC,uDAA0B,IACzB,IAAI,EAAE,oCAAoC,KAAK,oCAA0B,CAAC,sBAAsB,EAChG,WAAW,EAAE,wCAAwC,GACrD,IACD,CACJ,CAAA;AACH,CAAC,CAAA;AAlJY,QAAA,2BAA2B,+BAkJvC"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalTableRow.js b/dist/modules/explorer/components/ProposalTableRow.js deleted file mode 100644 index 3d4bb75..0000000 --- a/dist/modules/explorer/components/ProposalTableRow.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalTableRow=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const dayjs_1=__importDefault(require('dayjs'));const ArrowForward_1=__importDefault(require('@material-ui/icons/ArrowForward'));const react_router_dom_1=require('react-router-dom');const RowContainer_1=require('./tables/RowContainer');const ProposalTableRowStatusBadge_1=require('./ProposalTableRowStatusBadge');const icons_1=require('@material-ui/icons');const utils_1=require('../../../services/contracts/utils');const types_1=require('../../../services/services/dao/mappers/proposal/types');const useTopic_1=require('../../../services/agora/hooks/useTopic');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const ArrowContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({display:'flex',[theme.breakpoints.down('sm')]:{display:'none'}}));const ArrowButton=(0,core_1.styled)(core_1.IconButton)(({theme})=>({color:theme.palette.primary.light}));const StatusText=(0,core_1.styled)(core_1.Typography)({textTransform:'uppercase',marginLeft:10,marginRight:30});const RowContent=(0,core_1.styled)(core_1.Box)(({theme})=>({marginTop:25,[theme.breakpoints.down('sm')]:{marginTop:15}}));const ArrowInfo=(0,core_1.styled)(core_1.Typography)(({theme})=>({[theme.breakpoints.down('sm')]:{marginTop:15}}));const ProposalTableRow=({proposal})=>{const history=(0,react_router_dom_1.useHistory)();const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const {cycleInfo}=(0,useDAO_1.useDAO)(proposal.dao.data.address);const formattedDate=(0,dayjs_1.default)(proposal.startDate).format('LLL');const {data:agoraPost}=(0,useTopic_1.useAgoraTopic)(Number(proposal.metadata.agoraPostId));const onClick=(0,react_1.useCallback)(()=>{history.push(`/explorer/dao/${proposal.dao.data.address}/proposal/${proposal.id}`);},[history,proposal.dao.data.address,proposal.id]);return(0,jsx_runtime_1.jsxs)(RowContainer_1.RowContainer,{item:true,container:true,alignItems:'center',onClick:onClick,children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:12,md:9,children:[(0,jsx_runtime_1.jsx)(core_1.Box,{children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h4',color:'textSecondary',align:isMobileSmall?'center':'left',children:agoraPost?agoraPost.title:`Proposal ${(0,utils_1.toShortAddress)(proposal.id)}`})}),(0,jsx_runtime_1.jsx)(RowContent,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:isMobileSmall?'column':'row',alignItems:isMobileSmall?'center':'flex-start',wrap:'nowrap',style:{gap:32},children:[cycleInfo&&(0,jsx_runtime_1.jsx)(ProposalTableRowStatusBadge_1.TableStatusBadge,{status:proposal.getStatus(cycleInfo.currentLevel).status}),(0,jsx_runtime_1.jsxs)(ArrowInfo,{color:'textSecondary',children:['Created ',formattedDate]})]})})]}),(0,jsx_runtime_1.jsxs)(ArrowContainer,{item:true,md:3,container:true,direction:'row',alignItems:'center',justifyContent:'flex-end',children:[(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[status===types_1.ProposalStatus.ACTIVE?(0,jsx_runtime_1.jsx)(icons_1.PlayCircleOutlineOutlined,{htmlColor:'#FFC839',fontSize:'large'}):null,status===types_1.ProposalStatus.PENDING?(0,jsx_runtime_1.jsx)(icons_1.PauseCircleOutline,{htmlColor:'rgba(56, 102, 249)',fontSize:'large'}):null,status===types_1.ProposalStatus.PASSED?(0,jsx_runtime_1.jsx)(icons_1.CheckCircleOutlined,{fontSize:'large',color:'secondary'}):null,status===types_1.ProposalStatus.NO_QUORUM?(0,jsx_runtime_1.jsx)(icons_1.RemoveCircleOutline,{fontSize:'large',htmlColor:'rgb(61, 61, 61)'}):null,status===types_1.ProposalStatus.EXECUTED?(0,jsx_runtime_1.jsx)(icons_1.CheckCircleOutlined,{fontSize:'large',color:'secondary'}):null,status===types_1.ProposalStatus.EXPIRED?(0,jsx_runtime_1.jsx)(icons_1.CancelOutlined,{fontSize:'large',htmlColor:'rgb(61, 61, 61)'}):null,status===types_1.ProposalStatus.REJECTED?(0,jsx_runtime_1.jsx)(icons_1.CancelOutlined,{fontSize:'large',color:'error'}):null,status===types_1.ProposalStatus.DROPPED?(0,jsx_runtime_1.jsx)(icons_1.CancelOutlined,{fontSize:'large',color:'error'}):null,(0,jsx_runtime_1.jsx)(StatusText,{color:'textSecondary',children:status})]}),(0,jsx_runtime_1.jsx)(ArrowButton,{children:(0,jsx_runtime_1.jsx)(ArrowForward_1.default,{fontSize:'large',color:'inherit'})})]})]});};exports.ProposalTableRow=ProposalTableRow; \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalTableRow.js.map b/dist/modules/explorer/components/ProposalTableRow.js.map deleted file mode 100644 index 90432ac..0000000 --- a/dist/modules/explorer/components/ProposalTableRow.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalTableRow.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProposalTableRow.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAA0C;AAC1C,4CAAsG;AACtG,kDAAyB;AACzB,mFAA8D;AAC9D,uDAA6C;AAC7C,wDAAoD;AACpD,+EAAgE;AAChE,8CAM2B;AAC3B,oDAAyD;AACzD,wEAAuF;AACvF,4DAA6D;AAC7D,+DAA2D;AAO3D,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,OAAO,EAAE,MAAM;IACf,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,OAAO,EAAE,MAAM;KAChB;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACrD,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK;CACnC,CAAC,CAAC,CAAA;AAEH,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACpC,aAAa,EAAE,WAAW;IAC1B,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;CAChB,CAAC,CAAA;AAEF,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAA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K,EAAC,eAAe,YAAE,MAAM,GAAc,IACtD,EACH,uBAAC,WAAW,cACV,uBAAC,sBAAgB,IAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAC,SAAS,GAAG,GAC3C,IACC,IACJ,CAChB,CAAA;AACH,CAAC,CAAA;AA3DY,QAAA,gBAAgB,oBA2D5B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalTableRowStatusBadge.js b/dist/modules/explorer/components/ProposalTableRowStatusBadge.js deleted file mode 100644 index 01795f3..0000000 --- a/dist/modules/explorer/components/ProposalTableRowStatusBadge.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i{const statusToColor={[types_1.ProposalStatus.ACTIVE]:theme.palette.warning.main,[types_1.ProposalStatus.PENDING]:theme.palette.info.main,[types_1.ProposalStatus.PASSED]:theme.palette.secondary.main,[types_1.ProposalStatus.EXECUTABLE]:theme.palette.warning.main,[types_1.ProposalStatus.REJECTED]:theme.palette.error.main,[types_1.ProposalStatus.NO_QUORUM]:theme.palette.text.secondary,[types_1.ProposalStatus.EXPIRED]:theme.palette.text.secondary,[types_1.ProposalStatus.DROPPED]:theme.palette.error.main,[types_1.ProposalStatus.EXECUTED]:theme.palette.secondary.main};return statusToColor[status];};const Badge=(0,core_1.styled)(core_1.Grid)(({status,theme})=>({'borderRadius':4,'height':27,'boxSizing':'border-box','width':105,'textAlign':'center','padding':'0 7px','background':(0,hex_to_rgba_1.default)(getStatusColor(status,theme),0.4),'color':getStatusColor(status,theme),'& > div':{height:'100%'}}));const TableStatusBadge=_a=>{var {status}=_a,props=__rest(_a,['status']);return(0,jsx_runtime_1.jsx)(Badge,Object.assign({status:status},props,{children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,alignItems:'center',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{children:[' ',status.toUpperCase(),' ']})})})}));};exports.TableStatusBadge=TableStatusBadge; \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalTableRowStatusBadge.js.map b/dist/modules/explorer/components/ProposalTableRowStatusBadge.js.map deleted file mode 100644 index d368e2a..0000000 --- a/dist/modules/explorer/components/ProposalTableRowStatusBadge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalTableRowStatusBadge.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProposalTableRowStatusBadge.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,4CAA8E;AAC9E,wEAA6E;AAC7E,8DAAmC;AAEnC,MAAM,cAAc,GAAG,CAAC,MAAsB,EAAE,KAAY,EAAU,EAAE;IACtE,MAAM,aAAa,GAAG;QACpB,CAAC,sBAAc,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;QACnD,CAAC,sBAAc,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI;QACjD,CAAC,sBAAc,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;QACrD,CAAC,sBAAc,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;QACvD,CAAC,sBAAc,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI;QACnD,CAAC,sBAAc,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS;QACxD,CAAC,sBAAc,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS;QACtD,CAAC,sBAAc,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI;QAClD,CAAC,sBAAc,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;KACxD,CAAA;IAED,OAAO,aAAa,CAAC,MAAM,CAAC,CAAA;AAC9B,CAAC,CAAA;AAED,MAAM,KAAK,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAA4C,EAAE,EAAE,CAAC,CAAC;IAC3F,cAAc,EAAE,CAAC;IACjB,QAAQ,EAAE,EAAE;IACZ,WAAW,EAAE,YAAY;IACzB,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,QAAQ;IACrB,SAAS,EAAE,OAAO;IAElB,YAAY,EAAE,IAAA,qBAAS,EAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,CAAC;IAC3D,OAAO,EAAE,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC;IACtC,SAAS,EAAE;QACT,MAAM,EAAE,MAAM;KACf;CACF,CAAC,CAAC,CAAA;AAEI,MAAM,gBAAgB,GAAqD,CAAC,EAAoB,EAAE,EAAE;QAAxB,EAAE,MAAM,OAAY,EAAP,KAAK,cAAlB,UAAoB,CAAF;IAAO,OAAA,CAC1G,uBAAC,KAAK,kBAAC,MAAM,EAAE,MAAM,IAAM,KAAK,cAC9B,uBAAC,WAAI,IAAC,SAAS,QAAC,UAAU,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,YACzD,uBAAC,WAAI,IAAC,IAAI,kBACR,wBAAC,iBAAU,oBAAG,MAAM,CAAC,WAAW,EAAE,SAAe,GAC5C,GACF,IACD,CACT,CAAA;CAAA,CAAA;AARY,QAAA,gBAAgB,oBAQ5B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalTransferBadge.js b/dist/modules/explorer/components/ProposalTransferBadge.js deleted file mode 100644 index c2f58ac..0000000 --- a/dist/modules/explorer/components/ProposalTransferBadge.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i({color:theme.palette.text.primary}));const ProposalTransferBadge=_a=>{var {label,address}=_a,props=__rest(_a,['label','address']);return(0,jsx_runtime_1.jsxs)(HighlightedBadge_1.HighlightedBadge,Object.assign({alignItems:'center',direction:'row',container:true,style:{gap:20}},props,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',color:'textPrimary',children:label})}),(0,jsx_runtime_1.jsx)(ArrowContainer,{item:true,children:(0,jsx_runtime_1.jsx)(ArrowForward_1.default,{color:'inherit'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(UserBadge_1.UserBadge,{address:address})})]}));};exports.ProposalTransferBadge=ProposalTransferBadge; \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalTransferBadge.js.map b/dist/modules/explorer/components/ProposalTransferBadge.js.map deleted file mode 100644 index 6249de4..0000000 --- a/dist/modules/explorer/components/ProposalTransferBadge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalTransferBadge.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProposalTransferBadge.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,4CAAuE;AACvE,mFAA8D;AAC9D,0FAAsF;AACtF,qEAAiE;AAGjE,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;CAClC,CAAC,CAAC,CAAA;AAOI,MAAM,qBAAqB,GAAoB,CAAC,EAA4B,EAAE,EAAE;QAAhC,EAAE,KAAK,EAAE,OAAO,OAAY,EAAP,KAAK,cAA1B,oBAA4B,CAAF;IAC/E,OAAO,CACL,wBAAC,mCAAgB,kBAAC,UAAU,EAAC,QAAQ,EAAC,SAAS,EAAC,KAAK,EAAC,SAAS,QAAC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAM,KAAK,eAC3F,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,iBAAU,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,YAC/C,KAAK,GACK,GACR,EACP,uBAAC,cAAc,IAAC,IAAI,kBAClB,uBAAC,sBAAgB,IAAC,KAAK,EAAC,SAAS,GAAG,GACrB,EACjB,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,qBAAS,IAAC,OAAO,EAAE,OAAO,GAAI,GAC1B,KACU,CACpB,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,qBAAqB,yBAgBjC"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalsFilter.js b/dist/modules/explorer/components/ProposalsFilter.js deleted file mode 100644 index 8195db1..0000000 --- a/dist/modules/explorer/components/ProposalsFilter.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalFilter=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importStar(require('react'));const core_1=require('@material-ui/core');const icons_1=require('@material-ui/icons');const StatusBadge_1=require('./StatusBadge');const types_1=require('../../../services/services/dao/mappers/proposal/types');const options=[{name:'All',value:'all'},{name:types_1.ProposalStatus.ACTIVE,value:types_1.ProposalStatus.ACTIVE},{name:types_1.ProposalStatus.DROPPED,value:types_1.ProposalStatus.DROPPED},{name:types_1.ProposalStatus.EXECUTABLE,value:types_1.ProposalStatus.EXECUTABLE},{name:types_1.ProposalStatus.EXECUTED,value:types_1.ProposalStatus.EXECUTED},{name:types_1.ProposalStatus.EXPIRED,value:types_1.ProposalStatus.EXPIRED},{name:types_1.ProposalStatus.NO_QUORUM,value:types_1.ProposalStatus.NO_QUORUM},{name:types_1.ProposalStatus.PASSED,value:types_1.ProposalStatus.PASSED},{name:types_1.ProposalStatus.PENDING,value:types_1.ProposalStatus.PENDING},{name:types_1.ProposalStatus.REJECTED,value:types_1.ProposalStatus.REJECTED}];const CustomBadge=(0,core_1.styled)(StatusBadge_1.StatusBadge)({width:'fit-content !important',cursor:'pointer',minWidth:80});const CustomBadgeText=(0,core_1.styled)(StatusBadge_1.StatusBadge)({width:'fit-content !important',cursor:'pointer',minWidth:'fit-content',paddingRight:13,paddingLeft:13});const CustomBox=(0,core_1.styled)(core_1.Grid)({background:'#383E43',borderRadius:8,boxShadow:'2px 2px 2px 1px rgba(0, 0, 0, 0.2)',padding:'20px 40px',width:308,gap:12});const CustomButtom=(0,core_1.styled)(core_1.Button)({minWidth:24});const ProposalFilter=({filterProposalByStatus})=>{const [open,setOpen]=react_1.default.useState(false);const [anchorEl,setAnchorEl]=react_1.default.useState(null);const [state,setState]=(0,react_1.useState)('all');const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const handleClick=event=>{setAnchorEl(event.currentTarget);setOpen(previousOpen=>!previousOpen);};const selectOption=option=>{setState(option.value);setOpen(false);filterProposalByStatus(option.value);};const canBeOpen=open&&Boolean(anchorEl);const id=canBeOpen?'transition-popper':undefined;return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',item:true,xs:isMobileSmall?12:5,justifyContent:isMobileSmall?'flex-start':'flex-end',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(CustomBadgeText,{status:state}),(0,jsx_runtime_1.jsx)(CustomButtom,{'aria-describedby':id,type:'button',onClick:handleClick,children:open?(0,jsx_runtime_1.jsx)(icons_1.KeyboardArrowUp,{}):(0,jsx_runtime_1.jsx)(icons_1.KeyboardArrowDown,{})}),(0,jsx_runtime_1.jsx)(core_1.Popper,{id:id,open:open,anchorEl:anchorEl,transition:true,children:({TransitionProps})=>(0,jsx_runtime_1.jsx)(core_1.Fade,Object.assign({},TransitionProps,{timeout:350,children:(0,jsx_runtime_1.jsx)(CustomBox,{container:true,children:options.map((option,index)=>{return(0,jsx_runtime_1.jsx)(CustomBadge,{status:option.value,onClick:()=>selectOption(option)},index);})})}))})]});};exports.ProposalFilter=ProposalFilter; \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalsFilter.js.map b/dist/modules/explorer/components/ProposalsFilter.js.map deleted file mode 100644 index 21a248e..0000000 --- a/dist/modules/explorer/components/ProposalsFilter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalsFilter.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProposalsFilter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAuC;AACvC,4CAA+F;AAC/F,8CAAuE;AACvE,+CAA2C;AAC3C,wEAA6E;AAM7E,MAAM,OAAO,GAAa;IACxB,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;IAC7B,EAAE,IAAI,EAAE,sBAAc,CAAC,MAAM,EAAE,KAAK,EAA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D,OAAO,CACL,wBAAC,WAAI,IACH,SAAS,QACT,SAAS,EAAC,KAAK,EACf,IAAI,QACJ,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAC1B,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,EACzD,UAAU,EAAC,QAAQ,aAEnB,uBAAC,eAAe,IAAC,MAAM,EAAE,KAAK,GAAoB,EAClD,uBAAC,YAAY,wBAAmB,EAAE,EAAE,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,WAAW,YACnE,IAAI,CAAC,CAAC,CAAC,uBAAC,uBAAe,KAAG,CAAC,CAAC,CAAC,uBAAC,yBAAiB,KAAG,GACtC,EACf,uBAAC,aAAM,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,kBACvD,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CACxB,uBAAC,WAAI,oBAAK,eAAe,IAAE,OAAO,EAAE,GAAG,YACrC,uBAAC,SAAS,IAAC,SAAS,kBACjB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;4BAC7B,OAAO,uBAAC,WAAW,IAAa,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,IAAhE,KAAK,CAA+D,CAAA;wBAC/F,CAAC,CAAC,GACQ,IACP,CACR,GACM,IACJ,CACR,CAAA;AACH,CAAC,CAAA;AA9CY,QAAA,cAAc,kBA8C1B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalsList.js b/dist/modules/explorer/components/ProposalsList.js deleted file mode 100644 index fec46d3..0000000 --- a/dist/modules/explorer/components/ProposalsList.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalsList=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const User_1=require('../pages/User');const react_1=require('react');const react_router_dom_1=require('react-router-dom');const ContentContainer_1=require('./ContentContainer');const KeyboardArrowDown_1=__importDefault(require('@material-ui/icons/KeyboardArrowDown'));const KeyboardArrowUp_1=__importDefault(require('@material-ui/icons/KeyboardArrowUp'));const ProposalTableRow_1=require('../../lite/explorer/components/ProposalTableRow');const ProposalList_1=require('../../lite/explorer/components/ProposalList');const TableContainer=(0,core_1.styled)(ContentContainer_1.ContentContainer)({width:'100%'});const TableHeader=(0,core_1.styled)(core_1.Grid)({padding:'16px 46px',minHeight:34});const ProposalsFooter=(0,core_1.styled)(core_1.Grid)({padding:'16px 46px',borderTop:'.6px solid rgba(125,140,139, 0.2)',minHeight:34});const ProposalsList=({currentLevel,proposals,title,showFooter,rightItem,liteProposals})=>{const [open,setopen]=(0,react_1.useState)(true);return(0,jsx_runtime_1.jsx)(TableContainer,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',wrap:'nowrap',children:[(0,jsx_runtime_1.jsxs)(TableHeader,{item:true,container:true,justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body2',style:{fontWeight:'500'},color:'textPrimary',children:title})}),proposals.length&&proposals.length>0?(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.IconButton,{'aria-label':'expand row',size:'small',onClick:()=>setopen(!open),children:open?(0,jsx_runtime_1.jsx)(KeyboardArrowUp_1.default,{htmlColor:'#FFF'}):(0,jsx_runtime_1.jsx)(KeyboardArrowDown_1.default,{htmlColor:'#FFF'})})}):null]}),proposals.length&&proposals.length>0?(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,wrap:'nowrap',component:core_1.Collapse,in:open,timeout:'auto',unmountOnExit:true,direction:'column',children:proposals.map((p,i)=>(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(react_router_dom_1.Link,{to:`proposal/${p.id}`,children:(0,jsx_runtime_1.jsx)(User_1.ProposalItem,{proposal:p,status:p.getStatus(currentLevel).status,children:rightItem?rightItem(p):null})})},`proposal-${i}`))}):null,liteProposals&&liteProposals.length>0?liteProposals.map((poll,i)=>{return(0,jsx_runtime_1.jsxs)('div',{children:[(0,jsx_runtime_1.jsx)(ProposalTableRow_1.ProposalTableRow,{poll:poll}),liteProposals.length-1!==i?(0,jsx_runtime_1.jsx)(ProposalList_1.StyledDivider,{},`divider-${i}`):null]},`poll-${i}`);}):null,!(proposals.length&&proposals.length>0)&&!(liteProposals&&liteProposals.length>0)?(0,jsx_runtime_1.jsx)(ProposalsFooter,{item:true,container:true,direction:'column',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',align:'center',children:'No items'})})}):null,showFooter&&(0,jsx_runtime_1.jsx)(ProposalsFooter,{item:true,container:true,direction:'column',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(react_router_dom_1.Link,{to:'proposals',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'secondary',variant:'body2',align:'center',children:'View All Proposals'})})})})]})});};exports.ProposalsList=ProposalsList; \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalsList.js.map b/dist/modules/explorer/components/ProposalsList.js.map deleted file mode 100644 index 224c80f..0000000 --- a/dist/modules/explorer/components/ProposalsList.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalsList.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProposalsList.tsx"],"names":[],"mappings":";;;;;;;AAAA,4CAAkF;AAClF,sDAA0D;AAC1D,iCAAu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,CAAI,CAAC,CAAC,CAAC,IAAI,KAFvE,QAAQ,CAAC,EAAE,CAGf,CACP,CAAA;oBACH,CAAC,CAAC;oBACJ,CAAC,CAAC,IAAI,EAEP,CAAC,CAAC,SAAS,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAC7F,uBAAC,eAAe,IAAC,IAAI,QAAC,SAAS,QAAC,SAAS,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,YACxE,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,iBAAU,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,QAAQ,yBAEjC,GACR,GACS,CACnB,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,IAAI,CACb,uBAAC,eAAe,IAAC,IAAI,QAAC,SAAS,QAAC,SAAS,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,YACxE,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,uBAAI,IAAC,EAAE,EAAC,WAAW,YAClB,uBAAC,iBAAU,IAAC,KAAK,EAAC,WAAW,EAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ,mCAE/C,GACR,GACF,GACS,CACnB,IACI,GACQ,CAClB,CAAA;AACH,CAAC,CAAA;AAnFY,QAAA,aAAa,iBAmFzB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalsTable.js b/dist/modules/explorer/components/ProposalsTable.js deleted file mode 100644 index e0fb81c..0000000 --- a/dist/modules/explorer/components/ProposalsTable.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalsTable=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const ResponsiveTable_1=require('./ResponsiveTable');const TableHeader_1=require('./styled/TableHeader');const ProposalTableRow_1=require('./ProposalTableRow');const ProposalTableHeadText=({children})=>(0,jsx_runtime_1.jsx)(ProposalTableHeadItem,{variant:'subtitle1',color:'textSecondary',children:children});const ProposalTableHeadItem=(0,core_1.styled)(core_1.Typography)({fontWeight:'bold',paddingLeft:20,paddingBottom:9});const NoProposals=(0,core_1.styled)(core_1.Typography)(({theme})=>({marginTop:20,marginBottom:20,paddingLeft:20,boxSizing:'border-box',[theme.breakpoints.down('sm')]:{textAlign:'center'}}));const LoaderContainer=(0,core_1.styled)(core_1.Grid)({paddingTop:40,paddingBottom:40});const ProposalsTable=({status,proposals,isLoading})=>{const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));return(0,jsx_runtime_1.jsxs)(ResponsiveTable_1.ResponsiveTableContainer,{children:[!isMobileSmall?(0,jsx_runtime_1.jsx)(TableHeader_1.TableHeader,{container:true,direction:'row',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:3,children:(0,jsx_runtime_1.jsx)(ProposalTableHeadText,{children:`${status||'All'} proposals`.toUpperCase()})})}):null,proposals.map((proposal,i)=>(0,jsx_runtime_1.jsx)(ProposalTableRow_1.ProposalTableRow,{proposal:proposal},`proposal-${i}`)),proposals.length===0?(0,jsx_runtime_1.jsxs)(NoProposals,{variant:'subtitle1',color:'textSecondary',children:['No ',status?status:'',' proposals']}):null,isLoading&&(0,jsx_runtime_1.jsx)(LoaderContainer,{container:true,direction:'row',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.CircularProgress,{color:'secondary'})})]});};exports.ProposalsTable=ProposalsTable; \ No newline at end of file diff --git a/dist/modules/explorer/components/ProposalsTable.js.map b/dist/modules/explorer/components/ProposalsTable.js.map deleted file mode 100644 index 99d8ee5..0000000 --- a/dist/modules/explorer/components/ProposalsTable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalsTable.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ProposalsTable.tsx"],"names":[],"m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IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,qBAAqB,cAAE,GAAG,MAAM,IAAI,KAAK,YAAY,CAAC,WAAW,EAAE,GAAyB,GACxF,GACK,CACf,CAAC,CAAC,CAAC,IAAI,EAEP,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,CAC9B,uBAAC,mCAAgB,IAAuB,QAAQ,EAAE,QAAQ,IAAnC,YAAY,CAAC,EAAE,CAAwB,CAC/D,CAAC,EAED,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CACxB,wBAAC,WAAW,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,eAAe,oBAChD,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,kBACZ,CACf,CAAC,CAAC,CAAC,IAAI,EAEP,SAAS,IAAI,CACZ,uBAAC,eAAe,IAAC,SAAS,QAAC,SAAS,EAAC,KAAK,EAAC,cAAc,EAAC,QAAQ,YAChE,uBAAC,uBAAgB,IAAC,KAAK,EAAC,WAAW,GAAG,GACtB,CACnB,IACwB,CAC5B,CAAA;AACH,CAAC,CAAA;AA/BY,QAAA,cAAc,kBA+B1B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ResponsiveDialog.js b/dist/modules/explorer/components/ResponsiveDialog.js deleted file mode 100644 index b467ab5..0000000 --- a/dist/modules/explorer/components/ResponsiveDialog.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalFormResponsiveDialog=exports.ResponsiveDialog=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const BottomSheet_1=require('./BottomSheet');const CloseButton_1=__importDefault(require('../../common/CloseButton'));const BackButton_1=__importDefault(require('../../common/BackButton'));const Content=(0,core_1.styled)(core_1.Grid)({padding:'41px 46px'});const TitleText=(0,core_1.styled)(core_1.Typography)({color:'#ffff',fontWeight:550,lineHeight:'.80',textTransform:'capitalize'});const CustomDialog=(0,core_1.styled)(core_1.Dialog)({'& .MuiDialog-paperWidthMd':{width:'-webkit-fill-available',height:'-webkit-fill-available'},'& .MuiDialog-paperWidthXs':{width:'-webkit-fill-available',height:'auto',maxWidth:'960px !important'},'& .MuiDialog-paperWidthLg':{width:'-webkit-fill-available',height:'max-content',maxWidth:'960px !important'}});const ResponsiveDialog=props=>{const {open,onClose,onGoBack,title,children,template='sm'}=props;const theme=(0,core_1.useTheme)();const isSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));return isSmall?(0,jsx_runtime_1.jsx)(BottomSheet_1.BottomSheet,{open:open,onDismiss:onClose,children:(0,jsx_runtime_1.jsxs)(Content,{container:true,direction:'column',style:{gap:46},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',wrap:'nowrap',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:onGoBack?(0,jsx_runtime_1.jsx)(BackButton_1.default,{onGoBack:onGoBack}):null}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(TitleText,{children:title})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(CloseButton_1.default,{onClose:onClose})})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:children})]})}):(0,jsx_runtime_1.jsx)(CustomDialog,{open:open,onClose:onClose,maxWidth:template,children:(0,jsx_runtime_1.jsxs)(Content,{container:true,direction:'column',style:{gap:30},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',wrap:'nowrap',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:onGoBack?(0,jsx_runtime_1.jsx)(BackButton_1.default,{onGoBack:onGoBack}):null}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(TitleText,{color:'textPrimary',children:title})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(CloseButton_1.default,{onClose:onClose})})]}),children]})});};exports.ResponsiveDialog=ResponsiveDialog;const ProposalFormResponsiveDialog=({open,onClose,children})=>{const theme=(0,core_1.useTheme)();const isSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));return isSmall?(0,jsx_runtime_1.jsx)(BottomSheet_1.BottomSheet,{open:open,onDismiss:onClose,children:children}):(0,jsx_runtime_1.jsx)(core_1.Dialog,{open:open,onClose:onClose,children:children});};exports.ProposalFormResponsiveDialog=ProposalFormResponsiveDialog; \ No newline at end of file diff --git a/dist/modules/explorer/components/ResponsiveDialog.js.map b/dist/modules/explorer/components/ResponsiveDialog.js.map deleted file mode 100644 index 5683fe3..0000000 --- a/dist/modules/explorer/components/ResponsiveDialog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ResponsiveDialog.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ResponsiveDialog.tsx"],"names":[],"mappings":";;;;;;;AACA,4CAAyG;AACzG,+CAA2C;AAC3C,6EAAoD;AACpD,2EAAkD;AAElD,MAAM,OAAO,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC3B,OAAO,EAAE,WAAW;CACrB,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACnC,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,GAAG;IACf,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,YAAY;CAC5B,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC;IAClC,2BAA2B,EAAE;QAC3B,KAAK,EAAE,wBAAwB;QAC/B,MAAM,EAAE,wBAAwB;KACjC;IACD,2BAA2B,EAAE;QA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;AACH,CAAC,CAAA;AAjBY,QAAA,4BAA4B,gCAiBxC"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ResponsiveTable.js b/dist/modules/explorer/components/ResponsiveTable.js deleted file mode 100644 index 47d4567..0000000 --- a/dist/modules/explorer/components/ResponsiveTable.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ResponsiveTableContainer=void 0;const core_1=require('@material-ui/core');exports.ResponsiveTableContainer=(0,core_1.styled)(core_1.Box)(({theme})=>({width:'100%',padding:'72px 8%',boxSizing:'border-box',paddingBottom:'24px',[theme.breakpoints.down('sm')]:{padding:'0',borderBottom:`2px solid ${theme.palette.primary.light}`}})); \ No newline at end of file diff --git a/dist/modules/explorer/components/ResponsiveTable.js.map b/dist/modules/explorer/components/ResponsiveTable.js.map deleted file mode 100644 index 2cbddd8..0000000 --- a/dist/modules/explorer/components/ResponsiveTable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ResponsiveTable.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ResponsiveTable.tsx"],"names":[],"mappings":";;;AAAA,4CAA+C;AAElC,QAAA,wBAAwB,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,YAAY;IACvB,aAAa,EAAE,MAAM;IACrB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,OAAO,EAAE,GAAG;QACZ,YAAY,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE;KACzD;CACF,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/explorer/components/SideBar.js b/dist/modules/explorer/components/SideBar.js deleted file mode 100644 index d58a9cb..0000000 --- a/dist/modules/explorer/components/SideBar.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.SideBar=exports.debounce=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const home_svg_1=require('../../../assets/logos/home.svg');const voting_svg_1=require('../../../assets/logos/voting.svg');const treasury_svg_1=require('../../../assets/logos/treasury.svg');const list_svg_1=require('../../../assets/logos/list.svg');const user_svg_1=require('../../../assets/logos/user.svg');const react_router_dom_1=require('react-router-dom');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const router_1=require('../pages/DAO/router');const debounce=(callback,waitFor)=>{let timeout=0;return(...args)=>{let result;clearTimeout(timeout);timeout=setTimeout(()=>{result=callback(...args);},waitFor);return result;};};exports.debounce=debounce;const Bar=(0,core_1.styled)(core_1.Grid)(({theme})=>({minWidth:102,borderRight:`2px solid ${theme.palette.primary.light}`,[theme.breakpoints.down('xs')]:{width:'100%',borderBottom:`2px solid ${theme.palette.primary.light}`,borderRight:`unset`}}));const SidebarButton=(0,core_1.styled)(core_1.IconButton)(({theme})=>({paddingTop:32,width:'100%',[theme.breakpoints.down('xs')]:{paddingTop:12}}));const IconContainer=(0,core_1.styled)('span')(({theme})=>({'& > svg > *':{fill:({isSelected})=>isSelected?theme.palette.secondary.main:theme.palette.text.secondary}}));const ButtonIcon=({Icon,isSelected,handler})=>{return(0,jsx_runtime_1.jsx)(SidebarButton,{onClick:handler,children:(0,jsx_runtime_1.jsx)(IconContainer,{isSelected:isSelected,children:(0,jsx_runtime_1.jsx)(Icon,{})})});};const StyledBottomBar=(0,core_1.styled)(core_1.Grid)(({theme,visible})=>({position:'fixed',height:55,bottom:visible?0:-55,backgroundColor:theme.palette.primary.main,borderTop:`2px solid ${theme.palette.primary.light}`,zIndex:10000,width:'100%',transition:'bottom 0.5s'}));const BottomNavBar=({children})=>{const [prevScrollPos,setPrevScrollPos]=(0,react_1.useState)(0);const [visible,setVisible]=(0,react_1.useState)(true);(0,react_1.useEffect)(()=>{const handleScroll=(0,exports.debounce)(()=>{const currentScrollPos=123;setVisible(prevScrollPos>currentScrollPos||currentScrollPos<10);setPrevScrollPos(currentScrollPos);},100);},[prevScrollPos,visible]);return(0,jsx_runtime_1.jsx)(StyledBottomBar,{container:true,direction:'row',justifyContent:'space-evenly',visible:visible,children:children});};const SideNavBar=({children})=>{const theme=(0,core_1.useTheme)();const isMobileExtraSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));return(0,jsx_runtime_1.jsx)(Bar,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:isMobileExtraSmall?'row':'column',justifyContent:isMobileExtraSmall?'space-evenly':'flex-start',children:children})});};const SideBar=()=>{const history=(0,react_router_dom_1.useHistory)();const {account}=(0,useTezos_1.useTezos)();const {pathname}=(0,react_router_dom_1.useLocation)();const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);const theme=(0,core_1.useTheme)();const isMobileExtraSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));const SIDE_BAR_ICONS=(0,react_1.useMemo)(()=>{if(!dao){return[];}const commonButons=[{Icon:home_svg_1.ReactComponent,handler:()=>history.push('/explorer/dao/'+daoId),name:'overview'},{Icon:voting_svg_1.ReactComponent,handler:()=>history.push(`/explorer/dao/${daoId}/proposals`),name:'proposals'},{Icon:treasury_svg_1.ReactComponent,handler:()=>history.push(`/explorer/dao/${daoId}/treasury`),name:'treasury'}];if(dao.data.type==='lambda'){if(account){return[...commonButons,{Icon:list_svg_1.ReactComponent,handler:()=>history.push(`/explorer/dao/${daoId}/registry`),name:'registry'},{Icon:user_svg_1.ReactComponent,handler:()=>history.push(`/explorer/dao/${daoId}/user`),name:'user'}];}return[...commonButons,{Icon:list_svg_1.ReactComponent,handler:()=>history.push(`/explorer/dao/${daoId}/registry`),name:'registry'}];}else{if(account){commonButons.push({Icon:user_svg_1.ReactComponent,handler:()=>history.push(`/explorer/dao/${daoId}/user`),name:'user'});}return commonButons;}},[account,dao,daoId,history]);return!isMobileExtraSmall?(0,jsx_runtime_1.jsx)(SideNavBar,{children:SIDE_BAR_ICONS.map(({Icon,handler,name})=>{return(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ButtonIcon,{Icon:Icon,handler:handler,isSelected:pathname.includes(name)})},name);})}):(0,jsx_runtime_1.jsx)(BottomNavBar,{children:SIDE_BAR_ICONS.map(({Icon,handler,name})=>(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ButtonIcon,{Icon:Icon,handler:handler,isSelected:pathname.includes(name)})},name))});};exports.SideBar=SideBar; \ No newline at end of file diff --git a/dist/modules/explorer/components/SideBar.js.map b/dist/modules/explorer/components/SideBar.js.map deleted file mode 100644 index 887e945..0000000 --- a/dist/modules/explorer/components/SideBar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SideBar.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/SideBar.tsx"],"names":[],"mappings":";;;;AAAA,4CAA4F;AAC5F,iCAA2D;AAE3D,oDAAmE;AACnE,wDAAsE;AACtE,4DAA0E;AAC1E,oDAAsE;AACtE,oDAAkE;AAElE,uDAA0D;AAC1D,+DAA2D;AAC3D,6DAAyD;AACzD,gDAA8C;AAEvC,MAAM,QAAQ,GAAG,CAAoC,QAAW,EAAE,OAAe,EAAE,EAAE;IAC1F,IAAI,OAAO,GAAG,CAAC,CAAA;IACf,OAAO,CAAC,GAAG,IAAmB,EAAiB,EAAE;QAC/C,IAAI,MAAW,CAAA;QACf,YAAY,CAAC,OAAO,CAAC,CAAA;QACrB,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YACxB,MAAM,GAAG,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAA;QAC5B,CAAC,EAAE,OAAO,CAAsB,CAAA;QAChC,OAAO,MAAM,CAAA;IACf,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AAC,IAAI,CAAC,iBAAiB,KAAK,OAAO,CAAC;oBAC1D,IAAI,EAAE,MAAM;iBACb,CAAC,CAAA;aACH;YAED,OAAO,YAAY,CAAA;SACpB;IACH,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;IAElC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAC3B,uBAAC,UAAU,cACR,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;YAC9C,OAAO,CACL,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI,IADnE,IAAI,CAEb,CACR,CAAA;QACH,CAAC,CAAC,GACS,CACd,CAAC,CAAC,CAAC,CACF,uBAAC,YAAY,cACV,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC/C,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI,IADnE,IAAI,CAEb,CACR,CAAC,GACW,CAChB,CAAA;AACH,CAAC,CAAA;AAxFY,QAAA,OAAO,WAwFnB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/StatusBadge.js b/dist/modules/explorer/components/StatusBadge.js deleted file mode 100644 index c163cd6..0000000 --- a/dist/modules/explorer/components/StatusBadge.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i{switch(status){case types_1.ProposalStatus.ACTIVE:return{background:'#0085ff33',color:'#0085FF',text:'Active'};case types_1.ProposalStatus.PENDING:return{background:'#ffc83933',color:'#ffc839',text:'Pending'};case types_1.ProposalStatus.PASSED:return{background:'#4aff9833',color:'#4aff98',text:'Passed'};case types_1.ProposalStatus.EXECUTABLE:return{background:'#35796F',color:'#5AFFE1',text:'Passed - Executable'};case types_1.ProposalStatus.REJECTED:return{background:'#ff5a6433',color:'#ff5a64',text:'Rejected'};case types_1.ProposalStatus.EXPIRED:return{background:'#9a40a933',color:'#9a40a9',text:'Expired'};case types_1.ProposalStatus.DROPPED:return{background:'#b93d3d33',color:'#b93d3d',text:'Dropped'};case types_1.ProposalStatus.NO_QUORUM:return{background:'#484A4C',color:'#8A8A8A',text:'No Quorum'};case types_1.ProposalStatus.EXECUTED:return{background:'#2F7952',color:'#58FF98',text:'Passed - Executed'};case'all':return{background:'#81feb733',color:'#81feb7',text:'All'};}};exports.Badge=(0,core_1.styled)(core_1.Grid)(({status})=>({borderRadius:50,textAlign:'center',minHeight:24,minWidth:105,padding:'2px 8px',background:statusColors(status).background,color:statusColors(status).color,whiteSpace:'nowrap',fontWeight:300}));const StatusBadge=_a=>{var {status}=_a,props=__rest(_a,['status']);return(0,jsx_runtime_1.jsx)(exports.Badge,Object.assign({status:status},props,{children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'inherit',children:[' ',statusColors(status).text,' ']})}));};exports.StatusBadge=StatusBadge; \ No newline at end of file diff --git a/dist/modules/explorer/components/StatusBadge.js.map b/dist/modules/explorer/components/StatusBadge.js.map deleted file mode 100644 index dce40e8..0000000 --- a/dist/modules/explorer/components/StatusBadge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StatusBadge.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/StatusBadge.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAC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S;gBAChB,IAAI,EAAE,mBAAmB;aAC1B,CAAA;QACH,KAAK,KAAK;YACR,OAAO;gBACL,UAAU,EAAE,WAAW;gBACvB,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,KAAK;aACZ,CAAA;KACJ;AACH,CAAC,CAAA;AAEY,QAAA,KAAK,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,MAAM,EAAoD,EAAE,EAAE,CAAC,CAAC;IACnG,YAAY,EAAE,EAAE;IAChB,SAAS,EAAE,QAAQ;IACnB,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,GAAG;IACb,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,UAAU;IAC3C,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,KAAK;IACjC,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,GAAG;CAChB,CAAC,CAAC,CAAA;AAEI,MAAM,WAAW,GAA6D,CAAC,EAAoB,EAAE,EAAE;QAAxB,EAAE,MAAM,OAAY,EAAP,KAAK,cAAlB,UAAoB,CAAF;IAAO,OAAA,CAC7G,uBAAC,aAAK,kBAAC,MAAM,EAAE,MAAM,IAAM,KAAK,cAC9B,wBAAC,iBAAU,IAAC,KAAK,EAAC,SAAS,kBAAG,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,SAAe,IAChE,CACT,CAAA;CAAA,CAAA;AAJY,QAAA,WAAW,eAIvB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/TabPanel.js b/dist/modules/explorer/components/TabPanel.js deleted file mode 100644 index 30bf985..0000000 --- a/dist/modules/explorer/components/TabPanel.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i{const {children,value,index}=props,other=__rest(props,['children','value','index']);return(0,jsx_runtime_1.jsx)('div',Object.assign({role:'tabpanel',hidden:value!==index,id:`simple-tabpanel-${index}`,'aria-labelledby':`simple-tab-${index}`},other,{children:value===index&&(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:children})}));};exports.TabPanel=TabPanel; \ No newline at end of file diff --git a/dist/modules/explorer/components/TabPanel.js.map b/dist/modules/explorer/components/TabPanel.js.map deleted file mode 100644 index 7aba2f7..0000000 --- a/dist/modules/explorer/components/TabPanel.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TabPanel.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/TabPanel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAQO,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;IAC/C,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,KAAe,KAAK,EAAf,KAAK,UAAK,KAAK,EAA5C,8BAAoC,CAAQ,CAAA;IAElD,OAAO,CACL,8CACE,IAAI,EAAC,UAAU,EACf,MAAM,EAAE,KAAK,KAAK,KAAK,EACvB,EAAE,EAAE,mBAAmB,KAAK,EAAE,qBACb,cAAc,KAAK,EAAE,IAClC,KAAK,cAER,KAAK,KAAK,KAAK,IAAI,2DAAG,QAAQ,GAAI,IAC/B,CACP,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,QAAQ,YAcpB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/TemplateHeader.js b/dist/modules/explorer/components/TemplateHeader.js deleted file mode 100644 index 057719a..0000000 --- a/dist/modules/explorer/components/TemplateHeader.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.TemplateHeader=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const RectangleHeader_1=require('./styled/RectangleHeader');const CopyAddress_1=require('../../common/CopyAddress');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const router_1=require('../pages/DAO/router');const Container=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main,boxSizing:'border-box',display:'flex',alignItems:'center'}));const CustomRectangleContainer=(0,core_1.styled)(RectangleHeader_1.RectangleContainer)(({theme})=>({borderBottom:'none',paddingBottom:'0',[theme.breakpoints.down('sm')]:{paddingBottom:40}}));const TemplateHeader=({template,children})=>{const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);return(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsx)(CustomRectangleContainer,{container:true,justifyContent:'space-between',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:12,children:[(0,jsx_runtime_1.jsxs)(Container,{container:true,direction:isMobileSmall?'column':'row',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:12,sm:6,children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle1',color:'secondary',align:isMobileSmall?'center':'left',children:dao===null||dao===void 0?void 0:dao.data.name}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h5',color:'textSecondary',align:isMobileSmall?'center':'left',style:{margin:isMobileSmall?'15px 0 25px 0':0},children:template.charAt(0).toUpperCase()+template.slice(1,template.length)})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,sm:6,container:true,justifyContent:isMobileSmall?'center':'flex-end',children:children})]}),dao&&!isMobileSmall&&(0,jsx_runtime_1.jsx)(CopyAddress_1.CopyAddress,{address:dao.data.address,justifyContent:isMobileSmall?'center':'flex-start'})]})})});};exports.TemplateHeader=TemplateHeader; \ No newline at end of file diff --git a/dist/modules/explorer/components/TemplateHeader.js.map b/dist/modules/explorer/components/TemplateHeader.js.map deleted file mode 100644 index 9b9b6b3..0000000 --- a/dist/modules/explorer/components/TemplateHeader.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TemplateHeader.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/TemplateHeader.tsx"],"names":[],"mappings":";;;;AACA,4CAAqF;AACrF,8DAA6D;AAC7D,4DAAwD;AACxD,+DAA2D;AAC3D,gDAA8C;AAE9C,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7C,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACtC,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;CACrB,CAAC,CAAC,CAAA;AAEH,MAAM,wBAAwB,GAAG,IAAA,aAAM,EAAC,oCAAkB,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1E,YAAY,EAAE,MAAM;IACpB,aAAa,EAAE,GAAG;IAClB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,aAAa,EAAE,EAAE;KAClB;CACF,CAAC,CAAC,CAAA;AAEI,MAAM,cAAc,GAGtB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9B,MAAM,KAAK,GAAG,IAAA,eAAQ,GAAE,CAAA;IACxB,MAAM,aAAa,GAAG,IAAA,oBAAa,EAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IACjE,MAAM,KAAK,GAAG,IAAA,iBAAQ,GAAE,CAAA;IACxB,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,IAAA,eAAM,EAAC,KAAK,CAAC,CAAA;IAEnC,OAAO,CACL,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,YACf,uBAAC,wBAAwB,IAAC,SAAS,QAAC,cAA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B,CACR,CAAA;AACH,CAAC,CAAA;AAtCY,QAAA,cAAc,kBAsC1B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/Toolbar.js b/dist/modules/explorer/components/Toolbar.js deleted file mode 100644 index c04fe17..0000000 --- a/dist/modules/explorer/components/Toolbar.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.Navbar=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_router_dom_1=require('react-router-dom');const homebase_logo_svg_1=__importDefault(require('../../../assets/logos/homebase_logo.svg'));const useTezos_1=require('../../../services/beacon/hooks/useTezos');const ChangeNetworkButton_1=require('./ChangeNetworkButton');const UserProfileName_1=require('./UserProfileName');const ProfileAvatar_1=require('./styled/ProfileAvatar');const NavigationMenu_1=require('./NavigationMenu');const ActionSheets_1=require('../context/ActionSheets');const SmallButton_1=require('../../common/SmallButton');const Header=(0,core_1.styled)(core_1.Grid)(({theme})=>({width:'1000px',height:'100%',margin:'auto',padding:'28px 0',flexDirection:'row',['@media (max-width: 1425px)']:{},['@media (max-width:1335px)']:{},['@media (max-width:1167px)']:{width:'86vw'},['@media (max-width:1030px)']:{},['@media (max-width:960px)']:{},['@media (max-width:645px)']:{flexDirection:'column'}}));const StyledAppBar=(0,core_1.styled)(core_1.AppBar)(({theme})=>({boxShadow:'none',background:theme.palette.primary.dark,position:'sticky',['@media (max-height:750px)']:{position:'static'}}));const StyledToolbar=(0,core_1.styled)(core_1.Toolbar)({width:'100%',padding:0,boxSizing:'border-box',justifyContent:'space-between',flexWrap:'wrap'});const AddressContainer=(0,core_1.styled)(core_1.Grid)({cursor:'pointer'});const LogoText=(0,core_1.styled)(core_1.Typography)({fontWeight:'bold',fontSize:'24px',cursor:'pointer',fontFamily:'Roboto',letterSpacing:'initial'});const AddressBarWrapper=(0,core_1.styled)(core_1.Grid)({'boxSizing':'border-box','padding':'8px 16px','borderRadius':4,'&:hover':{background:'rgba(129, 254, 183, 0.03)'}});const LogoItem=(0,core_1.styled)('img')({height:'30px',cursor:'pointer',paddingTop:8});const ToolbarContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({['@media (max-width: 645px)']:{marginBottom:'20px'}}));const Navbar=({disableMobileMenu,children})=>{const {connect,account}=(0,useTezos_1.useTezos)();const theme=(0,core_1.useTheme)();const isMobileExtraSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('mobile'));const {open:openUserMenuSheet}=(0,ActionSheets_1.useActionSheet)(ActionSheets_1.ActionSheet.UserMenu);const history=(0,react_router_dom_1.useHistory)();return(0,jsx_runtime_1.jsx)(StyledAppBar,{children:(0,jsx_runtime_1.jsxs)(StyledToolbar,{children:[(0,jsx_runtime_1.jsxs)(Header,{container:true,alignItems:'center',wrap:'wrap',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Box,{onClick:()=>location.href=`/explorer`,children:(0,jsx_runtime_1.jsxs)(ToolbarContainer,{container:true,alignItems:'center',wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(LogoItem,{src:homebase_logo_svg_1.default})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Box,{paddingLeft:'10px',children:(0,jsx_runtime_1.jsx)(LogoText,{color:'textPrimary',children:'Homebase'})})})]})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:isMobileExtraSmall?'center':'flex-end',children:account?(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',style:{gap:12},justifyContent:isMobileExtraSmall?'center':'flex-end',children:[children,(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',style:{gap:8},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ChangeNetworkButton_1.ChangeNetworkButton,{})}),(0,jsx_runtime_1.jsx)(AddressBarWrapper,{item:true,onClick:()=>openUserMenuSheet(),children:(0,jsx_runtime_1.jsxs)(AddressContainer,{container:true,alignItems:'center',wrap:'nowrap',justifyContent:'flex-end',style:{gap:8},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProfileAvatar_1.ProfileAvatar,{size:22,address:account})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{children:(0,jsx_runtime_1.jsx)(UserProfileName_1.UserProfileName,{address:account,short:true})})})]})})]})})]}):(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:'flex-end',alignItems:'center',wrap:'nowrap',style:{gap:8},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ChangeNetworkButton_1.ChangeNetworkButton,{})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(SmallButton_1.SmallButton,{color:'secondary',variant:'contained',style:{fontSize:'14px'},onClick:()=>connect(),children:'Connect Wallet'})})]})})})]}),(0,jsx_runtime_1.jsx)(NavigationMenu_1.NavigationMenu,{disableMobileMenu:disableMobileMenu})]})});};exports.Navbar=Navbar; \ No newline at end of file diff --git a/dist/modules/explorer/components/Toolbar.js.map b/dist/modules/explorer/components/Toolbar.js.map deleted file mode 100644 index 0d0e7e4..0000000 --- a/dist/modules/explorer/components/Toolbar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/Toolbar.tsx"],"names":[],"mappings":";;;;;;;AACA,4CAW0B;AAC1B,uDAA6C;AAE7C,uFAAuD;AAC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AAE,CAAC,iBAAiB,EAAE,YACxD,wBAAC,gBAAgB,IACf,SAAS,QACT,UAAU,EAAC,QAAQ,EACnB,IAAI,EAAC,QAAQ,EACb,cAAc,EAAC,UAAU,EACzB,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,aAEjB,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,6BAAa,IAAC,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,GAAI,GACxC,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,iBAAU,cACT,uBAAC,iCAAe,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,GAAI,GACvC,GACR,IACU,GACD,IACf,GACF,IACF,CACR,CAAC,CAAC,CAAC,CACF,wBAAC,WAAI,IAAC,SAAS,QAAC,cAAc,EAAC,UAAU,EAAC,UAAU,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,aAC3F,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,yCAAmB,KAAG,GAClB,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,yBAAW,IACV,KAAK,EAAC,WAAW,EACjB,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAC3B,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,+BAGZ,GACT,IACF,CACR,GACI,GACF,IACA,EACT,uBAAC,+BAAc,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,IAC1C,GACH,CAChB,CAAA;AACH,CAAC,CAAA;AAxFY,QAAA,MAAM,UAwFlB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/TransferBadge.js b/dist/modules/explorer/components/TransferBadge.js deleted file mode 100644 index 879acf7..0000000 --- a/dist/modules/explorer/components/TransferBadge.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i({color:theme.palette.text.primary}));const TransferBadge=_a=>{var {address,amount,contract,tokenId}=_a,props=__rest(_a,['address','amount','contract','tokenId']);const {data}=(0,useTokenMetadata_1.useTokenMetadata)(contract,tokenId);return(0,jsx_runtime_1.jsxs)(HighlightedBadge_1.HighlightedBadge,Object.assign({justifyContent:'center',alignItems:'center',direction:'row',container:true,style:{gap:20}},props,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:data&&(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'body1',color:'textPrimary',children:[(0,utils_1.parseUnits)(amount,data.decimals).toString(),' ',(0,jsx_runtime_1.jsx)(FA2Symbol_1.FA2Symbol,{contractAddress:contract,tokenId:tokenId})]})}),(0,jsx_runtime_1.jsx)(ArrowContainer,{item:true,children:(0,jsx_runtime_1.jsx)(ArrowForward_1.default,{color:'inherit'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(UserBadge_1.UserBadge,{address:address})})]}));};exports.TransferBadge=TransferBadge; \ No newline at end of file diff --git a/dist/modules/explorer/components/TransferBadge.js.map b/dist/modules/explorer/components/TransferBadge.js.map deleted file mode 100644 index 253d8f2..0000000 --- a/dist/modules/explorer/components/TransferBadge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransferBadge.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/TransferBadge.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,4CAAuE;AACvE,mFAA0D;AAE1D,0FAAsF;AACtF,qEAAiE;AAEjE,wFAAoF;AACpF,oDAAqD;AACrD,2CAAuC;AAEvC,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;CAClC,CAAC,CAAC,CAAA;AASI,MAAM,aAAa,GAAoB,CAAC,EAAgD,EAAE,EAAE;QAApD,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,OAAY,EAAP,KAAK,cAA9C,4CAAgD,CAAF;IAC3F,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,mCAAgB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;IAEpD,OAAO,CACL,wBAAC,mCAAgB,kBACf,cAAc,EAAC,QAAQ,EACvB,UAAU,EAAC,QAAQ,EACnB,SAAS,EAAC,KAAK,EACf,SAAS,QACT,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IACd,KAAK,eAET,uBAAC,WAAI,IAAC,IAAI,kBACP,IAAI,IAAI,CACP,wBAAC,iBAAU,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,aAAa,aAC5C,IAAA,kBAAU,EAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,OAAE,uBAAC,qBAAS,IAAC,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAI,IAC9F,CACd,GACI,EACP,uBAAC,cAAc,IAAC,IAAI,kBAClB,uBAAC,sBAAY,IAAC,KAAK,EAAC,SAAS,GAAG,GACjB,EACjB,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,qBAAS,IAAC,OAAO,EAAE,OAAO,GAAI,GAC1B,KACU,CACpB,CAAA;AACH,CAAC,CAAA;AA3BY,QAAA,aAAa,iBA2BzB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/UpdateRegistryDialog.js b/dist/modules/explorer/components/UpdateRegistryDialog.js deleted file mode 100644 index ae21752..0000000 --- a/dist/modules/explorer/components/UpdateRegistryDialog.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};Object.defineProperty(exports,'__esModule',{value:true});exports.UpdateRegistryDialog=exports.updateRegistryFormSchema=exports.registryProposalFormInitialState=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importStar(require('react'));const core_1=require('@material-ui/core');const ErrorText_1=require('./styled/ErrorText');const Yup=__importStar(require('yup'));const react_hook_form_1=require('react-hook-form');const BatchBar_1=require('./BatchBar');const ProposalFormInput_1=require('./ProposalFormInput');const emptyItem={key:'',value:''};const TextArea=(0,core_1.styled)(core_1.TextField)({'& .MuiInputBase-input':{textAlign:'left',paddingTop:6}});exports.registryProposalFormInitialState={registryUpdateForm:{list:[emptyItem],isBatch:false}};exports.updateRegistryFormSchema=Yup.object().shape({registryUpdateForm:Yup.object().shape({list:Yup.array().of(Yup.object().shape({key:Yup.string().required('Required')}))})});const UpdateRegistryDialog=({open})=>{var _a,_b,_c,_d,_e,_f;const [activeItem,setActiveItem]=react_1.default.useState(1);const {control,getValues,setValue,reset,formState:{errors,touchedFields:touched}}=(0,react_hook_form_1.useFormContext)();const {fields,append}=(0,react_hook_form_1.useFieldArray)({control,name:'registryUpdateForm.list'});const values=getValues();const [isBatch,setIsBatch]=(0,react_1.useState)(values.registryUpdateForm.isBatch);const handleIsBatchChange=()=>{setIsBatch(!isBatch);setValue('registryUpdateForm.isBatch',!isBatch);setActiveItem(1);};const keyError=(_c=(_b=(_a=errors===null||errors===void 0?void 0:errors.registryUpdateForm)===null||_a===void 0?void 0:_a.list)===null||_b===void 0?void 0:_b[activeItem-1])===null||_c===void 0?void 0:_c.key;const valueError=(_f=(_e=(_d=errors===null||errors===void 0?void 0:errors.registryUpdateForm)===null||_d===void 0?void 0:_d.list)===null||_e===void 0?void 0:_e[activeItem-1])===null||_f===void 0?void 0:_f.value;(0,react_1.useMemo)(()=>{if(!open){reset();}},[open,reset]);return(0,jsx_runtime_1.jsx)(core_1.DialogContent,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:31},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(BatchBar_1.BatchBar,{isBatch:isBatch,stateIsBatch:values.registryUpdateForm.isBatch,handleIsBatchChange:handleIsBatchChange,onClickAdd:()=>{append(emptyItem);setActiveItem(activeItem+1);},items:values.registryUpdateForm.list,activeItem:activeItem,setActiveItem:index=>setActiveItem(index+1)})}),fields.map((field,index)=>{var _a,_b,_c,_d,_e,_f;return index===activeItem-1&&(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(ProposalFormInput_1.ProposalFormInput,{label:'Key',children:[(0,jsx_runtime_1.jsx)(react_hook_form_1.Controller,{name:`registryUpdateForm.list.${activeItem-1}.key`,control:control,render:({field})=>(0,jsx_runtime_1.jsx)(core_1.TextField,Object.assign({},field,{type:'string',InputProps:{disableUnderline:true},placeholder:'Type a Key'}))},field.id),keyError&&((_c=(_b=(_a=touched.registryUpdateForm)===null||_a===void 0?void 0:_a.list)===null||_b===void 0?void 0:_b[activeItem-1])===null||_c===void 0?void 0:_c.key)?(0,jsx_runtime_1.jsx)(ErrorText_1.ErrorText,{children:keyError}):null]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{children:(0,jsx_runtime_1.jsxs)(ProposalFormInput_1.ProposalFormInput,{label:'Value',children:[(0,jsx_runtime_1.jsx)(react_hook_form_1.Controller,{name:`registryUpdateForm.list.${activeItem-1}.value`,control:control,render:({field})=>(0,jsx_runtime_1.jsx)(TextArea,Object.assign({},field,{multiline:true,type:'string',rows:6,placeholder:'Type a value',InputProps:{disableUnderline:true}}))},field.id),valueError&&((_f=(_e=(_d=touched.registryUpdateForm)===null||_d===void 0?void 0:_d.list)===null||_e===void 0?void 0:_e[activeItem-1])===null||_f===void 0?void 0:_f.value)?(0,jsx_runtime_1.jsx)(ErrorText_1.ErrorText,{children:valueError}):null]})})]});})]})});};exports.UpdateRegistryDialog=UpdateRegistryDialog; \ No newline at end of file diff --git a/dist/modules/explorer/components/UpdateRegistryDialog.js.map b/dist/modules/explorer/components/UpdateRegistryDialog.js.map deleted file mode 100644 index 79b101f..0000000 --- a/dist/modules/explorer/components/UpdateRegistryDialog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UpdateRegistryDialog.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/UpdateRegistryDialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgD;AAChD,4CAA0E;AAC1E,4EAAwE;AAExE,yCAA0B;AAC1B,qDAA2E;AAC3E,yCAAqC;AACrC,2DAAuD;AAEvD,MAAM,SAAS,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;AAExC,MAAM,QAAQ,GAAG,IAAA,aAAM,EAAC,gBAAS,CAAC,CAAC;IACjC,uBAAuB,EAAE;QACvB,SAAS,EAAE,MAAM;QACjB,UAAU,EAAE,CAAC;KACd;CACF,CAAC,CAAA;AAEW,QAAA,gCAAgC,GAA+B;IAC1E,kBAAkB,EAAE;QAClB,IAAI,EAAE,CAAC,SAAS,CAAC;QACjB,OAAO,EAAE,KAAK;KACf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/dist/modules/explorer/components/UserBadge.js b/dist/modules/explorer/components/UserBadge.js deleted file mode 100644 index 0f7dcbe..0000000 --- a/dist/modules/explorer/components/UserBadge.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.UserBadge=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const bakingBad_1=require('../../../services/bakingBad');const ProfileAvatar_1=require('./styled/ProfileAvatar');const UserProfileName_1=require('./UserProfileName');const Text=(0,core_1.styled)(core_1.Typography)({wordBreak:'break-all'});const UserBadge=({address,size,smallText,gap,short})=>{const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const isMediumSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('md'));const {network}=(0,useTezos_1.useTezos)();return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,wrap:'nowrap',alignItems:'center',direction:'row',style:{gap:gap||8},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProfileAvatar_1.ProfileAvatar,{address:address,size:size||22})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Link,{href:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+address,target:'_blank',children:(0,jsx_runtime_1.jsx)(Text,{variant:'body1',color:'textPrimary',style:{fontSize:smallText?13:undefined},children:(0,jsx_runtime_1.jsx)(UserProfileName_1.UserProfileName,{address:address,short:short||isMobileSmall||isMediumSmall})})})})]});};exports.UserBadge=UserBadge; \ No newline at end of file diff --git a/dist/modules/explorer/components/UserBadge.js.map b/dist/modules/explorer/components/UserBadge.js.map deleted file mode 100644 index f80402a..0000000 --- a/dist/modules/explorer/components/UserBadge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserBadge.js","sourceRoot":"","sources":["../../../../src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C,CAAC,CAAC,SAAS,EAAE,YACvF,uBAAC,iCAAe,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,aAAa,IAAI,aAAa,GAAI,GAChF,GACF,GACF,IACF,CACR,CAAA;AACH,CAAC,CAAA;AA1BY,QAAA,SAAS,aA0BrB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/UserBalances.js b/dist/modules/explorer/components/UserBalances.js deleted file mode 100644 index 1342b09..0000000 --- a/dist/modules/explorer/components/UserBalances.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.UserBalancesBox=exports.UserBalances=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const BalancesBox=(0,core_1.styled)(core_1.Grid)(({theme})=>({minHeight:'137px',maxHeight:'344px',padding:'38px 38px',background:theme.palette.primary.main,boxSizing:'border-box',borderRadius:8,boxShadow:'none',['@media (max-width:409.99px)']:{maxHeight:'325px'}}));const BalanceHeaderText=(0,core_1.styled)(core_1.Typography)({paddingBottom:10,fontSize:18,['@media (max-width:710px)']:{fontSize:16},['@media (max-width:635px)']:{fontSize:18,paddingBottom:8},['@media (max-width:409.99px)']:{fontSize:16}});const BalanceGrid=(0,core_1.styled)(core_1.Grid)({['@media (max-width:636px)']:{marginBottom:25},['@media (max-width:409.99px)']:{marginBottom:20}});const Balance=(0,core_1.styled)(core_1.Typography)({fontSize:36,lineHeight:'0.9',fontWeight:300,['@media (max-width:1030px)']:{fontSize:30}});const BalanceToken=(0,core_1.styled)(core_1.Typography)({fontSize:24,fontWeight:300});const UserBalances=({daoId,children})=>{const {account}=(0,useTezos_1.useTezos)();const {data:dao,ledger}=(0,useDAO_1.useDAO)(daoId);const theme=(0,core_1.useTheme)();const isExtraSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down(635));const balances=(0,react_1.useMemo)(()=>{const userBalances={available:{displayName:'Available Balance'},pending:{displayName:'Pending Balance'},staked:{displayName:'Staked Balance'}};if(!ledger){return userBalances;}const userLedger=ledger.find(l=>l.holder.address.toLowerCase()===account.toLowerCase());if(!userLedger){userBalances.available.balance='-';userBalances.pending.balance='-';userBalances.staked.balance='-';return userBalances;}userBalances.available.balance=userLedger.available_balance.dp(10,1).toString();userBalances.pending.balance=userLedger.pending_balance.dp(10,1).toString();userBalances.staked.balance=userLedger.staked.dp(10,1).toString();return userBalances;},[account,ledger]);const balancesList=Object.keys(balances).map(key=>balances[key]);return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:40},children:[children,(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,direction:isExtraSmall?'column':'row',justifyContent:'space-between',children:dao&&balancesList.map(({displayName,balance},i)=>(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(BalanceHeaderText,{color:'secondary',align:isExtraSmall?'center':'left',children:displayName}),(0,jsx_runtime_1.jsxs)(BalanceGrid,{container:true,alignItems:'baseline',spacing:1,justifyContent:isExtraSmall?'center':'flex-start',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(Balance,{color:'textPrimary',children:balance})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(BalanceToken,{color:'textPrimary',children:balance!=='-'?dao.data.token.symbol:''})})]})]},`balance-${i}`))})]});};exports.UserBalances=UserBalances;const UserBalancesBox=({daoId})=>{return(0,jsx_runtime_1.jsx)(BalancesBox,{item:true,children:(0,jsx_runtime_1.jsx)(exports.UserBalances,{daoId:daoId})});};exports.UserBalancesBox=UserBalancesBox; \ No newline at end of file diff --git a/dist/modules/explorer/components/UserBalances.js.map b/dist/modules/explorer/components/UserBalances.js.map deleted file mode 100644 index f19e7c4..0000000 --- a/dist/modules/explorer/components/UserBalances.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserBalances.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/UserBalances.tsx"],"names":[],"mappings":";;;;AAAA,4CAAqF;AACrF,iCAAsC;AACtC,6DAAyD;AACzD,+DAA2D;AAE3D,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/C,SAAS,EAAE,OAAO;IAClB,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACtC,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,CAAC;IACf,SAAS,EAAE,MAAM;IAEjB,CAAC,6BAA6B,CAAC,EAAE;QAC/B,SAAS,EAAE,OAAO;KACnB;CACF,CAAC,CAAC,CAAA;AAiBH,MAAM,iBAAiB,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IAC3C,aAAa,EAAE,EAAE;IACjB,QAAQ,EAAE,EAAE;IAEZ,CAAC,0BAA0B,CAAC,EAAE;QAC5B,QAAQ,EAAE,EAAE;KACb;IAED,CAAC,0BAA0B,CAAC,EAAE;QAC5B,QAAQ,EAAE,EAAE;QACZ,aAAa,EAAE,CAAC;KACjB;IAED,CAAC,6BAA6B,CAAC,EAAE;QAC/B,QAAQ,EAAE,EAAE;KACb;CACF,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC/B,CAAC,0BAA0B,CAAC,EAAE;QAC5B,YAAY,EAAE,EAAE;KACjB;IAED,CAAC,6BAA6B,CAAC,EAAE;QAC/B,YAAY,EAAE,EAAE;KACjB;CACF,CAAC,CAAA;AAEF,MAAM,OAAO,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACjC,QAAQ,EAAE,EAAE;IACZ,UAAU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M,YACzE,WAAW,GACM,EACpB,wBAAC,WAAW,IACV,SAAS,QACT,UAAU,EAAC,UAAU,EACrB,OAAO,EAAE,CAAC,EACV,cAAc,EAAE,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,aAEtD,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,OAAO,IAAC,KAAK,EAAC,aAAa,YAAE,OAAO,GAAW,GAC3C,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,YAAY,IAAC,KAAK,EAAC,aAAa,YAAE,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAgB,GAC1F,IACK,KAhBA,WAAW,CAAC,EAAE,CAiBvB,CACR,CAAC,GACC,IACF,CACR,CAAA;AACH,CAAC,CAAA;AAtEY,QAAA,YAAY,gBAsExB;AAEM,MAAM,eAAe,GAAgC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACxE,OAAO,CACL,uBAAC,WAAW,IAAC,IAAI,kBACf,uBAAC,oBAAY,IAAC,KAAK,EAAE,KAAK,GAAI,GAClB,CACf,CAAA;AACH,CAAC,CAAA;AANY,QAAA,eAAe,mBAM3B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/UserBalancesWidget.js b/dist/modules/explorer/components/UserBalancesWidget.js deleted file mode 100644 index da73e97..0000000 --- a/dist/modules/explorer/components/UserBalancesWidget.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.UserBalancesWidget=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const bignumber_js_1=__importDefault(require('bignumber.js'));const hex_to_rgba_1=__importDefault(require('hex-to-rgba'));const react_1=require('react');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const router_1=require('../pages/DAO/router');const BalanceBox=(0,core_1.styled)(core_1.Grid)(({radiusSide,color})=>{let borderRadius='0';switch(radiusSide){case'none':{break;}case'left':{borderRadius='4px 0 0 4px';break;}case'right':{borderRadius='0 4px 4px 0';break;}}return{'width':166,'height':41.85,borderRadius,color,'backgroundColor':(0,hex_to_rgba_1.default)(color,0.15),'& > div':{height:'100%'}};});const TitleText=(0,core_1.styled)(core_1.Typography)({fontSize:11,fontWeight:500});const BalanceText=(0,core_1.styled)(core_1.Typography)({fontSize:15,fontWeight:500});const UserBalancesWidget=()=>{const {account}=(0,useTezos_1.useTezos)();const daoId=(0,router_1.useDAOID)();const {ledger,data:dao}=(0,useDAO_1.useDAO)(daoId);const theme=(0,core_1.useTheme)();const userLedger=(0,react_1.useMemo)(()=>{const found=ledger===null||ledger===void 0?void 0:ledger.find(l=>l.holder.address.toLowerCase()===account.toLowerCase());return found||{available_balance:new bignumber_js_1.default(0),pending_balance:new bignumber_js_1.default(0),staked:new bignumber_js_1.default(0)};},[account,ledger]);return(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:'center',children:userLedger&&dao&&(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(BalanceBox,{item:true,color:theme.palette.secondary.main,radiusSide:'left',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,alignItems:'center',justifyContent:'center',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(TitleText,{align:'center',color:'inherit',children:'Available Balance'}),(0,jsx_runtime_1.jsxs)(BalanceText,{align:'center',color:'textPrimary',children:[userLedger.available_balance.toString(),' ',dao.data.token.symbol]})]})})}),(0,jsx_runtime_1.jsx)(BalanceBox,{item:true,color:theme.palette.warning.main,radiusSide:'none',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,alignItems:'center',justifyContent:'center',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(TitleText,{align:'center',color:'inherit',children:'Pending Balance'}),(0,jsx_runtime_1.jsxs)(BalanceText,{align:'center',color:'textPrimary',children:[userLedger.pending_balance.toString(),' ',dao.data.token.symbol]})]})})}),(0,jsx_runtime_1.jsx)(BalanceBox,{item:true,color:theme.palette.info.main,radiusSide:'right',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,alignItems:'center',justifyContent:'center',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(TitleText,{align:'center',color:'inherit',children:'Staked Balance'}),(0,jsx_runtime_1.jsxs)(BalanceText,{align:'center',color:'textPrimary',children:[userLedger.staked.toString(),' ',dao.data.token.symbol]})]})})})]})});};exports.UserBalancesWidget=UserBalancesWidget; \ No newline at end of file diff --git a/dist/modules/explorer/components/UserBalancesWidget.js.map b/dist/modules/explorer/components/UserBalancesWidget.js.map deleted file mode 100644 index 610a71a..0000000 --- a/dist/modules/explorer/components/UserBalancesWidget.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserBalancesWidget.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/UserBalancesWidget.tsx"],"names":[],"mappings":";;;;;;;AAAA,4CAA6E;AAC7E,gEAAoC;AACpC,8DAAmC;AACnC,iCAAsC;AACtC,6DAAyD;AACzD,+DAA2D;AAC3D,gDAA8C;AAE9C,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,KAAK,EAA4D,EAAE,EAAE;IAClH,IAAI,YAAY,GAAG,GAAG,CAAA;IAEtB,QAAQ,UAAU,EAAE;QAClB,KAAK,MAAM,CAAC,CAAC;YACX,MAAK;SACN;QACD,KAAK,MAAM,CAAC,CAAC;YACX,YAAY,GAAG,aAAa,CAAA;YAC5B,MAAK;SACN;QACD,KAAK,OAAO,CAAC,CAAC;YACZ,YAAY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AAO,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAC,OAAO,YACjE,uBAAC,WAAI,IAAC,SAAS,QAAC,UAAU,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,YACzD,wBAAC,WAAI,IAAC,IAAI,mBACR,uBAAC,SAAS,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,SAAS,+BAE7B,EACZ,wBAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,aAAa,aAC5C,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAG,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IACzC,IACT,GACF,GACI,IACZ,CACJ,GACI,CACR,CAAA;AACH,CAAC,CAAA;AA7DY,QAAA,kBAAkB,sBA6D9B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/UserMenuSheet.js b/dist/modules/explorer/components/UserMenuSheet.js deleted file mode 100644 index fba98f6..0000000 --- a/dist/modules/explorer/components/UserMenuSheet.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.UserMenuSheet=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const Blockie_1=require('../../common/Blockie');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const utils_1=require('../../../services/contracts/utils');const icons_1=require('@material-ui/icons');const BottomSheet_1=require('./BottomSheet');const SheetContainer=(0,core_1.styled)(core_1.Grid)({paddingTop:50});const SheetItem=(0,core_1.styled)(core_1.Grid)({'height':65,'borderTop':'0.25px solid #7D8C8B','cursor':'pointer','& > *':{height:'100%'}});const MenuText=(0,core_1.styled)(core_1.Typography)({fontSize:14});const UserMenuSheet=props=>{const {account,reset,connect}=(0,useTezos_1.useTezos)();const handleAccountClick=()=>{if(account){navigator.clipboard.writeText(account);}else{connect();}props.onClose();};const handleLogout=()=>{reset();props.onClose();};return(0,jsx_runtime_1.jsx)(BottomSheet_1.BottomSheet,{open:props.open,onDismiss:props.onClose,children:(0,jsx_runtime_1.jsxs)(SheetContainer,{children:[(0,jsx_runtime_1.jsx)(SheetItem,{children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:'center',style:{gap:9},alignItems:'center',onClick:handleAccountClick,children:account?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(Blockie_1.Blockie,{address:account,size:24})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(MenuText,{color:'textPrimary',children:(0,utils_1.toShortAddress)(account)})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(icons_1.FileCopyOutlined,{htmlColor:'#FFF',fontSize:'small'})})]}):(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(icons_1.ArrowDownwardOutlined,{htmlColor:'#FFF',fontSize:'small'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(MenuText,{color:'textPrimary',children:'Connect Wallet'})})]})})}),(0,jsx_runtime_1.jsx)(SheetItem,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:'center',style:{gap:9},alignItems:'center',onClick:handleLogout,children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(icons_1.ExitToApp,{htmlColor:'#FFF',fontSize:'small'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(MenuText,{color:'textPrimary',children:'Log Out'})})]})})]})});};exports.UserMenuSheet=UserMenuSheet; \ No newline at end of file diff --git a/dist/modules/explorer/components/UserMenuSheet.js.map b/dist/modules/explorer/components/UserMenuSheet.js.map deleted file mode 100644 index a31b338..0000000 --- a/dist/modules/explorer/components/UserMenuSheet.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserMenuSheet.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/UserMenuSheet.tsx"],"names":[],"mappings":";;;;AAAA,4CAA4D;AAC5D,oDAAgD;AAEhD,6DAAyD;AACzD,oDAAyD;AACzD,8CAAuF;AACvF,+CAA2C;AAE3C,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAClC,UAAU,EAAE,EAAE;CACf,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC7B,QAAQ,EAAE,EAAE;IACZ,WAAW,EAAE,sBAAsB;IACnC,QAAQ,EAAE,SAAS;IACnB,OAAO,EAAE;QACP,MAAM,EAAE,MAAM;KACf;CACF,CAAC,CAAA;AAOF,MAAM,QAAQ,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IAClC,QAAQ,EAAE,EAAE;CACb,CAAC,CAAA;AAEK,MAAM,aAAa,GAAoB,KAAK,CAAC,EAAE;IACpD,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAE9C,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC9B,IAAI,OAAO,EAAE;YACX,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;SACvC;aAAM;YACL,OAAO,EAAE,CAAA;SACV;QAED,KAAK,CAAC,OAAO,EAAE,CAAA;IACjB,CAAC,CAAA;IAED,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,KAAK,EAAE,CAAA;QACP,KAAK,CAAC,OAAO,EAAE,CAAA;IACjB,CAAC,CAAA;IAED,OAAO,CACL,uBAAC,yBAAW,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,OAAO,YACrD,wBAAC,cA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AAC,CAAA;AA5DY,QAAA,aAAa,iBA4DzB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/UserProfileName.js b/dist/modules/explorer/components/UserProfileName.js deleted file mode 100644 index ec7adaf..0000000 --- a/dist/modules/explorer/components/UserProfileName.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.UserProfileName=void 0;const jsx_runtime_1=require('react/jsx-runtime');const utils_1=require('../../../services/contracts/utils');const useProfileClaim_1=require('../../../services/tzprofiles/hooks/useProfileClaim');const UserProfileName=({address,short})=>{const {data:profile}=(0,useProfileClaim_1.useProfileClaim)(address);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(profile===null||profile===void 0?void 0:profile.credentialSubject.alias)||(short?(0,utils_1.toShortAddress)(address):address)});};exports.UserProfileName=UserProfileName; \ No newline at end of file diff --git a/dist/modules/explorer/components/UserProfileName.js.map b/dist/modules/explorer/components/UserProfileName.js.map deleted file mode 100644 index 052e926..0000000 --- a/dist/modules/explorer/components/UserProfileName.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserProfileName.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/UserProfileName.tsx"],"names":[],"mappings":";;;;AACA,oDAAyD;AACzD,+EAA2E;AAEpE,MAAM,eAAe,GAAmD,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IACpG,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAA,iCAAe,EAAC,OAAO,CAAC,CAAA;IAElD,OAAO,2DAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,CAAC,KAAK,KAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAA,sBAAc,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAI,CAAA;AAC/F,CAAC,CAAA;AAJY,QAAA,eAAe,mBAI3B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/UsersTable.js b/dist/modules/explorer/components/UsersTable.js deleted file mode 100644 index 2a365e8..0000000 --- a/dist/modules/explorer/components/UsersTable.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.UsersTable=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const dayjs_1=__importDefault(require('dayjs'));const UserBadge_1=require('./UserBadge');const localizedFormat=require('dayjs/plugin/localizedFormat');dayjs_1.default.extend(localizedFormat);const titles=['Rank','Votes','Available Staked','Total Staked','Proposals Voted'];const OverflowCell=(0,core_1.styled)(core_1.TableCell)({whiteSpace:'nowrap',overflow:'hidden',textOverflow:'ellipsis',maxWidth:300});const StyledTableHead=(0,core_1.styled)(core_1.TableHead)({minHeight:34});const StyledTableRow=(0,core_1.styled)(core_1.TableRow)({borderBottom:'.6px solid rgba(125,140,139, 0.2)'});const MobileTableRow=(0,core_1.styled)(core_1.Grid)({padding:'30px',borderBottom:'0.3px solid rgba(125,140,139, 0.2)'});const TableText=(0,core_1.styled)(core_1.Typography)({fontSize:'16px',fontWeight:500,['@media (max-width:1155px)']:{fontSize:'15px',whiteSpace:'nowrap'}});const titleDataMatcher=(title,rowData)=>{switch(title){case'Rank':return rowData.address;case'Votes':return rowData.votes;case'Available Staked':return rowData.availableStaked;case'Total Staked':return rowData.totalStaked;case'Proposals Voted':return rowData.proposalsVoted;}};const MobileTableHeader=(0,core_1.styled)(core_1.Grid)({width:'100%',padding:20,borderBottom:'0.3px solid rgba(125,140,139, 0.2)'});const MobileUsersTable=({data})=>{return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(MobileTableHeader,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{align:'center',variant:'h4',color:'textPrimary',children:'Top Addresses'})}),data.map((row,i)=>(0,jsx_runtime_1.jsx)(MobileTableRow,{item:true,container:true,direction:'column',alignItems:'center',style:{gap:19},children:titles.map((title,j)=>(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:title==='Rank'?(0,jsx_runtime_1.jsx)(UserBadge_1.UserBadge,{address:row.address,size:44,gap:10}):(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'h6',color:'textPrimary',children:[title,': ',titleDataMatcher(title,row)]})},`usersMobileItem-${j}`))},`usersMobile-${i}`))]});};const DesktopUsersTable=({data})=>{return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(core_1.Table,{children:[(0,jsx_runtime_1.jsxs)(StyledTableHead,{children:[(0,jsx_runtime_1.jsx)(StyledTableRow,{children:(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:(0,jsx_runtime_1.jsx)(TableText,{children:'Top Addresses'})})}),(0,jsx_runtime_1.jsx)(core_1.TableRow,{children:titles.map((title,i)=>(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:(0,jsx_runtime_1.jsx)(TableText,{children:title})},`userstitle-${i}`))})]}),(0,jsx_runtime_1.jsx)(core_1.TableBody,{children:data.map((row,i)=>(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(OverflowCell,{children:(0,jsx_runtime_1.jsx)(UserBadge_1.UserBadge,{smallText:true,address:row.address,size:44,gap:16})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:row.votes}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:row.availableStaked}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:row.totalStaked}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:row.proposalsVoted})]},`usersrow-${i}`))})]})});};const UsersTable=({data})=>{const theme=(0,core_1.useTheme)();const isExtraSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down(960));return isExtraSmall?(0,jsx_runtime_1.jsx)(MobileUsersTable,{data:data}):(0,jsx_runtime_1.jsx)(DesktopUsersTable,{data:data});};exports.UsersTable=UsersTable; \ No newline at end of file diff --git a/dist/modules/explorer/components/UsersTable.js.map b/dist/modules/explorer/components/UsersTable.js.map deleted file mode 100644 index c918d68..0000000 --- a/dist/modules/explorer/components/UsersTable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UsersTable.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/UsersTable.tsx"],"names":[],"mappings":";;;;;;;AACA,4CAW0B;AAC1B,kDAAyB;AACzB,qEAAiE;AAEjE,MAAM,eAAe,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAA;AAC/D,eAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAA;AAE7B,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,iBAAiB,CAAU,CAAA;AAUhG,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,gBAAS,CAAC,CAAC;IACrC,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,QAAQ;IAClB,YAAY,EAAE,UAAU;IACxB,QAAQ,EAAE,GAAG;CACd,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,gBAAS,CAAC,CAAC;IACxC,SAAS,EAAE,EAAE;CACd,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,eAAQ,CAAC,CAAC;IACtC,YAAY,EAAE,mCAAmC;CAClD,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAClC,OAAO,EAAE,MAAM;IACf,YAAY,EAAE,oCAAoC;CACnD,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACnC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,GAAG;IAEf,CAAC,2BAA2B,CAAC,EAAE;QAC7B,QAAQ,EAAE,MAAM;QAChB,UA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,cAAE,GAAG,CAAC,cAAc,GAAa,KAP9B,YAAY,CAAC,EAAE,CAQnB,CACZ,CAAC,GACQ,IACN,GACP,CACJ,CAAA;AACH,CAAC,CAAA;AAEM,MAAM,UAAU,GAAkC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACpE,MAAM,KAAK,GAAG,IAAA,eAAQ,GAAE,CAAA;IACxB,MAAM,YAAY,GAAG,IAAA,oBAAa,EAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;IAE/D,OAAO,YAAY,CAAC,CAAC,CAAC,uBAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,uBAAC,iBAAiB,IAAC,IAAI,EAAE,IAAI,GAAI,CAAA;AAC5F,CAAC,CAAA;AALY,QAAA,UAAU,cAKtB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/ViewButton.js b/dist/modules/explorer/components/ViewButton.js deleted file mode 100644 index a1d2955..0000000 --- a/dist/modules/explorer/components/ViewButton.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);icolor,'borderColor':({color})=>(0,hex_to_rgba_1.default)(color,0.23),'&:hover':{backgroundColor:({color})=>(0,hex_to_rgba_1.default)(color,0.04),borderColor:({color})=>color},'height':36,'borderWidth':3,'borderRadius':10}});const ViewButton=_a=>{var {customColor}=_a,props=__rest(_a,['customColor']);const theme=(0,core_1.useTheme)();const buttonClasses=useButtonStyles({color:customColor||theme.palette.secondary.main});return(0,jsx_runtime_1.jsx)(core_1.Button,Object.assign({classes:buttonClasses},props));};exports.ViewButton=ViewButton; \ No newline at end of file diff --git a/dist/modules/explorer/components/ViewButton.js.map b/dist/modules/explorer/components/ViewButton.js.map deleted file mode 100644 index 0156a5b..0000000 --- a/dist/modules/explorer/components/ViewButton.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ViewButton.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/ViewButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,4CAA6E;AAE7E,8DAAmC;AAEnC,MAAM,eAAe,GAAG,IAAA,iBAAU,EAAC;IACjC,IAAI,EAAE;QACJ,OAAO,EAAE,CAAC,EAAE,KAAK,EAAqB,EAAE,EAAE,CAAC,KAAK;QAChD,aAAa,EAAE,CAAC,EAAE,KAAK,EAAqB,EAAE,EAAE,CAAC,IAAA,qBAAS,EAAC,KAAK,EAAE,IAAI,CAAC;QACvE,SAAS,EAAE;YACT,eAAe,EAAE,CAAC,EAAE,KAAK,EAAqB,EAAE,EAAE,CAAC,IAAA,qBAAS,EAAC,KAAK,EAAE,IAAI,CAAC;YACzE,WAAW,EAAE,CAAC,EAAE,KAAK,EAAqB,EAAE,EAAE,CAAC,KAAK;SACrD;QACD,QAAQ,EAAE,EAAE;QACZ,aAAa,EAAE,CAAC;QAChB,cAAc,EAAE,EAAE;KACnB;CACF,CAAC,CAAA;AAIK,MAAM,UAAU,GAA8B,CAAC,EAAyB,EAAE,EAAE;QAA7B,EAAE,WAAW,OAAY,EAAP,KAAK,cAAvB,eAAyB,CAAF;IAC3E,MAAM,KAAK,GAAG,IAAA,eAAQ,GAAE,CAAA;IACxB,MAAM,aAAa,GAAG,eAAe,CAAC;QACpC,KAAK,EAAE,WAAW,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;KACnD,CAAC,CAAA;IACF,OAAO,uBAAC,aAAM,kBAAC,OAAO,EAAE,aAAa,IAAM,KAAK,EAAI,CAAA;AACtD,CAAC,CAAA;AANY,QAAA,UAAU,cAMtB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/VoteDialog.js b/dist/modules/explorer/components/VoteDialog.js deleted file mode 100644 index bf0bad2..0000000 --- a/dist/modules/explorer/components/VoteDialog.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.VoteDialog=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importStar(require('react'));const core_1=require('@material-ui/core');const react_router_dom_1=require('react-router-dom');const useVote_1=require('../../../services/contracts/baseDAO/hooks/useVote');const bignumber_js_1=__importDefault(require('bignumber.js'));const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const router_1=require('../pages/DAO/router');const ResponsiveDialog_1=require('./ResponsiveDialog');const useTopic_1=require('../../../services/agora/hooks/useTopic');const useProposal_1=require('../../../services/services/dao/hooks/useProposal');const utils_1=require('../../../services/contracts/utils');const ProposalFormInput_1=require('./ProposalFormInput');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const useTezosBalance_1=require('../../../services/contracts/baseDAO/hooks/useTezosBalance');const CustomLabelsContainer=(0,core_1.styled)(core_1.Grid)({marginBottom:12});const CustomAmountLabel=(0,core_1.styled)(core_1.Typography)({fontWeight:500});const CustomMaxLabel=(0,core_1.styled)(core_1.Typography)({fontSize:16,paddingBottom:5,textDecoration:'underline',textUnderlineOffset:6,cursor:'pointer',marginLeft:12});const ErrorText=(0,core_1.styled)(core_1.Typography)({fontSize:13,marginTop:8,color:'red'});const VoteDialog=({support,onClose,open})=>{const [amount,setAmount]=react_1.default.useState('0');const {proposalId}=(0,react_router_dom_1.useParams)();const daoId=(0,router_1.useDAOID)();const {data:dao,ledger}=(0,useDAO_1.useDAO)(daoId);const {data:proposal}=(0,useProposal_1.useProposal)(daoId,proposalId);const {data:agoraPost}=(0,useTopic_1.useAgoraTopic)(Number(proposal===null||proposal===void 0?void 0:proposal.metadata.agoraPostId));const {mutate}=(0,useVote_1.useVote)();const theme=(0,core_1.useTheme)();const {data:tezosBalance}=(0,useTezosBalance_1.useTezosBalance)(daoId);const [max,setMax]=react_1.default.useState(0);const [error,setError]=react_1.default.useState(false);const validate=(0,react_1.useCallback)(()=>{if(Number(amount)>max){setError(true);return true;}setError(false);return false;},[amount,max,setError]);const onSubmit=(0,react_1.useCallback)(()=>__awaiter(void 0,void 0,void 0,function*(){if(!validate()){if(dao){mutate({proposalKey:proposalId,dao,amount:new bignumber_js_1.default(amount),support});onClose();}}}),[amount,dao,mutate,onClose,proposalId,support,validate]);const {account}=(0,useTezos_1.useTezos)();(0,react_1.useMemo)(()=>{const found=ledger===null||ledger===void 0?void 0:ledger.find(l=>l.holder.address.toLowerCase()===account.toLowerCase());const value=found||{available_balance:new bignumber_js_1.default(0)};setMax(value.available_balance.toNumber());return value;},[account,ledger]);(0,react_1.useEffect)(()=>{if(!open){setAmount('0');setError(false);}},[open]);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ResponsiveDialog,{open:open,onClose:onClose,title:support?'Support':'Oppose',customTitleColor:support?theme.palette.secondary.main:'#FF5555',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:36},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'body2',color:'textPrimary',children:['Confirm your vote to ',support?'support':'oppose',' Proposal #',(0,utils_1.toShortAddress)(proposalId)]})}),agoraPost&&(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'body2',children:agoraPost.title})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,direction:'row',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:true,children:[(0,jsx_runtime_1.jsxs)(CustomLabelsContainer,{item:true,container:true,direction:'row',justifyContent:'space-between',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:3,children:(0,jsx_runtime_1.jsx)(CustomAmountLabel,{children:'Amount'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',xs:9,justifyContent:'flex-end',children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{children:[max,' ',dao===null||dao===void 0?void 0:dao.data.token.symbol]}),(0,jsx_runtime_1.jsx)(CustomMaxLabel,{color:'secondary',onClick:()=>setAmount(String(max)),children:'Use Max'})]})]}),(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalFormInput,{children:(0,jsx_runtime_1.jsx)(core_1.TextField,{type:'number',value:amount,placeholder:'Type an Amount',inputProps:{min:0,max:max},InputProps:{disableUnderline:true},onChange:newValue=>{setError(false);setAmount(newValue.target.value);},onKeyPress:e=>{e.key==='-'?e.preventDefault():null;}})}),error?(0,jsx_runtime_1.jsx)(ErrorText,{children:'Amount cannot be greater than max available'}):null]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.Button,{variant:'contained',color:'secondary',disabled:!amount||error,onClick:onSubmit,children:'Submit'})})]})})});};exports.VoteDialog=VoteDialog; \ No newline at end of file diff --git a/dist/modules/explorer/components/VoteDialog.js.map b/dist/modules/explorer/components/VoteDialog.js.map deleted file mode 100644 index 3bbdbac..0000000 --- a/dist/modules/explorer/components/VoteDialog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VoteDialog.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/VoteDialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA8D;AAC9D,4CAAyF;AACzF,uDAA4C;AAC5C,sEAAkE;AAClE,gEAAoC;AACpC,+DAA2D;AAC3D,gDAA8C;AAC9C,yDAAqD;AACrD,qEAAsE;AACtE,kFAA8E;AAC9E,6DAA8E;AAC9E,2DAAuD;AAEvD,6DAAyD;AACzD,sFAAkF;AAElF,MAAM,qBAAqB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IACzC,YAAY,EAAE,EAAE;CACjB,CAAC,CAAA;AAEF,MAAM,iBAAiB,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IAC3C,UAAU,EAAE,GAAG;CAChB,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACxC,QAAQ,EAAE,EAAE;IACZ,aAAa,EAAE,CAAC;IAChB,cAAc,EAAE,WAAW;IAC3B,mBAAmB,EAAE,CAAC;IACtB,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,EAAE;CACf,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACnC,Q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,CAAA;AACH,CAAC,CAAA;AApIY,QAAA,UAAU,cAoItB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/VotersDialog.js b/dist/modules/explorer/components/VotersDialog.js deleted file mode 100644 index e578c9f..0000000 --- a/dist/modules/explorer/components/VotersDialog.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};Object.defineProperty(exports,'__esModule',{value:true});exports.UpVotesDialog=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importStar(require('react'));const core_1=require('@material-ui/core');const ProgressBar_1=require('./ProgressBar');const useVotesStats_1=require('../hooks/useVotesStats');const VotersProgress_1=require('./VotersProgress');const AppTabBar_1=require('./AppTabBar');const TabPanel_1=require('./TabPanel');const bignumber_js_1=require('bignumber.js');const useProposal_1=require('../../../services/services/dao/hooks/useProposal');const UserBadge_1=require('./UserBadge');const ResponsiveDialog_1=require('./ResponsiveDialog');const CloseButton=(0,core_1.styled)(core_1.Typography)({fontWeight:900,cursor:'pointer'});const Title=(0,core_1.styled)(core_1.DialogTitle)({height:30,paddingBottom:0,minWidth:250});const CustomDialog=(0,core_1.styled)(ResponsiveDialog_1.ResponsiveDialog)({'& .MuiDialog-paperWidthSm':{minHeight:'400px !important',maxHeight:600}});const StyledViewButton=(0,core_1.styled)(core_1.Button)({marginTop:-30});const TextHeader=(0,core_1.styled)(core_1.Typography)({marginTop:10,marginBottom:10});const Row=(0,core_1.styled)(core_1.Grid)(({theme})=>({'padding':'33px 64px','borderTop':`2px solid ${theme.palette.primary.light}`,'paddingBottom':0,'display':'flex','alignItems':'end','&:last-child':{marginBottom:30,borderBottom:`2px solid ${theme.palette.primary.light}`},[theme.breakpoints.down('sm')]:{padding:'20px 34px'}}));const TableHeader=(0,core_1.styled)(core_1.Grid)(({theme})=>({padding:'23px 64px',[theme.breakpoints.down('sm')]:{padding:'23px 24px'}}));const LinearBar=(0,core_1.styled)(ProgressBar_1.ProgressBar)({marginBottom:'-3px',marginTop:30});const NoTokens=(0,core_1.styled)(core_1.Grid)(({theme})=>({padding:'33px 64px',borderTop:`2px solid ${theme.palette.primary.light}`,paddingBottom:0,display:'flex',alignItems:'end',[theme.breakpoints.down('sm')]:{padding:'20px 34px'}}));const styles=(0,core_1.makeStyles)({root:{'borderRadius':'4px 4px 0px 0px','maxWidth':135,'marginRight':10,'background':'#3D3D3D','&:before':{opacity:0.5}},selected:{'background':'rgba(124, 255, 181, 0.15)','&:before':{opacity:0.15}}});const Header=(0,core_1.styled)(core_1.Grid)(({theme})=>({padding:'20px 64px',[theme.breakpoints.down('sm')]:{padding:'20px 34px'}}));const UpVotesDialog=({daoAddress,proposalAddress,favor})=>{const [open,setOpen]=react_1.default.useState(false);const {data:proposal,isLoading}=(0,useProposal_1.useProposal)(daoAddress,proposalAddress);const theme=(0,core_1.useTheme)();const [selectedTab,setSelectedTab]=react_1.default.useState(0);const style=styles();const quorumThreshold=(proposal===null||proposal===void 0?void 0:proposal.quorumThreshold)||new bignumber_js_1.BigNumber(0);const votesData=proposal===null||proposal===void 0?void 0:proposal.voters;const {votesSum}=(0,useVotesStats_1.useVotesStats)({quorumThreshold,upVotes:(proposal===null||proposal===void 0?void 0:proposal.upVotes)||new bignumber_js_1.BigNumber(0),downVotes:(proposal===null||proposal===void 0?void 0:proposal.downVotes)||new bignumber_js_1.BigNumber(0)});const votes=(0,react_1.useMemo)(()=>{if(!votesData){return[];}if(selectedTab===0){return votesData;}if(selectedTab===1){return votesData.filter(voteData=>voteData.support);}if(selectedTab===2){return votesData.filter(voteData=>!voteData.support);}},[votesData,selectedTab]);const handleClickOpen=()=>{setOpen(true);};const handleClose=()=>{setOpen(false);};return(0,jsx_runtime_1.jsxs)('div',{children:[(0,jsx_runtime_1.jsx)(StyledViewButton,{variant:'contained',size:'small',color:'secondary',onClick:handleClickOpen,children:'VIEW'}),(0,jsx_runtime_1.jsxs)(CustomDialog,{open:open,onClose:handleClose,'aria-labelledby':'alert-dialog-title','aria-describedby':'alert-dialog-description',children:[(0,jsx_runtime_1.jsx)(Title,{id:'alert-dialog-title',color:'textSecondary',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsx)(CloseButton,{color:'textSecondary',align:'right',onClick:handleClose,children:'X'})})})}),(0,jsx_runtime_1.jsx)(core_1.DialogContent,{children:(0,jsx_runtime_1.jsxs)(core_1.DialogContentText,{id:'alert-dialog-description',children:[(0,jsx_runtime_1.jsxs)(TableHeader,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',style:{color:favor?theme.palette.secondary.main:theme.palette.error.main},children:['VOTES',' ']})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:12,children:[(0,jsx_runtime_1.jsx)(TextHeader,{variant:'h3',color:'textSecondary',children:proposal?votesSum.toString():'-'}),(0,jsx_runtime_1.jsx)(VotersProgress_1.VotersProgress,{wrapAll:true,showButton:false,daoId:daoAddress,proposalId:proposalAddress})]})]}),(0,jsx_runtime_1.jsx)(AppTabBar_1.AppTabBar,{class1:style,value:selectedTab,setValue:setSelectedTab,labels:['ALL','SUPPORT','OPPOSE'],centered:true}),(0,jsx_runtime_1.jsx)(TabPanel_1.TabPanel,{value:selectedTab,index:0}),isLoading?(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.CircularProgress,{color:'secondary'})})}):votes&&votes.length>0?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(Header,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:[votes.length,' ',votes.length!==1?' addresses':' address']})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,container:true,justifyContent:'flex-end',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:'Votes'})})]}),votes.map((vote,index)=>{return(0,jsx_runtime_1.jsxs)(Row,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:6,children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:(0,jsx_runtime_1.jsx)(UserBadge_1.UserBadge,{address:vote.address})}),(0,jsx_runtime_1.jsx)(LinearBar,{color:'secondary',variant:'determinate',favor:vote.support,value:votesSum?vote.value.div(votesSum).multipliedBy(100).toNumber():0})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',align:'right',children:proposal?vote.value.toString():'-'})})]},index);})]}):(0,jsx_runtime_1.jsx)(NoTokens,{container:true,direction:'row',alignItems:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{children:'No votes'})})})]})})]})]});};exports.UpVotesDialog=UpVotesDialog; \ No newline at end of file diff --git a/dist/modules/explorer/components/VotersDialog.js.map b/dist/modules/explorer/components/VotersDialog.js.map deleted file mode 100644 index 4b77cec..0000000 --- a/dist/modules/explorer/components/VotersDialog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VotersDialog.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/VotersDialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAsC;AACtC,4CAW0B;AAE1B,yEAAqE;AACrE,0DAAsD;AACtD,qDAAiD;AACjD,2CAAuC;AACvC,yCAAqC;AACrC,+CAAwC;AACxC,yEAAqE;AACrE,2CAAuC;AACvC,yDAAqD;AAQrD,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACrC,UAAU,EAAE,GAAG;IACf,MAAM,EAAE,SAAS;CAClB,CAAC,CAAA;AAEF,MAAM,KAAK,GAAG,IAAA,aAAM,EAAC,kBAAW,CAAC,CAAC;IAChC,MAAM,EAAE,EAAE;IACV,aAAa,EAAE,CAAC;IAChB,QAAQ,EAAE,GAAG;CACd,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,mCAAgB,CAAC,CAAC;IAC5C,2BAA2B,EAAE;QAC3B,SAAS,EAAE,kBAAkB;QAC7B,SAAS,EAAE,GAAG;KACf;CACF,CAAC,CAAA;AAEF,MAAM,gBAAgB,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC;IACtC,SAAS,EAAE,CAAC,EAAE;CACf,CAAC,CAAA;AAEF,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACpC,SAAS,EAAE,EAAE;IACb,YAAY,EAAE,EAAE;CACjB,CAAC,CAAA;AAEF,MAAM,GAAG,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAA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AAO,GAAI,GACzB,EACb,uBAAC,SAAS,IACR,KAAK,EAAC,WAAW,EACjB,OAAO,EAAC,aAAa,EACrB,KAAK,EAAE,IAAI,CAAC,OAAO,EACnB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,GAC3E,IACG,EACP,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,iBAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,eAAe,EAAC,KAAK,EAAC,OAAO,YAChE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,GAC5B,GACR,KAhB+C,KAAK,CAiBvD,CACP,CAAA;wCACH,CAAC,CAAC,IACD,CACJ,CAAC,CAAC,CAAC,CACF,uBAAC,QAAQ,IAAC,SAAS,QAAC,SAAS,EAAC,KAAK,EAAC,UAAU,EAAC,QAAQ,YACrD,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,YACf,uBAAC,iBAAU,2BAAsB,GAC5B,GACE,CACZ,IACiB,GACN,IACH,IACX,CACP,CAAA;AACH,CAAC,CAAA;AArJY,QAAA,aAAa,iBAqJzB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/VotersProgress.js b/dist/modules/explorer/components/VotersProgress.js deleted file mode 100644 index 54db3bd..0000000 --- a/dist/modules/explorer/components/VotersProgress.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.VotersProgress=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const FormatNumber_1=require('../utils/FormatNumber');const ProgressBar_1=require('./ProgressBar');const useVotesStats_1=require('../hooks/useVotesStats');const bignumber_js_1=__importDefault(require('bignumber.js'));const useProposal_1=require('../../../services/services/dao/hooks/useProposal');const VotesDetailDialog_1=require('./VotesDetailDialog');const GreenDot=(0,core_1.styled)(core_1.Paper)(({theme})=>({width:9,height:9,marginRight:9,background:theme.palette.secondary.main}));const RedDot=(0,core_1.styled)(core_1.Paper)(({theme})=>({width:9,height:9,marginRight:9,background:theme.palette.error.main}));const StatusTitle=(0,core_1.styled)(core_1.Typography)({fontWeight:'bold',marginRight:12});const VotersProgress=({showButton,daoId,proposalId,wrapAll})=>{const theme=(0,core_1.useTheme)();const [open,setOpen]=(0,react_1.useState)(false);const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const {data:proposalData}=(0,useProposal_1.useProposal)(daoId,proposalId);const proposal=proposalData;const quorumThreshold=(proposal===null||proposal===void 0?void 0:proposal.quorumThreshold)||new bignumber_js_1.default(0);const upVotes=proposal?proposal.upVotes:new bignumber_js_1.default(0);const downVotes=proposal?proposal.downVotes:new bignumber_js_1.default(0);const {upVotesQuorumPercentage,downVotesQuorumPercentage,upVotesSumPercentage}=(0,useVotesStats_1.useVotesStats)({quorumThreshold,upVotes,downVotes});return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:12,container:true,direction:'row',alignItems:'center',spacing:2,children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:true,container:true,direction:'row',alignItems:'baseline',justifyContent:'flex-start',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,md:isMobileSmall||wrapAll?12:true,container:true,direction:'row',alignItems:'baseline',wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(GreenDot,{}),(0,jsx_runtime_1.jsxs)(StatusTitle,{color:'textPrimary',variant:'subtitle2',children:['SUPPORT:',' ']}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',variant:'subtitle2',children:[proposal?upVotes.toString():'-',' (',upVotesQuorumPercentage&&upVotesQuorumPercentage.isGreaterThan(100)?100:(0,FormatNumber_1.formatNumber)(upVotesQuorumPercentage),'%)',' ']})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{md:isMobileSmall||wrapAll?12:true,container:true,direction:'row',alignItems:'center',wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(RedDot,{}),(0,jsx_runtime_1.jsxs)(StatusTitle,{color:'textPrimary',variant:'subtitle2',children:['OPPOSE:',' ']}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',variant:'subtitle2',children:[proposal?downVotes.toString():'-',' (',downVotesQuorumPercentage&&downVotesQuorumPercentage.isGreaterThan(100)?100:(0,FormatNumber_1.formatNumber)(downVotesQuorumPercentage),'%)',' ']})]})]}),showButton?(0,jsx_runtime_1.jsx)(core_1.Grid,{xs:2,container:true,direction:'row',alignItems:'center',justifyContent:'flex-end',children:(0,jsx_runtime_1.jsx)(core_1.Button,{variant:'contained',color:'secondary',size:'small',onClick:()=>setOpen(true),children:'View'})}):null]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsx)(ProgressBar_1.MultiColorBar,{variant:'determinate',value:upVotesSumPercentage.toNumber(),color:'secondary'})}),(0,jsx_runtime_1.jsx)(VotesDetailDialog_1.VotesDetailDialog,{daoAddress:daoId,proposalAddress:proposalId,open:open,onClose:()=>setOpen(false)})]});};exports.VotersProgress=VotersProgress; \ No newline at end of file diff --git a/dist/modules/explorer/components/VotersProgress.js.map b/dist/modules/explorer/components/VotersProgress.js.map deleted file mode 100644 index a58b2fb..0000000 --- a/dist/modules/explorer/components/VotersProgress.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VotersProgress.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/VotersProgress.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAuC;AACvC,4CAA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AAK,EAAE,oBAAoB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAC,WAAW,GAAG,GACxF,EACP,uBAAC,qCAAiB,IAAC,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAI,IAC/G,CACJ,CAAA;AACH,CAAC,CAAA;AA5EY,QAAA,cAAc,kBA4E1B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/VotesDetailDialog.js b/dist/modules/explorer/components/VotesDetailDialog.js deleted file mode 100644 index 7d8d58d..0000000 --- a/dist/modules/explorer/components/VotesDetailDialog.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};Object.defineProperty(exports,'__esModule',{value:true});exports.VotesDetailDialog=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importStar(require('react'));const core_1=require('@material-ui/core');const ResponsiveDialog_1=require('./ResponsiveDialog');const useVotesStats_1=require('../hooks/useVotesStats');const bignumber_js_1=require('bignumber.js');const useProposal_1=require('../../../services/services/dao/hooks/useProposal');const VotesTable_1=require('./VotesTable');const utils_1=require('../../../utils');const VotersProgress_1=require('./VotersProgress');const StyledTab=(0,core_1.styled)(core_1.Button)({fontSize:16});var SelectedVotes;(function(SelectedVotes){SelectedVotes[SelectedVotes['ALL']=0]='ALL';SelectedVotes[SelectedVotes['SUPPORT']=1]='SUPPORT';SelectedVotes[SelectedVotes['OPPOSE']=2]='OPPOSE';}(SelectedVotes||(SelectedVotes={})));const VotesDetailDialog=({open,onClose,daoAddress,proposalAddress})=>{const [selectedTab,setSelectedTab]=react_1.default.useState(SelectedVotes.ALL);const handleChangeTab=newValue=>{setSelectedTab(newValue);};const {data:proposal}=(0,useProposal_1.useProposal)(daoAddress,proposalAddress);const quorumThreshold=(proposal===null||proposal===void 0?void 0:proposal.quorumThreshold)||new bignumber_js_1.BigNumber(0);const votesData=proposal===null||proposal===void 0?void 0:proposal.voters;const {votesSum}=(0,useVotesStats_1.useVotesStats)({quorumThreshold,upVotes:(proposal===null||proposal===void 0?void 0:proposal.upVotes)||new bignumber_js_1.BigNumber(0),downVotes:(proposal===null||proposal===void 0?void 0:proposal.downVotes)||new bignumber_js_1.BigNumber(0)});const {supportVotes,againstVotes,allVotes}=(0,react_1.useMemo)(()=>{if(!votesData){return{supportVotes:[],againstVotes:[],allVotes:[]};}const allVotes=votesData.map(voter=>({address:voter.address,votes:(0,utils_1.roundNumber)({number:Number(voter.value.toString()),decimals:2}).toString(),support:voter.support}));const supportVotes=allVotes.filter(voter=>voter.support);const againstVotes=allVotes.filter(voter=>!voter.support);return{allVotes,supportVotes,againstVotes};},[votesData]);const votesToShow=selectedTab==SelectedVotes.ALL?allVotes:selectedTab==SelectedVotes.SUPPORT?supportVotes:againstVotes;return(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ResponsiveDialog,{open:open,onClose:onClose,title:'Votes',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:58},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'column',style:{gap:16},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h2',color:'textPrimary',style:{fontWeight:'bold'},children:votesSum.toString()})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(VotersProgress_1.VotersProgress,{wrapAll:true,showButton:false,daoId:daoAddress,proposalId:proposalAddress})})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'column',style:{gap:40},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledTab,{variant:'contained',color:selectedTab!==SelectedVotes.ALL?'primary':'secondary',disableRipple:true,disableElevation:true,onClick:()=>handleChangeTab(SelectedVotes.ALL),children:'All'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledTab,{disableRipple:true,disableElevation:true,variant:'contained',color:selectedTab!==SelectedVotes.SUPPORT?'primary':'secondary',onClick:()=>handleChangeTab(SelectedVotes.SUPPORT),children:'Support'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledTab,{disableRipple:true,disableElevation:true,variant:'contained',color:selectedTab!==SelectedVotes.OPPOSE?'primary':'secondary',onClick:()=>handleChangeTab(SelectedVotes.OPPOSE),children:'Oppose'})})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(VotesTable_1.VotesTable,{data:votesToShow})})]})]})});};exports.VotesDetailDialog=VotesDetailDialog; \ No newline at end of file diff --git a/dist/modules/explorer/components/VotesDetailDialog.js.map b/dist/modules/explorer/components/VotesDetailDialog.js.map deleted file mode 100644 index 92687be..0000000 --- a/dist/modules/explorer/components/VotesDetailDialog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VotesDetailDialog.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/VotesDetailDialog.ts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AK,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EACtE,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,OAAO,CAAC,wBAG3C,GACP,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,SAAS,IACR,aAAa,EAAE,IAAI,EACnB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,WAAW,KAAK,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EACrE,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,MAAM,CAAC,uBAG1C,GACP,IACF,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,uBAAU,IAAC,IAAI,EAAE,WAAW,GAAI,GAC5B,IACF,IACF,GACU,CACpB,CAAA;AACH,CAAC,CAAA;AAtGY,QAAA,iBAAiB,qBAsG7B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/VotesTable.js b/dist/modules/explorer/components/VotesTable.js deleted file mode 100644 index 879818e..0000000 --- a/dist/modules/explorer/components/VotesTable.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.VotesTable=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const utils_1=require('../../../services/contracts/utils');const titles=['Address','Votes'];const VotesTable=({data})=>{const theme=(0,core_1.useTheme)();const isSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(core_1.Table,{children:[(0,jsx_runtime_1.jsx)(core_1.TableHead,{children:(0,jsx_runtime_1.jsx)(core_1.TableRow,{children:titles.map((title,i)=>(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:title},`votestitle-${i}`))})}),(0,jsx_runtime_1.jsx)(core_1.TableBody,{children:data.map((row,i)=>(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:isSmall?(0,utils_1.toShortAddress)(row.address):row.address}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:row.votes})]},`votesrow-${i}`))})]})});};exports.VotesTable=VotesTable; \ No newline at end of file diff --git a/dist/modules/explorer/components/VotesTable.js.map b/dist/modules/explorer/components/VotesTable.js.map deleted file mode 100644 index d10321d..0000000 --- a/dist/modules/explorer/components/VotesTable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VotesTable.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/VotesTable.tsx"],"names":[],"mappings":";;;;AACA,4CAA6G;AAC7G,6DAAkE;AAElE,MAAM,MAAM,GAAG,CAAC,SAAS,EAAE,OAAO,CAAU,CAAA;AAOrC,MAAM,UAAU,GAAkC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACpE,MAAM,KAAK,GAAG,IAAA,eAAQ,GAAE,CAAA;IACxB,MAAM,OAAO,GAAG,IAAA,oBAAa,EAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAE3D,OAAO,CACL,2DACE,wBAAC,YAAK,eACJ,uBAAC,gBAAS,cACR,uBAAC,eAAQ,cACN,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,uBAAC,gBAAS,cAA0B,KAAK,IAAzB,cAAc,CAAC,EAAE,CAAqB,CACvD,CAAC,GACO,GACD,EACZ,uBAAC,gBAAS,cACP,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,wBAAC,eAAQ,eACP,uBAAC,gBAAS,cAAE,OAAO,CAAC,CAAC,CAAC,IAAA,sBAAc,EAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,GAAa,EAC5E,uBAAC,gBAAS,cAAE,GAAG,CAAC,KAAK,GAAa,KAFrB,YAAY,CAAC,EAAE,CAGnB,CACZ,CAAC,GACQ,IACN,GACP,CACJ,CAAA;AACH,CAAC,CAAA;AAzBY,QAAA,UAAU,cAyBtB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/WarningDialog.js b/dist/modules/explorer/components/WarningDialog.js deleted file mode 100644 index f3040e2..0000000 --- a/dist/modules/explorer/components/WarningDialog.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.WarningDialog=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const ProposalFormSendButton_1=require('./ProposalFormSendButton');const ResponsiveDialog_1=require('./ResponsiveDialog');const CustomDialog=(0,core_1.styled)(ResponsiveDialog_1.ResponsiveDialog)({'& .MuiDialog-paperWidthSm':{minHeight:'300px !important'}});const TableHeader=(0,core_1.styled)(core_1.Grid)({padding:'25px 64px'});const Footer=(0,core_1.styled)(core_1.Grid)({padding:'15px 64px'});const WarningDialog=({open,handleClose})=>{const [checked,setChecked]=(0,react_1.useState)(false);return(0,jsx_runtime_1.jsxs)(CustomDialog,{open:open,onClose:handleClose,title:'DISCLAIMER',children:[(0,jsx_runtime_1.jsx)(TableHeader,{container:true,direction:'row',alignItems:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'h4',color:'textSecondary',children:['Homebase is currently experimental and its underlying smart contracts remain in testing.',(0,jsx_runtime_1.jsx)('br',{}),(0,jsx_runtime_1.jsx)('br',{}),'Expect breaking changes in coming releases. For more on Homebase, read',' ',(0,jsx_runtime_1.jsx)(core_1.Link,{href:'https://github.com/dOrgTech/homebase-app',rel:'noreferrer noopener',target:'_blank',color:'secondary',children:'here'})]})})}),(0,jsx_runtime_1.jsx)(Footer,{children:(0,jsx_runtime_1.jsx)(core_1.FormControlLabel,{color:'secondary',control:(0,jsx_runtime_1.jsx)(core_1.Checkbox,{checked:checked,onChange:event=>setChecked(event.target.checked),name:'checkedA'}),label:'I understand'})}),(0,jsx_runtime_1.jsx)(ProposalFormSendButton_1.SendButton,{disabled:!checked,onClick:handleClose,children:'CONFIRM'})]});};exports.WarningDialog=WarningDialog; \ No newline at end of file diff --git a/dist/modules/explorer/components/WarningDialog.js.map b/dist/modules/explorer/components/WarningDialog.js.map deleted file mode 100644 index ff9a288..0000000 --- a/dist/modules/explorer/components/WarningDialog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WarningDialog.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/WarningDialog.tsx"],"names":[],"mappings":";;;;AAAA,iCAAuC;AACvC,4CAA8F;AAC9F,qEAAqD;AACrD,yDAAqD;AAErD,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,mCAAgB,CAAC,CAAC;IAC5C,2BAA2B,EAAE;QAC3B,SAAS,EAAE,kBAAkB;KAC9B;CACF,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC/B,OAAO,EAAE,WAAW;CACrB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC1B,OAAO,EAAE,WAAW;CACrB,CAAC,CAAA;AAEK,MAAM,aAAa,GAGrB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;IAC7B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAE7C,OAAO,CACL,wBAAC,YAAY,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,aACjE,uBAAC,WAAW,IAAC,SAAS,QAAC,SAAS,EAAC,KAAK,EAAC,UAAU,EAAC,QAAQ,YACxD,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,YACf,wBAAC,iBAAU,IAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAC,eAAe,yGAE5C,gCAAM,EACN,gCAAM,4EACiE,GAAG,EAC1E,uBAAC,WAAI,IACH,IAAI,EAAC,0CAA0C,EAC/C,GAAG,EAAC,qBAAqB,EACzB,MAAM,EAAC,QAAQ,EACf,KAAK,EAAC,WAAW,qBAGZ,IACI,GACR,GACK,EACd,uBAAC,MAAM,cACL,uBAAC,uBAAgB,IACf,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,uBAAC,eAAQ,IAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAC,UAAU,GAAG,EAC5G,KAAK,EAAC,cAAc,GACpB,GACK,EACT,uBAAC,mCAAU,IAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,wBAEvC,IACA,CAChB,CAAA;AACH,CAAC,CAAA;AAtCY,QAAA,aAAa,iBAsCzB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/XTZTransferBadge.js b/dist/modules/explorer/components/XTZTransferBadge.js deleted file mode 100644 index 551ecda..0000000 --- a/dist/modules/explorer/components/XTZTransferBadge.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i({color:theme.palette.text.primary}));const XTZTransferBadge=_a=>{var {address,amount}=_a,props=__rest(_a,['address','amount']);return(0,jsx_runtime_1.jsxs)(HighlightedBadge_1.HighlightedBadge,Object.assign({justifyContent:'center',alignItems:'center',direction:'row',container:true,style:{gap:20}},props,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',color:'textPrimary',children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',children:[(0,utils_1.mutezToXtz)(amount).toString(),' XTZ']})})}),(0,jsx_runtime_1.jsx)(ArrowContainer,{item:true,children:(0,jsx_runtime_1.jsx)(ArrowForward_1.default,{color:'inherit'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(UserBadge_1.UserBadge,{address:address})})]}));};exports.XTZTransferBadge=XTZTransferBadge; \ No newline at end of file diff --git a/dist/modules/explorer/components/XTZTransferBadge.js.map b/dist/modules/explorer/components/XTZTransferBadge.js.map deleted file mode 100644 index 1d1cdb0..0000000 --- a/dist/modules/explorer/components/XTZTransferBadge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"XTZTransferBadge.js","sourceRoot":"","sources":["../../../../src/modules/explorer/components/XTZTransferBadge.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,4CAAuE;AACvE,mFAA0D;AAE1D,0FAAsF;AACtF,qEAAiE;AAEjE,oDAAqD;AAErD,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;CAClC,CAAC,CAAC,CAAA;AAOI,MAAM,gBAAgB,GAAoB,CAAC,EAA6B,EAAE,EAAE;QAAjC,EAAE,OAAO,EAAE,MAAM,OAAY,EAAP,KAAK,cAA3B,qBAA6B,CAAF;IAC3E,OAAO,CACL,wBAAC,mCAAgB,kBACf,cAAc,EAAC,QAAQ,EACvB,UAAU,EAAC,QAAQ,EACnB,SAAS,EAAC,KAAK,EACf,SAAS,QACT,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IACd,KAAK,eAET,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,iBAAU,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,aAAa,YAC7C,wBAAC,iBAAU,IAAC,KAAK,EAAE,aAAa,aAAG,IAAA,kBAAU,EAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,YAAkB,GACvE,GACR,EACP,uBAAC,cAAc,IAAC,IAAI,kBAClB,uBAAC,sBAAY,IAAC,KAAK,EAAC,SAAS,GAAG,GACjB,EACjB,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,qBAAS,IAAC,OAAO,EAAE,OAAO,GAAI,GAC1B,KACU,CACpB,CAAA;AACH,CAAC,CAAA;AAvBY,QAAA,gBAAgB,oBAuB5B"} \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/ErrorText.js b/dist/modules/explorer/components/styled/ErrorText.js deleted file mode 100644 index 479eadc..0000000 --- a/dist/modules/explorer/components/styled/ErrorText.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ErrorText=void 0;const core_1=require('@material-ui/core');exports.ErrorText=(0,core_1.styled)(core_1.Typography)({fontSize:14,color:'red'}); \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/ErrorText.js.map b/dist/modules/explorer/components/styled/ErrorText.js.map deleted file mode 100644 index 0d1cf47..0000000 --- a/dist/modules/explorer/components/styled/ErrorText.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ErrorText.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/components/styled/ErrorText.tsx"],"names":[],"mappings":";;;AAAA,4CAAsD;AAEzC,QAAA,SAAS,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IAC1C,QAAQ,EAAE,EAAE;IACZ,KAAK,EAAE,KAAK;CACb,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/HighlightedBadge.js b/dist/modules/explorer/components/styled/HighlightedBadge.js deleted file mode 100644 index 6b18061..0000000 --- a/dist/modules/explorer/components/styled/HighlightedBadge.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.HighlightedBadge=void 0;const core_1=require('@material-ui/core');const hex_to_rgba_1=__importDefault(require('hex-to-rgba'));exports.HighlightedBadge=(0,core_1.styled)(core_1.Grid)(({theme})=>({backgroundColor:(0,hex_to_rgba_1.default)(theme.palette.secondary.main,0.07),boxSizing:'border-box',padding:'8px 16px',width:'fit-content',borderRadius:4})); \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/HighlightedBadge.js.map b/dist/modules/explorer/components/styled/HighlightedBadge.js.map deleted file mode 100644 index 82195d2..0000000 --- a/dist/modules/explorer/components/styled/HighlightedBadge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HighlightedBadge.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/components/styled/HighlightedBadge.tsx"],"names":[],"mappings":";;;;;;AAAA,4CAAgD;AAChD,8DAAmC;AAEtB,QAAA,gBAAgB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3D,eAAe,EAAE,IAAA,qBAAS,EAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IAC9D,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,aAAa;IACpB,YAAY,EAAE,CAAC;CAChB,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/InfoIcon.js b/dist/modules/explorer/components/styled/InfoIcon.js deleted file mode 100644 index c9311a3..0000000 --- a/dist/modules/explorer/components/styled/InfoIcon.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.InfoIcon=void 0;const core_1=require('@material-ui/core');const icons_1=require('@material-ui/icons');exports.InfoIcon=(0,core_1.styled)(icons_1.InfoOutlined)({cursor:'default',marginLeft:5,verticalAlign:'top'}); \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/InfoIcon.js.map b/dist/modules/explorer/components/styled/InfoIcon.js.map deleted file mode 100644 index 884aa54..0000000 --- a/dist/modules/explorer/components/styled/InfoIcon.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InfoIcon.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/components/styled/InfoIcon.tsx"],"names":[],"mappings":";;;AAAA,4CAA0C;AAC1C,8CAAiD;AAEpC,QAAA,QAAQ,GAAG,IAAA,aAAM,EAAC,oBAAY,CAAC,CAAC;IAC3C,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,CAAC;IACb,aAAa,EAAE,KAAK;CACrB,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/ProfileAvatar.js b/dist/modules/explorer/components/styled/ProfileAvatar.js deleted file mode 100644 index f0997f2..0000000 --- a/dist/modules/explorer/components/styled/ProfileAvatar.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ProfileAvatar=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const Blockie_1=require('../../../common/Blockie');const useProfileClaim_1=require('../../../../services/tzprofiles/hooks/useProfileClaim');const StyledAvatar=(0,core_1.styled)(core_1.Avatar)(({size})=>({width:size||40,height:size||40}));const ProfileAvatar=({address,size})=>{const {data:profile}=(0,useProfileClaim_1.useProfileClaim)(address);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:profile?(0,jsx_runtime_1.jsx)(StyledAvatar,{alt:profile.credentialSubject.alias,src:profile.credentialSubject.logo,size:size}):(0,jsx_runtime_1.jsx)(Blockie_1.Blockie,{address:address,size:size})});};exports.ProfileAvatar=ProfileAvatar; \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/ProfileAvatar.js.map b/dist/modules/explorer/components/styled/ProfileAvatar.js.map deleted file mode 100644 index e47a31f..0000000 --- a/dist/modules/explorer/components/styled/ProfileAvatar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProfileAvatar.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/components/styled/ProfileAvatar.tsx"],"names":[],"mappings":";;;;AACA,4CAAkD;AAClD,oDAAgD;AAChD,+EAA2E;AAE3E,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAqB,EAAE,EAAE,CAAC,CAAC;IACpE,KAAK,EAAE,IAAI,IAAI,EAAE;IACjB,MAAM,EAAE,IAAI,IAAI,EAAE;CACnB,CAAC,CAAC,CAAA;AAEI,MAAM,aAAa,GAAiD,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IAC/F,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAA,iCAAe,EAAC,OAAO,CAAC,CAAA;IAElD,OAAO,CACL,2DACG,OAAO,CAAC,CAAC,CAAC,CACT,uBAAC,YAAY,IAAC,GAAG,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,GAAI,CACxG,CAAC,CAAC,CAAC,CACF,uBAAC,iBAAO,IAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAI,CAC1C,GACA,CACJ,CAAA;AACH,CAAC,CAAA;AAZY,QAAA,aAAa,iBAYzB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/RectangleHeader.js b/dist/modules/explorer/components/styled/RectangleHeader.js deleted file mode 100644 index 0682c16..0000000 --- a/dist/modules/explorer/components/styled/RectangleHeader.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.RectangleContainer=void 0;const core_1=require('@material-ui/core');exports.RectangleContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({minHeight:125,padding:'68px 8%',borderBottom:`2px solid ${theme.palette.primary.light}`,[theme.breakpoints.down('sm')]:{padding:'35px 8%'}})); \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/RectangleHeader.js.map b/dist/modules/explorer/components/styled/RectangleHeader.js.map deleted file mode 100644 index 6b7d9c9..0000000 --- a/dist/modules/explorer/components/styled/RectangleHeader.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RectangleHeader.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/components/styled/RectangleHeader.tsx"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,kBAAkB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7D,SAAS,EAAE,GAAG;IACd,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE;IACxD,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,OAAO,EAAE,SAAS;KACnB;CACF,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/SearchLambda.js b/dist/modules/explorer/components/styled/SearchLambda.js deleted file mode 100644 index 26c55dc..0000000 --- a/dist/modules/explorer/components/styled/SearchLambda.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.SearchLambda=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const icons_1=require('@material-ui/icons');const lab_1=require('@material-ui/lab');const StyledType=(0,core_1.styled)(core_1.Grid)({opacity:0.65});const StyledInput=(0,core_1.withStyles)(theme=>({popperDisablePortal:{width:'418px !important',left:46,marginTop:-2},popper:{'& div.MuiPaper-root':{'borderTopRightRadius':0,'borderTopLeftRadius':0,'marginTop':-1,'background':'#24282b','& div.MuiAutocomplete-paper':{'& ul':{'background':'inherit','& li':{borderBottom:'1px solid gray',paddingBbottom:12}}}}},root:{'& div.MuiFormControl-root':{'& div.MuiInputBase-root':{'padding':0,'marginTop':0,'& div.MuiAutocomplete-endAdornment':{'& button.MuiButtonBase-root':{color:theme.palette.text.primary}}},'& label.MuiFormLabel-root':{marginLeft:36,marginTop:-3,color:theme.palette.text.primary,opacity:0.65}}}}))(lab_1.Autocomplete);const SearchIcon=(0,core_1.styled)(icons_1.SearchOutlined)({marginRight:5});const useStyles=(0,core_1.makeStyles)({'@global':{'.MuiAutocomplete-option:not(:last-child)':{borderBottom:'0.3px solid #7d8c8b',paddingTop:12},'.MuiAutocomplete-option':{paddingBottom:12,paddingTop:12},'.MuiAutocomplete-listbox':{padding:0,maxHeight:442}}});const SearchLambda=({lambdas,handleChange})=>{useStyles();return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:lambdas?(0,jsx_runtime_1.jsx)(StyledInput,{disablePortal:true,id:'combo-box-demo',options:lambdas,getOptionLabel:option=>option.key,renderOption:(option,state)=>(0,jsx_runtime_1.jsxs)(core_1.Grid,Object.assign({container:true,direction:'row',justifyContent:'space-between'},state,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{children:option.key}),(0,jsx_runtime_1.jsx)(StyledType,{children:option.type})]})),renderInput:params=>(0,jsx_runtime_1.jsx)(core_1.TextField,Object.assign({},params,{placeholder:'Search',InputProps:Object.assign(Object.assign({},params.InputProps),{startAdornment:(0,jsx_runtime_1.jsx)(core_1.InputAdornment,{position:'start',children:(0,jsx_runtime_1.jsx)(SearchIcon,{color:'secondary'})}),disableUnderline:true})})),onChange:(e,data)=>handleChange(data)}):null});};exports.SearchLambda=SearchLambda; \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/SearchLambda.js.map b/dist/modules/explorer/components/styled/SearchLambda.js.map deleted file mode 100644 index 5a15b63..0000000 --- a/dist/modules/explorer/components/styled/SearchLambda.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SearchLambda.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/components/styled/SearchLambda.tsx"],"names":[],"mappings":";;;;AACA,4CAAuH;AACvH,8CAAmD;AACnD,0CAA+C;AAQ/C,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC9B,OAAO,EAAE,IAAI;CACd,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,iBAAU,EAAC,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IAChD,mBAAmB,EAAE;QACnB,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,EAAE;QACR,SAAS,EAAE,CAAC,CAAC;KACd;IACD,MAAM,EAAE;QACN,qBAAqB,EAAE;YACrB,sBAAsB,EAAE,CAAC;YACzB,qBAAqB,EAAE,CAAC;YACxB,WAAW,EAAE,CAAC,CAAC;YACf,YAAY,EAAE,SAAS;YACvB,6BAA6B,EAAE;gBAC7B,MAAM,EAAE;oBACN,YAAY,EAAE,SAAS;oBAEvB,MAAM,EAAE;wBACN,YAAY,EAAE,gBAAgB;wBAC9B,cAAc,EAAE,EAAE;qBACnB;iBACF;aACF;SACF;KACF;IACD,IAAI,EAAE;QACJ,2BAA2B,EAAE;YAC3B,yBAAyB,EAAE;gBACzB,SAAS,EAAE,CAAC;gBACZ,WAAW,EAAE,CAAC;gBACd,oCAAoC,EAAE;oBACpC,6BAA6B,EAAE;wBAC7B,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;qBAClC;iBACF;aACF;YACD,2BAA2B,EAAE;gBAC3B,UAAU,EAAE,EAAE;gBACd,SAAS,EAAE,CAAC,CAAC;gBACb,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;gBACjC,OAAO,EAAE,IAAI;aACd;SACF;KACF;CACF,CAAC,CAAC,CAAC,kBAAY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B,EACD,gBAAgB,EAAE,IAAI,OAExB,CACH,EACD,QAAQ,EAAE,CAAC,CAAM,EAAE,IAAS,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,GACnD,CACH,CAAC,CAAC,CAAC,IAAI,GACP,CACJ,CAAA;AACH,CAAC,CAAA;AAxCY,QAAA,YAAY,gBAwCxB"} \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/TableHeader.js b/dist/modules/explorer/components/styled/TableHeader.js deleted file mode 100644 index 29c386d..0000000 --- a/dist/modules/explorer/components/styled/TableHeader.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.TableHeader=void 0;const core_1=require('@material-ui/core');exports.TableHeader=(0,core_1.styled)(core_1.Grid)(({theme})=>({borderBottom:`2px solid ${theme.palette.primary.light}`,paddingBottom:20})); \ No newline at end of file diff --git a/dist/modules/explorer/components/styled/TableHeader.js.map b/dist/modules/explorer/components/styled/TableHeader.js.map deleted file mode 100644 index b8b7931..0000000 --- a/dist/modules/explorer/components/styled/TableHeader.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TableHeader.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/components/styled/TableHeader.tsx"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,WAAW,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACtD,YAAY,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE;IACxD,aAAa,EAAE,EAAE;CAClB,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/explorer/components/tables/RowContainer.js b/dist/modules/explorer/components/tables/RowContainer.js deleted file mode 100644 index a199f98..0000000 --- a/dist/modules/explorer/components/tables/RowContainer.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.RowContainer=void 0;const core_1=require('@material-ui/core');exports.RowContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({minHeight:155,padding:'0px 20px',borderBottom:`2px solid ${theme.palette.primary.light}`,cursor:'pointer',[theme.breakpoints.down('md')]:{padding:'35px 0'}})); \ No newline at end of file diff --git a/dist/modules/explorer/components/tables/RowContainer.js.map b/dist/modules/explorer/components/tables/RowContainer.js.map deleted file mode 100644 index db9d3cd..0000000 --- a/dist/modules/explorer/components/tables/RowContainer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RowContainer.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/components/tables/RowContainer.tsx"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,YAAY,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACvD,SAAS,EAAE,GAAG;IACd,OAAO,EAAE,UAAU;IACnB,YAAY,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE;IACxD,MAAM,EAAE,SAAS;IACjB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,OAAO,EAAE,QAAQ;KAClB;CACF,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/explorer/context/ActionSheets/index.js b/dist/modules/explorer/context/ActionSheets/index.js deleted file mode 100644 index 69b8f2f..0000000 --- a/dist/modules/explorer/context/ActionSheets/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.useActionSheet=exports.ActionSheetProvider=exports.ActionSheetContext=exports.ActionSheet=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const react_2=require('react');const UserMenuSheet_1=require('../../components/UserMenuSheet');const NetworkSheet_1=require('../../components/NetworkSheet');var ActionSheet;(function(ActionSheet){ActionSheet[ActionSheet['None']=0]='None';ActionSheet[ActionSheet['UserMenu']=1]='UserMenu';ActionSheet[ActionSheet['Network']=2]='Network';}(ActionSheet||(exports.ActionSheet=ActionSheet={})));exports.ActionSheetContext=(0,react_2.createContext)(null);const ActionSheetProvider=({children})=>{const [openedModal,setOpenedModal]=(0,react_2.useState)(ActionSheet.None);const onClose=(0,react_1.useCallback)(()=>{setOpenedModal(ActionSheet.None);},[]);(0,react_1.useEffect)(()=>{if(openedModal===ActionSheet.None){console.log('ALL CLOSED');}},[openedModal]);return(0,jsx_runtime_1.jsxs)(exports.ActionSheetContext.Provider,{value:{openedModal,setOpenedModal,onClose},children:[children,(0,jsx_runtime_1.jsx)(UserMenuSheet_1.UserMenuSheet,{open:ActionSheet.UserMenu===openedModal,onClose:onClose}),(0,jsx_runtime_1.jsx)(NetworkSheet_1.NetworkSheet,{open:ActionSheet.Network===openedModal,onClose:onClose})]});};exports.ActionSheetProvider=ActionSheetProvider;const useActionSheet=actionSheet=>{const contextValue=(0,react_1.useContext)(exports.ActionSheetContext);return{open:()=>contextValue.setOpenedModal(actionSheet),close:contextValue.onClose};};exports.useActionSheet=useActionSheet; \ No newline at end of file diff --git a/dist/modules/explorer/context/ActionSheets/index.js.map b/dist/modules/explorer/context/ActionSheets/index.js.map deleted file mode 100644 index 0b69dcd..0000000 --- a/dist/modules/explorer/context/ActionSheets/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/context/ActionSheets/index.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiE;AACjE,iCAA+C;AAC/C,kEAA8D;AAC9D,gEAA4D;AAE5D,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,6CAAI,CAAA;IACJ,qDAAQ,CAAA;IACR,mDAAO,CAAA;AACT,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAQY,QAAA,kBAAkB,GAAG,IAAA,qBAAa,EAA0B,IAAW,CAAC,CAAA;AAE9E,MAAM,mBAAmB,GA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 100644 index e88dda3..0000000 --- a/dist/modules/explorer/hooks/useCanDropProposal.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.useCanDropProposal=void 0;const react_1=require('react');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const useProposal_1=require('../../../services/services/dao/hooks/useProposal');const types_1=require('../../../services/services/dao/mappers/proposal/types');const useCanDropProposal=(daoId,proposalId)=>{const {account}=(0,useTezos_1.useTezos)();const {data:dao,cycleInfo}=(0,useDAO_1.useDAO)(daoId);const {data:proposal}=(0,useProposal_1.useProposal)(daoId,proposalId);return(0,react_1.useMemo)(()=>{if(!proposal||!dao){return false;}const isProposer=proposal.proposer.toLowerCase()===account.toLowerCase();const hasExpired=cycleInfo&&proposal.getStatus(cycleInfo.currentLevel).status===types_1.ProposalStatus.EXPIRED;const isGuardian=dao.data.guardian.toLowerCase()===account.toLowerCase();const isNotExecutedOrDropped=cycleInfo&&proposal.getStatus(cycleInfo.currentLevel).status===types_1.ProposalStatus.DROPPED||cycleInfo&&proposal.getStatus(cycleInfo.currentLevel).status===types_1.ProposalStatus.EXECUTED;return!isNotExecutedOrDropped&&(isProposer||hasExpired||isGuardian);},[account,cycleInfo,dao,proposal]);};exports.useCanDropProposal=useCanDropProposal; \ No newline at end of file diff --git a/dist/modules/explorer/hooks/useCanDropProposal.js.map b/dist/modules/explorer/hooks/useCanDropProposal.js.map deleted file mode 100644 index f833026..0000000 --- a/dist/modules/explorer/hooks/useCanDropProposal.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useCanDropProposal.js","sourceRoot":"","sources":["../../../../src/modules/explorer/hooks/useCanDropProposal.ts"],"names":[],"mappings":";;;AAAA,iCAA+B;AAC/B,6DAAyD;AACzD,+DAA2D;AAC3D,yEAAqE;AACrE,wEAA6E;AAEtE,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAE,UAAkB,EAAE,EAAE;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B,sBA0B9B"} \ No newline at end of file diff --git a/dist/modules/explorer/hooks/useTimeLeftInCycle.js b/dist/modules/explorer/hooks/useTimeLeftInCycle.js deleted file mode 100644 index 95573cc..0000000 --- a/dist/modules/explorer/hooks/useTimeLeftInCycle.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.useTimeLeftInCycle=void 0;const react_1=require('react');const useDAO_1=require('../../../services/services/dao/hooks/useDAO');const router_1=require('../pages/DAO/router');const useTimeLeftInCycle=()=>{const daoID=(0,router_1.useDAOID)();const {cycleInfo}=(0,useDAO_1.useDAO)(daoID);const [counter,setCounter]=(0,react_1.useState)(0);const [oldCycle,setOldCycle]=(0,react_1.useState)(0);const [time,setTime]=(0,react_1.useState)({hours:'-',minutes:'-',days:'-'});(0,react_1.useEffect)(()=>{if(cycleInfo){const pendingCycles=cycleInfo.blocksLeft;setCounter(pendingCycles*cycleInfo.timeEstimateForNextBlock);if(cycleInfo.blocksLeft!==oldCycle){setOldCycle(cycleInfo.blocksLeft*cycleInfo.timeEstimateForNextBlock);}}},[cycleInfo,oldCycle]);(0,react_1.useEffect)(()=>{setTime({hours:Math.floor(counter%(3600*24)/3600).toString(),minutes:Math.floor(counter%3600/60).toString(),days:Math.floor(counter/(3600*24)).toString()});},[counter]);return time;};exports.useTimeLeftInCycle=useTimeLeftInCycle; \ No newline at end of file diff --git a/dist/modules/explorer/hooks/useTimeLeftInCycle.js.map b/dist/modules/explorer/hooks/useTimeLeftInCycle.js.map deleted file mode 100644 index 67cfe37..0000000 --- a/dist/modules/explorer/hooks/useTimeLeftInCycle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useTimeLeftInCycle.js","sourceRoot":"","sources":["../../../../src/modules/explorer/hooks/useTimeLeftInCycle.ts"],"names":[],"mappings":";;;AAAA,iCAA2C;AAC3C,wEAAoE;AACpE,gDAA8C;AAEvC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,K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,CAAA;IACJ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AA3BY,QAAA,kBAAkB,sBA2B9B"} \ No newline at end of file diff --git a/dist/modules/explorer/hooks/useVotesStats.js b/dist/modules/explorer/hooks/useVotesStats.js deleted file mode 100644 index 05fc5e9..0000000 --- a/dist/modules/explorer/hooks/useVotesStats.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.useVotesStats=void 0;const bignumber_js_1=require('bignumber.js');const react_1=require('react');const useVotesStats=({quorumThreshold,upVotes,downVotes})=>{return(0,react_1.useMemo)(()=>{const support=upVotes.isGreaterThanOrEqualTo(downVotes);const votesSum=upVotes.plus(downVotes);const votes=support?upVotes:downVotes;const downVotesQuorumPercentage=getRelativeVotePercentage(downVotes,quorumThreshold);const upVotesQuorumPercentage=getRelativeVotePercentage(upVotes,quorumThreshold);const votesQuorumPercentage=getRelativeVotePercentage(votes,quorumThreshold);const downVotesSumPercentage=getRelativeVotePercentage(downVotes,votesSum);const upVotesSumPercentage=getRelativeVotePercentage(upVotes,votesSum);const votesSumPercentage=getRelativeVotePercentage(votes,votesSum);return{support,votesSum,votes,downVotesQuorumPercentage,upVotesQuorumPercentage,votesQuorumPercentage,downVotesSumPercentage,upVotesSumPercentage,votesSumPercentage};},[quorumThreshold,upVotes,downVotes]);};exports.useVotesStats=useVotesStats;const getRelativeVotePercentage=(votes,quorumOrSum)=>{const result=quorumOrSum?votes.multipliedBy(100).div(quorumOrSum):new bignumber_js_1.BigNumber(0);return result.isGreaterThan(100)?new bignumber_js_1.BigNumber(100):result;}; \ No newline at end of file diff --git a/dist/modules/explorer/hooks/useVotesStats.js.map b/dist/modules/explorer/hooks/useVotesStats.js.map deleted file mode 100644 index 3b9d6d2..0000000 --- a/dist/modules/explorer/hooks/useVotesStats.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useVotesStats.js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AW,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,wBAAS,CAAC,CAAC,CAAC,CAAA;IACxF,OAAO,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,wBAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAA;AAChE,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/Config/components/DAOInfoTable.js b/dist/modules/explorer/pages/Config/components/DAOInfoTable.js deleted file mode 100644 index 38b871d..0000000 --- a/dist/modules/explorer/pages/Config/components/DAOInfoTable.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.DaoInfoTables=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const useDAO_1=require('../../../../../services/services/dao/hooks/useDAO');const bignumber_js_1=__importDefault(require('bignumber.js'));const router_1=require('../../DAO/router');const RowValue=(0,core_1.styled)(core_1.Typography)({fontWeight:300,fontSize:18});const TableTitle=(0,core_1.styled)(core_1.Typography)({fontWeight:500,fontSize:18});const CustomTableContainer=(0,core_1.styled)(core_1.TableContainer)(({theme})=>({[theme.breakpoints.down('sm')]:{}}));const DaoInfoTables=()=>{const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(CustomTableContainer,{children:(0,jsx_runtime_1.jsxs)(core_1.Table,{style:{marginTop:32},'aria-label':'simple table',children:[(0,jsx_runtime_1.jsx)(core_1.TableHead,{children:(0,jsx_runtime_1.jsx)(core_1.TableRow,{children:(0,jsx_runtime_1.jsx)(core_1.TableCell,{colSpan:2,children:(0,jsx_runtime_1.jsx)(TableTitle,{children:'Proposal & Voting Settings'})})})}),(0,jsx_runtime_1.jsx)(core_1.TableBody,{children:dao?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{component:'th',scope:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',children:'Voting Period Duration'})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsxs)(RowValue,{children:[dao.data.period,' blocks']})})]}),(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{component:'th',scope:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',children:'Flush Delay Duration'})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsxs)(RowValue,{children:[new bignumber_js_1.default(dao.data.proposal_flush_level).toNumber()-2*new bignumber_js_1.default(dao.data.period).toNumber(),' ','blocks']})})]}),(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{component:'th',scope:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',children:'Proposal Blocks to Expire'})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsxs)(RowValue,{children:[new bignumber_js_1.default(dao.data.proposal_expired_level).toNumber()-new bignumber_js_1.default(dao.data.proposal_flush_level).toNumber(),' ','blocks']})})]}),(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{component:'th',scope:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',children:'Stake Required to Propose'})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsxs)(RowValue,{children:[new bignumber_js_1.default(dao.data.extra.frozen_extra_value).toNumber(),' locked ',dao.data.token.symbol]})})]}),(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{component:'th',scope:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',children:'Stake Returned if Rejected'})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsxs)(RowValue,{children:[dao.data.extra.returnedPercentage,'% of locked ',dao.data.token.symbol]})})]}),(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{component:'th',scope:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',children:'Transfer Maximum XTZ Amount'})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsxs)(RowValue,{children:[new bignumber_js_1.default(dao.data.extra.max_xtz_amount).div(Math.pow(10,6)).toNumber(),' XTZ']})})]}),(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{component:'th',scope:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',children:'Transfer Minimum XTZ Amount'})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsxs)(RowValue,{children:[new bignumber_js_1.default(dao.data.extra.min_xtz_amount).div(Math.pow(10,6)).toNumber(),' XTZ']})})]})]}):null})]})}),(0,jsx_runtime_1.jsx)(CustomTableContainer,{children:(0,jsx_runtime_1.jsxs)(core_1.Table,{style:{marginTop:32},'aria-label':'simple table',children:[(0,jsx_runtime_1.jsx)(core_1.TableHead,{children:(0,jsx_runtime_1.jsx)(core_1.TableRow,{children:(0,jsx_runtime_1.jsx)(core_1.TableCell,{colSpan:2,children:(0,jsx_runtime_1.jsx)(TableTitle,{children:'Quorum Settings'})})})}),(0,jsx_runtime_1.jsx)(core_1.TableBody,{children:dao?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{component:'th',scope:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',children:'Quorum Threshold'})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsxs)(RowValue,{children:[dao.data.quorum_threshold.toNumber(),' ',dao.data.token.symbol]})})]}),(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{component:'th',scope:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',children:'Quorum Min Amount'})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsxs)(RowValue,{children:[new bignumber_js_1.default(dao.data.min_quorum_threshold).div(10000).toNumber(),'%']})})]}),(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{component:'th',scope:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',children:'Quorum Max Amount'})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsxs)(RowValue,{children:[new bignumber_js_1.default(dao.data.max_quorum_threshold).div(10000).toNumber(),'%']})})]}),(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{component:'th',scope:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',children:'Quorum Change'})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsxs)(RowValue,{children:[new bignumber_js_1.default(dao.data.quorum_change).div(10000).toNumber(),'%']})})]}),(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{component:'th',scope:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',children:'Quorum Max Change'})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsxs)(RowValue,{children:[new bignumber_js_1.default(dao.data.max_quorum_change).div(10000).toNumber(),'%']})})]})]}):null})]})})]});};exports.DaoInfoTables=DaoInfoTables; \ No newline at end of file diff --git a/dist/modules/explorer/pages/Config/components/DAOInfoTable.js.map b/dist/modules/explorer/pages/Config/components/DAOInfoTable.js.map deleted file mode 100644 index fdc016c..0000000 --- a/dist/modules/explorer/pages/Config/components/DAOInfoTable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DAOInfoTable.js","sourceRoot":"","sources":["../../../../../../src/modules/explorer/pages/Config/components/DAOInfoTable.tsx"],"names":[],"mappings":";;;;;;;AAAA,2EAA2E;AAC3E,4CAAwH;AAExH,+DAA2D;AAC3D,gEAAoC;AACpC,6CAA2C;AAE3C,MAAM,QAAQ,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IAClC,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,EAAE;CACb,CAAC,CAAA;AAEF,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACpC,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,EAAE;CACb,CAAC,CAAA;AAEF,MAAM,oBAAoB,GAAG,IAAA,aAAM,EAAC,qBAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE;CACnC,CAAC,CAAC,CAAA;AAEI,MAAM,aAAa,GAAa,GAAG,EAAE;IAC1C,MAAM,KAAK,GAAG,IAAA,iBAAQ,GAAE,CAAA;IACxB,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,IAAA,eAAM,EAAC,KAAK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tB,CACJ,CAAA;AACH,CAAC,CAAA;AAzJY,QAAA,aAAa,iBAyJzB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/Config/index.js b/dist/modules/explorer/pages/Config/index.js deleted file mode 100644 index 811cb75..0000000 --- a/dist/modules/explorer/pages/Config/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.Config=exports.DropButton=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const useFlush_1=require('../../../../services/contracts/baseDAO/hooks/useFlush');const useDAO_1=require('../../../../services/services/dao/hooks/useDAO');const useProposals_1=require('../../../../services/services/dao/hooks/useProposals');const router_1=require('../DAO/router');const useDropAllExpired_1=require('../../../../services/contracts/baseDAO/hooks/useDropAllExpired');const SmallButton_1=require('../../../common/SmallButton');const ContentContainer_1=require('../../components/ContentContainer');const InfoIcon_1=require('../../components/styled/InfoIcon');const CopyAddress_1=require('../../../common/CopyAddress');const HeroTitle_1=require('../../components/HeroTitle');const ConfigProposalFormLambda_1=require('../../components/ConfigProposalFormLambda');const ConfigProposalForm_1=require('../../components/ConfigProposalForm');const GuardianChangeProposalForm_1=require('../../components/GuardianChangeProposalForm');const lambdas_1=require('../../../../services/bakingBad/lambdas');const DelegationChangeProposalForm_1=require('../../components/DelegationChangeProposalForm');const DAOInfoTable_1=require('./components/DAOInfoTable');const types_1=require('../../../../services/services/dao/mappers/proposal/types');const ProposalCreatorModal_1=require('../../../lite/explorer/pages/CreateProposal/ProposalCreatorModal');const getActions=()=>[{name:'Off Chain Poll',description:'Create an inconsequential poll for your community',id:'off-chain',isLambda:true},{name:'Add Lambda',description:'Write Michelson code to add Lambda',id:ConfigProposalFormLambda_1.ProposalAction.new,isLambda:true},{name:'Remove Lambda',description:'Choose which Lambda to remove',id:ConfigProposalFormLambda_1.ProposalAction.remove,isLambda:true},{name:'Execute Lambda',description:'Execute a Lambda already installed on DAO',id:ConfigProposalFormLambda_1.ProposalAction.execute,isLambda:true},{name:'DAO Configuration',description:'Change proposal fee and returned token amount',id:lambdas_1.SupportedLambdaProposalKey.ConfigurationProposal,isLambda:false},{name:'Change Guardian',description:'Change the DAO Guardian Address',id:lambdas_1.SupportedLambdaProposalKey.UpdateGuardianProposal,isLambda:false},{name:'Change Delegate',description:'Change the DAO Delegate Address',id:lambdas_1.SupportedLambdaProposalKey.UpdateContractDelegateProposal,isLambda:false}];const HeroContainer=(0,core_1.styled)(ContentContainer_1.ContentContainer)(({theme})=>({padding:'38px',display:'inline-flex',alignItems:'center',maxHeight:132,[theme.breakpoints.down('sm')]:{maxHeight:'fit-content'}}));exports.DropButton=(0,core_1.styled)(core_1.Button)({verticalAlign:'text-bottom',fontSize:'16px'});const OptionContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({'minHeight':80,'background':theme.palette.primary.main,'borderRadius':8,'padding':'35px 42px','marginBottom':16,'cursor':'pointer','&:hover':{background:theme.palette.secondary.dark,scale:1.01,transition:'0.15s ease-in'}}));const ActionText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontWeight:400,fontSize:20,marginBottom:8}));const ActionDescriptionText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontWeight:300,fontSize:16}));const defaultOpenSupportedExecuteProposalModal='none';const Config=()=>{var _a;const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const [openModal,setOpenModal]=(0,react_1.useState)(false);const [openModalLambda,setOpenModalLambda]=(0,react_1.useState)(false);const daoId=(0,router_1.useDAOID)();const {data}=(0,useDAO_1.useDAO)(daoId);const {mutate}=(0,useFlush_1.useFlush)();const {mutate:dropAllExpired}=(0,useDropAllExpired_1.useDropAllExpired)();const {data:executableProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.EXECUTABLE);const {data:expiredProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.EXPIRED);const name=data&&data.data.name;const [proposalAction,setProposalAction]=(0,react_1.useState)(ConfigProposalFormLambda_1.ProposalAction.none);const [openProposalFormLambda,setOpenProposalFormLambda]=(0,react_1.useState)(false);const [openLiteProposal,setOpenLiteProposal]=(0,react_1.useState)(false);const liteDAOId=(_a=data===null||data===void 0?void 0:data.liteDAOData)===null||_a===void 0?void 0:_a._id;const handleOpenCustomProposalModal=key=>{setProposalAction(key);setOpenProposalFormLambda(true);};const handleCloseCustomProposalModal=()=>{setProposalAction(ConfigProposalFormLambda_1.ProposalAction.none);setOpenProposalFormLambda(false);};const handleOpenSupportedExecuteProposalModal=lambdaKey=>{setOpenSupportedExecuteProposalModal(lambdaKey);};const handleCloseSupportedExecuteProposalModal=()=>{setOpenLiteProposal(false);setOpenSupportedExecuteProposalModal(defaultOpenSupportedExecuteProposalModal);};const handleLiteProposal=()=>{setOpenLiteProposal(true);};const [openSupportedExecuteProposalModalKey,setOpenSupportedExecuteProposalModal]=(0,react_1.useState)(defaultOpenSupportedExecuteProposalModal);const onFlush=(0,react_1.useCallback)(()=>__awaiter(void 0,void 0,void 0,function*(){if(executableProposals&&expiredProposals&&executableProposals.length&&data){mutate({dao:data,numOfProposalsToFlush:executableProposals.length,expiredProposalIds:expiredProposals.map(p=>p.id)});return;}}),[data,mutate,executableProposals,expiredProposals]);const onDropAllExpired=(0,react_1.useCallback)(()=>__awaiter(void 0,void 0,void 0,function*(){if(expiredProposals&&expiredProposals.length&&data){dropAllExpired({dao:data,expiredProposalIds:expiredProposals.map(p=>p.id)});return;}}),[data,dropAllExpired,expiredProposals]);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'column',style:{gap:42},children:(0,jsx_runtime_1.jsx)(HeroContainer,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:'space-between',alignItems:isMobileSmall?'baseline':'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:20},alignItems:'center',justifyContent:'space-between',direction:isMobileSmall?'column':'row',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:isMobileSmall?undefined:5,children:[(0,jsx_runtime_1.jsx)(HeroTitle_1.HeroTitle,{children:name}),data&&(0,jsx_runtime_1.jsx)(CopyAddress_1.CopyAddress,{address:data.data.address,justifyContent:isMobileSmall?'center':'flex-start',typographyProps:{variant:'subtitle2'}})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:isMobileSmall?undefined:6,container:true,justifyContent:isMobileSmall?'center':'flex-end',alignItems:'center',style:{gap:20},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(SmallButton_1.SmallButton,{variant:'contained',color:'secondary',onClick:onFlush,disabled:!executableProposals||!executableProposals.length,children:'Execute'}),(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Execute all passed proposals and drop all expired or rejected',children:(0,jsx_runtime_1.jsx)(InfoIcon_1.InfoIcon,{color:'secondary'})})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(exports.DropButton,{variant:'contained',color:'secondary',onClick:onDropAllExpired,disabled:!expiredProposals||!expiredProposals.length,children:'Drop All Expired'}),(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Drop all expired proposals',children:(0,jsx_runtime_1.jsx)(InfoIcon_1.InfoIcon,{color:'secondary'})})]})]})]})})})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,style:{marginTop:32},spacing:2,children:getActions().map((elem,index)=>!liteDAOId&&elem.id==='off-chain'?null:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:isMobileSmall?12:4,children:(0,jsx_runtime_1.jsxs)(OptionContainer,{onClick:()=>elem.id==='off-chain'?handleLiteProposal():elem.isLambda?handleOpenCustomProposalModal(elem.id):handleOpenSupportedExecuteProposalModal(elem.id),children:[(0,jsx_runtime_1.jsx)(ActionText,{color:'textPrimary',children:elem.name}),(0,jsx_runtime_1.jsxs)(ActionDescriptionText,{color:'textPrimary',children:[' ',elem.description,' ']})]})},index))}),(0,jsx_runtime_1.jsx)(DAOInfoTable_1.DaoInfoTables,{}),openProposalFormLambda?(0,jsx_runtime_1.jsx)(ConfigProposalFormLambda_1.ProposalFormLambda,{action:proposalAction,open:openProposalFormLambda,handleClose:handleCloseCustomProposalModal}):null,openSupportedExecuteProposalModalKey===lambdas_1.SupportedLambdaProposalKey.ConfigurationProposal?(0,jsx_runtime_1.jsx)(ConfigProposalForm_1.ConfigProposalForm,{open:openSupportedExecuteProposalModalKey===lambdas_1.SupportedLambdaProposalKey.ConfigurationProposal,handleClose:handleCloseSupportedExecuteProposalModal}):null,openSupportedExecuteProposalModalKey===lambdas_1.SupportedLambdaProposalKey.UpdateGuardianProposal?(0,jsx_runtime_1.jsx)(GuardianChangeProposalForm_1.GuardianChangeProposalForm,{open:openSupportedExecuteProposalModalKey===lambdas_1.SupportedLambdaProposalKey.UpdateGuardianProposal,handleClose:handleCloseSupportedExecuteProposalModal}):null,openSupportedExecuteProposalModalKey===lambdas_1.SupportedLambdaProposalKey.UpdateContractDelegateProposal?(0,jsx_runtime_1.jsx)(DelegationChangeProposalForm_1.DelegationChangeProposalForm,{open:openSupportedExecuteProposalModalKey===lambdas_1.SupportedLambdaProposalKey.UpdateContractDelegateProposal,handleClose:handleCloseSupportedExecuteProposalModal}):null,openLiteProposal?(0,jsx_runtime_1.jsx)(ProposalCreatorModal_1.ProposalCreatorModal,{open:openLiteProposal,handleClose:handleCloseSupportedExecuteProposalModal}):null]});};exports.Config=Config; \ No newline at end of file diff --git a/dist/modules/explorer/pages/Config/index.js.map b/dist/modules/explorer/pages/Config/index.js.map deleted file mode 100644 index fbe8afa..0000000 --- a/dist/modules/explorer/pages/Config/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/pages/Config/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,4CAAsG;AACtG,iCAAoD;AAEpD,wEAAoE;AACpE,+DAA2D;AAC3D,2EAAuE;AACvE,0CAAwC;AAExC,sGAAkG;AAClG,6DAAyD;AACzD,wEAAoE;AACpE,+DAA2D;AAC3D,4DAAwD;AACxD,qEAAiE;AACjE,mGAAyG;AACzG,uFAAmF;AACnF,uGAAmG;AACnG,wDAAuE;AACvE,2GAAuG;AACvG,4DAAyD;AACzD,wEAA6E;AAE7E,0GAAsG;AAStG,MAAM,UAAU,GAAG,GAAa,EAAE,CAAC;IACjC;QACE,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,mDAAmD;QAChE,EAAE,EAAE,WAAW;QACf,QAAQ,EAAE,IAAI;KACf;IACD;QACE,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,oCAAoC;QACjD,EAAE,EAAE,yCAAc,CAAC,GAAG;QACtB,QAAQ,EAAE,IAAI;KACf;IACD;QACE,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,+BAA+B;QAC5C,EAAE,EAAE,yCAAc,CAAC,MAAM;QACzB,QAAQ,EAAE,IAAI;KACf;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,2CAA2C;QACxD,EAAE,EAAE,yCAAc,CAAC,OAAO;QAC1B,QAAQ,EAAE,IAAI;KACf;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,+CAA+C;QAC5D,EAAE,EAAE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C3C,CACH,CAAC,CAAC,CAAC,IAAI,EAEP,oCAAoC,KAAK,oCAA0B,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAC3F,uBAAC,uCAAkB,IACjB,IAAI,EAAE,oCAAoC,KAAK,oCAA0B,CAAC,qBAAqB,EAC/F,WAAW,EAAE,wCAAwC,GACrD,CACH,CAAC,CAAC,CAAC,IAAI,EAEP,oCAAoC,KAAK,oCAA0B,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAC5F,uBAAC,uDAA0B,IACzB,IAAI,EAAE,oCAAoC,KAAK,oCAA0B,CAAC,sBAAsB,EAChG,WAAW,EAAE,wCAAwC,GACrD,CACH,CAAC,CAAC,CAAC,IAAI,EAEP,oCAAoC,KAAK,oCAA0B,CAAC,8BAA8B,CAAC,CAAC,CAAC,CACpG,uBAAC,2DAA4B,IAC3B,IAAI,EAAE,oCAAoC,KAAK,oCAA0B,CAAC,8BAA8B,EACxG,WAAW,EAAE,wCAAwC,GACrD,CACH,CAAC,CAAC,CAAC,IAAI,EAEP,gBAAgB,CAAC,CAAC,CAAC,CAClB,uBAAC,2CAAoB,IAAC,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,wCAAwC,GAAI,CACxG,CAAC,CAAC,CAAC,IAAI,IACP,CACJ,CAAA;AACH,CAAC,CAAA;AA5LY,QAAA,MAAM,UA4LlB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAO/components/Settings.js b/dist/modules/explorer/pages/DAO/components/Settings.js deleted file mode 100644 index 469d20f..0000000 --- a/dist/modules/explorer/pages/DAO/components/Settings.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.DaoSettingModal=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const ResponsiveDialog_1=require('../../../components/ResponsiveDialog');const DAOInfoTable_1=require('../../Config/components/DAOInfoTable');const OptionContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({'minHeight':80,'background':theme.palette.primary.main,'borderRadius':8,'padding':'35px 42px','marginBottom':16,'cursor':'pointer','height':110,'&:hover':{background:theme.palette.secondary.dark,scale:1.01,transition:'0.15s ease-in'}}));const ActionText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontWeight:400,fontSize:20,marginBottom:8}));const ActionDescriptionText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontWeight:300,fontSize:16}));const DaoSettingModal=({open,handleClose})=>{const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ResponsiveDialog,{open:open,onClose:handleClose,title:'Dao Settings',template:'xs',children:(0,jsx_runtime_1.jsx)(DAOInfoTable_1.DaoInfoTables,{})})});};exports.DaoSettingModal=DaoSettingModal; \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAO/components/Settings.js.map b/dist/modules/explorer/pages/DAO/components/Settings.js.map deleted file mode 100644 index df03ed7..0000000 --- a/dist/modules/explorer/pages/DAO/components/Settings.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Settings.js","sourceRoot":"","sources":["../../../../../../src/modules/explorer/pages/DAO/components/Settings.tsx"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,4CAAqF;AAIrF,mFAA+E;AAC/E,uEAAoE;AAEpE,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACnD,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACxC,cAAc,EAAE,CAAC;IACjB,SAAS,EAAE,WAAW;IACtB,cAAc,EAAE,EAAE;IAClB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,GAAG;IACb,SAAS,EAAE;QACT,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;QACxC,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,eAAe;KAC5B;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACpD,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,EAAE;IACZ,YAAY,EAAE,CAAC;CAChB,CAAC,CAAC,CAAA;AAEH,MAAM,qBAAqB,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC,CAAA;AAcI,MAAM,eAAe,GAAoB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;IACxE,MAAM,KAAK,GAAG,IAAA,eAAQ,GAAE,CAAA;IACxB,MAAM,aAAa,GAAG,IAAA,oBAAa,EAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAEjE,OAAO,CACL,2DACE,uBAAC,mCAAgB,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAC,IAAI,YACtF,uBAAC,4BAAa,KAAG,GACA,GAClB,CACJ,CAAA;AACH,CAAC,CAAA;AAXY,QAAA,eAAe,mBAW3B"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAO/index.js b/dist/modules/explorer/pages/DAO/index.js deleted file mode 100644 index 5572414..0000000 --- a/dist/modules/explorer/pages/DAO/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.DAO=exports.StyledAvatar=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const useFlush_1=require('../../../../services/contracts/baseDAO/hooks/useFlush');const useDAO_1=require('../../../../services/services/dao/hooks/useDAO');const useProposals_1=require('../../../../services/services/dao/hooks/useProposals');const router_1=require('./router');const ContentContainer_1=require('../../components/ContentContainer');const ProposalsList_1=require('../../components/ProposalsList');const types_1=require('../../../../services/services/dao/mappers/proposal/types');const DAOStatsRow_1=require('../../components/DAOStatsRow');const UsersTable_1=require('../../components/UsersTable');const bignumber_js_1=__importDefault(require('bignumber.js'));const usePolls_1=require('../../../lite/explorer/hooks/usePolls');const dayjs_1=__importDefault(require('dayjs'));const Settings_1=require('./components/Settings');const icons_1=require('@material-ui/icons');exports.StyledAvatar=(0,core_1.styled)(core_1.Avatar)({height:50,width:50});const HeroContainer=(0,core_1.styled)(ContentContainer_1.ContentContainer)(({theme})=>({padding:'38px 38px'}));const TitleText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontSize:40,fontWeight:500,lineHeight:0.8,['@media (max-width:642px)']:{fontSize:35},['@media (max-width:583px)']:{fontSize:30},['@media (max-width:533px)']:{fontSize:25},['@media (max-width:462px)']:{fontSize:22}}));const ViewSettings=(0,core_1.styled)(core_1.Grid)({'fontWeight':300,'gap':8,'cursor':'pointer','& h6':{fontWeight:300}});const SubtitleText=(0,core_1.styled)(core_1.Typography)({fontSize:18,margin:'-10px auto 0 auto',width:'875px',fontWeight:300,maxHeight:'200px',overflowY:'scroll',['@media (max-width:1166px)']:{width:'75.3vw'},['@media (max-width:1138px)']:{width:'100%'},['@media (max-width:599.98px)']:{width:'100%',margin:'-15px auto 0 auto'}});const TableContainer=(0,core_1.styled)(ContentContainer_1.ContentContainer)({width:'100%'});const DAO=()=>{var _a;const daoId=(0,router_1.useDAOID)();const {data,cycleInfo,ledger}=(0,useDAO_1.useDAO)(daoId);const {mutate}=(0,useFlush_1.useFlush)();const theme=(0,core_1.useTheme)();const isExtraSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));const name=data&&data.data.name;const description=data&&data.data.description;const {data:activeProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.ACTIVE);const {data:executableProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.EXECUTABLE);const {data:expiredProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.EXPIRED);const polls=(0,usePolls_1.usePolls)((_a=data===null||data===void 0?void 0:data.liteDAOData)===null||_a===void 0?void 0:_a._id);const activeLiteProposals=polls===null||polls===void 0?void 0:polls.filter(p=>Number(p.endTime)>(0,dayjs_1.default)().valueOf());const [openDialog,setOpenDialog]=(0,react_1.useState)(false);const handleCloseModal=()=>{setOpenDialog(false);};const usersTableData=(0,react_1.useMemo)(()=>{if(!ledger||!cycleInfo||!data){return[];}return ledger.sort((a,b)=>b.available_balance.minus(a.available_balance).toNumber()).map(p=>({address:p.holder.address,totalStaked:new bignumber_js_1.default(p.total_balance).dp(10,1).toString(),availableStaked:new bignumber_js_1.default(p.available_balance).dp(10,1).toString(),votes:p.holder.votes_cast.toString(),proposalsVoted:p.holder.proposals_voted.toString()}));},[cycleInfo,data,ledger]);return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:isExtraSmall?25:42},children:[(0,jsx_runtime_1.jsx)(HeroContainer,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:36},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:20},alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(TitleText,{color:'textPrimary',children:name})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsxs)(ViewSettings,{container:true,direction:'row',alignItems:'center',onClick:()=>setOpenDialog(true),children:[(0,jsx_runtime_1.jsx)(icons_1.Visibility,{fontSize:'small',color:'secondary'}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'secondary',children:'View configuration'})]}),(0,jsx_runtime_1.jsx)(Settings_1.DaoSettingModal,{open:openDialog,handleClose:handleCloseModal})]})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(SubtitleText,{color:'textPrimary',children:description})})]})}),(0,jsx_runtime_1.jsx)(DAOStatsRow_1.DAOStatsRow,{}),data&&cycleInfo&&activeProposals&&(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(ProposalsList_1.ProposalsList,{showFooter:true,title:'Active Proposals',currentLevel:cycleInfo.currentLevel,proposals:activeProposals,liteProposals:activeLiteProposals})}),(0,jsx_runtime_1.jsx)(TableContainer,{item:true,children:(0,jsx_runtime_1.jsx)(UsersTable_1.UsersTable,{data:usersTableData})})]});};exports.DAO=DAO; \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAO/index.js.map b/dist/modules/explorer/pages/DAO/index.js.map deleted file mode 100644 index a066963..0000000 --- a/dist/modules/explorer/pages/DAO/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/pages/DAO/index.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAgD;AAChD,4CAAqG;AAErG,wEAAoE;AACpE,+DAA2D;AAC3D,2EAAuE;AACvE,qCAAmC;AAEnC,wEAAoE;AACpE,kEAA8D;AAC9D,wEAA6E;AAC7E,8DAA0D;AAC1D,4DAAwD;AACxD,gEAAoC;AAEpC,mEAA+D;AAC/D,kDAAyB;AACzB,oDAAuD;AACvD,8CAA+C;AAElC,QAAA,YAAY,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC;IACzC,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;CACV,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,IA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C,IAAI,kBAClB,uBAAC,uBAAU,IAAC,IAAI,EAAE,cAAc,GAAI,GACrB,IACZ,CACR,CAAA;AACH,CAAC,CAAA;AAjFY,QAAA,GAAG,OAiFf"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAO/router.js b/dist/modules/explorer/pages/DAO/router.js deleted file mode 100644 index a5c13d0..0000000 --- a/dist/modules/explorer/pages/DAO/router.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i({background:theme.palette.primary.dark,width:'1000px',margin:'42px auto 0px auto',['@media (max-width: 1425px)']:{},['@media (max-width:1335px)']:{},['@media (max-width:1167px)']:{width:'86vw'},['@media (max-width:1030px)']:{},['@media (max-width:960px)']:{marginTop:0}}));var DAOState;(function(DAOState){DAOState[DAOState['NOT_FOUND']=0]='NOT_FOUND';DAOState[DAOState['NOT_INDEXED']=1]='NOT_INDEXED';DAOState[DAOState['FOUND']=2]='FOUND';}(DAOState||(DAOState={})));const DAORouteContent=({children})=>{const daoId=(0,exports.useDAOID)();const {tezos,network,changeNetwork}=(0,useTezos_1.useTezos)();const {data,error}=(0,useDAO_1.useDAO)(daoId);const [state,setState]=(0,react_1.useState)(DAOState.FOUND);const history=(0,react_router_1.useHistory)();(0,react_1.useEffect)(()=>{;(()=>__awaiter(void 0,void 0,void 0,function*(){if(!data&&!!error){try{yield tezos.contract.at(daoId);setState(DAOState.NOT_INDEXED);}catch(e){setState(DAOState.NOT_FOUND);}}}))();},[data,error,daoId,tezos.contract]);(0,react_1.useEffect)(()=>{if(history&&data&&data.data.network.toLowerCase()!==network.toLowerCase()){changeNetwork(data.data.network.toLowerCase());}},[data,history,network,changeNetwork]);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:state===DAOState.NOT_FOUND?(0,jsx_runtime_1.jsx)(NotFound_1.NotFound,{}):state===DAOState.NOT_INDEXED?(0,jsx_runtime_1.jsx)(NotIndexed_1.NotIndexed,{address:daoId}):children});};const DAORoute=_a=>{var {children}=_a,props=__rest(_a,['children']);return(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,Object.assign({},props,{children:(0,jsx_runtime_1.jsx)(DAORouteContent,{children:children})}));};const DAOContext=react_1.default.createContext('');const DAOProvider=({daoId,children})=>{return(0,jsx_runtime_1.jsx)(DAOContext.Provider,{value:daoId,children:children});};const useDAOID=()=>{return(0,react_1.useContext)(DAOContext);};exports.useDAOID=useDAOID;const DAORouter=()=>{const match=(0,react_router_dom_1.useRouteMatch)();const theme=(0,core_1.useTheme)();const {id:daoId}=(0,react_router_dom_1.useParams)();return(0,jsx_runtime_1.jsxs)(DAOProvider,{daoId:daoId,children:[(0,jsx_runtime_1.jsx)(Toolbar_1.Navbar,{}),(0,jsx_runtime_1.jsx)(PageLayout,{children:(0,jsx_runtime_1.jsxs)(react_router_dom_1.Switch,{children:[(0,jsx_runtime_1.jsx)(DAORoute,{path:`${match.url}/proposal/:proposalId`,children:(0,jsx_runtime_1.jsx)(ProposalDetails_1.ProposalDetails,{})}),(0,jsx_runtime_1.jsx)(DAORoute,{path:`${match.url}/proposals`,children:(0,jsx_runtime_1.jsx)(Proposals_1.Proposals,{})}),(0,jsx_runtime_1.jsx)(DAORoute,{path:`${match.url}/treasury`,children:(0,jsx_runtime_1.jsx)(Treasury_1.Treasury,{})}),(0,jsx_runtime_1.jsx)(DAORoute,{path:`${match.url}/registry`,children:(0,jsx_runtime_1.jsx)(Registry_1.Registry,{})}),(0,jsx_runtime_1.jsx)(DAORoute,{path:`${match.url}/user`,children:(0,jsx_runtime_1.jsx)(User_1.User,{})}),(0,jsx_runtime_1.jsx)(DAORoute,{path:`${match.url}/config`,children:(0,jsx_runtime_1.jsx)(Config_1.Config,{})}),(0,jsx_runtime_1.jsx)(DAORoute,{path:`${match.url}/overview`,children:(0,jsx_runtime_1.jsx)(index_1.DAO,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Redirect,{from:`${match.url}`,to:`${match.url}/overview`})]})})]});};exports.DAORouter=DAORouter; \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAO/router.js.map b/dist/modules/explorer/pages/DAO/router.js.map deleted file mode 100644 index 13b73a4..0000000 --- a/dist/modules/explorer/pages/DAO/router.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/pages/DAO/router.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAoD;AACpD,mEAA+D;AAC/D,uEAAmE;AACnE,4DAAsD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BAAC,QAAQ,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,OAAO,YACjC,uBAAC,WAAI,KAAG,GACC,EACX,uBAAC,QAAQ,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,SAAS,YACnC,uBAAC,eAAM,KAAG,GACD,EACX,uBAAC,QAAQ,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,WAAW,YACrC,uBAAC,WAAG,KAAG,GACE,EACX,uBAAC,2BAAQ,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC,GAAG,WAAW,GAAI,IACxD,GACE,IACD,CACf,CAAA;AACH,CAAC,CAAA;AApCY,QAAA,SAAS,aAoCrB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAOList/components/ConnectMessage.js b/dist/modules/explorer/pages/DAOList/components/ConnectMessage.js deleted file mode 100644 index db764c8..0000000 --- a/dist/modules/explorer/pages/DAOList/components/ConnectMessage.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ConnectMessage=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const useTezos_1=require('../../../../../services/beacon/hooks/useTezos');const Container=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main,width:'100%',maxWidth:'calc(100vw - 48px)',wordBreak:'break-all',borderRadius:8,boxSizing:'border-box',padding:32}));const ConnectMessage=()=>{const {connect}=(0,useTezos_1.useTezos)();return(0,jsx_runtime_1.jsxs)(Container,{children:[' ',(0,jsx_runtime_1.jsxs)(core_1.Typography,{variant:'body1',color:'textPrimary',align:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Link,{color:'secondary',onClick:()=>connect(),style:{cursor:'pointer'},children:'Connect your wallet'}),' ','to see which DAOs you hold a stake in']})]});};exports.ConnectMessage=ConnectMessage; \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAOList/components/ConnectMessage.js.map b/dist/modules/explorer/pages/DAOList/components/ConnectMessage.js.map deleted file mode 100644 index 31a7b70..0000000 --- a/dist/modules/explorer/pages/DAOList/components/ConnectMessage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConnectMessage.js","sourceRoot":"","sources":["../../../../../../src/modules/explorer/pages/DAOList/components/ConnectMessage.tsx"],"names":[],"mappings":";;;;AACA,4CAAyE;AACzE,6DAAyD;AAEzD,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,CAAC;IAC/D,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACtC,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,oBAAoB;IAC9B,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,CAAC;IACf,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,EAAE;CACZ,CAAC,CAAC,CAAA;AAEI,MAAM,cAAc,GAAa,GAAG,EAAE;IAC3C,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAE9B,OAAO,CACL,wBAAC,SAAS,eACP,GAAG,EACJ,wBAAC,iBAAU,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAE,QAAQ,aAC7D,uBAAC,WAAI,IAAC,KAAK,EAAC,WAAW,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,oCAEvE,EAAC,GAAG,6CAEA,IACH,CACb,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,cAAc,kBAc1B"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAOList/components/DAOItem.js b/dist/modules/explorer/pages/DAOList/components/DAOItem.js deleted file mode 100644 index 6c340a0..0000000 --- a/dist/modules/explorer/pages/DAOList/components/DAOItem.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.DAOItem=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const hex_to_rgba_1=__importDefault(require('hex-to-rgba'));const config_1=require('../../../../../services/config');const SectionNames=(0,core_1.styled)(core_1.Grid)(({theme})=>({width:'55%',['@media (max-width:1030px)']:{width:'50%'},['@media (max-width:960px)']:{width:'99%'}}));const Container=(0,core_1.styled)(core_1.Grid)(({theme})=>({'background':theme.palette.primary.main,'minHeight':138,'wordBreak':'break-all','borderRadius':8,'boxSizing':'border-box','padding':32,'cursor':'pointer','transition':'0.15s ease-out',['@media (max-width:1335px)']:{minHeight:130},['@media (max-width:1155px)']:{minHeight:123},['@media (max-width:1030px)']:{},['@media (max-width:960px)']:{minHeight:210},['@media (max-width:760px)']:{maxWidth:'86vw'},'&:hover':{background:theme.palette.secondary.dark,scale:1.01,transition:'0.15s ease-in'},'& > *':{transform:'scale(1.000001)'}}));const SymbolText=(0,core_1.styled)(core_1.Typography)({fontSize:'18px',fontWeight:300,['@media (max-width:1335px)']:{fontSize:'16px'}});const NameText=(0,core_1.styled)(core_1.Typography)(({theme})=>({whiteSpace:'nowrap',textOverflow:'ellipsis',color:theme.palette.text.primary,overflow:'hidden',fontSize:'32px',['@media (max-width:1335px)']:{fontSize:'29px'},['@media (max-width:1155px)']:{fontSize:'26px'},['@media (max-width:1030px)']:{},['@media (max-width:960px)']:{fontSize:'28px',marginBottom:'10px',maxWidth:245}}));const NumberText=(0,core_1.styled)(core_1.Typography)({fontSize:'28px',fontWeight:300,['@media (max-width:1335px)']:{fontSize:'26px',lineHeight:1.2,borderBottom:'7px solid transparent'},['@media (max-width:1155px)']:{fontSize:'23px',borderBottom:'9.5px solid transparent'},['@media (max-width:960px)']:{fontSize:'26px',borderBottom:'6px solid transparent'}});const VotingAddressesText=(0,core_1.styled)(core_1.Typography)({fontSize:'19px',fontWeight:300,['@media (max-width:1335px)']:{fontSize:'17px'},['@media (max-width:1155px)']:{fontSize:'15.7px'},['@media (max-width:960px)']:{fontSize:'17px'}});const Badge=(0,core_1.styled)(core_1.Grid)(({theme,dao_type})=>({'borderRadius':4,'height':'auto','boxSizing':'border-box','width':'fit-content','textAlign':'center','padding':'0 7px','float':'right','background':dao_type==='lambda'?(0,hex_to_rgba_1.default)(theme.palette.secondary.main,0.4):(0,hex_to_rgba_1.default)(theme.palette.warning.main,0.4),'color':dao_type==='lambda'?theme.palette.secondary.main:theme.palette.warning.main,'& > div':{height:'100%'},'fontFamily':'Roboto Mono','fontWeight':'bold'}));const DAOItem=({dao})=>{var _a;const theme=(0,core_1.useTheme)();const isExtraSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));const daoType=dao.dao_type.name;const daoHref=daoType!=='lambda'&&daoType!=='lite'?`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_V2_URL)}/explorer/dao/${dao.id}`:daoType==='lambda'?`dao/${dao.id}`:`lite/dao/${dao.id}`;return(0,jsx_runtime_1.jsx)(core_1.Link,{underline:'none',href:daoHref,children:(0,jsx_runtime_1.jsxs)(Container,{container:true,justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(SectionNames,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{children:[(0,jsx_runtime_1.jsx)(SymbolText,{color:'secondary',children:(_a=dao===null||dao===void 0?void 0:dao.symbol)===null||_a===void 0?void 0:_a.toUpperCase()}),(0,jsx_runtime_1.jsx)(NameText,{color:'textPrimary',children:dao.name})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:12,sm:true,children:[daoType==='lambda'?(0,jsx_runtime_1.jsx)(Badge,{dao_type:daoType,children:'V3'}):null,daoType==='registry'||daoType==='treasury'?(0,jsx_runtime_1.jsx)(Badge,{dao_type:daoType,children:'V2'}):null,daoType==='lite'?(0,jsx_runtime_1.jsx)(Badge,{dao_type:daoType,children:'Lite'}):null,(0,jsx_runtime_1.jsx)(NumberText,{color:'textPrimary',children:dao.votingAddresses.length}),(0,jsx_runtime_1.jsx)(VotingAddressesText,{color:'textPrimary',children:'Voting Addresses'})]})})]})});};exports.DAOItem=DAOItem; \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAOList/components/DAOItem.js.map b/dist/modules/explorer/pages/DAOList/components/DAOItem.js.map deleted file mode 100644 index 407fa17..0000000 --- a/dist/modules/explorer/pages/DAOList/components/DAOItem.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DAOItem.js","sourceRoot":"","sources":["../../../../../../src/modules/explorer/pages/DAOList/components/DAOItem.tsx"],"names":[],"mappings":";;;;;;;AAAA,4CAAkG;AAElG,8DAAmC;AAGnC,4CAAgD;AAEhD,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,CAAC;IAClE,KAAK,EAAE,KAAK;IAEZ,CAAC,2BAA2B,CAAC,EAAE;QAC7B,KAAK,EAAE,KAAK;KACb;IAED,CAAC,0BAA0B,CAAC,EAAE;QAC5B,KAAK,EAAE,KAAK;KACb;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,CAAC;IAC/D,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACxC,WAAW,EAAE,GAAG;IAChB,WAAW,EAAE,WAAW;IACxB,cAAc,EAAE,CAAC;IACjB,WAAW,EAAE,YAAY;IACzB,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,SAAS;IACnB,YAAY,EAAE,gBAAgB;IAE9B,CAAC,2BAA2B,CAAC,EAAE;QAC7B,SAAS,EAAE,GAAG;KAC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GAAY,IAC9C,GACM,EACf,uBAAC,WAAI,cACH,wBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,mBAClB,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,uBAAC,KAAK,IAAC,QAAQ,EAAE,OAAO,mBAAY,CAAC,CAAC,CAAC,IAAI,EAClE,OAAO,KAAK,UAAU,IAAI,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,uBAAC,KAAK,IAAC,QAAQ,EAAE,OAAO,mBAAY,CAAC,CAAC,CAAC,IAAI,EAC9F,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,uBAAC,KAAK,IAAC,QAAQ,EAAE,OAAO,qBAAc,CAAC,CAAC,CAAC,IAAI,EAEnE,uBAAC,UAAU,IAAC,KAAK,EAAC,aAAa,YAAE,GAAG,CAAC,eAAe,CAAC,MAAM,GAAc,EACzE,uBAAC,mBAAmB,IAAC,KAAK,EAAC,aAAa,iCAAuC,IAC1E,GACF,IACG,GACP,CACR,CAAA;AACH,CAAC,CAAA;AAzCY,QAAA,OAAO,WAyCnB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAOList/components/Searchbar.js b/dist/modules/explorer/pages/DAOList/components/Searchbar.js deleted file mode 100644 index 776c6f6..0000000 --- a/dist/modules/explorer/pages/DAOList/components/Searchbar.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.SearchInput=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const icons_1=require('@material-ui/icons');const StyledInput=(0,core_1.withStyles)(theme=>({root:{'& label.MuiInputLabel-root':{display:'none'},'& div.MuiInputBase-root':{'fontSize':18,'height':54,'boxSizing':'border-box','background':theme.palette.primary.main,'padding':'18px 22px','width':'100%','borderRadius':4,'marginTop':'0px !important','maxWidth':571,'& input':{'color':theme.palette.text.primary,'textAlign':'start','&:placeholder':{opacity:0.8}},'&:focus-visible':{outline:'none'}},'& .MuiInput-underline:before':{borderBottomColor:'transparent'},'& .MuiInput-underline:hover:before':{borderBottomColor:'transparent'},'& .MuiInput-underline:after':{borderBottomColor:'transparent'}},input:{disabled:{}}}))(core_1.TextField);const SearchIcon=(0,core_1.styled)(icons_1.SearchOutlined)({marginRight:5});const SearchInput=({search})=>{return(0,jsx_runtime_1.jsx)(StyledInput,{id:'standard-search',label:'Search field',type:'search',placeholder:'Search',onChange:e=>search(e.target.value),InputProps:{startAdornment:(0,jsx_runtime_1.jsx)(core_1.InputAdornment,{position:'start',children:(0,jsx_runtime_1.jsx)(SearchIcon,{color:'secondary'})})}});};exports.SearchInput=SearchInput; \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAOList/components/Searchbar.js.map b/dist/modules/explorer/pages/DAOList/components/Searchbar.js.map deleted file mode 100644 index 9c32171..0000000 --- a/dist/modules/explorer/pages/DAOList/components/Searchbar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Searchbar.js","sourceRoot":"","sources":["../../../../../../src/modules/explorer/pages/DAOList/components/Searchbar.tsx"],"names":[],"mappings":";;;;AACA,4CAAwF;AACxF,8CAAmD;AAEnD,MAAM,WAAW,GAAG,IAAA,iBAAU,EAAC,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IAChD,IAAI,EAAE;QACJ,4BAA4B,EAAE;YAC5B,OAAO,EAAE,MAAM;SAChB;QACD,yBAAyB,EAAE;YACzB,UAAU,EAAE,EAAE;YACd,QAAQ,EAAE,EAAE;YACZ,WAAW,EAAE,YAAY;YACzB,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;YACxC,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,MAAM;YACf,cAAc,EAAE,CAAC;YACjB,WAAW,EAAE,gBAAgB;YAC7B,UAAU,EAAE,GAAG;YACf,SAAS,EAAE;gBACT,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;gBACnC,WAAW,EAAE,OAAO;gBACpB,eAAe,EAAE;oBACf,OAAO,EAAE,GAAG;iBACb;aACF;YACD,iBAAiB,EAAE;gBACjB,OAAO,EAAE,MAAM;aAChB;SACF;QACD,8BAA8B,EAAE;YAC9B,iBAAiB,EAAE,aAAa;SACjC;QACD,oCAAoC,EAAE;YACpC,iBAAiB,EAAE,aAAa;SACjC;QACD,6BAA6B,EAAE;YAC7B,iBAAiB,EAAE,aAAa;SACjC;KACF;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,EAAE;KACb;CACF,CAAC,CAAC,CAAC,gBAAS,CAAC,CAAA;AAEd,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,sBAAc,CAAC,CAAC;IACxC,WAAW,EAAE,CAAC;CACf,CAAC,CAAA;AAEK,MAAM,WAAW,GAA8B,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;IACnE,OAAO,CACL,uBAAC,WAAW,IACV,EAAE,EAAC,iBAAiB,EACpB,KAAK,EAAC,cAAc,EACpB,IAAI,EAAC,QAAQ,EACb,WAAW,EAAC,QAAQ,EACpB,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACrC,UAAU,EAAE;YACV,cAAc,EAAE,CACd,uBAAC,qBAAc,IAAC,QAAQ,EAAC,OAAO,YAC9B,uBAAC,UAAU,IAAC,KAAK,EAAC,WAAW,GAAG,GACjB,CAClB;SACF,GACD,CACH,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,WAAW,eAiBvB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAOList/index.js b/dist/modules/explorer/pages/DAOList/index.js deleted file mode 100644 index 397e697..0000000 --- a/dist/modules/explorer/pages/DAOList/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};Object.defineProperty(exports,'__esModule',{value:true});exports.DAOList=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const Toolbar_1=require('../../components/Toolbar');const TabPanel_1=require('../../components/TabPanel');const react_1=__importStar(require('react'));const useTezos_1=require('../../../../services/beacon/hooks/useTezos');const useAllDAOs_1=require('../../../../services/services/dao/hooks/useAllDAOs');const ConnectMessage_1=require('./components/ConnectMessage');const DAOItem_1=require('./components/DAOItem');const Searchbar_1=require('./components/Searchbar');const MainButton_1=require('../../../common/MainButton');const icons_1=require('@material-ui/icons');const PageContainer=(0,core_1.styled)('div')(({theme})=>({width:'1000px',height:'100%',margin:'auto',['@media (max-width: 1425px)']:{},['@media (max-width:1335px)']:{},['@media (max-width:1167px)']:{width:'86vw'},['@media (max-width:1030px)']:{},['@media (max-width:960px)']:{}}));const StyledTab=(0,core_1.styled)(core_1.Button)(({theme,isSelected})=>({'fontSize':16,'color':isSelected?theme.palette.primary.dark:'#fff','backgroundColor':isSelected?theme.palette.secondary.main:theme.palette.primary.main,'&:hover':{backgroundColor:isSelected?theme.palette.secondary.main:theme.palette.secondary.dark}}));const Search=(0,core_1.styled)(core_1.Grid)({width:'49.5%',['@media (max-width: 645px)']:{width:'100%',marginTop:'14px'}});const DAOItemGrid=(0,core_1.styled)(core_1.Grid)({gap:'18px',['@media (max-width: 1155px)']:{gap:'16px'},['@media (max-width:960px)']:{gap:'14px'},['@media (max-width:830px)']:{gap:'12px'}});const DAOItemCard=(0,core_1.styled)(core_1.Grid)({flexBasis:'49%',['@media (max-width:760px)']:{minWidth:'100%'}});const BannerContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main,padding:'30px 48px',borderRadius:8,display:'inline-block',[theme.breakpoints.down('md')]:{padding:'28px 38px'}}));const LinkText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontSize:18,fontWeight:200,lineHeight:'146.3%',cursor:'default',[theme.breakpoints.down('sm')]:{fontSize:16},[theme.breakpoints.down('xs')]:{fontSize:13}}));const ExternalLink=(0,core_1.styled)(core_1.Typography)({'display':'inline','cursor':'pointer','fontWeight':200,'&:hover':{textDecoration:'underline'}});const ExternalLinkIcon=(0,core_1.styled)(icons_1.LaunchOutlined)({fontSize:14,marginBottom:2});const DAOList=()=>{const {network,account,tezos}=(0,useTezos_1.useTezos)();const {data:daos,isLoading}=(0,useAllDAOs_1.useAllDAOs)(network);const theme=(0,core_1.useTheme)();const isMobileExtraSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('mobile'));const [searchText,setSearchText]=(0,react_1.useState)('');const [selectedTab,setSelectedTab]=react_1.default.useState(0);const currentDAOs=(0,react_1.useMemo)(()=>{if(daos){const formattedDAOs=daos.map(dao=>({id:dao.address,name:dao.name,symbol:dao.token.symbol,votingAddresses:dao.ledgers?dao.ledgers.map(l=>l.holder.address):[],dao_type:{name:dao.dao_type.name}})).sort((a,b)=>b.votingAddresses.length-a.votingAddresses.length);if(searchText){return formattedDAOs.filter(formattedDao=>formattedDao.name&&formattedDao.name.toLowerCase().includes(searchText.toLowerCase())||formattedDao.symbol&&formattedDao.symbol.toLowerCase().includes(searchText.toLowerCase()));}return formattedDAOs;}return[];},[daos,searchText]);const filterDAOs=filter=>{setSearchText(filter.trim());};const handleChangeTab=newValue=>{setSelectedTab(newValue);};return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(Toolbar_1.Navbar,{disableMobileMenu:true}),(0,jsx_runtime_1.jsx)(PageContainer,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:42},direction:'column',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:isMobileExtraSmall?'center':'space-between',alignItems:'center',style:{gap:42},children:[(0,jsx_runtime_1.jsx)(Search,{children:(0,jsx_runtime_1.jsx)(Searchbar_1.SearchInput,{search:filterDAOs})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:22},justifyContent:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:'center',alignItems:'center',style:{height:'100%'},children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{style:{fontSize:'18px'},color:'textPrimary',children:[(daos===null||daos===void 0?void 0:daos.length)||0,' DAOs']})})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Link,{underline:'none',href:`/creator`,children:(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',children:'Create DAO'})})})]})})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledTab,{variant:'contained',style:selectedTab!==0?{borderTopRightRadius:0,borderBottomRightRadius:0,zIndex:0}:{borderRadius:4,zIndex:1},disableElevation:true,onClick:()=>handleChangeTab(0),isSelected:selectedTab===0,children:'All'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledTab,{disableElevation:true,variant:'contained',style:selectedTab!==1?{borderTopLeftRadius:0,borderBottomLeftRadius:0,marginLeft:-1,zIndex:0}:{borderRadius:4,marginLeft:-1,zIndex:1},onClick:()=>handleChangeTab(1),isSelected:selectedTab===1,children:'My DAOs'})})]})})})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(TabPanel_1.TabPanel,{value:selectedTab,index:0,children:(0,jsx_runtime_1.jsxs)(DAOItemGrid,{container:true,justifyContent:isMobileSmall?'center':'flex-start',children:[currentDAOs.map((dao,i)=>(0,jsx_runtime_1.jsx)(DAOItemCard,{item:true,children:(0,jsx_runtime_1.jsx)(DAOItem_1.DAOItem,{dao:dao})},`dao-${i}`)),isLoading?(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.CircularProgress,{color:'secondary'})}):null]})}),(0,jsx_runtime_1.jsx)(TabPanel_1.TabPanel,{value:selectedTab,index:1,children:(0,jsx_runtime_1.jsx)(DAOItemGrid,{container:true,style:{gap:18},justifyContent:isMobileSmall?'center':'flex-start',children:!account?(0,jsx_runtime_1.jsx)(ConnectMessage_1.ConnectMessage,{}):currentDAOs.filter(dao=>dao.votingAddresses.includes(account)).map((dao,i)=>(0,jsx_runtime_1.jsx)(DAOItemCard,{item:true,children:(0,jsx_runtime_1.jsx)(DAOItem_1.DAOItem,{dao:dao})},`mine-${i}`))})})]})]})})]});};exports.DAOList=DAOList; \ No newline at end of file diff --git a/dist/modules/explorer/pages/DAOList/index.js.map b/dist/modules/explorer/pages/DAOList/index.js.map deleted file mode 100644 index 03d4004..0000000 --- a/dist/modules/explorer/pages/DAOList/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","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NFTs/index.js deleted file mode 100644 index 3b2e1b7..0000000 --- a/dist/modules/explorer/pages/NFTs/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.NFTs=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const NFT_1=require('../../components/NFT');const NFTDialog_1=require('../../components/NFTDialog');const ProposalForm_1=require('../../components/ProposalForm');const UserBadge_1=require('../../components/UserBadge');const react_1=require('react');const useTezos_1=require('../../../../services/beacon/hooks/useTezos');const useDAOHoldings_1=require('../../../../services/contracts/baseDAO/hooks/useDAOHoldings');const useDAO_1=require('../../../../services/services/dao/hooks/useDAO');const ContentContainer_1=require('../../components/ContentContainer');const router_1=require('../DAO/router');const useCycleInfo_1=require('../../../../services/contracts/baseDAO/hooks/useCycleInfo');const SmallButton_1=require('../../../common/SmallButton');const utils_1=require('../../../../services/contracts/utils');const Card=(0,core_1.styled)(ContentContainer_1.ContentContainer)({boxSizing:'border-box',padding:30,width:325,minHeight:500,cursor:'pointer'});const FullWidthContainer=(0,core_1.styled)(core_1.Grid)({width:'100%'});const ImgContainer=(0,core_1.styled)(core_1.Box)({height:246,width:'100%'});const NFTId=(0,core_1.styled)(core_1.Typography)({fontSize:14,fontWeight:300});const NFTTitle=(0,core_1.styled)(core_1.Typography)({fontWeight:500});const NFTs=()=>{const theme=(0,core_1.useTheme)();const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);const {nftHoldings}=(0,useDAOHoldings_1.useDAONFTHoldings)(daoId);const [openTransfer,setOpenTransfer]=(0,react_1.useState)(false);const {account}=(0,useTezos_1.useTezos)();const [defaultValues,setDefaultValues]=(0,react_1.useState)();const [selectedNFT,setSelectedNFT]=(0,react_1.useState)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const onClickNFT=nft=>{setSelectedNFT(nft);};const onCloseDialog=()=>{setSelectedNFT(undefined);};const onOpenTransferModal=nft=>{setDefaultValues({nftTransferForm:{isBatch:false,transfers:[{recipient:account,amount:1,asset:nft}]}});setOpenTransfer(true);};const onClick=(e,nft)=>{e.stopPropagation();onOpenTransferModal(nft);};const onCloseTransfer=()=>{setOpenTransfer(false);};const shouldDisable=(0,useCycleInfo_1.useIsProposalButtonDisabled)(daoId);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'column',style:{gap:42},children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:isMobileSmall?'center':'flex-start',style:{gap:12},children:!nftHoldings?(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.CircularProgress,{color:'secondary'})})}):(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:nftHoldings.map((nft,i)=>(0,jsx_runtime_1.jsxs)(Card,{item:true,container:true,xs:isMobileSmall?12:undefined,direction:'column',style:{gap:20},onClick:()=>onClickNFT(nft),children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:18},alignItems:'center',children:[(0,jsx_runtime_1.jsx)(FullWidthContainer,{item:true,children:nft.token.firstCreator?(0,jsx_runtime_1.jsx)(UserBadge_1.UserBadge,{size:35,address:nft.token.firstCreator,short:true}):(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'body1',children:'Unknown'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ImgContainer,{children:(0,jsx_runtime_1.jsx)(NFT_1.NFT,{qmHash:nft.token.artifact_hash,mediaType:nft.token.mediaType,name:nft.token.name})})}),(0,jsx_runtime_1.jsxs)(FullWidthContainer,{item:true,container:true,direction:'row',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsxs)(NFTId,{color:'textPrimary',children:[nft.token.symbol,'#',nft.token.id]}),(0,jsx_runtime_1.jsxs)(NFTId,{color:'textPrimary',children:['#',nft.token.token_id]})]})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:20},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(NFTTitle,{color:'textPrimary',variant:'h4',children:nft.token.name})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'secondary',style:{marginBottom:16},children:[(0,utils_1.parseUnits)(nft.token.supply,nft.token.decimals).toString(),' ',nft.token.symbol]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,direction:'row',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(SmallButton_1.SmallButton,{variant:'contained',color:'secondary',size:'small',onClick:e=>onClick(e,nft.token),disabled:shouldDisable,children:'Transfer'})})]})})]},`nft-${i}`))})})})}),(0,jsx_runtime_1.jsx)(NFTDialog_1.NFTDialog,{open:!!selectedNFT,onClose:onCloseDialog,nft:selectedNFT===null||selectedNFT===void 0?void 0:selectedNFT.token}),(0,jsx_runtime_1.jsx)(ProposalForm_1.ProposalFormContainer,{open:openTransfer,handleClose:onCloseTransfer,defaultValues:defaultValues,defaultTab:1})]});};exports.NFTs=NFTs; \ No newline at end of file diff --git a/dist/modules/explorer/pages/NFTs/index.js.map b/dist/modules/explorer/pages/NFTs/index.js.map deleted file mode 100644 index 858bfa5..0000000 --- a/dist/modules/explorer/pages/NFTs/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/pages/NFTs/index.tsx"],"names":[],"mappings":";;;;AAAA,6DAA6D;AAC7D,4CAU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AC,WAAW,EACnB,KAAK,EAAC,WAAW,EACjB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,EACnC,QAAQ,EAAE,aAAa,yBAGX,GACT,IACF,GACF,KA5DF,OAAO,CAAC,EAAE,CA6DV,CACR,CAAC,GACD,CACJ,GACI,GACF,GACF,EACP,uBAAC,qBAAS,IAAC,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,EAAG,WAA6B,aAA7B,WAAW,uBAAX,WAAW,CAAoB,KAAK,GAAI,EACtG,uBAAC,oCAAqB,IACpB,IAAI,EAAE,YAAY,EAClB,WAAW,EAAE,eAAe,EAC5B,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,CAAC,GACb,IACD,CACJ,CAAA;AACH,CAAC,CAAA;AA1IY,QAAA,IAAI,QA0IhB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/ProposalDetails/components/CodeVisor.js b/dist/modules/explorer/pages/ProposalDetails/components/CodeVisor.js deleted file mode 100644 index e7c6d55..0000000 --- a/dist/modules/explorer/pages/ProposalDetails/components/CodeVisor.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.CodeVisor=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const ResponsiveDialog_1=require('../../../components/ResponsiveDialog');const prismjs_1=__importStar(require('prismjs'));const react_simple_code_editor_1=__importDefault(require('react-simple-code-editor'));require('prism-themes/themes/prism-night-owl.css');const Content=(0,core_1.styled)(core_1.Grid)({padding:'0 25px',background:'#121416',borderRadius:4});const CustomDialog=(0,core_1.styled)(ResponsiveDialog_1.ResponsiveDialog)({'& .MuiPaper-root':{maxWidth:'900px !important',maxHeight:200},'& .MuiDialog-paperWidthSm':{maxWidth:'900px !important',maxHeight:200,height:'fit-content !important'},'& .MuiDialog-paperScrollPaper':{background:'red'}});const CustomEditor=(0,core_1.styled)(react_simple_code_editor_1.default)({'maxHeight':500,'overflow':'scroll !important','& textarea':{outline:'none !important'},'& textarea:focus-visited':{outline:'none !important'}});const CodeVisor=({open,title='View Code',code,handleClose})=>{const grammar=prismjs_1.default.languages.javascript;return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(CustomDialog,{open:open,onClose:handleClose,title:title,template:'md',children:(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsx)(Content,{container:true,direction:'column',style:{gap:32},children:(0,jsx_runtime_1.jsx)(CustomEditor,{disabled:false,onValueChange:()=>true,value:code,highlight:code=>(0,prismjs_1.highlight)(code,grammar,'javascript'),padding:10,style:{fontFamily:'Roboto Mono',fontSize:14,fontWeight:400,outlineWidth:0}})})})})});};exports.CodeVisor=CodeVisor; \ No newline at end of file diff --git a/dist/modules/explorer/pages/ProposalDetails/components/CodeVisor.js.map b/dist/modules/explorer/pages/ProposalDetails/components/CodeVisor.js.map deleted file mode 100644 index 37ddfa0..0000000 --- a/dist/modules/explorer/pages/ProposalDetails/components/CodeVisor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CodeVisor.js","sourceRoot":"","sources":["../../../../../../src/modules/explorer/pages/ProposalDetails/components/CodeVisor.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAuC;AACvC,4CAA4D;AAE5D,mFAA+E;AAC/E,mDAAmD;AACnD,wFAA6C;AAC7C,mDAAgD;AAEhD,MAAM,OAAO,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC3B,OAAO,EAAE,QAAQ;IACjB,UAAU,EAAE,SAAS;IACrB,YAAY,EAAE,CAAC;CAChB,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,mCAAgB,CAAC,CAAC;IAC5C,kBAAkB,EAAE;QAClB,QAAQ,EAAE,kBAAkB;QAC5B,SAAS,EAAE,GAAG;KACf;IACD,2BAA2B,EAAE;QAC3B,QAAQ,EAAE,kBAAkB;QAC5B,SAAS,EAAE,GAAG;QACd,MAAM,EAAE,wBAAwB;KACjC;IACD,+BAA+B,EAAE;QAC/B,UAAU,EAAE,KAAK;KAClB;CACF,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,kCAAM,CAAC,CAAC;IAClC,WAAW,EAAE,GAAG;IAChB,UAAU,EAAE,mBAAmB;IAC/B,YAAY,EAAE;QACZ,OAAO,EAAE,iBAAiB;KAC3B;IACD,0BAA0B,EAAE;QAC1B,OAAO,EAAE,iBAAiB;KAC3B;CACF,CAAC,CAAA;AAQK,MAAM,SAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,GAAG,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;IAC7F,MAAM,OAAO,GAAG,iBAAK,CAAC,SAAS,CAAC,UAAU,CAAA;IAE1C,OAAO,CACL,2DACE,uBAAC,YAAY,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAC,IAAI,YACzE,2DACE,uBAAC,OAAO,IAAC,SAAS,QAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,YACxD,uBAAC,YAAY,IACX,QAAQ,EAAE,KAAK,EACf,aAAa,EAAE,GAAG,EAAE,CAAC,IAAI,EACzB,KAAK,EAAE,IAAI,EACX,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,IAAA,mBAAS,EAAC,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,EACzD,OAAO,EAAE,EAAE,EACX,KAAK,EAAE;4BACL,UAAU,EAAE,aAAa;4BACzB,QAAQ,EAAE,EAAE;4BACZ,UAAU,EAAE,GAAG;4BACf,YAAY,EAAE,CAAC;yBAChB,GACD,GACM,GACT,GACU,GACd,CACJ,CAAA;AACH,CAAC,CAAA;AA1BY,QAAA,SAAS,aA0BrB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.js b/dist/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.js deleted file mode 100644 index 6d63e7f..0000000 --- a/dist/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.QuorumThreshold=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const InfoIcon_1=require('../../../components/styled/InfoIcon');const react_customizable_progressbar_1=__importDefault(require('react-customizable-progressbar'));const FormatNumber_1=require('../../../utils/FormatNumber');const ProgressText=(0,core_1.styled)(core_1.Typography)(({textColor})=>({color:textColor,display:'flex',alignItems:'center',position:'absolute',width:'100%',height:'100%',fontSize:16,userSelect:'none',boxShadow:'none',background:'inherit',fontFamily:'Roboto Mono',justifyContent:'center',top:0}));const QuorumThreshold=({value,tooltipText})=>{return(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle1',color:'textSecondary',children:'QUORUM THRESHOLD %'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:tooltipText,children:(0,jsx_runtime_1.jsx)(InfoIcon_1.InfoIcon,{color:'secondary'})})})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{children:(0,jsx_runtime_1.jsx)(react_customizable_progressbar_1.default,{progress:value.toNumber(),radius:50,strokeWidth:7,strokeColor:'#3866F9',trackStrokeWidth:4,children:(0,jsx_runtime_1.jsx)('div',{className:'indicator',children:(0,jsx_runtime_1.jsx)(ProgressText,{textColor:'#3866F9',children:(0,FormatNumber_1.formatNumber)(value)})})})})]})});};exports.QuorumThreshold=QuorumThreshold; \ No newline at end of file diff --git a/dist/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.js.map b/dist/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.js.map deleted file mode 100644 index 6aad045..0000000 --- a/dist/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QuorumThreshold.js","sourceRoot":"","sources":["../../../../../../src/modules/explorer/pages/ProposalDetails/components/QuorumThreshold.tsx"],"names":[],"mappings":";;;;;;;AACA,4CAAqE;AACrE,0EAAsE;AACtE,oGAAwD;AACxD,sEAAkE;AAQlE,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC,CAAC,EAAE,SAAS,EAAyB,EAAE,EAAE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,CAAC,CAAA;AAlCY,QAAA,eAAe,mBAkC3B"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/ProposalDetails/index.js b/dist/modules/explorer/pages/ProposalDetails/index.js deleted file mode 100644 index eed3f03..0000000 --- a/dist/modules/explorer/pages/ProposalDetails/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalDetails=void 0;const jsx_runtime_1=require('react/jsx-runtime');const lodash_1=__importDefault(require('lodash'));const core_1=require('@material-ui/core');const react_html_parser_1=__importDefault(require('react-html-parser'));const bignumber_js_1=require('bignumber.js');const react_customizable_progressbar_1=__importDefault(require('react-customizable-progressbar'));const StatusBadge_1=require('../../components/StatusBadge');const UserBadge_1=require('../../components/UserBadge');const VotersProgress_1=require('../../components/VotersProgress');const useCanDropProposal_1=require('../../hooks/useCanDropProposal');const react_1=require('react');const react_router_1=require('react-router');const useTopic_1=require('../../../../services/agora/hooks/useTopic');const useDropProposal_1=require('../../../../services/contracts/baseDAO/hooks/useDropProposal');const utils_1=require('../../../../services/contracts/utils');const useDAO_1=require('../../../../services/services/dao/hooks/useDAO');const useProposal_1=require('../../../../services/services/dao/hooks/useProposal');const ContentContainer_1=require('../../components/ContentContainer');const router_1=require('../DAO/router');const useVotesStats_1=require('../../hooks/useVotesStats');const FormatNumber_1=require('../../utils/FormatNumber');const HighlightedBadge_1=require('../../components/styled/HighlightedBadge');const TransferBadge_1=require('../../components/TransferBadge');const types_1=require('../../../../services/services/dao/mappers/proposal/types');const useDAOHoldings_1=require('../../../../services/contracts/baseDAO/hooks/useDAOHoldings');const VoteDialog_1=require('../../components/VoteDialog');const XTZTransferBadge_1=require('../../components/XTZTransferBadge');const InfoIcon_1=require('../../components/styled/InfoIcon');const ProposalTransferBadge_1=require('../../components/ProposalTransferBadge');const useUnstakeVotes_1=require('../../../../services/contracts/baseDAO/hooks/useUnstakeVotes');const CopyButton_1=require('../../../common/CopyButton');const ProposalFormInput_1=require('../../components/ProposalFormInput');const prismjs_1=__importStar(require('prismjs'));const CodeCollapse_1=require('../../components/CodeCollapse');const Container=(0,core_1.styled)(ContentContainer_1.ContentContainer)({padding:'36px 45px'});const HistoryItem=(0,core_1.styled)(core_1.Grid)(({theme})=>({marginTop:20,paddingBottom:12,display:'flex',height:'auto',[theme.breakpoints.down('sm')]:{width:'unset'}}));const QuorumTitle=(0,core_1.styled)(core_1.Typography)(()=>({color:'#3866F9'}));const ViewCodeButton=(0,core_1.styled)(core_1.Button)({height:31,fontSize:16});const ProgressText=(0,core_1.styled)(core_1.Typography)(({textColor})=>({color:textColor,display:'flex',alignItems:'center',position:'absolute',width:'100%',height:'100%',fontSize:16,userSelect:'none',boxShadow:'none',background:'inherit',fontFamily:'Roboto Mono',justifyContent:'center',top:0}));const DetailsText=(0,core_1.styled)(core_1.Typography)({wordBreak:'break-all'});const VoteButton=(0,core_1.styled)(core_1.Button)(({favor})=>({backgroundColor:favor?'#3FE888':'#FF486E'}));const InfoTitle=(0,core_1.styled)(core_1.Typography)({marginTop:37,fontWeight:400,fontSize:18,lineHeigh:'27px'});const InfoItem=(0,core_1.styled)(core_1.Typography)({marginTop:11,fontWeight:400,fontSize:16,lineHeight:'24px'});const InfoCopyIcon=(0,core_1.styled)(CopyButton_1.CopyButton)({'height':15,'& svg':{height:15}});const getReadableConfig=configKey=>{switch(configKey){case'frozen_extra_value':return'Proposal fee';case'slash_scale_value':return'Percentage of tokens returned after rejection';default:return'Unknown Config parameter';}};const ProposalDetails=()=>{var _a;const {proposalId}=(0,react_router_1.useParams)();const daoId=(0,router_1.useDAOID)();const [openVote,setOpenVote]=(0,react_1.useState)(false);const [voteIsSupport,setVoteIsSupport]=(0,react_1.useState)(false);const theme=(0,core_1.useTheme)();const {data:proposal}=(0,useProposal_1.useProposal)(daoId,proposalId);const {data:dao,cycleInfo}=(0,useDAO_1.useDAO)(daoId);const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const {mutate:dropProposal}=(0,useDropProposal_1.useDropProposal)();const {data:holdings}=(0,useDAOHoldings_1.useDAOHoldings)(daoId);const canDropProposal=(0,useCanDropProposal_1.useCanDropProposal)(daoId,proposalId);const {data:agoraPost}=(0,useTopic_1.useAgoraTopic)(Number((_a=proposal===null||proposal===void 0?void 0:proposal.metadata)===null||_a===void 0?void 0:_a.agoraPostId));const quorumThreshold=(proposal===null||proposal===void 0?void 0:proposal.quorumThreshold)||new bignumber_js_1.BigNumber(0);const {mutate:mutateUnstake}=(0,useUnstakeVotes_1.useUnstakeVotes)();const onClickVote=support=>{setVoteIsSupport(support);setOpenVote(true);};const onCloseVote=()=>{setOpenVote(false);};const onDropProposal=(0,react_1.useCallback)(()=>__awaiter(void 0,void 0,void 0,function*(){yield dropProposal({dao:dao,proposalId});}),[dao,dropProposal,proposalId]);const onUnstakeVotes=(0,react_1.useCallback)(()=>__awaiter(void 0,void 0,void 0,function*(){yield mutateUnstake({dao:dao,proposalId});}),[dao,mutateUnstake,proposalId]);const proposalCycle=proposal?proposal.period:'-';const {votesQuorumPercentage}=(0,useVotesStats_1.useVotesStats)({upVotes:(proposal===null||proposal===void 0?void 0:proposal.upVotes)||new bignumber_js_1.BigNumber(0),downVotes:(proposal===null||proposal===void 0?void 0:proposal.downVotes)||new bignumber_js_1.BigNumber(0),quorumThreshold});const list=(0,react_1.useMemo)(()=>{if(!proposal||!(proposal instanceof types_1.LambdaProposal)){return[];}return proposal.metadata.list;},[proposal]);const transfers=(0,react_1.useMemo)(()=>{if(!holdings||!proposal){return[];}return proposal.metadata.transfers;},[holdings,proposal]);const canVote=cycleInfo&&(proposal===null||proposal===void 0?void 0:proposal.getStatus(cycleInfo.currentLevel).status)===types_1.ProposalStatus.ACTIVE;const parseReadableConfigValue=(configKey,value)=>{if(dao&&value){switch(configKey){case'frozen_extra_value':return(0,utils_1.parseUnits)(value,dao.data.token.decimals).toString();case'slash_scale_value':return 100-value.toNumber();default:return value.toString();}}};return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:42},children:[(0,jsx_runtime_1.jsx)(Container,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:18},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,style:{gap:21},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h3',color:'textPrimary',align:isMobileSmall?'center':'left',children:agoraPost?agoraPost.title:`Proposal ${(0,utils_1.toShortAddress)((proposal===null||proposal===void 0?void 0:proposal.id)||'')}`})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{children:[(0,jsx_runtime_1.jsx)(core_1.Button,{variant:'contained',color:'secondary',disabled:!canDropProposal,onClick:onDropProposal,children:'Drop Proposal'}),(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Guardian and proposer may drop proposal at anytime. Anyone may drop proposal if proposal expired',children:(0,jsx_runtime_1.jsx)(InfoIcon_1.InfoIcon,{color:'secondary'})})]})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:'space-between',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:proposal&&cycleInfo&&(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:20},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StatusBadge_1.StatusBadge,{status:proposal.getStatus(cycleInfo.currentLevel).status})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'subtitle2',children:'CREATED BY'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(UserBadge_1.UserBadge,{address:proposal.proposer,short:true})})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:28},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(VoteButton,{variant:'contained',favor:true,onClick:()=>onClickVote(true),disabled:!canVote,children:'Vote For'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(VoteButton,{variant:'contained',favor:false,onClick:()=>onClickVote(false),disabled:!canVote,children:'Vote Against'})})]})})]})})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:45},children:[(0,jsx_runtime_1.jsx)(Container,{item:true,xs:12,md:7,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:18},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:18},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'secondary',children:'Votes'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',children:['Cycle: ',proposalCycle]})})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(VotersProgress_1.VotersProgress,{showButton:true,daoId:daoId,proposalId:proposalId})})]})}),(0,jsx_runtime_1.jsx)(Container,{item:true,xs:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',style:{height:'100%'},alignItems:'center',wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(react_customizable_progressbar_1.default,{progress:proposal?votesQuorumPercentage.toNumber():0,radius:50,strokeWidth:7,strokeColor:'#3866F9',trackStrokeWidth:4,trackStrokeColor:theme.palette.primary.light,children:(0,jsx_runtime_1.jsx)('div',{className:'indicator',children:(0,jsx_runtime_1.jsx)(ProgressText,{textColor:'#3866F9',children:proposal?`${(0,FormatNumber_1.formatNumber)(votesQuorumPercentage)}%`:'-'})})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',alignItems:'flex-start',justifyContent:'center',wrap:'nowrap',style:{height:'100%'},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[proposal&&(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:`Amount of ${dao===null||dao===void 0?void 0:dao.data.token.symbol} required to be locked through voting for a proposal to be passed/rejected. ${proposal.upVotes.gte(proposal.downVotes)?proposal.upVotes.toString():proposal.downVotes.toString()}/${quorumThreshold} votes.`,children:(0,jsx_runtime_1.jsx)(InfoIcon_1.InfoIcon,{color:'secondary'})}),(0,jsx_runtime_1.jsx)(QuorumTitle,{color:'textPrimary',children:'Quorum Threshold:'})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',children:proposal?quorumThreshold.toString():'-'})})]})})]})})]})}),(0,jsx_runtime_1.jsx)(Container,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:40},children:[agoraPost&&(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'body1',align:isMobileSmall?'center':'left',children:(0,react_html_parser_1.default)(agoraPost.post_stream.posts[0].cooked)})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,style:{gap:25},children:proposal?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[proposal.metadata.lambdaType==='execute_handler'&&(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,alignItems:'center',direction:isMobileSmall?'column':'row',children:(0,jsx_runtime_1.jsx)(HighlightedBadge_1.HighlightedBadge,{justifyContent:'center',alignItems:'center',direction:'row',container:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(DetailsText,{variant:'body1',color:'textPrimary',children:['Execute Lambda',' ',(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',color:'secondary',display:'inline',children:lodash_1.default.startCase(proposal.metadata.lambdaHandler.handler_name)}),' ']})})})}),transfers===null||transfers===void 0?void 0:transfers.map((transfer,index)=>{return(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,alignItems:'center',direction:isMobileSmall?'column':'row',children:transfer.type==='XTZ'?(0,jsx_runtime_1.jsx)(XTZTransferBadge_1.XTZTransferBadge,{amount:transfer.amount,address:transfer.beneficiary}):(0,jsx_runtime_1.jsx)(TransferBadge_1.TransferBadge,{amount:transfer.amount,address:transfer.beneficiary,contract:transfer.contractAddress,tokenId:transfer.tokenId})},index);}),proposal.metadata.config.map(({key,value},index)=>{var _a;return(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,alignItems:'center',direction:isMobileSmall?'column':'row',children:(0,jsx_runtime_1.jsx)(HighlightedBadge_1.HighlightedBadge,{justifyContent:'center',alignItems:'center',direction:'row',container:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(DetailsText,{variant:'body1',color:'textPrimary',children:['Change',' ',(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',color:'secondary',display:'inline',children:getReadableConfig(key)}),' ','to',' ',(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',color:'secondary',display:'inline',children:(_a=parseReadableConfigValue(key,value))!==null&&_a!==void 0?_a:0})]})})})},index);}),proposal.metadata.update_contract_delegate!==''&&(0,jsx_runtime_1.jsx)(ProposalTransferBadge_1.ProposalTransferBadge,{address:proposal.metadata.update_contract_delegate,label:'New Delegate'}),proposal.metadata.update_guardian!==''&&(0,jsx_runtime_1.jsx)(ProposalTransferBadge_1.ProposalTransferBadge,{address:proposal.metadata.update_guardian,label:'Update Guardian'}),list.map(({key,value},index)=>(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,alignItems:'center',direction:isMobileSmall?'column':'row',children:(0,jsx_runtime_1.jsx)(HighlightedBadge_1.HighlightedBadge,{justifyContent:'center',alignItems:'center',direction:'row',container:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(DetailsText,{variant:'body1',color:'textPrimary',children:['Set "',key,'" to "',value,'"']})})})},index)),(0,jsx_runtime_1.jsx)(CodeCollapse_1.CodeCollapse,{code:JSON.stringify(proposal.metadata.lambdaHandler,null,2)}),proposal.metadata.lambdaType==='add_handler'&&(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,alignItems:'center',direction:isMobileSmall?'column':'row',children:(0,jsx_runtime_1.jsx)(HighlightedBadge_1.HighlightedBadge,{justifyContent:'center',alignItems:'center',direction:'row',container:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(DetailsText,{variant:'body1',color:'textPrimary',children:['Add Lambda',' ',(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',color:'secondary',display:'inline',children:proposal.metadata.lambdaHandler.name}),' ']})})})}),(0,jsx_runtime_1.jsx)(ProposalFormInput_1.ProposalCodeEditorInput,{label:'Lambda Code',containerstyle:{marginTop:'8px'},insertSpaces:true,ignoreTabKey:false,tabSize:4,padding:10,style:{minHeight:500,fontFamily:'Roboto Mono',fontSize:14,fontWeight:400,outlineWidth:0},value:JSON.stringify(proposal.metadata.lambdaHandler,null,2),onValueChange:code=>true,highlight:code=>(0,prismjs_1.highlight)(code,prismjs_1.default.languages.javascript,'javascript'),title:lodash_1.default.startCase(proposal.metadata.lambdaType)})]}),proposal.metadata.lambdaType==='remove_handler'&&(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,alignItems:'center',direction:isMobileSmall?'column':'row',children:(0,jsx_runtime_1.jsx)(HighlightedBadge_1.HighlightedBadge,{justifyContent:'center',alignItems:'center',direction:'row',container:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(DetailsText,{variant:'body1',color:'textPrimary',children:['Remove Lambda',' ',(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',color:'secondary',display:'inline',children:lodash_1.default.startCase(proposal.metadata.lambdaHandler)}),' ']})})})})]}):null})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,children:(0,jsx_runtime_1.jsx)(Container,{item:true,md:12,xs:12,children:cycleInfo&&(proposal===null||proposal===void 0?void 0:proposal.getStatus(cycleInfo.currentLevel).statusHistory.map((item,index)=>{return(0,jsx_runtime_1.jsxs)(HistoryItem,{container:true,direction:'row',alignItems:'baseline',wrap:'nowrap',xs:12,style:{gap:32},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StatusBadge_1.StatusBadge,{item:true,status:item.status})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'subtitle2',children:item.timestamp})})]},index);}))})})})]}),(0,jsx_runtime_1.jsx)(VoteDialog_1.VoteDialog,{open:openVote,support:voteIsSupport,onClose:onCloseVote})]});};exports.ProposalDetails=ProposalDetails; \ No newline at end of file diff --git a/dist/modules/explorer/pages/ProposalDetails/index.js.map b/dist/modules/explorer/pages/ProposalDetails/index.js.map deleted file mode 100644 index 82a5848..0000000 --- a/dist/modules/explorer/pages/ProposalDetails/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/pages/ProposalDetails/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsB;AACtB,4CAAuH;AACvH,0EAA+C;AAC/C,+CAAwC;AACxC,oGAAwD;AACxD,yEAAqE;AACrE,qEAAiE;AACjE,+EAA2E;AAC3E,kFAA8E;AAC9E,iCAA6D;AAC7D,+CAAwC;AACxC,4DAA6D;AAE7D,sFAAkF;AAClF,oDAAqE;AACrE,+DAA2D;AAC3D,yEAAqE;AACrE,wEAAoE;AACpE,0CAAwC;AACxC,wEAAoE;AACpE,sEAAkE;AAClE,0FAAsF;AACtF,6EAAyE;AACzE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D,EAAC,GAAG,IACL,GACT,GACU,GACd,CACR,IACA,CACJ,CAAC,CAAC,CAAC,IAAI,GACH,IACF,GACG,EACZ,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,WAAI,IAAC,SAAS,kBACb,uBAAC,SAAS,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,YAC3B,SAAS;qCACR,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,SAAS,CAAC,SAAS,CAAC,YAAY,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;wCAC5E,OAAO,CACL,wBAAC,WAAW,IACV,SAAS,QACT,SAAS,EAAC,KAAK,EAEf,UAAU,EAAC,UAAU,EACrB,IAAI,EAAC,QAAQ,EACb,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,aAElB,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,yBAAW,IAAC,IAAI,QAAC,MAAM,EAAE,IAAI,CAAC,MAAM,GAAI,GACpC,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,iBAAU,IAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAC,WAAW,YAChD,IAAI,CAAC,SAAS,GACJ,GACR,KAbF,KAAK,CAcE,CACf,CAAA;oCACH,CAAC,CAAC,CAAA,GAgBM,GACP,GACF,IACF,EACP,uBAAC,uBAAU,IAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,GAAI,IAC3E,CACJ,CAAA;AACH,CAAC,CAAA;AAvaY,QAAA,eAAe,mBAua3B"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/Proposals/index.js b/dist/modules/explorer/pages/Proposals/index.js deleted file mode 100644 index dabbded..0000000 --- a/dist/modules/explorer/pages/Proposals/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.Proposals=exports.DropButton=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const useDAO_1=require('../../../../services/services/dao/hooks/useDAO');const useProposals_1=require('../../../../services/services/dao/hooks/useProposals');const router_1=require('../DAO/router');const types_1=require('../../../../services/services/dao/mappers/proposal/types');const ContentContainer_1=require('../../components/ContentContainer');const AllProposalsList_1=require('../../components/AllProposalsList');const SmallButton_1=require('../../../common/SmallButton');const ProposalActionsDialog_1=require('../../components/ProposalActionsDialog');const useFlush_1=require('../../../../services/contracts/baseDAO/hooks/useFlush');const useDropAllExpired_1=require('../../../../services/contracts/baseDAO/hooks/useDropAllExpired');const InfoIcon_1=require('../../components/styled/InfoIcon');const react_customizable_progressbar_1=__importDefault(require('react-customizable-progressbar'));const useTimeLeftInCycle_1=require('../../hooks/useTimeLeftInCycle');const list_icon_svg_1=require('../../../../assets/img/list-icon.svg');const tezos_icon_svg_1=require('../../../../assets/img/tezos-icon.svg');const cycle_icon_svg_1=require('../../../../assets/img/cycle-icon.svg');const chart_icon_svg_1=require('../../../../assets/img/chart-icon.svg');const useCycleInfo_1=require('../../../../services/contracts/baseDAO/hooks/useCycleInfo');const ProposalList_1=require('../../../lite/explorer/components/ProposalList');const usePolls_1=require('../../../lite/explorer/hooks/usePolls');const dayjs_1=__importDefault(require('dayjs'));const ProposalInfoTitle=(0,core_1.styled)(core_1.Typography)({fontSize:'18px',fontWeight:300,['@media (max-width:1155px)']:{whiteSpace:'nowrap'},['@media (max-width:1030px)']:{fontSize:'16.3px',whiteSpace:'initial'},['@media (max-width:830.99px)']:{fontSize:'18px'},['@media (max-width:409.99px)']:{fontSize:'16px'}});const CycleTime=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontWeight:300,fontSize:'18px',['@media (max-width:1030px)']:{fontSize:'16px'},['@media (max-width:830.99px)']:{fontSize:'20px'},['@media (max-width:434px)']:{fontSize:'18px'},['@media (max-width:409.99px)']:{fontSize:'15px'}}));const LargeNumber=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontSize:'36px',fontWeight:300,color:theme.palette.text.primary,marginTop:'7px',['@media (max-width:1030px)']:{fontSize:'30px'}}));const ProgressContainer=(0,core_1.styled)(core_1.Box)({marginLeft:'-18px',marginBottom:'-5px',width:80});const HeroContainer=(0,core_1.styled)(ContentContainer_1.ContentContainer)(({theme})=>({padding:'38px 48px 38px 48px',display:'inline-flex',alignItems:'center',[theme.breakpoints.down('xs')]:{maxHeight:'fit-content'}}));const IconContainer=(0,core_1.styled)(core_1.SvgIcon)({width:'auto',height:45,marginLeft:48});const TitleText=(0,core_1.styled)(core_1.Typography)({fontSize:30,fontWeight:500,lineHeight:0.9,['@media (max-width:1030px)']:{fontSize:25}});exports.DropButton=(0,core_1.styled)(core_1.Button)({verticalAlign:'text-bottom',fontSize:'16px'});const SubtitleText=(0,core_1.styled)(core_1.Grid)({marginTop:40,marginBottom:-12});const ItemBox=(0,core_1.styled)(core_1.Grid)(({theme})=>({gap:24,alignItems:'center',marginBottom:16,[theme.breakpoints.down('sm')]:{justifyContent:'center',height:150,textAlign:'center'}}));const styles=(0,core_1.makeStyles)(theme=>({circleWidth:{'& .RCP':{width:'50px !important'},'& svg':{width:'60px !important',[theme.breakpoints.down('sm')]:{marginTop:-26}}},progressText:{[theme.breakpoints.down('sm')]:{marginTop:-40}}}));const Proposals=()=>{var _a,_b;const daoId=(0,router_1.useDAOID)();const {data,cycleInfo}=(0,useDAO_1.useDAO)(daoId);const blocksLeft=cycleInfo&&cycleInfo.blocksLeft;const {data:proposals}=(0,useProposals_1.useProposals)(daoId);const {data:activeProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.ACTIVE);const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));const [openDialog,setOpenDialog]=(0,react_1.useState)(false);const {mutate}=(0,useFlush_1.useFlush)();const {mutate:dropAllExpired}=(0,useDropAllExpired_1.useDropAllExpired)();const {data:executableProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.EXECUTABLE);const {data:expiredProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.EXPIRED);const {hours,minutes,days}=(0,useTimeLeftInCycle_1.useTimeLeftInCycle)();const style=styles();const shouldDisable=(0,useCycleInfo_1.useIsProposalButtonDisabled)(daoId);const handleCloseModal=()=>{setOpenDialog(false);};(0,react_1.useEffect)(()=>{console.log('se actualizó');},[openDialog]);const onFlush=(0,react_1.useCallback)(()=>__awaiter(void 0,void 0,void 0,function*(){if(executableProposals&&expiredProposals&&executableProposals.length&&data){mutate({dao:data,numOfProposalsToFlush:executableProposals.length,expiredProposalIds:expiredProposals.map(p=>p.id)});return;}}),[data,mutate,executableProposals,expiredProposals]);const onDropAllExpired=(0,react_1.useCallback)(()=>__awaiter(void 0,void 0,void 0,function*(){if(expiredProposals&&expiredProposals.length&&data){dropAllExpired({dao:data,expiredProposalIds:expiredProposals.map(p=>p.id)});return;}}),[data,dropAllExpired,expiredProposals]);const polls=(0,usePolls_1.usePolls)((_a=data===null||data===void 0?void 0:data.liteDAOData)===null||_a===void 0?void 0:_a._id);const id=(_b=data===null||data===void 0?void 0:data.liteDAOData)===null||_b===void 0?void 0:_b._id;const activeLiteProposals=polls===null||polls===void 0?void 0:polls.filter(p=>Number(p.endTime)>(0,dayjs_1.default)().valueOf());return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:42},children:[(0,jsx_runtime_1.jsx)(HeroContainer,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:'space-between',alignItems:'center',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:20},alignItems:isMobileSmall?'baseline':'center',direction:isMobileSmall?'column':'row',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:isMobileSmall?undefined:5,children:(0,jsx_runtime_1.jsx)(TitleText,{color:'textPrimary',children:'Proposals'})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,justifyContent:'flex-end',style:{gap:15},direction:isMobileSmall?'column':'row',xs:isMobileSmall?undefined:true,children:[(0,jsx_runtime_1.jsx)(SmallButton_1.SmallButton,{variant:'contained',disabled:shouldDisable,color:'secondary',onClick:()=>setOpenDialog(true),children:'New Proposal'}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{children:[(0,jsx_runtime_1.jsx)(SmallButton_1.SmallButton,{variant:'contained',color:'secondary',onClick:onFlush,disabled:!executableProposals||!executableProposals.length,children:'Execute'}),(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Execute all passed proposals and drop all expired or rejected',children:(0,jsx_runtime_1.jsx)(InfoIcon_1.InfoIcon,{style:{height:16},color:'secondary'})})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{children:[(0,jsx_runtime_1.jsx)(exports.DropButton,{variant:'contained',color:'secondary',onClick:onDropAllExpired,disabled:!expiredProposals||!expiredProposals.length,children:'Drop Expired'}),(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Drop all expired proposals',children:(0,jsx_runtime_1.jsx)(InfoIcon_1.InfoIcon,{style:{height:16},color:'secondary'})})]})]})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',style:{marginTop:40},spacing:isMobileSmall?2:1,children:[(0,jsx_runtime_1.jsxs)(ItemBox,{item:true,container:true,xs:isMobileSmall?6:4,children:[(0,jsx_runtime_1.jsx)(list_icon_svg_1.ReactComponent,{}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(ProposalInfoTitle,{color:'textPrimary',children:'Cycle Status'}),(0,jsx_runtime_1.jsxs)(CycleTime,{color:'secondary',children:[shouldDisable?'Voting':'Creating',' ']})]})]}),(0,jsx_runtime_1.jsxs)(ItemBox,{item:true,container:true,xs:isMobileSmall?6:4,children:[(0,jsx_runtime_1.jsx)(cycle_icon_svg_1.ReactComponent,{}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(ProposalInfoTitle,{color:'textPrimary',children:'Current Cycle'}),(0,jsx_runtime_1.jsx)(CycleTime,{color:'secondary',children:cycleInfo===null||cycleInfo===void 0?void 0:cycleInfo.currentCycle})]})]}),(0,jsx_runtime_1.jsxs)(ItemBox,{item:true,container:true,xs:isMobileSmall?6:4,className:style.circleWidth,children:[(0,jsx_runtime_1.jsx)(react_customizable_progressbar_1.default,{progress:data?(blocksLeft||0)/Number(data.data.period)*100:100,radius:25,strokeWidth:3,strokeColor:theme.palette.secondary.main,trackStrokeWidth:5,trackStrokeColor:'rgba(125,140,139, 0.2)'}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,className:style.progressText,children:[(0,jsx_runtime_1.jsx)(ProposalInfoTitle,{color:'textPrimary',children:'Time Left in Cycle'}),(0,jsx_runtime_1.jsxs)(CycleTime,{color:'secondary',children:[' ',days,'d ',hours,'h ',minutes,'m',' ']})]})]}),(0,jsx_runtime_1.jsxs)(ItemBox,{item:true,container:true,xs:isMobileSmall?6:4,children:[(0,jsx_runtime_1.jsx)(tezos_icon_svg_1.ReactComponent,{}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(ProposalInfoTitle,{color:'textPrimary',children:'Voting Addresses'}),(0,jsx_runtime_1.jsx)(CycleTime,{color:'secondary',children:(data===null||data===void 0?void 0:data.data.ledger.length)||'-'})]})]}),(0,jsx_runtime_1.jsxs)(ItemBox,{item:true,container:true,xs:isMobileSmall?6:4,children:[(0,jsx_runtime_1.jsx)(chart_icon_svg_1.ReactComponent,{}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(ProposalInfoTitle,{color:'textPrimary',children:'Active Proposals'}),(0,jsx_runtime_1.jsxs)(CycleTime,{color:'secondary',children:[' ',Number(activeLiteProposals===null||activeLiteProposals===void 0?void 0:activeLiteProposals.length)+Number(activeProposals===null||activeProposals===void 0?void 0:activeProposals.length)]})]})]})]})]})})}),data&&cycleInfo&&proposals&&(0,jsx_runtime_1.jsx)(AllProposalsList_1.AllProposalsList,{title:'On-Chain',currentLevel:cycleInfo.currentLevel,proposals:proposals}),(0,jsx_runtime_1.jsx)(ProposalActionsDialog_1.ProposalActionsDialog,{open:openDialog,handleClose:handleCloseModal}),polls.length>0?(0,jsx_runtime_1.jsx)(ProposalList_1.ProposalList,{polls:polls,id:id}):null,(proposals===null||proposals===void 0?void 0:proposals.length)===0&&(polls===null||polls===void 0?void 0:polls.length)===0?(0,jsx_runtime_1.jsx)(core_1.Typography,{style:{width:'inherit'},color:'textPrimary',children:'0 proposals found'}):null]})});};exports.Proposals=Proposals; \ No newline at end of file diff --git a/dist/modules/explorer/pages/Proposals/index.js.map b/dist/modules/explorer/pages/Proposals/index.js.map deleted file mode 100644 index 3d32658..0000000 --- a/dist/modules/explorer/pages/Proposals/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/pages/Proposals/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iCAA+D;AAC/D,4CAY0B;AAE1B,+DAA2D;A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IAAI,IACH,GACN,CACJ,CAAA;AACH,CAAC,CAAA;AA9LY,QAAA,SAAS,aA8LrB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/Registry/components/OverflowCell.js b/dist/modules/explorer/pages/Registry/components/OverflowCell.js deleted file mode 100644 index 4c7c5eb..0000000 --- a/dist/modules/explorer/pages/Registry/components/OverflowCell.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.OverflowCell=void 0;const core_1=require('@material-ui/core');const styled_1=__importDefault(require('@material-ui/core/styles/styled'));exports.OverflowCell=(0,styled_1.default)(core_1.TableCell)({whiteSpace:'nowrap',overflow:'hidden',textOverflow:'ellipsis',maxWidth:300}); \ No newline at end of file diff --git a/dist/modules/explorer/pages/Registry/components/OverflowCell.js.map b/dist/modules/explorer/pages/Registry/components/OverflowCell.js.map deleted file mode 100644 index d84cf56..0000000 --- a/dist/modules/explorer/pages/Registry/components/OverflowCell.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OverflowCell.js","sourceRoot":"","sources":["../../../../../../src/modules/explorer/pages/Registry/components/OverflowCell.tsx"],"names":[],"mappings":";;;;;;AAAA,4CAA6C;AAC7C,6EAAoD;AAEvC,QAAA,YAAY,GAAG,IAAA,gBAAM,EAAC,gBAAS,CAAC,CAAC;IAC5C,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,QAAQ;IAClB,YAAY,EAAE,UAAU;IACxB,QAAQ,EAAE,GAAG;CACd,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/Registry/components/RegistryTable.js b/dist/modules/explorer/pages/Registry/components/RegistryTable.js deleted file mode 100644 index 50272ff..0000000 --- a/dist/modules/explorer/pages/Registry/components/RegistryTable.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.RegistryTable=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const dayjs_1=__importDefault(require('dayjs'));const ItemDialog_1=require('../../../components/ItemDialog');const OverflowCell_1=require('./OverflowCell');const ContentContainer_1=require('../../../components/ContentContainer');const localizedFormat=require('dayjs/plugin/localizedFormat');dayjs_1.default.extend(localizedFormat);const titles=['Registry Items','Value','Last Updated'];const MobileTableHeader=(0,core_1.styled)(core_1.Grid)({width:'100%',padding:20,borderBottom:'0.3px solid #3D3D3D'});const MobileTableRow=(0,core_1.styled)(core_1.Grid)({padding:'30px',borderBottom:'0.3px solid #3D3D3D'});const OverflowItem=(0,core_1.styled)(core_1.Grid)({whiteSpace:'nowrap',overflow:'hidden',textOverflow:'ellipsis',maxWidth:300});const TableContainer=(0,core_1.styled)(ContentContainer_1.ContentContainer)({width:'100%'});const titleDataMatcher=(title,rowData)=>{switch(title){case'Registry Items':return rowData.key;case'Value':return rowData.value;case'Last Updated':return rowData.lastUpdated||'-';}};const MobileRegistryTable=({data})=>{return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(MobileTableHeader,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{align:'center',variant:'h4',color:'textPrimary',children:'Registry'})}),data.map((rowData,i)=>(0,jsx_runtime_1.jsxs)(MobileTableRow,{item:true,container:true,direction:'column',alignItems:'center',onClick:()=>rowData.onClickItem(rowData.row),style:{gap:19},children:[titles.map((title,j)=>(0,jsx_runtime_1.jsxs)(OverflowItem,{item:true,children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'secondary',align:'center',children:title==='Registry Items'?'Proposal Key':title}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'textPrimary',align:'center',children:titleDataMatcher(title,rowData.row)})]},`registryMobileItem-${j}`)),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Button,{variant:'contained',color:'secondary',onClick:e=>{e.stopPropagation();rowData.row.onClick();},children:'Edit'})})]},`registryMobile-${i}`))]});};const DesktopRegistryTable=({data})=>{return(0,jsx_runtime_1.jsxs)(core_1.Table,{children:[(0,jsx_runtime_1.jsx)(core_1.TableHead,{children:(0,jsx_runtime_1.jsx)(core_1.TableRow,{children:titles.map((title,i)=>(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:title},`registrytitle-${i}`))})}),(0,jsx_runtime_1.jsx)(core_1.TableBody,{children:data.map((rowData,i)=>(0,jsx_runtime_1.jsxs)(core_1.TableRow,{onClick:()=>rowData.onClickItem(rowData.row),children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:rowData.row.key.toUpperCase()}),(0,jsx_runtime_1.jsx)(OverflowCell_1.OverflowCell,{children:rowData.row.value}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:rowData.row.lastUpdated?(0,dayjs_1.default)(rowData.row.lastUpdated).format('L'):'-'}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{align:'right',children:(0,jsx_runtime_1.jsx)(core_1.Button,{variant:'contained',color:'secondary',onClick:e=>{e.stopPropagation();rowData.row.onClick();},children:'Edit'})})]},`registryrow-${i}`))})]});};const RegistryTable=({data:propsData})=>{const theme=(0,core_1.useTheme)();const isSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const [selectedItem,setSelectedItem]=(0,react_1.useState)();const [open,setOpen]=(0,react_1.useState)(false);const onClickItem=row=>{setSelectedItem(row);setOpen(true);};const data=(0,react_1.useMemo)(()=>{if(!propsData){return[];}return propsData.map(rowData=>({row:rowData,onClickItem:onClickItem}));},[propsData]);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(TableContainer,{item:true,children:isSmall?(0,jsx_runtime_1.jsx)(MobileRegistryTable,{data:data}):(0,jsx_runtime_1.jsx)(DesktopRegistryTable,{data:data})}),(0,jsx_runtime_1.jsx)(ItemDialog_1.RegistryItemDialog,{item:selectedItem||{key:'',value:''},open:open,handleClose:()=>setOpen(false)})]});};exports.RegistryTable=RegistryTable; \ No newline at end of file diff --git a/dist/modules/explorer/pages/Registry/components/RegistryTable.js.map b/dist/modules/explorer/pages/Registry/components/RegistryTable.js.map deleted file mode 100644 index 090eed9..0000000 --- a/dist/modules/explorer/pages/Registry/components/RegistryTable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RegistryTable.js","sourceRoot":"","sources":["../../../../../../src/modules/explorer/pages/Registry/components/RegistryTable.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAgD;AAChD,4CAY0B;AAC1B,kDAAyB;AACzB,uEAA2E;AAC3E,iDAA6C;AAC7C,mFAA+E;AAE/E,MAAM,eAAe,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAA;AAC/D,eAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAA;AAE7B,MAAM,MAAM,GAAG,CAAC,gBAAgB,EAAE,OAAO,EAAE,cAAc,CAAC,CAAA;AAa1D,MAAM,iBAAiB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,EAAE;IACX,YAAY,EAAE,qBAAqB;CACpC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAClC,OAAO,EAAE,MAAM;IACf,YAAY,EAAE,qBAAqB;CACpC,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAChC,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,QAAQ;IAClB,YAAY,EAAE,UAAU;IACxB,QAAQ,EAAE,GAAG;CACd,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,mCAAgB,CAAC,CAAC;IAC9C,KAA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C,CAAC,CAAA;IAEf,OAAO,CACL,6DACE,uBAAC,cAAc,IAAC,IAAI,kBACjB,OAAO,CAAC,CAAC,CAAC,uBAAC,mBAAmB,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,uBAAC,oBAAoB,IAAC,IAAI,EAAE,IAAI,GAAI,GACtE,EAEjB,uBAAC,+BAAkB,IACjB,IAAI,EAAE,YAAY,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAC5C,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GACjC,IACD,CACJ,CAAA;AACH,CAAC,CAAA;AAlCY,QAAA,aAAa,iBAkCzB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/Registry/components/UpdatesTable.js b/dist/modules/explorer/pages/Registry/components/UpdatesTable.js deleted file mode 100644 index e6693ea..0000000 --- a/dist/modules/explorer/pages/Registry/components/UpdatesTable.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.UpdatesTable=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const dayjs_1=__importDefault(require('dayjs'));const OverflowCell_1=require('./OverflowCell');const useTopic_1=require('../../../../../services/agora/hooks/useTopic');const utils_1=require('../../../../../services/contracts/utils');const ContentContainer_1=require('../../../components/ContentContainer');const localizedFormat=require('dayjs/plugin/localizedFormat');dayjs_1.default.extend(localizedFormat);const titles=['Update History','Proposal Title','Last Updated','Proposal'];const MobileTableHeader=(0,core_1.styled)(core_1.Grid)({width:'100%',padding:20,borderBottom:'0.3px solid #3D3D3D'});const MobileTableRow=(0,core_1.styled)(core_1.Grid)({padding:'30px',borderBottom:'0.3px solid #3D3D3D'});const ProposalTitle=({agoraPostId,proposalId})=>{const {data:agoraPost}=(0,useTopic_1.useAgoraTopic)(agoraPostId);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:agoraPost?agoraPost.title:`Proposal ${(0,utils_1.toShortAddress)(proposalId)}`});};const TableContainer=(0,core_1.styled)(ContentContainer_1.ContentContainer)({width:'100%'});const MobileUpdatesTable=({data})=>{return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(MobileTableHeader,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{align:'center',variant:'h4',color:'textPrimary',children:'Update History'})}),data.map((row,i)=>(0,jsx_runtime_1.jsxs)(MobileTableRow,{item:true,container:true,direction:'column',alignItems:'center',style:{gap:19},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'secondary',align:'center',children:'Proposal Key'}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'textPrimary',align:'center',children:row.key})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'secondary',align:'center',children:'Proposal Title'}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'textPrimary',align:'center',children:(0,jsx_runtime_1.jsx)(ProposalTitle,{proposalId:row.proposalId,agoraPostId:row.agoraPostId})})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'secondary',align:'center',children:'Last Updated'}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'textPrimary',align:'center',children:row.lastUpdated})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'secondary',align:'center',children:'Proposal'}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'textPrimary',align:'center',children:row.agoraPostId})]})]},`usersMobile-${i}`))]});};const DesktopUpdatesTable=({data})=>{return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(core_1.Table,{children:[(0,jsx_runtime_1.jsx)(core_1.TableHead,{children:(0,jsx_runtime_1.jsx)(core_1.TableRow,{children:titles.map((title,i)=>(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:title},`updatestitle-${i}`))})}),(0,jsx_runtime_1.jsx)(core_1.TableBody,{children:data.map((row,i)=>(0,jsx_runtime_1.jsxs)(core_1.TableRow,{children:[(0,jsx_runtime_1.jsx)(OverflowCell_1.OverflowCell,{children:row.key.toUpperCase()}),(0,jsx_runtime_1.jsx)(OverflowCell_1.OverflowCell,{children:(0,jsx_runtime_1.jsx)(ProposalTitle,{proposalId:row.proposalId,agoraPostId:row.agoraPostId})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:(0,dayjs_1.default)(row.lastUpdated).format('L')}),(0,jsx_runtime_1.jsx)(OverflowCell_1.OverflowCell,{children:row.proposalId})]},`updatesrow-${i}`))})]})});};const UpdatesTable=({data})=>{const theme=(0,core_1.useTheme)();const isSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));return(0,jsx_runtime_1.jsx)(TableContainer,{item:true,children:isSmall?(0,jsx_runtime_1.jsx)(MobileUpdatesTable,{data:data}):(0,jsx_runtime_1.jsx)(DesktopUpdatesTable,{data:data})});};exports.UpdatesTable=UpdatesTable; \ No newline at end of file diff --git a/dist/modules/explorer/pages/Registry/components/UpdatesTable.js.map b/dist/modules/explorer/pages/Registry/components/UpdatesTable.js.map deleted file mode 100644 index 5891bc0..0000000 --- a/dist/modules/explorer/pages/Registry/components/UpdatesTable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UpdatesTable.js","sourceRoot":"","sources":["../../../../../../src/modules/explorer/pages/Registry/components/UpdatesTable.tsx"],"names":[],"mappings":";;;;;;;AACA,4CAW0B;AAC1B,k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AAC,IAAI,CAAC,CAAC,CAAA;IAE3D,OAAO,CACL,uBAAC,cAAc,IAAC,IAAI,kBACjB,OAAO,CAAC,CAAC,CAAC,uBAAC,kBAAkB,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,uBAAC,mBAAmB,IAAC,IAAI,EAAE,IAAI,GAAI,GACpE,CAClB,CAAA;AACH,CAAC,CAAA;AATY,QAAA,YAAY,gBASxB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/Registry/index.js b/dist/modules/explorer/pages/Registry/index.js deleted file mode 100644 index 58ccb94..0000000 --- a/dist/modules/explorer/pages/Registry/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.Registry=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const CopyAddress_1=require('../../../common/CopyAddress');const ProposalForm_1=require('../../components/ProposalForm');const react_1=require('react');const useDAO_1=require('../../../../services/services/dao/hooks/useDAO');const useProposals_1=require('../../../../services/services/dao/hooks/useProposals');const Hero_1=require('../../components/Hero');const HeroTitle_1=require('../../components/HeroTitle');const router_1=require('../DAO/router');const RegistryTable_1=require('./components/RegistryTable');const UpdatesTable_1=require('./components/UpdatesTable');const useCycleInfo_1=require('../../../../services/contracts/baseDAO/hooks/useCycleInfo');const InfoIcon_1=require('../../components/styled/InfoIcon');const MainButton_1=require('../../../common/MainButton');const Registry=()=>{const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);const [updateRegistryOpen,setUpdateRegistryOpen]=(0,react_1.useState)(false);const {data:proposalsData}=(0,useProposals_1.useProposals)(daoId);const [defaultData,setDefaultData]=(0,react_1.useState)();const shouldDisable=(0,useCycleInfo_1.useIsProposalButtonDisabled)(daoId);const onCloseRegistryUpdate=()=>{setUpdateRegistryOpen(false);setDefaultData(undefined);};const proposals=(0,react_1.useMemo)(()=>{if(!proposalsData||!dao){return[];}const registryDAO=dao;const registryProposalsData=proposalsData;const registryAffectedKeysProposalIds=registryDAO.decoded.decodedRegistryAffected.map(r=>r.proposalId);return registryProposalsData.filter(proposal=>registryAffectedKeysProposalIds.includes(proposal.id)).sort((a,b)=>new Date(a.startDate).getTime()-new Date(b.startDate).getTime()).map(proposal=>Object.assign(Object.assign({},proposal),{description:'Proposal description',address:proposal.id,lastUpdated:proposal.startDate,list:proposal.metadata.list,proposalId:proposal.id,agoraPostId:Number(proposal.metadata.agoraPostId)})).flatMap(proposal=>proposal.list.map(({key})=>Object.assign(Object.assign({},proposal),{key})));},[dao,proposalsData]);const onClickItem=item=>{setDefaultData({registryUpdateForm:{isBatch:false,list:[item]}});setUpdateRegistryOpen(true);};const registryList=(0,react_1.useMemo)(()=>{return dao===null||dao===void 0?void 0:dao.decoded.decodedRegistry.map(d=>{var _a;return Object.assign(Object.assign({},d),{lastUpdated:(_a=proposals.find(proposal=>proposal.key===d.key))===null||_a===void 0?void 0:_a.startDate,onClick:()=>onClickItem(d)});});},[dao,proposals]);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:42},children:[(0,jsx_runtime_1.jsxs)(Hero_1.Hero,{children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(HeroTitle_1.HeroTitle,{children:'Registry'}),dao&&(0,jsx_runtime_1.jsx)(CopyAddress_1.CopyAddress,{address:dao.data.address,justifyContent:isMobileSmall?'center':'flex-start',typographyProps:{variant:'subtitle2'}})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',onClick:()=>setUpdateRegistryOpen(true),disabled:shouldDisable,children:'New Item'}),shouldDisable&&(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Not on proposal creation period',children:(0,jsx_runtime_1.jsx)(InfoIcon_1.InfoIcon,{color:'secondary'})})]})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(RegistryTable_1.RegistryTable,{data:registryList})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(UpdatesTable_1.UpdatesTable,{data:proposals})})]}),(0,jsx_runtime_1.jsx)(ProposalForm_1.ProposalFormContainer,{open:updateRegistryOpen,handleClose:onCloseRegistryUpdate,defaultTab:2,defaultValues:defaultData})]});};exports.Registry=Registry; \ No newline at end of file diff --git a/dist/modules/explorer/pages/Registry/index.js.map b/dist/modules/explorer/pages/Registry/index.js.map deleted file mode 100644 index 5b106b8..0000000 --- a/dist/modules/explorer/pages/Registry/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/pages/Registry/index.tsx"],"names":[],"mappings":";;;;AAAA,4CAAkF;AAClF,4DAAwD;AACxD,2EAA2G;AAE3G,iCAAgD;AAChD,+DAA2D;AAC3D,2EAAuE;AAEvE,gDAA4C;AAC5C,0DAAsD;AACtD,0CAAwC;AACxC,8DAA0D;AAC1D,4DAAwD;AACxD,4FAAuG;AACvG,+DAA2D;AAC3D,2DAAuD;AAGhD,MAAM,QAAQ,GAAa,GAAG,EAAE;IACrC,MAAM,KAAK,GAAG,IAAA,eAAQ,GAAE,CAAA;IACxB,MAAM,aAAa,GAAG,IAAA,oBAAa,EAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IACjE,MAAM,KAAK,GAAG,IAAA,iBAAQ,GAAE,CAAA;IACxB,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,IAAA,eAAM,EAAC,KAAK,CAAC,CAAA;IACnC,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAA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wBAAC,WAAI,IAAC,IAAI,mBACR,uBAAC,qBAAS,2BAAqB,EAC9B,GAAG,IAAI,CACN,uBAAC,yBAAW,IACV,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,OAAO,EACzB,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,EACvD,eAAe,EAAE;4CACf,OAAO,EAAE,WAAW;yCACrB,GACD,CACH,IACI,EACP,wBAAC,WAAI,IAAC,IAAI,mBACR,uBAAC,uBAAU,IACT,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAC1C,QAAQ,EAAE,aAAa,yBAGZ,EACZ,aAAa,IAAI,CAChB,uBAAC,cAAO,IAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAC,iCAAiC,YACjE,uBAAC,mBAAQ,IAAC,KAAK,EAAC,WAAW,GAAG,GACtB,CACX,IACI,IACF,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,6BAAa,IAAC,IAAI,EAAE,YAAY,GAAI,GAChC,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,2BAAY,IAAC,IAAI,EAAE,SAAS,GAAI,GAC5B,IACF,EACP,uBAAC,oCAAqB,IACpB,IAAI,EAAE,kBAAkB,EACxB,WAAW,EAAE,qBAAqB,EAClC,UAAU,EAAE,CAAC,EACb,aAAa,EAAE,WAAW,GAC1B,IACD,CACJ,CAAA;AACH,CAAC,CAAA;AA9GY,QAAA,QAAQ,YA8GpB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/Treasury/components/BalancesTable.js b/dist/modules/explorer/pages/Treasury/components/BalancesTable.js deleted file mode 100644 index b3cb1eb..0000000 --- a/dist/modules/explorer/pages/Treasury/components/BalancesTable.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.BalancesTable=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const ProposalForm_1=require('../../../components/ProposalForm');const useDAOHoldings_1=require('../../../../../services/contracts/baseDAO/hooks/useDAOHoldings');const useTezosBalance_1=require('../../../../../services/contracts/baseDAO/hooks/useTezosBalance');const router_1=require('../../DAO/router');const bignumber_js_1=__importDefault(require('bignumber.js'));const useCycleInfo_1=require('../../../../../services/contracts/baseDAO/hooks/useCycleInfo');const SmallButton_1=require('../../../../common/SmallButton');const utils_1=require('../../../../../services/contracts/utils');const CopyButton_1=require('../../../../common/CopyButton');const TokenSymbol=(0,core_1.styled)(core_1.Typography)(({theme})=>({color:theme.palette.secondary.main,boxSizing:'border-box',width:'min-content',fontSize:24}));const MobileTableHeader=(0,core_1.styled)(core_1.Grid)({width:'100%',padding:20,borderBottom:'0.3px solid #3D3D3D'});const MobileTableRow=(0,core_1.styled)(core_1.Grid)({padding:'30px',borderBottom:'0.3px solid #3D3D3D'});const AddressText=(0,core_1.styled)(core_1.Typography)({marginTop:8});const TokenCard=(0,core_1.styled)(core_1.Card)(({theme})=>({height:200,background:theme.palette.primary.main,borderRadius:8,padding:'32px 36px'}));const CustomCardContent=(0,core_1.styled)(core_1.CardContent)({padding:0});const BalanceText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontSize:24,fontWeight:300,marginBottom:16,[theme.breakpoints.down('sm')]:{fontSize:'24px !important'}}));const BalanceTitle=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontSize:18,[theme.breakpoints.down('sm')]:{fontSize:'18px !important'}}));const createData=daoHolding=>{return{symbol:daoHolding.token.symbol,address:daoHolding.token.contract,amount:daoHolding.balance.dp(10,1).toString()};};const titles=['Token Balances','Address','Balance'];const titleDataMatcher=(title,rowData)=>{switch(title){case'Token Balances':return rowData.symbol;case'Address':return rowData.address;case'Balance':return rowData.amount;}};const BalancesList=({rows,tezosBalance,openTokenTransferModal,openXTZTransferModal,shouldDisable,isMobileSmall})=>{return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',spacing:2,children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:isMobileSmall?12:3,children:(0,jsx_runtime_1.jsx)(TokenCard,{children:(0,jsx_runtime_1.jsxs)(CustomCardContent,{children:[(0,jsx_runtime_1.jsx)(TokenSymbol,{children:'XTZ'}),(0,jsx_runtime_1.jsx)(BalanceTitle,{variant:'body1',color:'secondary',style:{marginTop:49},children:'Balance'}),(0,jsx_runtime_1.jsx)(BalanceText,{children:tezosBalance.toString()}),(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,item:true,direction:'row',alignItems:'center',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(SmallButton_1.SmallButton,{variant:'contained',color:'secondary',onClick:()=>openXTZTransferModal(),disabled:shouldDisable,children:'Transfer'})})]})})}),rows.map((row,i)=>(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:isMobileSmall?12:3,children:(0,jsx_runtime_1.jsx)(TokenCard,{children:(0,jsx_runtime_1.jsxs)(CustomCardContent,{children:[(0,jsx_runtime_1.jsx)(TokenSymbol,{children:row.symbol}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,item:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(AddressText,{variant:'subtitle2',children:(0,utils_1.toShortAddress)(row.address)}),(0,jsx_runtime_1.jsx)(CopyButton_1.CopyButton,{text:row.address,style:{height:15}})]}),(0,jsx_runtime_1.jsx)(BalanceTitle,{color:'secondary',style:{marginTop:16},children:'Balance'}),(0,jsx_runtime_1.jsx)(BalanceText,{children:row.amount}),(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,item:true,direction:'row',alignItems:'center',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(SmallButton_1.SmallButton,{variant:'contained',color:'secondary',onClick:()=>openTokenTransferModal(row.address),disabled:shouldDisable,children:'Transfer'})})]})})},`token-`+i))]});};const BalancesTable=()=>{const theme=(0,core_1.useTheme)();const isSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const daoId=(0,router_1.useDAOID)();const shouldDisable=(0,useCycleInfo_1.useIsProposalButtonDisabled)(daoId);const {tokenHoldings}=(0,useDAOHoldings_1.useDAOHoldings)(daoId);const {data:tezosBalance}=(0,useTezosBalance_1.useTezosBalance)(daoId);const [openTransfer,setOpenTransfer]=(0,react_1.useState)(false);const [defaultValues,setDefaultValues]=(0,react_1.useState)();const onCloseTransfer=()=>{setOpenTransfer(false);setDefaultValues(undefined);};const onOpenXTZTransferModal=()=>{setDefaultValues({transferForm:{isBatch:false,transfers:[{recipient:'',amount:1,asset:{symbol:'XTZ'}}]}});setOpenTransfer(true);};const onOpenTokenTransferModal=tokenAddress=>{const selectedToken=tokenHoldings.find(holding=>holding.token.contract.toLowerCase()===tokenAddress.toLowerCase());setDefaultValues({transferForm:{transfers:[{recipient:'',amount:1,asset:selectedToken.token}]}});setOpenTransfer(true);};const rows=(0,react_1.useMemo)(()=>{if(!tokenHoldings){return[];}return tokenHoldings.map(createData);},[tokenHoldings]);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(BalancesList,{rows:rows,tezosBalance:tezosBalance||new bignumber_js_1.default(0),openTokenTransferModal:onOpenTokenTransferModal,openXTZTransferModal:onOpenXTZTransferModal,shouldDisable:shouldDisable,isMobileSmall:isSmall})}),(0,jsx_runtime_1.jsx)(ProposalForm_1.ProposalFormContainer,{open:openTransfer,handleClose:onCloseTransfer,defaultValues:defaultValues,defaultTab:0})]});};exports.BalancesTable=BalancesTable; \ No newline at end of file diff --git a/dist/modules/explorer/pages/Treasury/components/BalancesTable.js.map b/dist/modules/explorer/pages/Treasury/components/BalancesTable.js.map deleted file mode 100644 index f180b8e..0000000 --- a/dist/modules/explorer/pages/Treasury/components/BalancesTable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BalancesTable.js","sourceRoot":"","sources":["../../../../../../src/modules/explorer/pages/Treasury/components/BalancesTable.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAgD;AAChD,4CAAwG;AACxG,2EAA2G;AAE3G,oFAAgF;AAChF,sFAAkF;AAClF,6CAA2C;AAC3C,gEAAoC;AACpC,+FAA0G;AAC1G,gEAA4D;AAC5D,oDAAyD;AACzD,0DAAsD;AAEtD,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACrD,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;IACnC,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,aAAa;IACpB,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC,CAAA;AAEH,MAAM,iBAAiB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,EAAE;IACX,YAAY,EAAE,qBAAqB;CACpC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAClC,OAAO,EAAE,MAAM;IACf,YAAY,EAAE,qBAAqB;CACpC,CAAC,CAAA;AAQF,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACrC,SAAS,EAAE,CAAC;CACb,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7C,MAAM,EAAE,GAAG;IACX,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACtC,YAAY,EAAE,CAAC;IACf,OAAO,EAAE,WAAW;CACrB,CAAC,CAAC,CAAA;AAE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Aa,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACtC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAA;IAEnB,OAAO,CACL,6DACE,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,YAAY,IACX,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,IAAI,IAAI,sBAAS,CAAC,CAAC,CAAC,EAC9C,sBAAsB,EAAE,wBAAwB,EAChD,oBAAoB,EAAE,sBAAsB,EAC5C,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,OAAO,GACtB,GACG,EAEP,uBAAC,oCAAqB,IACpB,IAAI,EAAE,YAAY,EAClB,WAAW,EAAE,eAAe,EAC5B,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,CAAC,GACb,IACD,CACJ,CAAA;AACH,CAAC,CAAA;AAnFY,QAAA,aAAa,iBAmFzB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/Treasury/components/TransfersTable.js b/dist/modules/explorer/pages/Treasury/components/TransfersTable.js deleted file mode 100644 index 789f1be..0000000 --- a/dist/modules/explorer/pages/Treasury/components/TransfersTable.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.TransfersTable=void 0;const jsx_runtime_1=require('react/jsx-runtime');const dayjs_1=__importDefault(require('dayjs'));const react_1=require('react');const core_1=require('@material-ui/core');const hex_to_rgba_1=__importDefault(require('hex-to-rgba'));const useTezos_1=require('../../../../../services/beacon/hooks/useTezos');const ContentContainer_1=require('../../../components/ContentContainer');const bakingBad_1=require('../../../../../services/bakingBad');const Blockie_1=require('../../../../common/Blockie');const utils_1=require('../../../../../services/contracts/utils');const localizedFormat=require('dayjs/plugin/localizedFormat');dayjs_1.default.extend(localizedFormat);const TokenSymbol=(0,core_1.styled)(core_1.Typography)(({theme})=>({background:(0,hex_to_rgba_1.default)(theme.palette.secondary.main,0.11),borderRadius:4,color:theme.palette.secondary.main,padding:'1px 8px',boxSizing:'border-box',width:'min-content'}));const createData=transfer=>{return{token:transfer.name,date:(0,dayjs_1.default)(transfer.date).format('ll'),address:transfer.recipient,amount:transfer.amount.dp(10,1).toString(),hash:transfer.hash};};const TableContainer=(0,core_1.styled)(ContentContainer_1.ContentContainer)({width:'100%'});const RecipientText=(0,core_1.styled)(core_1.Typography)({marginLeft:8,marginTop:8});const Titles=['Transfer History','Date','Recipient','Amount'];const titleDataMatcher=(title,rowData)=>{switch(title){case'Transfer History':return rowData.token;case'Date':return rowData.date;case'Amount':return rowData.amount;case'Recipient':return rowData.address;case'Sender':return rowData.address;}};const MobileTableHeader=(0,core_1.styled)(core_1.Grid)({width:'100%',padding:20,borderBottom:'0.3px solid #3D3D3D'});const MobileTableRow=(0,core_1.styled)(core_1.Grid)({padding:'30px',borderBottom:'0.3px solid #3D3D3D'});const MobileTransfersTable=({data})=>{return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(MobileTableHeader,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{align:'center',variant:'h4',color:'textPrimary',children:'Transfer History'})}),data.map((row,i)=>(0,jsx_runtime_1.jsx)(MobileTableRow,{item:true,container:true,direction:'column',alignItems:'center',style:{gap:19},children:Titles.map((title,j)=>(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'secondary',align:'center',children:title==='Outbound Transfers'||title==='Inbound Transfers'?'Token:':title}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h6',color:'textPrimary',align:'center',children:titleDataMatcher(title,row)})]},`transfersMobileItem-${j}`))},`transfersMobile-${i}`))]});};const DesktopTransfersTable=({data:rows,network})=>{return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(0,jsx_runtime_1.jsxs)(core_1.Table,{children:[(0,jsx_runtime_1.jsx)(core_1.TableHead,{children:(0,jsx_runtime_1.jsx)(core_1.TableRow,{children:Titles.map((title,i)=>(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:title},`tokentitle-${i}`))})}),(0,jsx_runtime_1.jsx)(core_1.TableBody,{children:rows.map((row,i)=>(0,jsx_runtime_1.jsxs)(core_1.TableRow,{component:core_1.Link,href:`https://${network==='mainnet'?'':bakingBad_1.networkNameMap[network]+'.'}tzkt.io/${row.hash}`,target:'_blank',children:[(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:(0,jsx_runtime_1.jsx)(TokenSymbol,{children:row.token})}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:row.date}),(0,jsx_runtime_1.jsxs)(core_1.TableCell,{style:{display:'flex',alignItems:'center'},children:[(0,jsx_runtime_1.jsx)(Blockie_1.Blockie,{address:row.address,size:24,style:{marginTop:8}}),(0,jsx_runtime_1.jsx)(RecipientText,{variant:'body2',children:(0,utils_1.toShortAddress)(row.address)})]}),(0,jsx_runtime_1.jsx)(core_1.TableCell,{children:row.amount})]},`tokenrow-${i}`))})]})});};const TransfersTable=({transfers})=>{const theme=(0,core_1.useTheme)();const isSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const rows=(0,react_1.useMemo)(()=>{if(!transfers){return[];}return transfers.map(t=>createData(t));},[transfers]);const {network}=(0,useTezos_1.useTezos)();return(0,jsx_runtime_1.jsx)(TableContainer,{children:isSmall?(0,jsx_runtime_1.jsx)(MobileTransfersTable,{data:rows}):(0,jsx_runtime_1.jsx)(DesktopTransfersTable,{data:rows,network:network})});};exports.TransfersTable=TransfersTable; \ No newline at end of file diff --git a/dist/modules/explorer/pages/Treasury/components/TransfersTable.js.map b/dist/modules/explorer/pages/Treasury/components/TransfersTable.js.map deleted file mode 100644 index 2fc1a55..0000000 --- a/dist/modules/explorer/pages/Treasury/components/TransfersTable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransfersTable.js","sourceRo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AAQ,GAAE,CAAA;IAE9B,OAAO,CACL,uBAAC,cAAc,cACZ,OAAO,CAAC,CAAC,CAAC,uBAAC,oBAAoB,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,uBAAC,qBAAqB,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAAI,GAC1F,CAClB,CAAA;AACH,CAAC,CAAA;AAnBY,QAAA,cAAc,kBAmB1B"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/Treasury/index.js b/dist/modules/explorer/pages/Treasury/index.js deleted file mode 100644 index 766bf00..0000000 --- a/dist/modules/explorer/pages/Treasury/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};Object.defineProperty(exports,'__esModule',{value:true});exports.Treasury=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const CopyAddress_1=require('../../../common/CopyAddress');const ProposalForm_1=require('../../components/ProposalForm');const react_1=__importStar(require('react'));const useDAO_1=require('../../../../services/services/dao/hooks/useDAO');const Hero_1=require('../../components/Hero');const HeroTitle_1=require('../../components/HeroTitle');const router_1=require('../DAO/router');const BalancesTable_1=require('./components/BalancesTable');const TransfersTable_1=require('./components/TransfersTable');const useTransfers_1=require('../../../../services/contracts/baseDAO/hooks/useTransfers');const InfoIcon_1=require('../../components/styled/InfoIcon');const useCycleInfo_1=require('../../../../services/contracts/baseDAO/hooks/useCycleInfo');const core_2=require('@material-ui/core');const MainButton_1=require('../../../common/MainButton');const TabPanel_1=require('../../components/TabPanel');const NFTs_1=require('../NFTs');const ItemGrid=(0,core_2.styled)(core_1.Grid)({width:'inherit'});const StyledTab=(0,core_2.styled)(core_1.Button)(({theme,isSelected})=>({'fontSize':16,'fontWeight':400,'color':isSelected?theme.palette.primary.dark:'#fff','backgroundColor':isSelected?theme.palette.secondary.main:theme.palette.primary.main,'&:hover':{backgroundColor:isSelected?theme.palette.secondary.main:theme.palette.secondary.dark}}));const Treasury=()=>{const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const daoId=(0,router_1.useDAOID)();const {data:dao}=(0,useDAO_1.useDAO)(daoId);const [openTransfer,setOpenTransfer]=(0,react_1.useState)(false);const [selectedTab,setSelectedTab]=react_1.default.useState(0);const onCloseTransfer=()=>{setOpenTransfer(false);};const {data:transfers}=(0,useTransfers_1.useTransfers)(daoId);const shouldDisable=(0,useCycleInfo_1.useIsProposalButtonDisabled)(daoId);const handleChangeTab=newValue=>{setSelectedTab(newValue);};return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:42},children:[(0,jsx_runtime_1.jsx)(Hero_1.Hero,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{display:'flex',justifyContent:'space-between'},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(HeroTitle_1.HeroTitle,{children:'Treasury'}),dao&&(0,jsx_runtime_1.jsx)(CopyAddress_1.CopyAddress,{address:dao.data.address,justifyContent:isMobileSmall?'center':'flex-start',typographyProps:{variant:'subtitle2'}})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,style:{display:'flex',alignItems:'center'},children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',onClick:()=>setOpenTransfer(true),disabled:shouldDisable,children:'New Transfer'}),shouldDisable&&(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Not on proposal creation period',children:(0,jsx_runtime_1.jsx)(InfoIcon_1.InfoIcon,{color:'secondary'})})]})})})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledTab,{variant:'contained',style:selectedTab!==0?{borderTopRightRadius:0,borderBottomRightRadius:0,zIndex:0}:{borderRadius:4,zIndex:1},disableElevation:true,onClick:()=>handleChangeTab(0),isSelected:selectedTab===0,children:'Tokens'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledTab,{disableElevation:true,variant:'contained',style:selectedTab!==1?{borderTopLeftRadius:0,borderBottomLeftRadius:0,marginLeft:-1,zIndex:0}:{borderRadius:4,marginLeft:-1,zIndex:1},onClick:()=>handleChangeTab(1),isSelected:selectedTab===1,children:'NFTs'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledTab,{disableElevation:true,variant:'contained',style:selectedTab!==1?{borderTopLeftRadius:0,borderBottomLeftRadius:0,marginLeft:-1,zIndex:0}:{borderRadius:4,marginLeft:-1,zIndex:1},onClick:()=>handleChangeTab(2),isSelected:selectedTab===2,children:'History'})})]})})})}),(0,jsx_runtime_1.jsxs)(ItemGrid,{item:true,children:[(0,jsx_runtime_1.jsx)(TabPanel_1.TabPanel,{value:selectedTab,index:0,children:(0,jsx_runtime_1.jsx)(BalancesTable_1.BalancesTable,{})}),(0,jsx_runtime_1.jsx)(TabPanel_1.TabPanel,{value:selectedTab,index:1,children:(0,jsx_runtime_1.jsx)(NFTs_1.NFTs,{})}),(0,jsx_runtime_1.jsx)(TabPanel_1.TabPanel,{value:selectedTab,index:2,children:(0,jsx_runtime_1.jsx)(TransfersTable_1.TransfersTable,{transfers:transfers||[]})})]})]}),(0,jsx_runtime_1.jsx)(ProposalForm_1.ProposalFormContainer,{open:openTransfer,handleClose:onCloseTransfer,defaultTab:selectedTab,handleChangeTab:handleChangeTab})]});};exports.Treasury=Treasury; \ No newline at end of file diff --git a/dist/modules/explorer/pages/Treasury/index.js.map b/dist/modules/explorer/pages/Treasury/index.js.map deleted file mode 100644 index a421e0c..0000000 --- a/dist/modules/explorer/pages/Treasury/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/pages/Treasury/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAyF;AACzF,4DAAwD;AACxD,2EAAgF;AAEhF,+CAAgD;AAChD,+DAA2D;AAC3D,gDAA4C;AAC5C,0DAAsD;AACtD,0CAAwC;AACxC,8DAA0D;AAC1D,gEAA4D;AAC5D,4FAAwF;AACxF,+DAA2D;AAC3D,4FAAuG;AACvG,4CAA0C;AAC1C,2DAAuD;AACvD,mEAA+D;AAC/D,kCAA8B;AAE9B,MAAM,QAAQ,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC5B,KAAK,EAAE,SAAS;CACjB,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAyC,EAAE,EAAE,CAAC,CAAC;IAClG,UAAU,EAA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,UAAU,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAEpD,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,EACjC,UAAU,EAAE,WAAW,KAAK,CAAC,wBAGnB,GACP,IACF,GACF,GACF,GACF,EAEP,wBAAC,QAAQ,IAAC,IAAI,mBACZ,uBAAC,mBAAQ,IAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,YACpC,uBAAC,6BAAa,KAAG,GACR,EAEX,uBAAC,mBAAQ,IAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,YACpC,uBAAC,WAAI,KAAG,GACC,EAEX,uBAAC,mBAAQ,IAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,YACpC,uBAAC,+BAAc,IAAC,SAAS,EAAE,SAAS,IAAI,EAAE,GAAI,GACrC,IACF,IACN,EACP,uBAAC,oCAAqB,IACpB,IAAI,EAAE,YAAY,EAClB,WAAW,EAAE,eAAe,EAC5B,UAAU,EAAE,WAAW,EACvB,eAAe,EAAE,eAAe,GAChC,IACD,CACJ,CAAA;AACH,CAAC,CAAA;AAvIY,QAAA,QAAQ,YAuIpB"} \ No newline at end of file diff --git a/dist/modules/explorer/pages/User/index.js b/dist/modules/explorer/pages/User/index.js deleted file mode 100644 index 90f1b3f..0000000 --- a/dist/modules/explorer/pages/User/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.User=exports.ProposalItem=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const dayjs_1=__importDefault(require('dayjs'));const router_1=require('../DAO/router');const react_1=require('react');const react_router_1=require('react-router');const useTopic_1=require('../../../../services/agora/hooks/useTopic');const useTezos_1=require('../../../../services/beacon/hooks/useTezos');const useUnstakeFromAllProposals_1=require('../../../../services/contracts/baseDAO/hooks/useUnstakeFromAllProposals');const utils_1=require('../../../../services/contracts/utils');const useDAO_1=require('../../../../services/services/dao/hooks/useDAO');const useProposals_1=require('../../../../services/services/dao/hooks/useProposals');const types_1=require('../../../../services/services/dao/mappers/proposal/types');const FreezeDialog_1=require('../../components/FreezeDialog');const ProposalsList_1=require('../../components/ProposalsList');const StatusBadge_1=require('../../components/StatusBadge');const ProfileAvatar_1=require('../../components/styled/ProfileAvatar');const UserBalances_1=require('../../components/UserBalances');const UserProfileName_1=require('../../components/UserProfileName');const Proposals_1=require('../Proposals');const usePolls_1=require('../../../lite/explorer/hooks/usePolls');const ContentBlockItem=(0,core_1.styled)(core_1.Grid)({padding:'35px 52px',borderTop:`0.3px solid #4a4e4e`});const BalancesHeader=(0,core_1.styled)(core_1.Grid)(({theme})=>({minHeight:'178px',padding:'46px 55px',background:theme.palette.primary.main,boxSizing:'border-box',borderRadius:8,boxShadow:'none'}));const MainContainer=(0,core_1.styled)(core_1.Box)({width:'100%'});const UsernameText=(0,core_1.styled)(core_1.Typography)({fontSize:18,wordBreak:'break-all'});const ProposalTitle=(0,core_1.styled)(core_1.Typography)({fontWeight:'bold'});const StatusText=(0,core_1.styled)(core_1.Typography)({textTransform:'uppercase',marginLeft:10,fontSize:18,marginRight:30});const VotedText=(0,core_1.styled)(core_1.Typography)({fontSize:18});const CreatedText=(0,core_1.styled)(core_1.Typography)({fontWeight:300});const ProposalItem=({proposal,status,children})=>{const {data:agoraPost}=(0,useTopic_1.useAgoraTopic)(Number(proposal.metadata.agoraPostId));const formattedDate=(0,dayjs_1.default)(proposal.startDate).format('LLL');return(0,jsx_runtime_1.jsxs)(ContentBlockItem,{container:true,justifyContent:'space-between',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,sm:8,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:20},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProposalTitle,{color:'textPrimary',variant:'body1',children:agoraPost?agoraPost.title:`Proposal ${(0,utils_1.toShortAddress)(proposal.id)}`})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:20},alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StatusBadge_1.StatusBadge,{status:status})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(CreatedText,{variant:'body1',color:'textPrimary',children:['Created ',formattedDate]})})]})})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:children})]});};exports.ProposalItem=ProposalItem;const User=()=>{var _a;const {account}=(0,useTezos_1.useTezos)();const daoId=(0,router_1.useDAOID)();const {data,cycleInfo}=(0,useDAO_1.useDAO)(daoId);const {data:proposals}=(0,useProposals_1.useProposals)(daoId);const history=(0,react_router_1.useHistory)();const {data:activeProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.ACTIVE);const {data:executableProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.EXECUTABLE);const {data:expiredProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.EXPIRED);const {data:executedProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.EXECUTED);const {data:droppedProposals}=(0,useProposals_1.useProposals)(daoId,types_1.ProposalStatus.DROPPED);const {mutate:unstakeFromAllProposals}=(0,useUnstakeFromAllProposals_1.useUnstakeFromAllProposals)();const polls=(0,usePolls_1.usePolls)((_a=data===null||data===void 0?void 0:data.liteDAOData)===null||_a===void 0?void 0:_a._id);const pollsPosted=polls===null||polls===void 0?void 0:polls.filter(p=>p.author===account);(0,react_1.useEffect)(()=>{if(!account){history.push(`../${daoId}`);}},[account,daoId,history]);const proposalsCreated=(0,react_1.useMemo)(()=>{if(!proposals){return[];}return proposals.filter(p=>p.proposer.toLowerCase()===account.toLowerCase());},[account,proposals]);const proposalsVoted=(0,react_1.useMemo)(()=>{if(!proposals){return[];}return proposals.filter(p=>p.voters.map(voter=>voter.address.toLowerCase()).includes(account.toLowerCase()));},[account,proposals]);const onUnstakeFromAllProposals=(0,react_1.useCallback)(()=>__awaiter(void 0,void 0,void 0,function*(){if(droppedProposals&&executedProposals&&data){const allProposals=droppedProposals.concat(executedProposals);const proposalsWithStakedTokens=[];allProposals.forEach(proposal=>{const userVote=proposal.voters.find(voter=>voter.address===account);if(userVote&&userVote.staked){proposalsWithStakedTokens.push(proposal);}});unstakeFromAllProposals({dao:data,allProposals:proposalsWithStakedTokens.map(p=>p.id)});return;}}),[data,account,unstakeFromAllProposals,droppedProposals,executedProposals]);const canUnstakeVotes=executedProposals&&droppedProposals&&executedProposals.concat(droppedProposals).some(proposal=>{var _a;return(_a=proposal.voters.find(vote=>vote.address===account))===null||_a===void 0?void 0:_a.staked;});const getVoteDecision=proposal=>{var _a;return(_a=proposal.voters.find(voter=>voter.address.toLowerCase()))===null||_a===void 0?void 0:_a.support;};return(0,jsx_runtime_1.jsx)(MainContainer,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:40},wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(BalancesHeader,{item:true,children:(0,jsx_runtime_1.jsx)(UserBalances_1.UserBalances,{daoId:daoId,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',justifyContent:'space-between',style:{gap:20},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,spacing:2,alignItems:'center',wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProfileAvatar_1.ProfileAvatar,{size:43,address:account})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(UsernameText,{color:'textPrimary',children:(0,jsx_runtime_1.jsx)(UserProfileName_1.UserProfileName,{address:account})})})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,spacing:2,alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(FreezeDialog_1.FreezeDialog,{freeze:true})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(FreezeDialog_1.FreezeDialog,{freeze:false})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(Proposals_1.DropButton,{variant:'contained',color:'secondary',onClick:onUnstakeFromAllProposals,disabled:!canUnstakeVotes,children:'Unstake Votes'})})]})})]})})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:proposalsCreated&&cycleInfo&&(0,jsx_runtime_1.jsx)(ProposalsList_1.ProposalsList,{currentLevel:cycleInfo.currentLevel,proposals:proposalsCreated,title:'Proposals Posted',liteProposals:pollsPosted})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:proposalsVoted&&cycleInfo&&(0,jsx_runtime_1.jsx)(ProposalsList_1.ProposalsList,{title:'Voting History',currentLevel:cycleInfo.currentLevel,proposals:proposalsVoted,rightItem:proposal=>{const voteDecision=getVoteDecision(proposal);return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(VotedText,{color:'textPrimary',children:'Voted'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StatusText,{color:voteDecision?'secondary':'error',children:voteDecision?'YES':'NO'})})]});},liteProposals:pollsPosted})})]})});};exports.User=User; \ No newline at end of file diff --git a/dist/modules/explorer/pages/User/index.js.map b/dist/modules/explorer/pages/User/index.js.map deleted file mode 100644 index 72190ff..0000000 --- a/dist/modules/explorer/pages/User/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/explorer/pages/User/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAwE;AACxE,kDAAyB;AACzB,8DAA4D;AAC5D,iCAA8D;AAC9D,+CAAyC;AACzC,4DAA6D;AAC7D,6DAAyD;AACzD,4GAAwG;AACxG,oDAAyD;AACzD,+DAA2D;AAC3D,2EAAuE;AACvE,wEAAuF;AACvF,gEAA4D;AAC5D,kEAA8D;AAC9D,8DAA0D;AAC1D,yEAAqE;AACrE,gEAA4D;AAC5D,sEAAkE;AAClE,4CAAyC;AACzC,mEAA+D;AAE/D,MAAM,gBAAgB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IACpC,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,qBAAqB;CACjC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,CAAC;IACpE,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACtC,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,CAAC;IACf,SAAS,EAAE,MAAM;CAClB,CAAC,CAAC,CAAA;AAEH,MAAM,aAAa,GAAG,IAA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AI,IAAC,IAAI,kBACR,uBAAC,UAAU,IAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,YACpD,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,GACjB,GACR,IACF,CACR,CAAA;wBACH,CAAC,EACD,aAAa,EAAE,WAAW,GAC1B,CACH,GACI,IACF,GACO,CACjB,CAAA;AACH,CAAC,CAAA;AArJY,QAAA,IAAI,QAqJhB"} \ No newline at end of file diff --git a/dist/modules/explorer/router.js b/dist/modules/explorer/router.js deleted file mode 100644 index 6c59c3c..0000000 --- a/dist/modules/explorer/router.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.DAOExplorerRouter=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_router_dom_1=require('react-router-dom');const DAOList_1=require('./pages/DAOList');const router_1=require('./pages/DAO/router');const router_2=require('../lite/explorer/router');const DAOExplorerRouter=()=>{const match=(0,react_router_dom_1.useRouteMatch)();return(0,jsx_runtime_1.jsxs)(react_router_dom_1.Switch,{children:[(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:`${match.url}/daos`,children:(0,jsx_runtime_1.jsx)(DAOList_1.DAOList,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:`${match.url}/dao/:id`,children:(0,jsx_runtime_1.jsx)(router_1.DAORouter,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Route,{path:`${match.url}/lite/dao/:id`,children:(0,jsx_runtime_1.jsx)(router_2.LiteExplorerRouter,{})}),(0,jsx_runtime_1.jsx)(react_router_dom_1.Redirect,{to:`${match.url}/daos`})]});};exports.DAOExplorerRouter=DAOExplorerRouter; \ No newline at end of file diff --git a/dist/modules/explorer/router.js.map b/dist/modules/explorer/router.js.map deleted file mode 100644 index 17d3ad9..0000000 --- a/dist/modules/explorer/router.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../src/modules/explorer/router.tsx"],"names":[],"mappings":";;;;AACA,uDAAyE;AACzE,4DAAwD;AACxD,8DAA6D;AAC7D,yDAAiE;AAE1D,MAAM,iBAAiB,GAAG,GAAgB,EAAE;IACjD,MAAM,KAAK,GAAG,IAAA,gCAAa,GAAE,CAAA;IAE7B,OAAO,CACL,wBAAC,yBAAM,eACL,uBAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,OAAO,YAC9B,uBAAC,iBAAO,KAAG,GACL,EACR,uBAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,UAAU,YACjC,uBAAC,kBAAS,KAAG,GACP,EACR,uBAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,eAAe,YACtC,uBAAC,2BAAkB,KAAG,GAChB,EACR,uBAAC,2BAAQ,IAAC,EAAE,EAAE,GAAG,KAAK,CAAC,GAAG,OAAO,GAAI,IAC9B,CACV,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,iBAAiB,qBAiB7B"} \ No newline at end of file diff --git a/dist/modules/explorer/utils/FormatNumber.js b/dist/modules/explorer/utils/FormatNumber.js deleted file mode 100644 index 963e8ee..0000000 --- a/dist/modules/explorer/utils/FormatNumber.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.formatNumber=void 0;const formatNumber=number=>{if(number.isLessThan(1000))return number.dp(1).toString().replace(/[.,]0$/,'');if(number.isGreaterThanOrEqualTo(1000)&&number.isLessThan(1000000))return+number.dividedBy(1000).dp(1).toString()+'K';if(number.isGreaterThanOrEqualTo(1000000)&&number.isLessThan(1000000000))return+number.dividedBy(1000000).dp(1).toString()+'M';if(number.isGreaterThanOrEqualTo(1000000000)&&number.isLessThan(1000000000000))return+number.dividedBy(1000000000).dp(1).toString()+'B';if(number.isGreaterThanOrEqualTo(1000000000000))return+number.dividedBy(1000000000000).dp(1).toString()+'T';};exports.formatNumber=formatNumber; \ No newline at end of file diff --git a/dist/modules/explorer/utils/FormatNumber.js.map b/dist/modules/explorer/utils/FormatNumber.js.map deleted file mode 100644 index bd0d352..0000000 --- a/dist/modules/explorer/utils/FormatNumber.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FormatNumber.js","sourceRoot":"","sources":["../../../../src/modules/explorer/utils/FormatNumber.ts"],"names":[],"mappings":";;;AAEO,MAAM,YAAY,GAAG,CAAC,MAAiB,EAAE,EAAE;IAChD,IAAI,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC;QACxB,OAAO,MAAM;aACV,EAAE,CAAC,CAAC,CAAC;aACL,QAAQ,EAAE;aACV,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;IAC1B,IAAI,MAAM,CAAC,sBAAsB,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,GAAG,GAAG,CAAA;IACtH,IAAI,MAAM,CAAC,sBAAsB,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,GAAG,GAAG,CAAA;IACtH,IAAI,MAAM,CAAC,sBAAsB,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC;QAC/D,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,GAAG,GAAG,CAAA;IACtD,IAAI,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC;QAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,GAAG,GAAG,CAAA;AAChG,CAAC,CAAA;AAXY,QAAA,YAAY,gBAWxB"} \ No newline at end of file diff --git a/dist/modules/explorer/utils/debounce.js b/dist/modules/explorer/utils/debounce.js deleted file mode 100644 index 9173df0..0000000 --- a/dist/modules/explorer/utils/debounce.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.debounce=void 0;const debounce=(callback,waitFor)=>{let timeout=0;return(...args)=>{let result;clearTimeout(timeout);timeout=setTimeout(()=>{result=callback(...args);},waitFor);return result;};};exports.debounce=debounce; \ No newline at end of file diff --git a/dist/modules/explorer/utils/debounce.js.map b/dist/modules/explorer/utils/debounce.js.map deleted file mode 100644 index 1e296b2..0000000 --- a/dist/modules/explorer/utils/debounce.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../../../src/modules/explorer/utils/debounce.ts"],"names":[],"mappings":";;;AAAO,MAAM,QAAQ,GAAG,CAAoC,QAAW,EAAE,OAAe,EAAE,EAAE;IAC1F,IAAI,OAAO,GAAG,CAAC,CAAA;IACf,OAAO,CAAC,GAAG,IAAmB,EAAiB,EAAE;QAC/C,IAAI,MAAW,CAAA;QACf,YAAY,CAAC,OAAO,CAAC,CAAA;QACrB,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YACxB,MAAM,GAAG,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAA;QAC5B,CAAC,EAAE,OAAO,CAAsB,CAAA;QAChC,OAAO,MAAM,CAAA;IACf,CAAC,CAAA;AACH,CAAC,CAAA;AAVY,QAAA,QAAQ,YAUpB"} \ No newline at end of file diff --git a/dist/modules/home/FAQ.js b/dist/modules/home/FAQ.js deleted file mode 100644 index 70f39b3..0000000 --- a/dist/modules/home/FAQ.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.FAQ=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const Header_1=require('./Header');const ContentContainer_1=require('../explorer/components/ContentContainer');const FAQItem_1=require('./FAQItem');const useGenerateFAQ_1=require('./hooks/useGenerateFAQ');const PageContainer=(0,core_1.styled)('div')(({theme})=>({background:theme.palette.primary.dark,width:'1000px',margin:'auto',['@media (max-width:1167px)']:{width:'86vw'}}));const PageGrid=(0,core_1.styled)(core_1.Grid)({gap:46});const TextBlock=(0,core_1.styled)(ContentContainer_1.ContentContainer)({padding:'38px',boxSizing:'border-box',fontWeight:300});const TitleText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontSize:30,fontWeight:400,lineHeight:0.8,marginBottom:25}));const BodyText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontSize:18,fontWeight:300}));const BodyTextGrid=(0,core_1.styled)(core_1.Grid)({display:'grid',gap:12});const FAQ=()=>{const theme=(0,core_1.useTheme)();const isExtraSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));const faqList=(0,useGenerateFAQ_1.useGenerateFAQ)();return(0,jsx_runtime_1.jsxs)(PageContainer,{children:[!isExtraSmall&&(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(Header_1.Header,{})}),(0,jsx_runtime_1.jsxs)(PageGrid,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsxs)(TextBlock,{item:true,children:[(0,jsx_runtime_1.jsx)(TitleText,{color:'textPrimary',variant:'h1',children:'Welcome to Homebase FAQ'}),(0,jsx_runtime_1.jsxs)(BodyTextGrid,{container:true,children:[(0,jsx_runtime_1.jsxs)(BodyText,{color:'textPrimary',children:['We strive to make Homebase super user-centered. Feel free to reach out to our team at any time on the',' ',(0,jsx_runtime_1.jsx)(core_1.Link,{color:'secondary',target:'_blank',href:'https://discord.gg/XufcBNu277',children:'Discord'}),'.']}),(0,jsx_runtime_1.jsx)(BodyText,{color:'textPrimary',children:'Below are questions we\u2019ve received and would like to share the answers to in a direct way for users.'})]})]}),faqList.map(({question,answer},i)=>(0,jsx_runtime_1.jsx)(FAQItem_1.FAQItem,{id:`question-${i}`,question:question,answer:answer},`question-${i}`))]})]});};exports.FAQ=FAQ; \ No newline at end of file diff --git a/dist/modules/home/FAQ.js.map b/dist/modules/home/FAQ.js.map deleted file mode 100644 index 32b13b4..0000000 --- a/dist/modules/home/FAQ.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FAQ.js","sourceRoot":"","sources":["../../../src/modules/home/FAQ.tsx"],"names":[],"mappings":";;;;AAAA,4CAA2F;AAE3F,qCAAiC;AACjC,8EAA0E;AAC1E,uCAAmC;AACnC,2DAAuD;AAEvD,MAAM,aAAa,GAAG,IAAA,aAAM,EAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACtC,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,MAAM;IAEd,CAAC,2BAA2B,CAAC,EAAE;QAC7B,KAAK,EAAE,MAAM;KACd;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,QAAQ,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IAC5B,GAAG,EAAE,EAAE;CACR,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,mCAAgB,CAAC,CAAC;IACzC,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,GAAG;CAChB,CAAC,CAAA;AAEF,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACnD,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,GAAG;IACf,UAAU,EAAE,GAAG;IACf,YAAY,EAAE,EAAE;CACjB,CAAC,CAAC,CAAA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Y,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,IAAxE,YAAY,CAAC,EAAE,CAA6D,CAC3F,CAAC,IACO,IACG,CACjB,CAAA;AACH,CAAC,CAAA;AArCY,QAAA,GAAG,OAqCf"} \ No newline at end of file diff --git a/dist/modules/home/FAQItem.js b/dist/modules/home/FAQItem.js deleted file mode 100644 index a3a066c..0000000 --- a/dist/modules/home/FAQItem.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.FAQItem=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const ExpandMore_1=__importDefault(require('@material-ui/icons/ExpandMore'));const styles_1=require('@material-ui/core/styles');const ContentContainer_1=require('../explorer/components/ContentContainer');const Accordion_1=__importDefault(require('@material-ui/core/Accordion'));const Markdown_1=__importDefault(require('../common/Markdown'));const react_router_dom_1=require('react-router-dom');const TableContainer=(0,styles_1.styled)(ContentContainer_1.ContentContainer)({width:'100%'});const AccordionHeader=(0,styles_1.styled)(core_1.AccordionSummary)(({theme})=>({height:91,padding:'0px 38px',background:theme.palette.primary.main,borderRadius:'8px'}));const AccordionContent=(0,styles_1.styled)(core_1.AccordionDetails)(({theme})=>({flexDirection:'column',padding:'38px 38px',background:theme.palette.primary.light,borderRadius:'0 0 8px 8px'}));const Hash=(0,styles_1.styled)(core_1.Typography)({marginLeft:8});const FAQItem=({question,answer,id})=>{const [open,setOpen]=(0,react_1.useState)(false);const [style,setStyle]=(0,react_1.useState)({display:'none'});const location=(0,react_router_dom_1.useLocation)();const formatQuestion=question=>{return question.replaceAll(' ','-').toLowerCase();};const questionId=formatQuestion(question);(0,react_1.useEffect)(()=>{if(location.hash==='#'+questionId){setOpen(true);setStyle({display:'block'});return;}setOpen(false);setStyle({display:'none'});},[location,questionId]);(0,react_1.useEffect)(()=>{if(location.hash==='#'+questionId){setOpen(true);const element=document.getElementById(`${questionId}`);element===null||element===void 0?void 0:element.scrollIntoView({behavior:'smooth',block:'start'});setStyle({display:'block'});return;}setOpen(false);setStyle({display:'none'});},[]);const updateLocationHash=()=>{};return(0,jsx_runtime_1.jsx)(TableContainer,{id:questionId,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'column',wrap:'nowrap',children:(0,jsx_runtime_1.jsxs)(Accordion_1.default,{style:{background:'transparent'},expanded:open,children:[(0,jsx_runtime_1.jsx)(AccordionHeader,{expandIcon:(0,jsx_runtime_1.jsx)(ExpandMore_1.default,{onClick:()=>setOpen(!open),style:{fill:'rgb(65, 72, 77)'}}),'aria-controls':'panel1a-content',id:'panel1a-header',onMouseEnter:e=>{setStyle({display:'block'});},onMouseLeave:e=>{},children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{style:{display:'flex'},onClick:e=>{e.preventDefault();updateLocationHash();},children:[question,(0,jsx_runtime_1.jsxs)(Hash,{style:style,color:'secondary',children:[' ','#',' ']})]})}),(0,jsx_runtime_1.jsx)(AccordionContent,{children:(0,jsx_runtime_1.jsx)(Markdown_1.default,{children:answer})})]})})});};exports.FAQItem=FAQItem; \ No newline at end of file diff --git a/dist/modules/home/FAQItem.js.map b/dist/modules/home/FAQItem.js.map deleted file mode 100644 index 8781751..0000000 --- a/dist/modules/home/FAQItem.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FAQItem.js","sourceRoot":"","sources":["../../../src/modules/home/FAQItem.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAkD;AAClD,4CAAwF;AACxF,+EAA0D;AAC1D,qDAAiD;AACjD,8EAA0E;AAC1E,4EAAmD;AACnD,uEAA8C;AAC9C,uDAA8C;AAE9C,MAAM,cAAc,GAAG,IAAA,eAAM,EAAC,mCAAgB,CAAC,CAAC;IAC9C,KAAK,EAAE,MAAM;CACd,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,IAA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,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAI,mBACnF,iBAAiB,EAC/B,EAAE,EAAC,gBAAgB,EACnB,YAAY,EAAE,CAAC,CAAC,EAAE;4BAChB,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAA;wBAChC,CAAC,EACD,YAAY,EAAE,CAAC,CAAC,EAAE;wBAElB,CAAC,YAED,wBAAC,iBAAU,IACT,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAC1B,OAAO,EAAE,CAAC,CAAC,EAAE;gCACX,CAAC,CAAC,cAAc,EAAE,CAAA;gCAClB,kBAAkB,EAAE,CAAA;4BACtB,CAAC,aAEA,QAAQ,EACT,wBAAC,IAAI,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,WAAW,aAClC,GAAG,OACF,GAAG,IACA,IACI,GACG,EAClB,uBAAC,gBAAgB,cACf,uBAAC,kBAAQ,cAAE,MAAM,GAAY,GACZ,IACT,GACP,GACQ,CAClB,CAAA;AACH,CAAC,CAAA;AAzEY,QAAA,OAAO,WAyEnB"} \ No newline at end of file diff --git a/dist/modules/home/Header.js b/dist/modules/home/Header.js deleted file mode 100644 index 2cd3c96..0000000 --- a/dist/modules/home/Header.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.Header=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const homebase_logo_svg_1=__importDefault(require('../../assets/logos/homebase_logo.svg'));const MainButton_1=require('../common/MainButton');const StyledAppBar=(0,core_1.styled)(core_1.AppBar)(({theme})=>({boxShadow:'none',background:'none',position:'sticky',['@media (max-height:750px)']:{position:'static'}}));const LogoItem=(0,core_1.styled)('img')({cursor:'pointer',paddingTop:8,height:'30px'});const LogoText=(0,core_1.styled)(core_1.Typography)({fontWeight:'bold',fontSize:'24px',cursor:'pointer',fontFamily:'Roboto',letterSpacing:'initial'});const StyledToolbar=(0,core_1.styled)(core_1.Toolbar)({width:'100%',padding:0,boxSizing:'border-box',justifyContent:'space-between',flexWrap:'wrap'});const Head=(0,core_1.styled)(core_1.Grid)(({theme})=>({width:'1000px',height:'100%',margin:'auto',padding:'28px 0',flexDirection:'row',['@media (max-width:1167px)']:{width:'86vw'},['@media (max-width:645px)']:{flexDirection:'column'}}));const Header=()=>{return(0,jsx_runtime_1.jsx)(StyledAppBar,{children:(0,jsx_runtime_1.jsx)(StyledToolbar,{children:(0,jsx_runtime_1.jsxs)(Head,{container:true,alignItems:'center',wrap:'wrap',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Link,{href:`/landing`,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(LogoItem,{src:homebase_logo_svg_1.default})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Box,{paddingLeft:'10px',children:(0,jsx_runtime_1.jsx)(LogoText,{color:'textPrimary',children:'Homebase'})})})]})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Link,{href:`/explorer`,underline:'none',children:(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',children:'Enter App'})})})]})})});};exports.Header=Header; \ No newline at end of file diff --git a/dist/modules/home/Header.js.map b/dist/modules/home/Header.js.map deleted file mode 100644 index 1b94e9c..0000000 --- a/dist/modules/home/Header.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/modules/home/Header.tsx"],"names":[],"mappings":";;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ACF,CAAC,CAAC,CAAA;AAEI,MAAM,MAAM,GAAa,GAAG,EAAE;IACnC,OAAO,CACL,uBAAC,YAAY,cACX,uBAAC,aAAa,cACZ,wBAAC,IAAI,IAAC,SAAS,QAAC,UAAU,EAAC,QAAQ,EAAC,IAAI,EAAC,MAAM,EAAC,cAAc,EAAE,eAAe,aAC7E,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,WAAI,IAAC,IAAI,EAAE,UAAU,YACpB,wBAAC,WAAI,IAAC,SAAS,QAAC,UAAU,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,aAC/C,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,QAAQ,IAAC,GAAG,EAAE,2BAAU,GAAI,GACxB,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,UAAG,IAAC,WAAW,EAAC,MAAM,YACrB,uBAAC,QAAQ,IAAC,KAAK,EAAC,aAAa,yBAAoB,GAC7C,GACD,IACF,GACF,GACF,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,WAAI,IAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAC,MAAM,YACvC,uBAAC,uBAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,WAAW,0BAEpC,GACR,GACF,IACF,GACO,GACH,CAChB,CAAA;AACH,CAAC,CAAA;AA9BY,QAAA,MAAM,UA8BlB"} \ No newline at end of file diff --git a/dist/modules/home/Landing.js b/dist/modules/home/Landing.js deleted file mode 100644 index f92667c..0000000 --- a/dist/modules/home/Landing.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.Landing=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const LandingHeader_1=require('./LandingHeader');const homebase_logo_svg_1=__importDefault(require('../../assets/logos/homebase_logo.svg'));const Vector1_svg_1=__importDefault(require('../../assets/vectors/Vector1.svg'));const Vector2_svg_1=__importDefault(require('../../assets/vectors/Vector2.svg'));const GitHub_1=__importDefault(require('@material-ui/icons/GitHub'));const discord_svg_1=require('../../assets/logos/discord.svg');const MainButton_1=require('../common/MainButton');const StyledToolbar=(0,core_1.styled)(core_1.Grid)({padding:'22px 37px',boxSizing:'border-box',height:'86px'});const IconContainer=(0,core_1.styled)('div')({'height':'27px','width':'33px','& > svg':{width:'100%'}});const Background=(0,core_1.styled)(core_1.Grid)({backgroundImage:`url(${Vector1_svg_1.default}), url(${Vector2_svg_1.default})`,backgroundPosition:'top right, bottom right',backgroundRepeat:'no-repeat',height:'100vh'});const MainContainer=(0,core_1.styled)(core_1.Grid)({maxWidth:970,padding:30,boxSizing:'border-box',width:'100%'});const LogoContainer=(0,core_1.styled)(core_1.Box)(({theme})=>({width:408,height:370,[theme.breakpoints.down('xs')]:{width:290,height:265}}));const BigLogo=(0,core_1.styled)('img')({width:'100%',height:'100%'});const TitleText=(0,core_1.styled)(core_1.Typography)(({theme})=>({color:theme.palette.text.primary,fontSize:40,fontWeight:'bold'}));const SubtitleText=(0,core_1.styled)(core_1.Typography)(({theme})=>({color:theme.palette.text.primary,fontWeight:300}));const Landing=()=>{const theme=(0,core_1.useTheme)();const isExtraSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));return(0,jsx_runtime_1.jsxs)(Background,{container:true,direction:'column',justifyContent:'space-between',wrap:'nowrap',children:[!isExtraSmall&&(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(LandingHeader_1.Header,{})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(MainContainer,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:'space-between',direction:isExtraSmall?'column-reverse':'row',style:isExtraSmall?{gap:50}:{},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:32},justifyContent:'center',children:[!isExtraSmall&&(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(TitleText,{children:'Tezos Homebase'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(SubtitleText,{align:isExtraSmall?'center':'left',children:'Homebase is a web application that enables users to create and manage/use DAOs on the Tezos blockchain. This application aims to help empower community members and developers to launch and participate in Tezos-based DAOs'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:16},wrap:'nowrap',justifyContent:isExtraSmall?'center':'flex-start',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Link,{href:`/explorer`,underline:'none',children:(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',children:'Enter App'})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Link,{href:'/faq',underline:'none',children:(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',children:'Learn More'})})})]})})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',alignItems:'flex-end',justifyContent:'center',style:{gap:20},children:[isExtraSmall&&(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(TitleText,{children:'Tezos Homebase'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(LogoContainer,{children:(0,jsx_runtime_1.jsx)(BigLogo,{src:homebase_logo_svg_1.default})})})]})})]})})})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(StyledToolbar,{container:true,direction:'row',alignItems:'center',wrap:'wrap',justifyContent:isExtraSmall?'center':'flex-start',style:{gap:25},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Link,{target:'_blank',href:'https://github.com/dOrgTech/homebase-app',children:(0,jsx_runtime_1.jsx)(IconContainer,{children:(0,jsx_runtime_1.jsx)(GitHub_1.default,{color:'secondary'})})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Link,{target:'_blank',href:'https://discord.gg/XufcBNu277',children:(0,jsx_runtime_1.jsx)(IconContainer,{children:(0,jsx_runtime_1.jsx)(core_1.SvgIcon,{children:(0,jsx_runtime_1.jsx)(discord_svg_1.ReactComponent,{})})})})})]})})]});};exports.Landing=Landing; \ No newline at end of file diff --git a/dist/modules/home/Landing.js.map b/dist/modules/home/Landing.js.map deleted file mode 100644 index 8bd243a..0000000 --- a/dist/modules/home/Landing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Landing.js","sourceRoot":"","sources":["../../../src/modules/home/Landing.tsx"],"names":[],"mappings":";;;;;;;AAAA,4CAAgH;AAEhH,mDAAwC;AACxC,uFAAyD;AACzD,6EAAgD;AAChD,6EAAgD;AAChD,uEAAkD;AAClD,0DAAwE;AACxE,qDAAiD;AAGjD,MAAM,aAAa,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC;IACjC,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,YAAY;IACvB,MAAM,EAAE,MAAM;CACf,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,IAAA,aAAM,EAAC,KAAK,CAAC,CAAC;IAClC,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,MAAM;IAEf,SAAS,EAAE;QACT,KAAK,EAAE,MAAM;KACd;CACF,CA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C,IAAI,kBACR,wBAAC,aAAa,IACZ,SAAS,QACT,SAAS,EAAC,KAAK,EACf,UAAU,EAAC,QAAQ,EACnB,IAAI,EAAC,MAAM,EACX,cAAc,EAAE,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,EACtD,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,aAElB,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,WAAI,IAAC,MAAM,EAAC,QAAQ,EAAC,IAAI,EAAC,0CAA0C,YACnE,uBAAC,aAAa,cACZ,uBAAC,gBAAU,IAAC,KAAK,EAAC,WAAW,GAAG,GAClB,GACX,GACF,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,WAAI,IAAC,MAAM,EAAC,QAAQ,EAAC,IAAI,EAAC,+BAA+B,YACxD,uBAAC,aAAa,cACZ,uBAAC,cAAO,cACN,uBAAC,4BAAW,KAAG,GACP,GACI,GACX,GACF,IACO,GACX,IACI,CACd,CAAA;AACH,CAAC,CAAA;AA9GY,QAAA,OAAO,WA8GnB"} \ No newline at end of file diff --git a/dist/modules/home/LandingHeader.js b/dist/modules/home/LandingHeader.js deleted file mode 100644 index 48a6ef4..0000000 --- a/dist/modules/home/LandingHeader.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.Header=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const homebase_logo_svg_1=__importDefault(require('../../assets/logos/homebase_logo.svg'));const MainButton_1=require('../common/MainButton');const StyledAppBar=(0,core_1.styled)(core_1.AppBar)({boxShadow:'none'});const LogoItem=(0,core_1.styled)('img')({cursor:'pointer',paddingTop:8,height:'30px'});const LogoText=(0,core_1.styled)(core_1.Typography)({fontWeight:'bold',fontSize:'24px',cursor:'pointer',fontFamily:'Roboto',letterSpacing:'initial'});const StyledToolbar=(0,core_1.styled)(core_1.Toolbar)({display:'flex',padding:'22px 37px',boxSizing:'border-box',justifyContent:'space-between',flexWrap:'wrap'});const Header=()=>{return(0,jsx_runtime_1.jsx)(StyledAppBar,{position:'sticky',color:'transparent',children:(0,jsx_runtime_1.jsx)(StyledToolbar,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',wrap:'wrap',spacing:4,justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Link,{href:'/landing',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(LogoItem,{src:homebase_logo_svg_1.default})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Box,{paddingLeft:'10px',children:(0,jsx_runtime_1.jsx)(LogoText,{color:'textPrimary',children:'Homebase'})})})]})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Link,{href:`/explorer`,underline:'none',children:(0,jsx_runtime_1.jsx)(MainButton_1.MainButton,{variant:'contained',color:'secondary',children:'Enter App'})})})]})})});};exports.Header=Header; \ No newline at end of file diff --git a/dist/modules/home/LandingHeader.js.map b/dist/modules/home/LandingHeader.js.map deleted file mode 100644 index 3c3137e..0000000 --- a/dist/modules/home/LandingHeader.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LandingHeader.js","sourceRoot":"","sources":["../../../src/modules/home/LandingHeader.tsx"],"names":[],"mappings":";;;;;;;AAAA,4CAAuG;AACvG,uFAAuD;AAEvD,qDAAiD;AAIjD,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC;IAClC,SAAS,EAAE,MAAM;CAClB,CAAC,CAAA;AAEF,MAAM,QAAQ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AAC,WAAI,IAAC,IAAI,kBACR,uBAAC,WAAI,IAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAC,MAAM,YACvC,uBAAC,uBAAU,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,WAAW,0BAEpC,GACR,GACF,IACF,GACO,GACH,CAChB,CAAA;AACH,CAAC,CAAA;AA9BY,QAAA,MAAM,UA8BlB"} \ No newline at end of file diff --git a/dist/modules/home/hooks/useGenerateFAQ.js b/dist/modules/home/hooks/useGenerateFAQ.js deleted file mode 100644 index d7dd7a6..0000000 --- a/dist/modules/home/hooks/useGenerateFAQ.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useGenerateFAQ=void 0;const react_1=require('react');const node_fetch_1=__importDefault(require('node-fetch'));const FILE_NAME='faq.md';const QUESTION_DELIMITER='';const ANSWER_DELIMITER='';const useGenerateFAQ=()=>{const [faqFile,setFaqFile]=(0,react_1.useState)('');const [questionsToRender,setQuestionToRender]=(0,react_1.useState)([]);const [answersToRender,setAnswerToRender]=(0,react_1.useState)([]);const [faqList,setFaqList]=(0,react_1.useState)([]);(0,react_1.useEffect)(()=>{Promise.resolve(`${`../utils/${FILE_NAME}`}`).then(s=>__importStar(require(s))).then(res=>{(0,node_fetch_1.default)(res.default).then(res=>res.text()).then(res=>setFaqFile(res));}).catch(error=>console.log(error));});(0,react_1.useEffect)(()=>{const questionsList=faqFile.split(QUESTION_DELIMITER);const answerList=faqFile.split(ANSWER_DELIMITER);if(questionsList.length>0){const questions=[];questionsList.forEach(word=>{if(word!==''&&!word.includes('\n')&&!word.includes(ANSWER_DELIMITER)){questions.push(word);}});setQuestionToRender(questions);}if(answerList.length>0){const answers=[];answerList.forEach(word=>{if(word!==''&&!word.includes(QUESTION_DELIMITER)){answers.push(word);}});setAnswerToRender(answers.filter(a=>a!=='\n'));}},[faqFile]);(0,react_1.useEffect)(()=>{if(questionsToRender.length===answersToRender.length){const list=questionsToRender.map((question,index)=>{return{question,answer:answersToRender[index]};});setFaqList(list);}},[questionsToRender,answersToRender]);return faqList;};exports.useGenerateFAQ=useGenerateFAQ; \ No newline at end of file diff --git a/dist/modules/home/hooks/useGenerateFAQ.js.map b/dist/modules/home/hooks/useGenerateFAQ.js.map deleted file mode 100644 index c14b7c0..0000000 --- a/dist/modules/home/hooks/useGenerateFAQ.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useGenerateFAQ.js","sourceRoot":"","sources":["../../../../src/modules/home/hooks/useGenerateFAQ.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA2C;AAC3C,4DAA+B;AAE/B,MAAM,SAAS,GAAG,QAAQ,CAAA;AAC1B,MAAM,kBAAkB,GAAG,YAAY,CAAA;AACvC,MAAM,gBAAgB,GAAG,UAAU,CAAA;AAE5B,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAS,EAAE,CAAC,CAAA;IAClD,MAAM,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,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ACD,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;YACzB,MAAM,OAAO,GAAa,EAAE,CAAA;YAC5B,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;gBACxB,IAAI,IAAI,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE;oBACrD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;iBACnB;YACH,CAAC,CAAC,CAAA;YACF,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAA;SACnD;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,iBAAiB,CAAC,MAAM,KAAK,eAAe,CAAC,MAAM,EAAE;YACvD,MAAM,IAAI,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE;gBACrD,OAAO;oBACL,QAAQ;oBACR,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC;iBAC/B,CAAA;YACH,CAAC,CAAC,CAAA;YACF,UAAU,CAAC,IAAI,CAAC,CAAA;SACjB;IACH,CAAC,EAAE,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC,CAAA;IAExC,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AApDY,QAAA,cAAc,kBAoD1B"} \ No newline at end of file diff --git a/dist/modules/lite/components/BackButton.js b/dist/modules/lite/components/BackButton.js deleted file mode 100644 index 59d847b..0000000 --- a/dist/modules/lite/components/BackButton.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.BackButton=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const icons_1=require('@material-ui/icons');const react_router_1=require('react-router');const BackButton=()=>{const navigate=(0,react_router_1.useHistory)();return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:15,cursor:'pointer',marginBottom:23},onClick:()=>navigate.goBack(),alignItems:'center',children:[(0,jsx_runtime_1.jsx)(icons_1.ArrowBackIosOutlined,{color:'secondary'}),(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'secondary',children:'Back'})]});};exports.BackButton=BackButton; \ No newline at end of file diff --git a/dist/modules/lite/components/BackButton.js.map b/dist/modules/lite/components/BackButton.js.map deleted file mode 100644 index 2441f68..0000000 --- a/dist/modules/lite/components/BackButton.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BackButton.js","sourceRoot":"","sources":["../../../../src/modules/lite/components/BackButton.tsx"],"names":[],"mappings":";;;;AACA,4CAAoD;AACpD,8CAAyD;AACzD,+CAAyC;AAElC,MAAM,UAAU,GAAa,GAAG,EAAE;IACvC,MAAM,QAAQ,GAAG,IAAA,yBAAU,GAAE,CAAA;IAC7B,OAAO,CACL,wBAAC,WAAI,IACH,SAAS,QACT,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,EAAE,EACvD,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,EAChC,UAAU,EAAC,QAAQ,aAEnB,uBAAC,4BAAoB,IAAC,KAAK,EAAC,WAAW,GAAG,EAC1C,uBAAC,iBAAU,IAAC,KAAK,EAAC,WAAW,qBAAkB,IAC1C,CACR,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,UAAU,cAatB"} \ No newline at end of file diff --git a/dist/modules/lite/components/GridContainer.js b/dist/modules/lite/components/GridContainer.js deleted file mode 100644 index 5553e45..0000000 --- a/dist/modules/lite/components/GridContainer.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.GridContainer=void 0;const core_1=require('@material-ui/core');exports.GridContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({minHeight:145,borderRadius:8,cursor:'pointer',padding:'32px 46px',background:theme.palette.primary.main,[theme.breakpoints.down('sm')]:{padding:'35px 25px'}})); \ No newline at end of file diff --git a/dist/modules/lite/components/GridContainer.js.map b/dist/modules/lite/components/GridContainer.js.map deleted file mode 100644 index da42d01..0000000 --- a/dist/modules/lite/components/GridContainer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GridContainer.js","sourceRoot":"","sources":["../../../../src/modules/lite/components/GridContainer.tsx"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,aAAa,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACxD,SAAS,EAAE,GAAG;IACd,YAAY,EAAE,CAAC;IACf,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,WAAW;IACpB,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACtC,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,OAAO,EAAE,WAAW;KACrB;CACF,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/lite/components/LinearChart.js b/dist/modules/lite/components/LinearChart.js deleted file mode 100644 index a682061..0000000 --- a/dist/modules/lite/components/LinearChart.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.LinearChart=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const chartColor=['#FFC2CF','#FFC839','#62CEAE','#DB6C6C','#56CAE3','#E99571','#FF486E','#3866F9','#81FEB7'];const LinearChartContainer=(0,core_1.styled)(core_1.Box)({position:'relative',width:'100%',height:4,display:'flex',alignItems:'stretch',justifyContent:'flex-start',borderRadius:2,overflow:'hidden',marginTop:30});const Line=(0,core_1.styled)(core_1.Box)(({width,color})=>({width:`${width}%`,backgroundColor:color}));const Dot=(0,core_1.styled)(core_1.Box)(({color})=>({width:10,height:10,backgroundColor:color,borderRadius:'50%',display:'inline-block'}));const LinearChart=({items})=>{return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,style:{gap:28},children:items.map((item,index)=>(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',style:{gap:10},children:[(0,jsx_runtime_1.jsx)(Dot,{color:chartColor[index]}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body2',color:'textSecondary',children:item.name}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body2',color:'textSecondary',children:item.votes})]})},item.name))})}),(0,jsx_runtime_1.jsx)(LinearChartContainer,{children:items.map((item,index)=>(0,jsx_runtime_1.jsx)(Line,{width:item.percent,color:chartColor[index]},index))})]});};exports.LinearChart=LinearChart; \ No newline at end of file diff --git a/dist/modules/lite/components/LinearChart.js.map b/dist/modules/lite/components/LinearChart.js.map deleted file mode 100644 index 95c3746..0000000 --- a/dist/modules/lite/components/LinearChart.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LinearChart.js","sourceRoot":"","sources":["../../../../src/modules/lite/components/LinearChart.tsx"],"names":[],"mappings":";;;;AAAA,4CAAiE;AAGjE,MAAM,UAAU,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAA;AAEtH,MAAM,oBAAoB,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC;IACvC,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,SAAS;IACrB,cAAc,EAAE,YAAY;IAC5B,YAA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ATO,IAAI,CAAC,IAAI,CAUlB,CACR,CAAC,GACG,GACF,EAEP,uBAAC,oBAAoB,cAClB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,uBAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,IAAO,KAAK,CAAI,CACpE,CAAC,GACmB,IAClB,CACR,CAAA;AACH,CAAC,CAAA;AA5BY,QAAA,WAAW,eA4BvB"} \ No newline at end of file diff --git a/dist/modules/lite/components/hooks/useNotification.js b/dist/modules/lite/components/hooks/useNotification.js deleted file mode 100644 index f620132..0000000 --- a/dist/modules/lite/components/hooks/useNotification.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i(0,jsx_runtime_1.jsxs)(react_1.Fragment,{children:[detailsLink?(0,jsx_runtime_1.jsx)(ExternalLink_1.ExternalLink,{link:detailsLink,children:(0,jsx_runtime_1.jsx)(ExpandIcon,{})}):null,(0,jsx_runtime_1.jsx)(core_1.Button,{onClick:onClose,children:(0,jsx_runtime_1.jsx)(CloseIcon,{})})]});const useNotification=()=>{const {enqueueSnackbar,closeSnackbar}=(0,notistack_1.useSnackbar)();const open=_a=>{var {message,detailsLink}=_a,options=__rest(_a,['message','detailsLink']);const key=enqueueSnackbar(message,Object.assign(Object.assign({},options),{persist:false,action:(0,jsx_runtime_1.jsx)(NotificationActions,{detailsLink:detailsLink,onClose:()=>closeSnackbar(key)})}));return{key,closeSnackbar};};return open;};exports.useNotification=useNotification; \ No newline at end of file diff --git a/dist/modules/lite/components/hooks/useNotification.js.map b/dist/modules/lite/components/hooks/useNotification.js.map deleted file mode 100644 index 029c030..0000000 --- a/dist/modules/lite/components/hooks/useNotification.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useNotification.js","sourceRoot":"","sources":["../../../../../src/modules/lite/components/hooks/useNotification.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAuC;AACvC,4CAAkD;AAClD,yCAAsD;AACtD,8CAAqD;AACrD,8DAA0D;AAE1D,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,aAAK,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM;CACd,CAAC,CAAA;AAEF,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,iBAAS,CAAC,CAAC;IACnC,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,EAAE;CACb,CAAC,CAAA;AAEF,MAAM,mBAAmB,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,EAAiD,EAAE,EAAE,CAAC,CACvG,wBAAC,gBAAQ,eACN,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,2BAAY,IAAC,IAAI,EAAE,WAAW,YAC7B,uBAAC,UAAU,KAAG,GACD,CAChB,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,aAAM,IAAC,OAAO,EAAE,OAAO,YACtB,uBAAC,SAAS,KAAG,GACN,IACA,CACZ,CAAA;AAOM,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,EAAE,eAAe,EAAE,aAAa,EAAE,GAAG,IAAA,uBAAW,GAAE,CAAA;IACxD,MAAM,IAAI,GAAG,CAAC,EAAwD,EAAE,EAAE;YAA5D,EAAE,OAAO,EAAE,WAAW,OAAkC,EAA7B,OAAO,cAAlC,0BAAoC,CAAF;QAC9C,MAAM,GAAG,GAAG,eAAe,CAAC,OAAO,kCAC9B,OAAO,KACV,OAAO,EAAE,KAAK,EACd,MAAM,EAAE,uBAAC,mBAAmB,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,GAAI,IAC5F,CAAA;QAEF,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,CAAA;IAC/B,CAAC,CAAA;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAbY,QAAA,eAAe,mBAa3B"} \ No newline at end of file diff --git a/dist/modules/lite/creator/components/Plugins.js b/dist/modules/lite/creator/components/Plugins.js deleted file mode 100644 index 0397aff..0000000 --- a/dist/modules/lite/creator/components/Plugins.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.Plugins=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const PluginsContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main,borderRadius:8,alignItems:'center',justifyContent:'center',flexDirection:'column'}));const Plugins=()=>{return(0,jsx_runtime_1.jsxs)(PluginsContainer,{children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body2',color:'secondary',children:'Choices'})}),(0,jsx_runtime_1.jsx)(core_1.Divider,{}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:'center',alignItems:'center',style:{gap:10},children:(0,jsx_runtime_1.jsx)(core_1.Button,{variant:'contained',color:'secondary',children:'Add Plugin'})})})]});};exports.Plugins=Plugins; \ No newline at end of file diff --git a/dist/modules/lite/creator/components/Plugins.js.map b/dist/modules/lite/creator/components/Plugins.js.map deleted file mode 100644 index 70a2f5d..0000000 --- a/dist/modules/lite/creator/components/Plugins.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Plugins.js","sourceRoot":"","sources":["../../../../../src/modules/lite/creator/components/Plugins.tsx"],"names":[],"mappings":";;;;AACA,4CAA6E;AAE7E,MAAM,gBAAgB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACpD,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACtC,YAAY,EAAE,CAAC;IACf,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,aAAa,EAAE,QAAQ;CACxB,CAAC,CAAC,CAAA;AAEI,MAAM,OAAO,GAAa,GAAG,EAAE;IACpC,OAAO,CACL,wBAAC,gBAAgB,eACf,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,iBAAU,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAC,WAAW,wBAElC,GACR,EACP,uBAAC,cAAO,KAAG,EACX,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,WAAI,IAAC,SAAS,QAAC,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,YAChF,uBAAC,aAAM,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,WAAW,2BAEpC,GACJ,GACF,IACU,CACpB,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,OAAO,WAkBnB"} \ No newline at end of file diff --git a/dist/modules/lite/creator/components/UploadAvatar.js b/dist/modules/lite/creator/components/UploadAvatar.js deleted file mode 100644 index d22d6e7..0000000 --- a/dist/modules/lite/creator/components/UploadAvatar.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};Object.defineProperty(exports,'__esModule',{value:true});exports.UploadAvatar=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importStar(require('react'));const core_1=require('@material-ui/core');const SmallButton_1=require('../../../common/SmallButton');const AvatarCardContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({height:'100%',background:theme.palette.primary.dark,borderRadius:8}));const StyledAvatar=(0,core_1.styled)(core_1.Avatar)({width:126,height:126});const AvatarContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({marginTop:70,marginBottom:30,[theme.breakpoints.down('sm')]:{marginTop:30}}));const AvatarBox=(0,core_1.styled)(core_1.Grid)(({theme})=>({borderBottom:`0.3px solid ${theme.palette.primary.light}`,paddingLeft:26,height:54,display:'grid',alignItems:'center'}));const UploadAvatar=({setFieldValue,values,disabled})=>{const [avatarPreview,setAvatarPreview]=(0,react_1.useState)('');const hiddenFileInput=react_1.default.useRef(null);const handleClick=()=>{var _a;if(hiddenFileInput){(_a=hiddenFileInput.current)===null||_a===void 0?void 0:_a.click();}};return(0,jsx_runtime_1.jsxs)(AvatarCardContainer,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsx)(AvatarBox,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textSecondary',children:'Avatar'})}),(0,jsx_runtime_1.jsxs)(AvatarContainer,{container:true,item:true,style:{gap:28},alignItems:'center',direction:'column',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledAvatar,{src:avatarPreview})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(SmallButton_1.SmallButton,{variant:'contained',color:'secondary',onClick:handleClick,children:['Upload',(0,jsx_runtime_1.jsx)('input',{ref:hiddenFileInput,name:'picUri',accept:'image/*',type:'file',style:{display:'none'},onChange:e=>{var _a;const fileReader=new FileReader();fileReader.onload=()=>{if(fileReader.readyState===2){setFieldValue('picUri',fileReader.result);setAvatarPreview(fileReader.result);}};if(e.target&&e.target.files&&((_a=e.target.files)===null||_a===void 0?void 0:_a.length)>0){fileReader.readAsDataURL(e.target.files[0]);}}})]})})]})]});};exports.UploadAvatar=UploadAvatar; \ No newline at end of file diff --git a/dist/modules/lite/creator/components/UploadAvatar.js.map b/dist/modules/lite/creator/components/UploadAvatar.js.map deleted file mode 100644 index 7434535..0000000 --- a/dist/modules/lite/creator/components/UploadAvatar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UploadAvatar.js","sourceRoot":"","sources":["../../../../../src/modules/lite/creator/components/UploadAvatar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAuC;AACvC,4CAAoE;AACpE,4DAAwD;AAExD,MAAM,mBAAmB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACvD,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACtC,YAAY,EAAE,CAAC;CAChB,CAAC,CAAC,CAAA;AAEH,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC;IAClC,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;CACZ,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACnD,SAAS,EAAE,EAAE;IACb,YAAY,EAAE,EAAE;IAChB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,SAAS,EAAE,EAAE;KACd;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,SAAS,GAAG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,EACb,MAAM,EAAC,SAAS,EAChB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAC1B,QAAQ,EAAE,CAAC,CAAC,EAAE;;wCACZ,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAA;wCACnC,UAAU,CAAC,MAAM,GAAG,GAAG,EAAE;4CACvB,IAAI,UAAU,CAAC,UAAU,KAAK,CAAC,EAAE;gDAC/B,aAAa,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;gDAC1C,gBAAgB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;6CACpC;wCACH,CAAC,CAAA;wCACD,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA,MAAA,CAAC,CAAC,MAAM,CAAC,KAAK,0CAAE,MAAM,IAAG,CAAC,EAAE;4CAC5D,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;yCAC5C;oCACH,CAAC,GACD,IACU,GACT,IACS,IACE,CACvB,CAAA;AACH,CAAC,CAAA;AA/CY,QAAA,YAAY,gBA+CxB"} \ No newline at end of file diff --git a/dist/modules/lite/creator/index.js b/dist/modules/lite/creator/index.js deleted file mode 100644 index f1cad02..0000000 --- a/dist/modules/lite/creator/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.CommunityCreator=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const UploadAvatar_1=require('./components/UploadAvatar');const formik_1=require('formik');const formik_material_ui_1=require('formik-material-ui');const react_router_1=require('react-router');const utils_1=require('@taquito/utils');const useTokenMetadata_1=require('../../../services/contracts/baseDAO/hooks/useTokenMetadata');const useNotification_1=require('../../common/hooks/useNotification');const useTezos_1=require('../../../services/beacon/hooks/useTezos');const utils_2=require('../../../services/utils/utils');const Toolbar_1=require('../../common/Toolbar');const SmallButton_1=require('../../common/SmallButton');const lite_services_1=require('../../../services/services/lite/lite-services');const icons_1=require('@material-ui/icons');const CommunityContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({boxSizing:'border-box',padding:'0px 15px',[theme.breakpoints.down('md')]:{marginTop:0}}));const InfoIconInput=(0,core_1.styled)(icons_1.InfoRounded)(({theme})=>({cursor:'default',color:theme.palette.secondary.light,height:16,width:16}));const AvatarCommunityContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({boxSizing:'border-box',padding:'0px 15px',[theme.breakpoints.down('sm')]:{marginTop:30}}));const CommunityContainerBottom=(0,core_1.styled)(core_1.Grid)(({theme})=>({boxSizing:'border-box',padding:'0px 15px',[theme.breakpoints.down('sm')]:{marginTop:30,gap:12},marginTop:30}));const TitleContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({boxSizing:'border-box',padding:'0px 15px',[theme.breakpoints.down('md')]:{marginTop:0},marginBottom:26}));const AvatarContainer=(0,core_1.styled)(core_1.Grid)({height:'100%'});const PageContent=(0,core_1.styled)(core_1.Grid)({width:'1000px',height:'100%',margin:'auto',padding:'28px 0',flexDirection:'row',paddingTop:0,['@media (max-width:1167px)']:{width:'86vw'}});const CustomFormikTextField=(0,core_1.withStyles)({root:{'& .MuiInput-root':{fontWeight:300,textAlign:'initial'},'& .MuiInputBase-input':{textAlign:'initial'},'& .MuiInput-underline:before':{borderBottom:'none !important'},'& .MuiInput-underline:hover:before':{borderBottom:'none !important'},'& .MuiInput-underline:after':{borderBottom:'none !important'}}})(formik_material_ui_1.TextField);const CustomTextarea=(0,core_1.styled)((0,core_1.withTheme)(core_1.TextareaAutosize))(props=>({'minHeight':152,'boxSizing':'border-box','width':'100%','fontWeight':400,'padding':'21px 20px','fontFamily':'Roboto Mono','border':'none','fontSize':16,'color':props.theme.palette.text.secondary,'background':props.theme.palette.primary.dark,'borderRadius':8,'paddingRight':40,'wordBreak':'break-word','&:focus-visible':{outline:'none'},'resize':'none'}));const CustomSelect=(0,core_1.styled)(formik_1.Field)(({theme})=>({width:'100%',background:theme.palette.primary.dark,border:'none',color:theme.palette.text.secondary,fontFamily:'Roboto Mono',fontSize:18,borderRight:'26px solid transparent',borderRadius:4,minHeight:52}));const ErrorText=(0,core_1.styled)(core_1.Typography)({fontSize:14,color:'red',marginBottom:-21,marginTop:-16});const PageContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main}));const CustomInputContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({height:54,boxSizing:'border-box',background:theme.palette.primary.dark,borderRadius:8,alignItems:'center',display:'flex',padding:'13px 23px',width:'100%'}));const CheckboxContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({[theme.breakpoints.down('xs')]:{maxWidth:'16.666667%',flexBasis:'16.666667%'},maxwidth:'5%',flexBasis:'5%'}));const validateForm=values=>{const errors={};if(!values.name){errors.name='Required';}if(!values.tokenAddress){errors.tokenAddress='Required';}if(values.tokenAddress&&(0,utils_1.validateContractAddress)(values.tokenAddress)!==3){errors.tokenAddress='Invalid address';}return errors;};const CommunityForm=({submitForm,values,setFieldValue,errors,touched,setFieldTouched,isSubmitting})=>{const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const {data:tokenMetadata,isLoading:loading,error}=(0,useTokenMetadata_1.useTokenMetadata)(values===null||values===void 0?void 0:values.tokenAddress);(0,react_1.useEffect)(()=>{if(tokenMetadata){setFieldValue('tokenID',tokenMetadata.token_id);setFieldValue('tokenType',tokenMetadata.standard);setFieldValue('symbol',tokenMetadata.symbol);setFieldValue('decimals',tokenMetadata.decimals);}if(error){setFieldValue('tokenID',undefined);setFieldValue('tokenType',undefined);setFieldValue('symbol',undefined);}},[error,setFieldValue,tokenMetadata]);return(0,jsx_runtime_1.jsxs)(PageContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(Toolbar_1.Navbar,{mode:'creator'}),(0,jsx_runtime_1.jsxs)(PageContent,{container:true,children:[(0,jsx_runtime_1.jsx)(TitleContainer,{container:true,direction:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h3',color:'textSecondary',children:'Create a Community'})}),(0,jsx_runtime_1.jsxs)(CommunityContainer,{container:true,item:true,direction:'column',style:{gap:22},xs:12,md:6,lg:9,children:[(0,jsx_runtime_1.jsx)(CustomInputContainer,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'name',type:'text',placeholder:'Community Name*',component:CustomFormikTextField})}),(errors===null||errors===void 0?void 0:errors.name)&&touched.name?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.name}):null,(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'description',children:()=>(0,jsx_runtime_1.jsx)(CustomTextarea,{disabled:isSubmitting,maxLength:1500,'aria-label':'empty textarea',placeholder:'Short description',value:(0,formik_1.getIn)(values,'description'),onChange:newValue=>{setFieldValue('description',newValue.target.value);}})})}),(0,jsx_runtime_1.jsx)(CustomInputContainer,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'linkToTerms',type:'text',placeholder:'Link to Terms',component:CustomFormikTextField})}),(0,jsx_runtime_1.jsx)(CustomInputContainer,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{onClick:()=>setFieldTouched('tokenAddress'),name:'tokenAddress',type:'text',placeholder:'Token Contract Address*',component:CustomFormikTextField})}),tokenMetadata&&!loading&&(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',color:'secondary',style:{marginTop:-16},children:tokenMetadata.name}),(errors===null||errors===void 0?void 0:errors.tokenAddress)&&touched.tokenAddress?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.tokenAddress}):null]}),(0,jsx_runtime_1.jsx)(AvatarCommunityContainer,{container:true,direction:'column',style:{gap:30},item:true,xs:12,md:6,lg:3,children:(0,jsx_runtime_1.jsx)(AvatarContainer,{container:true,item:true,children:(0,jsx_runtime_1.jsx)(UploadAvatar_1.UploadAvatar,{url:values.picUri,setFieldValue:setFieldValue,disabled:isSubmitting})})}),(0,jsx_runtime_1.jsxs)(CommunityContainerBottom,{container:true,justifyContent:'space-between',spacing:isMobileSmall?4:1,children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,xs:12,md:4,children:(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'symbol',type:'text',placeholder:'Token Symbol',component:CustomFormikTextField})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,xs:12,md:4,children:(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'tokenID',type:'text',placeholder:'Token ID',InputProps:{endAdornment:(0,jsx_runtime_1.jsx)(core_1.InputAdornment,{position:'start',children:(0,jsx_runtime_1.jsx)(core_1.Tooltip,{placement:'bottom',title:'Homebase will only track your governance token at a certain ID index, which is a parameter specified upon deploying the token contract. Fungible tokens usually have the ID of 0 (zero).',children:(0,jsx_runtime_1.jsx)(InfoIconInput,{})})})},component:CustomFormikTextField})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,xs:12,md:4,children:(0,jsx_runtime_1.jsx)(CustomInputContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'tokenType',children:()=>(0,jsx_runtime_1.jsxs)(CustomSelect,{disabled:isSubmitting,as:'select',name:(0,formik_1.getIn)(values,'tokenType'),label:'Token Standard',onChange:newValue=>{setFieldValue('tokenType',newValue.target.value);},children:[(0,jsx_runtime_1.jsx)('option',{value:'fa2',children:'FA2'}),(0,jsx_runtime_1.jsx)('option',{value:'nft',children:'NFT'})]})})})})]}),(0,jsx_runtime_1.jsxs)(CommunityContainerBottom,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(CheckboxContainer,{item:true,xs:2,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'requiredTokenOwnership',children:()=>(0,jsx_runtime_1.jsx)(core_1.Checkbox,{disableRipple:true,checked:values.requiredTokenOwnership,value:(0,formik_1.getIn)(values,'requiredTokenOwnership'),inputProps:{'aria-label':'Checkbox A'},onChange:()=>{setFieldValue('requiredTokenOwnership',!values.requiredTokenOwnership);}})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textSecondary',children:'Require token ownership to create proposals'})})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(CheckboxContainer,{item:true,xs:2,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'allowPublicAccess',children:()=>(0,jsx_runtime_1.jsx)(core_1.Checkbox,{disableRipple:true,checked:values.allowPublicAccess,value:(0,formik_1.getIn)(values,'allowPublicAccess'),inputProps:{'aria-label':'Checkbox B'},onChange:()=>{setFieldValue('allowPublicAccess',!values.allowPublicAccess);}})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textSecondary',children:'Allow public read access to this community'})})]})]}),(0,jsx_runtime_1.jsx)(CommunityContainerBottom,{container:true,direction:'row',children:isSubmitting?(0,jsx_runtime_1.jsx)(core_1.CircularProgress,{color:'secondary'}):(0,jsx_runtime_1.jsx)(SmallButton_1.SmallButton,{variant:'contained',color:'secondary',onClick:()=>submitForm(values),children:'Create Community'})})]})]});};const CommunityCreator=()=>{const navigate=(0,react_router_1.useHistory)();const {network,account,wallet}=(0,useTezos_1.useTezos)();const openNotification=(0,useNotification_1.useNotification)();const initialState={_id:'',name:'',description:'',linkToTerms:'',picUri:'',members:[],polls:[],tokenAddress:'',symbol:'',tokenID:'',tokenType:'FA2',requiredTokenOwnership:false,allowPublicAccess:false,network};const saveCommunity=(0,react_1.useCallback)(values=>__awaiter(void 0,void 0,void 0,function*(){var _a;if(!wallet){return;}values.members.push(account);try{const {signature,payloadBytes}=yield(0,utils_2.getSignature)(account,wallet,JSON.stringify(values));const publicKey=(_a=yield wallet===null||wallet===void 0?void 0:wallet.client.getActiveAccount())===null||_a===void 0?void 0:_a.publicKey;if(!signature){openNotification({message:`Issue with Signature`,autoHideDuration:3000,variant:'error'});return;}const resp=yield(0,lite_services_1.saveLiteCommunity)(signature,publicKey,payloadBytes);if(resp.ok){openNotification({message:'Community created!',autoHideDuration:3000,variant:'success'});navigate.push('/explorer');}else{openNotification({message:'Community could not be created!',autoHideDuration:3000,variant:'error'});return;}}catch(error){openNotification({message:'Community could not be created!',autoHideDuration:3000,variant:'error'});return;}}),[navigate]);return(0,jsx_runtime_1.jsx)(PageContainer,{children:(0,jsx_runtime_1.jsx)(formik_1.Formik,{enableReinitialize:true,validateOnChange:true,validateOnBlur:false,validate:validateForm,onSubmit:saveCommunity,initialValues:initialState,children:({submitForm,isSubmitting,setFieldValue,values,errors,touched,setFieldTouched})=>{return(0,jsx_runtime_1.jsx)(formik_1.Form,{style:{width:'100%'},children:(0,jsx_runtime_1.jsx)(CommunityForm,{submitForm:submitForm,isSubmitting:isSubmitting,setFieldValue:setFieldValue,errors:errors,touched:touched,values:values,setFieldTouched:setFieldTouched})});}})});};exports.CommunityCreator=CommunityCreator; \ No newline at end of file diff --git a/dist/modules/lite/creator/index.js.map b/dist/modules/lite/creator/index.js.map deleted file mode 100644 index 413a69b..0000000 --- a/dist/modules/lite/creator/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/lite/creator/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,gDAAgD;AAChD,iCAA+D;AAC/D,4CAa0B;AAC1B,4DAAwD;AACxD,mCAAiE;AACjE,2DAAiE;AAEjE,+CAAyC;AACzC,0CAAwD;AACxD,wFAAoF;AACpF,0EAAsE;AACtE,6DAAyD;AACzD,gDAAmD;AACnD,oDAA+C;AAC/C,4DAAwD;AAExD,wEAAwE;AACxE,8CAAgD;AAEhD,MAAM,kBAAkB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACtD,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,UAAU;IACnB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,SAAS,EAAE,CAAC;KACb;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,aAAa,GAAG,IAAA,aAAM,EAAC,mBAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACxD,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK;IACpC,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;CACV,CAAC,CAAC,CAAA;AAEH,MAAM,wBAAwB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5D,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,UAAU;IACnB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,SAAS,EAAE,EAAE;KACd;CACF,CAAC,CAAC,CAAA;AAE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cACZ,uBAAC,eAAM,IACL,kBAAkB,EAAE,IAAI,EACxB,gBAAgB,EAAE,IAAI,EACtB,cAAc,EAAE,KAAK,EACrB,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,aAAa,EACvB,aAAa,EAAE,YAAY,YAE1B,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE;gBACzF,OAAO,CACL,uBAAC,aAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YAC5B,uBAAC,aAAa,IACZ,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,GAChC,GACG,CACR,CAAA;YACH,CAAC,GACM,GACK,CACjB,CAAA;AACH,CAAC,CAAA;AAnGY,QAAA,gBAAgB,oBAmG5B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/BottomSheet.js b/dist/modules/lite/explorer/components/BottomSheet.js deleted file mode 100644 index a98d135..0000000 --- a/dist/modules/lite/explorer/components/BottomSheet.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==='function')for(var i=0,p=Object.getOwnPropertySymbols(s);i{var {children}=_a,props=__rest(_a,['children']);return(0,jsx_runtime_1.jsx)(react_spring_bottom_sheet_1.BottomSheet,Object.assign({snapPoints:({minHeight})=>{return minHeight;}},props,{children:children}));};exports.BottomSheet=BottomSheet; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/BottomSheet.js.map b/dist/modules/lite/explorer/components/BottomSheet.js.map deleted file mode 100644 index 256cab7..0000000 --- a/dist/modules/lite/explorer/components/BottomSheet.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BottomSheet.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/BottomSheet.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,yEAA8F;AAC9F,oDAAiD;AAE1C,MAAM,WAAW,GAA+B,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,cAApB,YAAsB,CAAF;IAC1E,OAAO,CACL,uBAAC,uCAAiB,kBAChB,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;YAC5B,OAAO,SAAS,CAAA;QAClB,CAAC,IACG,KAAK,cAER,QAAQ,IACS,CACrB,CAAA;AACH,CAAC,CAAA;AAXY,QAAA,WAAW,eAWvB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ChangeNetworkButton.js b/dist/modules/lite/explorer/components/ChangeNetworkButton.js deleted file mode 100644 index 8f99fc1..0000000 --- a/dist/modules/lite/explorer/components/ChangeNetworkButton.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ChangeNetworkButton=exports.ColorDot=exports.networkDotColorMap=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const useTezos_1=require('../../../../services/beacon/hooks/useTezos');const ActionSheets_1=require('../context/ActionSheets');const StyledConnectedButton=(0,core_1.styled)(core_1.Box)(({theme})=>({'& > *':{height:'100%'},'background':theme.palette.primary.main,'borderRadius':4,'padding':'5px 10px','cursor':'pointer','transition':'.15s ease-out','&:hover':{background:theme.palette.secondary.dark,transition:'.15s ease-in'}}));exports.networkDotColorMap={mainnet:'#9EEE5D',ghostnet:'#291F79'};exports.ColorDot=(0,core_1.styled)(core_1.Box)({height:6,width:6,backgroundColor:({color})=>color,borderRadius:'50%'});const NetworkText=(0,core_1.styled)(core_1.Typography)({fontSize:'14px'});const ChangeNetworkButton=()=>{const {network}=(0,useTezos_1.useTezos)();const {open}=(0,ActionSheets_1.useActionSheet)(ActionSheets_1.ActionSheet.Network);return(0,jsx_runtime_1.jsx)(StyledConnectedButton,{onClick:()=>open(),children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:5},alignItems:'center',wrap:'nowrap',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(exports.ColorDot,{color:exports.networkDotColorMap[network]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(NetworkText,{color:'textPrimary',children:(0,core_1.capitalize)(network)})})]})});};exports.ChangeNetworkButton=ChangeNetworkButton; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ChangeNetworkButton.js.map b/dist/modules/lite/explorer/components/ChangeNetworkButton.js.map deleted file mode 100644 index 4a2074f..0000000 --- a/dist/modules/lite/explorer/components/ChangeNetworkButton.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChangeNetworkButton.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/ChangeNetworkButton.tsx"],"names":[],"mappings":";;;;AAAA,4CAAoF;AAGpF,6DAAyD;AACzD,0DAAqE;AAErE,MAAM,qBAAqB,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,CAAC;IAC1E,OAAO,EAAE;QACP,MAAM,EAAE,MAAM;KACf;IACD,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACxC,cAAc,EAAE,CAAC;IACjB,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE,SAAS;IACnB,YAAY,EAAE,eAAe;IAE7B,SAAS,EAAE;QACT,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;QACxC,UAAU,EAAE,cAAc;KAC3B;CACF,CAAC,CAAC,CAAA;AAEU,QAAA,kBAAkB,GAA4B;IACzD,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,SAAS;CACpB,CAAA;AAEY,QAAA,QAAQ,GAAG,IAAA,aAAM,EAAC,UAAG,CAAC,CAAC;IAClC,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;IACR,eAAe,EAAE,CAAC,EAAE,KAAK,EAAqB,EAAE,EAAE,CAAC,KAAK;IACxD,YAAY,EAAE,KAAK;CACpB,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACrC,QAAQ,EAAE,MAAM;CACjB,CAAC,CAAA;AAEK,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAC9B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,6BAAc,EAAC,0BAAW,CAAC,OAAO,CAAC,CAAA;IAEpD,OAAO,CACL,uBAAC,qBAAqB,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,YAC1C,wBAAC,WAAI,IAAC,SAAS,QAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,UAAU,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,aAClE,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,gBAAQ,IAAC,KAAK,EAAE,0BAAkB,CAAC,OAAO,CAAC,GAAI,GAC3C,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,WAAW,IAAC,KAAK,EAAC,aAAa,YAAE,IAAA,iBAAU,EAAC,OAAO,CAAC,GAAe,GAC/D,IACF,GACe,CACzB,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,mBAAmB,uBAgB/B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ChoiceDetails.js b/dist/modules/lite/explorer/components/ChoiceDetails.js deleted file mode 100644 index d1ab8a0..0000000 --- a/dist/modules/lite/explorer/components/ChoiceDetails.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ChoiceDetails=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importDefault(require('react'));const core_1=require('@material-ui/core');const utils_1=require('../../../../services/lite/utils');const LightText=(0,core_1.styled)(core_1.Typography)({fontWeight:300,textAlign:'center'});const ChoiceDetails=({choice,index,poll})=>{const balance=(0,utils_1.calculateChoiceTotal)(choice.walletAddresses,poll.tokenDecimals);const individualBalance=(0,utils_1.calculateWeight)(poll.totalSupplyAtReferenceBlock,balance,poll.tokenDecimals);const [,updateState]=react_1.default.useState();const forceUpdate=react_1.default.useCallback(()=>updateState({}),[]);return(0,jsx_runtime_1.jsx)(core_1.Grid,{style:{gap:19,display:index>2?'none':'block',marginBottom:16},container:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',spacing:2,alignItems:'center',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:12,lg:6,md:6,sm:4,container:true,direction:'row',justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:true,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',children:[' ',choice.name,' ']})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:true,children:(0,jsx_runtime_1.jsxs)(LightText,{color:'textPrimary',children:[' ',(0,utils_1.nFormatter)(balance,1),' ']})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:true,children:(0,jsx_runtime_1.jsxs)(LightText,{color:'textPrimary',children:[' ',poll.tokenSymbol,' ']})})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{xs:12,lg:6,md:6,sm:8,spacing:1,container:true,direction:'row',item:true,justifyContent:'space-around',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:8,container:true,children:(0,jsx_runtime_1.jsx)(core_1.LinearProgress,{style:{width:'100%',marginRight:'4px'},color:index&1?'primary':'secondary',value:individualBalance.toNumber(),variant:'determinate'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:true,children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{style:{textAlign:'end'},color:'textPrimary',children:[individualBalance.dp(3,1).toString(),'%']})})]})]})});};exports.ChoiceDetails=ChoiceDetails; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ChoiceDetails.js.map b/dist/modules/lite/explorer/components/ChoiceDetails.js.map deleted file mode 100644 index ede02a5..0000000 --- a/dist/modules/lite/explorer/components/ChoiceDetails.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChoiceDetails.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/ChoiceDetails.tsx"],"names":[],"mappings":";;;;;;;AAAA,kDAAkD;AAClD,4CAA4E;AAG5E,+CAAuF;AAEvF,MAAM,SAAS,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACnC,UAAU,EAAE,GAAG;IACf,SAAS,EAAE,QAAQ;CACpB,CAAC,CAAA;AAEK,MAAM,aAAa,GAA4D,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IAChH,MAAM,OAAO,GAAG,IAAA,4BAAoB,EAAC,MAAM,CAAC,eAAe,EAAE,IAAI,CAAC,aAAa,CAAC,CAAA;IAChF,oEAAoE;IACpE,MAAM,iBAAiB,GAAG,IAAA,uBAAe,EAAC,IAAI,CAAC,2BAA4B,EAAE,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,CAAA;IAEzG,MAAM,CAAC,EAAE,WAAW,CAAC,GAAG,eAAK,CAAC,QAAQ,EAAO,CAAA;IAC7C,MAAM,WAAW,GAAG,eAAK,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAA;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AS,kBACzB,uBAAC,qBAAc,IACb,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,EAC5C,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EAC1C,KAAK,EAAE,iBAAiB,CAAC,QAAQ,EAAE,EACnC,OAAO,EAAC,aAAa,GACrB,GACG,EACP,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,kBACX,wBAAC,iBAAU,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,EAAC,aAAa,aACzD,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,SAC3B,GACR,IACF,IACF,GACF,CACR,CAAA;AACH,CAAC,CAAA;AAvDY,QAAA,aAAa,iBAuDzB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ChoiceItem.js b/dist/modules/lite/explorer/components/ChoiceItem.js deleted file mode 100644 index 3a2c91b..0000000 --- a/dist/modules/lite/explorer/components/ChoiceItem.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ChoiceItem=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const material_1=require('@mui/material');const icons_1=require('@material-ui/icons');const ChoiceItem=({index,description})=>{return(0,jsx_runtime_1.jsxs)(react_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(material_1.Grid,{container:true,px:3.5,py:1.5,justifyContent:'space-between',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(material_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(material_1.Typography,{variant:'body2',children:index})}),(0,jsx_runtime_1.jsx)(material_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(material_1.Typography,{variant:'body2',children:description})}),(0,jsx_runtime_1.jsx)(material_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(material_1.IconButton,{size:'small',children:(0,jsx_runtime_1.jsx)(icons_1.RemoveCircleOutline,{})})})]}),(0,jsx_runtime_1.jsx)(material_1.Divider,{})]});};exports.ChoiceItem=ChoiceItem; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ChoiceItem.js.map b/dist/modules/lite/explorer/components/ChoiceItem.js.map deleted file mode 100644 index 36df6ae..0000000 --- a/dist/modules/lite/explorer/components/ChoiceItem.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChoiceItem.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/ChoiceItem.tsx"],"names":[],"mappings":";;;;AAAA,iCAAuC;AACvC,4CAAqE;AACrE,8CAAwD;AAOjD,MAAM,UAAU,GAA8B,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE;IAC9E,OAAO,CACL,wBAAC,gBAAQ,eACP,wBAAC,eAAI,IAAC,SAAS,QAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,aACrF,uBAAC,eAAI,IAAC,IAAI,kBACR,uBAAC,qBAAU,IAAC,OAAO,EAAE,OAAO,YAAG,KAAK,GAAc,GAC7C,EACP,uBAAC,eAAI,IAAC,IAAI,kBACR,uBAAC,qBAAU,IAAC,OAAO,EAAE,OAAO,YAAG,WAAW,GAAc,GACnD,EAEP,uBAAC,eAAI,IAAC,IAAI,kBACR,uBAAC,qBAAU,IAAC,IAAI,EAAC,OAAO,YACtB,uBAAC,2BAAmB,KAAG,GACZ,GACR,IACF,EACP,uBAAC,kBAAO,KAAG,IACF,CACZ,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,UAAU,cAoBtB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ChoiceItemSelected.js b/dist/modules/lite/explorer/components/ChoiceItemSelected.js deleted file mode 100644 index bf3de2a..0000000 --- a/dist/modules/lite/explorer/components/ChoiceItemSelected.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ChoiceItemSelected=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const StyledContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({'borderRadius':4,'minHeight':75,'border':'1px solid','borderColor':theme.palette.primary.light,'cursor':'pointer','&:hover':{border:'1px solid',borderColor:theme.palette.secondary.main}}));const ChoiceItemSelected=({choice,setSelectedVotes,votes,multiple})=>{const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const handleVotes=choice=>{if(multiple){let votesArray=[...votes];if(!votesArray.includes(choice)){votesArray===null||votesArray===void 0?void 0:votesArray.push(choice);}else{votesArray=votesArray.filter(vote=>vote._id!==choice._id);}const setVotes=[...new Set(votesArray)];setVotes.forEach(vote=>vote.selected=true);setSelectedVotes(setVotes);}else{choice.selected=true;setSelectedVotes([choice]);}};return(0,jsx_runtime_1.jsx)(StyledContainer,{spacing:isMobileSmall?1:2,container:true,item:true,style:choice.selected?{border:'1px solid',borderColor:theme.palette.secondary.main}:{},xs:isMobileSmall?12:6,justifyContent:'center',alignItems:'center',onClick:()=>{handleVotes(choice);return;},children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body1',color:'textPrimary',children:choice.name})});};exports.ChoiceItemSelected=ChoiceItemSelected; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ChoiceItemSelected.js.map b/dist/modules/lite/explorer/components/ChoiceItemSelected.js.map deleted file mode 100644 index 5d55ff6..0000000 --- a/dist/modules/lite/explorer/components/ChoiceItemSelected.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChoiceItemSelected.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/ChoiceItemSelected.tsx"],"names":[],"mappings":";;;;AACA,4CAAqG;AAGrG,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAA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;aAAM;YACL,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAA;YACtB,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;SAC3B;IACH,CAAC,CAAA;IAED,OAAO,CACL,uBAAC,eAAe,IACd,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC9B,SAAS,QACT,IAAI,QACJ,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAChG,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAC1B,cAAc,EAAE,QAAQ,EACxB,UAAU,EAAC,QAAQ,EACnB,OAAO,EAAE,GAAG,EAAE;YACZ,WAAW,CAAC,MAAM,CAAC,CAAA;YACnB,OAAM;QACR,CAAC,YAED,uBAAC,iBAAU,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,aAAa,YAC5C,MAAM,CAAC,IAAI,GACD,GACG,CACnB,CAAA;AACH,CAAC,CAAA;AA7CY,QAAA,kBAAkB,sBA6C9B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/Choices.js b/dist/modules/lite/explorer/components/Choices.js deleted file mode 100644 index 13202b8..0000000 --- a/dist/modules/lite/explorer/components/Choices.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.Choices=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const icons_1=require('@material-ui/icons');const formik_1=require('formik');const formik_material_ui_1=require('formik-material-ui');const ChoicesContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({paddingBottom:19,background:theme.palette.primary.main,borderRadius:4}));const RemoveCircle=(0,core_1.styled)(icons_1.RemoveCircleOutline)(({theme})=>({color:theme.palette.error.main,cursor:'pointer'}));const Title=(0,core_1.styled)(core_1.Grid)(({theme})=>({paddingLeft:26,paddingRight:26,paddingTop:19,paddingBottom:19,borderBottom:`0.3px solid ${theme.palette.primary.light}`,marginTop:'0px !important'}));const ChoiceText=(0,core_1.styled)(core_1.Typography)({fontWeight:300,fontSize:17});const VotingContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({padding:'19px 26px 0px',borderBottom:`0.3px solid ${theme.palette.primary.light}`,height:80,[theme.breakpoints.down('sm')]:{height:120}}));const CustomFormikTextField=(0,core_1.withStyles)({root:{'& .MuiInput-root':{fontWeight:300,textAlign:'initial',marginTop:'0px !important',padding:'19px 26px 19px'},'& .MuiInputBase-input':{textAlign:'initial'},'& .MuiInput-underline:before':{borderBottom:'none !important'},'& .MuiInput-underline:hover:before':{borderBottom:'none !important'},'& .MuiInput-underline:after':{borderBottom:'none !important'}},disabled:{}})(formik_material_ui_1.TextField);const Choices=({choices,submitForm,isLoading,votingStrategy,setFieldValue})=>{return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'column',style:{gap:30},children:[(0,jsx_runtime_1.jsxs)(ChoicesContainer,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsx)(Title,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body2',color:'textPrimary',children:'Set Poll Options'})}),(0,jsx_runtime_1.jsx)(VotingContainer,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'votingStrategy',children:()=>(0,jsx_runtime_1.jsx)(core_1.Radio,{style:{paddingLeft:0},checked:Number(votingStrategy)===0,value:0,name:'radio-buttons',inputProps:{'aria-label':'A'},onClick:()=>setFieldValue('votingStrategy',0)})}),(0,jsx_runtime_1.jsx)(ChoiceText,{color:'textPrimary',children:'Single choice'})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'votingStrategy',children:()=>(0,jsx_runtime_1.jsx)(core_1.Radio,{style:{paddingLeft:0},checked:Number(votingStrategy)===1,value:1,name:'radio-buttons',inputProps:{'aria-label':'A'},onClick:()=>setFieldValue('votingStrategy',1)})}),(0,jsx_runtime_1.jsx)(ChoiceText,{color:'textPrimary',children:'Multiple choice'})]})]})}),(0,jsx_runtime_1.jsx)(formik_1.FieldArray,{name:'choices',render:arrayHelpers=>(0,jsx_runtime_1.jsxs)('div',{children:[choices&&choices.length>0?choices.map((choice,index)=>(0,jsx_runtime_1.jsx)('div',{children:(0,jsx_runtime_1.jsx)(formik_1.Field,{type:'text',name:`choices[${index}]`,placeholder:`Choice ${index+1}`,component:CustomFormikTextField,InputProps:{endAdornment:index!==0?(0,jsx_runtime_1.jsx)(core_1.InputAdornment,{position:'start',children:(0,jsx_runtime_1.jsx)(RemoveCircle,{onClick:()=>{if(index!==0){arrayHelpers.remove(index);}}})}):null}})},index)):null,(0,jsx_runtime_1.jsx)('div',{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',style:{gap:10,cursor:'pointer',paddingLeft:26,paddingTop:12},onClick:()=>arrayHelpers.insert(choices.length,''),children:[(0,jsx_runtime_1.jsx)(core_1.IconButton,{size:'small'}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body2',color:'secondary',children:'Add Choice'})]})})]})})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,style:{gap:10,marginTop:31},children:!isLoading?(0,jsx_runtime_1.jsx)(core_1.Button,{variant:'contained',color:'secondary',onClick:submitForm,children:'Create Proposal'}):(0,jsx_runtime_1.jsx)(core_1.CircularProgress,{color:'secondary'})})]});};exports.Choices=Choices; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/Choices.js.map b/dist/modules/lite/explorer/components/Choices.js.map deleted file mode 100644 index 5860023..0000000 --- a/dist/modules/lite/explorer/components/Choices.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Choices.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/Choices.tsx"],"names":[],"mappings":";;;;AACA,4CAW0B;AAE1B,8CAA0E;AAC1E,mCAA0C;AAC1C,2DAAiE;AAEjE,MAAM,gBAAgB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACpD,aAAa,EAAE,EAAE;IACjB,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;IACtC,YAAY,EAAE,CAAC;CAChB,CAAC,CAAC,CAAA;AAEH,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,2BAAmB,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI;IAC/B,MAAM,EAAE,SAAS;CAClB,CAAC,CAAC,CAAA;AAEH,MAAM,KAAK,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACzC,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,EAAE;IAChB,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,EAAE;IACjB,YAAY,EAAE,eAAe,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE;IAC1D,SAAS,EAAE,gBAAgB;CAC5B,CAAC,CAAC,CAAA;AAEH,MAAM,UAAU,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACpC,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,EAAE;CACb,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EA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AAC,CAAC,CACF,uBAAC,uBAAgB,IAAC,KAAK,EAAC,WAAW,GAAG,CACvC,GACI,IACF,CACR,CAAA;AACH,CAAC,CAAA;AAxGY,QAAA,OAAO,WAwGnB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/CommunityBadge.js b/dist/modules/lite/explorer/components/CommunityBadge.js deleted file mode 100644 index 139a9c7..0000000 --- a/dist/modules/lite/explorer/components/CommunityBadge.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.CommunityBadge=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const useCommunity_1=require('../hooks/useCommunity');const StyledAvatar=(0,core_1.styled)(core_1.Avatar)({height:27,width:27});const CommunityBadge=({id})=>{const community=(0,useCommunity_1.useCommunity)(id);return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:11},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledAvatar,{src:community===null||community===void 0?void 0:community.picUri,children:' '})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'subtitle2',children:community===null||community===void 0?void 0:community.name})})]});};exports.CommunityBadge=CommunityBadge; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/CommunityBadge.js.map b/dist/modules/lite/explorer/components/CommunityBadge.js.map deleted file mode 100644 index fa9cc37..0000000 --- a/dist/modules/lite/explorer/components/CommunityBadge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CommunityBadge.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/CommunityBadge.tsx"],"names":[],"mappings":";;;;AACA,4CAAoE;AACpE,wDAAoD;AAEpD,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC;IAClC,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;CACV,CAAC,CAAA;AAEK,MAAM,cAAc,GAA6B,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;IACjE,MAAM,SAAS,GAAG,IAAA,2BAAY,EAAC,EAAE,CAAC,CAAA;IAClC,OAAO,CACL,wBAAC,WAAI,IAAC,SAAS,QAAC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,aAChC,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,YAAY,IAAC,GAAG,EAAE,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,kBAAkB,GACjD,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,iBAAU,IAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAC,WAAW,YAChD,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,GACL,GACR,IACF,CACR,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,cAAc,kBAc1B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ContentContainer.js b/dist/modules/lite/explorer/components/ContentContainer.js deleted file mode 100644 index 8bb39ba..0000000 --- a/dist/modules/lite/explorer/components/ContentContainer.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ContentContainer=void 0;const core_1=require('@material-ui/core');exports.ContentContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({borderRadius:8,background:theme.palette.primary.main})); \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ContentContainer.js.map b/dist/modules/lite/explorer/components/ContentContainer.js.map deleted file mode 100644 index 5b73717..0000000 --- a/dist/modules/lite/explorer/components/ContentContainer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ContentContainer.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/ContentContainer.tsx"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,gBAAgB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3D,YAAY,EAAE,CAAC;IACf,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;CACvC,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/CreatorBadge.js b/dist/modules/lite/explorer/components/CreatorBadge.js deleted file mode 100644 index 637463f..0000000 --- a/dist/modules/lite/explorer/components/CreatorBadge.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.CreatorBadge=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const Blockie_1=require('../../../common/Blockie');const utils_1=require('../../../../services/contracts/utils');const CreatorBadge=({address})=>{return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:15},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'subtitle2',children:'by'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:9},children:[(0,jsx_runtime_1.jsx)(Blockie_1.Blockie,{address:address||'',size:27}),(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'subtitle2',children:(0,utils_1.toShortAddress)(address||'')})]})})]});};exports.CreatorBadge=CreatorBadge; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/CreatorBadge.js.map b/dist/modules/lite/explorer/components/CreatorBadge.js.map deleted file mode 100644 index 308e533..0000000 --- a/dist/modules/lite/explorer/components/CreatorBadge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CreatorBadge.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/CreatorBadge.tsx"],"names":[],"mappings":";;;;AACA,4CAAoD;AACpD,oDAAgD;AAChD,oDAAyD;AAElD,MAAM,YAAY,GAA8C,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,wBAAC,WAAI,IAAC,SAAS,QAAC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,aAChC,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,iBAAU,IAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAC,WAAW,mBAEtC,GACR,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,wBAAC,WAAI,IAAC,SAAS,QAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,aAC/B,uBAAC,iBAAO,IAAC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,GAAI,EAC7C,uBAAC,iBAAU,IAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAC,WAAW,YAChD,IAAA,sBAAc,EAAC,OAAO,IAAI,EAAE,CAAC,GACnB,IACR,GACF,IACF,CACR,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,YAAY,gBAkBxB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/DaoCard.js b/dist/modules/lite/explorer/components/DaoCard.js deleted file mode 100644 index 9749427..0000000 --- a/dist/modules/lite/explorer/components/DaoCard.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.DaoCard=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const react_router_1=require('react-router');const useTezos_1=require('../../../../services/beacon/hooks/useTezos');const explorer_1=require('../context/ActionSheets/explorer');const StyledAvatar=(0,core_1.styled)(core_1.Avatar)({height:84,width:84});const MembersText=(0,core_1.styled)(core_1.Typography)({fontWeight:200,fontSize:16,marginTop:-8,marginBottom:8});const DaoCardContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main,borderRadius:8,alignItems:'center',justifyContent:'center',flexDirection:'column',height:245,marginBottom:15,cursor:'pointer',padding:'inherit'}));const CommunityName=(0,core_1.styled)(core_1.Typography)({whiteSpace:'nowrap',textOverflow:'ellipsis',overflow:'hidden',textAlign:'center'});const CustomButton=(0,core_1.styled)(core_1.Button)(({theme})=>({'width':67,'height':34,'.MuiButton-containedSecondary:hover':{backgroundColor:`${theme.palette.secondary.main} !important`}}));const DaoCard=({community,setIsUpdated})=>{var _a;const navigate=(0,react_router_1.useHistory)();const {account}=(0,useTezos_1.useTezos)();const {isConnected}=(0,react_1.useContext)(explorer_1.DashboardContext);return(0,jsx_runtime_1.jsxs)(DaoCardContainer,{container:true,style:{gap:10},onClick:()=>navigate.push(`/explorer/community/${community._id}`),children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledAvatar,{src:community.picUri,children:' '})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,style:{cursor:'pointer',width:'inherit'},children:(0,jsx_runtime_1.jsx)(CommunityName,{variant:'body1',color:'textPrimary',children:community.name})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(MembersText,{variant:'body2',color:'textPrimary',children:[(_a=community.members)===null||_a===void 0?void 0:_a.length,' members']})})]});};exports.DaoCard=DaoCard; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/DaoCard.js.map b/dist/modules/lite/explorer/components/DaoCard.js.map deleted file mode 100644 index 2073ab6..0000000 --- a/dist/modules/lite/explorer/components/DaoCard.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DaoCard.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/DaoCard.tsx"],"names":[],"mappings":";;;;AAAA,iCAA8D;AAC9D,4CAA4E;AAC5E,+CAAyC;AAEzC,6DAAyD;AACzD,+DAAmE;AAEnE,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC;IAClC,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;CACV,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,aAAM,E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EAAC,2BAAgB,CAAC,CAAA;IAEpD,OAAO,CACL,wBAAC,gBAAgB,IACf,SAAS,QACT,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,uBAAuB,SAAS,CAAC,GAAG,EAAE,CAAC,aAEpE,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,YAAY,IAAC,GAAG,EAAE,SAAS,CAAC,MAAM,kBAAkB,GAChD,EACP,uBAAC,WAAI,IAAC,IAAI,QAAC,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,YACvD,uBAAC,aAAa,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAC,aAAa,YACjD,SAAS,CAAC,IAAI,GACD,GACX,EACP,uBAAC,WAAI,IAAC,IAAI,kBACR,wBAAC,WAAW,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAC,aAAa,aAC/C,MAAA,SAAS,CAAC,OAAO,0CAAE,MAAM,gBACd,GACT,IACU,CACpB,CAAA;AACH,CAAC,CAAA;AA1BY,QAAA,OAAO,WA0BnB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/DaoCardDetail.js b/dist/modules/lite/explorer/components/DaoCardDetail.js deleted file mode 100644 index 17bf21c..0000000 --- a/dist/modules/lite/explorer/components/DaoCardDetail.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.DaoCardDetail=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const react_1=require('react');const react_router_1=require('react-router');const explorer_1=require('../context/ActionSheets/explorer');const StyledAvatar=(0,core_1.styled)(core_1.Avatar)({height:159,width:159});const MembersText=(0,core_1.styled)(core_1.Typography)({fontWeight:300,fontSize:18,letterSpacing:'-0.01em',marginBottom:10});const CommunityText=(0,core_1.styled)(core_1.Typography)({fontWeight:500,fontSize:30,lineHeight:'146.3%'});const CommunityDescription=(0,core_1.styled)(core_1.Typography)({marginBottom:22,maxHeight:124,overflowY:'scroll',marginTop:10});const ProposalButton=(0,core_1.styled)(core_1.Button)({padding:8,fontSize:15});const DaoCardContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main,borderRadius:8,alignItems:'center',justifyContent:'center',flexDirection:'column',marginBottom:15,padding:'33px 40px'}));const DaoCardDetail=({community,setIsUpdated})=>{var _a;const navigate=(0,react_router_1.useHistory)();const theme=(0,core_1.useTheme)();const {isConnected}=(0,react_1.useContext)(explorer_1.DashboardContext);return(0,jsx_runtime_1.jsxs)(DaoCardContainer,{container:true,style:{gap:10},direction:'column',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(StyledAvatar,{src:community===null||community===void 0?void 0:community.picUri,children:' '})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,container:true,direction:'column',justifyContent:'center',alignItems:'center',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,direction:'column',container:true,alignItems:'center',children:[(0,jsx_runtime_1.jsx)(CommunityText,{color:'textPrimary',children:community===null||community===void 0?void 0:community.name}),(0,jsx_runtime_1.jsxs)(MembersText,{variant:'body1',color:'textPrimary',children:[(_a=community===null||community===void 0?void 0:community.members)===null||_a===void 0?void 0:_a.length,' members']})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(CommunityDescription,{variant:'body2',color:'textPrimary',children:community===null||community===void 0?void 0:community.description})}),isConnected?(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProposalButton,{variant:'contained',color:'secondary',size:'small',onClick:()=>navigate.push(`/explorer/lite/dao/${community===null||community===void 0?void 0:community._id}/community/proposal`),children:'New Proposal'})}):null]});};exports.DaoCardDetail=DaoCardDetail; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/DaoCardDetail.js.map b/dist/modules/lite/explorer/components/DaoCardDetail.js.map deleted file mode 100644 index 90b428a..0000000 --- a/dist/modules/lite/explorer/components/DaoCardDetail.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DaoCardDetail.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/DaoCardDetail.tsx"],"names":[],"mappings":";;;;AAAA,4CAAqG;AAErG,iCAAyC;AACzC,+CAAyC;AAEzC,+DAAmE;AAEnE,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC;IAClC,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,GAAG;CACX,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACrC,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,EAAE;IACZ,aAAa,EAAE,SAAS;IACxB,YAAY,EAAE,EAAE;CACjB,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IACvC,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,QAAQ;CACrB,CAAC,CAAA;AAEF,MAAM,oBAAoB,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IAC9C,YAAY,EAAE,EAAE;IAChB,SAAS,EAAE,GAAG;IACd,SAAS,EAAE,QAAQ;IACnB,SAAS,EAAE,EAAE;CACd,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC;IACpC,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,EAAE;CACb,CAAC,CAAA;AAEF,MAAM,gBAAgB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACpD,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAA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AoB,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,aAAa,YACtD,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,GACF,GAClB,EAEN,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,WAAI,IAAC,IAAI,kBACR,uBAAC,cAAc,IACb,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,WAAW,EACjB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,sBAAsB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,GAAG,qBAAqB,CAAC,6BAGxE,GACZ,CACR,CAAC,CAAC,CAAC,IAAI,IACS,CACpB,CAAA;AACH,CAAC,CAAA;AAvCY,QAAA,aAAa,iBAuCzB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ProposalDetailCard.js b/dist/modules/lite/explorer/components/ProposalDetailCard.js deleted file mode 100644 index 69e426e..0000000 --- a/dist/modules/lite/explorer/components/ProposalDetailCard.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalDetailCard=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importDefault(require('react'));const core_1=require('@material-ui/core');const GridContainer_1=require('../../../common/GridContainer');const ProposalTableRowStatusBadge_1=require('./ProposalTableRowStatusBadge');const CreatorBadge_1=require('./CreatorBadge');const icons_1=require('@material-ui/icons');const share_svg_1=__importDefault(require('../../../../assets/img/share.svg'));const CommunityBadge_1=require('./CommunityBadge');const link_svg_1=__importDefault(require('../../../../assets/img/link.svg'));const dayjs_1=__importDefault(require('dayjs'));const useNotification_1=require('../../../common/hooks/useNotification');const LogoItem=(0,core_1.styled)('img')({height:18,cursor:'pointer'});const TextContainer=(0,core_1.styled)(core_1.Typography)({display:'flex',alignItems:'center',gap:10,marginRight:8});const EndTextContainer=(0,core_1.styled)(core_1.Typography)(({theme})=>({display:'flex',alignItems:'center',gap:10,marginRight:8,[theme.breakpoints.down('sm')]:{marginTop:20}}));const EndText=(0,core_1.styled)(core_1.Typography)(({theme})=>({[theme.breakpoints.down('sm')]:{marginTop:20}}));const Divider=(0,core_1.styled)(core_1.Typography)(({theme})=>({marginLeft:8,marginRight:8,[theme.breakpoints.down('sm')]:{marginTop:20}}));const StyledLink=(0,core_1.styled)(core_1.Link)({fontFamily:'Roboto Mono',fontWeight:300,fontSize:16,marginLeft:8});const CopyIcon=(0,core_1.styled)(icons_1.FileCopyOutlined)({marginRight:8,cursor:'pointer'});const CustomPopover=(0,core_1.withStyles)({paper:{'marginTop':10,'padding':8,'cursor':'pointer','&:hover':{background:'#81feb76b !important'}}})(core_1.Popover);const ProposalDetailCard=({poll,daoId})=>{const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const [anchorEl,setAnchorEl]=react_1.default.useState(null);const openNotification=(0,useNotification_1.useNotification)();const handleClick=event=>{setAnchorEl(anchorEl?null:event.currentTarget);};const handleClose=()=>{setAnchorEl(null);};const open=Boolean(anchorEl);const id=open?'simple-popper':undefined;const handleCopy=()=>{const url=location.href;navigator.clipboard.writeText(url);openNotification({message:'Proposal link copied to clipboard!',autoHideDuration:3000,variant:'success'});handleClose();};return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:poll&&poll!==undefined?(0,jsx_runtime_1.jsx)(GridContainer_1.GridContainer,{container:true,style:{gap:50},children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:25},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,alignItems:'flex-end',direction:'row',style:{gap:isMobileSmall?25:0},justifyContent:'space-between',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h1',color:'textPrimary',children:poll===null||poll===void 0?void 0:poll.name})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,style:{gap:18},direction:'row',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:12,cursor:'pointer'},alignItems:'center','aria-describedby':id,onClick:handleClick,children:[(0,jsx_runtime_1.jsx)(LogoItem,{src:share_svg_1.default}),(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'secondary',variant:'body2',children:'Share'})]}),(0,jsx_runtime_1.jsx)(CustomPopover,{id:id,open:open,anchorEl:anchorEl,onClose:handleClose,anchorOrigin:{vertical:'bottom',horizontal:'left'},children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',onClick:handleCopy,children:[(0,jsx_runtime_1.jsx)(CopyIcon,{}),(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'subtitle2',children:'Copy link'})]})})]})})})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,justifyContent:'space-between',alignItems:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,justifyContent:isMobileSmall?'space-evenly':'flex-start',style:{gap:23},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProposalTableRowStatusBadge_1.TableStatusBadge,{status:(poll===null||poll===void 0?void 0:poll.isActive)||ProposalTableRowStatusBadge_1.ProposalStatus.ACTIVE})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(CommunityBadge_1.CommunityBadge,{id:daoId})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(CreatorBadge_1.CreatorBadge,{address:poll===null||poll===void 0?void 0:poll.author})})]})})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',spacing:2,alignItems:'center',children:[(0,jsx_runtime_1.jsxs)(TextContainer,{color:'textPrimary',variant:'body1',children:['Start date:',' ']}),(0,jsx_runtime_1.jsxs)(EndText,{variant:'body2',color:'textPrimary',children:[' ',(0,dayjs_1.default)(Number(poll===null||poll===void 0?void 0:poll.startTime)).format('lll')]}),(0,jsx_runtime_1.jsx)(Divider,{color:'textPrimary',children:'-'}),(0,jsx_runtime_1.jsxs)(EndTextContainer,{color:'textPrimary',variant:'body1',children:[' ','End date:',' ']}),(0,jsx_runtime_1.jsxs)(EndText,{variant:'body2',color:'textPrimary',children:[' ',(0,dayjs_1.default)(Number(poll===null||poll===void 0?void 0:poll.endTime)).format('lll')]})]})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body2',color:'textPrimary',children:poll===null||poll===void 0?void 0:poll.description})}),(poll===null||poll===void 0?void 0:poll.externalLink)?(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,alignItems:'center',children:[(0,jsx_runtime_1.jsx)(LogoItem,{src:link_svg_1.default}),(0,jsx_runtime_1.jsx)(StyledLink,{color:'secondary',href:'#',children:poll===null||poll===void 0?void 0:poll.externalLink})]}):null]})}):(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',children:'Could not load the requested proposal'})})});};exports.ProposalDetailCard=ProposalDetailCard; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ProposalDetailCard.js.map b/dist/modules/lite/explorer/components/ProposalDetailCard.js.map deleted file mode 100644 index c16532f..0000000 --- a/dist/modules/lite/explorer/components/ProposalDetailCard.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalDetailCard.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/ProposalDetailCard.tsx"],"names":[],"mappings":";;;;;;;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GAAG,EAAE,kBAAQ,GAAI,EAC3B,uBAAC,UAAU,IAAC,KAAK,EAAC,WAAW,EAAC,IAAI,EAAC,GAAG,YACnC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,GACR,IACR,CACR,CAAC,CAAC,CAAC,IAAI,IACH,GACO,CACjB,CAAC,CAAC,CAAC,CACF,uBAAC,WAAI,IAAC,SAAS,QAAC,SAAS,EAAC,KAAK,YAC7B,uBAAC,iBAAU,IAAC,KAAK,EAAC,aAAa,sDAAmD,GAC7E,CACR,GACA,CACJ,CAAA;AACH,CAAC,CAAA;AA5IY,QAAA,kBAAkB,sBA4I9B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ProposalList.js b/dist/modules/lite/explorer/components/ProposalList.js deleted file mode 100644 index 40bd872..0000000 --- a/dist/modules/lite/explorer/components/ProposalList.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalList=exports.StyledDivider=exports.ProposalPopularity=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const ProposalTableRow_1=require('./ProposalTableRow');const ProposalTableRowStatusBadge_1=require('./ProposalTableRowStatusBadge');const useNotification_1=require('../../../common/hooks/useNotification');const Dropdown_1=require('../../../explorer/components/Dropdown');const config_1=require('../../../../services/config');const node_fetch_1=__importDefault(require('node-fetch'));var ProposalPopularity;(function(ProposalPopularity){ProposalPopularity['RECENT']='recent';ProposalPopularity['POPULAR']='popular';}(ProposalPopularity||(exports.ProposalPopularity=ProposalPopularity={})));const ProposalListContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main,borderRadius:8}));const Header=(0,core_1.styled)(core_1.Grid)({padding:'24px 41px'});exports.StyledDivider=(0,core_1.styled)(core_1.Divider)({height:0.3,backgroundColor:'#7d8c8b',marginTop:0,marginBottom:0});const NoProposalsText=(0,core_1.styled)(core_1.Typography)({paddingTop:20,paddingBottom:20});const Title=(0,core_1.styled)(core_1.Typography)(({theme})=>({[theme.breakpoints.down('sm')]:{marginBottom:14,fontSize:16,marginLeft:-2}}));const ProposalList=({polls,id})=>{const communityId=id===null||id===void 0?void 0:id.toString();const openNotification=(0,useNotification_1.useNotification)();const [communityPolls,setCommunityPolls]=(0,react_1.useState)();const [isFilter,setIsFilter]=(0,react_1.useState)(false);const [isFilterByStatus,setIsFilterByStatus]=(0,react_1.useState)(1);const [statusFilter,setStatusFilter]=(0,react_1.useState)('');const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));(0,react_1.useEffect)(()=>{setCommunityPolls(polls);},[polls]);(0,react_1.useMemo)(()=>{function getPollToken(){return __awaiter(this,void 0,void 0,function*(){if(polls&&polls.length>0){polls.forEach(poll=>__awaiter(this,void 0,void 0,function*(){yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/token/${communityId}`).then(response=>__awaiter(this,void 0,void 0,function*(){if(!response.ok){openNotification({message:'An error has occurred',autoHideDuration:2000,variant:'error'});return;}const record=yield response.json();if(!record){return;}poll.tokenAddress=record.tokenAddress;poll.tokenSymbol=record.symbol;poll.tokenDecimals=record.decimals;return;}));}));}});}getPollToken();return;},[polls,communityId]);const filterProposals=status=>{setStatusFilter(status);if(status==='all'){setIsFilterByStatus(Math.random());if(isFilter){sortByPopularity;return;}setCommunityPolls(polls);return;}if(status!=='all'){setIsFilterByStatus(Math.random());if(isFilter){sortByPopularity;return;}const formatted=polls.filter(poll=>poll.isActive===status);setCommunityPolls(formatted);}};const filterProposalByPopularity=status=>{status===ProposalPopularity.RECENT?setIsFilter(false):setIsFilter(true);};const sortByRecent=(0,react_1.useMemo)(()=>{if(!isFilter){if(!isFilterByStatus||statusFilter===''){setCommunityPolls(polls);setIsFilter(false);}else{if(statusFilter!=='all'){const formatted=polls.filter(poll=>poll.isActive===statusFilter);setCommunityPolls(formatted);}else{setCommunityPolls(polls);}setIsFilter(false);}}},[isFilter,statusFilter]);const sortByPopularity=(0,react_1.useMemo)(status=>{if(isFilter){if(status!==ProposalTableRowStatusBadge_1.ProposalStatus.ACTIVE&&status!==ProposalTableRowStatusBadge_1.ProposalStatus.CLOSED&&status!==undefined){const formatted=polls.slice().sort((a,b)=>(a.votes&&a.votes>0?a.votes:0)>(b.votes&&b.votes>0?b.votes:0)?-1:1);setCommunityPolls(formatted);setIsFilter(true);}else{let formatted;if(statusFilter==='all'||statusFilter===''){formatted=polls;}else{formatted=polls.filter(poll=>poll.isActive===statusFilter);}setCommunityPolls(formatted);const formattedByPopularity=formatted.slice().sort((a,b)=>(a.votes&&a.votes>0?a.votes:0)>(b.votes&&b.votes>0?b.votes:0)?-1:1);setCommunityPolls(formattedByPopularity);setIsFilter(true);}}},[isFilter,statusFilter]);return(0,jsx_runtime_1.jsxs)(ProposalListContainer,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsxs)(Header,{container:true,justifyContent:'space-between',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:isMobileSmall?12:3,children:(0,jsx_runtime_1.jsx)(Title,{variant:'body2',color:'textPrimary',children:'Off-Chain'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:isMobileSmall?6:4,container:true,direction:'row',justifyContent:'flex-end',children:(0,jsx_runtime_1.jsx)(Dropdown_1.Dropdown,{options:[{name:'Most recent',value:'recent'},{name:'Most popular',value:'popular'}],value:'recent',onSelected:filterProposalByPopularity})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:isMobileSmall?6:3,container:true,direction:'row',justifyContent:'flex-end',children:(0,jsx_runtime_1.jsx)(Dropdown_1.Dropdown,{options:[{name:'All',value:'all'},{name:'Active',value:'active'},{name:'Closed',value:'closed'}],value:'all',onSelected:filterProposals})})]}),(0,jsx_runtime_1.jsx)(exports.StyledDivider,{}),communityPolls&&communityPolls.length>0?communityPolls.map((poll,i)=>{return(0,jsx_runtime_1.jsxs)('div',{children:[(0,jsx_runtime_1.jsx)(ProposalTableRow_1.ProposalTableRow,{poll:poll}),communityPolls.length-1!==i?(0,jsx_runtime_1.jsx)(exports.StyledDivider,{},`divider-${i}`):null]},`poll-${i}`);}):(0,jsx_runtime_1.jsx)(Header,{children:(0,jsx_runtime_1.jsx)(NoProposalsText,{color:'textPrimary',children:'No proposals'})})]});};exports.ProposalList=ProposalList; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ProposalList.js.map b/dist/modules/lite/explorer/components/ProposalList.js.map deleted file mode 100644 index 4ca37ad..0000000 --- a/dist/modules/lite/explorer/components/ProposalList.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalList.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/ProposalList.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,iCAA2D;AAC3D,4CAA8F;AAC9F,yDAAqD;AACrD,+EAA8D;AAI9D,0EAAsE;AACtE,mEAA+D;AAC/D,4CAAgD;AAChD,4DAA+B;AAE/B,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;AACrB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,MAAM,qBAAqB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAA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,6BAA+B,GAC5D,CACV,IACqB,CACzB,CAAA;AACH,CAAC,CAAA;AApKY,QAAA,YAAY,gBAoKxB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ProposalTableRow.js b/dist/modules/lite/explorer/components/ProposalTableRow.js deleted file mode 100644 index 94f1869..0000000 --- a/dist/modules/lite/explorer/components/ProposalTableRow.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalTableRow=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const RowContainer_1=require('./tables/RowContainer');const ProposalTableRowStatusBadge_1=require('./ProposalTableRowStatusBadge');const react_router_1=require('react-router');const Blockie_1=require('../../../common/Blockie');const utils_1=require('../../../../services/contracts/utils');const ChoiceDetails_1=require('./ChoiceDetails');const usePollChoices_1=require('../hooks/usePollChoices');const ArrowInfo=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontFamily:'Roboto Mono',fontWeight:500,fontSize:16,[theme.breakpoints.down('xs')]:{marginTop:5}}));const Address=(0,core_1.styled)(core_1.Typography)({marginLeft:12});const BlockieContainer=(0,core_1.styled)(core_1.Grid)({marginBottom:19});const DescriptionText=(0,core_1.styled)(core_1.Typography)(({theme})=>({fontWeight:300,fontSize:18,marginBottom:25,[theme.breakpoints.down('sm')]:{fontSize:16}}));const ProposalTableRow=({poll})=>{const navigate=(0,react_router_1.useHistory)();const theme=(0,core_1.useTheme)();const isMobile=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const choices=(0,usePollChoices_1.usePollChoices)(poll);return(0,jsx_runtime_1.jsxs)(RowContainer_1.RowContainer,{item:true,container:true,alignItems:'center',onClick:()=>navigate.push(`/explorer/lite/dao/${poll.daoID}/community/proposal/${poll._id}`,{poll:poll}),children:[(0,jsx_runtime_1.jsxs)(BlockieContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(Blockie_1.Blockie,{address:'tz1bQgEea45ciBpYdFj4y4P3hNyDM8aMF6WB',size:24}),(0,jsx_runtime_1.jsx)(Address,{color:'textPrimary',variant:'subtitle2',children:(0,utils_1.toShortAddress)(poll.author)})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,item:true,style:{gap:25},xs:12,md:12,justifyContent:isMobile?'center':'flex-start',children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'h4',color:'textPrimary',align:isMobile?'center':'left',children:poll.name}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:isMobile?'column':'row',alignItems:isMobileSmall?'center':'flex-start',wrap:'nowrap',style:{gap:18},children:[(0,jsx_runtime_1.jsx)(ProposalTableRowStatusBadge_1.TableStatusBadge,{status:poll.isActive||ProposalTableRowStatusBadge_1.ProposalStatus.ACTIVE}),(0,jsx_runtime_1.jsx)(ArrowInfo,{color:'textPrimary',children:poll.timeFormatted})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{children:(0,jsx_runtime_1.jsx)(DescriptionText,{color:'textPrimary',children:poll.description})})]}),choices&&choices.length>0?choices.map((choice,index)=>(0,jsx_runtime_1.jsx)(ChoiceDetails_1.ChoiceDetails,{poll:poll,choice:choice,index:index},`'choice-'${choice.name}${index}`)):null]});};exports.ProposalTableRow=ProposalTableRow; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ProposalTableRow.js.map b/dist/modules/lite/explorer/components/ProposalTableRow.js.map deleted file mode 100644 index ae9e1b7..0000000 --- a/dist/modules/lite/explorer/components/ProposalTableRow.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalTableRow.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/ProposalTableRow.tsx"],"names":[],"mappings":";;;;AACA,4CAAqG;AACrG,wDAAoD;AACpD,+EAAgF;AAChF,+CAAyC;AACzC,oDAAgD;AAChD,oDAAyD;AAGzD,mDAA+C;AAC/C,4DAAwD;AAOxD,MAA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AAC,MAAM,GAAI,EACpE,uBAAC,SAAS,IAAC,KAAK,EAAC,aAAa,YAAE,IAAI,CAAC,aAAa,GAAa,IAC1D,EAEP,uBAAC,WAAI,cACH,uBAAC,eAAe,IAAC,KAAK,EAAC,aAAa,YAAE,IAAI,CAAC,WAAW,GAAmB,GACpE,IACF,EAEN,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC;gBAC5B,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAc,EAAE,KAAa,EAAE,EAAE,CAAC,CAC7C,uBAAC,6BAAa,IAEZ,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,IAHP,YAAY,MAAM,CAAC,IAAI,GAAG,KAAK,EAAE,CAIvB,CAClB,CAAC;gBACJ,CAAC,CAAC,IAAI,IACK,CAChB,CAAA;AACH,CAAC,CAAA;AArDY,QAAA,gBAAgB,oBAqD5B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ProposalTableRowStatusBadge.js b/dist/modules/lite/explorer/components/ProposalTableRowStatusBadge.js deleted file mode 100644 index e34f96e..0000000 --- a/dist/modules/lite/explorer/components/ProposalTableRowStatusBadge.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.TableStatusBadge=exports.ProposalStatus=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const styles_1=require('@material-ui/core/styles');const hex_to_rgba_1=__importDefault(require('hex-to-rgba'));var ProposalStatus;(function(ProposalStatus){ProposalStatus['ACTIVE']='active';ProposalStatus['CLOSED']='closed';}(ProposalStatus||(exports.ProposalStatus=ProposalStatus={})));const getStatusColor=(status,theme)=>{const statusToColor={[ProposalStatus.ACTIVE]:theme.palette.secondary.main,[ProposalStatus.CLOSED]:'#7e496f'};return statusToColor[status];};const Badge=(0,styles_1.styled)(core_1.Grid)(({status,theme})=>({'borderRadius':4,'boxSizing':'border-box','minWidth':87,'textAlign':'center','padding':'2px 16px','background':(0,hex_to_rgba_1.default)(getStatusColor(status,theme),0.4),'color':getStatusColor(status,theme),'& > div':{height:'100%'}}));const Text=(0,styles_1.styled)(core_1.Typography)({fontWeight:500,fontSize:16});const TableStatusBadge=({status})=>(0,jsx_runtime_1.jsx)(Badge,{status:status,children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,alignItems:'center',justifyContent:'center',children:(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsxs)(Text,{children:[' ',status.toUpperCase(),' ']})})})});exports.TableStatusBadge=TableStatusBadge; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/ProposalTableRowStatusBadge.js.map b/dist/modules/lite/explorer/components/ProposalTableRowStatusBadge.js.map deleted file mode 100644 index 303890a..0000000 --- a/dist/modules/lite/explorer/components/ProposalTableRowStatusBadge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalTableRowStatusBadge.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/ProposalTableRowStatusBadge.tsx"],"names":[],"mappings":";;;;;;;AACA,4CAA+D;AAC/D,qDAAwD;AACxD,8DAAmC;AAEnC,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;AACnB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,MAAM,cAAc,GAAG,CAAC,MAAsB,EAAE,KAAY,EAAU,EAAE;IACtE,MAAM,aAAa,GAAG;QACpB,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI;QACrD,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,SAAS;KACnC,CAAA;IAED,OAAO,aAAa,CAAC,MAAM,CAAC,CAAA;AAC9B,CAAC,CAAA;AAED,MAAM,KAAK,GAAG,IAAA,eAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAA4C,EAAE,EAAE,CAAC,CAAC;IAC3F,cAAc,EAAE,CAAC;IACjB,WAAW,EAAE,YAAY;IACzB,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,QAAQ;IACrB,SAAS,EAAE,UAAU;IAErB,YAAY,EAAE,IAAA,qBAAS,EAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,CAAC;IAC3D,OAAO,EAAE,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC;IACtC,SAAS,EAAE;QACT,MAAM,EAAE,MAAM;KACf;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,iBAAU,CAAC,CAAC;IAC9B,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,EAAE;CACb,CAAC,CAAA;AAEK,MAAM,gBAAgB,GAAqD,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAChG,uBAAC,KAAK,IAAC,MAAM,EAAE,MAAM,YACnB,uBAAC,WAAI,IAAC,SAAS,QAAC,UAAU,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,YACzD,uBAAC,WAAI,IAAC,IAAI,kBACR,wBAAC,IAAI,oBAAG,MAAM,CAAC,WAAW,EAAE,SAAS,GAChC,GACF,GACD,CACT,CAAA;AARY,QAAA,gBAAgB,oBAQ5B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/UserProfileName.js b/dist/modules/lite/explorer/components/UserProfileName.js deleted file mode 100644 index 3bf0c4d..0000000 --- a/dist/modules/lite/explorer/components/UserProfileName.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.UserProfileName=void 0;const jsx_runtime_1=require('react/jsx-runtime');const utils_1=require('../../../../services/contracts/utils');const useProfileClaim_1=require('../../../../services/tzprofiles/hooks/useProfileClaim');const UserProfileName=({address,short})=>{const {data:profile}=(0,useProfileClaim_1.useProfileClaim)(address);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:(profile===null||profile===void 0?void 0:profile.credentialSubject.alias)||(short?(0,utils_1.toShortAddress)(address):address)});};exports.UserProfileName=UserProfileName; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/UserProfileName.js.map b/dist/modules/lite/explorer/components/UserProfileName.js.map deleted file mode 100644 index e7ca3d9..0000000 --- a/dist/modules/lite/explorer/components/UserProfileName.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UserProfileName.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/UserProfileName.tsx"],"names":[],"mappings":";;;;AACA,oDAAyD;AACzD,+EAA2E;AAEpE,MAAM,eAAe,GAAmD,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IACpG,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAA,iCAAe,EAAC,OAAO,CAAC,CAAA;IAElD,OAAO,2DAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,CAAC,KAAK,KAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAA,sBAAc,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAI,CAAA;AAC/F,CAAC,CAAA;AAJY,QAAA,eAAe,mBAI3B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/VoteDetails.js b/dist/modules/lite/explorer/components/VoteDetails.js deleted file mode 100644 index c75dc31..0000000 --- a/dist/modules/lite/explorer/components/VoteDetails.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,'default',{enumerable:true,value:v});}:function(o,v){o['default']=v;});var __importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)if(k!=='default'&&Object.prototype.hasOwnProperty.call(mod,k))__createBinding(result,mod,k);__setModuleDefault(result,mod);return result;};var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.VoteDetails=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importStar(require('react'));const core_1=require('@material-ui/core');const GridContainer_1=require('../../../common/GridContainer');const VotesDialog_1=require('./VotesDialog');const utils_1=require('../../../../services/lite/utils');const useTezos_1=require('../../../../services/beacon/hooks/useTezos');const useCommunityToken_1=require('../hooks/useCommunityToken');const Container=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main,borderRadius:8}));const TitleContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({paddingTop:18,paddingLeft:46,paddingRight:46,paddingBottom:18,borderBottom:`0.3px solid ${theme.palette.primary.light}`,[theme.breakpoints.down('sm')]:{padding:'18px 25px'}}));const LinearContainer=(0,core_1.styled)(GridContainer_1.GridContainer)({paddingBottom:0,minHeight:110});const LegendContainer=(0,core_1.styled)(GridContainer_1.GridContainer)({minHeight:30,paddingBottom:0});const GraphicsContainer=(0,core_1.styled)(core_1.Grid)({paddingBottom:25});const VoteDetails=({poll,choices,token,communityId})=>{const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('xs'));const isMobile=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const [open,setOpen]=react_1.default.useState(false);const {network}=(0,useTezos_1.useTezos)();const [turnout,setTurnout]=(0,react_1.useState)(0);const [votes,setVotes]=(0,react_1.useState)([]);const tokenData=(0,useCommunityToken_1.useCommunityToken)(communityId);const handleClickOpen=()=>{setVotes(choices.filter(elem=>elem.walletAddresses.length>0));if(!isMobile){setOpen(true);}};const handleClose=()=>{setOpen(false);};(0,react_1.useMemo)(()=>__awaiter(void 0,void 0,void 0,function*(){if(token&&token!==undefined){const value=yield(0,utils_1.getTurnoutValue)(network,token,Number(poll===null||poll===void 0?void 0:poll.referenceBlock),(0,utils_1.getTotalVoters)(choices));setTurnout(value);}}),[poll,choices,network,token]);return(0,jsx_runtime_1.jsxs)(Container,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsx)(TitleContainer,{item:true,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{variant:'body2',color:'textPrimary',children:'Results'})}),(0,jsx_runtime_1.jsxs)(GraphicsContainer,{container:true,children:[choices&&choices.map((choice,index)=>(0,jsx_runtime_1.jsxs)(LinearContainer,{container:true,direction:'column',style:{gap:20},children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,lg:6,sm:6,children:(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'body2',children:choice.name})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,lg:6,sm:6,container:true,justifyContent:isMobileSmall?'flex-start':'flex-end',children:choice&&choice.walletAddresses?(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',variant:'body2',children:[choice.walletAddresses.length,' Voters -',' ',(0,utils_1.nFormatter)((0,utils_1.calculateChoiceTotal)(choice.walletAddresses,tokenData===null||tokenData===void 0?void 0:tokenData.decimals),1),' ',tokenData===null||tokenData===void 0?void 0:tokenData.symbol]}):null})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:10,lg:11,sm:11,children:(0,jsx_runtime_1.jsx)(core_1.LinearProgress,{style:{width:'100%',marginRight:'4px'},color:'secondary',value:(0,utils_1.calculateWeight)(poll===null||poll===void 0?void 0:poll.totalSupplyAtReferenceBlock,(0,utils_1.calculateChoiceTotal)(choice.walletAddresses,tokenData===null||tokenData===void 0?void 0:tokenData.decimals),tokenData===null||tokenData===void 0?void 0:tokenData.decimals).dp(2,1).toNumber(),variant:'determinate'})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:2,lg:1,sm:1,container:true,justifyContent:'flex-end',children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',variant:'body2',children:[(0,utils_1.calculateWeight)(poll===null||poll===void 0?void 0:poll.totalSupplyAtReferenceBlock,(0,utils_1.calculateChoiceTotal)(choice.walletAddresses,tokenData===null||tokenData===void 0?void 0:tokenData.decimals),tokenData===null||tokenData===void 0?void 0:tokenData.decimals).dp(2,1).toString(),'%']})})]})]},`'option-'${index}`)),(0,jsx_runtime_1.jsxs)(LegendContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',xs:12,sm:6,md:6,lg:6,style:{gap:10},children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'secondary',variant:'body1',onClick:()=>handleClickOpen(),children:(0,utils_1.getTotalVoters)(choices)}),(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'body1',children:'Votes'}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',variant:'body2',children:['(',turnout.toFixed(2),' % Turnout)']})]}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,container:true,direction:'row',xs:12,md:6,sm:6,lg:6,style:{gap:10},justifyContent:isMobileSmall?'flex-start':'flex-end',children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'body1',children:(0,utils_1.nFormatter)((0,utils_1.calculateProposalTotal)(choices,tokenData===null||tokenData===void 0?void 0:tokenData.decimals),1)}),(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'body1',children:poll===null||poll===void 0?void 0:poll.tokenSymbol}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',variant:'body2',children:['(',(0,utils_1.getTreasuryPercentage)((0,utils_1.calculateProposalTotal)(choices,tokenData===null||tokenData===void 0?void 0:tokenData.decimals),poll===null||poll===void 0?void 0:poll.totalSupplyAtReferenceBlock,tokenData===null||tokenData===void 0?void 0:tokenData.decimals).dp(5,1).toString(),'% of Total Supply)']})]})]}),(0,jsx_runtime_1.jsx)(VotesDialog_1.VotesDialog,{decimals:(tokenData===null||tokenData===void 0?void 0:tokenData.decimals)?tokenData===null||tokenData===void 0?void 0:tokenData.decimals:'',symbol:(tokenData===null||tokenData===void 0?void 0:tokenData.symbol)?tokenData===null||tokenData===void 0?void 0:tokenData.symbol:'',choices:votes,open:open,handleClose:handleClose})]})]});};exports.VoteDetails=VoteDetails; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/VoteDetails.js.map b/dist/modules/lite/explorer/components/VoteDetails.js.map deleted file mode 100644 index 144bd02..0000000 --- a/dist/modules/lite/explorer/components/VoteDetails.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VoteDetails.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/VoteDetails.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2EAA2E;AAC3E,6DAA6D;AAC7D,+CAA2D;AAC3D,4CAAqG;AACrG,gEAA4D;AAC5D,+CAA2C;AAG3C,+CAQ4B;AAC5B,6DAAyD;AACzD,kEAA8D;AAE9D,MAAM,SAAS,GAAG,IA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,IAAI,uBAAJ,IAAI,CAAE,WAAW,GACP,EACb,wBAAC,iBAAU,IAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAC,OAAO,kBAE5C,IAAA,6BAAqB,EACpB,IAAA,8BAAsB,EAAC,OAAO,EAAE,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CAAC,EACpD,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,2BAA2B,EACjC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CACpB;iDACE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;iDACR,QAAQ,EAAE,0BAEF,IACR,IACS,EAClB,uBAAC,yBAAW,IACV,QAAQ,EAAE,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,EAAC,CAAC,CAAC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,EACxD,MAAM,EAAE,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,EAAC,CAAC,CAAC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAClD,OAAO,EAAE,KAAK,EACd,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,GACxB,IACgB,IACV,CACb,CAAA;AACH,CAAC,CAAA;AAjJY,QAAA,WAAW,eAiJvB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/VotesDialog.js b/dist/modules/lite/explorer/components/VotesDialog.js deleted file mode 100644 index e60fa4d..0000000 --- a/dist/modules/lite/explorer/components/VotesDialog.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.VotesDialog=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=__importDefault(require('react'));const core_1=require('@material-ui/core');const utils_1=require('../../../../services/contracts/utils');const icons_1=require('@material-ui/icons');const utils_2=require('../../../../services/lite/utils');const useNotification_1=require('../../../common/hooks/useNotification');const CustomContent=(0,core_1.styled)(core_1.DialogContent)({padding:'0px 54px 22px 54px !important'});const CustomDialogActions=(0,core_1.styled)(core_1.DialogActions)({justifyContent:'center !important',paddingBottom:20});const CopyIcon=(0,core_1.styled)(icons_1.FileCopyOutlined)({marginLeft:8,cursor:'pointer'});const CustomTitle=(0,core_1.styled)(core_1.Typography)(({theme})=>({borderBottom:`0.3px solid ${theme.palette.primary.main}`,paddingBottom:16}));const VotesDialog=({open,handleClose,choices,symbol,decimals})=>{const descriptionElementRef=react_1.default.useRef(null);const openNotification=(0,useNotification_1.useNotification)();react_1.default.useEffect(()=>{if(open){const {current:descriptionElement}=descriptionElementRef;if(descriptionElement!==null){descriptionElement.focus();}}},[open]);const copyAddress=address=>{navigator.clipboard.writeText(address);openNotification({message:'Address copied!',autoHideDuration:2000,variant:'info'});};return(0,jsx_runtime_1.jsx)('div',{children:(0,jsx_runtime_1.jsxs)(core_1.Dialog,{disableEscapeKeyDown:true,open:open,onClose:handleClose,scroll:'paper','aria-labelledby':'scroll-dialog-title','aria-describedby':'scroll-dialog-description',children:[(0,jsx_runtime_1.jsxs)(core_1.DialogTitle,{id:'scroll-dialog-title',children:[' ',(0,jsx_runtime_1.jsxs)(CustomTitle,{color:'textPrimary',variant:'body2',children:[(0,utils_2.getTotalVoters)(choices),' Votes:']})]}),(0,jsx_runtime_1.jsx)(CustomContent,{children:(0,jsx_runtime_1.jsx)(core_1.DialogContentText,{id:'scroll-dialog-description',ref:descriptionElementRef,tabIndex:-1,children:choices.map((elem,index)=>{{return elem.walletAddresses.map((choice,num)=>{return(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',alignItems:'baseline',children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,xs:6,md:4,lg:4,xl:4,container:true,direction:'row',alignItems:'center',children:[(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',children:[' ',(0,utils_1.toShortAddress)(choice.address)]}),(0,jsx_runtime_1.jsx)(CopyIcon,{onClick:()=>copyAddress(choice.address),color:'secondary',fontSize:'inherit'})]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,md:4,lg:4,xl:4,container:true,justifyContent:'center',children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',variant:'body1',children:[' ',elem.name,' ']})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:6,md:4,lg:4,xl:4,container:true,justifyContent:'flex-end',children:(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'textPrimary',variant:'body1',children:[' ',(0,utils_2.formatByDecimals)(choice.balanceAtReferenceBlock,decimals),' ',symbol,' ']})})]},`'row-'${index}${num}`);});}})})}),(0,jsx_runtime_1.jsx)(CustomDialogActions,{children:(0,jsx_runtime_1.jsx)(core_1.Button,{variant:'contained',color:'secondary',onClick:handleClose,children:'Close'})})]})});};exports.VotesDialog=VotesDialog; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/VotesDialog.js.map b/dist/modules/lite/explorer/components/VotesDialog.js.map deleted file mode 100644 index cd60125..0000000 --- a/dist/modules/lite/explorer/components/VotesDialog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VotesDialog.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/components/VotesDialog.tsx"],"names":[],"mappings":";;;;;;;AAAA,kDAAkD;AAClD,4CAU0B;AAC1B,oDAAyD;AACzD,8CAAqD;AAErD,+CAAsE;AACtE,0EAAsE;AAEtE,MAAM,aAAa,GAAG,IAAA,aAAM,EAAC,oBAAa,CAAC,CAAC;IAC1C,OAAO,EAAE,+BAA+B;CACzC,CAAC,CAAA;AAEF,MAAM,mBAAmB,GAAG,IAAA,aAAM,EAAC,oBAAa,CAAC,CAAC;IAChD,cAAc,EAAE,mBAAmB;IACnC,aAAa,EAAE,EAAE;CAClB,CAAC,CAAA;AA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AAa,EAAC,OAAO,EAAC,OAAO,aAC5C,GAAG,EACH,IAAI,CAAC,IAAI,EAAE,GAAG,IACJ,GACR,EACP,uBAAC,WAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,QAAC,cAAc,EAAC,UAAU,YACxE,wBAAC,iBAAU,IAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAC,OAAO,aAC5C,GAAG,EACH,IAAA,wBAAgB,EAAC,MAAM,CAAC,uBAAuB,EAAE,QAAQ,CAAC,OAAG,MAAM,EAAE,GAAG,IAC9D,GACR,KAhBkD,SAAS,KAAK,GAAG,GAAG,EAAE,CAiB1E,CACR,CAAA;gCACH,CAAC,CAAC,CAAA;6BACH;wBACH,CAAC,CAAC,GACgB,GACN,EAChB,uBAAC,mBAAmB,cAClB,uBAAC,aAAM,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,WAAW,EAAC,OAAO,EAAE,WAAW,sBAEzD,GACW,IACf,GACL,CACP,CAAA;AACH,CAAC,CAAA;AAlFY,QAAA,WAAW,eAkFvB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/styled/ErrorText.js b/dist/modules/lite/explorer/components/styled/ErrorText.js deleted file mode 100644 index 479eadc..0000000 --- a/dist/modules/lite/explorer/components/styled/ErrorText.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ErrorText=void 0;const core_1=require('@material-ui/core');exports.ErrorText=(0,core_1.styled)(core_1.Typography)({fontSize:14,color:'red'}); \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/styled/ErrorText.js.map b/dist/modules/lite/explorer/components/styled/ErrorText.js.map deleted file mode 100644 index 4c698d5..0000000 --- a/dist/modules/lite/explorer/components/styled/ErrorText.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ErrorText.js","sourceRoot":"","sources":["../../../../../../src/modules/lite/explorer/components/styled/ErrorText.tsx"],"names":[],"mappings":";;;AAAA,4CAAsD;AAEzC,QAAA,SAAS,GAAG,IAAA,aAAM,EAAC,iBAAU,CAAC,CAAC;IAC1C,QAAQ,EAAE,EAAE;IACZ,KAAK,EAAE,KAAK;CACb,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/styled/HighlightedBadge.js b/dist/modules/lite/explorer/components/styled/HighlightedBadge.js deleted file mode 100644 index 6b18061..0000000 --- a/dist/modules/lite/explorer/components/styled/HighlightedBadge.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.HighlightedBadge=void 0;const core_1=require('@material-ui/core');const hex_to_rgba_1=__importDefault(require('hex-to-rgba'));exports.HighlightedBadge=(0,core_1.styled)(core_1.Grid)(({theme})=>({backgroundColor:(0,hex_to_rgba_1.default)(theme.palette.secondary.main,0.07),boxSizing:'border-box',padding:'8px 16px',width:'fit-content',borderRadius:4})); \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/styled/HighlightedBadge.js.map b/dist/modules/lite/explorer/components/styled/HighlightedBadge.js.map deleted file mode 100644 index 6587522..0000000 --- a/dist/modules/lite/explorer/components/styled/HighlightedBadge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HighlightedBadge.js","sourceRoot":"","sources":["../../../../../../src/modules/lite/explorer/components/styled/HighlightedBadge.tsx"],"names":[],"mappings":";;;;;;AAAA,4CAAgD;AAChD,8DAAmC;AAEtB,QAAA,gBAAgB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3D,eAAe,EAAE,IAAA,qBAAS,EAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IAC9D,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,aAAa;IACpB,YAAY,EAAE,CAAC;CAChB,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/styled/InfoIcon.js b/dist/modules/lite/explorer/components/styled/InfoIcon.js deleted file mode 100644 index c9311a3..0000000 --- a/dist/modules/lite/explorer/components/styled/InfoIcon.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.InfoIcon=void 0;const core_1=require('@material-ui/core');const icons_1=require('@material-ui/icons');exports.InfoIcon=(0,core_1.styled)(icons_1.InfoOutlined)({cursor:'default',marginLeft:5,verticalAlign:'top'}); \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/styled/InfoIcon.js.map b/dist/modules/lite/explorer/components/styled/InfoIcon.js.map deleted file mode 100644 index 241e82e..0000000 --- a/dist/modules/lite/explorer/components/styled/InfoIcon.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InfoIcon.js","sourceRoot":"","sources":["../../../../../../src/modules/lite/explorer/components/styled/InfoIcon.tsx"],"names":[],"mappings":";;;AAAA,4CAA0C;AAC1C,8CAAiD;AAEpC,QAAA,QAAQ,GAAG,IAAA,aAAM,EAAC,oBAAY,CAAC,CAAC;IAC3C,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,CAAC;IACb,aAAa,EAAE,KAAK;CACrB,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/styled/ProfileAvatar.js b/dist/modules/lite/explorer/components/styled/ProfileAvatar.js deleted file mode 100644 index 574ea4b..0000000 --- a/dist/modules/lite/explorer/components/styled/ProfileAvatar.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ProfileAvatar=void 0;const jsx_runtime_1=require('react/jsx-runtime');const core_1=require('@material-ui/core');const Blockie_1=require('../../../../common/Blockie');const useProfileClaim_1=require('../../../../../services/tzprofiles/hooks/useProfileClaim');const StyledAvatar=(0,core_1.styled)(core_1.Avatar)(({size})=>({width:size||40,height:size||40}));const ProfileAvatar=({address,size})=>{const {data:profile}=(0,useProfileClaim_1.useProfileClaim)(address);return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:profile?(0,jsx_runtime_1.jsx)(StyledAvatar,{alt:profile.credentialSubject.alias,src:profile.credentialSubject.logo,size:size}):(0,jsx_runtime_1.jsx)(Blockie_1.Blockie,{address:address,size:size})});};exports.ProfileAvatar=ProfileAvatar; \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/styled/ProfileAvatar.js.map b/dist/modules/lite/explorer/components/styled/ProfileAvatar.js.map deleted file mode 100644 index 7da7f0b..0000000 --- a/dist/modules/lite/explorer/components/styled/ProfileAvatar.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProfileAvatar.js","sourceRoot":"","sources":["../../../../../../src/modules/lite/explorer/components/styled/ProfileAvatar.tsx"],"names":[],"mappings":";;;;AACA,4CAAkD;AAClD,oDAAgD;AAChD,+EAA2E;AAE3E,MAAM,YAAY,GAAG,IAAA,aAAM,EAAC,aAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAqB,EAAE,EAAE,CAAC,CAAC;IACpE,KAAK,EAAE,IAAI,IAAI,EAAE;IACjB,MAAM,EAAE,IAAI,IAAI,EAAE;CACnB,CAAC,CAAC,CAAA;AAEI,MAAM,aAAa,GAAiD,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IAC/F,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAA,iCAAe,EAAC,OAAO,CAAC,CAAA;IAElD,OAAO,CACL,2DACG,OAAO,CAAC,CAAC,CAAC,CACT,uBAAC,YAAY,IAAC,GAAG,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,GAAI,CACxG,CAAC,CAAC,CAAC,CACF,uBAAC,iBAAO,IAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAI,CAC1C,GACA,CACJ,CAAA;AACH,CAAC,CAAA;AAZY,QAAA,aAAa,iBAYzB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/styled/RectangleHeader.js b/dist/modules/lite/explorer/components/styled/RectangleHeader.js deleted file mode 100644 index 0682c16..0000000 --- a/dist/modules/lite/explorer/components/styled/RectangleHeader.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.RectangleContainer=void 0;const core_1=require('@material-ui/core');exports.RectangleContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({minHeight:125,padding:'68px 8%',borderBottom:`2px solid ${theme.palette.primary.light}`,[theme.breakpoints.down('sm')]:{padding:'35px 8%'}})); \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/styled/RectangleHeader.js.map b/dist/modules/lite/explorer/components/styled/RectangleHeader.js.map deleted file mode 100644 index 81b8b14..0000000 --- a/dist/modules/lite/explorer/components/styled/RectangleHeader.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RectangleHeader.js","sourceRoot":"","sources":["../../../../../../src/modules/lite/explorer/components/styled/RectangleHeader.tsx"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,kBAAkB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7D,SAAS,EAAE,GAAG;IACd,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE;IACxD,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,OAAO,EAAE,SAAS;KACnB;CACF,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/styled/TableHeader.js b/dist/modules/lite/explorer/components/styled/TableHeader.js deleted file mode 100644 index 29c386d..0000000 --- a/dist/modules/lite/explorer/components/styled/TableHeader.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.TableHeader=void 0;const core_1=require('@material-ui/core');exports.TableHeader=(0,core_1.styled)(core_1.Grid)(({theme})=>({borderBottom:`2px solid ${theme.palette.primary.light}`,paddingBottom:20})); \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/styled/TableHeader.js.map b/dist/modules/lite/explorer/components/styled/TableHeader.js.map deleted file mode 100644 index 0144777..0000000 --- a/dist/modules/lite/explorer/components/styled/TableHeader.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TableHeader.js","sourceRoot":"","sources":["../../../../../../src/modules/lite/explorer/components/styled/TableHeader.tsx"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,WAAW,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACtD,YAAY,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE;IACxD,aAAa,EAAE,EAAE;CAClB,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/tables/RowContainer.js b/dist/modules/lite/explorer/components/tables/RowContainer.js deleted file mode 100644 index 48e0168..0000000 --- a/dist/modules/lite/explorer/components/tables/RowContainer.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.RowContainer=void 0;const core_1=require('@material-ui/core');exports.RowContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({minHeight:145,padding:'44px 38px',cursor:'pointer',[theme.breakpoints.down('md')]:{padding:'44px 38px'}})); \ No newline at end of file diff --git a/dist/modules/lite/explorer/components/tables/RowContainer.js.map b/dist/modules/lite/explorer/components/tables/RowContainer.js.map deleted file mode 100644 index f1101d0..0000000 --- a/dist/modules/lite/explorer/components/tables/RowContainer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RowContainer.js","sourceRoot":"","sources":["../../../../../../src/modules/lite/explorer/components/tables/RowContainer.tsx"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,YAAY,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACvD,SAAS,EAAE,GAAG;IACd,OAAO,EAAE,WAAW;IACpB,MAAM,EAAE,SAAS;IACjB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,OAAO,EAAE,WAAW;KACrB;CACF,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/context/ActionSheets/explorer/index.js b/dist/modules/lite/explorer/context/ActionSheets/explorer/index.js deleted file mode 100644 index 425d90d..0000000 --- a/dist/modules/lite/explorer/context/ActionSheets/explorer/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.AppContextProvider=exports.DashboardContext=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const useTezos_1=require('../../../../../../services/beacon/hooks/useTezos');exports.DashboardContext=(0,react_1.createContext)({});const AppContextProvider=({children})=>{const {account}=(0,useTezos_1.useTezos)();const [isConnected,setIsConnected]=(0,react_1.useState)(false);(0,react_1.useEffect)(()=>{if(account===undefined||!account){return setIsConnected(false);}return setIsConnected(true);},[account]);const values={isConnected,setIsConnected};return(0,jsx_runtime_1.jsx)(exports.DashboardContext.Provider,{value:values,children:children});};exports.AppContextProvider=AppContextProvider; \ No newline at end of file diff --git a/dist/modules/lite/explorer/context/ActionSheets/explorer/index.js.map b/dist/modules/lite/explorer/context/ActionSheets/explorer/index.js.map deleted file mode 100644 index d4a798d..0000000 --- a/dist/modules/lite/explorer/context/ActionSheets/explorer/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/lite/explorer/context/ActionSheets/explorer/index.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiE;AACjE,6DAAyD;AAO5C,QAAA,gBAAgB,GAAG,IAAA,qBAAa,EAAC,EAAkB,CAAC,CAAA;AAE1D,MAAM,kBAAkB,GAAG,CAAC,EAAE,QAAQ,EAAO,EAAE,EAAE;IACtD,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAC9B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAErD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,OAAO,KAAK,SAAS,IAAI,CAAC,OAAO,EAAE;YACrC,OAAO,cAAc,CAAC,KAAK,CAAC,CAAA;SAC7B;QACD,OAAO,cAAc,CAAC,IAAI,CAAC,CAAA;IAC7B,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,MAAM,MAAM,GAAG;QACb,WAAW;QACX,cAAc;KACf,CAAA;IAED,OAAO,uBAAC,wBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,YAAG,QAAQ,GAA6B,CAAA;AACzF,CAAC,CAAA;AAjBY,QAAA,kBAAkB,sBAiB9B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/context/ActionSheets/index.js b/dist/modules/lite/explorer/context/ActionSheets/index.js deleted file mode 100644 index 67c51ad..0000000 --- a/dist/modules/lite/explorer/context/ActionSheets/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.useActionSheet=exports.ActionSheetProvider=exports.ActionSheetContext=exports.ActionSheet=void 0;const jsx_runtime_1=require('react/jsx-runtime');const NetworkSheet_1=require('../../../../explorer/components/NetworkSheet');const UserMenuSheet_1=require('../../../../explorer/components/UserMenuSheet');const react_1=require('react');const react_2=require('react');var ActionSheet;(function(ActionSheet){ActionSheet[ActionSheet['None']=0]='None';ActionSheet[ActionSheet['UserMenu']=1]='UserMenu';ActionSheet[ActionSheet['Network']=2]='Network';}(ActionSheet||(exports.ActionSheet=ActionSheet={})));exports.ActionSheetContext=(0,react_2.createContext)(null);const ActionSheetProvider=({children})=>{const [openedModal,setOpenedModal]=(0,react_2.useState)(ActionSheet.None);const onClose=(0,react_1.useCallback)(()=>{setOpenedModal(ActionSheet.None);},[]);return(0,jsx_runtime_1.jsxs)(exports.ActionSheetContext.Provider,{value:{openedModal,setOpenedModal,onClose},children:[children,(0,jsx_runtime_1.jsx)(UserMenuSheet_1.UserMenuSheet,{open:ActionSheet.UserMenu===openedModal,onClose:onClose}),(0,jsx_runtime_1.jsx)(NetworkSheet_1.NetworkSheet,{open:ActionSheet.Network===openedModal,onClose:onClose})]});};exports.ActionSheetProvider=ActionSheetProvider;const useActionSheet=actionSheet=>{const contextValue=(0,react_1.useContext)(exports.ActionSheetContext);return{open:()=>contextValue.setOpenedModal(actionSheet),close:contextValue.onClose};};exports.useActionSheet=useActionSheet; \ No newline at end of file diff --git a/dist/modules/lite/explorer/context/ActionSheets/index.js.map b/dist/modules/lite/explorer/context/ActionSheets/index.js.map deleted file mode 100644 index f3d54e6..0000000 --- a/dist/modules/lite/explorer/context/ActionSheets/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/lite/explorer/context/ActionSheets/index.tsx"],"names":[],"mappings":";;;;AAAA,2EAAuE;AACvE,6EAAyE;AACzE,iCAAiE;AACjE,iCAA+C;AAE/C,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,6CAAI,CAAA;IACJ,qDAAQ,CAAA;IACR,mDAAO,CAAA;AACT,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAQY,QAAA,kBAAkB,GAAG,IAAA,qBAAa,EAA0B,IAAW,CAAC,CAAA;AAE9E,MAAM,mBAAmB,GAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAc,WAAW,CAAC,IAAI,CAAC,CAAA;IAC7E,MAAM,OAAO,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QAC/B,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;IAClC,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CACL,wBAAC,0BAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,aACzE,QAAQ,EACT,uBAAC,6BAAa,IAAC,IAAI,EAAE,WAAW,CAAC,QAAQ,KAAK,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,EAC/E,uBAAC,2BAAY,IAAC,IAAI,EAAE,WAAW,CAAC,OAAO,KAAK,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,IACjD,CAC/B,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,mBAAmB,uBAa/B;AAEM,MAAM,cAAc,GAAG,CAAC,WAAwB,EAAE,EAAE;IACzD,MAAM,YAAY,GAAG,IAAA,kBAAU,EAAC,0BAAkB,CAAC,CAAA;IAEnD,OAAO;QACL,IAAI,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,cAAc,CAAC,WAAW,CAAC;QACpD,KAAK,EAAE,YAAY,CAAC,OAAO;KAC5B,CAAA;AACH,CAAC,CAAA;AAPY,QAAA,cAAc,kBAO1B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/useCommunity.js b/dist/modules/lite/explorer/hooks/useCommunity.js deleted file mode 100644 index 7f7b6aa..0000000 --- a/dist/modules/lite/explorer/hooks/useCommunity.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useCommunity=void 0;const useNotification_1=require('../../../common/hooks/useNotification');const react_1=require('react');const useTezos_1=require('../../../../services/beacon/hooks/useTezos');const config_1=require('../../../../services/config');const node_fetch_1=__importDefault(require('node-fetch'));const useCommunity=(daoId,isUpdated)=>{const [community,setCommunity]=(0,react_1.useState)();const openNotification=(0,useNotification_1.useNotification)();const {network}=(0,useTezos_1.useTezos)();(0,react_1.useEffect)(()=>{function fetchData(){return __awaiter(this,void 0,void 0,function*(){try{yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/daos/${daoId.toString()}`).then(response=>__awaiter(this,void 0,void 0,function*(){if(!response.ok){openNotification({message:'An error has occurred',autoHideDuration:2000,variant:'error'});return;}const record=yield response.json();if(!record){return;}setCommunity(record);}));}catch(_a){return;}});}fetchData();return;},[daoId,isUpdated,setCommunity]);return community;};exports.useCommunity=useCommunity; \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/useCommunity.js.map b/dist/modules/lite/explorer/hooks/useCommunity.js.map deleted file mode 100644 index 2b58380..0000000 --- a/dist/modules/lite/explorer/hooks/useCommunity.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useCommunity.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/hooks/useCommunity.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,0EAAsE;AACtE,iCAAkD;AAElD,6DAAyD;AACzD,4CAAgD;AAChD,4DAA+B;AAExB,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,SAAkB,EAAE,EAAE;IAChE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,GAAa,CAAA;IACvD,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAE9B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,SAAe,SAAS;;gBACtB,IAAI;oBACF,MAAM,IAAA,oBAAK,EAAC,GAAG,IAAA,eAAM,EAAC,eAAM,CAAC,sBAAsB,CAAC,SAAS,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAM,QAAQ,EAAC,EAAE;wBACrG,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;4BAChB,gBAAgB,CAAC;gCACf,OAAO,EAAE,uBAAuB;gCAChC,gBAAgB,EAAE,IAAI;gCACtB,OAAO,EAAE,OAAO;6BACjB,CAAC,CAAA;4BACF,OAAM;yBACP;wBAED,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;wBACpC,IAAI,CAAC,MAAM,EAAE;4BACX,OAAM;yBACP;wBACD,YAAY,CAAC,MAAM,CAAC,CAAA;oBACtB,CAAC,CAAA,CAAC,CAAA;iBACH;gBAAC,WAAM;oBACN,OAAM;iBACP;YACH,CAAC;SAAA;QACD,SAAS,EAAE,CAAA;QAEX,OAAM;IACR,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAA;IACpC,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA;AAjCY,QAAA,YAAY,gBAiCxB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/useCommunityForContract.js b/dist/modules/lite/explorer/hooks/useCommunityForContract.js deleted file mode 100644 index 70943ac..0000000 --- a/dist/modules/lite/explorer/hooks/useCommunityForContract.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.useCommunityForContract=void 0;const useNotification_1=require('../../../common/hooks/useNotification');const react_1=require('react');const useTezos_1=require('../../../../services/beacon/hooks/useTezos');const useCommunityForContract=daoContract=>{const [community,setCommunity]=(0,react_1.useState)();const openNotification=(0,useNotification_1.useNotification)();const {network}=(0,useTezos_1.useTezos)();(0,react_1.useEffect)(()=>{return;},[daoContract,setCommunity]);return community;};exports.useCommunityForContract=useCommunityForContract; \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/useCommunityForContract.js.map b/dist/modules/lite/explorer/hooks/useCommunityForContract.js.map deleted file mode 100644 index 482318d..0000000 --- a/dist/modules/lite/explorer/hooks/useCommunityForContract.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useCommunityForContract.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/hooks/useCommunityForContract.tsx"],"names":[],"mappings":";;;AAEA,0EAAsE;AACtE,iCAAkD;AAElD,6DAAyD;AAGlD,MAAM,uBAAuB,GAAG,CAAC,WAAmB,EAAE,EAAE;IAC7D,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,GAAa,CAAA;IACvD,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAE9B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,OAAM;IACR,CAAC,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,CAAA;IAC/B,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA;AATY,QAAA,uBAAuB,2BASnC"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/useCommunityToken.js b/dist/modules/lite/explorer/hooks/useCommunityToken.js deleted file mode 100644 index 35a3e4c..0000000 --- a/dist/modules/lite/explorer/hooks/useCommunityToken.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useCommunityToken=void 0;const react_1=require('react');const config_1=require('../../../../services/config');const node_fetch_1=__importDefault(require('node-fetch'));const useCommunityToken=communityId=>{const [token,setToken]=(0,react_1.useState)();(0,react_1.useEffect)(()=>{function fetchToken(){return __awaiter(this,void 0,void 0,function*(){if(communityId!==undefined){yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/token/${String(communityId)}`).then(response=>__awaiter(this,void 0,void 0,function*(){if(!response.ok){const message=`An error has occurred: ${response.statusText}`;return;}const record=yield response.json();if(!record){return;}setToken(record);return;}));}});}fetchToken();return;},[communityId]);return token;};exports.useCommunityToken=useCommunityToken; \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/useCommunityToken.js.map b/dist/modules/lite/explorer/hooks/useCommunityToken.js.map deleted file mode 100644 index f46b9d6..0000000 --- a/dist/modules/lite/explorer/hooks/useCommunityToken.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useCommunityToken.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/hooks/useCommunityToken.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAkD;AAElD,4CAAgD;AAChD,4DAA+B;AAExB,MAAM,iBAAiB,GAAG,CAAC,WAAgB,EAAE,EAAE;IACpD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,GAAkB,CAAA;IACpD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,SAAe,UAAU;;gBACvB,IAAI,WAAW,KAAK,SAAS,EAAE;oBAC7B,MAAM,IAAA,oBAAK,EAAC,GAAG,IAAA,eAAM,EAAC,eAAM,CAAC,sBAAsB,CAAC,UAAU,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAM,QAAQ,EAAC,EAAE;wBACzG,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;4BAChB,MAAM,OAAO,GAAG,0BAA0B,QAAQ,CAAC,UAAU,EAAE,CAAA;4BAC/D,OAAM;yBACP;wBAED,MAAM,MAAM,GAAmB,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;wBACpD,IAAI,CAAC,MAAM,EAAE;4BACX,OAAM;yBACP;wBAED,QAAQ,CAAC,MAAM,CAAC,CAAA;wBAChB,OAAM;oBACR,CAAC,CAAA,CAAC,CAAA;iBACH;YACH,CAAC;SAAA;QACD,UAAU,EAAE,CAAA;QACZ,OAAM;IACR,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;IACjB,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAzBY,QAAA,iBAAiB,qBAyB7B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/useHasVoted.js b/dist/modules/lite/explorer/hooks/useHasVoted.js deleted file mode 100644 index b6c8716..0000000 --- a/dist/modules/lite/explorer/hooks/useHasVoted.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useHasVoted=void 0;const useNotification_1=require('../../../common/hooks/useNotification');const react_1=require('react');const useTezos_1=require('../../../../services/beacon/hooks/useTezos');const config_1=require('../../../../services/config');const node_fetch_1=__importDefault(require('node-fetch'));const useHasVoted=refresh=>{const [hasVoted,setHasVoted]=(0,react_1.useState)(false);const [vote,setVote]=(0,react_1.useState)();const {account}=(0,useTezos_1.useTezos)();const openNotification=(0,useNotification_1.useNotification)();(0,react_1.useEffect)(()=>{function fetchHasVoted(){return __awaiter(this,void 0,void 0,function*(){if(account){try{yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/choices/${String(account)}/user`).then(response=>__awaiter(this,void 0,void 0,function*(){if(!response.ok){openNotification({message:'An error has occurred',autoHideDuration:2000,variant:'error'});return;}const record=yield response.json();if(!record){setHasVoted(false);return;}if(record===null){setHasVoted(false);return;}setVote(record);setHasVoted(true);return;}));}catch(_a){openNotification({message:'An error has occurred',autoHideDuration:2000,variant:'error'});return;}}});}fetchHasVoted();return;},[account,refresh]);return{hasVoted,vote};};exports.useHasVoted=useHasVoted; \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/useHasVoted.js.map b/dist/modules/lite/explorer/hooks/useHasVoted.js.map deleted file mode 100644 index 6a032c4..0000000 --- a/dist/modules/lite/explorer/hooks/useHasVoted.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useHasVoted.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/hooks/useHasVoted.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,0EAAsE;AACtE,iCAAkD;AAClD,6DAAyD;AACzD,4CAAgD;AAChD,4DAA+B;AAExB,MAAM,WAAW,GAAG,CAAC,OAAgB,EAAE,EAAE;IAC9C,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,I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QAEf,OAAM;IACR,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAA;IACtB,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;AAC3B,CAAC,CAAA;AAnDY,QAAA,WAAW,eAmDvB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/usePoll.js b/dist/modules/lite/explorer/hooks/usePoll.js deleted file mode 100644 index 529cc3f..0000000 --- a/dist/modules/lite/explorer/hooks/usePoll.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useSinglePoll=void 0;const react_1=require('react');const useNotification_1=require('../../../common/hooks/useNotification');const utils_1=require('../../../../services/lite/utils');const ProposalTableRowStatusBadge_1=require('../components/ProposalTableRowStatusBadge');const config_1=require('../../../../services/config');const node_fetch_1=__importDefault(require('node-fetch'));const useSinglePoll=(pollId,id,community)=>{const [poll,setPoll]=(0,react_1.useState)();const openNotification=(0,useNotification_1.useNotification)();(0,react_1.useEffect)(()=>{function fetchPoll(){return __awaiter(this,void 0,void 0,function*(){try{yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/polls/${pollId}/polls`).then(response=>__awaiter(this,void 0,void 0,function*(){if(!response.ok){openNotification({message:'An error has occurred',autoHideDuration:2000,variant:'error'});return;}const record=yield response.json();if(!record){return;}record.timeFormatted=(0,utils_1.isProposalActive)(Number(record.endTime));record.isActive=record.timeFormatted&&!record.timeFormatted.includes('ago')?ProposalTableRowStatusBadge_1.ProposalStatus.ACTIVE:ProposalTableRowStatusBadge_1.ProposalStatus.CLOSED;setPoll(record);return;}));}catch(error){setPoll(undefined);openNotification({message:'An error has occurred',autoHideDuration:2000,variant:'error'});return;}});}fetchPoll();return;},[id,community]);return poll;};exports.useSinglePoll=useSinglePoll; \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/usePoll.js.map b/dist/modules/lite/explorer/hooks/usePoll.js.map deleted file mode 100644 index 54fa430..0000000 --- a/dist/modules/lite/explorer/hooks/usePoll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"usePoll.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/hooks/usePoll.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,iCAAkD;AAElD,0EAAsE;AACtE,+CAAsD;AACtD,2FAA0E;AAC1E,4CAAgD;AAChD,4DAA+B;AAExB,MAAM,aAAa,GAAG,CAAC,MAA0B,EAAE,EAAQ,EAAE,SAAe,EAAE,EAAE;IACrF,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,GAAQ,CAAA;IACxC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAE1C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,SAAe,SAAS;;gBACtB,IAAI;oBACF,MAAM,IAAA,oBAAK,EAAC,GAAG,IAAA,eAAM,EAAC,eAAM,CAAC,sBAAsB,CAAC,UAAU,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAM,QAAQ,EAAC,EAAE;wBAClG,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;4BAChB,gBAAgB,CAAC;gCACf,OAAO,EAAE,uBAAuB;gCAChC,gBAAgB,EAAE,IAAI;gCACtB,OAAO,EAAE,OAAO;6BACjB,CAAC,CAAA;4BACF,OAAM;yBACP;wBAED,MAAM,MAAM,GAAS,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;wBAC1C,IAAI,CAAC,MAAM,EAAE;4BACX,OAAM;yBACP;wBAED,MAAM,CAAC,aAAa,GAAG,IAAA,wBAAgB,EAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAA;wBAC/D,MAAM,CAAC,QAAQ;4BACb,MAAM,CAAC,aAAa,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC;gCAC3D,CAAC,CAAC,4CAAc,CAAC,MAAM;gCACvB,CAAC,CAAC,4CAAc,CAAC,MAAM,CAAA;wBAC3B,OAAO,CAAC,MAAM,CAAC,CAAA;wBACf,OAAM;oBACR,CAAC,CAAA,CAAC,CAAA;iBACH;gBAAC,OAAO,KAAK,EAAE;oBACd,OAAO,CAAC,SAAS,CAAC,CAAA;oBAClB,gBAAgB,CAAC;wBACf,OAAO,EAAE,uBAAuB;wBAChC,gBAAgB,EAAE,IAAI;wBACtB,OAAO,EAAE,OAAO;qBACjB,CAAC,CAAA;oBACF,OAAM;iBACP;YACH,CAAC;SAAA;QACD,SAAS,EAAE,CAAA;QACX,OAAM;IACR,CAAC,EAAE,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC,CAAA;IACnB,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AA5CY,QAAA,aAAa,iBA4CzB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/usePollChoices.js b/dist/modules/lite/explorer/hooks/usePollChoices.js deleted file mode 100644 index 23acb66..0000000 --- a/dist/modules/lite/explorer/hooks/usePollChoices.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.usePollChoices=void 0;const useNotification_1=require('../../../common/hooks/useNotification');const react_1=require('react');const config_1=require('../../../../services/config');const node_fetch_1=__importDefault(require('node-fetch'));const usePollChoices=(poll,refresh)=>{const [choices,setChoices]=(0,react_1.useState)([]);const openNotification=(0,useNotification_1.useNotification)();(0,react_1.useEffect)(()=>{function fetchChoices(){return __awaiter(this,void 0,void 0,function*(){if(poll){yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/choices/${poll._id}/find`).then(response=>__awaiter(this,void 0,void 0,function*(){if(!response.ok){openNotification({message:'An error has occurred',autoHideDuration:2000,variant:'error'});return;}const records=yield response.json();setChoices(records);return;}));}});}fetchChoices();return;},[poll,refresh]);return choices;};exports.usePollChoices=usePollChoices; \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/usePollChoices.js.map b/dist/modules/lite/explorer/hooks/usePollChoices.js.map deleted file mode 100644 index c3efbc8..0000000 --- a/dist/modules/lite/explorer/hooks/usePollChoices.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"usePollChoices.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/hooks/usePollChoices.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,0EAAsE;AACtE,iCAAkD;AAClD,4CAAgD;AAChD,4DAA+B;AAExB,MAAM,cAAc,GAAG,CAAC,IAAsB,EAAE,OAAgB,EAAE,EAAE;IACzE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAW,EAAE,CAAC,CAAA;IACpD,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAE1C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,SAAe,YAAY;;gBACzB,IAAI,IAAI,EAAE;oBACR,MAAM,IAAA,oBAAK,EAAC,GAAG,IAAA,eAAM,EAAC,eAAM,CAAC,sBAAsB,CAAC,YAAY,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,CAAM,QAAQ,EAAC,EAAE;wBACrG,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;4BAChB,gBAAgB,CAAC;gCACf,OAAO,EAAE,uBAAuB;gCAChC,gBAAgB,EAAE,IAAI;gCACtB,OAAO,EAAE,OAAO;6BACjB,CAAC,CAAA;4BACF,OAAM;yBACP;wBACD,MAAM,OAAO,GAAa,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;wBAC/C,UAAU,CAAC,OAAO,CAAC,CAAA;wBACnB,OAAM;oBACR,CAAC,CAAA,CAAC,CAAA;iBACH;YACH,CAAC;SAAA;QACD,YAAY,EAAE,CAAA;QACd,OAAM;IACR,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAA;IACnB,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AA1BY,QAAA,cAAc,kBA0B1B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/usePolls.js b/dist/modules/lite/explorer/hooks/usePolls.js deleted file mode 100644 index 61768aa..0000000 --- a/dist/modules/lite/explorer/hooks/usePolls.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.usePolls=void 0;const react_1=require('react');const useNotification_1=require('../../../common/hooks/useNotification');const utils_1=require('../../../../services/lite/utils');const ProposalTableRowStatusBadge_1=require('../components/ProposalTableRowStatusBadge');const config_1=require('../../../../services/config');const node_fetch_1=__importDefault(require('node-fetch'));const usePolls=id=>{const [polls,setPolls]=(0,react_1.useState)([]);const openNotification=(0,useNotification_1.useNotification)();(0,react_1.useEffect)(()=>{function fetchPoll(){return __awaiter(this,void 0,void 0,function*(){yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/polls/${id}/list`).then(response=>__awaiter(this,void 0,void 0,function*(){if(!response.ok){openNotification({message:'An error has occurred',autoHideDuration:2000,variant:'error'});return;}const communityPolls=yield response.json();if(!communityPolls){return;}communityPolls.map(community=>{community.timeFormatted=(0,utils_1.isProposalActive)(Number(community.endTime));community.isActive=!community.timeFormatted.includes('ago')?ProposalTableRowStatusBadge_1.ProposalStatus.ACTIVE:ProposalTableRowStatusBadge_1.ProposalStatus.CLOSED;});communityPolls.forEach(poll=>__awaiter(this,void 0,void 0,function*(){if(poll){yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/choices/${poll._id}/votes`).then(response=>__awaiter(this,void 0,void 0,function*(){if(!response.ok){console.log('error in query');return;}const records=yield response.json();poll.votes=records;return;}));}}));setPolls(communityPolls);return;}));});}fetchPoll();return;},[id]);return polls;};exports.usePolls=usePolls; \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/usePolls.js.map b/dist/modules/lite/explorer/hooks/usePolls.js.map deleted file mode 100644 index e074cb4..0000000 --- a/dist/modules/lite/explorer/hooks/usePolls.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"usePolls.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/hooks/usePolls.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,iCAAkD;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A,eAAM,EAAC,eAAM,CAAC,sBAAsB,CAAC,YAAY,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAM,QAAQ,EAAC,EAAE;gCACtG,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;oCAChB,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;oCAC7B,OAAM;iCACP;gCACD,MAAM,OAAO,GAAW,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;gCAC7C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAA;gCACpB,OAAM;4BACR,CAAC,CAAA,CAAC,CAAA;yBACH;oBACH,CAAC,CAAA,CAAC,CAAA;oBAEF,QAAQ,CAAC,cAAc,CAAC,CAAA;oBACxB,OAAM;gBACR,CAAC,CAAA,CAAC,CAAA;YACJ,CAAC;SAAA;QACD,SAAS,EAAE,CAAA;QACX,OAAM;IACR,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IACR,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAhDY,QAAA,QAAQ,YAgDpB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/useToken.js b/dist/modules/lite/explorer/hooks/useToken.js deleted file mode 100644 index 54a2e03..0000000 --- a/dist/modules/lite/explorer/hooks/useToken.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useToken=void 0;const useNotification_1=require('../../../common/hooks/useNotification');const react_1=require('react');const config_1=require('../../../../services/config');const node_fetch_1=__importDefault(require('node-fetch'));const useToken=daoId=>{const [tokenAddress,setTokenAddress]=(0,react_1.useState)('');const openNotification=(0,useNotification_1.useNotification)();(0,react_1.useEffect)(()=>{function fetchData(){return __awaiter(this,void 0,void 0,function*(){try{if(daoId){const communityId=daoId;yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/token/${communityId}`).then(response=>__awaiter(this,void 0,void 0,function*(){if(!response.ok){openNotification({message:'An error has occurred',autoHideDuration:2000,variant:'error'});return;}const record=yield response.json();if(!record){return;}setTokenAddress(record.tokenAddress);}));}}catch(_a){return;}});}fetchData();return;},[daoId,setTokenAddress]);return tokenAddress;};exports.useToken=useToken; \ No newline at end of file diff --git a/dist/modules/lite/explorer/hooks/useToken.js.map b/dist/modules/lite/explorer/hooks/useToken.js.map deleted file mode 100644 index bc2b98c..0000000 --- a/dist/modules/lite/explorer/hooks/useToken.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useToken.js","sourceRoot":"","sources":["../../../../../src/modules/lite/explorer/hooks/useToken.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,0EAAsE;AACtE,iCAAkD;AAElD,4CAAgD;AAEhD,4DAA+B;AAExB,MAAM,QAAQ,GAAG,CAAC,KAAyB,EAAE,EAAE;IACpD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAS,EAAE,CAAC,CAAA;IAC5D,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAE1C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,SAAe,SAAS;;gBACtB,IAAI;oBACF,IAAI,KAAK,EAAE;wBACT,MAAM,WAAW,GAAG,KAAK,CAAA;wBACzB,MAAM,IAAA,oBAAK,EAAC,GAAG,IAAA,eAAM,EAAC,eAAM,CAAC,sBAAsB,CAAC,UAAU,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAM,QAAQ,EAAC,EAAE;4BACjG,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;gCAChB,gBAAgB,CAAC;oCACf,OAAO,EAAE,uBAAuB;oCAChC,gBAAgB,EAAE,IAAI;oCACtB,OAAO,EAAE,OAAO;iCACjB,CAAC,CAAA;gCACF,OAAM;6BACP;4BAED,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;4BACpC,IAAI,CAAC,MAAM,EAAE;gCACX,OAAM;6BACP;4BACD,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;wBACtC,CAAC,CAAA,CAAC,CAAA;qBACH;iBACF;gBAAC,WAAM;oBACN,OAAM;iBACP;YACH,CAAC;SAAA;QACD,SAAS,EAAE,CAAA;QAEX,OAAM;IACR,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAA;IAC5B,OAAO,YAAY,CAAA;AACrB,CAAC,CAAA;AAnCY,QAAA,QAAQ,YAmCpB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/pages/CommunityDetails/index.js b/dist/modules/lite/explorer/pages/CommunityDetails/index.js deleted file mode 100644 index afde3cf..0000000 --- a/dist/modules/lite/explorer/pages/CommunityDetails/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.CommunityDetails=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const ProposalList_1=require('../../components/ProposalList');const DaoCardDetail_1=require('../../components/DaoCardDetail');const usePolls_1=require('../../hooks/usePolls');const useCommunity_1=require('../../hooks/useCommunity');const CommunityDetailsContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({boxSizing:'border-box',height:'fit-content',[theme.breakpoints.down('md')]:{marginTop:0}}));const PageContainer=(0,core_1.styled)('div')({marginBottom:50,width:'1000px',height:'100%',margin:'auto',padding:'28px 0',boxSizing:'border-box',paddingTop:0,['@media (max-width: 1425px)']:{},['@media (max-width:1335px)']:{},['@media (max-width:1167px)']:{width:'86vw'},['@media (max-width:1030px)']:{},['@media (max-width:960px)']:{},['@media (max-width:645px)']:{flexDirection:'column'}});const CommunityDetails=({id})=>{const [isUpdated,setIsUpdated]=(0,react_1.useState)(1);const community=(0,useCommunity_1.useCommunity)(id,isUpdated);const polls=(0,usePolls_1.usePolls)(id);return(0,jsx_runtime_1.jsx)(PageContainer,{children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,spacing:3,children:[(0,jsx_runtime_1.jsx)(CommunityDetailsContainer,{item:true,xs:12,lg:4,md:4,children:(0,jsx_runtime_1.jsx)(DaoCardDetail_1.DaoCardDetail,{community:community,setIsUpdated:setIsUpdated})}),(0,jsx_runtime_1.jsx)(CommunityDetailsContainer,{container:true,justifyContent:'center',item:true,xs:12,lg:8,md:8,children:polls.length>0?(0,jsx_runtime_1.jsx)(ProposalList_1.ProposalList,{polls:polls,id:id}):(0,jsx_runtime_1.jsx)(core_1.Typography,{style:{width:'inherit'},color:'textPrimary',children:'0 proposals found'})})]})});};exports.CommunityDetails=CommunityDetails; \ No newline at end of file diff --git a/dist/modules/lite/explorer/pages/CommunityDetails/index.js.map b/dist/modules/lite/explorer/pages/CommunityDetails/index.js.map deleted file mode 100644 index 76ade5d..0000000 --- a/dist/modules/lite/explorer/pages/CommunityDetails/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/lite/explorer/pages/CommunityDetails/index.tsx"],"names":[],"mappings":";;;;AAAA,gDAAgD;AAChD,iCAAkD;AAClD,4CAA8E;AAC9E,gEAA4D;AAC5D,kEAA8D;AAC9D,mDAA+C;AAC/C,2DAAuD;AAEvD,MAAM,yBAAyB,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7D,SAAS,EAAE,YAAY;I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GACzC,EAC5B,uBAAC,yBAAyB,IAAC,SAAS,QAAC,cAAc,EAAC,QAAQ,EAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YACnF,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAClB,uBAAC,2BAAY,IAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,GAAI,CACvC,CAAC,CAAC,CAAC,CACF,uBAAC,iBAAU,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,EAAC,aAAa,kCAE/C,CACd,GACyB,IACvB,GACO,CACjB,CAAA;AACH,CAAC,CAAA;AAvBY,QAAA,gBAAgB,oBAuB5B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/pages/CommunityDetails/router.js b/dist/modules/lite/explorer/pages/CommunityDetails/router.js deleted file mode 100644 index bf5342e..0000000 --- a/dist/modules/lite/explorer/pages/CommunityDetails/router.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.CommunityDetailsRouter=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_router_1=require('react-router');const index_1=require('./index');const CreateProposal_1=require('../CreateProposal');const ProposalDetails_1=require('../ProposalDetails');const CommunityDetailsRouter=({id})=>{const match=(0,react_router_1.useRouteMatch)();return(0,jsx_runtime_1.jsxs)(react_router_1.Switch,{children:[(0,jsx_runtime_1.jsx)(react_router_1.Route,{exact:true,path:`${match.url}`,children:(0,jsx_runtime_1.jsx)(index_1.CommunityDetails,{id:id})}),(0,jsx_runtime_1.jsx)(react_router_1.Route,{exact:true,path:`${match.url}/proposal`,children:(0,jsx_runtime_1.jsx)(CreateProposal_1.ProposalCreator,{id:id})}),(0,jsx_runtime_1.jsx)(react_router_1.Route,{exact:true,path:`${match.url}/proposal/:proposalId`,children:(0,jsx_runtime_1.jsx)(ProposalDetails_1.ProposalDetails,{id:id})}),(0,jsx_runtime_1.jsx)(react_router_1.Redirect,{to:`${match.url}`})]});};exports.CommunityDetailsRouter=CommunityDetailsRouter; \ No newline at end of file diff --git a/dist/modules/lite/explorer/pages/CommunityDetails/router.js.map b/dist/modules/lite/explorer/pages/CommunityDetails/router.js.map deleted file mode 100644 index c1e1b22..0000000 --- a/dist/modules/lite/explorer/pages/CommunityDetails/router.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../../../src/modules/lite/explorer/pages/CommunityDetails/router.tsx"],"names":[],"mappings":";;;;AACA,+CAAqE;AACrE,mCAA0C;AAC1C,sDAAmD;AACnD,wDAAoD;AAE7C,MAAM,sBAAsB,GAA0B,CAAC,EAAE,EAAE,EAAE,EAAe,EAAE;IACnF,MAAM,KAAK,GAAG,IAAA,4BAAa,GAAE,CAAA;IAE7B,OAAO,CACL,wBAAC,qBAAM,eACL,uBAAC,oBAAK,IAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,YACtC,uBAAC,wBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI,GACtB,EACR,uBAAC,oBAAK,IAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,WAAW,YAC/C,uBAAC,gCAAe,IAAC,EAAE,EAAE,EAAE,GAAI,GACrB,EACR,uBAAC,oBAAK,IAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,uBAAuB,YAC3D,uBAAC,iCAAe,IAAC,EAAE,EAAE,EAAE,GAAI,GACrB,EACR,uBAAC,uBAAQ,IAAC,EAAE,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,GAAI,IACzB,CACV,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,sBAAsB,0BAiBlC"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/pages/CreateProposal/ProposalCreatorModal.js b/dist/modules/lite/explorer/pages/CreateProposal/ProposalCreatorModal.js deleted file mode 100644 index 17e68bf..0000000 --- a/dist/modules/lite/explorer/pages/CreateProposal/ProposalCreatorModal.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalCreatorModal=void 0;const jsx_runtime_1=require('react/jsx-runtime');const ResponsiveDialog_1=require('../../../../explorer/components/ResponsiveDialog');const _1=require('.');const ProposalCreatorModal=({open,handleClose})=>{return(0,jsx_runtime_1.jsx)(ResponsiveDialog_1.ResponsiveDialog,{open:open,onClose:handleClose,'aria-labelledby':'alert-dialog-title','aria-describedby':'alert-dialog-description',title:'Create Off Chain Poll',template:'xs',children:(0,jsx_runtime_1.jsx)(_1.ProposalCreator,{})});};exports.ProposalCreatorModal=ProposalCreatorModal; \ No newline at end of file diff --git a/dist/modules/lite/explorer/pages/CreateProposal/ProposalCreatorModal.js.map b/dist/modules/lite/explorer/pages/CreateProposal/ProposalCreatorModal.js.map deleted file mode 100644 index 86c1ed8..0000000 --- a/dist/modules/lite/explorer/pages/CreateProposal/ProposalCreatorModal.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalCreatorModal.js","sourceRoot":"","sources":["../../../../../../src/modules/lite/explorer/pages/CreateProposal/ProposalCreatorModal.tsx"],"names":[],"mappings":";;;;AAAA,mFAA+E;AAC/E,wBAAmC;AAG5B,MAAM,oBAAoB,GAAkB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;IAC3E,OAAO,CACL,uBAAC,mCAAgB,IACf,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,qBACJ,oBAAoB,sBACnB,0BAA0B,EAC3C,KAAK,EAAE,uBAAuB,EAC9B,QAAQ,EAAC,IAAI,YAEb,uBAAC,kBAAe,KAAG,GACF,CACpB,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,oBAAoB,wBAahC"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.js b/dist/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.js deleted file mode 100644 index 931b86c..0000000 --- a/dist/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalForm=void 0;const jsx_runtime_1=require('react/jsx-runtime');const material_1=require('@mui/material');const BackButton_1=__importDefault(require('../../../../../common/BackButton'));const Choices_1=require('../../../components/Choices');const ProposalContainer=(0,material_1.styled)(material_1.Grid)(({theme})=>({boxSizing:'border-box',padding:'0px 15px',[theme.breakpoints.down('md')]:{marginTop:30}}));const ProposalChoices=(0,material_1.styled)(material_1.Grid)({flexGrow:1,minHeight:250});const ProposalForm=()=>{return(0,jsx_runtime_1.jsxs)(material_1.Container,{children:[(0,jsx_runtime_1.jsx)(material_1.Grid,{container:true,mx:2,my:3,children:(0,jsx_runtime_1.jsx)(BackButton_1.default,{})}),(0,jsx_runtime_1.jsxs)(material_1.Grid,{container:true,children:[(0,jsx_runtime_1.jsxs)(ProposalContainer,{container:true,flexDirection:'column',style:{gap:30},xs:12,md:6,lg:8,children:[(0,jsx_runtime_1.jsx)(material_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(material_1.TextField,{placeholder:'Proposal Title'})}),(0,jsx_runtime_1.jsx)(material_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(material_1.TextField,{placeholder:'Proposal Details',multiline:true,minRows:15,maxRows:Infinity})})]}),(0,jsx_runtime_1.jsxs)(ProposalContainer,{container:true,flexDirection:'column',style:{gap:30},item:true,xs:12,md:6,lg:4,children:[(0,jsx_runtime_1.jsx)(material_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(material_1.TextField,{placeholder:'Proposal Title'})}),(0,jsx_runtime_1.jsx)(material_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(material_1.TextField,{placeholder:'Proposal Title'})}),(0,jsx_runtime_1.jsx)(ProposalChoices,{children:(0,jsx_runtime_1.jsx)(Choices_1.Choices,{})})]})]})]});};exports.ProposalForm=ProposalForm; \ No newline at end of file diff --git a/dist/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.js.map b/dist/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.js.map deleted file mode 100644 index e090f66..0000000 --- a/dist/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProposalForm.js","sourceRoot":"","sources":["../../../../../../../src/modules/lite/explorer/pages/CreateProposal/components/ProposalForm.tsx"],"names":[],"mappings":";;;;;;;AACA,4CAAkE;AAClE,2EAAkD;AAClD,yDAAqD;AAErD,MAAM,iBAAiB,GAAG,IAAA,iBAAM,EAAC,eAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACrD,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,UAAU;IACnB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,SAAS,EAAE,EAAE;KACd;CACF,CAAC,CAAC,CAAA;AAEH,MAAM,eAAe,GAAG,IAAA,iBAAM,EAAC,eAAI,CAAC,CAAC;IACnC,QAAQ,EAAE,CAAC;IACX,SAAS,EAAE,GAAG;CACf,CAAC,CAAA;AAEK,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,OAAO,CACL,wBAAC,oBAAS,eACR,uBAAC,eAAI,IAAC,SAAS,QAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YAC1B,uBAAC,oBAAU,KAAG,GACT,EACP,wBAAC,eAAI,IAAC,SAAS,mBACb,wBAAC,iBAAiB,IAAC,SAAS,QAAC,aAAa,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,aAC1F,uBAAC,eAAI,IAAC,IAAI,kBACR,uBAAC,oBAAS,IAAC,WAAW,EAAC,gBAAgB,GAAG,GACrC,EACP,uBAAC,eAAI,IAAC,IAAI,kBACR,uBAAC,oBAAS,IAAC,WAAW,EAAC,kBAAkB,EAAC,SAAS,QAAC,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,GAAI,GACjF,IACW,EACpB,wBAAC,iBAAiB,IAAC,SAAS,QAAC,aAAa,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,aAC/F,uBAAC,eAAI,IAAC,IAAI,kBACR,uBAAC,oBAAS,IAAC,WAAW,EAAC,gBAAgB,GAAG,GACrC,EACP,uBAAC,eAAI,IAAC,IAAI,kBACR,uBAAC,oBAAS,IAAC,WAAW,EAAC,gBAAgB,GAAG,GACrC,EACP,uBAAC,eAAe,cACd,uBAAC,iBAAO,KAAG,GACK,IACA,IACf,IACG,CACb,CAAA;AACH,CAAC,CAAA;AA7BY,QAAA,YAAY,gBA6BxB"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/pages/CreateProposal/index.js b/dist/modules/lite/explorer/pages/CreateProposal/index.js deleted file mode 100644 index b12371a..0000000 --- a/dist/modules/lite/explorer/pages/CreateProposal/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalCreator=exports.ProposalForm=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const Choices_1=require('../../components/Choices');const react_router_dom_1=require('react-router-dom');const formik_1=require('formik');const formik_material_ui_1=require('formik-material-ui');const useTezos_1=require('../../../../../services/beacon/hooks/useTezos');const utils_1=require('../../../../../services/lite/utils');const dayjs_1=__importDefault(require('dayjs'));const useNotification_1=require('../../../../common/hooks/useNotification');const duration_1=__importDefault(require('dayjs/plugin/duration'));const CommunityBadge_1=require('../../components/CommunityBadge');const BackButton_1=require('../../../components/BackButton');const lite_services_1=require('../../../../../services/services/lite/lite-services');const useToken_1=require('../../hooks/useToken');const useDAO_1=require('../../../../../services/services/dao/hooks/useDAO');const router_1=require('../../../../explorer/pages/DAO/router');dayjs_1.default.extend(duration_1.default);const ProposalContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({boxSizing:'border-box',[theme.breakpoints.down('md')]:{marginTop:30}}));const CustomFormikTextField=(0,core_1.withStyles)({root:{'& .MuiInput-root':{fontWeight:300,textAlign:'initial'},'& .MuiInputBase-input':{textAlign:'initial',paddingTop:19,paddingLeft:26,borderRadius:4,paddingBottom:19,fontSize:18,background:'#2f3438'},'& .MuiInput-underline:before':{borderBottom:'none !important'},'& .MuiInput-underline:hover:before':{borderBottom:'none !important'},'& .MuiInput-underline:after':{borderBottom:'none !important'}},disabled:{}})(formik_material_ui_1.TextField);const PageContainer=(0,core_1.styled)('div')({height:'100%',margin:'auto',padding:'28px 0',boxSizing:'border-box',paddingTop:0,['@media (max-width: 1425px)']:{},['@media (max-width:1335px)']:{},['@media (max-width:1167px)']:{width:'78vw'},['@media (max-width:1030px)']:{},['@media (max-width:960px)']:{},['@media (max-width:645px)']:{flexDirection:'column'}});const Header=(0,core_1.styled)(core_1.Grid)(({theme})=>({[theme.breakpoints.down('sm')]:{marginBottom:6}}));const ProposalChoices=(0,core_1.styled)(core_1.Grid)({flexGrow:1});const CustomTextarea=(0,core_1.styled)((0,core_1.withTheme)(core_1.TextareaAutosize))(props=>({'minHeight':117,'boxSizing':'border-box','width':'100%','fontWeight':300,'paddingTop':19,'paddingLeft':26,'border':'none','fontSize':17,'color':props.theme.palette.text.primary,'background':props.theme.palette.primary.main,'borderRadius':4,'paddingRight':40,'wordBreak':'break-word','fontFamily':'Roboto Mono','&:focus-visible':{outline:'none'},'resize':'none'}));const CommunityLabel=(0,core_1.styled)(core_1.Grid)({minWidth:212,height:54,background:'#2F3438',borderRadius:4,display:'inline-grid',marginBottom:25,width:'fit-content',padding:12});const ErrorText=(0,core_1.styled)(core_1.Typography)({fontSize:14,color:'red',marginBottom:-21,marginTop:2});const ErrorTextTime=(0,core_1.styled)(core_1.Typography)({marginTop:-18,marginBottom:0,fontSize:14,color:'red'});const ErrorTextChoices=(0,core_1.styled)(core_1.Typography)({fontSize:14,color:'red',marginBottom:-21,marginTop:-86});const TimeBox=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.main,borderRadius:8,width:72,minHeight:59,marginBottom:16,display:'grid',[theme.breakpoints.down('sm')]:{'width':172,'& input':{marginLeft:'30%'}}}));const TimeContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({alignItems:'baseline',marginTop:0,gap:10,[theme.breakpoints.down('md')]:{marginTop:30}}));const TimeContainerMobile=(0,core_1.styled)(core_1.Grid)(({theme})=>({alignItems:'baseline',marginTop:0,gap:10,[theme.breakpoints.down('md')]:{marginTop:30,display:'grid'}}));const hasDuplicates=options=>{const trimOptions=options.map(option=>option.trim());return new Set(trimOptions).size!==trimOptions.length;};const validateForm=values=>{const errors={};if(!values.name){errors.name='Required';}if(!values.externalLink){errors.externalLink='Required';}if(values.choices.length===0||values.choices.length===1){errors.choices='Two options at least are required';}if(values.choices.length>0&&values.choices.includes('')){errors.choices='Please enter an option value';}if(values.choices.length>0&&hasDuplicates(values.choices)){errors.choices='Duplicate options are not allowed';}if(values.endTimeMinutes!==undefined&&values.endTimeDays!==undefined&&values.endTimeHours!==undefined){if(values.endTimeMinutes!==null&&values.endTimeDays!==null&&values.endTimeHours!==null){if(values.endTimeMinutes<5&&values.endTimeDays===0&&values.endTimeHours===0){errors.endTimeMinutes=`Can't allow less than 5 minutes for voting`;}}}if(values.endTimeDays===null||values.endTimeDays===undefined){errors.endTimeDays='Required';}if(values.endTimeDays&&values.endTimeDays<0){errors.endTimeDays='Most be greater than zero';}if(values.endTimeHours===null||values.endTimeHours===undefined){errors.endTimeDays='Required';}if(values.endTimeHours&&values.endTimeHours<0){errors.endTimeDays='Most be greater than zero';}if(values.endTimeMinutes===null||values.endTimeMinutes===undefined){errors.endTimeDays='Required';}if(values.endTimeMinutes&&values.endTimeMinutes<0){errors.endTimeDays='Most be greater than zero';}return errors;};const ProposalForm=({submitForm,values,setFieldValue,errors,touched,isSubmitting,setFieldTouched,id})=>{const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const finalDate=calculateEndTime((0,formik_1.getIn)(values,'endTimeDays'),(0,formik_1.getIn)(values,'endTimeHours'),(0,formik_1.getIn)(values,'endTimeMinutes'));const {pathname}=(0,react_router_dom_1.useLocation)();const shouldShowBar=pathname.includes('/lite')?true:false;const hasErrors=errors.endTimeDays||errors.endTimeHours||errors.endTimeMinutes;return(0,jsx_runtime_1.jsx)(PageContainer,{style:shouldShowBar?{width:'1000px'}:{width:'100%'},children:(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,children:[shouldShowBar?(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsx)(BackButton_1.BackButton,{}),(0,jsx_runtime_1.jsxs)(Header,{container:true,direction:'column',children:[(0,jsx_runtime_1.jsx)(CommunityLabel,{container:true,direction:'row',justifyContent:'center',alignItems:'center',children:(0,jsx_runtime_1.jsx)(CommunityBadge_1.CommunityBadge,{id:id})}),(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'subtitle1',style:isMobileSmall?{marginBottom:0}:{marginBottom:32},children:'New Proposal'})]})]}):null,(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:isMobileSmall?'row':'column',style:{gap:40},children:[(0,jsx_runtime_1.jsxs)(ProposalContainer,{container:true,item:true,direction:'column',style:{gap:30},xs:12,md:7,lg:8,children:[(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'name',type:'text',placeholder:'Proposal Title*',component:CustomFormikTextField}),(errors===null||errors===void 0?void 0:errors.name)&&touched.name?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.name}):null]}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'description',children:()=>(0,jsx_runtime_1.jsx)(CustomTextarea,{maxLength:1500,'aria-label':'empty textarea',placeholder:'Short description',value:(0,formik_1.getIn)(values,'description'),onChange:newValue=>{setFieldValue('description',newValue.target.value);}})})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{item:true,children:[(0,jsx_runtime_1.jsx)(formik_1.Field,{name:'externalLink',type:'text',placeholder:'External Link',component:CustomFormikTextField}),(errors===null||errors===void 0?void 0:errors.externalLink)&&touched.externalLink?(0,jsx_runtime_1.jsx)(ErrorText,{children:errors.externalLink}):null]}),isMobileSmall?(0,jsx_runtime_1.jsxs)(TimeContainerMobile,{direction:'row',children:[(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',name:'endTimeDays',type:'number',placeholder:'DD',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'endTimeDays')===0){setFieldValue('endTimeDays','');setFieldTouched('endTimeDays');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('endTimeDays',null);}else{setFieldValue('endTimeDays',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',name:'endTimeHours',type:'number',placeholder:'HH',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'endTimeHours')===0){setFieldValue('endTimeHours','');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('endTimeHours',null);}else{setFieldValue('endTimeHours',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',name:'endTimeMinutes',type:'number',placeholder:'MM',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'endTimeMinutes')===0){setFieldValue('endTimeMinutes','');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('endTimeMinutes',null);}else{setFieldValue('endTimeMinutes',parseInt(newValue.target.value,10));}}})}),(0,formik_1.getIn)(values,'endTimeDays')!==null&&(0,formik_1.getIn)(values,'endTimeHours')!==null&&(0,formik_1.getIn)(values,'endTimeMinutes')!==null&&!hasErrors?(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'body2',children:'End date:'}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'secondary',variant:'body2',style:{marginLeft:10},children:[' ',(0,dayjs_1.default)(Number(finalDate)).format('MM/DD/YYYY h:mm A')]})]}):null,(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',children:(errors===null||errors===void 0?void 0:errors.endTimeDays)&&touched.endTimeDays?(0,jsx_runtime_1.jsx)(ErrorTextTime,{children:errors.endTimeDays}):null})]}):null,(0,jsx_runtime_1.jsxs)(ProposalChoices,{children:[(0,jsx_runtime_1.jsx)(Choices_1.Choices,{choices:(0,formik_1.getIn)(values,'choices'),isLoading:isSubmitting,submitForm:submitForm,votingStrategy:(0,formik_1.getIn)(values,'votingStrategy'),setFieldValue:setFieldValue}),(errors===null||errors===void 0?void 0:errors.choices)&&touched.choices?(0,jsx_runtime_1.jsx)(ErrorTextChoices,{children:errors.choices}):null]})]}),!isMobileSmall?(0,jsx_runtime_1.jsxs)(TimeContainer,{container:true,item:true,direction:'row',style:{gap:10},xs:12,md:4,lg:4,children:[(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',name:'endTimeDays',type:'number',placeholder:'DD',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'endTimeDays')===0){setFieldValue('endTimeDays','');setFieldTouched('endTimeDays');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('endTimeDays',null);}else{setFieldValue('endTimeDays',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',name:'endTimeHours',type:'number',placeholder:'HH',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'endTimeHours')===0){setFieldValue('endTimeHours','');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('endTimeHours',null);}else{setFieldValue('endTimeHours',parseInt(newValue.target.value,10));}}})}),(0,jsx_runtime_1.jsx)(TimeBox,{item:true,children:(0,jsx_runtime_1.jsx)(formik_1.Field,{style:{margin:'auto'},id:'outlined-basic',name:'endTimeMinutes',type:'number',placeholder:'MM',component:CustomFormikTextField,inputProps:{min:0},onClick:()=>{if((0,formik_1.getIn)(values,'endTimeMinutes')===0){setFieldValue('endTimeMinutes','');}},onChange:newValue=>{if(newValue.target.value===''){setFieldValue('endTimeMinutes',null);}else{setFieldValue('endTimeMinutes',parseInt(newValue.target.value,10));}}})}),(0,formik_1.getIn)(values,'endTimeDays')!==null&&(0,formik_1.getIn)(values,'endTimeHours')!==null&&(0,formik_1.getIn)(values,'endTimeMinutes')!==null&&!hasErrors?(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,direction:'row',style:{marginTop:-70},children:[(0,jsx_runtime_1.jsx)(core_1.Typography,{color:'textPrimary',variant:'body2',children:'End date:'}),(0,jsx_runtime_1.jsxs)(core_1.Typography,{color:'secondary',variant:'body2',style:{marginLeft:10},children:[' ',(0,dayjs_1.default)(Number(finalDate)).format('MM/DD/YYYY h:mm A')]})]}):null,(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'row',style:{marginTop:-80},children:(errors===null||errors===void 0?void 0:errors.endTimeDays)&&touched.endTimeDays?(0,jsx_runtime_1.jsx)(ErrorTextTime,{children:errors.endTimeDays}):null})]}):null]})]})});};exports.ProposalForm=ProposalForm;const calculateEndTime=(days,hours,minutes)=>{const time=(0,dayjs_1.default)().add(days,'days').add(hours,'hours').add(minutes,'minutes');return String(time.valueOf());};const ProposalCreator=props=>{var _a,_b;const navigate=(0,react_router_dom_1.useHistory)();const {network,account,wallet}=(0,useTezos_1.useTezos)();const openNotification=(0,useNotification_1.useNotification)();const [isLoading,setIsLoading]=(0,react_1.useState)(false);const daoId=(0,router_1.useDAOID)();const {data}=(0,useDAO_1.useDAO)(daoId);const id=((_a=data===null||data===void 0?void 0:data.liteDAOData)===null||_a===void 0?void 0:_a._id)?(_b=data===null||data===void 0?void 0:data.liteDAOData)===null||_b===void 0?void 0:_b._id:props.id;const tokenAddress=(0,useToken_1.useToken)(id);const initialState={name:'',description:'',externalLink:'',choices:[''],startTime:(0,dayjs_1.default)().toISOString(),endTime:'',daoID:'',author:account,votingStrategy:0,endTimeDays:null,endTimeHours:null,endTimeMinutes:null};const saveProposal=(0,react_1.useCallback)(values=>__awaiter(void 0,void 0,void 0,function*(){var _c;try{setIsLoading(true);if(!wallet){return;}const data=values;data.daoID=id;data.startTime=String((0,dayjs_1.default)().valueOf());data.endTime=calculateEndTime(values.endTimeDays,values.endTimeHours,values.endTimeMinutes);const {signature,payloadBytes}=yield(0,utils_1.getSignature)(account,wallet,JSON.stringify(data));const publicKey=(_c=yield wallet===null||wallet===void 0?void 0:wallet.client.getActiveAccount())===null||_c===void 0?void 0:_c.publicKey;if(!signature){openNotification({message:`Issue with Signature`,autoHideDuration:3000,variant:'error'});return;}const res=yield(0,lite_services_1.saveLiteProposal)(signature,publicKey,payloadBytes);if(res.ok){openNotification({message:'Proposal created!',autoHideDuration:3000,variant:'success'});setIsLoading(false);daoId?navigate.push(`/explorer/dao/${daoId}/proposals`):navigate.push(`/explorer/lite/dao/${id}/community`);}else{openNotification({message:'Proposal could not be created',autoHideDuration:3000,variant:'error'});setIsLoading(false);return;}}catch(error){openNotification({message:'Proposal could not be created',autoHideDuration:3000,variant:'error'});setIsLoading(false);return;}}),[navigate,id,network,tokenAddress]);return(0,jsx_runtime_1.jsx)(PageContainer,{style:{width:'100%'},children:(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,direction:'column',style:{gap:18},children:(0,jsx_runtime_1.jsx)(formik_1.Formik,{validateOnChange:true,validateOnBlur:false,validate:validateForm,onSubmit:saveProposal,initialValues:initialState,children:({submitForm,setFieldValue,values,errors,touched,setFieldTouched})=>{return(0,jsx_runtime_1.jsx)(formik_1.Form,{style:{width:'100%'},children:(0,jsx_runtime_1.jsx)(exports.ProposalForm,{submitForm:submitForm,isSubmitting:isLoading,setFieldValue:setFieldValue,errors:errors,touched:touched,values:values,setFieldTouched:setFieldTouched,id:id})});}})})});};exports.ProposalCreator=ProposalCreator; \ No newline at end of file diff --git a/dist/modules/lite/explorer/pages/CreateProposal/index.js.map b/dist/modules/lite/explorer/pages/CreateProposal/index.js.map deleted file mode 100644 index a66eb1a..0000000 --- a/dist/modules/lite/explorer/pages/CreateProposal/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","source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CACjB,CAAA;AACH,CAAC,CAAA;AAhHY,QAAA,eAAe,mBAgH3B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/pages/ProposalDetails/index.js b/dist/modules/lite/explorer/pages/ProposalDetails/index.js deleted file mode 100644 index a776255..0000000 --- a/dist/modules/lite/explorer/pages/ProposalDetails/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.ProposalDetails=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const core_1=require('@material-ui/core');const ProposalDetailCard_1=require('../../components/ProposalDetailCard');const GridContainer_1=require('../../../../common/GridContainer');const ChoiceItemSelected_1=require('../../components/ChoiceItemSelected');const VoteDetails_1=require('../../components/VoteDetails');const react_router_dom_1=require('react-router-dom');const useTezos_1=require('../../../../../services/beacon/hooks/useTezos');const utils_1=require('../../../../../services/lite/utils');const useNotification_1=require('../../../../common/hooks/useNotification');const usePollChoices_1=require('../../hooks/usePollChoices');const useCommunity_1=require('../../hooks/useCommunity');const usePoll_1=require('../../hooks/usePoll');const ProposalTableRowStatusBadge_1=require('../../components/ProposalTableRowStatusBadge');const BackButton_1=require('../../../components/BackButton');const lite_services_1=require('../../../../../services/services/lite/lite-services');const PageContainer=(0,core_1.styled)('div')({marginBottom:50,width:'1000px',height:'100%',margin:'auto',padding:'28px 0',boxSizing:'border-box',paddingTop:0,['@media (max-width: 1425px)']:{},['@media (max-width:1335px)']:{},['@media (max-width:1167px)']:{width:'86vw'},['@media (max-width:1030px)']:{},['@media (max-width:960px)']:{},['@media (max-width:645px)']:{flexDirection:'column'}});const ProposalDetails=({id})=>{const {proposalId}=(0,react_router_dom_1.useParams)();const theme=(0,core_1.useTheme)();const isMobileSmall=(0,core_1.useMediaQuery)(theme.breakpoints.down('sm'));const navigate=(0,react_router_dom_1.useHistory)();const {state}=(0,react_router_dom_1.useLocation)();const {account,wallet}=(0,useTezos_1.useTezos)();const openNotification=(0,useNotification_1.useNotification)();const [refresh,setRefresh]=(0,react_1.useState)();const community=(0,useCommunity_1.useCommunity)(id);const poll=(0,usePoll_1.useSinglePoll)(proposalId,id,community);const choices=(0,usePollChoices_1.usePollChoices)(poll,refresh);const [selectedVotes,setSelectedVotes]=(0,react_1.useState)([]);(0,react_1.useEffect)(()=>{choices.map(elem=>{return elem.selected=false;});});const votesData=selectedVotes.map(vote=>{return{address:account,choice:vote===null||vote===void 0?void 0:vote.name,choiceId:vote===null||vote===void 0?void 0:vote._id,pollID:poll===null||poll===void 0?void 0:poll._id};});const saveVote=()=>__awaiter(void 0,void 0,void 0,function*(){var _a;if(!wallet){return;}try{const publicKey=(_a=yield wallet===null||wallet===void 0?void 0:wallet.client.getActiveAccount())===null||_a===void 0?void 0:_a.publicKey;const {signature,payloadBytes}=yield(0,utils_1.getSignature)(account,wallet,JSON.stringify(votesData));if(!signature){openNotification({message:`Issue with Signature`,autoHideDuration:3000,variant:'error'});return;}const resp=yield(0,lite_services_1.voteOnLiteProposal)(signature,publicKey,payloadBytes);if(resp.ok){openNotification({message:'Your vote has been submitted',autoHideDuration:3000,variant:'success'});setRefresh(Math.random());setSelectedVotes([]);}else{openNotification({message:`Something went wrong!!`,autoHideDuration:3000,variant:'error'});return;}}catch(error){openNotification({message:`Something went wrong!!`,autoHideDuration:3000,variant:'error'});return;}});return(0,jsx_runtime_1.jsxs)(PageContainer,{style:{gap:30},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,children:(0,jsx_runtime_1.jsx)(BackButton_1.BackButton,{})}),(0,jsx_runtime_1.jsxs)(core_1.Grid,{container:true,style:{gap:30},children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,children:(0,jsx_runtime_1.jsx)(ProposalDetailCard_1.ProposalDetailCard,{poll:poll,daoId:id})}),(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,item:true,xs:12,children:choices&&choices.length>0?(0,jsx_runtime_1.jsxs)(GridContainer_1.GridContainer,{container:true,style:{gap:32},direction:'row',justifyContent:'center',children:[(0,jsx_runtime_1.jsx)(core_1.Grid,{container:true,item:true,justifyContent:isMobileSmall?'center':'space-between',direction:'row',style:{gap:30},children:choices.map((choice,index)=>{return(0,jsx_runtime_1.jsx)(ChoiceItemSelected_1.ChoiceItemSelected,{multiple:(poll===null||poll===void 0?void 0:poll.votingStrategy)===0?false:true,choice:choice,votes:selectedVotes,setSelectedVotes:setSelectedVotes},index);})}),(poll===null||poll===void 0?void 0:poll.isActive)===ProposalTableRowStatusBadge_1.ProposalStatus.ACTIVE?(0,jsx_runtime_1.jsx)(core_1.Button,{disabled:selectedVotes.length===0,variant:'contained',color:'secondary',onClick:()=>saveVote(),children:'Cast your vote'}):null]}):null}),(0,jsx_runtime_1.jsx)(core_1.Grid,{item:true,xs:12,children:poll&&poll!==undefined?(0,jsx_runtime_1.jsx)(VoteDetails_1.VoteDetails,{poll:poll,choices:choices,token:community===null||community===void 0?void 0:community.tokenAddress,communityId:community===null||community===void 0?void 0:community._id}):null})]})]});};exports.ProposalDetails=ProposalDetails; \ No newline at end of file diff --git a/dist/modules/lite/explorer/pages/ProposalDetails/index.js.map b/dist/modules/lite/explorer/pages/ProposalDetails/index.js.map deleted file mode 100644 index 35ff889..0000000 --- a/dist/modules/lite/explorer/pages/ProposalDetails/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/lite/explorer/pages/ProposalDetails/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,iCAA8D;AAC9D,4CAAiF;AACjF,4EAAwE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,YACd,IAAI,IAAI,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CAC5B,uBAAC,yBAAW,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,YAAY,EAAE,WAAW,EAAE,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,GAAG,GAAI,CAC3G,CAAC,CAAC,CAAC,IAAI,GACH,IACF,IACO,CACjB,CAAA;AACH,CAAC,CAAA;AAhIY,QAAA,eAAe,mBAgI3B"} \ No newline at end of file diff --git a/dist/modules/lite/explorer/router.js b/dist/modules/lite/explorer/router.js deleted file mode 100644 index c1002c6..0000000 --- a/dist/modules/lite/explorer/router.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.LiteExplorerRouter=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_router_1=require('react-router');const router_1=require('./pages/CommunityDetails/router');const react_router_dom_1=require('react-router-dom');const core_1=require('@material-ui/core');const Toolbar_1=require('../../explorer/components/Toolbar');const explorer_1=require('./context/ActionSheets/explorer');const PageContainer=(0,core_1.styled)(core_1.Grid)(({theme})=>({background:theme.palette.primary.dark}));const LiteExplorerRouter=()=>{const match=(0,react_router_1.useRouteMatch)();const {id}=(0,react_router_dom_1.useParams)();return(0,jsx_runtime_1.jsxs)(PageContainer,{container:true,direction:'row',children:[(0,jsx_runtime_1.jsx)(Toolbar_1.Navbar,{disableMobileMenu:true}),(0,jsx_runtime_1.jsx)(explorer_1.AppContextProvider,{children:(0,jsx_runtime_1.jsxs)(react_router_1.Switch,{children:[(0,jsx_runtime_1.jsx)(react_router_1.Route,{path:`${match.url}/community`,children:(0,jsx_runtime_1.jsx)(router_1.CommunityDetailsRouter,{id:id})}),(0,jsx_runtime_1.jsx)(react_router_1.Redirect,{to:`${match.url}/community`})]})})]});};exports.LiteExplorerRouter=LiteExplorerRouter; \ No newline at end of file diff --git a/dist/modules/lite/explorer/router.js.map b/dist/modules/lite/explorer/router.js.map deleted file mode 100644 index afcb337..0000000 --- a/dist/modules/lite/explorer/router.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../src/modules/lite/explorer/router.tsx"],"names":[],"mappings":";;;;AACA,+CAAqE;AACrE,4DAAwE;AACxE,uDAA4C;AAC5C,4CAAgD;AAChD,iEAA4D;AAC5D,8DAAoE;AAEpE,MAAM,aAAa,GAAG,IAAA,aAAM,EAAC,WAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACjD,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;CACvC,CAAC,CAAC,CAAA;AAEI,MAAM,kBAAkB,GAAa,GAAgB,EAAE;IAC5D,MAAM,KAAK,GAAG,IAAA,4BAAa,GAAE,CAAA;IAE7B,MAAM,EAAE,EAAE,EAAE,GAAG,IAAA,4BAAS,GAEpB,CAAA;IAEJ,OAAO,CACL,wBAAC,aAAa,IAAC,SAAS,QAAC,SAAS,EAAC,KAAK,aACtC,uBAAC,gBAAM,IAAC,iBAAiB,SAAG,EAC5B,uBAAC,6BAAkB,cACjB,wBAAC,qBAAM,eACL,uBAAC,oBAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,YAAY,YACnC,uBAAC,+BAAsB,IAAC,EAAE,EAAE,EAAE,GAAI,GAC5B,EACR,uBAAC,uBAAQ,IAAC,EAAE,EAAE,GAAG,KAAK,CAAC,GAAG,YAAY,GAAI,IACnC,GACU,IACP,CACjB,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,kBAAkB,sBAoB9B"} \ No newline at end of file diff --git a/dist/services/agora/hooks/useTopic.js b/dist/services/agora/hooks/useTopic.js deleted file mode 100644 index 3e036d8..0000000 --- a/dist/services/agora/hooks/useTopic.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.useAgoraTopic=void 0;const react_query_1=require('react-query');const topics_1=require('../topics');const useAgoraTopic=topicId=>{const result=(0,react_query_1.useQuery)(['agoraTopic',topicId],()=>(0,topics_1.getTopicById)(topicId),{enabled:!!topicId,cacheTime:Infinity,refetchOnWindowFocus:false});return result;};exports.useAgoraTopic=useAgoraTopic; \ No newline at end of file diff --git a/dist/services/agora/hooks/useTopic.js.map b/dist/services/agora/hooks/useTopic.js.map deleted file mode 100644 index c224ba6..0000000 --- a/dist/services/agora/hooks/useTopic.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useTopic.js","sourceRoot":"","sources":["../../../../src/services/agora/hooks/useTopic.tsx"],"names":[],"mappings":";;;AAAA,6CAAsC;AACtC,sCAAwC;AAGjC,MAAM,aAAa,GAAG,CAAC,OAAgB,EAAE,EAAE;IAChD,MAAM,MAAM,GAAG,IAAA,sBAAQ,EAAe,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,IAAA,qBAAY,EAAC,OAAiB,CAAC,EAAE;QACpG,OAAO,EAAE,CAAC,CAAC,OAAO;QAClB,SAAS,EAAE,QAAQ;QACnB,oBAAoB,EAAE,KAAK;KAC5B,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AARY,QAAA,aAAa,iBAQzB"} \ No newline at end of file diff --git a/dist/services/agora/index.js b/dist/services/agora/index.js deleted file mode 100644 index 4bed6aa..0000000 --- a/dist/services/agora/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.API_URL=void 0;const config_1=require('../config');exports.API_URL=`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_CORS_PROXY_URL)}/https://forum.tezosagora.org`; \ No newline at end of file diff --git a/dist/services/agora/index.js.map b/dist/services/agora/index.js.map deleted file mode 100644 index 2a94855..0000000 --- a/dist/services/agora/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/agora/index.ts"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,OAAO,GAAG,GAAG,IAAA,eAAM,EAAC,eAAM,CAAC,wBAAwB,CAAC,+BAA+B,CAAA"} \ No newline at end of file diff --git a/dist/services/agora/topics/index.js b/dist/services/agora/topics/index.js deleted file mode 100644 index 1e1559e..0000000 --- a/dist/services/agora/topics/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.getTopicById=void 0;const __1=require('..');const node_fetch_1=__importDefault(require('node-fetch'));const getTopicById=topicId=>__awaiter(void 0,void 0,void 0,function*(){if(topicId<=0){throw new Error('Failed to fetch Agora Topic from Discourse API');}const url=`${__1.API_URL}/t/${topicId}.json`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch Agora Topic from Discourse API');}const result=yield response.json();return result;});exports.getTopicById=getTopicById; \ No newline at end of file diff --git a/dist/services/agora/topics/index.js.map b/dist/services/agora/topics/index.js.map deleted file mode 100644 index 6a0bc6e..0000000 --- a/dist/services/agora/topics/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/agora/topics/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0BAA4B;AAE5B,4DAA+B;AAExB,MAAM,YAAY,GAAG,CAAO,OAAe,EAAkB,EAAE;IACpE,IAAI,OAAO,IAAI,CAAC,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAA;KAClE;IAED,MAAM,GAAG,GAAG,GAAG,WAAO,MAAM,OAAO,OAAO,CAAA;IAE1C,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAA;KAClE;IAED,MAAM,MAAM,GAAU,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAE3C,OAAO,MAAM,CAAA;AACf,CAAC,CAAA,CAAA;AAhBY,QAAA,YAAY,gBAgBxB"} \ No newline at end of file diff --git a/dist/services/agora/topics/types.js b/dist/services/agora/topics/types.js deleted file mode 100644 index fa85c5c..0000000 --- a/dist/services/agora/topics/types.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file diff --git a/dist/services/agora/topics/types.js.map b/dist/services/agora/topics/types.js.map deleted file mode 100644 index 05e4714..0000000 --- a/dist/services/agora/topics/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/services/agora/topics/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/services/bakingBad/context/TZKTSubscriptions.js b/dist/services/bakingBad/context/TZKTSubscriptions.js index 7c009f5..658e356 100644 --- a/dist/services/bakingBad/context/TZKTSubscriptions.js +++ b/dist/services/bakingBad/context/TZKTSubscriptions.js @@ -1 +1,48 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.TZKTSubscriptionsContext=exports.TZKTSubscriptionsProvider=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const signalr_1=require('@microsoft/signalr');const useTezos_1=require('../../beacon/hooks/useTezos');const index_1=require('../index');const TZKTSubscriptionsContext=(0,react_1.createContext)({state:{block:0}});exports.TZKTSubscriptionsContext=TZKTSubscriptionsContext;const getUrl=network=>`https://api.${index_1.networkNameMap[network]}.tzkt.io/v1/events`;const TZKTSubscriptionsProvider=({children})=>{const [block,setBlock]=(0,react_1.useState)(0);const socketRef=(0,react_1.useRef)();const {network}=(0,useTezos_1.useTezos)();(0,react_1.useEffect)(()=>{;(()=>__awaiter(void 0,void 0,void 0,function*(){socketRef.current=new signalr_1.HubConnectionBuilder().withUrl(getUrl(network)).build();yield socketRef.current.start();socketRef.current.on('blocks',blockMessage=>{setBlock(blockMessage.state);});yield socketRef.current.invoke('SubscribeToBlocks');}))();return()=>{var _a;(_a=socketRef.current)===null||_a===void 0?void 0:_a.stop();};},[network]);return(0,jsx_runtime_1.jsx)(TZKTSubscriptionsContext.Provider,{value:{state:{block}},children:children});};exports.TZKTSubscriptionsProvider=TZKTSubscriptionsProvider; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TZKTSubscriptionsContext = exports.TZKTSubscriptionsProvider = void 0; +const jsx_runtime_1 = require("react/jsx-runtime"); +const react_1 = require("react"); +const signalr_1 = require("@microsoft/signalr"); +const useTezos_1 = require("../../beacon/hooks/useTezos"); +const index_1 = require("../index"); +const TZKTSubscriptionsContext = (0, react_1.createContext)({ + state: { + block: 0 + } +}); +exports.TZKTSubscriptionsContext = TZKTSubscriptionsContext; +const getUrl = (network) => `https://api.${index_1.networkNameMap[network]}.tzkt.io/v1/events`; +const TZKTSubscriptionsProvider = ({ children }) => { + const [block, setBlock] = (0, react_1.useState)(0); + const socketRef = (0, react_1.useRef)(); + const { network } = (0, useTezos_1.useTezos)(); + (0, react_1.useEffect)(() => { + ; + (() => __awaiter(void 0, void 0, void 0, function* () { + socketRef.current = new signalr_1.HubConnectionBuilder().withUrl(getUrl(network)).build(); + yield socketRef.current.start(); + // listen for incoming message + socketRef.current.on("blocks", (blockMessage) => { + setBlock(blockMessage.state); + }); + yield socketRef.current.invoke("SubscribeToBlocks"); + }))(); + return () => { + var _a; + (_a = socketRef.current) === null || _a === void 0 ? void 0 : _a.stop(); + }; + }, [network]); + return (0, jsx_runtime_1.jsx)(TZKTSubscriptionsContext.Provider, { value: { state: { block } }, children: children }); +}; +exports.TZKTSubscriptionsProvider = TZKTSubscriptionsProvider; +//# sourceMappingURL=TZKTSubscriptions.js.map \ No newline at end of file diff --git a/dist/services/bakingBad/delegations/index.js b/dist/services/bakingBad/delegations/index.js index ac4691e..b90f26d 100644 --- a/dist/services/bakingBad/delegations/index.js +++ b/dist/services/bakingBad/delegations/index.js @@ -1 +1,31 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.getLatestDelegation=void 0;const __1=require('..');const node_fetch_1=__importDefault(require('node-fetch'));const getLatestDelegation=(daoAddress,network)=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/operations/delegations?sender=${daoAddress}&status=applied`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch delegations from TZKT API');}const resultingDelegations=yield response.json();if(!resultingDelegations.length){return null;}return resultingDelegations[0];});exports.getLatestDelegation=getLatestDelegation; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getLatestDelegation = void 0; +const __1 = require("../../.."); +const node_fetch_1 = __importDefault(require("node-fetch")); +const getLatestDelegation = (daoAddress, network) => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/operations/delegations?sender=${daoAddress}&status=applied`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch delegations from TZKT API"); + } + const resultingDelegations = yield response.json(); + if (!resultingDelegations.length) { + return null; + } + return resultingDelegations[0]; +}); +exports.getLatestDelegation = getLatestDelegation; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/bakingBad/delegations/index.js.map b/dist/services/bakingBad/delegations/index.js.map index 9f4eb1c..25b0599 100644 --- a/dist/services/bakingBad/delegations/index.js.map +++ b/dist/services/bakingBad/delegations/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/bakingBad/delegations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,0BAAmC;AAEnC,4DAA+B;AAExB,MAAM,mBAAmB,GAAG,CAAO,UAAkB,EAAE,OAAgB,EAAE,EAAE;IAChF,MAAM,GAAG,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,6CAA6C,UAAU,iBAAiB,CAAA;IAC1H,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IACjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAA;KAC7D;IAED,MAAM,oBAAoB,GAAoB,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAEnE,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE;QAChC,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAA;AAChC,CAAC,CAAA,CAAA;AAdY,QAAA,mBAAmB,uBAc/B"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/bakingBad/delegations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,0BAAmC;AAEnC,4DAA8B;AAEvB,MAAM,mBAAmB,GAAG,CAAO,UAAkB,EAAE,OAAgB,EAAE,EAAE;IAChF,MAAM,GAAG,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,6CAA6C,UAAU,iBAAiB,CAAA;IAC1H,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IACjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAA;KAC7D;IAED,MAAM,oBAAoB,GAAoB,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAEnE,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE;QAChC,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAA;AAChC,CAAC,CAAA,CAAA;AAdY,QAAA,mBAAmB,uBAc/B"} \ No newline at end of file diff --git a/dist/services/bakingBad/delegations/types.js b/dist/services/bakingBad/delegations/types.js index fa85c5c..11e638d 100644 --- a/dist/services/bakingBad/delegations/types.js +++ b/dist/services/bakingBad/delegations/types.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/services/bakingBad/index.js b/dist/services/bakingBad/index.js index 48c7f4e..52907b8 100644 --- a/dist/services/bakingBad/index.js +++ b/dist/services/bakingBad/index.js @@ -1 +1,8 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.networkNameMap=void 0;exports.networkNameMap={mainnet:'mainnet',ghostnet:'ghostnet'}; \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.networkNameMap = void 0; +exports.networkNameMap = { + mainnet: "mainnet", + ghostnet: "ghostnet" +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/bakingBad/lambdas/constants.js b/dist/services/bakingBad/lambdas/constants.js index 090e7cb..a9c5c37 100644 --- a/dist/services/bakingBad/lambdas/constants.js +++ b/dist/services/bakingBad/lambdas/constants.js @@ -1 +1,12 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.SupportedLambdaProposalKey=void 0;var SupportedLambdaProposalKey;(function(SupportedLambdaProposalKey){SupportedLambdaProposalKey['TransferProposal']='transfer_proposal';SupportedLambdaProposalKey['ConfigurationProposal']='configuration_proposal';SupportedLambdaProposalKey['UpdateGuardianProposal']='update_guardian_proposal';SupportedLambdaProposalKey['UpdateContractDelegateProposal']='update_contract_delegate_proposal';SupportedLambdaProposalKey['UpdateReceiversProposal']='update_receivers_proposal';}(SupportedLambdaProposalKey||(exports.SupportedLambdaProposalKey=SupportedLambdaProposalKey={}))); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SupportedLambdaProposalKey = void 0; +var SupportedLambdaProposalKey; +(function (SupportedLambdaProposalKey) { + SupportedLambdaProposalKey["TransferProposal"] = "transfer_proposal"; + SupportedLambdaProposalKey["ConfigurationProposal"] = "configuration_proposal"; + SupportedLambdaProposalKey["UpdateGuardianProposal"] = "update_guardian_proposal"; + SupportedLambdaProposalKey["UpdateContractDelegateProposal"] = "update_contract_delegate_proposal"; + SupportedLambdaProposalKey["UpdateReceiversProposal"] = "update_receivers_proposal"; +})(SupportedLambdaProposalKey || (exports.SupportedLambdaProposalKey = SupportedLambdaProposalKey = {})); +//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/services/bakingBad/lambdas/index.js b/dist/services/bakingBad/lambdas/index.js index 3a3173b..c8d4122 100644 --- a/dist/services/bakingBad/lambdas/index.js +++ b/dist/services/bakingBad/lambdas/index.js @@ -1 +1,54 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)if(p!=='default'&&!Object.prototype.hasOwnProperty.call(exports,p))__createBinding(exports,m,p);};var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.getDAOLambda=exports.getDAOLambdas=void 0;const __1=require('..');const node_fetch_1=__importDefault(require('node-fetch'));__exportStar(require('./types'),exports);__exportStar(require('./constants'),exports);const getDAOLambdas=(daoId,network)=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/contracts/${daoId}/bigmaps/extra.lambdas/keys`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract storage from BakingBad API');}const result=yield response.json();return result;});exports.getDAOLambdas=getDAOLambdas;const getDAOLambda=(daoId,network,lambda_name)=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/contracts/${daoId}/bigmaps/extra.lambdas/keys/${lambda_name}`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract storage from BakingBad API');}const result=yield response.json();return result;});exports.getDAOLambda=getDAOLambda; \ No newline at end of file +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getDAOLambda = exports.getDAOLambdas = void 0; +const __1 = require("../../.."); +const node_fetch_1 = __importDefault(require("node-fetch")); +__exportStar(require("./types"), exports); +__exportStar(require("./constants"), exports); +const getDAOLambdas = (daoId, network) => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/contracts/${daoId}/bigmaps/extra.lambdas/keys`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch contract storage from BakingBad API"); + } + const result = yield response.json(); + return result; +}); +exports.getDAOLambdas = getDAOLambdas; +const getDAOLambda = (daoId, network, lambda_name) => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/contracts/${daoId}/bigmaps/extra.lambdas/keys/${lambda_name}`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch contract storage from BakingBad API"); + } + const result = yield response.json(); + return result; +}); +exports.getDAOLambda = getDAOLambda; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/bakingBad/lambdas/index.js.map b/dist/services/bakingBad/lambdas/index.js.map index d07b355..18d1dbd 100644 --- a/dist/services/bakingBad/lambdas/index.js.map +++ b/dist/services/bakingBad/lambdas/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/bakingBad/lambdas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,0BAAmC;AACnC,4DAA+B;AAE/B,0CAAuB;AACvB,8CAA2B;AAEpB,MAAM,aAAa,GAAG,CAAO,KAAa,EAAE,OAAgB,EAA0B,EAAE;IAC7F,MAAM,GAAG,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,yBAAyB,KAAK,6BAA6B,CAAA;IAC7G,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;KACvE;IAED,MAAM,MAAM,GAAa,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAE9C,OAAO,MAAM,CAAA;AACf,CAAC,CAAA,CAAA;AAXY,QAAA,aAAa,iBAWzB;AAEM,MAAM,YAAY,GAAG,CAAO,KAAa,EAAE,OAAgB,EAAE,WAAmB,EAAmB,EAAE;IAC1G,MAAM,GAAG,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,yBAAyB,KAAK,+BAA+B,WAAW,EAAE,CAAA;IAC5H,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;KACvE;IAED,MAAM,MAAM,GAAW,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAE5C,OAAO,MAAM,CAAA;AACf,CAAC,CAAA,CAAA;AAXY,QAAA,YAAY,gBAWxB"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/bakingBad/lambdas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,0BAAmC;AACnC,4DAA8B;AAE9B,0CAAuB;AACvB,8CAA2B;AAEpB,MAAM,aAAa,GAAG,CAAO,KAAa,EAAE,OAAgB,EAA0B,EAAE;IAC7F,MAAM,GAAG,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,yBAAyB,KAAK,6BAA6B,CAAA;IAC7G,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;KACvE;IAED,MAAM,MAAM,GAAa,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAE9C,OAAO,MAAM,CAAA;AACf,CAAC,CAAA,CAAA;AAXY,QAAA,aAAa,iBAWzB;AAEM,MAAM,YAAY,GAAG,CAAO,KAAa,EAAE,OAAgB,EAAE,WAAmB,EAAmB,EAAE;IAC1G,MAAM,GAAG,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,yBAAyB,KAAK,+BAA+B,WAAW,EAAE,CAAA;IAC5H,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;KACvE;IAED,MAAM,MAAM,GAAW,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAE5C,OAAO,MAAM,CAAA;AACf,CAAC,CAAA,CAAA;AAXY,QAAA,YAAY,gBAWxB"} \ No newline at end of file diff --git a/dist/services/bakingBad/lambdas/types.js b/dist/services/bakingBad/lambdas/types.js index fa85c5c..11e638d 100644 --- a/dist/services/bakingBad/lambdas/types.js +++ b/dist/services/bakingBad/lambdas/types.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/services/bakingBad/stats/index.js b/dist/services/bakingBad/stats/index.js index 8c93777..5c882e5 100644 --- a/dist/services/bakingBad/stats/index.js +++ b/dist/services/bakingBad/stats/index.js @@ -1 +1,38 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.getNetworkHead=exports.getNetworkStats=void 0;const __1=require('..');const node_fetch_1=__importDefault(require('node-fetch'));const getNetworkStats=network=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/protocols/current`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract storage from BakingBad API');}const result=yield response.json();return result;});exports.getNetworkStats=getNetworkStats;const getNetworkHead=network=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/blocks/count`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract storage from BakingBad API');}const result=yield response.json();return result;});exports.getNetworkHead=getNetworkHead; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getNetworkHead = exports.getNetworkStats = void 0; +const __1 = require("../../.."); +const node_fetch_1 = __importDefault(require("node-fetch")); +const getNetworkStats = (network) => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/protocols/current`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch contract storage from BakingBad API"); + } + const result = yield response.json(); + return result; +}); +exports.getNetworkStats = getNetworkStats; +const getNetworkHead = (network) => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/blocks/count`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch contract storage from BakingBad API"); + } + const result = yield response.json(); + return result; +}); +exports.getNetworkHead = getNetworkHead; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/bakingBad/stats/index.js.map b/dist/services/bakingBad/stats/index.js.map index 217d129..7d2c992 100644 --- a/dist/services/bakingBad/stats/index.js.map +++ b/dist/services/bakingBad/stats/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/bakingBad/stats/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,0BAAmC;AACnC,4DAA+B;AAExB,MAAM,eAAe,GAAG,CAAO,OAAgB,EAA4B,EAAE;IAClF,MAAM,GAAG,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,+BAA+B,CAAA;IACjF,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;KACvE;IAED,MAAM,MAAM,GAAoB,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAErD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA,CAAA;AAXY,QAAA,eAAe,mBAW3B;AAEM,MAAM,cAAc,GAAG,CAAO,OAAgB,EAAmB,EAAE;IACxE,MAAM,GAAG,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,0BAA0B,CAAA;IAC5E,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;KACvE;IAED,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IACpC,OAAO,MAAM,CAAA;AACf,CAAC,CAAA,CAAA;AAVY,QAAA,cAAc,kBAU1B"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/bakingBad/stats/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,0BAAmC;AACnC,4DAA8B;AAEvB,MAAM,eAAe,GAAG,CAAO,OAAgB,EAA4B,EAAE;IAClF,MAAM,GAAG,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,+BAA+B,CAAA;IACjF,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;KACvE;IAED,MAAM,MAAM,GAAoB,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAErD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA,CAAA;AAXY,QAAA,eAAe,mBAW3B;AAEM,MAAM,cAAc,GAAG,CAAO,OAAgB,EAAmB,EAAE;IACxE,MAAM,GAAG,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,0BAA0B,CAAA;IAC5E,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;KACvE;IAED,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IACpC,OAAO,MAAM,CAAA;AACf,CAAC,CAAA,CAAA;AAVY,QAAA,cAAc,kBAU1B"} \ No newline at end of file diff --git a/dist/services/bakingBad/stats/types.js b/dist/services/bakingBad/stats/types.js index fa85c5c..11e638d 100644 --- a/dist/services/bakingBad/stats/types.js +++ b/dist/services/bakingBad/stats/types.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/services/bakingBad/tokenBalances/index.js b/dist/services/bakingBad/tokenBalances/index.js index ce51009..1c2d632 100644 --- a/dist/services/bakingBad/tokenBalances/index.js +++ b/dist/services/bakingBad/tokenBalances/index.js @@ -1 +1,179 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.getUserTokenBalance=exports.getTokenMetadata=exports.getDAONFTBalances=exports.getDAOBalances=void 0;const bignumber_js_1=__importDefault(require('bignumber.js'));const Token_1=require('../../../models/Token');const utils_1=require('../../contracts/utils');const __1=require('..');const node_fetch_1=__importDefault(require('node-fetch'));const isNFTDTO=value=>value.hasOwnProperty('artifact_uri');const isBalanceTzktNFT=value=>{var _a;return Boolean((_a=value.token.metadata)===null||_a===void 0?void 0:_a.artifactUri);};const isTokenTzktNFT=value=>{var _a;return Boolean((_a=value.metadata)===null||_a===void 0?void 0:_a.artifactUri);};const ELEMENTS_PER_REQUEST=50;const getDAOBalances=(daoId,network,offset=0,balances=[])=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens/balances?account=${daoId}&limit=${ELEMENTS_PER_REQUEST}&offset=${offset}&token.metadata.artifactUri.null=true`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract storage from BakingBad API');}const result=yield response.json();if(result.length===0){return balances;}const tokenBalances=yield Promise.all(result.map(balance=>__awaiter(void 0,void 0,void 0,function*(){var _a,_b,_c;const tokenData=balance.token;const tokenBalance={id:balance.token.id.toString(),supply:tokenData.totalSupply,contract:balance.token.contract.address,token_id:parseInt(balance.token.tokenId),network:network,symbol:((_a=tokenData.metadata)===null||_a===void 0?void 0:_a.symbol)||'',level:balance.firstLevel,name:((_b=tokenData.metadata)===null||_b===void 0?void 0:_b.name)||'',decimals:parseInt((_c=tokenData.metadata)===null||_c===void 0?void 0:_c.decimals)||0,balance:balance.balance,standard:tokenData.standard};return tokenBalance;})));const fetchedBalances=tokenBalances.map(daoTokenDTO=>{return{balance:(0,utils_1.parseUnits)(new bignumber_js_1.default(daoTokenDTO.balance),daoTokenDTO.decimals),token:new Token_1.Token(daoTokenDTO)};});return(0,exports.getDAOBalances)(daoId,network,offset+ELEMENTS_PER_REQUEST,balances.concat(fetchedBalances));});exports.getDAOBalances=getDAOBalances;const getDAONFTBalances=(daoId,network,offset=0,balances=[])=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens/balances?account=${daoId}&limit=${ELEMENTS_PER_REQUEST}&offset=${offset}&token.metadata.artifactUri.null=false`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract storage from BakingBad API');}const result=yield response.json();if(result.length===0){return balances;}const tokenBalances=yield Promise.all(result.map(balance=>__awaiter(void 0,void 0,void 0,function*(){var _d,_e,_f,_g,_h,_j,_k,_l,_m;const tokenData=balance.token;const tokenBalance={id:balance.token.id.toString(),supply:tokenData.totalSupply,contract:balance.token.contract.address,token_id:parseInt(balance.token.tokenId),network:network,symbol:((_d=tokenData.metadata)===null||_d===void 0?void 0:_d.symbol)||'',level:balance.firstLevel,name:((_e=tokenData.metadata)===null||_e===void 0?void 0:_e.name)||'',decimals:parseInt((_f=tokenData.metadata)===null||_f===void 0?void 0:_f.decimals)||0,description:((_g=tokenData.metadata)===null||_g===void 0?void 0:_g.description)||'',artifact_uri:((_h=tokenData.metadata)===null||_h===void 0?void 0:_h.artifactUri)||'',thumbnail_uri:((_j=tokenData.metadata)===null||_j===void 0?void 0:_j.thumbnailUri)||'',is_transferable:(_k=tokenData.metadata)===null||_k===void 0?void 0:_k.isTransferable,creators:((_l=tokenData.metadata)===null||_l===void 0?void 0:_l.creators)||[],tags:((_m=tokenData.metadata)===null||_m===void 0?void 0:_m.tags)||[],formats:tokenData.metadata.formats||[{mimeType:'',uri:''}],balance:balance.balance,standard:tokenData.standard};return tokenBalance;})));const fetchedBalances=tokenBalances.map(daoTokenDTO=>{return{balance:(0,utils_1.parseUnits)(new bignumber_js_1.default(daoTokenDTO.balance),daoTokenDTO.decimals),token:new Token_1.NFT(daoTokenDTO)};});return(0,exports.getDAONFTBalances)(daoId,network,offset+ELEMENTS_PER_REQUEST,balances.concat(fetchedBalances));});exports.getDAONFTBalances=getDAONFTBalances;const getTokenMetadata=(contractAddress,network,tokenId)=>__awaiter(void 0,void 0,void 0,function*(){var _o,_p,_q,_r,_s,_t,_u,_v,_w,_x,_y,_z;let url='';if(tokenId!==undefined){url=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens?contract=${contractAddress}&tokenId=${tokenId}`;}else{url=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens?contract=${contractAddress}`;}const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch proposals from BakingBad API');}const resultTokenDataTzkt=yield response.json();const tokenData=resultTokenDataTzkt[0];let result;if(isTokenTzktNFT(tokenData)){result={id:tokenData.id.toString(),supply:tokenData.totalSupply,contract:tokenData.contract.address,token_id:parseInt(tokenData.tokenId),network:network,symbol:((_o=tokenData.metadata)===null||_o===void 0?void 0:_o.symbol)||'',level:tokenData.firstLevel,name:((_p=tokenData.metadata)===null||_p===void 0?void 0:_p.name)||'',decimals:parseInt((_q=tokenData.metadata)===null||_q===void 0?void 0:_q.decimals)||0,description:((_r=tokenData.metadata)===null||_r===void 0?void 0:_r.description)||'',artifact_uri:((_s=tokenData.metadata)===null||_s===void 0?void 0:_s.artifactUri)||'',thumbnail_uri:((_t=tokenData.metadata)===null||_t===void 0?void 0:_t.thumbnailUri)||'',is_transferable:tokenData.metadata.isTransferable,creators:(_u=tokenData.metadata)===null||_u===void 0?void 0:_u.creators,tags:(_v=tokenData.metadata)===null||_v===void 0?void 0:_v.tags,formats:(_w=tokenData.metadata)===null||_w===void 0?void 0:_w.formats,balance:'',standard:tokenData.standard};}else{result={id:tokenData.id.toString(),supply:tokenData.totalSupply,contract:tokenData.contract.address,token_id:parseInt(tokenData.tokenId),network:network,symbol:((_x=tokenData.metadata)===null||_x===void 0?void 0:_x.symbol)||'',level:tokenData.firstLevel,name:((_y=tokenData.metadata)===null||_y===void 0?void 0:_y.name)||'',decimals:parseInt((_z=tokenData.metadata)===null||_z===void 0?void 0:_z.decimals)||0,balance:'',standard:tokenData.standard};}return isNFTDTO(result)?new Token_1.NFT(result):new Token_1.Token(result);});exports.getTokenMetadata=getTokenMetadata;const getUserTokenBalance=(accountAddress,network='mainnet',tokenAddress='')=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens/balances/?account=${accountAddress}&token.contract=${tokenAddress}`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch user balances');}const userTokenBalance=yield response.json();if(userTokenBalance&&userTokenBalance[0]){return userTokenBalance[0].balance;}});exports.getUserTokenBalance=getUserTokenBalance; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getUserTokenBalance = exports.getTokenMetadata = exports.getDAONFTBalances = exports.getDAOBalances = void 0; +const bignumber_js_1 = __importDefault(require("bignumber.js")); +const Token_1 = require("../../../models/Token"); +const utils_1 = require("../../contracts/utils"); +const __1 = require("../../.."); +const node_fetch_1 = __importDefault(require("node-fetch")); +const isNFTDTO = (value) => value.hasOwnProperty("artifact_uri"); +const isBalanceTzktNFT = (value) => { var _a; return Boolean((_a = value.token.metadata) === null || _a === void 0 ? void 0 : _a.artifactUri); }; +const isTokenTzktNFT = (value) => { var _a; return Boolean((_a = value.metadata) === null || _a === void 0 ? void 0 : _a.artifactUri); }; +const ELEMENTS_PER_REQUEST = 50; +const getDAOBalances = (daoId, network, offset = 0, balances = []) => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens/balances?account=${daoId}&limit=${ELEMENTS_PER_REQUEST}&offset=${offset}&token.metadata.artifactUri.null=true`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch contract storage from BakingBad API"); + } + const result = yield response.json(); + if (result.length === 0) { + return balances; + } + const tokenBalances = yield Promise.all(result.map((balance) => __awaiter(void 0, void 0, void 0, function* () { + var _a, _b, _c; + const tokenData = balance.token; + const tokenBalance = { + id: balance.token.id.toString(), + supply: tokenData.totalSupply, + contract: balance.token.contract.address, + token_id: parseInt(balance.token.tokenId), + network: network, + symbol: ((_a = tokenData.metadata) === null || _a === void 0 ? void 0 : _a.symbol) || "", + level: balance.firstLevel, + name: ((_b = tokenData.metadata) === null || _b === void 0 ? void 0 : _b.name) || "", + decimals: parseInt((_c = tokenData.metadata) === null || _c === void 0 ? void 0 : _c.decimals) || 0, + balance: balance.balance, + standard: tokenData.standard + }; + return tokenBalance; + }))); + const fetchedBalances = tokenBalances.map(daoTokenDTO => { + return { + balance: (0, utils_1.parseUnits)(new bignumber_js_1.default(daoTokenDTO.balance), daoTokenDTO.decimals), + token: new Token_1.Token(daoTokenDTO) + }; + }); + return (0, exports.getDAOBalances)(daoId, network, offset + ELEMENTS_PER_REQUEST, balances.concat(fetchedBalances)); +}); +exports.getDAOBalances = getDAOBalances; +const getDAONFTBalances = (daoId, network, offset = 0, balances = []) => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens/balances?account=${daoId}&limit=${ELEMENTS_PER_REQUEST}&offset=${offset}&token.metadata.artifactUri.null=false`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch contract storage from BakingBad API"); + } + const result = yield response.json(); + if (result.length === 0) { + return balances; + } + const tokenBalances = yield Promise.all(result.map((balance) => __awaiter(void 0, void 0, void 0, function* () { + var _d, _e, _f, _g, _h, _j, _k, _l, _m; + const tokenData = balance.token; + const tokenBalance = { + id: balance.token.id.toString(), + supply: tokenData.totalSupply, + contract: balance.token.contract.address, + token_id: parseInt(balance.token.tokenId), + network: network, + symbol: ((_d = tokenData.metadata) === null || _d === void 0 ? void 0 : _d.symbol) || "", + level: balance.firstLevel, + name: ((_e = tokenData.metadata) === null || _e === void 0 ? void 0 : _e.name) || "", + decimals: parseInt((_f = tokenData.metadata) === null || _f === void 0 ? void 0 : _f.decimals) || 0, + description: ((_g = tokenData.metadata) === null || _g === void 0 ? void 0 : _g.description) || "", + artifact_uri: ((_h = tokenData.metadata) === null || _h === void 0 ? void 0 : _h.artifactUri) || "", + thumbnail_uri: ((_j = tokenData.metadata) === null || _j === void 0 ? void 0 : _j.thumbnailUri) || "", + is_transferable: (_k = tokenData.metadata) === null || _k === void 0 ? void 0 : _k.isTransferable, + creators: ((_l = tokenData.metadata) === null || _l === void 0 ? void 0 : _l.creators) || [], + tags: ((_m = tokenData.metadata) === null || _m === void 0 ? void 0 : _m.tags) || [], + formats: tokenData.metadata.formats || [ + { + mimeType: "", + uri: "" + } + ], + balance: balance.balance, + standard: tokenData.standard + }; + return tokenBalance; + }))); + const fetchedBalances = tokenBalances.map(daoTokenDTO => { + return { + balance: (0, utils_1.parseUnits)(new bignumber_js_1.default(daoTokenDTO.balance), daoTokenDTO.decimals), + token: new Token_1.NFT(daoTokenDTO) + }; + }); + return (0, exports.getDAONFTBalances)(daoId, network, offset + ELEMENTS_PER_REQUEST, balances.concat(fetchedBalances)); +}); +exports.getDAONFTBalances = getDAONFTBalances; +const getTokenMetadata = (contractAddress, network, tokenId) => __awaiter(void 0, void 0, void 0, function* () { + var _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z; + let url = ""; + if (tokenId !== undefined) { + url = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens?contract=${contractAddress}&tokenId=${tokenId}`; + } + else { + url = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens?contract=${contractAddress}`; + } + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch proposals from BakingBad API"); + } + const resultTokenDataTzkt = yield response.json(); + const tokenData = resultTokenDataTzkt[0]; + let result; + if (isTokenTzktNFT(tokenData)) { + result = { + id: tokenData.id.toString(), + supply: tokenData.totalSupply, + contract: tokenData.contract.address, + token_id: parseInt(tokenData.tokenId), + network: network, + symbol: ((_o = tokenData.metadata) === null || _o === void 0 ? void 0 : _o.symbol) || "", + level: tokenData.firstLevel, + name: ((_p = tokenData.metadata) === null || _p === void 0 ? void 0 : _p.name) || "", + decimals: parseInt((_q = tokenData.metadata) === null || _q === void 0 ? void 0 : _q.decimals) || 0, + description: ((_r = tokenData.metadata) === null || _r === void 0 ? void 0 : _r.description) || "", + artifact_uri: ((_s = tokenData.metadata) === null || _s === void 0 ? void 0 : _s.artifactUri) || "", + thumbnail_uri: ((_t = tokenData.metadata) === null || _t === void 0 ? void 0 : _t.thumbnailUri) || "", + is_transferable: tokenData.metadata.isTransferable, + creators: (_u = tokenData.metadata) === null || _u === void 0 ? void 0 : _u.creators, + tags: (_v = tokenData.metadata) === null || _v === void 0 ? void 0 : _v.tags, + formats: (_w = tokenData.metadata) === null || _w === void 0 ? void 0 : _w.formats, + balance: "", + standard: tokenData.standard + }; + } + else { + result = { + id: tokenData.id.toString(), + supply: tokenData.totalSupply, + contract: tokenData.contract.address, + token_id: parseInt(tokenData.tokenId), + network: network, + symbol: ((_x = tokenData.metadata) === null || _x === void 0 ? void 0 : _x.symbol) || "", + level: tokenData.firstLevel, + name: ((_y = tokenData.metadata) === null || _y === void 0 ? void 0 : _y.name) || "", + decimals: parseInt((_z = tokenData.metadata) === null || _z === void 0 ? void 0 : _z.decimals) || 0, + balance: "", + standard: tokenData.standard + }; + } + return isNFTDTO(result) ? new Token_1.NFT(result) : new Token_1.Token(result); +}); +exports.getTokenMetadata = getTokenMetadata; +const getUserTokenBalance = (accountAddress, network = "mainnet", tokenAddress = "") => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens/balances/?account=${accountAddress}&token.contract=${tokenAddress}`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch user balances"); + } + const userTokenBalance = yield response.json(); + if (userTokenBalance && userTokenBalance[0]) { + return userTokenBalance[0].balance; + } +}); +exports.getUserTokenBalance = getUserTokenBalance; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/bakingBad/tokenBalances/index.js.map b/dist/services/bakingBad/tokenBalances/index.js.map index b0f5d44..a403885 100644 --- a/dist/services/bakingBad/tokenBalances/index.js.map +++ b/dist/services/bakingBad/tokenBalances/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/bakingBad/tokenBalances/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAoC;AACpC,wCAAyC;AAEzC,oDAAqD;AACrD,0BAAmC;AAEnC,4DAA+B;AAE/B,MAAM,QAAQ,GAAG,CAAC,KAAe,EAAmB,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;AAE3F,MAAM,gBAAgB,GAAG,CAAC,KAAkB,EAAW,EAAE,WAAC,OAAA,OAAO,CAAC,MAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,0CAAE,WAAW,CAAC,CAAA,EAAA,CAAA;AAEpG,MAAM,cAAc,GAAG,CAAC,KAAoB,EAAW,EAAE,WAAC,OAAA,OAAO,CAAC,MAAA,KAAK,CAAC,QAAQ,0CAAE,WAAW,CAAC,CAAA,EAAA,CAAA;AAW9F,MAAM,oBAAoB,GAAG,EAAE,CAAA;AAOxB,MAAM,cAAc,GAAG,CAC5B,KAAa,EACb,OAAgB,EAChB,MAAM,GAAG,CAAC,EACV,WAAyB,EAAE,EACJ,EAAE;IACzB,MAAM,GAAG,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,uCAAuC,KAAK,UAAU,oBAAoB,WAAW,MAAM,uCAAuC,CAAA;IACpL,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,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;QAChB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAA;KACjD;IAED,MAAM,gBAAgB,GAAqB,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAEhE,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,CAAC,CAAC,EAAE;QAC3C,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;KACnC;AACH,CAAC,CAAA,CAAA;AAdY,QAAA,mBAAmB,uBAc/B"} \ No newline at end of file diff --git a/dist/services/bakingBad/tokenBalances/types.js b/dist/services/bakingBad/tokenBalances/types.js index fa85c5c..11e638d 100644 --- a/dist/services/bakingBad/tokenBalances/types.js +++ b/dist/services/bakingBad/tokenBalances/types.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/services/bakingBad/transfers/index.js b/dist/services/bakingBad/transfers/index.js index 7ffc65e..f4899bb 100644 --- a/dist/services/bakingBad/transfers/index.js +++ b/dist/services/bakingBad/transfers/index.js @@ -1 +1,73 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.getDAOTransfers=void 0;const __1=require('..');const node_fetch_1=__importDefault(require('node-fetch'));const ELEMENTS_PER_REQUEST=20;const getDAOTransfers=(daoId,network)=>__awaiter(void 0,void 0,void 0,function*(){const urlTo=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens/transfers?to=${daoId}&limit=${ELEMENTS_PER_REQUEST}`;const responseTo=yield(0,node_fetch_1.default)(urlTo);if(!responseTo.ok){throw new Error('Failed to fetch contract storage from BakingBad API');}const resultsTzktTo=yield responseTo.json();const urlFrom=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens/transfers?from=${daoId}&limit=${ELEMENTS_PER_REQUEST}`;const responseFrom=yield(0,node_fetch_1.default)(urlFrom);if(!responseFrom.ok){throw new Error('Failed to fetch contract storage from BakingBad API');}const resultsTzktFrom=yield responseFrom.json();const resultsTzktAggregated=resultsTzktTo.concat(resultsTzktFrom);const transfers=yield Promise.all(resultsTzktAggregated.map(result=>__awaiter(void 0,void 0,void 0,function*(){var _a,_b,_c,_d;const urlId=`https://api.${__1.networkNameMap[network]}.tzkt.io/v1/operations/transactions?id=${result.transactionId}`;const responseId=yield(0,node_fetch_1.default)(urlId);const resultTzktTxResult=yield responseId.json();const resultTzktTx=resultTzktTxResult[0];const transferDTO={indexed_time:resultTzktTx.id,network:network,contract:result.token.contract.address,initiator:'',hash:resultTzktTx.hash,status:resultTzktTx.status,timestamp:result.timestamp,level:result.level,from:result.from.address,to:result.to.address,token_id:parseInt(result.token.tokenId),amount:result.amount,counter:resultTzktTx.counter,token:{contract:result.token.contract.address,network:network,token_id:parseInt(result.token.tokenId),symbol:((_a=result.token.metadata)===null||_a===void 0?void 0:_a.symbol)||'',name:((_b=result.token.metadata)===null||_b===void 0?void 0:_b.name)||'',decimals:parseInt(((_c=result.token.metadata)===null||_c===void 0?void 0:_c.decimals)||'0')},alias:((_d=result.token.metadata)===null||_d===void 0?void 0:_d.name)||'',to_alias:''};return transferDTO;})));const result={transfers:transfers,total:transfers.length};return result.transfers;});exports.getDAOTransfers=getDAOTransfers; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getDAOTransfers = void 0; +const __1 = require("../../.."); +const node_fetch_1 = __importDefault(require("node-fetch")); +const ELEMENTS_PER_REQUEST = 20; +const getDAOTransfers = (daoId, network) => __awaiter(void 0, void 0, void 0, function* () { + const urlTo = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens/transfers?to=${daoId}&limit=${ELEMENTS_PER_REQUEST}`; + const responseTo = yield (0, node_fetch_1.default)(urlTo); + if (!responseTo.ok) { + throw new Error("Failed to fetch contract storage from BakingBad API"); + } + const resultsTzktTo = yield responseTo.json(); + const urlFrom = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/tokens/transfers?from=${daoId}&limit=${ELEMENTS_PER_REQUEST}`; + const responseFrom = yield (0, node_fetch_1.default)(urlFrom); + if (!responseFrom.ok) { + throw new Error("Failed to fetch contract storage from BakingBad API"); + } + const resultsTzktFrom = yield responseFrom.json(); + const resultsTzktAggregated = resultsTzktTo.concat(resultsTzktFrom); + const transfers = yield Promise.all(resultsTzktAggregated.map((result) => __awaiter(void 0, void 0, void 0, function* () { + var _a, _b, _c, _d; + const urlId = `https://api.${__1.networkNameMap[network]}.tzkt.io/v1/operations/transactions?id=${result.transactionId}`; + const responseId = yield (0, node_fetch_1.default)(urlId); + const resultTzktTxResult = yield responseId.json(); + const resultTzktTx = resultTzktTxResult[0]; + const transferDTO = { + indexed_time: resultTzktTx.id, + network: network, + contract: result.token.contract.address, + initiator: "", + hash: resultTzktTx.hash, + status: resultTzktTx.status, + timestamp: result.timestamp, + level: result.level, + from: result.from.address, + to: result.to.address, + token_id: parseInt(result.token.tokenId), + amount: result.amount, + counter: resultTzktTx.counter, + token: { + contract: result.token.contract.address, + network: network, + token_id: parseInt(result.token.tokenId), + symbol: ((_a = result.token.metadata) === null || _a === void 0 ? void 0 : _a.symbol) || "", + name: ((_b = result.token.metadata) === null || _b === void 0 ? void 0 : _b.name) || "", + decimals: parseInt(((_c = result.token.metadata) === null || _c === void 0 ? void 0 : _c.decimals) || "0") + }, + alias: ((_d = result.token.metadata) === null || _d === void 0 ? void 0 : _d.name) || "", + to_alias: "" + }; + return transferDTO; + }))); + const result = { + transfers: transfers, + total: transfers.length + }; + return result.transfers; +}); +exports.getDAOTransfers = getDAOTransfers; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/bakingBad/transfers/index.js.map b/dist/services/bakingBad/transfers/index.js.map index ef895d8..d1ed4cd 100644 --- a/dist/services/bakingBad/transfers/index.js.map +++ b/dist/services/bakingBad/transfers/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/bakingBad/transfers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,0BAAmC;AAEnC,4DAA+B;AAE/B,MAAM,oBAAoB,GAAG,EAAE,CAAA;AAExB,MAAM,eAAe,GAAG,CAAO,KAAa,EAAE,OAAgB,EAA0B,EAAE;IAC/F,MAAM,KAAK,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,mCAAmC,KAAK,UAAU,oBAAoB,EAAE,CAAA;IAC5H,MAAM,UAAU,GAAG,MAAM,IAAA,oBAAK,EAAC,KAAK,CAAC,CAAA;IACrC,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE;QAClB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;KACvE;IACD,MAAM,aAAa,GAAmB,MAAM,UAAU,CAAC,IAAI,EAAE,CAAA;IAE7D,MAAM,OAAO,GAAG,eAAe,kBAAc,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;YACxC,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,OAAO,EAAE,YAAY,CAAC,OAAO;YAC7B,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO;gBACvC,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;gBACxC,MAAM,EAAE,CAAA,MAAA,MAAM,CAAC,KAAK,CAAC,QAAQ,0CAAE,MAAM,KAAI,EAAE;gBAC3C,IAAI,EAAE,CAAA,MAAA,MAAM,CAAC,KAAK,CAAC,QAAQ,0CAAE,IAAI,KAAI,EAAE;gBACvC,QAAQ,EAAE,QAAQ,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,CAAC,QAAQ,0CAAE,QAAQ,KAAI,GAAG,CAAC;aAC3D;YACD,KAAK,EAAE,CAAA,MAAA,MAAM,CAAC,KAAK,CAAC,QAAQ,0CAAE,IAAI,KAAI,EAAE;YACxC,QAAQ,EAAE,EAAE;SACb,CAAA;QAED,OAAO,WAAW,CAAA;IACpB,CAAC,CAAA,CAAC,CACH,CAAA;IAED,MAAM,MAAM,GAAiB;QAC3B,SAAS,EAAE,SAAS;QACpB,KAAK,EAAE,SAAS,CAAC,MAAM;KACxB,CAAA;IAED,OAAO,MAAM,CAAC,SAAS,CAAA;AACzB,CAAC,CAAA,CAAA;AA5DY,QAAA,eAAe,mBA4D3B"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/bakingBad/transfers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,0BAAmC;AAEnC,4DAA8B;AAE9B,MAAM,oBAAoB,GAAG,EAAE,CAAA;AAExB,MAAM,eAAe,GAAG,CAAO,KAAa,EAAE,OAAgB,EAA0B,EAAE;IAC/F,MAAM,KAAK,GAAG,eAAe,kBAAc,CAAC,OAAO,CAAC,mCAAmC,KAAK,UAAU,oBAAoB,EA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/bakingBad/transfers/types.js index fa85c5c..11e638d 100644 --- a/dist/services/bakingBad/transfers/types.js +++ b/dist/services/bakingBad/transfers/types.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/services/baseDAODocker/index.js b/dist/services/baseDAODocker/index.js index c7fadd5..5e8fe5f 100644 --- a/dist/services/baseDAODocker/index.js +++ b/dist/services/baseDAODocker/index.js @@ -1 +1,35 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.generateStorageContract=exports.API_URL=void 0;const mappers_1=require('./mappers');const tokenBalances_1=require('../bakingBad/tokenBalances');const config_1=require('../config');const node_fetch_1=__importDefault(require('node-fetch'));exports.API_URL=(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_BASEDAO_DOCKERISED_URL);const generateStorageContract=({storage,template,originatorAddress,metadata,network,currentLevel})=>__awaiter(void 0,void 0,void 0,function*(){const tokenMetadata=yield(0,tokenBalances_1.getTokenMetadata)(storage.governanceToken.address,network,storage.governanceToken.tokenId);const args=(0,mappers_1.storageParamsToBaseDAODockerArgs)(storage,metadata,tokenMetadata,currentLevel);const url=`${exports.API_URL}/${originatorAddress}/${template}?${Object.keys(args).map(key=>`${key}=${args[key]}`).join('&')}`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to make DAO Storage contract from BaseDAO-Dockerized API');}const result=yield response.json();return result.storage;});exports.generateStorageContract=generateStorageContract; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.generateStorageContract = exports.API_URL = void 0; +const mappers_1 = require("./mappers"); +const tokenBalances_1 = require("../bakingBad/tokenBalances"); +const config_1 = require("../config"); +const node_fetch_1 = __importDefault(require("node-fetch")); +exports.API_URL = (0, config_1.getEnv)(config_1.EnvKey.REACT_APP_BASEDAO_DOCKERISED_URL); +const generateStorageContract = ({ storage, template, originatorAddress, metadata, network, currentLevel }) => __awaiter(void 0, void 0, void 0, function* () { + const tokenMetadata = yield (0, tokenBalances_1.getTokenMetadata)(storage.governanceToken.address, network, storage.governanceToken.tokenId); + const args = (0, mappers_1.storageParamsToBaseDAODockerArgs)(storage, metadata, tokenMetadata, currentLevel); + const url = `${exports.API_URL}/${originatorAddress}/${template}?${Object.keys(args) + .map(key => `${key}=${args[key]}`) + .join("&")}`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to make DAO Storage contract from BaseDAO-Dockerized API"); + } + const result = yield response.json(); + return result.storage; +}); +exports.generateStorageContract = generateStorageContract; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/baseDAODocker/index.js.map b/dist/services/baseDAODocker/index.js.map index 605836d..d05a54b 100644 --- a/dist/services/baseDAODocker/index.js.map +++ b/dist/services/baseDAODocker/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/baseDAODocker/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAIA,uCAA4D;AAE5D,oEAAmE;AACnE,4CAAgD;AAChD,4DAA+B;AAElB,QAAA,OAAO,GAAG,IAAA,eAAM,EAAC,eAAM,CAAC,gCAAgC,CAAC,CAAA;AAW/D,MAAM,uBAAuB,GAAG,CAAO,EAC5C,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,OAAO,EACP,YAAY,EACQ,EAAmB,EAAE;IACzC,MAAM,aAAa,GAAG,MAAM,IAAA,gCAAgB,EAC1C,OAAO,CAAC,eAAe,CAAC,OAAO,EAC/B,OAAO,EACP,OAAO,CAAC,eAAe,CAAC,OAAO,CAChC,CAAA;IACD,MAAM,IAAI,GAAG,IAAA,0CAAgC,EAAC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,CAAC,CAAA;IAE7F,MAAM,GAAG,GAAG,GAAG,eAAO,IAAI,iBAAiB,IAAI,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;SACzE,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,GAA0B,CAAC,EAAE,CAAC;SACxD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAA;IAEd,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAA;KACnF;IAED,MAAM,MAAM,GAA8B,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAE/D,OAAO,MAAM,CAAC,OAAO,CAAA;AACvB,CAAC,CAAA,CAAA;AA5BY,QAAA,uBAAuB,2BA4BnC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/baseDAODocker/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAIA,uCAA4D;AAE5D,oEAAmE;AACnE,4CAAgD;AAChD,4DAA8B;AAEjB,QAAA,OAAO,GAAG,IAAA,eAAM,EAAC,eAAM,CAAC,gCAAgC,CAAC,CAAA;AAW/D,MAAM,uBAAuB,GAAG,CAAO,EAC5C,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,OAAO,EACP,YAAY,EACQ,EAAmB,EAAE;IACzC,MAAM,aAAa,GAAG,MAAM,IAAA,gCAAgB,EAC1C,OAAO,CAAC,eAAe,CAAC,OAAO,EAC/B,OAAO,EACP,OAAO,CAAC,eAAe,CAAC,OAAO,CAChC,CAAA;IACD,MAAM,IAAI,GAAG,IAAA,0CAAgC,EAAC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,CAAC,CAAA;IAE7F,MAAM,GAAG,GAAG,GAAG,eAAO,IAAI,iBAAiB,IAAI,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;SACzE,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,GAA0B,CAAC,EAAE,CAAC;SACxD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAA;IAEd,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAA;KACnF;IAED,MAAM,MAAM,GAA8B,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAE/D,OAAO,MAAM,CAAC,OAAO,CAAA;AACvB,CAAC,CAAA,CAAA;AA5BY,QAAA,uBAAuB,2BA4BnC"} \ No newline at end of file diff --git a/dist/services/baseDAODocker/mappers.js b/dist/services/baseDAODocker/mappers.js index 5b51457..3cd10b1 100644 --- a/dist/services/baseDAODocker/mappers.js +++ b/dist/services/baseDAODocker/mappers.js @@ -1,3 +1,37 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.storageParamsToBaseDAODockerArgs=void 0;const utils_1=require('../contracts/utils');const tzip16_1=require('@taquito/tzip16');const bignumber_js_1=require('bignumber.js');const storageParamsToBaseDAODockerArgs=(storage,metadata,token,currentLevel)=>({admin_address:storage.adminAddress,guardian_address:storage.guardian,governance_token_address:`"${storage.governanceToken.address}"`,governance_token_id:`"${storage.governanceToken.tokenId}n"`,max_proposal_size:`2500n`,slash_division_value:`100n`,slash_scale_value:`${storage.extra.slashScaleValue.toFixed()}n`,frozen_extra_value:`${(0,utils_1.formatUnits)(storage.extra.frozenExtraValue,token.decimals).toFixed()}n`,frozen_scale_value:'0n',metadata_map:formatMetadata(metadata),quorum_threshold:`${storage.quorumThreshold.toFixed()}n`,min_quorum:`${storage.minQuorumAmount}n`,max_quorum:`${storage.maxQuorumAmount}n`,quorum_change:`${storage.quorumChange}n`,max_quorum_change:`${storage.quorumMaxChange}n`,proposal_flush_level:`${storage.proposalFlushPeriod}n`,proposal_expired_level:`${storage.proposalExpiryPeriod}n`,governance_total_supply:`${token.supply.toFixed()}n`,period:`${storage.votingPeriod}n`,start_level:`${currentLevel}n`,min_xtz_amount:`${(0,utils_1.xtzToMutez)(new bignumber_js_1.BigNumber(storage.extra.minXtzAmount)).toFixed()}mutez`,max_xtz_amount:`${(0,utils_1.xtzToMutez)(new bignumber_js_1.BigNumber(storage.extra.maxXtzAmount)).toFixed()}mutez`});exports.storageParamsToBaseDAODockerArgs=storageParamsToBaseDAODockerArgs;const formatMetadata=({deployAddress,keyName})=>{return`'(Big_map.literal [ - ("", 0x${(0,tzip16_1.char2Bytes)(`tezos-storage://${deployAddress}/${keyName}`)}); - ])'`;}; \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.storageParamsToBaseDAODockerArgs = void 0; +const utils_1 = require("../contracts/utils"); +const tzip16_1 = require("@taquito/tzip16"); +const bignumber_js_1 = require("bignumber.js"); +const storageParamsToBaseDAODockerArgs = (storage, metadata, token, currentLevel) => ({ + admin_address: storage.adminAddress, + guardian_address: storage.guardian, + governance_token_address: `"${storage.governanceToken.address}"`, + governance_token_id: `"${storage.governanceToken.tokenId}n"`, + max_proposal_size: `2500n`, + slash_division_value: `100n`, + slash_scale_value: `${storage.extra.slashScaleValue.toFixed()}n`, + frozen_extra_value: `${(0, utils_1.formatUnits)(storage.extra.frozenExtraValue, token.decimals).toFixed()}n`, + frozen_scale_value: "0n", + metadata_map: formatMetadata(metadata), + quorum_threshold: `${storage.quorumThreshold.toFixed()}n`, + min_quorum: `${storage.minQuorumAmount}n`, + max_quorum: `${storage.maxQuorumAmount}n`, + quorum_change: `${storage.quorumChange}n`, + max_quorum_change: `${storage.quorumMaxChange}n`, + proposal_flush_level: `${storage.proposalFlushPeriod}n`, + proposal_expired_level: `${storage.proposalExpiryPeriod}n`, + governance_total_supply: `${token.supply.toFixed()}n`, + period: `${storage.votingPeriod}n`, + start_level: `${currentLevel}n`, + min_xtz_amount: `${(0, utils_1.xtzToMutez)(new bignumber_js_1.BigNumber(storage.extra.minXtzAmount)).toFixed()}mutez`, + max_xtz_amount: `${(0, utils_1.xtzToMutez)(new bignumber_js_1.BigNumber(storage.extra.maxXtzAmount)).toFixed()}mutez` +}); +exports.storageParamsToBaseDAODockerArgs = storageParamsToBaseDAODockerArgs; +const formatMetadata = ({ deployAddress, keyName }) => { + return `'(Big_map.literal [ + ("", 0x${(0, tzip16_1.char2Bytes)(`tezos-storage://${deployAddress}/${keyName}`)}); + ])'`; +}; +//# sourceMappingURL=mappers.js.map \ No newline at end of file diff --git a/dist/services/baseDAODocker/types.js b/dist/services/baseDAODocker/types.js index fa85c5c..11e638d 100644 --- a/dist/services/baseDAODocker/types.js +++ b/dist/services/baseDAODocker/types.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/services/beacon/actions.js b/dist/services/beacon/actions.js index 1b428a7..b14315e 100644 --- a/dist/services/beacon/actions.js +++ b/dist/services/beacon/actions.js @@ -1 +1,9 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.TezosActionType=void 0;var TezosActionType;(function(TezosActionType){TezosActionType['UPDATE_TEZOS']='UPDATE_TEZOS';TezosActionType['RESET_TEZOS']='RESET_TEZOS';}(TezosActionType||(exports.TezosActionType=TezosActionType={}))); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TezosActionType = void 0; +var TezosActionType; +(function (TezosActionType) { + TezosActionType["UPDATE_TEZOS"] = "UPDATE_TEZOS"; + TezosActionType["RESET_TEZOS"] = "RESET_TEZOS"; +})(TezosActionType || (exports.TezosActionType = TezosActionType = {})); +//# sourceMappingURL=actions.js.map \ No newline at end of file diff --git a/dist/services/beacon/context.js b/dist/services/beacon/context.js index 169a82d..bb5ce9a 100644 --- a/dist/services/beacon/context.js +++ b/dist/services/beacon/context.js @@ -1 +1,64 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.TezosProvider=exports.TezosContext=void 0;const jsx_runtime_1=require('react/jsx-runtime');const react_1=require('react');const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const utils_1=require('./utils');const reducer_1=require('./reducer');const actions_1=require('./actions');exports.TezosContext=(0,react_1.createContext)({state:reducer_1.INITIAL_STATE,dispatch:()=>{}});const getSavedState=()=>__awaiter(void 0,void 0,void 0,function*(){try{const network=(0,utils_1.getTezosNetwork)();const tezos=(0,utils_1.createTezos)(network);const wallet=(0,utils_1.createWallet)(network);const activeAccount=yield wallet.client.getActiveAccount();if(!(activeAccount===null||activeAccount===void 0?void 0:activeAccount.address)){throw new Error('No wallet address found');}tezos.setProvider({wallet});return{network,tezos,wallet,account:activeAccount.address};}catch(error){return reducer_1.INITIAL_STATE;}});const TezosProvider=({children})=>{const [state,dispatch]=(0,react_1.useReducer)(reducer_1.reducer,reducer_1.INITIAL_STATE);(0,react_1.useEffect)(()=>{mixpanel_browser_1.default.register({Network:state.network});},[state.network]);(0,react_1.useEffect)(()=>{getSavedState().then(tezosState=>{dispatch({type:actions_1.TezosActionType.UPDATE_TEZOS,payload:tezosState});});},[]);return(0,jsx_runtime_1.jsx)(exports.TezosContext.Provider,{value:{state,dispatch},children:children});};exports.TezosProvider=TezosProvider; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TezosProvider = exports.TezosContext = void 0; +const jsx_runtime_1 = require("react/jsx-runtime"); +const react_1 = require("react"); +const mixpanel_browser_1 = __importDefault(require("mixpanel-browser")); +const utils_1 = require("./utils"); +const reducer_1 = require("./reducer"); +const actions_1 = require("./actions"); +exports.TezosContext = (0, react_1.createContext)({ + state: reducer_1.INITIAL_STATE, + // eslint-disable-next-line @typescript-eslint/no-empty-function + dispatch: () => { } +}); +const getSavedState = () => __awaiter(void 0, void 0, void 0, function* () { + try { + const network = (0, utils_1.getTezosNetwork)(); + const tezos = (0, utils_1.createTezos)(network); + const wallet = (0, utils_1.createWallet)(network); + const activeAccount = yield wallet.client.getActiveAccount(); + if (!(activeAccount === null || activeAccount === void 0 ? void 0 : activeAccount.address)) { + throw new Error("No wallet address found"); + } + tezos.setProvider({ wallet }); + return { + network, + tezos, + wallet, + account: activeAccount.address + }; + } + catch (error) { + return reducer_1.INITIAL_STATE; + } +}); +const TezosProvider = ({ children }) => { + const [state, dispatch] = (0, react_1.useReducer)(reducer_1.reducer, reducer_1.INITIAL_STATE); + (0, react_1.useEffect)(() => { + mixpanel_browser_1.default.register({ Network: state.network }); + }, [state.network]); + (0, react_1.useEffect)(() => { + getSavedState().then(tezosState => { + dispatch({ + type: actions_1.TezosActionType.UPDATE_TEZOS, + payload: tezosState + }); + }); + }, []); + return (0, jsx_runtime_1.jsx)(exports.TezosContext.Provider, { value: { state, dispatch }, children: children }); +}; +exports.TezosProvider = TezosProvider; +//# sourceMappingURL=context.js.map \ No newline at end of file diff --git a/dist/services/beacon/hooks/useTezos.js b/dist/services/beacon/hooks/useTezos.js index 004da6c..fec24f2 100644 --- a/dist/services/beacon/hooks/useTezos.js +++ b/dist/services/beacon/hooks/useTezos.js @@ -1 +1,14 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useTezos=exports.initTezosInstance=void 0;const react_query_1=require('react-query');const react_1=require('react');const taquito_1=require('@taquito/taquito');const beacon_1=require('../../beacon');const context_1=require('../context');const tzip16_1=require('@taquito/tzip16');const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const initTezosInstance=network=>{const newTezos=new taquito_1.TezosToolkit(beacon_1.rpcNodes[network]);newTezos.setPackerProvider(new taquito_1.MichelCodecPacker());newTezos.addExtension(new tzip16_1.Tzip16Module());return newTezos;};exports.initTezosInstance=initTezosInstance;const useTezos=()=>{const {state:{tezos,network,account,wallet},dispatch}=(0,react_1.useContext)(context_1.TezosContext);const queryClient=(0,react_query_1.useQueryClient)();const connect=(0,react_1.useCallback)(newNetwork=>__awaiter(void 0,void 0,void 0,function*(){const {wallet}=yield(0,beacon_1.connectWithBeacon)(network);const newTezos=(0,exports.initTezosInstance)(network||newNetwork);newTezos.setProvider({wallet});const account=yield newTezos.wallet.pkh();dispatch({type:beacon_1.TezosActionType.UPDATE_TEZOS,payload:{network:newNetwork||network,tezos:newTezos,account,wallet}});mixpanel_browser_1.default.identify(account);return newTezos;}),[dispatch,network]);return{tezos,connect,reset:(0,react_1.useCallback)(()=>__awaiter(void 0,void 0,void 0,function*(){if(!wallet){throw new Error('No Wallet Connected');}yield wallet.disconnect();dispatch({type:beacon_1.TezosActionType.RESET_TEZOS});}),[dispatch,wallet]),changeNetwork:newNetwork=>__awaiter(void 0,void 0,void 0,function*(){mixpanel_browser_1.default.register({Network:newNetwork});localStorage.setItem('homebase:network',newNetwork);if(!('_pkh'in tezos.wallet)){const Tezos=new taquito_1.TezosToolkit(beacon_1.rpcNodes[newNetwork]);Tezos.setPackerProvider(new taquito_1.MichelCodecPacker());Tezos.addExtension(new tzip16_1.Tzip16Module());dispatch({type:beacon_1.TezosActionType.UPDATE_TEZOS,payload:{network:newNetwork,tezos:Tezos,account,wallet:undefined}});}else{yield connect(newNetwork);}queryClient.resetQueries();location.reload();}),account,network,wallet};};exports.useTezos=useTezos; \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.initTezosInstance = void 0; +const taquito_1 = require("@taquito/taquito"); +const beacon_1 = require("./.."); +const tzip16_1 = require("@taquito/tzip16"); +const initTezosInstance = (network) => { + const newTezos = new taquito_1.TezosToolkit(beacon_1.rpcNodes[network]); + newTezos.setPackerProvider(new taquito_1.MichelCodecPacker()); + newTezos.addExtension(new tzip16_1.Tzip16Module()); + return newTezos; +}; +exports.initTezosInstance = initTezosInstance; +//# sourceMappingURL=useTezos.js.map \ No newline at end of file diff --git a/dist/services/beacon/hooks/useTezos.js.map b/dist/services/beacon/hooks/useTezos.js.map index 88e4414..a50d77b 100644 --- a/dist/services/beacon/hooks/useTezos.js.map +++ b/dist/services/beacon/hooks/useTezos.js.map @@ -1 +1 @@ -{"version":3,"file":"useTezos.js","sourceRoot":"","sources":["../../../../src/services/beacon/hooks/useTezos.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAA4C;AAC5C,iCAA+C;AAC/C,8CAAkE;AAClE,4CAAuF;AACvF,qDAAsD;AACtD,4CAA8C;AAC9C,wEAAuC;AAahC,MAAM,iBAAiB,GAAG,CAAC,OAAgB,EAAE,EAAE;IACpD,MAAM,QAAQ,GAAG,IAAI,sBAAY,CAAC,iBAAQ,CAAC,OAAO,CAAC,CAAC,CAAA;IACpD,QAAQ,CAAC,iBAAiB,CAAC,IAAI,2BAAiB,EAAE,CAAC,CAAA;IACnD,QAAQ,CAAC,YAAY,CAAC,IAAI,qBAAY,EAAE,CAAC,CAAA;IAEzC,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AANY,QAAA,iBAAiB,qBAM7B;AAEM,MAAM,QAAQ,GAAG,GAAwB,EAAE;IAChD,MAAM,EACJ,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,EAC1C,QA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O,EAAE,UAAU,EAAE,CAAC,CAAA;YAE1C,YAAY,CAAC,OAAO,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAA;YAEpD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,EAAE;gBAC7B,MAAM,KAAK,GAAG,IAAI,sBAAY,CAAC,iBAAQ,CAAC,UAAU,CAAC,CAAC,CAAA;gBACpD,KAAK,CAAC,iBAAiB,CAAC,IAAI,2BAAiB,EAAE,CAAC,CAAA;gBAChD,KAAK,CAAC,YAAY,CAAC,IAAI,qBAAY,EAAE,CAAC,CAAA;gBAEtC,QAAQ,CAAC;oBACP,IAAI,EAAE,wBAAe,CAAC,YAAY;oBAClC,OAAO,EAAE;wBACP,OAAO,EAAE,UAAU;wBACnB,KAAK,EAAE,KAAK;wBACZ,OAAO;wBACP,MAAM,EAAE,SAAS;qBAClB;iBACF,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,OAAO,CAAC,UAAU,CAAC,CAAA;aAC1B;YACD,WAAW,CAAC,YAAY,EAAE,CAAA;YAC1B,QAAQ,CAAC,MAAM,EAAE,CAAA;QACnB,CAAC,CAAA;QACD,OAAO;QACP,OAAO;QACP,MAAM;KACP,CAAA;AACH,CAAC,CAAA;AA5EY,QAAA,QAAQ,YA4EpB"} \ No newline at end of file +{"version":3,"file":"useTezos.js","sourceRoot":"","sources":["../../../../src/services/beacon/hooks/useTezos.ts"],"names":[],"mappings":";;;AAAA,8CAAkE;AAClE,4CAAmD;AACnD,4CAA8C;AAEvC,MAAM,iBAAiB,GAAG,CAAC,OAAgB,EAAE,EAAE;IACpD,MAAM,QAAQ,GAAG,IAAI,sBAAY,CAAC,iBAAQ,CAAC,OAAO,CAAC,CAAC,CAAA;IACpD,QAAQ,CAAC,iBAAiB,CAAC,IAAI,2BAAiB,EAAE,CAAC,CAAA;IACnD,QAAQ,CAAC,YAAY,CAAC,IAAI,qBAAY,EAAE,CAAC,CAAA;IAEzC,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AANY,QAAA,iBAAiB,qBAM7B"} \ No newline at end of file diff --git a/dist/services/beacon/index.js b/dist/services/beacon/index.js index b57af94..dc0a63a 100644 --- a/dist/services/beacon/index.js +++ b/dist/services/beacon/index.js @@ -1 +1,20 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)if(p!=='default'&&!Object.prototype.hasOwnProperty.call(exports,p))__createBinding(exports,m,p);};Object.defineProperty(exports,'__esModule',{value:true});__exportStar(require('./actions'),exports);__exportStar(require('./context'),exports);__exportStar(require('./utils'),exports); \ No newline at end of file +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./actions"), exports); +__exportStar(require("./context"), exports); +__exportStar(require("./utils"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/beacon/reducer.js b/dist/services/beacon/reducer.js index 2f3710d..7ede795 100644 --- a/dist/services/beacon/reducer.js +++ b/dist/services/beacon/reducer.js @@ -1 +1,24 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.reducer=exports.INITIAL_STATE=void 0;const utils_1=require('./utils');const actions_1=require('./actions');const network=(0,utils_1.getTezosNetwork)();const tezos=(0,utils_1.createTezos)(network);exports.INITIAL_STATE={tezos,network,wallet:undefined,account:''};const reducer=(state,action)=>{switch(action.type){case actions_1.TezosActionType.UPDATE_TEZOS:return Object.assign(Object.assign({},state),{tezos:action.payload.tezos,network:action.payload.network,account:action.payload.account,wallet:action.payload.wallet});case actions_1.TezosActionType.RESET_TEZOS:return Object.assign(Object.assign({},state),{tezos:tezos,account:'',wallet:undefined});}};exports.reducer=reducer; \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.reducer = exports.INITIAL_STATE = void 0; +const utils_1 = require("./utils"); +const actions_1 = require("./actions"); +const network = (0, utils_1.getTezosNetwork)(); +const tezos = (0, utils_1.createTezos)(network); +exports.INITIAL_STATE = { + tezos, + network, + wallet: undefined, + // @TODO: refactor interface this is actually an address + account: "" +}; +const reducer = (state, action) => { + switch (action.type) { + case actions_1.TezosActionType.UPDATE_TEZOS: + return Object.assign(Object.assign({}, state), { tezos: action.payload.tezos, network: action.payload.network, account: action.payload.account, wallet: action.payload.wallet }); + case actions_1.TezosActionType.RESET_TEZOS: + return Object.assign(Object.assign({}, state), { tezos: tezos, account: "", wallet: undefined }); + } +}; +exports.reducer = reducer; +//# sourceMappingURL=reducer.js.map \ No newline at end of file diff --git a/dist/services/beacon/utils.js b/dist/services/beacon/utils.js index aeb602b..a9e271e 100644 --- a/dist/services/beacon/utils.js +++ b/dist/services/beacon/utils.js @@ -1 +1,81 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.connectWithBeacon=exports.getNetworkTypeByEnvNetwork=exports.createTezos=exports.createWallet=exports.getTezosNetwork=exports.rpcNodes=exports.ALICE_PRIV_KEY=void 0;const beacon_types_1=require('@airgap/beacon-types');const beacon_wallet_1=require('@taquito/beacon-wallet');const taquito_1=require('@taquito/taquito');const tzip16_1=require('@taquito/tzip16');const config_1=require('../config');exports.ALICE_PRIV_KEY='edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq';exports.rpcNodes={mainnet:'https://mainnet.api.tez.ie',ghostnet:'https://ghostnet.tezos.marigold.dev'};const getTezosNetwork=()=>{const envNetwork=(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_NETWORK).toString().toLowerCase();if(!envNetwork){throw new Error('No Network ENV set');}return envNetwork;};exports.getTezosNetwork=getTezosNetwork;let beaconWallet;const createWallet=network=>{if(!beaconWallet){beaconWallet=new beacon_wallet_1.BeaconWallet({name:'Homebase',iconUrl:'https://tezostaquito.io/img/favicon.png',preferredNetwork:network,walletConnectOptions:{projectId:'1641355e825aeaa926e843dd38b04f6f',relayUrl:'wss://relay.walletconnect.com'}});}return beaconWallet;};exports.createWallet=createWallet;const createTezos=network=>{const tezos=new taquito_1.TezosToolkit(exports.rpcNodes[network]);tezos.setPackerProvider(new taquito_1.MichelCodecPacker());tezos.addExtension(new tzip16_1.Tzip16Module());return tezos;};exports.createTezos=createTezos;const getNetworkTypeByEnvNetwork=envNetwork=>{switch(envNetwork){case'ghostnet':return beacon_types_1.NetworkType.GHOSTNET;case'mainnet':return beacon_types_1.NetworkType.MAINNET;default:return beacon_types_1.NetworkType.MAINNET;}};exports.getNetworkTypeByEnvNetwork=getNetworkTypeByEnvNetwork;const connectWithBeacon=envNetwork=>__awaiter(void 0,void 0,void 0,function*(){const networkType=(0,exports.getNetworkTypeByEnvNetwork)(envNetwork);const wallet=(0,exports.createWallet)(envNetwork);yield wallet.requestPermissions({network:{type:networkType}});const accounts=JSON.parse(localStorage.getItem('beacon:accounts'));const network=accounts[0].network.type;return{network,wallet};});exports.connectWithBeacon=connectWithBeacon; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.connectWithBeacon = exports.getNetworkTypeByEnvNetwork = exports.createTezos = exports.createWallet = exports.getTezosNetwork = exports.rpcNodes = exports.ALICE_PRIV_KEY = void 0; +const beacon_types_1 = require("@airgap/beacon-types"); +const beacon_wallet_1 = require("@taquito/beacon-wallet"); +const taquito_1 = require("@taquito/taquito"); +const tzip16_1 = require("@taquito/tzip16"); +const config_1 = require("../config"); +exports.ALICE_PRIV_KEY = "edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq"; +exports.rpcNodes = { + mainnet: "https://mainnet.api.tez.ie", + ghostnet: "https://ghostnet.tezos.marigold.dev" +}; +const getTezosNetwork = () => { + const envNetwork = (0, config_1.getEnv)(config_1.EnvKey.REACT_APP_NETWORK).toString().toLowerCase(); + if (!envNetwork) { + throw new Error("No Network ENV set"); + } + return envNetwork; +}; +exports.getTezosNetwork = getTezosNetwork; +let beaconWallet; +const createWallet = (network) => { + if (!beaconWallet) { + beaconWallet = new beacon_wallet_1.BeaconWallet({ + name: "Homebase", + iconUrl: "https://tezostaquito.io/img/favicon.png", + preferredNetwork: network, + walletConnectOptions: { + projectId: "1641355e825aeaa926e843dd38b04f6f", + relayUrl: "wss://relay.walletconnect.com" // WC2 relayUrl can be customised + } + }); + } + return beaconWallet; +}; +exports.createWallet = createWallet; +const createTezos = (network) => { + const tezos = new taquito_1.TezosToolkit(exports.rpcNodes[network]); + tezos.setPackerProvider(new taquito_1.MichelCodecPacker()); + tezos.addExtension(new tzip16_1.Tzip16Module()); + return tezos; +}; +exports.createTezos = createTezos; +const getNetworkTypeByEnvNetwork = (envNetwork) => { + switch (envNetwork) { + case "ghostnet": + return beacon_types_1.NetworkType.GHOSTNET; + case "mainnet": + return beacon_types_1.NetworkType.MAINNET; + default: + return beacon_types_1.NetworkType.MAINNET; + } +}; +exports.getNetworkTypeByEnvNetwork = getNetworkTypeByEnvNetwork; +const connectWithBeacon = (envNetwork) => __awaiter(void 0, void 0, void 0, function* () { + const networkType = (0, exports.getNetworkTypeByEnvNetwork)(envNetwork); + const wallet = (0, exports.createWallet)(envNetwork); + yield wallet.requestPermissions({ + network: { + type: networkType + } + }); + const accounts = JSON.parse(localStorage.getItem("beacon:accounts")); + const network = accounts[0].network.type; + return { + network, + wallet + }; +}); +exports.connectWithBeacon = connectWithBeacon; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/services/config/constants.js b/dist/services/config/constants.js index 8876f54..2c9a2fd 100644 --- a/dist/services/config/constants.js +++ b/dist/services/config/constants.js @@ -1 +1,30 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.HUMANITEZ_DAO=exports.FeatureFlag=exports.EnvKey=void 0;var EnvKey;(function(EnvKey){EnvKey['REACT_APP_ENV']='REACT_APP_ENV';EnvKey['REACT_APP_NETWORK']='REACT_APP_NETWORK';EnvKey['REACT_APP_HASURA_URL']='REACT_APP_HASURA_URL';EnvKey['REACT_APP_HASURA_URL_V2']='REACT_APP_HASURA_URL_V2';EnvKey['REACT_APP_HASURA_ADMIN_SECRET']='REACT_APP_HASURA_ADMIN_SECRET';EnvKey['REACT_APP_HASURA_ADMIN_SECRET_V2']='REACT_APP_HASURA_ADMIN_SECRET_V2';EnvKey['REACT_APP_CORS_PROXY_URL']='REACT_APP_CORS_PROXY_URL';EnvKey['REACT_APP_MIXPANEL_TOKEN']='REACT_APP_MIXPANEL_TOKEN';EnvKey['REACT_APP_MIXPANEL_DEBUG_ENABLED']='REACT_APP_MIXPANEL_DEBUG_ENABLED';EnvKey['REACT_APP_LAUNCH_DARKLY_SDK_DEV']='REACT_APP_LAUNCH_DARKLY_SDK_DEV';EnvKey['REACT_APP_LAUNCH_DARKLY_SDK_PROD']='REACT_APP_LAUNCH_DARKLY_SDK_PROD';EnvKey['REACT_APP_BASEDAO_DOCKERISED_URL']='REACT_APP_BASEDAO_DOCKERISED_URL';EnvKey['REACT_APP_URL']='REACT_APP_URL';EnvKey['REACT_APP_V2_URL']='REACT_APP_V2_URL';EnvKey['REACT_APP_LITE_API_URL']='REACT_APP_LITE_API_URL';EnvKey['REACT_APP_API_URL']='REACT_APP_API_URL';EnvKey['REACT_APP_BASE_URL']='REACT_APP_BASE_URL';EnvKey['REACT_APP_PRIVATE_KEY']='REACT_APP_PRIVATE_KEY';}(EnvKey||(exports.EnvKey=EnvKey={})));var FeatureFlag;(function(FeatureFlag){FeatureFlag['lambdaDao']='lambdaDao';}(FeatureFlag||(exports.FeatureFlag=FeatureFlag={})));exports.HUMANITEZ_DAO='KT1PY9PXm8NMAgSEZg7bUtFjmV2Sj64bKuVV'; \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HUMANITEZ_DAO = exports.FeatureFlag = exports.EnvKey = void 0; +var EnvKey; +(function (EnvKey) { + EnvKey["REACT_APP_ENV"] = "REACT_APP_ENV"; + EnvKey["REACT_APP_NETWORK"] = "REACT_APP_NETWORK"; + EnvKey["REACT_APP_HASURA_URL"] = "REACT_APP_HASURA_URL"; + EnvKey["REACT_APP_HASURA_URL_V2"] = "REACT_APP_HASURA_URL_V2"; + EnvKey["REACT_APP_HASURA_ADMIN_SECRET"] = "REACT_APP_HASURA_ADMIN_SECRET"; + EnvKey["REACT_APP_HASURA_ADMIN_SECRET_V2"] = "REACT_APP_HASURA_ADMIN_SECRET_V2"; + EnvKey["REACT_APP_CORS_PROXY_URL"] = "REACT_APP_CORS_PROXY_URL"; + EnvKey["REACT_APP_MIXPANEL_TOKEN"] = "REACT_APP_MIXPANEL_TOKEN"; + EnvKey["REACT_APP_MIXPANEL_DEBUG_ENABLED"] = "REACT_APP_MIXPANEL_DEBUG_ENABLED"; + EnvKey["REACT_APP_LAUNCH_DARKLY_SDK_DEV"] = "REACT_APP_LAUNCH_DARKLY_SDK_DEV"; + EnvKey["REACT_APP_LAUNCH_DARKLY_SDK_PROD"] = "REACT_APP_LAUNCH_DARKLY_SDK_PROD"; + EnvKey["REACT_APP_BASEDAO_DOCKERISED_URL"] = "REACT_APP_BASEDAO_DOCKERISED_URL"; + EnvKey["REACT_APP_URL"] = "REACT_APP_URL"; + EnvKey["REACT_APP_V2_URL"] = "REACT_APP_V2_URL"; + EnvKey["REACT_APP_LITE_API_URL"] = "REACT_APP_LITE_API_URL"; + EnvKey["REACT_APP_API_URL"] = "REACT_APP_API_URL"; + EnvKey["REACT_APP_BASE_URL"] = "REACT_APP_BASE_URL"; + EnvKey["REACT_APP_PRIVATE_KEY"] = "REACT_APP_PRIVATE_KEY"; +})(EnvKey || (exports.EnvKey = EnvKey = {})); +var FeatureFlag; +(function (FeatureFlag) { + FeatureFlag["lambdaDao"] = "lambdaDao"; +})(FeatureFlag || (exports.FeatureFlag = FeatureFlag = {})); +exports.HUMANITEZ_DAO = "KT1PY9PXm8NMAgSEZg7bUtFjmV2Sj64bKuVV"; +//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/services/config/env.js b/dist/services/config/env.js index 12d376c..5806512 100644 --- a/dist/services/config/env.js +++ b/dist/services/config/env.js @@ -1 +1,10 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.getEnv=void 0;require('dotenv').config();const getEnv=envKey=>{var _a;return(_a=process.env[envKey])!==null&&_a!==void 0?_a:'';};exports.getEnv=getEnv; \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getEnv = void 0; +require("dotenv").config(); +const getEnv = (envKey) => { + var _a; + return (_a = process.env[envKey]) !== null && _a !== void 0 ? _a : ""; +}; +exports.getEnv = getEnv; +//# sourceMappingURL=env.js.map \ No newline at end of file diff --git a/dist/services/config/hooks/featureFlags.js b/dist/services/config/hooks/featureFlags.js index 7c4bd4c..abd402f 100644 --- a/dist/services/config/hooks/featureFlags.js +++ b/dist/services/config/hooks/featureFlags.js @@ -1 +1,11 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.useFeatureFlag=void 0;const launchdarkly_react_client_sdk_1=require('launchdarkly-react-client-sdk');const useFeatureFlag=featureFlag=>{var _a;const flags=(0,launchdarkly_react_client_sdk_1.useFlags)();return(_a=flags[featureFlag])!==null&&_a!==void 0?_a:false;};exports.useFeatureFlag=useFeatureFlag; \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.useFeatureFlag = void 0; +const launchdarkly_react_client_sdk_1 = require("launchdarkly-react-client-sdk"); +const useFeatureFlag = (featureFlag) => { + var _a; + const flags = (0, launchdarkly_react_client_sdk_1.useFlags)(); + return (_a = flags[featureFlag]) !== null && _a !== void 0 ? _a : false; +}; +exports.useFeatureFlag = useFeatureFlag; +//# sourceMappingURL=featureFlags.js.map \ No newline at end of file diff --git a/dist/services/config/hooks/index.js b/dist/services/config/hooks/index.js index 955fbdd..c5f2354 100644 --- a/dist/services/config/hooks/index.js +++ b/dist/services/config/hooks/index.js @@ -1 +1,18 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)if(p!=='default'&&!Object.prototype.hasOwnProperty.call(exports,p))__createBinding(exports,m,p);};Object.defineProperty(exports,'__esModule',{value:true});__exportStar(require('./featureFlags'),exports); \ No newline at end of file +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./featureFlags"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/config/index.js b/dist/services/config/index.js index f9cd98b..3198156 100644 --- a/dist/services/config/index.js +++ b/dist/services/config/index.js @@ -1 +1,20 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)if(p!=='default'&&!Object.prototype.hasOwnProperty.call(exports,p))__createBinding(exports,m,p);};Object.defineProperty(exports,'__esModule',{value:true});__exportStar(require('./constants'),exports);__exportStar(require('./env'),exports);__exportStar(require('./hooks'),exports); \ No newline at end of file +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./constants"), exports); +__exportStar(require("./env"), exports); +__exportStar(require("./hooks"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/class.js b/dist/services/contracts/baseDAO/class.js index 2abbe24..b6f04af 100644 --- a/dist/services/contracts/baseDAO/class.js +++ b/dist/services/contracts/baseDAO/class.js @@ -1 +1,216 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};var _a;Object.defineProperty(exports,'__esModule',{value:true});exports.BaseDAO=void 0;const _1=require('.');const baseDAODocker_1=require('../../baseDAODocker');const lambdaDAO_1=__importDefault(require('./michelson/lambdaDAO'));const utils_1=require('../utils');const bignumber_js_1=require('bignumber.js');const michel_codec_1=require('@taquito/michel-codec');const michelson_encoder_1=require('@taquito/michelson-encoder');const configuration_proposal_type_json_1=__importDefault(require('./lambdaDAO/michelson/supported_lambda_types/configuration_proposal_type.json'));const proposelambda_1=__importDefault(require('./lambdaDAO/michelson/proposelambda'));const stats_1=require('../../bakingBad/stats');class BaseDAO{constructor(data){this.data=data;this.flush=(numerOfProposalsToFlush,expiredProposalIds,tezos)=>__awaiter(this,void 0,void 0,function*(){const daoContract=yield(0,_1.getContract)(tezos,this.data.address);const initialBatch=yield tezos.wallet.batch();const batch=expiredProposalIds.reduce((prev,current)=>{return prev.withContractCall(daoContract.methods.drop_proposal(current));},initialBatch);batch.withContractCall(daoContract.methods.flush(numerOfProposalsToFlush));return yield batch.send();});this.dropProposal=(proposalId,tezos)=>__awaiter(this,void 0,void 0,function*(){const contract=yield(0,_1.getContract)(tezos,this.data.address);return yield contract.methods.drop_proposal(proposalId).send();});this.dropAllExpired=(expiredProposalIds,tezos)=>__awaiter(this,void 0,void 0,function*(){const daoContract=yield(0,_1.getContract)(tezos,this.data.address);const initialBatch=yield tezos.wallet.batch();const batch=expiredProposalIds.reduce((prev,current)=>{return prev.withContractCall(daoContract.methods.drop_proposal(current));},initialBatch);return yield batch.send();});this.unstakeFromAllProposals=(proposals,account,tezos)=>__awaiter(this,void 0,void 0,function*(){const daoContract=yield(0,_1.getContract)(tezos,this.data.address);const initialBatch=yield tezos.wallet.batch();const batch=proposals.reduce((prev,current)=>{return prev.withContractCall(daoContract.methods.unstake_vote([current]));},initialBatch);return yield batch.send();});this.sendXtz=(xtzAmount,tezos)=>__awaiter(this,void 0,void 0,function*(){const contract=yield(0,_1.getContract)(tezos,this.data.address);return yield contract.methods.callCustom('receive_xtz','').send({amount:(0,utils_1.xtzToMutez)(xtzAmount).toNumber(),mutez:true});});this.vote=({proposalKey,amount,support,tezos})=>__awaiter(this,void 0,void 0,function*(){const contract=yield(0,_1.getContract)(tezos,this.data.address);return yield contract.methods.vote([{argument:{from:yield tezos.wallet.pkh(),proposal_key:proposalKey,vote_type:support,vote_amount:(0,utils_1.formatUnits)(amount,this.data.token.decimals).toString()}}]).send();});this.freeze=(amount,tezos)=>__awaiter(this,void 0,void 0,function*(){const daoContract=yield(0,_1.getContract)(tezos,this.data.address);const govTokenContract=yield(0,_1.getContract)(tezos,this.data.token.contract);const tokenMetadata=this.data.token;const batch=yield tezos.wallet.batch().withContractCall(govTokenContract.methods.update_operators([{add_operator:{owner:yield tezos.wallet.pkh(),operator:this.data.address,token_id:this.data.token.token_id}}])).withContractCall(daoContract.methods.freeze((0,utils_1.formatUnits)(amount,tokenMetadata.decimals).toString())).withContractCall(govTokenContract.methods.update_operators([{remove_operator:{owner:yield tezos.wallet.pkh(),operator:this.data.address,token_id:this.data.token.token_id}}]));return yield batch.send();});this.unfreeze=(amount,tezos)=>__awaiter(this,void 0,void 0,function*(){const contract=yield(0,_1.getContract)(tezos,this.data.address);return yield contract.methods.unfreeze((0,utils_1.formatUnits)(amount,this.data.token.decimals).toString()).send();});this.unstakeVotes=(proposalId,tezos)=>__awaiter(this,void 0,void 0,function*(){const contract=yield(0,_1.getContract)(tezos,this.data.address);return yield contract.methods.unstake_vote([proposalId]).send();});}static encodeProposalMetadata(dataToEncode,michelsonSchemaString,tezos){return __awaiter(this,void 0,void 0,function*(){const parser=new michel_codec_1.Parser();const michelsonType=parser.parseData(michelsonSchemaString);const schema=new michelson_encoder_1.Schema(michelsonType);const data=schema.Encode(dataToEncode);const {packed}=yield tezos.rpc.packData({data,type:michelsonType});return packed;});}static encodeLambdaAddMetadata(dataToEncode,michelsonSchemaString,tezos){return __awaiter(this,void 0,void 0,function*(){console.log('michelsonSchemaString: ',michelsonSchemaString);console.log('dataToEncode: ',dataToEncode);const parser=new michel_codec_1.Parser();const dataJSON=parser.parseMichelineExpression(dataToEncode);const typeJSON=parser.parseMichelineExpression(michelsonSchemaString);const packed=(0,michel_codec_1.packDataBytes)(dataJSON,typeJSON);return packed;});}proposeConfigChange(configParams,tezos){return __awaiter(this,void 0,void 0,function*(){const contract=yield(0,_1.getContract)(tezos,this.data.address);const p=new michel_codec_1.Parser();const configuration_arg_schema=new michelson_encoder_1.Schema(configuration_proposal_type_json_1.default);let formatted_frozen_extra_value;if(configParams.frozen_extra_value){formatted_frozen_extra_value=(0,utils_1.formatUnits)(new bignumber_js_1.BigNumber(configParams.frozen_extra_value.toString()),this.data.token.decimals).toString();}const configuration_proposal_args={frozen_extra_value:formatted_frozen_extra_value,slash_scale_value:configParams.slash_scale_value};console.log('configuration_proposal_args: ',configuration_proposal_args);const packed_configuration_proposal_arg=(0,michel_codec_1.packDataBytes)(configuration_arg_schema.Encode(configuration_proposal_args));const proposal_meta_michelson_type=p.parseMichelineExpression(proposelambda_1.default);const proposal_meta_schema=new michelson_encoder_1.Schema(proposal_meta_michelson_type);const proposalMetadata=(0,michel_codec_1.packDataBytes)(proposal_meta_schema.Encode({execute_handler:{handler_name:'configuration_proposal',packed_argument:packed_configuration_proposal_arg.bytes}}),proposal_meta_michelson_type);const contractMethod=contract.methods.propose(yield tezos.wallet.pkh(),(0,utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value),this.data.token.decimals),proposalMetadata.bytes);return yield contractMethod.send();});}}exports.BaseDAO=BaseDAO;_a=BaseDAO;BaseDAO.baseDeploy=(template,{params,metadata,tezos,network})=>__awaiter(void 0,void 0,void 0,function*(){const treasuryParams=(0,_1.fromStateToBaseStorage)(params);if(!metadata.deployAddress){throw new Error('Error deploying treasury DAO: There\'s not address of metadata');}const account=yield tezos.wallet.pkh();try{console.log('Making storage contract...');const currentLevel=yield(0,stats_1.getNetworkHead)(network);const storageCode=yield(0,baseDAODocker_1.generateStorageContract)({network,template,storage:treasuryParams,originatorAddress:account,metadata,currentLevel});console.log('Originating DAO contract...');const contractMichaelson=lambdaDAO_1.default;console.log(contractMichaelson);console.log(treasuryParams);console.log(storageCode);const t=tezos.wallet.originate({code:contractMichaelson,init:storageCode});console.log('t: ',t);const operation=yield t.send();console.log('operation: ',operation);console.log('Waiting for confirmation on DAO contract...',t);const {address}=yield operation.contract();return tezos.wallet.at(address);}catch(e){console.log('error ',e);throw new Error('Error deploying DAO');}});BaseDAO.transfer_ownership=(newOwner,address,tezos)=>__awaiter(void 0,void 0,void 0,function*(){const contract=yield(0,_1.getContract)(tezos,address);return contract.methods.transfer_ownership(newOwner).send();}); \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +var _a; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BaseDAO = void 0; +const _1 = require("."); +const baseDAODocker_1 = require("../../baseDAODocker"); +const lambdaDAO_1 = __importDefault(require("./michelson/lambdaDAO")); +const utils_1 = require("../utils"); +const bignumber_js_1 = require("bignumber.js"); +const michel_codec_1 = require("@taquito/michel-codec"); +const michelson_encoder_1 = require("@taquito/michelson-encoder"); +const configuration_proposal_type_json_1 = __importDefault(require("./lambdaDAO/michelson/supported_lambda_types/configuration_proposal_type.json")); +const proposelambda_1 = __importDefault(require("./lambdaDAO/michelson/proposelambda")); +const stats_1 = require("../../bakingBad/stats"); +class BaseDAO { + constructor(data) { + this.data = data; + this.flush = (numerOfProposalsToFlush, expiredProposalIds, tezos) => __awaiter(this, void 0, void 0, function* () { + const daoContract = yield (0, _1.getContract)(tezos, this.data.address); + const initialBatch = yield tezos.wallet.batch(); + const batch = expiredProposalIds.reduce((prev, current) => { + return prev.withContractCall(daoContract.methods.drop_proposal(current)); + }, initialBatch); + batch.withContractCall(daoContract.methods.flush(numerOfProposalsToFlush)); + return yield batch.send(); + }); + this.dropProposal = (proposalId, tezos) => __awaiter(this, void 0, void 0, function* () { + const contract = yield (0, _1.getContract)(tezos, this.data.address); + return yield contract.methods.drop_proposal(proposalId).send(); + }); + this.dropAllExpired = (expiredProposalIds, tezos) => __awaiter(this, void 0, void 0, function* () { + const daoContract = yield (0, _1.getContract)(tezos, this.data.address); + const initialBatch = yield tezos.wallet.batch(); + const batch = expiredProposalIds.reduce((prev, current) => { + return prev.withContractCall(daoContract.methods.drop_proposal(current)); + }, initialBatch); + return yield batch.send(); + }); + this.unstakeFromAllProposals = (proposals, account, tezos) => __awaiter(this, void 0, void 0, function* () { + const daoContract = yield (0, _1.getContract)(tezos, this.data.address); + const initialBatch = yield tezos.wallet.batch(); + const batch = proposals.reduce((prev, current) => { + return prev.withContractCall(daoContract.methods.unstake_vote([current])); + }, initialBatch); + return yield batch.send(); + }); + this.sendXtz = (xtzAmount, tezos) => __awaiter(this, void 0, void 0, function* () { + const contract = yield (0, _1.getContract)(tezos, this.data.address); + return yield contract.methods.callCustom("receive_xtz", "").send({ + amount: (0, utils_1.xtzToMutez)(xtzAmount).toNumber(), + mutez: true + }); + }); + this.vote = ({ proposalKey, amount, support, tezos }) => __awaiter(this, void 0, void 0, function* () { + const contract = yield (0, _1.getContract)(tezos, this.data.address); + return yield contract.methods + .vote([ + { + argument: { + from: yield tezos.wallet.pkh(), + proposal_key: proposalKey, + vote_type: support, + vote_amount: (0, utils_1.formatUnits)(amount, this.data.token.decimals).toString() + } + } + ]) + .send(); + }); + this.freeze = (amount, tezos) => __awaiter(this, void 0, void 0, function* () { + const daoContract = yield (0, _1.getContract)(tezos, this.data.address); + const govTokenContract = yield (0, _1.getContract)(tezos, this.data.token.contract); + const tokenMetadata = this.data.token; + const batch = yield tezos.wallet + .batch() + .withContractCall(govTokenContract.methods.update_operators([ + { + add_operator: { + owner: yield tezos.wallet.pkh(), + operator: this.data.address, + token_id: this.data.token.token_id + } + } + ])) + .withContractCall(daoContract.methods.freeze((0, utils_1.formatUnits)(amount, tokenMetadata.decimals).toString())) + .withContractCall(govTokenContract.methods.update_operators([ + { + remove_operator: { + owner: yield tezos.wallet.pkh(), + operator: this.data.address, + token_id: this.data.token.token_id + } + } + ])); + return yield batch.send(); + }); + this.unfreeze = (amount, tezos) => __awaiter(this, void 0, void 0, function* () { + const contract = yield (0, _1.getContract)(tezos, this.data.address); + return yield contract.methods.unfreeze((0, utils_1.formatUnits)(amount, this.data.token.decimals).toString()).send(); + }); + this.unstakeVotes = (proposalId, tezos) => __awaiter(this, void 0, void 0, function* () { + const contract = yield (0, _1.getContract)(tezos, this.data.address); + return yield contract.methods.unstake_vote([proposalId]).send(); + }); + } + static encodeProposalMetadata(dataToEncode, michelsonSchemaString, tezos) { + return __awaiter(this, void 0, void 0, function* () { + const parser = new michel_codec_1.Parser(); + const michelsonType = parser.parseData(michelsonSchemaString); + const schema = new michelson_encoder_1.Schema(michelsonType); + const data = schema.Encode(dataToEncode); + const { packed } = yield tezos.rpc.packData({ + data, + type: michelsonType + }); + return packed; + }); + } + static encodeLambdaAddMetadata(dataToEncode, michelsonSchemaString, tezos) { + return __awaiter(this, void 0, void 0, function* () { + console.log("michelsonSchemaString: ", michelsonSchemaString); + console.log("dataToEncode: ", dataToEncode); + const parser = new michel_codec_1.Parser(); + const dataJSON = parser.parseMichelineExpression(dataToEncode); + const typeJSON = parser.parseMichelineExpression(michelsonSchemaString); + const packed = (0, michel_codec_1.packDataBytes)(dataJSON, // as MichelsonData + typeJSON // as MichelsonType + ); + return packed; + }); + } + proposeConfigChange(configParams, tezos) { + return __awaiter(this, void 0, void 0, function* () { + const contract = yield (0, _1.getContract)(tezos, this.data.address); + const p = new michel_codec_1.Parser(); + const configuration_arg_schema = new michelson_encoder_1.Schema(configuration_proposal_type_json_1.default); + let formatted_frozen_extra_value; + if (configParams.frozen_extra_value) { + formatted_frozen_extra_value = (0, utils_1.formatUnits)(new bignumber_js_1.BigNumber(configParams.frozen_extra_value.toString()), this.data.token.decimals).toString(); + } + const configuration_proposal_args = { + frozen_extra_value: formatted_frozen_extra_value, + slash_scale_value: configParams.slash_scale_value + }; + console.log("configuration_proposal_args: ", configuration_proposal_args); + const packed_configuration_proposal_arg = (0, michel_codec_1.packDataBytes)(configuration_arg_schema.Encode(configuration_proposal_args) // as MichelsonData + ); + const proposal_meta_michelson_type = p.parseMichelineExpression(proposelambda_1.default); + const proposal_meta_schema = new michelson_encoder_1.Schema(proposal_meta_michelson_type); + const proposalMetadata = (0, michel_codec_1.packDataBytes)(proposal_meta_schema.Encode({ + execute_handler: { + handler_name: "configuration_proposal", + packed_argument: packed_configuration_proposal_arg.bytes + } + }), proposal_meta_michelson_type); + const contractMethod = contract.methods.propose(yield tezos.wallet.pkh(), (0, utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value), this.data.token.decimals), proposalMetadata.bytes); + return yield contractMethod.send(); + }); + } +} +exports.BaseDAO = BaseDAO; +_a = BaseDAO; +BaseDAO.baseDeploy = (template, { params, metadata, tezos, network }) => __awaiter(void 0, void 0, void 0, function* () { + const treasuryParams = (0, _1.fromStateToBaseStorage)(params); + if (!metadata.deployAddress) { + throw new Error("Error deploying treasury DAO: There's not address of metadata"); + } + const account = yield tezos.wallet.pkh(); + try { + console.log("Making storage contract..."); + const currentLevel = yield (0, stats_1.getNetworkHead)(network); + const storageCode = yield (0, baseDAODocker_1.generateStorageContract)({ + network, + template, + storage: treasuryParams, + originatorAddress: account, + metadata, + currentLevel + }); + console.log("Originating DAO contract..."); + const contractMichaelson = lambdaDAO_1.default; + console.log(contractMichaelson); + console.log(treasuryParams); + console.log(storageCode); + const t = tezos.wallet.originate({ + code: contractMichaelson, + init: storageCode + }); + console.log("t: ", t); + const operation = yield t.send(); + console.log("operation: ", operation); + console.log("Waiting for confirmation on DAO contract...", t); + const { address } = yield operation.contract(); + return tezos.wallet.at(address); + } + catch (e) { + console.log("error ", e); + throw new Error("Error deploying DAO"); + } +}); +BaseDAO.transfer_ownership = (newOwner, address, tezos) => __awaiter(void 0, void 0, void 0, function* () { + const contract = yield (0, _1.getContract)(tezos, address); + return contract.methods.transfer_ownership(newOwner).send(); +}); +//# sourceMappingURL=class.js.map \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/class.js.map b/dist/services/contracts/baseDAO/class.js.map index 947bfdd..fdcb875 100644 --- a/dist/services/contracts/baseDAO/class.js.map +++ b/dist/services/contracts/baseDAO/class.js.map @@ -1 +1 @@ -{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/services/contracts/baseDAO/class.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,wBAA6E;AAE7E,0DAAgE;AAEhE,sEAAyD;AACzD,oCAAkD;AAClD,+CAAwC;AAGxC,wDAAiG;AACjG,kEAAmD;AAEnD,qJAAwH;AACxH,wFAA+D;AAC/D,oDAAyD;AAqDzD,MAAsB,OAAO;IAyD3B,YAA6B,IAAiB;QAAjB,SAAI,GAAJ,IAAI,CAAa;QAEvC,UAAK,GAAG,CAAO,uBAA+B,EAAE,kBAA4B,EAAE,KAAmB,EAAE,EAAE;YAC1G,MAAM,WAAW,GAAG,MAAM,IAAA,cAAW,EAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAC/D,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;YAE/C,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;gBACxD,OAAO,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAA;YAC1E,CAAC,EAAE,YAAY,CAAC,CAAA;YAEhB,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAA;YAE1E,OAAO,MAAM,KAAK,CAAC,IAAI,EAAE,CAAA;QAC3B,CAAC,CAAA,CAAA;QAEM,iBAAY,GAAG,CAAO,UAAkB,EAAE,KAAmB,EAAE,EAAE;YACtE,MAAM,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;QAExB,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;YAC/B,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,WAAW;SAClB,CAAC,CAAA;QAEF,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACrB,MAAM,SAAS,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;QAChC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;QACrC,OAAO,CAAC,GAAG,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAA;QAC7D,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,SAAS,CAAC,QAAQ,EAAE,CAAA;QAE9C,OAAO,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,CAAA;KAChC;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAA;QACxB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAA;KACvC;AACH,CAAC,CAAA,AAhDuB,CAgDvB;AAEa,0BAAkB,GAAG,CAAO,QAAgB,EAAE,OAAe,EAAE,KAAmB,EAAE,EAAE;IAClG,MAAM,QAAQ,GAAG,MAAM,IAAA,cAAW,EAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IAElD,OAAO,QAAQ,CAAC,OAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAA;AAC7D,CAAC,CAAA,AAJ+B,CAI/B"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useDropAllExpired.js b/dist/services/contracts/baseDAO/hooks/useDropAllExpired.js deleted file mode 100644 index db61559..0000000 --- a/dist/services/contracts/baseDAO/hooks/useDropAllExpired.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.useDropAllExpired=void 0;const useNotification_1=require('../../../../modules/common/hooks/useNotification');const react_query_1=require('react-query');const useTezos_1=require('../../../beacon/hooks/useTezos');const bakingBad_1=require('../../../bakingBad');const useDropAllExpired=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(params=>__awaiter(void 0,void 0,void 0,function*(){const {key:dropNotification,closeSnackbar:closeFlushNotification}=openNotification({message:'Please sign the transaction to drop all expired proposals',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield params.dao.dropAllExpired(params.expiredProposalIds,tezosToolkit);closeFlushNotification(dropNotification);yield data.confirmation(1);openNotification({message:'Execute transaction confirmed!',autoHideDuration:5000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){closeFlushNotification(dropNotification);openNotification({message:'An error has happened with drop expired transaction!',variant:'error',autoHideDuration:5000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useDropAllExpired=useDropAllExpired; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useDropAllExpired.js.map b/dist/services/contracts/baseDAO/hooks/useDropAllExpired.js.map deleted file mode 100644 index 10480f3..0000000 --- a/dist/services/contracts/baseDAO/hooks/useDropAllExpired.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useDropAllExpired.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useDropAllExpired.ts"],"names":[],"mappings":";;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AO,EAAE,OAAO;gBAChB,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAA;YACF,OAAO,IAAI,KAAK,CAAE,CAAW,CAAC,OAAO,CAAC,CAAA;SACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AA/CY,QAAA,iBAAiB,qBA+C7B"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useDropProposal.js b/dist/services/contracts/baseDAO/hooks/useDropProposal.js deleted file mode 100644 index 1803a86..0000000 --- a/dist/services/contracts/baseDAO/hooks/useDropProposal.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.useDropProposal=void 0;const useNotification_1=require('../../../../modules/common/hooks/useNotification');const react_query_1=require('react-query');const useTezos_1=require('../../../beacon/hooks/useTezos');const bakingBad_1=require('../../../bakingBad');const useDropProposal=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,connect,account}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(params=>__awaiter(void 0,void 0,void 0,function*(){const {key:dropProposal,closeSnackbar:closeDropProposal}=openNotification({message:'Please sign the transaction to drop proposal',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield params.dao.dropProposal(params.proposalId,tezosToolkit);closeDropProposal(dropProposal);yield data.confirmation(1);openNotification({message:'Drop proposal transaction confirmed!',autoHideDuration:5000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){closeDropProposal(dropProposal);openNotification({message:'An error has happened with drop proposal transaction!',variant:'error',autoHideDuration:5000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useDropProposal=useDropProposal; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useDropProposal.js.map b/dist/services/contracts/baseDAO/hooks/useDropProposal.js.map deleted file mode 100644 index 1667594..0000000 --- a/dist/services/contracts/baseDAO/hooks/useDropProposal.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useDropProposal.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useDropProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,0EAAsE;AACtE,6CAAyD;AACzD,6DAAyD;AAEzD,kDAAmD;AAE5C,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IACpC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAEvD,OAAO,IAAA,yBAAW,EAChB,CAAM,MAAM,EAAC,EAAE;QACb,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,GAAG,gBAAgB,CAAC;YAC/E,OAAO,EAAE,8CAA8C;YACvD,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,MAAM;SAChB,CAAC,CAAA;QACF,IAAI;YACF,IAAI,YAAY,GAAG,KAAK,CAAA;YAExB,IAAI,CAAC,OAAO,EAAE;gBACZ,YAAY,GAAG,MAAM,OAAO,EAAE,CAAA;aAC/B;YAED,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC,CAAA;YAC3E,iBAAiB,CAAC,YAAY,CAAC,CAAA;YAE/B,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;YAC1B,gBAAgB,CAAC;gBACf,OAAO,EAAE,sCAAsC;gBAC/C,gBAAgB,EAAE,IAAI;gBACtB,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,WAAW,0BAAc,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM;aACzE,CAAC,CAAA;YAEF,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,iBAAiB,CAAC,YAAY,CAAC,CAAA;YAC/B,gBAAgB,CAAC;gBACf,OAAO,EAAE,uDAAuD;gBAChE,OAAO,EAAE,OAAO;gBAChB,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAA;YACF,OAAO,IAAI,KAAK,CAAE,CAAW,CAAC,OAAO,CAAC,CAAA;SACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AA/CY,QAAA,eAAe,mBA+C3B"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useFlush.js b/dist/services/contracts/baseDAO/hooks/useFlush.js deleted file mode 100644 index b9e9fee..0000000 --- a/dist/services/contracts/baseDAO/hooks/useFlush.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.useFlush=void 0;const useNotification_1=require('../../../../modules/common/hooks/useNotification');const react_query_1=require('react-query');const useTezos_1=require('../../../beacon/hooks/useTezos');const bakingBad_1=require('../../../bakingBad');const useFlush=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(params=>__awaiter(void 0,void 0,void 0,function*(){const {key:flushNotification,closeSnackbar:closeFlushNotification}=openNotification({message:'Please sign the transaction to flush',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield params.dao.flush(params.numOfProposalsToFlush,params.expiredProposalIds,tezosToolkit);closeFlushNotification(flushNotification);yield data.confirmation(1);openNotification({message:'Execute transaction confirmed!',autoHideDuration:5000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){closeFlushNotification(flushNotification);openNotification({message:'An error has happened with execute transaction!',variant:'error',autoHideDuration:5000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useFlush=useFlush; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useFlush.js.map b/dist/services/contracts/baseDAO/hooks/useFlush.js.map deleted file mode 100644 index 6b65d07..0000000 --- a/dist/services/contracts/baseDAO/hooks/useFlush.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useFlush.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useFlush.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,6CAAyD;AACzD,6DAAyD;AAEzD,kDAAmD;AAE5C,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IACpC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,O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AE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AA/CY,QAAA,QAAQ,YA+CpB"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useFreeze.js b/dist/services/contracts/baseDAO/hooks/useFreeze.js deleted file mode 100644 index 23468cb..0000000 --- a/dist/services/contracts/baseDAO/hooks/useFreeze.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useFreeze=void 0;const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const useNotification_1=require('../../../../modules/common/hooks/useNotification');const react_query_1=require('react-query');const useTezos_1=require('../../../beacon/hooks/useTezos');const bakingBad_1=require('../../../bakingBad');const useFreeze=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(params=>__awaiter(void 0,void 0,void 0,function*(){const {key:freezeNotification,closeSnackbar:closeFreezeNotification}=openNotification({message:`${params.freeze?'Deposit':'Withdrawal'} is being processed...`,persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield params.dao[params.freeze?'freeze':'unfreeze'](params.amount,tezosToolkit);mixpanel_browser_1.default.track(`Tokens ${params.freeze?'Deposited':'Withdrawn'}`,{dao:params.dao.data.address,amount:params.amount});yield data.confirmation(1);closeFreezeNotification(freezeNotification);openNotification({message:`${params.freeze?'Deposit':'Withdrawal'} transaction confirmed!`,autoHideDuration:10000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){console.log(e);closeFreezeNotification(freezeNotification);openNotification({message:`An error has happened with ${params.freeze?'deposit':'withdrawal'} transaction!`,variant:'error',autoHideDuration:10000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useFreeze=useFreeze; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useFreeze.js.map b/dist/services/contracts/baseDAO/hooks/useFreeze.js.map deleted file mode 100644 index 22263c9..0000000 --- a/dist/services/contracts/baseDAO/hooks/useFreeze.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useFreeze.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useFreeze.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,wEAAuC;AACvC,0EAAsE;AACtE,6CAAyD;AACzD,6DAAyD;AAEzD,kDAAmD;AAQ5C,MAAM,SAAS,GAAG,GAAG,EAAE;IAC5B,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IACpC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAEvD,OAAO,IAAA,yBAAW,EAChB,CAAM,MAAM,EAAC,EAAE;QACb,MAAM,EAAE,GAAG,EAAE,kBAAkB,EAAE,aAAa,EAAE,uBAAuB,EAAE,GAAG,gBAAgB,CAAC;YAC3F,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,wBAAwB;YAC5E,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,MAAM;SAChB,CAAC,CAAA;QACF,IAAI;YACF,IAAI,YAAY,GAAG,K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CAAW,CAAC,OAAO,CAAC,CAAA;SACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AArDY,QAAA,SAAS,aAqDrB"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useLambdaAddPropose.js b/dist/services/contracts/baseDAO/hooks/useLambdaAddPropose.js deleted file mode 100644 index d3b4399..0000000 --- a/dist/services/contracts/baseDAO/hooks/useLambdaAddPropose.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useLambdaAddPropose=void 0;const react_query_1=require('react-query');const useNotification_1=require('../../../../modules/common/hooks/useNotification');const useTezos_1=require('../../../beacon/hooks/useTezos');const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const bakingBad_1=require('../../../bakingBad');const useLambdaAddPropose=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(({dao,args,handleClose})=>__awaiter(void 0,void 0,void 0,function*(){const {key:proposalNotification,closeSnackbar:closeProposalNotification}=openNotification({message:'Proposal is being created...',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield dao.proposeLambdaAdd(args,tezosToolkit);mixpanel_browser_1.default.track('Proposal Created',{dao:dao.data.address,daoType:'Registry'});yield data.confirmation(1);closeProposalNotification(proposalNotification);openNotification({message:'Add Lambda proposal transaction confirmed!',autoHideDuration:10000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});handleClose();return data;}catch(e){console.log(e);closeProposalNotification(proposalNotification);openNotification({message:'An error has happened with propose transaction!',variant:'error',autoHideDuration:10000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useLambdaAddPropose=useLambdaAddPropose; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useLambdaAddPropose.js.map b/dist/services/contracts/baseDAO/hooks/useLambdaAddPropose.js.map deleted file mode 100644 index 66b7dfb..0000000 --- a/dist/services/contracts/baseDAO/hooks/useLambdaAddPropose.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useLambdaAddPropose.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useLambdaAddPropose.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,6CAAyD;AAEzD,0EAAsE;AACtE,6DAAyD;AACzD,wEAAuC;AACvC,kDAAmD;AAG5C,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IACpC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAEvD,OAAO,IAAA,yBAAW,EAKhB,CAAO,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;QACnC,MAAM,EAAE,GAAG,EAAE,oBAAoB,EAAE,aAAa,EAAE,yBAAyB,EAAE,GAAG,gBAAgB,CAAC;YAC/F,OAAO,EAAE,8BAA8B;YACvC,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,MAA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/services/contracts/baseDAO/hooks/useLambdaExecutePropose.js b/dist/services/contracts/baseDAO/hooks/useLambdaExecutePropose.js deleted file mode 100644 index d27f0fa..0000000 --- a/dist/services/contracts/baseDAO/hooks/useLambdaExecutePropose.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useLambdaExecutePropose=void 0;const react_query_1=require('react-query');const useNotification_1=require('../../../../modules/common/hooks/useNotification');const useTezos_1=require('../../../beacon/hooks/useTezos');const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const bakingBad_1=require('../../../bakingBad');const useLambdaExecutePropose=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(({dao,args,handleClose})=>__awaiter(void 0,void 0,void 0,function*(){const {key:proposalNotification,closeSnackbar:closeProposalNotification}=openNotification({message:'Proposal is being created...',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield dao.proposeLambdaExecute(args,tezosToolkit);mixpanel_browser_1.default.track('Proposal Created',{dao:dao.data.address,daoType:'Registry'});yield data.confirmation(1);closeProposalNotification(proposalNotification);openNotification({message:'New proposal transaction confirmed!',autoHideDuration:10000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});handleClose();return data;}catch(e){console.log(e);closeProposalNotification(proposalNotification);openNotification({message:'An error has happened with propose transaction!',variant:'error',autoHideDuration:10000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useLambdaExecutePropose=useLambdaExecutePropose; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useLambdaExecutePropose.js.map b/dist/services/contracts/baseDAO/hooks/useLambdaExecutePropose.js.map deleted file mode 100644 index d60709a..0000000 --- a/dist/services/contracts/baseDAO/hooks/useLambdaExecutePropose.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useLambdaExecutePropose.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useLambdaExecutePropose.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,6CAAyD;AAEzD,0EAAsE;AACtE,6DAAyD;AACzD,wEAAuC;AACvC,kDAAmD;AAG5C,MAAM,uBAAuB,GAAG,GAAG,EAAE;IAC1C,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IACpC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAEvD,OAAO,IAAA,yBAAW,EAKhB,CAAO,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;QACnC,MAAM,EAAE,GAAG,EAAE,oBAAoB,EAAE,aAAa,EAAE,yBAAyB,EAAE,GAAG,gBAAgB,CAAC;YAC/F,OAAO,EAAE,8BAA8B;YACvC,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,MAAM;SAChB,CAAC,CAAA;QACF,IAAI;YACF,IAAI,YAAY,GAAG,KAAK,CAAA;YAExB,IAAI,CAAC,OAAO,EAAE;gBACZ,YAAY,GAAG,MAAM,OAAO,EAAE,CAAA;aAC/B;YAED,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,oBAAoB,CAAC,IAAI,EAAE,YAAY,CAAC,CAAA;YAE/D,0BAAQ,CAAC,KAAK,CAAC,kBAAkB,EAAE;gBACjC,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,OAAO;gBACrB,OAAO,EAAE,UAAU;aACpB,CAAC,CAAA;YAEF,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;YAC1B,yBAAyB,CAAC,oBAAoB,CAAC,CAAA;YAE/C,gBAAgB,CAAC;gBACf,OAAO,EAAE,qCAAqC;gBAC9C,gBAAgB,EAAE,KAAK;gBACvB,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,WAAW,0BAAc,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM;aACzE,CAAC,CAAA;YAEF,WAAW,EAAE,CAAA;YACb,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;YACd,yBAAyB,CAAC,oBAAoB,CAAC,CAAA;YAC/C,gBAAgB,CAAC;gBACf,OAAO,EAAE,iDAAiD;gBAC1D,OAAO,EAAE,OAAO;gBAChB,gBAAgB,EAAE,KAAK;aACxB,CAAC,CAAA;YACF,OAAO,IAAI,KAAK,CAAE,CAAW,CAAC,OAAO,CAAC,CAAA;SACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AA3DY,QAAA,uBAAuB,2BA2DnC"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useLambdaRemovePropose.js b/dist/services/contracts/baseDAO/hooks/useLambdaRemovePropose.js deleted file mode 100644 index ac8ae9c..0000000 --- a/dist/services/contracts/baseDAO/hooks/useLambdaRemovePropose.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useLambdaRemovePropose=void 0;const react_query_1=require('react-query');const useNotification_1=require('../../../../modules/common/hooks/useNotification');const useTezos_1=require('../../../beacon/hooks/useTezos');const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const bakingBad_1=require('../../../bakingBad');const useLambdaRemovePropose=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(({dao,args,handleClose})=>__awaiter(void 0,void 0,void 0,function*(){const {key:proposalNotification,closeSnackbar:closeProposalNotification}=openNotification({message:'Proposal is being created...',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield dao.proposeLambdaRemove(args,tezosToolkit);mixpanel_browser_1.default.track('Proposal Created',{dao:dao.data.address,daoType:'Registry'});yield data.confirmation(1);closeProposalNotification(proposalNotification);openNotification({message:'Remove Lambda proposal transaction confirmed!',autoHideDuration:10000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});handleClose();return data;}catch(e){console.log(e);closeProposalNotification(proposalNotification);openNotification({message:'An error has happened with propose transaction!',variant:'error',autoHideDuration:10000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useLambdaRemovePropose=useLambdaRemovePropose; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useLambdaRemovePropose.js.map b/dist/services/contracts/baseDAO/hooks/useLambdaRemovePropose.js.map deleted file mode 100644 index dc59fe9..0000000 --- a/dist/services/contracts/baseDAO/hooks/useLambdaRemovePropose.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useLambdaRemovePropose.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useLambdaRemovePropose.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,6CAAyD;AAEzD,0EAAsE;AACtE,6DAAyD;AACzD,wEAAuC;AACvC,kDAAmD;AAG5C,MAAM,sBAAsB,GAAG,GAAG,EAAE;IACzC,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IACpC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAEvD,OAAO,IAAA,yBAAW,EAKhB,CAAO,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;QACnC,MAAM,EAAE,GAAG,EAAE,oBAAoB,EAAE,aAAa,EAAE,yBAAyB,EAAE,GAAG,gBAAgB,CAAC;YAC/F,OAAO,EAAE,8BAA8B;YACvC,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,MAAM;SAChB,CAAC,CAAA;QACF,IAAI;YACF,IAAI,YAAY,GAAG,KAAK,CAAA;YAExB,IAAI,CAAC,OAAO,EAAE;gBACZ,YAAY,GAAG,MAAM,OAAO,EAAE,CAAA;aAC/B;YAED,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,mBAAmB,CAAC,IAAI,EAAE,YAAY,CAAC,CAAA;YAE9D,0BAAQ,CAAC,KAAK,CAAC,kBAAkB,EAAE;gBACjC,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,OAAO;gBACrB,OAAO,EAAE,UAAU;aACpB,CAAC,CAAA;YAEF,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;YAC1B,yBAAyB,CAAC,oBAAoB,CAAC,CAAA;YAE/C,gBAAgB,CAAC;gBACf,OAAO,EAAE,+CAA+C;gBACxD,gBAAgB,EAAE,KAAK;gBACvB,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,WAAW,0BAAc,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM;aACzE,CAAC,CAAA;YAEF,WAAW,EAAE,CAAA;YACb,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;YACd,yBAAyB,CAAC,oBAAoB,CAAC,CAAA;YAC/C,gBAAgB,CAAC;gBACf,OAAO,EAAE,iDAAiD;gBAC1D,OAAO,EAAE,OAAO;gBAChB,gBAAgB,EAAE,KAAK;aACxB,CAAC,CAAA;YACF,OAAO,IAAI,KAAK,CAAE,CAAW,CAAC,OAAO,CAAC,CAAA;SACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AA3DY,QAAA,sBAAsB,0BA2DlC"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useOriginate.js b/dist/services/contracts/baseDAO/hooks/useOriginate.js deleted file mode 100644 index 7321d59..0000000 --- a/dist/services/contracts/baseDAO/hooks/useOriginate.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useOriginate=void 0;const react_1=require('react');const react_query_1=require('react-query');const deploy_1=require('../../metadataCarrier/deploy');const useTezos_1=require('../../../beacon/hooks/useTezos');const __1=require('..');const services_1=require('../../../services/dao/services');const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const signer_1=require('@taquito/signer');const beacon_1=require('../../../beacon');const utils_1=require('../../../lite/utils');const lite_services_1=require('../../../services/lite/lite-services');const INITIAL_STATES=[{activeText:'',completedText:''},{activeText:'',completedText:''},{activeText:'',completedText:''},{activeText:'',completedText:''}];const waitForIndexation=contractAddress=>__awaiter(void 0,void 0,void 0,function*(){return new Promise((resolve,reject)=>__awaiter(void 0,void 0,void 0,function*(){let tries=0;const tryDAOIndexation=()=>__awaiter(void 0,void 0,void 0,function*(){const response=yield(0,services_1.getDAO)(contractAddress);if(response.daos.length>0){resolve(true);}else{if(tries>12){console.log(`DAO indexation timed out`);reject(false);}console.log(`Verifying DAO indexation, trial #${tries+1}`);tries++;setTimeout(()=>__awaiter(void 0,void 0,void 0,function*(){return yield tryDAOIndexation();}),10000);}});yield tryDAOIndexation();}));});const useOriginate=template=>{const queryClient=(0,react_query_1.useQueryClient)();const [states,setStates]=(0,react_1.useState)(INITIAL_STATES);const [activeState,setActiveState]=(0,react_1.useState)();const {tezos,connect,network,account,wallet}=(0,useTezos_1.useTezos)();const result=(0,react_query_1.useMutation)(({metadataParams,params})=>__awaiter(void 0,void 0,void 0,function*(){var _a;const updatedStates=INITIAL_STATES;updatedStates[0]={activeText:'Deploying Metadata Carrier Contract',completedText:''};setActiveState(0);setStates(updatedStates);let newTezos=tezos;if(network!=='mainnet'){newTezos=(0,useTezos_1.initTezosInstance)(network);const signer=yield signer_1.InMemorySigner.fromSecretKey(beacon_1.ALICE_PRIV_KEY);newTezos.setProvider({signer});params.orgSettings.administrator=yield newTezos.wallet.pkh();}mixpanel_browser_1.default.track('Started DAO origination',{contract:'MetadataCarrier',daoName:params.orgSettings.name,daoType:params.template});const metadata=yield(0,deploy_1.deployMetadataCarrier)(Object.assign(Object.assign({},metadataParams),{tezos:newTezos,connect}));if(!metadata){throw new Error(`Could not deploy ${template}DAO because MetadataCarrier contract deployment failed`);}updatedStates[0]=Object.assign(Object.assign({},updatedStates[0]),{completedText:`Deployed Metadata Carrier with address "${metadata.deployAddress}" and key "${metadata.keyName}"`});updatedStates[1]={activeText:`Deploying ${template} DAO Contract`,completedText:''};setActiveState(1);setStates(updatedStates);mixpanel_browser_1.default.track('Started DAO origination',{contract:'BaseDAO',daoName:params.orgSettings.name});const contract=yield __1.BaseDAO.baseDeploy(template,{tezos:newTezos,metadata,params,network});if(!contract){throw new Error(`Error deploying ${template}DAO`);}updatedStates[1]=Object.assign(Object.assign({},updatedStates[1]),{completedText:`Deployed ${template} DAO contract with address "${contract.address}"`});updatedStates[2]={activeText:`Waiting for DAO ownership to be transferred`,completedText:''};setActiveState(2);setStates(updatedStates);const tx=yield __1.BaseDAO.transfer_ownership(contract.address,contract.address,newTezos);if(!tx){throw new Error(`Error transferring ownership of ${template}DAO to itself`);}updatedStates[2]=Object.assign(Object.assign({},updatedStates[2]),{completedText:`Ownership of ${template} DAO transferred to the DAO "${contract.address}"`});updatedStates[3]={activeText:`Waiting for DAO to be indexed`,completedText:''};setActiveState(3);setStates(updatedStates);mixpanel_browser_1.default.track('Completed DAO creation',{daoName:params.orgSettings.name,daoType:params.template});mixpanel_browser_1.default.track('Waiting for DAO indexation',{daoName:params.orgSettings.name,daoType:params.template});const indexed=yield waitForIndexation(contract.address);updatedStates[3]=Object.assign(Object.assign({},updatedStates[3]),{completedText:indexed?`Deployed ${metadataParams.metadata.unfrozenToken.name} successfully`:`Deployed ${metadataParams.metadata.unfrozenToken.name} successfully, but metadata has not been indexed yet. This usually takes a few minutes, your DAO page may not be available yet.`});setActiveState(4);setStates(updatedStates);if(wallet){const values={name:params.orgSettings.name,description:params.orgSettings.description,linkToTerms:contract.address,picUri:'',members:[],polls:[],tokenAddress:params.orgSettings.governanceToken.address,tokenType:'FA2',requiredTokenOwnership:true,allowPublicAccess:true,network:network,daoContract:contract.address,tokenID:params.orgSettings.governanceToken.tokenId};const {signature,payloadBytes}=yield(0,utils_1.getSignature)(account,wallet,JSON.stringify(values));const publicKey=(_a=yield wallet===null||wallet===void 0?void 0:wallet.client.getActiveAccount())===null||_a===void 0?void 0:_a.publicKey;const resp=yield(0,lite_services_1.saveLiteCommunity)(signature,publicKey,payloadBytes);}mixpanel_browser_1.default.track('Completed DAO indexation',{daoName:params.orgSettings.name,daoType:params.template});return contract;}),{onSuccess:()=>{queryClient.resetQueries();}});return{mutation:result,states,activeState};};exports.useOriginate=useOriginate; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useOriginate.js.map b/dist/services/contracts/baseDAO/hooks/useOriginate.js.map deleted file mode 100644 index 4d3e764..0000000 --- a/dist/services/contracts/baseDAO/hooks/useOriginate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useOriginate.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useOriginate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,iCAAgC;AAEhC,6CAAyD;AAEzD,sEAAiF;AACjF,6DAA4E;AAC5E,0BAA4B;AAC5B,6DAAuD;AACvD,wEAAuC;AACvC,4CAAgD;AAChD,4CAAgD;AAChD,+CAAkD;AAClD,wEAAwE;AAGxE,MAAM,cAAc,GAAG;IACrB;QACE,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,EAAE;KAClB;IACD;QACE,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,EAAE;KAClB;IACD;QACE,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,EAAE;KAClB;IACD;QACE,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,EAAE;KAClB;CACF,CAAA;AAED,MAAM,iBAAiB,GAAG,CAAO,eAAuB,EAAE,EAAE;IAC1D,OAAO,IAAI,OAAO,CAAC,CA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Ae,CAAC,OAAO;aACpD,CAAA;YACD,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,MAAM,IAAA,oBAAY,EAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;YAC/F,MAAM,SAAS,GAAG,MAAA,CAAC,MAAM,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC,gBAAgB,EAAE,CAAA,CAAC,0CAAE,SAAS,CAAA;YAEtE,MAAM,IAAI,GAAG,MAAM,IAAA,iCAAiB,EAAC,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC,CAAA;SACzE;QAED,0BAAQ,CAAC,KAAK,CAAC,0BAA0B,EAAE;YACzC,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI;YAChC,OAAO,EAAE,MAAM,CAAC,QAAQ;SACzB,CAAC,CAAA;QAEF,OAAO,QAAQ,CAAA;IACjB,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;IAED,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,CAAA;AAClD,CAAC,CAAA;AArKY,QAAA,YAAY,gBAqKxB"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useProposeConfigChange.js b/dist/services/contracts/baseDAO/hooks/useProposeConfigChange.js deleted file mode 100644 index 55638f3..0000000 --- a/dist/services/contracts/baseDAO/hooks/useProposeConfigChange.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.useProposeConfigChange=void 0;const react_query_1=require('react-query');const useNotification_1=require('../../../../modules/common/hooks/useNotification');const useTezos_1=require('../../../beacon/hooks/useTezos');const bakingBad_1=require('../../../bakingBad');const useProposeConfigChange=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(({dao,args})=>__awaiter(void 0,void 0,void 0,function*(){const {key:proposalNotification,closeSnackbar:closeProposalNotification}=openNotification({message:'Proposal is being created...',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield dao.proposeConfigChange(args,tezosToolkit);yield data.confirmation(1);closeProposalNotification(proposalNotification);openNotification({message:'Config proposal transaction confirmed!',autoHideDuration:10000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){console.log(e);closeProposalNotification(proposalNotification);openNotification({message:'An error has happened with propose transaction!',variant:'error',autoHideDuration:10000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useProposeConfigChange=useProposeConfigChange; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useProposeConfigChange.js.map b/dist/services/contracts/baseDAO/hooks/useProposeConfigChange.js.map deleted file mode 100644 index 59658ad..0000000 --- a/dist/services/contracts/baseDAO/hooks/useProposeConfigChange.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useProposeConfigChange.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useProposeConfigChange.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAAyD;AACzD,0EAAsE;AACtE,6DAAyD;AAGzD,kDAAmD;AAE5C,MAAM,sBAAsB,GAAG,GAAG,EAAE;IACzC,MAAM,WAAW,GAAG,IA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AAE,CAAW,CAAC,OAAO,CAAC,CAAA;SACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AA/CY,QAAA,sBAAsB,0BA+ClC"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useProposeDelegationChange.js b/dist/services/contracts/baseDAO/hooks/useProposeDelegationChange.js deleted file mode 100644 index 6a54411..0000000 --- a/dist/services/contracts/baseDAO/hooks/useProposeDelegationChange.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.useProposeDelegationChange=void 0;const react_query_1=require('react-query');const useNotification_1=require('../../../../modules/common/hooks/useNotification');const useTezos_1=require('../../../beacon/hooks/useTezos');const bakingBad_1=require('../../../bakingBad');const useProposeDelegationChange=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(({dao,newDelegationAddress})=>__awaiter(void 0,void 0,void 0,function*(){const {key:proposalNotification,closeSnackbar:closeProposalNotification}=openNotification({message:'Proposal is being created...',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield dao.proposeDelegationChange(newDelegationAddress,tezosToolkit);yield data.confirmation(1);closeProposalNotification(proposalNotification);openNotification({message:'Delegation change proposal transaction confirmed!',autoHideDuration:10000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){console.error(e);closeProposalNotification(proposalNotification);openNotification({message:'An error has happened with propose transaction!',variant:'error',autoHideDuration:10000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useProposeDelegationChange=useProposeDelegationChange; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useProposeDelegationChange.js.map b/dist/services/contracts/baseDAO/hooks/useProposeDelegationChange.js.map deleted file mode 100644 index 1a2ae22..0000000 --- a/dist/services/contracts/baseDAO/hooks/useProposeDelegationChange.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useProposeDelegationChange.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useProposeDelegationChange.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAAyD;AACzD,0EAAsE;AACtE,6DAAyD;AAEzD,kDAAmD;AAE5C,MAAM,0BAA0B,GAAG,GAAG,EAAE;IAC7C,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IACpC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAEvD,OAAO,IAAA,yBAAW,EAChB,CAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,EAAE,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,oBAAoB,EAAE,aAAa,EAAE,yBAAyB,EAAE,GAAG,gBAAgB,CAAC;YAC/F,OAAO,EAAE,8BAA8B;YACvC,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,MAAM;SAChB,CAAC,CAAA;QACF,IAAI;YACF,IAAI,YAAY,GAAG,KAAK,CAAA;YAExB,IAAI,CAAC,OAAO,EAAE;gBACZ,YAAY,GAAG,MAAM,OAAO,EAAE,CAAA;aAC/B;YAED,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,uBAAuB,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAA;YAClF,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;YAC1B,yBAAyB,CAAC,oBAAoB,CAAC,CAAA;YAE/C,gBAAgB,CAAC;gBACf,OAAO,EAAE,mDAAmD;gBAC5D,gBAAgB,EAAE,KAAK;gBACvB,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,WAAW,0BAAc,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM;aACzE,CAAC,CAAA;YACF,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;YAChB,yBAAyB,CAAC,oBAAoB,CAAC,CAAA;YAC/C,gBAAgB,CAAC;gBACf,OAAO,EAAE,iDAAiD;gBAC1D,OAAO,EAAE,OAAO;gBAChB,gBAAgB,EAAE,KAAK;aACxB,CAAC,CAAA;YACF,OAAO,IAAI,KAAK,CAAE,CAAW,CAAC,OAAO,CAAC,CAAA;SACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AA/CY,QAAA,0BAA0B,8BA+CtC"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useProposeGuardianChange.js b/dist/services/contracts/baseDAO/hooks/useProposeGuardianChange.js deleted file mode 100644 index b40ac1f..0000000 --- a/dist/services/contracts/baseDAO/hooks/useProposeGuardianChange.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.useProposeGuardianChange=void 0;const react_query_1=require('react-query');const useNotification_1=require('../../../../modules/common/hooks/useNotification');const useTezos_1=require('../../../beacon/hooks/useTezos');const bakingBad_1=require('../../../bakingBad');const useProposeGuardianChange=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(({dao,newGuardianAddress})=>__awaiter(void 0,void 0,void 0,function*(){const {key:proposalNotification,closeSnackbar:closeProposalNotification}=openNotification({message:'Proposal is being created...',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield dao.proposeGuardianChange(newGuardianAddress,tezosToolkit);yield data.confirmation(1);closeProposalNotification(proposalNotification);openNotification({message:'Guardian change proposal transaction confirmed!',autoHideDuration:10000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){console.log(e);closeProposalNotification(proposalNotification);openNotification({message:'An error has happened with propose transaction!',variant:'error',autoHideDuration:10000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useProposeGuardianChange=useProposeGuardianChange; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useProposeGuardianChange.js.map b/dist/services/contracts/baseDAO/hooks/useProposeGuardianChange.js.map deleted file mode 100644 index 683f984..0000000 --- a/dist/services/contracts/baseDAO/hooks/useProposeGuardianChange.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useProposeGuardianChange.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useProposeGuardianChange.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAAyD;AACzD,0EAAsE;AACtE,6DAAyD;AAEzD,kD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AE,OAAO;gBAChB,gBAAgB,EAAE,KAAK;aACxB,CAAC,CAAA;YACF,OAAO,IAAI,KAAK,CAAE,CAAW,CAAC,OAAO,CAAC,CAAA;SACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AA/CY,QAAA,wBAAwB,4BA+CpC"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useRegistryPropose.js b/dist/services/contracts/baseDAO/hooks/useRegistryPropose.js deleted file mode 100644 index 25dbdce..0000000 --- a/dist/services/contracts/baseDAO/hooks/useRegistryPropose.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useRegistryPropose=void 0;const react_query_1=require('react-query');const useNotification_1=require('../../../../modules/common/hooks/useNotification');const useTezos_1=require('../../../beacon/hooks/useTezos');const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const bakingBad_1=require('../../../bakingBad');const useRegistryPropose=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(({dao,args})=>__awaiter(void 0,void 0,void 0,function*(){const {key:proposalNotification,closeSnackbar:closeProposalNotification}=openNotification({message:'Proposal is being created...',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield dao.propose(args,tezosToolkit);mixpanel_browser_1.default.track('Proposal Created',{dao:dao.data.address,daoType:'Registry'});yield data.confirmation(1);closeProposalNotification(proposalNotification);openNotification({message:'Registry proposal transaction confirmed!',autoHideDuration:10000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){console.log(e);closeProposalNotification(proposalNotification);openNotification({message:'An error has happened with propose transaction!',variant:'error',autoHideDuration:10000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useRegistryPropose=useRegistryPropose; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useRegistryPropose.js.map b/dist/services/contracts/baseDAO/hooks/useRegistryPropose.js.map deleted file mode 100644 index b7995f1..0000000 --- a/dist/services/contracts/baseDAO/hooks/useRegistryPropose.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useRegistryPropose.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useRegistryPropose.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,6CAAyD;AAEzD,0EAAsE;AACtE,6DAAyD;AAEzD,wEAAuC;AACvC,kDAAmD;AAE5C,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IACpC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAEvD,OAAO,IAAA,yBAAW,EAChB,CAAO,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;QACtB,MAAM,EAAE,GAAG,EAAE,oBAAoB,EAAE,aAAa,EAAE,yBAAyB,EAAE,GAAG,gBAAgB,CAAC;YAC/F,OAAO,EAAE,8BAA8B;YACvC,OAAO,EAAE,IAAI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services/contracts/baseDAO/hooks/useSendXTZ.js deleted file mode 100644 index 15ae961..0000000 --- a/dist/services/contracts/baseDAO/hooks/useSendXTZ.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.useSendXTZ=void 0;const useNotification_1=require('../../../../modules/common/hooks/useNotification');const react_query_1=require('react-query');const useTezos_1=require('../../../beacon/hooks/useTezos');const bakingBad_1=require('../../../bakingBad');const useSendXTZ=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(params=>__awaiter(void 0,void 0,void 0,function*(){const {key:notification,closeSnackbar:closeNotification}=openNotification({message:'XTZ transfer is being processed...',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield params.dao.sendXtz(params.amount,tezosToolkit);yield data.confirmation(1);closeNotification(notification);openNotification({message:'XTZ transfer confirmed!',autoHideDuration:10000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){console.log(e);closeNotification(notification);openNotification({message:'An error has happened with XTZ transfer!',variant:'error',autoHideDuration:10000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useSendXTZ=useSendXTZ; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useSendXTZ.js.map b/dist/services/contracts/baseDAO/hooks/useSendXTZ.js.map deleted file mode 100644 index 93b1357..0000000 --- a/dist/services/contracts/baseDAO/hooks/useSendXTZ.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useSendXTZ.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useSendXTZ.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,0EAAsE;AACtE,6CAAyD;AACzD,6DAAyD;AAEzD,kDAAmD;AAO5C,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IACpC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAEvD,OAAO,IAAA,yBAAW,EAChB,CAAM,MAAM,EAAC,EAAE;QACb,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,GAAG,gBAAgB,CAAC;YAC/E,OAAO,EAAE,oCAAoC;YAC7C,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,MAAM;SAChB,CAAC,CAAA;QACF,IAAI;YACF,IAAI,YAAY,GAAG,KAAK,CAAA;YAExB,IAAI,CAAC,OAAO,EAAE;gBACZ,YAAY,GAAG,MAAM,OAAO,EAAE,CAAA;aAC/B;YAED,MAAM,IAAI,GAAG,MAAO,MAAM,CAAC,GAAe,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;YAE/E,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;YAE1B,iBAAiB,CAAC,YAAY,CAAC,CAAA;YAC/B,gBAAgB,CAAC;gBACf,OAAO,EAAE,yBAAyB;gBAClC,gBAAgB,EAAE,KAAK;gBACvB,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,WAAW,0BAAc,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM;aACzE,CAAC,CAAA;YACF,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;YACd,iBAAiB,CAAC,YAAY,CAAC,CAAA;YAC/B,gBAAgB,CAAC;gBACf,OAAO,EAAE,0CAA0C;gBACnD,OAAO,EAAE,OAAO;gBAChB,gBAAgB,EAAE,KAAK;aACxB,CAAC,CAAA;YACF,OAAO,IAAI,KAAK,CAAE,CAAW,CAAC,OAAO,CAAC,CAAA;SACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AAhDY,QAAA,UAAU,cAgDtB"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useTreasuryPropose.js b/dist/services/contracts/baseDAO/hooks/useTreasuryPropose.js deleted file mode 100644 index 437f8dc..0000000 --- a/dist/services/contracts/baseDAO/hooks/useTreasuryPropose.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useTreasuryPropose=void 0;const useNotification_1=require('../../../../modules/common/hooks/useNotification');const react_query_1=require('react-query');const useTezos_1=require('../../../beacon/hooks/useTezos');const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const bakingBad_1=require('../../../bakingBad');const useTreasuryPropose=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,connect,account}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(({dao,args})=>__awaiter(void 0,void 0,void 0,function*(){const {key:proposalNotification,closeSnackbar:closeProposalNotification}=openNotification({message:'Treasury proposal is being created...',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield dao.propose(args,tezosToolkit);mixpanel_browser_1.default.track('Proposal Created',{dao:dao.data.address,daoType:'Treasury'});yield data.confirmation(1);closeProposalNotification(proposalNotification);openNotification({message:'Treasury proposal transaction confirmed!',autoHideDuration:10000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){console.log(e);closeProposalNotification(proposalNotification);openNotification({message:'An error has happened with propose transaction!',variant:'error',autoHideDuration:10000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useTreasuryPropose=useTreasuryPropose; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useTreasuryPropose.js.map b/dist/services/contracts/baseDAO/hooks/useTreasuryPropose.js.map deleted file mode 100644 index b53b2d2..0000000 --- a/dist/services/contracts/baseDAO/hooks/useTreasuryPropose.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useTreasuryPropose.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useTreasuryPropose.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,0EAAsE;AACtE,6CAAyD;AACzD,6DAAyD;AAEzD,wEAAuC;AACvC,kDAAmD;AAG5C,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IACpC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA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ACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AAtDY,QAAA,kBAAkB,sBAsD9B"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useUnstakeFromAllProposals.js b/dist/services/contracts/baseDAO/hooks/useUnstakeFromAllProposals.js deleted file mode 100644 index 34c6b5e..0000000 --- a/dist/services/contracts/baseDAO/hooks/useUnstakeFromAllProposals.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.useUnstakeFromAllProposals=void 0;const useNotification_1=require('../../../../modules/common/hooks/useNotification');const react_query_1=require('react-query');const useTezos_1=require('../../../beacon/hooks/useTezos');const bakingBad_1=require('../../../bakingBad');const useUnstakeFromAllProposals=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(params=>__awaiter(void 0,void 0,void 0,function*(){const {key:unstakeNotification,closeSnackbar:closeFlushNotification}=openNotification({message:'Please sign the transaction to unstake tokens from all proposals',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield params.dao.unstakeFromAllProposals(params.allProposals,account,tezosToolkit);closeFlushNotification(unstakeNotification);yield data.confirmation(1);openNotification({message:'Execute transaction confirmed!',autoHideDuration:5000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){closeFlushNotification(unstakeNotification);openNotification({message:'An error has happened with unstake transaction!',variant:'error',autoHideDuration:5000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useUnstakeFromAllProposals=useUnstakeFromAllProposals; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useUnstakeFromAllProposals.js.map b/dist/services/contracts/baseDAO/hooks/useUnstakeFromAllProposals.js.map deleted file mode 100644 index d1b2019..0000000 --- a/dist/services/contracts/baseDAO/hooks/useUnstakeFromAllProposals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useUnstakeFromAllProposals.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useUnstakeFromAllProposals.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,6CAAyD;AACzD,6DAAyD;AAEzD,kDAAmD;AAE5C,MAAM,0BAA0B,GAAG,GAAG,EAAE;IAC7C,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IACpC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAEvD,OAAO,IAAA,yBAAW,EAChB,CAAM,MAAM,EAAC,EAAE;QACb,MAAM,EAAE,GAAG,EAAE,mBAAmB,EAAE,aAAa,EAAE,sBAAsB,EAAE,GAAG,gBAAgB,CAAC;YAC3F,OAAO,EAAE,kEAAkE;YAC3E,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,MAAM;SAChB,CAAC,CAAA;QACF,IAAI;YACF,IAAI,YAAY,GAAG,KAAK,CAAA;YAExB,IAAI,CAAC,OAAO,EAAE;gBACZ,YAAY,GAAG,MAAM,OAAO,EAAE,CAAA;aAC/B;YAED,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,EAAE,YAAY,CAAC,CAAA;YACjG,sBAAsB,CAAC,mBAAmB,CAAC,CAAA;YAE3C,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;YAC1B,gBAAgB,CAAC;gBACf,OAAO,EAAE,gCAAgC;gBACzC,gBAAgB,EAAE,IAAI;gBACtB,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,WAAW,0BAAc,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM;aACzE,CAAC,CAAA;YAEF,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,sBAAsB,CAAC,mBAAmB,CAAC,CAAA;YAC3C,gBAAgB,CAAC;gBACf,OAAO,EAAE,iDAAiD;gBAC1D,OAAO,EAAE,OAAO;gBAChB,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAA;YACF,OAAO,IAAI,KAAK,CAAE,CAAW,CAAC,OAAO,CAAC,CAAA;SACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AA/CY,QAAA,0BAA0B,8BA+CtC"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useUnstakeVotes.js b/dist/services/contracts/baseDAO/hooks/useUnstakeVotes.js deleted file mode 100644 index 100bacb..0000000 --- a/dist/services/contracts/baseDAO/hooks/useUnstakeVotes.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useUnstakeVotes=void 0;const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const useNotification_1=require('../../../../modules/common/hooks/useNotification');const react_query_1=require('react-query');const useTezos_1=require('../../../beacon/hooks/useTezos');const bakingBad_1=require('../../../bakingBad');const useUnstakeVotes=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(params=>__awaiter(void 0,void 0,void 0,function*(){const {key:freezeNotification,closeSnackbar:closeFreezeNotification}=openNotification({message:`Unstake is being processed...`,persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield params.dao.unstakeVotes(params.proposalId,tezosToolkit);mixpanel_browser_1.default.track(`Votes Unstaked`,{dao:params.dao.data.address,proposalId:params.proposalId});yield data.confirmation(1);closeFreezeNotification(freezeNotification);openNotification({message:`Unstake transaction confirmed!`,autoHideDuration:10000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){console.log(e);closeFreezeNotification(freezeNotification);openNotification({message:`An error has happened with unstake transaction!`,variant:'error',autoHideDuration:10000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useUnstakeVotes=useUnstakeVotes; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useUnstakeVotes.js.map b/dist/services/contracts/baseDAO/hooks/useUnstakeVotes.js.map deleted file mode 100644 index 31f907c..0000000 --- a/dist/services/contracts/baseDAO/hooks/useUnstakeVotes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useUnstakeVotes.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useUn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AAO,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM;aACzE,CAAC,CAAA;YACF,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;YACd,uBAAuB,CAAC,kBAAkB,CAAC,CAAA;YAC3C,gBAAgB,CAAC;gBACf,OAAO,EAAE,iDAAiD;gBAC1D,OAAO,EAAE,OAAO;gBAChB,gBAAgB,EAAE,KAAK;aACxB,CAAC,CAAA;YACF,OAAO,IAAI,KAAK,CAAE,CAAW,CAAC,OAAO,CAAC,CAAA;SACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AArDY,QAAA,eAAe,mBAqD3B"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useVote.js b/dist/services/contracts/baseDAO/hooks/useVote.js deleted file mode 100644 index 8fa8a8f..0000000 --- a/dist/services/contracts/baseDAO/hooks/useVote.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useVote=void 0;const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const useNotification_1=require('../../../../modules/common/hooks/useNotification');const react_query_1=require('react-query');const useTezos_1=require('../../../beacon/hooks/useTezos');const bakingBad_1=require('../../../bakingBad');const useVote=()=>{const queryClient=(0,react_query_1.useQueryClient)();const openNotification=(0,useNotification_1.useNotification)();const {network,tezos,account,connect}=(0,useTezos_1.useTezos)();return(0,react_query_1.useMutation)(params=>__awaiter(void 0,void 0,void 0,function*(){const {key:voteNotification,closeSnackbar:closeVoteNotification}=openNotification({message:'Vote is being created...',persist:true,variant:'info'});try{let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}const data=yield params.dao.vote({proposalKey:params.proposalKey,amount:params.amount,support:params.support,tezos:tezosToolkit});mixpanel_browser_1.default.track('Vote Created',{dao:params.dao.data.address,proposal:params.proposalKey,amount:params.amount,support:params.support});yield data.confirmation(1);closeVoteNotification(voteNotification);openNotification({message:'Vote transaction confirmed!',autoHideDuration:10000,variant:'success',detailsLink:`https://${bakingBad_1.networkNameMap[network]}.tzkt.io/`+data.opHash});return data;}catch(e){console.log(e);closeVoteNotification(voteNotification);openNotification({message:'An error has happened with vote transaction!',variant:'error',autoHideDuration:10000});return new Error(e.message);}}),{onSuccess:()=>{queryClient.resetQueries();}});};exports.useVote=useVote; \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/hooks/useVote.js.map b/dist/services/contracts/baseDAO/hooks/useVote.js.map deleted file mode 100644 index 8f511d0..0000000 --- a/dist/services/contracts/baseDAO/hooks/useVote.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useVote.js","sourceRoot":"","sources":["../../../../../src/services/contracts/baseDAO/hooks/useVote.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,wEAAuC;AACvC,0EAAsE;AACtE,6CAAyD;AACzD,6DAAyD;AAEzD,kDAAmD;AAS5C,MAAM,OAAO,GAAG,GAAG,EAAE;IAC1B,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IACpC,MAAM,gBAAgB,GAAG,IAAA,iCAAe,GAAE,CAAA;IAC1C,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,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;YACd,qBAAqB,CAAC,gBAAgB,CAAC,CAAA;YACvC,gBAAgB,CAAC;gBACf,OAAO,EAAE,8CAA8C;gBACvD,OAAO,EAAE,OAAO;gBAChB,gBAAgB,EAAE,KAAK;aACxB,CAAC,CAAA;YACF,OAAO,IAAI,KAAK,CAAE,CAAW,CAAC,OAAO,CAAC,CAAA;SACvC;IACH,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;AACH,CAAC,CAAA;AA5DY,QAAA,OAAO,WA4DnB"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/index.js b/dist/services/contracts/baseDAO/index.js index ad86acd..160d6fd 100644 --- a/dist/services/contracts/baseDAO/index.js +++ b/dist/services/contracts/baseDAO/index.js @@ -1 +1,21 @@ -'use strict';var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||('get'in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k];}};}Object.defineProperty(o,k2,desc);}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k];});var __exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)if(p!=='default'&&!Object.prototype.hasOwnProperty.call(exports,p))__createBinding(exports,m,p);};Object.defineProperty(exports,'__esModule',{value:true});__exportStar(require('./class'),exports);__exportStar(require('./types'),exports);__exportStar(require('./utils'),exports);__exportStar(require('./lambdaDAO'),exports); \ No newline at end of file +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./class"), exports); +__exportStar(require("./types"), exports); +__exportStar(require("./utils"), exports); +__exportStar(require("./lambdaDAO"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/lambdaDAO/index.js b/dist/services/contracts/baseDAO/lambdaDAO/index.js index e9bd4d5..8985ad4 100644 --- a/dist/services/contracts/baseDAO/lambdaDAO/index.js +++ b/dist/services/contracts/baseDAO/lambdaDAO/index.js @@ -1 +1,170 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.LambdaDAO=void 0;const michel_codec_1=require('@taquito/michel-codec');const michelson_encoder_1=require('@taquito/michelson-encoder');const __1=require('..');const tzip16_1=require('@taquito/tzip16');const proposelambda_1=__importDefault(require('./michelson/proposelambda'));const proposal_1=require('../../../services/dao/mappers/proposal');const bignumber_js_1=require('bignumber.js');const utils_1=require('../../utils');const transfer_proposal_type_json_1=__importDefault(require('./michelson/supported_lambda_types/transfer_proposal_type.json'));const transfer_proposal_type_before_fa1_2_json_1=__importDefault(require('./michelson/supported_lambda_types/transfer_proposal_type_before_fa1.2.json'));const update_contract_delegate_proposal_json_1=__importDefault(require('./michelson/supported_lambda_types/update_contract_delegate_proposal.json'));const update_guardian_proposal_json_1=__importDefault(require('./michelson/supported_lambda_types/update_guardian_proposal.json'));const config_1=require('../../../config');const parser=new michel_codec_1.Parser();const mapStorageRegistryList=listMichelsonString=>{const data=(0,michel_codec_1.unpackDataBytes)({bytes:listMichelsonString});return data.map(item=>({key:(0,tzip16_1.bytes2Char)(item.args[0].string),value:(0,tzip16_1.bytes2Char)(item.args[1].string)}));};const mapStorageRegistryAffectedList=listMichelsonString=>{const data=(0,michel_codec_1.unpackDataBytes)({bytes:listMichelsonString});return data.map(item=>({key:(0,tzip16_1.bytes2Char)(item.args[0].string),proposalId:item.args[1].bytes}));};class LambdaDAO extends __1.BaseDAO{constructor(data){super(data);this.data=data;this.propose=({agoraPostId,transfer_proposal},tezos)=>__awaiter(this,void 0,void 0,function*(){const contract=yield(0,__1.getContract)(tezos,this.data.address);const p=new michel_codec_1.Parser();const transfer_michelson=this.data.address===config_1.HUMANITEZ_DAO?transfer_proposal_type_before_fa1_2_json_1.default:transfer_proposal_type_json_1.default;const transfer_arg_schema=new michelson_encoder_1.Schema(transfer_michelson);const transfer_proposal_args={transfers:(0,proposal_1.mapTransfersArgs)(transfer_proposal.transfers,this.data.address),registry_diff:transfer_proposal.registry_diff.map(item=>[(0,tzip16_1.char2Bytes)(item.key),(0,tzip16_1.char2Bytes)(item.value)]),agora_post_id:agoraPostId};const packed_transfer_proposal_arg=(0,michel_codec_1.packDataBytes)(transfer_arg_schema.Encode(transfer_proposal_args));const proposal_meta_michelson_type=p.parseMichelineExpression(proposelambda_1.default);const proposal_meta_schema=new michelson_encoder_1.Schema(proposal_meta_michelson_type);const proposalMetadata=(0,michel_codec_1.packDataBytes)(proposal_meta_schema.Encode({execute_handler:{handler_name:'transfer_proposal',packed_argument:packed_transfer_proposal_arg.bytes}}),proposal_meta_michelson_type);const contractMethod=contract.methods.propose(yield tezos.wallet.pkh(),(0,utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value),this.data.token.decimals),proposalMetadata.bytes);return yield contractMethod.send();});this.decoded={decodedRegistry:mapStorageRegistryList(this.data.extra.registry),decodedRegistryAffected:mapStorageRegistryAffectedList(this.data.extra.registry_affected)};this.data.extra.returnedPercentage=new bignumber_js_1.BigNumber(100).minus(new bignumber_js_1.BigNumber(this.data.extra.slash_scale_value)).toString();this.liteDAOData=data.liteDAO;}proposeGuardianChange(newGuardianAddress,tezos){return __awaiter(this,void 0,void 0,function*(){const contract=yield(0,__1.getContract)(tezos,this.data.address);const p=new michel_codec_1.Parser();const update_guardian_arg_schema=new michelson_encoder_1.Schema(update_guardian_proposal_json_1.default);const packed_transfer_proposal_arg=(0,michel_codec_1.packDataBytes)(update_guardian_arg_schema.Encode(newGuardianAddress));const proposal_meta_michelson_type=p.parseMichelineExpression(proposelambda_1.default);const proposal_meta_schema=new michelson_encoder_1.Schema(proposal_meta_michelson_type);const proposalMetadata=(0,michel_codec_1.packDataBytes)(proposal_meta_schema.Encode({execute_handler:{handler_name:'update_guardian_proposal',packed_argument:packed_transfer_proposal_arg.bytes}}),proposal_meta_michelson_type);const contractMethod=contract.methods.propose(yield tezos.wallet.pkh(),(0,utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value),this.data.token.decimals),proposalMetadata.bytes);return yield contractMethod.send();});}proposeDelegationChange(newDelegationAddress,tezos){return __awaiter(this,void 0,void 0,function*(){const contract=yield(0,__1.getContract)(tezos,this.data.address);const p=new michel_codec_1.Parser();const transfer_arg_schema=new michelson_encoder_1.Schema(update_contract_delegate_proposal_json_1.default);const packed_transfer_proposal_arg=(0,michel_codec_1.packDataBytes)(transfer_arg_schema.Encode(newDelegationAddress));const proposal_meta_michelson_type=p.parseMichelineExpression(proposelambda_1.default);const proposal_meta_schema=new michelson_encoder_1.Schema(proposal_meta_michelson_type);const proposalMetadata=(0,michel_codec_1.packDataBytes)(proposal_meta_schema.Encode({execute_handler:{handler_name:'update_contract_delegate_proposal',packed_argument:packed_transfer_proposal_arg.bytes}}),proposal_meta_michelson_type);const contractMethod=contract.methods.propose(yield tezos.wallet.pkh(),(0,utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value),this.data.token.decimals),proposalMetadata.bytes);return yield contractMethod.send();});}proposeLambdaExecute({handler_name,agoraPostId,handler_code,handler_params,lambda_arguments},tezos){return __awaiter(this,void 0,void 0,function*(){const contract=yield(0,__1.getContract)(tezos,this.data.address);const p=new michel_codec_1.Parser();const transfer_arg_type=JSON.parse(lambda_arguments);const transfer_arg_schema=new michelson_encoder_1.Schema(transfer_arg_type);const handler_params_object=JSON.parse(handler_params);const packed_transfer_proposal_arg=(0,michel_codec_1.packDataBytes)(transfer_arg_schema.Encode(handler_params_object));const proposal_meta_michelson_type=p.parseMichelineExpression(proposelambda_1.default);const proposal_meta_schema=new michelson_encoder_1.Schema(proposal_meta_michelson_type);const proposalMetadata=(0,michel_codec_1.packDataBytes)(proposal_meta_schema.Encode({execute_handler:{handler_name,packed_argument:packed_transfer_proposal_arg.bytes}}),proposal_meta_michelson_type);const contractMethod=contract.methods.propose(yield tezos.wallet.pkh(),(0,utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value),this.data.token.decimals),proposalMetadata.bytes);return yield contractMethod.send();});}proposeLambdaAdd({data},tezos){return __awaiter(this,void 0,void 0,function*(){const contract=yield(0,__1.getContract)(tezos,this.data.address);const proposalMetadata=yield __1.BaseDAO.encodeLambdaAddMetadata(data,proposelambda_1.default,tezos);const contractMethod=contract.methods.propose(yield tezos.wallet.pkh(),(0,utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value),this.data.token.decimals),proposalMetadata.bytes);return yield contractMethod.send();});}proposeLambdaRemove({handler_name},tezos){return __awaiter(this,void 0,void 0,function*(){const contract=yield(0,__1.getContract)(tezos,this.data.address);const michelsonType=parser.parseData(proposelambda_1.default);const schema=new michelson_encoder_1.Schema(michelsonType);const dataToEncode={remove_handler:handler_name};const data=schema.Encode(dataToEncode);const {packed:proposalMetadata}=yield tezos.rpc.packData({data,type:michelsonType});const contractMethod=contract.methods.propose(yield tezos.wallet.pkh(),(0,utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value),this.data.token.decimals),proposalMetadata);return yield contractMethod.send();});}}exports.LambdaDAO=LambdaDAO; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LambdaDAO = void 0; +const michel_codec_1 = require("@taquito/michel-codec"); +const michelson_encoder_1 = require("@taquito/michelson-encoder"); +const __1 = require("../../../.."); +const tzip16_1 = require("@taquito/tzip16"); +const proposelambda_1 = __importDefault(require("./michelson/proposelambda")); +const proposal_1 = require("../../../services/dao/mappers/proposal"); +const bignumber_js_1 = require("bignumber.js"); +const utils_1 = require("../../utils"); +const transfer_proposal_type_json_1 = __importDefault(require("./michelson/supported_lambda_types/transfer_proposal_type.json")); +const transfer_proposal_type_before_fa1_2_json_1 = __importDefault(require("./michelson/supported_lambda_types/transfer_proposal_type_before_fa1.2.json")); +const update_contract_delegate_proposal_json_1 = __importDefault(require("./michelson/supported_lambda_types/update_contract_delegate_proposal.json")); +const update_guardian_proposal_json_1 = __importDefault(require("./michelson/supported_lambda_types/update_guardian_proposal.json")); +const config_1 = require("../../../config"); +const parser = new michel_codec_1.Parser(); +const mapStorageRegistryList = (listMichelsonString) => { + const data = (0, michel_codec_1.unpackDataBytes)({ + bytes: listMichelsonString + }); + return data.map(item => ({ + key: (0, tzip16_1.bytes2Char)(item.args[0].string), + value: (0, tzip16_1.bytes2Char)(item.args[1].string) + })); +}; +const mapStorageRegistryAffectedList = (listMichelsonString) => { + const data = (0, michel_codec_1.unpackDataBytes)({ + bytes: listMichelsonString + }); + return data.map(item => ({ + key: (0, tzip16_1.bytes2Char)(item.args[0].string), + proposalId: item.args[1].bytes + })); +}; +class LambdaDAO extends __1.BaseDAO { + constructor(data) { + super(data); + this.data = data; + this.propose = ({ agoraPostId, transfer_proposal }, tezos) => __awaiter(this, void 0, void 0, function* () { + const contract = yield (0, __1.getContract)(tezos, this.data.address); + const p = new michel_codec_1.Parser(); + const transfer_michelson = this.data.address === config_1.HUMANITEZ_DAO ? transfer_proposal_type_before_fa1_2_json_1.default : transfer_proposal_type_json_1.default; + const transfer_arg_schema = new michelson_encoder_1.Schema(transfer_michelson); + const transfer_proposal_args = { + transfers: (0, proposal_1.mapTransfersArgs)(transfer_proposal.transfers, this.data.address), + registry_diff: transfer_proposal.registry_diff.map(item => [(0, tzip16_1.char2Bytes)(item.key), (0, tzip16_1.char2Bytes)(item.value)]), + agora_post_id: agoraPostId + }; + const packed_transfer_proposal_arg = (0, michel_codec_1.packDataBytes)(transfer_arg_schema.Encode(transfer_proposal_args) // as MichelsonData + ); + const proposal_meta_michelson_type = p.parseMichelineExpression(proposelambda_1.default); + const proposal_meta_schema = new michelson_encoder_1.Schema(proposal_meta_michelson_type); + const proposalMetadata = (0, michel_codec_1.packDataBytes)(proposal_meta_schema.Encode({ + execute_handler: { + handler_name: "transfer_proposal", + packed_argument: packed_transfer_proposal_arg.bytes + } + }), proposal_meta_michelson_type); + const contractMethod = contract.methods.propose(yield tezos.wallet.pkh(), (0, utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value), this.data.token.decimals), proposalMetadata.bytes); + return yield contractMethod.send(); + }); + this.decoded = { + decodedRegistry: mapStorageRegistryList(this.data.extra.registry), + decodedRegistryAffected: mapStorageRegistryAffectedList(this.data.extra.registry_affected) + }; + this.data.extra.returnedPercentage = new bignumber_js_1.BigNumber(100) + .minus(new bignumber_js_1.BigNumber(this.data.extra.slash_scale_value)) + .toString(); + this.liteDAOData = data.liteDAO; + } + proposeGuardianChange(newGuardianAddress, tezos) { + return __awaiter(this, void 0, void 0, function* () { + const contract = yield (0, __1.getContract)(tezos, this.data.address); + const p = new michel_codec_1.Parser(); + const update_guardian_arg_schema = new michelson_encoder_1.Schema(update_guardian_proposal_json_1.default); + const packed_transfer_proposal_arg = (0, michel_codec_1.packDataBytes)(update_guardian_arg_schema.Encode(newGuardianAddress) // as MichelsonData + ); + const proposal_meta_michelson_type = p.parseMichelineExpression(proposelambda_1.default); + const proposal_meta_schema = new michelson_encoder_1.Schema(proposal_meta_michelson_type); + const proposalMetadata = (0, michel_codec_1.packDataBytes)(proposal_meta_schema.Encode({ + execute_handler: { + handler_name: "update_guardian_proposal", + packed_argument: packed_transfer_proposal_arg.bytes + } + }), proposal_meta_michelson_type); + const contractMethod = contract.methods.propose(yield tezos.wallet.pkh(), (0, utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value), this.data.token.decimals), proposalMetadata.bytes); + return yield contractMethod.send(); + }); + } + proposeDelegationChange(newDelegationAddress, tezos) { + return __awaiter(this, void 0, void 0, function* () { + const contract = yield (0, __1.getContract)(tezos, this.data.address); + const p = new michel_codec_1.Parser(); + const transfer_arg_schema = new michelson_encoder_1.Schema(update_contract_delegate_proposal_json_1.default); + const packed_transfer_proposal_arg = (0, michel_codec_1.packDataBytes)(transfer_arg_schema.Encode(newDelegationAddress) // as MichelsonData + ); + const proposal_meta_michelson_type = p.parseMichelineExpression(proposelambda_1.default); + const proposal_meta_schema = new michelson_encoder_1.Schema(proposal_meta_michelson_type); + const proposalMetadata = (0, michel_codec_1.packDataBytes)(proposal_meta_schema.Encode({ + execute_handler: { + handler_name: "update_contract_delegate_proposal", + packed_argument: packed_transfer_proposal_arg.bytes + } + }), proposal_meta_michelson_type); + const contractMethod = contract.methods.propose(yield tezos.wallet.pkh(), (0, utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value), this.data.token.decimals), proposalMetadata.bytes); + return yield contractMethod.send(); + }); + } + proposeLambdaExecute({ handler_name, agoraPostId, handler_code, handler_params, lambda_arguments }, tezos) { + return __awaiter(this, void 0, void 0, function* () { + const contract = yield (0, __1.getContract)(tezos, this.data.address); + const p = new michel_codec_1.Parser(); + const transfer_arg_type = JSON.parse(lambda_arguments); + const transfer_arg_schema = new michelson_encoder_1.Schema(transfer_arg_type); + const handler_params_object = JSON.parse(handler_params); + const packed_transfer_proposal_arg = (0, michel_codec_1.packDataBytes)(transfer_arg_schema.Encode(handler_params_object) // as MichelsonData + ); + const proposal_meta_michelson_type = p.parseMichelineExpression(proposelambda_1.default); + const proposal_meta_schema = new michelson_encoder_1.Schema(proposal_meta_michelson_type); + const proposalMetadata = (0, michel_codec_1.packDataBytes)(proposal_meta_schema.Encode({ + execute_handler: { + handler_name, + packed_argument: packed_transfer_proposal_arg.bytes + } + }), proposal_meta_michelson_type); + const contractMethod = contract.methods.propose(yield tezos.wallet.pkh(), (0, utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value), this.data.token.decimals), proposalMetadata.bytes); + return yield contractMethod.send(); + }); + } + proposeLambdaAdd({ data }, tezos) { + return __awaiter(this, void 0, void 0, function* () { + const contract = yield (0, __1.getContract)(tezos, this.data.address); + const proposalMetadata = yield __1.BaseDAO.encodeLambdaAddMetadata(data, proposelambda_1.default, tezos); + const contractMethod = contract.methods.propose(yield tezos.wallet.pkh(), (0, utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value), this.data.token.decimals), proposalMetadata.bytes); + return yield contractMethod.send(); + }); + } + proposeLambdaRemove({ handler_name }, tezos) { + return __awaiter(this, void 0, void 0, function* () { + const contract = yield (0, __1.getContract)(tezos, this.data.address); + const michelsonType = parser.parseData(proposelambda_1.default); + const schema = new michelson_encoder_1.Schema(michelsonType); + const dataToEncode = { + remove_handler: handler_name + }; + const data = schema.Encode(dataToEncode); + const { packed: proposalMetadata } = yield tezos.rpc.packData({ + data, + type: michelsonType + }); + const contractMethod = contract.methods.propose(yield tezos.wallet.pkh(), (0, utils_1.formatUnits)(new bignumber_js_1.BigNumber(this.data.extra.frozen_extra_value), this.data.token.decimals), proposalMetadata); + return yield contractMethod.send(); + }); + } +} +exports.LambdaDAO = LambdaDAO; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/lambdaDAO/michelson/propose.js b/dist/services/contracts/baseDAO/lambdaDAO/michelson/propose.js index dc9f17f..7ab569a 100644 --- a/dist/services/contracts/baseDAO/lambdaDAO/michelson/propose.js +++ b/dist/services/contracts/baseDAO/lambdaDAO/michelson/propose.js @@ -1,4 +1,6 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.default=`(or (or (or (pair %configuration_proposal +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = `(or (or (or (pair %configuration_proposal (pair (pair (option %frozen_extra_value nat) (option %frozen_scale_value nat)) (pair (option %max_proposal_size nat) (option %slash_division_value nat))) (option %slash_scale_value nat)) @@ -14,4 +16,5 @@ (or (option %update_contract_delegate key_hash) (address %update_guardian))) (or %update_receivers_proposal (list %add_receivers address) - (list %remove_receivers address)))`; \ No newline at end of file + (list %remove_receivers address)))`; +//# sourceMappingURL=propose.js.map \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/lambdaDAO/michelson/proposelambda.js b/dist/services/contracts/baseDAO/lambdaDAO/michelson/proposelambda.js index 34608b7..a162a03 100644 --- a/dist/services/contracts/baseDAO/lambdaDAO/michelson/proposelambda.js +++ b/dist/services/contracts/baseDAO/lambdaDAO/michelson/proposelambda.js @@ -1,4 +1,6 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.default=`(or (or (pair %add_handler +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = `(or (or (pair %add_handler (pair (lambda %code (pair (pair (map %handler_storage string bytes) (bytes %packed_argument)) (pair %proposal_info @@ -10,4 +12,5 @@ (lambda %handler_check (pair bytes (map string bytes)) unit)) (string %name)) (pair %execute_handler (string %handler_name) (bytes %packed_argument))) - (string %remove_handler))`; \ No newline at end of file + (string %remove_handler))`; +//# sourceMappingURL=proposelambda.js.map \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/lambdaDAO/types.js b/dist/services/contracts/baseDAO/lambdaDAO/types.js index fa85c5c..11e638d 100644 --- a/dist/services/contracts/baseDAO/lambdaDAO/types.js +++ b/dist/services/contracts/baseDAO/lambdaDAO/types.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/michelson/baseDAO.js b/dist/services/contracts/baseDAO/michelson/baseDAO.js index 67e9e99..23e056b 100644 --- a/dist/services/contracts/baseDAO/michelson/baseDAO.js +++ b/dist/services/contracts/baseDAO/michelson/baseDAO.js @@ -1,4 +1,6 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.default=`parameter +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = `parameter (or (or (or (or (unit %accept_ownership) (pair %callCustom string bytes)) (or (unit %default) (pair %propose (address %from) (pair (nat %frozen_token) (bytes %proposal_metadata))))) @@ -2426,4 +2428,5 @@ code { PUSH nat 1000000 ; PAIR ; SWAP ; PAIR } -`; \ No newline at end of file +`; +//# sourceMappingURL=baseDAO.js.map \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/michelson/lambdaDAO.js b/dist/services/contracts/baseDAO/michelson/lambdaDAO.js index 39f71d2..6659c2c 100644 --- a/dist/services/contracts/baseDAO/michelson/lambdaDAO.js +++ b/dist/services/contracts/baseDAO/michelson/lambdaDAO.js @@ -1,4 +1,6 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.default=`parameter +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = `parameter (or (or (or (or (or (unit %accept_ownership) (unit %default)) (or (pair %propose (address %from) (nat %frozen_token) (bytes %proposal_metadata)) (pair %transfer_contract_tokens @@ -2935,4 +2937,5 @@ code { LAMBDA DROP 4 } ; SWAP ; PAIR } } } } -`; \ No newline at end of file +`; +//# sourceMappingURL=lambdaDAO.js.map \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/state.js b/dist/services/contracts/baseDAO/state.js new file mode 100644 index 0000000..34ab654 --- /dev/null +++ b/dist/services/contracts/baseDAO/state.js @@ -0,0 +1,77 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActionTypes = exports.StepperIndex = exports.Token = void 0; +const bignumber_js_1 = __importDefault(require("bignumber.js")); +class Token { + constructor(params) { + this.id = params.id; + this.contract = params.contract; + this.token_id = params.token_id; + this.symbol = params.symbol; + this.name = params.name; + this.decimals = params.decimals; + this.network = params.network; + this.supply = new bignumber_js_1.default(params.supply); + this.standard = params.standard ? params.standard : ""; + } +} +exports.Token = Token; +var StepperIndex; +(function (StepperIndex) { + StepperIndex[StepperIndex["SELECT_TEMPLATE"] = 0] = "SELECT_TEMPLATE"; + StepperIndex[StepperIndex["CONFIGURE_TEMPLATE"] = 1] = "CONFIGURE_TEMPLATE"; + StepperIndex[StepperIndex["REVIEW_INFORMATION"] = 2] = "REVIEW_INFORMATION"; + StepperIndex[StepperIndex["LAUNCH_ORGANIZATION"] = 3] = "LAUNCH_ORGANIZATION"; +})(StepperIndex || (exports.StepperIndex = StepperIndex = {})); +function updateNavigationBar(props) { + return Object.assign({ type: ActionTypes.UPDATE_NAVIGATION_BAR }, props); +} +function updateOrgSettings(org) { + return { + type: ActionTypes.UPDATE_ORGANIZATION_SETTINGS, + org + }; +} +function updateVotingSettings(voting) { + return { + type: ActionTypes.UPDATE_VOTING_SETTINGS, + voting + }; +} +function updateTemplate(template) { + return { + type: ActionTypes.UPDATE_TEMPLATE, + template + }; +} +function updateQuorumSettings(quorum) { + return { + type: ActionTypes.UPDATE_QUORUM_SETTINGS, + quorum + }; +} +function updateDeploymentStatus({ deploying, contract }) { + return { + type: ActionTypes.UPDATE_DEPLOYMENT_STATUS, + status: { deploying, contract } + }; +} +function clearCache() { + return { + type: ActionTypes.CLEAR_CACHE + }; +} +var ActionTypes; +(function (ActionTypes) { + ActionTypes["UPDATE_NAVIGATION_BAR"] = "UPDATE_NAVIGATION_BAR"; + ActionTypes["UPDATE_VOTING_SETTINGS"] = "UPDATE_VOTING_SETTINGS"; + ActionTypes["UPDATE_TEMPLATE"] = "UPDATE_TEMPLATE"; + ActionTypes["UPDATE_QUORUM_SETTINGS"] = "UPDATE_QUORUM_SETTINGS"; + ActionTypes["UPDATE_ORGANIZATION_SETTINGS"] = "UPDATE_ORGANIZATION_SETTINGS"; + ActionTypes["UPDATE_DEPLOYMENT_STATUS"] = "UPDATE_DEPLOYMENT_STATUS"; + ActionTypes["CLEAR_CACHE"] = "CLEAR_CACHE"; +})(ActionTypes || (exports.ActionTypes = ActionTypes = {})); +//# sourceMappingURL=state.js.map \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/state.js.map b/dist/services/contracts/baseDAO/state.js.map new file mode 100644 index 0000000..8849196 --- /dev/null +++ b/dist/services/contracts/baseDAO/state.js.map @@ -0,0 +1 @@ +{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/services/contracts/baseDAO/state.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAoC;AAepC,MAAa,KAAK;IAWhB,YAAY,MAAmB;QAC7B,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,CAAA;QACnB,IAAI,CAAC,QAAQ,G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,WAAW,CAAC,sBAAsB;QACxC,MAAM;KACP,CAAA;AACH,CAAC;AAED,SAAS,sBAAsB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAoB;IACvE,OAAc;QACZ,IAAI,EAAE,WAAW,CAAC,wBAAwB;QAC1C,MAAM,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE;KAChC,CAAA;AACH,CAAC;AAED,SAAS,UAAU;IACjB,OAAc;QACZ,IAAI,EAAE,WAAW,CAAC,WAAW;KAC9B,CAAA;AACH,CAAC;AAYD,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,8DAA+C,CAAA;IAC/C,gEAAiD,CAAA;IACjD,kDAAmC,CAAA;IACnC,gEAAiD,CAAA;IACjD,4EAA6D,CAAA;IAC7D,oEAAqD,CAAA;IACrD,0CAA2B,CAAA;AAC7B,CAAC,EARW,WAAW,2BAAX,WAAW,QAQtB"} \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/types.js b/dist/services/contracts/baseDAO/types.js index fa85c5c..11e638d 100644 --- a/dist/services/contracts/baseDAO/types.js +++ b/dist/services/contracts/baseDAO/types.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/services/contracts/baseDAO/utils.js b/dist/services/contracts/baseDAO/utils.js index 2edd754..10ceff9 100644 --- a/dist/services/contracts/baseDAO/utils.js +++ b/dist/services/contracts/baseDAO/utils.js @@ -1 +1,70 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.unpackExtraNumValue=exports.calculateCycleInfo=exports.getContract=exports.fromStateToBaseStorage=void 0;const tzip16_1=require('@taquito/tzip16');const bignumber_js_1=require('bignumber.js');const dayjs_1=__importDefault(require('dayjs'));const michel_codec_1=require('@taquito/michel-codec');const isBetween_1=__importDefault(require('dayjs/plugin/isBetween'));dayjs_1.default.extend(isBetween_1.default);const fromStateToBaseStorage=info=>{const proposalFlush=2*info.votingSettings.votingBlocks+info.votingSettings.proposalFlushBlocks;const expiryPeriod=proposalFlush+info.votingSettings.proposalExpiryBlocks;return{adminAddress:info.orgSettings.administrator||'',governanceToken:{address:info.orgSettings.governanceToken.address,tokenId:info.orgSettings.governanceToken.tokenId},guardian:info.orgSettings.guardian,extra:{frozenExtraValue:new bignumber_js_1.BigNumber(info.votingSettings.proposeStakeRequired),slashScaleValue:new bignumber_js_1.BigNumber(100-info.votingSettings.returnedTokenPercentage),minXtzAmount:new bignumber_js_1.BigNumber(info.votingSettings.minXtzAmount),maxXtzAmount:new bignumber_js_1.BigNumber(info.votingSettings.maxXtzAmount||0)},quorumThreshold:new bignumber_js_1.BigNumber(info.quorumSettings.quorumThreshold),votingPeriod:info.votingSettings.votingBlocks||0,minQuorumAmount:new bignumber_js_1.BigNumber(info.quorumSettings.minQuorumAmount),maxQuorumAmount:new bignumber_js_1.BigNumber(info.quorumSettings.maxQuorumAmount),quorumChange:info.quorumSettings.quorumChange,quorumMaxChange:info.quorumSettings.quorumMaxChange,proposalFlushPeriod:proposalFlush,proposalExpiryPeriod:expiryPeriod};};exports.fromStateToBaseStorage=fromStateToBaseStorage;const getContract=(tezos,contractAddress)=>__awaiter(void 0,void 0,void 0,function*(){return yield tezos.wallet.at(contractAddress,tzip16_1.tzip16);});exports.getContract=getContract;const calculateCycleInfo=(originationTime,votingPeriod)=>{const current=(0,dayjs_1.default)().unix()-(0,dayjs_1.default)(originationTime).unix();const periodLeftPercentage=current/votingPeriod%1;const timeLeftPercentage=votingPeriod*periodLeftPercentage;const time=votingPeriod-Number(timeLeftPercentage.toFixed());const currentPeriodNumber=Math.floor(current/votingPeriod);return{time:Number(time),current:currentPeriodNumber,type:currentPeriodNumber%2===0?'voting':'proposing'};};exports.calculateCycleInfo=calculateCycleInfo;const unpackExtraNumValue=bytes=>{return new bignumber_js_1.BigNumber((0,michel_codec_1.unpackDataBytes)({bytes}).int);};exports.unpackExtraNumValue=unpackExtraNumValue; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.unpackExtraNumValue = exports.calculateCycleInfo = exports.getContract = exports.fromStateToBaseStorage = void 0; +const tzip16_1 = require("@taquito/tzip16"); +const bignumber_js_1 = require("bignumber.js"); +const dayjs_1 = __importDefault(require("dayjs")); +const michel_codec_1 = require("@taquito/michel-codec"); +const isBetween_1 = __importDefault(require("dayjs/plugin/isBetween")); +dayjs_1.default.extend(isBetween_1.default); +const fromStateToBaseStorage = (info) => { + const proposalFlush = 2 * info.votingSettings.votingBlocks + info.votingSettings.proposalFlushBlocks; + const expiryPeriod = proposalFlush + info.votingSettings.proposalExpiryBlocks; + return { + adminAddress: info.orgSettings.administrator || "", + governanceToken: { + address: info.orgSettings.governanceToken.address, + tokenId: info.orgSettings.governanceToken.tokenId + }, + guardian: info.orgSettings.guardian, + extra: { + frozenExtraValue: new bignumber_js_1.BigNumber(info.votingSettings.proposeStakeRequired), + slashScaleValue: new bignumber_js_1.BigNumber(100 - info.votingSettings.returnedTokenPercentage), + minXtzAmount: new bignumber_js_1.BigNumber(info.votingSettings.minXtzAmount), + maxXtzAmount: new bignumber_js_1.BigNumber(info.votingSettings.maxXtzAmount || 0) + }, + quorumThreshold: new bignumber_js_1.BigNumber(info.quorumSettings.quorumThreshold), + votingPeriod: info.votingSettings.votingBlocks || 0, + minQuorumAmount: new bignumber_js_1.BigNumber(info.quorumSettings.minQuorumAmount), + maxQuorumAmount: new bignumber_js_1.BigNumber(info.quorumSettings.maxQuorumAmount), + quorumChange: info.quorumSettings.quorumChange, + quorumMaxChange: info.quorumSettings.quorumMaxChange, + proposalFlushPeriod: proposalFlush, + proposalExpiryPeriod: expiryPeriod + }; +}; +exports.fromStateToBaseStorage = fromStateToBaseStorage; +const getContract = (tezos, contractAddress) => __awaiter(void 0, void 0, void 0, function* () { + return yield tezos.wallet.at(contractAddress, tzip16_1.tzip16); +}); +exports.getContract = getContract; +const calculateCycleInfo = (originationTime, votingPeriod) => { + const current = (0, dayjs_1.default)().unix() - (0, dayjs_1.default)(originationTime).unix(); + const periodLeftPercentage = (current / votingPeriod) % 1; + const timeLeftPercentage = votingPeriod * periodLeftPercentage; + const time = votingPeriod - Number(timeLeftPercentage.toFixed()); + const currentPeriodNumber = Math.floor(current / votingPeriod); + return { + time: Number(time), + current: currentPeriodNumber, + type: currentPeriodNumber % 2 === 0 ? "voting" : "proposing" + }; +}; +exports.calculateCycleInfo = calculateCycleInfo; +const unpackExtraNumValue = (bytes) => { + return new bignumber_js_1.BigNumber((0, michel_codec_1.unpackDataBytes)({ bytes }).int); +}; +exports.unpackExtraNumValue = unpackExtraNumValue; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/services/contracts/metadataCarrier/code.js b/dist/services/contracts/metadataCarrier/code.js index 0c16927..b9a77fb 100644 --- a/dist/services/contracts/metadataCarrier/code.js +++ b/dist/services/contracts/metadataCarrier/code.js @@ -1,4 +1,7 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.code=void 0;exports.code=`parameter unit; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.code = void 0; +exports.code = `parameter unit; storage (pair (big_map %metadata string bytes) (unit %dummy)); @@ -6,4 +9,5 @@ code { CAR; UNIT; PUSH string "EmptySupplied"; PAIR; - FAILWITH };`; \ No newline at end of file + FAILWITH };`; +//# sourceMappingURL=code.js.map \ No newline at end of file diff --git a/dist/services/contracts/metadataCarrier/deploy.js b/dist/services/contracts/metadataCarrier/deploy.js index 5678b5f..55c8816 100644 --- a/dist/services/contracts/metadataCarrier/deploy.js +++ b/dist/services/contracts/metadataCarrier/deploy.js @@ -1 +1,55 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.deployMetadataCarrier=void 0;const taquito_1=require('@taquito/taquito');const tzip16_1=require('@taquito/tzip16');const code_1=require('./code');const metadata_1=require('./metadata');const setMetadataMap=(keyName,metadata)=>{const map=new taquito_1.MichelsonMap();const json=(0,metadata_1.setMetadataJSON)(metadata);map.set(keyName,(0,tzip16_1.char2Bytes)(JSON.stringify(json)));return map;};const deployMetadataCarrier=({keyName,metadata,tezos})=>__awaiter(void 0,void 0,void 0,function*(){const metadataMap=setMetadataMap(keyName,metadata);try{console.log('Originating Metadata Carrier contract...');const t=tezos.wallet.originate({code:code_1.code,storage:{metadata:metadataMap}});console.log('Waiting for confirmation on Metadata Carrier contract...',t);const c=yield t.send();const contract=yield c.contract();console.log('Metadata Carrier deployment completed',c);return{contract,keyName,deployAddress:contract.address};}catch(e){if(e.name==='UnconfiguredSignerError'){}if(e instanceof Error){const error=e;console.log(error.name+': '+error.message+'\n'+error.stack);}else{console.log(e);}}});exports.deployMetadataCarrier=deployMetadataCarrier; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.deployMetadataCarrier = void 0; +const taquito_1 = require("@taquito/taquito"); +const tzip16_1 = require("@taquito/tzip16"); +const code_1 = require("./code"); +const metadata_1 = require("./metadata"); +const setMetadataMap = (keyName, metadata) => { + const map = new taquito_1.MichelsonMap(); + const json = (0, metadata_1.setMetadataJSON)(metadata); + map.set(keyName, (0, tzip16_1.char2Bytes)(JSON.stringify(json))); + return map; +}; +const deployMetadataCarrier = ({ keyName, metadata, tezos }) => __awaiter(void 0, void 0, void 0, function* () { + const metadataMap = setMetadataMap(keyName, metadata); + try { + console.log("Originating Metadata Carrier contract..."); + const t = tezos.wallet.originate({ + code: code_1.code, + storage: { + metadata: metadataMap + } + }); + console.log("Waiting for confirmation on Metadata Carrier contract...", t); + const c = yield t.send(); + const contract = yield c.contract(); + console.log("Metadata Carrier deployment completed", c); + return { contract, keyName, deployAddress: contract.address }; + } + catch (e) { + // This should be handled above! + if (e.name === "UnconfiguredSignerError") { + // If this happens its because the user is not connected to any wallet + // Let's connect to a wallet provider and trigger the deployment method again + } + if (e instanceof Error) { + const error = e; + console.log(error.name + ": " + error.message + "\n" + error.stack); + } + else { + console.log(e); + } + } +}); +exports.deployMetadataCarrier = deployMetadataCarrier; +//# sourceMappingURL=deploy.js.map \ No newline at end of file diff --git a/dist/services/contracts/metadataCarrier/index.js b/dist/services/contracts/metadataCarrier/index.js index 44d1ff8..ef3d49c 100644 --- a/dist/services/contracts/metadataCarrier/index.js +++ b/dist/services/contracts/metadataCarrier/index.js @@ -1 +1,34 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};Object.defineProperty(exports,'__esModule',{value:true});exports.getDAOListMetadata=void 0;const tzip16_1=require('@taquito/tzip16');const baseDAO_1=require('../baseDAO');const getDAOListMetadata=(contractAddress,tezos)=>__awaiter(void 0,void 0,void 0,function*(){const contract=yield(0,baseDAO_1.getContract)(tezos,contractAddress);const metadata=yield contract.tzip16().getMetadata();const views=yield contract.tzip16().metadataViews();const {1:fa2Map}=yield views.token_metadata().executeView(0);return{address:contractAddress,authors:metadata.metadata.authors||[],name:metadata.metadata.name||'',description:metadata.metadata.description||'',template:metadata.metadata.template,unfrozenToken:{symbol:(0,tzip16_1.bytes2Char)(fa2Map.get('symbol')),name:(0,tzip16_1.bytes2Char)(fa2Map.get('name')),decimals:(0,tzip16_1.bytes2Char)(fa2Map.get('decimals'))}};});exports.getDAOListMetadata=getDAOListMetadata; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getDAOListMetadata = void 0; +const tzip16_1 = require("@taquito/tzip16"); +const baseDAO_1 = require("../baseDAO"); +const getDAOListMetadata = (contractAddress, tezos) => __awaiter(void 0, void 0, void 0, function* () { + const contract = yield (0, baseDAO_1.getContract)(tezos, contractAddress); + const metadata = yield contract.tzip16().getMetadata(); + const views = yield contract.tzip16().metadataViews(); + const { 1: fa2Map } = yield views.token_metadata().executeView(0); + return { + address: contractAddress, + authors: metadata.metadata.authors || [], + name: metadata.metadata.name || "", + description: metadata.metadata.description || "", + template: metadata.metadata.template, + unfrozenToken: { + symbol: (0, tzip16_1.bytes2Char)(fa2Map.get("symbol")), + name: (0, tzip16_1.bytes2Char)(fa2Map.get("name")), + decimals: (0, tzip16_1.bytes2Char)(fa2Map.get("decimals")) + } + }; +}); +exports.getDAOListMetadata = getDAOListMetadata; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/contracts/metadataCarrier/metadata.js b/dist/services/contracts/metadataCarrier/metadata.js index 7147f93..34766fa 100644 --- a/dist/services/contracts/metadataCarrier/metadata.js +++ b/dist/services/contracts/metadataCarrier/metadata.js @@ -1 +1,580 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.setMetadataJSON=void 0;const utils_1=require('../utils');const setMetadataJSON=({description,authors,template,frozenToken:{name:fName,symbol:fSymbol,decimals:fDecimals},unfrozenToken:{name:uName,symbol:uSymbol,decimals:uDecimals}})=>({homepage:'https://github.com/tqtezos/baseDAO',name:uName,description,authors,template,interfaces:['TZIP-12','TZIP-17'],views:[{implementations:[{michelsonStorageView:{returnType:{prim:'nat'},code:[{prim:'DUP'},{prim:'CAR'},{args:[[{prim:'CDR'},{prim:'CAR'},{prim:'CAR'},{prim:'CAR'}]],prim:'DIP'},{prim:'GET'},{args:[[{args:[{prim:'nat'},{int:'0'}],prim:'PUSH'}],[]],prim:'IF_NONE'}],parameter:{args:[{prim:'address',annots:['%owner']},{prim:'nat',annots:['%token_id']}],prim:'pair'}}}],name:'get_balance',pure:true,description:'Get balance of an address according to TZIP-12.'},{implementations:[{michelsonStorageView:{returnType:{args:[{prim:'nat'}],prim:'list'},code:[{prim:'DROP'},{args:[{args:[{prim:'nat'}],prim:'list'},[{int:'0'},{int:'1'}]],prim:'PUSH'}]}}],name:'all_tokens',pure:true,description:'Get all supported tokens according to TZIP-12.'},{implementations:[{michelsonStorageView:{returnType:{prim:'bool'},code:[{prim:'DUP'},{prim:'CAR'},{args:[[{prim:'CDR'}]],prim:'DIP'},{prim:'DUP'},{prim:'CDR'},{prim:'CDR'},{args:[[{prim:'DUP'},{prim:'CDR'},{prim:'CAR'},{args:[[{prim:'CAR'}]],prim:'DIP'}]],prim:'DIP'},{prim:'DUP'},{prim:'INT'},{prim:'EQ'},{args:[[{prim:'DROP'}],[{prim:'DUP'},{args:[{prim:'nat'},{int:'1'}],prim:'PUSH'},{prim:'COMPARE'},{prim:'EQ'},{args:[[{args:[{prim:'string'},{string:'OPERATION_PROHIBITED'}],prim:'PUSH'},{prim:'FAILWITH'}],[{prim:'UNIT'},{args:[{prim:'string'},{string:'FA2_TOKEN_UNDEFINED'}],prim:'PUSH'},{prim:'PAIR'},{prim:'FAILWITH'}]],prim:'IF'}]],prim:'IF'},{prim:'SWAP'},{prim:'PAIR'},{args:[[{prim:'CAR'},{prim:'CAR'},{prim:'CDR'},{prim:'CAR'}]],prim:'DIP'},{prim:'MEM'}],parameter:{args:[{prim:'address',annots:['%owner']},{args:[{prim:'address',annots:['%operator']},{prim:'nat',annots:['%token_id']}],prim:'pair'}],prim:'pair'}}}],name:'is_operator',pure:true,description:'Checks whether given address is allowed to transfer given tokens that belong to given owner - according to TZIP-12.'},{implementations:[{michelsonStorageView:{returnType:{args:[{prim:'nat'},{args:[{prim:'string'},{prim:'bytes'}],prim:'map'}],prim:'pair'},code:[{prim:'DUP'},{prim:'CAR'},{args:[[{prim:'CDR'},{prim:'DROP'},{args:[{args:[{prim:'nat'},{args:[{prim:'string'},{prim:'bytes'}],prim:'map'}],prim:'map'},[{args:[{int:'0'},[{args:[{string:'decimals'},{bytes:(0,utils_1.stringToHex)(uDecimals.toString())}],prim:'Elt'},{args:[{string:'name'},{bytes:(0,utils_1.stringToHex)(uName)}],prim:'Elt'},{args:[{string:'symbol'},{bytes:(0,utils_1.stringToHex)(uSymbol)}],prim:'Elt'}]],prim:'Elt'},{args:[{int:'1'},[{args:[{string:'decimals'},{bytes:(0,utils_1.stringToHex)(fDecimals.toString())}],prim:'Elt'},{args:[{string:'name'},{bytes:(0,utils_1.stringToHex)(fName)}],prim:'Elt'},{args:[{string:'symbol'},{bytes:(0,utils_1.stringToHex)(fSymbol)}],prim:'Elt'}]],prim:'Elt'}]],prim:'PUSH'}]],prim:'DIP'},{prim:'DUP'},{args:[[{prim:'GET'},{args:[[{prim:'UNIT'},{args:[{prim:'string'},{string:'FA2_TOKEN_UNDEFINED'}],prim:'PUSH'},{prim:'PAIR'},{prim:'FAILWITH'}],[]],prim:'IF_NONE'}]],prim:'DIP'},{prim:'PAIR'}],parameter:{prim:'nat'}}}],name:'token_metadata',pure:true,description:'Returns metadata for given token according to TZIP-12.'},{implementations:[{michelsonStorageView:{returnType:{prim:'nat'},code:[{prim:'CDR'},{prim:'CDR'},{prim:'CDR'},{prim:'CAR'}]}}],name:'GetCounter',pure:true,description:'Returns the next counter value with which a permit should be created.'}],version:'1.0.0',license:{name:'MIT'}});exports.setMetadataJSON=setMetadataJSON; \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.setMetadataJSON = void 0; +const utils_1 = require("../utils"); +const setMetadataJSON = ({ description, authors, template, frozenToken: { name: fName, symbol: fSymbol, decimals: fDecimals }, unfrozenToken: { name: uName, symbol: uSymbol, decimals: uDecimals } }) => ({ + homepage: "https://github.com/tqtezos/baseDAO", + name: uName, + description, + authors, + template, + interfaces: ["TZIP-12", "TZIP-17"], + views: [ + { + implementations: [ + { + michelsonStorageView: { + returnType: { + prim: "nat" + }, + code: [ + { + prim: "DUP" + }, + { + prim: "CAR" + }, + { + args: [ + [ + { + prim: "CDR" + }, + { + prim: "CAR" + }, + { + prim: "CAR" + }, + { + prim: "CAR" + } + ] + ], + prim: "DIP" + }, + { + prim: "GET" + }, + { + args: [ + [ + { + args: [ + { + prim: "nat" + }, + { + int: "0" + } + ], + prim: "PUSH" + } + ], + [] + ], + prim: "IF_NONE" + } + ], + parameter: { + args: [ + { + prim: "address", + annots: ["%owner"] + }, + { + prim: "nat", + annots: ["%token_id"] + } + ], + prim: "pair" + } + } + } + ], + name: "get_balance", + pure: true, + description: "Get balance of an address according to TZIP-12." + }, + { + implementations: [ + { + michelsonStorageView: { + returnType: { + args: [ + { + prim: "nat" + } + ], + prim: "list" + }, + code: [ + { + prim: "DROP" + }, + { + args: [ + { + args: [ + { + prim: "nat" + } + ], + prim: "list" + }, + [ + { + int: "0" + }, + { + int: "1" + } + ] + ], + prim: "PUSH" + } + ] + } + } + ], + name: "all_tokens", + pure: true, + description: "Get all supported tokens according to TZIP-12." + }, + { + implementations: [ + { + michelsonStorageView: { + returnType: { + prim: "bool" + }, + code: [ + { + prim: "DUP" + }, + { + prim: "CAR" + }, + { + args: [ + [ + { + prim: "CDR" + } + ] + ], + prim: "DIP" + }, + { + prim: "DUP" + }, + { + prim: "CDR" + }, + { + prim: "CDR" + }, + { + args: [ + [ + { + prim: "DUP" + }, + { + prim: "CDR" + }, + { + prim: "CAR" + }, + { + args: [ + [ + { + prim: "CAR" + } + ] + ], + prim: "DIP" + } + ] + ], + prim: "DIP" + }, + { + prim: "DUP" + }, + { + prim: "INT" + }, + { + prim: "EQ" + }, + { + args: [ + [ + { + prim: "DROP" + } + ], + [ + { + prim: "DUP" + }, + { + args: [ + { + prim: "nat" + }, + { + int: "1" + } + ], + prim: "PUSH" + }, + { + prim: "COMPARE" + }, + { + prim: "EQ" + }, + { + args: [ + [ + { + args: [ + { + prim: "string" + }, + { + string: "OPERATION_PROHIBITED" + } + ], + prim: "PUSH" + }, + { + prim: "FAILWITH" + } + ], + [ + { + prim: "UNIT" + }, + { + args: [ + { + prim: "string" + }, + { + string: "FA2_TOKEN_UNDEFINED" + } + ], + prim: "PUSH" + }, + { + prim: "PAIR" + }, + { + prim: "FAILWITH" + } + ] + ], + prim: "IF" + } + ] + ], + prim: "IF" + }, + { + prim: "SWAP" + }, + { + prim: "PAIR" + }, + { + args: [ + [ + { + prim: "CAR" + }, + { + prim: "CAR" + }, + { + prim: "CDR" + }, + { + prim: "CAR" + } + ] + ], + prim: "DIP" + }, + { + prim: "MEM" + } + ], + parameter: { + args: [ + { + prim: "address", + annots: ["%owner"] + }, + { + args: [ + { + prim: "address", + annots: ["%operator"] + }, + { + prim: "nat", + annots: ["%token_id"] + } + ], + prim: "pair" + } + ], + prim: "pair" + } + } + } + ], + name: "is_operator", + pure: true, + description: "Checks whether given address is allowed to transfer given tokens that belong to given owner - according to TZIP-12." + }, + { + implementations: [ + { + michelsonStorageView: { + returnType: { + args: [ + { + prim: "nat" + }, + { + args: [ + { + prim: "string" + }, + { + prim: "bytes" + } + ], + prim: "map" + } + ], + prim: "pair" + }, + code: [ + { + prim: "DUP" + }, + { + prim: "CAR" + }, + { + args: [ + [ + { + prim: "CDR" + }, + { + prim: "DROP" + }, + { + args: [ + { + args: [ + { + prim: "nat" + }, + { + args: [ + { + prim: "string" + }, + { + prim: "bytes" + } + ], + prim: "map" + } + ], + prim: "map" + }, + [ + { + args: [ + { + int: "0" + }, + [ + { + args: [ + { + string: "decimals" + }, + { + bytes: (0, utils_1.stringToHex)(uDecimals.toString()) + } + ], + prim: "Elt" + }, + { + args: [ + { + string: "name" + }, + { + bytes: (0, utils_1.stringToHex)(uName) + } + ], + prim: "Elt" + }, + { + args: [ + { + string: "symbol" + }, + { + bytes: (0, utils_1.stringToHex)(uSymbol) + } + ], + prim: "Elt" + } + ] + ], + prim: "Elt" + }, + { + args: [ + { + int: "1" + }, + [ + { + args: [ + { + string: "decimals" + }, + { + bytes: (0, utils_1.stringToHex)(fDecimals.toString()) + } + ], + prim: "Elt" + }, + { + args: [ + { + string: "name" + }, + { + bytes: (0, utils_1.stringToHex)(fName) + } + ], + prim: "Elt" + }, + { + args: [ + { + string: "symbol" + }, + { + bytes: (0, utils_1.stringToHex)(fSymbol) + } + ], + prim: "Elt" + } + ] + ], + prim: "Elt" + } + ] + ], + prim: "PUSH" + } + ] + ], + prim: "DIP" + }, + { + prim: "DUP" + }, + { + args: [ + [ + { + prim: "GET" + }, + { + args: [ + [ + { + prim: "UNIT" + }, + { + args: [ + { + prim: "string" + }, + { + string: "FA2_TOKEN_UNDEFINED" + } + ], + prim: "PUSH" + }, + { + prim: "PAIR" + }, + { + prim: "FAILWITH" + } + ], + [] + ], + prim: "IF_NONE" + } + ] + ], + prim: "DIP" + }, + { + prim: "PAIR" + } + ], + parameter: { + prim: "nat" + } + } + } + ], + name: "token_metadata", + pure: true, + description: "Returns metadata for given token according to TZIP-12." + }, + { + implementations: [ + { + michelsonStorageView: { + returnType: { + prim: "nat" + }, + code: [ + { + prim: "CDR" + }, + { + prim: "CDR" + }, + { + prim: "CDR" + }, + { + prim: "CAR" + } + ] + } + } + ], + name: "GetCounter", + pure: true, + description: "Returns the next counter value with which a permit should be created." + } + ], + version: "1.0.0", + license: { + name: "MIT" + } +}); +exports.setMetadataJSON = setMetadataJSON; +//# sourceMappingURL=metadata.js.map \ No newline at end of file diff --git a/dist/services/contracts/metadataCarrier/types.js b/dist/services/contracts/metadataCarrier/types.js index fa85c5c..11e638d 100644 --- a/dist/services/contracts/metadataCarrier/types.js +++ b/dist/services/contracts/metadataCarrier/types.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/services/contracts/token/assets/MultiAsset.json b/dist/services/contracts/token/assets/MultiAsset.json deleted file mode 100644 index 6007374..0000000 --- a/dist/services/contracts/token/assets/MultiAsset.json +++ /dev/null @@ -1,4592 +0,0 @@ -[ - { - "prim": "storage", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address", - "annots": [ - "%admin" - ] - }, - { - "prim": "bool", - "annots": [ - "%paused" - ] - } - ] - }, - { - "prim": "option", - "args": [ - { - "prim": "address" - } - ], - "annots": [ - "%pending_admin" - ] - } - ], - "annots": [ - "%admin" - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "big_map", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "nat" - } - ], - "annots": [ - "%ledger" - ] - }, - { - "prim": "big_map", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - } - ] - }, - { - "prim": "unit" - } - ], - "annots": [ - "%operators" - ] - } - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "big_map", - "args": [ - { - "prim": "nat" - }, - { - "prim": "pair", - "args": [ - { - "prim": "nat", - "annots": [ - "%token_id" - ] - }, - { - "prim": "map", - "args": [ - { - "prim": "string" - }, - { - "prim": "bytes" - } - ], - "annots": [ - "%token_info" - ] - } - ] - } - ], - "annots": [ - "%token_metadata" - ] - }, - { - "prim": "big_map", - "args": [ - { - "prim": "nat" - }, - { - "prim": "nat" - } - ], - "annots": [ - "%token_total_supply" - ] - } - ] - } - ], - "annots": [ - "%assets" - ] - } - ] - }, - { - "prim": "big_map", - "args": [ - { - "prim": "string" - }, - { - "prim": "bytes" - } - ], - "annots": [ - "%metadata" - ] - } - ] - } - ] - }, - { - "prim": "parameter", - "args": [ - { - "prim": "or", - "args": [ - { - "prim": "or", - "args": [ - { - "prim": "or", - "args": [ - { - "prim": "or", - "args": [ - { - "prim": "unit", - "annots": [ - "%confirm_admin" - ] - }, - { - "prim": "bool", - "annots": [ - "%pause" - ] - } - ] - }, - { - "prim": "address", - "annots": [ - "%set_admin" - ] - } - ], - "annots": [ - "%admin" - ] - }, - { - "prim": "or", - "args": [ - { - "prim": "or", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "list", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address", - "annots": [ - "%owner" - ] - }, - { - "prim": "nat", - "annots": [ - "%token_id" - ] - } - ] - } - ], - "annots": [ - "%requests" - ] - }, - { - "prim": "contract", - "args": [ - { - "prim": "list", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address", - "annots": [ - "%owner" - ] - }, - { - "prim": "nat", - "annots": [ - "%token_id" - ] - } - ], - "annots": [ - "%request" - ] - }, - { - "prim": "nat", - "annots": [ - "%balance" - ] - } - ] - } - ] - } - ], - "annots": [ - "%callback" - ] - } - ], - "annots": [ - "%balance_of" - ] - }, - { - "prim": "list", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address", - "annots": [ - "%from_" - ] - }, - { - "prim": "list", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address", - "annots": [ - "%to_" - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "nat", - "annots": [ - "%token_id" - ] - }, - { - "prim": "nat", - "annots": [ - "%amount" - ] - } - ] - } - ] - } - ], - "annots": [ - "%txs" - ] - } - ] - } - ], - "annots": [ - "%transfer" - ] - } - ] - }, - { - "prim": "list", - "args": [ - { - "prim": "or", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address", - "annots": [ - "%owner" - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "address", - "annots": [ - "%operator" - ] - }, - { - "prim": "nat", - "annots": [ - "%token_id" - ] - } - ] - } - ], - "annots": [ - "%add_operator" - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "address", - "annots": [ - "%owner" - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "address", - "annots": [ - "%operator" - ] - }, - { - "prim": "nat", - "annots": [ - "%token_id" - ] - } - ] - } - ], - "annots": [ - "%remove_operator" - ] - } - ] - } - ], - "annots": [ - "%update_operators" - ] - } - ], - "annots": [ - "%assets" - ] - } - ] - }, - { - "prim": "or", - "args": [ - { - "prim": "or", - "args": [ - { - "prim": "list", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address", - "annots": [ - "%owner" - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "nat", - "annots": [ - "%token_id" - ] - }, - { - "prim": "nat", - "annots": [ - "%amount" - ] - } - ] - } - ] - } - ], - "annots": [ - "%burn_tokens" - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "nat", - "annots": [ - "%token_id" - ] - }, - { - "prim": "map", - "args": [ - { - "prim": "string" - }, - { - "prim": "bytes" - } - ], - "annots": [ - "%token_info" - ] - } - ], - "annots": [ - "%create_token" - ] - } - ] - }, - { - "prim": "list", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address", - "annots": [ - "%owner" - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "nat", - "annots": [ - "%token_id" - ] - }, - { - "prim": "nat", - "annots": [ - "%amount" - ] - } - ] - } - ] - } - ], - "annots": [ - "%mint_tokens" - ] - } - ], - "annots": [ - "%tokens" - ] - } - ] - } - ] - }, - { - "prim": "code", - "args": [ - [ - { - "prim": "PUSH", - "args": [ - { - "prim": "string" - }, - { - "string": "FA2_TOKEN_UNDEFINED" - } - ] - }, - { - "prim": "PUSH", - "args": [ - { - "prim": "string" - }, - { - "string": "FA2_INSUFFICIENT_BALANCE" - } - ] - }, - { - "prim": "LAMBDA", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "big_map", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "nat" - } - ] - } - ] - }, - { - "prim": "nat" - }, - [ - { - "prim": "UNPAIR" - }, - { - "prim": "GET" - }, - { - "prim": "IF_NONE", - "args": [ - [ - { - "prim": "PUSH", - "args": [ - { - "prim": "nat" - }, - { - "int": "0" - } - ] - } - ], - [] - ] - } - ] - ] - }, - { - "prim": "DUP" - }, - { - "prim": "LAMBDA", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "lambda", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "big_map", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "nat" - } - ] - } - ] - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "nat" - }, - { - "prim": "big_map", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "nat" - } - ] - } - ] - } - ] - } - ] - }, - { - "prim": "big_map", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "nat" - } - ] - }, - [ - { - "prim": "UNPAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "EXEC" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "ADD" - }, - { - "prim": "DUP" - }, - { - "prim": "PUSH", - "args": [ - { - "prim": "nat" - }, - { - "int": "0" - } - ] - }, - { - "prim": "COMPARE" - }, - { - "prim": "EQ" - }, - { - "prim": "IF", - "args": [ - [ - { - "prim": "DROP" - }, - { - "prim": "NONE", - "args": [ - { - "prim": "nat" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "UPDATE" - } - ], - [ - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "SOME" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "UPDATE" - } - ] - ] - } - ] - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "APPLY" - }, - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "LAMBDA", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "lambda", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "big_map", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "nat" - } - ] - } - ] - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "string" - } - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "nat" - }, - { - "prim": "big_map", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "nat" - } - ] - } - ] - } - ] - } - ] - }, - { - "prim": "big_map", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - }, - { - "prim": "nat" - } - ] - }, - [ - { - "prim": "UNPAIR" - }, - { - "prim": "UNPAIR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DUP" - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "EXEC" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "SUB" - }, - { - "prim": "ISNAT" - }, - { - "prim": "IF_NONE", - "args": [ - [ - { - "prim": "DROP", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "FAILWITH" - } - ], - [ - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DUP" - }, - { - "prim": "PUSH", - "args": [ - { - "prim": "nat" - }, - { - "int": "0" - } - ] - }, - { - "prim": "COMPARE" - }, - { - "prim": "EQ" - }, - { - "prim": "IF", - "args": [ - [ - { - "prim": "DROP" - }, - { - "prim": "NONE", - "args": [ - { - "prim": "nat" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "UPDATE" - } - ], - [ - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "SOME" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "UPDATE" - } - ] - ] - } - ] - ] - } - ] - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "APPLY" - }, - { - "prim": "LAMBDA", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "bool" - } - ] - }, - { - "prim": "option", - "args": [ - { - "prim": "address" - } - ] - } - ] - }, - { - "prim": "unit" - }, - [ - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "SENDER" - }, - { - "prim": "COMPARE" - }, - { - "prim": "NEQ" - }, - { - "prim": "IF", - "args": [ - [ - { - "prim": "PUSH", - "args": [ - { - "prim": "string" - }, - { - "string": "NOT_AN_ADMIN" - } - ] - }, - { - "prim": "FAILWITH" - } - ], - [] - ] - }, - { - "prim": "UNIT" - } - ] - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "6" - } - ] - }, - { - "prim": "UNPAIR" - }, - { - "prim": "IF_LEFT", - "args": [ - [ - { - "prim": "DIG", - "args": [ - { - "int": "6" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "IF_LEFT", - "args": [ - [ - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "SWAP" - }, - { - "prim": "IF_LEFT", - "args": [ - [ - { - "prim": "IF_LEFT", - "args": [ - [ - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DUP" - }, - { - "prim": "CDR" - }, - { - "prim": "IF_NONE", - "args": [ - [ - { - "prim": "PUSH", - "args": [ - { - "prim": "string" - }, - { - "string": "NO_PENDING_ADMIN" - } - ] - }, - { - "prim": "FAILWITH" - } - ], - [ - { - "prim": "SENDER" - }, - { - "prim": "COMPARE" - }, - { - "prim": "EQ" - }, - { - "prim": "IF", - "args": [ - [ - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "NONE", - "args": [ - { - "prim": "address" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "SENDER" - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - } - ], - [ - { - "prim": "PUSH", - "args": [ - { - "prim": "string" - }, - { - "string": "NOT_A_PENDING_ADMIN" - } - ] - }, - { - "prim": "FAILWITH" - } - ] - ] - } - ] - ] - }, - { - "prim": "NIL", - "args": [ - { - "prim": "operation" - } - ] - }, - { - "prim": "PAIR" - } - ], - [ - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "EXEC" - }, - { - "prim": "DROP" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP" - }, - { - "prim": "CDR" - }, - { - "prim": "DUP" - }, - { - "prim": "CDR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "NIL", - "args": [ - { - "prim": "operation" - } - ] - }, - { - "prim": "PAIR" - } - ] - ] - } - ], - [ - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "EXEC" - }, - { - "prim": "DROP" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP" - }, - { - "prim": "CAR" - }, - { - "prim": "SOME" - }, - { - "prim": "SWAP" - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "NIL", - "args": [ - { - "prim": "operation" - } - ] - }, - { - "prim": "PAIR" - } - ] - ] - }, - { - "prim": "UNPAIR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DUP" - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "PAIR" - } - ], - [ - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "IF", - "args": [ - [ - { - "prim": "PUSH", - "args": [ - { - "prim": "string" - }, - { - "string": "PAUSED" - } - ] - }, - { - "prim": "FAILWITH" - } - ], - [] - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "IF_LEFT", - "args": [ - [ - { - "prim": "IF_LEFT", - "args": [ - [ - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP" - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "DUP" - }, - { - "prim": "CAR" - }, - { - "prim": "MAP", - "args": [ - [ - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CDR" - }, - { - "prim": "MEM" - }, - { - "prim": "IF", - "args": [ - [ - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "7" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "EXEC" - }, - { - "prim": "SWAP" - }, - { - "prim": "PAIR" - } - ], - [ - { - "prim": "DROP" - }, - { - "prim": "DUP", - "args": [ - { - "int": "6" - } - ] - }, - { - "prim": "FAILWITH" - } - ] - ] - } - ] - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "CDR" - }, - { - "prim": "PUSH", - "args": [ - { - "prim": "mutez" - }, - { - "int": "0" - } - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "TRANSFER_TOKENS" - }, - { - "prim": "SWAP" - }, - { - "prim": "NIL", - "args": [ - { - "prim": "operation" - } - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CONS" - }, - { - "prim": "PAIR" - } - ], - [ - { - "prim": "DIG", - "args": [ - { - "int": "5" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "LAMBDA", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "address" - } - ] - }, - { - "prim": "pair", - "args": [ - { - "prim": "nat" - }, - { - "prim": "big_map", - "args": [ - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "pair", - "args": [ - { - "prim": "address" - }, - { - "prim": "nat" - } - ] - } - ] - }, - { - "prim": "unit" - } - ] - } - ] - } - ] - }, - { - "prim": "unit" - }, - [ - { - "prim": "DUP" - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "DUP" - }, - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "COMPARE" - }, - { - "prim": "EQ" - }, - { - "prim": "IF", - "args": [ - [ - { - "prim": "DROP", - "args": [ - { - "int": "3" - } - ] - } - ], - [ - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DUP" - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "MEM" - }, - { - "prim": "IF", - "args": [ - [], - [ - { - "prim": "PUSH", - "args": [ - { - "prim": "string" - }, - { - "string": "FA2_NOT_OPERATOR" - } - ] - }, - { - "prim": "FAILWITH" - } - ] - ] - } - ] - ] - }, - { - "prim": "UNIT" - } - ] - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP" - }, - { - "prim": "CDR" - }, - { - "prim": "DUP" - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "ITER", - "args": [ - [ - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CDR" - }, - { - "prim": "ITER", - "args": [ - [ - { - "prim": "SWAP" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP" - }, - { - "prim": "CDR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "MEM" - }, - { - "prim": "IF", - "args": [ - [ - { - "prim": "DUP", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "SENDER" - }, - { - "prim": "DUP", - "args": [ - { - "int": "5" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "6" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "EXEC" - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "CAR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DUP", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "8" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "EXEC" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "8" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "EXEC" - } - ], - [ - { - "prim": "DROP", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DUP", - "args": [ - { - "int": "8" - } - ] - }, - { - "prim": "FAILWITH" - } - ] - ] - } - ] - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DROP" - } - ] - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "NIL", - "args": [ - { - "prim": "operation" - } - ] - }, - { - "prim": "PAIR" - } - ] - ] - } - ], - [ - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "PAIR" - }, - { - "prim": "SENDER" - }, - { - "prim": "SWAP" - }, - { - "prim": "UNPAIR" - }, - { - "prim": "ITER", - "args": [ - [ - { - "prim": "SWAP" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP" - }, - { - "prim": "CDR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "IF_LEFT", - "args": [ - [], - [] - ] - }, - { - "prim": "CAR" - }, - { - "prim": "COMPARE" - }, - { - "prim": "EQ" - }, - { - "prim": "IF", - "args": [ - [], - [ - { - "prim": "PUSH", - "args": [ - { - "prim": "string" - }, - { - "string": "FA2_NOT_OWNER" - } - ] - }, - { - "prim": "FAILWITH" - } - ] - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "CAR" - }, - { - "prim": "SWAP" - }, - { - "prim": "IF_LEFT", - "args": [ - [ - { - "prim": "SWAP" - }, - { - "prim": "PUSH", - "args": [ - { - "prim": "option", - "args": [ - { - "prim": "unit" - } - ] - }, - { - "prim": "Some", - "args": [ - { - "prim": "Unit" - } - ] - } - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DUP" - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "UPDATE" - } - ], - [ - { - "prim": "DUP" - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "NONE", - "args": [ - { - "prim": "unit" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "UPDATE" - } - ] - ] - } - ] - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "NIL", - "args": [ - { - "prim": "operation" - } - ] - }, - { - "prim": "PAIR" - } - ] - ] - }, - { - "prim": "UNPAIR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "CDR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "PAIR" - } - ] - ] - } - ], - [ - { - "prim": "DIG", - "args": [ - { - "int": "5" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "EXEC" - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "IF_LEFT", - "args": [ - [ - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "IF_LEFT", - "args": [ - [ - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "ITER", - "args": [ - [ - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "5" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "EXEC" - } - ] - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "ITER", - "args": [ - [ - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "GET" - }, - { - "prim": "IF_NONE", - "args": [ - [ - { - "prim": "DROP", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DUP", - "args": [ - { - "int": "5" - } - ] - }, - { - "prim": "FAILWITH" - } - ], - [ - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "SUB" - }, - { - "prim": "ISNAT" - }, - { - "prim": "IF_NONE", - "args": [ - [ - { - "prim": "DUP", - "args": [ - { - "int": "6" - } - ] - }, - { - "prim": "FAILWITH" - } - ], - [] - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "SOME" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "UPDATE" - } - ] - ] - } - ] - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DUP" - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "NIL", - "args": [ - { - "prim": "operation" - } - ] - }, - { - "prim": "PAIR" - } - ], - [ - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DUP" - }, - { - "prim": "CAR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET" - }, - { - "prim": "IF_NONE", - "args": [ - [ - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DUP" - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DUP", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "SOME" - }, - { - "prim": "SWAP" - }, - { - "prim": "UPDATE" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "PUSH", - "args": [ - { - "prim": "option", - "args": [ - { - "prim": "nat" - } - ] - }, - { - "prim": "Some", - "args": [ - { - "int": "0" - } - ] - } - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "UPDATE" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - } - ], - [ - { - "prim": "PUSH", - "args": [ - { - "prim": "string" - }, - { - "string": "FA2_DUP_TOKEN_ID" - } - ] - }, - { - "prim": "FAILWITH" - } - ] - ] - }, - { - "prim": "NIL", - "args": [ - { - "prim": "operation" - } - ] - }, - { - "prim": "PAIR" - } - ] - ] - } - ], - [ - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "ITER", - "args": [ - [ - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "5" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "EXEC" - } - ] - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "ITER", - "args": [ - [ - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "GET" - }, - { - "prim": "IF_NONE", - "args": [ - [ - { - "prim": "DROP", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DUP", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "FAILWITH" - } - ], - [ - { - "prim": "SWAP" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "ADD" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "SWAP" - }, - { - "prim": "SOME" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "UPDATE" - } - ] - ] - } - ] - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "4" - } - ] - }, - { - "prim": "DROP" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DUP" - }, - { - "prim": "CDR" - }, - { - "prim": "SWAP" - }, - { - "prim": "CAR" - }, - { - "prim": "CDR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "DUP" - }, - { - "prim": "DUG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "GET", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "PAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "NIL", - "args": [ - { - "prim": "operation" - } - ] - }, - { - "prim": "PAIR" - } - ] - ] - }, - { - "prim": "UNPAIR" - }, - { - "prim": "DUP", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "CDR" - }, - { - "prim": "DIG", - "args": [ - { - "int": "2" - } - ] - }, - { - "prim": "DIG", - "args": [ - { - "int": "3" - } - ] - }, - { - "prim": "CAR" - }, - { - "prim": "CAR" - }, - { - "prim": "PAIR" - }, - { - "prim": "PAIR" - }, - { - "prim": "SWAP" - }, - { - "prim": "PAIR" - } - ] - ] - } - ] - ] - } -] diff --git a/dist/services/contracts/token/hooks/useToken.js b/dist/services/contracts/token/hooks/useToken.js deleted file mode 100644 index 6316313..0000000 --- a/dist/services/contracts/token/hooks/useToken.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.useTokenOriginate=void 0;const react_query_1=require('react-query');const useTezos_1=require('../../../beacon/hooks/useTezos');const mixpanel_browser_1=__importDefault(require('mixpanel-browser'));const __1=require('..');const useTokenOriginate=tokenData=>{const queryClient=(0,react_query_1.useQueryClient)();const {tezos,connect,network,account}=(0,useTezos_1.useTezos)();const result=(0,react_query_1.useMutation)(({tokenDistribution,tokenSettings})=>__awaiter(void 0,void 0,void 0,function*(){let tezosToolkit=tezos;if(!account){tezosToolkit=yield connect();}mixpanel_browser_1.default.track('Started Token origination',{contract:'FA2Token',tokenName:tokenSettings.name,tokenSymbol:tokenSettings.symbol});const mutateTokenData={tokenDistribution,tokenSettings};const contract=yield(0,__1.deployTokenContract)(Object.assign(Object.assign({},mutateTokenData),{tezos:tezosToolkit,account}));if(!contract){throw new Error(`Error deploying ${tokenData.tokenSettings.name} Token`);}mixpanel_browser_1.default.track('Completed Token Deployment',{contract:'FA2Token',tokenName:tokenSettings.name,tokenSymbol:tokenSettings.symbol});return contract;}),{onSuccess:()=>{queryClient.resetQueries();}});return{mutation:result};};exports.useTokenOriginate=useTokenOriginate; \ No newline at end of file diff --git a/dist/services/contracts/token/hooks/useToken.js.map b/dist/services/contracts/token/hooks/useToken.js.map deleted file mode 100644 index 6cdf86f..0000000 --- a/dist/services/contracts/token/hooks/useToken.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useToken.js","sourceRoot":"","sources":["../../../../../src/services/contracts/token/hooks/useToken.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,6CAAyD;AAGzD,6DAAyD;AACzD,wEAAuC;AAEvC,0BAAwC;AAEjC,MAAM,iBAAiB,GAAG,CAAC,SAA8B,EAAE,EAAE;IAClE,MAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IAEpC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAEvD,MAAM,MAAM,GAAG,IAAA,yBAAW,EACxB,CAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,EAAE,EAAE;QAC7C,IAAI,YAAY,GAAG,KAAK,CAAA;QAExB,IAAI,CAAC,OAAO,EAAE;YACZ,YAAY,GAAG,MAAM,OAAO,EAAE,CAAA;SAC/B;QAED,0BAAQ,CAAC,KAAK,CAAC,2BAA2B,EAAE;YAC1C,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,aAAa,CAAC,IAAI;YAC7B,WAAW,EAAE,aAAa,CAAC,MAAM;SAClC,CAAC,CAAA;QAEF,MAAM,eAAe,GAAwB;YAC3C,iBAAiB;YACjB,aAAa;SACd,CAAA;QAED,MAAM,QAAQ,GAAG,MAAM,IAAA,uBAAmB,kCACrC,eAAe,KAClB,KAAK,EAAE,YAAY,EACnB,OAAO,IACP,CAAA;QAEF,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,mBAAmB,SAAS,CAAC,aAAa,CAAC,IAAI,QAAQ,CAAC,CAAA;SACzE;QAED,0BAAQ,CAAC,KAAK,CAAC,4BAA4B,EAAE;YAC3C,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,aAAa,CAAC,IAAI;YAC7B,WAAW,EAAE,aAAa,CAAC,MAAM;SAClC,CAAC,CAAA;QAEF,OAAO,QAAQ,CAAA;IACjB,CAAC,CAAA,EACD;QACE,SAAS,EAAE,GAAG,EAAE;YACd,WAAW,CAAC,YAAY,EAAE,CAAA;QAC5B,CAAC;KACF,CACF,CAAA;IAED,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;AAC7B,CAAC,CAAA;AAlDY,QAAA,iBAAiB,qBAkD7B"} \ No newline at end of file diff --git a/dist/services/contracts/token/index.js b/dist/services/contracts/token/index.js deleted file mode 100644 index 6c7229e..0000000 --- a/dist/services/contracts/token/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.deployTokenContract=void 0;const taquito_1=require('@taquito/taquito');const bignumber_js_1=__importDefault(require('bignumber.js'));const utils_1=require('../utils');const MultiAsset_json_1=__importDefault(require('./assets/MultiAsset.json'));const deployTokenContract=({tokenSettings,tokenDistribution,tezos,account})=>__awaiter(void 0,void 0,void 0,function*(){try{const metadata=taquito_1.MichelsonMap.fromLiteral({'':Buffer.from('tezos-storage:contents','ascii').toString('hex'),'contents':Buffer.from(JSON.stringify({version:'v0.0.1',name:tokenSettings.name,description:tokenSettings.description,authors:['FA2 Bakery'],source:{tools:['Ligo']},interfaces:['TZIP-012','TZIP-016']}),'ascii').toString('hex')});const storage={admin:{admin:account,pending_admin:null,paused:false},assets:{token_total_supply:taquito_1.MichelsonMap.fromLiteral({}),ledger:taquito_1.MichelsonMap.fromLiteral({}),operators:taquito_1.MichelsonMap.fromLiteral({}),token_metadata:taquito_1.MichelsonMap.fromLiteral({})},metadata:metadata};const index=0;const totalSupply=tokenSettings.totalSupply&&tokenSettings.decimals&&(0,utils_1.formatUnits)(new bignumber_js_1.default(tokenSettings.totalSupply),tokenSettings.decimals);totalSupply&&storage.assets.token_total_supply.set(index,totalSupply.toString());tokenDistribution.holders.map((holder,holderIndex)=>{holder.amount&&tokenSettings.decimals&&storage.assets.ledger.set([holder.walletAddress,index],(0,utils_1.formatUnits)(new bignumber_js_1.default(holder.amount),tokenSettings.decimals).toString());});storage.assets.token_metadata.set(index,{token_id:index,token_info:taquito_1.MichelsonMap.fromLiteral({symbol:Buffer.from(tokenSettings.symbol,'ascii').toString('hex'),name:Buffer.from(tokenSettings.name,'ascii').toString('hex'),decimals:tokenSettings.decimals&&Buffer.from(tokenSettings.decimals.toString(),'ascii').toString('hex'),shouldPreferSymbol:Buffer.from('true','ascii').toString('hex'),description:Buffer.from(tokenSettings.description,'ascii').toString('hex'),thumbnailUri:Buffer.from(tokenSettings.icon,'ascii').toString('hex')})});const t=tezos.wallet.originate({code:MultiAsset_json_1.default,storage});const c=yield t.send();const contract=yield c.contract();return contract;}catch(e){console.error(e);}});exports.deployTokenContract=deployTokenContract; \ No newline at end of file diff --git a/dist/services/contracts/token/index.js.map b/dist/services/contracts/token/index.js.map deleted file mode 100644 index 6433407..0000000 --- a/dist/services/contracts/token/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/contracts/token/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAA6D;AAC7D,gEAAoC;AAEpC,oCAAsC;AACtC,+EAAoD;AAO7C,MAAM,mBAAmB,GAAG,CAAO,EACxC,aAAa,EACb,iBAAiB,EACjB,KAAK,EACL,OAAO,EACqB,EAAE,EAAE;IAChC,IAAI;QACF,MAAM,QAAQ,GAAG,sBAAY,CAAC,WAAW,CAAC;YACxC,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;YAClE,UAAU,EAAE,MAAM,CAAC,IAAI,CACrB,IAAI,CAAC,SAAS,CAAC;gBACb,OAAO,EAAE,QAAQ;gBACjB,IAAI,EAAE,aAAa,CAAC,IAAI;gBACxB,WAAW,EAAE,aAAa,CAAC,WAAW;gBACtC,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,MAAM,EAAE;oBACN,KAAK,EAAE,CAAC,MAAM,CAAC;iBAChB;gBACD,UAAU,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;aACrC,CAAC,EACF,OAAO,CACR,CAAC,QAAQ,CAAC,KAAK,CAAC;SAClB,CAAC,CAAA;QACF,MAAM,OAAO,GAAG;YACd,KAAK,EAAE;gBACL,KAAK,EAAE,OAAO;gBACd,aAAa,EAAE,IAAI;gBACnB,MAAM,EAAE,KAAK;aACd;YACD,MAAM,EAAE;gBACN,kBAAkB,EAAE,sBAAY,CAAC,WAAW,CAAC,EAAE,CAAC;gBAChD,MAAM,EAAE,sBAAY,CAAC,WAAW,CAAC,EAAE,CAAC;gBACpC,SAAS,EAAE,sBAAY,CAAC,WAAW,CAAC,EAAE,CAAC;gBACvC,cAAc,EAAE,sBAAY,CAAC,WAAW,CAAC,EAAE,CAAC;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C,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAC3G,kBAAkB,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAChE,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAC5E,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;aACvE,CAAC;SACH,CAAC,CAAA;QACF,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;YAC/B,IAAI,EAAE,yBAAa;YACnB,OAAO;SACR,CAAC,CAAA;QACF,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;QACxB,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAA;QAEnC,OAAO,QAAQ,CAAA;KAChB;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;KACjB;AACH,CAAC,CAAA,CAAA;AA1EY,QAAA,mBAAmB,uBA0E/B"} \ No newline at end of file diff --git a/dist/services/contracts/utils.js b/dist/services/contracts/utils.js index 318eee8..2c89532 100644 --- a/dist/services/contracts/utils.js +++ b/dist/services/contracts/utils.js @@ -1 +1,60 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.getBlockie=exports.formatUnits=exports.parseUnits=exports.xtzToMutez=exports.mutezToXtz=exports.toShortAddress=exports.stringToHex=void 0;const bignumber_js_1=require('bignumber.js');const blockies_ts_1=__importDefault(require('blockies-ts'));const stringToHex=value=>{let result='';for(let i=0;i{return address.slice(0,limit).concat('...').concat(address.slice(address.length-limit,address.length));};exports.toShortAddress=toShortAddress;const mutezToXtz=mutez=>{return(0,exports.parseUnits)(mutez,6);};exports.mutezToXtz=mutezToXtz;const xtzToMutez=xtz=>{return(0,exports.formatUnits)(xtz,6);};exports.xtzToMutez=xtzToMutez;const parseUnits=(amount,decimals)=>{return amount.div(new bignumber_js_1.BigNumber(10).pow(decimals));};exports.parseUnits=parseUnits;const formatUnits=(amount,decimals)=>{return amount.multipliedBy(new bignumber_js_1.BigNumber(10).pow(decimals));};exports.formatUnits=formatUnits;const b582int=val=>{let rv=new bignumber_js_1.BigNumber(0);const alpha='123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';for(let i=0;i{if(address.startsWith('tz')||address.startsWith('kt')){return blockies_ts_1.default.create({seed:`0${b582int(address)}`,spotcolor:'#000'}).toDataURL();}return blockies_ts_1.default.create({seed:address}).toDataURL();};exports.getBlockie=getBlockie; \ No newline at end of file +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getBlockie = exports.formatUnits = exports.parseUnits = exports.xtzToMutez = exports.mutezToXtz = exports.toShortAddress = exports.stringToHex = void 0; +const bignumber_js_1 = require("bignumber.js"); +const blockies_ts_1 = __importDefault(require("blockies-ts")); +const stringToHex = (value) => { + let result = ""; + for (let i = 0; i < value.length; i++) { + result += value.charCodeAt(i).toString(16).slice(-4); + } + return result; +}; +exports.stringToHex = stringToHex; +const toShortAddress = (address, limit = 4) => { + return address + .slice(0, limit) + .concat("...") + .concat(address.slice(address.length - limit, address.length)); +}; +exports.toShortAddress = toShortAddress; +const mutezToXtz = (mutez) => { + return (0, exports.parseUnits)(mutez, 6); +}; +exports.mutezToXtz = mutezToXtz; +const xtzToMutez = (xtz) => { + return (0, exports.formatUnits)(xtz, 6); +}; +exports.xtzToMutez = xtzToMutez; +const parseUnits = (amount, decimals) => { + return amount.div(new bignumber_js_1.BigNumber(10).pow(decimals)); +}; +exports.parseUnits = parseUnits; +const formatUnits = (amount, decimals) => { + return amount.multipliedBy(new bignumber_js_1.BigNumber(10).pow(decimals)); +}; +exports.formatUnits = formatUnits; +const b582int = (val) => { + let rv = new bignumber_js_1.BigNumber(0); + const alpha = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; + for (let i = 0; i < val.length; i++) { + rv = rv.plus(new bignumber_js_1.BigNumber(alpha.indexOf(val[val.length - 1 - i])).multipliedBy(new bignumber_js_1.BigNumber(alpha.length).exponentiatedBy(i))); + } + return rv.toString(16); +}; +const getBlockie = (address) => { + if (address.startsWith("tz") || address.startsWith("kt")) { + return blockies_ts_1.default + .create({ + seed: `0${b582int(address)}`, + spotcolor: "#000" + }) + .toDataURL(); + } + return blockies_ts_1.default.create({ seed: address }).toDataURL(); +}; +exports.getBlockie = getBlockie; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/services/ipfs/index.js b/dist/services/ipfs/index.js index cd7652a..18f91ff 100644 --- a/dist/services/ipfs/index.js +++ b/dist/services/ipfs/index.js @@ -1 +1,5 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.IPFS_GATEWAY_URI=void 0;exports.IPFS_GATEWAY_URI='https://ipfs.io/ipfs'; \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IPFS_GATEWAY_URI = void 0; +exports.IPFS_GATEWAY_URI = "https://ipfs.io/ipfs"; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/lite/utils.js b/dist/services/lite/utils.js deleted file mode 100644 index 4185547..0000000 --- a/dist/services/lite/utils.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.getSignature=exports.formatByDecimals=exports.nFormatter=exports.numberWithCommas=exports.getTreasuryPercentage=exports.getTotalVoters=exports.calculateProposalTotal=exports.calculateChoiceTotal=exports.calculateWeight=exports.isProposalActive=exports.getTurnoutValue=exports.hasTokenBalance=exports.getUserTotalSupplyAtReferenceBlock=exports.getTotalSupplyAtReferenceBlock=exports.getCurrentBlock=void 0;const tzip16_1=require('@taquito/tzip16');const dayjs_1=__importDefault(require('dayjs'));const relativeTime_1=__importDefault(require('dayjs/plugin/relativeTime'));const updateLocale_1=__importDefault(require('dayjs/plugin/updateLocale'));const bakingBad_1=require('../bakingBad');const beacon_sdk_1=require('@airgap/beacon-sdk');const bignumber_js_1=__importDefault(require('bignumber.js'));const node_fetch_1=__importDefault(require('node-fetch'));const getCurrentBlock=network=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/head`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract current block');}const result=yield response.json();return result.level;});exports.getCurrentBlock=getCurrentBlock;const getTotalSupplyAtReferenceBlock=(network,address,level)=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/contracts/${address}/bigmaps/token_total_supply/historical_keys/${level}`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract current block');}const result=yield response.json();return result[0].value;});exports.getTotalSupplyAtReferenceBlock=getTotalSupplyAtReferenceBlock;const getUserTotalSupplyAtReferenceBlock=(network,address,level,userAddress)=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/contracts/${address}/bigmaps/ledger/historical_keys/${level}`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract current block');}const result=yield response.json();let userBalance;if(result&&result.length>0){userBalance=result.find(elem=>elem.key.address===userAddress);return userBalance.value;}return 0;});exports.getUserTotalSupplyAtReferenceBlock=getUserTotalSupplyAtReferenceBlock;const hasTokenBalance=(network,account,contract)=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/tokens/balances?account=${account}&token.contract=${contract}`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract current block');}const result=yield response.json();let hasBalance=false;if(result&&result[0]){if(result[0].balance>0){hasBalance=true;}else{hasBalance=false;}}else{hasBalance=false;}return hasBalance;});exports.hasTokenBalance=hasTokenBalance;const getTurnoutValue=(network,address,level,voters)=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/contracts/${address}/bigmaps/ledger/historical_keys/${level}`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract current block');}const result=yield response.json();if(result){return voters*100/result.length;}return 0;});exports.getTurnoutValue=getTurnoutValue;const isProposalActive=date=>{const config={rounding:Math.floor};dayjs_1.default.extend(relativeTime_1.default,config);dayjs_1.default.extend(updateLocale_1.default);dayjs_1.default.updateLocale('en',{relativeTime:{future:'%s left',past:'%s ago',s:'a few seconds',m:'1 minute',mm:'%d minutes',h:'1 hour',hh:'%d hours',d:'a day',dd:'%d days',M:'1 month',MM:'%d months',y:'1 year',yy:'%d years'}});const remainingDate=(0,dayjs_1.default)(date).fromNow();return remainingDate;};exports.isProposalActive=isProposalActive;const calculateWeight=(totalSupply,balance,decimals)=>{const formattedTotalSupply=new bignumber_js_1.default(totalSupply).div(new bignumber_js_1.default(10).pow(decimals));const percent=balance.div(formattedTotalSupply).multipliedBy(100);return percent;};exports.calculateWeight=calculateWeight;const calculateChoiceTotal=(choice_voters,decimals)=>{let total=new bignumber_js_1.default(0);choice_voters.map(voter=>{total=new bignumber_js_1.default(voter.balanceAtReferenceBlock).plus(total);});const result=new bignumber_js_1.default(total).div(new bignumber_js_1.default(10).pow(decimals));return result;};exports.calculateChoiceTotal=calculateChoiceTotal;const calculateProposalTotal=(choices,decimals)=>{let total=new bignumber_js_1.default(0);choices.map(choice=>{choice.walletAddresses.map(elem=>{total=new bignumber_js_1.default(elem.balanceAtReferenceBlock).plus(total);});});const result=total.div(new bignumber_js_1.default(10).pow(decimals));return result;};exports.calculateProposalTotal=calculateProposalTotal;const getUsers=options=>{const addresses=[];options.map(option=>{return option.walletAddresses.map(wallet=>addresses.push(wallet.address));});return new Set(addresses);};const getTotalVoters=choices=>{const totalVoters=getUsers(choices);return totalVoters.size;};exports.getTotalVoters=getTotalVoters;const getTreasuryPercentage=(proposalTotal,totalSupply,decimals)=>{const formattedTotalSupply=new bignumber_js_1.default(totalSupply).div(new bignumber_js_1.default(10).pow(decimals));const value=proposalTotal.div(new bignumber_js_1.default(formattedTotalSupply)).multipliedBy(100);return value;};exports.getTreasuryPercentage=getTreasuryPercentage;const numberWithCommas=x=>{return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g,',');};exports.numberWithCommas=numberWithCommas;const SI_SYMBOL=['','k','M','G','T','P','E'];const nFormatter=(num,digits)=>{return num.toString();};exports.nFormatter=nFormatter;const formatByDecimals=(value,decimals)=>{return(0,exports.nFormatter)(new bignumber_js_1.default(value).div(new bignumber_js_1.default(10).pow(decimals)),1);};exports.formatByDecimals=formatByDecimals;const getSignature=(userAddress,wallet,data)=>__awaiter(void 0,void 0,void 0,function*(){const formattedInput=['Tezos Signed Message:',process.env.REACT_APP_BASE_URL,new Date().toISOString(),data].join(' ');const bytes=(0,tzip16_1.char2Bytes)(formattedInput);const payloadBytes='05'+'0100'+(0,tzip16_1.char2Bytes)(bytes.length.toString())+bytes;const payload={signingType:beacon_sdk_1.SigningType.MICHELINE,payload:payloadBytes,sourceAddress:userAddress};const signedPayload=yield wallet===null||wallet===void 0?void 0:wallet.client.requestSignPayload(payload);const {signature}=signedPayload;return{signature,payloadBytes};});exports.getSignature=getSignature; \ No newline at end of file diff --git a/dist/services/lite/utils.js.map b/dist/services/lite/utils.js.map deleted file mode 100644 index f553793..0000000 --- a/dist/services/lite/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/services/lite/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAAwD;AACxD,kDAAyB;AACzB,6EAAoD;AACpD,6EAAoD;AAEpD,kDAAmD;AAEnD,mDAAyE;AACzE,gEAAoC;AAEpC,4DAA+B;AAExB,MAAM,eAAe,GAAG,CAAO,OAAgB,EAAE,EAAE;IACxD,MAAM,GAAG,GAAG,eAAe,0BAAc,CAAC,OAAO,CAAC,kBAAkB,CAAA;IACpE,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAA;KAC1D;IAED,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAEpC,OAAO,MAAM,CAAC,KAAK,CAAA;AACrB,CAAC,CAAA,CAAA;AAXY,QAAA,eAAe,mBAW3B;AAEM,MAAM,8BAA8B,GAAG,CAAO,OAAgB,EAAE,OAAe,EAAE,KAAa,EAAE,EAAE;IACvG,MAAM,GAAG,GAAG,eAAe,0BAAc,CAAC,OAAO,CAAC,yBAAyB,OAAO,+CAA+C,KAAK,EAAE,CAAA;IACxI,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC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AC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjF,CAAC,CAAA;AAFY,QAAA,gBAAgB,oBAE5B;AAEM,MAAM,YAAY,GAAG,CAAO,WAAmB,EAAE,MAAoB,EAAE,IAAa,EAAE,EAAE;IAC7F,MAAM,cAAc,GAAW;QAC7B,uBAAuB;QACvB,OAAO,CAAC,GAAG,CAAC,kBAAkB;QAC9B,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACxB,IAAI;KACL,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAEX,MAAM,KAAK,GAAG,IAAA,mBAAU,EAAC,cAAc,CAAC,CAAA;IACxC,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,GAAG,IAAA,mBAAU,EAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,KAAK,CAAA;IAEhF,MAAM,OAAO,GAA4B;QACvC,WAAW,EAAE,wBAAW,CAAC,SAAS;QAClC,OAAO,EAAE,YAAY;QACrB,aAAa,EAAE,WAAW;KAC3B,CAAA;IAED,MAAM,aAAa,GAAG,MAAM,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAA,CAAA;IACtE,MAAM,EAAE,SAAS,EAAE,GAAG,aAAa,CAAA;IAEnC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA;AACpC,CAAC,CAAA,CAAA;AArBY,QAAA,YAAY,gBAqBxB"} \ No newline at end of file diff --git a/dist/services/services/dao/hooks/useDAO.js.map b/dist/services/services/dao/hooks/useDAO.js.map index 9ef78fb..8e46404 100644 --- a/dist/services/services/dao/hooks/useDAO.js.map +++ b/dist/services/services/dao/hooks/useDAO.js.map @@ -1 +1 @@ -{"version":3,"file":"useDAO.js","sourceRoot":"","sources":["../../../../../src/services/services/dao/hooks/useDAO.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAoC;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BAAgB;oBAC9B,YAAY,EAAE,KAAK;iBACpB,CAAC,CAAA;aACH;QACH,CAAC,CAAA,CAAC,EAAE,CAAA;IACN,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;IAE1C,MAAM,kBAAkB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACtC,IAAI,IAAI,IAAI,SAAS,EAAE;YACrB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;gBAC9B,MAAM,iBAAiB,GACrB,SAAS,CAAC,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC;oBAClD,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC;oBAC1C,CAAC,CAAC,CAAC,CAAC,aAAa,CAAA;gBAErB,MAAM,aAAa,GAAG,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAA;gBAE9D,uCACK,CAAC,KACJ,iBAAiB,EACjB,eAAe,EAAE,aAAa,CAAC,KAAK,CAAC,iBAAiB,CAAC,EACvD,aAAa,IACd;YACH,CAAC,CAAC,CAAA;SACH;IACH,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAA;IAErB,uBACE,IAAI;QACJ,SAAS,EACT,MAAM,EAAE,kBAAkB,IACvB,IAAI,EACR;AACH,CAAC,CAAA;AA5IY,QAAA,MAAM,UA4IlB"} \ No newline at end of file +{"version":3,"file":"useDAO.js","sourceRoot":"","sources":["../../../../../src/services/services/dao/hooks/useDAO.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAoC;AACpC,iCAAgE;AAChE,6CAAsC;AACtC,oFAAuF;AACvF,oEAAmE;AAEnE,6DAAyD;AACzD,wDAA2E;AAC3E,oEAAgE;AAChE,oDAAqD;AACr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AE,cAAc,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;IAE1C,MAAM,kBAAkB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACtC,IAAI,IAAI,IAAI,SAAS,EAAE;YACrB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;gBAC9B,MAAM,iBAAiB,GACrB,SAAS,CAAC,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC;oBAClD,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC;oBAC1C,CAAC,CAAC,CAAC,CAAC,aAAa,CAAA;gBAErB,MAAM,aAAa,GAAG,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAA;gBAE9D,uCACK,CAAC,KACJ,iBAAiB,EACjB,eAAe,EAAE,aAAa,CAAC,KAAK,CAAC,iBAAiB,CAAC,EACvD,aAAa,IACd;YACH,CAAC,CAAC,CAAA;SACH;IACH,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAA;IAErB,uBACE,IAAI;QACJ,SAAS,EACT,MAAM,EAAE,kBAAkB,IACvB,IAAI,EACR;AACH,CAAC,CAAA;AA5IY,QAAA,MAAM,UA4IlB"} \ No newline at end of file diff --git a/dist/services/services/dao/mappers/proposal/index.js b/dist/services/services/dao/mappers/proposal/index.js index 2f0ddf4..51c1b70 100644 --- a/dist/services/services/dao/mappers/proposal/index.js +++ b/dist/services/services/dao/mappers/proposal/index.js @@ -1 +1,96 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.mapTransfersArgs=exports.extractTransfersData=void 0;const utils_1=require('../../../../contracts/utils');const bignumber_js_1=__importDefault(require('bignumber.js'));const extractTransfersData=transfersDTO=>{const transfers=transfersDTO.map(transfer=>{if(transfer.hasOwnProperty('xtz_transfer_type')){const xtzTransfer=transfer;return{amount:xtzTransfer.xtz_transfer_type.amount,beneficiary:xtzTransfer.xtz_transfer_type.recipient,type:'XTZ'};}else if(transfer.hasOwnProperty('token_transfer_type')){const fa2Transfer=transfer;return{amount:fa2Transfer.token_transfer_type.transfer_list[0].txs[0].amount,beneficiary:fa2Transfer.token_transfer_type.transfer_list[0].txs[0].to_,contractAddress:fa2Transfer.token_transfer_type.contract_address,tokenId:fa2Transfer.token_transfer_type.transfer_list[0].txs[0].token_id,type:'FA2'};}else{const fa12Transfer=transfer;return{amount:fa12Transfer.legacy_token_transfer_type.transfer.target.value,beneficiary:fa12Transfer.legacy_token_transfer_type.transfer.target.to,contractAddress:fa12Transfer.legacy_token_transfer_type.contract_address,type:'FA1.2',tokenId:'0'};}});return transfers;};exports.extractTransfersData=extractTransfersData;const mapXTZTransfersArgs=transfer=>{return{xtz_transfer_type:{amount:(0,utils_1.xtzToMutez)(new bignumber_js_1.default(transfer.amount)).toNumber(),recipient:transfer.recipient}};};const mapFA2TransfersArgs=(transfer,daoAddress)=>{return{token_transfer_type:{contract_address:transfer.asset.contract,transfer_list:[{from_:daoAddress,txs:[{to_:transfer.recipient,token_id:transfer.asset.token_id,amount:(0,utils_1.formatUnits)(new bignumber_js_1.default(transfer.amount),transfer.asset.decimals).toNumber()}]}]}};};const mapFA12TransfersArgs=(transfer,daoAddress)=>{return{legacy_token_transfer_type:{contract_address:transfer.asset.contract,transfer:{from:daoAddress,target:{to:transfer.recipient,value:(0,utils_1.formatUnits)(new bignumber_js_1.default(transfer.amount),transfer.asset.decimals).toNumber()}}}};};const mapTransfersArgs=(transfers,daoAddress)=>{return transfers.map(transfer=>{if(transfer.type==='FA2'){return mapFA2TransfersArgs(transfer,daoAddress);}if(transfer.type==='FA1.2'){return mapFA12TransfersArgs(transfer,daoAddress);}return mapXTZTransfersArgs(transfer);});};exports.mapTransfersArgs=mapTransfersArgs; \ No newline at end of file +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.mapTransfersArgs = exports.extractTransfersData = void 0; +const utils_1 = require("../../../../contracts/utils"); +const bignumber_js_1 = __importDefault(require("bignumber.js")); +const extractTransfersData = (transfersDTO) => { + const transfers = transfersDTO.map((transfer) => { + if (transfer.hasOwnProperty("xtz_transfer_type")) { + const xtzTransfer = transfer; + return { + amount: xtzTransfer.xtz_transfer_type.amount, + beneficiary: xtzTransfer.xtz_transfer_type.recipient, + type: "XTZ" + }; + } + else if (transfer.hasOwnProperty("token_transfer_type")) { + const fa2Transfer = transfer; + return { + amount: fa2Transfer.token_transfer_type.transfer_list[0].txs[0].amount, + beneficiary: fa2Transfer.token_transfer_type.transfer_list[0].txs[0].to_, + contractAddress: fa2Transfer.token_transfer_type.contract_address, + tokenId: fa2Transfer.token_transfer_type.transfer_list[0].txs[0].token_id, + type: "FA2" + }; + } + else { + const fa12Transfer = transfer; + return { + amount: fa12Transfer.legacy_token_transfer_type.transfer.target.value, + beneficiary: fa12Transfer.legacy_token_transfer_type.transfer.target.to, + contractAddress: fa12Transfer.legacy_token_transfer_type.contract_address, + type: "FA1.2", + tokenId: "0" + }; + } + }); + return transfers; +}; +exports.extractTransfersData = extractTransfersData; +const mapXTZTransfersArgs = (transfer) => { + return { + xtz_transfer_type: { + amount: (0, utils_1.xtzToMutez)(new bignumber_js_1.default(transfer.amount)).toNumber(), + recipient: transfer.recipient + } + }; +}; +const mapFA2TransfersArgs = (transfer, daoAddress) => { + return { + token_transfer_type: { + contract_address: transfer.asset.contract, + transfer_list: [ + { + from_: daoAddress, + txs: [ + { + to_: transfer.recipient, + token_id: transfer.asset.token_id, + amount: (0, utils_1.formatUnits)(new bignumber_js_1.default(transfer.amount), transfer.asset.decimals).toNumber() + } + ] + } + ] + } + }; +}; +const mapFA12TransfersArgs = (transfer, daoAddress) => { + return { + legacy_token_transfer_type: { + contract_address: transfer.asset.contract, + transfer: { + from: daoAddress, + target: { + to: transfer.recipient, + value: (0, utils_1.formatUnits)(new bignumber_js_1.default(transfer.amount), transfer.asset.decimals).toNumber() + } + } + } + }; +}; +const mapTransfersArgs = (transfers, daoAddress) => { + return transfers.map(transfer => { + if (transfer.type === "FA2") { + return mapFA2TransfersArgs(transfer, daoAddress); + } + if (transfer.type === "FA1.2") { + return mapFA12TransfersArgs(transfer, daoAddress); + } + return mapXTZTransfersArgs(transfer); + }); +}; +exports.mapTransfersArgs = mapTransfersArgs; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/services/services/dao/mappers/proposal/types.js b/dist/services/services/dao/mappers/proposal/types.js index 007b85e..9c3de0f 100644 --- a/dist/services/services/dao/mappers/proposal/types.js +++ b/dist/services/services/dao/mappers/proposal/types.js @@ -1 +1,255 @@ -'use strict';var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.LambdaProposal=exports.Proposal=exports.ProposalStatus=exports.IndexerStatus=void 0;const bignumber_js_1=__importDefault(require('bignumber.js'));const dayjs_1=__importDefault(require('dayjs'));const proposelambda_1=__importDefault(require('../../../../contracts/baseDAO/lambdaDAO/michelson/proposelambda'));const michelson_encoder_1=require('@taquito/michelson-encoder');const michel_codec_1=require('@taquito/michel-codec');const utils_1=require('../../../../contracts/utils');const _1=require('.');const tzip16_1=require('@taquito/tzip16');const transfer_proposal_type_json_1=__importDefault(require('../../../../contracts/baseDAO/lambdaDAO/michelson/supported_lambda_types/transfer_proposal_type.json'));const transfer_proposal_type_before_fa1_2_json_1=__importDefault(require('../../../../contracts/baseDAO/lambdaDAO/michelson/supported_lambda_types/transfer_proposal_type_before_fa1.2.json'));const update_contract_delegate_proposal_json_1=__importDefault(require('../../../../contracts/baseDAO/lambdaDAO/michelson/supported_lambda_types/update_contract_delegate_proposal.json'));const update_guardian_proposal_json_1=__importDefault(require('../../../../contracts/baseDAO/lambdaDAO/michelson/supported_lambda_types/update_guardian_proposal.json'));const configuration_proposal_type_json_1=__importDefault(require('../../../../contracts/baseDAO/lambdaDAO/michelson/supported_lambda_types/configuration_proposal_type.json'));const config_1=require('../../../../config');var IndexerStatus;(function(IndexerStatus){IndexerStatus['CREATED']='created';IndexerStatus['DROPPED']='dropped';IndexerStatus['EXECUTED']='executed';IndexerStatus['REJECTED_AND_FLUSHED']='rejected_and_flushed';}(IndexerStatus||(exports.IndexerStatus=IndexerStatus={})));var ProposalStatus;(function(ProposalStatus){ProposalStatus['PENDING']='pending';ProposalStatus['ACTIVE']='active';ProposalStatus['PASSED']='passed';ProposalStatus['REJECTED']='rejected';ProposalStatus['NO_QUORUM']='no quorum';ProposalStatus['EXECUTABLE']='executable';ProposalStatus['DROPPED']='dropped';ProposalStatus['EXPIRED']='expired';ProposalStatus['EXECUTED']='executed';}(ProposalStatus||(exports.ProposalStatus=ProposalStatus={})));const baseProposalMetadata={config:[],update_guardian:'',update_contract_delegate:'',agoraPostId:'-1'};function getBaseMetadata(proposalMetadataDTO){const values=Object.assign({},baseProposalMetadata);if('execute_handler'in proposalMetadataDTO&&proposalMetadataDTO.execute_handler.packed_argument){const parser=new michel_codec_1.Parser();const unpacked_argument=(0,michel_codec_1.unpackDataBytes)({bytes:proposalMetadataDTO.execute_handler.packed_argument},parser.parseMichelineExpression(proposalMetadataDTO.execute_handler.packed_argument));if(proposalMetadataDTO.execute_handler.handler_name==='update_contract_delegate_proposal'){const update_contract_delegate_schema=new michelson_encoder_1.Schema(update_contract_delegate_proposal_json_1.default);const update_contract_delegate_data=update_contract_delegate_schema.Execute(unpacked_argument);values.update_contract_delegate=update_contract_delegate_data.Some;}if(proposalMetadataDTO.execute_handler.handler_name==='update_guardian_proposal'){const update_guardian_schema=new michelson_encoder_1.Schema(update_guardian_proposal_json_1.default);const update_guardian_data=update_guardian_schema.Execute(unpacked_argument);values.update_guardian=update_guardian_data;}if(proposalMetadataDTO.execute_handler.handler_name==='configuration_proposal'){const configuration_proposal_schema=new michelson_encoder_1.Schema(configuration_proposal_type_json_1.default);const configuration_proposal_data=configuration_proposal_schema.Execute(unpacked_argument);values.config=Object.entries(configuration_proposal_data).filter(([_,value])=>!!value).map(([key,value])=>({key:key,value:value.Some}));}}return values;}const INDEXER_TO_PROPOSAL_STATUS_MAP={created:ProposalStatus.PENDING,rejected_and_flushed:ProposalStatus.DROPPED,dropped:ProposalStatus.DROPPED,executed:ProposalStatus.EXECUTED};class Proposal{constructor(dto,dao){this.type=dao.data.type;this.id=dto.key;this.dao=dao;this.votingPeriodNum=Number(dto.voting_stage_num);this.voters=dto.votes.map(vote=>({address:vote.holder.address,value:(0,utils_1.parseUnits)(new bignumber_js_1.default(vote.amount),this.dao.data.token.decimals),support:Boolean(vote.support),staked:vote.staked}));this.upVotes=this.voters.reduce((acc,voter)=>{if(voter.support){return bignumber_js_1.default.sum(acc,voter.value);}return acc;},new bignumber_js_1.default(0));this.downVotes=this.voters.reduce((acc,voter)=>{if(!voter.support){return bignumber_js_1.default.sum(acc,voter.value);}return acc;},new bignumber_js_1.default(0));this.proposer=dto.holder.address;this.startDate=dto.start_date;this.startLevel=dto.start_level;this.quorumThreshold=(0,utils_1.parseUnits)(new bignumber_js_1.default(dto.quorum_threshold),dao.data.token.decimals);this.period=Number(dto.voting_stage_num)-1;this.indexer_status_history=dto.status_updates.map(update=>({timestamp:`Block ${update.level} (${(0,dayjs_1.default)(update.timestamp).format('LLL')})`,level:update.level,description:update.proposal_status.description}));this.proposerFrozenTokens=dto.proposer_frozen_token;this.packedMetadata=dto.metadata;}getStatus(currentLevel){if(!this.cachedStatus||currentLevel!==this.cachedStatus.level){const activeThreshold=this.votingPeriodNum*Number(this.dao.data.period)+this.dao.data.start_level;const passedOrRejectedThreshold=activeThreshold+Number(this.dao.data.period);const flushThreshold=this.startLevel+Number(this.dao.data.proposal_flush_level);const expiredThreshold=this.startLevel+Number(this.dao.data.proposal_expired_level);const statusHistory=this.indexer_status_history.map(update=>({timestamp:update.timestamp,status:INDEXER_TO_PROPOSAL_STATUS_MAP[update.description],level:update.level}));if(currentLevel>=activeThreshold){statusHistory.push({status:ProposalStatus.ACTIVE,timestamp:`Level ${activeThreshold}`,level:activeThreshold});}if(currentLevel>=passedOrRejectedThreshold){if(this.downVotes.isGreaterThanOrEqualTo(this.quorumThreshold)){statusHistory.push({status:ProposalStatus.REJECTED,timestamp:`Level ${passedOrRejectedThreshold}`,level:passedOrRejectedThreshold});}else if(this.upVotes.isGreaterThanOrEqualTo(this.quorumThreshold)){statusHistory.push({status:ProposalStatus.PASSED,timestamp:`Level ${passedOrRejectedThreshold}`,level:passedOrRejectedThreshold});}else{statusHistory.push({status:ProposalStatus.NO_QUORUM,timestamp:`Level ${passedOrRejectedThreshold}`,level:passedOrRejectedThreshold});}}if(currentLevel>=flushThreshold&&statusHistory.some(s=>s.status===ProposalStatus.PASSED)){statusHistory.push({status:ProposalStatus.EXECUTABLE,timestamp:`Level ${this.startLevel+this.dao.data.proposal_flush_level}`,level:flushThreshold});}if(currentLevel>=expiredThreshold){statusHistory.push({status:ProposalStatus.EXPIRED,timestamp:`Level ${this.startLevel+this.dao.data.proposal_expired_level}`,level:expiredThreshold});}const orderedStatusHistory=statusHistory.sort((a,b)=>a.level-b.level);const finalStatuses=[ProposalStatus.DROPPED,ProposalStatus.EXECUTED];const finalStatusIndex=statusHistory.findIndex(a=>finalStatuses.includes(a.status));const filteredStatusHistory=finalStatusIndex>-1?orderedStatusHistory.splice(0,finalStatusIndex+1):orderedStatusHistory;this.cachedStatus={status:filteredStatusHistory.slice(-1)[0].status,statusHistory:filteredStatusHistory,level:currentLevel};}return this.cachedStatus;}}exports.Proposal=Proposal;class LambdaProposal extends Proposal{constructor(){super(...arguments);this.cachedMetadata=null;}get metadata(){var _a;let lambdaMetadata={lambdaType:'',lambdaHandler:{},config:[],transfers:[],update_contract_delegate:'',update_guardian:'',agoraPostId:'',list:[]};if(this.cachedMetadata!==null){return this.cachedMetadata;}const parser=new michel_codec_1.Parser();const typ=parser.parseMichelineExpression(proposelambda_1.default);const schema=new michelson_encoder_1.Schema(typ);const unpackedMetadata=(0,michel_codec_1.unpackDataBytes)({bytes:this.packedMetadata},typ);const proposalMetadataDTO=schema.Execute(unpackedMetadata);const baseMetadata=getBaseMetadata(proposalMetadataDTO);lambdaMetadata=Object.assign(Object.assign({},baseMetadata),{lambdaType:'',lambdaHandler:{},list:[],transfers:[]});if('add_handler'in proposalMetadataDTO){lambdaMetadata.lambdaType='add_handler';lambdaMetadata.lambdaHandler=proposalMetadataDTO.add_handler;}if('remove_handler'in proposalMetadataDTO){lambdaMetadata.lambdaType='remove_handler';lambdaMetadata.lambdaHandler=proposalMetadataDTO.remove_handler;}if('execute_handler'in proposalMetadataDTO){lambdaMetadata.lambdaType='execute_handler';lambdaMetadata.lambdaHandler=proposalMetadataDTO.execute_handler;try{lambdaMetadata.lambdaHandler.unpacked_argument=(0,michel_codec_1.unpackDataBytes)({bytes:lambdaMetadata.lambdaHandler.packed_argument},parser.parseMichelineExpression((_a=lambdaMetadata.lambdaHandler)===null||_a===void 0?void 0:_a.packed_argument));if(lambdaMetadata.lambdaHandler.handler_name==='transfer_proposal'){const transfer_michelson=this.dao.data.address===config_1.HUMANITEZ_DAO?transfer_proposal_type_before_fa1_2_json_1.default:transfer_proposal_type_json_1.default;const transfer_arg_schema=new michelson_encoder_1.Schema(transfer_michelson);const transfer_proposal_data=transfer_arg_schema.Execute(lambdaMetadata.lambdaHandler.unpacked_argument);const {agora_post_id,registry_diff,transfers}=transfer_proposal_data;lambdaMetadata.agoraPostId=agora_post_id;if(transfers){lambdaMetadata.transfers=(0,_1.extractTransfersData)(transfers);}if(registry_diff){lambdaMetadata.list=registry_diff.map(item=>({key:(0,tzip16_1.bytes2Char)(item[0]),value:(0,tzip16_1.bytes2Char)(item[1])}));}}}catch(error){lambdaMetadata.lambdaHandler.unpacked_argument={};}finally{delete lambdaMetadata.lambdaHandler.packed_argument;}}this.cachedMetadata=Object.assign({},lambdaMetadata);return this.cachedMetadata;}}exports.LambdaProposal=LambdaProposal; \ No newline at end of file +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LambdaProposal = exports.Proposal = exports.ProposalStatus = exports.IndexerStatus = void 0; +const bignumber_js_1 = __importDefault(require("bignumber.js")); +const dayjs_1 = __importDefault(require("dayjs")); +const proposelambda_1 = __importDefault(require("../../../../contracts/baseDAO/lambdaDAO/michelson/proposelambda")); +const michelson_encoder_1 = require("@taquito/michelson-encoder"); +const michel_codec_1 = require("@taquito/michel-codec"); +const utils_1 = require("../../../../contracts/utils"); +const _1 = require("."); +const tzip16_1 = require("@taquito/tzip16"); +const transfer_proposal_type_json_1 = __importDefault(require("../../../../contracts/baseDAO/lambdaDAO/michelson/supported_lambda_types/transfer_proposal_type.json")); +const transfer_proposal_type_before_fa1_2_json_1 = __importDefault(require("../../../../contracts/baseDAO/lambdaDAO/michelson/supported_lambda_types/transfer_proposal_type_before_fa1.2.json")); +const update_contract_delegate_proposal_json_1 = __importDefault(require("../../../../contracts/baseDAO/lambdaDAO/michelson/supported_lambda_types/update_contract_delegate_proposal.json")); +const update_guardian_proposal_json_1 = __importDefault(require("../../../../contracts/baseDAO/lambdaDAO/michelson/supported_lambda_types/update_guardian_proposal.json")); +const configuration_proposal_type_json_1 = __importDefault(require("../../../../contracts/baseDAO/lambdaDAO/michelson/supported_lambda_types/configuration_proposal_type.json")); +const config_1 = require("../../../../config"); +var IndexerStatus; +(function (IndexerStatus) { + IndexerStatus["CREATED"] = "created"; + IndexerStatus["DROPPED"] = "dropped"; + IndexerStatus["EXECUTED"] = "executed"; + IndexerStatus["REJECTED_AND_FLUSHED"] = "rejected_and_flushed"; +})(IndexerStatus || (exports.IndexerStatus = IndexerStatus = {})); +var ProposalStatus; +(function (ProposalStatus) { + ProposalStatus["PENDING"] = "pending"; + ProposalStatus["ACTIVE"] = "active"; + ProposalStatus["PASSED"] = "passed"; + ProposalStatus["REJECTED"] = "rejected"; + ProposalStatus["NO_QUORUM"] = "no quorum"; + ProposalStatus["EXECUTABLE"] = "executable"; + ProposalStatus["DROPPED"] = "dropped"; + ProposalStatus["EXPIRED"] = "expired"; + ProposalStatus["EXECUTED"] = "executed"; +})(ProposalStatus || (exports.ProposalStatus = ProposalStatus = {})); +const baseProposalMetadata = { + config: [], + update_guardian: "", + update_contract_delegate: "", + agoraPostId: "-1" +}; +function getBaseMetadata(proposalMetadataDTO) { + const values = Object.assign({}, baseProposalMetadata); + if ("execute_handler" in proposalMetadataDTO && proposalMetadataDTO.execute_handler.packed_argument) { + const parser = new michel_codec_1.Parser(); + const unpacked_argument = (0, michel_codec_1.unpackDataBytes)({ bytes: proposalMetadataDTO.execute_handler.packed_argument }, parser.parseMichelineExpression(proposalMetadataDTO.execute_handler.packed_argument)); + if (proposalMetadataDTO.execute_handler.handler_name === "update_contract_delegate_proposal") { + const update_contract_delegate_schema = new michelson_encoder_1.Schema(update_contract_delegate_proposal_json_1.default); + const update_contract_delegate_data = update_contract_delegate_schema.Execute(unpacked_argument); + values.update_contract_delegate = update_contract_delegate_data.Some; + } + if (proposalMetadataDTO.execute_handler.handler_name === "update_guardian_proposal") { + const update_guardian_schema = new michelson_encoder_1.Schema(update_guardian_proposal_json_1.default); + const update_guardian_data = update_guardian_schema.Execute(unpacked_argument); + values.update_guardian = update_guardian_data; + } + if (proposalMetadataDTO.execute_handler.handler_name === "configuration_proposal") { + const configuration_proposal_schema = new michelson_encoder_1.Schema(configuration_proposal_type_json_1.default); + const configuration_proposal_data = configuration_proposal_schema.Execute(unpacked_argument); + values.config = Object.entries(configuration_proposal_data) + .filter(([_, value]) => !!value) + .map(([key, value]) => ({ + key: key, + value: value.Some + })); + } + } + return values; +} +const INDEXER_TO_PROPOSAL_STATUS_MAP = { + created: ProposalStatus.PENDING, + rejected_and_flushed: ProposalStatus.DROPPED, + dropped: ProposalStatus.DROPPED, + executed: ProposalStatus.EXECUTED +}; +class Proposal { + constructor(dto, dao) { + this.type = dao.data.type; + this.id = dto.key; + this.dao = dao; + this.votingPeriodNum = Number(dto.voting_stage_num); + this.voters = dto.votes.map(vote => ({ + address: vote.holder.address, + value: (0, utils_1.parseUnits)(new bignumber_js_1.default(vote.amount), this.dao.data.token.decimals), + support: Boolean(vote.support), + staked: vote.staked + })); + this.upVotes = this.voters.reduce((acc, voter) => { + if (voter.support) { + return bignumber_js_1.default.sum(acc, voter.value); + } + return acc; + }, new bignumber_js_1.default(0)); + this.downVotes = this.voters.reduce((acc, voter) => { + if (!voter.support) { + return bignumber_js_1.default.sum(acc, voter.value); + } + return acc; + }, new bignumber_js_1.default(0)); + this.proposer = dto.holder.address; + this.startDate = dto.start_date; + this.startLevel = dto.start_level; + this.quorumThreshold = (0, utils_1.parseUnits)(new bignumber_js_1.default(dto.quorum_threshold), dao.data.token.decimals); + this.period = Number(dto.voting_stage_num) - 1; + this.indexer_status_history = dto.status_updates.map(update => ({ + timestamp: `Block ${update.level} (${(0, dayjs_1.default)(update.timestamp).format("LLL")})`, + level: update.level, + description: update.proposal_status.description + })); + this.proposerFrozenTokens = dto.proposer_frozen_token; + this.packedMetadata = dto.metadata; + } + getStatus(currentLevel) { + if (!this.cachedStatus || currentLevel !== this.cachedStatus.level) { + const activeThreshold = this.votingPeriodNum * Number(this.dao.data.period) + this.dao.data.start_level; + const passedOrRejectedThreshold = activeThreshold + Number(this.dao.data.period); + const flushThreshold = this.startLevel + Number(this.dao.data.proposal_flush_level); + const expiredThreshold = this.startLevel + Number(this.dao.data.proposal_expired_level); + const statusHistory = this.indexer_status_history.map(update => ({ + timestamp: update.timestamp, + status: INDEXER_TO_PROPOSAL_STATUS_MAP[update.description], + level: update.level + })); + if (currentLevel >= activeThreshold) { + statusHistory.push({ + status: ProposalStatus.ACTIVE, + timestamp: `Level ${activeThreshold}`, + level: activeThreshold + }); + } + if (currentLevel >= passedOrRejectedThreshold) { + if (this.downVotes.isGreaterThanOrEqualTo(this.quorumThreshold)) { + statusHistory.push({ + status: ProposalStatus.REJECTED, + timestamp: `Level ${passedOrRejectedThreshold}`, + level: passedOrRejectedThreshold + }); + } + else if (this.upVotes.isGreaterThanOrEqualTo(this.quorumThreshold)) { + statusHistory.push({ + status: ProposalStatus.PASSED, + timestamp: `Level ${passedOrRejectedThreshold}`, + level: passedOrRejectedThreshold + }); + } + else { + statusHistory.push({ + status: ProposalStatus.NO_QUORUM, + timestamp: `Level ${passedOrRejectedThreshold}`, + level: passedOrRejectedThreshold + }); + } + } + if (currentLevel >= flushThreshold && statusHistory.some(s => s.status === ProposalStatus.PASSED)) { + statusHistory.push({ + status: ProposalStatus.EXECUTABLE, + timestamp: `Level ${this.startLevel + this.dao.data.proposal_flush_level}`, + level: flushThreshold + }); + } + if (currentLevel >= expiredThreshold) { + statusHistory.push({ + status: ProposalStatus.EXPIRED, + timestamp: `Level ${this.startLevel + this.dao.data.proposal_expired_level}`, + level: expiredThreshold + }); + } + const orderedStatusHistory = statusHistory.sort((a, b) => a.level - b.level); + const finalStatuses = [ProposalStatus.DROPPED, ProposalStatus.EXECUTED]; + const finalStatusIndex = statusHistory.findIndex(a => finalStatuses.includes(a.status)); + const filteredStatusHistory = finalStatusIndex > -1 ? orderedStatusHistory.splice(0, finalStatusIndex + 1) : orderedStatusHistory; + this.cachedStatus = { + status: filteredStatusHistory.slice(-1)[0].status, + statusHistory: filteredStatusHistory, + level: currentLevel + }; + } + return this.cachedStatus; + } +} +exports.Proposal = Proposal; +class LambdaProposal extends Proposal { + constructor() { + super(...arguments); + this.cachedMetadata = null; + } + get metadata() { + var _a; + let lambdaMetadata = { + lambdaType: "", + lambdaHandler: {}, + config: [], + transfers: [], + update_contract_delegate: "", + update_guardian: "", + agoraPostId: "", + list: [] + }; + if (this.cachedMetadata !== null) { + return this.cachedMetadata; + } + const parser = new michel_codec_1.Parser(); + const typ = parser.parseMichelineExpression(proposelambda_1.default); + const schema = new michelson_encoder_1.Schema(typ); + const unpackedMetadata = (0, michel_codec_1.unpackDataBytes)({ bytes: this.packedMetadata }, typ); + const proposalMetadataDTO = schema.Execute(unpackedMetadata); + const baseMetadata = getBaseMetadata(proposalMetadataDTO); + lambdaMetadata = Object.assign(Object.assign({}, baseMetadata), { lambdaType: "", lambdaHandler: {}, list: [], transfers: [] }); + if ("add_handler" in proposalMetadataDTO) { + lambdaMetadata.lambdaType = "add_handler"; + lambdaMetadata.lambdaHandler = proposalMetadataDTO.add_handler; + } + if ("remove_handler" in proposalMetadataDTO) { + lambdaMetadata.lambdaType = "remove_handler"; + lambdaMetadata.lambdaHandler = proposalMetadataDTO.remove_handler; + } + if ("execute_handler" in proposalMetadataDTO) { + lambdaMetadata.lambdaType = "execute_handler"; + lambdaMetadata.lambdaHandler = proposalMetadataDTO.execute_handler; + try { + lambdaMetadata.lambdaHandler.unpacked_argument = (0, michel_codec_1.unpackDataBytes)({ bytes: lambdaMetadata.lambdaHandler.packed_argument }, parser.parseMichelineExpression((_a = lambdaMetadata.lambdaHandler) === null || _a === void 0 ? void 0 : _a.packed_argument)); + if (lambdaMetadata.lambdaHandler.handler_name === "transfer_proposal") { + const transfer_michelson = this.dao.data.address === config_1.HUMANITEZ_DAO ? transfer_proposal_type_before_fa1_2_json_1.default : transfer_proposal_type_json_1.default; + const transfer_arg_schema = new michelson_encoder_1.Schema(transfer_michelson); + const transfer_proposal_data = transfer_arg_schema.Execute(lambdaMetadata.lambdaHandler.unpacked_argument); + const { agora_post_id, registry_diff, transfers } = transfer_proposal_data; + lambdaMetadata.agoraPostId = agora_post_id; + if (transfers) { + lambdaMetadata.transfers = (0, _1.extractTransfersData)(transfers); + } + if (registry_diff) { + lambdaMetadata.list = registry_diff.map((item) => ({ + key: (0, tzip16_1.bytes2Char)(item[0]), + value: (0, tzip16_1.bytes2Char)(item[1]) + })); + } + } + } + catch (error) { + lambdaMetadata.lambdaHandler.unpacked_argument = {}; + } + finally { + delete lambdaMetadata.lambdaHandler.packed_argument; + } + } + this.cachedMetadata = Object.assign({}, lambdaMetadata); + return this.cachedMetadata; + } +} +exports.LambdaProposal = LambdaProposal; +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/services/services/dao/mappers/proposal/types.js.map b/dist/services/services/dao/mappers/proposal/types.js.map index 4a65721..aa19f36 100644 --- a/dist/services/services/dao/mappers/proposal/types.js.map +++ b/dist/services/services/dao/mappers/proposal/types.js.map @@ -1 +1 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/services/services/dao/mappers/proposal/types.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAoC;AACpC,kDAAyB;AACzB,iHAA4F;AAC5F,kEAAmD;AACnD,wDAAmG;AACnG,oDAAqD;AAErD,wBAAwC;AACxC,4CAA4C;AAG5C,uKAA8I;AAC9I,iMAAkK;AAClK,6LAAqK;AACrK,2KAAmJ;AACnJ,iLAA6J;AAE7J,4CAA+C;AAE/C,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,8DAA6C,CAAA;AAC/C,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,cAUX;AAVD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;IACzB,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;AACvB,CAAC,EAVW,cAAc,8BAAd,cAAc,QAUzB;AAoBD,MAAM,oBAAoB,GAAyB;IACjD,MAAM,EAAE,EAAE;IACV,eAAe,EAAE,EAAE;IACnB,wBAAwB,EAAE,EAAE;IAC5B,WAAW,EAAE,IAAI;CAClB,CAAA;AAED,SAAS,eAAe,CAAC,mBAAqC;IAC5D,MAAM,MAAM,qBAAQ,oBAAoB,CAAE,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"types.js","sourceRoot":"","sources":["../../../../../../src/services/services/dao/mappers/proposal/types.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAoC;AACpC,kDAAyB;AACzB,iHAA4F;AAC5F,kEAAmD;AACnD,wDAAmG;AACnG,oDAAqD;AAErD,wBAAwC;AACxC,4CAA4C;AAE5C,uKAA8I;AAC9I,iMAAkK;AAClK,6LAAqK;AACrK,2KAAmJ;AACnJ,iLAA6J;AAE7J,4CAA+C;AAG/C,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,8DAA6C,CAAA;AAC/C,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,cAUX;AAVD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;IACzB,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;AACvB,CAAC,EAVW,cAAc,8BAAd,cAAc,QAUzB;AAoBD,MAAM,oBAAoB,GAAyB;IACjD,MAAM,EAAE,EAAE;IACV,eAAe,EAAE,EAAE;IACnB,wBAAwB,EAAE,EAAE;IAC5B,WAAW,EAAE,IAAI;CAClB,CAAA;AAED,SAAS,eAAe,CAAC,mBAAqC;IAC5D,MAAM,MAAM,qBAAQ,oBAAoB,CAAE,CAAA;IAE1C,IAAI,iBAAiB,IAAI,mBAAmB,IAAI,mBAAmB,CAAC,eAAe,CAAC,eAAe,EAAE;QACnG,MAAM,MAAM,GAAG,IAAI,qBAAM,EAAE,CAAA;QAC3B,MAAM,iBAAiB,GAAG,IAAA,8BAAe,EACvC,EAAE,KAAK,EAAE,mBAAmB,CAAC,eAAe,CAAC,eAAe,EAAE,EAC9D,MAAM,CAAC,wBAAwB,CAAC,mBAAmB,CAAC,eAAe,CAAC,eAAe,CA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AAA;oBAC3E,MAAM,sBAAsB,GAAG,mBAAmB,CAAC,OAAO,CAAC,cAAc,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAA;oBAE1G,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,sBAAsB,CAAA;oBAC1E,cAAc,CAAC,WAAW,GAAG,aAAa,CAAA;oBAE1C,IAAI,SAAS,EAAE;wBACb,cAAc,CAAC,SAAS,GAAG,IAAA,uBAAoB,EAAC,SAAS,CAAC,CAAA;qBAC3D;oBAED,IAAI,aAAa,EAAE;wBACjB,cAAc,CAAC,IAAI,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,CAAC;4BACtD,GAAG,EAAE,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;4BACxB,KAAK,EAAE,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;yBAC3B,CAAC,CAAC,CAAA;qBACJ;iBACF;aACF;YAAC,OAAO,KAAK,EAAE;gBACd,cAAc,CAAC,aAAa,CAAC,iBAAiB,GAAG,EAAE,CAAA;aACpD;oBAAS;gBACR,OAAO,cAAc,CAAC,aAAa,CAAC,eAAe,CAAA;aACpD;SACF;QAED,IAAI,CAAC,cAAc,qBAAQ,cAAc,CAAE,CAAA;QAC3C,OAAO,IAAI,CAAC,cAAc,CAAA;IAC5B,CAAC;CACF;AAnFD,wCAmFC"} \ No newline at end of file diff --git a/dist/services/services/dao/queries.js b/dist/services/services/dao/queries.js index cd6bd5d..62e78fd 100644 --- a/dist/services/services/dao/queries.js +++ b/dist/services/services/dao/queries.js @@ -1,4 +1,8 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.GET_XTZ_TRANSFERS=exports.GET_PROPOSAL_QUERY=exports.GET_PROPOSALS_QUERY=exports.GET_DAO_QUERY=exports.GET_DAOS_QUERY_V2=exports.GET_DAOS_QUERY=void 0;const graphql_request_1=require('graphql-request');exports.GET_DAOS_QUERY=(0,graphql_request_1.gql)` +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GET_XTZ_TRANSFERS = exports.GET_PROPOSAL_QUERY = exports.GET_PROPOSALS_QUERY = exports.GET_DAO_QUERY = exports.GET_DAOS_QUERY_V2 = exports.GET_DAOS_QUERY = void 0; +const graphql_request_1 = require("graphql-request"); +exports.GET_DAOS_QUERY = (0, graphql_request_1.gql) ` query getDaos($network: String!) { daos(where: { network: { _eq: $network } }) { dao_type { @@ -33,7 +37,8 @@ } } } -`;exports.GET_DAOS_QUERY_V2=(0,graphql_request_1.gql)` +`; +exports.GET_DAOS_QUERY_V2 = (0, graphql_request_1.gql) ` query getDaos($network: String!) { daos(where: { network: { _eq: $network } }) { dao_type { @@ -68,7 +73,8 @@ } } } -`;exports.GET_DAO_QUERY=(0,graphql_request_1.gql)` +`; +exports.GET_DAO_QUERY = (0, graphql_request_1.gql) ` query getDao($address: String!) { daos(where: { address: { _eq: $address } }) { dao_type { @@ -146,7 +152,8 @@ } } } -`;exports.GET_PROPOSALS_QUERY=(0,graphql_request_1.gql)` +`; +exports.GET_PROPOSALS_QUERY = (0, graphql_request_1.gql) ` query getDao($address: String!) { daos(where: { address: { _eq: $address } }) { proposals { @@ -188,7 +195,8 @@ } } } -`;exports.GET_PROPOSAL_QUERY=(0,graphql_request_1.gql)` +`; +exports.GET_PROPOSAL_QUERY = (0, graphql_request_1.gql) ` query getDao($address: String!, $proposalKey: String!) { daos(where: { _and: { address: { _eq: $address } } }) { proposals(where: { key: { _eq: $proposalKey } }) { @@ -230,7 +238,8 @@ } } } -`;exports.GET_XTZ_TRANSFERS=(0,graphql_request_1.gql)` +`; +exports.GET_XTZ_TRANSFERS = (0, graphql_request_1.gql) ` query getTransfers($address: String!) { transfer(where: { dao: { address: { _eq: $address } } }) { decimal_amount @@ -240,4 +249,5 @@ hash } } -`; \ No newline at end of file +`; +//# sourceMappingURL=queries.js.map \ No newline at end of file diff --git a/dist/services/services/dao/services.js b/dist/services/services/dao/services.js index 07c0119..a38a797 100644 --- a/dist/services/services/dao/services.js +++ b/dist/services/services/dao/services.js @@ -1 +1,67 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.getXTZTransfers=exports.getProposal=exports.getProposals=exports.getDAOs=exports.getDAO=void 0;const graphql_1=require('../graphql');const queries_1=require('./queries');const types_1=require('./mappers/proposal/types');const dayjs_1=__importDefault(require('dayjs'));const getDAO=address=>__awaiter(void 0,void 0,void 0,function*(){return yield graphql_1.client.request(queries_1.GET_DAO_QUERY,{address});});exports.getDAO=getDAO;const getDAOs=network=>__awaiter(void 0,void 0,void 0,function*(){const response=yield graphql_1.client.request(queries_1.GET_DAOS_QUERY,{network});const response_v2=yield graphql_1.client_v2.request(queries_1.GET_DAOS_QUERY_V2,{network});const daos=response.daos;const daos_v2=response_v2.daos;return[...daos,...daos_v2];});exports.getDAOs=getDAOs;const getProposals=dao=>__awaiter(void 0,void 0,void 0,function*(){const response=yield graphql_1.client.request(queries_1.GET_PROPOSALS_QUERY,{address:dao.data.address});const fetched=response.daos[0];let proposals;switch(dao.data.type){case'lambda':proposals=fetched.proposals.map(proposal=>new types_1.LambdaProposal(proposal,dao));break;default:throw new Error(`DAO with address '${dao.data.address}' has an unrecognized type '${dao.data.type}'`);}return proposals.sort((a,b)=>(0,dayjs_1.default)(b.startDate).isAfter((0,dayjs_1.default)(a.startDate))?1:-1);});exports.getProposals=getProposals;const getProposal=(address,proposalKey)=>__awaiter(void 0,void 0,void 0,function*(){return yield graphql_1.client.request(queries_1.GET_PROPOSAL_QUERY,{address,proposalKey});});exports.getProposal=getProposal;const getXTZTransfers=address=>__awaiter(void 0,void 0,void 0,function*(){return yield graphql_1.client.request(queries_1.GET_XTZ_TRANSFERS,{address});});exports.getXTZTransfers=getXTZTransfers; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getXTZTransfers = exports.getProposal = exports.getProposals = exports.getDAOs = exports.getDAO = void 0; +const graphql_1 = require("../graphql"); +const queries_1 = require("./queries"); +const types_1 = require("./mappers/proposal/types"); +const dayjs_1 = __importDefault(require("dayjs")); +const getDAO = (address) => __awaiter(void 0, void 0, void 0, function* () { + return yield graphql_1.client.request(queries_1.GET_DAO_QUERY, { + address + }); +}); +exports.getDAO = getDAO; +const getDAOs = (network) => __awaiter(void 0, void 0, void 0, function* () { + const response = yield graphql_1.client.request(queries_1.GET_DAOS_QUERY, { + network + }); + const response_v2 = yield graphql_1.client_v2.request(queries_1.GET_DAOS_QUERY_V2, { + network + }); + const daos = response.daos; + const daos_v2 = response_v2.daos; + return [...daos, ...daos_v2]; +}); +exports.getDAOs = getDAOs; +const getProposals = (dao) => __awaiter(void 0, void 0, void 0, function* () { + const response = yield graphql_1.client.request(queries_1.GET_PROPOSALS_QUERY, { + address: dao.data.address + }); + const fetched = response.daos[0]; + let proposals; + switch (dao.data.type) { + case "lambda": + proposals = fetched.proposals.map(proposal => new types_1.LambdaProposal(proposal, dao)); + break; + default: + throw new Error(`DAO with address '${dao.data.address}' has an unrecognized type '${dao.data.type}'`); + } + return proposals.sort((a, b) => ((0, dayjs_1.default)(b.startDate).isAfter((0, dayjs_1.default)(a.startDate)) ? 1 : -1)); +}); +exports.getProposals = getProposals; +const getProposal = (address, proposalKey) => __awaiter(void 0, void 0, void 0, function* () { + return yield graphql_1.client.request(queries_1.GET_PROPOSAL_QUERY, { + address, + proposalKey + }); +}); +exports.getProposal = getProposal; +const getXTZTransfers = (address) => __awaiter(void 0, void 0, void 0, function* () { + return yield graphql_1.client.request(queries_1.GET_XTZ_TRANSFERS, { + address + }); +}); +exports.getXTZTransfers = getXTZTransfers; +//# sourceMappingURL=services.js.map \ No newline at end of file diff --git a/dist/services/services/graphql.js b/dist/services/services/graphql.js index dfaa98f..88fed16 100644 --- a/dist/services/services/graphql.js +++ b/dist/services/services/graphql.js @@ -1 +1,28 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.client_v2=exports.client=void 0;const graphql_request_1=require('graphql-request');const config_1=require('../config');const BASE_URL=(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_HASURA_URL);const BASE_URL_V2=(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_HASURA_URL_V2);const HASURA_ADMIN_SECRET=(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_HASURA_ADMIN_SECRET);const HASURA_ADMIN_SECRET_V2=(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_HASURA_ADMIN_SECRET_V2);if(!BASE_URL){throw new Error(`${config_1.EnvKey.REACT_APP_HASURA_URL} env variable is missing`);}if(!HASURA_ADMIN_SECRET){throw new Error(`${config_1.EnvKey.REACT_APP_HASURA_ADMIN_SECRET} env variable is missing`);}exports.client=new graphql_request_1.GraphQLClient(BASE_URL,{headers:{'content-type':'application/json','x-hasura-admin-secret':HASURA_ADMIN_SECRET}});exports.client_v2=new graphql_request_1.GraphQLClient(BASE_URL_V2,{headers:{'content-type':'application/json','x-hasura-admin-secret':HASURA_ADMIN_SECRET_V2}}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.client_v2 = exports.client = void 0; +const graphql_request_1 = require("graphql-request"); +const config_1 = require("../config"); +const BASE_URL = (0, config_1.getEnv)(config_1.EnvKey.REACT_APP_HASURA_URL); +const BASE_URL_V2 = (0, config_1.getEnv)(config_1.EnvKey.REACT_APP_HASURA_URL_V2); +const HASURA_ADMIN_SECRET = (0, config_1.getEnv)(config_1.EnvKey.REACT_APP_HASURA_ADMIN_SECRET); +const HASURA_ADMIN_SECRET_V2 = (0, config_1.getEnv)(config_1.EnvKey.REACT_APP_HASURA_ADMIN_SECRET_V2); +if (!BASE_URL) { + throw new Error(`${config_1.EnvKey.REACT_APP_HASURA_URL} env variable is missing`); +} +if (!HASURA_ADMIN_SECRET) { + throw new Error(`${config_1.EnvKey.REACT_APP_HASURA_ADMIN_SECRET} env variable is missing`); +} +exports.client = new graphql_request_1.GraphQLClient(BASE_URL, { + headers: { + "content-type": "application/json", + "x-hasura-admin-secret": HASURA_ADMIN_SECRET + } +}); +exports.client_v2 = new graphql_request_1.GraphQLClient(BASE_URL_V2, { + headers: { + "content-type": "application/json", + "x-hasura-admin-secret": HASURA_ADMIN_SECRET_V2 + } +}); +//# sourceMappingURL=graphql.js.map \ No newline at end of file diff --git a/dist/services/services/lite/lite-services.js b/dist/services/services/lite/lite-services.js index 0ebe526..e5c1385 100644 --- a/dist/services/services/lite/lite-services.js +++ b/dist/services/services/lite/lite-services.js @@ -1 +1,167 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.fetchLiteData=exports.voteOnLiteProposal=exports.saveLiteProposal=exports.joinLiteCommunity=exports.saveLiteCommunity=exports.getXTZTransfers=exports.getProposal=exports.getProposals=exports.getLiteDAOs=exports.getDAO=void 0;const graphql_1=require('../graphql');const queries_1=require('../dao/queries');const types_1=require('../dao/mappers/proposal/types');const dayjs_1=__importDefault(require('dayjs'));const axios_1=__importDefault(require('axios'));const config_1=require('../../config');const node_fetch_1=__importDefault(require('node-fetch'));const REACT_APP_LITE_API_URL=(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL);const getDAO=address=>__awaiter(void 0,void 0,void 0,function*(){return yield graphql_1.client.request(queries_1.GET_DAO_QUERY,{address});});exports.getDAO=getDAO;const getLiteDAOs=network=>__awaiter(void 0,void 0,void 0,function*(){const response=yield axios_1.default.post(`${REACT_APP_LITE_API_URL}/daos/`,{network});const daos=response.data;const new_daos=daos.map(dao=>{const new_dao={dao_type:{name:'lite'},description:dao.description,address:dao._id,frozen_token_id:dao.tokenID,governance_token_id:dao.tokenID,name:dao.name,network:dao.network,token:{id:Number(dao.tokenID),contract:dao.tokenAddress,network:network,token_id:Number(dao.tokenID),symbol:dao.symbol,name:dao.name,decimals:Number(dao.decimals),standard:dao.tokenType}};return new_dao;});return[...new_daos];});exports.getLiteDAOs=getLiteDAOs;const getProposals=dao=>__awaiter(void 0,void 0,void 0,function*(){const response=yield graphql_1.client.request(queries_1.GET_PROPOSALS_QUERY,{address:dao.data.address});const fetched=response.daos[0];let proposals;switch(dao.data.type){case'lambda':proposals=fetched.proposals.map(proposal=>new types_1.LambdaProposal(proposal,dao));break;default:throw new Error(`DAO with address '${dao.data.address}' has an unrecognized type '${dao.data.type}'`);}return proposals.sort((a,b)=>(0,dayjs_1.default)(b.startDate).isAfter((0,dayjs_1.default)(a.startDate))?1:-1);});exports.getProposals=getProposals;const getProposal=(address,proposalKey)=>__awaiter(void 0,void 0,void 0,function*(){return yield graphql_1.client.request(queries_1.GET_PROPOSAL_QUERY,{address,proposalKey});});exports.getProposal=getProposal;const getXTZTransfers=address=>__awaiter(void 0,void 0,void 0,function*(){return yield graphql_1.client.request(queries_1.GET_XTZ_TRANSFERS,{address});});exports.getXTZTransfers=getXTZTransfers;const saveLiteCommunity=(signature,publicKey,payloadBytes)=>__awaiter(void 0,void 0,void 0,function*(){const resp=yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/dao/add`,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({signature,publicKey,payloadBytes})});return resp;});exports.saveLiteCommunity=saveLiteCommunity;const joinLiteCommunity=(signature,publicKey,payloadBytes)=>__awaiter(void 0,void 0,void 0,function*(){const resp=yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/daos/join`,{method:'POST',body:JSON.stringify({signature,publicKey,payloadBytes}),headers:{'Content-Type':'application/json'}});return resp;});exports.joinLiteCommunity=joinLiteCommunity;const saveLiteProposal=(signature,publicKey,payloadBytes)=>__awaiter(void 0,void 0,void 0,function*(){const resp=yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/poll/add`,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({signature,publicKey,payloadBytes})});return resp;});exports.saveLiteProposal=saveLiteProposal;const voteOnLiteProposal=(signature,publicKey,payloadBytes)=>__awaiter(void 0,void 0,void 0,function*(){const resp=yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/update/choice`,{method:'POST',body:JSON.stringify({signature,publicKey,payloadBytes}),headers:{'Content-Type':'application/json'}});return resp;});exports.voteOnLiteProposal=voteOnLiteProposal;const fetchLiteData=(daoContract,network)=>__awaiter(void 0,void 0,void 0,function*(){if(daoContract){const data=yield(0,node_fetch_1.default)(`${(0,config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/daos/contracts/${daoContract.toString()}`,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({network})});const liteData=yield data.json();return liteData;}});exports.fetchLiteData=fetchLiteData; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.fetchLiteData = exports.voteOnLiteProposal = exports.saveLiteProposal = exports.joinLiteCommunity = exports.saveLiteCommunity = exports.getXTZTransfers = exports.getProposal = exports.getProposals = exports.getLiteDAOs = exports.getDAO = void 0; +const graphql_1 = require("../graphql"); +const queries_1 = require("../dao/queries"); +const types_1 = require("../dao/mappers/proposal/types"); +const dayjs_1 = __importDefault(require("dayjs")); +const axios_1 = __importDefault(require("axios")); +const config_1 = require("../../config"); +const node_fetch_1 = __importDefault(require("node-fetch")); +const REACT_APP_LITE_API_URL = (0, config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL); +const getDAO = (address) => __awaiter(void 0, void 0, void 0, function* () { + return yield graphql_1.client.request(queries_1.GET_DAO_QUERY, { + address + }); +}); +exports.getDAO = getDAO; +const getLiteDAOs = (network) => __awaiter(void 0, void 0, void 0, function* () { + const response = yield axios_1.default.post(`${REACT_APP_LITE_API_URL}/daos/`, { + network + }); + const daos = response.data; + const new_daos = daos.map(dao => { + const new_dao = { + dao_type: { + name: "lite" + }, + description: dao.description, + address: dao._id, + frozen_token_id: dao.tokenID, + governance_token_id: dao.tokenID, + name: dao.name, + network: dao.network, + token: { + id: Number(dao.tokenID), + contract: dao.tokenAddress, + network: network, + token_id: Number(dao.tokenID), + symbol: dao.symbol, + name: dao.name, + decimals: Number(dao.decimals), + standard: dao.tokenType + } + }; + return new_dao; + }); + return [...new_daos]; +}); +exports.getLiteDAOs = getLiteDAOs; +const getProposals = (dao) => __awaiter(void 0, void 0, void 0, function* () { + const response = yield graphql_1.client.request(queries_1.GET_PROPOSALS_QUERY, { + address: dao.data.address + }); + const fetched = response.daos[0]; + let proposals; + switch (dao.data.type) { + case "lambda": + proposals = fetched.proposals.map(proposal => new types_1.LambdaProposal(proposal, dao)); + break; + default: + throw new Error(`DAO with address '${dao.data.address}' has an unrecognized type '${dao.data.type}'`); + } + return proposals.sort((a, b) => ((0, dayjs_1.default)(b.startDate).isAfter((0, dayjs_1.default)(a.startDate)) ? 1 : -1)); +}); +exports.getProposals = getProposals; +const getProposal = (address, proposalKey) => __awaiter(void 0, void 0, void 0, function* () { + return yield graphql_1.client.request(queries_1.GET_PROPOSAL_QUERY, { + address, + proposalKey + }); +}); +exports.getProposal = getProposal; +const getXTZTransfers = (address) => __awaiter(void 0, void 0, void 0, function* () { + return yield graphql_1.client.request(queries_1.GET_XTZ_TRANSFERS, { + address + }); +}); +exports.getXTZTransfers = getXTZTransfers; +const saveLiteCommunity = (signature, publicKey, payloadBytes) => __awaiter(void 0, void 0, void 0, function* () { + const resp = yield (0, node_fetch_1.default)(`${(0, config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/dao/add`, { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify({ + signature, + publicKey, + payloadBytes + }) + }); + return resp; +}); +exports.saveLiteCommunity = saveLiteCommunity; +const joinLiteCommunity = (signature, publicKey, payloadBytes) => __awaiter(void 0, void 0, void 0, function* () { + const resp = yield (0, node_fetch_1.default)(`${(0, config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/daos/join`, { + method: "POST", + body: JSON.stringify({ + signature, + publicKey, + payloadBytes + }), + headers: { + "Content-Type": "application/json" + } + }); + return resp; +}); +exports.joinLiteCommunity = joinLiteCommunity; +const saveLiteProposal = (signature, publicKey, payloadBytes) => __awaiter(void 0, void 0, void 0, function* () { + const resp = yield (0, node_fetch_1.default)(`${(0, config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/poll/add`, { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify({ + signature, + publicKey, + payloadBytes + }) + }); + return resp; +}); +exports.saveLiteProposal = saveLiteProposal; +const voteOnLiteProposal = (signature, publicKey, payloadBytes) => __awaiter(void 0, void 0, void 0, function* () { + const resp = yield (0, node_fetch_1.default)(`${(0, config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/update/choice`, { + method: "POST", + body: JSON.stringify({ + signature, + publicKey, + payloadBytes + }), + headers: { + "Content-Type": "application/json" + } + }); + return resp; +}); +exports.voteOnLiteProposal = voteOnLiteProposal; +const fetchLiteData = (daoContract, network) => __awaiter(void 0, void 0, void 0, function* () { + if (daoContract) { + const data = yield (0, node_fetch_1.default)(`${(0, config_1.getEnv)(config_1.EnvKey.REACT_APP_LITE_API_URL)}/daos/contracts/${daoContract.toString()}`, { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify({ + network + }) + }); + const liteData = yield data.json(); + return liteData; + } +}); +exports.fetchLiteData = fetchLiteData; +//# sourceMappingURL=lite-services.js.map \ No newline at end of file diff --git a/dist/services/services/lite/lite-services.js.map b/dist/services/services/lite/lite-services.js.map index f3ecb42..a17c815 100644 --- a/dist/services/services/lite/lite-services.js.map +++ b/dist/services/services/lite/lite-services.js.map @@ -1 +1 @@ -{"version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AAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACnB,OAAO;aACR,CAAC;SACH,CAAC,CAAA;QAEF,MAAM,QAAQ,GAAc,MAAM,IAAI,CAAC,IAAI,EAAE,CAAA;QAC7C,OAAO,QAAQ,CAAA;KAChB;AACH,CAAC,CAAA,CAAA;AAfY,QAAA,aAAa,iBAezB"} \ No newline at end of file +{"version":3,"file":"lite-services.js","sourceRoot":"","sources":["../../../../src/services/services/lite/lite-services.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wCAA8C;AAE9C,4CAOuB;AACvB,yDAAwE;AACxE,kDAAyB;AAEzB,kDAAyB;AACzB,4CAAgD;AAGhD,4DAA8B;AAsB9B,MAAM,sBAAsB,GAAG,IAAA,eAAM,EAAC,eAAM,CAAC,sBAAsB,CAAC,CAAA;AAE7D,MAAM,MAAM,GAAG,CAAO,OAAe,EAAE,EAAE;IAC9C,OAAO,MAAM,gBAAM,CAAC,OAAO,CAAY,uBAAa,EAAE;QACpD,OAAO;KACR,CAAC,CAAA;AACJ,CAAC,CAAA,CAAA;AAJY,QAAA,MAAM,UAIlB;AAEM,MAAM,WAAW,GAAG,CAAO,OAAe,EAAE,EAAE;IACnD,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,IAAI,CAAc,GAAG,sBAAsB,QAAQ,EAAE;QAChF,OAAO;KACR,CAAC,CAAA;IACF,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAA;IAE1B,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QAC9B,MAAM,OAAO,GAAgB;YAC3B,QAAQ,EAAE;gBACR,IAAI,EAAE,MAAM;aACb;YACD,WAAW,EAAE,GAAG,CAAC,WAAW;YAC5B,OAAO,EAAE,GAAG,CAAC,GAAG;YAChB,eAAe,EAAE,GAAG,CAAC,OAAO;YAC5B,mBAAmB,EAAE,GAAG,C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AA,kBAAkB,sBAa9B;AAEM,MAAM,aAAa,GAAG,CAAO,WAAmB,EAAE,OAAgB,EAAE,EAAE;IAC3E,IAAI,WAAW,EAAE;QACf,MAAM,IAAI,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,IAAA,eAAM,EAAC,eAAM,CAAC,sBAAsB,CAAC,mBAAmB,WAAW,CAAC,QAAQ,EAAE,EAAE,EAAE;YAC5G,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACnB,OAAO;aACR,CAAC;SACH,CAAC,CAAA;QAEF,MAAM,QAAQ,GAAc,MAAM,IAAI,CAAC,IAAI,EAAE,CAAA;QAC7C,OAAO,QAAQ,CAAA;KAChB;AACH,CAAC,CAAA,CAAA;AAfY,QAAA,aAAa,iBAezB"} \ No newline at end of file diff --git a/dist/services/services/types.js b/dist/services/services/types.js index fa85c5c..11e638d 100644 --- a/dist/services/services/types.js +++ b/dist/services/services/types.js @@ -1 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/services/tzprofiles/claims/index.js b/dist/services/tzprofiles/claims/index.js deleted file mode 100644 index bb85239..0000000 --- a/dist/services/tzprofiles/claims/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.getProfileClaim=void 0;const __1=require('..');const node_fetch_1=__importDefault(require('node-fetch'));const getProfileClaim=(tzAddress,network)=>__awaiter(void 0,void 0,void 0,function*(){const url=`${__1.API_URL}/${tzAddress}/${network}`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch Profile Claim from TZProfile API');}const result=yield response.json();const profileClaim=result.map(claimArray=>JSON.parse(claimArray[1])).find(claim=>claim.type.includes('BasicProfile'));if(!profileClaim){throw new Error(`Address ${tzAddress} has no profile in network ${network}`);}return profileClaim;});exports.getProfileClaim=getProfileClaim; \ No newline at end of file diff --git a/dist/services/tzprofiles/claims/index.js.map b/dist/services/tzprofiles/claims/index.js.map deleted file mode 100644 index 7c8d9ed..0000000 --- a/dist/services/tzprofiles/claims/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/tzprofiles/claims/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,0BAA4B;AAE5B,4DAA+B;AAExB,MAAM,eAAe,GAAG,CAAO,SAAiB,EAAE,OAAgB,EAAkB,EAAE;IAC3F,MAAM,GAAG,GAAG,GAAG,WAAO,IAAI,SAAS,IAAI,OAAO,EAAE,CAAA;IAEhD,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAA;IAEjC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;KACpE;IAED,MAAM,MAAM,GAAc,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAC/C,MAAM,YAAY,GAAG,MAAM;SACxB,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAU,CAAC;SACrD,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAA;IAErD,IAAI,CAAC,YAAY,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,WAAW,SAAS,8BAA8B,OAAO,EAAE,CAAC,CAAA;KAC7E;IAED,OAAO,YAAY,CAAA;AACrB,CAAC,CAAA,CAAA;AAnBY,QAAA,eAAe,mBAmB3B"} \ No newline at end of file diff --git a/dist/services/tzprofiles/claims/types.js b/dist/services/tzprofiles/claims/types.js deleted file mode 100644 index fa85c5c..0000000 --- a/dist/services/tzprofiles/claims/types.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true}); \ No newline at end of file diff --git a/dist/services/tzprofiles/claims/types.js.map b/dist/services/tzprofiles/claims/types.js.map deleted file mode 100644 index b24acd1..0000000 --- a/dist/services/tzprofiles/claims/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/services/tzprofiles/claims/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/services/tzprofiles/hooks/useProfileClaim.js b/dist/services/tzprofiles/hooks/useProfileClaim.js deleted file mode 100644 index c9fbb88..0000000 --- a/dist/services/tzprofiles/hooks/useProfileClaim.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.useProfileClaim=void 0;const react_query_1=require('react-query');const useTezos_1=require('../../beacon/hooks/useTezos');const claims_1=require('../claims');const useProfileClaim=tzAddress=>{const {network}=(0,useTezos_1.useTezos)();const result=(0,react_query_1.useQuery)(['tzProfile_profile_claim',tzAddress,network],()=>(0,claims_1.getProfileClaim)(tzAddress,network),{enabled:!!network&&!!tzAddress,cacheTime:Infinity,refetchOnWindowFocus:false});return result;};exports.useProfileClaim=useProfileClaim; \ No newline at end of file diff --git a/dist/services/tzprofiles/hooks/useProfileClaim.js.map b/dist/services/tzprofiles/hooks/useProfileClaim.js.map deleted file mode 100644 index 86f6c07..0000000 --- a/dist/services/tzprofiles/hooks/useProfileClaim.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useProfileClaim.js","sourceRoot":"","sources":["../../../../src/services/tzprofiles/hooks/useProfileClaim.tsx"],"names":[],"mappings":";;;AAAA,6CAAsC;AACtC,6DAAyD;AACzD,sCAA2C;AAGpC,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAE,EAAE;IACnD,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAE9B,MAAM,MAAM,GAAG,IAAA,sBAAQ,EACrB,CAAC,yBAAyB,EAAE,SAAS,EAAE,OAAO,CAAC,EAC/C,GAAG,EAAE,CAAC,IAAA,wBAAe,EAAC,SAAS,EAAE,OAAO,CAAC,EACzC;QACE,OAAO,EAAE,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,SAAS;QACjC,SAAS,EAAE,QAAQ;QACnB,oBAAoB,EAAE,KAAK;KAC5B,CACF,CAAA;IAED,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AAdY,QAAA,eAAe,mBAc3B"} \ No newline at end of file diff --git a/dist/services/tzprofiles/index.js b/dist/services/tzprofiles/index.js deleted file mode 100644 index 646c14e..0000000 --- a/dist/services/tzprofiles/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.API_URL=void 0;exports.API_URL='https://api.tzprofiles.com'; \ No newline at end of file diff --git a/dist/services/tzprofiles/index.js.map b/dist/services/tzprofiles/index.js.map deleted file mode 100644 index c438693..0000000 --- a/dist/services/tzprofiles/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/tzprofiles/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,4BAA4B,CAAA"} \ No newline at end of file diff --git a/dist/services/utils/utils.js b/dist/services/utils/utils.js index bec42ff..c19df5a 100644 --- a/dist/services/utils/utils.js +++ b/dist/services/utils/utils.js @@ -1 +1,193 @@ -'use strict';var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value);});}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}}function rejected(value){try{step(generator['throw'](value));}catch(e){reject(e);}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected);}step((generator=generator.apply(thisArg,_arguments||[])).next());});};var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{'default':mod};};Object.defineProperty(exports,'__esModule',{value:true});exports.getSignature=exports.formatByDecimals=exports.nFormatter=exports.numberWithCommas=exports.getTreasuryPercentage=exports.getTotalVoters=exports.calculateProposalTotal=exports.calculateChoiceTotal=exports.calculateWeight=exports.isProposalActive=exports.getTurnoutValue=exports.hasTokenBalance=exports.getUserTotalSupplyAtReferenceBlock=exports.getTotalSupplyAtReferenceBlock=exports.getCurrentBlock=void 0;const tzip16_1=require('@taquito/tzip16');const dayjs_1=__importDefault(require('dayjs'));const relativeTime_1=__importDefault(require('dayjs/plugin/relativeTime'));const updateLocale_1=__importDefault(require('dayjs/plugin/updateLocale'));const beacon_sdk_1=require('@airgap/beacon-sdk');const bignumber_js_1=__importDefault(require('bignumber.js'));const bakingBad_1=require('../bakingBad');const node_fetch_1=__importDefault(require('node-fetch'));const getCurrentBlock=network=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/head`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract current block');}const result=yield response.json();return result.level;});exports.getCurrentBlock=getCurrentBlock;const getTotalSupplyAtReferenceBlock=(network,address,level)=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/contracts/${address}/bigmaps/token_total_supply/historical_keys/${level}`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract current block');}const result=yield response.json();return result[0].value;});exports.getTotalSupplyAtReferenceBlock=getTotalSupplyAtReferenceBlock;const getUserTotalSupplyAtReferenceBlock=(network,address,level,userAddress)=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/contracts/${address}/bigmaps/ledger/historical_keys/${level}`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract current block');}const result=yield response.json();let userBalance;if(result&&result.length>0){userBalance=result.find(elem=>elem.key.address===userAddress);return userBalance.value;}return 0;});exports.getUserTotalSupplyAtReferenceBlock=getUserTotalSupplyAtReferenceBlock;const hasTokenBalance=(network,account,contract)=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/tokens/balances?account=${account}&token.contract=${contract}`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract current block');}const result=yield response.json();let hasBalance=false;if(result&&result[0]){if(result[0].balance>0){hasBalance=true;}else{hasBalance=false;}}else{hasBalance=false;}return hasBalance;});exports.hasTokenBalance=hasTokenBalance;const getTurnoutValue=(network,address,level,voters)=>__awaiter(void 0,void 0,void 0,function*(){const url=`https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/contracts/${address}/bigmaps/ledger/historical_keys/${level}`;const response=yield(0,node_fetch_1.default)(url);if(!response.ok){throw new Error('Failed to fetch contract current block');}const result=yield response.json();if(result){return voters*100/result.length;}return 0;});exports.getTurnoutValue=getTurnoutValue;const isProposalActive=date=>{const config={rounding:Math.floor};dayjs_1.default.extend(relativeTime_1.default,config);dayjs_1.default.extend(updateLocale_1.default);dayjs_1.default.updateLocale('en',{relativeTime:{future:'%s left',past:'%s ago',s:'a few seconds',m:'1 minute',mm:'%d minutes',h:'1 hour',hh:'%d hours',d:'a day',dd:'%d days',M:'1 month',MM:'%d months',y:'1 year',yy:'%d years'}});const remainingDate=(0,dayjs_1.default)(date).fromNow();return remainingDate;};exports.isProposalActive=isProposalActive;const calculateWeight=(totalSupply,balance,decimals)=>{const formattedTotalSupply=new bignumber_js_1.default(totalSupply).div(new bignumber_js_1.default(10).pow(decimals));const percent=balance.div(formattedTotalSupply).multipliedBy(100);return percent;};exports.calculateWeight=calculateWeight;const calculateChoiceTotal=(choice_voters,decimals)=>{let total=new bignumber_js_1.default(0);choice_voters.map(voter=>{total=new bignumber_js_1.default(voter.balanceAtReferenceBlock).plus(total);});const result=new bignumber_js_1.default(total).div(new bignumber_js_1.default(10).pow(decimals));return result;};exports.calculateChoiceTotal=calculateChoiceTotal;const calculateProposalTotal=(choices,decimals)=>{let total=new bignumber_js_1.default(0);choices.map(choice=>{choice.walletAddresses.map(elem=>{total=new bignumber_js_1.default(elem.balanceAtReferenceBlock).plus(total);});});const result=total.div(new bignumber_js_1.default(10).pow(decimals));return result;};exports.calculateProposalTotal=calculateProposalTotal;const getTotalVoters=choices=>{let votersTotal=0;choices.map(choice=>{votersTotal+=choice.walletAddresses.length;});return votersTotal;};exports.getTotalVoters=getTotalVoters;const getTreasuryPercentage=(proposalTotal,totalSupply,decimals)=>{const formattedTotalSupply=new bignumber_js_1.default(totalSupply).div(new bignumber_js_1.default(10).pow(decimals));const value=proposalTotal.div(new bignumber_js_1.default(formattedTotalSupply)).multipliedBy(100);return value;};exports.getTreasuryPercentage=getTreasuryPercentage;const numberWithCommas=x=>{return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g,',');};exports.numberWithCommas=numberWithCommas;const SI_SYMBOL=['','k','M','G','T','P','E'];const nFormatter=(num,digits)=>{return num.toString();};exports.nFormatter=nFormatter;const formatByDecimals=(value,decimals)=>{return(0,exports.nFormatter)(new bignumber_js_1.default(value).div(new bignumber_js_1.default(10).pow(decimals)),1);};exports.formatByDecimals=formatByDecimals;const getSignature=(userAddress,wallet,data)=>__awaiter(void 0,void 0,void 0,function*(){const formattedInput=['Tezos Signed Message:',process.env.REACT_APP_BASE_URL,new Date().toISOString(),data].join(' ');const bytes=(0,tzip16_1.char2Bytes)(formattedInput);const payloadBytes='05'+'0100'+(0,tzip16_1.char2Bytes)(bytes.length.toString())+bytes;const payload={signingType:beacon_sdk_1.SigningType.MICHELINE,payload:payloadBytes,sourceAddress:userAddress};const signedPayload=yield wallet===null||wallet===void 0?void 0:wallet.client.requestSignPayload(payload);const {signature}=signedPayload;return{signature,payloadBytes};});exports.getSignature=getSignature; \ No newline at end of file +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getSignature = exports.formatByDecimals = exports.nFormatter = exports.numberWithCommas = exports.getTreasuryPercentage = exports.getTotalVoters = exports.calculateProposalTotal = exports.calculateChoiceTotal = exports.calculateWeight = exports.isProposalActive = exports.getTurnoutValue = exports.hasTokenBalance = exports.getUserTotalSupplyAtReferenceBlock = exports.getTotalSupplyAtReferenceBlock = exports.getCurrentBlock = void 0; +const tzip16_1 = require("@taquito/tzip16"); +const dayjs_1 = __importDefault(require("dayjs")); +const relativeTime_1 = __importDefault(require("dayjs/plugin/relativeTime")); +const updateLocale_1 = __importDefault(require("dayjs/plugin/updateLocale")); +const beacon_sdk_1 = require("@airgap/beacon-sdk"); +const bignumber_js_1 = __importDefault(require("bignumber.js")); +const bakingBad_1 = require("../bakingBad"); +const node_fetch_1 = __importDefault(require("node-fetch")); +const getCurrentBlock = (network) => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/head`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch contract current block"); + } + const result = yield response.json(); + return result.level; +}); +exports.getCurrentBlock = getCurrentBlock; +const getTotalSupplyAtReferenceBlock = (network, address, level) => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/contracts/${address}/bigmaps/token_total_supply/historical_keys/${level}`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch contract current block"); + } + const result = yield response.json(); + return result[0].value; +}); +exports.getTotalSupplyAtReferenceBlock = getTotalSupplyAtReferenceBlock; +const getUserTotalSupplyAtReferenceBlock = (network, address, level, userAddress) => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/contracts/${address}/bigmaps/ledger/historical_keys/${level}`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch contract current block"); + } + const result = yield response.json(); + let userBalance; + if (result && result.length > 0) { + userBalance = result.find((elem) => elem.key.address === userAddress); + return userBalance.value; + } + return 0; +}); +exports.getUserTotalSupplyAtReferenceBlock = getUserTotalSupplyAtReferenceBlock; +const hasTokenBalance = (network, account, contract) => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/tokens/balances?account=${account}&token.contract=${contract}`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch contract current block"); + } + const result = yield response.json(); + let hasBalance = false; + if (result && result[0]) { + if (result[0].balance > 0) { + hasBalance = true; + } + else { + hasBalance = false; + } + } + else { + hasBalance = false; + } + return hasBalance; +}); +exports.hasTokenBalance = hasTokenBalance; +const getTurnoutValue = (network, address, level, voters) => __awaiter(void 0, void 0, void 0, function* () { + const url = `https://api.${bakingBad_1.networkNameMap[network]}.tzkt.io/v1/contracts/${address}/bigmaps/ledger/historical_keys/${level}`; + const response = yield (0, node_fetch_1.default)(url); + if (!response.ok) { + throw new Error("Failed to fetch contract current block"); + } + const result = yield response.json(); + if (result) { + return (voters * 100) / result.length; + } + return 0; +}); +exports.getTurnoutValue = getTurnoutValue; +const isProposalActive = (date) => { + const config = { + rounding: Math.floor + }; + dayjs_1.default.extend(relativeTime_1.default, config); + dayjs_1.default.extend(updateLocale_1.default); + dayjs_1.default.updateLocale("en", { + relativeTime: { + future: "%s left", + past: "%s ago", + s: "a few seconds", + m: "1 minute", + mm: "%d minutes", + h: "1 hour", + hh: "%d hours", + d: "a day", + dd: "%d days", + M: "1 month", + MM: "%d months", + y: "1 year", + yy: "%d years" + } + }); + const remainingDate = (0, dayjs_1.default)(date).fromNow(); + return remainingDate; +}; +exports.isProposalActive = isProposalActive; +const calculateWeight = (totalSupply, balance, decimals) => { + const formattedTotalSupply = new bignumber_js_1.default(totalSupply).div(new bignumber_js_1.default(10).pow(decimals)); + const percent = balance.div(formattedTotalSupply).multipliedBy(100); + return percent; +}; +exports.calculateWeight = calculateWeight; +const calculateChoiceTotal = (choice_voters, decimals) => { + let total = new bignumber_js_1.default(0); + choice_voters.map(voter => { + total = new bignumber_js_1.default(voter.balanceAtReferenceBlock).plus(total); + }); + const result = new bignumber_js_1.default(total).div(new bignumber_js_1.default(10).pow(decimals)); + return result; +}; +exports.calculateChoiceTotal = calculateChoiceTotal; +const calculateProposalTotal = (choices, decimals) => { + let total = new bignumber_js_1.default(0); + choices.map((choice) => { + choice.walletAddresses.map((elem) => { + total = new bignumber_js_1.default(elem.balanceAtReferenceBlock).plus(total); + }); + }); + const result = total.div(new bignumber_js_1.default(10).pow(decimals)); + return result; +}; +exports.calculateProposalTotal = calculateProposalTotal; +const getTotalVoters = (choices) => { + let votersTotal = 0; + choices.map((choice) => { + votersTotal += choice.walletAddresses.length; + }); + return votersTotal; +}; +exports.getTotalVoters = getTotalVoters; +const getTreasuryPercentage = (proposalTotal, totalSupply, decimals) => { + const formattedTotalSupply = new bignumber_js_1.default(totalSupply).div(new bignumber_js_1.default(10).pow(decimals)); + const value = proposalTotal.div(new bignumber_js_1.default(formattedTotalSupply)).multipliedBy(100); + return value; +}; +exports.getTreasuryPercentage = getTreasuryPercentage; +const numberWithCommas = (x) => { + return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); +}; +exports.numberWithCommas = numberWithCommas; +const SI_SYMBOL = ["", "k", "M", "G", "T", "P", "E"]; +const nFormatter = (num, digits) => { + return num.toString(); +}; +exports.nFormatter = nFormatter; +const formatByDecimals = (value, decimals) => { + return (0, exports.nFormatter)(new bignumber_js_1.default(value).div(new bignumber_js_1.default(10).pow(decimals)), 1); +}; +exports.formatByDecimals = formatByDecimals; +const getSignature = (userAddress, wallet, data) => __awaiter(void 0, void 0, void 0, function* () { + const formattedInput = [ + "Tezos Signed Message:", + process.env.REACT_APP_BASE_URL, + new Date().toISOString(), + data + ].join(" "); + const bytes = (0, tzip16_1.char2Bytes)(formattedInput); + const payloadBytes = "05" + "0100" + (0, tzip16_1.char2Bytes)(bytes.length.toString()) + bytes; + const payload = { + signingType: beacon_sdk_1.SigningType.MICHELINE, + payload: payloadBytes, + sourceAddress: userAddress + }; + const signedPayload = yield (wallet === null || wallet === void 0 ? void 0 : wallet.client.requestSignPayload(payload)); + const { signature } = signedPayload; + return { signature, payloadBytes }; +}); +exports.getSignature = getSignature; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/services/utils/utils.js.map b/dist/services/utils/utils.js.map index a8fc9fa..e110dd4 100644 --- a/dist/services/utils/utils.js.map +++ b/dist/services/utils/utils.js.map @@ -1 +1 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/services/utils/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAAwD;AACxD,kDAAyB;AACzB,6EAAoD;AACpD,6EAAoD;AAGpD,m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AC9B,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACxB,IAAI;KACL,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAEX,MAAM,KAAK,GAAG,IAAA,mBAAU,EAAC,cAAc,CAAC,CAAA;IACxC,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,GAAG,IAAA,mBAAU,EAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,KAAK,CAAA;IAEhF,MAAM,OAAO,GAA4B;QACvC,WAAW,EAAE,wBAAW,CAAC,SAAS;QAClC,OAAO,EAAE,YAAY;QACrB,aAAa,EAAE,WAAW;KAC3B,CAAA;IAED,MAAM,aAAa,GAAG,MAAM,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAA,CAAA;IACtE,MAAM,EAAE,SAAS,EAAE,GAAG,aAAa,CAAA;IAEnC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA;AACpC,CAAC,CAAA,CAAA;AArBY,QAAA,YAAY,gBAqBxB"} \ No newline at end of file diff --git a/dist/theme/index.js b/dist/theme/index.js deleted file mode 100644 index f55c4bb..0000000 --- a/dist/theme/index.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.themeOptions=exports.theme=void 0;const styles_1=require('@material-ui/core/styles');const defaultTheme=(0,styles_1.createTheme)();const {breakpoints}=defaultTheme;exports.theme=(0,styles_1.createTheme)({props:{MuiButtonBase:{disableRipple:true}},palette:{primary:{main:'#2F3438',dark:'#1C1F23',light:'#383e43'},secondary:{main:'#81FEB7',dark:'#6AE9A720',contrastText:'#1C1F23'},text:{primary:'#FFFFFF'},error:{main:'#ED254E'},info:{main:'#3866F9'},warning:{main:'#FFC839'}},typography:{fontFamily:'Roboto Mono',h1:{fontSize:30,[breakpoints.down('xs')]:{fontSize:22}},subtitle1:{fontSize:32},subtitle2:{fontSize:16,fontWeight:300},h3:{fontSize:21,fontWeight:400},h2:{fontSize:24},h4:{fontSize:21,[breakpoints.down('xs')]:{fontSize:16}},h5:{fontSize:35,[breakpoints.down('xs')]:{fontSize:21}},body1:{fontSize:18,[breakpoints.down('xs')]:{fontSize:14}},body2:{fontSize:16,[breakpoints.down('xs')]:{fontSize:14}},h6:{fontSize:14}},overrides:{MuiTypography:{root:{letterSpacing:'-0.03em !important'}},MuiMenu:{paper:{backgroundColor:'#2f3438'}},MuiSlider:{root:{color:'#3D3D3D'}},MuiTab:{root:{maxWidth:'100%'}},MuiTooltip:{tooltip:{backgroundColor:'#62eda5',fontSize:14,padding:'10px 15px',color:'#1C1F23'}},MuiStepLabel:{label:{'cursor':'pointer','color':'#fff','opacity':0.5,'marginLeft':15,'lineHeight':'40px','&$completed':{fontWeight:300},'&$active':{fontWeight:300},'& .MuiStepLabel-completed':{fontWeight:300}},active:{color:'#fff !important',opacity:1},completed:{color:'#fff !important',opacity:0.5,fontWeight:300}},MuiStepConnector:{lineVertical:{display:'none'}},MuiStepContent:{root:{borderLeft:'none'}},MuiStep:{root:{marginBottom:15}},MuiStepIcon:{active:{color:'#1C1F23 !important'},completed:{color:'#fff !important'},root:{'height':32,'width':32,'color':'#1C1F23','border':'1px solid #3D3D3D','borderRadius':'50%','&$active':{'fill':'#fff','border':'1px solid #3D3D3D','borderRadius':'50%','& $text':{fill:'#1C1F23',border:'1px solid #3D3D3D'}}},text:{fill:'#fff'}},MuiInput:{underline:{'&:after':{borderBottom:'none'},'&$focused:after':{borderBottom:'none'},'&$error:after':{borderBottom:'none'},'&:before':{borderBottom:'none'},'&:hover:not($disabled):not($focused):not($error):before':{borderBottom:'none'},'&$disabled:before':{borderBottom:'none'},'&:active:not($disabled):not($focused):not($error):before':{borderBottom:'none'}},disabled:{}},MuiButton:{root:{'textTransform':'capitalize','fontWeight':500,'fontSize':18,'padding':'3px 14px','letterSpacing':'-0.03em','boxShadow':'none','&:hover':{boxShadow:'none'},'&$disabled':{color:'#2F3438 !important',background:'#41484d !important'}},outlined:{'&$disabled':{border:'2px solid #3d3d3d'},'borderWidth':'2px !important','borderRadius':'4px','padding':'1px 8px','fontSize':'1rem'},disabled:{}},MuiInputBase:{input:{textAlign:'center',color:'#fff'}},MuiRadio:{root:{color:'#fff'}},MuiDivider:{root:{marginTop:16,marginBottom:16}},MuiDialog:{paper:{background:'#1C1F23',width:615,maxWidth:'100%'},root:{height:'auto'},paperWidthSm:{maxWidth:615,height:'auto'}},MuiFormControl:{root:{width:'100%'}},MuiDialogContent:{root:{'padding':'42px 54px','&:first-child':{paddingTop:'42px'}}},MuiSelect:{selectMenu:{textAlign:'right',textTransform:'capitalize'},icon:{color:'#fff'}},MuiDialogContentText:{root:{marginBottom:0}},MuiSwitch:{root:{width:75,height:50},switchBase:{'color':'red','top':8,'left':8,'$checked$checked + &':{opacity:1,backgroundColor:'#1C1F23',color:'#81FEB7'}},track:{'borderRadius':'40px','backgroundColor':'inherit','border':'1px solid #fff','opacity':0.5,'$checked$checked + &':{opacity:1,backgroundColor:'#1C1F23',color:'#81FEB7'}},thumb:{'width':18,'height':18,'$checked$checked + &':{color:'#81FEB7'}},colorSecondary:{'color':'#fff','$checked$checked + &':{color:'#81FEB7'},'& .Mui-checked':{color:'#81FEB7'}}},MuiFormHelperText:{root:{display:'none'}},MuiTable:{root:{borderRadius:'8px',backgroundColor:'#2F3438'}},MuiTableHead:{root:{minHeight:58,fontSize:16,fontWeight:400,letterSpacing:'-0.01em',color:'#FFFFFF'}},MuiTableFooter:{root:{minHeight:60,fontSize:16,fontWeight:400,letterSpacing:'-0.01em',color:'##81FEB7',borderTop:'0.3px solid rgba(125,140,139, 0.2)'}},MuiTableBody:{root:{'& > *':{borderTop:'0.3px solid rgba(125,140,139, 0.2)',minHeight:90}}},MuiTableCell:{root:{borderBottom:'unset'},head:{fontWeight:300}},MuiTableRow:{root:{'height':70,'& th:first-child, & td:first-child':{paddingLeft:46},'& th:last-child, & td:last-child':{paddingRight:46}}},MuiGrid:{'align-items-xs-center':{alignItems:'center'}},MuiLinearProgress:{root:{borderRadius:50,background:'rgba(125,140,139, 0.2) !important'},barColorPrimary:{backgroundColor:'#3866f9'}},MuiPaper:{rounded:{borderRadius:'8px'}},MuiAccordionSummary:{root:{'minHeight':91,'& .Mui-expanded':{minHeight:91,display:'flex',alignItems:'center'}}}}});exports.themeOptions={breakpoints:{values:{xs:0,sm:600,mobile:645,toolbarswitch:865,md:900,lg:1200,xl:1536}}}; \ No newline at end of file diff --git a/dist/theme/index.js.map b/dist/theme/index.js.map deleted file mode 100644 index 909797e..0000000 --- a/dist/theme/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":";;;AAAA,qDAAsD;AAEtD,MAAM,YAAY,GAAG,IAAA,oBAAW,GAAE,CAAA;AAClC,MAAM,EAAE,WAAW,EAAE,GAAG,YAAY,CAAA;AAEvB,QAAA,KAAK,GAAG,IAAA,oBAAW,EAAC;IAC/B,KAAK,EAAE;QACL,aAAa,EAAE;YACb,aAAa,EAAE,IAAI;SACpB;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;SACjB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,WAAW;YACjB,YAAY,EAAE,SAAS;SACxB;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,SAAS;SACnB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;SAChB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS;SAChB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;SAChB;KACF;IACD,UAAU,EAAE;QACV,UAAU,EAAE,aAAa;QACzB,EAAE,EAAE;YACF,QAAQ,EAAE,EAAE;YACZ,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC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QACD,OAAO,EAAE;YACP,uBAAuB,EAAE;gBACvB,UAAU,EAAE,QAAQ;aACrB;SACF;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE;gBACJ,YAAY,EAAE,EAAE;gBAChB,UAAU,EAAE,mCAAmC;aAChD;YACD,eAAe,EAAE;gBACf,eAAe,EAAE,SAAS;aAC3B;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,YAAY,EAAE,KAAK;aACpB;SACF;QACD,mBAAmB,EAAE;YACnB,IAAI,EAAE;gBACJ,WAAW,EAAE,EAAE;gBACf,iBAAiB,EAAE;oBACjB,SAAS,EAAE,EAAE;oBACb,OAAO,EAAE,MAAM;oBACf,UAAU,EAAE,QAAQ;iBACrB;aACF;SACF;KACF;CACF,CAAC,CAAA;AASW,QAAA,YAAY,GAAiB;IACxC,WAAW,EAAE;QACX,MAAM,EAAE;YACN,EAAE,EAAE,CAAC;YACL,EAAE,EAAE,GAAG;YACP,MAAM,EAAE,GAAG;YACX,aAAa,EAAE,GAAG;YAClB,EAAE,EAAE,GAAG;YACP,EAAE,EAAE,IAAI;YACR,EAAE,EAAE,IAAI;SACT;KACF;CACF,CAAA"} \ No newline at end of file diff --git a/dist/theme/legacy.js b/dist/theme/legacy.js deleted file mode 100644 index 793863c..0000000 --- a/dist/theme/legacy.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.legacyTheme=void 0;const styles_1=require('@material-ui/core/styles');exports.legacyTheme=(0,styles_1.createMuiTheme)({palette:{primary:{main:'#1C1F23',light:'#3D3D3D',dark:'#2F3438'},secondary:{main:'#4BCF93',light:'#81FEB7'},text:{primary:'#000000',secondary:'#fff'},error:{main:'#ED254E'},info:{main:'#3866F9'},warning:{main:'#FFC839'}},typography:{fontFamily:'Roboto Mono',h1:{fontSize:35,letterSpacing:'-0.01em'},subtitle1:{fontSize:18,fontWeight:400,lineHeight:'26.33px',letterSpacing:'-0.01em'},subtitle2:{fontSize:16,fontWeight:300,lineHeight:'26.33px',letterSpacing:'-0.01em'},h3:{fontSize:35,fontWeight:500,fontFamily:'Roboto Mono'},h2:{color:'#000000',fontSize:25,fontWeight:500},h4:{fontSize:20},h5:{fontSize:35},body1:{fontSize:16},body2:{fontSize:16,fontWeight:300,lineHeight:'413.4%',opacity:0.8}},overrides:{MuiSlider:{root:{color:'#3D3D3D'}},MuiTab:{root:{maxWidth:'100%'}},MuiTooltip:{tooltip:{backgroundColor:'#4BCF93',fontSize:14,padding:'10px 15px'}},MuiStepLabel:{root:{marginTop:-3},label:{'color':'#fff','opacity':0.5,'marginLeft':15,'fontSize':14,'lineHeight':'18.5px','height':40,'display':'flex','alignItems':'center','&$completed':{fontWeight:300},'&$active':{fontWeight:300},'& .MuiStepLabel-completed':{fontWeight:300}},active:{color:'#fff !important',opacity:1},completed:{color:'#fff !important',opacity:0.5,fontWeight:300}},MuiStepConnector:{vertical:{padding:'0px',marginLeft:17},lineVertical:{borderLeftWidth:2,minHeight:28,marginTop:-16},line:{borderColor:'#fff',opacity:0.2},active:{'& span':{borderLeftColor:'#81feb7',opacity:1}},completed:{'& span':{borderLeftColor:'#81feb7',opacity:1}}},MuiStepContent:{root:{borderLeft:'none'}},MuiStep:{root:{marginBottom:15}},MuiStepIcon:{active:{color:'#1C1F23 !important'},completed:{color:'#fff !important'},root:{'height':32,'width':32,'color':'#2f3438','border':'2px solid rgba(255, 255, 255, 0.2)','borderRadius':'50%','&$active':{'fill':'#81feb7','border':'2px solid #81feb7','borderRadius':'50%','& $text':{fill:'#1C1F23',border:'1px solid #2f3438'}},'&$completed':{fill:'#81feb7',border:'2px solid #81feb7'}},text:{fill:'#fff'}},MuiInput:{underline:{'&:after':{borderBottom:'none'},'&$focused:after':{borderBottom:'none'},'&$error:after':{borderBottom:'none'},'&:before':{borderBottom:'none'},'&:hover:not($disabled):not($focused):not($error):before':{borderBottom:'none'},'&$disabled:before':{borderBottom:'none'},'&:active:not($disabled):not($focused):not($error):before':{borderBottom:'none'}},disabled:{}},MuiInputAdornment:{positionStart:{marginLeft:8}},MuiButton:{root:{'&$disabled':{color:'#3d3d3d'}},disabled:{},outlined:{'&$disabled':{border:'2px solid #3d3d3d'},'borderWidth':'2px !important','borderRadius':'4px','padding':'1px 8px','fontSize':'1rem'}},MuiInputBase:{input:{textAlign:'start',color:'#fff'}},MuiDivider:{root:{marginTop:16,marginBottom:16}},MuiDialog:{paper:{background:'#1C1F23',width:570,maxWidth:'100%'},root:{minHeight:600,height:'auto'},paperWidthSm:{minHeight:600,height:'auto'}},MuiFormControl:{root:{width:'100%'}},MuiDialogContent:{root:{padding:0}},MuiSelect:{selectMenu:{textAlign:'right'}},MuiDialogContentText:{root:{marginBottom:0}},MuiSwitch:{root:{width:75,height:50},switchBase:{'color':'red','top':8,'left':8,'$checked$checked + &':{opacity:1,backgroundColor:'#1C1F23',color:'#81FEB7'}},track:{'borderRadius':'40px','backgroundColor':'inherit','border':'1px solid #fff','opacity':0.5,'$checked$checked + &':{opacity:1,backgroundColor:'#1C1F23',color:'#81FEB7'}},thumb:{'width':18,'height':18,'$checked$checked + &':{color:'#81FEB7'}},colorSecondary:{'color':'#fff','$checked$checked + &':{color:'#81FEB7'},'& .Mui-checked':{color:'#81FEB7'}}},MuiFormHelperText:{root:{display:'none'}},MuiAccordionSummary:{root:{'& .Mui-expanded':{minHeight:91}}}}}); \ No newline at end of file diff --git a/dist/theme/legacy.js.map b/dist/theme/legacy.js.map deleted file mode 100644 index aa53779..0000000 --- a/dist/theme/legacy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../src/theme/legacy.ts"],"names":[],"mappings":";;;AAAA,qDAAyD;AAC5C,QAAA,WAAW,GAAG,IAAA,uBAAc,EAAC;IACxC,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,SAAS;SAChB;QACD,SAAS,EAAE;YAC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AAS;oBAC1B,KAAK,EAAE,SAAS;iBACjB;aACF;YACD,KAAK,EAAE;gBACL,cAAc,EAAE,MAAM;gBACtB,iBAAiB,EAAE,SAAS;gBAC5B,QAAQ,EAAE,gBAAgB;gBAC1B,SAAS,EAAE,GAAG;gBACd,sBAAsB,EAAE;oBACtB,OAAO,EAAE,CAAC;oBACV,eAAe,EAAE,SAAS;oBAC1B,KAAK,EAAE,SAAS;iBACjB;aACF;YACD,KAAK,EAAE;gBACL,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,EAAE;gBACZ,sBAAsB,EAAE;oBACtB,KAAK,EAAE,SAAS;iBACjB;aACF;YACD,cAAc,EAAE;gBACd,OAAO,EAAE,MAAM;gBACf,sBAAsB,EAAE;oBACtB,KAAK,EAAE,SAAS;iBACjB;gBACD,gBAAgB,EAAE;oBAChB,KAAK,EAAE,SAAS;iBACjB;aACF;SACF;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE;gBACJ,OAAO,EAAE,MAAM;aAChB;SACF;QACD,mBAAmB,EAAE;YACnB,IAAI,EAAE;gBACJ,iBAAiB,EAAE;oBACjB,SAAS,EAAE,EAAE;iBACd;aACF;SACF;KACF;CACF,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/utils.js b/dist/utils.js index 75b766a..37ff9f1 100644 --- a/dist/utils.js +++ b/dist/utils.js @@ -1 +1,18 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.parseLambdaCode=exports.roundNumber=void 0;const roundNumber=({number,decimals})=>Math.round(number*Math.pow(10,decimals))/Math.pow(10,decimals);exports.roundNumber=roundNumber;const parseLambdaCode=lambdaCode=>{if(!lambdaCode){return'';}const code=JSON.stringify({code:JSON.parse(lambdaCode.code),handler_check:JSON.parse(lambdaCode.handler_check),is_active:lambdaCode.is_active},null,2);return code;};exports.parseLambdaCode=parseLambdaCode; \ No newline at end of file +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parseLambdaCode = exports.roundNumber = void 0; +const roundNumber = ({ number, decimals }) => Math.round(number * Math.pow(10, decimals)) / Math.pow(10, decimals); +exports.roundNumber = roundNumber; +const parseLambdaCode = (lambdaCode) => { + if (!lambdaCode) { + return ""; + } + const code = JSON.stringify({ + code: JSON.parse(lambdaCode.code), + handler_check: JSON.parse(lambdaCode.handler_check), + is_active: lambdaCode.is_active + }, null, 2); + return code; +}; +exports.parseLambdaCode = parseLambdaCode; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/package.json b/package.json index 40e8529..d9e2e5c 100644 --- a/package.json +++ b/package.json @@ -19,15 +19,8 @@ "@airgap/beacon-sdk": "^3.3.0", "@craco/craco": "^7.1.0", "@date-io/dayjs": "1.x", - "@emotion/react": "^11.10.4", - "@emotion/styled": "^11.10.4", "@hookform/resolvers": "^2.8.1", - "@material-ui/core": "^4.11.3", - "@material-ui/icons": "^4.9.1", - "@material-ui/lab": "^4.0.0-alpha.57", "@microsoft/signalr": "^5.0.9", - "@mui/material": "^5.10.6", - "@mui/x-date-pickers": "^5.0.2", "@taquito/beacon-wallet": "^17.0.0", "@taquito/signer": "^17.0.0", "@taquito/taquito": "^17.0.0", @@ -42,49 +35,27 @@ "bignumber.js": "^9.0.1", "blockies-ts": "^1.0.0", "body-parser": "^1.20.2", - "browserify-zlib": "^0.2.0", "connect-timeout": "^1.9.0", "cors": "^2.8.5", - "crypto-browserify": "^3.12.0", "dayjs": "^1.10.4", "express": "^4.18.2", "express-queue": "^0.0.13", "fetch-node": "0.0.1", - "formik": "^2.2.6", - "formik-material-ui": "^3.0.1", - "formik-material-ui-lab": "^0.0.8", "graphql": "^15.5.1", "graphql-request": "^3.4.0", "hex-to-rgba": "^2.0.1", - "https-browserify": "^1.0.0", "jsonschema": "^1.4.0", "launchdarkly-react-client-sdk": "2.27.0", "mixpanel-browser": "^2.42.0", "net": "^1.0.2", - "notistack": "^1.0.3", - "os-browserify": "^0.3.0", - "path-browserify": "^1.0.1", "prism-themes": "^1.9.0", "prismjs": "^1.28.0", - "react": "^18.2.0", - "react-customizable-progressbar": "^1.0.2", - "react-dom": "^18.2.0", - "react-fitty": "^1.0.1", "react-hook-form": "^7.15.4", - "react-html-parser": "^2.0.2", - "react-markdown": "^8.0.0", - "react-query": "^3.13.0", - "react-router-dom": "^5.2.0", - "react-router-hash-link": "^2.4.3", - "react-scripts": "^5.0.1", - "react-simple-code-editor": "^0.11.2", - "react-spring-bottom-sheet": "^3.4.0", "rehype-raw": "^6.1.1", "remark-breaks": "^3.0.2", "remark-gfm": "^3.0.1", "resolve-tspaths": "^0.8.17", "serve": "^11.3.2", - "stream-browserify": "^3.0.0", "stream-http": "^3.2.0", "url": "^0.11.0", "util": "^0.12.5", diff --git a/src/services/bakingBad/context/TZKTSubscriptions.tsx b/src/services/bakingBad/context/TZKTSubscriptions.tsx deleted file mode 100644 index 7f002b8..0000000 --- a/src/services/bakingBad/context/TZKTSubscriptions.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import React, { createContext, useEffect, useRef, useState } from "react" -import { HubConnection, HubConnectionBuilder } from "@microsoft/signalr" -import { Network } from "services/beacon" -import { useTezos } from "services/beacon/hooks/useTezos" -import { networkNameMap } from "../index" - -interface State { - block: number -} - -const TZKTSubscriptionsContext = createContext<{ - state: State -}>({ - state: { - block: 0 - } -}) - -interface BlockMessage { - type: number - state: number -} - -const getUrl = (network: Network) => `https://api.${networkNameMap[network]}.tzkt.io/v1/events` - -const TZKTSubscriptionsProvider: React.FC = ({ children }) => { - const [block, setBlock] = useState(0) - const socketRef = useRef() - const { network } = useTezos() - - useEffect(() => { - ;(async () => { - socketRef.current = new HubConnectionBuilder().withUrl(getUrl(network)).build() - - await socketRef.current.start() - - // listen for incoming message - socketRef.current.on("blocks", (blockMessage: BlockMessage) => { - setBlock(blockMessage.state) - }) - - await socketRef.current.invoke("SubscribeToBlocks") - })() - - return () => { - socketRef.current?.stop() - } - }, [network]) - - return {children} -} - -export { TZKTSubscriptionsProvider, TZKTSubscriptionsContext } diff --git a/src/services/beacon/hooks/useTezos.ts b/src/services/beacon/hooks/useTezos.ts index c1dcca3..5199fed 100644 --- a/src/services/beacon/hooks/useTezos.ts +++ b/src/services/beacon/hooks/useTezos.ts @@ -1,21 +1,6 @@ -import { useQueryClient } from "react-query" -import { useCallback, useContext } from "react" import { MichelCodecPacker, TezosToolkit } from "@taquito/taquito" -import { connectWithBeacon, Network, rpcNodes, TezosActionType } from "services/beacon" -import { TezosContext } from "services/beacon/context" +import { Network, rpcNodes } from "services/beacon" import { Tzip16Module } from "@taquito/tzip16" -import mixpanel from "mixpanel-browser" -import { BeaconWallet } from "@taquito/beacon-wallet" - -type WalletConnectReturn = { - tezos: TezosToolkit - connect: () => Promise - changeNetwork: (newNetwork: Network) => void - reset: () => void - account: string - network: Network - wallet: BeaconWallet | undefined -} export const initTezosInstance = (network: Network) => { const newTezos = new TezosToolkit(rpcNodes[network]) @@ -24,81 +9,3 @@ export const initTezosInstance = (network: Network) => { return newTezos } - -export const useTezos = (): WalletConnectReturn => { - const { - state: { tezos, network, account, wallet }, - dispatch - } = useContext(TezosContext) - - const queryClient = useQueryClient() - - const connect = useCallback( - async (newNetwork?: Network) => { - const { wallet } = await connectWithBeacon(network) - - const newTezos: TezosToolkit = initTezosInstance(network || newNetwork) - newTezos.setProvider({ wallet }) - - const account = await newTezos.wallet.pkh() - - dispatch({ - type: TezosActionType.UPDATE_TEZOS, - payload: { - network: newNetwork || network, - tezos: newTezos, - account, - wallet - } - }) - mixpanel.identify(account) - - return newTezos - }, - [dispatch, network] - ) - - return { - tezos, - connect, - reset: useCallback(async () => { - if (!wallet) { - throw new Error("No Wallet Connected") - } - - await wallet.disconnect() - - dispatch({ - type: TezosActionType.RESET_TEZOS - }) - }, [dispatch, wallet]), - changeNetwork: async (newNetwork: Network) => { - mixpanel.register({ Network: newNetwork }) - - localStorage.setItem("homebase:network", newNetwork) - - if (!("_pkh" in tezos.wallet)) { - const Tezos = new TezosToolkit(rpcNodes[newNetwork]) - Tezos.setPackerProvider(new MichelCodecPacker()) - Tezos.addExtension(new Tzip16Module()) - - dispatch({ - type: TezosActionType.UPDATE_TEZOS, - payload: { - network: newNetwork, - tezos: Tezos, - account, - wallet: undefined - } - }) - } else { - await connect(newNetwork) - } - queryClient.resetQueries() - location.reload() - }, - account, - network, - wallet - } -} diff --git a/src/services/contracts/baseDAO/hooks/useBlockchainInfo.ts b/src/services/contracts/baseDAO/hooks/useBlockchainInfo.ts deleted file mode 100644 index e86eb70..0000000 --- a/src/services/contracts/baseDAO/hooks/useBlockchainInfo.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { getNetworkStats } from "../../../bakingBad/stats" -import { useQuery } from "react-query" -import { useTezos } from "services/beacon/hooks/useTezos" -import { BlockchainStats } from "../../../bakingBad/stats/types" - -export const useBlockchainInfo = () => { - const { network } = useTezos() - return useQuery(["blockchainStats", network], () => getNetworkStats(network)) -} diff --git a/src/services/contracts/baseDAO/hooks/useCycleInfo.ts b/src/services/contracts/baseDAO/hooks/useCycleInfo.ts deleted file mode 100644 index cb175bd..0000000 --- a/src/services/contracts/baseDAO/hooks/useCycleInfo.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { useMemo } from "react" -import { useDAO } from "services/services/dao/hooks/useDAO" - -export const useIsProposalButtonDisabled = (daoId: string) => { - const { cycleInfo } = useDAO(daoId) - - return useMemo(() => { - if (cycleInfo && cycleInfo.type === "voting") { - return true - } - - return false - }, [cycleInfo]) -} diff --git a/src/services/contracts/baseDAO/hooks/useDAOHoldings.ts b/src/services/contracts/baseDAO/hooks/useDAOHoldings.ts deleted file mode 100644 index a205605..0000000 --- a/src/services/contracts/baseDAO/hooks/useDAOHoldings.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { BaseDAO } from ".." -import { useQuery } from "react-query" -import { DAOHolding, getDAOBalances, getDAONFTBalances, NFTDAOHolding } from "services/bakingBad/tokenBalances" -import { useDAO } from "services/services/dao/hooks/useDAO" -import { useTezos } from "services/beacon/hooks/useTezos" -import { useMemo } from "react" -import { NFT } from "models/Token" - -export const useDAOHoldings = (contractAddress: string) => { - const { data: dao } = useDAO(contractAddress) - const { network } = useTezos() - - const { data, ...rest } = useQuery( - ["balances", contractAddress], - async () => { - return await getDAOBalances((dao as BaseDAO).data.address, network) - }, - { - enabled: !!dao - } - ) - - const tokens = useMemo(() => { - if (!data) { - return [] - } - - return data.filter(holding => !(holding.token instanceof NFT)) - }, [data]) - - return { - tokenHoldings: tokens, - data, - ...rest - } -} - -export const useDAONFTHoldings = (contractAddress: string) => { - const { data: dao } = useDAO(contractAddress) - const { network } = useTezos() - - const { data, ...rest } = useQuery( - ["nftbalances", contractAddress], - async () => { - return await getDAONFTBalances((dao as BaseDAO).data.address, network) - }, - { - enabled: !!dao - } - ) - - const nfts = useMemo(() => { - if (!data) { - return null - } - - return data.filter(holding => holding.token instanceof NFT && holding.balance.isGreaterThan(0)) as NFTDAOHolding[] - }, [data]) - - return { - nftHoldings: nfts, - data, - ...rest - } -} diff --git a/src/services/contracts/baseDAO/hooks/useDAOLambda.ts b/src/services/contracts/baseDAO/hooks/useDAOLambda.ts deleted file mode 100644 index 85b1657..0000000 --- a/src/services/contracts/baseDAO/hooks/useDAOLambda.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { BaseDAO } from ".." -import { useQuery } from "react-query" -import { useDAO } from "services/services/dao/hooks/useDAO" -import { useTezos } from "services/beacon/hooks/useTezos" -import { getDAOLambda } from "services/bakingBad/lambdas" -import { Lambda } from "services/bakingBad/lambdas/types" - -export const useDAOLambda = (contractAddress: string, lambda_name: string) => { - const { data: dao } = useDAO(contractAddress) - const { network } = useTezos() - - const { data } = useQuery( - ["lambdas", contractAddress, lambda_name], - async () => { - return await getDAOLambda((dao as BaseDAO).data.address, network, lambda_name) - }, - { - enabled: !!dao - } - ) - - return data -} diff --git a/src/services/contracts/baseDAO/hooks/useDAOLambdas.ts b/src/services/contracts/baseDAO/hooks/useDAOLambdas.ts deleted file mode 100644 index 217639c..0000000 --- a/src/services/contracts/baseDAO/hooks/useDAOLambdas.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { BaseDAO } from ".." -import { useQuery } from "react-query" -import { useDAO } from "services/services/dao/hooks/useDAO" -import { useTezos } from "services/beacon/hooks/useTezos" -import { getDAOLambdas } from "services/bakingBad/lambdas" -import { Lambda } from "services/bakingBad/lambdas/types" - -export const useDAOLambdas = (contractAddress: string) => { - const { data: dao } = useDAO(contractAddress) - const { network } = useTezos() - - const { data } = useQuery( - ["lambdas", contractAddress], - async () => { - return await getDAOLambdas((dao as BaseDAO).data.address, network) - }, - { - enabled: !!dao - } - ) - - return data -} diff --git a/src/services/contracts/baseDAO/hooks/useDelegate.ts b/src/services/contracts/baseDAO/hooks/useDelegate.ts deleted file mode 100644 index 016ef2a..0000000 --- a/src/services/contracts/baseDAO/hooks/useDelegate.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { useQuery } from "react-query" -import { useDAO } from "services/services/dao/hooks/useDAO" -import { useTezos } from "services/beacon/hooks/useTezos" -import { getLatestDelegation } from "services/bakingBad/delegations" - -export const useDelegate = (contractAddress: string) => { - const { data: dao } = useDAO(contractAddress) - const { tezos, network } = useTezos() - - const result = useQuery<{ address: string; alias?: string } | null, Error>( - ["daoDelegate", contractAddress], - async () => { - const latestDelegation = await getLatestDelegation(contractAddress, network) - - if (!latestDelegation) { - return null - } - - return latestDelegation.newDelegate - }, - { - enabled: !!dao && !!tezos - } - ) - - return result -} diff --git a/src/services/contracts/baseDAO/hooks/useTezosBalance.ts b/src/services/contracts/baseDAO/hooks/useTezosBalance.ts deleted file mode 100644 index 1d9967c..0000000 --- a/src/services/contracts/baseDAO/hooks/useTezosBalance.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { BaseDAO } from ".." -import { useQuery } from "react-query" -import { useDAO } from "services/services/dao/hooks/useDAO" -import { useTezos } from "services/beacon/hooks/useTezos" -import BigNumber from "bignumber.js" -import { mutezToXtz } from "services/contracts/utils" - -export const useTezosBalance = (contractAddress: string) => { - const { data: dao } = useDAO(contractAddress) - const { tezos } = useTezos() - - const result = useQuery( - ["tezosBalance", contractAddress], - async () => { - const balance = await tezos.tz.getBalance((dao as BaseDAO).data.address) - return mutezToXtz(new BigNumber(balance.toString())) - }, - { - enabled: !!dao && !!tezos - } - ) - - return result -} diff --git a/src/services/contracts/baseDAO/hooks/useTokenHoldersWithVotes.ts b/src/services/contracts/baseDAO/hooks/useTokenHoldersWithVotes.ts deleted file mode 100644 index 53dbbb7..0000000 --- a/src/services/contracts/baseDAO/hooks/useTokenHoldersWithVotes.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { BigNumber } from "bignumber.js" -import { useMemo } from "react" -import { useDAO } from "services/services/dao/hooks/useDAO" -import { useProposals } from "services/services/dao/hooks/useProposals" - -export const useTokenHoldersWithVotes = (contractAddress: string) => { - const { isLoading: daoIsLoading, error: daoError, ledger } = useDAO(contractAddress) - - const { data: proposals, isLoading: proposalsIsLoading, error: proposalsError } = useProposals(contractAddress) - - const tokenHoldersWithVotes = useMemo(() => { - if (!proposals || !ledger) { - return [] - } - - return ledger.map(tokenHolder => { - let proposalsVoted = 0 - let votes = new BigNumber(0) - - proposals.forEach(proposal => { - const voter = proposal.voters.find( - voter => voter.address.toLowerCase() === tokenHolder.holder.address.toLowerCase() - ) - - if (voter) { - votes = votes.plus(voter.value) - proposalsVoted += 1 - } - }) - - return { - ...tokenHolder, - votes, - proposalsVoted - } - }) - }, [proposals, ledger]) - - return { - data: tokenHoldersWithVotes, - isLoading: proposalsIsLoading || daoIsLoading, - error: proposalsError || daoError - } -} diff --git a/src/services/contracts/baseDAO/hooks/useTokenMetadata.ts b/src/services/contracts/baseDAO/hooks/useTokenMetadata.ts deleted file mode 100644 index e259a1b..0000000 --- a/src/services/contracts/baseDAO/hooks/useTokenMetadata.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Token } from "models/Token" -import { useQuery } from "react-query" -import { getTokenMetadata } from "services/bakingBad/tokenBalances" - -import { useTezos } from "services/beacon/hooks/useTezos" - -export const useTokenMetadata = (address?: string, tokenId?: string) => { - const { tezos, network } = useTezos() - - const result = useQuery( - ["tokenMetadata", address, tokenId], - () => getTokenMetadata(address as string, network, tokenId as string), - { - enabled: !!tezos && !!address - } - ) - - return result -} diff --git a/src/services/contracts/baseDAO/hooks/useTransfers.ts b/src/services/contracts/baseDAO/hooks/useTransfers.ts deleted file mode 100644 index b703c51..0000000 --- a/src/services/contracts/baseDAO/hooks/useTransfers.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { BaseDAO } from ".." -import { useQuery } from "react-query" -import { useDAO } from "services/services/dao/hooks/useDAO" -import { useTezos } from "services/beacon/hooks/useTezos" -import { getDAOTransfers } from "services/bakingBad/transfers" -import { mutezToXtz, parseUnits } from "services/contracts/utils" -import { BigNumber } from "bignumber.js" -import { getXTZTransfers } from "services/services/dao/services" -import dayjs from "dayjs" - -export interface TransferWithBN { - name: string - amount: BigNumber - recipient: string - sender: string - date: string - hash: string -} - -export const useTransfers = (contractAddress: string) => { - const { data: dao } = useDAO(contractAddress) - const { network } = useTezos() - - const result = useQuery( - ["transfers", contractAddress], - async () => { - const tokenTransfersDTO = await getDAOTransfers((dao as BaseDAO).data.address, network) - - const xtzTransfersDTO = await getXTZTransfers((dao as BaseDAO).data.address) - - const xtzTransfers: TransferWithBN[] = xtzTransfersDTO.transfer.map(t => ({ - ...t, - recipient: contractAddress, - sender: t.from_address, - date: t.timestamp, - name: "XTZ", - hash: t.hash, - amount: mutezToXtz(new BigNumber(t.amount)) - })) - - const tokenTransfers: TransferWithBN[] = tokenTransfersDTO.map(t => ({ - ...t, - recipient: t.to, - sender: t.from, - date: t.timestamp, - name: t.token.symbol === "OBJKT" ? `${t.token.symbol}#${t.token.token_id}` : t.token.symbol || "-", - hash: t.hash, - amount: parseUnits(new BigNumber(t.amount), t.token.decimals) - })) - - return tokenTransfers.concat(xtzTransfers).sort((a, b) => (dayjs(a.date).isAfter(dayjs(b.date)) ? 1 : -1)) - }, - { - enabled: !!dao - } - ) - - return result -} diff --git a/src/services/services/dao/hooks/useAllDAOs.ts b/src/services/services/dao/hooks/useAllDAOs.ts deleted file mode 100644 index cce1626..0000000 --- a/src/services/services/dao/hooks/useAllDAOs.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { useQuery } from "react-query" -import { Network } from "services/beacon" -import { getDAOs } from "services/services/dao/services" -import { getLiteDAOs } from "../../lite/lite-services" - -export const useAllDAOs = (network: Network) => { - return useQuery( - ["daos", network], - async () => { - const homebase_daos = await getDAOs(network) - const lite_daos = await getLiteDAOs(network) - - return [...homebase_daos, ...lite_daos] - }, - { - enabled: !!network - } - ) -} diff --git a/src/services/services/dao/hooks/useDAO.ts b/src/services/services/dao/hooks/useDAO.ts deleted file mode 100644 index 71d1c60..0000000 --- a/src/services/services/dao/hooks/useDAO.ts +++ /dev/null @@ -1,155 +0,0 @@ -import BigNumber from "bignumber.js" -import { useState, useContext, useEffect, useMemo } from "react" -import { useQuery } from "react-query" -import { TZKTSubscriptionsContext } from "services/bakingBad/context/TZKTSubscriptions" -import { getTokenMetadata } from "services/bakingBad/tokenBalances" -import { Network } from "services/beacon" -import { useTezos } from "services/beacon/hooks/useTezos" -import { unpackExtraNumValue, CycleInfo } from "services/contracts/baseDAO" -import { LambdaDAO } from "services/contracts/baseDAO/lambdaDAO" -import { parseUnits } from "services/contracts/utils" -import { getDAO } from "services/services/dao/services" -import { useBlockchainInfo } from "../../../contracts/baseDAO/hooks/useBlockchainInfo" -import { fetchLiteData } from "services/services/lite/lite-services" - -export const useDAO = (address: string) => { - const [cycleInfo, setCycleInfo] = useState() - const { network } = useTezos() - const { data: blockchainInfo } = useBlockchainInfo() - const { - state: { block } - } = useContext(TZKTSubscriptionsContext) - - const { data, ...rest } = useQuery( - ["dao", address], - async () => { - const response = await getDAO(address as string) - const liteDAO = await fetchLiteData(address, network) - - const dao = response.daos[0] - - const token = await getTokenMetadata( - dao.token.contract, - dao.token.network as Network, - dao.token.token_id.toString() - ) - - const base = { - ...dao, - token, - ledger: dao.ledgers.map(ledger => { - const current_unstaked = parseUnits(new BigNumber(ledger.current_unstaked), dao.token.decimals) - - const past_unstaked = parseUnits(new BigNumber(ledger.past_unstaked), dao.token.decimals) - - const staked = parseUnits(new BigNumber(ledger.staked), dao.token.decimals) - - const current_stage_num = ledger.current_stage_num - - return { - ...ledger, - current_stage_num, - current_unstaked, - past_unstaked, - staked, - holder: { - ...ledger.holder, - proposals_voted: ledger.holder.proposals_aggregate?.aggregate.count || 0, - votes_cast: parseUnits( - new BigNumber(ledger.holder.votes_aggregate?.aggregate.sum.amount || 0), - dao.token.decimals - ) - } - } - }), - type: dao.dao_type.name, - extra: - dao.dao_type.name === "lambda" - ? ({ - ...dao.lambda_extras[0], - frozen_extra_value: parseUnits( - unpackExtraNumValue((dao.lambda_extras[0] as any).frozen_extra_value), - dao.token.decimals - ), - frozen_scale_value: unpackExtraNumValue((dao.lambda_extras[0] as any).frozen_scale_value), - slash_division_value: unpackExtraNumValue((dao.lambda_extras[0] as any).slash_division_value), - min_xtz_amount: unpackExtraNumValue((dao.lambda_extras[0] as any).min_xtz_amount), - max_xtz_amount: unpackExtraNumValue((dao.lambda_extras[0] as any).max_xtz_amount), - slash_scale_value: unpackExtraNumValue((dao.lambda_extras[0] as any).slash_scale_value), - max_proposal_size: (dao.lambda_extras[0] as any).max_proposal_size - } as any) - : ({ - ...dao.treasury_extras[0], - frozen_extra_value: parseUnits( - unpackExtraNumValue((dao.treasury_extras[0] as any).frozen_extra_value), - dao.token.decimals - ), - frozen_scale_value: unpackExtraNumValue((dao.treasury_extras[0] as any).frozen_scale_value), - slash_division_value: unpackExtraNumValue((dao.treasury_extras[0] as any).slash_division_value), - min_xtz_amount: unpackExtraNumValue((dao.treasury_extras[0] as any).min_xtz_amount), - max_xtz_amount: unpackExtraNumValue((dao.treasury_extras[0] as any).max_xtz_amount), - slash_scale_value: unpackExtraNumValue((dao.treasury_extras[0] as any).slash_scale_value) - } as any), - quorum_threshold: parseUnits(new BigNumber(dao.quorum_threshold), dao.token.decimals) - } - - switch (dao.dao_type.name) { - case "lambda": - return new LambdaDAO({ ...base, liteDAO }) - default: - throw new Error(`DAO with address '${dao.address}' has an unrecognized type '${dao.dao_type.name}'`) - } - }, - { - enabled: !!address, - refetchInterval: 30000 - } - ) - - useEffect(() => { - ;(async () => { - if (data && blockchainInfo) { - const blockTimeAverage = blockchainInfo.constants.timeBetweenBlocks - const blocksFromStart = block - data.data.start_level - const periodsFromStart = Math.floor(blocksFromStart / Number(data.data.period)) - const type = periodsFromStart % 2 == 0 ? "voting" : "proposing" - const blocksLeft = Number(data.data.period) - (blocksFromStart % Number(data.data.period)) - - setCycleInfo({ - blocksLeft, - type, - timeEstimateForNextBlock: blockTimeAverage, - currentCycle: periodsFromStart, - currentLevel: block - }) - } - })() - }, [data, blockchainInfo, block, network]) - - const ledgerWithBalances = useMemo(() => { - if (data && cycleInfo) { - return data.data.ledger.map(l => { - const available_balance = - cycleInfo.currentCycle > Number(l.current_stage_num) - ? l.current_unstaked.plus(l.past_unstaked) - : l.past_unstaked - - const total_balance = l.current_unstaked.plus(l.past_unstaked) - - return { - ...l, - available_balance, - pending_balance: total_balance.minus(available_balance), - total_balance - } - }) - } - }, [data, cycleInfo]) - - return { - data, - cycleInfo, - ledger: ledgerWithBalances, - ...rest - } -} diff --git a/src/services/services/dao/hooks/useProposal.ts b/src/services/services/dao/hooks/useProposal.ts deleted file mode 100644 index 2896b00..0000000 --- a/src/services/services/dao/hooks/useProposal.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { useQuery } from "react-query" -import { BaseDAO } from "services/contracts/baseDAO" -import { LambdaProposal } from "../mappers/proposal/types" -import { getProposal } from "../services" -import { useDAO } from "./useDAO" - -export const useProposal = (contractAddress: string, proposalKey: string) => { - const { data: dao, isLoading, error, cycleInfo } = useDAO(contractAddress) - - const queryResults = useQuery( - ["proposal", contractAddress, proposalKey], - async () => { - const response = await getProposal(contractAddress as string, proposalKey) - const proposal = response.daos[0].proposals[0] - - switch (dao?.data.type) { - case "lambda": - return new LambdaProposal(proposal, dao) - default: - throw new Error(`DAO with address '${dao?.data.address}' has an unrecognized type '${dao?.data.type}'`) - } - }, - { - refetchInterval: 30000, - enabled: !!dao && !!cycleInfo - } - ) - - return { - data: queryResults.data, - isLoading: isLoading || queryResults.isLoading, - error: error || queryResults.error - } -} diff --git a/src/services/services/dao/hooks/useProposals.ts b/src/services/services/dao/hooks/useProposals.ts deleted file mode 100644 index 8b1e30a..0000000 --- a/src/services/services/dao/hooks/useProposals.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { useQuery } from "react-query" -import { BaseDAO, CycleInfo } from "services/contracts/baseDAO" -import { getProposals } from "services/services/dao/services" -import { ProposalStatus } from "services/services/dao/mappers/proposal/types" -import { useDAO } from "./useDAO" - -export const useProposals = (contractAddress: string, status?: ProposalStatus) => { - const { data: daoData, isLoading, error, cycleInfo } = useDAO(contractAddress) - - const queryResults = useQuery( - ["proposals", contractAddress, status], - async () => { - const dao = daoData as BaseDAO - const proposals = await getProposals(dao) - - if (!status) { - return proposals - } - - return proposals.filter( - proposalData => proposalData.getStatus((cycleInfo as CycleInfo).currentLevel).status === status - ) - }, - { - refetchInterval: 30000, - enabled: !!daoData && !!cycleInfo - } - ) - - return { - data: queryResults.data, - isLoading: isLoading || queryResults.isLoading, - error: error || queryResults.error - } -} diff --git a/yarn.lock b/yarn.lock index 723ead8..c9ab5c0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -194,28 +194,6 @@ "@airgap/beacon-transport-matrix" "^3.3.4" "@airgap/beacon-transport-postmessage" "^3.3.4" -"@alloc/quick-lru@^5.2.0": - version "5.2.0" - resolved "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz" - integrity sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw== - -"@ampproject/remapping@^2.2.0": - version "2.2.1" - resolved "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz" - integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg== - dependencies: - "@jridgewell/gen-mapping" "^0.3.0" - "@jridgewell/trace-mapping" "^0.3.9" - -"@apideck/better-ajv-errors@^0.3.1": - version "0.3.6" - resolved "https://registry.npmjs.org/@apideck/better-ajv-errors/-/better-ajv-errors-0.3.6.tgz" - integrity sha512-P+ZygBLZtkp0qqOAJJVX4oX/sFo5JR3eBWwwuqHHhK0GIgQOKWrAfiAaWX0aArHkRWHMuggFEgAZNxVPwPZYaA== - dependencies: - json-schema "^0.4.0" - jsonpointer "^5.0.0" - leven "^3.1.0" - "@babel/code-frame@7.12.11": version "7.12.11" resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz" @@ -223,256 +201,18 @@ dependencies: "@babel/highlight" "^7.10.4" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.0", "@babel/code-frame@^7.21.4", "@babel/code-frame@^7.8.3": +"@babel/code-frame@^7.0.0": version "7.21.4" resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz" integrity sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g== dependencies: "@babel/highlight" "^7.18.6" -"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.22.0", "@babel/compat-data@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.3.tgz" - integrity sha512-aNtko9OPOwVESUFp3MZfD8Uzxl7JzSeJpd7npIoxCasU37PFbAQRpKglkaKwlHOyeJdrREpo8TW8ldrkYWwvIQ== - -"@babel/core@^7.1.0", "@babel/core@^7.11.1", "@babel/core@^7.12.3", "@babel/core@^7.16.0", "@babel/core@^7.7.2", "@babel/core@^7.8.0": - version "7.22.1" - resolved "https://registry.npmjs.org/@babel/core/-/core-7.22.1.tgz" - integrity sha512-Hkqu7J4ynysSXxmAahpN1jjRwVJ+NdpraFLIWflgjpVob3KNyK3/tIUc7Q7szed8WMp0JNa7Qtd1E9Oo22F9gA== - dependencies: - "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.21.4" - "@babel/generator" "^7.22.0" - "@babel/helper-compilation-targets" "^7.22.1" - "@babel/helper-module-transforms" "^7.22.1" - "@babel/helpers" "^7.22.0" - "@babel/parser" "^7.22.0" - "@babel/template" "^7.21.9" - "@babel/traverse" "^7.22.1" - "@babel/types" "^7.22.0" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.2" - semver "^6.3.0" - -"@babel/eslint-parser@^7.16.3": - version "7.21.8" - resolved "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.21.8.tgz" - integrity sha512-HLhI+2q+BP3sf78mFUZNCGc10KEmoUqtUT1OCdMZsN+qr4qFeLUod62/zAnF3jNQstwyasDkZnVXwfK2Bml7MQ== - dependencies: - "@nicolo-ribaudo/eslint-scope-5-internals" "5.1.1-v1" - eslint-visitor-keys "^2.1.0" - semver "^6.3.0" - -"@babel/generator@^7.22.0", "@babel/generator@^7.22.3", "@babel/generator@^7.7.2": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.22.3.tgz" - integrity sha512-C17MW4wlk//ES/CJDL51kPNwl+qiBQyN7b9SKyVp11BLGFeSPoVaHrv+MNt8jwQFhQWowW88z1eeBx3pFz9v8A== - dependencies: - "@babel/types" "^7.22.3" - "@jridgewell/gen-mapping" "^0.3.2" - "@jridgewell/trace-mapping" "^0.3.17" - jsesc "^2.5.1" - -"@babel/helper-annotate-as-pure@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz" - integrity sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-builder-binary-assignment-operator-visitor@^7.18.6": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.3.tgz" - integrity sha512-ahEoxgqNoYXm0k22TvOke48i1PkavGu0qGCmcq9ugi6gnmvKNaMjKBSrZTnWUi1CFEeNAUiVba0Wtzm03aSkJg== - dependencies: - "@babel/types" "^7.22.3" - -"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.20.7", "@babel/helper-compilation-targets@^7.22.1": - version "7.22.1" - resolved "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.1.tgz" - integrity sha512-Rqx13UM3yVB5q0D/KwQ8+SPfX/+Rnsy1Lw1k/UwOC4KC6qrzIQoY3lYnBu5EHKBlEHHcj0M0W8ltPSkD8rqfsQ== - dependencies: - "@babel/compat-data" "^7.22.0" - "@babel/helper-validator-option" "^7.21.0" - browserslist "^4.21.3" - lru-cache "^5.1.1" - semver "^6.3.0" - -"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.21.0", "@babel/helper-create-class-features-plugin@^7.22.1": - version "7.22.1" - resolved "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.1.tgz" - integrity sha512-SowrZ9BWzYFgzUMwUmowbPSGu6CXL5MSuuCkG3bejahSpSymioPmuLdhPxNOc9MjuNGjy7M/HaXvJ8G82Lywlw== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-environment-visitor" "^7.22.1" - "@babel/helper-function-name" "^7.21.0" - "@babel/helper-member-expression-to-functions" "^7.22.0" - "@babel/helper-optimise-call-expression" "^7.18.6" - "@babel/helper-replace-supers" "^7.22.1" - "@babel/helper-skip-transparent-expression-wrappers" "^7.20.0" - "@babel/helper-split-export-declaration" "^7.18.6" - semver "^6.3.0" - -"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.22.1": - version "7.22.1" - resolved "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.1.tgz" - integrity sha512-WWjdnfR3LPIe+0EY8td7WmjhytxXtjKAEpnAxun/hkNiyOaPlvGK+NZaBFIdi9ndYV3Gav7BpFvtUwnaJlwi1w== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - regexpu-core "^5.3.1" - semver "^6.3.0" - -"@babel/helper-define-polyfill-provider@^0.4.0": - version "0.4.0" - resolved "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.0.tgz" - integrity sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg== - dependencies: - "@babel/helper-compilation-targets" "^7.17.7" - "@babel/helper-plugin-utils" "^7.16.7" - debug "^4.1.1" - lodash.debounce "^4.0.8" - resolve "^1.14.2" - semver "^6.1.2" - -"@babel/helper-environment-visitor@^7.18.9", "@babel/helper-environment-visitor@^7.22.1": - version "7.22.1" - resolved "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.1.tgz" - integrity sha512-Z2tgopurB/kTbidvzeBrc2To3PUP/9i5MUe+fU6QJCQDyPwSH2oRapkLw3KGECDYSjhQZCNxEvNvZlLw8JjGwA== - -"@babel/helper-function-name@^7.18.9", "@babel/helper-function-name@^7.19.0", "@babel/helper-function-name@^7.21.0": - version "7.21.0" - resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz" - integrity sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg== - dependencies: - "@babel/template" "^7.20.7" - "@babel/types" "^7.21.0" - -"@babel/helper-hoist-variables@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz" - integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-member-expression-to-functions@^7.22.0": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.3.tgz" - integrity sha512-Gl7sK04b/2WOb6OPVeNy9eFKeD3L6++CzL3ykPOWqTn08xgYYK0wz4TUh2feIImDXxcVW3/9WQ1NMKY66/jfZA== - dependencies: - "@babel/types" "^7.22.3" - -"@babel/helper-module-imports@^7.10.4", "@babel/helper-module-imports@^7.16.7", "@babel/helper-module-imports@^7.18.6", "@babel/helper-module-imports@^7.21.4": - version "7.21.4" - resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz" - integrity sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg== - dependencies: - "@babel/types" "^7.21.4" - -"@babel/helper-module-transforms@^7.18.6", "@babel/helper-module-transforms@^7.20.11", "@babel/helper-module-transforms@^7.21.5", "@babel/helper-module-transforms@^7.22.1": - version "7.22.1" - resolved "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.1.tgz" - integrity sha512-dxAe9E7ySDGbQdCVOY/4+UcD8M9ZFqZcZhSPsPacvCG4M+9lwtDDQfI2EoaSvmf7W/8yCBkGU0m7Pvt1ru3UZw== - dependencies: - "@babel/helper-environment-visitor" "^7.22.1" - "@babel/helper-module-imports" "^7.21.4" - "@babel/helper-simple-access" "^7.21.5" - "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/helper-validator-identifier" "^7.19.1" - "@babel/template" "^7.21.9" - "@babel/traverse" "^7.22.1" - "@babel/types" "^7.22.0" - -"@babel/helper-optimise-call-expression@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz" - integrity sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.20.2", "@babel/helper-plugin-utils@^7.21.5", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.21.5.tgz" - integrity sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg== - -"@babel/helper-remap-async-to-generator@^7.18.9": - version "7.18.9" - resolved "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz" - integrity sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-wrap-function" "^7.18.9" - "@babel/types" "^7.18.9" - -"@babel/helper-replace-supers@^7.18.6", "@babel/helper-replace-supers@^7.20.7", "@babel/helper-replace-supers@^7.22.1": - version "7.22.1" - resolved "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.1.tgz" - integrity sha512-ut4qrkE4AuSfrwHSps51ekR1ZY/ygrP1tp0WFm8oVq6nzc/hvfV/22JylndIbsf2U2M9LOMwiSddr6y+78j+OQ== - dependencies: - "@babel/helper-environment-visitor" "^7.22.1" - "@babel/helper-member-expression-to-functions" "^7.22.0" - "@babel/helper-optimise-call-expression" "^7.18.6" - "@babel/template" "^7.21.9" - "@babel/traverse" "^7.22.1" - "@babel/types" "^7.22.0" - -"@babel/helper-simple-access@^7.21.5": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz" - integrity sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg== - dependencies: - "@babel/types" "^7.21.5" - -"@babel/helper-skip-transparent-expression-wrappers@^7.20.0": - version "7.20.0" - resolved "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz" - integrity sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg== - dependencies: - "@babel/types" "^7.20.0" - -"@babel/helper-split-export-declaration@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz" - integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== - dependencies: - "@babel/types" "^7.18.6" - -"@babel/helper-string-parser@^7.21.5": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz" - integrity sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w== - -"@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": +"@babel/helper-validator-identifier@^7.18.6": version "7.19.1" resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz" integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== -"@babel/helper-validator-option@^7.21.0": - version "7.21.0" - resolved "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz" - integrity sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ== - -"@babel/helper-wrap-function@^7.18.9": - version "7.20.5" - resolved "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz" - integrity sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q== - dependencies: - "@babel/helper-function-name" "^7.19.0" - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.20.5" - "@babel/types" "^7.20.5" - -"@babel/helpers@^7.22.0": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.3.tgz" - integrity sha512-jBJ7jWblbgr7r6wYZHMdIqKc73ycaTcCaWRq4/2LpuPHcx7xMlZvpGQkOYc9HeSjn6rcx15CPlgVcBtZ4WZJ2w== - dependencies: - "@babel/template" "^7.21.9" - "@babel/traverse" "^7.22.1" - "@babel/types" "^7.22.3" - "@babel/highlight@^7.10.4", "@babel/highlight@^7.18.6": version "7.18.6" resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz" @@ -482,11367 +222,4794 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.21.9", "@babel/parser@^7.22.0", "@babel/parser@^7.22.4": - version "7.22.4" - resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.22.4.tgz" - integrity sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA== - -"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz" - integrity sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.22.3": +"@babel/runtime@^7.15.4", "@babel/runtime@^7.21.0": version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.3.tgz" - integrity sha512-6r4yRwEnorYByILoDRnEqxtojYKuiIv9FojW2E8GUKo9eWBwbKcd9IiZOZpdyXc64RmyGGyPu3/uAcrz/dq2kQ== + resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz" + integrity sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.20.0" - "@babel/plugin-transform-optional-chaining" "^7.22.3" + regenerator-runtime "^0.13.11" -"@babel/plugin-proposal-class-properties@^7.16.0": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz" - integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== +"@craco/craco@^7.1.0": + version "7.1.0" + resolved "https://registry.npmjs.org/@craco/craco/-/craco-7.1.0.tgz" + integrity sha512-oRAcPIKYrfPXp9rSzlsDNeOaVtDiKhoyqSXUoqiK24jCkHr4T8m/a2f74yXIzCbIheoUWDOIfWZyRgFgT+cpqA== dependencies: - "@babel/helper-create-class-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" + autoprefixer "^10.4.12" + cosmiconfig "^7.0.1" + cosmiconfig-typescript-loader "^1.0.0" + cross-spawn "^7.0.3" + lodash "^4.17.21" + semver "^7.3.7" + webpack-merge "^5.8.0" -"@babel/plugin-proposal-decorators@^7.16.4": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.22.3.tgz" - integrity sha512-XjTKH3sHr6pPqG+hR1NCdVupwiosfdKM2oSMyKQVQ5Bym9l/p7BuLAqT5U32zZzRCfPq/TPRPzMiiTE9bOXU4w== +"@cspotcode/source-map-support@^0.8.0": + version "0.8.1" + resolved "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz" + integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== dependencies: - "@babel/helper-create-class-features-plugin" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/helper-replace-supers" "^7.22.1" - "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/plugin-syntax-decorators" "^7.22.3" + "@jridgewell/trace-mapping" "0.3.9" -"@babel/plugin-proposal-nullish-coalescing-operator@^7.16.0": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz" - integrity sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" +"@date-io/core@^1.3.13": + version "1.3.13" + resolved "https://registry.npmjs.org/@date-io/core/-/core-1.3.13.tgz" + integrity sha512-AlEKV7TxjeK+jxWVKcCFrfYAk8spX9aCyiToFIiLPtfQbsjmRGLIhb5VZgptQcJdHtLXo7+m0DuurwFgUToQuA== -"@babel/plugin-proposal-numeric-separator@^7.16.0": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz" - integrity sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q== +"@date-io/dayjs@1.x": + version "1.3.13" + resolved "https://registry.npmjs.org/@date-io/dayjs/-/dayjs-1.3.13.tgz" + integrity sha512-nD39xWYwQjDMIdpUzHIcADHxY9m1hm1DpOaRn3bc2rBdgmwQC0PfW0WYaHyGGP/6LEzEguINRbHuotMhf+T9Sg== dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" + "@date-io/core" "^1.3.13" -"@babel/plugin-proposal-optional-chaining@^7.16.0": - version "7.21.0" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz" - integrity sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA== +"@eslint/eslintrc@^0.4.3": + version "0.4.3" + resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz" + integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw== dependencies: - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/helper-skip-transparent-expression-wrappers" "^7.20.0" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" + ajv "^6.12.4" + debug "^4.1.1" + espree "^7.3.0" + globals "^13.9.0" + ignore "^4.0.6" + import-fresh "^3.2.1" + js-yaml "^3.13.1" + minimatch "^3.0.4" + strip-json-comments "^3.1.1" -"@babel/plugin-proposal-private-methods@^7.16.0": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz" - integrity sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" +"@hookform/resolvers@^2.8.1": + version "2.9.11" + resolved "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-2.9.11.tgz" + integrity sha512-bA3aZ79UgcHj7tFV7RlgThzwSSHZgvfbt2wprldRkYBcMopdMvHyO17Wwp/twcJasNFischFfS7oz8Katz8DdQ== -"@babel/plugin-proposal-private-property-in-object@^7.21.0": - version "7.21.0" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0.tgz" - integrity sha512-ha4zfehbJjc5MmXBlHec1igel5TJXXLDDRbuJ4+XT2TJcyD9/V1919BA8gMvsdHcNMBy4WBUBiRb3nw/EQUtBw== +"@humanwhocodes/config-array@^0.5.0": + version "0.5.0" + resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz" + integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-create-class-features-plugin" "^7.21.0" - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + "@humanwhocodes/object-schema" "^1.2.0" + debug "^4.1.1" + minimatch "^3.0.4" -"@babel/plugin-proposal-unicode-property-regex@^7.4.4": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz" - integrity sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" +"@humanwhocodes/object-schema@^1.2.0": + version "1.2.1" + resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz" + integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== -"@babel/plugin-syntax-async-generators@^7.8.4": - version "7.8.4" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz" - integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== +"@jest/types@^26.6.2": + version "26.6.2" + resolved "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz" + integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ== dependencies: - "@babel/helper-plugin-utils" "^7.8.0" + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^15.0.0" + chalk "^4.0.0" -"@babel/plugin-syntax-bigint@^7.8.3": - version "7.8.3" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz" - integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" +"@jridgewell/resolve-uri@^3.0.3": + version "3.1.1" + resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz" + integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== -"@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3": - version "7.12.13" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz" - integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== - dependencies: - "@babel/helper-plugin-utils" "^7.12.13" +"@jridgewell/sourcemap-codec@^1.4.10": + version "1.4.15" + resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz" + integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== -"@babel/plugin-syntax-class-static-block@^7.14.5": - version "7.14.5" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz" - integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw== +"@jridgewell/trace-mapping@0.3.9": + version "0.3.9" + resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz" + integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== dependencies: - "@babel/helper-plugin-utils" "^7.14.5" + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" -"@babel/plugin-syntax-decorators@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.22.3.tgz" - integrity sha512-R16Zuge73+8/nLcDjkIpyhi5wIbN7i7fiuLJR8yQX7vPAa/ltUKtd3iLbb4AgP5nrLi91HnNUNosELIGUGH1bg== +"@microsoft/signalr@^5.0.9": + version "5.0.17" + resolved "https://registry.npmjs.org/@microsoft/signalr/-/signalr-5.0.17.tgz" + integrity sha512-zTjFxjh67WWCe35ZipsqkktM5mM+MsckyyI2ZvFmYWR7ibpUoAyZI1DFdYfwXfsyBdlykDaW84o9lrB+9tDpaA== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" + abort-controller "^3.0.0" + eventsource "^1.0.7" + fetch-cookie "^0.7.3" + node-fetch "^2.6.7" + ws "^6.0.0" -"@babel/plugin-syntax-dynamic-import@^7.8.3": - version "7.8.3" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz" - integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== dependencies: - "@babel/helper-plugin-utils" "^7.8.0" + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" -"@babel/plugin-syntax-export-namespace-from@^7.8.3": - version "7.8.3" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz" - integrity sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== -"@babel/plugin-syntax-flow@^7.18.6": - version "7.21.4" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.21.4.tgz" - integrity sha512-l9xd3N+XG4fZRxEP3vXdK6RW7vN1Uf5dxzRC/09wV86wqZ/YYQooBIGNsiRdfNR3/q2/5pPzV4B54J/9ctX5jw== +"@nodelib/fs.walk@^1.2.3": + version "1.2.8" + resolved "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== dependencies: - "@babel/helper-plugin-utils" "^7.20.2" + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" -"@babel/plugin-syntax-import-assertions@^7.20.0": - version "7.20.0" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz" - integrity sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ== - dependencies: - "@babel/helper-plugin-utils" "^7.19.0" +"@stablelib/aead@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/aead/-/aead-1.0.1.tgz" + integrity sha512-q39ik6sxGHewqtO0nP4BuSe3db5G1fEJE8ukvngS2gLkBXyy6E7pLubhbYgnkDFv6V8cWaxcE4Xn0t6LWcJkyg== -"@babel/plugin-syntax-import-attributes@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.3.tgz" - integrity sha512-i35jZJv6aO7hxEbIWQ41adVfOzjm9dcYDNeWlBMd8p0ZQRtNUCBrmGwZt+H5lb+oOC9a3svp956KP0oWGA1YsA== +"@stablelib/binary@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/binary/-/binary-1.0.1.tgz" + integrity sha512-ClJWvmL6UBM/wjkvv/7m5VP3GMr9t0osr4yVgLZsLCOz4hGN9gIAFEqnJ0TsSMAN+n840nf2cHZnA5/KFqHC7Q== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" + "@stablelib/int" "^1.0.1" -"@babel/plugin-syntax-import-meta@^7.10.4", "@babel/plugin-syntax-import-meta@^7.8.3": - version "7.10.4" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz" - integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== +"@stablelib/blake2b@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/blake2b/-/blake2b-1.0.1.tgz" + integrity sha512-B3KyKoBAjkIFeH7romcF96i+pVFYk7K2SBQ1pZvaxV+epSBXJ+n0C66esUhyz6FF+5FbdQVm77C5fzGFcEZpKA== dependencies: - "@babel/helper-plugin-utils" "^7.10.4" + "@stablelib/binary" "^1.0.1" + "@stablelib/hash" "^1.0.1" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-syntax-json-strings@^7.8.3": - version "7.8.3" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz" - integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" +"@stablelib/bytes@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/bytes/-/bytes-1.0.1.tgz" + integrity sha512-Kre4Y4kdwuqL8BR2E9hV/R5sOrUj6NanZaZis0V6lX5yzqC3hBuVSDXUIBqQv/sCpmuWRiHLwqiT1pqqjuBXoQ== -"@babel/plugin-syntax-jsx@^7.21.4": - version "7.21.4" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz" - integrity sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ== +"@stablelib/chacha20poly1305@1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/chacha20poly1305/-/chacha20poly1305-1.0.1.tgz" + integrity sha512-MmViqnqHd1ymwjOQfghRKw2R/jMIGT3wySN7cthjXCBdO+qErNPUBnRzqNpnvIwg7JBCg3LdeCZZO4de/yEhVA== dependencies: - "@babel/helper-plugin-utils" "^7.20.2" + "@stablelib/aead" "^1.0.1" + "@stablelib/binary" "^1.0.1" + "@stablelib/chacha" "^1.0.1" + "@stablelib/constant-time" "^1.0.1" + "@stablelib/poly1305" "^1.0.1" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-syntax-logical-assignment-operators@^7.10.4", "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": - version "7.10.4" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz" - integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== +"@stablelib/chacha@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/chacha/-/chacha-1.0.1.tgz" + integrity sha512-Pmlrswzr0pBzDofdFuVe1q7KdsHKhhU24e8gkEwnTGOmlC7PADzLVxGdn2PoNVBBabdg0l/IfLKg6sHAbTQugg== dependencies: - "@babel/helper-plugin-utils" "^7.10.4" + "@stablelib/binary" "^1.0.1" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": - version "7.8.3" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz" - integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" +"@stablelib/constant-time@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/constant-time/-/constant-time-1.0.1.tgz" + integrity sha512-tNOs3uD0vSJcK6z1fvef4Y+buN7DXhzHDPqRLSXUel1UfqMB1PWNsnnAezrKfEwTLpN0cGH2p9NNjs6IqeD0eg== -"@babel/plugin-syntax-numeric-separator@^7.10.4", "@babel/plugin-syntax-numeric-separator@^7.8.3": - version "7.10.4" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz" - integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== +"@stablelib/ed25519@^1.0.2", "@stablelib/ed25519@^1.0.3": + version "1.0.3" + resolved "https://registry.npmjs.org/@stablelib/ed25519/-/ed25519-1.0.3.tgz" + integrity sha512-puIMWaX9QlRsbhxfDc5i+mNPMY+0TmQEskunY1rZEBPi1acBCVQAhnsk/1Hk50DGPtVsZtAWQg4NHGlVaO9Hqg== dependencies: - "@babel/helper-plugin-utils" "^7.10.4" + "@stablelib/random" "^1.0.2" + "@stablelib/sha512" "^1.0.1" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-syntax-object-rest-spread@^7.8.3": - version "7.8.3" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz" - integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" +"@stablelib/hash@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/hash/-/hash-1.0.1.tgz" + integrity sha512-eTPJc/stDkdtOcrNMZ6mcMK1e6yBbqRBaNW55XA1jU8w/7QdnCF0CmMmOD1m7VSkBR44PWrMHU2l6r8YEQHMgg== -"@babel/plugin-syntax-optional-catch-binding@^7.8.3": - version "7.8.3" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz" - integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== +"@stablelib/hkdf@1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/hkdf/-/hkdf-1.0.1.tgz" + integrity sha512-SBEHYE16ZXlHuaW5RcGk533YlBj4grMeg5TooN80W3NpcHRtLZLLXvKyX0qcRFxf+BGDobJLnwkvgEwHIDBR6g== dependencies: - "@babel/helper-plugin-utils" "^7.8.0" + "@stablelib/hash" "^1.0.1" + "@stablelib/hmac" "^1.0.1" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-syntax-optional-chaining@^7.8.3": - version "7.8.3" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz" - integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== +"@stablelib/hmac@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/hmac/-/hmac-1.0.1.tgz" + integrity sha512-V2APD9NSnhVpV/QMYgCVMIYKiYG6LSqw1S65wxVoirhU/51ACio6D4yDVSwMzuTJXWZoVHbDdINioBwKy5kVmA== dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-private-property-in-object@^7.14.5": - version "7.14.5" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz" - integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" + "@stablelib/constant-time" "^1.0.1" + "@stablelib/hash" "^1.0.1" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-syntax-top-level-await@^7.14.5", "@babel/plugin-syntax-top-level-await@^7.8.3": - version "7.14.5" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz" - integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" +"@stablelib/int@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/int/-/int-1.0.1.tgz" + integrity sha512-byr69X/sDtDiIjIV6m4roLVWnNNlRGzsvxw+agj8CIEazqWGOQp2dTYgQhtyVXV9wpO6WyXRQUzLV/JRNumT2w== -"@babel/plugin-syntax-typescript@^7.21.4", "@babel/plugin-syntax-typescript@^7.7.2": - version "7.21.4" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz" - integrity sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA== +"@stablelib/keyagreement@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/keyagreement/-/keyagreement-1.0.1.tgz" + integrity sha512-VKL6xBwgJnI6l1jKrBAfn265cspaWBPAPEc62VBQrWHLqVgNRE09gQ/AnOEyKUWrrqfD+xSQ3u42gJjLDdMDQg== dependencies: - "@babel/helper-plugin-utils" "^7.20.2" + "@stablelib/bytes" "^1.0.1" -"@babel/plugin-syntax-unicode-sets-regex@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz" - integrity sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg== +"@stablelib/nacl@^1.0.3", "@stablelib/nacl@^1.0.4": + version "1.0.4" + resolved "https://registry.npmjs.org/@stablelib/nacl/-/nacl-1.0.4.tgz" + integrity sha512-PJ2U/MrkXSKUM8C4qFs87WeCNxri7KQwR8Cdwm9q2sweGuAtTvOJGuW0F3N+zn+ySLPJA98SYWSSpogMJ1gCmw== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" + "@stablelib/poly1305" "^1.0.1" + "@stablelib/random" "^1.0.2" + "@stablelib/wipe" "^1.0.1" + "@stablelib/x25519" "^1.0.3" + "@stablelib/xsalsa20" "^1.0.2" -"@babel/plugin-transform-arrow-functions@^7.21.5": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.21.5.tgz" - integrity sha512-wb1mhwGOCaXHDTcsRYMKF9e5bbMgqwxtqa2Y1ifH96dXJPwbuLX9qHy3clhrxVqgMz7nyNXs8VkxdH8UBcjKqA== +"@stablelib/pbkdf2@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/pbkdf2/-/pbkdf2-1.0.1.tgz" + integrity sha512-d5jwK6jW1DkMyzqY8D1Io+fRXcsUVr95lk5LKX9ghaUdAITTc1ZL0bff+R0IrwSixbHluxhnivG7vDw59AZ/Nw== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" + "@stablelib/binary" "^1.0.1" + "@stablelib/hash" "^1.0.1" + "@stablelib/hmac" "^1.0.1" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-transform-async-generator-functions@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.3.tgz" - integrity sha512-36A4Aq48t66btydbZd5Fk0/xJqbpg/v4QWI4AH4cYHBXy9Mu42UOupZpebKFiCFNT9S9rJFcsld0gsv0ayLjtA== +"@stablelib/poly1305@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/poly1305/-/poly1305-1.0.1.tgz" + integrity sha512-1HlG3oTSuQDOhSnLwJRKeTRSAdFNVB/1djy2ZbS35rBSJ/PFqx9cf9qatinWghC2UbfOYD8AcrtbUQl8WoxabA== dependencies: - "@babel/helper-environment-visitor" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/helper-remap-async-to-generator" "^7.18.9" - "@babel/plugin-syntax-async-generators" "^7.8.4" + "@stablelib/constant-time" "^1.0.1" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-transform-async-to-generator@^7.20.7": - version "7.20.7" - resolved "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz" - integrity sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q== +"@stablelib/random@^1.0.1", "@stablelib/random@^1.0.2": + version "1.0.2" + resolved "https://registry.npmjs.org/@stablelib/random/-/random-1.0.2.tgz" + integrity sha512-rIsE83Xpb7clHPVRlBj8qNe5L8ISQOzjghYQm/dZ7VaM2KHYwMW5adjQjrzTZCchFnNCNhkwtnOBa9HTMJCI8w== dependencies: - "@babel/helper-module-imports" "^7.18.6" - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/helper-remap-async-to-generator" "^7.18.9" + "@stablelib/binary" "^1.0.1" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-transform-block-scoped-functions@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz" - integrity sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ== +"@stablelib/salsa20@^1.0.2": + version "1.0.2" + resolved "https://registry.npmjs.org/@stablelib/salsa20/-/salsa20-1.0.2.tgz" + integrity sha512-nfjKzw0KTKrrKBasEP+j7UP4I8Xudom8lVZIBCp0kQNARXq72IlSic0oabg2FC1NU68L4RdHrNJDd8bFwrphYA== dependencies: - "@babel/helper-plugin-utils" "^7.18.6" + "@stablelib/binary" "^1.0.1" + "@stablelib/constant-time" "^1.0.1" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-transform-block-scoping@^7.21.0": - version "7.21.0" - resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz" - integrity sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ== +"@stablelib/sha256@1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/sha256/-/sha256-1.0.1.tgz" + integrity sha512-GIIH3e6KH+91FqGV42Kcj71Uefd/QEe7Dy42sBTeqppXV95ggCcxLTk39bEr+lZfJmp+ghsR07J++ORkRELsBQ== dependencies: - "@babel/helper-plugin-utils" "^7.20.2" + "@stablelib/binary" "^1.0.1" + "@stablelib/hash" "^1.0.1" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-transform-class-properties@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.3.tgz" - integrity sha512-mASLsd6rhOrLZ5F3WbCxkzl67mmOnqik0zrg5W6D/X0QMW7HtvnoL1dRARLKIbMP3vXwkwziuLesPqWVGIl6Bw== +"@stablelib/sha512@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/sha512/-/sha512-1.0.1.tgz" + integrity sha512-13gl/iawHV9zvDKciLo1fQ8Bgn2Pvf7OV6amaRVKiq3pjQ3UmEpXxWiAfV8tYjUpeZroBxtyrwtdooQT/i3hzw== dependencies: - "@babel/helper-create-class-features-plugin" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" + "@stablelib/binary" "^1.0.1" + "@stablelib/hash" "^1.0.1" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-transform-class-static-block@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.3.tgz" - integrity sha512-5BirgNWNOx7cwbTJCOmKFJ1pZjwk5MUfMIwiBBvsirCJMZeQgs5pk6i1OlkVg+1Vef5LfBahFOrdCnAWvkVKMw== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/plugin-syntax-class-static-block" "^7.14.5" - -"@babel/plugin-transform-classes@^7.21.0": - version "7.21.0" - resolved "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz" - integrity sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-compilation-targets" "^7.20.7" - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-function-name" "^7.21.0" - "@babel/helper-optimise-call-expression" "^7.18.6" - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/helper-replace-supers" "^7.20.7" - "@babel/helper-split-export-declaration" "^7.18.6" - globals "^11.1.0" - -"@babel/plugin-transform-computed-properties@^7.21.5": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.21.5.tgz" - integrity sha512-TR653Ki3pAwxBxUe8srfF3e4Pe3FTA46uaNHYyQwIoM4oWKSoOZiDNyHJ0oIoDIUPSRQbQG7jzgVBX3FPVne1Q== - dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/template" "^7.20.7" - -"@babel/plugin-transform-destructuring@^7.21.3": - version "7.21.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz" - integrity sha512-bp6hwMFzuiE4HqYEyoGJ/V2LeIWn+hLVKc4pnj++E5XQptwhtcGmSayM029d/j2X1bPKGTlsyPwAubuU22KhMA== - dependencies: - "@babel/helper-plugin-utils" "^7.20.2" - -"@babel/plugin-transform-dotall-regex@^7.18.6", "@babel/plugin-transform-dotall-regex@^7.4.4": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz" - integrity sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" +"@stablelib/utf8@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/utf8/-/utf8-1.0.1.tgz" + integrity sha512-FrYD1xadah/TtAP6VJ04lDD5h9rdDj/d8wH/jMYTtHqZBv9z2btdvEU8vTxdjdkFmo1b/BH+t3R1wi/mYhCCNg== -"@babel/plugin-transform-duplicate-keys@^7.18.9": - version "7.18.9" - resolved "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz" - integrity sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw== - dependencies: - "@babel/helper-plugin-utils" "^7.18.9" +"@stablelib/wipe@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/wipe/-/wipe-1.0.1.tgz" + integrity sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg== -"@babel/plugin-transform-dynamic-import@^7.22.1": - version "7.22.1" - resolved "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.1.tgz" - integrity sha512-rlhWtONnVBPdmt+jeewS0qSnMz/3yLFrqAP8hHC6EDcrYRSyuz9f9yQhHvVn2Ad6+yO9fHXac5piudeYrInxwQ== +"@stablelib/x25519-session@^1.0.4": + version "1.0.4" + resolved "https://registry.npmjs.org/@stablelib/x25519-session/-/x25519-session-1.0.4.tgz" + integrity sha512-UZw67EJWSNTaou7Qp086fzGek7crrCQl2K7MoqEzslXxrm6vybySfcdsqaZ0ZpKq19IHWK8G0wAlFBy70srm3w== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/plugin-syntax-dynamic-import" "^7.8.3" + "@stablelib/blake2b" "^1.0.1" + "@stablelib/keyagreement" "^1.0.1" + "@stablelib/random" "^1.0.2" + "@stablelib/wipe" "^1.0.1" + "@stablelib/x25519" "^1.0.3" -"@babel/plugin-transform-exponentiation-operator@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz" - integrity sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw== +"@stablelib/x25519@^1.0.3": + version "1.0.3" + resolved "https://registry.npmjs.org/@stablelib/x25519/-/x25519-1.0.3.tgz" + integrity sha512-KnTbKmUhPhHavzobclVJQG5kuivH+qDLpe84iRqX3CLrKp881cF160JvXJ+hjn1aMyCwYOKeIZefIH/P5cJoRw== dependencies: - "@babel/helper-builder-binary-assignment-operator-visitor" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" + "@stablelib/keyagreement" "^1.0.1" + "@stablelib/random" "^1.0.2" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-transform-export-namespace-from@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.3.tgz" - integrity sha512-5Ti1cHLTDnt3vX61P9KZ5IG09bFXp4cDVFJIAeCZuxu9OXXJJZp5iP0n/rzM2+iAutJY+KWEyyHcRaHlpQ/P5g== +"@stablelib/xsalsa20@^1.0.2": + version "1.0.2" + resolved "https://registry.npmjs.org/@stablelib/xsalsa20/-/xsalsa20-1.0.2.tgz" + integrity sha512-7XdBGbcNgBShmuhDXv1G1WPVCkjZdkb1oPMzSidO7Fve0MHntH6TjFkj5bfLI+aRE+61weO076vYpP/jmaAYog== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/plugin-syntax-export-namespace-from" "^7.8.3" + "@stablelib/binary" "^1.0.1" + "@stablelib/salsa20" "^1.0.2" + "@stablelib/wipe" "^1.0.1" -"@babel/plugin-transform-flow-strip-types@^7.16.0": - version "7.21.0" - resolved "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.21.0.tgz" - integrity sha512-FlFA2Mj87a6sDkW4gfGrQQqwY/dLlBAyJa2dJEZ+FHXUVHBflO2wyKvg+OOEzXfrKYIa4HWl0mgmbCzt0cMb7w== +"@taquito/beacon-wallet@^17.0.0": + version "17.0.0" + resolved "https://registry.npmjs.org/@taquito/beacon-wallet/-/beacon-wallet-17.0.0.tgz" + integrity sha512-OKuN2V2xLMeSb0u3nfzSjZDYV4mIB4pur2eR8xa+NhkXlY0gkQXjmZ3K9lwtjKcU3GI0iv5IVod4blYyHNeNvg== dependencies: - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/plugin-syntax-flow" "^7.18.6" + "@airgap/beacon-dapp" "4.0.2" + "@taquito/core" "^17.0.0" + "@taquito/taquito" "^17.0.0" -"@babel/plugin-transform-for-of@^7.21.5": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.5.tgz" - integrity sha512-nYWpjKW/7j/I/mZkGVgHJXh4bA1sfdFnJoOXwJuj4m3Q2EraO/8ZyrkCau9P5tbHQk01RMSt6KYLCsW7730SXQ== - dependencies: - "@babel/helper-plugin-utils" "^7.21.5" +"@taquito/core@^16.2.0": + version "16.2.0" + resolved "https://registry.npmjs.org/@taquito/core/-/core-16.2.0.tgz" + integrity sha512-N1r7zVjpcT8MGtE9Kcel7OgEOrj4cvS7VPWJYKMuUltILBcUmViRcBHiK9qGV6pMdujnihKkupCI6S1LJXPoLg== -"@babel/plugin-transform-function-name@^7.18.9": - version "7.18.9" - resolved "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz" - integrity sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ== - dependencies: - "@babel/helper-compilation-targets" "^7.18.9" - "@babel/helper-function-name" "^7.18.9" - "@babel/helper-plugin-utils" "^7.18.9" +"@taquito/core@^17.0.0": + version "17.0.0" + resolved "https://registry.npmjs.org/@taquito/core/-/core-17.0.0.tgz" + integrity sha512-N+ww8+whR8T07XZLlcEyjTQCYfAZif9s1dTqagWW0V9l/EIXsnl1tL2MBfZnVcJDMhKoIk1MjofS0gYc0hld2Q== -"@babel/plugin-transform-json-strings@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.3.tgz" - integrity sha512-IuvOMdeOOY2X4hRNAT6kwbePtK21BUyrAEgLKviL8pL6AEEVUVcqtRdN/HJXBLGIbt9T3ETmXRnFedRRmQNTYw== +"@taquito/http-utils@^17.0.0": + version "17.0.0" + resolved "https://registry.npmjs.org/@taquito/http-utils/-/http-utils-17.0.0.tgz" + integrity sha512-oyzZEr7k/HUQotFGGegXyixmUOB9jWsypTjWDmuElutDmO0GjFh33zii7vn57kZ1GmX4f0z45yiBp0w3flvhbA== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/plugin-syntax-json-strings" "^7.8.3" + "@taquito/core" "^17.0.0" + axios "^0.26.0" -"@babel/plugin-transform-literals@^7.18.9": - version "7.18.9" - resolved "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz" - integrity sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg== +"@taquito/local-forging@^17.0.0": + version "17.0.0" + resolved "https://registry.npmjs.org/@taquito/local-forging/-/local-forging-17.0.0.tgz" + integrity sha512-5VSbNGFb9WX9o/7mg49PjnwNeYMbf4JRZvrmxxWcffvfaNFnNW5X1iys+I7kHQA6HivhX73d6lVBiJkq2cQ3ag== dependencies: - "@babel/helper-plugin-utils" "^7.18.9" + "@taquito/core" "^17.0.0" + "@taquito/utils" "^17.0.0" + bignumber.js "^9.1.0" -"@babel/plugin-transform-logical-assignment-operators@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.3.tgz" - integrity sha512-CbayIfOw4av2v/HYZEsH+Klks3NC2/MFIR3QR8gnpGNNPEaq2fdlVCRYG/paKs7/5hvBLQ+H70pGWOHtlNEWNA== +"@taquito/michel-codec@^17.0.0": + version "17.0.0" + resolved "https://registry.npmjs.org/@taquito/michel-codec/-/michel-codec-17.0.0.tgz" + integrity sha512-0wD4r1bfBzoZ3QpxN7grD/gHt8RcNehQ7Ped4quKh4iGmNmd4ej+/LEvw/kX5082M4mGbUMC0UwH2Go+J6C1ow== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" + "@taquito/core" "^17.0.0" -"@babel/plugin-transform-member-expression-literals@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz" - integrity sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA== +"@taquito/michelson-encoder@^17.0.0": + version "17.0.0" + resolved "https://registry.npmjs.org/@taquito/michelson-encoder/-/michelson-encoder-17.0.0.tgz" + integrity sha512-K2y8i7qjniWwjgI2illmBSiWO5B7zYBwTPS+CMw9OsxfMSaw5z8x4dMeBw5Bumc1p2SWo/jcU9U5qOnTVpxdeg== dependencies: - "@babel/helper-plugin-utils" "^7.18.6" + "@taquito/rpc" "^17.0.0" + "@taquito/utils" "^17.0.0" + bignumber.js "^9.1.0" + fast-json-stable-stringify "^2.1.0" -"@babel/plugin-transform-modules-amd@^7.20.11": - version "7.20.11" - resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz" - integrity sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g== +"@taquito/rpc@^17.0.0": + version "17.0.0" + resolved "https://registry.npmjs.org/@taquito/rpc/-/rpc-17.0.0.tgz" + integrity sha512-5btSJNvdfHdoftXqUWheVh5pxos6YlmRb7q1A2z9Y49ocjz7wqr4aCuXeRsG1iESZ69V2DUr33t51joidVsDXA== dependencies: - "@babel/helper-module-transforms" "^7.20.11" - "@babel/helper-plugin-utils" "^7.20.2" + "@taquito/core" "^17.0.0" + "@taquito/http-utils" "^17.0.0" + "@taquito/utils" "^17.0.0" + bignumber.js "^9.1.0" -"@babel/plugin-transform-modules-commonjs@^7.21.5": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.5.tgz" - integrity sha512-OVryBEgKUbtqMoB7eG2rs6UFexJi6Zj6FDXx+esBLPTCxCNxAY9o+8Di7IsUGJ+AVhp5ncK0fxWUBd0/1gPhrQ== +"@taquito/signer@^17.0.0": + version "17.0.0" + resolved "https://registry.npmjs.org/@taquito/signer/-/signer-17.0.0.tgz" + integrity sha512-tOtBup0sxAio+Z6fiOvRG0sVXBe6wZon4nSnb+zc8j2TF5xkmIdrof3HKWaDK4s3oPPsJRxXXpiz1fiKWUu6kw== dependencies: - "@babel/helper-module-transforms" "^7.21.5" - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/helper-simple-access" "^7.21.5" + "@stablelib/blake2b" "^1.0.1" + "@stablelib/ed25519" "^1.0.3" + "@stablelib/hmac" "^1.0.1" + "@stablelib/nacl" "^1.0.4" + "@stablelib/pbkdf2" "^1.0.1" + "@stablelib/sha512" "^1.0.1" + "@taquito/taquito" "^17.0.0" + "@taquito/utils" "^17.0.0" + "@types/bn.js" "^5.1.1" + bip39 "3.0.4" + elliptic "^6.5.4" + pbkdf2 "^3.1.2" + typedarray-to-buffer "^4.0.0" -"@babel/plugin-transform-modules-systemjs@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.3.tgz" - integrity sha512-V21W3bKLxO3ZjcBJZ8biSvo5gQ85uIXW2vJfh7JSWf/4SLUSr1tOoHX3ruN4+Oqa2m+BKfsxTR1I+PsvkIWvNw== +"@taquito/taquito@*", "@taquito/taquito@^17.0.0": + version "17.0.0" + resolved "https://registry.npmjs.org/@taquito/taquito/-/taquito-17.0.0.tgz" + integrity sha512-yLrP6lbgO4k1a9PoTDZxIasYmc3QxEJ4R59vgPPIlWQJfz0ZTBV9fPQNlwyTtRjjzgvX1gRN1VtpuddkcGjKrA== dependencies: - "@babel/helper-hoist-variables" "^7.18.6" - "@babel/helper-module-transforms" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/helper-validator-identifier" "^7.19.1" + "@taquito/core" "^17.0.0" + "@taquito/http-utils" "^17.0.0" + "@taquito/local-forging" "^17.0.0" + "@taquito/michel-codec" "^17.0.0" + "@taquito/michelson-encoder" "^17.0.0" + "@taquito/rpc" "^17.0.0" + "@taquito/utils" "^17.0.0" + bignumber.js "^9.1.0" + rxjs "^6.6.3" -"@babel/plugin-transform-modules-umd@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz" - integrity sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ== +"@taquito/tezbridge-signer@^14.2.0": + version "14.2.0" + resolved "https://registry.npmjs.org/@taquito/tezbridge-signer/-/tezbridge-signer-14.2.0.tgz" + integrity sha512-v33AUqEpRzet5Flf8n6/HYYkxfE3cHALBKpCgcJVX3zQHN8UCfvLWV/DcEFScjEGkIVHORllzNszLNl+kooglQ== dependencies: - "@babel/helper-module-transforms" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" + "@taquito/utils" "*" + typedarray-to-buffer "^4.0.0" -"@babel/plugin-transform-named-capturing-groups-regex@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.3.tgz" - integrity sha512-c6HrD/LpUdNNJsISQZpds3TXvfYIAbo+efE9aWmY/PmSRD0agrJ9cPMt4BmArwUQ7ZymEWTFjTyp+yReLJZh0Q== +"@taquito/tezbridge-wallet@^14.2.0": + version "14.2.0" + resolved "https://registry.npmjs.org/@taquito/tezbridge-wallet/-/tezbridge-wallet-14.2.0.tgz" + integrity sha512-7Lf+bPGkD/dZ/rlxxXCvQK43ObdyzFJGB0NxIgd0/f5rdoUzNeGtAZt5ODUuew8fSSN/PCK1Td4cW5JKzMUkiw== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" + "@taquito/taquito" "*" -"@babel/plugin-transform-new-target@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.3.tgz" - integrity sha512-5RuJdSo89wKdkRTqtM9RVVJzHum9c2s0te9rB7vZC1zKKxcioWIy+xcu4OoIAjyFZhb/bp5KkunuLin1q7Ct+w== +"@taquito/tzip12@^17.0.0": + version "17.0.0" + resolved "https://registry.npmjs.org/@taquito/tzip12/-/tzip12-17.0.0.tgz" + integrity sha512-EC4EezXe8Egyc8XFAZK2oHfwHTCA18u1Pm66I9y+/ns3ebRh9Av+w1tuvfJTv1bbnMbztMfDrP0/p6cuSy7VIw== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" + "@taquito/michelson-encoder" "^17.0.0" + "@taquito/taquito" "^17.0.0" + "@taquito/tzip16" "^17.0.0" -"@babel/plugin-transform-nullish-coalescing-operator@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.3.tgz" - integrity sha512-CpaoNp16nX7ROtLONNuCyenYdY/l7ZsR6aoVa7rW7nMWisoNoQNIH5Iay/4LDyRjKMuElMqXiBoOQCDLTMGZiw== +"@taquito/tzip16@^17.0.0": + version "17.0.0" + resolved "https://registry.npmjs.org/@taquito/tzip16/-/tzip16-17.0.0.tgz" + integrity sha512-lDp+I8h4wIhLbuhRiMjWdcA/fKPpomAzfqJVQIwsb9fBI0ty6JpWRdPbciPASJ8B+xc8dHmJQYcFUIr9ErcqUw== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@taquito/http-utils" "^17.0.0" + "@taquito/michelson-encoder" "^17.0.0" + "@taquito/rpc" "^17.0.0" + "@taquito/taquito" "^17.0.0" + "@taquito/utils" "^17.0.0" + bignumber.js "^9.1.0" + crypto-js "^4.1.1" -"@babel/plugin-transform-numeric-separator@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.3.tgz" - integrity sha512-+AF88fPDJrnseMh5vD9+SH6wq4ZMvpiTMHh58uLs+giMEyASFVhcT3NkoyO+NebFCNnpHJEq5AXO2txV4AGPDQ== +"@taquito/utils@*": + version "16.2.0" + resolved "https://registry.npmjs.org/@taquito/utils/-/utils-16.2.0.tgz" + integrity sha512-Oa9oV0wwBHpgcVHTfINwXGcUlS1EVjCyBR9ntTVvYu6AqdktdS3N+6PPX+MaMt8eXT2bnEfXPWJKjA9I+yYljA== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" + "@stablelib/blake2b" "^1.0.1" + "@stablelib/ed25519" "^1.0.3" + "@taquito/core" "^16.2.0" + "@types/bs58check" "^2.1.0" + bignumber.js "^9.1.0" + blakejs "^1.2.1" + bs58check "^2.1.2" + buffer "^6.0.3" + elliptic "^6.5.4" + typedarray-to-buffer "^4.0.0" -"@babel/plugin-transform-object-rest-spread@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.3.tgz" - integrity sha512-38bzTsqMMCI46/TQnJwPPpy33EjLCc1Gsm2hRTF6zTMWnKsN61vdrpuzIEGQyKEhDSYDKyZHrrd5FMj4gcUHhw== +"@taquito/utils@^17.0.0": + version "17.0.0" + resolved "https://registry.npmjs.org/@taquito/utils/-/utils-17.0.0.tgz" + integrity sha512-/Bg4UoQenriINVK727OpK0AWe1x1SFSdiRZD3cGMMu2fXaFQdG2Hx031bf46GN+Tqk/PuDchjA83UfQk05qBXQ== dependencies: - "@babel/compat-data" "^7.22.3" - "@babel/helper-compilation-targets" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-transform-parameters" "^7.22.3" + "@stablelib/blake2b" "^1.0.1" + "@stablelib/ed25519" "^1.0.3" + "@taquito/core" "^17.0.0" + "@types/bs58check" "^2.1.0" + bignumber.js "^9.1.0" + blakejs "^1.2.1" + bs58check "^2.1.2" + buffer "^6.0.3" + elliptic "^6.5.4" + typedarray-to-buffer "^4.0.0" -"@babel/plugin-transform-object-super@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz" - integrity sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/helper-replace-supers" "^7.18.6" +"@tsconfig/node10@^1.0.7": + version "1.0.9" + resolved "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz" + integrity sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA== -"@babel/plugin-transform-optional-catch-binding@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.3.tgz" - integrity sha512-bnDFWXFzWY0BsOyqaoSXvMQ2F35zutQipugog/rqotL2S4ciFOKlRYUu9djt4iq09oh2/34hqfRR2k1dIvuu4g== - dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" +"@tsconfig/node12@^1.0.7": + version "1.0.11" + resolved "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz" + integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== -"@babel/plugin-transform-optional-chaining@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.3.tgz" - integrity sha512-63v3/UFFxhPKT8j8u1jTTGVyITxl7/7AfOqK8C5gz1rHURPUGe3y5mvIf68eYKGoBNahtJnTxBKug4BQOnzeJg== - dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.20.0" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" +"@tsconfig/node14@^1.0.0": + version "1.0.3" + resolved "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz" + integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== -"@babel/plugin-transform-parameters@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.3.tgz" - integrity sha512-x7QHQJHPuD9VmfpzboyGJ5aHEr9r7DsAsdxdhJiTB3J3j8dyl+NFZ+rX5Q2RWFDCs61c06qBfS4ys2QYn8UkMw== - dependencies: - "@babel/helper-plugin-utils" "^7.21.5" +"@tsconfig/node16@^1.0.2": + version "1.0.4" + resolved "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz" + integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== -"@babel/plugin-transform-private-methods@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.3.tgz" - integrity sha512-fC7jtjBPFqhqpPAE+O4LKwnLq7gGkD3ZmC2E3i4qWH34mH3gOg2Xrq5YMHUq6DM30xhqM1DNftiRaSqVjEG+ug== +"@types/bn.js@^5.1.1": + version "5.1.1" + resolved "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz" + integrity sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g== dependencies: - "@babel/helper-create-class-features-plugin" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" + "@types/node" "*" -"@babel/plugin-transform-private-property-in-object@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.3.tgz" - integrity sha512-C7MMl4qWLpgVCbXfj3UW8rR1xeCnisQ0cU7YJHV//8oNBS0aCIVg1vFnZXxOckHhEpQyqNNkWmvSEWnMLlc+Vw== +"@types/body-parser@*": + version "1.19.2" + resolved "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz" + integrity sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g== dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-create-class-features-plugin" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + "@types/connect" "*" + "@types/node" "*" -"@babel/plugin-transform-property-literals@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz" - integrity sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg== +"@types/bs58check@^2.1.0": + version "2.1.0" + resolved "https://registry.npmjs.org/@types/bs58check/-/bs58check-2.1.0.tgz" + integrity sha512-OxsysnJQh82vy9DRbOcw9m2j/WiyqZLn0YBhKxdQ+aCwoHj+tWzyCgpwAkr79IfDXZKxc6h7k89T9pwS78CqTQ== dependencies: - "@babel/helper-plugin-utils" "^7.18.6" + "@types/node" "*" -"@babel/plugin-transform-react-constant-elements@^7.12.1": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.22.3.tgz" - integrity sha512-b5J6muxQYp4H7loAQv/c7GO5cPuRA6H5hx4gO+/Hn+Cu9MRQU0PNiUoWq1L//8sq6kFSNxGXFb2XTaUfa9y+Pg== +"@types/chrome@0.0.163": + version "0.0.163" + resolved "https://registry.npmjs.org/@types/chrome/-/chrome-0.0.163.tgz" + integrity sha512-g+3E2tg/ukFsEgH+tB3a/b+J1VSvq/8gh2Jwih9eq+T3Idrz7ngj97u+/ya58Bfei2TQtPlRivj1FsCaSnukDA== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" + "@types/filesystem" "*" + "@types/har-format" "*" -"@babel/plugin-transform-react-display-name@^7.16.0", "@babel/plugin-transform-react-display-name@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz" - integrity sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA== +"@types/connect-timeout@^0.0.39": + version "0.0.39" + resolved "https://registry.yarnpkg.com/@types/connect-timeout/-/connect-timeout-0.0.39.tgz#8b6800599808688ae74d1352e702a24d2cca4ee1" + integrity sha512-PHUX9yixjm4qjQ27Uz+F5cyG9Fio9iY7e6eWHvNT0wbA8eu9JaDqxRRiXn5uYnd09zx1fM+wEHnuBHMm9gwOuQ== dependencies: - "@babel/helper-plugin-utils" "^7.18.6" + "@types/express" "*" -"@babel/plugin-transform-react-jsx-development@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz" - integrity sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA== +"@types/connect@*": + version "3.4.35" + resolved "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz" + integrity sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ== dependencies: - "@babel/plugin-transform-react-jsx" "^7.18.6" + "@types/node" "*" -"@babel/plugin-transform-react-jsx@^7.18.6", "@babel/plugin-transform-react-jsx@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.3.tgz" - integrity sha512-JEulRWG2f04a7L8VWaOngWiK6p+JOSpB+DAtwfJgOaej1qdbNxqtK7MwTBHjUA10NeFcszlFNqCdbRcirzh2uQ== +"@types/cors@^2.8.17": + version "2.8.17" + resolved "https://registry.yarnpkg.com/@types/cors/-/cors-2.8.17.tgz#5d718a5e494a8166f569d986794e49c48b216b2b" + integrity sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA== dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-module-imports" "^7.21.4" - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/plugin-syntax-jsx" "^7.21.4" - "@babel/types" "^7.22.3" + "@types/node" "*" -"@babel/plugin-transform-react-pure-annotations@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz" - integrity sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ== +"@types/debug@^4.0.0": + version "4.1.8" + resolved "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz" + integrity sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ== dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" + "@types/ms" "*" -"@babel/plugin-transform-regenerator@^7.21.5": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.21.5.tgz" - integrity sha512-ZoYBKDb6LyMi5yCsByQ5jmXsHAQDDYeexT1Szvlmui+lADvfSecr5Dxd/PkrTC3pAD182Fcju1VQkB4oCp9M+w== +"@types/domutils@*": + version "1.7.4" + resolved "https://registry.npmjs.org/@types/domutils/-/domutils-1.7.4.tgz" + integrity sha512-w542nRQ0vpXQjLYP52LKqrugQtUq580dEDiDIyZ6IBmV8a3LXjGVNxfj/jUQxS0kDsbZAWsSxQOcTfVX3HRdwg== dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - regenerator-transform "^0.15.1" + domhandler "^2.4.0" -"@babel/plugin-transform-reserved-words@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz" - integrity sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA== +"@types/express-serve-static-core@^4.17.33": + version "4.17.35" + resolved "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz" + integrity sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg== dependencies: - "@babel/helper-plugin-utils" "^7.18.6" + "@types/node" "*" + "@types/qs" "*" + "@types/range-parser" "*" + "@types/send" "*" -"@babel/plugin-transform-runtime@^7.16.4": - version "7.22.4" - resolved "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.4.tgz" - integrity sha512-Urkiz1m4zqiRo17klj+l3nXgiRTFQng91Bc1eiLF7BMQu1e7wE5Gcq9xSv062IF068NHjcutSbIMev60gXxAvA== +"@types/express@*": + version "4.17.17" + resolved "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz" + integrity sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q== dependencies: - "@babel/helper-module-imports" "^7.21.4" - "@babel/helper-plugin-utils" "^7.21.5" - babel-plugin-polyfill-corejs2 "^0.4.3" - babel-plugin-polyfill-corejs3 "^0.8.1" - babel-plugin-polyfill-regenerator "^0.5.0" - semver "^6.3.0" + "@types/body-parser" "*" + "@types/express-serve-static-core" "^4.17.33" + "@types/qs" "*" + "@types/serve-static" "*" -"@babel/plugin-transform-shorthand-properties@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz" - integrity sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw== +"@types/filesystem@*": + version "0.0.32" + resolved "https://registry.npmjs.org/@types/filesystem/-/filesystem-0.0.32.tgz" + integrity sha512-Yuf4jR5YYMR2DVgwuCiP11s0xuVRyPKmz8vo6HBY3CGdeMj8af93CFZX+T82+VD1+UqHOxTq31lO7MI7lepBtQ== dependencies: - "@babel/helper-plugin-utils" "^7.18.6" + "@types/filewriter" "*" -"@babel/plugin-transform-spread@^7.20.7": - version "7.20.7" - resolved "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz" - integrity sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw== - dependencies: - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/helper-skip-transparent-expression-wrappers" "^7.20.0" +"@types/filewriter@*": + version "0.0.29" + resolved "https://registry.npmjs.org/@types/filewriter/-/filewriter-0.0.29.tgz" + integrity sha512-BsPXH/irW0ht0Ji6iw/jJaK8Lj3FJemon2gvEqHKpCdDCeemHa+rI3WBGq5z7cDMZgoLjY40oninGxqk+8NzNQ== -"@babel/plugin-transform-sticky-regex@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz" - integrity sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" +"@types/har-format@*": + version "1.2.10" + resolved "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.10.tgz" + integrity sha512-o0J30wqycjF5miWDKYKKzzOU1ZTLuA42HZ4HE7/zqTOc/jTLdQ5NhYWvsRQo45Nfi1KHoRdNhteSI4BAxTF1Pg== -"@babel/plugin-transform-template-literals@^7.18.9": - version "7.18.9" - resolved "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz" - integrity sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA== +"@types/hast@^2.0.0": + version "2.3.4" + resolved "https://registry.npmjs.org/@types/hast/-/hast-2.3.4.tgz" + integrity sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g== dependencies: - "@babel/helper-plugin-utils" "^7.18.9" + "@types/unist" "*" -"@babel/plugin-transform-typeof-symbol@^7.18.9": - version "7.18.9" - resolved "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz" - integrity sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw== - dependencies: - "@babel/helper-plugin-utils" "^7.18.9" +"@types/history@^4.7.11": + version "4.7.11" + resolved "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz" + integrity sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA== -"@babel/plugin-transform-typescript@^7.21.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.3.tgz" - integrity sha512-pyjnCIniO5PNaEuGxT28h0HbMru3qCVrMqVgVOz/krComdIrY9W6FCLBq9NWHY8HDGaUlan+UhmZElDENIfCcw== +"@types/htmlparser2@*": + version "3.10.3" + resolved "https://registry.npmjs.org/@types/htmlparser2/-/htmlparser2-3.10.3.tgz" + integrity sha512-XA74aD+acytofnZic9n83Rxy/IZ259299bYPx5SEyx7uymPi79lRyKDkhJlsuCaPHB7rEoTEhRN4Vm2G5WmHHg== dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-create-class-features-plugin" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/plugin-syntax-typescript" "^7.21.4" + "@types/domutils" "*" + "@types/node" "*" + domhandler "^2.4.0" -"@babel/plugin-transform-unicode-escapes@^7.21.5": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.21.5.tgz" - integrity sha512-LYm/gTOwZqsYohlvFUe/8Tujz75LqqVC2w+2qPHLR+WyWHGCZPN1KBpJCJn+4Bk4gOkQy/IXKIge6az5MqwlOg== - dependencies: - "@babel/helper-plugin-utils" "^7.21.5" +"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": + version "2.0.4" + resolved "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz" + integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== -"@babel/plugin-transform-unicode-property-regex@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.3.tgz" - integrity sha512-5ScJ+OmdX+O6HRuMGW4kv7RL9vIKdtdAj9wuWUKy1wbHY3jaM/UlyIiC1G7J6UJiiyMukjjK0QwL3P0vBd0yYg== +"@types/istanbul-lib-report@*": + version "3.0.0" + resolved "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz" + integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" + "@types/istanbul-lib-coverage" "*" -"@babel/plugin-transform-unicode-regex@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz" - integrity sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA== +"@types/istanbul-reports@^3.0.0": + version "3.0.1" + resolved "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz" + integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-unicode-sets-regex@^7.22.3": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.3.tgz" - integrity sha512-hNufLdkF8vqywRp+P55j4FHXqAX2LRUccoZHH7AFn1pq5ZOO2ISKW9w13bFZVjBoTqeve2HOgoJCcaziJVhGNw== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" - -"@babel/preset-env@^7.11.0", "@babel/preset-env@^7.12.1", "@babel/preset-env@^7.16.4": - version "7.22.4" - resolved "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.4.tgz" - integrity sha512-c3lHOjbwBv0TkhYCr+XCR6wKcSZ1QbQTVdSkZUaVpLv8CVWotBMArWUi5UAJrcrQaEnleVkkvaV8F/pmc/STZQ== - dependencies: - "@babel/compat-data" "^7.22.3" - "@babel/helper-compilation-targets" "^7.22.1" - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/helper-validator-option" "^7.21.0" - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.18.6" - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.22.3" - "@babel/plugin-proposal-private-property-in-object" "^7.21.0" - "@babel/plugin-syntax-async-generators" "^7.8.4" - "@babel/plugin-syntax-class-properties" "^7.12.13" - "@babel/plugin-syntax-class-static-block" "^7.14.5" - "@babel/plugin-syntax-dynamic-import" "^7.8.3" - "@babel/plugin-syntax-export-namespace-from" "^7.8.3" - "@babel/plugin-syntax-import-assertions" "^7.20.0" - "@babel/plugin-syntax-import-attributes" "^7.22.3" - "@babel/plugin-syntax-import-meta" "^7.10.4" - "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" - "@babel/plugin-syntax-top-level-await" "^7.14.5" - "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" - "@babel/plugin-transform-arrow-functions" "^7.21.5" - "@babel/plugin-transform-async-generator-functions" "^7.22.3" - "@babel/plugin-transform-async-to-generator" "^7.20.7" - "@babel/plugin-transform-block-scoped-functions" "^7.18.6" - "@babel/plugin-transform-block-scoping" "^7.21.0" - "@babel/plugin-transform-class-properties" "^7.22.3" - "@babel/plugin-transform-class-static-block" "^7.22.3" - "@babel/plugin-transform-classes" "^7.21.0" - "@babel/plugin-transform-computed-properties" "^7.21.5" - "@babel/plugin-transform-destructuring" "^7.21.3" - "@babel/plugin-transform-dotall-regex" "^7.18.6" - "@babel/plugin-transform-duplicate-keys" "^7.18.9" - "@babel/plugin-transform-dynamic-import" "^7.22.1" - "@babel/plugin-transform-exponentiation-operator" "^7.18.6" - "@babel/plugin-transform-export-namespace-from" "^7.22.3" - "@babel/plugin-transform-for-of" "^7.21.5" - "@babel/plugin-transform-function-name" "^7.18.9" - "@babel/plugin-transform-json-strings" "^7.22.3" - "@babel/plugin-transform-literals" "^7.18.9" - "@babel/plugin-transform-logical-assignment-operators" "^7.22.3" - "@babel/plugin-transform-member-expression-literals" "^7.18.6" - "@babel/plugin-transform-modules-amd" "^7.20.11" - "@babel/plugin-transform-modules-commonjs" "^7.21.5" - "@babel/plugin-transform-modules-systemjs" "^7.22.3" - "@babel/plugin-transform-modules-umd" "^7.18.6" - "@babel/plugin-transform-named-capturing-groups-regex" "^7.22.3" - "@babel/plugin-transform-new-target" "^7.22.3" - "@babel/plugin-transform-nullish-coalescing-operator" "^7.22.3" - "@babel/plugin-transform-numeric-separator" "^7.22.3" - "@babel/plugin-transform-object-rest-spread" "^7.22.3" - "@babel/plugin-transform-object-super" "^7.18.6" - "@babel/plugin-transform-optional-catch-binding" "^7.22.3" - "@babel/plugin-transform-optional-chaining" "^7.22.3" - "@babel/plugin-transform-parameters" "^7.22.3" - "@babel/plugin-transform-private-methods" "^7.22.3" - "@babel/plugin-transform-private-property-in-object" "^7.22.3" - "@babel/plugin-transform-property-literals" "^7.18.6" - "@babel/plugin-transform-regenerator" "^7.21.5" - "@babel/plugin-transform-reserved-words" "^7.18.6" - "@babel/plugin-transform-shorthand-properties" "^7.18.6" - "@babel/plugin-transform-spread" "^7.20.7" - "@babel/plugin-transform-sticky-regex" "^7.18.6" - "@babel/plugin-transform-template-literals" "^7.18.9" - "@babel/plugin-transform-typeof-symbol" "^7.18.9" - "@babel/plugin-transform-unicode-escapes" "^7.21.5" - "@babel/plugin-transform-unicode-property-regex" "^7.22.3" - "@babel/plugin-transform-unicode-regex" "^7.18.6" - "@babel/plugin-transform-unicode-sets-regex" "^7.22.3" - "@babel/preset-modules" "^0.1.5" - "@babel/types" "^7.22.4" - babel-plugin-polyfill-corejs2 "^0.4.3" - babel-plugin-polyfill-corejs3 "^0.8.1" - babel-plugin-polyfill-regenerator "^0.5.0" - core-js-compat "^3.30.2" - semver "^6.3.0" + "@types/istanbul-lib-report" "*" -"@babel/preset-modules@^0.1.5": - version "0.1.5" - resolved "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz" - integrity sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA== +"@types/jest@^26.0.21": + version "26.0.24" + resolved "https://registry.npmjs.org/@types/jest/-/jest-26.0.24.tgz" + integrity sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w== dependencies: - "@babel/helper-plugin-utils" "^7.0.0" - "@babel/plugin-proposal-unicode-property-regex" "^7.4.4" - "@babel/plugin-transform-dotall-regex" "^7.4.4" - "@babel/types" "^7.4.4" - esutils "^2.0.2" - -"@babel/preset-react@^7.12.5", "@babel/preset-react@^7.16.0": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.3.tgz" - integrity sha512-lxDz1mnZ9polqClBCVBjIVUypoB4qV3/tZUDb/IlYbW1kiiLaXaX+bInbRjl+lNQ/iUZraQ3+S8daEmoELMWug== - dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/helper-validator-option" "^7.21.0" - "@babel/plugin-transform-react-display-name" "^7.18.6" - "@babel/plugin-transform-react-jsx" "^7.22.3" - "@babel/plugin-transform-react-jsx-development" "^7.18.6" - "@babel/plugin-transform-react-pure-annotations" "^7.18.6" - -"@babel/preset-typescript@^7.16.0": - version "7.21.5" - resolved "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.21.5.tgz" - integrity sha512-iqe3sETat5EOrORXiQ6rWfoOg2y68Cs75B9wNxdPW4kixJxh7aXQE1KPdWLDniC24T/6dSnguF33W9j/ZZQcmA== - dependencies: - "@babel/helper-plugin-utils" "^7.21.5" - "@babel/helper-validator-option" "^7.21.0" - "@babel/plugin-syntax-jsx" "^7.21.4" - "@babel/plugin-transform-modules-commonjs" "^7.21.5" - "@babel/plugin-transform-typescript" "^7.21.3" - -"@babel/regjsgen@^0.8.0": - version "0.8.0" - resolved "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz" - integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== + jest-diff "^26.0.0" + pretty-format "^26.0.0" -"@babel/runtime@^7.1.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.15.4", "@babel/runtime@^7.16.3", "@babel/runtime@^7.18.3", "@babel/runtime@^7.18.9", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.4", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.2", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7": - version "7.22.3" - resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz" - integrity sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ== - dependencies: - regenerator-runtime "^0.13.11" +"@types/json-schema@^7.0.7": + version "7.0.12" + resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz" + integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA== -"@babel/template@^7.18.10", "@babel/template@^7.20.7", "@babel/template@^7.21.9", "@babel/template@^7.3.3": - version "7.21.9" - resolved "https://registry.npmjs.org/@babel/template/-/template-7.21.9.tgz" - integrity sha512-MK0X5k8NKOuWRamiEfc3KEJiHMTkGZNUjzMipqCGDDc6ijRl/B7RGSKVGncu4Ro/HdyzzY6cmoXuKI2Gffk7vQ== - dependencies: - "@babel/code-frame" "^7.21.4" - "@babel/parser" "^7.21.9" - "@babel/types" "^7.21.5" - -"@babel/traverse@^7.20.5", "@babel/traverse@^7.22.1", "@babel/traverse@^7.7.2": - version "7.22.4" - resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.4.tgz" - integrity sha512-Tn1pDsjIcI+JcLKq1AVlZEr4226gpuAQTsLMorsYg9tuS/kG7nuwwJ4AB8jfQuEgb/COBwR/DqJxmoiYFu5/rQ== - dependencies: - "@babel/code-frame" "^7.21.4" - "@babel/generator" "^7.22.3" - "@babel/helper-environment-visitor" "^7.22.1" - "@babel/helper-function-name" "^7.21.0" - "@babel/helper-hoist-variables" "^7.18.6" - "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/parser" "^7.22.4" - "@babel/types" "^7.22.4" - debug "^4.1.0" - globals "^11.1.0" - -"@babel/types@^7.0.0", "@babel/types@^7.12.6", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.20.0", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.4", "@babel/types@^7.21.5", "@babel/types@^7.22.0", "@babel/types@^7.22.3", "@babel/types@^7.22.4", "@babel/types@^7.3.3", "@babel/types@^7.4.4": - version "7.22.4" - resolved "https://registry.npmjs.org/@babel/types/-/types-7.22.4.tgz" - integrity sha512-Tx9x3UBHTTsMSW85WB2kphxYQVvrZ/t1FxD88IpSgIjiUJlCm9z+xWIDwyo1vffTwSqteqyznB8ZE9vYYk16zA== - dependencies: - "@babel/helper-string-parser" "^7.21.5" - "@babel/helper-validator-identifier" "^7.19.1" - to-fast-properties "^2.0.0" - -"@bcoe/v8-coverage@^0.2.3": - version "0.2.3" - resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" - integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== +"@types/lodash@^4.14.175": + version "4.14.195" + resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.195.tgz" + integrity sha512-Hwx9EUgdwf2GLarOjQp5ZH8ZmblzcbTBC2wtQWNKARBSxM9ezRIAUpeDTgoQRAFB0+8CNWXVA9+MaSOzOF3nPg== -"@craco/craco@^7.1.0": - version "7.1.0" - resolved "https://registry.npmjs.org/@craco/craco/-/craco-7.1.0.tgz" - integrity sha512-oRAcPIKYrfPXp9rSzlsDNeOaVtDiKhoyqSXUoqiK24jCkHr4T8m/a2f74yXIzCbIheoUWDOIfWZyRgFgT+cpqA== +"@types/mdast@^3.0.0": + version "3.0.11" + resolved "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.11.tgz" + integrity sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw== dependencies: - autoprefixer "^10.4.12" - cosmiconfig "^7.0.1" - cosmiconfig-typescript-loader "^1.0.0" - cross-spawn "^7.0.3" - lodash "^4.17.21" - semver "^7.3.7" - webpack-merge "^5.8.0" + "@types/unist" "*" -"@cspotcode/source-map-support@^0.8.0": - version "0.8.1" - resolved "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz" - integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== - dependencies: - "@jridgewell/trace-mapping" "0.3.9" +"@types/mime@*": + version "3.0.1" + resolved "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz" + integrity sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA== -"@csstools/normalize.css@*": - version "12.0.0" - resolved "https://registry.npmjs.org/@csstools/normalize.css/-/normalize.css-12.0.0.tgz" - integrity sha512-M0qqxAcwCsIVfpFQSlGN5XjXWu8l5JDZN+fPt1LeW5SZexQTgnaEvgXAY+CeygRw0EeppWHi12JxESWiWrB0Sg== +"@types/mime@^1": + version "1.3.2" + resolved "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz" + integrity sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw== -"@csstools/postcss-cascade-layers@^1.1.1": - version "1.1.1" - resolved "https://registry.npmjs.org/@csstools/postcss-cascade-layers/-/postcss-cascade-layers-1.1.1.tgz" - integrity sha512-+KdYrpKC5TgomQr2DlZF4lDEpHcoxnj5IGddYYfBWJAKfj1JtuHUIqMa+E1pJJ+z3kvDViWMqyqPlG4Ja7amQA== - dependencies: - "@csstools/selector-specificity" "^2.0.2" - postcss-selector-parser "^6.0.10" +"@types/mixpanel-browser@^2.35.7": + version "2.38.1" + resolved "https://registry.npmjs.org/@types/mixpanel-browser/-/mixpanel-browser-2.38.1.tgz" + integrity sha512-XzQbwgiOPsFXUQnjz3vSwcwrvJDbQ35bCiwa/1VXGrHvU1ti9+eqO1GY91DShzkEzKkkEEkxfNshS5dbBZqd7w== -"@csstools/postcss-color-function@^1.1.1": - version "1.1.1" - resolved "https://registry.npmjs.org/@csstools/postcss-color-function/-/postcss-color-function-1.1.1.tgz" - integrity sha512-Bc0f62WmHdtRDjf5f3e2STwRAl89N2CLb+9iAwzrv4L2hncrbDwnQD9PCq0gtAt7pOI2leIV08HIBUd4jxD8cw== - dependencies: - "@csstools/postcss-progressive-custom-properties" "^1.1.0" - postcss-value-parser "^4.2.0" +"@types/ms@*": + version "0.7.31" + resolved "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz" + integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA== -"@csstools/postcss-font-format-keywords@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@csstools/postcss-font-format-keywords/-/postcss-font-format-keywords-1.0.1.tgz" - integrity sha512-ZgrlzuUAjXIOc2JueK0X5sZDjCtgimVp/O5CEqTcs5ShWBa6smhWYbS0x5cVc/+rycTDbjjzoP0KTDnUneZGOg== - dependencies: - postcss-value-parser "^4.2.0" +"@types/node@*", "@types/node@^14.14.35": + version "14.18.48" + resolved "https://registry.npmjs.org/@types/node/-/node-14.18.48.tgz" + integrity sha512-iL0PIMwejpmuVHgfibHpfDwOdsbmB50wr21X71VnF5d7SsBF7WK+ZvP/SCcFm7Iwb9iiYSap9rlrdhToNAWdxg== -"@csstools/postcss-hwb-function@^1.0.2": - version "1.0.2" - resolved "https://registry.npmjs.org/@csstools/postcss-hwb-function/-/postcss-hwb-function-1.0.2.tgz" - integrity sha512-YHdEru4o3Rsbjmu6vHy4UKOXZD+Rn2zmkAmLRfPet6+Jz4Ojw8cbWxe1n42VaXQhD3CQUXXTooIy8OkVbUcL+w== - dependencies: - postcss-value-parser "^4.2.0" +"@types/node@11.11.6": + version "11.11.6" + resolved "https://registry.npmjs.org/@types/node/-/node-11.11.6.tgz" + integrity sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ== -"@csstools/postcss-ic-unit@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@csstools/postcss-ic-unit/-/postcss-ic-unit-1.0.1.tgz" - integrity sha512-Ot1rcwRAaRHNKC9tAqoqNZhjdYBzKk1POgWfhN4uCOE47ebGcLRqXjKkApVDpjifL6u2/55ekkpnFcp+s/OZUw== - dependencies: - "@csstools/postcss-progressive-custom-properties" "^1.1.0" - postcss-value-parser "^4.2.0" +"@types/parse-json@^4.0.0": + version "4.0.0" + resolved "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz" + integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== -"@csstools/postcss-is-pseudo-class@^2.0.7": - version "2.0.7" - resolved "https://registry.npmjs.org/@csstools/postcss-is-pseudo-class/-/postcss-is-pseudo-class-2.0.7.tgz" - integrity sha512-7JPeVVZHd+jxYdULl87lvjgvWldYu+Bc62s9vD/ED6/QTGjy0jy0US/f6BG53sVMTBJ1lzKZFpYmofBN9eaRiA== - dependencies: - "@csstools/selector-specificity" "^2.0.0" - postcss-selector-parser "^6.0.10" +"@types/parse5@^6.0.0": + version "6.0.3" + resolved "https://registry.npmjs.org/@types/parse5/-/parse5-6.0.3.tgz" + integrity sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g== -"@csstools/postcss-nested-calc@^1.0.0": - version "1.0.0" - resolved "https://registry.npmjs.org/@csstools/postcss-nested-calc/-/postcss-nested-calc-1.0.0.tgz" - integrity sha512-JCsQsw1wjYwv1bJmgjKSoZNvf7R6+wuHDAbi5f/7MbFhl2d/+v+TvBTU4BJH3G1X1H87dHl0mh6TfYogbT/dJQ== - dependencies: - postcss-value-parser "^4.2.0" +"@types/prismjs@^1.26.0": + version "1.26.0" + resolved "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.26.0.tgz" + integrity sha512-ZTaqn/qSqUuAq1YwvOFQfVW1AR/oQJlLSZVustdjwI+GZ8kr0MSHBj0tsXPW1EqHubx50gtBEjbPGsdZwQwCjQ== -"@csstools/postcss-normalize-display-values@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@csstools/postcss-normalize-display-values/-/postcss-normalize-display-values-1.0.1.tgz" - integrity sha512-jcOanIbv55OFKQ3sYeFD/T0Ti7AMXc9nM1hZWu8m/2722gOTxFg7xYu4RDLJLeZmPUVQlGzo4jhzvTUq3x4ZUw== - dependencies: - postcss-value-parser "^4.2.0" +"@types/prop-types@*": + version "15.7.5" + resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz" + integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w== -"@csstools/postcss-oklab-function@^1.1.1": - version "1.1.1" - resolved "https://registry.npmjs.org/@csstools/postcss-oklab-function/-/postcss-oklab-function-1.1.1.tgz" - integrity sha512-nJpJgsdA3dA9y5pgyb/UfEzE7W5Ka7u0CX0/HIMVBNWzWemdcTH3XwANECU6anWv/ao4vVNLTMxhiPNZsTK6iA== - dependencies: - "@csstools/postcss-progressive-custom-properties" "^1.1.0" - postcss-value-parser "^4.2.0" +"@types/qs@*": + version "6.9.7" + resolved "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz" + integrity sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw== -"@csstools/postcss-progressive-custom-properties@^1.1.0", "@csstools/postcss-progressive-custom-properties@^1.3.0": - version "1.3.0" - resolved "https://registry.npmjs.org/@csstools/postcss-progressive-custom-properties/-/postcss-progressive-custom-properties-1.3.0.tgz" - integrity sha512-ASA9W1aIy5ygskZYuWams4BzafD12ULvSypmaLJT2jvQ8G0M3I8PRQhC0h7mG0Z3LI05+agZjqSR9+K9yaQQjA== - dependencies: - postcss-value-parser "^4.2.0" +"@types/range-parser@*": + version "1.2.4" + resolved "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz" + integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw== -"@csstools/postcss-stepped-value-functions@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@csstools/postcss-stepped-value-functions/-/postcss-stepped-value-functions-1.0.1.tgz" - integrity sha512-dz0LNoo3ijpTOQqEJLY8nyaapl6umbmDcgj4AD0lgVQ572b2eqA1iGZYTTWhrcrHztWDDRAX2DGYyw2VBjvCvQ== +"@types/react-dom@^17.0.2": + version "17.0.20" + resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.20.tgz" + integrity sha512-4pzIjSxDueZZ90F52mU3aPoogkHIoSIDG+oQ+wQK7Cy2B9S+MvOqY0uEA/qawKz381qrEDkvpwyt8Bm31I8sbA== dependencies: - postcss-value-parser "^4.2.0" + "@types/react" "^17" -"@csstools/postcss-text-decoration-shorthand@^1.0.0": - version "1.0.0" - resolved "https://registry.npmjs.org/@csstools/postcss-text-decoration-shorthand/-/postcss-text-decoration-shorthand-1.0.0.tgz" - integrity sha512-c1XwKJ2eMIWrzQenN0XbcfzckOLLJiczqy+YvfGmzoVXd7pT9FfObiSEfzs84bpE/VqfpEuAZ9tCRbZkZxxbdw== +"@types/react-html-parser@^2.0.2": + version "2.0.2" + resolved "https://registry.npmjs.org/@types/react-html-parser/-/react-html-parser-2.0.2.tgz" + integrity sha512-avS2QzBMCUTGO2+gi3rWG6WreuU8zhf4b5CbS11itYlvLbwt5wmxBqQN4/f2z/JR/6Kvdt8ohAxhztb8XQHdPQ== dependencies: - postcss-value-parser "^4.2.0" + "@types/htmlparser2" "*" + "@types/react" "*" -"@csstools/postcss-trigonometric-functions@^1.0.2": - version "1.0.2" - resolved "https://registry.npmjs.org/@csstools/postcss-trigonometric-functions/-/postcss-trigonometric-functions-1.0.2.tgz" - integrity sha512-woKaLO///4bb+zZC2s80l+7cm07M7268MsyG3M0ActXXEFi6SuhvriQYcb58iiKGbjwwIU7n45iRLEHypB47Og== +"@types/react-router-dom@^5.1.6", "@types/react-router-dom@^5.3.0": + version "5.3.3" + resolved "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.3.tgz" + integrity sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw== dependencies: - postcss-value-parser "^4.2.0" - -"@csstools/postcss-unset-value@^1.0.2": - version "1.0.2" - resolved "https://registry.npmjs.org/@csstools/postcss-unset-value/-/postcss-unset-value-1.0.2.tgz" - integrity sha512-c8J4roPBILnelAsdLr4XOAR/GsTm0GJi4XpcfvoWk3U6KiTCqiFYc63KhRMQQX35jYMp4Ao8Ij9+IZRgMfJp1g== - -"@csstools/selector-specificity@^2.0.0", "@csstools/selector-specificity@^2.0.2": - version "2.2.0" - resolved "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz" - integrity sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw== - -"@date-io/core@^1.3.13": - version "1.3.13" - resolved "https://registry.npmjs.org/@date-io/core/-/core-1.3.13.tgz" - integrity sha512-AlEKV7TxjeK+jxWVKcCFrfYAk8spX9aCyiToFIiLPtfQbsjmRGLIhb5VZgptQcJdHtLXo7+m0DuurwFgUToQuA== - -"@date-io/core@^2.15.0", "@date-io/core@^2.16.0": - version "2.16.0" - resolved "https://registry.npmjs.org/@date-io/core/-/core-2.16.0.tgz" - integrity sha512-DYmSzkr+jToahwWrsiRA2/pzMEtz9Bq1euJwoOuYwuwIYXnZFtHajY2E6a1VNVDc9jP8YUXK1BvnZH9mmT19Zg== + "@types/history" "^4.7.11" + "@types/react" "*" + "@types/react-router" "*" -"@date-io/date-fns@^2.15.0": - version "2.16.0" - resolved "https://registry.npmjs.org/@date-io/date-fns/-/date-fns-2.16.0.tgz" - integrity sha512-bfm5FJjucqlrnQcXDVU5RD+nlGmL3iWgkHTq3uAZWVIuBu6dDmGa3m8a6zo2VQQpu8ambq9H22UyUpn7590joA== +"@types/react-router-hash-link@^2.4.5": + version "2.4.6" + resolved "https://registry.npmjs.org/@types/react-router-hash-link/-/react-router-hash-link-2.4.6.tgz" + integrity sha512-JOV4Q1N60tJJUPisS/u1jiXn8c4jX7ThQf8XavzZYIWOIv0RP17nbyI9YgEZh1r3APXpP9ZkU1ytrlv+1+8jcw== dependencies: - "@date-io/core" "^2.16.0" + "@types/history" "^4.7.11" + "@types/react" "*" + "@types/react-router-dom" "^5.3.0" -"@date-io/dayjs@1.x": - version "1.3.13" - resolved "https://registry.npmjs.org/@date-io/dayjs/-/dayjs-1.3.13.tgz" - integrity sha512-nD39xWYwQjDMIdpUzHIcADHxY9m1hm1DpOaRn3bc2rBdgmwQC0PfW0WYaHyGGP/6LEzEguINRbHuotMhf+T9Sg== +"@types/react-router@*": + version "5.1.20" + resolved "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz" + integrity sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q== dependencies: - "@date-io/core" "^1.3.13" + "@types/history" "^4.7.11" + "@types/react" "*" -"@date-io/dayjs@^2.15.0": - version "2.16.0" - resolved "https://registry.npmjs.org/@date-io/dayjs/-/dayjs-2.16.0.tgz" - integrity sha512-y5qKyX2j/HG3zMvIxTobYZRGnd1FUW2olZLS0vTj7bEkBQkjd2RO7/FEwDY03Z1geVGlXKnzIATEVBVaGzV4Iw== +"@types/react@*", "@types/react@^17", "@types/react@~17.0.3": + version "17.0.62" + resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.62.tgz#2efe8ddf8533500ec44b1334dd1a97caa2f860e3" + integrity sha512-eANCyz9DG8p/Vdhr0ZKST8JV12PhH2ACCDYlFw6DIO+D+ca+uP4jtEDEpVqXZrh/uZdXQGwk7whJa3ah5DtyLw== dependencies: - "@date-io/core" "^2.16.0" + "@types/prop-types" "*" + "@types/scheduler" "*" + csstype "^3.0.2" -"@date-io/luxon@^2.15.0": - version "2.16.1" - resolved "https://registry.npmjs.org/@date-io/luxon/-/luxon-2.16.1.tgz" - integrity sha512-aeYp5K9PSHV28946pC+9UKUi/xMMYoaGelrpDibZSgHu2VWHXrr7zWLEr+pMPThSs5vt8Ei365PO+84pCm37WQ== +"@types/react@^17.0.3": + version "17.0.60" + resolved "https://registry.npmjs.org/@types/react/-/react-17.0.60.tgz" + integrity sha512-pCH7bqWIfzHs3D+PDs3O/COCQJka+Kcw3RnO9rFA2zalqoXg7cNjJDh6mZ7oRtY1wmY4LVwDdAbA1F7Z8tv3BQ== dependencies: - "@date-io/core" "^2.16.0" + "@types/prop-types" "*" + "@types/scheduler" "*" + csstype "^3.0.2" + +"@types/scheduler@*": + version "0.16.3" + resolved "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz" + integrity sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ== -"@date-io/moment@^2.15.0": - version "2.16.1" - resolved "https://registry.npmjs.org/@date-io/moment/-/moment-2.16.1.tgz" - integrity sha512-JkxldQxUqZBfZtsaCcCMkm/dmytdyq5pS1RxshCQ4fHhsvP5A7gSqPD22QbVXMcJydi3d3v1Y8BQdUKEuGACZQ== +"@types/send@*": + version "0.17.1" + resolved "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz" + integrity sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q== dependencies: - "@date-io/core" "^2.16.0" + "@types/mime" "^1" + "@types/node" "*" -"@emotion/babel-plugin@^11.11.0": - version "11.11.0" - resolved "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.11.0.tgz" - integrity sha512-m4HEDZleaaCH+XgDDsPF15Ht6wTLsgDTeR3WYj9Q/k76JtWhrJjcP4+/XlG8LGT/Rol9qUfOIztXeA84ATpqPQ== +"@types/serve-static@*": + version "1.15.1" + resolved "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz" + integrity sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ== dependencies: - "@babel/helper-module-imports" "^7.16.7" - "@babel/runtime" "^7.18.3" - "@emotion/hash" "^0.9.1" - "@emotion/memoize" "^0.8.1" - "@emotion/serialize" "^1.1.2" - babel-plugin-macros "^3.1.0" - convert-source-map "^1.5.0" - escape-string-regexp "^4.0.0" - find-root "^1.1.0" - source-map "^0.5.7" - stylis "4.2.0" - -"@emotion/cache@^11.11.0": - version "11.11.0" - resolved "https://registry.npmjs.org/@emotion/cache/-/cache-11.11.0.tgz" - integrity sha512-P34z9ssTCBi3e9EI1ZsWpNHcfY1r09ZO0rZbRO2ob3ZQMnFI35jB536qoXbkdesr5EUhYi22anuEJuyxifaqAQ== - dependencies: - "@emotion/memoize" "^0.8.1" - "@emotion/sheet" "^1.2.2" - "@emotion/utils" "^1.2.1" - "@emotion/weak-memoize" "^0.3.1" - stylis "4.2.0" - -"@emotion/hash@^0.8.0": - version "0.8.0" - resolved "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz" - integrity sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow== + "@types/mime" "*" + "@types/node" "*" -"@emotion/hash@^0.9.1": - version "0.9.1" - resolved "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.1.tgz" - integrity sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ== +"@types/unist@*", "@types/unist@^2.0.0": + version "2.0.6" + resolved "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz" + integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ== -"@emotion/is-prop-valid@^1.2.1": - version "1.2.1" - resolved "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.1.tgz" - integrity sha512-61Mf7Ufx4aDxx1xlDeOm8aFFigGHE4z+0sKCa+IHCeZKiyP9RLD0Mmx7m8b9/Cf37f7NAvQOOJAbQQGVr5uERw== - dependencies: - "@emotion/memoize" "^0.8.1" +"@types/yargs-parser@*": + version "21.0.0" + resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz" + integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== -"@emotion/memoize@^0.8.1": - version "0.8.1" - resolved "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz" - integrity sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA== - -"@emotion/react@^11.10.4": - version "11.11.0" - resolved "https://registry.npmjs.org/@emotion/react/-/react-11.11.0.tgz" - integrity sha512-ZSK3ZJsNkwfjT3JpDAWJZlrGD81Z3ytNDsxw1LKq1o+xkmO5pnWfr6gmCC8gHEFf3nSSX/09YrG67jybNPxSUw== - dependencies: - "@babel/runtime" "^7.18.3" - "@emotion/babel-plugin" "^11.11.0" - "@emotion/cache" "^11.11.0" - "@emotion/serialize" "^1.1.2" - "@emotion/use-insertion-effect-with-fallbacks" "^1.0.1" - "@emotion/utils" "^1.2.1" - "@emotion/weak-memoize" "^0.3.1" - hoist-non-react-statics "^3.3.1" - -"@emotion/serialize@^1.1.2": - version "1.1.2" - resolved "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.1.2.tgz" - integrity sha512-zR6a/fkFP4EAcCMQtLOhIgpprZOwNmCldtpaISpvz348+DP4Mz8ZoKaGGCQpbzepNIUWbq4w6hNZkwDyKoS+HA== +"@types/yargs@^15.0.0": + version "15.0.15" + resolved "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.15.tgz" + integrity sha512-IziEYMU9XoVj8hWg7k+UJrXALkGFjWJhn5QFEv9q4p+v40oZhSuC135M38st8XPjICL7Ey4TV64ferBGUoJhBg== dependencies: - "@emotion/hash" "^0.9.1" - "@emotion/memoize" "^0.8.1" - "@emotion/unitless" "^0.8.1" - "@emotion/utils" "^1.2.1" - csstype "^3.0.2" + "@types/yargs-parser" "*" -"@emotion/sheet@^1.2.2": - version "1.2.2" - resolved "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.2.2.tgz" - integrity sha512-0QBtGvaqtWi+nx6doRwDdBIzhNdZrXUppvTM4dtZZWEGTXL/XE/yJxLMGlDT1Gt+UHH5IX1n+jkXyytE/av7OA== - -"@emotion/styled@^11.10.4": - version "11.11.0" - resolved "https://registry.npmjs.org/@emotion/styled/-/styled-11.11.0.tgz" - integrity sha512-hM5Nnvu9P3midq5aaXj4I+lnSfNi7Pmd4EWk1fOZ3pxookaQTNew6bp4JaCBYM4HVFZF9g7UjJmsUmC2JlxOng== - dependencies: - "@babel/runtime" "^7.18.3" - "@emotion/babel-plugin" "^11.11.0" - "@emotion/is-prop-valid" "^1.2.1" - "@emotion/serialize" "^1.1.2" - "@emotion/use-insertion-effect-with-fallbacks" "^1.0.1" - "@emotion/utils" "^1.2.1" - -"@emotion/unitless@^0.8.1": - version "0.8.1" - resolved "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz" - integrity sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ== +"@types/yup@^0.29.11": + version "0.29.14" + resolved "https://registry.npmjs.org/@types/yup/-/yup-0.29.14.tgz" + integrity sha512-Ynb/CjHhE/Xp/4bhHmQC4U1Ox+I2OpfRYF3dnNgQqn1cHa6LK3H1wJMNPT02tSVZA6FYuXE2ITORfbnb6zBCSA== -"@emotion/use-insertion-effect-with-fallbacks@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.0.1.tgz" - integrity sha512-jT/qyKZ9rzLErtrjGgdkMBn2OP8wl0G3sQlBb3YPryvKHsjvINUhVaPFfP+fpBcOkmrVOVEEHQFJ7nbj2TH2gw== +"@typescript-eslint/eslint-plugin@^4.18.0": + version "4.33.0" + resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.33.0.tgz" + integrity sha512-aINiAxGVdOl1eJyVjaWn/YcVAq4Gi/Yo35qHGCnqbWVz61g39D0h23veY/MA0rFFGfxK7TySg2uwDeNv+JgVpg== + dependencies: + "@typescript-eslint/experimental-utils" "4.33.0" + "@typescript-eslint/scope-manager" "4.33.0" + debug "^4.3.1" + functional-red-black-tree "^1.0.1" + ignore "^5.1.8" + regexpp "^3.1.0" + semver "^7.3.5" + tsutils "^3.21.0" -"@emotion/utils@^1.2.1": - version "1.2.1" - resolved "https://registry.npmjs.org/@emotion/utils/-/utils-1.2.1.tgz" - integrity sha512-Y2tGf3I+XVnajdItskUCn6LX+VUDmP6lTL4fcqsXAv43dnlbZiuW4MWQW38rW/BVWSE7Q/7+XQocmpnRYILUmg== +"@typescript-eslint/experimental-utils@4.33.0": + version "4.33.0" + resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.33.0.tgz" + integrity sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q== + dependencies: + "@types/json-schema" "^7.0.7" + "@typescript-eslint/scope-manager" "4.33.0" + "@typescript-eslint/types" "4.33.0" + "@typescript-eslint/typescript-estree" "4.33.0" + eslint-scope "^5.1.1" + eslint-utils "^3.0.0" -"@emotion/weak-memoize@^0.3.1": - version "0.3.1" - resolved "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.3.1.tgz" - integrity sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww== +"@typescript-eslint/parser@^4.18.0": + version "4.33.0" + resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.33.0.tgz" + integrity sha512-ZohdsbXadjGBSK0/r+d87X0SBmKzOq4/S5nzK6SBgJspFo9/CUDJ7hjayuze+JK7CZQLDMroqytp7pOcFKTxZA== + dependencies: + "@typescript-eslint/scope-manager" "4.33.0" + "@typescript-eslint/types" "4.33.0" + "@typescript-eslint/typescript-estree" "4.33.0" + debug "^4.3.1" -"@eslint-community/eslint-utils@^4.2.0": - version "4.4.0" - resolved "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz" - integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== +"@typescript-eslint/scope-manager@4.33.0": + version "4.33.0" + resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.33.0.tgz" + integrity sha512-5IfJHpgTsTZuONKbODctL4kKuQje/bzBRkwHE8UOZ4f89Zeddg+EGZs8PD8NcN4LdM3ygHWYB3ukPAYjvl/qbQ== dependencies: - eslint-visitor-keys "^3.3.0" + "@typescript-eslint/types" "4.33.0" + "@typescript-eslint/visitor-keys" "4.33.0" -"@eslint-community/regexpp@^4.4.0": - version "4.5.1" - resolved "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz" - integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ== +"@typescript-eslint/types@4.33.0": + version "4.33.0" + resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.33.0.tgz" + integrity sha512-zKp7CjQzLQImXEpLt2BUw1tvOMPfNoTAfb8l51evhYbOEEzdWyQNmHWWGPR6hwKJDAi+1VXSBmnhL9kyVTTOuQ== -"@eslint/eslintrc@^0.4.3": - version "0.4.3" - resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz" - integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw== +"@typescript-eslint/typescript-estree@4.33.0": + version "4.33.0" + resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.33.0.tgz" + integrity sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA== dependencies: - ajv "^6.12.4" - debug "^4.1.1" - espree "^7.3.0" - globals "^13.9.0" - ignore "^4.0.6" - import-fresh "^3.2.1" - js-yaml "^3.13.1" - minimatch "^3.0.4" - strip-json-comments "^3.1.1" + "@typescript-eslint/types" "4.33.0" + "@typescript-eslint/visitor-keys" "4.33.0" + debug "^4.3.1" + globby "^11.0.3" + is-glob "^4.0.1" + semver "^7.3.5" + tsutils "^3.21.0" -"@eslint/eslintrc@^2.0.3": - version "2.0.3" - resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz" - integrity sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ== +"@typescript-eslint/visitor-keys@4.33.0": + version "4.33.0" + resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.33.0.tgz" + integrity sha512-uqi/2aSz9g2ftcHWf8uLPJA70rUv6yuMW5Bohw+bwcuzaxQIHaKFZCKGoGXIrc9vkTJ3+0txM73K0Hq3d5wgIg== dependencies: - ajv "^6.12.4" - debug "^4.3.2" - espree "^9.5.2" - globals "^13.19.0" - ignore "^5.2.0" - import-fresh "^3.2.1" - js-yaml "^4.1.0" - minimatch "^3.1.2" - strip-json-comments "^3.1.1" - -"@eslint/js@8.41.0": - version "8.41.0" - resolved "https://registry.npmjs.org/@eslint/js/-/js-8.41.0.tgz" - integrity sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA== - -"@hookform/resolvers@^2.8.1": - version "2.9.11" - resolved "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-2.9.11.tgz" - integrity sha512-bA3aZ79UgcHj7tFV7RlgThzwSSHZgvfbt2wprldRkYBcMopdMvHyO17Wwp/twcJasNFischFfS7oz8Katz8DdQ== + "@typescript-eslint/types" "4.33.0" + eslint-visitor-keys "^2.0.0" -"@humanwhocodes/config-array@^0.11.8": - version "0.11.9" - resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.9.tgz" - integrity sha512-TtlcCXarBltllJ++jCdnSjzihec7ukhesOAeFWRgCTcEHNVsN1o4nLxq/6JnpYJSUV1/w9v93XkMqQpdX5Zb6w== +"@walletconnect/core@2.7.0": + version "2.7.0" + resolved "https://registry.npmjs.org/@walletconnect/core/-/core-2.7.0.tgz" + integrity sha512-xUeFPpElybgn1a+lknqtHleei4VyuV/4qWgB1nP8qQUAO6a5pNsioODrnB2VAPdUHJYBdx2dCt2maRk6g53IPQ== dependencies: - "@humanwhocodes/object-schema" "^1.2.1" - debug "^4.1.1" - minimatch "^3.0.5" + "@walletconnect/heartbeat" "1.2.1" + "@walletconnect/jsonrpc-provider" "^1.0.12" + "@walletconnect/jsonrpc-utils" "^1.0.7" + "@walletconnect/jsonrpc-ws-connection" "^1.0.11" + "@walletconnect/keyvaluestorage" "^1.0.2" + "@walletconnect/logger" "^2.0.1" + "@walletconnect/relay-api" "^1.0.9" + "@walletconnect/relay-auth" "^1.0.4" + "@walletconnect/safe-json" "^1.0.2" + "@walletconnect/time" "^1.0.2" + "@walletconnect/types" "2.7.0" + "@walletconnect/utils" "2.7.0" + events "^3.3.0" + lodash.isequal "4.5.0" + uint8arrays "^3.1.0" -"@humanwhocodes/config-array@^0.5.0": - version "0.5.0" - resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz" - integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== +"@walletconnect/environment@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@walletconnect/environment/-/environment-1.0.1.tgz" + integrity sha512-T426LLZtHj8e8rYnKfzsw1aG6+M0BT1ZxayMdv/p8yM0MU+eJDISqNY3/bccxRr4LrF9csq02Rhqt08Ibl0VRg== dependencies: - "@humanwhocodes/object-schema" "^1.2.0" - debug "^4.1.1" - minimatch "^3.0.4" + tslib "1.14.1" -"@humanwhocodes/module-importer@^1.0.1": +"@walletconnect/events@^1.0.1": version "1.0.1" - resolved "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz" - integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== + resolved "https://registry.npmjs.org/@walletconnect/events/-/events-1.0.1.tgz" + integrity sha512-NPTqaoi0oPBVNuLv7qPaJazmGHs5JGyO8eEAk5VGKmJzDR7AHzD4k6ilox5kxk1iwiOnFopBOOMLs86Oa76HpQ== + dependencies: + keyvaluestorage-interface "^1.0.0" + tslib "1.14.1" -"@humanwhocodes/object-schema@^1.2.0", "@humanwhocodes/object-schema@^1.2.1": +"@walletconnect/heartbeat@1.2.1": version "1.2.1" - resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== - -"@istanbuljs/load-nyc-config@^1.0.0": - version "1.1.0" - resolved "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz" - integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== + resolved "https://registry.npmjs.org/@walletconnect/heartbeat/-/heartbeat-1.2.1.tgz" + integrity sha512-yVzws616xsDLJxuG/28FqtZ5rzrTA4gUjdEMTbWB5Y8V1XHRmqq4efAxCw5ie7WjbXFSUyBHaWlMR+2/CpQC5Q== dependencies: - camelcase "^5.3.1" - find-up "^4.1.0" - get-package-type "^0.1.0" - js-yaml "^3.13.1" - resolve-from "^5.0.0" + "@walletconnect/events" "^1.0.1" + "@walletconnect/time" "^1.0.2" + tslib "1.14.1" -"@istanbuljs/schema@^0.1.2": - version "0.1.3" - resolved "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz" - integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== - -"@jest/console@^27.5.1": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz" - integrity sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg== +"@walletconnect/jsonrpc-provider@^1.0.12": + version "1.0.13" + resolved "https://registry.npmjs.org/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.13.tgz" + integrity sha512-K73EpThqHnSR26gOyNEL+acEex3P7VWZe6KE12ZwKzAt2H4e5gldZHbjsu2QR9cLeJ8AXuO7kEMOIcRv1QEc7g== dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - jest-message-util "^27.5.1" - jest-util "^27.5.1" - slash "^3.0.0" + "@walletconnect/jsonrpc-utils" "^1.0.8" + "@walletconnect/safe-json" "^1.0.2" + tslib "1.14.1" -"@jest/console@^28.1.3": - version "28.1.3" - resolved "https://registry.npmjs.org/@jest/console/-/console-28.1.3.tgz" - integrity sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw== +"@walletconnect/jsonrpc-types@^1.0.2", "@walletconnect/jsonrpc-types@^1.0.3": + version "1.0.3" + resolved "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz" + integrity sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw== dependencies: - "@jest/types" "^28.1.3" - "@types/node" "*" - chalk "^4.0.0" - jest-message-util "^28.1.3" - jest-util "^28.1.3" - slash "^3.0.0" + keyvaluestorage-interface "^1.0.0" + tslib "1.14.1" -"@jest/core@^27.5.1": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz" - integrity sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ== +"@walletconnect/jsonrpc-utils@^1.0.6", "@walletconnect/jsonrpc-utils@^1.0.7", "@walletconnect/jsonrpc-utils@^1.0.8": + version "1.0.8" + resolved "https://registry.npmjs.org/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.8.tgz" + integrity sha512-vdeb03bD8VzJUL6ZtzRYsFMq1eZQcM3EAzT0a3st59dyLfJ0wq+tKMpmGH7HlB7waD858UWgfIcudbPFsbzVdw== dependencies: - "@jest/console" "^27.5.1" - "@jest/reporters" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - emittery "^0.8.1" - exit "^0.1.2" - graceful-fs "^4.2.9" - jest-changed-files "^27.5.1" - jest-config "^27.5.1" - jest-haste-map "^27.5.1" - jest-message-util "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-resolve-dependencies "^27.5.1" - jest-runner "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - jest-watcher "^27.5.1" - micromatch "^4.0.4" - rimraf "^3.0.0" - slash "^3.0.0" - strip-ansi "^6.0.0" + "@walletconnect/environment" "^1.0.1" + "@walletconnect/jsonrpc-types" "^1.0.3" + tslib "1.14.1" -"@jest/environment@^27.5.1": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz" - integrity sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA== +"@walletconnect/jsonrpc-ws-connection@^1.0.11": + version "1.0.12" + resolved "https://registry.npmjs.org/@walletconnect/jsonrpc-ws-connection/-/jsonrpc-ws-connection-1.0.12.tgz" + integrity sha512-HAcadga3Qjt1Cqy+qXEW6zjaCs8uJGdGQrqltzl3OjiK4epGZRdvSzTe63P+t/3z+D2wG+ffEPn0GVcDozmN1w== dependencies: - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" + "@walletconnect/jsonrpc-utils" "^1.0.6" + "@walletconnect/safe-json" "^1.0.2" + events "^3.3.0" + tslib "1.14.1" + ws "^7.5.1" -"@jest/fake-timers@^27.5.1": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz" - integrity sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ== +"@walletconnect/keyvaluestorage@^1.0.2": + version "1.0.2" + resolved "https://registry.npmjs.org/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.0.2.tgz" + integrity sha512-U/nNG+VLWoPFdwwKx0oliT4ziKQCEoQ27L5Hhw8YOFGA2Po9A9pULUYNWhDgHkrb0gYDNt//X7wABcEWWBd3FQ== dependencies: - "@jest/types" "^27.5.1" - "@sinonjs/fake-timers" "^8.0.1" - "@types/node" "*" - jest-message-util "^27.5.1" - jest-mock "^27.5.1" - jest-util "^27.5.1" - -"@jest/globals@^27.5.1": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz" - integrity sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/types" "^27.5.1" - expect "^27.5.1" - -"@jest/reporters@^27.5.1": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz" - integrity sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw== - dependencies: - "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - collect-v8-coverage "^1.0.0" - exit "^0.1.2" - glob "^7.1.2" - graceful-fs "^4.2.9" - istanbul-lib-coverage "^3.0.0" - istanbul-lib-instrument "^5.1.0" - istanbul-lib-report "^3.0.0" - istanbul-lib-source-maps "^4.0.0" - istanbul-reports "^3.1.3" - jest-haste-map "^27.5.1" - jest-resolve "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - slash "^3.0.0" - source-map "^0.6.0" - string-length "^4.0.1" - terminal-link "^2.0.0" - v8-to-istanbul "^8.1.0" + safe-json-utils "^1.1.1" + tslib "1.14.1" -"@jest/schemas@^28.1.3": - version "28.1.3" - resolved "https://registry.npmjs.org/@jest/schemas/-/schemas-28.1.3.tgz" - integrity sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg== +"@walletconnect/logger@^2.0.1": + version "2.0.1" + resolved "https://registry.npmjs.org/@walletconnect/logger/-/logger-2.0.1.tgz" + integrity sha512-SsTKdsgWm+oDTBeNE/zHxxr5eJfZmE9/5yp/Ku+zJtcTAjELb3DXueWkDXmE9h8uHIbJzIb5wj5lPdzyrjT6hQ== dependencies: - "@sinclair/typebox" "^0.24.1" + pino "7.11.0" + tslib "1.14.1" -"@jest/source-map@^27.5.1": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz" - integrity sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg== +"@walletconnect/relay-api@^1.0.9": + version "1.0.9" + resolved "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.9.tgz" + integrity sha512-Q3+rylJOqRkO1D9Su0DPE3mmznbAalYapJ9qmzDgK28mYF9alcP3UwG/og5V7l7CFOqzCLi7B8BvcBUrpDj0Rg== dependencies: - callsites "^3.0.0" - graceful-fs "^4.2.9" - source-map "^0.6.0" + "@walletconnect/jsonrpc-types" "^1.0.2" + tslib "1.14.1" -"@jest/test-result@^27.5.1": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz" - integrity sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag== +"@walletconnect/relay-auth@^1.0.4": + version "1.0.4" + resolved "https://registry.npmjs.org/@walletconnect/relay-auth/-/relay-auth-1.0.4.tgz" + integrity sha512-kKJcS6+WxYq5kshpPaxGHdwf5y98ZwbfuS4EE/NkQzqrDFm5Cj+dP8LofzWvjrrLkZq7Afy7WrQMXdLy8Sx7HQ== dependencies: - "@jest/console" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/istanbul-lib-coverage" "^2.0.0" - collect-v8-coverage "^1.0.0" + "@stablelib/ed25519" "^1.0.2" + "@stablelib/random" "^1.0.1" + "@walletconnect/safe-json" "^1.0.1" + "@walletconnect/time" "^1.0.2" + tslib "1.14.1" + uint8arrays "^3.0.0" -"@jest/test-result@^28.1.3": - version "28.1.3" - resolved "https://registry.npmjs.org/@jest/test-result/-/test-result-28.1.3.tgz" - integrity sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg== +"@walletconnect/safe-json@^1.0.1", "@walletconnect/safe-json@^1.0.2": + version "1.0.2" + resolved "https://registry.npmjs.org/@walletconnect/safe-json/-/safe-json-1.0.2.tgz" + integrity sha512-Ogb7I27kZ3LPC3ibn8ldyUr5544t3/STow9+lzz7Sfo808YD7SBWk7SAsdBFlYgP2zDRy2hS3sKRcuSRM0OTmA== dependencies: - "@jest/console" "^28.1.3" - "@jest/types" "^28.1.3" - "@types/istanbul-lib-coverage" "^2.0.0" - collect-v8-coverage "^1.0.0" - -"@jest/test-sequencer@^27.5.1": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz" - integrity sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ== - dependencies: - "@jest/test-result" "^27.5.1" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-runtime "^27.5.1" - -"@jest/transform@^27.5.1": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz" - integrity sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw== - dependencies: - "@babel/core" "^7.1.0" - "@jest/types" "^27.5.1" - babel-plugin-istanbul "^6.1.1" - chalk "^4.0.0" - convert-source-map "^1.4.0" - fast-json-stable-stringify "^2.0.0" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-regex-util "^27.5.1" - jest-util "^27.5.1" - micromatch "^4.0.4" - pirates "^4.0.4" - slash "^3.0.0" - source-map "^0.6.1" - write-file-atomic "^3.0.0" + tslib "1.14.1" -"@jest/types@^26.6.2": - version "26.6.2" - resolved "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz" - integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ== +"@walletconnect/sign-client@2.7.0": + version "2.7.0" + resolved "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.7.0.tgz" + integrity sha512-K99xa6GSFS04U+140yrIEi/VJJJ0Q1ov4jCaiqa9euILDKxlBsM7m5GR+9sq6oYyj18SluJY4CJTdeOXUJlarA== dependencies: - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^15.0.0" - chalk "^4.0.0" + "@walletconnect/core" "2.7.0" + "@walletconnect/events" "^1.0.1" + "@walletconnect/heartbeat" "1.2.1" + "@walletconnect/jsonrpc-utils" "^1.0.7" + "@walletconnect/logger" "^2.0.1" + "@walletconnect/time" "^1.0.2" + "@walletconnect/types" "2.7.0" + "@walletconnect/utils" "2.7.0" + events "^3.3.0" -"@jest/types@^27.5.1": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz" - integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== +"@walletconnect/time@^1.0.2": + version "1.0.2" + resolved "https://registry.npmjs.org/@walletconnect/time/-/time-1.0.2.tgz" + integrity sha512-uzdd9woDcJ1AaBZRhqy5rNC9laqWGErfc4dxA9a87mPdKOgWMD85mcFo9dIYIts/Jwocfwn07EC6EzclKubk/g== dependencies: - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^16.0.0" - chalk "^4.0.0" + tslib "1.14.1" -"@jest/types@^28.1.3": - version "28.1.3" - resolved "https://registry.npmjs.org/@jest/types/-/types-28.1.3.tgz" - integrity sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ== +"@walletconnect/types@2.7.0": + version "2.7.0" + resolved "https://registry.npmjs.org/@walletconnect/types/-/types-2.7.0.tgz" + integrity sha512-aMUDUtO79WSBtC/bDetE6aFwdgwJr0tJ8nC8gnAl5ELsrjygEKCn6M8Q+v6nP9svG9yf5Rds4cImxCT6BWwTyw== dependencies: - "@jest/schemas" "^28.1.3" - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^17.0.8" - chalk "^4.0.0" + "@walletconnect/events" "^1.0.1" + "@walletconnect/heartbeat" "1.2.1" + "@walletconnect/jsonrpc-types" "^1.0.2" + "@walletconnect/keyvaluestorage" "^1.0.2" + "@walletconnect/logger" "^2.0.1" + events "^3.3.0" -"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": - version "0.3.3" - resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz" - integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ== +"@walletconnect/utils@2.7.0": + version "2.7.0" + resolved "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.7.0.tgz" + integrity sha512-k32jrQeyJsNZPdmtmg85Y3QgaS5YfzYSPrAxRC2uUD1ts7rrI6P5GG2iXNs3AvWKOuCgsp/PqU8s7AC7CRUscw== dependencies: - "@jridgewell/set-array" "^1.0.1" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping" "^0.3.9" - -"@jridgewell/resolve-uri@3.1.0": - version "3.1.0" - resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz" - integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== - -"@jridgewell/resolve-uri@^3.0.3": - version "3.1.1" - resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz" - integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== + "@stablelib/chacha20poly1305" "1.0.1" + "@stablelib/hkdf" "1.0.1" + "@stablelib/random" "^1.0.2" + "@stablelib/sha256" "1.0.1" + "@stablelib/x25519" "^1.0.3" + "@walletconnect/jsonrpc-utils" "^1.0.7" + "@walletconnect/relay-api" "^1.0.9" + "@walletconnect/safe-json" "^1.0.2" + "@walletconnect/time" "^1.0.2" + "@walletconnect/types" "2.7.0" + "@walletconnect/window-getters" "^1.0.1" + "@walletconnect/window-metadata" "^1.0.1" + detect-browser "5.3.0" + query-string "7.1.1" + uint8arrays "^3.1.0" -"@jridgewell/set-array@^1.0.1": - version "1.1.2" - resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz" - integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== +"@walletconnect/window-getters@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@walletconnect/window-getters/-/window-getters-1.0.1.tgz" + integrity sha512-vHp+HqzGxORPAN8gY03qnbTMnhqIwjeRJNOMOAzePRg4xVEEE2WvYsI9G2NMjOknA8hnuYbU3/hwLcKbjhc8+Q== + dependencies: + tslib "1.14.1" -"@jridgewell/source-map@^0.3.3": - version "0.3.3" - resolved "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz" - integrity sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg== +"@walletconnect/window-metadata@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@walletconnect/window-metadata/-/window-metadata-1.0.1.tgz" + integrity sha512-9koTqyGrM2cqFRW517BPY/iEtUDx2r1+Pwwu5m7sJ7ka79wi3EyqhqcICk/yDmv6jAS1rjKgTKXlEhanYjijcA== dependencies: - "@jridgewell/gen-mapping" "^0.3.0" - "@jridgewell/trace-mapping" "^0.3.9" + "@walletconnect/window-getters" "^1.0.1" + tslib "1.14.1" -"@jridgewell/sourcemap-codec@1.4.14": - version "1.4.14" - resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz" - integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== +"@zeit/schemas@2.6.0": + version "2.6.0" + resolved "https://registry.npmjs.org/@zeit/schemas/-/schemas-2.6.0.tgz" + integrity sha512-uUrgZ8AxS+Lio0fZKAipJjAh415JyrOZowliZAzmnJSsf7piVL5w+G0+gFJ0KSu3QRhvui/7zuvpLz03YjXAhg== -"@jridgewell/sourcemap-codec@^1.4.10": - version "1.4.15" - resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz" - integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== +abbrev@1: + version "1.1.1" + resolved "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== -"@jridgewell/trace-mapping@0.3.9": - version "0.3.9" - resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz" - integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== +abort-controller@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz" + integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== dependencies: - "@jridgewell/resolve-uri" "^3.0.3" - "@jridgewell/sourcemap-codec" "^1.4.10" + event-target-shim "^5.0.0" -"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": - version "0.3.18" - resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz" - integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== +accepts@~1.3.5, accepts@~1.3.8: + version "1.3.8" + resolved "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== dependencies: - "@jridgewell/resolve-uri" "3.1.0" - "@jridgewell/sourcemap-codec" "1.4.14" - -"@juggle/resize-observer@^3.2.0": - version "3.4.0" - resolved "https://registry.npmjs.org/@juggle/resize-observer/-/resize-observer-3.4.0.tgz" - integrity sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA== - -"@leichtgewicht/ip-codec@^2.0.1": - version "2.0.4" - resolved "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz" - integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A== - -"@material-ui/core@^4.11.3": - version "4.12.4" - resolved "https://registry.npmjs.org/@material-ui/core/-/core-4.12.4.tgz" - integrity sha512-tr7xekNlM9LjA6pagJmL8QCgZXaubWUwkJnoYcMKd4gw/t4XiyvnTkjdGrUVicyB2BsdaAv1tvow45bPM4sSwQ== - dependencies: - "@babel/runtime" "^7.4.4" - "@material-ui/styles" "^4.11.5" - "@material-ui/system" "^4.12.2" - "@material-ui/types" "5.1.0" - "@material-ui/utils" "^4.11.3" - "@types/react-transition-group" "^4.2.0" - clsx "^1.0.4" - hoist-non-react-statics "^3.3.2" - popper.js "1.16.1-lts" - prop-types "^15.7.2" - react-is "^16.8.0 || ^17.0.0" - react-transition-group "^4.4.0" - -"@material-ui/icons@^4.9.1": - version "4.11.3" - resolved "https://registry.npmjs.org/@material-ui/icons/-/icons-4.11.3.tgz" - integrity sha512-IKHlyx6LDh8n19vzwH5RtHIOHl9Tu90aAAxcbWME6kp4dmvODM3UvOHJeMIDzUbd4muuJKHmlNoBN+mDY4XkBA== - dependencies: - "@babel/runtime" "^7.4.4" - -"@material-ui/lab@^4.0.0-alpha.57": - version "4.0.0-alpha.61" - resolved "https://registry.npmjs.org/@material-ui/lab/-/lab-4.0.0-alpha.61.tgz" - integrity sha512-rSzm+XKiNUjKegj8bzt5+pygZeckNLOr+IjykH8sYdVk7dE9y2ZuUSofiMV2bJk3qU+JHwexmw+q0RyNZB9ugg== - dependencies: - "@babel/runtime" "^7.4.4" - "@material-ui/utils" "^4.11.3" - clsx "^1.0.4" - prop-types "^15.7.2" - react-is "^16.8.0 || ^17.0.0" - -"@material-ui/styles@^4.11.5": - version "4.11.5" - resolved "https://registry.npmjs.org/@material-ui/styles/-/styles-4.11.5.tgz" - integrity sha512-o/41ot5JJiUsIETME9wVLAJrmIWL3j0R0Bj2kCOLbSfqEkKf0fmaPt+5vtblUh5eXr2S+J/8J3DaCb10+CzPGA== - dependencies: - "@babel/runtime" "^7.4.4" - "@emotion/hash" "^0.8.0" - "@material-ui/types" "5.1.0" - "@material-ui/utils" "^4.11.3" - clsx "^1.0.4" - csstype "^2.5.2" - hoist-non-react-statics "^3.3.2" - jss "^10.5.1" - jss-plugin-camel-case "^10.5.1" - jss-plugin-default-unit "^10.5.1" - jss-plugin-global "^10.5.1" - jss-plugin-nested "^10.5.1" - jss-plugin-props-sort "^10.5.1" - jss-plugin-rule-value-function "^10.5.1" - jss-plugin-vendor-prefixer "^10.5.1" - prop-types "^15.7.2" - -"@material-ui/system@^4.12.2": - version "4.12.2" - resolved "https://registry.npmjs.org/@material-ui/system/-/system-4.12.2.tgz" - integrity sha512-6CSKu2MtmiJgcCGf6nBQpM8fLkuB9F55EKfbdTC80NND5wpTmKzwdhLYLH3zL4cLlK0gVaaltW7/wMuyTnN0Lw== - dependencies: - "@babel/runtime" "^7.4.4" - "@material-ui/utils" "^4.11.3" - csstype "^2.5.2" - prop-types "^15.7.2" - -"@material-ui/types@5.1.0": - version "5.1.0" - resolved "https://registry.npmjs.org/@material-ui/types/-/types-5.1.0.tgz" - integrity sha512-7cqRjrY50b8QzRSYyhSpx4WRw2YuO0KKIGQEVk5J8uoz2BanawykgZGoWEqKm7pVIbzFDN0SpPcVV4IhOFkl8A== + mime-types "~2.1.34" + negotiator "0.6.3" -"@material-ui/utils@^4.11.3": - version "4.11.3" - resolved "https://registry.npmjs.org/@material-ui/utils/-/utils-4.11.3.tgz" - integrity sha512-ZuQPV4rBK/V1j2dIkSSEcH5uT6AaHuKWFfotADHsC0wVL1NLd2WkFCm4ZZbX33iO4ydl6V0GPngKm8HZQ2oujg== - dependencies: - "@babel/runtime" "^7.4.4" - prop-types "^15.7.2" - react-is "^16.8.0 || ^17.0.0" +acorn-jsx@^5.3.1: + version "5.3.2" + resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== -"@microsoft/signalr@^5.0.9": - version "5.0.17" - resolved "https://registry.npmjs.org/@microsoft/signalr/-/signalr-5.0.17.tgz" - integrity sha512-zTjFxjh67WWCe35ZipsqkktM5mM+MsckyyI2ZvFmYWR7ibpUoAyZI1DFdYfwXfsyBdlykDaW84o9lrB+9tDpaA== - dependencies: - abort-controller "^3.0.0" - eventsource "^1.0.7" - fetch-cookie "^0.7.3" - node-fetch "^2.6.7" - ws "^6.0.0" +acorn-walk@^8.1.1: + version "8.2.0" + resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz" + integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== -"@mui/base@5.0.0-beta.3": - version "5.0.0-beta.3" - resolved "https://registry.npmjs.org/@mui/base/-/base-5.0.0-beta.3.tgz" - integrity sha512-ErOMoGNpgf6BF5W+jgXDiRlXJnpSeg8XSRonuY5UCCMHIlOWtKDtt/LS3qDAbFFGb7tV/y6EBddbcMeexx+zHw== - dependencies: - "@babel/runtime" "^7.21.0" - "@emotion/is-prop-valid" "^1.2.1" - "@mui/types" "^7.2.4" - "@mui/utils" "^5.13.1" - "@popperjs/core" "^2.11.7" - clsx "^1.2.1" - prop-types "^15.8.1" - react-is "^18.2.0" +acorn@^7.4.0: + version "7.4.1" + resolved "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== -"@mui/core-downloads-tracker@^5.13.3": - version "5.13.3" - resolved "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.13.3.tgz" - integrity sha512-w4//nRIi9fiMow/MmhkForOezd8nc229EpSZZ5DzwpJNOmAXwypFTapOUVAGTUQiTJyeZXUNbQqYuUIrIs2nbg== +acorn@^8.4.1: + version "8.8.2" + resolved "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz" + integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== -"@mui/material@^5.10.6": - version "5.13.3" - resolved "https://registry.npmjs.org/@mui/material/-/material-5.13.3.tgz" - integrity sha512-10pek+Bz+PZ4rjUf3KTKfXWjPMUqU1nSnRPf4DAXABhsjzelGGfGW/EICgrLRrttYplTJZhoponWALezAge8ug== +aggregate-error@^3.0.0: + version "3.1.0" + resolved "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz" + integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== dependencies: - "@babel/runtime" "^7.21.0" - "@mui/base" "5.0.0-beta.3" - "@mui/core-downloads-tracker" "^5.13.3" - "@mui/system" "^5.13.2" - "@mui/types" "^7.2.4" - "@mui/utils" "^5.13.1" - "@types/react-transition-group" "^4.4.6" - clsx "^1.2.1" - csstype "^3.1.2" - prop-types "^15.8.1" - react-is "^18.2.0" - react-transition-group "^4.4.5" + clean-stack "^2.0.0" + indent-string "^4.0.0" -"@mui/private-theming@^5.13.1": - version "5.13.1" - resolved "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.13.1.tgz" - integrity sha512-HW4npLUD9BAkVppOUZHeO1FOKUJWAwbpy0VQoGe3McUYTlck1HezGHQCfBQ5S/Nszi7EViqiimECVl9xi+/WjQ== +ajv@6.5.3: + version "6.5.3" + resolved "https://registry.npmjs.org/ajv/-/ajv-6.5.3.tgz" + integrity sha512-LqZ9wY+fx3UMiiPd741yB2pj3hhil+hQc8taf4o2QGRFpWgZ2V5C8HA165DY9sS3fJwsk7uT7ZlFEyC3Ig3lLg== dependencies: - "@babel/runtime" "^7.21.0" - "@mui/utils" "^5.13.1" - prop-types "^15.8.1" + fast-deep-equal "^2.0.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" -"@mui/styled-engine@^5.13.2": - version "5.13.2" - resolved "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.13.2.tgz" - integrity sha512-VCYCU6xVtXOrIN8lcbuPmoG+u7FYuOERG++fpY74hPpEWkyFQG97F+/XfTQVYzlR2m7nPjnwVUgATcTCMEaMvw== +ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4: + version "6.12.6" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== dependencies: - "@babel/runtime" "^7.21.0" - "@emotion/cache" "^11.11.0" - csstype "^3.1.2" - prop-types "^15.8.1" - -"@mui/system@^5.13.2": - version "5.13.2" - resolved "https://registry.npmjs.org/@mui/system/-/system-5.13.2.tgz" - integrity sha512-TPyWmRJPt0JPVxacZISI4o070xEJ7ftxpVtu6LWuYVOUOINlhoGOclam4iV8PDT3EMQEHuUrwU49po34UdWLlw== - dependencies: - "@babel/runtime" "^7.21.0" - "@mui/private-theming" "^5.13.1" - "@mui/styled-engine" "^5.13.2" - "@mui/types" "^7.2.4" - "@mui/utils" "^5.13.1" - clsx "^1.2.1" - csstype "^3.1.2" - prop-types "^15.8.1" - -"@mui/types@^7.2.4": - version "7.2.4" - resolved "https://registry.npmjs.org/@mui/types/-/types-7.2.4.tgz" - integrity sha512-LBcwa8rN84bKF+f5sDyku42w1NTxaPgPyYKODsh01U1fVstTClbUoSA96oyRBnSNyEiAVjKm6Gwx9vjR+xyqHA== + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" -"@mui/utils@^5.10.3", "@mui/utils@^5.13.1": - version "5.13.1" - resolved "https://registry.npmjs.org/@mui/utils/-/utils-5.13.1.tgz" - integrity sha512-6lXdWwmlUbEU2jUI8blw38Kt+3ly7xkmV9ljzY4Q20WhsJMWiNry9CX8M+TaP/HbtuyR8XKsdMgQW7h7MM3n3A== +ajv@^8.0.1: + version "8.12.0" + resolved "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz" + integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== dependencies: - "@babel/runtime" "^7.21.0" - "@types/prop-types" "^15.7.5" - "@types/react-is" "^18.2.0" - prop-types "^15.8.1" - react-is "^18.2.0" - -"@mui/x-date-pickers@^5.0.2": - version "5.0.20" - resolved "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-5.0.20.tgz" - integrity sha512-ERukSeHIoNLbI1C2XRhF9wRhqfsr+Q4B1SAw2ZlU7CWgcG8UBOxgqRKDEOVAIoSWL+DWT6GRuQjOKvj6UXZceA== - dependencies: - "@babel/runtime" "^7.18.9" - "@date-io/core" "^2.15.0" - "@date-io/date-fns" "^2.15.0" - "@date-io/dayjs" "^2.15.0" - "@date-io/luxon" "^2.15.0" - "@date-io/moment" "^2.15.0" - "@mui/utils" "^5.10.3" - "@types/react-transition-group" "^4.4.5" - clsx "^1.2.1" - prop-types "^15.7.2" - react-transition-group "^4.4.5" - rifm "^0.12.1" - -"@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1": - version "5.1.1-v1" - resolved "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz" - integrity sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg== - dependencies: - eslint-scope "5.1.1" + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" -"@nodelib/fs.scandir@2.1.5": - version "2.1.5" - resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" - integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== +ansi-align@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz" + integrity sha512-TdlOggdA/zURfMYa7ABC66j+oqfMew58KpJMbUlH3bcZP1b+cBHIHDDn5uH9INsxrHBPjsqM0tDB4jPTF/vgJA== dependencies: - "@nodelib/fs.stat" "2.0.5" - run-parallel "^1.1.9" + string-width "^2.0.0" -"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": - version "2.0.5" - resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" - integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== +ansi-colors@4.1.3, ansi-colors@^4.1.1: + version "4.1.3" + resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz" + integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== -"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": - version "1.2.8" - resolved "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz" - integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== +ansi-escapes@^4.3.0: + version "4.3.2" + resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz" + integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== dependencies: - "@nodelib/fs.scandir" "2.1.5" - fastq "^1.6.0" + type-fest "^0.21.3" -"@pmmmwh/react-refresh-webpack-plugin@^0.5.3": - version "0.5.10" - resolved "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.10.tgz" - integrity sha512-j0Ya0hCFZPd4x40qLzbhGsh9TMtdb+CJQiso+WxLOPNasohq9cc5SNUcwsZaRH6++Xh91Xkm/xHCkuIiIu0LUA== - dependencies: - ansi-html-community "^0.0.8" - common-path-prefix "^3.0.0" - core-js-pure "^3.23.3" - error-stack-parser "^2.0.6" - find-up "^5.0.0" - html-entities "^2.1.0" - loader-utils "^2.0.4" - schema-utils "^3.0.0" - source-map "^0.7.3" +ansi-regex@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz" + integrity sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw== -"@popperjs/core@^2.11.7": - version "2.11.8" - resolved "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz" - integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A== +ansi-regex@^5.0.0, ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== -"@reach/portal@^0.13.0": - version "0.13.2" - resolved "https://registry.npmjs.org/@reach/portal/-/portal-0.13.2.tgz" - integrity sha512-g74BnCdtuTGthzzHn2cWW+bcyIYb0iIE/yRsm89i8oNzNgpopbkh9UY8TPbhNlys52h7U60s4kpRTmcq+JqsTA== - dependencies: - "@reach/utils" "0.13.2" - tslib "^2.1.0" +ansi-regex@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz" + integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== -"@reach/utils@0.13.2": - version "0.13.2" - resolved "https://registry.npmjs.org/@reach/utils/-/utils-0.13.2.tgz" - integrity sha512-3ir6cN60zvUrwjOJu7C6jec/samqAeyAB12ZADK+qjnmQPdzSYldrFWwDVV5H0WkhbYXR3uh+eImu13hCetNPQ== +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== dependencies: - "@types/warning" "^3.0.0" - tslib "^2.1.0" - warning "^4.0.3" + color-convert "^1.9.0" -"@rollup/plugin-babel@^5.2.0": - version "5.3.1" - resolved "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz" - integrity sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q== +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== dependencies: - "@babel/helper-module-imports" "^7.10.4" - "@rollup/pluginutils" "^3.1.0" + color-convert "^2.0.1" -"@rollup/plugin-node-resolve@^11.2.1": - version "11.2.1" - resolved "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz" - integrity sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg== - dependencies: - "@rollup/pluginutils" "^3.1.0" - "@types/resolve" "1.17.1" - builtin-modules "^3.1.0" - deepmerge "^4.2.2" - is-module "^1.0.0" - resolve "^1.19.0" +ansi-styles@^6.0.0: + version "6.2.1" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz" + integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== -"@rollup/plugin-replace@^2.4.1": - version "2.4.2" - resolved "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-2.4.2.tgz" - integrity sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg== +anymatch@~3.1.2: + version "3.1.3" + resolved "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz" + integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== dependencies: - "@rollup/pluginutils" "^3.1.0" - magic-string "^0.25.7" + normalize-path "^3.0.0" + picomatch "^2.0.4" -"@rollup/pluginutils@^3.1.0": - version "3.1.0" - resolved "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz" - integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg== - dependencies: - "@types/estree" "0.0.39" - estree-walker "^1.0.1" - picomatch "^2.2.2" +arch@^2.1.0: + version "2.2.0" + resolved "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz" + integrity sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ== -"@rushstack/eslint-patch@^1.1.0": - version "1.3.0" - resolved "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.3.0.tgz" - integrity sha512-IthPJsJR85GhOkp3Hvp8zFOPK5ynKn6STyHa/WZpioK7E1aYDiBzpqQPrngc14DszIUkIrdd3k9Iu0XSzlP/1w== +arg@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/arg/-/arg-2.0.0.tgz" + integrity sha512-XxNTUzKnz1ctK3ZIcI2XUPlD96wbHP2nGqkPKpvk/HNRlPveYrXIVSTk9m3LcqOgDPg3B1nMvdV/K8wZd7PG4w== -"@sinclair/typebox@^0.24.1": - version "0.24.51" - resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz" - integrity sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA== +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== -"@sinonjs/commons@^1.7.0": - version "1.8.6" - resolved "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz" - integrity sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ== +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== dependencies: - type-detect "4.0.8" + sprintf-js "~1.0.2" -"@sinonjs/fake-timers@^8.0.1": - version "8.1.0" - resolved "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz" - integrity sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg== +array-buffer-byte-length@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz" + integrity sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A== dependencies: - "@sinonjs/commons" "^1.7.0" - -"@stablelib/aead@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/aead/-/aead-1.0.1.tgz" - integrity sha512-q39ik6sxGHewqtO0nP4BuSe3db5G1fEJE8ukvngS2gLkBXyy6E7pLubhbYgnkDFv6V8cWaxcE4Xn0t6LWcJkyg== + call-bind "^1.0.2" + is-array-buffer "^3.0.1" -"@stablelib/binary@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/binary/-/binary-1.0.1.tgz" - integrity sha512-ClJWvmL6UBM/wjkvv/7m5VP3GMr9t0osr4yVgLZsLCOz4hGN9gIAFEqnJ0TsSMAN+n840nf2cHZnA5/KFqHC7Q== - dependencies: - "@stablelib/int" "^1.0.1" +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz" + integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== -"@stablelib/blake2b@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/blake2b/-/blake2b-1.0.1.tgz" - integrity sha512-B3KyKoBAjkIFeH7romcF96i+pVFYk7K2SBQ1pZvaxV+epSBXJ+n0C66esUhyz6FF+5FbdQVm77C5fzGFcEZpKA== +array-includes@^3.1.5, array-includes@^3.1.6: + version "3.1.6" + resolved "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz" + integrity sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw== dependencies: - "@stablelib/binary" "^1.0.1" - "@stablelib/hash" "^1.0.1" - "@stablelib/wipe" "^1.0.1" + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + get-intrinsic "^1.1.3" + is-string "^1.0.7" -"@stablelib/bytes@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/bytes/-/bytes-1.0.1.tgz" - integrity sha512-Kre4Y4kdwuqL8BR2E9hV/R5sOrUj6NanZaZis0V6lX5yzqC3hBuVSDXUIBqQv/sCpmuWRiHLwqiT1pqqjuBXoQ== +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== -"@stablelib/chacha20poly1305@1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/chacha20poly1305/-/chacha20poly1305-1.0.1.tgz" - integrity sha512-MmViqnqHd1ymwjOQfghRKw2R/jMIGT3wySN7cthjXCBdO+qErNPUBnRzqNpnvIwg7JBCg3LdeCZZO4de/yEhVA== +array.prototype.flatmap@^1.3.1: + version "1.3.1" + resolved "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz" + integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ== dependencies: - "@stablelib/aead" "^1.0.1" - "@stablelib/binary" "^1.0.1" - "@stablelib/chacha" "^1.0.1" - "@stablelib/constant-time" "^1.0.1" - "@stablelib/poly1305" "^1.0.1" - "@stablelib/wipe" "^1.0.1" + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + es-shim-unscopables "^1.0.0" -"@stablelib/chacha@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/chacha/-/chacha-1.0.1.tgz" - integrity sha512-Pmlrswzr0pBzDofdFuVe1q7KdsHKhhU24e8gkEwnTGOmlC7PADzLVxGdn2PoNVBBabdg0l/IfLKg6sHAbTQugg== +array.prototype.tosorted@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz" + integrity sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ== dependencies: - "@stablelib/binary" "^1.0.1" - "@stablelib/wipe" "^1.0.1" - -"@stablelib/constant-time@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/constant-time/-/constant-time-1.0.1.tgz" - integrity sha512-tNOs3uD0vSJcK6z1fvef4Y+buN7DXhzHDPqRLSXUel1UfqMB1PWNsnnAezrKfEwTLpN0cGH2p9NNjs6IqeD0eg== + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + es-shim-unscopables "^1.0.0" + get-intrinsic "^1.1.3" -"@stablelib/ed25519@^1.0.2", "@stablelib/ed25519@^1.0.3": - version "1.0.3" - resolved "https://registry.npmjs.org/@stablelib/ed25519/-/ed25519-1.0.3.tgz" - integrity sha512-puIMWaX9QlRsbhxfDc5i+mNPMY+0TmQEskunY1rZEBPi1acBCVQAhnsk/1Hk50DGPtVsZtAWQg4NHGlVaO9Hqg== +asn1@~0.2.3: + version "0.2.6" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.6.tgz#0d3a7bb6e64e02a90c0303b31f292868ea09a08d" + integrity sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ== dependencies: - "@stablelib/random" "^1.0.2" - "@stablelib/sha512" "^1.0.1" - "@stablelib/wipe" "^1.0.1" + safer-buffer "~2.1.0" -"@stablelib/hash@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/hash/-/hash-1.0.1.tgz" - integrity sha512-eTPJc/stDkdtOcrNMZ6mcMK1e6yBbqRBaNW55XA1jU8w/7QdnCF0CmMmOD1m7VSkBR44PWrMHU2l6r8YEQHMgg== +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== -"@stablelib/hkdf@1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/hkdf/-/hkdf-1.0.1.tgz" - integrity sha512-SBEHYE16ZXlHuaW5RcGk533YlBj4grMeg5TooN80W3NpcHRtLZLLXvKyX0qcRFxf+BGDobJLnwkvgEwHIDBR6g== +assert@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/assert/-/assert-2.0.0.tgz" + integrity sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A== dependencies: - "@stablelib/hash" "^1.0.1" - "@stablelib/hmac" "^1.0.1" - "@stablelib/wipe" "^1.0.1" + es6-object-assign "^1.1.0" + is-nan "^1.2.1" + object-is "^1.0.1" + util "^0.12.0" -"@stablelib/hmac@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/hmac/-/hmac-1.0.1.tgz" - integrity sha512-V2APD9NSnhVpV/QMYgCVMIYKiYG6LSqw1S65wxVoirhU/51ACio6D4yDVSwMzuTJXWZoVHbDdINioBwKy5kVmA== - dependencies: - "@stablelib/constant-time" "^1.0.1" - "@stablelib/hash" "^1.0.1" - "@stablelib/wipe" "^1.0.1" +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== -"@stablelib/int@^1.0.1": +async-limiter@~1.0.0: version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/int/-/int-1.0.1.tgz" - integrity sha512-byr69X/sDtDiIjIV6m4roLVWnNNlRGzsvxw+agj8CIEazqWGOQp2dTYgQhtyVXV9wpO6WyXRQUzLV/JRNumT2w== + resolved "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz" + integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== -"@stablelib/keyagreement@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/keyagreement/-/keyagreement-1.0.1.tgz" - integrity sha512-VKL6xBwgJnI6l1jKrBAfn265cspaWBPAPEc62VBQrWHLqVgNRE09gQ/AnOEyKUWrrqfD+xSQ3u42gJjLDdMDQg== - dependencies: - "@stablelib/bytes" "^1.0.1" +async@^3.2.3: + version "3.2.4" + resolved "https://registry.npmjs.org/async/-/async-3.2.4.tgz" + integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== -"@stablelib/nacl@^1.0.3", "@stablelib/nacl@^1.0.4": - version "1.0.4" - resolved "https://registry.npmjs.org/@stablelib/nacl/-/nacl-1.0.4.tgz" - integrity sha512-PJ2U/MrkXSKUM8C4qFs87WeCNxri7KQwR8Cdwm9q2sweGuAtTvOJGuW0F3N+zn+ySLPJA98SYWSSpogMJ1gCmw== - dependencies: - "@stablelib/poly1305" "^1.0.1" - "@stablelib/random" "^1.0.2" - "@stablelib/wipe" "^1.0.1" - "@stablelib/x25519" "^1.0.3" - "@stablelib/xsalsa20" "^1.0.2" +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== -"@stablelib/pbkdf2@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/pbkdf2/-/pbkdf2-1.0.1.tgz" - integrity sha512-d5jwK6jW1DkMyzqY8D1Io+fRXcsUVr95lk5LKX9ghaUdAITTc1ZL0bff+R0IrwSixbHluxhnivG7vDw59AZ/Nw== - dependencies: - "@stablelib/binary" "^1.0.1" - "@stablelib/hash" "^1.0.1" - "@stablelib/hmac" "^1.0.1" - "@stablelib/wipe" "^1.0.1" +atomic-sleep@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz" + integrity sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ== -"@stablelib/poly1305@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/poly1305/-/poly1305-1.0.1.tgz" - integrity sha512-1HlG3oTSuQDOhSnLwJRKeTRSAdFNVB/1djy2ZbS35rBSJ/PFqx9cf9qatinWghC2UbfOYD8AcrtbUQl8WoxabA== +autoprefixer@^10.4.12: + version "10.4.14" + resolved "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz" + integrity sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ== dependencies: - "@stablelib/constant-time" "^1.0.1" - "@stablelib/wipe" "^1.0.1" + browserslist "^4.21.5" + caniuse-lite "^1.0.30001464" + fraction.js "^4.2.0" + normalize-range "^0.1.2" + picocolors "^1.0.0" + postcss-value-parser "^4.2.0" -"@stablelib/random@^1.0.1", "@stablelib/random@^1.0.2": - version "1.0.2" - resolved "https://registry.npmjs.org/@stablelib/random/-/random-1.0.2.tgz" - integrity sha512-rIsE83Xpb7clHPVRlBj8qNe5L8ISQOzjghYQm/dZ7VaM2KHYwMW5adjQjrzTZCchFnNCNhkwtnOBa9HTMJCI8w== - dependencies: - "@stablelib/binary" "^1.0.1" - "@stablelib/wipe" "^1.0.1" +available-typed-arrays@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz" + integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw== -"@stablelib/salsa20@^1.0.2": - version "1.0.2" - resolved "https://registry.npmjs.org/@stablelib/salsa20/-/salsa20-1.0.2.tgz" - integrity sha512-nfjKzw0KTKrrKBasEP+j7UP4I8Xudom8lVZIBCp0kQNARXq72IlSic0oabg2FC1NU68L4RdHrNJDd8bFwrphYA== - dependencies: - "@stablelib/binary" "^1.0.1" - "@stablelib/constant-time" "^1.0.1" - "@stablelib/wipe" "^1.0.1" +aws-sign2@~0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + integrity sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA== -"@stablelib/sha256@1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/sha256/-/sha256-1.0.1.tgz" - integrity sha512-GIIH3e6KH+91FqGV42Kcj71Uefd/QEe7Dy42sBTeqppXV95ggCcxLTk39bEr+lZfJmp+ghsR07J++ORkRELsBQ== - dependencies: - "@stablelib/binary" "^1.0.1" - "@stablelib/hash" "^1.0.1" - "@stablelib/wipe" "^1.0.1" +aws4@^1.8.0: + version "1.12.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.12.0.tgz#ce1c9d143389679e253b314241ea9aa5cec980d3" + integrity sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg== -"@stablelib/sha512@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/sha512/-/sha512-1.0.1.tgz" - integrity sha512-13gl/iawHV9zvDKciLo1fQ8Bgn2Pvf7OV6amaRVKiq3pjQ3UmEpXxWiAfV8tYjUpeZroBxtyrwtdooQT/i3hzw== +axios@0.24.0: + version "0.24.0" + resolved "https://registry.npmjs.org/axios/-/axios-0.24.0.tgz" + integrity sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA== dependencies: - "@stablelib/binary" "^1.0.1" - "@stablelib/hash" "^1.0.1" - "@stablelib/wipe" "^1.0.1" - -"@stablelib/utf8@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/utf8/-/utf8-1.0.1.tgz" - integrity sha512-FrYD1xadah/TtAP6VJ04lDD5h9rdDj/d8wH/jMYTtHqZBv9z2btdvEU8vTxdjdkFmo1b/BH+t3R1wi/mYhCCNg== - -"@stablelib/wipe@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@stablelib/wipe/-/wipe-1.0.1.tgz" - integrity sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg== + follow-redirects "^1.14.4" -"@stablelib/x25519-session@^1.0.4": - version "1.0.4" - resolved "https://registry.npmjs.org/@stablelib/x25519-session/-/x25519-session-1.0.4.tgz" - integrity sha512-UZw67EJWSNTaou7Qp086fzGek7crrCQl2K7MoqEzslXxrm6vybySfcdsqaZ0ZpKq19IHWK8G0wAlFBy70srm3w== +axios@^0.26.0: + version "0.26.1" + resolved "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz" + integrity sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA== dependencies: - "@stablelib/blake2b" "^1.0.1" - "@stablelib/keyagreement" "^1.0.1" - "@stablelib/random" "^1.0.2" - "@stablelib/wipe" "^1.0.1" - "@stablelib/x25519" "^1.0.3" + follow-redirects "^1.14.8" -"@stablelib/x25519@^1.0.3": - version "1.0.3" - resolved "https://registry.npmjs.org/@stablelib/x25519/-/x25519-1.0.3.tgz" - integrity sha512-KnTbKmUhPhHavzobclVJQG5kuivH+qDLpe84iRqX3CLrKp881cF160JvXJ+hjn1aMyCwYOKeIZefIH/P5cJoRw== - dependencies: - "@stablelib/keyagreement" "^1.0.1" - "@stablelib/random" "^1.0.2" - "@stablelib/wipe" "^1.0.1" +bail@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz" + integrity sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw== -"@stablelib/xsalsa20@^1.0.2": +balanced-match@^1.0.0: version "1.0.2" - resolved "https://registry.npmjs.org/@stablelib/xsalsa20/-/xsalsa20-1.0.2.tgz" - integrity sha512-7XdBGbcNgBShmuhDXv1G1WPVCkjZdkb1oPMzSidO7Fve0MHntH6TjFkj5bfLI+aRE+61weO076vYpP/jmaAYog== - dependencies: - "@stablelib/binary" "^1.0.1" - "@stablelib/salsa20" "^1.0.2" - "@stablelib/wipe" "^1.0.1" + resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== -"@surma/rollup-plugin-off-main-thread@^2.2.3": - version "2.2.3" - resolved "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz" - integrity sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ== +base-x@^3.0.2: + version "3.0.9" + resolved "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz" + integrity sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ== dependencies: - ejs "^3.1.6" - json5 "^2.2.0" - magic-string "^0.25.0" - string.prototype.matchall "^4.0.6" + safe-buffer "^5.0.1" -"@svgr/babel-plugin-add-jsx-attribute@^5.4.0": - version "5.4.0" - resolved "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-5.4.0.tgz" - integrity sha512-ZFf2gs/8/6B8PnSofI0inYXr2SDNTDScPXhN7k5EqD4aZ3gi6u+rbmZHVB8IM3wDyx8ntKACZbtXSm7oZGRqVg== +base64-js@^1.3.0, base64-js@^1.3.1: + version "1.5.1" + resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== -"@svgr/babel-plugin-remove-jsx-attribute@^5.4.0": - version "5.4.0" - resolved "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-5.4.0.tgz" - integrity sha512-yaS4o2PgUtwLFGTKbsiAy6D0o3ugcUhWK0Z45umJ66EPWunAz9fuFw2gJuje6wqQvQWOTJvIahUwndOXb7QCPg== +bcrypt-pbkdf@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" + integrity sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w== + dependencies: + tweetnacl "^0.14.3" -"@svgr/babel-plugin-remove-jsx-empty-expression@^5.0.1": - version "5.0.1" - resolved "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-5.0.1.tgz" - integrity sha512-LA72+88A11ND/yFIMzyuLRSMJ+tRKeYKeQ+mR3DcAZ5I4h5CPWN9AHyUzJbWSYp/u2u0xhmgOe0+E41+GjEueA== +bignumber.js@^9.0.1, bignumber.js@^9.1.0: + version "9.1.1" + resolved "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz" + integrity sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig== -"@svgr/babel-plugin-replace-jsx-attribute-value@^5.0.1": - version "5.0.1" - resolved "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-5.0.1.tgz" - integrity sha512-PoiE6ZD2Eiy5mK+fjHqwGOS+IXX0wq/YDtNyIgOrc6ejFnxN4b13pRpiIPbtPwHEc+NT2KCjteAcq33/F1Y9KQ== +binary-extensions@^2.0.0: + version "2.2.0" + resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz" + integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== -"@svgr/babel-plugin-svg-dynamic-title@^5.4.0": - version "5.4.0" - resolved "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-5.4.0.tgz" - integrity sha512-zSOZH8PdZOpuG1ZVx/cLVePB2ibo3WPpqo7gFIjLV9a0QsuQAzJiwwqmuEdTaW2pegyBE17Uu15mOgOcgabQZg== +bip39@3.0.4: + version "3.0.4" + resolved "https://registry.npmjs.org/bip39/-/bip39-3.0.4.tgz" + integrity sha512-YZKQlb752TrUWqHWj7XAwCSjYEgGAk+/Aas3V7NyjQeZYsztO8JnQUaCWhcnL4T+jL8nvB8typ2jRPzTlgugNw== + dependencies: + "@types/node" "11.11.6" + create-hash "^1.1.0" + pbkdf2 "^3.0.9" + randombytes "^2.0.1" -"@svgr/babel-plugin-svg-em-dimensions@^5.4.0": - version "5.4.0" - resolved "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-5.4.0.tgz" - integrity sha512-cPzDbDA5oT/sPXDCUYoVXEmm3VIoAWAPT6mSPTJNbQaBNUuEKVKyGH93oDY4e42PYHRW67N5alJx/eEol20abw== +blakejs@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/blakejs/-/blakejs-1.2.1.tgz" + integrity sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ== -"@svgr/babel-plugin-transform-react-native-svg@^5.4.0": - version "5.4.0" - resolved "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-5.4.0.tgz" - integrity sha512-3eYP/SaopZ41GHwXma7Rmxcv9uRslRDTY1estspeB1w1ueZWd/tPlMfEOoccYpEMZU3jD4OU7YitnXcF5hLW2Q== +blockies-ts@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/blockies-ts/-/blockies-ts-1.0.0.tgz" + integrity sha512-mL9NO/FjYbFjaSDA5tw/qkUwEXrBG1bHSoPhAFG9CAzDaHTwQHzvYByAYUBmnqYciFsJvdxWKGtyOLgaSKoUkA== -"@svgr/babel-plugin-transform-svg-component@^5.5.0": - version "5.5.0" - resolved "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-5.5.0.tgz" - integrity sha512-q4jSH1UUvbrsOtlo/tKcgSeiCHRSBdXoIoqX1pgcKK/aU3JD27wmMKwGtpB8qRYUYoyXvfGxUVKchLuR5pB3rQ== +bn.js@^4.11.9: + version "4.12.0" + resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz" + integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== -"@svgr/babel-preset@^5.5.0": - version "5.5.0" - resolved "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-5.5.0.tgz" - integrity sha512-4FiXBjvQ+z2j7yASeGPEi8VD/5rrGQk4Xrq3EdJmoZgz/tpqChpo5hgXDvmEauwtvOc52q8ghhZK4Oy7qph4ig== - dependencies: - "@svgr/babel-plugin-add-jsx-attribute" "^5.4.0" - "@svgr/babel-plugin-remove-jsx-attribute" "^5.4.0" - "@svgr/babel-plugin-remove-jsx-empty-expression" "^5.0.1" - "@svgr/babel-plugin-replace-jsx-attribute-value" "^5.0.1" - "@svgr/babel-plugin-svg-dynamic-title" "^5.4.0" - "@svgr/babel-plugin-svg-em-dimensions" "^5.4.0" - "@svgr/babel-plugin-transform-react-native-svg" "^5.4.0" - "@svgr/babel-plugin-transform-svg-component" "^5.5.0" - -"@svgr/core@^5.5.0": - version "5.5.0" - resolved "https://registry.npmjs.org/@svgr/core/-/core-5.5.0.tgz" - integrity sha512-q52VOcsJPvV3jO1wkPtzTuKlvX7Y3xIcWRpCMtBF3MrteZJtBfQw/+u0B1BHy5ColpQc1/YVTrPEtSYIMNZlrQ== +body-parser@1.20.1: + version "1.20.1" + resolved "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz" + integrity sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw== dependencies: - "@svgr/plugin-jsx" "^5.5.0" - camelcase "^6.2.0" - cosmiconfig "^7.0.0" + bytes "3.1.2" + content-type "~1.0.4" + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + http-errors "2.0.0" + iconv-lite "0.4.24" + on-finished "2.4.1" + qs "6.11.0" + raw-body "2.5.1" + type-is "~1.6.18" + unpipe "1.0.0" -"@svgr/hast-util-to-babel-ast@^5.5.0": - version "5.5.0" - resolved "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-5.5.0.tgz" - integrity sha512-cAaR/CAiZRB8GP32N+1jocovUtvlj0+e65TB50/6Lcime+EA49m/8l+P2ko+XPJ4dw3xaPS3jOL4F2X4KWxoeQ== +body-parser@^1.20.2: + version "1.20.2" + resolved "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz" + integrity sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA== dependencies: - "@babel/types" "^7.12.6" + bytes "3.1.2" + content-type "~1.0.5" + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + http-errors "2.0.0" + iconv-lite "0.4.24" + on-finished "2.4.1" + qs "6.11.0" + raw-body "2.5.2" + type-is "~1.6.18" + unpipe "1.0.0" -"@svgr/plugin-jsx@^5.5.0": - version "5.5.0" - resolved "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-5.5.0.tgz" - integrity sha512-V/wVh33j12hGh05IDg8GpIUXbjAPnTdPTKuP4VNLggnwaHMPNQNae2pRnyTAILWCQdz5GyMqtO488g7CKM8CBA== +boxen@1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz" + integrity sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw== dependencies: - "@babel/core" "^7.12.3" - "@svgr/babel-preset" "^5.5.0" - "@svgr/hast-util-to-babel-ast" "^5.5.0" - svg-parser "^2.0.2" + ansi-align "^2.0.0" + camelcase "^4.0.0" + chalk "^2.0.1" + cli-boxes "^1.0.0" + string-width "^2.0.0" + term-size "^1.2.0" + widest-line "^2.0.0" -"@svgr/plugin-svgo@^5.5.0": - version "5.5.0" - resolved "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-5.5.0.tgz" - integrity sha512-r5swKk46GuQl4RrVejVwpeeJaydoxkdwkM1mBKOgJLBUJPGaLci6ylg/IjhrRsREKDkr4kbMWdgOtbXEh0fyLQ== +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== dependencies: - cosmiconfig "^7.0.0" - deepmerge "^4.2.2" - svgo "^1.2.2" + balanced-match "^1.0.0" + concat-map "0.0.1" -"@svgr/webpack@^5.5.0": - version "5.5.0" - resolved "https://registry.npmjs.org/@svgr/webpack/-/webpack-5.5.0.tgz" - integrity sha512-DOBOK255wfQxguUta2INKkzPj6AIS6iafZYiYmHn6W3pHlycSRRlvWKCfLDG10fXfLWqE3DJHgRUOyJYmARa7g== - dependencies: - "@babel/core" "^7.12.3" - "@babel/plugin-transform-react-constant-elements" "^7.12.1" - "@babel/preset-env" "^7.12.1" - "@babel/preset-react" "^7.12.5" - "@svgr/core" "^5.5.0" - "@svgr/plugin-jsx" "^5.5.0" - "@svgr/plugin-svgo" "^5.5.0" - loader-utils "^2.0.0" +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" -"@taquito/beacon-wallet@^17.0.0": - version "17.0.0" - resolved "https://registry.npmjs.org/@taquito/beacon-wallet/-/beacon-wallet-17.0.0.tgz" - integrity sha512-OKuN2V2xLMeSb0u3nfzSjZDYV4mIB4pur2eR8xa+NhkXlY0gkQXjmZ3K9lwtjKcU3GI0iv5IVod4blYyHNeNvg== +braces@^3.0.2, braces@~3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== dependencies: - "@airgap/beacon-dapp" "4.0.2" - "@taquito/core" "^17.0.0" - "@taquito/taquito" "^17.0.0" + fill-range "^7.0.1" -"@taquito/core@^16.2.0": - version "16.2.0" - resolved "https://registry.npmjs.org/@taquito/core/-/core-16.2.0.tgz" - integrity sha512-N1r7zVjpcT8MGtE9Kcel7OgEOrj4cvS7VPWJYKMuUltILBcUmViRcBHiK9qGV6pMdujnihKkupCI6S1LJXPoLg== +brorand@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz" + integrity sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w== -"@taquito/core@^17.0.0": - version "17.0.0" - resolved "https://registry.npmjs.org/@taquito/core/-/core-17.0.0.tgz" - integrity sha512-N+ww8+whR8T07XZLlcEyjTQCYfAZif9s1dTqagWW0V9l/EIXsnl1tL2MBfZnVcJDMhKoIk1MjofS0gYc0hld2Q== - -"@taquito/http-utils@^17.0.0": - version "17.0.0" - resolved "https://registry.npmjs.org/@taquito/http-utils/-/http-utils-17.0.0.tgz" - integrity sha512-oyzZEr7k/HUQotFGGegXyixmUOB9jWsypTjWDmuElutDmO0GjFh33zii7vn57kZ1GmX4f0z45yiBp0w3flvhbA== - dependencies: - "@taquito/core" "^17.0.0" - axios "^0.26.0" - -"@taquito/local-forging@^17.0.0": - version "17.0.0" - resolved "https://registry.npmjs.org/@taquito/local-forging/-/local-forging-17.0.0.tgz" - integrity sha512-5VSbNGFb9WX9o/7mg49PjnwNeYMbf4JRZvrmxxWcffvfaNFnNW5X1iys+I7kHQA6HivhX73d6lVBiJkq2cQ3ag== - dependencies: - "@taquito/core" "^17.0.0" - "@taquito/utils" "^17.0.0" - bignumber.js "^9.1.0" - -"@taquito/michel-codec@^17.0.0": - version "17.0.0" - resolved "https://registry.npmjs.org/@taquito/michel-codec/-/michel-codec-17.0.0.tgz" - integrity sha512-0wD4r1bfBzoZ3QpxN7grD/gHt8RcNehQ7Ped4quKh4iGmNmd4ej+/LEvw/kX5082M4mGbUMC0UwH2Go+J6C1ow== - dependencies: - "@taquito/core" "^17.0.0" - -"@taquito/michelson-encoder@^17.0.0": - version "17.0.0" - resolved "https://registry.npmjs.org/@taquito/michelson-encoder/-/michelson-encoder-17.0.0.tgz" - integrity sha512-K2y8i7qjniWwjgI2illmBSiWO5B7zYBwTPS+CMw9OsxfMSaw5z8x4dMeBw5Bumc1p2SWo/jcU9U5qOnTVpxdeg== - dependencies: - "@taquito/rpc" "^17.0.0" - "@taquito/utils" "^17.0.0" - bignumber.js "^9.1.0" - fast-json-stable-stringify "^2.1.0" - -"@taquito/rpc@^17.0.0": - version "17.0.0" - resolved "https://registry.npmjs.org/@taquito/rpc/-/rpc-17.0.0.tgz" - integrity sha512-5btSJNvdfHdoftXqUWheVh5pxos6YlmRb7q1A2z9Y49ocjz7wqr4aCuXeRsG1iESZ69V2DUr33t51joidVsDXA== - dependencies: - "@taquito/core" "^17.0.0" - "@taquito/http-utils" "^17.0.0" - "@taquito/utils" "^17.0.0" - bignumber.js "^9.1.0" - -"@taquito/signer@^17.0.0": - version "17.0.0" - resolved "https://registry.npmjs.org/@taquito/signer/-/signer-17.0.0.tgz" - integrity sha512-tOtBup0sxAio+Z6fiOvRG0sVXBe6wZon4nSnb+zc8j2TF5xkmIdrof3HKWaDK4s3oPPsJRxXXpiz1fiKWUu6kw== - dependencies: - "@stablelib/blake2b" "^1.0.1" - "@stablelib/ed25519" "^1.0.3" - "@stablelib/hmac" "^1.0.1" - "@stablelib/nacl" "^1.0.4" - "@stablelib/pbkdf2" "^1.0.1" - "@stablelib/sha512" "^1.0.1" - "@taquito/taquito" "^17.0.0" - "@taquito/utils" "^17.0.0" - "@types/bn.js" "^5.1.1" - bip39 "3.0.4" - elliptic "^6.5.4" - pbkdf2 "^3.1.2" - typedarray-to-buffer "^4.0.0" - -"@taquito/taquito@*", "@taquito/taquito@^17.0.0": - version "17.0.0" - resolved "https://registry.npmjs.org/@taquito/taquito/-/taquito-17.0.0.tgz" - integrity sha512-yLrP6lbgO4k1a9PoTDZxIasYmc3QxEJ4R59vgPPIlWQJfz0ZTBV9fPQNlwyTtRjjzgvX1gRN1VtpuddkcGjKrA== - dependencies: - "@taquito/core" "^17.0.0" - "@taquito/http-utils" "^17.0.0" - "@taquito/local-forging" "^17.0.0" - "@taquito/michel-codec" "^17.0.0" - "@taquito/michelson-encoder" "^17.0.0" - "@taquito/rpc" "^17.0.0" - "@taquito/utils" "^17.0.0" - bignumber.js "^9.1.0" - rxjs "^6.6.3" - -"@taquito/tezbridge-signer@^14.2.0": - version "14.2.0" - resolved "https://registry.npmjs.org/@taquito/tezbridge-signer/-/tezbridge-signer-14.2.0.tgz" - integrity sha512-v33AUqEpRzet5Flf8n6/HYYkxfE3cHALBKpCgcJVX3zQHN8UCfvLWV/DcEFScjEGkIVHORllzNszLNl+kooglQ== - dependencies: - "@taquito/utils" "*" - typedarray-to-buffer "^4.0.0" - -"@taquito/tezbridge-wallet@^14.2.0": - version "14.2.0" - resolved "https://registry.npmjs.org/@taquito/tezbridge-wallet/-/tezbridge-wallet-14.2.0.tgz" - integrity sha512-7Lf+bPGkD/dZ/rlxxXCvQK43ObdyzFJGB0NxIgd0/f5rdoUzNeGtAZt5ODUuew8fSSN/PCK1Td4cW5JKzMUkiw== - dependencies: - "@taquito/taquito" "*" - -"@taquito/tzip12@^17.0.0": - version "17.0.0" - resolved "https://registry.npmjs.org/@taquito/tzip12/-/tzip12-17.0.0.tgz" - integrity sha512-EC4EezXe8Egyc8XFAZK2oHfwHTCA18u1Pm66I9y+/ns3ebRh9Av+w1tuvfJTv1bbnMbztMfDrP0/p6cuSy7VIw== - dependencies: - "@taquito/michelson-encoder" "^17.0.0" - "@taquito/taquito" "^17.0.0" - "@taquito/tzip16" "^17.0.0" - -"@taquito/tzip16@^17.0.0": - version "17.0.0" - resolved "https://registry.npmjs.org/@taquito/tzip16/-/tzip16-17.0.0.tgz" - integrity sha512-lDp+I8h4wIhLbuhRiMjWdcA/fKPpomAzfqJVQIwsb9fBI0ty6JpWRdPbciPASJ8B+xc8dHmJQYcFUIr9ErcqUw== - dependencies: - "@taquito/http-utils" "^17.0.0" - "@taquito/michelson-encoder" "^17.0.0" - "@taquito/rpc" "^17.0.0" - "@taquito/taquito" "^17.0.0" - "@taquito/utils" "^17.0.0" - bignumber.js "^9.1.0" - crypto-js "^4.1.1" - -"@taquito/utils@*": - version "16.2.0" - resolved "https://registry.npmjs.org/@taquito/utils/-/utils-16.2.0.tgz" - integrity sha512-Oa9oV0wwBHpgcVHTfINwXGcUlS1EVjCyBR9ntTVvYu6AqdktdS3N+6PPX+MaMt8eXT2bnEfXPWJKjA9I+yYljA== - dependencies: - "@stablelib/blake2b" "^1.0.1" - "@stablelib/ed25519" "^1.0.3" - "@taquito/core" "^16.2.0" - "@types/bs58check" "^2.1.0" - bignumber.js "^9.1.0" - blakejs "^1.2.1" - bs58check "^2.1.2" - buffer "^6.0.3" - elliptic "^6.5.4" - typedarray-to-buffer "^4.0.0" - -"@taquito/utils@^17.0.0": - version "17.0.0" - resolved "https://registry.npmjs.org/@taquito/utils/-/utils-17.0.0.tgz" - integrity sha512-/Bg4UoQenriINVK727OpK0AWe1x1SFSdiRZD3cGMMu2fXaFQdG2Hx031bf46GN+Tqk/PuDchjA83UfQk05qBXQ== - dependencies: - "@stablelib/blake2b" "^1.0.1" - "@stablelib/ed25519" "^1.0.3" - "@taquito/core" "^17.0.0" - "@types/bs58check" "^2.1.0" - bignumber.js "^9.1.0" - blakejs "^1.2.1" - bs58check "^2.1.2" - buffer "^6.0.3" - elliptic "^6.5.4" - typedarray-to-buffer "^4.0.0" - -"@tootallnate/once@1": - version "1.1.2" - resolved "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz" - integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== - -"@trysound/sax@0.2.0": - version "0.2.0" - resolved "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz" - integrity sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA== - -"@tsconfig/node10@^1.0.7": - version "1.0.9" - resolved "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz" - integrity sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA== - -"@tsconfig/node12@^1.0.7": - version "1.0.11" - resolved "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz" - integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== - -"@tsconfig/node14@^1.0.0": - version "1.0.3" - resolved "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz" - integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== - -"@tsconfig/node16@^1.0.2": - version "1.0.4" - resolved "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz" - integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== - -"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14": - version "7.20.1" - resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz" - integrity sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw== - dependencies: - "@babel/parser" "^7.20.7" - "@babel/types" "^7.20.7" - "@types/babel__generator" "*" - "@types/babel__template" "*" - "@types/babel__traverse" "*" - -"@types/babel__generator@*": - version "7.6.4" - resolved "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz" - integrity sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg== - dependencies: - "@babel/types" "^7.0.0" - -"@types/babel__template@*": - version "7.4.1" - resolved "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz" - integrity sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g== - dependencies: - "@babel/parser" "^7.1.0" - "@babel/types" "^7.0.0" - -"@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": - version "7.20.0" - resolved "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.0.tgz" - integrity sha512-TBOjqAGf0hmaqRwpii5LLkJLg7c6OMm4nHLmpsUxwk9bBHtoTC6dAHdVWdGv4TBxj2CZOZY8Xfq8WmfoVi7n4Q== - dependencies: - "@babel/types" "^7.20.7" - -"@types/bn.js@^5.1.1": - version "5.1.1" - resolved "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz" - integrity sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g== - dependencies: - "@types/node" "*" - -"@types/body-parser@*": - version "1.19.2" - resolved "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz" - integrity sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g== - dependencies: - "@types/connect" "*" - "@types/node" "*" - -"@types/bonjour@^3.5.9": - version "3.5.10" - resolved "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz" - integrity sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw== - dependencies: - "@types/node" "*" - -"@types/bs58check@^2.1.0": - version "2.1.0" - resolved "https://registry.npmjs.org/@types/bs58check/-/bs58check-2.1.0.tgz" - integrity sha512-OxsysnJQh82vy9DRbOcw9m2j/WiyqZLn0YBhKxdQ+aCwoHj+tWzyCgpwAkr79IfDXZKxc6h7k89T9pwS78CqTQ== - dependencies: - "@types/node" "*" - -"@types/chrome@0.0.163": - version "0.0.163" - resolved "https://registry.npmjs.org/@types/chrome/-/chrome-0.0.163.tgz" - integrity sha512-g+3E2tg/ukFsEgH+tB3a/b+J1VSvq/8gh2Jwih9eq+T3Idrz7ngj97u+/ya58Bfei2TQtPlRivj1FsCaSnukDA== - dependencies: - "@types/filesystem" "*" - "@types/har-format" "*" - -"@types/connect-history-api-fallback@^1.3.5": - version "1.5.0" - resolved "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz" - integrity sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig== - dependencies: - "@types/express-serve-static-core" "*" - "@types/node" "*" - -"@types/connect-timeout@^0.0.39": - version "0.0.39" - resolved "https://registry.yarnpkg.com/@types/connect-timeout/-/connect-timeout-0.0.39.tgz#8b6800599808688ae74d1352e702a24d2cca4ee1" - integrity sha512-PHUX9yixjm4qjQ27Uz+F5cyG9Fio9iY7e6eWHvNT0wbA8eu9JaDqxRRiXn5uYnd09zx1fM+wEHnuBHMm9gwOuQ== - dependencies: - "@types/express" "*" - -"@types/connect@*": - version "3.4.35" - resolved "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz" - integrity sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ== - dependencies: - "@types/node" "*" - -"@types/cors@^2.8.17": - version "2.8.17" - resolved "https://registry.yarnpkg.com/@types/cors/-/cors-2.8.17.tgz#5d718a5e494a8166f569d986794e49c48b216b2b" - integrity sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA== - dependencies: - "@types/node" "*" - -"@types/debug@^4.0.0": - version "4.1.8" - resolved "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz" - integrity sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ== - dependencies: - "@types/ms" "*" - -"@types/domutils@*": - version "1.7.4" - resolved "https://registry.npmjs.org/@types/domutils/-/domutils-1.7.4.tgz" - integrity sha512-w542nRQ0vpXQjLYP52LKqrugQtUq580dEDiDIyZ6IBmV8a3LXjGVNxfj/jUQxS0kDsbZAWsSxQOcTfVX3HRdwg== - dependencies: - domhandler "^2.4.0" - -"@types/eslint-scope@^3.7.3": - version "3.7.4" - resolved "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz" - integrity sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA== - dependencies: - "@types/eslint" "*" - "@types/estree" "*" - -"@types/eslint@*", "@types/eslint@^7.29.0 || ^8.4.1": - version "8.40.0" - resolved "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.0.tgz" - integrity sha512-nbq2mvc/tBrK9zQQuItvjJl++GTN5j06DaPtp3hZCpngmG6Q3xoyEmd0TwZI0gAy/G1X0zhGBbr2imsGFdFV0g== - dependencies: - "@types/estree" "*" - "@types/json-schema" "*" - -"@types/estree@*", "@types/estree@^1.0.0": - version "1.0.1" - resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz" - integrity sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA== - -"@types/estree@0.0.39": - version "0.0.39" - resolved "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz" - integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== - -"@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.33": - version "4.17.35" - resolved "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz" - integrity sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg== - dependencies: - "@types/node" "*" - "@types/qs" "*" - "@types/range-parser" "*" - "@types/send" "*" - -"@types/express@*", "@types/express@^4.17.13": - version "4.17.17" - resolved "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz" - integrity sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q== - dependencies: - "@types/body-parser" "*" - "@types/express-serve-static-core" "^4.17.33" - "@types/qs" "*" - "@types/serve-static" "*" - -"@types/filesystem@*": - version "0.0.32" - resolved "https://registry.npmjs.org/@types/filesystem/-/filesystem-0.0.32.tgz" - integrity sha512-Yuf4jR5YYMR2DVgwuCiP11s0xuVRyPKmz8vo6HBY3CGdeMj8af93CFZX+T82+VD1+UqHOxTq31lO7MI7lepBtQ== - dependencies: - "@types/filewriter" "*" - -"@types/filewriter@*": - version "0.0.29" - resolved "https://registry.npmjs.org/@types/filewriter/-/filewriter-0.0.29.tgz" - integrity sha512-BsPXH/irW0ht0Ji6iw/jJaK8Lj3FJemon2gvEqHKpCdDCeemHa+rI3WBGq5z7cDMZgoLjY40oninGxqk+8NzNQ== - -"@types/graceful-fs@^4.1.2": - version "4.1.6" - resolved "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz" - integrity sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw== - dependencies: - "@types/node" "*" - -"@types/har-format@*": - version "1.2.10" - resolved "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.10.tgz" - integrity sha512-o0J30wqycjF5miWDKYKKzzOU1ZTLuA42HZ4HE7/zqTOc/jTLdQ5NhYWvsRQo45Nfi1KHoRdNhteSI4BAxTF1Pg== - -"@types/hast@^2.0.0": - version "2.3.4" - resolved "https://registry.npmjs.org/@types/hast/-/hast-2.3.4.tgz" - integrity sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g== - dependencies: - "@types/unist" "*" - -"@types/history@^4.7.11": - version "4.7.11" - resolved "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz" - integrity sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA== - -"@types/html-minifier-terser@^6.0.0": - version "6.1.0" - resolved "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz" - integrity sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg== - -"@types/htmlparser2@*": - version "3.10.3" - resolved "https://registry.npmjs.org/@types/htmlparser2/-/htmlparser2-3.10.3.tgz" - integrity sha512-XA74aD+acytofnZic9n83Rxy/IZ259299bYPx5SEyx7uymPi79lRyKDkhJlsuCaPHB7rEoTEhRN4Vm2G5WmHHg== - dependencies: - "@types/domutils" "*" - "@types/node" "*" - domhandler "^2.4.0" - -"@types/http-proxy@^1.17.8": - version "1.17.11" - resolved "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.11.tgz" - integrity sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA== - dependencies: - "@types/node" "*" - -"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": - version "2.0.4" - resolved "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz" - integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== - -"@types/istanbul-lib-report@*": - version "3.0.0" - resolved "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz" - integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== - dependencies: - "@types/istanbul-lib-coverage" "*" - -"@types/istanbul-reports@^3.0.0": - version "3.0.1" - resolved "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz" - integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== - dependencies: - "@types/istanbul-lib-report" "*" - -"@types/jest@^26.0.21": - version "26.0.24" - resolved "https://registry.npmjs.org/@types/jest/-/jest-26.0.24.tgz" - integrity sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w== - dependencies: - jest-diff "^26.0.0" - pretty-format "^26.0.0" - -"@types/json-schema@*", "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.7", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": - version "7.0.12" - resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz" - integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA== - -"@types/json5@^0.0.29": - version "0.0.29" - resolved "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz" - integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== - -"@types/lodash@^4.14.175": - version "4.14.195" - resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.195.tgz" - integrity sha512-Hwx9EUgdwf2GLarOjQp5ZH8ZmblzcbTBC2wtQWNKARBSxM9ezRIAUpeDTgoQRAFB0+8CNWXVA9+MaSOzOF3nPg== - -"@types/mdast@^3.0.0": - version "3.0.11" - resolved "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.11.tgz" - integrity sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw== - dependencies: - "@types/unist" "*" - -"@types/mime@*": - version "3.0.1" - resolved "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz" - integrity sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA== - -"@types/mime@^1": - version "1.3.2" - resolved "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz" - integrity sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw== - -"@types/mixpanel-browser@^2.35.7": - version "2.38.1" - resolved "https://registry.npmjs.org/@types/mixpanel-browser/-/mixpanel-browser-2.38.1.tgz" - integrity sha512-XzQbwgiOPsFXUQnjz3vSwcwrvJDbQ35bCiwa/1VXGrHvU1ti9+eqO1GY91DShzkEzKkkEEkxfNshS5dbBZqd7w== - -"@types/ms@*": - version "0.7.31" - resolved "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz" - integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA== - -"@types/node@*", "@types/node@^14.14.35": - version "14.18.48" - resolved "https://registry.npmjs.org/@types/node/-/node-14.18.48.tgz" - integrity sha512-iL0PIMwejpmuVHgfibHpfDwOdsbmB50wr21X71VnF5d7SsBF7WK+ZvP/SCcFm7Iwb9iiYSap9rlrdhToNAWdxg== - -"@types/node@11.11.6": - version "11.11.6" - resolved "https://registry.npmjs.org/@types/node/-/node-11.11.6.tgz" - integrity sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ== - -"@types/parse-json@^4.0.0": - version "4.0.0" - resolved "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz" - integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== - -"@types/parse5@^6.0.0": - version "6.0.3" - resolved "https://registry.npmjs.org/@types/parse5/-/parse5-6.0.3.tgz" - integrity sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g== - -"@types/prettier@^2.1.5": - version "2.7.3" - resolved "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz" - integrity sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA== - -"@types/prismjs@^1.26.0": - version "1.26.0" - resolved "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.26.0.tgz" - integrity sha512-ZTaqn/qSqUuAq1YwvOFQfVW1AR/oQJlLSZVustdjwI+GZ8kr0MSHBj0tsXPW1EqHubx50gtBEjbPGsdZwQwCjQ== - -"@types/prop-types@*", "@types/prop-types@^15.0.0", "@types/prop-types@^15.7.5": - version "15.7.5" - resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz" - integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w== - -"@types/q@^1.5.1": - version "1.5.5" - resolved "https://registry.npmjs.org/@types/q/-/q-1.5.5.tgz" - integrity sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ== - -"@types/qs@*": - version "6.9.7" - resolved "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz" - integrity sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw== - -"@types/range-parser@*": - version "1.2.4" - resolved "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz" - integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw== - -"@types/react-dom@^17.0.2": - version "17.0.20" - resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.20.tgz" - integrity sha512-4pzIjSxDueZZ90F52mU3aPoogkHIoSIDG+oQ+wQK7Cy2B9S+MvOqY0uEA/qawKz381qrEDkvpwyt8Bm31I8sbA== - dependencies: - "@types/react" "^17" - -"@types/react-html-parser@^2.0.2": - version "2.0.2" - resolved "https://registry.npmjs.org/@types/react-html-parser/-/react-html-parser-2.0.2.tgz" - integrity sha512-avS2QzBMCUTGO2+gi3rWG6WreuU8zhf4b5CbS11itYlvLbwt5wmxBqQN4/f2z/JR/6Kvdt8ohAxhztb8XQHdPQ== - dependencies: - "@types/htmlparser2" "*" - "@types/react" "*" - -"@types/react-is@^18.2.0": - version "18.2.0" - resolved "https://registry.npmjs.org/@types/react-is/-/react-is-18.2.0.tgz" - integrity sha512-1vz2yObaQkLL7YFe/pme2cpvDsCwI1WXIfL+5eLz0MI9gFG24Re16RzUsI8t9XZn9ZWvgLNDrJBmrqXJO7GNQQ== - dependencies: - "@types/react" "*" - -"@types/react-router-dom@^5.1.6", "@types/react-router-dom@^5.3.0": - version "5.3.3" - resolved "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.3.tgz" - integrity sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw== - dependencies: - "@types/history" "^4.7.11" - "@types/react" "*" - "@types/react-router" "*" - -"@types/react-router-hash-link@^2.4.5": - version "2.4.6" - resolved "https://registry.npmjs.org/@types/react-router-hash-link/-/react-router-hash-link-2.4.6.tgz" - integrity sha512-JOV4Q1N60tJJUPisS/u1jiXn8c4jX7ThQf8XavzZYIWOIv0RP17nbyI9YgEZh1r3APXpP9ZkU1ytrlv+1+8jcw== - dependencies: - "@types/history" "^4.7.11" - "@types/react" "*" - "@types/react-router-dom" "^5.3.0" - -"@types/react-router@*": - version "5.1.20" - resolved "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz" - integrity sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q== - dependencies: - "@types/history" "^4.7.11" - "@types/react" "*" - -"@types/react-transition-group@^4.2.0", "@types/react-transition-group@^4.4.5", "@types/react-transition-group@^4.4.6": - version "4.4.6" - resolved "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.6.tgz" - integrity sha512-VnCdSxfcm08KjsJVQcfBmhEQAPnLB8G08hAxn39azX1qYBQ/5RVQuoHuKIcfKOdncuaUvEpFKFzEvbtIMsfVew== - dependencies: - "@types/react" "*" - -"@types/react@*", "@types/react@^17", "@types/react@~17.0.3": - version "17.0.62" - resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.62.tgz#2efe8ddf8533500ec44b1334dd1a97caa2f860e3" - integrity sha512-eANCyz9DG8p/Vdhr0ZKST8JV12PhH2ACCDYlFw6DIO+D+ca+uP4jtEDEpVqXZrh/uZdXQGwk7whJa3ah5DtyLw== - dependencies: - "@types/prop-types" "*" - "@types/scheduler" "*" - csstype "^3.0.2" - -"@types/react@^17.0.3": - version "17.0.60" - resolved "https://registry.npmjs.org/@types/react/-/react-17.0.60.tgz" - integrity sha512-pCH7bqWIfzHs3D+PDs3O/COCQJka+Kcw3RnO9rFA2zalqoXg7cNjJDh6mZ7oRtY1wmY4LVwDdAbA1F7Z8tv3BQ== - dependencies: - "@types/prop-types" "*" - "@types/scheduler" "*" - csstype "^3.0.2" - -"@types/resolve@1.17.1": - version "1.17.1" - resolved "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz" - integrity sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw== - dependencies: - "@types/node" "*" - -"@types/retry@0.12.0": - version "0.12.0" - resolved "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz" - integrity sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA== - -"@types/scheduler@*": - version "0.16.3" - resolved "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz" - integrity sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ== - -"@types/semver@^7.3.12": - version "7.5.0" - resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz" - integrity sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw== - -"@types/send@*": - version "0.17.1" - resolved "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz" - integrity sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q== - dependencies: - "@types/mime" "^1" - "@types/node" "*" - -"@types/serve-index@^1.9.1": - version "1.9.1" - resolved "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz" - integrity sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg== - dependencies: - "@types/express" "*" - -"@types/serve-static@*", "@types/serve-static@^1.13.10": - version "1.15.1" - resolved "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz" - integrity sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ== - dependencies: - "@types/mime" "*" - "@types/node" "*" - -"@types/sockjs@^0.3.33": - version "0.3.33" - resolved "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz" - integrity sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw== - dependencies: - "@types/node" "*" - -"@types/stack-utils@^2.0.0": - version "2.0.1" - resolved "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz" - integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== - -"@types/trusted-types@^2.0.2": - version "2.0.3" - resolved "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.3.tgz" - integrity sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g== - -"@types/unist@*", "@types/unist@^2.0.0": - version "2.0.6" - resolved "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz" - integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ== - -"@types/warning@^3.0.0": - version "3.0.0" - resolved "https://registry.npmjs.org/@types/warning/-/warning-3.0.0.tgz" - integrity sha512-t/Tvs5qR47OLOr+4E9ckN8AmP2Tf16gWq+/qA4iUGS/OOyHVO8wv2vjJuX8SNOUTJyWb+2t7wJm6cXILFnOROA== - -"@types/ws@^8.5.1": - version "8.5.4" - resolved "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz" - integrity sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg== - dependencies: - "@types/node" "*" - -"@types/yargs-parser@*": - version "21.0.0" - resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz" - integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== - -"@types/yargs@^15.0.0": - version "15.0.15" - resolved "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.15.tgz" - integrity sha512-IziEYMU9XoVj8hWg7k+UJrXALkGFjWJhn5QFEv9q4p+v40oZhSuC135M38st8XPjICL7Ey4TV64ferBGUoJhBg== - dependencies: - "@types/yargs-parser" "*" - -"@types/yargs@^16.0.0": - version "16.0.5" - resolved "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz" - integrity sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ== - dependencies: - "@types/yargs-parser" "*" - -"@types/yargs@^17.0.8": - version "17.0.24" - resolved "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz" - integrity sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw== - dependencies: - "@types/yargs-parser" "*" - -"@types/yup@^0.29.11": - version "0.29.14" - resolved "https://registry.npmjs.org/@types/yup/-/yup-0.29.14.tgz" - integrity sha512-Ynb/CjHhE/Xp/4bhHmQC4U1Ox+I2OpfRYF3dnNgQqn1cHa6LK3H1wJMNPT02tSVZA6FYuXE2ITORfbnb6zBCSA== - -"@typescript-eslint/eslint-plugin@^4.18.0": - version "4.33.0" - resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.33.0.tgz" - integrity sha512-aINiAxGVdOl1eJyVjaWn/YcVAq4Gi/Yo35qHGCnqbWVz61g39D0h23veY/MA0rFFGfxK7TySg2uwDeNv+JgVpg== - dependencies: - "@typescript-eslint/experimental-utils" "4.33.0" - "@typescript-eslint/scope-manager" "4.33.0" - debug "^4.3.1" - functional-red-black-tree "^1.0.1" - ignore "^5.1.8" - regexpp "^3.1.0" - semver "^7.3.5" - tsutils "^3.21.0" - -"@typescript-eslint/eslint-plugin@^5.5.0": - version "5.59.8" - resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.8.tgz" - integrity sha512-JDMOmhXteJ4WVKOiHXGCoB96ADWg9q7efPWHRViT/f09bA8XOMLAVHHju3l0MkZnG1izaWXYmgvQcUjTRcpShQ== - dependencies: - "@eslint-community/regexpp" "^4.4.0" - "@typescript-eslint/scope-manager" "5.59.8" - "@typescript-eslint/type-utils" "5.59.8" - "@typescript-eslint/utils" "5.59.8" - debug "^4.3.4" - grapheme-splitter "^1.0.4" - ignore "^5.2.0" - natural-compare-lite "^1.4.0" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/experimental-utils@4.33.0": - version "4.33.0" - resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.33.0.tgz" - integrity sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q== - dependencies: - "@types/json-schema" "^7.0.7" - "@typescript-eslint/scope-manager" "4.33.0" - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/typescript-estree" "4.33.0" - eslint-scope "^5.1.1" - eslint-utils "^3.0.0" - -"@typescript-eslint/experimental-utils@^5.0.0": - version "5.59.8" - resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.59.8.tgz" - integrity sha512-jAf+hihtd0G2RLB9x796+3i8D0L5T5xjftuPpJ82RLsPNHdzGXmbZNNftQ558h90ogc45DD8/W3OrxmdSO5Nng== - dependencies: - "@typescript-eslint/utils" "5.59.8" - -"@typescript-eslint/parser@^4.18.0": - version "4.33.0" - resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.33.0.tgz" - integrity sha512-ZohdsbXadjGBSK0/r+d87X0SBmKzOq4/S5nzK6SBgJspFo9/CUDJ7hjayuze+JK7CZQLDMroqytp7pOcFKTxZA== - dependencies: - "@typescript-eslint/scope-manager" "4.33.0" - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/typescript-estree" "4.33.0" - debug "^4.3.1" - -"@typescript-eslint/parser@^5.5.0": - version "5.59.8" - resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.8.tgz" - integrity sha512-AnR19RjJcpjoeGojmwZtCwBX/RidqDZtzcbG3xHrmz0aHHoOcbWnpDllenRDmDvsV0RQ6+tbb09/kyc+UT9Orw== - dependencies: - "@typescript-eslint/scope-manager" "5.59.8" - "@typescript-eslint/types" "5.59.8" - "@typescript-eslint/typescript-estree" "5.59.8" - debug "^4.3.4" - -"@typescript-eslint/scope-manager@4.33.0": - version "4.33.0" - resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.33.0.tgz" - integrity sha512-5IfJHpgTsTZuONKbODctL4kKuQje/bzBRkwHE8UOZ4f89Zeddg+EGZs8PD8NcN4LdM3ygHWYB3ukPAYjvl/qbQ== - dependencies: - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/visitor-keys" "4.33.0" - -"@typescript-eslint/scope-manager@5.59.8": - version "5.59.8" - resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.8.tgz" - integrity sha512-/w08ndCYI8gxGf+9zKf1vtx/16y8MHrZs5/tnjHhMLNSixuNcJavSX4wAiPf4aS5x41Es9YPCn44MIe4cxIlig== - dependencies: - "@typescript-eslint/types" "5.59.8" - "@typescript-eslint/visitor-keys" "5.59.8" - -"@typescript-eslint/type-utils@5.59.8": - version "5.59.8" - resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.8.tgz" - integrity sha512-+5M518uEIHFBy3FnyqZUF3BMP+AXnYn4oyH8RF012+e7/msMY98FhGL5SrN29NQ9xDgvqCgYnsOiKp1VjZ/fpA== - dependencies: - "@typescript-eslint/typescript-estree" "5.59.8" - "@typescript-eslint/utils" "5.59.8" - debug "^4.3.4" - tsutils "^3.21.0" - -"@typescript-eslint/types@4.33.0": - version "4.33.0" - resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.33.0.tgz" - integrity sha512-zKp7CjQzLQImXEpLt2BUw1tvOMPfNoTAfb8l51evhYbOEEzdWyQNmHWWGPR6hwKJDAi+1VXSBmnhL9kyVTTOuQ== - -"@typescript-eslint/types@5.59.8": - version "5.59.8" - resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.8.tgz" - integrity sha512-+uWuOhBTj/L6awoWIg0BlWy0u9TyFpCHrAuQ5bNfxDaZ1Ppb3mx6tUigc74LHcbHpOHuOTOJrBoAnhdHdaea1w== - -"@typescript-eslint/typescript-estree@4.33.0": - version "4.33.0" - resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.33.0.tgz" - integrity sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA== - dependencies: - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/visitor-keys" "4.33.0" - debug "^4.3.1" - globby "^11.0.3" - is-glob "^4.0.1" - semver "^7.3.5" - tsutils "^3.21.0" - -"@typescript-eslint/typescript-estree@5.59.8": - version "5.59.8" - resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.8.tgz" - integrity sha512-Jy/lPSDJGNow14vYu6IrW790p7HIf/SOV1Bb6lZ7NUkLc2iB2Z9elESmsaUtLw8kVqogSbtLH9tut5GCX1RLDg== - dependencies: - "@typescript-eslint/types" "5.59.8" - "@typescript-eslint/visitor-keys" "5.59.8" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/utils@5.59.8", "@typescript-eslint/utils@^5.58.0": - version "5.59.8" - resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.8.tgz" - integrity sha512-Tr65630KysnNn9f9G7ROF3w1b5/7f6QVCJ+WK9nhIocWmx9F+TmCAcglF26Vm7z8KCTwoKcNEBZrhlklla3CKg== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@types/json-schema" "^7.0.9" - "@types/semver" "^7.3.12" - "@typescript-eslint/scope-manager" "5.59.8" - "@typescript-eslint/types" "5.59.8" - "@typescript-eslint/typescript-estree" "5.59.8" - eslint-scope "^5.1.1" - semver "^7.3.7" - -"@typescript-eslint/visitor-keys@4.33.0": - version "4.33.0" - resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.33.0.tgz" - integrity sha512-uqi/2aSz9g2ftcHWf8uLPJA70rUv6yuMW5Bohw+bwcuzaxQIHaKFZCKGoGXIrc9vkTJ3+0txM73K0Hq3d5wgIg== - dependencies: - "@typescript-eslint/types" "4.33.0" - eslint-visitor-keys "^2.0.0" - -"@typescript-eslint/visitor-keys@5.59.8": - version "5.59.8" - resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.8.tgz" - integrity sha512-pJhi2ms0x0xgloT7xYabil3SGGlojNNKjK/q6dB3Ey0uJLMjK2UDGJvHieiyJVW/7C3KI+Z4Q3pEHkm4ejA+xQ== - dependencies: - "@typescript-eslint/types" "5.59.8" - eslint-visitor-keys "^3.3.0" - -"@walletconnect/core@2.7.0": - version "2.7.0" - resolved "https://registry.npmjs.org/@walletconnect/core/-/core-2.7.0.tgz" - integrity sha512-xUeFPpElybgn1a+lknqtHleei4VyuV/4qWgB1nP8qQUAO6a5pNsioODrnB2VAPdUHJYBdx2dCt2maRk6g53IPQ== - dependencies: - "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-provider" "^1.0.12" - "@walletconnect/jsonrpc-utils" "^1.0.7" - "@walletconnect/jsonrpc-ws-connection" "^1.0.11" - "@walletconnect/keyvaluestorage" "^1.0.2" - "@walletconnect/logger" "^2.0.1" - "@walletconnect/relay-api" "^1.0.9" - "@walletconnect/relay-auth" "^1.0.4" - "@walletconnect/safe-json" "^1.0.2" - "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.7.0" - "@walletconnect/utils" "2.7.0" - events "^3.3.0" - lodash.isequal "4.5.0" - uint8arrays "^3.1.0" - -"@walletconnect/environment@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@walletconnect/environment/-/environment-1.0.1.tgz" - integrity sha512-T426LLZtHj8e8rYnKfzsw1aG6+M0BT1ZxayMdv/p8yM0MU+eJDISqNY3/bccxRr4LrF9csq02Rhqt08Ibl0VRg== - dependencies: - tslib "1.14.1" - -"@walletconnect/events@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@walletconnect/events/-/events-1.0.1.tgz" - integrity sha512-NPTqaoi0oPBVNuLv7qPaJazmGHs5JGyO8eEAk5VGKmJzDR7AHzD4k6ilox5kxk1iwiOnFopBOOMLs86Oa76HpQ== - dependencies: - keyvaluestorage-interface "^1.0.0" - tslib "1.14.1" - -"@walletconnect/heartbeat@1.2.1": - version "1.2.1" - resolved "https://registry.npmjs.org/@walletconnect/heartbeat/-/heartbeat-1.2.1.tgz" - integrity sha512-yVzws616xsDLJxuG/28FqtZ5rzrTA4gUjdEMTbWB5Y8V1XHRmqq4efAxCw5ie7WjbXFSUyBHaWlMR+2/CpQC5Q== - dependencies: - "@walletconnect/events" "^1.0.1" - "@walletconnect/time" "^1.0.2" - tslib "1.14.1" - -"@walletconnect/jsonrpc-provider@^1.0.12": - version "1.0.13" - resolved "https://registry.npmjs.org/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.13.tgz" - integrity sha512-K73EpThqHnSR26gOyNEL+acEex3P7VWZe6KE12ZwKzAt2H4e5gldZHbjsu2QR9cLeJ8AXuO7kEMOIcRv1QEc7g== - dependencies: - "@walletconnect/jsonrpc-utils" "^1.0.8" - "@walletconnect/safe-json" "^1.0.2" - tslib "1.14.1" - -"@walletconnect/jsonrpc-types@^1.0.2", "@walletconnect/jsonrpc-types@^1.0.3": - version "1.0.3" - resolved "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz" - integrity sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw== - dependencies: - keyvaluestorage-interface "^1.0.0" - tslib "1.14.1" - -"@walletconnect/jsonrpc-utils@^1.0.6", "@walletconnect/jsonrpc-utils@^1.0.7", "@walletconnect/jsonrpc-utils@^1.0.8": - version "1.0.8" - resolved "https://registry.npmjs.org/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.8.tgz" - integrity sha512-vdeb03bD8VzJUL6ZtzRYsFMq1eZQcM3EAzT0a3st59dyLfJ0wq+tKMpmGH7HlB7waD858UWgfIcudbPFsbzVdw== - dependencies: - "@walletconnect/environment" "^1.0.1" - "@walletconnect/jsonrpc-types" "^1.0.3" - tslib "1.14.1" - -"@walletconnect/jsonrpc-ws-connection@^1.0.11": - version "1.0.12" - resolved "https://registry.npmjs.org/@walletconnect/jsonrpc-ws-connection/-/jsonrpc-ws-connection-1.0.12.tgz" - integrity sha512-HAcadga3Qjt1Cqy+qXEW6zjaCs8uJGdGQrqltzl3OjiK4epGZRdvSzTe63P+t/3z+D2wG+ffEPn0GVcDozmN1w== - dependencies: - "@walletconnect/jsonrpc-utils" "^1.0.6" - "@walletconnect/safe-json" "^1.0.2" - events "^3.3.0" - tslib "1.14.1" - ws "^7.5.1" - -"@walletconnect/keyvaluestorage@^1.0.2": - version "1.0.2" - resolved "https://registry.npmjs.org/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.0.2.tgz" - integrity sha512-U/nNG+VLWoPFdwwKx0oliT4ziKQCEoQ27L5Hhw8YOFGA2Po9A9pULUYNWhDgHkrb0gYDNt//X7wABcEWWBd3FQ== - dependencies: - safe-json-utils "^1.1.1" - tslib "1.14.1" - -"@walletconnect/logger@^2.0.1": - version "2.0.1" - resolved "https://registry.npmjs.org/@walletconnect/logger/-/logger-2.0.1.tgz" - integrity sha512-SsTKdsgWm+oDTBeNE/zHxxr5eJfZmE9/5yp/Ku+zJtcTAjELb3DXueWkDXmE9h8uHIbJzIb5wj5lPdzyrjT6hQ== - dependencies: - pino "7.11.0" - tslib "1.14.1" - -"@walletconnect/relay-api@^1.0.9": - version "1.0.9" - resolved "https://registry.npmjs.org/@walletconnect/relay-api/-/relay-api-1.0.9.tgz" - integrity sha512-Q3+rylJOqRkO1D9Su0DPE3mmznbAalYapJ9qmzDgK28mYF9alcP3UwG/og5V7l7CFOqzCLi7B8BvcBUrpDj0Rg== - dependencies: - "@walletconnect/jsonrpc-types" "^1.0.2" - tslib "1.14.1" - -"@walletconnect/relay-auth@^1.0.4": - version "1.0.4" - resolved "https://registry.npmjs.org/@walletconnect/relay-auth/-/relay-auth-1.0.4.tgz" - integrity sha512-kKJcS6+WxYq5kshpPaxGHdwf5y98ZwbfuS4EE/NkQzqrDFm5Cj+dP8LofzWvjrrLkZq7Afy7WrQMXdLy8Sx7HQ== - dependencies: - "@stablelib/ed25519" "^1.0.2" - "@stablelib/random" "^1.0.1" - "@walletconnect/safe-json" "^1.0.1" - "@walletconnect/time" "^1.0.2" - tslib "1.14.1" - uint8arrays "^3.0.0" - -"@walletconnect/safe-json@^1.0.1", "@walletconnect/safe-json@^1.0.2": - version "1.0.2" - resolved "https://registry.npmjs.org/@walletconnect/safe-json/-/safe-json-1.0.2.tgz" - integrity sha512-Ogb7I27kZ3LPC3ibn8ldyUr5544t3/STow9+lzz7Sfo808YD7SBWk7SAsdBFlYgP2zDRy2hS3sKRcuSRM0OTmA== - dependencies: - tslib "1.14.1" - -"@walletconnect/sign-client@2.7.0": - version "2.7.0" - resolved "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.7.0.tgz" - integrity sha512-K99xa6GSFS04U+140yrIEi/VJJJ0Q1ov4jCaiqa9euILDKxlBsM7m5GR+9sq6oYyj18SluJY4CJTdeOXUJlarA== - dependencies: - "@walletconnect/core" "2.7.0" - "@walletconnect/events" "^1.0.1" - "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-utils" "^1.0.7" - "@walletconnect/logger" "^2.0.1" - "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.7.0" - "@walletconnect/utils" "2.7.0" - events "^3.3.0" - -"@walletconnect/time@^1.0.2": - version "1.0.2" - resolved "https://registry.npmjs.org/@walletconnect/time/-/time-1.0.2.tgz" - integrity sha512-uzdd9woDcJ1AaBZRhqy5rNC9laqWGErfc4dxA9a87mPdKOgWMD85mcFo9dIYIts/Jwocfwn07EC6EzclKubk/g== - dependencies: - tslib "1.14.1" - -"@walletconnect/types@2.7.0": - version "2.7.0" - resolved "https://registry.npmjs.org/@walletconnect/types/-/types-2.7.0.tgz" - integrity sha512-aMUDUtO79WSBtC/bDetE6aFwdgwJr0tJ8nC8gnAl5ELsrjygEKCn6M8Q+v6nP9svG9yf5Rds4cImxCT6BWwTyw== - dependencies: - "@walletconnect/events" "^1.0.1" - "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-types" "^1.0.2" - "@walletconnect/keyvaluestorage" "^1.0.2" - "@walletconnect/logger" "^2.0.1" - events "^3.3.0" - -"@walletconnect/utils@2.7.0": - version "2.7.0" - resolved "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.7.0.tgz" - integrity sha512-k32jrQeyJsNZPdmtmg85Y3QgaS5YfzYSPrAxRC2uUD1ts7rrI6P5GG2iXNs3AvWKOuCgsp/PqU8s7AC7CRUscw== - dependencies: - "@stablelib/chacha20poly1305" "1.0.1" - "@stablelib/hkdf" "1.0.1" - "@stablelib/random" "^1.0.2" - "@stablelib/sha256" "1.0.1" - "@stablelib/x25519" "^1.0.3" - "@walletconnect/jsonrpc-utils" "^1.0.7" - "@walletconnect/relay-api" "^1.0.9" - "@walletconnect/safe-json" "^1.0.2" - "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.7.0" - "@walletconnect/window-getters" "^1.0.1" - "@walletconnect/window-metadata" "^1.0.1" - detect-browser "5.3.0" - query-string "7.1.1" - uint8arrays "^3.1.0" - -"@walletconnect/window-getters@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@walletconnect/window-getters/-/window-getters-1.0.1.tgz" - integrity sha512-vHp+HqzGxORPAN8gY03qnbTMnhqIwjeRJNOMOAzePRg4xVEEE2WvYsI9G2NMjOknA8hnuYbU3/hwLcKbjhc8+Q== - dependencies: - tslib "1.14.1" - -"@walletconnect/window-metadata@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@walletconnect/window-metadata/-/window-metadata-1.0.1.tgz" - integrity sha512-9koTqyGrM2cqFRW517BPY/iEtUDx2r1+Pwwu5m7sJ7ka79wi3EyqhqcICk/yDmv6jAS1rjKgTKXlEhanYjijcA== - dependencies: - "@walletconnect/window-getters" "^1.0.1" - tslib "1.14.1" - -"@webassemblyjs/ast@1.11.6", "@webassemblyjs/ast@^1.11.5": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz" - integrity sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q== - dependencies: - "@webassemblyjs/helper-numbers" "1.11.6" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - -"@webassemblyjs/floating-point-hex-parser@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz" - integrity sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw== - -"@webassemblyjs/helper-api-error@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz" - integrity sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q== - -"@webassemblyjs/helper-buffer@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz" - integrity sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA== - -"@webassemblyjs/helper-numbers@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz" - integrity sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g== - dependencies: - "@webassemblyjs/floating-point-hex-parser" "1.11.6" - "@webassemblyjs/helper-api-error" "1.11.6" - "@xtuc/long" "4.2.2" - -"@webassemblyjs/helper-wasm-bytecode@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz" - integrity sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA== - -"@webassemblyjs/helper-wasm-section@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz" - integrity sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g== - dependencies: - "@webassemblyjs/ast" "1.11.6" - "@webassemblyjs/helper-buffer" "1.11.6" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - "@webassemblyjs/wasm-gen" "1.11.6" - -"@webassemblyjs/ieee754@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz" - integrity sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg== - dependencies: - "@xtuc/ieee754" "^1.2.0" - -"@webassemblyjs/leb128@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz" - integrity sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ== - dependencies: - "@xtuc/long" "4.2.2" - -"@webassemblyjs/utf8@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz" - integrity sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA== - -"@webassemblyjs/wasm-edit@^1.11.5": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz" - integrity sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw== - dependencies: - "@webassemblyjs/ast" "1.11.6" - "@webassemblyjs/helper-buffer" "1.11.6" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - "@webassemblyjs/helper-wasm-section" "1.11.6" - "@webassemblyjs/wasm-gen" "1.11.6" - "@webassemblyjs/wasm-opt" "1.11.6" - "@webassemblyjs/wasm-parser" "1.11.6" - "@webassemblyjs/wast-printer" "1.11.6" - -"@webassemblyjs/wasm-gen@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz" - integrity sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA== - dependencies: - "@webassemblyjs/ast" "1.11.6" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - "@webassemblyjs/ieee754" "1.11.6" - "@webassemblyjs/leb128" "1.11.6" - "@webassemblyjs/utf8" "1.11.6" - -"@webassemblyjs/wasm-opt@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz" - integrity sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g== - dependencies: - "@webassemblyjs/ast" "1.11.6" - "@webassemblyjs/helper-buffer" "1.11.6" - "@webassemblyjs/wasm-gen" "1.11.6" - "@webassemblyjs/wasm-parser" "1.11.6" - -"@webassemblyjs/wasm-parser@1.11.6", "@webassemblyjs/wasm-parser@^1.11.5": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz" - integrity sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ== - dependencies: - "@webassemblyjs/ast" "1.11.6" - "@webassemblyjs/helper-api-error" "1.11.6" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - "@webassemblyjs/ieee754" "1.11.6" - "@webassemblyjs/leb128" "1.11.6" - "@webassemblyjs/utf8" "1.11.6" - -"@webassemblyjs/wast-printer@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz" - integrity sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A== - dependencies: - "@webassemblyjs/ast" "1.11.6" - "@xtuc/long" "4.2.2" - -"@xstate/react@^1.2.0": - version "1.6.3" - resolved "https://registry.npmjs.org/@xstate/react/-/react-1.6.3.tgz" - integrity sha512-NCUReRHPGvvCvj2yLZUTfR0qVp6+apc8G83oXSjN4rl89ZjyujiKrTff55bze/HrsvCsP/sUJASf2n0nzMF1KQ== - dependencies: - use-isomorphic-layout-effect "^1.0.0" - use-subscription "^1.3.0" - -"@xtuc/ieee754@^1.2.0": - version "1.2.0" - resolved "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz" - integrity sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA== - -"@xtuc/long@4.2.2": - version "4.2.2" - resolved "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz" - integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== - -"@zeit/schemas@2.6.0": - version "2.6.0" - resolved "https://registry.npmjs.org/@zeit/schemas/-/schemas-2.6.0.tgz" - integrity sha512-uUrgZ8AxS+Lio0fZKAipJjAh415JyrOZowliZAzmnJSsf7piVL5w+G0+gFJ0KSu3QRhvui/7zuvpLz03YjXAhg== - -abab@^2.0.3, abab@^2.0.5: - version "2.0.6" - resolved "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz" - integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== - -abbrev@1: - version "1.1.1" - resolved "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz" - integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== - -abort-controller@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz" - integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== - dependencies: - event-target-shim "^5.0.0" - -accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.8: - version "1.3.8" - resolved "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz" - integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== - dependencies: - mime-types "~2.1.34" - negotiator "0.6.3" - -acorn-globals@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz" - integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== - dependencies: - acorn "^7.1.1" - acorn-walk "^7.1.1" - -acorn-import-assertions@^1.9.0: - version "1.9.0" - resolved "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz" - integrity sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA== - -acorn-jsx@^5.3.1, acorn-jsx@^5.3.2: - version "5.3.2" - resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - -acorn-walk@^7.1.1: - version "7.2.0" - resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz" - integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== - -acorn-walk@^8.1.1: - version "8.2.0" - resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz" - integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== - -acorn@^7.1.1, acorn@^7.4.0: - version "7.4.1" - resolved "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz" - integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== - -acorn@^8.2.4, acorn@^8.4.1, acorn@^8.7.1, acorn@^8.8.0, acorn@^8.8.2: - version "8.8.2" - resolved "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz" - integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== - -acorn@^8.9.0: - version "8.10.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.10.0.tgz#8be5b3907a67221a81ab23c7889c4c5526b62ec5" - integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== - -address@^1.0.1, address@^1.1.2: - version "1.2.2" - resolved "https://registry.npmjs.org/address/-/address-1.2.2.tgz" - integrity sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA== - -adjust-sourcemap-loader@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz" - integrity sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A== - dependencies: - loader-utils "^2.0.0" - regex-parser "^2.2.11" - -agent-base@6: - version "6.0.2" - resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== - dependencies: - debug "4" - -aggregate-error@^3.0.0: - version "3.1.0" - resolved "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz" - integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== - dependencies: - clean-stack "^2.0.0" - indent-string "^4.0.0" - -ajv-formats@^2.1.1: - version "2.1.1" - resolved "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz" - integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA== - dependencies: - ajv "^8.0.0" - -ajv-keywords@^3.4.1, ajv-keywords@^3.5.2: - version "3.5.2" - resolved "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz" - integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== - -ajv-keywords@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz" - integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw== - dependencies: - fast-deep-equal "^3.1.3" - -ajv@6.5.3: - version "6.5.3" - resolved "https://registry.npmjs.org/ajv/-/ajv-6.5.3.tgz" - integrity sha512-LqZ9wY+fx3UMiiPd741yB2pj3hhil+hQc8taf4o2QGRFpWgZ2V5C8HA165DY9sS3fJwsk7uT7ZlFEyC3Ig3lLg== - dependencies: - fast-deep-equal "^2.0.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ajv@^6.10.0, ajv@^6.12.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ajv@^8.0.0, ajv@^8.0.1, ajv@^8.6.0, ajv@^8.9.0: - version "8.12.0" - resolved "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz" - integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== - dependencies: - fast-deep-equal "^3.1.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - uri-js "^4.2.2" - -ansi-align@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz" - integrity sha512-TdlOggdA/zURfMYa7ABC66j+oqfMew58KpJMbUlH3bcZP1b+cBHIHDDn5uH9INsxrHBPjsqM0tDB4jPTF/vgJA== - dependencies: - string-width "^2.0.0" - -ansi-bgblack@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgblack/-/ansi-bgblack-0.1.1.tgz#a68ba5007887701b6aafbe3fa0dadfdfa8ee3ca2" - integrity sha512-tp8M/NCmSr6/skdteeo9UgJ2G1rG88X3ZVNZWXUxFw4Wh0PAGaAAWQS61sfBt/1QNcwMTY3EBKOMPujwioJLaw== - dependencies: - ansi-wrap "0.1.0" - -ansi-bgblue@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgblue/-/ansi-bgblue-0.1.1.tgz#67bdc04edc9b9b5278969da196dea3d75c8c3613" - integrity sha512-R8JmX2Xv3+ichUQE99oL+LvjsyK+CDWo/BtVb4QUz3hOfmf2bdEmiDot3fQcpn2WAHW3toSRdjSLm6bgtWRDlA== - dependencies: - ansi-wrap "0.1.0" - -ansi-bgcyan@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgcyan/-/ansi-bgcyan-0.1.1.tgz#58489425600bde9f5507068dd969ebfdb50fe768" - integrity sha512-6SByK9q2H978bmqzuzA5NPT1lRDXl3ODLz/DjC4URO5f/HqK7dnRKfoO/xQLx/makOz7zWIbRf6+Uf7bmaPSkQ== - dependencies: - ansi-wrap "0.1.0" - -ansi-bggreen@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bggreen/-/ansi-bggreen-0.1.1.tgz#4e3191248529943f4321e96bf131d1c13816af49" - integrity sha512-8TRtOKmIPOuxjpklrkhUbqD2NnVb4WZQuIjXrT+TGKFKzl7NrL7wuNvEap3leMt2kQaCngIN1ZzazSbJNzF+Aw== - dependencies: - ansi-wrap "0.1.0" - -ansi-bgmagenta@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgmagenta/-/ansi-bgmagenta-0.1.1.tgz#9b28432c076eaa999418672a3efbe19391c2c7a1" - integrity sha512-UZYhobiGAlV4NiwOlKAKbkCyxOl1PPZNvdIdl/Ce5by45vwiyNdBetwHk/AjIpo1Ji9z+eE29PUBAjjfVmz5SA== - dependencies: - ansi-wrap "0.1.0" - -ansi-bgred@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgred/-/ansi-bgred-0.1.1.tgz#a76f92838382ba43290a6c1778424f984d6f1041" - integrity sha512-BpPHMnYmRBhcjY5knRWKjQmPDPvYU7wrgBSW34xj7JCH9+a/SEIV7+oSYVOgMFopRIadOz9Qm4zIy+mEBvUOPA== - dependencies: - ansi-wrap "0.1.0" - -ansi-bgwhite@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgwhite/-/ansi-bgwhite-0.1.1.tgz#6504651377a58a6ececd0331994e480258e11ba8" - integrity sha512-KIF19t+HOYOorUnHTOhZpeZ3bJsjzStBG2hSGM0WZ8YQQe4c7lj9CtwnucscJDPrNwfdz6GBF+pFkVfvHBq6uw== - dependencies: - ansi-wrap "0.1.0" - -ansi-bgyellow@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bgyellow/-/ansi-bgyellow-0.1.1.tgz#c3fe2eb08cd476648029e6874d15a0b38f61d44f" - integrity sha512-WyRoOFSIvOeM7e7YdlSjfAV82Z6K1+VUVbygIQ7C/VGzWYuO/d30F0PG7oXeo4uSvSywR0ozixDQvtXJEorq4Q== - dependencies: - ansi-wrap "0.1.0" - -ansi-black@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-black/-/ansi-black-0.1.1.tgz#f6185e889360b2545a1ec50c0bf063fc43032453" - integrity sha512-hl7re02lWus7lFOUG6zexhoF5gssAfG5whyr/fOWK9hxNjUFLTjhbU/b4UHWOh2dbJu9/STSUv+80uWYzYkbTQ== - dependencies: - ansi-wrap "0.1.0" - -ansi-blue@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-blue/-/ansi-blue-0.1.1.tgz#15b804990e92fc9ca8c5476ce8f699777c21edbf" - integrity sha512-8Um59dYNDdQyoczlf49RgWLzYgC2H/28W3JAIyOAU/+WkMcfZmaznm+0i1ikrE0jME6Ypk9CJ9CY2+vxbPs7Fg== - dependencies: - ansi-wrap "0.1.0" - -ansi-bold@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-bold/-/ansi-bold-0.1.1.tgz#3e63950af5acc2ae2e670e6f67deb115d1a5f505" - integrity sha512-wWKwcViX1E28U6FohtWOP4sHFyArELHJ2p7+3BzbibqJiuISeskq6t7JnrLisUngMF5zMhgmXVw8Equjzz9OlA== - dependencies: - ansi-wrap "0.1.0" - -ansi-colors@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-0.2.0.tgz#72c31de2a0d9a2ccd0cac30cc9823eeb2f6434b5" - integrity sha512-ScRNUT0TovnYw6+Xo3iKh6G+VXDw2Ds7ZRnMIuKBgHY02DgvT2T2K22/tc/916Fi0W/5Z1RzDaHQwnp75hqdbA== - dependencies: - ansi-bgblack "^0.1.1" - ansi-bgblue "^0.1.1" - ansi-bgcyan "^0.1.1" - ansi-bggreen "^0.1.1" - ansi-bgmagenta "^0.1.1" - ansi-bgred "^0.1.1" - ansi-bgwhite "^0.1.1" - ansi-bgyellow "^0.1.1" - ansi-black "^0.1.1" - ansi-blue "^0.1.1" - ansi-bold "^0.1.1" - ansi-cyan "^0.1.1" - ansi-dim "^0.1.1" - ansi-gray "^0.1.1" - ansi-green "^0.1.1" - ansi-grey "^0.1.1" - ansi-hidden "^0.1.1" - ansi-inverse "^0.1.1" - ansi-italic "^0.1.1" - ansi-magenta "^0.1.1" - ansi-red "^0.1.1" - ansi-reset "^0.1.1" - ansi-strikethrough "^0.1.1" - ansi-underline "^0.1.1" - ansi-white "^0.1.1" - ansi-yellow "^0.1.1" - lazy-cache "^2.0.1" - -ansi-colors@^4.1.1: - version "4.1.3" - resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz" - integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== - -ansi-cyan@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-cyan/-/ansi-cyan-0.1.1.tgz#538ae528af8982f28ae30d86f2f17456d2609873" - integrity sha512-eCjan3AVo/SxZ0/MyIYRtkpxIu/H3xZN7URr1vXVrISxeyz8fUFz0FJziamK4sS8I+t35y4rHg1b2PklyBe/7A== - dependencies: - ansi-wrap "0.1.0" - -ansi-dim@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-dim/-/ansi-dim-0.1.1.tgz#40de4c603aa8086d8e7a86b8ff998d5c36eefd6c" - integrity sha512-zAfb1fokXsq4BoZBkL0eK+6MfFctbzX3R4UMcoWrL1n2WHewFKentTvOZv2P11u6P4NtW/V47hVjaN7fJiefOg== - dependencies: - ansi-wrap "0.1.0" - -ansi-escapes@^4.2.1, ansi-escapes@^4.3.0, ansi-escapes@^4.3.1: - version "4.3.2" - resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz" - integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== - dependencies: - type-fest "^0.21.3" - -ansi-gray@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-gray/-/ansi-gray-0.1.1.tgz#2962cf54ec9792c48510a3deb524436861ef7251" - integrity sha512-HrgGIZUl8h2EHuZaU9hTR/cU5nhKxpVE1V6kdGsQ8e4zirElJ5fvtfc8N7Q1oq1aatO275i8pUFUCpNWCAnVWw== - dependencies: - ansi-wrap "0.1.0" - -ansi-green@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-green/-/ansi-green-0.1.1.tgz#8a5d9a979e458d57c40e33580b37390b8e10d0f7" - integrity sha512-WJ70OI4jCaMy52vGa/ypFSKFb/TrYNPaQ2xco5nUwE0C5H8piume/uAZNNdXXiMQ6DbRmiE7l8oNBHu05ZKkrw== - dependencies: - ansi-wrap "0.1.0" - -ansi-grey@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-grey/-/ansi-grey-0.1.1.tgz#59d98b6ac2ba19f8a51798e9853fba78339a33c1" - integrity sha512-+J1nM4lC+whSvf3T4jsp1KR+C63lypb+VkkwtLQMc1Dlt+nOvdZpFT0wwFTYoSlSwCcLUAaOpHF6kPkYpSa24A== - dependencies: - ansi-wrap "0.1.0" - -ansi-hidden@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-hidden/-/ansi-hidden-0.1.1.tgz#ed6a4c498d2bb7cbb289dbf2a8d1dcc8567fae0f" - integrity sha512-8gB1bo9ym9qZ/Obvrse1flRsfp2RE+40B23DhQcKxY+GSeaOJblLnzBOxzvmLTWbi5jNON3as7wd9rC0fNK73Q== - dependencies: - ansi-wrap "0.1.0" - -ansi-html-community@^0.0.8: - version "0.0.8" - resolved "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz" - integrity sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw== - -ansi-inverse@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-inverse/-/ansi-inverse-0.1.1.tgz#b6af45826fe826bfb528a6c79885794355ccd269" - integrity sha512-Kq8Z0dBRhQhDMN/Rso1Nu9niwiTsRkJncfJZXiyj7ApbfJrGrrubHXqXI37feJZkYcIx6SlTBdNCeK0OQ6X6ag== - dependencies: - ansi-wrap "0.1.0" - -ansi-italic@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-italic/-/ansi-italic-0.1.1.tgz#104743463f625c142a036739cf85eda688986f23" - integrity sha512-jreCxifSAqbaBvcibeQxcwhQDbEj7gF69XnpA6x83qbECEBaRBD1epqskrmov1z4B+zzQuEdwbWxgzvhKa+PkA== - dependencies: - ansi-wrap "0.1.0" - -ansi-magenta@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-magenta/-/ansi-magenta-0.1.1.tgz#063b5ba16fb3f23e1cfda2b07c0a89de11e430ae" - integrity sha512-A1Giu+HRwyWuiXKyXPw2AhG1yWZjNHWO+5mpt+P+VWYkmGRpLPry0O5gmlJQEvpjNpl4RjFV7DJQ4iozWOmkbQ== - dependencies: - ansi-wrap "0.1.0" - -ansi-red@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-red/-/ansi-red-0.1.1.tgz#8c638f9d1080800a353c9c28c8a81ca4705d946c" - integrity sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow== - dependencies: - ansi-wrap "0.1.0" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - integrity sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA== - -ansi-regex@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz" - integrity sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw== - -ansi-regex@^5.0.0, ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-regex@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz" - integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== - -ansi-reset@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-reset/-/ansi-reset-0.1.1.tgz#e7e71292c3c7ddcd4d62ef4a6c7c05980911c3b7" - integrity sha512-n+D0qD3B+h/lP0dSwXX1SZMoXufdUVotLMwUuvXa50LtBAh3f+WV8b5nFMfLL/hgoPBUt+rG/pqqzF8krlZKcw== - dependencies: - ansi-wrap "0.1.0" - -ansi-strikethrough@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-strikethrough/-/ansi-strikethrough-0.1.1.tgz#d84877140b2cff07d1c93ebce69904f68885e568" - integrity sha512-gWkLPDvHH2pC9YEKqp8dIl0mg3sRglMPvioqGDIOXiwxjxUwIJ1gF86E2o4R5yLNh8IAkwHbaMtASkJfkQ2hIA== - dependencies: - ansi-wrap "0.1.0" - -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -ansi-styles@^4.0.0, ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -ansi-styles@^5.0.0: - version "5.2.0" - resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz" - integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== - -ansi-styles@^6.0.0: - version "6.2.1" - resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz" - integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== - -ansi-underline@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-underline/-/ansi-underline-0.1.1.tgz#dfc920f4c97b5977ea162df8ffb988308aaa71a4" - integrity sha512-D+Bzwio/0/a0Fu5vJzrIT6bFk43TW46vXfSvzysOTEHcXOAUJTVMHWDbELIzGU4AVxVw2rCTb7YyWS4my2cSKQ== - dependencies: - ansi-wrap "0.1.0" - -ansi-white@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-white/-/ansi-white-0.1.1.tgz#9c77b7c193c5ee992e6011d36ec4c921b4578944" - integrity sha512-DJHaF2SRzBb9wZBgqIJNjjTa7JUJTO98sHeTS1sDopyKKRopL1KpaJ20R6W2f/ZGras8bYyIZDtNwYOVXNgNFg== - dependencies: - ansi-wrap "0.1.0" - -ansi-wrap@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf" - integrity sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw== - -ansi-yellow@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ansi-yellow/-/ansi-yellow-0.1.1.tgz#cb9356f2f46c732f0e3199e6102955a77da83c1d" - integrity sha512-6E3D4BQLXHLl3c/NwirWVZ+BCkMq2qsYxdeAGGOijKrx09FaqU+HktFL6QwAwNvgJiMLnv6AQ2C1gFZx0h1CBg== - dependencies: - ansi-wrap "0.1.0" - -any-promise@^1.0.0: - version "1.3.0" - resolved "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz" - integrity sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A== - -anymatch@^3.0.3, anymatch@~3.1.2: - version "3.1.3" - resolved "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz" - integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -arch@^2.1.0: - version "2.2.0" - resolved "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz" - integrity sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ== - -arg@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/arg/-/arg-2.0.0.tgz" - integrity sha512-XxNTUzKnz1ctK3ZIcI2XUPlD96wbHP2nGqkPKpvk/HNRlPveYrXIVSTk9m3LcqOgDPg3B1nMvdV/K8wZd7PG4w== - -arg@^4.1.0: - version "4.1.3" - resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz" - integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== - -arg@^5.0.2: - version "5.0.2" - resolved "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz" - integrity sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg== - -argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz" - integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== - dependencies: - sprintf-js "~1.0.2" - -argparse@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz" - integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== - -aria-query@^5.1.3: - version "5.1.3" - resolved "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz" - integrity sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ== - dependencies: - deep-equal "^2.0.5" - -arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - -arr-swap@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/arr-swap/-/arr-swap-1.0.1.tgz#147590ed65fc815bc07fef0997c2e5823d643534" - integrity sha512-SxBKd/By8+AaREcv/ZhFqmapfpqK4kyaQkUHwmJjlczI5ZtuuT5gofKHlCrSJ4oR7zXezFhv+7zsnLEdg9uGgQ== - dependencies: - is-number "^3.0.0" - -array-buffer-byte-length@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz" - integrity sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A== - dependencies: - call-bind "^1.0.2" - is-array-buffer "^3.0.1" - -array-flatten@1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz" - integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== - -array-flatten@^2.1.2: - version "2.1.2" - resolved "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz" - integrity sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ== - -array-includes@^3.1.5, array-includes@^3.1.6: - version "3.1.6" - resolved "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz" - integrity sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - get-intrinsic "^1.1.3" - is-string "^1.0.7" - -array-union@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz" - integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== - -array.prototype.flat@^1.3.1: - version "1.3.1" - resolved "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz" - integrity sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - es-shim-unscopables "^1.0.0" - -array.prototype.flatmap@^1.3.1: - version "1.3.1" - resolved "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz" - integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - es-shim-unscopables "^1.0.0" - -array.prototype.reduce@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/array.prototype.reduce/-/array.prototype.reduce-1.0.5.tgz" - integrity sha512-kDdugMl7id9COE8R7MHF5jWk7Dqt/fs4Pv+JXoICnYwqpjjjbUurz6w5fT5IG6brLdJhv6/VoHB0H7oyIBXd+Q== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - es-array-method-boxes-properly "^1.0.0" - is-string "^1.0.7" - -array.prototype.tosorted@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz" - integrity sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - es-shim-unscopables "^1.0.0" - get-intrinsic "^1.1.3" - -asap@~2.0.6: - version "2.0.6" - resolved "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz" - integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== - -asn1.js@^5.2.0: - version "5.4.1" - resolved "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz" - integrity sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA== - dependencies: - bn.js "^4.0.0" - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - safer-buffer "^2.1.0" - -asn1@~0.2.3: - version "0.2.6" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.6.tgz#0d3a7bb6e64e02a90c0303b31f292868ea09a08d" - integrity sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ== - dependencies: - safer-buffer "~2.1.0" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== - -assert@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/assert/-/assert-2.0.0.tgz" - integrity sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A== - dependencies: - es6-object-assign "^1.1.0" - is-nan "^1.2.1" - object-is "^1.0.1" - util "^0.12.0" - -ast-types-flow@^0.0.7: - version "0.0.7" - resolved "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz" - integrity sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag== - -astral-regex@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz" - integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== - -async-limiter@~1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz" - integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== - -async@^3.2.3: - version "3.2.4" - resolved "https://registry.npmjs.org/async/-/async-3.2.4.tgz" - integrity sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ== - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" - integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== - -at-least-node@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz" - integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== - -atomic-sleep@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz" - integrity sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ== - -autoprefixer@^10.4.12, autoprefixer@^10.4.13: - version "10.4.14" - resolved "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz" - integrity sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ== - dependencies: - browserslist "^4.21.5" - caniuse-lite "^1.0.30001464" - fraction.js "^4.2.0" - normalize-range "^0.1.2" - picocolors "^1.0.0" - postcss-value-parser "^4.2.0" - -available-typed-arrays@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz" - integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw== - -aws-sign2@~0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" - integrity sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA== - -aws4@^1.8.0: - version "1.12.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.12.0.tgz#ce1c9d143389679e253b314241ea9aa5cec980d3" - integrity sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg== - -axe-core@^4.6.2: - version "4.7.2" - resolved "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz" - integrity sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g== - -axios@0.24.0: - version "0.24.0" - resolved "https://registry.npmjs.org/axios/-/axios-0.24.0.tgz" - integrity sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA== - dependencies: - follow-redirects "^1.14.4" - -axios@^0.26.0: - version "0.26.1" - resolved "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz" - integrity sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA== - dependencies: - follow-redirects "^1.14.8" - -axobject-query@^3.1.1: - version "3.1.1" - resolved "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz" - integrity sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg== - dependencies: - deep-equal "^2.0.5" - -babel-jest@^27.4.2, babel-jest@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz" - integrity sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg== - dependencies: - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/babel__core" "^7.1.14" - babel-plugin-istanbul "^6.1.1" - babel-preset-jest "^27.5.1" - chalk "^4.0.0" - graceful-fs "^4.2.9" - slash "^3.0.0" - -babel-loader@^8.2.3: - version "8.3.0" - resolved "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz" - integrity sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q== - dependencies: - find-cache-dir "^3.3.1" - loader-utils "^2.0.0" - make-dir "^3.1.0" - schema-utils "^2.6.5" - -babel-plugin-istanbul@^6.1.1: - version "6.1.1" - resolved "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz" - integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== - dependencies: - "@babel/helper-plugin-utils" "^7.0.0" - "@istanbuljs/load-nyc-config" "^1.0.0" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-instrument "^5.0.4" - test-exclude "^6.0.0" - -babel-plugin-jest-hoist@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz" - integrity sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ== - dependencies: - "@babel/template" "^7.3.3" - "@babel/types" "^7.3.3" - "@types/babel__core" "^7.0.0" - "@types/babel__traverse" "^7.0.6" - -babel-plugin-macros@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz" - integrity sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg== - dependencies: - "@babel/runtime" "^7.12.5" - cosmiconfig "^7.0.0" - resolve "^1.19.0" - -babel-plugin-named-asset-import@^0.3.8: - version "0.3.8" - resolved "https://registry.npmjs.org/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.8.tgz" - integrity sha512-WXiAc++qo7XcJ1ZnTYGtLxmBCVbddAml3CEXgWaBzNzLNoxtQ8AiGEFDMOhot9XjTCQbvP5E77Fj9Gk924f00Q== - -babel-plugin-polyfill-corejs2@^0.4.3: - version "0.4.3" - resolved "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.3.tgz" - integrity sha512-bM3gHc337Dta490gg+/AseNB9L4YLHxq1nGKZZSHbhXv4aTYU2MD2cjza1Ru4S6975YLTaL1K8uJf6ukJhhmtw== - dependencies: - "@babel/compat-data" "^7.17.7" - "@babel/helper-define-polyfill-provider" "^0.4.0" - semver "^6.1.1" - -babel-plugin-polyfill-corejs3@^0.8.1: - version "0.8.1" - resolved "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.1.tgz" - integrity sha512-ikFrZITKg1xH6pLND8zT14UPgjKHiGLqex7rGEZCH2EvhsneJaJPemmpQaIZV5AL03II+lXylw3UmddDK8RU5Q== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.4.0" - core-js-compat "^3.30.1" - -babel-plugin-polyfill-regenerator@^0.5.0: - version "0.5.0" - resolved "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.0.tgz" - integrity sha512-hDJtKjMLVa7Z+LwnTCxoDLQj6wdc+B8dun7ayF2fYieI6OzfuvcLMB32ihJZ4UhCBwNYGl5bg/x/P9cMdnkc2g== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.4.0" - -babel-plugin-transform-react-remove-prop-types@^0.4.24: - version "0.4.24" - resolved "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz" - integrity sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA== - -babel-preset-current-node-syntax@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz" - integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== - dependencies: - "@babel/plugin-syntax-async-generators" "^7.8.4" - "@babel/plugin-syntax-bigint" "^7.8.3" - "@babel/plugin-syntax-class-properties" "^7.8.3" - "@babel/plugin-syntax-import-meta" "^7.8.3" - "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.8.3" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.8.3" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-top-level-await" "^7.8.3" - -babel-preset-jest@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz" - integrity sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag== - dependencies: - babel-plugin-jest-hoist "^27.5.1" - babel-preset-current-node-syntax "^1.0.0" - -babel-preset-react-app@^10.0.1: - version "10.0.1" - resolved "https://registry.npmjs.org/babel-preset-react-app/-/babel-preset-react-app-10.0.1.tgz" - integrity sha512-b0D9IZ1WhhCWkrTXyFuIIgqGzSkRIH5D5AmB0bXbzYAB1OBAwHcUeyWW2LorutLWF5btNo/N7r/cIdmvvKJlYg== - dependencies: - "@babel/core" "^7.16.0" - "@babel/plugin-proposal-class-properties" "^7.16.0" - "@babel/plugin-proposal-decorators" "^7.16.4" - "@babel/plugin-proposal-nullish-coalescing-operator" "^7.16.0" - "@babel/plugin-proposal-numeric-separator" "^7.16.0" - "@babel/plugin-proposal-optional-chaining" "^7.16.0" - "@babel/plugin-proposal-private-methods" "^7.16.0" - "@babel/plugin-transform-flow-strip-types" "^7.16.0" - "@babel/plugin-transform-react-display-name" "^7.16.0" - "@babel/plugin-transform-runtime" "^7.16.4" - "@babel/preset-env" "^7.16.4" - "@babel/preset-react" "^7.16.0" - "@babel/preset-typescript" "^7.16.0" - "@babel/runtime" "^7.16.3" - babel-plugin-macros "^3.1.0" - babel-plugin-transform-react-remove-prop-types "^0.4.24" - -bail@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz" - integrity sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw== - -balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - -base-x@^3.0.2: - version "3.0.9" - resolved "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz" - integrity sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ== - dependencies: - safe-buffer "^5.0.1" - -base64-js@^1.3.0, base64-js@^1.3.1: - version "1.5.1" - resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" - integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== - -batch@0.6.1: - version "0.6.1" - resolved "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz" - integrity sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw== - -bcrypt-pbkdf@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" - integrity sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w== - dependencies: - tweetnacl "^0.14.3" - -bfj@^7.0.2: - version "7.0.2" - resolved "https://registry.npmjs.org/bfj/-/bfj-7.0.2.tgz" - integrity sha512-+e/UqUzwmzJamNF50tBV6tZPTORow7gQ96iFow+8b562OdMpEK0BcJEq2OSPEDmAbSMBQ7PKZ87ubFkgxpYWgw== - dependencies: - bluebird "^3.5.5" - check-types "^11.1.1" - hoopy "^0.1.4" - tryer "^1.0.1" - -big-integer@^1.6.16: - version "1.6.51" - resolved "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz" - integrity sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg== - -big.js@^5.2.2: - version "5.2.2" - resolved "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz" - integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== - -bignumber.js@^9.0.1, bignumber.js@^9.1.0: - version "9.1.1" - resolved "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz" - integrity sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig== - -binary-extensions@^2.0.0: - version "2.2.0" - resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz" - integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== - -bip39@3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/bip39/-/bip39-3.0.4.tgz" - integrity sha512-YZKQlb752TrUWqHWj7XAwCSjYEgGAk+/Aas3V7NyjQeZYsztO8JnQUaCWhcnL4T+jL8nvB8typ2jRPzTlgugNw== - dependencies: - "@types/node" "11.11.6" - create-hash "^1.1.0" - pbkdf2 "^3.0.9" - randombytes "^2.0.1" - -blakejs@^1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/blakejs/-/blakejs-1.2.1.tgz" - integrity sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ== - -blockies-ts@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/blockies-ts/-/blockies-ts-1.0.0.tgz" - integrity sha512-mL9NO/FjYbFjaSDA5tw/qkUwEXrBG1bHSoPhAFG9CAzDaHTwQHzvYByAYUBmnqYciFsJvdxWKGtyOLgaSKoUkA== - -bluebird@^3.5.5: - version "3.7.2" - resolved "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz" - integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== - -bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.9: - version "4.12.0" - resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz" - integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== - -bn.js@^5.0.0, bn.js@^5.1.1: - version "5.2.1" - resolved "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz" - integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== - -body-parser@1.20.1: - version "1.20.1" - resolved "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz" - integrity sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw== - dependencies: - bytes "3.1.2" - content-type "~1.0.4" - debug "2.6.9" - depd "2.0.0" - destroy "1.2.0" - http-errors "2.0.0" - iconv-lite "0.4.24" - on-finished "2.4.1" - qs "6.11.0" - raw-body "2.5.1" - type-is "~1.6.18" - unpipe "1.0.0" - -body-parser@^1.20.2: - version "1.20.2" - resolved "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz" - integrity sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA== - dependencies: - bytes "3.1.2" - content-type "~1.0.5" - debug "2.6.9" - depd "2.0.0" - destroy "1.2.0" - http-errors "2.0.0" - iconv-lite "0.4.24" - on-finished "2.4.1" - qs "6.11.0" - raw-body "2.5.2" - type-is "~1.6.18" - unpipe "1.0.0" - -body-scroll-lock@^3.1.5: - version "3.1.5" - resolved "https://registry.npmjs.org/body-scroll-lock/-/body-scroll-lock-3.1.5.tgz" - integrity sha512-Yi1Xaml0EvNA0OYWxXiYNqY24AfWkbA6w5vxE7GWxtKfzIbZM+Qw+aSmkgsbWzbHiy/RCSkUZBplVxTA+E4jJg== - -bonjour-service@^1.0.11: - version "1.1.1" - resolved "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz" - integrity sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg== - dependencies: - array-flatten "^2.1.2" - dns-equal "^1.0.0" - fast-deep-equal "^3.1.3" - multicast-dns "^7.2.5" - -boolbase@^1.0.0, boolbase@~1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz" - integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww== - -boxen@1.3.0: - version "1.3.0" - resolved "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz" - integrity sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw== - dependencies: - ansi-align "^2.0.0" - camelcase "^4.0.0" - chalk "^2.0.1" - cli-boxes "^1.0.0" - string-width "^2.0.0" - term-size "^1.2.0" - widest-line "^2.0.0" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -brace-expansion@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz" - integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== - dependencies: - balanced-match "^1.0.0" - -braces@^3.0.2, braces@~3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - -broadcast-channel@^3.4.1: - version "3.7.0" - resolved "https://registry.npmjs.org/broadcast-channel/-/broadcast-channel-3.7.0.tgz" - integrity sha512-cIAKJXAxGJceNZGTZSBzMxzyOn72cVgPnKx4dc6LRjQgbaJUQqhy5rzL3zbMxkMWsGKkv2hSFkPRMEXfoMZ2Mg== - dependencies: - "@babel/runtime" "^7.7.2" - detect-node "^2.1.0" - js-sha3 "0.8.0" - microseconds "0.2.0" - nano-time "1.0.0" - oblivious-set "1.0.0" - rimraf "3.0.2" - unload "2.2.0" - -brorand@^1.0.1, brorand@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz" - integrity sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w== - -browser-process-hrtime@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz" - integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== - -browserify-aes@^1.0.0, browserify-aes@^1.0.4: - version "1.2.0" - resolved "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz" - integrity sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA== - dependencies: - buffer-xor "^1.0.3" - cipher-base "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.3" - inherits "^2.0.1" - safe-buffer "^5.0.1" - -browserify-cipher@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz" - integrity sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w== - dependencies: - browserify-aes "^1.0.4" - browserify-des "^1.0.0" - evp_bytestokey "^1.0.0" - -browserify-des@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz" - integrity sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A== - dependencies: - cipher-base "^1.0.1" - des.js "^1.0.0" - inherits "^2.0.1" - safe-buffer "^5.1.2" - -browserify-rsa@^4.0.0, browserify-rsa@^4.0.1: - version "4.1.0" - resolved "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz" - integrity sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog== - dependencies: - bn.js "^5.0.0" - randombytes "^2.0.1" - -browserify-sign@^4.0.0: - version "4.2.1" - resolved "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz" - integrity sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg== - dependencies: - bn.js "^5.1.1" - browserify-rsa "^4.0.1" - create-hash "^1.2.0" - create-hmac "^1.1.7" - elliptic "^6.5.3" - inherits "^2.0.4" - parse-asn1 "^5.1.5" - readable-stream "^3.6.0" - safe-buffer "^5.2.0" - -browserify-zlib@^0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz" - integrity sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA== - dependencies: - pako "~1.0.5" - -browserslist@^4.0.0, browserslist@^4.14.5, browserslist@^4.18.1, browserslist@^4.21.3, browserslist@^4.21.4, browserslist@^4.21.5: - version "4.21.7" - resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.21.7.tgz" - integrity sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA== - dependencies: - caniuse-lite "^1.0.30001489" - electron-to-chromium "^1.4.411" - node-releases "^2.0.12" - update-browserslist-db "^1.0.11" - -bs58@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz" - integrity sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw== - dependencies: - base-x "^3.0.2" - -bs58check@2.1.2, bs58check@^2.1.2: - version "2.1.2" - resolved "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz" - integrity sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA== - dependencies: - bs58 "^4.0.0" - create-hash "^1.1.0" - safe-buffer "^5.1.2" - -bser@2.1.1: - version "2.1.1" - resolved "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz" - integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== - dependencies: - node-int64 "^0.4.0" - -btoa@^1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz" - integrity sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g== - -buffer-from@^1.0.0: - version "1.1.2" - resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz" - integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== - -buffer-xor@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz" - integrity sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ== - -buffer@^6.0.3: - version "6.0.3" - resolved "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz" - integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== - dependencies: - base64-js "^1.3.1" - ieee754 "^1.2.1" - -builtin-modules@^3.1.0: - version "3.3.0" - resolved "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz" - integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw== - -builtin-status-codes@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz" - integrity sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ== - -bytes@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-0.1.0.tgz#c574812228126d6369d1576925a8579db3f8e5a2" - integrity sha512-zTSmfpu7b+Mll4T9ZjTYUO3Q6+m+F3ZEQ515ZECaAFhmmHiRl/UcdcAsuFyVklbMRo9GWyRyqTsB6C6ahjGnVA== - -bytes@3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz" - integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== - -bytes@3.1.2: - version "3.1.2" - resolved "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" - integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== - -call-bind@^1.0.0, call-bind@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz" - integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== - dependencies: - function-bind "^1.1.1" - get-intrinsic "^1.0.2" - -callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== - -camel-case@^4.1.2: - version "4.1.2" - resolved "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz" - integrity sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw== - dependencies: - pascal-case "^3.1.2" - tslib "^2.0.3" - -camelcase-css@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz" - integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA== - -camelcase@^4.0.0, camelcase@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz" - integrity sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw== - -camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -camelcase@^6.2.0, camelcase@^6.2.1: - version "6.3.0" - resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz" - integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== - -caniuse-api@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz" - integrity sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw== - dependencies: - browserslist "^4.0.0" - caniuse-lite "^1.0.0" - lodash.memoize "^4.1.2" - lodash.uniq "^4.5.0" - -caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001464, caniuse-lite@^1.0.30001489: - version "1.0.30001492" - resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001492.tgz" - integrity sha512-2efF8SAZwgAX1FJr87KWhvuJxnGJKOnctQa8xLOskAXNXq8oiuqgl6u1kk3fFpsp3GgvzlRjiK1sl63hNtFADw== - -case-sensitive-paths-webpack-plugin@^2.4.0: - version "2.4.0" - resolved "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz" - integrity sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw== - -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== - -ccount@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz" - integrity sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg== - -chalk@2.4.1: - version "2.4.1" - resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz" - integrity sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chalk@5.2.0: - version "5.2.0" - resolved "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz" - integrity sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA== - -chalk@^2.0.0, chalk@^2.0.1, chalk@^2.4.1: - version "2.4.2" - resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: - version "4.1.2" - resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -char-regex@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz" - integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== - -char-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/char-regex/-/char-regex-2.0.1.tgz" - integrity sha512-oSvEeo6ZUD7NepqAat3RqoucZ5SeqLJgOvVIwkafu6IP3V0pO38s/ypdVUmDDK6qIIHNlYHJAKX9E7R7HoKElw== - -character-entities@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz" - integrity sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ== - -check-types@^11.1.1: - version "11.2.2" - resolved "https://registry.npmjs.org/check-types/-/check-types-11.2.2.tgz" - integrity sha512-HBiYvXvn9Z70Z88XKjz3AEKd4HJhBXsa3j7xFnITAzoS8+q6eIGi8qDB8FKPBAjtuxjI/zFpwuiCb8oDtKOYrA== - -choices-separator@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/choices-separator/-/choices-separator-2.0.0.tgz#92fd1763182d79033f5c5c51d0ba352e5567c696" - integrity sha512-BCKlzRcP2V6X+85TSKn09oGZkO2zK2zytGyZeHvM2s+kv/ydAzJtsc+rZqYRWNlojIBfkOnPxgKXrBefTFZbTQ== - dependencies: - ansi-dim "^0.1.1" - debug "^2.6.6" - strip-color "^0.1.0" - -chokidar@^3.4.2, chokidar@^3.5.2, chokidar@^3.5.3: - version "3.5.3" - resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz" - integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== - dependencies: - anymatch "~3.1.2" - braces "~3.0.2" - glob-parent "~5.1.2" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.6.0" - optionalDependencies: - fsevents "~2.3.2" - -chrome-trace-event@^1.0.2: - version "1.0.3" - resolved "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz" - integrity sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg== - -ci-info@^3.2.0: - version "3.8.0" - resolved "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz" - integrity sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw== - -cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: - version "1.0.4" - resolved "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz" - integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q== - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -cjs-module-lexer@^1.0.0: - version "1.2.2" - resolved "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz" - integrity sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA== - -clean-css@^5.2.2: - version "5.3.2" - resolved "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz" - integrity sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww== - dependencies: - source-map "~0.6.0" - -clean-stack@^2.0.0: - version "2.2.0" - resolved "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz" - integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== - -cli-boxes@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz" - integrity sha512-3Fo5wu8Ytle8q9iCzS4D2MWVL2X7JVWRiS1BnXbTFDhS9c/REkM9vd1AmabsoZoY5/dGi5TT9iKL8Kb6DeBRQg== - -cli-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz" - integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== - dependencies: - restore-cursor "^3.1.0" - -cli-truncate@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz" - integrity sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg== - dependencies: - slice-ansi "^3.0.0" - string-width "^4.2.0" - -cli-truncate@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz" - integrity sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA== - dependencies: - slice-ansi "^5.0.0" - string-width "^5.0.0" - -clipboardy@1.2.3: - version "1.2.3" - resolved "https://registry.npmjs.org/clipboardy/-/clipboardy-1.2.3.tgz" - integrity sha512-2WNImOvCRe6r63Gk9pShfkwXsVtKCroMAevIbiae021mS850UkWPbevxsBz3tnvjZIEGvlwaqCPsw+4ulzNgJA== - dependencies: - arch "^2.1.0" - execa "^0.8.0" - -cliui@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" - integrity sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ== - dependencies: - string-width "^2.1.1" - strip-ansi "^4.0.0" - wrap-ansi "^2.0.0" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -cliui@^8.0.1: - version "8.0.1" - resolved "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" - integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.1" - wrap-ansi "^7.0.0" - -clone-deep@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-1.0.0.tgz#b2f354444b5d4a0ce58faca337ef34da2b14a6c7" - integrity sha512-hmJRX8x1QOJVV+GUjOBzi6iauhPqc9hIF6xitWRBbiPZOBb6vGo/mDRIK9P74RTKSQK7AE8B0DDWY/vpRrPmQw== - dependencies: - for-own "^1.0.0" - is-plain-object "^2.0.4" - kind-of "^5.0.0" - shallow-clone "^1.0.0" - -clone-deep@^4.0.0, clone-deep@^4.0.1: - version "4.0.1" - resolved "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz" - integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== - dependencies: - is-plain-object "^2.0.4" - kind-of "^6.0.2" - shallow-clone "^3.0.0" - -clsx@^1.0.4, clsx@^1.1.0, clsx@^1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz" - integrity sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg== - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.npmjs.org/co/-/co-4.6.0.tgz" - integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== - -coa@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz" - integrity sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA== - dependencies: - "@types/q" "^1.5.1" - chalk "^2.4.1" - q "^1.1.2" - -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - integrity sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA== - -collect-v8-coverage@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz" - integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw== - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" - integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -colord@^2.9.1: - version "2.9.3" - resolved "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz" - integrity sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw== - -colorette@^2.0.10, colorette@^2.0.19: - version "2.0.20" - resolved "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz" - integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== - -combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: - version "1.0.8" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - -comma-separated-tokens@^2.0.0: - version "2.0.3" - resolved "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz" - integrity sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg== - -commander@0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-0.6.1.tgz#fa68a14f6a945d54dbbe50d8cdb3320e9e3b1a06" - integrity sha512-0fLycpl1UMTGX257hRsu/arL/cUbcvQM4zMKwvLvzXtfdezIV4yotPS2dYtknF+NmEfWSoCEF6+hj9XLm/6hEw== - -commander@^10.0.0: - version "10.0.1" - resolved "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz" - integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== - -commander@^2.20.0: - version "2.20.3" - resolved "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz" - integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== - -commander@^4.0.0: - version "4.1.1" - resolved "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz" - integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== - -commander@^7.2.0: - version "7.2.0" - resolved "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz" - integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== - -commander@^8.3.0: - version "8.3.0" - resolved "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz" - integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== - -common-path-prefix@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz" - integrity sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w== - -common-tags@^1.8.0: - version "1.8.2" - resolved "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz" - integrity sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA== - -commondir@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz" - integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== - -component-emitter@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" - integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== - -compressible@~2.0.14, compressible@~2.0.16: - version "2.0.18" - resolved "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz" - integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== - dependencies: - mime-db ">= 1.43.0 < 2" - -compression@1.7.3: - version "1.7.3" - resolved "https://registry.npmjs.org/compression/-/compression-1.7.3.tgz" - integrity sha512-HSjyBG5N1Nnz7tF2+O7A9XUhyjru71/fwgNb7oIsEVHR0WShfs2tIS/EySLgiTe98aOK18YDlMXpzjCXY/n9mg== - dependencies: - accepts "~1.3.5" - bytes "3.0.0" - compressible "~2.0.14" - debug "2.6.9" - on-headers "~1.0.1" - safe-buffer "5.1.2" - vary "~1.1.2" - -compression@^1.7.4: - version "1.7.4" - resolved "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz" - integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ== - dependencies: - accepts "~1.3.5" - bytes "3.0.0" - compressible "~2.0.16" - debug "2.6.9" - on-headers "~1.0.2" - safe-buffer "5.1.2" - vary "~1.1.2" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" - integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== - -concurrently@^8.2.0: - version "8.2.0" - resolved "https://registry.npmjs.org/concurrently/-/concurrently-8.2.0.tgz" - integrity sha512-nnLMxO2LU492mTUj9qX/az/lESonSZu81UznYDoXtz1IQf996ixVqPAgHXwvHiHCAef/7S8HIK+fTFK7Ifk8YA== - dependencies: - chalk "^4.1.2" - date-fns "^2.30.0" - lodash "^4.17.21" - rxjs "^7.8.1" - shell-quote "^1.8.1" - spawn-command "0.0.2" - supports-color "^8.1.1" - tree-kill "^1.2.2" - yargs "^17.7.2" - -confusing-browser-globals@^1.0.11: - version "1.0.11" - resolved "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz" - integrity sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA== - -connect-history-api-fallback@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz" - integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA== - -connect-timeout@^1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/connect-timeout/-/connect-timeout-1.9.0.tgz#bc27326b122103714bebfa0d958bab33f6522e3a" - integrity sha512-q4bsBIPd+eSGtnh/u6EBOKfuG+4YvwsN0idlOsg6KAw71Qpi0DCf2eCc/Va63QU9qdOeYC8katxoC+rHMNygZg== - dependencies: - http-errors "~1.6.1" - ms "2.0.0" - on-finished "~2.3.0" - on-headers "~1.0.1" - -connect@2.7.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/connect/-/connect-2.7.0.tgz#52f5626d823c0848a87410f80de0ace2aa52ad95" - integrity sha512-dc4sTwvTiHcZJCph900RXKdgvIFrbHkwJnsfaEfhM06Gsq0Fqp2E0abwBcM3mavwwVtH3J2wlrp5m/E8SJi1OA== - dependencies: - bytes "0.1.0" - cookie "0.0.5" - cookie-signature "0.0.1" - crc "0.2.0" - debug "*" - formidable "1.0.11" - fresh "0.1.0" - pause "0.0.1" - qs "0.5.1" - send "0.1.0" - -content-disposition@0.5.2: - version "0.5.2" - resolved "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz" - integrity sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA== - -content-disposition@0.5.4: - version "0.5.4" - resolved "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz" - integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== - dependencies: - safe-buffer "5.2.1" - -content-type@~1.0.4, content-type@~1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz" - integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== - -convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: - version "1.9.0" - resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz" - integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== - -cookie-signature@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-0.0.1.tgz#13d3603b5cf63befbf85a8801e37aa900db46985" - integrity sha512-cF3ACWE4MpShxO2sKb6TtB4wHIn2DsO83K1DNhukqVd5PhYwxLLqHvkrcvHpIpPJ0ow8pqSO36gwL4viDq9edA== - -cookie-signature@1.0.6: - version "1.0.6" - resolved "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz" - integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== - -cookie@0.0.5: - version "0.0.5" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.0.5.tgz#f9acf9db57eb7568c9fcc596256b7bb22e307c81" - integrity sha512-STLsAHdtBDF5GJiPHc4sdfX5qzri6bcSxdSlW/o4IYJAA5yZxh3ZZsvctsKRNbhpP328sN+A2EjOF9vcW/LhdQ== - -cookie@0.5.0: - version "0.5.0" - resolved "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz" - integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw== - -core-js-compat@^3.30.1, core-js-compat@^3.30.2: - version "3.30.2" - resolved "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.2.tgz" - integrity sha512-nriW1nuJjUgvkEjIot1Spwakz52V9YkYHZAQG6A1eCgC8AA1p0zngrQEP9R0+V6hji5XilWKG1Bd0YRppmGimA== - dependencies: - browserslist "^4.21.5" - -core-js-pure@^3.23.3: - version "3.30.2" - resolved "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.30.2.tgz" - integrity sha512-p/npFUJXXBkCCTIlEGBdghofn00jWG6ZOtdoIXSJmAu2QBvN0IqpZXWweOytcwE6cfx8ZvVUy1vw8zxhe4Y2vg== - -core-js@^3.19.2: - version "3.30.2" - resolved "https://registry.npmjs.org/core-js/-/core-js-3.30.2.tgz" - integrity sha512-uBJiDmwqsbJCWHAwjrx3cvjbMXP7xD72Dmsn5LOJpiRmE3WbBbN5rCqQ2Qh6Ek6/eOrjlWngEynBWo4VxerQhg== - -core-util-is@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== - -core-util-is@~1.0.0: - version "1.0.3" - resolved "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz" - integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== - -cors@^2.8.5: - version "2.8.5" - resolved "https://registry.yarnpkg.com/cors/-/cors-2.8.5.tgz#eac11da51592dd86b9f06f6e7ac293b3df875d29" - integrity sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g== - dependencies: - object-assign "^4" - vary "^1" - -cosmiconfig-typescript-loader@^1.0.0: - version "1.0.9" - resolved "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-1.0.9.tgz" - integrity sha512-tRuMRhxN4m1Y8hP9SNYfz7jRwt8lZdWxdjg/ohg5esKmsndJIn4yT96oJVcf5x0eA11taXl+sIp+ielu529k6g== - dependencies: - cosmiconfig "^7" - ts-node "^10.7.0" - -cosmiconfig@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz" - integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg== - dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.1.0" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.7.2" - -cosmiconfig@^7, cosmiconfig@^7.0.0, cosmiconfig@^7.0.1: - version "7.1.0" - resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz" - integrity sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA== - dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.2.1" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.10.0" - -crc@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/crc/-/crc-0.2.0.tgz#f4486b9bf0a12df83c3fca14e31e030fdabd9454" - integrity sha512-LFlOXOW6KT46bjpUevoixE6UQVdm9wMwCrR4JHxg4LJ+9COF7efwTdVMRXrSlNXYmUQgtAcHsWa0VgKBiQZmMQ== - -create-ecdh@^4.0.0: - version "4.0.4" - resolved "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz" - integrity sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A== - dependencies: - bn.js "^4.1.0" - elliptic "^6.5.3" - -create-hash@^1.1.0, create-hash@^1.1.2, create-hash@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz" - integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg== - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - md5.js "^1.3.4" - ripemd160 "^2.0.1" - sha.js "^2.4.0" - -create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: - version "1.1.7" - resolved "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz" - integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg== - dependencies: - cipher-base "^1.0.3" - create-hash "^1.1.0" - inherits "^2.0.1" - ripemd160 "^2.0.0" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - -create-require@^1.1.0: - version "1.1.1" - resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz" - integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== - -cross-fetch@^3.0.6: - version "3.1.6" - resolved "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.6.tgz" - integrity sha512-riRvo06crlE8HiqOwIpQhxwdOk4fOeR7FVM/wXoxchFEqMNUjvbs3bfo4OTgMEMHzppd4DxFBDbyySj8Cv781g== - dependencies: - node-fetch "^2.6.11" - -cross-spawn@^5.0.1: - version "5.1.0" - resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz" - integrity sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A== - dependencies: - lru-cache "^4.0.1" - shebang-command "^1.2.0" - which "^1.2.9" - -cross-spawn@^6.0.0: - version "6.0.5" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" - integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== - dependencies: - nice-try "^1.0.4" - path-key "^2.0.1" - semver "^5.5.0" - shebang-command "^1.2.0" - which "^1.2.9" - -cross-spawn@^7.0.2, cross-spawn@^7.0.3: - version "7.0.3" - resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -crypto-browserify@^3.12.0: - version "3.12.0" - resolved "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz" - integrity sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg== - dependencies: - browserify-cipher "^1.0.0" - browserify-sign "^4.0.0" - create-ecdh "^4.0.0" - create-hash "^1.1.0" - create-hmac "^1.1.0" - diffie-hellman "^5.0.0" - inherits "^2.0.1" - pbkdf2 "^3.0.3" - public-encrypt "^4.0.0" - randombytes "^2.0.0" - randomfill "^1.0.3" - -crypto-js@^4.1.1: - version "4.1.1" - resolved "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz" - integrity sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw== - -crypto-random-string@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz" - integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== - -css-blank-pseudo@^3.0.3: - version "3.0.3" - resolved "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz" - integrity sha512-VS90XWtsHGqoM0t4KpH053c4ehxZ2E6HtGI7x68YFV0pTo/QmkV/YFA+NnlvK8guxZVNWGQhVNJGC39Q8XF4OQ== - dependencies: - postcss-selector-parser "^6.0.9" - -css-declaration-sorter@^6.3.1: - version "6.4.0" - resolved "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz" - integrity sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew== - -css-has-pseudo@^3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-3.0.4.tgz" - integrity sha512-Vse0xpR1K9MNlp2j5w1pgWIJtm1a8qS0JwS9goFYcImjlHEmywP9VUF05aGBXzGpDJF86QXk4L0ypBmwPhGArw== - dependencies: - postcss-selector-parser "^6.0.9" - -css-loader@^6.5.1: - version "6.8.1" - resolved "https://registry.npmjs.org/css-loader/-/css-loader-6.8.1.tgz" - integrity sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g== - dependencies: - icss-utils "^5.1.0" - postcss "^8.4.21" - postcss-modules-extract-imports "^3.0.0" - postcss-modules-local-by-default "^4.0.3" - postcss-modules-scope "^3.0.0" - postcss-modules-values "^4.0.0" - postcss-value-parser "^4.2.0" - semver "^7.3.8" - -css-minimizer-webpack-plugin@^3.2.0: - version "3.4.1" - resolved "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz" - integrity sha512-1u6D71zeIfgngN2XNRJefc/hY7Ybsxd74Jm4qngIXyUEk7fss3VUzuHxLAq/R8NAba4QU9OUSaMZlbpRc7bM4Q== - dependencies: - cssnano "^5.0.6" - jest-worker "^27.0.2" - postcss "^8.3.5" - schema-utils "^4.0.0" - serialize-javascript "^6.0.0" - source-map "^0.6.1" - -css-prefers-color-scheme@^6.0.3: - version "6.0.3" - resolved "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-6.0.3.tgz" - integrity sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA== - -css-select-base-adapter@^0.1.1: - version "0.1.1" - resolved "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz" - integrity sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w== - -css-select@^2.0.0: - version "2.1.0" - resolved "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz" - integrity sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ== - dependencies: - boolbase "^1.0.0" - css-what "^3.2.1" - domutils "^1.7.0" - nth-check "^1.0.2" - -css-select@^4.1.3: - version "4.3.0" - resolved "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz" - integrity sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ== - dependencies: - boolbase "^1.0.0" - css-what "^6.0.1" - domhandler "^4.3.1" - domutils "^2.8.0" - nth-check "^2.0.1" - -css-tree@1.0.0-alpha.37: - version "1.0.0-alpha.37" - resolved "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz" - integrity sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg== - dependencies: - mdn-data "2.0.4" - source-map "^0.6.1" - -css-tree@^1.1.2, css-tree@^1.1.3: - version "1.1.3" - resolved "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz" - integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q== - dependencies: - mdn-data "2.0.14" - source-map "^0.6.1" - -css-vendor@^2.0.8: - version "2.0.8" - resolved "https://registry.npmjs.org/css-vendor/-/css-vendor-2.0.8.tgz" - integrity sha512-x9Aq0XTInxrkuFeHKbYC7zWY8ai7qJ04Kxd9MnvbC1uO5DagxoHQjm4JvG+vCdXOoFtCjbL2XSZfxmoYa9uQVQ== - dependencies: - "@babel/runtime" "^7.8.3" - is-in-browser "^1.0.2" - -css-what@^3.2.1: - version "3.4.2" - resolved "https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz" - integrity sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ== - -css-what@^6.0.1: - version "6.1.0" - resolved "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz" - integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw== - -cssdb@^7.1.0: - version "7.6.0" - resolved "https://registry.npmjs.org/cssdb/-/cssdb-7.6.0.tgz" - integrity sha512-Nna7rph8V0jC6+JBY4Vk4ndErUmfJfV6NJCaZdurL0omggabiy+QB2HCQtu5c/ACLZ0I7REv7A4QyPIoYzZx0w== - -cssesc@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz" - integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== - -cssnano-preset-default@^5.2.14: - version "5.2.14" - resolved "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz" - integrity sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A== - dependencies: - css-declaration-sorter "^6.3.1" - cssnano-utils "^3.1.0" - postcss-calc "^8.2.3" - postcss-colormin "^5.3.1" - postcss-convert-values "^5.1.3" - postcss-discard-comments "^5.1.2" - postcss-discard-duplicates "^5.1.0" - postcss-discard-empty "^5.1.1" - postcss-discard-overridden "^5.1.0" - postcss-merge-longhand "^5.1.7" - postcss-merge-rules "^5.1.4" - postcss-minify-font-values "^5.1.0" - postcss-minify-gradients "^5.1.1" - postcss-minify-params "^5.1.4" - postcss-minify-selectors "^5.2.1" - postcss-normalize-charset "^5.1.0" - postcss-normalize-display-values "^5.1.0" - postcss-normalize-positions "^5.1.1" - postcss-normalize-repeat-style "^5.1.1" - postcss-normalize-string "^5.1.0" - postcss-normalize-timing-functions "^5.1.0" - postcss-normalize-unicode "^5.1.1" - postcss-normalize-url "^5.1.0" - postcss-normalize-whitespace "^5.1.1" - postcss-ordered-values "^5.1.3" - postcss-reduce-initial "^5.1.2" - postcss-reduce-transforms "^5.1.0" - postcss-svgo "^5.1.0" - postcss-unique-selectors "^5.1.1" - -cssnano-utils@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz" - integrity sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA== - -cssnano@^5.0.6: - version "5.1.15" - resolved "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz" - integrity sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw== - dependencies: - cssnano-preset-default "^5.2.14" - lilconfig "^2.0.3" - yaml "^1.10.2" - -csso@^4.0.2, csso@^4.2.0: - version "4.2.0" - resolved "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz" - integrity sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA== - dependencies: - css-tree "^1.1.2" - -cssom@^0.4.4: - version "0.4.4" - resolved "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz" - integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== - -cssom@~0.3.6: - version "0.3.8" - resolved "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz" - integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== - -cssstyle@^2.3.0: - version "2.3.0" - resolved "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz" - integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== - dependencies: - cssom "~0.3.6" - -csstype@^2.5.2: - version "2.6.21" - resolved "https://registry.npmjs.org/csstype/-/csstype-2.6.21.tgz" - integrity sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w== - -csstype@^3.0.2, csstype@^3.1.0, csstype@^3.1.2: - version "3.1.2" - resolved "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz" - integrity sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ== - -damerau-levenshtein@^1.0.8: - version "1.0.8" - resolved "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz" - integrity sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA== - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - integrity sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g== - dependencies: - assert-plus "^1.0.0" - -data-urls@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz" - integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== - dependencies: - abab "^2.0.3" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.0.0" - -date-fns@^2.30.0: - version "2.30.0" - resolved "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz" - integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw== - dependencies: - "@babel/runtime" "^7.21.0" - -dayjs@^1.10.4: - version "1.11.7" - resolved "https://registry.npmjs.org/dayjs/-/dayjs-1.11.7.tgz" - integrity sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ== - -debug@*, debug@4, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4: - version "4.3.4" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" - integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== - dependencies: - ms "2.1.2" - -debug@2.6.9, debug@^2.2.0, debug@^2.6.0, debug@^2.6.6, debug@^2.6.8: - version "2.6.9" - resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -debug@^3.0.1, debug@^3.1.0, debug@^3.2.7: - version "3.2.7" - resolved "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz" - integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== - dependencies: - ms "^2.1.1" - -decamelize@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== - -decimal.js@^10.2.1: - version "10.4.3" - resolved "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz" - integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA== - -decode-named-character-reference@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz" - integrity sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg== - dependencies: - character-entities "^2.0.0" - -decode-uri-component@^0.2.0: - version "0.2.2" - resolved "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz" - integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== - -dedent@^0.7.0: - version "0.7.0" - resolved "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz" - integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== - -deep-equal@^2.0.5: - version "2.2.1" - resolved "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz" - integrity sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ== - dependencies: - array-buffer-byte-length "^1.0.0" - call-bind "^1.0.2" - es-get-iterator "^1.1.3" - get-intrinsic "^1.2.0" - is-arguments "^1.1.1" - is-array-buffer "^3.0.2" - is-date-object "^1.0.5" - is-regex "^1.1.4" - is-shared-array-buffer "^1.0.2" - isarray "^2.0.5" - object-is "^1.1.5" - object-keys "^1.1.1" - object.assign "^4.1.4" - regexp.prototype.flags "^1.5.0" - side-channel "^1.0.4" - which-boxed-primitive "^1.0.2" - which-collection "^1.0.1" - which-typed-array "^1.1.9" - -deep-extend@^0.6.0: - version "0.6.0" - resolved "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz" - integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== - -deep-is@^0.1.3, deep-is@~0.1.3: - version "0.1.4" - resolved "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - -deepmerge@^2.1.1: - version "2.2.1" - resolved "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz" - integrity sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA== - -deepmerge@^4.2.2: - version "4.3.1" - resolved "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz" - integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== - -default-gateway@^6.0.3: - version "6.0.3" - resolved "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz" - integrity sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg== - dependencies: - execa "^5.0.0" - -define-lazy-prop@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz" - integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og== - -define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz" - integrity sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA== - dependencies: - has-property-descriptors "^1.0.0" - object-keys "^1.1.1" - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA== - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA== - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" - integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== - -depd@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" - integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== - -depd@~1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz" - integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== - -dequal@^2.0.0: - version "2.0.3" - resolved "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz" - integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== - -des.js@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/des.js/-/des.js-1.1.0.tgz" - integrity sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg== - dependencies: - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - -destroy@1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz" - integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== - -detect-browser@5.3.0: - version "5.3.0" - resolved "https://registry.npmjs.org/detect-browser/-/detect-browser-5.3.0.tgz" - integrity sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w== - -detect-newline@^3.0.0: - version "3.1.0" - resolved "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz" - integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== - -detect-node@^2.0.4, detect-node@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz" - integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g== - -detect-port-alt@^1.1.6: - version "1.1.6" - resolved "https://registry.npmjs.org/detect-port-alt/-/detect-port-alt-1.1.6.tgz" - integrity sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q== - dependencies: - address "^1.0.1" - debug "^2.6.0" - -didyoumean@^1.2.2: - version "1.2.2" - resolved "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz" - integrity sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw== - -diff-sequences@^26.6.2: - version "26.6.2" - resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz" - integrity sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q== - -diff-sequences@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz" - integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ== - -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== - -diff@^5.0.0: - version "5.1.0" - resolved "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz" - integrity sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw== - -diffie-hellman@^5.0.0: - version "5.0.3" - resolved "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz" - integrity sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg== - dependencies: - bn.js "^4.1.0" - miller-rabin "^4.0.0" - randombytes "^2.0.0" - -dir-glob@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" - integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== - dependencies: - path-type "^4.0.0" - -dlv@^1.1.3: - version "1.1.3" - resolved "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz" - integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA== - -dns-equal@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz" - integrity sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg== - -dns-packet@^5.2.2: - version "5.6.0" - resolved "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.0.tgz" - integrity sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ== - dependencies: - "@leichtgewicht/ip-codec" "^2.0.1" - -doctrine@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz" - integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== - dependencies: - esutils "^2.0.2" - -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - -dom-converter@^0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz" - integrity sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA== - dependencies: - utila "~0.4" - -dom-helpers@^5.0.1: - version "5.2.1" - resolved "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz" - integrity sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA== - dependencies: - "@babel/runtime" "^7.8.7" - csstype "^3.0.2" - -dom-serializer@0: - version "0.2.2" - resolved "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz" - integrity sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g== - dependencies: - domelementtype "^2.0.1" - entities "^2.0.0" - -dom-serializer@^1.0.1: - version "1.4.1" - resolved "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz" - integrity sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag== - dependencies: - domelementtype "^2.0.1" - domhandler "^4.2.0" - entities "^2.0.0" - -domelementtype@1, domelementtype@^1.3.1: - version "1.3.1" - resolved "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz" - integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== - -domelementtype@^2.0.1, domelementtype@^2.2.0: - version "2.3.0" - resolved "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz" - integrity sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw== - -domexception@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz" - integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== - dependencies: - webidl-conversions "^5.0.0" - -domhandler@^2.3.0, domhandler@^2.4.0: - version "2.4.2" - resolved "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz" - integrity sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA== - dependencies: - domelementtype "1" - -domhandler@^4.0.0, domhandler@^4.2.0, domhandler@^4.3.1: - version "4.3.1" - resolved "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz" - integrity sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ== - dependencies: - domelementtype "^2.2.0" - -domutils@^1.5.1, domutils@^1.7.0: - version "1.7.0" - resolved "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz" - integrity sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg== - dependencies: - dom-serializer "0" - domelementtype "1" - -domutils@^2.5.2, domutils@^2.8.0: - version "2.8.0" - resolved "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz" - integrity sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A== - dependencies: - dom-serializer "^1.0.1" - domelementtype "^2.2.0" - domhandler "^4.2.0" - -dot-case@^3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz" - integrity sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w== - dependencies: - no-case "^3.0.4" - tslib "^2.0.3" - -dotenv-expand@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz" - integrity sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA== - -dotenv@^10.0.0: - version "10.0.0" - resolved "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz" - integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q== - -duplexer@^0.1.2: - version "0.1.2" - resolved "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz" - integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== - -duplexify@^4.1.2: - version "4.1.2" - resolved "https://registry.npmjs.org/duplexify/-/duplexify-4.1.2.tgz" - integrity sha512-fz3OjcNCHmRP12MJoZMPglx8m4rrFP8rovnk4vT8Fs+aonZoCwGg10dSsQsfP/E62eZcPTMSMP6686fu9Qlqtw== - dependencies: - end-of-stream "^1.4.1" - inherits "^2.0.3" - readable-stream "^3.1.1" - stream-shift "^1.0.0" - -eastasianwidth@^0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz" - integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== - -ecc-jsbn@~0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" - integrity sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw== - dependencies: - jsbn "~0.1.0" - safer-buffer "^2.1.0" - -ee-first@1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" - integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== - -ejs@^3.1.5, ejs@^3.1.6: - version "3.1.9" - resolved "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz" - integrity sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ== - dependencies: - jake "^10.8.5" - -electron-to-chromium@^1.4.411: - version "1.4.417" - resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.417.tgz" - integrity sha512-8rY8HdCxuSVY8wku3i/eDac4g1b4cSbruzocenrqBlzqruAZYHjQCHIjC66dLR9DXhEHTojsC4EjhZ8KmzwXqA== - -elliptic@^6.5.3, elliptic@^6.5.4: - version "6.5.4" - resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz" - integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== - dependencies: - bn.js "^4.11.9" - brorand "^1.1.0" - hash.js "^1.0.0" - hmac-drbg "^1.0.1" - inherits "^2.0.4" - minimalistic-assert "^1.0.1" - minimalistic-crypto-utils "^1.0.1" - -emittery@^0.10.2: - version "0.10.2" - resolved "https://registry.npmjs.org/emittery/-/emittery-0.10.2.tgz" - integrity sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw== - -emittery@^0.8.1: - version "0.8.1" - resolved "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz" - integrity sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg== - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -emoji-regex@^9.2.2: - version "9.2.2" - resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz" - integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== - -emojis-list@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz" - integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q== - -encodeurl@~1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz" - integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== - -end-of-stream@^1.1.0, end-of-stream@^1.4.1: - version "1.4.4" - resolved "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz" - integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== - dependencies: - once "^1.4.0" - -enhanced-resolve@^5.14.1: - version "5.14.1" - resolved "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz" - integrity sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow== - dependencies: - graceful-fs "^4.2.4" - tapable "^2.2.0" - -enquirer@^2.3.5: - version "2.3.6" - resolved "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz" - integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== - dependencies: - ansi-colors "^4.1.1" - -entities@^1.1.1: - version "1.1.2" - resolved "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz" - integrity sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w== - -entities@^2.0.0: - version "2.2.0" - resolved "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz" - integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== - -error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== - dependencies: - is-arrayish "^0.2.1" - -error-stack-parser@^2.0.6: - version "2.1.4" - resolved "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz" - integrity sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ== - dependencies: - stackframe "^1.3.4" - -error-symbol@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/error-symbol/-/error-symbol-0.1.0.tgz#0a4dae37d600d15a29ba453d8ef920f1844333f6" - integrity sha512-VyjaKxUmeDX/m2lxm/aknsJ1GWDWUO2Ze2Ad8S1Pb9dykAm9TjSKp5CjrNyltYqZ5W/PO6TInAmO2/BfwMyT1g== - -es-abstract@^1.17.2, es-abstract@^1.19.0, es-abstract@^1.20.4, es-abstract@^1.21.2: - version "1.21.2" - resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz" - integrity sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg== - dependencies: - array-buffer-byte-length "^1.0.0" - available-typed-arrays "^1.0.5" - call-bind "^1.0.2" - es-set-tostringtag "^2.0.1" - es-to-primitive "^1.2.1" - function.prototype.name "^1.1.5" - get-intrinsic "^1.2.0" - get-symbol-description "^1.0.0" - globalthis "^1.0.3" - gopd "^1.0.1" - has "^1.0.3" - has-property-descriptors "^1.0.0" - has-proto "^1.0.1" - has-symbols "^1.0.3" - internal-slot "^1.0.5" - is-array-buffer "^3.0.2" - is-callable "^1.2.7" - is-negative-zero "^2.0.2" - is-regex "^1.1.4" - is-shared-array-buffer "^1.0.2" - is-string "^1.0.7" - is-typed-array "^1.1.10" - is-weakref "^1.0.2" - object-inspect "^1.12.3" - object-keys "^1.1.1" - object.assign "^4.1.4" - regexp.prototype.flags "^1.4.3" - safe-regex-test "^1.0.0" - string.prototype.trim "^1.2.7" - string.prototype.trimend "^1.0.6" - string.prototype.trimstart "^1.0.6" - typed-array-length "^1.0.4" - unbox-primitive "^1.0.2" - which-typed-array "^1.1.9" - -es-array-method-boxes-properly@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz" - integrity sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA== - -es-get-iterator@^1.1.3: - version "1.1.3" - resolved "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz" - integrity sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.3" - has-symbols "^1.0.3" - is-arguments "^1.1.1" - is-map "^2.0.2" - is-set "^2.0.2" - is-string "^1.0.7" - isarray "^2.0.5" - stop-iteration-iterator "^1.0.0" - -es-module-lexer@^1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz" - integrity sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg== - -es-set-tostringtag@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz" - integrity sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg== - dependencies: - get-intrinsic "^1.1.3" - has "^1.0.3" - has-tostringtag "^1.0.0" - -es-shim-unscopables@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz" - integrity sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w== - dependencies: - has "^1.0.3" - -es-to-primitive@^1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz" - integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== - dependencies: - is-callable "^1.1.4" - is-date-object "^1.0.1" - is-symbol "^1.0.2" - -es6-denodeify@^0.1.1: - version "0.1.5" - resolved "https://registry.npmjs.org/es6-denodeify/-/es6-denodeify-0.1.5.tgz" - integrity sha512-731Rf4NqlPvhkT1pIF7r8vZxESJlWocNpXLuyPlVnfEGXlwuJaMvU5WpyyDjpudDC2cgXVX849xljzvQqBg1QQ== - -es6-object-assign@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/es6-object-assign/-/es6-object-assign-1.1.0.tgz" - integrity sha512-MEl9uirslVwqQU369iHNWZXsI8yaZYGg/D65aOgZkeyFJwHYSxilf7rQzXKI7DdDuBPrBXbfk3sl9hJhmd5AUw== - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== - -escape-html@^1.0.3, escape-html@~1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" - integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== - -escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" - integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== - -escape-string-regexp@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" - integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== - -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -escape-string-regexp@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz" - integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== - -escodegen@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz" - integrity sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw== - dependencies: - esprima "^4.0.1" - estraverse "^5.2.0" - esutils "^2.0.2" - optionator "^0.8.1" - optionalDependencies: - source-map "~0.6.1" - -eslint-config-prettier@^8.1.0: - version "8.8.0" - resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz" - integrity sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA== - -eslint-config-react-app@^7.0.1: - version "7.0.1" - resolved "https://registry.npmjs.org/eslint-config-react-app/-/eslint-config-react-app-7.0.1.tgz" - integrity sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA== - dependencies: - "@babel/core" "^7.16.0" - "@babel/eslint-parser" "^7.16.3" - "@rushstack/eslint-patch" "^1.1.0" - "@typescript-eslint/eslint-plugin" "^5.5.0" - "@typescript-eslint/parser" "^5.5.0" - babel-preset-react-app "^10.0.1" - confusing-browser-globals "^1.0.11" - eslint-plugin-flowtype "^8.0.3" - eslint-plugin-import "^2.25.3" - eslint-plugin-jest "^25.3.0" - eslint-plugin-jsx-a11y "^6.5.1" - eslint-plugin-react "^7.27.1" - eslint-plugin-react-hooks "^4.3.0" - eslint-plugin-testing-library "^5.0.1" - -eslint-import-resolver-node@^0.3.7: - version "0.3.7" - resolved "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz" - integrity sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA== - dependencies: - debug "^3.2.7" - is-core-module "^2.11.0" - resolve "^1.22.1" - -eslint-module-utils@^2.7.4: - version "2.8.0" - resolved "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz" - integrity sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw== - dependencies: - debug "^3.2.7" - -eslint-plugin-flowtype@^8.0.3: - version "8.0.3" - resolved "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz" - integrity sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ== - dependencies: - lodash "^4.17.21" - string-natural-compare "^3.0.1" - -eslint-plugin-import@^2.25.3: - version "2.27.5" - resolved "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz" - integrity sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow== - dependencies: - array-includes "^3.1.6" - array.prototype.flat "^1.3.1" - array.prototype.flatmap "^1.3.1" - debug "^3.2.7" - doctrine "^2.1.0" - eslint-import-resolver-node "^0.3.7" - eslint-module-utils "^2.7.4" - has "^1.0.3" - is-core-module "^2.11.0" - is-glob "^4.0.3" - minimatch "^3.1.2" - object.values "^1.1.6" - resolve "^1.22.1" - semver "^6.3.0" - tsconfig-paths "^3.14.1" - -eslint-plugin-jest@^25.3.0: - version "25.7.0" - resolved "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz" - integrity sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ== - dependencies: - "@typescript-eslint/experimental-utils" "^5.0.0" - -eslint-plugin-jsx-a11y@^6.5.1: - version "6.7.1" - resolved "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz" - integrity sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA== - dependencies: - "@babel/runtime" "^7.20.7" - aria-query "^5.1.3" - array-includes "^3.1.6" - array.prototype.flatmap "^1.3.1" - ast-types-flow "^0.0.7" - axe-core "^4.6.2" - axobject-query "^3.1.1" - damerau-levenshtein "^1.0.8" - emoji-regex "^9.2.2" - has "^1.0.3" - jsx-ast-utils "^3.3.3" - language-tags "=1.0.5" - minimatch "^3.1.2" - object.entries "^1.1.6" - object.fromentries "^2.0.6" - semver "^6.3.0" - -eslint-plugin-prettier@^4.2.1: - version "4.2.1" - resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz" - integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ== - dependencies: - prettier-linter-helpers "^1.0.0" - -eslint-plugin-react-hooks@^4.2.0, eslint-plugin-react-hooks@^4.3.0: - version "4.6.0" - resolved "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz" - integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g== - -eslint-plugin-react@^7.21.5, eslint-plugin-react@^7.27.1: - version "7.32.2" - resolved "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz" - integrity sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg== - dependencies: - array-includes "^3.1.6" - array.prototype.flatmap "^1.3.1" - array.prototype.tosorted "^1.1.1" - doctrine "^2.1.0" - estraverse "^5.3.0" - jsx-ast-utils "^2.4.1 || ^3.0.0" - minimatch "^3.1.2" - object.entries "^1.1.6" - object.fromentries "^2.0.6" - object.hasown "^1.1.2" - object.values "^1.1.6" - prop-types "^15.8.1" - resolve "^2.0.0-next.4" - semver "^6.3.0" - string.prototype.matchall "^4.0.8" - -eslint-plugin-testing-library@^5.0.1: - version "5.11.0" - resolved "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-5.11.0.tgz" - integrity sha512-ELY7Gefo+61OfXKlQeXNIDVVLPcvKTeiQOoMZG9TeuWa7Ln4dUNRv8JdRWBQI9Mbb427XGlVB1aa1QPZxBJM8Q== - dependencies: - "@typescript-eslint/utils" "^5.58.0" - -eslint-scope@5.1.1, eslint-scope@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz" - integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== - dependencies: - esrecurse "^4.3.0" - estraverse "^4.1.1" - -eslint-scope@^7.2.0: - version "7.2.0" - resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz" - integrity sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw== - dependencies: - esrecurse "^4.3.0" - estraverse "^5.2.0" - -eslint-utils@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz" - integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== - dependencies: - eslint-visitor-keys "^1.1.0" - -eslint-utils@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz" - integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== - dependencies: - eslint-visitor-keys "^2.0.0" - -eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: - version "1.3.0" - resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz" - integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== - -eslint-visitor-keys@^2.0.0, eslint-visitor-keys@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz" - integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== - -eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1: - version "3.4.1" - resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz" - integrity sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA== - -eslint-webpack-plugin@^3.1.1: - version "3.2.0" - resolved "https://registry.npmjs.org/eslint-webpack-plugin/-/eslint-webpack-plugin-3.2.0.tgz" - integrity sha512-avrKcGncpPbPSUHX6B3stNGzkKFto3eL+DKM4+VyMrVnhPc3vRczVlCq3uhuFOdRvDHTVXuzwk1ZKUrqDQHQ9w== - dependencies: - "@types/eslint" "^7.29.0 || ^8.4.1" - jest-worker "^28.0.2" - micromatch "^4.0.5" - normalize-path "^3.0.0" - schema-utils "^4.0.0" - -eslint@^7.22.0: - version "7.32.0" - resolved "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz" - integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== - dependencies: - "@babel/code-frame" "7.12.11" - "@eslint/eslintrc" "^0.4.3" - "@humanwhocodes/config-array" "^0.5.0" - ajv "^6.10.0" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.0.1" - doctrine "^3.0.0" - enquirer "^2.3.5" - escape-string-regexp "^4.0.0" - eslint-scope "^5.1.1" - eslint-utils "^2.1.0" - eslint-visitor-keys "^2.0.0" - espree "^7.3.1" - esquery "^1.4.0" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - functional-red-black-tree "^1.0.1" - glob-parent "^5.1.2" - globals "^13.6.0" - ignore "^4.0.6" - import-fresh "^3.0.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - js-yaml "^3.13.1" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.4.1" - lodash.merge "^4.6.2" - minimatch "^3.0.4" - natural-compare "^1.4.0" - optionator "^0.9.1" - progress "^2.0.0" - regexpp "^3.1.0" - semver "^7.2.1" - strip-ansi "^6.0.0" - strip-json-comments "^3.1.0" - table "^6.0.9" - text-table "^0.2.0" - v8-compile-cache "^2.0.3" - -eslint@^8.3.0: - version "8.41.0" - resolved "https://registry.npmjs.org/eslint/-/eslint-8.41.0.tgz" - integrity sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@eslint-community/regexpp" "^4.4.0" - "@eslint/eslintrc" "^2.0.3" - "@eslint/js" "8.41.0" - "@humanwhocodes/config-array" "^0.11.8" - "@humanwhocodes/module-importer" "^1.0.1" - "@nodelib/fs.walk" "^1.2.8" - ajv "^6.10.0" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.3.2" - doctrine "^3.0.0" - escape-string-regexp "^4.0.0" - eslint-scope "^7.2.0" - eslint-visitor-keys "^3.4.1" - espree "^9.5.2" - esquery "^1.4.2" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - find-up "^5.0.0" - glob-parent "^6.0.2" - globals "^13.19.0" - graphemer "^1.4.0" - ignore "^5.2.0" - import-fresh "^3.0.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - is-path-inside "^3.0.3" - js-yaml "^4.1.0" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.4.1" - lodash.merge "^4.6.2" - minimatch "^3.1.2" - natural-compare "^1.4.0" - optionator "^0.9.1" - strip-ansi "^6.0.1" - strip-json-comments "^3.1.0" - text-table "^0.2.0" - -espree@^7.3.0, espree@^7.3.1: - version "7.3.1" - resolved "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz" - integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== - dependencies: - acorn "^7.4.0" - acorn-jsx "^5.3.1" - eslint-visitor-keys "^1.3.0" - -espree@^9.4.0: - version "9.6.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" - integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== - dependencies: - acorn "^8.9.0" - acorn-jsx "^5.3.2" - eslint-visitor-keys "^3.4.1" - -espree@^9.5.2: - version "9.5.2" - resolved "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz" - integrity sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw== - dependencies: - acorn "^8.8.0" - acorn-jsx "^5.3.2" - eslint-visitor-keys "^3.4.1" - -esprima@^4.0.0, esprima@^4.0.1: - version "4.0.1" - resolved "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - -esquery@^1.4.0, esquery@^1.4.2: - version "1.5.0" - resolved "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz" - integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== - dependencies: - estraverse "^5.1.0" - -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^4.1.1: - version "4.3.0" - resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz" - integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== - -estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: - version "5.3.0" - resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -estree-walker@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz" - integrity sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg== - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -etag@~1.8.1: - version "1.8.1" - resolved "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz" - integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== - -event-target-shim@^5.0.0: - version "5.0.1" - resolved "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz" - integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== - -eventemitter3@^4.0.0: - version "4.0.7" - resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz" - integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== - -events@^3.2.0, events@^3.3.0: - version "3.3.0" - resolved "https://registry.npmjs.org/events/-/events-3.3.0.tgz" - integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== - -eventsource@^1.0.7: - version "1.1.2" - resolved "https://registry.npmjs.org/eventsource/-/eventsource-1.1.2.tgz" - integrity sha512-xAH3zWhgO2/3KIniEKYPr8plNSzlGINOUqYj0m0u7AB81iRw8b/3E73W6AuU+6klLbaSFmZnaETQ2lXPfAydrA== - -evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz" - integrity sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA== - dependencies: - md5.js "^1.3.4" - safe-buffer "^5.1.1" - -execa@^0.7.0: - version "0.7.0" - resolved "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz" - integrity sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw== - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -execa@^0.8.0: - version "0.8.0" - resolved "https://registry.npmjs.org/execa/-/execa-0.8.0.tgz" - integrity sha512-zDWS+Rb1E8BlqqhALSt9kUhss8Qq4nN3iof3gsOdyINksElaPyNBtKUMTR62qhvgVWR0CqCX7sdnKe4MnUbFEA== - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -execa@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" - integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== - dependencies: - cross-spawn "^6.0.0" - get-stream "^4.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -execa@^5.0.0: - version "5.1.1" - resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz" - integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== - dependencies: - cross-spawn "^7.0.3" - get-stream "^6.0.0" - human-signals "^2.1.0" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.1" - onetime "^5.1.2" - signal-exit "^3.0.3" - strip-final-newline "^2.0.0" - -execa@^7.0.0: - version "7.1.1" - resolved "https://registry.npmjs.org/execa/-/execa-7.1.1.tgz" - integrity sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q== - dependencies: - cross-spawn "^7.0.3" - get-stream "^6.0.1" - human-signals "^4.3.0" - is-stream "^3.0.0" - merge-stream "^2.0.0" - npm-run-path "^5.1.0" - onetime "^6.0.0" - signal-exit "^3.0.7" - strip-final-newline "^3.0.0" - -exit@^0.1.2: - version "0.1.2" - resolved "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz" - integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== - -expect@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz" - integrity sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw== - dependencies: - "@jest/types" "^27.5.1" - jest-get-type "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - -express-end@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/express-end/-/express-end-0.0.8.tgz#0c8fd95428932158f2b4cf91f4045346bf2c5323" - integrity sha512-PPntzICAq006LBpXKBVJtmRUiCRqTMZ+OB8L2RFXgx+OmkMWU66IL4DTEPF/DOcxmsuC7Y0NdbT2R71lb+pBpg== - dependencies: - debug "^2.2.0" - -express-queue@^0.0.13: - version "0.0.13" - resolved "https://registry.yarnpkg.com/express-queue/-/express-queue-0.0.13.tgz#e9800d67749d4dfab7c34223f00595af933ce5df" - integrity sha512-C4OEDasGDqpXLrZICSUxbY47p5c0bKqf/3/3hwauSCmI+jVVxKBWU2w39BuKLP6nF65z87uDFBbJMPAn2ZrG3g== - dependencies: - debug "^4.3.4" - express-end "0.0.8" - mini-queue "0.0.14" - -express@3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/express/-/express-3.0.3.tgz#007c7590b1ab31219e6d8d71f86ad5086204868c" - integrity sha512-FvLeKv/gvbKLTQZX0yaJ8xNOImQf8G307G9q7saUk0FDz8ftPpw6FiV5Y5p7dBB5un2pZjrXkgmpERZHr1tuCg== - dependencies: - commander "0.6.1" - connect "2.7.0" - cookie "0.0.5" - cookie-signature "0.0.1" - crc "0.2.0" - debug "*" - fresh "0.1.0" - methods "0.0.1" - mkdirp "0.3.3" - range-parser "0.0.4" - send "0.1.0" - -express@^4.17.3, express@^4.18.2: - version "4.18.2" - resolved "https://registry.npmjs.org/express/-/express-4.18.2.tgz" - integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ== - dependencies: - accepts "~1.3.8" - array-flatten "1.1.1" - body-parser "1.20.1" - content-disposition "0.5.4" - content-type "~1.0.4" - cookie "0.5.0" - cookie-signature "1.0.6" - debug "2.6.9" - depd "2.0.0" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - finalhandler "1.2.0" - fresh "0.5.2" - http-errors "2.0.0" - merge-descriptors "1.0.1" - methods "~1.1.2" - on-finished "2.4.1" - parseurl "~1.3.3" - path-to-regexp "0.1.7" - proxy-addr "~2.0.7" - qs "6.11.0" - range-parser "~1.2.1" - safe-buffer "5.2.1" - send "0.18.0" - serve-static "1.15.0" - setprototypeof "1.2.0" - statuses "2.0.1" - type-is "~1.6.18" - utils-merge "1.0.1" - vary "~1.1.2" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - integrity sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug== - dependencies: - is-extendable "^0.1.0" - -extend@^3.0.0, extend@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" - integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== - -extract-files@^9.0.0: - version "9.0.0" - resolved "https://registry.npmjs.org/extract-files/-/extract-files-9.0.0.tgz" - integrity sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ== - -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - integrity sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g== - -extsprintf@^1.2.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07" - integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA== - -fast-deep-equal@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz" - integrity sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w== - -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-diff@^1.1.2: - version "1.3.0" - resolved "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz" - integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw== - -fast-glob@^3.2.12, fast-glob@^3.2.9: - version "3.2.12" - resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz" - integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== - dependencies: - "@nodelib/fs.stat" "^2.0.2" - "@nodelib/fs.walk" "^1.2.3" - glob-parent "^5.1.2" - merge2 "^1.3.0" - micromatch "^4.0.4" - -fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - -fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: - version "2.0.6" - resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" - integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== - -fast-redact@^3.0.0: - version "3.2.0" - resolved "https://registry.npmjs.org/fast-redact/-/fast-redact-3.2.0.tgz" - integrity sha512-zaTadChr+NekyzallAMXATXLOR8MNx3zqpZ0MUF2aGf4EathnG0f32VLODNlY8IuGY3HoRO2L6/6fSzNsLaHIw== - -fast-url-parser@1.1.3: - version "1.1.3" - resolved "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz" - integrity sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ== - dependencies: - punycode "^1.3.2" - -fastq@^1.6.0: - version "1.15.0" - resolved "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz" - integrity sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw== - dependencies: - reusify "^1.0.4" - -faye-websocket@^0.11.3: - version "0.11.4" - resolved "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz" - integrity sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g== - dependencies: - websocket-driver ">=0.5.1" - -fb-watchman@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz" - integrity sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA== - dependencies: - bser "2.1.1" - -fetch-cookie@^0.7.3: - version "0.7.3" - resolved "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-0.7.3.tgz" - integrity sha512-rZPkLnI8x5V+zYAiz8QonAHsTb4BY+iFowFBI1RFn0zrO343AVp9X7/yUj/9wL6Ef/8fLls8b/vGtzUvmyAUGA== - dependencies: - es6-denodeify "^0.1.1" - tough-cookie "^2.3.3" - -fetch-node@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/fetch-node/-/fetch-node-0.0.1.tgz#61d366345c30648790d3ebe21b42eeb876a43c63" - integrity sha512-dMIE07dVTZkaAYJ2F7YoAJNp95oHwMkgT9umMChOXOEU75fNedhVR571htinPpE5IFmh4n3g7KyFC6wpxT7XPw== - dependencies: - hooks-node "" - request "" - -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== - dependencies: - flat-cache "^3.0.4" - -file-loader@^6.2.0: - version "6.2.0" - resolved "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz" - integrity sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw== - dependencies: - loader-utils "^2.0.0" - schema-utils "^3.0.0" - -filelist@^1.0.4: - version "1.0.4" - resolved "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz" - integrity sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q== - dependencies: - minimatch "^5.0.1" - -filesize@^8.0.6: - version "8.0.7" - resolved "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz" - integrity sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ== - -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - -filter-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz" - integrity sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ== - -finalhandler@1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz" - integrity sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg== - dependencies: - debug "2.6.9" - encodeurl "~1.0.2" - escape-html "~1.0.3" - on-finished "2.4.1" - parseurl "~1.3.3" - statuses "2.0.1" - unpipe "~1.0.0" - -find-cache-dir@^3.3.1: - version "3.3.2" - resolved "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz" - integrity sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig== - dependencies: - commondir "^1.0.1" - make-dir "^3.0.2" - pkg-dir "^4.1.0" - -find-root@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz" - integrity sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng== - -find-up@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - integrity sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ== - dependencies: - locate-path "^2.0.0" - -find-up@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz" - integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== - dependencies: - locate-path "^3.0.0" - -find-up@^4.0.0, find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -fitty@2: - version "2.3.7" - resolved "https://registry.npmjs.org/fitty/-/fitty-2.3.7.tgz" - integrity sha512-yucQBzDD8sRa8EXfHu4/h9vNDFHUXpYtC+nydtBRfLSjzToCEvacy4qiBJyihgUVrqpXB+Kp5kWCbROSrePd2g== - -flat-cache@^3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz" - integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== - dependencies: - flatted "^3.1.0" - rimraf "^3.0.2" - -flatted@^3.1.0: - version "3.2.7" - resolved "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz" - integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== - -focus-trap@^6.2.2: - version "6.9.4" - resolved "https://registry.npmjs.org/focus-trap/-/focus-trap-6.9.4.tgz" - integrity sha512-v2NTsZe2FF59Y+sDykKY+XjqZ0cPfhq/hikWVL88BqLivnNiEffAsac6rP6H45ff9wG9LL5ToiDqrLEP9GX9mw== - dependencies: - tabbable "^5.3.3" - -follow-redirects@^1.0.0, follow-redirects@^1.14.4, follow-redirects@^1.14.8: - version "1.15.2" - resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz" - integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== - -for-each@^0.3.3: - version "0.3.3" - resolved "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz" - integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw== - dependencies: - is-callable "^1.1.3" - -for-in@^0.1.3: - version "0.1.8" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.8.tgz#d8773908e31256109952b1fdb9b3fa867d2775e1" - integrity sha512-F0to7vbBSHP8E3l6dCjxNOLuSFAACIxFy3UehTUlG7svlXi37HHsDkyVcHo0Pq8QwrE+pXvWSVX3ZT1T9wAZ9g== - -for-in@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ== - -for-own@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-1.0.0.tgz#c63332f415cedc4b04dbfe70cf836494c53cb44b" - integrity sha512-0OABksIGrxKK8K4kynWkQ7y1zounQxP+CWnyclVwj81KW3vlLlGUx57DKGcP/LH216GzqnstnPocF16Nxs0Ycg== - dependencies: - for-in "^1.0.1" - -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - integrity sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw== - -fork-ts-checker-webpack-plugin@^6.5.0: - version "6.5.3" - resolved "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz" - integrity sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ== - dependencies: - "@babel/code-frame" "^7.8.3" - "@types/json-schema" "^7.0.5" - chalk "^4.1.0" - chokidar "^3.4.2" - cosmiconfig "^6.0.0" - deepmerge "^4.2.2" - fs-extra "^9.0.0" - glob "^7.1.6" - memfs "^3.1.2" - minimatch "^3.0.4" - schema-utils "2.7.0" - semver "^7.3.2" - tapable "^1.0.0" - -form-data@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz" - integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -form-data@~2.3.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" - integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.6" - mime-types "^2.1.12" - -formidable@1.0.11: - version "1.0.11" - resolved "https://registry.yarnpkg.com/formidable/-/formidable-1.0.11.tgz#68f63325a035e644b6f7bb3d11243b9761de1b30" - integrity sha512-ZG3xz6afuCmpLGNtTI/W8HDKWisPv/iZgtEvfB1nF3vJHDJ2M4hpU/HDLJQYnTVqErpaLphweqOMULwP/Ls6cg== - -formik-material-ui-lab@^0.0.8: - version "0.0.8" - resolved "https://registry.npmjs.org/formik-material-ui-lab/-/formik-material-ui-lab-0.0.8.tgz" - integrity sha512-i7rWoAJU0XgBJEEkyAqqI2rxZA/hS7/XlomYQAybFf4tjhO1sfnIJZ/vITs9Wl18zMs9s1gmXCMq9Sjk0ErKcA== - -formik-material-ui@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/formik-material-ui/-/formik-material-ui-3.0.1.tgz" - integrity sha512-N8oxZIdhY70npRv86IfF6Zaaps9RL3a37XRdq02WDroB3XZC1mXs6lA/zQ09ZYFWYJp/UjI80SKVpVa/xJOJJA== - -formik@^2.2.6: - version "2.4.1" - resolved "https://registry.npmjs.org/formik/-/formik-2.4.1.tgz" - integrity sha512-ajOB9EmFhXb4PACTlaooVEn7PLtLtBJEZ8fPs+wFZjL5KSGwgAoU+n9DHN8JcqNKcXkloEYYtn1lxrLav18ecQ== - dependencies: - deepmerge "^2.1.1" - hoist-non-react-statics "^3.3.0" - lodash "^4.17.21" - lodash-es "^4.17.21" - react-fast-compare "^2.0.1" - tiny-warning "^1.0.2" - tslib "^1.10.0" - -forwarded@0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz" - integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== - -fraction.js@^4.2.0: - version "4.2.0" - resolved "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz" - integrity sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA== - -fresh@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.1.0.tgz#03e4b0178424e4c2d5d19a54d8814cdc97934850" - integrity sha512-ROG9M8tikYOuOJsvRBggh10WiQ/JebnldAwuCaQyFoiAUIE9XrYVnpznIjOQGZfCMzxzEBYHQr/LHJp3tcndzQ== - -fresh@0.5.2: - version "0.5.2" - resolved "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz" - integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== - -fs-extra@^10.0.0: - version "10.1.0" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz" - integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - -fs-extra@^9.0.0, fs-extra@^9.0.1: - version "9.1.0" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz" - integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== - dependencies: - at-least-node "^1.0.0" - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - -fs-monkey@^1.0.3: - version "1.0.4" - resolved "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.4.tgz" - integrity sha512-INM/fWAxMICjttnD0DX1rBvinKskj5G1w+oy/pnm9u/tSlnBrzFonJMcalKJ30P8RRsPzKcCG7Q8l0jx5Fh9YQ== - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" - integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== - -fsevents@^2.3.2, fsevents@~2.3.2: - version "2.3.2" - resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== - -function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" - integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== - -function.prototype.name@^1.1.5: - version "1.1.5" - resolved "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz" - integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.0" - functions-have-names "^1.2.2" - -functional-red-black-tree@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz" - integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== - -functions-have-names@^1.2.2, functions-have-names@^1.2.3: - version "1.2.3" - resolved "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz" - integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== - -gensync@^1.0.0-beta.2: - version "1.0.0-beta.2" - resolved "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz" - integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== - -get-caller-file@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" - integrity sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w== - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0: - version "1.2.1" - resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz" - integrity sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw== - dependencies: - function-bind "^1.1.1" - has "^1.0.3" - has-proto "^1.0.1" - has-symbols "^1.0.3" - -get-own-enumerable-property-symbols@^3.0.0: - version "3.0.2" - resolved "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz" - integrity sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g== - -get-package-type@^0.1.0: - version "0.1.0" - resolved "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz" - integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== - -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz" - integrity sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ== - -get-stream@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" - integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== - dependencies: - pump "^3.0.0" - -get-stream@^6.0.0, get-stream@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" - integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== - -get-symbol-description@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz" - integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.1" - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - integrity sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng== - dependencies: - assert-plus "^1.0.0" - -glob-parent@^5.1.2, glob-parent@~5.1.2: - version "5.1.2" - resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== - dependencies: - is-glob "^4.0.1" - -glob-parent@^6.0.2: - version "6.0.2" - resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz" - integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== - dependencies: - is-glob "^4.0.3" - -glob-to-regexp@^0.4.1: - version "0.4.1" - resolved "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz" - integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== - -glob@7.1.6: - version "7.1.6" - resolved "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: - version "7.2.3" - resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz" - integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.1.1" - once "^1.3.0" - path-is-absolute "^1.0.0" - -global-modules@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz" - integrity sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A== - dependencies: - global-prefix "^3.0.0" - -global-prefix@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz" - integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== - dependencies: - ini "^1.3.5" - kind-of "^6.0.2" - which "^1.3.1" - -globals@^11.1.0: - version "11.12.0" - resolved "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz" - integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== - -globals@^13.19.0, globals@^13.6.0, globals@^13.9.0: - version "13.20.0" - resolved "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz" - integrity sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ== - dependencies: - type-fest "^0.20.2" - -globalthis@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz" - integrity sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA== - dependencies: - define-properties "^1.1.3" - -globby@^11.0.3, globby@^11.0.4, globby@^11.1.0: - version "11.1.0" - resolved "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz" - integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== - dependencies: - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.2.9" - ignore "^5.2.0" - merge2 "^1.4.1" - slash "^3.0.0" - -gopd@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz" - integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== - dependencies: - get-intrinsic "^1.1.3" - -graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9: - version "4.2.11" - resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz" - integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== - -grapheme-splitter@^1.0.4: - version "1.0.4" - resolved "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz" - integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== - -graphemer@^1.4.0: - version "1.4.0" - resolved "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz" - integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== - -graphql-request@^3.4.0: - version "3.7.0" - resolved "https://registry.npmjs.org/graphql-request/-/graphql-request-3.7.0.tgz" - integrity sha512-dw5PxHCgBneN2DDNqpWu8QkbbJ07oOziy8z+bK/TAXufsOLaETuVO4GkXrbs0WjhdKhBMN3BkpN/RIvUHkmNUQ== - dependencies: - cross-fetch "^3.0.6" - extract-files "^9.0.0" - form-data "^3.0.0" - -graphql@^15.5.1: - version "15.8.0" - resolved "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz" - integrity sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw== - -gzip-size@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz" - integrity sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q== - dependencies: - duplexer "^0.1.2" - -handle-thing@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz" - integrity sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg== - -har-schema@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" - integrity sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q== - -har-validator@~5.1.3: - version "5.1.5" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.5.tgz#1f0803b9f8cb20c0fa13822df1ecddb36bde1efd" - integrity sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w== - dependencies: - ajv "^6.12.3" - har-schema "^2.0.0" - -harmony-reflect@^1.4.6: - version "1.6.2" - resolved "https://registry.npmjs.org/harmony-reflect/-/harmony-reflect-1.6.2.tgz" - integrity sha512-HIp/n38R9kQjDEziXyDTuW3vvoxxyxjxFzXLrBr18uB47GnSt+G9D29fqrpM5ZkspMcPICud3XsBJQ4Y2URg8g== - -has-bigints@^1.0.1, has-bigints@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz" - integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" - integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-property-descriptors@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz" - integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== - dependencies: - get-intrinsic "^1.1.1" - -has-proto@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz" - integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== - -has-symbols@^1.0.1, has-symbols@^1.0.2, has-symbols@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" - integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== - -has-tostringtag@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz" - integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== - dependencies: - has-symbols "^1.0.2" - -has@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/has/-/has-1.0.3.tgz" - integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== - dependencies: - function-bind "^1.1.1" - -hash-base@^3.0.0: - version "3.1.0" - resolved "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz" - integrity sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA== - dependencies: - inherits "^2.0.4" - readable-stream "^3.6.0" - safe-buffer "^5.2.0" - -hash.js@^1.0.0, hash.js@^1.0.3: - version "1.1.7" - resolved "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz" - integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA== - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.1" - -hast-util-from-parse5@^7.0.0: - version "7.1.2" - resolved "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-7.1.2.tgz" - integrity sha512-Nz7FfPBuljzsN3tCQ4kCBKqdNhQE2l0Tn+X1ubgKBPRoiDIu1mL08Cfw4k7q71+Duyaw7DXDN+VTAp4Vh3oCOw== - dependencies: - "@types/hast" "^2.0.0" - "@types/unist" "^2.0.0" - hastscript "^7.0.0" - property-information "^6.0.0" - vfile "^5.0.0" - vfile-location "^4.0.0" - web-namespaces "^2.0.0" - -hast-util-parse-selector@^3.0.0: - version "3.1.1" - resolved "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-3.1.1.tgz" - integrity sha512-jdlwBjEexy1oGz0aJ2f4GKMaVKkA9jwjr4MjAAI22E5fM/TXVZHuS5OpONtdeIkRKqAaryQ2E9xNQxijoThSZA== - dependencies: - "@types/hast" "^2.0.0" - -hast-util-raw@^7.2.0: - version "7.2.3" - resolved "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-7.2.3.tgz" - integrity sha512-RujVQfVsOrxzPOPSzZFiwofMArbQke6DJjnFfceiEbFh7S05CbPt0cYN+A5YeD3pso0JQk6O1aHBnx9+Pm2uqg== - dependencies: - "@types/hast" "^2.0.0" - "@types/parse5" "^6.0.0" - hast-util-from-parse5 "^7.0.0" - hast-util-to-parse5 "^7.0.0" - html-void-elements "^2.0.0" - parse5 "^6.0.0" - unist-util-position "^4.0.0" - unist-util-visit "^4.0.0" - vfile "^5.0.0" - web-namespaces "^2.0.0" - zwitch "^2.0.0" - -hast-util-to-parse5@^7.0.0: - version "7.1.0" - resolved "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-7.1.0.tgz" - integrity sha512-YNRgAJkH2Jky5ySkIqFXTQiaqcAtJyVE+D5lkN6CdtOqrnkLfGYYrEcKuHOJZlp+MwjSwuD3fZuawI+sic/RBw== - dependencies: - "@types/hast" "^2.0.0" - comma-separated-tokens "^2.0.0" - property-information "^6.0.0" - space-separated-tokens "^2.0.0" - web-namespaces "^2.0.0" - zwitch "^2.0.0" - -hast-util-whitespace@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-2.0.1.tgz" - integrity sha512-nAxA0v8+vXSBDt3AnRUNjyRIQ0rD+ntpbAp4LnPkumc5M9yUbSMa4XDU9Q6etY4f1Wp4bNgvc1yjiZtsTTrSng== - -hastscript@^7.0.0: - version "7.2.0" - resolved "https://registry.npmjs.org/hastscript/-/hastscript-7.2.0.tgz" - integrity sha512-TtYPq24IldU8iKoJQqvZOuhi5CyCQRAbvDOX0x1eW6rsHSxa/1i2CCiptNTotGHJ3VoHRGmqiv6/D3q113ikkw== - dependencies: - "@types/hast" "^2.0.0" - comma-separated-tokens "^2.0.0" - hast-util-parse-selector "^3.0.0" - property-information "^6.0.0" - space-separated-tokens "^2.0.0" - -he@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/he/-/he-1.2.0.tgz" - integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== - -hex-to-rgba@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/hex-to-rgba/-/hex-to-rgba-2.0.1.tgz" - integrity sha512-5XqPJBpsEUMsseJUi2w2Hl7cHFFi3+OO10M2pzAvKB1zL6fc+koGMhmBqoDOCB4GemiRM/zvDMRIhVw6EkB8dQ== - -history@^4.9.0: - version "4.10.1" - resolved "https://registry.npmjs.org/history/-/history-4.10.1.tgz" - integrity sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew== - dependencies: - "@babel/runtime" "^7.1.2" - loose-envify "^1.2.0" - resolve-pathname "^3.0.0" - tiny-invariant "^1.0.2" - tiny-warning "^1.0.0" - value-equal "^1.0.1" - -hmac-drbg@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz" - integrity sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg== - dependencies: - hash.js "^1.0.3" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.1" - -hogan-express@: - version "0.5.2" - resolved "https://registry.yarnpkg.com/hogan-express/-/hogan-express-0.5.2.tgz#52994ac842a423d4e1075181b9a3247de36950eb" - integrity sha512-tJsDoMyiK3aIdDz9liyQ9j+dwpK+pvGXxAaRZ8Cp5LS1dJlihtkZo+0rROwqZ2yqrxsjboMIrADq/W/HePBBgQ== - dependencies: - hogan.js ">=2.0.0" - -hogan.js@>=2.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/hogan.js/-/hogan.js-3.0.2.tgz#4cd9e1abd4294146e7679e41d7898732b02c7bfd" - integrity sha512-RqGs4wavGYJWE07t35JQccByczmNUXQT0E12ZYV1VKYu5UiAU9lsos/yBAcf840+zrUQQxgVduCR5/B8nNtibg== - dependencies: - mkdirp "0.3.0" - nopt "1.0.10" - -hoist-non-react-statics@^3.1.0, hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.1, hoist-non-react-statics@^3.3.2: - version "3.3.2" - resolved "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz" - integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw== - dependencies: - react-is "^16.7.0" - -hooks-node@: - version "0.0.1" - resolved "https://registry.yarnpkg.com/hooks-node/-/hooks-node-0.0.1.tgz#0fb3956293fd876b38aed3986bc8dec689ff15c8" - integrity sha512-aQ2z99Ilj9dPTAIBXUJJYDO3mFbbzxJMMqTciWkVXECdkLjGHH3MnFUDVw97qPsYiAE2A0Ic9WXlxNsDRrtmLQ== - dependencies: - express "3.0.3" - hogan-express "" - request "" - -hoopy@^0.1.4: - version "0.1.4" - resolved "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz" - integrity sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ== - -hpack.js@^2.1.6: - version "2.1.6" - resolved "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz" - integrity sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ== - dependencies: - inherits "^2.0.1" - obuf "^1.0.0" - readable-stream "^2.0.1" - wbuf "^1.1.0" - -html-encoding-sniffer@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz" - integrity sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ== - dependencies: - whatwg-encoding "^1.0.5" - -html-entities@^2.1.0, html-entities@^2.3.2: - version "2.3.3" - resolved "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz" - integrity sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA== - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -html-minifier-terser@^6.0.2: - version "6.1.0" - resolved "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz" - integrity sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw== - dependencies: - camel-case "^4.1.2" - clean-css "^5.2.2" - commander "^8.3.0" - he "^1.2.0" - param-case "^3.0.4" - relateurl "^0.2.7" - terser "^5.10.0" - -html-void-elements@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/html-void-elements/-/html-void-elements-2.0.1.tgz" - integrity sha512-0quDb7s97CfemeJAnW9wC0hw78MtW7NU3hqtCD75g2vFlDLt36llsYD7uB7SUzojLMP24N5IatXf7ylGXiGG9A== - -html-webpack-plugin@^5.5.0: - version "5.5.1" - resolved "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.5.1.tgz" - integrity sha512-cTUzZ1+NqjGEKjmVgZKLMdiFg3m9MdRXkZW2OEe69WYVi5ONLMmlnSZdXzGGMOq0C8jGDrL6EWyEDDUioHO/pA== - dependencies: - "@types/html-minifier-terser" "^6.0.0" - html-minifier-terser "^6.0.2" - lodash "^4.17.21" - pretty-error "^4.0.0" - tapable "^2.0.0" - -htmlparser2@^3.9.0: - version "3.10.1" - resolved "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz" - integrity sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ== - dependencies: - domelementtype "^1.3.1" - domhandler "^2.3.0" - domutils "^1.5.1" - entities "^1.1.1" - inherits "^2.0.1" - readable-stream "^3.1.1" - -htmlparser2@^6.1.0: - version "6.1.0" - resolved "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz" - integrity sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A== - dependencies: - domelementtype "^2.0.1" - domhandler "^4.0.0" - domutils "^2.5.2" - entities "^2.0.0" - -http-deceiver@^1.2.7: - version "1.2.7" - resolved "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz" - integrity sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw== - -http-errors@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz" - integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== - dependencies: - depd "2.0.0" - inherits "2.0.4" - setprototypeof "1.2.0" - statuses "2.0.1" - toidentifier "1.0.1" - -http-errors@~1.6.1, http-errors@~1.6.2: - version "1.6.3" - resolved "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz" - integrity sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A== - dependencies: - depd "~1.1.2" - inherits "2.0.3" - setprototypeof "1.1.0" - statuses ">= 1.4.0 < 2" - -http-parser-js@>=0.5.1: - version "0.5.8" - resolved "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz" - integrity sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q== - -http-proxy-agent@^4.0.1: - version "4.0.1" - resolved "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz" - integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== - dependencies: - "@tootallnate/once" "1" - agent-base "6" - debug "4" - -http-proxy-middleware@^2.0.3: - version "2.0.6" - resolved "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz" - integrity sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw== - dependencies: - "@types/http-proxy" "^1.17.8" - http-proxy "^1.18.1" - is-glob "^4.0.1" - is-plain-obj "^3.0.0" - micromatch "^4.0.2" - -http-proxy@^1.18.1: - version "1.18.1" - resolved "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz" - integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ== - dependencies: - eventemitter3 "^4.0.0" - follow-redirects "^1.0.0" - requires-port "^1.0.0" - -http-signature@~1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" - integrity sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ== - dependencies: - assert-plus "^1.0.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -https-browserify@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz" - integrity sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg== - -https-proxy-agent@^5.0.0: - version "5.0.1" - resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz" - integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== - dependencies: - agent-base "6" - debug "4" - -human-signals@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz" - integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== - -human-signals@^4.3.0: - version "4.3.1" - resolved "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz" - integrity sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ== - -husky@^8.0.1: - version "8.0.3" - resolved "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz" - integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg== - -hyphenate-style-name@^1.0.3: - version "1.0.4" - resolved "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz" - integrity sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ== - -iconv-lite@0.4.24: - version "0.4.24" - resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - -iconv-lite@^0.6.3: - version "0.6.3" - resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz" - integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== - dependencies: - safer-buffer ">= 2.1.2 < 3.0.0" - -icss-utils@^5.0.0, icss-utils@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz" - integrity sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA== - -idb@^7.0.1: - version "7.1.1" - resolved "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz" - integrity sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ== - -identity-obj-proxy@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz" - integrity sha512-00n6YnVHKrinT9t0d9+5yZC6UBNJANpYEQvL2LlX6Ab9lnmxzIRcEmTPuyGScvl1+jKuCICX1Z0Ab1pPKKdikA== - dependencies: - harmony-reflect "^1.4.6" - -ieee754@^1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" - integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== - -ignore-by-default@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz" - integrity sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA== - -ignore@^4.0.6: - version "4.0.6" - resolved "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz" - integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== - -ignore@^5.1.8, ignore@^5.2.0: - version "5.2.4" - resolved "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz" - integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== - -immer@^9.0.7: - version "9.0.21" - resolved "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz" - integrity sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA== - -import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1: - version "3.3.0" - resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" - integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== - dependencies: - parent-module "^1.0.0" - resolve-from "^4.0.0" - -import-local@^3.0.2: - version "3.1.0" - resolved "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz" - integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== - dependencies: - pkg-dir "^4.2.0" - resolve-cwd "^3.0.0" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" - integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== - -indent-string@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz" - integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" - integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== - dependencies: - once "^1.3.0" - wrappy "1" - -info-symbol@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/info-symbol/-/info-symbol-0.1.0.tgz#27841d72867ddb4242cd612d79c10633881c6a78" - integrity sha512-qkc9wjLDQ+dYYZnY5uJXGNNHyZ0UOMDUnhvy0SEZGVVYmQ5s4i8cPAin2MbU6OxJgi8dfj/AnwqPx0CJE6+Lsw== - -inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3, inherits@~2.0.4: - version "2.0.4" - resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -inherits@2.0.3: - version "2.0.3" - resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz" - integrity sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw== - -ini@^1.3.5, ini@~1.3.0: - version "1.3.8" - resolved "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz" - integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== - -inline-style-parser@0.1.1: - version "0.1.1" - resolved "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.1.1.tgz" - integrity sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q== - -internal-slot@^1.0.3, internal-slot@^1.0.4, internal-slot@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz" - integrity sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ== +browserslist@^4.21.5: + version "4.21.7" + resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.21.7.tgz" + integrity sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA== dependencies: - get-intrinsic "^1.2.0" - has "^1.0.3" - side-channel "^1.0.4" - -invert-kv@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-2.0.0.tgz#7393f5afa59ec9ff5f67a27620d11c226e3eec02" - integrity sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA== - -ipaddr.js@1.9.1: - version "1.9.1" - resolved "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz" - integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== - -ipaddr.js@^2.0.1: - version "2.1.0" - resolved "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz" - integrity sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ== + caniuse-lite "^1.0.30001489" + electron-to-chromium "^1.4.411" + node-releases "^2.0.12" + update-browserslist-db "^1.0.11" -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - integrity sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A== +bs58@^4.0.0: + version "4.0.1" + resolved "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz" + integrity sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw== dependencies: - kind-of "^3.0.2" + base-x "^3.0.2" -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== +bs58check@2.1.2, bs58check@^2.1.2: + version "2.1.2" + resolved "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz" + integrity sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA== dependencies: - kind-of "^6.0.0" + bs58 "^4.0.0" + create-hash "^1.1.0" + safe-buffer "^5.1.2" -is-arguments@^1.0.4, is-arguments@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz" - integrity sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" +btoa@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz" + integrity sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g== -is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz" - integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w== +buffer@^6.0.3: + version "6.0.3" + resolved "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz" + integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.2.0" - is-typed-array "^1.1.10" + base64-js "^1.3.1" + ieee754 "^1.2.1" -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz" - integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== +builtin-status-codes@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz" + integrity sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ== -is-bigint@^1.0.1: - version "1.0.4" - resolved "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz" - integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== - dependencies: - has-bigints "^1.0.1" +bytes@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-0.1.0.tgz#c574812228126d6369d1576925a8579db3f8e5a2" + integrity sha512-zTSmfpu7b+Mll4T9ZjTYUO3Q6+m+F3ZEQ515ZECaAFhmmHiRl/UcdcAsuFyVklbMRo9GWyRyqTsB6C6ahjGnVA== -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" +bytes@3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz" + integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== -is-boolean-object@^1.1.0: - version "1.1.2" - resolved "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz" - integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" +bytes@3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" + integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== +call-bind@^1.0.0, call-bind@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz" + integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== + dependencies: + function-bind "^1.1.1" + get-intrinsic "^1.0.2" -is-buffer@^2.0.0: - version "2.0.5" - resolved "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz" - integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== -is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: - version "1.2.7" - resolved "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz" - integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== +camelcase@^4.0.0: + version "4.1.0" + resolved "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz" + integrity sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw== -is-core-module@^2.11.0, is-core-module@^2.9.0: - version "2.12.1" - resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz" - integrity sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg== - dependencies: - has "^1.0.3" +caniuse-lite@^1.0.30001464, caniuse-lite@^1.0.30001489: + version "1.0.30001492" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001492.tgz" + integrity sha512-2efF8SAZwgAX1FJr87KWhvuJxnGJKOnctQa8xLOskAXNXq8oiuqgl6u1kk3fFpsp3GgvzlRjiK1sl63hNtFADw== -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - integrity sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg== - dependencies: - kind-of "^3.0.2" +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== - dependencies: - kind-of "^6.0.0" +ccount@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz" + integrity sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg== -is-date-object@^1.0.1, is-date-object@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz" - integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== +chalk@2.4.1: + version "2.4.1" + resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz" + integrity sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ== dependencies: - has-tostringtag "^1.0.0" + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" +chalk@5.2.0: + version "5.2.0" + resolved "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz" + integrity sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA== -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== +chalk@^2.0.0, chalk@^2.0.1: + version "2.4.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-docker@^2.0.0, is-docker@^2.1.1: - version "2.2.1" - resolved "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz" - integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - integrity sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw== - -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" - integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - integrity sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw== +chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: + version "4.1.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== dependencies: - number-is-nan "^1.0.0" - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz" - integrity sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w== - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-fullwidth-code-point@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz" - integrity sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ== + ansi-styles "^4.1.0" + supports-color "^7.1.0" -is-generator-fn@^2.0.0: - version "2.1.0" - resolved "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz" - integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== +character-entities@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz" + integrity sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ== -is-generator-function@^1.0.7: - version "1.0.10" - resolved "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz" - integrity sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A== +chokidar@^3.5.2: + version "3.5.3" + resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz" + integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== dependencies: - has-tostringtag "^1.0.0" + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: - version "4.0.3" - resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== +cipher-base@^1.0.1, cipher-base@^1.0.3: + version "1.0.4" + resolved "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz" + integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q== dependencies: - is-extglob "^2.1.1" - -is-in-browser@^1.0.2, is-in-browser@^1.1.3: - version "1.1.3" - resolved "https://registry.npmjs.org/is-in-browser/-/is-in-browser-1.1.3.tgz" - integrity sha512-FeXIBgG/CPGd/WUxuEyvgGTEfwiG9Z4EKGxjNMRqviiIIfsmgrpnHLffEDdwUHqNva1VEW91o3xBT/m8Elgl9g== + inherits "^2.0.1" + safe-buffer "^5.0.1" -is-map@^2.0.1, is-map@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz" - integrity sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg== +clean-stack@^2.0.0: + version "2.2.0" + resolved "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz" + integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== -is-module@^1.0.0: +cli-boxes@^1.0.0: version "1.0.0" - resolved "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz" - integrity sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g== + resolved "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz" + integrity sha512-3Fo5wu8Ytle8q9iCzS4D2MWVL2X7JVWRiS1BnXbTFDhS9c/REkM9vd1AmabsoZoY5/dGi5TT9iKL8Kb6DeBRQg== -is-nan@^1.2.1: - version "1.3.2" - resolved "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz" - integrity sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w== +cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - -is-negative-zero@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz" - integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== + restore-cursor "^3.1.0" -is-number-object@^1.0.4: - version "1.0.7" - resolved "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz" - integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== +cli-truncate@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz" + integrity sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg== dependencies: - has-tostringtag "^1.0.0" + slice-ansi "^3.0.0" + string-width "^4.2.0" -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg== +cli-truncate@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz" + integrity sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA== dependencies: - kind-of "^3.0.2" - -is-number@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-6.0.0.tgz#e6d15ad31fc262887cccf217ae5f9316f81b1995" - integrity sha512-Wu1VHeILBK8KAWJUAiSZQX94GmOE45Rg6/538fKwiloUu21KncEkYGPqob2oSZ5mUT73vLGrHQjKw3KMPwfDzg== - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-obj@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz" - integrity sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg== + slice-ansi "^5.0.0" + string-width "^5.0.0" -is-path-inside@^3.0.3: - version "3.0.3" - resolved "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz" - integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== +clipboardy@1.2.3: + version "1.2.3" + resolved "https://registry.npmjs.org/clipboardy/-/clipboardy-1.2.3.tgz" + integrity sha512-2WNImOvCRe6r63Gk9pShfkwXsVtKCroMAevIbiae021mS850UkWPbevxsBz3tnvjZIEGvlwaqCPsw+4ulzNgJA== + dependencies: + arch "^2.1.0" + execa "^0.8.0" -is-plain-obj@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz" - integrity sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA== +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz" + integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" -is-plain-obj@^4.0.0: - version "4.1.0" - resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz" - integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg== +cliui@^8.0.1: + version "8.0.1" + resolved "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" + integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" -is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== +clone-deep@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz" + integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== dependencies: - isobject "^3.0.1" + is-plain-object "^2.0.4" + kind-of "^6.0.2" + shallow-clone "^3.0.0" -is-potential-custom-element-name@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz" - integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" -is-regex@^1.1.4: - version "1.1.4" - resolved "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz" - integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" + color-name "~1.1.4" -is-regexp@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz" - integrity sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA== +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== -is-root@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz" - integrity sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg== +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -is-set@^2.0.1, is-set@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz" - integrity sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g== +colorette@^2.0.19: + version "2.0.20" + resolved "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz" + integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== -is-shared-array-buffer@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz" - integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== +combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== dependencies: - call-bind "^1.0.2" + delayed-stream "~1.0.0" -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz" - integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== +comma-separated-tokens@^2.0.0: + version "2.0.3" + resolved "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz" + integrity sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg== -is-stream@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz" - integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== +commander@0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-0.6.1.tgz#fa68a14f6a945d54dbbe50d8cdb3320e9e3b1a06" + integrity sha512-0fLycpl1UMTGX257hRsu/arL/cUbcvQM4zMKwvLvzXtfdezIV4yotPS2dYtknF+NmEfWSoCEF6+hj9XLm/6hEw== -is-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz" - integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA== +commander@11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-11.1.0.tgz#62fdce76006a68e5c1ab3314dc92e800eb83d906" + integrity sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ== -is-string@^1.0.5, is-string@^1.0.7: - version "1.0.7" - resolved "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz" - integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== - dependencies: - has-tostringtag "^1.0.0" +commander@^10.0.0: + version "10.0.1" + resolved "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz" + integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== -is-symbol@^1.0.2, is-symbol@^1.0.3: - version "1.0.4" - resolved "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz" - integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== +compressible@~2.0.14: + version "2.0.18" + resolved "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz" + integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== dependencies: - has-symbols "^1.0.2" + mime-db ">= 1.43.0 < 2" -is-typed-array@^1.1.10, is-typed-array@^1.1.3, is-typed-array@^1.1.9: - version "1.1.10" - resolved "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz" - integrity sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A== +compression@1.7.3: + version "1.7.3" + resolved "https://registry.npmjs.org/compression/-/compression-1.7.3.tgz" + integrity sha512-HSjyBG5N1Nnz7tF2+O7A9XUhyjru71/fwgNb7oIsEVHR0WShfs2tIS/EySLgiTe98aOK18YDlMXpzjCXY/n9mg== dependencies: - available-typed-arrays "^1.0.5" - call-bind "^1.0.2" - for-each "^0.3.3" - gopd "^1.0.1" - has-tostringtag "^1.0.0" + accepts "~1.3.5" + bytes "3.0.0" + compressible "~2.0.14" + debug "2.6.9" + on-headers "~1.0.1" + safe-buffer "5.1.2" + vary "~1.1.2" -is-typedarray@^1.0.0, is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== -is-weakmap@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz" - integrity sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA== +concurrently@^8.2.0: + version "8.2.0" + resolved "https://registry.npmjs.org/concurrently/-/concurrently-8.2.0.tgz" + integrity sha512-nnLMxO2LU492mTUj9qX/az/lESonSZu81UznYDoXtz1IQf996ixVqPAgHXwvHiHCAef/7S8HIK+fTFK7Ifk8YA== + dependencies: + chalk "^4.1.2" + date-fns "^2.30.0" + lodash "^4.17.21" + rxjs "^7.8.1" + shell-quote "^1.8.1" + spawn-command "0.0.2" + supports-color "^8.1.1" + tree-kill "^1.2.2" + yargs "^17.7.2" -is-weakref@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz" - integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== +connect-timeout@^1.9.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/connect-timeout/-/connect-timeout-1.9.0.tgz#bc27326b122103714bebfa0d958bab33f6522e3a" + integrity sha512-q4bsBIPd+eSGtnh/u6EBOKfuG+4YvwsN0idlOsg6KAw71Qpi0DCf2eCc/Va63QU9qdOeYC8katxoC+rHMNygZg== dependencies: - call-bind "^1.0.2" + http-errors "~1.6.1" + ms "2.0.0" + on-finished "~2.3.0" + on-headers "~1.0.1" -is-weakset@^2.0.1: - version "2.0.2" - resolved "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz" - integrity sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg== +connect@2.7.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/connect/-/connect-2.7.0.tgz#52f5626d823c0848a87410f80de0ace2aa52ad95" + integrity sha512-dc4sTwvTiHcZJCph900RXKdgvIFrbHkwJnsfaEfhM06Gsq0Fqp2E0abwBcM3mavwwVtH3J2wlrp5m/E8SJi1OA== dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.1" + bytes "0.1.0" + cookie "0.0.5" + cookie-signature "0.0.1" + crc "0.2.0" + debug "*" + formidable "1.0.11" + fresh "0.1.0" + pause "0.0.1" + qs "0.5.1" + send "0.1.0" -is-windows@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== +content-disposition@0.5.2: + version "0.5.2" + resolved "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz" + integrity sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA== -is-wsl@^2.1.1, is-wsl@^2.2.0: - version "2.2.0" - resolved "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz" - integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== +content-disposition@0.5.4: + version "0.5.4" + resolved "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz" + integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== dependencies: - is-docker "^2.0.0" - -isarray@0.0.1: - version "0.0.1" - resolved "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" - integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ== + safe-buffer "5.2.1" -isarray@^2.0.5: - version "2.0.5" - resolved "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz" - integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== +content-type@~1.0.4, content-type@~1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz" + integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== -isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" - integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== +convert-source-map@^1.7.0: + version "1.9.0" + resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz" + integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== +cookie-signature@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-0.0.1.tgz#13d3603b5cf63befbf85a8801e37aa900db46985" + integrity sha512-cF3ACWE4MpShxO2sKb6TtB4wHIn2DsO83K1DNhukqVd5PhYwxLLqHvkrcvHpIpPJ0ow8pqSO36gwL4viDq9edA== -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz" - integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== +cookie-signature@1.0.6: + version "1.0.6" + resolved "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz" + integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== +cookie@0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.0.5.tgz#f9acf9db57eb7568c9fcc596256b7bb22e307c81" + integrity sha512-STLsAHdtBDF5GJiPHc4sdfX5qzri6bcSxdSlW/o4IYJAA5yZxh3ZZsvctsKRNbhpP328sN+A2EjOF9vcW/LhdQ== -istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: - version "3.2.0" - resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz" - integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== +cookie@0.5.0: + version "0.5.0" + resolved "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz" + integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== -istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: - version "5.2.1" - resolved "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz" - integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== - dependencies: - "@babel/core" "^7.12.3" - "@babel/parser" "^7.14.7" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-coverage "^3.2.0" - semver "^6.3.0" +core-util-is@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== -istanbul-lib-report@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz" - integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== +cors@^2.8.5: + version "2.8.5" + resolved "https://registry.yarnpkg.com/cors/-/cors-2.8.5.tgz#eac11da51592dd86b9f06f6e7ac293b3df875d29" + integrity sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g== dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^3.0.0" - supports-color "^7.1.0" + object-assign "^4" + vary "^1" -istanbul-lib-source-maps@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz" - integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== +cosmiconfig-typescript-loader@^1.0.0: + version "1.0.9" + resolved "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-1.0.9.tgz" + integrity sha512-tRuMRhxN4m1Y8hP9SNYfz7jRwt8lZdWxdjg/ohg5esKmsndJIn4yT96oJVcf5x0eA11taXl+sIp+ielu529k6g== dependencies: - debug "^4.1.1" - istanbul-lib-coverage "^3.0.0" - source-map "^0.6.1" + cosmiconfig "^7" + ts-node "^10.7.0" -istanbul-reports@^3.1.3: - version "3.1.5" - resolved "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz" - integrity sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w== +cosmiconfig@^7, cosmiconfig@^7.0.1: + version "7.1.0" + resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz" + integrity sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA== dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" + "@types/parse-json" "^4.0.0" + import-fresh "^3.2.1" + parse-json "^5.0.0" + path-type "^4.0.0" + yaml "^1.10.0" -jake@^10.8.5: - version "10.8.7" - resolved "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz" - integrity sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w== - dependencies: - async "^3.2.3" - chalk "^4.0.2" - filelist "^1.0.4" - minimatch "^3.1.2" +crc@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/crc/-/crc-0.2.0.tgz#f4486b9bf0a12df83c3fca14e31e030fdabd9454" + integrity sha512-LFlOXOW6KT46bjpUevoixE6UQVdm9wMwCrR4JHxg4LJ+9COF7efwTdVMRXrSlNXYmUQgtAcHsWa0VgKBiQZmMQ== -jest-changed-files@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz" - integrity sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw== +create-hash@^1.1.0, create-hash@^1.1.2: + version "1.2.0" + resolved "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz" + integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg== dependencies: - "@jest/types" "^27.5.1" - execa "^5.0.0" - throat "^6.0.1" + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" -jest-circus@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz" - integrity sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw== +create-hmac@^1.1.4: + version "1.1.7" + resolved "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz" + integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg== dependencies: - "@jest/environment" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - co "^4.6.0" - dedent "^0.7.0" - expect "^27.5.1" - is-generator-fn "^2.0.0" - jest-each "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - slash "^3.0.0" - stack-utils "^2.0.3" - throat "^6.0.1" + cipher-base "^1.0.3" + create-hash "^1.1.0" + inherits "^2.0.1" + ripemd160 "^2.0.0" + safe-buffer "^5.0.1" + sha.js "^2.4.8" -jest-cli@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz" - integrity sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw== - dependencies: - "@jest/core" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - chalk "^4.0.0" - exit "^0.1.2" - graceful-fs "^4.2.9" - import-local "^3.0.2" - jest-config "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - prompts "^2.0.1" - yargs "^16.2.0" +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz" + integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== -jest-config@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz" - integrity sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA== +cross-fetch@^3.0.6: + version "3.1.6" + resolved "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.6.tgz" + integrity sha512-riRvo06crlE8HiqOwIpQhxwdOk4fOeR7FVM/wXoxchFEqMNUjvbs3bfo4OTgMEMHzppd4DxFBDbyySj8Cv781g== dependencies: - "@babel/core" "^7.8.0" - "@jest/test-sequencer" "^27.5.1" - "@jest/types" "^27.5.1" - babel-jest "^27.5.1" - chalk "^4.0.0" - ci-info "^3.2.0" - deepmerge "^4.2.2" - glob "^7.1.1" - graceful-fs "^4.2.9" - jest-circus "^27.5.1" - jest-environment-jsdom "^27.5.1" - jest-environment-node "^27.5.1" - jest-get-type "^27.5.1" - jest-jasmine2 "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-runner "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - micromatch "^4.0.4" - parse-json "^5.2.0" - pretty-format "^27.5.1" - slash "^3.0.0" - strip-json-comments "^3.1.1" + node-fetch "^2.6.11" -jest-diff@^26.0.0: - version "26.6.2" - resolved "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz" - integrity sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA== +cross-spawn@^5.0.1: + version "5.1.0" + resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz" + integrity sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A== dependencies: - chalk "^4.0.0" - diff-sequences "^26.6.2" - jest-get-type "^26.3.0" - pretty-format "^26.6.2" + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" -jest-diff@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz" - integrity sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw== +cross-spawn@^7.0.2, cross-spawn@^7.0.3: + version "7.0.3" + resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== dependencies: - chalk "^4.0.0" - diff-sequences "^27.5.1" - jest-get-type "^27.5.1" - pretty-format "^27.5.1" + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" -jest-docblock@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz" - integrity sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ== - dependencies: - detect-newline "^3.0.0" +crypto-js@^4.1.1: + version "4.1.1" + resolved "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz" + integrity sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw== + +csstype@^3.0.2, csstype@^3.1.0: + version "3.1.2" + resolved "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz" + integrity sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ== -jest-each@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz" - integrity sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ== +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + integrity sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g== dependencies: - "@jest/types" "^27.5.1" - chalk "^4.0.0" - jest-get-type "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - -jest-environment-jsdom@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz" - integrity sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" - jest-util "^27.5.1" - jsdom "^16.6.0" - -jest-environment-node@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz" - integrity sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" - jest-util "^27.5.1" + assert-plus "^1.0.0" -jest-get-type@^26.3.0: - version "26.3.0" - resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz" - integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== +date-fns@^2.30.0: + version "2.30.0" + resolved "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz" + integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw== + dependencies: + "@babel/runtime" "^7.21.0" -jest-get-type@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz" - integrity sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw== +dayjs@^1.10.4: + version "1.11.7" + resolved "https://registry.npmjs.org/dayjs/-/dayjs-1.11.7.tgz" + integrity sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ== -jest-haste-map@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz" - integrity sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng== +debug@*, debug@^4.0.0, debug@^4.0.1, debug@^4.1.1, debug@^4.3.1, debug@^4.3.4: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== dependencies: - "@jest/types" "^27.5.1" - "@types/graceful-fs" "^4.1.2" - "@types/node" "*" - anymatch "^3.0.3" - fb-watchman "^2.0.0" - graceful-fs "^4.2.9" - jest-regex-util "^27.5.1" - jest-serializer "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - micromatch "^4.0.4" - walker "^1.0.7" - optionalDependencies: - fsevents "^2.3.2" + ms "2.1.2" -jest-jasmine2@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz" - integrity sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/source-map" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - co "^4.6.0" - expect "^27.5.1" - is-generator-fn "^2.0.0" - jest-each "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - throat "^6.0.1" - -jest-leak-detector@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz" - integrity sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ== - dependencies: - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - -jest-matcher-utils@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz" - integrity sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw== +debug@2.6.9, debug@^2.2.0: + version "2.6.9" + resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== dependencies: - chalk "^4.0.0" - jest-diff "^27.5.1" - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - -jest-message-util@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz" - integrity sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g== - dependencies: - "@babel/code-frame" "^7.12.13" - "@jest/types" "^27.5.1" - "@types/stack-utils" "^2.0.0" - chalk "^4.0.0" - graceful-fs "^4.2.9" - micromatch "^4.0.4" - pretty-format "^27.5.1" - slash "^3.0.0" - stack-utils "^2.0.3" + ms "2.0.0" -jest-message-util@^28.1.3: - version "28.1.3" - resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.1.3.tgz" - integrity sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g== +debug@^3.1.0, debug@^3.2.7: + version "3.2.7" + resolved "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz" + integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== dependencies: - "@babel/code-frame" "^7.12.13" - "@jest/types" "^28.1.3" - "@types/stack-utils" "^2.0.0" - chalk "^4.0.0" - graceful-fs "^4.2.9" - micromatch "^4.0.4" - pretty-format "^28.1.3" - slash "^3.0.0" - stack-utils "^2.0.3" + ms "^2.1.1" -jest-mock@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz" - integrity sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og== +decode-named-character-reference@^1.0.0: + version "1.0.2" + resolved "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz" + integrity sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg== dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" + character-entities "^2.0.0" -jest-pnp-resolver@^1.2.2: - version "1.2.3" - resolved "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz" - integrity sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w== - -jest-regex-util@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz" - integrity sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg== - -jest-regex-util@^28.0.0: - version "28.0.2" - resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-28.0.2.tgz" - integrity sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw== - -jest-resolve-dependencies@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz" - integrity sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg== - dependencies: - "@jest/types" "^27.5.1" - jest-regex-util "^27.5.1" - jest-snapshot "^27.5.1" - -jest-resolve@^27.4.2, jest-resolve@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz" - integrity sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw== - dependencies: - "@jest/types" "^27.5.1" - chalk "^4.0.0" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-pnp-resolver "^1.2.2" - jest-util "^27.5.1" - jest-validate "^27.5.1" - resolve "^1.20.0" - resolve.exports "^1.1.0" - slash "^3.0.0" +decode-uri-component@^0.2.0: + version "0.2.2" + resolved "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz" + integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== -jest-runner@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz" - integrity sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ== - dependencies: - "@jest/console" "^27.5.1" - "@jest/environment" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - emittery "^0.8.1" - graceful-fs "^4.2.9" - jest-docblock "^27.5.1" - jest-environment-jsdom "^27.5.1" - jest-environment-node "^27.5.1" - jest-haste-map "^27.5.1" - jest-leak-detector "^27.5.1" - jest-message-util "^27.5.1" - jest-resolve "^27.5.1" - jest-runtime "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - source-map-support "^0.5.6" - throat "^6.0.1" - -jest-runtime@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz" - integrity sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/globals" "^27.5.1" - "@jest/source-map" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - chalk "^4.0.0" - cjs-module-lexer "^1.0.0" - collect-v8-coverage "^1.0.0" - execa "^5.0.0" - glob "^7.1.3" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-message-util "^27.5.1" - jest-mock "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - slash "^3.0.0" - strip-bom "^4.0.0" +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== -jest-serializer@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz" - integrity sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w== - dependencies: - "@types/node" "*" - graceful-fs "^4.2.9" - -jest-snapshot@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz" - integrity sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA== - dependencies: - "@babel/core" "^7.7.2" - "@babel/generator" "^7.7.2" - "@babel/plugin-syntax-typescript" "^7.7.2" - "@babel/traverse" "^7.7.2" - "@babel/types" "^7.0.0" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/babel__traverse" "^7.0.4" - "@types/prettier" "^2.1.5" - babel-preset-current-node-syntax "^1.0.0" - chalk "^4.0.0" - expect "^27.5.1" - graceful-fs "^4.2.9" - jest-diff "^27.5.1" - jest-get-type "^27.5.1" - jest-haste-map "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-util "^27.5.1" - natural-compare "^1.4.0" - pretty-format "^27.5.1" - semver "^7.3.2" +deep-is@^0.1.3: + version "0.1.4" + resolved "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== -jest-util@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz" - integrity sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw== +define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz" + integrity sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA== dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - ci-info "^3.2.0" - graceful-fs "^4.2.9" - picomatch "^2.2.3" + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" -jest-util@^28.1.3: - version "28.1.3" - resolved "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz" - integrity sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ== - dependencies: - "@jest/types" "^28.1.3" - "@types/node" "*" - chalk "^4.0.0" - ci-info "^3.2.0" - graceful-fs "^4.2.9" - picomatch "^2.2.3" +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== -jest-validate@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz" - integrity sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ== - dependencies: - "@jest/types" "^27.5.1" - camelcase "^6.2.0" - chalk "^4.0.0" - jest-get-type "^27.5.1" - leven "^3.1.0" - pretty-format "^27.5.1" +depd@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" + integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== -jest-watch-typeahead@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/jest-watch-typeahead/-/jest-watch-typeahead-1.1.0.tgz" - integrity sha512-Va5nLSJTN7YFtC2jd+7wsoe1pNe5K4ShLux/E5iHEwlB9AxaxmggY7to9KUqKojhaJw3aXqt5WAb4jGPOolpEw== - dependencies: - ansi-escapes "^4.3.1" - chalk "^4.0.0" - jest-regex-util "^28.0.0" - jest-watcher "^28.0.0" - slash "^4.0.0" - string-length "^5.0.1" - strip-ansi "^7.0.1" +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz" + integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== -jest-watcher@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz" - integrity sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw== - dependencies: - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - jest-util "^27.5.1" - string-length "^4.0.1" +dequal@^2.0.0: + version "2.0.3" + resolved "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz" + integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== + +destroy@1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz" + integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== + +detect-browser@5.3.0: + version "5.3.0" + resolved "https://registry.npmjs.org/detect-browser/-/detect-browser-5.3.0.tgz" + integrity sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w== + +diff-sequences@^26.6.2: + version "26.6.2" + resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz" + integrity sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q== + +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + +diff@^5.0.0: + version "5.1.0" + resolved "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz" + integrity sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw== -jest-watcher@^28.0.0: - version "28.1.3" - resolved "https://registry.npmjs.org/jest-watcher/-/jest-watcher-28.1.3.tgz" - integrity sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g== +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== dependencies: - "@jest/test-result" "^28.1.3" - "@jest/types" "^28.1.3" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - emittery "^0.10.2" - jest-util "^28.1.3" - string-length "^4.0.1" + path-type "^4.0.0" -jest-worker@^26.2.1: - version "26.6.2" - resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz" - integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^7.0.0" + esutils "^2.0.2" -jest-worker@^27.0.2, jest-worker@^27.4.5, jest-worker@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz" - integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^8.0.0" + esutils "^2.0.2" -jest-worker@^28.0.2: - version "28.1.3" - resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz" - integrity sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g== - dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^8.0.0" +domelementtype@1: + version "1.3.1" + resolved "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz" + integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== -jest@^27.4.3: - version "27.5.1" - resolved "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz" - integrity sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ== +domhandler@^2.4.0: + version "2.4.2" + resolved "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz" + integrity sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA== dependencies: - "@jest/core" "^27.5.1" - import-local "^3.0.2" - jest-cli "^27.5.1" + domelementtype "1" -jiti@^1.18.2: - version "1.18.2" - resolved "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz" - integrity sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg== +duplexer@^0.1.2: + version "0.1.2" + resolved "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz" + integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== -js-sha3@0.8.0: - version "0.8.0" - resolved "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz" - integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== +duplexify@^4.1.2: + version "4.1.2" + resolved "https://registry.npmjs.org/duplexify/-/duplexify-4.1.2.tgz" + integrity sha512-fz3OjcNCHmRP12MJoZMPglx8m4rrFP8rovnk4vT8Fs+aonZoCwGg10dSsQsfP/E62eZcPTMSMP6686fu9Qlqtw== + dependencies: + end-of-stream "^1.4.1" + inherits "^2.0.3" + readable-stream "^3.1.1" + stream-shift "^1.0.0" -"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== +eastasianwidth@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz" + integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== -js-yaml@^3.13.1: - version "3.14.1" - resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz" - integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== +ecc-jsbn@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" + integrity sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw== dependencies: - argparse "^1.0.7" - esprima "^4.0.0" + jsbn "~0.1.0" + safer-buffer "^2.1.0" -js-yaml@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== + +ejs@^3.1.5: + version "3.1.9" + resolved "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz" + integrity sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ== dependencies: - argparse "^2.0.1" + jake "^10.8.5" -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - integrity sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg== +electron-to-chromium@^1.4.411: + version "1.4.417" + resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.417.tgz" + integrity sha512-8rY8HdCxuSVY8wku3i/eDac4g1b4cSbruzocenrqBlzqruAZYHjQCHIjC66dLR9DXhEHTojsC4EjhZ8KmzwXqA== -jsdom@^16.6.0: - version "16.7.0" - resolved "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz" - integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== - dependencies: - abab "^2.0.5" - acorn "^8.2.4" - acorn-globals "^6.0.0" - cssom "^0.4.4" - cssstyle "^2.3.0" - data-urls "^2.0.0" - decimal.js "^10.2.1" - domexception "^2.0.1" - escodegen "^2.0.0" - form-data "^3.0.0" - html-encoding-sniffer "^2.0.1" - http-proxy-agent "^4.0.1" - https-proxy-agent "^5.0.0" - is-potential-custom-element-name "^1.0.1" - nwsapi "^2.2.0" - parse5 "6.0.1" - saxes "^5.0.1" - symbol-tree "^3.2.4" - tough-cookie "^4.0.0" - w3c-hr-time "^1.0.2" - w3c-xmlserializer "^2.0.0" - webidl-conversions "^6.1.0" - whatwg-encoding "^1.0.5" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.5.0" - ws "^7.4.6" - xml-name-validator "^3.0.0" - -jsesc@^2.5.1: - version "2.5.2" - resolved "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz" - integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== +elliptic@^6.5.4: + version "6.5.4" + resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz" + integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== + dependencies: + bn.js "^4.11.9" + brorand "^1.1.0" + hash.js "^1.0.0" + hmac-drbg "^1.0.1" + inherits "^2.0.4" + minimalistic-assert "^1.0.1" + minimalistic-crypto-utils "^1.0.1" -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz" - integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA== +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== -json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1: - version "2.3.1" - resolved "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz" - integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== +emoji-regex@^9.2.2: + version "9.2.2" + resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz" + integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz" + integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== -json-schema-traverse@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz" - integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== +end-of-stream@^1.4.1: + version "1.4.4" + resolved "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" -json-schema@0.4.0, json-schema@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" - integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA== +enquirer@^2.3.5: + version "2.3.6" + resolved "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz" + integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== + dependencies: + ansi-colors "^4.1.1" -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" - integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== +error-ex@^1.3.1: + version "1.3.2" + resolved "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz" + integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + dependencies: + is-arrayish "^0.2.1" -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== +es-abstract@^1.19.0, es-abstract@^1.20.4: + version "1.21.2" + resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz" + integrity sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg== + dependencies: + array-buffer-byte-length "^1.0.0" + available-typed-arrays "^1.0.5" + call-bind "^1.0.2" + es-set-tostringtag "^2.0.1" + es-to-primitive "^1.2.1" + function.prototype.name "^1.1.5" + get-intrinsic "^1.2.0" + get-symbol-description "^1.0.0" + globalthis "^1.0.3" + gopd "^1.0.1" + has "^1.0.3" + has-property-descriptors "^1.0.0" + has-proto "^1.0.1" + has-symbols "^1.0.3" + internal-slot "^1.0.5" + is-array-buffer "^3.0.2" + is-callable "^1.2.7" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-typed-array "^1.1.10" + is-weakref "^1.0.2" + object-inspect "^1.12.3" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.4.3" + safe-regex-test "^1.0.0" + string.prototype.trim "^1.2.7" + string.prototype.trimend "^1.0.6" + string.prototype.trimstart "^1.0.6" + typed-array-length "^1.0.4" + unbox-primitive "^1.0.2" + which-typed-array "^1.1.9" -json5@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz" - integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== +es-set-tostringtag@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz" + integrity sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg== dependencies: - minimist "^1.2.0" + get-intrinsic "^1.1.3" + has "^1.0.3" + has-tostringtag "^1.0.0" -json5@^2.1.2, json5@^2.2.0, json5@^2.2.2: - version "2.2.3" - resolved "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz" - integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== +es-shim-unscopables@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz" + integrity sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w== + dependencies: + has "^1.0.3" -jsonfile@^6.0.1: - version "6.1.0" - resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" - integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== dependencies: - universalify "^2.0.0" - optionalDependencies: - graceful-fs "^4.1.6" + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" -jsonpointer@^5.0.0: - version "5.0.1" - resolved "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz" - integrity sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ== +es6-denodeify@^0.1.1: + version "0.1.5" + resolved "https://registry.npmjs.org/es6-denodeify/-/es6-denodeify-0.1.5.tgz" + integrity sha512-731Rf4NqlPvhkT1pIF7r8vZxESJlWocNpXLuyPlVnfEGXlwuJaMvU5WpyyDjpudDC2cgXVX849xljzvQqBg1QQ== -jsonschema@^1.4.0: - version "1.4.1" - resolved "https://registry.npmjs.org/jsonschema/-/jsonschema-1.4.1.tgz" - integrity sha512-S6cATIPVv1z0IlxdN+zUk5EPjkGCdnhN4wVSBlvoUO1tOLJootbo9CquNJmbIh4yikWHiUedhRYrNPn1arpEmQ== +es6-object-assign@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/es6-object-assign/-/es6-object-assign-1.1.0.tgz" + integrity sha512-MEl9uirslVwqQU369iHNWZXsI8yaZYGg/D65aOgZkeyFJwHYSxilf7rQzXKI7DdDuBPrBXbfk3sl9hJhmd5AUw== -jsprim@^1.2.2: - version "1.4.2" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.2.tgz#712c65533a15c878ba59e9ed5f0e26d5b77c5feb" - integrity sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw== - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.4.0" - verror "1.10.0" +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== -jss-plugin-camel-case@^10.5.1: - version "10.10.0" - resolved "https://registry.npmjs.org/jss-plugin-camel-case/-/jss-plugin-camel-case-10.10.0.tgz" - integrity sha512-z+HETfj5IYgFxh1wJnUAU8jByI48ED+v0fuTuhKrPR+pRBYS2EDwbusU8aFOpCdYhtRc9zhN+PJ7iNE8pAWyPw== - dependencies: - "@babel/runtime" "^7.3.1" - hyphenate-style-name "^1.0.3" - jss "10.10.0" +escape-html@^1.0.3, escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== -jss-plugin-default-unit@^10.5.1: - version "10.10.0" - resolved "https://registry.npmjs.org/jss-plugin-default-unit/-/jss-plugin-default-unit-10.10.0.tgz" - integrity sha512-SvpajxIECi4JDUbGLefvNckmI+c2VWmP43qnEy/0eiwzRUsafg5DVSIWSzZe4d2vFX1u9nRDP46WCFV/PXVBGQ== - dependencies: - "@babel/runtime" "^7.3.1" - jss "10.10.0" +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== -jss-plugin-global@^10.5.1: - version "10.10.0" - resolved "https://registry.npmjs.org/jss-plugin-global/-/jss-plugin-global-10.10.0.tgz" - integrity sha512-icXEYbMufiNuWfuazLeN+BNJO16Ge88OcXU5ZDC2vLqElmMybA31Wi7lZ3lf+vgufRocvPj8443irhYRgWxP+A== - dependencies: - "@babel/runtime" "^7.3.1" - jss "10.10.0" +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +escape-string-regexp@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz" + integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== -jss-plugin-nested@^10.5.1: - version "10.10.0" - resolved "https://registry.npmjs.org/jss-plugin-nested/-/jss-plugin-nested-10.10.0.tgz" - integrity sha512-9R4JHxxGgiZhurDo3q7LdIiDEgtA1bTGzAbhSPyIOWb7ZubrjQe8acwhEQ6OEKydzpl8XHMtTnEwHXCARLYqYA== - dependencies: - "@babel/runtime" "^7.3.1" - jss "10.10.0" - tiny-warning "^1.0.2" +eslint-config-prettier@^8.1.0: + version "8.8.0" + resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz" + integrity sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA== -jss-plugin-props-sort@^10.5.1: - version "10.10.0" - resolved "https://registry.npmjs.org/jss-plugin-props-sort/-/jss-plugin-props-sort-10.10.0.tgz" - integrity sha512-5VNJvQJbnq/vRfje6uZLe/FyaOpzP/IH1LP+0fr88QamVrGJa0hpRRyAa0ea4U/3LcorJfBFVyC4yN2QC73lJg== +eslint-plugin-prettier@^4.2.1: + version "4.2.1" + resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz" + integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ== dependencies: - "@babel/runtime" "^7.3.1" - jss "10.10.0" + prettier-linter-helpers "^1.0.0" -jss-plugin-rule-value-function@^10.5.1: - version "10.10.0" - resolved "https://registry.npmjs.org/jss-plugin-rule-value-function/-/jss-plugin-rule-value-function-10.10.0.tgz" - integrity sha512-uEFJFgaCtkXeIPgki8ICw3Y7VMkL9GEan6SqmT9tqpwM+/t+hxfMUdU4wQ0MtOiMNWhwnckBV0IebrKcZM9C0g== - dependencies: - "@babel/runtime" "^7.3.1" - jss "10.10.0" - tiny-warning "^1.0.2" +eslint-plugin-react-hooks@^4.2.0: + version "4.6.0" + resolved "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz" + integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g== -jss-plugin-vendor-prefixer@^10.5.1: - version "10.10.0" - resolved "https://registry.npmjs.org/jss-plugin-vendor-prefixer/-/jss-plugin-vendor-prefixer-10.10.0.tgz" - integrity sha512-UY/41WumgjW8r1qMCO8l1ARg7NHnfRVWRhZ2E2m0DMYsr2DD91qIXLyNhiX83hHswR7Wm4D+oDYNC1zWCJWtqg== +eslint-plugin-react@^7.21.5: + version "7.32.2" + resolved "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz" + integrity sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg== dependencies: - "@babel/runtime" "^7.3.1" - css-vendor "^2.0.8" - jss "10.10.0" + array-includes "^3.1.6" + array.prototype.flatmap "^1.3.1" + array.prototype.tosorted "^1.1.1" + doctrine "^2.1.0" + estraverse "^5.3.0" + jsx-ast-utils "^2.4.1 || ^3.0.0" + minimatch "^3.1.2" + object.entries "^1.1.6" + object.fromentries "^2.0.6" + object.hasown "^1.1.2" + object.values "^1.1.6" + prop-types "^15.8.1" + resolve "^2.0.0-next.4" + semver "^6.3.0" + string.prototype.matchall "^4.0.8" -jss@10.10.0, jss@^10.5.1: - version "10.10.0" - resolved "https://registry.npmjs.org/jss/-/jss-10.10.0.tgz" - integrity sha512-cqsOTS7jqPsPMjtKYDUpdFC0AbhYFLTcuGRqymgmdJIeQ8cH7+AgX7YSgQy79wXloZq2VvATYxUOUQEvS1V/Zw== +eslint-scope@^5.1.1: + version "5.1.1" + resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== dependencies: - "@babel/runtime" "^7.3.1" - csstype "^3.0.2" - is-in-browser "^1.1.3" - tiny-warning "^1.0.2" + esrecurse "^4.3.0" + estraverse "^4.1.1" -"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.3.3: - version "3.3.3" - resolved "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz" - integrity sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw== +eslint-utils@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz" + integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== dependencies: - array-includes "^3.1.5" - object.assign "^4.1.3" - -keyvaluestorage-interface@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/keyvaluestorage-interface/-/keyvaluestorage-interface-1.0.0.tgz" - integrity sha512-8t6Q3TclQ4uZynJY9IGr2+SsIGwK9JHcO6ootkHCGA0CrQCRy+VkouYNO2xicET6b9al7QKzpebNow+gkpCL8g== + eslint-visitor-keys "^1.1.0" -kind-of@^3.0.2, kind-of@^3.0.3: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ== +eslint-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz" + integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0, kind-of@^5.0.2: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== - -kind-of@^6.0.0, kind-of@^6.0.2: - version "6.0.3" - resolved "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - -kleur@^3.0.3: - version "3.0.3" - resolved "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz" - integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== - -kleur@^4.0.3: - version "4.1.5" - resolved "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz" - integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ== - -klona@^2.0.4, klona@^2.0.5: - version "2.0.6" - resolved "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz" - integrity sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA== - -koalas@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/koalas/-/koalas-1.0.2.tgz#318433f074235db78fae5661a02a8ca53ee295cd" - integrity sha512-RYhBbYaTTTHId3l6fnMZc3eGQNW6FVCqMG6AMwA5I1Mafr6AflaXeoi6x3xQuATRotGYRLk6+1ELZH4dstFNOA== + eslint-visitor-keys "^2.0.0" -language-subtag-registry@~0.3.2: - version "0.3.22" - resolved "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz" - integrity sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w== +eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz" + integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== -language-tags@=1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz" - integrity sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ== - dependencies: - language-subtag-registry "~0.3.2" +eslint-visitor-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz" + integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== -launch-editor@^2.6.0: - version "2.6.0" - resolved "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz" - integrity sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ== +eslint@^7.22.0: + version "7.32.0" + resolved "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz" + integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== dependencies: - picocolors "^1.0.0" - shell-quote "^1.7.3" + "@babel/code-frame" "7.12.11" + "@eslint/eslintrc" "^0.4.3" + "@humanwhocodes/config-array" "^0.5.0" + ajv "^6.10.0" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.0.1" + doctrine "^3.0.0" + enquirer "^2.3.5" + escape-string-regexp "^4.0.0" + eslint-scope "^5.1.1" + eslint-utils "^2.1.0" + eslint-visitor-keys "^2.0.0" + espree "^7.3.1" + esquery "^1.4.0" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + functional-red-black-tree "^1.0.1" + glob-parent "^5.1.2" + globals "^13.6.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + js-yaml "^3.13.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.0.4" + natural-compare "^1.4.0" + optionator "^0.9.1" + progress "^2.0.0" + regexpp "^3.1.0" + semver "^7.2.1" + strip-ansi "^6.0.0" + strip-json-comments "^3.1.0" + table "^6.0.9" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" -launchdarkly-js-client-sdk@2.22.1: - version "2.22.1" - resolved "https://registry.npmjs.org/launchdarkly-js-client-sdk/-/launchdarkly-js-client-sdk-2.22.1.tgz" - integrity sha512-EAdw7B8w4m/WZGmHHLj9gbYBP6lCqJs5TQDCM9kWJOnvHBz7DJIxOdqazNMDn5AzBxfvaMG7cpLms+Cur5LD5g== +espree@^7.3.0, espree@^7.3.1: + version "7.3.1" + resolved "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz" + integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== dependencies: - escape-string-regexp "^1.0.5" - launchdarkly-js-sdk-common "3.6.0" + acorn "^7.4.0" + acorn-jsx "^5.3.1" + eslint-visitor-keys "^1.3.0" -launchdarkly-js-sdk-common@3.6.0: - version "3.6.0" - resolved "https://registry.npmjs.org/launchdarkly-js-sdk-common/-/launchdarkly-js-sdk-common-3.6.0.tgz" - integrity sha512-wCdBoBiYXlP64jTrC0dOXY2B345LSJO/IvitbdW4kBKmJ1DkeufpqV0s5DBlwE0RLzDmaQx3mRTmcoNAIhIoaA== - dependencies: - base64-js "^1.3.0" - fast-deep-equal "^2.0.1" - uuid "^3.3.2" +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -launchdarkly-react-client-sdk@2.27.0: - version "2.27.0" - resolved "https://registry.npmjs.org/launchdarkly-react-client-sdk/-/launchdarkly-react-client-sdk-2.27.0.tgz" - integrity sha512-I2mmY5OHbc8bHkfYlt131cRXjSolCzbMtt0lMeN7vC5vMWnjNnLCT08YRrqromnNgPNUtg/7kwPEUTOmUCFqiA== +esquery@^1.4.0: + version "1.5.0" + resolved "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz" + integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== dependencies: - hoist-non-react-statics "^3.3.2" - launchdarkly-js-client-sdk "2.22.1" - lodash.camelcase "^4.3.0" + estraverse "^5.1.0" -lazy-cache@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-2.0.2.tgz#b9190a4f913354694840859f8a8f7084d8822264" - integrity sha512-7vp2Acd2+Kz4XkzxGxaB1FWOi8KjWIWsgdfD5MCb86DWvlLqhRPM+d6Pro3iNEL5VT9mstz5hKAlcd+QR6H3aA== +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== dependencies: - set-getter "^0.1.0" + estraverse "^5.2.0" -lcid@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/lcid/-/lcid-2.0.0.tgz#6ef5d2df60e52f82eb228a4c373e8d1f397253cf" - integrity sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA== - dependencies: - invert-kv "^2.0.0" +estraverse@^4.1.1: + version "4.3.0" + resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz" + integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== -leven@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz" - integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== +estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: + version "5.3.0" + resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== -levn@^0.4.1: - version "0.4.1" - resolved "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== -levn@~0.3.0: - version "0.3.0" - resolved "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz" - integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== - dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz" + integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== -lilconfig@2.1.0, lilconfig@^2.0.3, lilconfig@^2.0.5, lilconfig@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz" - integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ== +event-target-shim@^5.0.0: + version "5.0.1" + resolved "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz" + integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== -lines-and-columns@^1.1.6: - version "1.2.4" - resolved "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz" - integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== +events@^3.3.0: + version "3.3.0" + resolved "https://registry.npmjs.org/events/-/events-3.3.0.tgz" + integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== -lint-staged@^13.0.3: - version "13.2.2" - resolved "https://registry.npmjs.org/lint-staged/-/lint-staged-13.2.2.tgz" - integrity sha512-71gSwXKy649VrSU09s10uAT0rWCcY3aewhMaHyl2N84oBk4Xs9HgxvUp3AYu+bNsK4NrOYYxvSgg7FyGJ+jGcA== - dependencies: - chalk "5.2.0" - cli-truncate "^3.1.0" - commander "^10.0.0" - debug "^4.3.4" - execa "^7.0.0" - lilconfig "2.1.0" - listr2 "^5.0.7" - micromatch "^4.0.5" - normalize-path "^3.0.0" - object-inspect "^1.12.3" - pidtree "^0.6.0" - string-argv "^0.3.1" - yaml "^2.2.2" +eventsource@^1.0.7: + version "1.1.2" + resolved "https://registry.npmjs.org/eventsource/-/eventsource-1.1.2.tgz" + integrity sha512-xAH3zWhgO2/3KIniEKYPr8plNSzlGINOUqYj0m0u7AB81iRw8b/3E73W6AuU+6klLbaSFmZnaETQ2lXPfAydrA== -listr2@^5.0.7: - version "5.0.8" - resolved "https://registry.npmjs.org/listr2/-/listr2-5.0.8.tgz" - integrity sha512-mC73LitKHj9w6v30nLNGPetZIlfpUniNSsxxrbaPcWOjDb92SHPzJPi/t+v1YC/lxKz/AJ9egOjww0qUuFxBpA== +execa@^0.7.0: + version "0.7.0" + resolved "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz" + integrity sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw== dependencies: - cli-truncate "^2.1.0" - colorette "^2.0.19" - log-update "^4.0.0" - p-map "^4.0.0" - rfdc "^1.3.0" - rxjs "^7.8.0" - through "^2.3.8" - wrap-ansi "^7.0.0" - -loader-runner@^4.2.0: - version "4.3.0" - resolved "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz" - integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg== + cross-spawn "^5.0.1" + get-stream "^3.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" -loader-utils@^2.0.0, loader-utils@^2.0.4: - version "2.0.4" - resolved "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz" - integrity sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw== +execa@^0.8.0: + version "0.8.0" + resolved "https://registry.npmjs.org/execa/-/execa-0.8.0.tgz" + integrity sha512-zDWS+Rb1E8BlqqhALSt9kUhss8Qq4nN3iof3gsOdyINksElaPyNBtKUMTR62qhvgVWR0CqCX7sdnKe4MnUbFEA== dependencies: - big.js "^5.2.2" - emojis-list "^3.0.0" - json5 "^2.1.2" + cross-spawn "^5.0.1" + get-stream "^3.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" -loader-utils@^3.2.0: - version "3.2.1" - resolved "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz" - integrity sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw== +execa@^7.0.0: + version "7.1.1" + resolved "https://registry.npmjs.org/execa/-/execa-7.1.1.tgz" + integrity sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.1" + human-signals "^4.3.0" + is-stream "^3.0.0" + merge-stream "^2.0.0" + npm-run-path "^5.1.0" + onetime "^6.0.0" + signal-exit "^3.0.7" + strip-final-newline "^3.0.0" -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - integrity sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA== +express-end@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/express-end/-/express-end-0.0.8.tgz#0c8fd95428932158f2b4cf91f4045346bf2c5323" + integrity sha512-PPntzICAq006LBpXKBVJtmRUiCRqTMZ+OB8L2RFXgx+OmkMWU66IL4DTEPF/DOcxmsuC7Y0NdbT2R71lb+pBpg== dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" + debug "^2.2.0" -locate-path@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz" - integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== +express-queue@^0.0.13: + version "0.0.13" + resolved "https://registry.yarnpkg.com/express-queue/-/express-queue-0.0.13.tgz#e9800d67749d4dfab7c34223f00595af933ce5df" + integrity sha512-C4OEDasGDqpXLrZICSUxbY47p5c0bKqf/3/3hwauSCmI+jVVxKBWU2w39BuKLP6nF65z87uDFBbJMPAn2ZrG3g== dependencies: - p-locate "^3.0.0" - path-exists "^3.0.0" + debug "^4.3.4" + express-end "0.0.8" + mini-queue "0.0.14" -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== +express@3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/express/-/express-3.0.3.tgz#007c7590b1ab31219e6d8d71f86ad5086204868c" + integrity sha512-FvLeKv/gvbKLTQZX0yaJ8xNOImQf8G307G9q7saUk0FDz8ftPpw6FiV5Y5p7dBB5un2pZjrXkgmpERZHr1tuCg== dependencies: - p-locate "^4.1.0" + commander "0.6.1" + connect "2.7.0" + cookie "0.0.5" + cookie-signature "0.0.1" + crc "0.2.0" + debug "*" + fresh "0.1.0" + methods "0.0.1" + mkdirp "0.3.3" + range-parser "0.0.4" + send "0.1.0" -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== +express@^4.18.2: + version "4.18.2" + resolved "https://registry.npmjs.org/express/-/express-4.18.2.tgz" + integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ== dependencies: - p-locate "^5.0.0" + accepts "~1.3.8" + array-flatten "1.1.1" + body-parser "1.20.1" + content-disposition "0.5.4" + content-type "~1.0.4" + cookie "0.5.0" + cookie-signature "1.0.6" + debug "2.6.9" + depd "2.0.0" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "1.2.0" + fresh "0.5.2" + http-errors "2.0.0" + merge-descriptors "1.0.1" + methods "~1.1.2" + on-finished "2.4.1" + parseurl "~1.3.3" + path-to-regexp "0.1.7" + proxy-addr "~2.0.7" + qs "6.11.0" + range-parser "~1.2.1" + safe-buffer "5.2.1" + send "0.18.0" + serve-static "1.15.0" + setprototypeof "1.2.0" + statuses "2.0.1" + type-is "~1.6.18" + utils-merge "1.0.1" + vary "~1.1.2" -lodash-es@^4.17.21: - version "4.17.21" - resolved "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz" - integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw== +extend@^3.0.0, extend@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== -lodash.camelcase@^4.3.0: - version "4.3.0" - resolved "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz" - integrity sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA== +extract-files@^9.0.0: + version "9.0.0" + resolved "https://registry.npmjs.org/extract-files/-/extract-files-9.0.0.tgz" + integrity sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ== -lodash.debounce@^4.0.8: - version "4.0.8" - resolved "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz" - integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + integrity sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g== -lodash.isequal@4.5.0: - version "4.5.0" - resolved "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz" - integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ== +extsprintf@^1.2.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07" + integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA== -lodash.memoize@^4.1.2: - version "4.1.2" - resolved "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz" - integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== +fast-deep-equal@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz" + integrity sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w== -lodash.merge@^4.6.2: - version "4.6.2" - resolved "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz" - integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: + version "3.1.3" + resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -lodash.sortby@^4.7.0: - version "4.7.0" - resolved "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz" - integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA== +fast-diff@^1.1.2: + version "1.3.0" + resolved "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz" + integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw== -lodash.truncate@^4.4.2: - version "4.4.2" - resolved "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz" - integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== +fast-glob@3.3.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.1.tgz#784b4e897340f3dbbef17413b3f11acf03c874c4" + integrity sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" -lodash.uniq@^4.5.0: - version "4.5.0" - resolved "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz" - integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== +fast-glob@^3.2.9: + version "3.2.12" + resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz" + integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" -lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.0: - version "4.17.21" - resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== +fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== -log-ok@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/log-ok/-/log-ok-0.1.1.tgz#bea3dd36acd0b8a7240d78736b5b97c65444a334" - integrity sha512-cc8VrkS6C+9TFuYAwuHpshrcrGRAv7d0tUJ0GdM72ZBlKXtlgjUZF84O+OhQUdiVHoF7U/nVxwpjOdwUJ8d3Vg== - dependencies: - ansi-green "^0.1.1" - success-symbol "^0.1.0" +fast-levenshtein@^2.0.6: + version "2.0.6" + resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== -log-update@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz" - integrity sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg== +fast-redact@^3.0.0: + version "3.2.0" + resolved "https://registry.npmjs.org/fast-redact/-/fast-redact-3.2.0.tgz" + integrity sha512-zaTadChr+NekyzallAMXATXLOR8MNx3zqpZ0MUF2aGf4EathnG0f32VLODNlY8IuGY3HoRO2L6/6fSzNsLaHIw== + +fast-url-parser@1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz" + integrity sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ== dependencies: - ansi-escapes "^4.3.0" - cli-cursor "^3.1.0" - slice-ansi "^4.0.0" - wrap-ansi "^6.2.0" + punycode "^1.3.2" -log-utils@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/log-utils/-/log-utils-0.2.1.tgz#a4c217a0dd9a50515d9b920206091ab3d4e031cf" - integrity sha512-udyegKoMz9eGfpKAX//Khy7sVAZ8b1F7oLDnepZv/1/y8xTvsyPgqQrM94eG8V0vcc2BieYI2kVW4+aa6m+8Qw== +fastq@^1.6.0: + version "1.15.0" + resolved "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz" + integrity sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw== dependencies: - ansi-colors "^0.2.0" - error-symbol "^0.1.0" - info-symbol "^0.1.0" - log-ok "^0.1.1" - success-symbol "^0.1.0" - time-stamp "^1.0.1" - warning-symbol "^0.1.0" + reusify "^1.0.4" -longest-streak@^3.0.0: - version "3.1.0" - resolved "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz" - integrity sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g== +fetch-cookie@^0.7.3: + version "0.7.3" + resolved "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-0.7.3.tgz" + integrity sha512-rZPkLnI8x5V+zYAiz8QonAHsTb4BY+iFowFBI1RFn0zrO343AVp9X7/yUj/9wL6Ef/8fLls8b/vGtzUvmyAUGA== + dependencies: + es6-denodeify "^0.1.1" + tough-cookie "^2.3.3" -loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3.1, loose-envify@^1.4.0: - version "1.4.0" - resolved "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== +fetch-node@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/fetch-node/-/fetch-node-0.0.1.tgz#61d366345c30648790d3ebe21b42eeb876a43c63" + integrity sha512-dMIE07dVTZkaAYJ2F7YoAJNp95oHwMkgT9umMChOXOEU75fNedhVR571htinPpE5IFmh4n3g7KyFC6wpxT7XPw== dependencies: - js-tokens "^3.0.0 || ^4.0.0" + hooks-node "" + request "" -lower-case@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz" - integrity sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg== +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== dependencies: - tslib "^2.0.3" + flat-cache "^3.0.4" -lru-cache@^4.0.1: - version "4.1.5" - resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz" - integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== +filelist@^1.0.4: + version "1.0.4" + resolved "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz" + integrity sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q== dependencies: - pseudomap "^1.0.2" - yallist "^2.1.2" + minimatch "^5.0.1" -lru-cache@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz" - integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== dependencies: - yallist "^3.0.2" + to-regex-range "^5.0.1" -lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== +filter-obj@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz" + integrity sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ== + +finalhandler@1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz" + integrity sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg== dependencies: - yallist "^4.0.0" + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "2.4.1" + parseurl "~1.3.3" + statuses "2.0.1" + unpipe "~1.0.0" -magic-string@^0.25.0, magic-string@^0.25.7: - version "0.25.9" - resolved "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz" - integrity sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ== +flat-cache@^3.0.4: + version "3.0.4" + resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz" + integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== dependencies: - sourcemap-codec "^1.4.8" + flatted "^3.1.0" + rimraf "^3.0.2" -make-dir@^3.0.0, make-dir@^3.0.2, make-dir@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" +flatted@^3.1.0: + version "3.2.7" + resolved "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz" + integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== -make-error@^1.1.1: - version "1.3.6" - resolved "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz" - integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== +follow-redirects@^1.14.4, follow-redirects@^1.14.8: + version "1.15.2" + resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz" + integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== -makeerror@1.0.12: - version "1.0.12" - resolved "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz" - integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== +for-each@^0.3.3: + version "0.3.3" + resolved "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz" + integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw== dependencies: - tmpl "1.0.5" + is-callable "^1.1.3" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + integrity sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw== -map-age-cleaner@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz#7d583a7306434c055fe474b0f45078e6e1b4b92a" - integrity sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w== +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz" + integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== dependencies: - p-defer "^1.0.0" + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w== +form-data@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" + integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== dependencies: - object-visit "^1.0.0" + asynckit "^0.4.0" + combined-stream "^1.0.6" + mime-types "^2.1.12" -markdown-table@^3.0.0: - version "3.0.3" - resolved "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.3.tgz" - integrity sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw== +formidable@1.0.11: + version "1.0.11" + resolved "https://registry.yarnpkg.com/formidable/-/formidable-1.0.11.tgz#68f63325a035e644b6f7bb3d11243b9761de1b30" + integrity sha512-ZG3xz6afuCmpLGNtTI/W8HDKWisPv/iZgtEvfB1nF3vJHDJ2M4hpU/HDLJQYnTVqErpaLphweqOMULwP/Ls6cg== -match-sorter@^6.0.2: - version "6.3.1" - resolved "https://registry.npmjs.org/match-sorter/-/match-sorter-6.3.1.tgz" - integrity sha512-mxybbo3pPNuA+ZuCUhm5bwNkXrJTbsk5VWbR5wiwz/GC6LIiegBGn2w3O08UG/jdbYLinw51fSQ5xNU1U3MgBw== - dependencies: - "@babel/runtime" "^7.12.5" - remove-accents "0.4.2" +forwarded@0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz" + integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== -md5.js@^1.3.4: - version "1.3.5" - resolved "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz" - integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg== - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - safe-buffer "^5.1.2" +fraction.js@^4.2.0: + version "4.2.0" + resolved "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz" + integrity sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA== -mdast-util-definitions@^5.0.0: - version "5.1.2" - resolved "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-5.1.2.tgz" - integrity sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA== - dependencies: - "@types/mdast" "^3.0.0" - "@types/unist" "^2.0.0" - unist-util-visit "^4.0.0" +fresh@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.1.0.tgz#03e4b0178424e4c2d5d19a54d8814cdc97934850" + integrity sha512-ROG9M8tikYOuOJsvRBggh10WiQ/JebnldAwuCaQyFoiAUIE9XrYVnpznIjOQGZfCMzxzEBYHQr/LHJp3tcndzQ== -mdast-util-find-and-replace@^2.0.0: - version "2.2.2" - resolved "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-2.2.2.tgz" - integrity sha512-MTtdFRz/eMDHXzeK6W3dO7mXUlF82Gom4y0oOgvHhh/HXZAGvIQDUvQ0SuUx+j2tv44b8xTHOm8K/9OoRFnXKw== - dependencies: - "@types/mdast" "^3.0.0" - escape-string-regexp "^5.0.0" - unist-util-is "^5.0.0" - unist-util-visit-parents "^5.0.0" +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz" + integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== -mdast-util-from-markdown@^1.0.0: - version "1.3.1" - resolved "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz" - integrity sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww== - dependencies: - "@types/mdast" "^3.0.0" - "@types/unist" "^2.0.0" - decode-named-character-reference "^1.0.0" - mdast-util-to-string "^3.1.0" - micromark "^3.0.0" - micromark-util-decode-numeric-character-reference "^1.0.0" - micromark-util-decode-string "^1.0.0" - micromark-util-normalize-identifier "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" - unist-util-stringify-position "^3.0.0" - uvu "^0.5.0" +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -mdast-util-gfm-autolink-literal@^1.0.0: - version "1.0.3" - resolved "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-1.0.3.tgz" - integrity sha512-My8KJ57FYEy2W2LyNom4n3E7hKTuQk/0SES0u16tjA9Z3oFkF4RrC/hPAPgjlSpezsOvI8ObcXcElo92wn5IGA== - dependencies: - "@types/mdast" "^3.0.0" - ccount "^2.0.0" - mdast-util-find-and-replace "^2.0.0" - micromark-util-character "^1.0.0" +fsevents@~2.3.2: + version "2.3.2" + resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz" + integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== -mdast-util-gfm-footnote@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-1.0.2.tgz" - integrity sha512-56D19KOGbE00uKVj3sgIykpwKL179QsVFwx/DCW0u/0+URsryacI4MAdNJl0dh+u2PSsD9FtxPFbHCzJ78qJFQ== - dependencies: - "@types/mdast" "^3.0.0" - mdast-util-to-markdown "^1.3.0" - micromark-util-normalize-identifier "^1.0.0" +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== -mdast-util-gfm-strikethrough@^1.0.0: - version "1.0.3" - resolved "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-1.0.3.tgz" - integrity sha512-DAPhYzTYrRcXdMjUtUjKvW9z/FNAMTdU0ORyMcbmkwYNbKocDpdk+PX1L1dQgOID/+vVs1uBQ7ElrBQfZ0cuiQ== +function.prototype.name@^1.1.5: + version "1.1.5" + resolved "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz" + integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== dependencies: - "@types/mdast" "^3.0.0" - mdast-util-to-markdown "^1.3.0" + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.0" + functions-have-names "^1.2.2" -mdast-util-gfm-table@^1.0.0: - version "1.0.7" - resolved "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-1.0.7.tgz" - integrity sha512-jjcpmNnQvrmN5Vx7y7lEc2iIOEytYv7rTvu+MeyAsSHTASGCCRA79Igg2uKssgOs1i1po8s3plW0sTu1wkkLGg== - dependencies: - "@types/mdast" "^3.0.0" - markdown-table "^3.0.0" - mdast-util-from-markdown "^1.0.0" - mdast-util-to-markdown "^1.3.0" +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz" + integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== -mdast-util-gfm-task-list-item@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-1.0.2.tgz" - integrity sha512-PFTA1gzfp1B1UaiJVyhJZA1rm0+Tzn690frc/L8vNX1Jop4STZgOE6bxUhnzdVSB+vm2GU1tIsuQcA9bxTQpMQ== - dependencies: - "@types/mdast" "^3.0.0" - mdast-util-to-markdown "^1.3.0" +functions-have-names@^1.2.2, functions-have-names@^1.2.3: + version "1.2.3" + resolved "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== -mdast-util-gfm@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-2.0.2.tgz" - integrity sha512-qvZ608nBppZ4icQlhQQIAdc6S3Ffj9RGmzwUKUWuEICFnd1LVkN3EktF7ZHAgfcEdvZB5owU9tQgt99e2TlLjg== - dependencies: - mdast-util-from-markdown "^1.0.0" - mdast-util-gfm-autolink-literal "^1.0.0" - mdast-util-gfm-footnote "^1.0.0" - mdast-util-gfm-strikethrough "^1.0.0" - mdast-util-gfm-table "^1.0.0" - mdast-util-gfm-task-list-item "^1.0.0" - mdast-util-to-markdown "^1.0.0" +get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -mdast-util-newline-to-break@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/mdast-util-newline-to-break/-/mdast-util-newline-to-break-1.0.0.tgz" - integrity sha512-491LcYv3gbGhhCrLoeALncQmega2xPh+m3gbsIhVsOX4sw85+ShLFPvPyibxc1Swx/6GtzxgVodq+cGa/47ULg== +get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0: + version "1.2.1" + resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz" + integrity sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw== dependencies: - "@types/mdast" "^3.0.0" - mdast-util-find-and-replace "^2.0.0" + function-bind "^1.1.1" + has "^1.0.3" + has-proto "^1.0.1" + has-symbols "^1.0.3" -mdast-util-phrasing@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-3.0.1.tgz" - integrity sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg== - dependencies: - "@types/mdast" "^3.0.0" - unist-util-is "^5.0.0" +get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz" + integrity sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ== -mdast-util-to-hast@^12.1.0: - version "12.3.0" - resolved "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-12.3.0.tgz" - integrity sha512-pits93r8PhnIoU4Vy9bjW39M2jJ6/tdHyja9rrot9uujkN7UTU9SDnE6WNJz/IGyQk3XHX6yNNtrBH6cQzm8Hw== - dependencies: - "@types/hast" "^2.0.0" - "@types/mdast" "^3.0.0" - mdast-util-definitions "^5.0.0" - micromark-util-sanitize-uri "^1.1.0" - trim-lines "^3.0.0" - unist-util-generated "^2.0.0" - unist-util-position "^4.0.0" - unist-util-visit "^4.0.0" +get-stream@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" + integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -mdast-util-to-markdown@^1.0.0, mdast-util-to-markdown@^1.3.0: - version "1.5.0" - resolved "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-1.5.0.tgz" - integrity sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A== +get-symbol-description@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz" + integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== dependencies: - "@types/mdast" "^3.0.0" - "@types/unist" "^2.0.0" - longest-streak "^3.0.0" - mdast-util-phrasing "^3.0.0" - mdast-util-to-string "^3.0.0" - micromark-util-decode-string "^1.0.0" - unist-util-visit "^4.0.0" - zwitch "^2.0.0" - -mdast-util-to-string@^3.0.0, mdast-util-to-string@^3.1.0: - version "3.2.0" - resolved "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz" - integrity sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg== + call-bind "^1.0.2" + get-intrinsic "^1.1.1" + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + integrity sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng== dependencies: - "@types/mdast" "^3.0.0" + assert-plus "^1.0.0" -mdn-data@2.0.14: - version "2.0.14" - resolved "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz" - integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow== +glob-parent@^5.1.2, glob-parent@~5.1.2: + version "5.1.2" + resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" -mdn-data@2.0.4: - version "2.0.4" - resolved "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz" - integrity sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA== +glob@^7.1.3, glob@^7.1.6: + version "7.2.3" + resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" -media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" - integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== +globals@^13.6.0, globals@^13.9.0: + version "13.20.0" + resolved "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz" + integrity sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ== + dependencies: + type-fest "^0.20.2" -mem@^4.0.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/mem/-/mem-4.3.0.tgz#461af497bc4ae09608cdb2e60eefb69bff744178" - integrity sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w== +globalthis@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz" + integrity sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA== dependencies: - map-age-cleaner "^0.1.1" - mimic-fn "^2.0.0" - p-is-promise "^2.0.0" + define-properties "^1.1.3" -memfs@^3.1.2, memfs@^3.4.3: - version "3.5.1" - resolved "https://registry.npmjs.org/memfs/-/memfs-3.5.1.tgz" - integrity sha512-UWbFJKvj5k+nETdteFndTpYxdeTMox/ULeqX5k/dpaQJCCFmj5EeKv3dBcyO2xmkRAx2vppRu5dVG7SOtsGOzA== +globby@^11.0.3: + version "11.1.0" + resolved "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz" + integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== dependencies: - fs-monkey "^1.0.3" + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.2.9" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^3.0.0" -merge-descriptors@1.0.1: +gopd@^1.0.1: version "1.0.1" - resolved "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz" - integrity sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w== + resolved "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz" + integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== + dependencies: + get-intrinsic "^1.1.3" -merge-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz" - integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== +graphql-request@^3.4.0: + version "3.7.0" + resolved "https://registry.npmjs.org/graphql-request/-/graphql-request-3.7.0.tgz" + integrity sha512-dw5PxHCgBneN2DDNqpWu8QkbbJ07oOziy8z+bK/TAXufsOLaETuVO4GkXrbs0WjhdKhBMN3BkpN/RIvUHkmNUQ== + dependencies: + cross-fetch "^3.0.6" + extract-files "^9.0.0" + form-data "^3.0.0" -merge2@^1.3.0, merge2@^1.4.1: - version "1.4.1" - resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz" - integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== +graphql@^15.5.1: + version "15.8.0" + resolved "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz" + integrity sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw== -methods@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/methods/-/methods-0.0.1.tgz#277c90f8bef39709645a8371c51c3b6c648e068c" - integrity sha512-pB8oFfci/xcfUgM6DTxc7lbTKifPPgs3mZUOsEgaH+1TTWpmcmv3sHl+5sUHIj2X2W8aPYa2+nJealRHK+Lo6A== +gzip-size@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz" + integrity sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q== + dependencies: + duplexer "^0.1.2" -methods@~1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz" - integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== +har-schema@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + integrity sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q== -micromark-core-commonmark@^1.0.0, micromark-core-commonmark@^1.0.1: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-1.1.0.tgz" - integrity sha512-BgHO1aRbolh2hcrzL2d1La37V0Aoz73ymF8rAcKnohLy93titmv62E0gP8Hrx9PKcKrqCZ1BbLGbP3bEhoXYlw== +har-validator@~5.1.3: + version "5.1.5" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.5.tgz#1f0803b9f8cb20c0fa13822df1ecddb36bde1efd" + integrity sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w== dependencies: - decode-named-character-reference "^1.0.0" - micromark-factory-destination "^1.0.0" - micromark-factory-label "^1.0.0" - micromark-factory-space "^1.0.0" - micromark-factory-title "^1.0.0" - micromark-factory-whitespace "^1.0.0" - micromark-util-character "^1.0.0" - micromark-util-chunked "^1.0.0" - micromark-util-classify-character "^1.0.0" - micromark-util-html-tag-name "^1.0.0" - micromark-util-normalize-identifier "^1.0.0" - micromark-util-resolve-all "^1.0.0" - micromark-util-subtokenize "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.1" - uvu "^0.5.0" + ajv "^6.12.3" + har-schema "^2.0.0" -micromark-extension-gfm-autolink-literal@^1.0.0: - version "1.0.5" - resolved "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-1.0.5.tgz" - integrity sha512-z3wJSLrDf8kRDOh2qBtoTRD53vJ+CWIyo7uyZuxf/JAbNJjiHsOpG1y5wxk8drtv3ETAHutCu6N3thkOOgueWg== - dependencies: - micromark-util-character "^1.0.0" - micromark-util-sanitize-uri "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" +has-bigints@^1.0.1, has-bigints@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz" + integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== -micromark-extension-gfm-footnote@^1.0.0: - version "1.1.2" - resolved "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-1.1.2.tgz" - integrity sha512-Yxn7z7SxgyGWRNa4wzf8AhYYWNrwl5q1Z8ii+CSTTIqVkmGZF1CElX2JI8g5yGoM3GAman9/PVCUFUSJ0kB/8Q== - dependencies: - micromark-core-commonmark "^1.0.0" - micromark-factory-space "^1.0.0" - micromark-util-character "^1.0.0" - micromark-util-normalize-identifier "^1.0.0" - micromark-util-sanitize-uri "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" - uvu "^0.5.0" +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== -micromark-extension-gfm-strikethrough@^1.0.0: - version "1.0.7" - resolved "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-1.0.7.tgz" - integrity sha512-sX0FawVE1o3abGk3vRjOH50L5TTLr3b5XMqnP9YDRb34M0v5OoZhG+OHFz1OffZ9dlwgpTBKaT4XW/AsUVnSDw== - dependencies: - micromark-util-chunked "^1.0.0" - micromark-util-classify-character "^1.0.0" - micromark-util-resolve-all "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" - uvu "^0.5.0" +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -micromark-extension-gfm-table@^1.0.0: - version "1.0.7" - resolved "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-1.0.7.tgz" - integrity sha512-3ZORTHtcSnMQEKtAOsBQ9/oHp9096pI/UvdPtN7ehKvrmZZ2+bbWhi0ln+I9drmwXMt5boocn6OlwQzNXeVeqw== +has-property-descriptors@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz" + integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== dependencies: - micromark-factory-space "^1.0.0" - micromark-util-character "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" - uvu "^0.5.0" + get-intrinsic "^1.1.1" -micromark-extension-gfm-tagfilter@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-1.0.2.tgz" - integrity sha512-5XWB9GbAUSHTn8VPU8/1DBXMuKYT5uOgEjJb8gN3mW0PNW5OPHpSdojoqf+iq1xo7vWzw/P8bAHY0n6ijpXF7g== - dependencies: - micromark-util-types "^1.0.0" +has-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz" + integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== -micromark-extension-gfm-task-list-item@^1.0.0: - version "1.0.5" - resolved "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-1.0.5.tgz" - integrity sha512-RMFXl2uQ0pNQy6Lun2YBYT9g9INXtWJULgbt01D/x8/6yJ2qpKyzdZD3pi6UIkzF++Da49xAelVKUeUMqd5eIQ== +has-symbols@^1.0.2, has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + +has-tostringtag@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz" + integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== dependencies: - micromark-factory-space "^1.0.0" - micromark-util-character "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" - uvu "^0.5.0" + has-symbols "^1.0.2" -micromark-extension-gfm@^2.0.0: - version "2.0.3" - resolved "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-2.0.3.tgz" - integrity sha512-vb9OoHqrhCmbRidQv/2+Bc6pkP0FrtlhurxZofvOEy5o8RtuuvTq+RQ1Vw5ZDNrVraQZu3HixESqbG+0iKk/MQ== +has@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/has/-/has-1.0.3.tgz" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== dependencies: - micromark-extension-gfm-autolink-literal "^1.0.0" - micromark-extension-gfm-footnote "^1.0.0" - micromark-extension-gfm-strikethrough "^1.0.0" - micromark-extension-gfm-table "^1.0.0" - micromark-extension-gfm-tagfilter "^1.0.0" - micromark-extension-gfm-task-list-item "^1.0.0" - micromark-util-combine-extensions "^1.0.0" - micromark-util-types "^1.0.0" + function-bind "^1.1.1" -micromark-factory-destination@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-1.1.0.tgz" - integrity sha512-XaNDROBgx9SgSChd69pjiGKbV+nfHGDPVYFs5dOoDd7ZnMAE+Cuu91BCpsY8RT2NP9vo/B8pds2VQNCLiu0zhg== +hash-base@^3.0.0: + version "3.1.0" + resolved "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz" + integrity sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA== dependencies: - micromark-util-character "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" + inherits "^2.0.4" + readable-stream "^3.6.0" + safe-buffer "^5.2.0" -micromark-factory-label@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-1.1.0.tgz" - integrity sha512-OLtyez4vZo/1NjxGhcpDSbHQ+m0IIGnT8BoPamh+7jVlzLJBH98zzuCoUeMxvM6WsNeh8wx8cKvqLiPHEACn0w== +hash.js@^1.0.0, hash.js@^1.0.3: + version "1.1.7" + resolved "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz" + integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA== dependencies: - micromark-util-character "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" - uvu "^0.5.0" + inherits "^2.0.3" + minimalistic-assert "^1.0.1" -micromark-factory-space@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-1.1.0.tgz" - integrity sha512-cRzEj7c0OL4Mw2v6nwzttyOZe8XY/Z8G0rzmWQZTBi/jjwyw/U4uqKtUORXQrR5bAZZnbTI/feRV/R7hc4jQYQ== +hast-util-from-parse5@^7.0.0: + version "7.1.2" + resolved "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-7.1.2.tgz" + integrity sha512-Nz7FfPBuljzsN3tCQ4kCBKqdNhQE2l0Tn+X1ubgKBPRoiDIu1mL08Cfw4k7q71+Duyaw7DXDN+VTAp4Vh3oCOw== dependencies: - micromark-util-character "^1.0.0" - micromark-util-types "^1.0.0" + "@types/hast" "^2.0.0" + "@types/unist" "^2.0.0" + hastscript "^7.0.0" + property-information "^6.0.0" + vfile "^5.0.0" + vfile-location "^4.0.0" + web-namespaces "^2.0.0" -micromark-factory-title@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-1.1.0.tgz" - integrity sha512-J7n9R3vMmgjDOCY8NPw55jiyaQnH5kBdV2/UXCtZIpnHH3P6nHUKaH7XXEYuWwx/xUJcawa8plLBEjMPU24HzQ== +hast-util-parse-selector@^3.0.0: + version "3.1.1" + resolved "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-3.1.1.tgz" + integrity sha512-jdlwBjEexy1oGz0aJ2f4GKMaVKkA9jwjr4MjAAI22E5fM/TXVZHuS5OpONtdeIkRKqAaryQ2E9xNQxijoThSZA== dependencies: - micromark-factory-space "^1.0.0" - micromark-util-character "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" + "@types/hast" "^2.0.0" -micromark-factory-whitespace@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-1.1.0.tgz" - integrity sha512-v2WlmiymVSp5oMg+1Q0N1Lxmt6pMhIHD457whWM7/GUlEks1hI9xj5w3zbc4uuMKXGisksZk8DzP2UyGbGqNsQ== +hast-util-raw@^7.2.0: + version "7.2.3" + resolved "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-7.2.3.tgz" + integrity sha512-RujVQfVsOrxzPOPSzZFiwofMArbQke6DJjnFfceiEbFh7S05CbPt0cYN+A5YeD3pso0JQk6O1aHBnx9+Pm2uqg== dependencies: - micromark-factory-space "^1.0.0" - micromark-util-character "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" + "@types/hast" "^2.0.0" + "@types/parse5" "^6.0.0" + hast-util-from-parse5 "^7.0.0" + hast-util-to-parse5 "^7.0.0" + html-void-elements "^2.0.0" + parse5 "^6.0.0" + unist-util-position "^4.0.0" + unist-util-visit "^4.0.0" + vfile "^5.0.0" + web-namespaces "^2.0.0" + zwitch "^2.0.0" -micromark-util-character@^1.0.0: - version "1.2.0" - resolved "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz" - integrity sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg== +hast-util-to-parse5@^7.0.0: + version "7.1.0" + resolved "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-7.1.0.tgz" + integrity sha512-YNRgAJkH2Jky5ySkIqFXTQiaqcAtJyVE+D5lkN6CdtOqrnkLfGYYrEcKuHOJZlp+MwjSwuD3fZuawI+sic/RBw== dependencies: - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" + "@types/hast" "^2.0.0" + comma-separated-tokens "^2.0.0" + property-information "^6.0.0" + space-separated-tokens "^2.0.0" + web-namespaces "^2.0.0" + zwitch "^2.0.0" -micromark-util-chunked@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-1.1.0.tgz" - integrity sha512-Ye01HXpkZPNcV6FiyoW2fGZDUw4Yc7vT0E9Sad83+bEDiCJ1uXu0S3mr8WLpsz3HaG3x2q0HM6CTuPdcZcluFQ== +hastscript@^7.0.0: + version "7.2.0" + resolved "https://registry.npmjs.org/hastscript/-/hastscript-7.2.0.tgz" + integrity sha512-TtYPq24IldU8iKoJQqvZOuhi5CyCQRAbvDOX0x1eW6rsHSxa/1i2CCiptNTotGHJ3VoHRGmqiv6/D3q113ikkw== dependencies: - micromark-util-symbol "^1.0.0" + "@types/hast" "^2.0.0" + comma-separated-tokens "^2.0.0" + hast-util-parse-selector "^3.0.0" + property-information "^6.0.0" + space-separated-tokens "^2.0.0" -micromark-util-classify-character@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-1.1.0.tgz" - integrity sha512-SL0wLxtKSnklKSUplok1WQFoGhUdWYKggKUiqhX+Swala+BtptGCu5iPRc+xvzJ4PXE/hwM3FNXsfEVgoZsWbw== +hex-to-rgba@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/hex-to-rgba/-/hex-to-rgba-2.0.1.tgz" + integrity sha512-5XqPJBpsEUMsseJUi2w2Hl7cHFFi3+OO10M2pzAvKB1zL6fc+koGMhmBqoDOCB4GemiRM/zvDMRIhVw6EkB8dQ== + +hmac-drbg@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz" + integrity sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg== dependencies: - micromark-util-character "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" -micromark-util-combine-extensions@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.1.0.tgz" - integrity sha512-Q20sp4mfNf9yEqDL50WwuWZHUrCO4fEyeDCnMGmG5Pr0Cz15Uo7KBs6jq+dq0EgX4DPwwrh9m0X+zPV1ypFvUA== +hogan-express@: + version "0.5.2" + resolved "https://registry.yarnpkg.com/hogan-express/-/hogan-express-0.5.2.tgz#52994ac842a423d4e1075181b9a3247de36950eb" + integrity sha512-tJsDoMyiK3aIdDz9liyQ9j+dwpK+pvGXxAaRZ8Cp5LS1dJlihtkZo+0rROwqZ2yqrxsjboMIrADq/W/HePBBgQ== dependencies: - micromark-util-chunked "^1.0.0" - micromark-util-types "^1.0.0" + hogan.js ">=2.0.0" -micromark-util-decode-numeric-character-reference@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.1.0.tgz" - integrity sha512-m9V0ExGv0jB1OT21mrWcuf4QhP46pH1KkfWy9ZEezqHKAxkj4mPCy3nIH1rkbdMlChLHX531eOrymlwyZIf2iw== +hogan.js@>=2.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/hogan.js/-/hogan.js-3.0.2.tgz#4cd9e1abd4294146e7679e41d7898732b02c7bfd" + integrity sha512-RqGs4wavGYJWE07t35JQccByczmNUXQT0E12ZYV1VKYu5UiAU9lsos/yBAcf840+zrUQQxgVduCR5/B8nNtibg== dependencies: - micromark-util-symbol "^1.0.0" + mkdirp "0.3.0" + nopt "1.0.10" -micromark-util-decode-string@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-1.1.0.tgz" - integrity sha512-YphLGCK8gM1tG1bd54azwyrQRjCFcmgj2S2GoJDNnh4vYtnL38JS8M4gpxzOPNyHdNEpheyWXCTnnTDY3N+NVQ== +hoist-non-react-statics@^3.3.2: + version "3.3.2" + resolved "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz" + integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw== dependencies: - decode-named-character-reference "^1.0.0" - micromark-util-character "^1.0.0" - micromark-util-decode-numeric-character-reference "^1.0.0" - micromark-util-symbol "^1.0.0" + react-is "^16.7.0" -micromark-util-encode@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz" - integrity sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw== +hooks-node@: + version "0.0.1" + resolved "https://registry.yarnpkg.com/hooks-node/-/hooks-node-0.0.1.tgz#0fb3956293fd876b38aed3986bc8dec689ff15c8" + integrity sha512-aQ2z99Ilj9dPTAIBXUJJYDO3mFbbzxJMMqTciWkVXECdkLjGHH3MnFUDVw97qPsYiAE2A0Ic9WXlxNsDRrtmLQ== + dependencies: + express "3.0.3" + hogan-express "" + request "" -micromark-util-html-tag-name@^1.0.0: - version "1.2.0" - resolved "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.2.0.tgz" - integrity sha512-VTQzcuQgFUD7yYztuQFKXT49KghjtETQ+Wv/zUjGSGBioZnkA4P1XXZPT1FHeJA6RwRXSF47yvJ1tsJdoxwO+Q== +html-void-elements@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/html-void-elements/-/html-void-elements-2.0.1.tgz" + integrity sha512-0quDb7s97CfemeJAnW9wC0hw78MtW7NU3hqtCD75g2vFlDLt36llsYD7uB7SUzojLMP24N5IatXf7ylGXiGG9A== -micromark-util-normalize-identifier@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.1.0.tgz" - integrity sha512-N+w5vhqrBihhjdpM8+5Xsxy71QWqGn7HYNUvch71iV2PM7+E3uWGox1Qp90loa1ephtCxG2ftRV/Conitc6P2Q== +http-errors@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz" + integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== dependencies: - micromark-util-symbol "^1.0.0" + depd "2.0.0" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses "2.0.1" + toidentifier "1.0.1" -micromark-util-resolve-all@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-1.1.0.tgz" - integrity sha512-b/G6BTMSg+bX+xVCshPTPyAu2tmA0E4X98NSR7eIbeC6ycCqCeE7wjfDIgzEbkzdEVJXRtOG4FbEm/uGbCRouA== +http-errors@~1.6.1: + version "1.6.3" + resolved "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz" + integrity sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A== dependencies: - micromark-util-types "^1.0.0" + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.0" + statuses ">= 1.4.0 < 2" -micromark-util-sanitize-uri@^1.0.0, micromark-util-sanitize-uri@^1.1.0: +http-signature@~1.2.0: version "1.2.0" - resolved "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz" - integrity sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A== + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + integrity sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ== dependencies: - micromark-util-character "^1.0.0" - micromark-util-encode "^1.0.0" - micromark-util-symbol "^1.0.0" + assert-plus "^1.0.0" + jsprim "^1.2.2" + sshpk "^1.7.0" -micromark-util-subtokenize@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-1.1.0.tgz" - integrity sha512-kUQHyzRoxvZO2PuLzMt2P/dwVsTiivCK8icYTeR+3WgbuPqfHgPPy7nFKbeqRivBvn/3N3GBiNC+JRTMSxEC7A== +human-signals@^4.3.0: + version "4.3.1" + resolved "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz" + integrity sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ== + +husky@^8.0.1: + version "8.0.3" + resolved "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz" + integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg== + +iconv-lite@0.4.24: + version "0.4.24" + resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== dependencies: - micromark-util-chunked "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.0" - uvu "^0.5.0" + safer-buffer ">= 2.1.2 < 3" -micromark-util-symbol@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz" - integrity sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag== +ieee754@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" + integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== -micromark-util-types@^1.0.0, micromark-util-types@^1.0.1: - version "1.1.0" - resolved "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz" - integrity sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg== +ignore-by-default@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz" + integrity sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA== -micromark@^3.0.0: - version "3.2.0" - resolved "https://registry.npmjs.org/micromark/-/micromark-3.2.0.tgz" - integrity sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA== - dependencies: - "@types/debug" "^4.0.0" - debug "^4.0.0" - decode-named-character-reference "^1.0.0" - micromark-core-commonmark "^1.0.1" - micromark-factory-space "^1.0.0" - micromark-util-character "^1.0.0" - micromark-util-chunked "^1.0.0" - micromark-util-combine-extensions "^1.0.0" - micromark-util-decode-numeric-character-reference "^1.0.0" - micromark-util-encode "^1.0.0" - micromark-util-normalize-identifier "^1.0.0" - micromark-util-resolve-all "^1.0.0" - micromark-util-sanitize-uri "^1.0.0" - micromark-util-subtokenize "^1.0.0" - micromark-util-symbol "^1.0.0" - micromark-util-types "^1.0.1" - uvu "^0.5.0" +ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +ignore@^5.1.8, ignore@^5.2.0: + version "5.2.4" + resolved "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz" + integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== -micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5: - version "4.0.5" - resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz" - integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== +import-fresh@^3.0.0, import-fresh@^3.2.1: + version "3.3.0" + resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== dependencies: - braces "^3.0.2" - picomatch "^2.3.1" + parent-module "^1.0.0" + resolve-from "^4.0.0" -microseconds@0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/microseconds/-/microseconds-0.2.0.tgz" - integrity sha512-n7DHHMjR1avBbSpsTBj6fmMGh2AGrifVV4e+WYc3Q9lO+xnSZ3NyhcBND3vzzatt05LFhoKFRxrIyklmLlUtyA== +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" + integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== -miller-rabin@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz" - integrity sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA== +indent-string@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz" + integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== dependencies: - bn.js "^4.0.0" - brorand "^1.0.1" + once "^1.3.0" + wrappy "1" -mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": - version "1.52.0" - resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== +inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: + version "2.0.4" + resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== -mime-db@~1.33.0: - version "1.33.0" - resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz" - integrity sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ== +inherits@2.0.3: + version "2.0.3" + resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz" + integrity sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw== -mime-types@2.1.18: - version "2.1.18" - resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz" - integrity sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ== +ini@~1.3.0: + version "1.3.8" + resolved "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz" + integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== + +internal-slot@^1.0.3, internal-slot@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz" + integrity sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ== dependencies: - mime-db "~1.33.0" + get-intrinsic "^1.2.0" + has "^1.0.3" + side-channel "^1.0.4" -mime-types@^2.1.12, mime-types@^2.1.27, mime-types@^2.1.31, mime-types@~2.1.17, mime-types@~2.1.19, mime-types@~2.1.24, mime-types@~2.1.34: - version "2.1.35" - resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" - integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== +ipaddr.js@1.9.1: + version "1.9.1" + resolved "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz" + integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== + +is-arguments@^1.0.4: + version "1.1.1" + resolved "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz" + integrity sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA== dependencies: - mime-db "1.52.0" + call-bind "^1.0.2" + has-tostringtag "^1.0.0" -mime@1.2.6: - version "1.2.6" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.2.6.tgz#b1f86c768c025fa87b48075f1709f28aeaf20365" - integrity sha512-S4yfg1ehMduQ5F3NeTUUWJesnut4RvymaRSatO4etOm68yZE98oCg2GtgG0coGYx03GCv240sezMvRwFk8DUKw== +is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz" + integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.0" + is-typed-array "^1.1.10" -mime@1.6.0: - version "1.6.0" - resolved "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz" - integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz" + integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== + +is-bigint@^1.0.1: + version "1.0.4" + resolved "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz" + integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== + dependencies: + has-bigints "^1.0.1" -mimic-fn@^2.0.0, mimic-fn@^2.1.0: +is-binary-path@~2.1.0: version "2.1.0" - resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" - integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" -mimic-fn@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz" - integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== +is-boolean-object@^1.1.0: + version "1.1.2" + resolved "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz" + integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-buffer@^2.0.0: + version "2.0.5" + resolved "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz" + integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== + +is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: + version "1.2.7" + resolved "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz" + integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== -mini-css-extract-plugin@^2.4.5: - version "2.7.6" - resolved "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz" - integrity sha512-Qk7HcgaPkGG6eD77mLvZS1nmxlao3j+9PkrT9Uc7HAE1id3F41+DdBRYRYkbyfNRGzm8/YWtzhw7nVPmwhqTQw== +is-core-module@^2.9.0: + version "2.12.1" + resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz" + integrity sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg== dependencies: - schema-utils "^4.0.0" + has "^1.0.3" -mini-queue@0.0.14: - version "0.0.14" - resolved "https://registry.yarnpkg.com/mini-queue/-/mini-queue-0.0.14.tgz#83d2f3f908e3cac5390bd986d1e6fbbfa0d95b93" - integrity sha512-DNh9Wn8U1jrmn1yVfpviwClyER/Y4ltgGbG+LF/KIdKJ8BEo2Q9jDDPG7tEhz6F/DTZ/ohv5D7AAXFVSFyP05Q== +is-date-object@^1.0.1: + version "1.0.5" + resolved "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz" + integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== dependencies: - debug "^3.1.0" + has-tostringtag "^1.0.0" -minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz" - integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== +is-docker@^2.0.0: + version "2.2.1" + resolved "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz" + integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== -minimalistic-crypto-utils@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz" - integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg== +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== -minimatch@3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz" + integrity sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w== + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-fullwidth-code-point@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz" + integrity sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ== + +is-generator-function@^1.0.7: + version "1.0.10" + resolved "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz" + integrity sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A== dependencies: - brace-expansion "^1.1.7" + has-tostringtag "^1.0.0" -minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: - version "3.1.2" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1: + version "4.0.3" + resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== dependencies: - brace-expansion "^1.1.7" + is-extglob "^2.1.1" -minimatch@^5.0.1: - version "5.1.6" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz" - integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== +is-nan@^1.2.1: + version "1.3.2" + resolved "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz" + integrity sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w== dependencies: - brace-expansion "^2.0.1" + call-bind "^1.0.0" + define-properties "^1.1.3" -minimist@^1.2.0, minimist@^1.2.6: - version "1.2.8" - resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz" - integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== +is-negative-zero@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz" + integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== -mixin-object@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/mixin-object/-/mixin-object-2.0.1.tgz#4fb949441dab182540f1fe035ba60e1947a5e57e" - integrity sha512-ALGF1Jt9ouehcaXaHhn6t1yGWRqGaHkPFndtFVHfZXOvkIZ/yoGaSi0AHVTafb3ZBGg4dr/bDwnaEKqCXzchMA== +is-number-object@^1.0.4: + version "1.0.7" + resolved "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz" + integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== dependencies: - for-in "^0.1.3" - is-extendable "^0.1.1" - -mixpanel-browser@^2.42.0: - version "2.47.0" - resolved "https://registry.npmjs.org/mixpanel-browser/-/mixpanel-browser-2.47.0.tgz" - integrity sha512-Ldrva0fRBEIFWmEibBQO1PulfpJVF3pf28Guk09lDirDaSQqqU/xs9zQLwN2rL5VwVtsP1aD3JaCgaa98EjojQ== + has-tostringtag "^1.0.0" -mkdirp@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.3.0.tgz#1bbf5ab1ba827af23575143490426455f481fe1e" - integrity sha512-OHsdUcVAQ6pOtg5JYWpCBo9W/GySVuwvP9hueRMW7UqshC0tbfzLv8wjySTPm3tfUZ/21CE9E1pJagOA91Pxew== +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== -mkdirp@0.3.3: - version "0.3.3" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.3.3.tgz#595e251c1370c3a68bab2136d0e348b8105adf13" - integrity sha512-Oamd41MnZw/yuxtarGf3MFbHzFqQY4S17DcN+rATh2t5MKuCtG7vVVRG+RUT6g9+hr47DIVucIHGOUlwmJRvDA== +is-plain-obj@^4.0.0: + version "4.1.0" + resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz" + integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg== -mkdirp@^0.5.1, mkdirp@~0.5.1: - version "0.5.6" - resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz" - integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== +is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== dependencies: - minimist "^1.2.6" + isobject "^3.0.1" -mri@^1.1.0: - version "1.2.0" - resolved "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz" - integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA== +is-regex@^1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz" + integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" -ms@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" - integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== +is-shared-array-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz" + integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== + dependencies: + call-bind "^1.0.2" -ms@2.1.2: - version "2.1.2" - resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz" + integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== -ms@2.1.3, ms@^2.1.1: - version "2.1.3" - resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== +is-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz" + integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA== -multicast-dns@^7.2.5: - version "7.2.5" - resolved "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz" - integrity sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg== +is-string@^1.0.5, is-string@^1.0.7: + version "1.0.7" + resolved "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz" + integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== dependencies: - dns-packet "^5.2.2" - thunky "^1.0.2" - -multiformats@^9.4.2: - version "9.9.0" - resolved "https://registry.npmjs.org/multiformats/-/multiformats-9.9.0.tgz" - integrity sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg== + has-tostringtag "^1.0.0" -mute-stream@0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" - integrity sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ== +is-symbol@^1.0.2, is-symbol@^1.0.3: + version "1.0.4" + resolved "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz" + integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== + dependencies: + has-symbols "^1.0.2" -mz@^2.7.0: - version "2.7.0" - resolved "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz" - integrity sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q== +is-typed-array@^1.1.10, is-typed-array@^1.1.3, is-typed-array@^1.1.9: + version "1.1.10" + resolved "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz" + integrity sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A== dependencies: - any-promise "^1.0.0" - object-assign "^4.0.1" - thenify-all "^1.0.0" + available-typed-arrays "^1.0.5" + call-bind "^1.0.2" + for-each "^0.3.3" + gopd "^1.0.1" + has-tostringtag "^1.0.0" -nano-time@1.0.0: +is-typedarray@~1.0.0: version "1.0.0" - resolved "https://registry.npmjs.org/nano-time/-/nano-time-1.0.0.tgz" - integrity sha512-flnngywOoQ0lLQOTRNexn2gGSNuM9bKj9RZAWSzhQ+UJYaAFG9bac4DW9VHjUAzrOaIcajHybCTHe/bkvozQqA== + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== + +is-weakref@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz" + integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== dependencies: - big-integer "^1.6.16" + call-bind "^1.0.2" -nanoclone@^0.2.1: - version "0.2.1" - resolved "https://registry.npmjs.org/nanoclone/-/nanoclone-0.2.1.tgz" - integrity sha512-wynEP02LmIbLpcYw8uBKpcfF6dmg2vcpKqxeH5UcoKEYdExslsdUA4ugFauuaeYdTB76ez6gJW8XAZ6CgkXYxA== +is-wsl@^2.1.1: + version "2.2.0" + resolved "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz" + integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== + dependencies: + is-docker "^2.0.0" -nanoid@^3.3.6: - version "3.3.6" - resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz" - integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA== +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -natural-compare-lite@^1.4.0: - version "1.4.0" - resolved "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz" - integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== +isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz" + integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" - integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== -negotiator@0.6.3: - version "0.6.3" - resolved "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz" - integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== +jake@^10.8.5: + version "10.8.7" + resolved "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz" + integrity sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w== + dependencies: + async "^3.2.3" + chalk "^4.0.2" + filelist "^1.0.4" + minimatch "^3.1.2" -neo-async@^2.6.2: - version "2.6.2" - resolved "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz" - integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== +jest-diff@^26.0.0: + version "26.6.2" + resolved "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz" + integrity sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA== + dependencies: + chalk "^4.0.0" + diff-sequences "^26.6.2" + jest-get-type "^26.3.0" + pretty-format "^26.6.2" -net@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/net/-/net-1.0.2.tgz" - integrity sha512-kbhcj2SVVR4caaVnGLJKmlk2+f+oLkjqdKeQlmUtz6nGzOpbcobwVIeSURNgraV/v3tlmGIX82OcPCl0K6RbHQ== +jest-get-type@^26.3.0: + version "26.3.0" + resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz" + integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== -nice-try@^1.0.4: - version "1.0.5" - resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" - integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -no-case@^3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz" - integrity sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg== +js-yaml@^3.13.1: + version "3.14.1" + resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz" + integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== dependencies: - lower-case "^2.0.2" - tslib "^2.0.3" + argparse "^1.0.7" + esprima "^4.0.0" -node-fetch@^2.6.11, node-fetch@^2.6.7: - version "2.6.11" - resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz" - integrity sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w== - dependencies: - whatwg-url "^5.0.0" +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + integrity sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg== -node-forge@^1: - version "1.3.1" - resolved "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz" - integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA== +json-parse-even-better-errors@^2.3.0: + version "2.3.1" + resolved "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz" + integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== -node-int64@^0.4.0: +json-schema@0.4.0: version "0.4.0" - resolved "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz" - integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" + integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA== -node-releases@^2.0.12: - version "2.0.12" - resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz" - integrity sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ== +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" + integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== -nodemon@^2.0.22: - version "2.0.22" - resolved "https://registry.npmjs.org/nodemon/-/nodemon-2.0.22.tgz" - integrity sha512-B8YqaKMmyuCO7BowF1Z1/mkPqLk6cs/l63Ojtd6otKjMx47Dq1utxfRxcavH1I7VSaL8n5BUaoutadnsX3AAVQ== +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== + +jsonschema@^1.4.0: + version "1.4.1" + resolved "https://registry.npmjs.org/jsonschema/-/jsonschema-1.4.1.tgz" + integrity sha512-S6cATIPVv1z0IlxdN+zUk5EPjkGCdnhN4wVSBlvoUO1tOLJootbo9CquNJmbIh4yikWHiUedhRYrNPn1arpEmQ== + +jsprim@^1.2.2: + version "1.4.2" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.2.tgz#712c65533a15c878ba59e9ed5f0e26d5b77c5feb" + integrity sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw== dependencies: - chokidar "^3.5.2" - debug "^3.2.7" - ignore-by-default "^1.0.1" - minimatch "^3.1.2" - pstree.remy "^1.1.8" - semver "^5.7.1" - simple-update-notifier "^1.0.7" - supports-color "^5.5.0" - touch "^3.1.0" - undefsafe "^2.0.5" + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.4.0" + verror "1.10.0" -nopt@1.0.10, nopt@~1.0.10: - version "1.0.10" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee" - integrity sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg== +"jsx-ast-utils@^2.4.1 || ^3.0.0": + version "3.3.3" + resolved "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz" + integrity sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw== dependencies: - abbrev "1" + array-includes "^3.1.5" + object.assign "^4.1.3" -normalize-path@^3.0.0, normalize-path@~3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== +keyvaluestorage-interface@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/keyvaluestorage-interface/-/keyvaluestorage-interface-1.0.0.tgz" + integrity sha512-8t6Q3TclQ4uZynJY9IGr2+SsIGwK9JHcO6ootkHCGA0CrQCRy+VkouYNO2xicET6b9al7QKzpebNow+gkpCL8g== -normalize-range@^0.1.2: - version "0.1.2" - resolved "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz" - integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA== +kind-of@^6.0.2: + version "6.0.3" + resolved "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz" + integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== -normalize-url@^6.0.1: - version "6.1.0" - resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz" - integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== +kleur@^4.0.3: + version "4.1.5" + resolved "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz" + integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ== -notistack@^1.0.3: - version "1.0.10" - resolved "https://registry.npmjs.org/notistack/-/notistack-1.0.10.tgz" - integrity sha512-z0y4jJaVtOoH3kc3GtNUlhNTY+5LE04QDeLVujX3VPhhzg67zw055mZjrBF+nzpv3V9aiPNph1EgRU4+t8kQTQ== +launchdarkly-js-client-sdk@2.22.1: + version "2.22.1" + resolved "https://registry.npmjs.org/launchdarkly-js-client-sdk/-/launchdarkly-js-client-sdk-2.22.1.tgz" + integrity sha512-EAdw7B8w4m/WZGmHHLj9gbYBP6lCqJs5TQDCM9kWJOnvHBz7DJIxOdqazNMDn5AzBxfvaMG7cpLms+Cur5LD5g== dependencies: - clsx "^1.1.0" - hoist-non-react-statics "^3.3.0" + escape-string-regexp "^1.0.5" + launchdarkly-js-sdk-common "3.6.0" -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz" - integrity sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw== +launchdarkly-js-sdk-common@3.6.0: + version "3.6.0" + resolved "https://registry.npmjs.org/launchdarkly-js-sdk-common/-/launchdarkly-js-sdk-common-3.6.0.tgz" + integrity sha512-wCdBoBiYXlP64jTrC0dOXY2B345LSJO/IvitbdW4kBKmJ1DkeufpqV0s5DBlwE0RLzDmaQx3mRTmcoNAIhIoaA== dependencies: - path-key "^2.0.0" + base64-js "^1.3.0" + fast-deep-equal "^2.0.1" + uuid "^3.3.2" -npm-run-path@^4.0.1: - version "4.0.1" - resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz" - integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== +launchdarkly-react-client-sdk@2.27.0: + version "2.27.0" + resolved "https://registry.npmjs.org/launchdarkly-react-client-sdk/-/launchdarkly-react-client-sdk-2.27.0.tgz" + integrity sha512-I2mmY5OHbc8bHkfYlt131cRXjSolCzbMtt0lMeN7vC5vMWnjNnLCT08YRrqromnNgPNUtg/7kwPEUTOmUCFqiA== dependencies: - path-key "^3.0.0" + hoist-non-react-statics "^3.3.2" + launchdarkly-js-client-sdk "2.22.1" + lodash.camelcase "^4.3.0" -npm-run-path@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz" - integrity sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q== +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== dependencies: - path-key "^4.0.0" + prelude-ls "^1.2.1" + type-check "~0.4.0" -nth-check@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz" - integrity sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg== - dependencies: - boolbase "~1.0.0" +lilconfig@2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz" + integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ== -nth-check@^2.0.1: - version "2.1.1" - resolved "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz" - integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w== +lines-and-columns@^1.1.6: + version "1.2.4" + resolved "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz" + integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== + +lint-staged@^13.0.3: + version "13.2.2" + resolved "https://registry.npmjs.org/lint-staged/-/lint-staged-13.2.2.tgz" + integrity sha512-71gSwXKy649VrSU09s10uAT0rWCcY3aewhMaHyl2N84oBk4Xs9HgxvUp3AYu+bNsK4NrOYYxvSgg7FyGJ+jGcA== dependencies: - boolbase "^1.0.0" + chalk "5.2.0" + cli-truncate "^3.1.0" + commander "^10.0.0" + debug "^4.3.4" + execa "^7.0.0" + lilconfig "2.1.0" + listr2 "^5.0.7" + micromatch "^4.0.5" + normalize-path "^3.0.0" + object-inspect "^1.12.3" + pidtree "^0.6.0" + string-argv "^0.3.1" + yaml "^2.2.2" -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - integrity sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ== +listr2@^5.0.7: + version "5.0.8" + resolved "https://registry.npmjs.org/listr2/-/listr2-5.0.8.tgz" + integrity sha512-mC73LitKHj9w6v30nLNGPetZIlfpUniNSsxxrbaPcWOjDb92SHPzJPi/t+v1YC/lxKz/AJ9egOjww0qUuFxBpA== + dependencies: + cli-truncate "^2.1.0" + colorette "^2.0.19" + log-update "^4.0.0" + p-map "^4.0.0" + rfdc "^1.3.0" + rxjs "^7.8.0" + through "^2.3.8" + wrap-ansi "^7.0.0" -nwsapi@^2.2.0: - version "2.2.5" - resolved "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.5.tgz" - integrity sha512-6xpotnECFy/og7tKSBVmUNft7J3jyXAka4XvG6AUhFWRz+Q/Ljus7znJAA3bxColfQLdS+XsjoodtJfCgeTEFQ== +lodash-es@^4.17.21: + version "4.17.21" + resolved "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz" + integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw== -oauth-sign@~0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" - integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== +lodash.camelcase@^4.3.0: + version "4.3.0" + resolved "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz" + integrity sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA== -object-assign@^4, object-assign@^4.0.1, object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" - integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== +lodash.isequal@4.5.0: + version "4.5.0" + resolved "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz" + integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ== -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ== - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== -object-hash@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz" - integrity sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw== +lodash.truncate@^4.4.2: + version "4.4.2" + resolved "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz" + integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== -object-inspect@^1.12.3, object-inspect@^1.9.0: - version "1.12.3" - resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz" - integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g== +lodash@^4.17.20, lodash@^4.17.21: + version "4.17.21" + resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -object-is@^1.0.1, object-is@^1.1.5: - version "1.1.5" - resolved "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz" - integrity sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw== +log-update@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz" + integrity sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg== dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" + ansi-escapes "^4.3.0" + cli-cursor "^3.1.0" + slice-ansi "^4.0.0" + wrap-ansi "^6.2.0" -object-keys@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz" - integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== +longest-streak@^3.0.0: + version "3.1.0" + resolved "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz" + integrity sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g== -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA== +loose-envify@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz" + integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== dependencies: - isobject "^3.0.0" + js-tokens "^3.0.0 || ^4.0.0" -object.assign@^4.1.3, object.assign@^4.1.4: - version "4.1.4" - resolved "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz" - integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ== +lru-cache@^4.0.1: + version "4.1.5" + resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz" + integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - has-symbols "^1.0.3" - object-keys "^1.1.1" + pseudomap "^1.0.2" + yallist "^2.1.2" -object.entries@^1.1.6: - version "1.1.6" - resolved "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz" - integrity sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w== +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" + yallist "^4.0.0" -object.fromentries@^2.0.6: - version "2.0.6" - resolved "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz" - integrity sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" +make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz" + integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== -object.getownpropertydescriptors@^2.1.0: - version "2.1.6" - resolved "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.6.tgz" - integrity sha512-lq+61g26E/BgHv0ZTFgRvi7NMEPuAxLkFU7rukXjc/AlwH4Am5xXVnIXy3un1bg/JPbXHrixRkK1itUzzPiIjQ== - dependencies: - array.prototype.reduce "^1.0.5" - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.21.2" - safe-array-concat "^1.0.0" +markdown-table@^3.0.0: + version "3.0.3" + resolved "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.3.tgz" + integrity sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw== -object.hasown@^1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz" - integrity sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw== +md5.js@^1.3.4: + version "1.3.5" + resolved "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz" + integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg== dependencies: - define-properties "^1.1.4" - es-abstract "^1.20.4" + hash-base "^3.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" -object.values@^1.1.0, object.values@^1.1.6: - version "1.1.6" - resolved "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz" - integrity sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw== +mdast-util-find-and-replace@^2.0.0: + version "2.2.2" + resolved "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-2.2.2.tgz" + integrity sha512-MTtdFRz/eMDHXzeK6W3dO7mXUlF82Gom4y0oOgvHhh/HXZAGvIQDUvQ0SuUx+j2tv44b8xTHOm8K/9OoRFnXKw== dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - -oblivious-set@1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/oblivious-set/-/oblivious-set-1.0.0.tgz" - integrity sha512-z+pI07qxo4c2CulUHCDf9lcqDlMSo72N/4rLUpRXf6fu+q8vjt8y0xS+Tlf8NTJDdTXHbdeO1n3MlbctwEoXZw== - -obuf@^1.0.0, obuf@^1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz" - integrity sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg== - -on-exit-leak-free@^0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-0.2.0.tgz" - integrity sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg== + "@types/mdast" "^3.0.0" + escape-string-regexp "^5.0.0" + unist-util-is "^5.0.0" + unist-util-visit-parents "^5.0.0" -on-finished@2.4.1: - version "2.4.1" - resolved "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz" - integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== +mdast-util-from-markdown@^1.0.0: + version "1.3.1" + resolved "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz" + integrity sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww== dependencies: - ee-first "1.1.1" + "@types/mdast" "^3.0.0" + "@types/unist" "^2.0.0" + decode-named-character-reference "^1.0.0" + mdast-util-to-string "^3.1.0" + micromark "^3.0.0" + micromark-util-decode-numeric-character-reference "^1.0.0" + micromark-util-decode-string "^1.0.0" + micromark-util-normalize-identifier "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + unist-util-stringify-position "^3.0.0" + uvu "^0.5.0" -on-finished@~2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" - integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== +mdast-util-gfm-autolink-literal@^1.0.0: + version "1.0.3" + resolved "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-1.0.3.tgz" + integrity sha512-My8KJ57FYEy2W2LyNom4n3E7hKTuQk/0SES0u16tjA9Z3oFkF4RrC/hPAPgjlSpezsOvI8ObcXcElo92wn5IGA== dependencies: - ee-first "1.1.1" + "@types/mdast" "^3.0.0" + ccount "^2.0.0" + mdast-util-find-and-replace "^2.0.0" + micromark-util-character "^1.0.0" -on-headers@~1.0.1, on-headers@~1.0.2: +mdast-util-gfm-footnote@^1.0.0: version "1.0.2" - resolved "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz" - integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== + resolved "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-1.0.2.tgz" + integrity sha512-56D19KOGbE00uKVj3sgIykpwKL179QsVFwx/DCW0u/0+URsryacI4MAdNJl0dh+u2PSsD9FtxPFbHCzJ78qJFQ== + dependencies: + "@types/mdast" "^3.0.0" + mdast-util-to-markdown "^1.3.0" + micromark-util-normalize-identifier "^1.0.0" -once@^1.3.0, once@^1.3.1, once@^1.4.0: - version "1.4.0" - resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" - integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== +mdast-util-gfm-strikethrough@^1.0.0: + version "1.0.3" + resolved "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-1.0.3.tgz" + integrity sha512-DAPhYzTYrRcXdMjUtUjKvW9z/FNAMTdU0ORyMcbmkwYNbKocDpdk+PX1L1dQgOID/+vVs1uBQ7ElrBQfZ0cuiQ== dependencies: - wrappy "1" + "@types/mdast" "^3.0.0" + mdast-util-to-markdown "^1.3.0" -onetime@^5.1.0, onetime@^5.1.2: - version "5.1.2" - resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" - integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== +mdast-util-gfm-table@^1.0.0: + version "1.0.7" + resolved "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-1.0.7.tgz" + integrity sha512-jjcpmNnQvrmN5Vx7y7lEc2iIOEytYv7rTvu+MeyAsSHTASGCCRA79Igg2uKssgOs1i1po8s3plW0sTu1wkkLGg== + dependencies: + "@types/mdast" "^3.0.0" + markdown-table "^3.0.0" + mdast-util-from-markdown "^1.0.0" + mdast-util-to-markdown "^1.3.0" + +mdast-util-gfm-task-list-item@^1.0.0: + version "1.0.2" + resolved "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-1.0.2.tgz" + integrity sha512-PFTA1gzfp1B1UaiJVyhJZA1rm0+Tzn690frc/L8vNX1Jop4STZgOE6bxUhnzdVSB+vm2GU1tIsuQcA9bxTQpMQ== dependencies: - mimic-fn "^2.1.0" + "@types/mdast" "^3.0.0" + mdast-util-to-markdown "^1.3.0" -onetime@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz" - integrity sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ== +mdast-util-gfm@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-2.0.2.tgz" + integrity sha512-qvZ608nBppZ4icQlhQQIAdc6S3Ffj9RGmzwUKUWuEICFnd1LVkN3EktF7ZHAgfcEdvZB5owU9tQgt99e2TlLjg== dependencies: - mimic-fn "^4.0.0" + mdast-util-from-markdown "^1.0.0" + mdast-util-gfm-autolink-literal "^1.0.0" + mdast-util-gfm-footnote "^1.0.0" + mdast-util-gfm-strikethrough "^1.0.0" + mdast-util-gfm-table "^1.0.0" + mdast-util-gfm-task-list-item "^1.0.0" + mdast-util-to-markdown "^1.0.0" -open@^7.3.1: - version "7.4.2" - resolved "https://registry.npmjs.org/open/-/open-7.4.2.tgz" - integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q== +mdast-util-newline-to-break@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/mdast-util-newline-to-break/-/mdast-util-newline-to-break-1.0.0.tgz" + integrity sha512-491LcYv3gbGhhCrLoeALncQmega2xPh+m3gbsIhVsOX4sw85+ShLFPvPyibxc1Swx/6GtzxgVodq+cGa/47ULg== dependencies: - is-docker "^2.0.0" - is-wsl "^2.1.1" + "@types/mdast" "^3.0.0" + mdast-util-find-and-replace "^2.0.0" -open@^8.0.9, open@^8.4.0: - version "8.4.2" - resolved "https://registry.npmjs.org/open/-/open-8.4.2.tgz" - integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ== +mdast-util-phrasing@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-3.0.1.tgz" + integrity sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg== dependencies: - define-lazy-prop "^2.0.0" - is-docker "^2.1.1" - is-wsl "^2.2.0" + "@types/mdast" "^3.0.0" + unist-util-is "^5.0.0" -optionator@^0.8.1: - version "0.8.3" - resolved "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz" - integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== +mdast-util-to-markdown@^1.0.0, mdast-util-to-markdown@^1.3.0: + version "1.5.0" + resolved "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-1.5.0.tgz" + integrity sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A== dependencies: - deep-is "~0.1.3" - fast-levenshtein "~2.0.6" - levn "~0.3.0" - prelude-ls "~1.1.2" - type-check "~0.3.2" - word-wrap "~1.2.3" + "@types/mdast" "^3.0.0" + "@types/unist" "^2.0.0" + longest-streak "^3.0.0" + mdast-util-phrasing "^3.0.0" + mdast-util-to-string "^3.0.0" + micromark-util-decode-string "^1.0.0" + unist-util-visit "^4.0.0" + zwitch "^2.0.0" -optionator@^0.9.1: - version "0.9.1" - resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz" - integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== +mdast-util-to-string@^3.0.0, mdast-util-to-string@^3.1.0: + version "3.2.0" + resolved "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz" + integrity sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg== dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.3" + "@types/mdast" "^3.0.0" -os-browserify@^0.3.0: +media-typer@0.3.0: version "0.3.0" - resolved "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz" - integrity sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A== + resolved "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" + integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== -os-locale@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-3.1.0.tgz#a802a6ee17f24c10483ab9935719cef4ed16bf1a" - integrity sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q== - dependencies: - execa "^1.0.0" - lcid "^2.0.0" - mem "^4.0.0" +merge-descriptors@1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz" + integrity sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w== -p-defer@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" - integrity sha512-wB3wfAxZpk2AzOfUMJNL+d36xothRSyj8EXOa4f6GMqYDN9BJaaSISbsk+wS9abmnebVw95C2Kb5t85UmpCxuw== +merge-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz" + integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" - integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== +merge2@^1.3.0, merge2@^1.4.1: + version "1.4.1" + resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== -p-is-promise@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-2.1.0.tgz#918cebaea248a62cf7ffab8e3bca8c5f882fc42e" - integrity sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg== +methods@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/methods/-/methods-0.0.1.tgz#277c90f8bef39709645a8371c51c3b6c648e068c" + integrity sha512-pB8oFfci/xcfUgM6DTxc7lbTKifPPgs3mZUOsEgaH+1TTWpmcmv3sHl+5sUHIj2X2W8aPYa2+nJealRHK+Lo6A== -p-limit@^1.1.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" - integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz" + integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== + +micromark-core-commonmark@^1.0.0, micromark-core-commonmark@^1.0.1: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-1.1.0.tgz" + integrity sha512-BgHO1aRbolh2hcrzL2d1La37V0Aoz73ymF8rAcKnohLy93titmv62E0gP8Hrx9PKcKrqCZ1BbLGbP3bEhoXYlw== dependencies: - p-try "^1.0.0" + decode-named-character-reference "^1.0.0" + micromark-factory-destination "^1.0.0" + micromark-factory-label "^1.0.0" + micromark-factory-space "^1.0.0" + micromark-factory-title "^1.0.0" + micromark-factory-whitespace "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-chunked "^1.0.0" + micromark-util-classify-character "^1.0.0" + micromark-util-html-tag-name "^1.0.0" + micromark-util-normalize-identifier "^1.0.0" + micromark-util-resolve-all "^1.0.0" + micromark-util-subtokenize "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.1" + uvu "^0.5.0" -p-limit@^2.0.0, p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== +micromark-extension-gfm-autolink-literal@^1.0.0: + version "1.0.5" + resolved "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-1.0.5.tgz" + integrity sha512-z3wJSLrDf8kRDOh2qBtoTRD53vJ+CWIyo7uyZuxf/JAbNJjiHsOpG1y5wxk8drtv3ETAHutCu6N3thkOOgueWg== + dependencies: + micromark-util-character "^1.0.0" + micromark-util-sanitize-uri "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + +micromark-extension-gfm-footnote@^1.0.0: + version "1.1.2" + resolved "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-1.1.2.tgz" + integrity sha512-Yxn7z7SxgyGWRNa4wzf8AhYYWNrwl5q1Z8ii+CSTTIqVkmGZF1CElX2JI8g5yGoM3GAman9/PVCUFUSJ0kB/8Q== dependencies: - p-try "^2.0.0" + micromark-core-commonmark "^1.0.0" + micromark-factory-space "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-normalize-identifier "^1.0.0" + micromark-util-sanitize-uri "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== +micromark-extension-gfm-strikethrough@^1.0.0: + version "1.0.7" + resolved "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-1.0.7.tgz" + integrity sha512-sX0FawVE1o3abGk3vRjOH50L5TTLr3b5XMqnP9YDRb34M0v5OoZhG+OHFz1OffZ9dlwgpTBKaT4XW/AsUVnSDw== dependencies: - yocto-queue "^0.1.0" + micromark-util-chunked "^1.0.0" + micromark-util-classify-character "^1.0.0" + micromark-util-resolve-all "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - integrity sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg== +micromark-extension-gfm-table@^1.0.0: + version "1.0.7" + resolved "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-1.0.7.tgz" + integrity sha512-3ZORTHtcSnMQEKtAOsBQ9/oHp9096pI/UvdPtN7ehKvrmZZ2+bbWhi0ln+I9drmwXMt5boocn6OlwQzNXeVeqw== dependencies: - p-limit "^1.1.0" + micromark-factory-space "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" -p-locate@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz" - integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== +micromark-extension-gfm-tagfilter@^1.0.0: + version "1.0.2" + resolved "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-1.0.2.tgz" + integrity sha512-5XWB9GbAUSHTn8VPU8/1DBXMuKYT5uOgEjJb8gN3mW0PNW5OPHpSdojoqf+iq1xo7vWzw/P8bAHY0n6ijpXF7g== dependencies: - p-limit "^2.0.0" + micromark-util-types "^1.0.0" -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== +micromark-extension-gfm-task-list-item@^1.0.0: + version "1.0.5" + resolved "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-1.0.5.tgz" + integrity sha512-RMFXl2uQ0pNQy6Lun2YBYT9g9INXtWJULgbt01D/x8/6yJ2qpKyzdZD3pi6UIkzF++Da49xAelVKUeUMqd5eIQ== dependencies: - p-limit "^2.2.0" + micromark-factory-space "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== +micromark-extension-gfm@^2.0.0: + version "2.0.3" + resolved "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-2.0.3.tgz" + integrity sha512-vb9OoHqrhCmbRidQv/2+Bc6pkP0FrtlhurxZofvOEy5o8RtuuvTq+RQ1Vw5ZDNrVraQZu3HixESqbG+0iKk/MQ== + dependencies: + micromark-extension-gfm-autolink-literal "^1.0.0" + micromark-extension-gfm-footnote "^1.0.0" + micromark-extension-gfm-strikethrough "^1.0.0" + micromark-extension-gfm-table "^1.0.0" + micromark-extension-gfm-tagfilter "^1.0.0" + micromark-extension-gfm-task-list-item "^1.0.0" + micromark-util-combine-extensions "^1.0.0" + micromark-util-types "^1.0.0" + +micromark-factory-destination@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-1.1.0.tgz" + integrity sha512-XaNDROBgx9SgSChd69pjiGKbV+nfHGDPVYFs5dOoDd7ZnMAE+Cuu91BCpsY8RT2NP9vo/B8pds2VQNCLiu0zhg== dependencies: - p-limit "^3.0.2" + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" -p-map@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz" - integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== +micromark-factory-label@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-1.1.0.tgz" + integrity sha512-OLtyez4vZo/1NjxGhcpDSbHQ+m0IIGnT8BoPamh+7jVlzLJBH98zzuCoUeMxvM6WsNeh8wx8cKvqLiPHEACn0w== dependencies: - aggregate-error "^3.0.0" + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" -p-retry@^4.5.0: - version "4.6.2" - resolved "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz" - integrity sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ== +micromark-factory-space@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-1.1.0.tgz" + integrity sha512-cRzEj7c0OL4Mw2v6nwzttyOZe8XY/Z8G0rzmWQZTBi/jjwyw/U4uqKtUORXQrR5bAZZnbTI/feRV/R7hc4jQYQ== dependencies: - "@types/retry" "0.12.0" - retry "^0.13.1" + micromark-util-character "^1.0.0" + micromark-util-types "^1.0.0" -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - integrity sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww== +micromark-factory-title@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-1.1.0.tgz" + integrity sha512-J7n9R3vMmgjDOCY8NPw55jiyaQnH5kBdV2/UXCtZIpnHH3P6nHUKaH7XXEYuWwx/xUJcawa8plLBEjMPU24HzQ== + dependencies: + micromark-factory-space "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== +micromark-factory-whitespace@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-1.1.0.tgz" + integrity sha512-v2WlmiymVSp5oMg+1Q0N1Lxmt6pMhIHD457whWM7/GUlEks1hI9xj5w3zbc4uuMKXGisksZk8DzP2UyGbGqNsQ== + dependencies: + micromark-factory-space "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" -pako@~1.0.5: - version "1.0.11" - resolved "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz" - integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw== +micromark-util-character@^1.0.0: + version "1.2.0" + resolved "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz" + integrity sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg== + dependencies: + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" -param-case@^3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz" - integrity sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A== +micromark-util-chunked@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-1.1.0.tgz" + integrity sha512-Ye01HXpkZPNcV6FiyoW2fGZDUw4Yc7vT0E9Sad83+bEDiCJ1uXu0S3mr8WLpsz3HaG3x2q0HM6CTuPdcZcluFQ== dependencies: - dot-case "^3.0.4" - tslib "^2.0.3" + micromark-util-symbol "^1.0.0" -parent-module@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz" - integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== +micromark-util-classify-character@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-1.1.0.tgz" + integrity sha512-SL0wLxtKSnklKSUplok1WQFoGhUdWYKggKUiqhX+Swala+BtptGCu5iPRc+xvzJ4PXE/hwM3FNXsfEVgoZsWbw== dependencies: - callsites "^3.0.0" + micromark-util-character "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" -parse-asn1@^5.0.0, parse-asn1@^5.1.5: - version "5.1.6" - resolved "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz" - integrity sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw== +micromark-util-combine-extensions@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.1.0.tgz" + integrity sha512-Q20sp4mfNf9yEqDL50WwuWZHUrCO4fEyeDCnMGmG5Pr0Cz15Uo7KBs6jq+dq0EgX4DPwwrh9m0X+zPV1ypFvUA== dependencies: - asn1.js "^5.2.0" - browserify-aes "^1.0.0" - evp_bytestokey "^1.0.0" - pbkdf2 "^3.0.3" - safe-buffer "^5.1.1" + micromark-util-chunked "^1.0.0" + micromark-util-types "^1.0.0" -parse-json@^5.0.0, parse-json@^5.2.0: - version "5.2.0" - resolved "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz" - integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== +micromark-util-decode-numeric-character-reference@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.1.0.tgz" + integrity sha512-m9V0ExGv0jB1OT21mrWcuf4QhP46pH1KkfWy9ZEezqHKAxkj4mPCy3nIH1rkbdMlChLHX531eOrymlwyZIf2iw== dependencies: - "@babel/code-frame" "^7.0.0" - error-ex "^1.3.1" - json-parse-even-better-errors "^2.3.0" - lines-and-columns "^1.1.6" - -parse5@6.0.1, parse5@^6.0.0: - version "6.0.1" - resolved "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz" - integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== - -parseurl@~1.3.2, parseurl@~1.3.3: - version "1.3.3" - resolved "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" - integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + micromark-util-symbol "^1.0.0" -pascal-case@^3.1.2: - version "3.1.2" - resolved "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz" - integrity sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g== +micromark-util-decode-string@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-1.1.0.tgz" + integrity sha512-YphLGCK8gM1tG1bd54azwyrQRjCFcmgj2S2GoJDNnh4vYtnL38JS8M4gpxzOPNyHdNEpheyWXCTnnTDY3N+NVQ== dependencies: - no-case "^3.0.4" - tslib "^2.0.3" - -path-browserify@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz" - integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz" - integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" - integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== - -path-is-inside@1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz" - integrity sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w== - -path-key@^2.0.0, path-key@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz" - integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw== + decode-named-character-reference "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-decode-numeric-character-reference "^1.0.0" + micromark-util-symbol "^1.0.0" -path-key@^3.0.0, path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== +micromark-util-encode@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz" + integrity sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw== -path-key@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz" - integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== +micromark-util-html-tag-name@^1.0.0: + version "1.2.0" + resolved "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.2.0.tgz" + integrity sha512-VTQzcuQgFUD7yYztuQFKXT49KghjtETQ+Wv/zUjGSGBioZnkA4P1XXZPT1FHeJA6RwRXSF47yvJ1tsJdoxwO+Q== -path-parse@^1.0.7: - version "1.0.7" - resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" - integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== +micromark-util-normalize-identifier@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.1.0.tgz" + integrity sha512-N+w5vhqrBihhjdpM8+5Xsxy71QWqGn7HYNUvch71iV2PM7+E3uWGox1Qp90loa1ephtCxG2ftRV/Conitc6P2Q== + dependencies: + micromark-util-symbol "^1.0.0" -path-to-regexp@0.1.7: - version "0.1.7" - resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz" - integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ== +micromark-util-resolve-all@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-1.1.0.tgz" + integrity sha512-b/G6BTMSg+bX+xVCshPTPyAu2tmA0E4X98NSR7eIbeC6ycCqCeE7wjfDIgzEbkzdEVJXRtOG4FbEm/uGbCRouA== + dependencies: + micromark-util-types "^1.0.0" -path-to-regexp@2.2.1: - version "2.2.1" - resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.2.1.tgz" - integrity sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ== +micromark-util-sanitize-uri@^1.0.0: + version "1.2.0" + resolved "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz" + integrity sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A== + dependencies: + micromark-util-character "^1.0.0" + micromark-util-encode "^1.0.0" + micromark-util-symbol "^1.0.0" -path-to-regexp@^1.7.0: - version "1.8.0" - resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz" - integrity sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA== +micromark-util-subtokenize@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-1.1.0.tgz" + integrity sha512-kUQHyzRoxvZO2PuLzMt2P/dwVsTiivCK8icYTeR+3WgbuPqfHgPPy7nFKbeqRivBvn/3N3GBiNC+JRTMSxEC7A== dependencies: - isarray "0.0.1" + micromark-util-chunked "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.0" + uvu "^0.5.0" -path-type@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz" - integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== +micromark-util-symbol@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz" + integrity sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag== -pause@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/pause/-/pause-0.0.1.tgz#1d408b3fdb76923b9543d96fb4c9dfd535d9cb5d" - integrity sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg== +micromark-util-types@^1.0.0, micromark-util-types@^1.0.1: + version "1.1.0" + resolved "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz" + integrity sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg== -pbkdf2@^3.0.3, pbkdf2@^3.0.9, pbkdf2@^3.1.2: - version "3.1.2" - resolved "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz" - integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA== +micromark@^3.0.0: + version "3.2.0" + resolved "https://registry.npmjs.org/micromark/-/micromark-3.2.0.tgz" + integrity sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA== dependencies: - create-hash "^1.1.2" - create-hmac "^1.1.4" - ripemd160 "^2.0.1" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - -performance-now@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz" - integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== - -picocolors@^0.2.1: - version "0.2.1" - resolved "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz" - integrity sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA== + "@types/debug" "^4.0.0" + debug "^4.0.0" + decode-named-character-reference "^1.0.0" + micromark-core-commonmark "^1.0.1" + micromark-factory-space "^1.0.0" + micromark-util-character "^1.0.0" + micromark-util-chunked "^1.0.0" + micromark-util-combine-extensions "^1.0.0" + micromark-util-decode-numeric-character-reference "^1.0.0" + micromark-util-encode "^1.0.0" + micromark-util-normalize-identifier "^1.0.0" + micromark-util-resolve-all "^1.0.0" + micromark-util-sanitize-uri "^1.0.0" + micromark-util-subtokenize "^1.0.0" + micromark-util-symbol "^1.0.0" + micromark-util-types "^1.0.1" + uvu "^0.5.0" -picocolors@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz" - integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== +micromatch@^4.0.4, micromatch@^4.0.5: + version "4.0.5" + resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz" + integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== + dependencies: + braces "^3.0.2" + picomatch "^2.3.1" -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1: - version "2.3.1" - resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" - integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== +mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": + version "1.52.0" + resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== -pidtree@^0.6.0: - version "0.6.0" - resolved "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz" - integrity sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g== +mime-db@~1.33.0: + version "1.33.0" + resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz" + integrity sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ== -pify@^2.3.0: - version "2.3.0" - resolved "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz" - integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== +mime-types@2.1.18: + version "2.1.18" + resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz" + integrity sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ== + dependencies: + mime-db "~1.33.0" -pino-abstract-transport@v0.5.0: - version "0.5.0" - resolved "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-0.5.0.tgz" - integrity sha512-+KAgmVeqXYbTtU2FScx1XS3kNyfZ5TrXY07V96QnUSFqo2gAqlvmaxH67Lj7SWazqsMabf+58ctdTcBgnOLUOQ== +mime-types@^2.1.12, mime-types@~2.1.19, mime-types@~2.1.24, mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== dependencies: - duplexify "^4.1.2" - split2 "^4.0.0" + mime-db "1.52.0" -pino-std-serializers@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-4.0.0.tgz" - integrity sha512-cK0pekc1Kjy5w9V2/n+8MkZwusa6EyyxfeQCB799CQRhRt/CqYKiWs5adeu8Shve2ZNffvfC/7J64A2PJo1W/Q== +mime@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.2.6.tgz#b1f86c768c025fa87b48075f1709f28aeaf20365" + integrity sha512-S4yfg1ehMduQ5F3NeTUUWJesnut4RvymaRSatO4etOm68yZE98oCg2GtgG0coGYx03GCv240sezMvRwFk8DUKw== -pino@7.11.0: - version "7.11.0" - resolved "https://registry.npmjs.org/pino/-/pino-7.11.0.tgz" - integrity sha512-dMACeu63HtRLmCG8VKdy4cShCPKaYDR4youZqoSWLxl5Gu99HUw8bw75thbPv9Nip+H+QYX8o3ZJbTdVZZ2TVg== - dependencies: - atomic-sleep "^1.0.0" - fast-redact "^3.0.0" - on-exit-leak-free "^0.2.0" - pino-abstract-transport v0.5.0 - pino-std-serializers "^4.0.0" - process-warning "^1.0.0" - quick-format-unescaped "^4.0.3" - real-require "^0.1.0" - safe-stable-stringify "^2.1.0" - sonic-boom "^2.2.1" - thread-stream "^0.15.1" +mime@1.6.0: + version "1.6.0" + resolved "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== -pirates@^4.0.1, pirates@^4.0.4: - version "4.0.5" - resolved "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz" - integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== -pkg-dir@^4.1.0, pkg-dir@^4.2.0: - version "4.2.0" - resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz" - integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== - dependencies: - find-up "^4.0.0" +mimic-fn@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz" + integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== -pkg-up@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz" - integrity sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA== +mini-queue@0.0.14: + version "0.0.14" + resolved "https://registry.yarnpkg.com/mini-queue/-/mini-queue-0.0.14.tgz#83d2f3f908e3cac5390bd986d1e6fbbfa0d95b93" + integrity sha512-DNh9Wn8U1jrmn1yVfpviwClyER/Y4ltgGbG+LF/KIdKJ8BEo2Q9jDDPG7tEhz6F/DTZ/ohv5D7AAXFVSFyP05Q== dependencies: - find-up "^3.0.0" + debug "^3.1.0" -pointer-symbol@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/pointer-symbol/-/pointer-symbol-1.0.0.tgz#60f9110204ea7a929b62644a21315543cbb3d447" - integrity sha512-pozTTFO3kG9HQWXCSTJkCgq4fBF8lUQf+5bLddTEW6v4zdjQhcBVfLmKzABEMJMA7s8jhzi0sgANIwdrf4kq+A== +minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz" + integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== -popper.js@1.16.1-lts: - version "1.16.1-lts" - resolved "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1-lts.tgz" - integrity sha512-Kjw8nKRl1m+VrSFCoVGPph93W/qrSO7ZkqPpTf7F4bk/sqcfWK019dWBUpE/fBOsOQY1dks/Bmcbfn1heM/IsA== +minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz" + integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg== -postcss-attribute-case-insensitive@^5.0.2: - version "5.0.2" - resolved "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-5.0.2.tgz" - integrity sha512-XIidXV8fDr0kKt28vqki84fRK8VW8eTuIa4PChv2MqKuT6C9UjmSKzen6KaWhWEoYvwxFCa7n/tC1SZ3tyq4SQ== +minimatch@3.0.4: + version "3.0.4" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== dependencies: - postcss-selector-parser "^6.0.10" - -postcss-browser-comments@^4: - version "4.0.0" - resolved "https://registry.npmjs.org/postcss-browser-comments/-/postcss-browser-comments-4.0.0.tgz" - integrity sha512-X9X9/WN3KIvY9+hNERUqX9gncsgBA25XaeR+jshHz2j8+sYyHktHw1JdKuMjeLpGktXidqDhA7b/qm1mrBDmgg== + brace-expansion "^1.1.7" -postcss-calc@^8.2.3: - version "8.2.4" - resolved "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz" - integrity sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q== +minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== dependencies: - postcss-selector-parser "^6.0.9" - postcss-value-parser "^4.2.0" + brace-expansion "^1.1.7" -postcss-clamp@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/postcss-clamp/-/postcss-clamp-4.1.0.tgz" - integrity sha512-ry4b1Llo/9zz+PKC+030KUnPITTJAHeOwjfAyyB60eT0AorGLdzp52s31OsPRHRf8NchkgFoG2y6fCfn1IV1Ow== +minimatch@^5.0.1: + version "5.1.6" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz" + integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== dependencies: - postcss-value-parser "^4.2.0" + brace-expansion "^2.0.1" -postcss-color-functional-notation@^4.2.4: - version "4.2.4" - resolved "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-4.2.4.tgz" - integrity sha512-2yrTAUZUab9s6CpxkxC4rVgFEVaR6/2Pipvi6qcgvnYiVqZcbDHEoBDhrXzyb7Efh2CCfHQNtcqWcIruDTIUeg== - dependencies: - postcss-value-parser "^4.2.0" +minimist@^1.2.0, minimist@^1.2.6: + version "1.2.8" + resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== -postcss-color-hex-alpha@^8.0.4: - version "8.0.4" - resolved "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-8.0.4.tgz" - integrity sha512-nLo2DCRC9eE4w2JmuKgVA3fGL3d01kGq752pVALF68qpGLmx2Qrk91QTKkdUqqp45T1K1XV8IhQpcu1hoAQflQ== - dependencies: - postcss-value-parser "^4.2.0" +mixpanel-browser@^2.42.0: + version "2.47.0" + resolved "https://registry.npmjs.org/mixpanel-browser/-/mixpanel-browser-2.47.0.tgz" + integrity sha512-Ldrva0fRBEIFWmEibBQO1PulfpJVF3pf28Guk09lDirDaSQqqU/xs9zQLwN2rL5VwVtsP1aD3JaCgaa98EjojQ== -postcss-color-rebeccapurple@^7.1.1: - version "7.1.1" - resolved "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-7.1.1.tgz" - integrity sha512-pGxkuVEInwLHgkNxUc4sdg4g3py7zUeCQ9sMfwyHAT+Ezk8a4OaaVZ8lIY5+oNqA/BXXgLyXv0+5wHP68R79hg== - dependencies: - postcss-value-parser "^4.2.0" +mkdirp@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.3.0.tgz#1bbf5ab1ba827af23575143490426455f481fe1e" + integrity sha512-OHsdUcVAQ6pOtg5JYWpCBo9W/GySVuwvP9hueRMW7UqshC0tbfzLv8wjySTPm3tfUZ/21CE9E1pJagOA91Pxew== -postcss-colormin@^5.3.1: - version "5.3.1" - resolved "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz" - integrity sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ== - dependencies: - browserslist "^4.21.4" - caniuse-api "^3.0.0" - colord "^2.9.1" - postcss-value-parser "^4.2.0" +mkdirp@0.3.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.3.3.tgz#595e251c1370c3a68bab2136d0e348b8105adf13" + integrity sha512-Oamd41MnZw/yuxtarGf3MFbHzFqQY4S17DcN+rATh2t5MKuCtG7vVVRG+RUT6g9+hr47DIVucIHGOUlwmJRvDA== -postcss-convert-values@^5.1.3: - version "5.1.3" - resolved "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz" - integrity sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA== +mkdirp@^0.5.1: + version "0.5.6" + resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz" + integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== dependencies: - browserslist "^4.21.4" - postcss-value-parser "^4.2.0" + minimist "^1.2.6" -postcss-custom-media@^8.0.2: - version "8.0.2" - resolved "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-8.0.2.tgz" - integrity sha512-7yi25vDAoHAkbhAzX9dHx2yc6ntS4jQvejrNcC+csQJAXjj15e7VcWfMgLqBNAbOvqi5uIa9huOVwdHbf+sKqg== - dependencies: - postcss-value-parser "^4.2.0" +mri@^1.1.0: + version "1.2.0" + resolved "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz" + integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA== -postcss-custom-properties@^12.1.10: - version "12.1.11" - resolved "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-12.1.11.tgz" - integrity sha512-0IDJYhgU8xDv1KY6+VgUwuQkVtmYzRwu+dMjnmdMafXYv86SWqfxkc7qdDvWS38vsjaEtv8e0vGOUQrAiMBLpQ== - dependencies: - postcss-value-parser "^4.2.0" +ms@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== -postcss-custom-selectors@^6.0.3: - version "6.0.3" - resolved "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-6.0.3.tgz" - integrity sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg== - dependencies: - postcss-selector-parser "^6.0.4" +ms@2.1.2: + version "2.1.2" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -postcss-dir-pseudo-class@^6.0.5: - version "6.0.5" - resolved "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-6.0.5.tgz" - integrity sha512-eqn4m70P031PF7ZQIvSgy9RSJ5uI2171O/OO/zcRNYpJbvaeKFUlar1aJ7rmgiQtbm0FSPsRewjpdS0Oew7MPA== - dependencies: - postcss-selector-parser "^6.0.10" +ms@2.1.3, ms@^2.1.1: + version "2.1.3" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== -postcss-discard-comments@^5.1.2: - version "5.1.2" - resolved "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz" - integrity sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ== +multiformats@^9.4.2: + version "9.9.0" + resolved "https://registry.npmjs.org/multiformats/-/multiformats-9.9.0.tgz" + integrity sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg== -postcss-discard-duplicates@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz" - integrity sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw== +nanoclone@^0.2.1: + version "0.2.1" + resolved "https://registry.npmjs.org/nanoclone/-/nanoclone-0.2.1.tgz" + integrity sha512-wynEP02LmIbLpcYw8uBKpcfF6dmg2vcpKqxeH5UcoKEYdExslsdUA4ugFauuaeYdTB76ez6gJW8XAZ6CgkXYxA== -postcss-discard-empty@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz" - integrity sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A== +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" + integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -postcss-discard-overridden@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz" - integrity sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw== +negotiator@0.6.3: + version "0.6.3" + resolved "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== -postcss-double-position-gradients@^3.1.2: - version "3.1.2" - resolved "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-3.1.2.tgz" - integrity sha512-GX+FuE/uBR6eskOK+4vkXgT6pDkexLokPaz/AbJna9s5Kzp/yl488pKPjhy0obB475ovfT1Wv8ho7U/cHNaRgQ== - dependencies: - "@csstools/postcss-progressive-custom-properties" "^1.1.0" - postcss-value-parser "^4.2.0" +net@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/net/-/net-1.0.2.tgz" + integrity sha512-kbhcj2SVVR4caaVnGLJKmlk2+f+oLkjqdKeQlmUtz6nGzOpbcobwVIeSURNgraV/v3tlmGIX82OcPCl0K6RbHQ== -postcss-env-function@^4.0.6: - version "4.0.6" - resolved "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-4.0.6.tgz" - integrity sha512-kpA6FsLra+NqcFnL81TnsU+Z7orGtDTxcOhl6pwXeEq1yFPpRMkCDpHhrz8CFQDr/Wfm0jLiNQ1OsGGPjlqPwA== +node-fetch@^2.6.11, node-fetch@^2.6.7: + version "2.6.11" + resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz" + integrity sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w== dependencies: - postcss-value-parser "^4.2.0" + whatwg-url "^5.0.0" -postcss-flexbugs-fixes@^5.0.2: - version "5.0.2" - resolved "https://registry.npmjs.org/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-5.0.2.tgz" - integrity sha512-18f9voByak7bTktR2QgDveglpn9DTbBWPUzSOe9g0N4WR/2eSt6Vrcbf0hmspvMI6YWGywz6B9f7jzpFNJJgnQ== +node-releases@^2.0.12: + version "2.0.12" + resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz" + integrity sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ== -postcss-focus-visible@^6.0.4: - version "6.0.4" - resolved "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-6.0.4.tgz" - integrity sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw== +nodemon@^2.0.22: + version "2.0.22" + resolved "https://registry.npmjs.org/nodemon/-/nodemon-2.0.22.tgz" + integrity sha512-B8YqaKMmyuCO7BowF1Z1/mkPqLk6cs/l63Ojtd6otKjMx47Dq1utxfRxcavH1I7VSaL8n5BUaoutadnsX3AAVQ== dependencies: - postcss-selector-parser "^6.0.9" + chokidar "^3.5.2" + debug "^3.2.7" + ignore-by-default "^1.0.1" + minimatch "^3.1.2" + pstree.remy "^1.1.8" + semver "^5.7.1" + simple-update-notifier "^1.0.7" + supports-color "^5.5.0" + touch "^3.1.0" + undefsafe "^2.0.5" -postcss-focus-within@^5.0.4: - version "5.0.4" - resolved "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-5.0.4.tgz" - integrity sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ== +nopt@1.0.10, nopt@~1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee" + integrity sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg== dependencies: - postcss-selector-parser "^6.0.9" + abbrev "1" -postcss-font-variant@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-5.0.0.tgz" - integrity sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA== +normalize-path@^3.0.0, normalize-path@~3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== -postcss-gap-properties@^3.0.5: - version "3.0.5" - resolved "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-3.0.5.tgz" - integrity sha512-IuE6gKSdoUNcvkGIqdtjtcMtZIFyXZhmFd5RUlg97iVEvp1BZKV5ngsAjCjrVy+14uhGBQl9tzmi1Qwq4kqVOg== +normalize-range@^0.1.2: + version "0.1.2" + resolved "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz" + integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA== -postcss-image-set-function@^4.0.7: - version "4.0.7" - resolved "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-4.0.7.tgz" - integrity sha512-9T2r9rsvYzm5ndsBE8WgtrMlIT7VbtTfE7b3BQnudUqnBcBo7L758oc+o+pdj/dUV0l5wjwSdjeOH2DZtfv8qw== +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz" + integrity sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw== dependencies: - postcss-value-parser "^4.2.0" + path-key "^2.0.0" -postcss-import@^15.1.0: - version "15.1.0" - resolved "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz" - integrity sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew== +npm-run-path@^5.1.0: + version "5.1.0" + resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz" + integrity sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q== dependencies: - postcss-value-parser "^4.0.0" - read-cache "^1.0.0" - resolve "^1.1.7" - -postcss-initial@^4.0.1: - version "4.0.1" - resolved "https://registry.npmjs.org/postcss-initial/-/postcss-initial-4.0.1.tgz" - integrity sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ== + path-key "^4.0.0" -postcss-js@^4.0.1: - version "4.0.1" - resolved "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz" - integrity sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw== - dependencies: - camelcase-css "^2.0.1" +oauth-sign@~0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== -postcss-lab-function@^4.2.1: - version "4.2.1" - resolved "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-4.2.1.tgz" - integrity sha512-xuXll4isR03CrQsmxyz92LJB2xX9n+pZJ5jE9JgcnmsCammLyKdlzrBin+25dy6wIjfhJpKBAN80gsTlCgRk2w== - dependencies: - "@csstools/postcss-progressive-custom-properties" "^1.1.0" - postcss-value-parser "^4.2.0" +object-assign@^4, object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== -postcss-load-config@^4.0.1: - version "4.0.1" - resolved "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz" - integrity sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA== - dependencies: - lilconfig "^2.0.5" - yaml "^2.1.1" +object-inspect@^1.12.3, object-inspect@^1.9.0: + version "1.12.3" + resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz" + integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g== -postcss-loader@^6.2.1: - version "6.2.1" - resolved "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.1.tgz" - integrity sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q== +object-is@^1.0.1: + version "1.1.5" + resolved "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz" + integrity sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw== dependencies: - cosmiconfig "^7.0.0" - klona "^2.0.5" - semver "^7.3.5" + call-bind "^1.0.2" + define-properties "^1.1.3" -postcss-logical@^5.0.4: - version "5.0.4" - resolved "https://registry.npmjs.org/postcss-logical/-/postcss-logical-5.0.4.tgz" - integrity sha512-RHXxplCeLh9VjinvMrZONq7im4wjWGlRJAqmAVLXyZaXwfDWP73/oq4NdIp+OZwhQUMj0zjqDfM5Fj7qby+B4g== +object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== -postcss-media-minmax@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-5.0.0.tgz" - integrity sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ== +object.assign@^4.1.3, object.assign@^4.1.4: + version "4.1.4" + resolved "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz" + integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + has-symbols "^1.0.3" + object-keys "^1.1.1" -postcss-merge-longhand@^5.1.7: - version "5.1.7" - resolved "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz" - integrity sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ== +object.entries@^1.1.6: + version "1.1.6" + resolved "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz" + integrity sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w== dependencies: - postcss-value-parser "^4.2.0" - stylehacks "^5.1.1" + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" -postcss-merge-rules@^5.1.4: - version "5.1.4" - resolved "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz" - integrity sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g== +object.fromentries@^2.0.6: + version "2.0.6" + resolved "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz" + integrity sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg== dependencies: - browserslist "^4.21.4" - caniuse-api "^3.0.0" - cssnano-utils "^3.1.0" - postcss-selector-parser "^6.0.5" + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" -postcss-minify-font-values@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz" - integrity sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA== +object.hasown@^1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz" + integrity sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw== dependencies: - postcss-value-parser "^4.2.0" + define-properties "^1.1.4" + es-abstract "^1.20.4" -postcss-minify-gradients@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz" - integrity sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw== +object.values@^1.1.6: + version "1.1.6" + resolved "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz" + integrity sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw== dependencies: - colord "^2.9.1" - cssnano-utils "^3.1.0" - postcss-value-parser "^4.2.0" + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + +on-exit-leak-free@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-0.2.0.tgz" + integrity sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg== -postcss-minify-params@^5.1.4: - version "5.1.4" - resolved "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz" - integrity sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw== +on-finished@2.4.1: + version "2.4.1" + resolved "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz" + integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== dependencies: - browserslist "^4.21.4" - cssnano-utils "^3.1.0" - postcss-value-parser "^4.2.0" + ee-first "1.1.1" -postcss-minify-selectors@^5.2.1: - version "5.2.1" - resolved "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz" - integrity sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg== +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== dependencies: - postcss-selector-parser "^6.0.5" + ee-first "1.1.1" -postcss-modules-extract-imports@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz" - integrity sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw== +on-headers@~1.0.1: + version "1.0.2" + resolved "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz" + integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== -postcss-modules-local-by-default@^4.0.3: - version "4.0.3" - resolved "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz" - integrity sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA== +once@^1.3.0, once@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== dependencies: - icss-utils "^5.0.0" - postcss-selector-parser "^6.0.2" - postcss-value-parser "^4.1.0" + wrappy "1" -postcss-modules-scope@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz" - integrity sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg== +onetime@^5.1.0: + version "5.1.2" + resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== dependencies: - postcss-selector-parser "^6.0.4" + mimic-fn "^2.1.0" -postcss-modules-values@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz" - integrity sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ== +onetime@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz" + integrity sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ== dependencies: - icss-utils "^5.0.0" + mimic-fn "^4.0.0" -postcss-nested@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz" - integrity sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ== +open@^7.3.1: + version "7.4.2" + resolved "https://registry.npmjs.org/open/-/open-7.4.2.tgz" + integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q== dependencies: - postcss-selector-parser "^6.0.11" + is-docker "^2.0.0" + is-wsl "^2.1.1" -postcss-nesting@^10.2.0: - version "10.2.0" - resolved "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-10.2.0.tgz" - integrity sha512-EwMkYchxiDiKUhlJGzWsD9b2zvq/r2SSubcRrgP+jujMXFzqvANLt16lJANC+5uZ6hjI7lpRmI6O8JIl+8l1KA== +optionator@^0.9.1: + version "0.9.1" + resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz" + integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== dependencies: - "@csstools/selector-specificity" "^2.0.0" - postcss-selector-parser "^6.0.10" + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.3" -postcss-normalize-charset@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz" - integrity sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg== +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" + integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== -postcss-normalize-display-values@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz" - integrity sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA== +p-map@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz" + integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== dependencies: - postcss-value-parser "^4.2.0" + aggregate-error "^3.0.0" -postcss-normalize-positions@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz" - integrity sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg== +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== dependencies: - postcss-value-parser "^4.2.0" + callsites "^3.0.0" -postcss-normalize-repeat-style@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz" - integrity sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g== +parse-json@^5.0.0: + version "5.2.0" + resolved "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz" + integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== dependencies: - postcss-value-parser "^4.2.0" + "@babel/code-frame" "^7.0.0" + error-ex "^1.3.1" + json-parse-even-better-errors "^2.3.0" + lines-and-columns "^1.1.6" -postcss-normalize-string@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz" - integrity sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w== - dependencies: - postcss-value-parser "^4.2.0" +parse5@^6.0.0: + version "6.0.1" + resolved "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz" + integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== -postcss-normalize-timing-functions@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz" - integrity sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg== - dependencies: - postcss-value-parser "^4.2.0" +parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== -postcss-normalize-unicode@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz" - integrity sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA== - dependencies: - browserslist "^4.21.4" - postcss-value-parser "^4.2.0" +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== -postcss-normalize-url@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz" - integrity sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew== - dependencies: - normalize-url "^6.0.1" - postcss-value-parser "^4.2.0" +path-is-inside@1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz" + integrity sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w== -postcss-normalize-whitespace@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz" - integrity sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA== - dependencies: - postcss-value-parser "^4.2.0" +path-key@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz" + integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw== -postcss-normalize@^10.0.1: - version "10.0.1" - resolved "https://registry.npmjs.org/postcss-normalize/-/postcss-normalize-10.0.1.tgz" - integrity sha512-+5w18/rDev5mqERcG3W5GZNMJa1eoYYNGo8gB7tEwaos0ajk3ZXAI4mHGcNT47NE+ZnZD1pEpUOFLvltIwmeJA== - dependencies: - "@csstools/normalize.css" "*" - postcss-browser-comments "^4" - sanitize.css "*" +path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== -postcss-opacity-percentage@^1.1.2: - version "1.1.3" - resolved "https://registry.npmjs.org/postcss-opacity-percentage/-/postcss-opacity-percentage-1.1.3.tgz" - integrity sha512-An6Ba4pHBiDtyVpSLymUUERMo2cU7s+Obz6BTrS+gxkbnSBNKSuD0AVUc+CpBMrpVPKKfoVz0WQCX+Tnst0i4A== +path-key@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz" + integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== -postcss-ordered-values@^5.1.3: - version "5.1.3" - resolved "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz" - integrity sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ== - dependencies: - cssnano-utils "^3.1.0" - postcss-value-parser "^4.2.0" +path-parse@^1.0.7: + version "1.0.7" + resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== -postcss-overflow-shorthand@^3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-3.0.4.tgz" - integrity sha512-otYl/ylHK8Y9bcBnPLo3foYFLL6a6Ak+3EQBPOTR7luMYCOsiVTUk1iLvNf6tVPNGXcoL9Hoz37kpfriRIFb4A== - dependencies: - postcss-value-parser "^4.2.0" +path-to-regexp@0.1.7: + version "0.1.7" + resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz" + integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ== -postcss-page-break@^3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-3.0.4.tgz" - integrity sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ== +path-to-regexp@2.2.1: + version "2.2.1" + resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.2.1.tgz" + integrity sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ== -postcss-place@^7.0.5: - version "7.0.5" - resolved "https://registry.npmjs.org/postcss-place/-/postcss-place-7.0.5.tgz" - integrity sha512-wR8igaZROA6Z4pv0d+bvVrvGY4GVHihBCBQieXFY3kuSuMyOmEnnfFzHl/tQuqHZkfkIVBEbDvYcFfHmpSet9g== - dependencies: - postcss-value-parser "^4.2.0" +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== -postcss-preset-env@^7.0.1: - version "7.8.3" - resolved "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-7.8.3.tgz" - integrity sha512-T1LgRm5uEVFSEF83vHZJV2z19lHg4yJuZ6gXZZkqVsqv63nlr6zabMH3l4Pc01FQCyfWVrh2GaUeCVy9Po+Aag== - dependencies: - "@csstools/postcss-cascade-layers" "^1.1.1" - "@csstools/postcss-color-function" "^1.1.1" - "@csstools/postcss-font-format-keywords" "^1.0.1" - "@csstools/postcss-hwb-function" "^1.0.2" - "@csstools/postcss-ic-unit" "^1.0.1" - "@csstools/postcss-is-pseudo-class" "^2.0.7" - "@csstools/postcss-nested-calc" "^1.0.0" - "@csstools/postcss-normalize-display-values" "^1.0.1" - "@csstools/postcss-oklab-function" "^1.1.1" - "@csstools/postcss-progressive-custom-properties" "^1.3.0" - "@csstools/postcss-stepped-value-functions" "^1.0.1" - "@csstools/postcss-text-decoration-shorthand" "^1.0.0" - "@csstools/postcss-trigonometric-functions" "^1.0.2" - "@csstools/postcss-unset-value" "^1.0.2" - autoprefixer "^10.4.13" - browserslist "^4.21.4" - css-blank-pseudo "^3.0.3" - css-has-pseudo "^3.0.4" - css-prefers-color-scheme "^6.0.3" - cssdb "^7.1.0" - postcss-attribute-case-insensitive "^5.0.2" - postcss-clamp "^4.1.0" - postcss-color-functional-notation "^4.2.4" - postcss-color-hex-alpha "^8.0.4" - postcss-color-rebeccapurple "^7.1.1" - postcss-custom-media "^8.0.2" - postcss-custom-properties "^12.1.10" - postcss-custom-selectors "^6.0.3" - postcss-dir-pseudo-class "^6.0.5" - postcss-double-position-gradients "^3.1.2" - postcss-env-function "^4.0.6" - postcss-focus-visible "^6.0.4" - postcss-focus-within "^5.0.4" - postcss-font-variant "^5.0.0" - postcss-gap-properties "^3.0.5" - postcss-image-set-function "^4.0.7" - postcss-initial "^4.0.1" - postcss-lab-function "^4.2.1" - postcss-logical "^5.0.4" - postcss-media-minmax "^5.0.0" - postcss-nesting "^10.2.0" - postcss-opacity-percentage "^1.1.2" - postcss-overflow-shorthand "^3.0.4" - postcss-page-break "^3.0.4" - postcss-place "^7.0.5" - postcss-pseudo-class-any-link "^7.1.6" - postcss-replace-overflow-wrap "^4.0.0" - postcss-selector-not "^6.0.1" - postcss-value-parser "^4.2.0" +pause@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/pause/-/pause-0.0.1.tgz#1d408b3fdb76923b9543d96fb4c9dfd535d9cb5d" + integrity sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg== -postcss-pseudo-class-any-link@^7.1.6: - version "7.1.6" - resolved "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.1.6.tgz" - integrity sha512-9sCtZkO6f/5ML9WcTLcIyV1yz9D1rf0tWc+ulKcvV30s0iZKS/ONyETvoWsr6vnrmW+X+KmuK3gV/w5EWnT37w== +pbkdf2@^3.0.9, pbkdf2@^3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz" + integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA== dependencies: - postcss-selector-parser "^6.0.10" + create-hash "^1.1.2" + create-hmac "^1.1.4" + ripemd160 "^2.0.1" + safe-buffer "^5.0.1" + sha.js "^2.4.8" -postcss-reduce-initial@^5.1.2: - version "5.1.2" - resolved "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz" - integrity sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg== - dependencies: - browserslist "^4.21.4" - caniuse-api "^3.0.0" +performance-now@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz" + integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== -postcss-reduce-transforms@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz" - integrity sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ== - dependencies: - postcss-value-parser "^4.2.0" +picocolors@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz" + integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== -postcss-replace-overflow-wrap@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-4.0.0.tgz" - integrity sha512-KmF7SBPphT4gPPcKZc7aDkweHiKEEO8cla/GjcBK+ckKxiZslIu3C4GCRW3DNfL0o7yW7kMQu9xlZ1kXRXLXtw== +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== -postcss-selector-not@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-6.0.1.tgz" - integrity sha512-1i9affjAe9xu/y9uqWH+tD4r6/hDaXJruk8xn2x1vzxC2U3J3LKO3zJW4CyxlNhA56pADJ/djpEwpH1RClI2rQ== - dependencies: - postcss-selector-parser "^6.0.10" +pidtree@^0.6.0: + version "0.6.0" + resolved "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz" + integrity sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g== -postcss-selector-parser@^6.0.10, postcss-selector-parser@^6.0.11, postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector-parser@^6.0.5, postcss-selector-parser@^6.0.9: - version "6.0.13" - resolved "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz" - integrity sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ== +pino-abstract-transport@v0.5.0: + version "0.5.0" + resolved "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-0.5.0.tgz" + integrity sha512-+KAgmVeqXYbTtU2FScx1XS3kNyfZ5TrXY07V96QnUSFqo2gAqlvmaxH67Lj7SWazqsMabf+58ctdTcBgnOLUOQ== dependencies: - cssesc "^3.0.0" - util-deprecate "^1.0.2" + duplexify "^4.1.2" + split2 "^4.0.0" -postcss-svgo@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz" - integrity sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA== - dependencies: - postcss-value-parser "^4.2.0" - svgo "^2.7.0" +pino-std-serializers@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-4.0.0.tgz" + integrity sha512-cK0pekc1Kjy5w9V2/n+8MkZwusa6EyyxfeQCB799CQRhRt/CqYKiWs5adeu8Shve2ZNffvfC/7J64A2PJo1W/Q== -postcss-unique-selectors@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz" - integrity sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA== +pino@7.11.0: + version "7.11.0" + resolved "https://registry.npmjs.org/pino/-/pino-7.11.0.tgz" + integrity sha512-dMACeu63HtRLmCG8VKdy4cShCPKaYDR4youZqoSWLxl5Gu99HUw8bw75thbPv9Nip+H+QYX8o3ZJbTdVZZ2TVg== dependencies: - postcss-selector-parser "^6.0.5" + atomic-sleep "^1.0.0" + fast-redact "^3.0.0" + on-exit-leak-free "^0.2.0" + pino-abstract-transport v0.5.0 + pino-std-serializers "^4.0.0" + process-warning "^1.0.0" + quick-format-unescaped "^4.0.3" + real-require "^0.1.0" + safe-stable-stringify "^2.1.0" + sonic-boom "^2.2.1" + thread-stream "^0.15.1" -postcss-value-parser@^4.0.0, postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0: +postcss-value-parser@^4.2.0: version "4.2.0" resolved "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz" integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== -postcss@^7.0.35: - version "7.0.39" - resolved "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz" - integrity sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA== - dependencies: - picocolors "^0.2.1" - source-map "^0.6.1" - -postcss@^8.3.5, postcss@^8.4.21, postcss@^8.4.23, postcss@^8.4.4: - version "8.4.24" - resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz" - integrity sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg== - dependencies: - nanoid "^3.3.6" - picocolors "^1.0.0" - source-map-js "^1.0.2" - prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prelude-ls@~1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz" - integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== - prettier-linter-helpers@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz" @@ -11855,19 +5022,6 @@ prettier@^2.2.0: resolved "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz" integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== -pretty-bytes@^5.3.0, pretty-bytes@^5.4.1: - version "5.6.0" - resolved "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz" - integrity sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg== - -pretty-error@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz" - integrity sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw== - dependencies: - lodash "^4.17.20" - renderkid "^3.0.0" - pretty-format@^26.0.0, pretty-format@^26.6.2: version "26.6.2" resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz" @@ -11878,25 +5032,6 @@ pretty-format@^26.0.0, pretty-format@^26.6.2: ansi-styles "^4.0.0" react-is "^17.0.1" -pretty-format@^27.5.1: - version "27.5.1" - resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz" - integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ== - dependencies: - ansi-regex "^5.0.1" - ansi-styles "^5.0.0" - react-is "^17.0.1" - -pretty-format@^28.1.3: - version "28.1.3" - resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.3.tgz" - integrity sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q== - dependencies: - "@jest/schemas" "^28.1.3" - ansi-regex "^5.0.1" - ansi-styles "^5.0.0" - react-is "^18.0.0" - prism-themes@^1.9.0: version "1.9.0" resolved "https://registry.npmjs.org/prism-themes/-/prism-themes-1.9.0.tgz" @@ -11907,11 +5042,6 @@ prismjs@^1.28.0: resolved "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz" integrity sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q== -process-nextick-args@~2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz" - integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== - process-warning@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/process-warning/-/process-warning-1.0.0.tgz" @@ -11922,87 +5052,7 @@ progress@^2.0.0: resolved "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -promise@^8.1.0: - version "8.3.0" - resolved "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz" - integrity sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg== - dependencies: - asap "~2.0.6" - -prompt-actions@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/prompt-actions/-/prompt-actions-3.0.2.tgz#537eee52241c940379f354a06eae8528e44ceeba" - integrity sha512-dhz2Fl7vK+LPpmnQ/S/eSut4BnH4NZDLyddHKi5uTU/2PDn3grEMGkgsll16V5RpVUh/yxdiam0xsM0RD4xvtg== - dependencies: - debug "^2.6.8" - -prompt-base@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/prompt-base/-/prompt-base-4.1.0.tgz#7b88e4c01b096c83d2f4e501a7e85f0d369ecd1f" - integrity sha512-svGzgLUKZoqomz9SGMkf1hBG8Wl3K7JGuRCXc/Pv7xw8239hhaTBXrmjt7EXA9P/QZzdyT8uNWt9F/iJTXq75g== - dependencies: - component-emitter "^1.2.1" - debug "^3.0.1" - koalas "^1.0.2" - log-utils "^0.2.1" - prompt-actions "^3.0.2" - prompt-question "^5.0.1" - readline-ui "^2.2.3" - readline-utils "^2.2.3" - static-extend "^0.1.2" - -prompt-choices@^4.0.5: - version "4.1.0" - resolved "https://registry.yarnpkg.com/prompt-choices/-/prompt-choices-4.1.0.tgz#6094202c4e55d0762e49c1e53735727e53fd484f" - integrity sha512-ZNYLv6rW9z9n0WdwCkEuS+w5nUAGzRgtRt6GQ5aFNFz6MIcU7nHFlHOwZtzy7RQBk80KzUGPSRQphvMiQzB8pg== - dependencies: - arr-flatten "^1.1.0" - arr-swap "^1.0.1" - choices-separator "^2.0.0" - clone-deep "^4.0.0" - collection-visit "^1.0.0" - define-property "^2.0.2" - is-number "^6.0.0" - kind-of "^6.0.2" - koalas "^1.0.2" - log-utils "^0.2.1" - pointer-symbol "^1.0.0" - radio-symbol "^2.0.0" - set-value "^3.0.0" - strip-color "^0.1.0" - terminal-paginator "^2.0.2" - toggle-array "^1.0.1" - -prompt-confirm@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/prompt-confirm/-/prompt-confirm-1.2.0.tgz#ed96d0ecc3a3485c7c9d7103bf19444e7811631f" - integrity sha512-r7XZxI5J5/oPtUskN0ZYO+lkv/WJHMQgfd1GTKAuxnHuViQShiFHdUnj6DamL4gQExaKAX7rnIcTKoRSpVVquA== - dependencies: - debug "^2.6.8" - prompt-base "^4.0.1" - -prompt-question@^5.0.1: - version "5.0.2" - resolved "https://registry.yarnpkg.com/prompt-question/-/prompt-question-5.0.2.tgz#81a479f38f0bafecc758e5d6f7bc586e599610b3" - integrity sha512-wreaLbbu8f5+7zXds199uiT11Ojp59Z4iBi6hONlSLtsKGTvL2UY8VglcxQ3t/X4qWIxsNCg6aT4O8keO65v6Q== - dependencies: - clone-deep "^1.0.0" - debug "^3.0.1" - define-property "^1.0.0" - isobject "^3.0.1" - kind-of "^5.0.2" - koalas "^1.0.2" - prompt-choices "^4.0.5" - -prompts@^2.0.1, prompts@^2.4.2: - version "2.4.2" - resolved "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz" - integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== - dependencies: - kleur "^3.0.3" - sisteransi "^1.0.5" - -prop-types@^15.0.0, prop-types@^15.5.8, prop-types@^15.6.2, prop-types@^15.7.2, prop-types@^15.8.1: +prop-types@^15.8.1: version "15.8.1" resolved "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz" integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== @@ -12034,7 +5084,7 @@ pseudomap@^1.0.2: resolved "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz" integrity sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ== -psl@^1.1.28, psl@^1.1.33: +psl@^1.1.28: version "1.9.0" resolved "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz" integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== @@ -12044,26 +5094,6 @@ pstree.remy@^1.1.8: resolved "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz" integrity sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w== -public-encrypt@^4.0.0: - version "4.0.3" - resolved "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz" - integrity sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q== - dependencies: - bn.js "^4.1.0" - browserify-rsa "^4.0.0" - create-hash "^1.1.0" - parse-asn1 "^5.0.0" - randombytes "^2.0.1" - safe-buffer "^5.1.2" - -pump@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" - integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - punycode@1.3.2: version "1.3.2" resolved "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz" @@ -12079,11 +5109,6 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz" integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA== -q@^1.1.2: - version "1.5.1" - resolved "https://registry.npmjs.org/q/-/q-1.5.1.tgz" - integrity sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw== - qrcode-generator@1.4.4: version "1.4.4" resolved "https://registry.npmjs.org/qrcode-generator/-/qrcode-generator-1.4.4.tgz" @@ -12126,52 +5151,23 @@ querystring@0.2.0: resolved "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz" integrity sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g== -querystringify@^2.1.1: - version "2.2.0" - resolved "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz" - integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== - queue-microtask@^1.2.2: version "1.2.3" resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz" integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== -quick-format-unescaped@^4.0.3: - version "4.0.4" - resolved "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz" - integrity sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg== - -radio-symbol@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/radio-symbol/-/radio-symbol-2.0.0.tgz#7aa9bfc50485636d52dd76d6a8e631b290799ae1" - integrity sha512-fpuWhwGD4XG1BfUWKXhCqdguCXzGi/DDb6RzmAGZo9R75enjlx0l+ZhHF93KNG7iNpT0Vi7wEqbf8ZErbe+JtQ== - dependencies: - ansi-gray "^0.1.1" - ansi-green "^0.1.1" - is-windows "^1.0.1" - -raf@^3.4.1: - version "3.4.1" - resolved "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz" - integrity sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA== - dependencies: - performance-now "^2.1.0" - -randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5, randombytes@^2.1.0: +quick-format-unescaped@^4.0.3: + version "4.0.4" + resolved "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz" + integrity sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg== + +randombytes@^2.0.1: version "2.1.0" resolved "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz" integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== dependencies: safe-buffer "^5.1.0" -randomfill@^1.0.3: - version "1.0.4" - resolved "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz" - integrity sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw== - dependencies: - randombytes "^2.0.5" - safe-buffer "^5.1.0" - range-parser@0.0.4: version "0.0.4" resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-0.0.4.tgz#c0427ffef51c10acba0782a46c9602e744ff620b" @@ -12182,7 +5178,7 @@ range-parser@1.2.0: resolved "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz" integrity sha512-kA5WQoNVo4t9lNx2kQNFCxKeBl5IbbSNBl1M/tLkw9WCn+hxNBAW5Qh8gdhs63CJnhjJ2zQWFoqPJP2sK1AV5A== -range-parser@^1.2.1, range-parser@~1.2.1: +range-parser@~1.2.1: version "1.2.1" resolved "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz" integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== @@ -12217,300 +5213,27 @@ rc@^1.0.1, rc@^1.1.6: minimist "^1.2.0" strip-json-comments "~2.0.1" -react-app-polyfill@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/react-app-polyfill/-/react-app-polyfill-3.0.0.tgz" - integrity sha512-sZ41cxiU5llIB003yxxQBYrARBqe0repqPTTYBTmMqTz9szeBbE37BehCE891NZsmdZqqP+xWKdT3eo3vOzN8w== - dependencies: - core-js "^3.19.2" - object-assign "^4.1.1" - promise "^8.1.0" - raf "^3.4.1" - regenerator-runtime "^0.13.9" - whatwg-fetch "^3.6.2" - -react-customizable-progressbar@^1.0.2: - version "1.2.0" - resolved "https://registry.npmjs.org/react-customizable-progressbar/-/react-customizable-progressbar-1.2.0.tgz" - integrity sha512-zNaFa8ynfslfVt5mqgDcIQgx9/UN0ohGH0wj1apA4DauMPd1bYNk3KDSu+sdbfhONNVDC8TOWSr6hH3tyX4oHw== - -react-dev-utils@^12.0.1: - version "12.0.1" - resolved "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz" - integrity sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ== - dependencies: - "@babel/code-frame" "^7.16.0" - address "^1.1.2" - browserslist "^4.18.1" - chalk "^4.1.2" - cross-spawn "^7.0.3" - detect-port-alt "^1.1.6" - escape-string-regexp "^4.0.0" - filesize "^8.0.6" - find-up "^5.0.0" - fork-ts-checker-webpack-plugin "^6.5.0" - global-modules "^2.0.0" - globby "^11.0.4" - gzip-size "^6.0.0" - immer "^9.0.7" - is-root "^2.1.0" - loader-utils "^3.2.0" - open "^8.4.0" - pkg-up "^3.1.0" - prompts "^2.4.2" - react-error-overlay "^6.0.11" - recursive-readdir "^2.2.2" - shell-quote "^1.7.3" - strip-ansi "^6.0.1" - text-table "^0.2.0" - -react-dom@^18.2.0: - version "18.2.0" - resolved "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz" - integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g== - dependencies: - loose-envify "^1.1.0" - scheduler "^0.23.0" - -react-error-overlay@6.0.9, react-error-overlay@^6.0.11: +react-error-overlay@6.0.9: version "6.0.9" resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.9.tgz#3c743010c9359608c375ecd6bc76f35d93995b0a" integrity sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew== -react-fast-compare@^2.0.1: - version "2.0.4" - resolved "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-2.0.4.tgz" - integrity sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw== - -react-fitty@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/react-fitty/-/react-fitty-1.0.1.tgz" - integrity sha512-mO+Sbon+bO8Kazv38qu3uwi52vYDdty6P8fla91TkQEc2KwfZjNLT4j31cXix3ZTlBMWmavWAu5SfG6J9SpaFQ== - dependencies: - fitty "2" - react-hook-form@^7.15.4: version "7.44.2" resolved "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.44.2.tgz" integrity sha512-IyihmIbCwzDI/iqlecTRa7+4BCnzNx40upSlGvIU7qwENhTf6APatm4bmL9ANtWKPYlD67SIlxfls7GwCUe+Lg== -react-html-parser@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/react-html-parser/-/react-html-parser-2.0.2.tgz" - integrity sha512-XeerLwCVjTs3njZcgCOeDUqLgNIt/t+6Jgi5/qPsO/krUWl76kWKXMeVs2LhY2gwM6X378DkhLjur0zUQdpz0g== - dependencies: - htmlparser2 "^3.9.0" - -react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0: +react-is@^16.13.1, react-is@^16.7.0: version "16.13.1" resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== -"react-is@^16.8.0 || ^17.0.0", react-is@^17.0.1: +react-is@^17.0.1: version "17.0.2" resolved "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz" integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== -react-is@^18.0.0, react-is@^18.2.0: - version "18.2.0" - resolved "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz" - integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== - -react-markdown@^8.0.0: - version "8.0.7" - resolved "https://registry.npmjs.org/react-markdown/-/react-markdown-8.0.7.tgz" - integrity sha512-bvWbzG4MtOU62XqBx3Xx+zB2raaFFsq4mYiAzfjXJMEz2sixgeAfraA3tvzULF02ZdOMUOKTBFFaZJDDrq+BJQ== - dependencies: - "@types/hast" "^2.0.0" - "@types/prop-types" "^15.0.0" - "@types/unist" "^2.0.0" - comma-separated-tokens "^2.0.0" - hast-util-whitespace "^2.0.0" - prop-types "^15.0.0" - property-information "^6.0.0" - react-is "^18.0.0" - remark-parse "^10.0.0" - remark-rehype "^10.0.0" - space-separated-tokens "^2.0.0" - style-to-object "^0.4.0" - unified "^10.0.0" - unist-util-visit "^4.0.0" - vfile "^5.0.0" - -react-query@^3.13.0: - version "3.39.3" - resolved "https://registry.npmjs.org/react-query/-/react-query-3.39.3.tgz" - integrity sha512-nLfLz7GiohKTJDuT4us4X3h/8unOh+00MLb2yJoGTPjxKs2bc1iDhkNx2bd5MKklXnOD3NrVZ+J2UXujA5In4g== - dependencies: - "@babel/runtime" "^7.5.5" - broadcast-channel "^3.4.1" - match-sorter "^6.0.2" - -react-refresh@^0.11.0: - version "0.11.0" - resolved "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz" - integrity sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A== - -react-router-dom@^5.2.0: - version "5.3.4" - resolved "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.3.4.tgz" - integrity sha512-m4EqFMHv/Ih4kpcBCONHbkT68KoAeHN4p3lAGoNryfHi0dMy0kCzEZakiKRsvg5wHZ/JLrLW8o8KomWiz/qbYQ== - dependencies: - "@babel/runtime" "^7.12.13" - history "^4.9.0" - loose-envify "^1.3.1" - prop-types "^15.6.2" - react-router "5.3.4" - tiny-invariant "^1.0.2" - tiny-warning "^1.0.0" - -react-router-hash-link@^2.4.3: - version "2.4.3" - resolved "https://registry.npmjs.org/react-router-hash-link/-/react-router-hash-link-2.4.3.tgz" - integrity sha512-NU7GWc265m92xh/aYD79Vr1W+zAIXDWp3L2YZOYP4rCqPnJ6LI6vh3+rKgkidtYijozHclaEQTAHaAaMWPVI4A== - dependencies: - prop-types "^15.7.2" - -react-router@5.3.4: - version "5.3.4" - resolved "https://registry.npmjs.org/react-router/-/react-router-5.3.4.tgz" - integrity sha512-Ys9K+ppnJah3QuaRiLxk+jDWOR1MekYQrlytiXxC1RyfbdsZkS5pvKAzCCr031xHixZwpnsYNT5xysdFHQaYsA== - dependencies: - "@babel/runtime" "^7.12.13" - history "^4.9.0" - hoist-non-react-statics "^3.1.0" - loose-envify "^1.3.1" - path-to-regexp "^1.7.0" - prop-types "^15.6.2" - react-is "^16.6.0" - tiny-invariant "^1.0.2" - tiny-warning "^1.0.0" - -react-scripts@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz" - integrity sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ== - dependencies: - "@babel/core" "^7.16.0" - "@pmmmwh/react-refresh-webpack-plugin" "^0.5.3" - "@svgr/webpack" "^5.5.0" - babel-jest "^27.4.2" - babel-loader "^8.2.3" - babel-plugin-named-asset-import "^0.3.8" - babel-preset-react-app "^10.0.1" - bfj "^7.0.2" - browserslist "^4.18.1" - camelcase "^6.2.1" - case-sensitive-paths-webpack-plugin "^2.4.0" - css-loader "^6.5.1" - css-minimizer-webpack-plugin "^3.2.0" - dotenv "^10.0.0" - dotenv-expand "^5.1.0" - eslint "^8.3.0" - eslint-config-react-app "^7.0.1" - eslint-webpack-plugin "^3.1.1" - file-loader "^6.2.0" - fs-extra "^10.0.0" - html-webpack-plugin "^5.5.0" - identity-obj-proxy "^3.0.0" - jest "^27.4.3" - jest-resolve "^27.4.2" - jest-watch-typeahead "^1.0.0" - mini-css-extract-plugin "^2.4.5" - postcss "^8.4.4" - postcss-flexbugs-fixes "^5.0.2" - postcss-loader "^6.2.1" - postcss-normalize "^10.0.1" - postcss-preset-env "^7.0.1" - prompts "^2.4.2" - react-app-polyfill "^3.0.0" - react-dev-utils "^12.0.1" - react-refresh "^0.11.0" - resolve "^1.20.0" - resolve-url-loader "^4.0.0" - sass-loader "^12.3.0" - semver "^7.3.5" - source-map-loader "^3.0.0" - style-loader "^3.3.1" - tailwindcss "^3.0.2" - terser-webpack-plugin "^5.2.5" - webpack "^5.64.4" - webpack-dev-server "^4.6.0" - webpack-manifest-plugin "^4.0.2" - workbox-webpack-plugin "^6.4.1" - optionalDependencies: - fsevents "^2.3.2" - -react-simple-code-editor@^0.11.2: - version "0.11.3" - resolved "https://registry.npmjs.org/react-simple-code-editor/-/react-simple-code-editor-0.11.3.tgz" - integrity sha512-7bVI4Yd1aNCeuldErXUt8ksaAG5Fi+GZ6vp3mtFBnckKdzsQtrgkDvdwMFXIhwTGG+mUYmk5ZpMo0axSW9JBzA== - -react-spring-bottom-sheet@^3.4.0: - version "3.4.1" - resolved "https://registry.npmjs.org/react-spring-bottom-sheet/-/react-spring-bottom-sheet-3.4.1.tgz" - integrity sha512-yDFqiPMm/fjefjnOe6Q9zxccbCl6HMUKsK5bWgfGHJIj4zmXVKio5d4icQvmOLuwpuCA2pwv4J6nGWS6fUZidQ== - dependencies: - "@juggle/resize-observer" "^3.2.0" - "@reach/portal" "^0.13.0" - "@xstate/react" "^1.2.0" - body-scroll-lock "^3.1.5" - focus-trap "^6.2.2" - react-spring "^8.0.27" - react-use-gesture "^8.0.1" - xstate "^4.15.1" - -react-spring@^8.0.27: - version "8.0.27" - resolved "https://registry.npmjs.org/react-spring/-/react-spring-8.0.27.tgz" - integrity sha512-nDpWBe3ZVezukNRandTeLSPcwwTMjNVu1IDq9qA/AMiUqHuRN4BeSWvKr3eIxxg1vtiYiOLy4FqdfCP5IoP77g== - dependencies: - "@babel/runtime" "^7.3.1" - prop-types "^15.5.8" - -react-transition-group@^4.4.0, react-transition-group@^4.4.5: - version "4.4.5" - resolved "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz" - integrity sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g== - dependencies: - "@babel/runtime" "^7.5.5" - dom-helpers "^5.0.1" - loose-envify "^1.4.0" - prop-types "^15.6.2" - -react-use-gesture@^8.0.1: - version "8.0.1" - resolved "https://registry.npmjs.org/react-use-gesture/-/react-use-gesture-8.0.1.tgz" - integrity sha512-CXzUNkulUdgouaAlvAsC5ZVo0fi9KGSBSk81WrE4kOIcJccpANe9zZkAYr5YZZhqpicIFxitsrGVS4wmoMun9A== - -react@^18.2.0: - version "18.2.0" - resolved "https://registry.npmjs.org/react/-/react-18.2.0.tgz" - integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== - dependencies: - loose-envify "^1.1.0" - -read-cache@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz" - integrity sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA== - dependencies: - pify "^2.3.0" - -readable-stream@^2.0.1: - version "2.3.8" - resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz" - integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -readable-stream@^3.0.6, readable-stream@^3.1.1, readable-stream@^3.5.0, readable-stream@^3.6.0: +readable-stream@^3.1.1, readable-stream@^3.6.0: version "3.6.2" resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz" integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== @@ -12526,73 +5249,17 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" -readline-ui@^2.2.3: - version "2.2.3" - resolved "https://registry.yarnpkg.com/readline-ui/-/readline-ui-2.2.3.tgz#9e873a7668bbd8ca8a5573ce810a6bafb70a5089" - integrity sha512-ix7jz0PxqQqcIuq3yQTHv1TOhlD2IHO74aNO+lSuXsRYm1d+pdyup1yF3zKyLK1wWZrVNGjkzw5tUegO2IDy+A== - dependencies: - component-emitter "^1.2.1" - debug "^2.6.8" - readline-utils "^2.2.1" - string-width "^2.0.0" - -readline-utils@^2.2.1, readline-utils@^2.2.3: - version "2.2.3" - resolved "https://registry.yarnpkg.com/readline-utils/-/readline-utils-2.2.3.tgz#6f847d6b8f1915c391b581c367cd47873862351a" - integrity sha512-cjFo7R7e7AaFOz2JLQ4EgsHh4+l7mw29Eu3DAEPgGeWbYQFKqyxWsL61/McC6b2oJAvn14Ea8eUms9o8ZFC1iQ== - dependencies: - arr-flatten "^1.1.0" - extend-shallow "^2.0.1" - is-buffer "^1.1.5" - is-number "^3.0.0" - is-windows "^1.0.1" - koalas "^1.0.2" - mute-stream "0.0.7" - strip-color "^0.1.0" - window-size "^1.1.0" - real-require@^0.1.0: version "0.1.0" resolved "https://registry.npmjs.org/real-require/-/real-require-0.1.0.tgz" integrity sha512-r/H9MzAWtrv8aSVjPCMFpDMl5q66GqtmmRkRjpHTsp4zBAa+snZyiQNlMONiUmEJcsnaw0wCauJ2GWODr/aFkg== -recursive-readdir@^2.2.2: - version "2.2.3" - resolved "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz" - integrity sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA== - dependencies: - minimatch "^3.0.5" - -regenerate-unicode-properties@^10.1.0: - version "10.1.0" - resolved "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz" - integrity sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ== - dependencies: - regenerate "^1.4.2" - -regenerate@^1.4.2: - version "1.4.2" - resolved "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz" - integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== - -regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.9: +regenerator-runtime@^0.13.11: version "0.13.11" resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz" integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== -regenerator-transform@^0.15.1: - version "0.15.1" - resolved "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz" - integrity sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg== - dependencies: - "@babel/runtime" "^7.8.4" - -regex-parser@^2.2.11: - version "2.2.11" - resolved "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz" - integrity sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q== - -regexp.prototype.flags@^1.4.3, regexp.prototype.flags@^1.5.0: +regexp.prototype.flags@^1.4.3: version "1.5.0" resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz" integrity sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA== @@ -12606,18 +5273,6 @@ regexpp@^3.1.0: resolved "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz" integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== -regexpu-core@^5.3.1: - version "5.3.2" - resolved "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz" - integrity sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ== - dependencies: - "@babel/regjsgen" "^0.8.0" - regenerate "^1.4.2" - regenerate-unicode-properties "^10.1.0" - regjsparser "^0.9.1" - unicode-match-property-ecmascript "^2.0.0" - unicode-match-property-value-ecmascript "^2.1.0" - registry-auth-token@3.3.2: version "3.3.2" resolved "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz" @@ -12633,13 +5288,6 @@ registry-url@3.1.0: dependencies: rc "^1.0.1" -regjsparser@^0.9.1: - version "0.9.1" - resolved "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz" - integrity sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ== - dependencies: - jsesc "~0.5.0" - rehype-raw@^6.1.1: version "6.1.1" resolved "https://registry.npmjs.org/rehype-raw/-/rehype-raw-6.1.1.tgz" @@ -12649,11 +5297,6 @@ rehype-raw@^6.1.1: hast-util-raw "^7.2.0" unified "^10.0.0" -relateurl@^0.2.7: - version "0.2.7" - resolved "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz" - integrity sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog== - remark-breaks@^3.0.2: version "3.0.3" resolved "https://registry.npmjs.org/remark-breaks/-/remark-breaks-3.0.3.tgz" @@ -12673,41 +5316,6 @@ remark-gfm@^3.0.1: micromark-extension-gfm "^2.0.0" unified "^10.0.0" -remark-parse@^10.0.0: - version "10.0.2" - resolved "https://registry.npmjs.org/remark-parse/-/remark-parse-10.0.2.tgz" - integrity sha512-3ydxgHa/ZQzG8LvC7jTXccARYDcRld3VfcgIIFs7bI6vbRSxJJmzgLEIIoYKyrfhaY+ujuWaf/PJiMZXoiCXgw== - dependencies: - "@types/mdast" "^3.0.0" - mdast-util-from-markdown "^1.0.0" - unified "^10.0.0" - -remark-rehype@^10.0.0: - version "10.1.0" - resolved "https://registry.npmjs.org/remark-rehype/-/remark-rehype-10.1.0.tgz" - integrity sha512-EFmR5zppdBp0WQeDVZ/b66CWJipB2q2VLNFMabzDSGR66Z2fQii83G5gTBbgGEnEEA0QRussvrFHxk1HWGJskw== - dependencies: - "@types/hast" "^2.0.0" - "@types/mdast" "^3.0.0" - mdast-util-to-hast "^12.1.0" - unified "^10.0.0" - -remove-accents@0.4.2: - version "0.4.2" - resolved "https://registry.npmjs.org/remove-accents/-/remove-accents-0.4.2.tgz" - integrity sha512-7pXIJqJOq5tFgG1A2Zxti3Ht8jJF337m4sowbuHsW30ZnkQFnDzy9qBNhgzX8ZLW4+UBcXiiR7SwR6pokHsxiA== - -renderkid@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz" - integrity sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg== - dependencies: - css-select "^4.1.3" - dom-converter "^0.2.0" - htmlparser2 "^6.1.0" - lodash "^4.17.21" - strip-ansi "^6.0.1" - request@: version "2.88.2" resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" @@ -12744,62 +5352,19 @@ require-from-string@^2.0.2: resolved "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz" integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== -require-main-filename@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" - integrity sha512-IqSUtOVP4ksd1C/ej5zeEh/BIP2ajqpn8c5x+q99gvcIG/Qf0cud5raVnE/Dwd0ua9TXYDoDc0RE5hBSdz22Ug== - -requires-port@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz" - integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== - -resolve-cwd@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz" - integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== - dependencies: - resolve-from "^5.0.0" - resolve-from@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - -resolve-pathname@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-3.0.0.tgz" - integrity sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng== - -resolve-url-loader@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz" - integrity sha512-05VEMczVREcbtT7Bz+C+96eUO5HDNvdthIiMB34t7FcF8ehcu4wC0sSgPUubs3XW2Q3CNLJk/BJrCU9wVRymiA== - dependencies: - adjust-sourcemap-loader "^4.0.0" - convert-source-map "^1.7.0" - loader-utils "^2.0.0" - postcss "^7.0.35" - source-map "0.6.1" - -resolve.exports@^1.1.0: - version "1.1.1" - resolved "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz" - integrity sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ== - -resolve@^1.1.7, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.22.2: - version "1.22.2" - resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz" - integrity sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g== +resolve-tspaths@^0.8.17: + version "0.8.17" + resolved "https://registry.yarnpkg.com/resolve-tspaths/-/resolve-tspaths-0.8.17.tgz#1998525077019ad8033c61fc75006c09256d20b8" + integrity sha512-oM+e7uUEd23NL39EpBrxQfyzRy8UP11e3jqtj7WUxi6B/SWlIvfgXqUjgzLBz2+QjZ7aWkX47ZsJnCgH7wVpFQ== dependencies: - is-core-module "^2.11.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" + ansi-colors "4.1.3" + commander "11.1.0" + fast-glob "3.3.1" resolve@^2.0.0-next.4: version "2.0.0-next.4" @@ -12818,11 +5383,6 @@ restore-cursor@^3.1.0: onetime "^5.1.0" signal-exit "^3.0.2" -retry@^0.13.1: - version "0.13.1" - resolved "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz" - integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg== - reusify@^1.0.4: version "1.0.4" resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" @@ -12833,12 +5393,7 @@ rfdc@^1.3.0: resolved "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz" integrity sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA== -rifm@^0.12.1: - version "0.12.1" - resolved "https://registry.npmjs.org/rifm/-/rifm-0.12.1.tgz" - integrity sha512-OGA1Bitg/dSJtI/c4dh90svzaUPt228kzFsUkJbtA2c964IqEAwWXeL9ZJi86xWv3j5SMqRvGULl7bA6cK0Bvg== - -rimraf@3.0.2, rimraf@^3.0.0, rimraf@^3.0.2: +rimraf@^3.0.2: version "3.0.2" resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== @@ -12860,23 +5415,6 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -rollup-plugin-terser@^7.0.0: - version "7.0.2" - resolved "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz" - integrity sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ== - dependencies: - "@babel/code-frame" "^7.10.4" - jest-worker "^26.2.1" - serialize-javascript "^4.0.0" - terser "^5.0.0" - -rollup@^2.43.1: - version "2.79.1" - resolved "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz" - integrity sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw== - optionalDependencies: - fsevents "~2.3.2" - run-parallel@^1.1.9: version "1.2.0" resolved "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz" @@ -12905,22 +5443,12 @@ sade@^1.7.3: dependencies: mri "^1.1.0" -safe-array-concat@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz" - integrity sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.2.0" - has-symbols "^1.0.3" - isarray "^2.0.5" - -safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: +safe-buffer@5.1.2: version "5.1.2" resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: +safe-buffer@5.2.1, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== @@ -12944,108 +5472,22 @@ safe-stable-stringify@^2.1.0: resolved "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz" integrity sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g== -"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: +"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: version "2.1.2" resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -sanitize.css@*: - version "13.0.0" - resolved "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz" - integrity sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA== - -sass-loader@^12.3.0: - version "12.6.0" - resolved "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz" - integrity sha512-oLTaH0YCtX4cfnJZxKSLAyglED0naiYfNG1iXfU5w1LNZ+ukoA5DtyDIN5zmKVZwYNJP4KRc5Y3hkWga+7tYfA== - dependencies: - klona "^2.0.4" - neo-async "^2.6.2" - -sax@~1.2.4: - version "1.2.4" - resolved "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz" - integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== - -saxes@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz" - integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== - dependencies: - xmlchars "^2.2.0" - -scheduler@^0.23.0: - version "0.23.0" - resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz" - integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw== - dependencies: - loose-envify "^1.1.0" - -schema-utils@2.7.0: - version "2.7.0" - resolved "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz" - integrity sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A== - dependencies: - "@types/json-schema" "^7.0.4" - ajv "^6.12.2" - ajv-keywords "^3.4.1" - -schema-utils@^2.6.5: - version "2.7.1" - resolved "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz" - integrity sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg== - dependencies: - "@types/json-schema" "^7.0.5" - ajv "^6.12.4" - ajv-keywords "^3.5.2" - -schema-utils@^3.0.0, schema-utils@^3.1.1, schema-utils@^3.1.2: - version "3.1.2" - resolved "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz" - integrity sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg== - dependencies: - "@types/json-schema" "^7.0.8" - ajv "^6.12.5" - ajv-keywords "^3.5.2" - -schema-utils@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz" - integrity sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ== - dependencies: - "@types/json-schema" "^7.0.9" - ajv "^8.9.0" - ajv-formats "^2.1.1" - ajv-keywords "^5.1.0" - -select-hose@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz" - integrity sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg== - -selfsigned@^2.1.1: - version "2.1.1" - resolved "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz" - integrity sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ== - dependencies: - node-forge "^1" - -semver@^5.5.0: - version "5.7.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" - integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== - semver@^5.7.1: version "5.7.1" resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== -semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0: +semver@^6.3.0: version "6.3.0" resolved "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@^7.2.1, semver@^7.3.2, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8: +semver@^7.2.1, semver@^7.3.5, semver@^7.3.7: version "7.5.1" resolved "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz" integrity sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw== @@ -13086,20 +5528,6 @@ send@0.18.0: range-parser "~1.2.1" statuses "2.0.1" -serialize-javascript@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz" - integrity sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw== - dependencies: - randombytes "^2.1.0" - -serialize-javascript@^6.0.0, serialize-javascript@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz" - integrity sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w== - dependencies: - randombytes "^2.1.0" - seroval@^0.5.0: version "0.5.1" resolved "https://registry.npmjs.org/seroval/-/seroval-0.5.1.tgz" @@ -13119,19 +5547,6 @@ serve-handler@6.1.3: path-to-regexp "2.2.1" range-parser "1.2.0" -serve-index@^1.9.1: - version "1.9.1" - resolved "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz" - integrity sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw== - dependencies: - accepts "~1.3.4" - batch "0.6.1" - debug "2.6.9" - escape-html "~1.0.3" - http-errors "~1.6.2" - mime-types "~2.1.17" - parseurl "~1.3.2" - serve-static@1.15.0: version "1.15.0" resolved "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz" @@ -13157,25 +5572,6 @@ serve@^11.3.2: serve-handler "6.1.3" update-check "1.5.2" -set-blocking@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== - -set-getter@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/set-getter/-/set-getter-0.1.1.tgz#a3110e1b461d31a9cfc8c5c9ee2e9737ad447102" - integrity sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw== - dependencies: - to-object-path "^0.3.0" - -set-value@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-3.0.3.tgz#178e190d29cec6c086167222177b2fcb92f7ad56" - integrity sha512-Xsn/XSatoVOGBbp5hs3UylFDs5Bi9i+ArpVJKdHPniZHoEgRniXTqHWrWrGQ0PbEClVT6WtfnBwR8CAHC9sveg== - dependencies: - is-plain-object "^2.0.4" - setprototypeof@1.1.0: version "1.1.0" resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz" @@ -13194,15 +5590,6 @@ sha.js@^2.4.0, sha.js@^2.4.8: inherits "^2.0.1" safe-buffer "^5.0.1" -shallow-clone@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-1.0.0.tgz#4480cd06e882ef68b2ad88a3ea54832e2c48b571" - integrity sha512-oeXreoKR/SyNJtRJMAKPDSvd28OqEwG4eR/xc856cRGBII7gX9lvAqDxusPm0846z/w/hWYjI1NpKwJ00NHzRA== - dependencies: - is-extendable "^0.1.1" - kind-of "^5.0.0" - mixin-object "^2.0.1" - shallow-clone@^3.0.0: version "3.0.1" resolved "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz" @@ -13234,7 +5621,7 @@ shebang-regex@^3.0.0: resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -shell-quote@^1.7.3, shell-quote@^1.8.1: +shell-quote@^1.8.1: version "1.8.1" resolved "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz" integrity sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA== @@ -13248,7 +5635,7 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: +signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.7: version "3.0.7" resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== @@ -13260,21 +5647,11 @@ simple-update-notifier@^1.0.7: dependencies: semver "~7.0.0" -sisteransi@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz" - integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== - slash@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== -slash@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz" - integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== - slice-ansi@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz" @@ -13301,15 +5678,6 @@ slice-ansi@^5.0.0: ansi-styles "^6.0.0" is-fullwidth-code-point "^4.0.0" -sockjs@^0.3.24: - version "0.3.24" - resolved "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz" - integrity sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ== - dependencies: - faye-websocket "^0.11.3" - uuid "^8.3.2" - websocket-driver "^0.7.4" - solid-js@^1.6.6: version "1.7.7" resolved "https://registry.npmjs.org/solid-js/-/solid-js-1.7.7.tgz" @@ -13325,11 +5693,6 @@ sonic-boom@^2.2.1: dependencies: atomic-sleep "^1.0.0" -source-list-map@^2.0.0, source-list-map@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz" - integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw== - source-map-explorer@2.5.2: version "2.5.2" resolved "https://registry.npmjs.org/source-map-explorer/-/source-map-explorer-2.5.2.tgz" @@ -13348,55 +5711,11 @@ source-map-explorer@2.5.2: temp "^0.9.4" yargs "^16.2.0" -source-map-js@^1.0.1, source-map-js@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz" - integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== - -source-map-loader@^3.0.0: - version "3.0.2" - resolved "https://registry.npmjs.org/source-map-loader/-/source-map-loader-3.0.2.tgz" - integrity sha512-BokxPoLjyl3iOrgkWaakaxqnelAJSS+0V+De0kKIq6lyWrXuiPgYTGp6z3iHmqljKAaLXwZa+ctD8GccRJeVvg== - dependencies: - abab "^2.0.5" - iconv-lite "^0.6.3" - source-map-js "^1.0.1" - -source-map-support@^0.5.6, source-map-support@~0.5.20: - version "0.5.21" - resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz" - integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map@0.6.1, source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0, source-map@~0.6.1: - version "0.6.1" - resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== - -source-map@^0.5.7: - version "0.5.7" - resolved "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz" - integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== - source-map@^0.7.3: version "0.7.4" resolved "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz" integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== -source-map@^0.8.0-beta.0: - version "0.8.0-beta.0" - resolved "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz" - integrity sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA== - dependencies: - whatwg-url "^7.0.0" - -sourcemap-codec@^1.4.8: - version "1.4.8" - resolved "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz" - integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA== - space-separated-tokens@^2.0.0: version "2.0.2" resolved "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz" @@ -13407,29 +5726,6 @@ spawn-command@0.0.2: resolved "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2.tgz" integrity sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ== -spdy-transport@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz" - integrity sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw== - dependencies: - debug "^4.1.0" - detect-node "^2.0.4" - hpack.js "^2.1.6" - obuf "^1.1.2" - readable-stream "^3.0.6" - wbuf "^1.7.3" - -spdy@^4.0.2: - version "4.0.2" - resolved "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz" - integrity sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA== - dependencies: - debug "^4.1.0" - handle-thing "^2.0.0" - http-deceiver "^1.2.7" - select-hose "^2.0.0" - spdy-transport "^3.0.0" - split-on-first@^1.0.0: version "1.1.0" resolved "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz" @@ -13460,31 +5756,6 @@ sshpk@^1.7.0: safer-buffer "^2.0.2" tweetnacl "~0.14.0" -stable@^0.1.8: - version "0.1.8" - resolved "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz" - integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w== - -stack-utils@^2.0.3: - version "2.0.6" - resolved "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz" - integrity sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ== - dependencies: - escape-string-regexp "^2.0.0" - -stackframe@^1.3.4: - version "1.3.4" - resolved "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz" - integrity sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw== - -static-extend@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g== - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - statuses@2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz" @@ -13495,21 +5766,6 @@ statuses@2.0.1: resolved "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz" integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== -stop-iteration-iterator@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz" - integrity sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ== - dependencies: - internal-slot "^1.0.4" - -stream-browserify@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz" - integrity sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA== - dependencies: - inherits "~2.0.4" - readable-stream "^3.5.0" - stream-http@^3.2.0: version "3.2.0" resolved "https://registry.npmjs.org/stream-http/-/stream-http-3.2.0.tgz" @@ -13535,36 +5791,6 @@ string-argv@^0.3.1: resolved "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz" integrity sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q== -string-length@^4.0.1: - version "4.0.2" - resolved "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz" - integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== - dependencies: - char-regex "^1.0.2" - strip-ansi "^6.0.0" - -string-length@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/string-length/-/string-length-5.0.1.tgz" - integrity sha512-9Ep08KAMUn0OadnVaBuRdE2l615CQ508kr0XMadjClfYpdCyvrbFp6Taebo8yyxokQ4viUd/xPPUA4FGgUa0ow== - dependencies: - char-regex "^2.0.0" - strip-ansi "^7.0.1" - -string-natural-compare@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/string-natural-compare/-/string-natural-compare-3.0.1.tgz" - integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw== - -string-width@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - integrity sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw== - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - string-width@^2.0.0, string-width@^2.1.1: version "2.1.1" resolved "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz" @@ -13591,7 +5817,7 @@ string-width@^5.0.0: emoji-regex "^9.2.2" strip-ansi "^7.0.1" -string.prototype.matchall@^4.0.6, string.prototype.matchall@^4.0.8: +string.prototype.matchall@^4.0.8: version "4.0.8" resolved "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz" integrity sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg== @@ -13639,29 +5865,6 @@ string_decoder@^1.1.1: dependencies: safe-buffer "~5.2.0" -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - -stringify-object@^3.3.0: - version "3.3.0" - resolved "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz" - integrity sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw== - dependencies: - get-own-enumerable-property-symbols "^3.0.0" - is-obj "^1.0.1" - is-regexp "^1.0.0" - -strip-ansi@^3.0.0, strip-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - integrity sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg== - dependencies: - ansi-regex "^2.0.0" - strip-ansi@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz" @@ -13676,43 +5879,18 @@ strip-ansi@^6.0.0, strip-ansi@^6.0.1: dependencies: ansi-regex "^5.0.1" -strip-ansi@^7.0.1: - version "7.1.0" - resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz" - integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ== - dependencies: - ansi-regex "^6.0.1" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" - integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== - -strip-bom@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz" - integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== - -strip-color@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/strip-color/-/strip-color-0.1.0.tgz#106f65d3d3e6a2d9401cac0eb0ce8b8a702b4f7b" - integrity sha512-p9LsUieSjWNNAxVCXLeilaDlmuUOrDS5/dF9znM1nZc7EGX5+zEFC0bEevsNIaldjlks+2jns5Siz6F9iK6jwA== - -strip-comments@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/strip-comments/-/strip-comments-2.0.1.tgz" - integrity sha512-ZprKx+bBLXv067WTCALv8SSz5l2+XhpYCsVtSqlMnkAXMWDq+/ekVbl1ghqP9rUHTzv6sm/DwCOiYutU/yp1fw== +strip-ansi@^7.0.1: + version "7.1.0" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz" + integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ== + dependencies: + ansi-regex "^6.0.1" strip-eof@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz" integrity sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q== -strip-final-newline@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz" - integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== - strip-final-newline@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz" @@ -13728,49 +5906,6 @@ strip-json-comments@~2.0.1: resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz" integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== -style-loader@^3.3.1: - version "3.3.3" - resolved "https://registry.npmjs.org/style-loader/-/style-loader-3.3.3.tgz" - integrity sha512-53BiGLXAcll9maCYtZi2RCQZKa8NQQai5C4horqKyRmHj9H7QmcUyucrH+4KW/gBQbXM2AsB0axoEcFZPlfPcw== - -style-to-object@^0.4.0: - version "0.4.1" - resolved "https://registry.npmjs.org/style-to-object/-/style-to-object-0.4.1.tgz" - integrity sha512-HFpbb5gr2ypci7Qw+IOhnP2zOU7e77b+rzM+wTzXzfi1PrtBCX0E7Pk4wL4iTLnhzZ+JgEGAhX81ebTg/aYjQw== - dependencies: - inline-style-parser "0.1.1" - -stylehacks@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz" - integrity sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw== - dependencies: - browserslist "^4.21.4" - postcss-selector-parser "^6.0.4" - -stylis@4.2.0: - version "4.2.0" - resolved "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz" - integrity sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw== - -success-symbol@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/success-symbol/-/success-symbol-0.1.0.tgz#24022e486f3bf1cdca094283b769c472d3b72897" - integrity sha512-7S6uOTxPklNGxOSbDIg4KlVLBQw1UiGVyfCUYgYxrZUKRblUkmGj7r8xlfQoFudvqLv6Ap5gd76/IIFfI9JG2A== - -sucrase@^3.32.0: - version "3.32.0" - resolved "https://registry.npmjs.org/sucrase/-/sucrase-3.32.0.tgz" - integrity sha512-ydQOU34rpSyj2TGyz4D2p8rbktIOZ8QY9s+DGLvFU1i5pWJE8vkpruCjGCMHsdXwnD7JDcS+noSwM/a7zyNFDQ== - dependencies: - "@jridgewell/gen-mapping" "^0.3.2" - commander "^4.0.0" - glob "7.1.6" - lines-and-columns "^1.1.6" - mz "^2.7.0" - pirates "^4.0.1" - ts-interface-checker "^0.1.9" - supports-color@^5.3.0, supports-color@^5.5.0: version "5.5.0" resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" @@ -13778,80 +5913,25 @@ supports-color@^5.3.0, supports-color@^5.5.0: dependencies: has-flag "^3.0.0" -supports-color@^7.0.0, supports-color@^7.1.0: +supports-color@^7.1.0: version "7.2.0" resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== dependencies: has-flag "^4.0.0" -supports-color@^8.0.0, supports-color@^8.1.1: +supports-color@^8.1.1: version "8.1.1" resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== dependencies: has-flag "^4.0.0" -supports-hyperlinks@^2.0.0: - version "2.3.0" - resolved "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz" - integrity sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA== - dependencies: - has-flag "^4.0.0" - supports-color "^7.0.0" - supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== -svg-parser@^2.0.2: - version "2.0.4" - resolved "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz" - integrity sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ== - -svgo@^1.2.2: - version "1.3.2" - resolved "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz" - integrity sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw== - dependencies: - chalk "^2.4.1" - coa "^2.0.2" - css-select "^2.0.0" - css-select-base-adapter "^0.1.1" - css-tree "1.0.0-alpha.37" - csso "^4.0.2" - js-yaml "^3.13.1" - mkdirp "~0.5.1" - object.values "^1.1.0" - sax "~1.2.4" - stable "^0.1.8" - unquote "~1.1.1" - util.promisify "~1.0.0" - -svgo@^2.7.0: - version "2.8.0" - resolved "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz" - integrity sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg== - dependencies: - "@trysound/sax" "0.2.0" - commander "^7.2.0" - css-select "^4.1.3" - css-tree "^1.1.3" - csso "^4.2.0" - picocolors "^1.0.0" - stable "^0.1.8" - -symbol-tree@^3.2.4: - version "3.2.4" - resolved "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz" - integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== - -tabbable@^5.3.3: - version "5.3.3" - resolved "https://registry.npmjs.org/tabbable/-/tabbable-5.3.3.tgz" - integrity sha512-QD9qKY3StfbZqWOPLp0++pOrAVb/HbUi5xCc8cUo4XjP19808oaMiDzn0leBY5mCespIBM0CIZePzZjgzR83kA== - table@^6.0.9: version "6.8.1" resolved "https://registry.npmjs.org/table/-/table-6.8.1.tgz" @@ -13863,50 +5943,6 @@ table@^6.0.9: string-width "^4.2.3" strip-ansi "^6.0.1" -tailwindcss@^3.0.2: - version "3.3.2" - resolved "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.2.tgz" - integrity sha512-9jPkMiIBXvPc2KywkraqsUfbfj+dHDb+JPWtSJa9MLFdrPyazI7q6WX2sUrm7R9eVR7qqv3Pas7EvQFzxKnI6w== - dependencies: - "@alloc/quick-lru" "^5.2.0" - arg "^5.0.2" - chokidar "^3.5.3" - didyoumean "^1.2.2" - dlv "^1.1.3" - fast-glob "^3.2.12" - glob-parent "^6.0.2" - is-glob "^4.0.3" - jiti "^1.18.2" - lilconfig "^2.1.0" - micromatch "^4.0.5" - normalize-path "^3.0.0" - object-hash "^3.0.0" - picocolors "^1.0.0" - postcss "^8.4.23" - postcss-import "^15.1.0" - postcss-js "^4.0.1" - postcss-load-config "^4.0.1" - postcss-nested "^6.0.1" - postcss-selector-parser "^6.0.11" - postcss-value-parser "^4.2.0" - resolve "^1.22.2" - sucrase "^3.32.0" - -tapable@^1.0.0: - version "1.1.3" - resolved "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz" - integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== - -tapable@^2.0.0, tapable@^2.1.1, tapable@^2.2.0: - version "2.2.1" - resolved "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz" - integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== - -temp-dir@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz" - integrity sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg== - temp@^0.9.4: version "0.9.4" resolved "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz" @@ -13915,16 +5951,6 @@ temp@^0.9.4: mkdirp "^0.5.1" rimraf "~2.6.2" -tempy@^0.6.0: - version "0.6.0" - resolved "https://registry.npmjs.org/tempy/-/tempy-0.6.0.tgz" - integrity sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw== - dependencies: - is-stream "^2.0.0" - temp-dir "^2.0.0" - type-fest "^0.16.0" - unique-string "^2.0.0" - term-size@^1.2.0: version "1.2.0" resolved "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz" @@ -13932,72 +5958,11 @@ term-size@^1.2.0: dependencies: execa "^0.7.0" -terminal-link@^2.0.0: - version "2.1.1" - resolved "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz" - integrity sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ== - dependencies: - ansi-escapes "^4.2.1" - supports-hyperlinks "^2.0.0" - -terminal-paginator@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/terminal-paginator/-/terminal-paginator-2.0.2.tgz#967e66056f28fe8f55ba7c1eebfb7c3ef371c1d3" - integrity sha512-IZMT5ECF9p4s+sNCV8uvZSW9E1+9zy9Ji9xz2oee8Jfo7hUFpauyjxkhfRcIH6Lu3Wdepv5D1kVRc8Hx74/LfQ== - dependencies: - debug "^2.6.6" - extend-shallow "^2.0.1" - log-utils "^0.2.1" - -terser-webpack-plugin@^5.2.5, terser-webpack-plugin@^5.3.7: - version "5.3.9" - resolved "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz" - integrity sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA== - dependencies: - "@jridgewell/trace-mapping" "^0.3.17" - jest-worker "^27.4.5" - schema-utils "^3.1.1" - serialize-javascript "^6.0.1" - terser "^5.16.8" - -terser@^5.0.0, terser@^5.10.0, terser@^5.16.8: - version "5.17.7" - resolved "https://registry.npmjs.org/terser/-/terser-5.17.7.tgz" - integrity sha512-/bi0Zm2C6VAexlGgLlVxA0P2lru/sdLyfCVaRMfKVo9nWxbmz7f/sD8VPybPeSUJaJcwmCJis9pBIhcVcG1QcQ== - dependencies: - "@jridgewell/source-map" "^0.3.3" - acorn "^8.8.2" - commander "^2.20.0" - source-map-support "~0.5.20" - -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" - text-table@^0.2.0: version "0.2.0" resolved "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== -thenify-all@^1.0.0: - version "1.6.0" - resolved "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz" - integrity sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA== - dependencies: - thenify ">= 3.1.0 < 4" - -"thenify@>= 3.1.0 < 4": - version "3.3.1" - resolved "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz" - integrity sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw== - dependencies: - any-promise "^1.0.0" - thread-stream@^0.15.1: version "0.15.2" resolved "https://registry.npmjs.org/thread-stream/-/thread-stream-0.15.2.tgz" @@ -14005,53 +5970,11 @@ thread-stream@^0.15.1: dependencies: real-require "^0.1.0" -throat@^6.0.1: - version "6.0.2" - resolved "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz" - integrity sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ== - through@^2.3.8: version "2.3.8" resolved "https://registry.npmjs.org/through/-/through-2.3.8.tgz" integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== -thunky@^1.0.2: - version "1.1.0" - resolved "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz" - integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA== - -time-stamp@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3" - integrity sha512-gLCeArryy2yNTRzTGKbZbloctj64jkZ57hj5zdraXue6aFgd6PmvVtEyiUU+hvU0v7q08oVv8r8ev0tRo6bvgw== - -tiny-invariant@^1.0.2: - version "1.3.1" - resolved "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz" - integrity sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw== - -tiny-warning@^1.0.0, tiny-warning@^1.0.2: - version "1.0.3" - resolved "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz" - integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA== - -tmpl@1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz" - integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== - -to-fast-properties@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz" - integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg== - dependencies: - kind-of "^3.0.2" - to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz" @@ -14059,13 +5982,6 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -toggle-array@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/toggle-array/-/toggle-array-1.0.1.tgz#cbf5840792bd5097f33117ae824c932affe87d58" - integrity sha512-TZXgboKpD5Iu0Goi8hRXuJpE06Pbo+bies4I4jnTBhlRRgyen9c37nMylnquK/ZPKXXOeh1mJ14p9QdKp+9v7A== - dependencies: - isobject "^3.0.0" - toidentifier@1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz" @@ -14091,30 +6007,6 @@ tough-cookie@^2.3.3, tough-cookie@~2.5.0: psl "^1.1.28" punycode "^2.1.1" -tough-cookie@^4.0.0: - version "4.1.2" - resolved "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz" - integrity sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ== - dependencies: - psl "^1.1.33" - punycode "^2.1.1" - universalify "^0.2.0" - url-parse "^1.5.3" - -tr46@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz" - integrity sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA== - dependencies: - punycode "^2.1.0" - -tr46@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz" - integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== - dependencies: - punycode "^2.1.1" - tr46@~0.0.3: version "0.0.3" resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" @@ -14125,26 +6017,11 @@ tree-kill@^1.2.2: resolved "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz" integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== -trim-lines@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz" - integrity sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg== - trough@^2.0.0: version "2.1.0" resolved "https://registry.npmjs.org/trough/-/trough-2.1.0.tgz" integrity sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g== -tryer@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz" - integrity sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA== - -ts-interface-checker@^0.1.9: - version "0.1.13" - resolved "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz" - integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA== - ts-node@^10.7.0: version "10.9.1" resolved "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz" @@ -14164,37 +6041,16 @@ ts-node@^10.7.0: v8-compile-cache-lib "^3.0.1" yn "3.1.1" -tsconfig-paths@^3.14.1: - version "3.14.2" - resolved "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz" - integrity sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g== - dependencies: - "@types/json5" "^0.0.29" - json5 "^1.0.2" - minimist "^1.2.6" - strip-bom "^3.0.0" - -tslib@1.14.1, tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0: +tslib@1.14.1, tslib@^1.8.1, tslib@^1.9.0: version "1.14.1" resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.3, tslib@^2.1.0: +tslib@^2.1.0: version "2.5.2" resolved "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz" integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA== -tspath@^2.6.8: - version "2.6.8" - resolved "https://registry.yarnpkg.com/tspath/-/tspath-2.6.8.tgz#38ba5364a85129ddaa214310a5ec8124e0adafe0" - integrity sha512-O6kgyxtPXbLT+k9uxIvTXvfnDtgID4/f+8kpVpKkp4RYqr+d60Bow45xyOf47Z1ggPUjq0JwE04uzXAEAsZ1NA== - dependencies: - escodegen "^2.0.0" - espree "^9.4.0" - prompt-confirm "^1.2.0" - typescript "^4.4.2" - yargs "^11.0.0" - tsutils@^3.21.0: version "3.21.0" resolved "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz" @@ -14221,23 +6077,6 @@ type-check@^0.4.0, type-check@~0.4.0: dependencies: prelude-ls "^1.2.1" -type-check@~0.3.2: - version "0.3.2" - resolved "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz" - integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== - dependencies: - prelude-ls "~1.1.2" - -type-detect@4.0.8: - version "4.0.8" - resolved "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz" - integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== - -type-fest@^0.16.0: - version "0.16.0" - resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz" - integrity sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg== - type-fest@^0.20.2: version "0.20.2" resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz" @@ -14265,23 +6104,11 @@ typed-array-length@^1.0.4: for-each "^0.3.3" is-typed-array "^1.1.9" -typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz" - integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== - dependencies: - is-typedarray "^1.0.0" - typedarray-to-buffer@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-4.0.0.tgz" integrity sha512-6dOYeZfS3O9RtRD1caom0sMxgK59b27+IwoNy8RDPsmslSGOyU+mpTamlaIW7aNKi90ZQZ9DFaZL3YRoiSCULQ== -typescript@^4.4.2: - version "4.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== - typescript@^5.0.4: version "5.1.3" resolved "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz" @@ -14309,29 +6136,6 @@ undefsafe@^2.0.5: resolved "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz" integrity sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA== -unicode-canonical-property-names-ecmascript@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz" - integrity sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ== - -unicode-match-property-ecmascript@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz" - integrity sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q== - dependencies: - unicode-canonical-property-names-ecmascript "^2.0.0" - unicode-property-aliases-ecmascript "^2.0.0" - -unicode-match-property-value-ecmascript@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz" - integrity sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA== - -unicode-property-aliases-ecmascript@^2.0.0: - version "2.1.0" - resolved "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz" - integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== - unified@^10.0.0: version "10.1.2" resolved "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz" @@ -14345,18 +6149,6 @@ unified@^10.0.0: trough "^2.0.0" vfile "^5.0.0" -unique-string@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz" - integrity sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg== - dependencies: - crypto-random-string "^2.0.0" - -unist-util-generated@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-2.0.1.tgz" - integrity sha512-qF72kLmPxAw0oN2fwpWIqbXAVyEqUzDHMsbtPvOudIlUzXYFIeQIuxXQCRCFh22B7cixvU0MG7m3MW8FTq/S+A== - unist-util-is@^5.0.0: version "5.2.1" resolved "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz" @@ -14395,39 +6187,11 @@ unist-util-visit@^4.0.0: unist-util-is "^5.0.0" unist-util-visit-parents "^5.1.1" -universalify@^0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz" - integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== - -universalify@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz" - integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== - -unload@2.2.0: - version "2.2.0" - resolved "https://registry.npmjs.org/unload/-/unload-2.2.0.tgz" - integrity sha512-B60uB5TNBLtN6/LsgAf3udH9saB5p7gqJwcFfbOEZ8BcBHnGwCf6G/TGiEqkRAxX7zAFIUtzdrXQSdL3Q/wqNA== - dependencies: - "@babel/runtime" "^7.6.2" - detect-node "^2.0.4" - unpipe@1.0.0, unpipe@~1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== -unquote@~1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz" - integrity sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg== - -upath@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz" - integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg== - update-browserslist-db@^1.0.11: version "1.0.11" resolved "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz" @@ -14451,14 +6215,6 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" -url-parse@^1.5.3: - version "1.5.10" - resolved "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz" - integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== - dependencies: - querystringify "^2.1.1" - requires-port "^1.0.0" - url@^0.11.0: version "0.11.0" resolved "https://registry.npmjs.org/url/-/url-0.11.0.tgz" @@ -14467,38 +6223,11 @@ url@^0.11.0: punycode "1.3.2" querystring "0.2.0" -use-isomorphic-layout-effect@^1.0.0: - version "1.1.2" - resolved "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz" - integrity sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA== - -use-subscription@^1.3.0: - version "1.8.0" - resolved "https://registry.npmjs.org/use-subscription/-/use-subscription-1.8.0.tgz" - integrity sha512-LISuG0/TmmoDoCRmV5XAqYkd3UCBNM0ML3gGBndze65WITcsExCD3DTvXXTLyNcOC0heFQZzluW88bN/oC1DQQ== - dependencies: - use-sync-external-store "^1.2.0" - -use-sync-external-store@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz" - integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== - -util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: +util-deprecate@^1.0.1: version "1.0.2" resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== -util.promisify@~1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.1.tgz" - integrity sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA== - dependencies: - define-properties "^1.1.3" - es-abstract "^1.17.2" - has-symbols "^1.0.1" - object.getownpropertydescriptors "^2.1.0" - util@^0.12.0, util@^0.12.5: version "0.12.5" resolved "https://registry.npmjs.org/util/-/util-0.12.5.tgz" @@ -14510,11 +6239,6 @@ util@^0.12.0, util@^0.12.5: is-typed-array "^1.1.3" which-typed-array "^1.1.2" -utila@~0.4: - version "0.4.0" - resolved "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz" - integrity sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA== - utils-merge@1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz" @@ -14525,11 +6249,6 @@ uuid@^3.3.2: resolved "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== -uuid@^8.3.2: - version "8.3.2" - resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz" - integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== - uvu@^0.5.0: version "0.5.6" resolved "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz" @@ -14550,20 +6269,6 @@ v8-compile-cache@^2.0.3: resolved "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz" integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== -v8-to-istanbul@^8.1.0: - version "8.1.1" - resolved "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz" - integrity sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^1.6.0" - source-map "^0.7.3" - -value-equal@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz" - integrity sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw== - vary@^1, vary@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" @@ -14604,54 +6309,6 @@ vfile@^5.0.0: unist-util-stringify-position "^3.0.0" vfile-message "^3.0.0" -w3c-hr-time@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz" - integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== - dependencies: - browser-process-hrtime "^1.0.0" - -w3c-xmlserializer@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz" - integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== - dependencies: - xml-name-validator "^3.0.0" - -walker@^1.0.7: - version "1.0.8" - resolved "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz" - integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== - dependencies: - makeerror "1.0.12" - -warning-symbol@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/warning-symbol/-/warning-symbol-0.1.0.tgz#bb31dd11b7a0f9d67ab2ed95f457b65825bbad21" - integrity sha512-1S0lwbHo3kNUKA4VomBAhqn4DPjQkIKSdbOin5K7EFUQNwyIKx+wZMGXKI53RUjla8V2B8ouQduUlgtx8LoSMw== - -warning@^4.0.3: - version "4.0.3" - resolved "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz" - integrity sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w== - dependencies: - loose-envify "^1.0.0" - -watchpack@^2.4.0: - version "2.4.0" - resolved "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz" - integrity sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg== - dependencies: - glob-to-regexp "^0.4.1" - graceful-fs "^4.1.2" - -wbuf@^1.1.0, wbuf@^1.7.3: - version "1.7.3" - resolved "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz" - integrity sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA== - dependencies: - minimalistic-assert "^1.0.0" - web-namespaces@^2.0.0: version "2.0.1" resolved "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz" @@ -14662,76 +6319,6 @@ webidl-conversions@^3.0.0: resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== -webidl-conversions@^4.0.2: - version "4.0.2" - resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz" - integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== - -webidl-conversions@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz" - integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== - -webidl-conversions@^6.1.0: - version "6.1.0" - resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz" - integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== - -webpack-dev-middleware@^5.3.1: - version "5.3.3" - resolved "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz" - integrity sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA== - dependencies: - colorette "^2.0.10" - memfs "^3.4.3" - mime-types "^2.1.31" - range-parser "^1.2.1" - schema-utils "^4.0.0" - -webpack-dev-server@^4.6.0: - version "4.15.0" - resolved "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.0.tgz" - integrity sha512-HmNB5QeSl1KpulTBQ8UT4FPrByYyaLxpJoQ0+s7EvUrMc16m0ZS1sgb1XGqzmgCPk0c9y+aaXxn11tbLzuM7NQ== - dependencies: - "@types/bonjour" "^3.5.9" - "@types/connect-history-api-fallback" "^1.3.5" - "@types/express" "^4.17.13" - "@types/serve-index" "^1.9.1" - "@types/serve-static" "^1.13.10" - "@types/sockjs" "^0.3.33" - "@types/ws" "^8.5.1" - ansi-html-community "^0.0.8" - bonjour-service "^1.0.11" - chokidar "^3.5.3" - colorette "^2.0.10" - compression "^1.7.4" - connect-history-api-fallback "^2.0.0" - default-gateway "^6.0.3" - express "^4.17.3" - graceful-fs "^4.2.6" - html-entities "^2.3.2" - http-proxy-middleware "^2.0.3" - ipaddr.js "^2.0.1" - launch-editor "^2.6.0" - open "^8.0.9" - p-retry "^4.5.0" - rimraf "^3.0.2" - schema-utils "^4.0.0" - selfsigned "^2.1.1" - serve-index "^1.9.1" - sockjs "^0.3.24" - spdy "^4.0.2" - webpack-dev-middleware "^5.3.1" - ws "^8.13.0" - -webpack-manifest-plugin@^4.0.2: - version "4.1.1" - resolved "https://registry.npmjs.org/webpack-manifest-plugin/-/webpack-manifest-plugin-4.1.1.tgz" - integrity sha512-YXUAwxtfKIJIKkhg03MKuiFAD72PlrqCiwdwO4VEXdRO5V0ORCNwaOwAZawPZalCbmH9kBDmXnNeQOw+BIEiow== - dependencies: - tapable "^2.0.0" - webpack-sources "^2.2.0" - webpack-merge@^5.8.0: version "5.9.0" resolved "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz" @@ -14740,88 +6327,6 @@ webpack-merge@^5.8.0: clone-deep "^4.0.1" wildcard "^2.0.0" -webpack-sources@^1.4.3: - version "1.4.3" - resolved "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz" - integrity sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ== - dependencies: - source-list-map "^2.0.0" - source-map "~0.6.1" - -webpack-sources@^2.2.0: - version "2.3.1" - resolved "https://registry.npmjs.org/webpack-sources/-/webpack-sources-2.3.1.tgz" - integrity sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA== - dependencies: - source-list-map "^2.0.1" - source-map "^0.6.1" - -webpack-sources@^3.2.3: - version "3.2.3" - resolved "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz" - integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== - -webpack@^5.64.4: - version "5.85.0" - resolved "https://registry.npmjs.org/webpack/-/webpack-5.85.0.tgz" - integrity sha512-7gazTiYqwo5OSqwH1tigLDL2r3qDeP2dOKYgd+LlXpsUMqDTklg6tOghexqky0/+6QY38kb/R/uRPUleuL43zg== - dependencies: - "@types/eslint-scope" "^3.7.3" - "@types/estree" "^1.0.0" - "@webassemblyjs/ast" "^1.11.5" - "@webassemblyjs/wasm-edit" "^1.11.5" - "@webassemblyjs/wasm-parser" "^1.11.5" - acorn "^8.7.1" - acorn-import-assertions "^1.9.0" - browserslist "^4.14.5" - chrome-trace-event "^1.0.2" - enhanced-resolve "^5.14.1" - es-module-lexer "^1.2.1" - eslint-scope "5.1.1" - events "^3.2.0" - glob-to-regexp "^0.4.1" - graceful-fs "^4.2.9" - json-parse-even-better-errors "^2.3.1" - loader-runner "^4.2.0" - mime-types "^2.1.27" - neo-async "^2.6.2" - schema-utils "^3.1.2" - tapable "^2.1.1" - terser-webpack-plugin "^5.3.7" - watchpack "^2.4.0" - webpack-sources "^3.2.3" - -websocket-driver@>=0.5.1, websocket-driver@^0.7.4: - version "0.7.4" - resolved "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz" - integrity sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg== - dependencies: - http-parser-js ">=0.5.1" - safe-buffer ">=5.1.0" - websocket-extensions ">=0.1.1" - -websocket-extensions@>=0.1.1: - version "0.1.4" - resolved "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz" - integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg== - -whatwg-encoding@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz" - integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== - dependencies: - iconv-lite "0.4.24" - -whatwg-fetch@^3.6.2: - version "3.6.2" - resolved "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz" - integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== - -whatwg-mimetype@^2.3.0: - version "2.3.0" - resolved "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz" - integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== - whatwg-url@^5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" @@ -14830,24 +6335,6 @@ whatwg-url@^5.0.0: tr46 "~0.0.3" webidl-conversions "^3.0.0" -whatwg-url@^7.0.0: - version "7.1.0" - resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz" - integrity sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg== - dependencies: - lodash.sortby "^4.7.0" - tr46 "^1.0.1" - webidl-conversions "^4.0.2" - -whatwg-url@^8.0.0, whatwg-url@^8.5.0: - version "8.7.0" - resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz" - integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg== - dependencies: - lodash "^4.7.0" - tr46 "^2.1.0" - webidl-conversions "^6.1.0" - which-boxed-primitive@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz" @@ -14859,21 +6346,6 @@ which-boxed-primitive@^1.0.2: is-string "^1.0.5" is-symbol "^1.0.3" -which-collection@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz" - integrity sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A== - dependencies: - is-map "^2.0.1" - is-set "^2.0.1" - is-weakmap "^2.0.1" - is-weakset "^2.0.1" - -which-module@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.1.tgz#776b1fe35d90aebe99e8ac15eb24093389a4a409" - integrity sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ== - which-typed-array@^1.1.2, which-typed-array@^1.1.9: version "1.1.9" resolved "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz" @@ -14886,7 +6358,7 @@ which-typed-array@^1.1.2, which-typed-array@^1.1.9: has-tostringtag "^1.0.0" is-typed-array "^1.1.10" -which@^1.2.9, which@^1.3.1: +which@^1.2.9: version "1.3.1" resolved "https://registry.npmjs.org/which/-/which-1.3.1.tgz" integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== @@ -14912,196 +6384,11 @@ wildcard@^2.0.0: resolved "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz" integrity sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ== -window-size@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/window-size/-/window-size-1.1.1.tgz#9858586580ada78ab26ecd6978a6e03115c1af20" - integrity sha512-5D/9vujkmVQ7pSmc0SCBmHXbkv6eaHwXEx65MywhmUMsI8sGqJ972APq1lotfcwMKPFLuCFfL8xGHLIp7jaBmA== - dependencies: - define-property "^1.0.0" - is-number "^3.0.0" - -word-wrap@^1.2.3, word-wrap@~1.2.3: +word-wrap@^1.2.3: version "1.2.3" resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz" integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== -workbox-background-sync@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-background-sync/-/workbox-background-sync-6.6.1.tgz" - integrity sha512-trJd3ovpWCvzu4sW0E8rV3FUyIcC0W8G+AZ+VcqzzA890AsWZlUGOTSxIMmIHVusUw/FDq1HFWfy/kC/WTRqSg== - dependencies: - idb "^7.0.1" - workbox-core "6.6.1" - -workbox-broadcast-update@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-broadcast-update/-/workbox-broadcast-update-6.6.1.tgz" - integrity sha512-fBhffRdaANdeQ1V8s692R9l/gzvjjRtydBOvR6WCSB0BNE2BacA29Z4r9/RHd9KaXCPl6JTdI9q0bR25YKP8TQ== - dependencies: - workbox-core "6.6.1" - -workbox-build@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-build/-/workbox-build-6.6.1.tgz" - integrity sha512-INPgDx6aRycAugUixbKgiEQBWD0MPZqU5r0jyr24CehvNuLPSXp/wGOpdRJmts656lNiXwqV7dC2nzyrzWEDnw== - dependencies: - "@apideck/better-ajv-errors" "^0.3.1" - "@babel/core" "^7.11.1" - "@babel/preset-env" "^7.11.0" - "@babel/runtime" "^7.11.2" - "@rollup/plugin-babel" "^5.2.0" - "@rollup/plugin-node-resolve" "^11.2.1" - "@rollup/plugin-replace" "^2.4.1" - "@surma/rollup-plugin-off-main-thread" "^2.2.3" - ajv "^8.6.0" - common-tags "^1.8.0" - fast-json-stable-stringify "^2.1.0" - fs-extra "^9.0.1" - glob "^7.1.6" - lodash "^4.17.20" - pretty-bytes "^5.3.0" - rollup "^2.43.1" - rollup-plugin-terser "^7.0.0" - source-map "^0.8.0-beta.0" - stringify-object "^3.3.0" - strip-comments "^2.0.1" - tempy "^0.6.0" - upath "^1.2.0" - workbox-background-sync "6.6.1" - workbox-broadcast-update "6.6.1" - workbox-cacheable-response "6.6.1" - workbox-core "6.6.1" - workbox-expiration "6.6.1" - workbox-google-analytics "6.6.1" - workbox-navigation-preload "6.6.1" - workbox-precaching "6.6.1" - workbox-range-requests "6.6.1" - workbox-recipes "6.6.1" - workbox-routing "6.6.1" - workbox-strategies "6.6.1" - workbox-streams "6.6.1" - workbox-sw "6.6.1" - workbox-window "6.6.1" - -workbox-cacheable-response@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-cacheable-response/-/workbox-cacheable-response-6.6.1.tgz" - integrity sha512-85LY4veT2CnTCDxaVG7ft3NKaFbH6i4urZXgLiU4AiwvKqS2ChL6/eILiGRYXfZ6gAwDnh5RkuDbr/GMS4KSag== - dependencies: - workbox-core "6.6.1" - -workbox-core@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-core/-/workbox-core-6.6.1.tgz" - integrity sha512-ZrGBXjjaJLqzVothoE12qTbVnOAjFrHDXpZe7coCb6q65qI/59rDLwuFMO4PcZ7jcbxY+0+NhUVztzR/CbjEFw== - -workbox-expiration@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-expiration/-/workbox-expiration-6.6.1.tgz" - integrity sha512-qFiNeeINndiOxaCrd2DeL1Xh1RFug3JonzjxUHc5WkvkD2u5abY3gZL1xSUNt3vZKsFFGGORItSjVTVnWAZO4A== - dependencies: - idb "^7.0.1" - workbox-core "6.6.1" - -workbox-google-analytics@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-google-analytics/-/workbox-google-analytics-6.6.1.tgz" - integrity sha512-1TjSvbFSLmkpqLcBsF7FuGqqeDsf+uAXO/pjiINQKg3b1GN0nBngnxLcXDYo1n/XxK4N7RaRrpRlkwjY/3ocuA== - dependencies: - workbox-background-sync "6.6.1" - workbox-core "6.6.1" - workbox-routing "6.6.1" - workbox-strategies "6.6.1" - -workbox-navigation-preload@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-navigation-preload/-/workbox-navigation-preload-6.6.1.tgz" - integrity sha512-DQCZowCecO+wRoIxJI2V6bXWK6/53ff+hEXLGlQL4Rp9ZaPDLrgV/32nxwWIP7QpWDkVEtllTAK5h6cnhxNxDA== - dependencies: - workbox-core "6.6.1" - -workbox-precaching@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-precaching/-/workbox-precaching-6.6.1.tgz" - integrity sha512-K4znSJ7IKxCnCYEdhNkMr7X1kNh8cz+mFgx9v5jFdz1MfI84pq8C2zG+oAoeE5kFrUf7YkT5x4uLWBNg0DVZ5A== - dependencies: - workbox-core "6.6.1" - workbox-routing "6.6.1" - workbox-strategies "6.6.1" - -workbox-range-requests@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-range-requests/-/workbox-range-requests-6.6.1.tgz" - integrity sha512-4BDzk28govqzg2ZpX0IFkthdRmCKgAKreontYRC5YsAPB2jDtPNxqx3WtTXgHw1NZalXpcH/E4LqUa9+2xbv1g== - dependencies: - workbox-core "6.6.1" - -workbox-recipes@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-recipes/-/workbox-recipes-6.6.1.tgz" - integrity sha512-/oy8vCSzromXokDA+X+VgpeZJvtuf8SkQ8KL0xmRivMgJZrjwM3c2tpKTJn6PZA6TsbxGs3Sc7KwMoZVamcV2g== - dependencies: - workbox-cacheable-response "6.6.1" - workbox-core "6.6.1" - workbox-expiration "6.6.1" - workbox-precaching "6.6.1" - workbox-routing "6.6.1" - workbox-strategies "6.6.1" - -workbox-routing@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-routing/-/workbox-routing-6.6.1.tgz" - integrity sha512-j4ohlQvfpVdoR8vDYxTY9rA9VvxTHogkIDwGdJ+rb2VRZQ5vt1CWwUUZBeD/WGFAni12jD1HlMXvJ8JS7aBWTg== - dependencies: - workbox-core "6.6.1" - -workbox-strategies@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-strategies/-/workbox-strategies-6.6.1.tgz" - integrity sha512-WQLXkRnsk4L81fVPkkgon1rZNxnpdO5LsO+ws7tYBC6QQQFJVI6v98klrJEjFtZwzw/mB/HT5yVp7CcX0O+mrw== - dependencies: - workbox-core "6.6.1" - -workbox-streams@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-streams/-/workbox-streams-6.6.1.tgz" - integrity sha512-maKG65FUq9e4BLotSKWSTzeF0sgctQdYyTMq529piEN24Dlu9b6WhrAfRpHdCncRS89Zi2QVpW5V33NX8PgH3Q== - dependencies: - workbox-core "6.6.1" - workbox-routing "6.6.1" - -workbox-sw@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-sw/-/workbox-sw-6.6.1.tgz" - integrity sha512-R7whwjvU2abHH/lR6kQTTXLHDFU2izht9kJOvBRYK65FbwutT4VvnUAJIgHvfWZ/fokrOPhfoWYoPCMpSgUKHQ== - -workbox-webpack-plugin@^6.4.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-webpack-plugin/-/workbox-webpack-plugin-6.6.1.tgz" - integrity sha512-zpZ+ExFj9NmiI66cFEApyjk7hGsfJ1YMOaLXGXBoZf0v7Iu6hL0ZBe+83mnDq3YYWAfA3fnyFejritjOHkFcrA== - dependencies: - fast-json-stable-stringify "^2.1.0" - pretty-bytes "^5.4.1" - upath "^1.2.0" - webpack-sources "^1.4.3" - workbox-build "6.6.1" - -workbox-window@6.6.1: - version "6.6.1" - resolved "https://registry.npmjs.org/workbox-window/-/workbox-window-6.6.1.tgz" - integrity sha512-wil4nwOY58nTdCvif/KEZjQ2NP8uk3gGeRNy2jPBbzypU4BT4D9L8xiwbmDBpZlSgJd2xsT9FvSNU0gsxV51JQ== - dependencies: - "@types/trusted-types" "^2.0.2" - workbox-core "6.6.1" - -wrap-ansi@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" - integrity sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw== - dependencies: - string-width "^1.0.1" - strip-ansi "^3.0.1" - wrap-ansi@^6.2.0: version "6.2.0" resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz" @@ -15125,16 +6412,6 @@ wrappy@1: resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== -write-file-atomic@^3.0.0: - version "3.0.3" - resolved "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz" - integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== - dependencies: - imurmurhash "^0.1.4" - is-typedarray "^1.0.0" - signal-exit "^3.0.2" - typedarray-to-buffer "^3.1.5" - ws@^6.0.0: version "6.2.2" resolved "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz" @@ -15142,41 +6419,16 @@ ws@^6.0.0: dependencies: async-limiter "~1.0.0" -ws@^7.4.6, ws@^7.5.1: +ws@^7.5.1: version "7.5.9" resolved "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz" integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== -ws@^8.13.0: - version "8.13.0" - resolved "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz" - integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA== - -xml-name-validator@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz" - integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== - -xmlchars@^2.2.0: - version "2.2.0" - resolved "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz" - integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== - -xstate@^4.15.1: - version "4.37.2" - resolved "https://registry.npmjs.org/xstate/-/xstate-4.37.2.tgz" - integrity sha512-Qm337O49CRTZ3PRyRuK6b+kvI+D3JGxXIZCTul+xEsyFCVkTFDt5jixaL1nBWcUBcaTQ9um/5CRGVItPi7fveg== - xtend@^4.0.2: version "4.0.2" resolved "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== -y18n@^3.2.1: - version "3.2.2" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.2.tgz#85c901bd6470ce71fc4bb723ad209b70f7f28696" - integrity sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ== - y18n@^5.0.5: version "5.0.8" resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" @@ -15187,22 +6439,17 @@ yallist@^2.1.2: resolved "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz" integrity sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A== -yallist@^3.0.2: - version "3.1.1" - resolved "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz" - integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== - yallist@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yaml@^1.10.0, yaml@^1.10.2, yaml@^1.7.2: +yaml@^1.10.0: version "1.10.2" resolved "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz" integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== -yaml@^2.1.1, yaml@^2.2.2: +yaml@^2.2.2: version "2.3.1" resolved "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz" integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ== @@ -15217,31 +6464,6 @@ yargs-parser@^21.1.1: resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== -yargs-parser@^9.0.2: - version "9.0.2" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-9.0.2.tgz#9ccf6a43460fe4ed40a9bb68f48d43b8a68cc077" - integrity sha512-CswCfdOgCr4MMsT1GzbEJ7Z2uYudWyrGX8Bgh/0eyCzj/DXWdKq6a/ADufkzI1WAOIW6jYaXJvRyLhDO0kfqBw== - dependencies: - camelcase "^4.1.0" - -yargs@^11.0.0: - version "11.1.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.1.1.tgz#5052efe3446a4df5ed669c995886cc0f13702766" - integrity sha512-PRU7gJrJaXv3q3yQZ/+/X6KBswZiaQ+zOmdprZcouPYtQgvNU35i+68M4b1ZHLZtYFT5QObFLV+ZkmJYcwKdiw== - dependencies: - cliui "^4.0.0" - decamelize "^1.1.1" - find-up "^2.1.0" - get-caller-file "^1.0.1" - os-locale "^3.1.0" - require-directory "^2.1.1" - require-main-filename "^1.0.1" - set-blocking "^2.0.0" - string-width "^2.0.0" - which-module "^2.0.0" - y18n "^3.2.1" - yargs-parser "^9.0.2" - yargs@^16.2.0: version "16.2.0" resolved "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" @@ -15273,11 +6495,6 @@ yn@3.1.1: resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz" integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== - yup@^0.32.9: version "0.32.11" resolved "https://registry.npmjs.org/yup/-/yup-0.32.11.tgz"