@ixo/editor 6.33.0 → 6.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BidConfig-YLGSEIOS.js +154 -0
- package/dist/BidConfig-YLGSEIOS.js.map +1 -0
- package/dist/BidFlowDetail-TJCJBJZZ.js +365 -0
- package/dist/BidFlowDetail-TJCJBJZZ.js.map +1 -0
- package/dist/CalendarEventCreateConfig-J2LU6LJO.js +155 -0
- package/dist/CalendarEventCreateConfig-J2LU6LJO.js.map +1 -0
- package/dist/CalendarEventCreateFlowDetail-ZWHZWDOK.js +174 -0
- package/dist/CalendarEventCreateFlowDetail-ZWHZWDOK.js.map +1 -0
- package/dist/CalendarEventListConfig-GQNNF4ZB.js +116 -0
- package/dist/CalendarEventListConfig-GQNNF4ZB.js.map +1 -0
- package/dist/CalendarEventListFlowDetail-SSRTOXIX.js +58 -0
- package/dist/CalendarEventListFlowDetail-SSRTOXIX.js.map +1 -0
- package/dist/CalendarEventUpdateConfig-KACZA6GH.js +133 -0
- package/dist/CalendarEventUpdateConfig-KACZA6GH.js.map +1 -0
- package/dist/CalendarEventUpdateFlowDetail-CD6NHHOU.js +155 -0
- package/dist/CalendarEventUpdateFlowDetail-CD6NHHOU.js.map +1 -0
- package/dist/ClaimConfig-3HKPGK55.js +200 -0
- package/dist/ClaimConfig-3HKPGK55.js.map +1 -0
- package/dist/ClaimFlowDetail-UVEQMEI5.js +641 -0
- package/dist/ClaimFlowDetail-UVEQMEI5.js.map +1 -0
- package/dist/CollectionLifecycleConfig-LCCGZ3CJ.js +149 -0
- package/dist/CollectionLifecycleConfig-LCCGZ3CJ.js.map +1 -0
- package/dist/CollectionLifecycleFlowDetail-WFCSVIIG.js +647 -0
- package/dist/CollectionLifecycleFlowDetail-WFCSVIIG.js.map +1 -0
- package/dist/CollectionUsersConfig-RI2X3YY2.js +271 -0
- package/dist/CollectionUsersConfig-RI2X3YY2.js.map +1 -0
- package/dist/CollectionUsersFlowDetail-ZLCJBWHG.js +1276 -0
- package/dist/CollectionUsersFlowDetail-ZLCJBWHG.js.map +1 -0
- package/dist/CredentialStoreConfig-G66AQDGZ.js +75 -0
- package/dist/CredentialStoreConfig-G66AQDGZ.js.map +1 -0
- package/dist/CredentialStoreFlowDetail-FL7QAM3S.js +99 -0
- package/dist/CredentialStoreFlowDetail-FL7QAM3S.js.map +1 -0
- package/dist/DesignPodConfig-LJ7H2CZ6.js +8 -0
- package/dist/DesignPodConfig-LJ7H2CZ6.js.map +1 -0
- package/dist/DesignPodFlowDetail-JHJWGNVY.js +309 -0
- package/dist/DesignPodFlowDetail-JHJWGNVY.js.map +1 -0
- package/dist/DomainCardPreviewConfig-Q3X5M4WF.js +37 -0
- package/dist/DomainCardPreviewConfig-Q3X5M4WF.js.map +1 -0
- package/dist/DomainCardPreviewFlowDetail-Y2FE7O5Z.js +131 -0
- package/dist/DomainCardPreviewFlowDetail-Y2FE7O5Z.js.map +1 -0
- package/dist/DomainIndexerLookupConfig-N4VONQUY.js +41 -0
- package/dist/DomainIndexerLookupConfig-N4VONQUY.js.map +1 -0
- package/dist/DomainIndexerLookupFlowDetail-GJ7WWK7I.js +70 -0
- package/dist/DomainIndexerLookupFlowDetail-GJ7WWK7I.js.map +1 -0
- package/dist/DomainSignConfig-XFIXROVK.js +47 -0
- package/dist/DomainSignConfig-XFIXROVK.js.map +1 -0
- package/dist/DomainSignFlowDetail-BXZ6JBPR.js +206 -0
- package/dist/DomainSignFlowDetail-BXZ6JBPR.js.map +1 -0
- package/dist/DomainSingleSelectionConfig-ZNKIXB4P.js +101 -0
- package/dist/DomainSingleSelectionConfig-ZNKIXB4P.js.map +1 -0
- package/dist/DomainSingleSelectionFlowDetail-HWTQXSLA.js +147 -0
- package/dist/DomainSingleSelectionFlowDetail-HWTQXSLA.js.map +1 -0
- package/dist/EmailSendConfig-YEGZ5Q77.js +215 -0
- package/dist/EmailSendConfig-YEGZ5Q77.js.map +1 -0
- package/dist/EntityCreateOracleConfig-UZ6ZIMP5.js +150 -0
- package/dist/EntityCreateOracleConfig-UZ6ZIMP5.js.map +1 -0
- package/dist/EntityCreateOracleFlowDetail-H2X7CPYU.js +120 -0
- package/dist/EntityCreateOracleFlowDetail-H2X7CPYU.js.map +1 -0
- package/dist/EntitySingleSelectionConfig-DL57KNKM.js +30 -0
- package/dist/EntitySingleSelectionConfig-DL57KNKM.js.map +1 -0
- package/dist/EntitySingleSelectionFlowDetail-GFQGX3GA.js +118 -0
- package/dist/EntitySingleSelectionFlowDetail-GFQGX3GA.js.map +1 -0
- package/dist/EntityTransferConfig-JVZ3H35B.js +62 -0
- package/dist/EntityTransferConfig-JVZ3H35B.js.map +1 -0
- package/dist/EntityTransferFlowDetail-XEXM34XB.js +132 -0
- package/dist/EntityTransferFlowDetail-XEXM34XB.js.map +1 -0
- package/dist/EvalEngineConfig-CHC4IRN3.js +464 -0
- package/dist/EvalEngineConfig-CHC4IRN3.js.map +1 -0
- package/dist/EvalEngineFlowDetail-PUFRNO4U.js +4291 -0
- package/dist/EvalEngineFlowDetail-PUFRNO4U.js.map +1 -0
- package/dist/EvaluateBidConfig-OE4CM43G.js +151 -0
- package/dist/EvaluateBidConfig-OE4CM43G.js.map +1 -0
- package/dist/EvaluateBidFlowDetail-2S2N4YTW.js +564 -0
- package/dist/EvaluateBidFlowDetail-2S2N4YTW.js.map +1 -0
- package/dist/EvaluateClaimConfig-3D4F5LHU.js +297 -0
- package/dist/EvaluateClaimConfig-3D4F5LHU.js.map +1 -0
- package/dist/EvaluateClaimFlowDetail-QYR7PJRD.js +2237 -0
- package/dist/EvaluateClaimFlowDetail-QYR7PJRD.js.map +1 -0
- package/dist/FormSubmitConfig-UFZYMLUN.js +59 -0
- package/dist/FormSubmitConfig-UFZYMLUN.js.map +1 -0
- package/dist/FormSubmitFlowDetail-IAHDJS6P.js +169 -0
- package/dist/FormSubmitFlowDetail-IAHDJS6P.js.map +1 -0
- package/dist/GovernanceAuthzExecFlowDetail-SQBGU5BX.js +166 -0
- package/dist/GovernanceAuthzExecFlowDetail-SQBGU5BX.js.map +1 -0
- package/dist/GovernanceAuthzGrantFlowDetail-DZPNLANT.js +88 -0
- package/dist/GovernanceAuthzGrantFlowDetail-DZPNLANT.js.map +1 -0
- package/dist/GovernanceAuthzRevokeFlowDetail-3JZ4IUJG.js +88 -0
- package/dist/GovernanceAuthzRevokeFlowDetail-3JZ4IUJG.js.map +1 -0
- package/dist/GovernanceChainVoteFlowDetail-475UDNG6.js +83 -0
- package/dist/GovernanceChainVoteFlowDetail-475UDNG6.js.map +1 -0
- package/dist/GovernanceConfigConfig-V3WM4WBP.js +30 -0
- package/dist/GovernanceConfigConfig-V3WM4WBP.js.map +1 -0
- package/dist/GovernanceConfigFlowDetail-SQ5PPDRX.js +267 -0
- package/dist/GovernanceConfigFlowDetail-SQ5PPDRX.js.map +1 -0
- package/dist/GovernanceContractExecuteFlowDetail-H2ZV6W2E.js +113 -0
- package/dist/GovernanceContractExecuteFlowDetail-H2ZV6W2E.js.map +1 -0
- package/dist/GovernanceContractInstantiateFlowDetail-YJJMGM54.js +144 -0
- package/dist/GovernanceContractInstantiateFlowDetail-YJJMGM54.js.map +1 -0
- package/dist/GovernanceContractManageCw20FlowDetail-OCBMW3YJ.js +72 -0
- package/dist/GovernanceContractManageCw20FlowDetail-OCBMW3YJ.js.map +1 -0
- package/dist/GovernanceContractMigrateFlowDetail-JDNIKTT3.js +104 -0
- package/dist/GovernanceContractMigrateFlowDetail-JDNIKTT3.js.map +1 -0
- package/dist/GovernanceContractUpdateAdminFlowDetail-SZBOAOCC.js +68 -0
- package/dist/GovernanceContractUpdateAdminFlowDetail-SZBOAOCC.js.map +1 -0
- package/dist/GovernanceCustomMessageFlowDetail-CXD4ZATO.js +78 -0
- package/dist/GovernanceCustomMessageFlowDetail-CXD4ZATO.js.map +1 -0
- package/dist/GovernanceDaoAcceptToMarketplaceFlowDetail-Q6ZBNY7Z.js +98 -0
- package/dist/GovernanceDaoAcceptToMarketplaceFlowDetail-Q6ZBNY7Z.js.map +1 -0
- package/dist/GovernanceDaoAdminExecFlowDetail-JAEAY2US.js +94 -0
- package/dist/GovernanceDaoAdminExecFlowDetail-JAEAY2US.js.map +1 -0
- package/dist/GovernanceDaoCreateEntityFlowDetail-7RVNTVAB.js +96 -0
- package/dist/GovernanceDaoCreateEntityFlowDetail-7RVNTVAB.js.map +1 -0
- package/dist/GovernanceDaoJoinFlowDetail-XYCTCNHO.js +68 -0
- package/dist/GovernanceDaoJoinFlowDetail-XYCTCNHO.js.map +1 -0
- package/dist/GovernanceDaoManageStorageFlowDetail-LMLYLYYC.js +93 -0
- package/dist/GovernanceDaoManageStorageFlowDetail-LMLYLYYC.js.map +1 -0
- package/dist/GovernanceDaoManageSubDaosFlowDetail-YUFQ67JN.js +84 -0
- package/dist/GovernanceDaoManageSubDaosFlowDetail-YUFQ67JN.js.map +1 -0
- package/dist/GovernanceDaoUpdateInfoFlowDetail-G5FIBY4L.js +104 -0
- package/dist/GovernanceDaoUpdateInfoFlowDetail-G5FIBY4L.js.map +1 -0
- package/dist/GovernanceMemberProposalConfig-IGPXEFDB.js +42 -0
- package/dist/GovernanceMemberProposalConfig-IGPXEFDB.js.map +1 -0
- package/dist/GovernanceMemberProposalFlowDetail-T3VURONF.js +240 -0
- package/dist/GovernanceMemberProposalFlowDetail-T3VURONF.js.map +1 -0
- package/dist/GovernanceNftBurnFlowDetail-AG4I2O7H.js +69 -0
- package/dist/GovernanceNftBurnFlowDetail-AG4I2O7H.js.map +1 -0
- package/dist/GovernanceNftManageCollectionsFlowDetail-UAAGO3Q6.js +71 -0
- package/dist/GovernanceNftManageCollectionsFlowDetail-UAAGO3Q6.js.map +1 -0
- package/dist/GovernanceNftTransferFlowDetail-KXM7DTOV.js +130 -0
- package/dist/GovernanceNftTransferFlowDetail-KXM7DTOV.js.map +1 -0
- package/dist/GovernanceSettingsProposalConfig-4SLJTBLW.js +42 -0
- package/dist/GovernanceSettingsProposalConfig-4SLJTBLW.js.map +1 -0
- package/dist/GovernanceSettingsProposalFlowDetail-VFZPSCLR.js +165 -0
- package/dist/GovernanceSettingsProposalFlowDetail-VFZPSCLR.js.map +1 -0
- package/dist/GovernanceStakingStakeFlowDetail-ULLJ7FLM.js +123 -0
- package/dist/GovernanceStakingStakeFlowDetail-ULLJ7FLM.js.map +1 -0
- package/dist/GovernanceStakingStakeToGroupFlowDetail-CSPKJA3H.js +84 -0
- package/dist/GovernanceStakingStakeToGroupFlowDetail-CSPKJA3H.js.map +1 -0
- package/dist/GovernanceSubmissionConfigProposalFlowDetail-MZCPSZF2.js +111 -0
- package/dist/GovernanceSubmissionConfigProposalFlowDetail-MZCPSZF2.js.map +1 -0
- package/dist/GovernanceTransactionMintFlowDetail-Y2WRAODH.js +66 -0
- package/dist/GovernanceTransactionMintFlowDetail-Y2WRAODH.js.map +1 -0
- package/dist/GovernanceTransactionPerformTokenSwapFlowDetail-GEK6PMMI.js +133 -0
- package/dist/GovernanceTransactionPerformTokenSwapFlowDetail-GEK6PMMI.js.map +1 -0
- package/dist/GovernanceTransactionSendFundsConfig-VBKMLSF3.js +42 -0
- package/dist/GovernanceTransactionSendFundsConfig-VBKMLSF3.js.map +1 -0
- package/dist/GovernanceTransactionSendFundsFlowDetail-5TZB64VL.js +182 -0
- package/dist/GovernanceTransactionSendFundsFlowDetail-5TZB64VL.js.map +1 -0
- package/dist/GovernanceTransactionSendGroupTokenFlowDetail-EGOWVZM2.js +155 -0
- package/dist/GovernanceTransactionSendGroupTokenFlowDetail-EGOWVZM2.js.map +1 -0
- package/dist/GovernanceTransactionWithdrawTokenSwapFlowDetail-6XWVO5O6.js +56 -0
- package/dist/GovernanceTransactionWithdrawTokenSwapFlowDetail-6XWVO5O6.js.map +1 -0
- package/dist/GovernanceValidatorActionsFlowDetail-ZMLPAFUB.js +117 -0
- package/dist/GovernanceValidatorActionsFlowDetail-ZMLPAFUB.js.map +1 -0
- package/dist/HarvestConfig-AIGOGBFR.js +56 -0
- package/dist/HarvestConfig-AIGOGBFR.js.map +1 -0
- package/dist/HarvestFlowDetail-X3RUH3X3.js +131 -0
- package/dist/HarvestFlowDetail-X3RUH3X3.js.map +1 -0
- package/dist/HttpRequestConfig-OQEJIIJY.js +194 -0
- package/dist/HttpRequestConfig-OQEJIIJY.js.map +1 -0
- package/dist/HttpRequestFlowDetail-JVLV533Z.js +116 -0
- package/dist/HttpRequestFlowDetail-JVLV533Z.js.map +1 -0
- package/dist/IdentityCreateConfig-ZBUOJ6AL.js +94 -0
- package/dist/IdentityCreateConfig-ZBUOJ6AL.js.map +1 -0
- package/dist/IdentityCreateFlowDetail-WGKO43IH.js +83 -0
- package/dist/IdentityCreateFlowDetail-WGKO43IH.js.map +1 -0
- package/dist/IidCreateConfig-RRV2DYXI.js +75 -0
- package/dist/IidCreateConfig-RRV2DYXI.js.map +1 -0
- package/dist/IidCreateFlowDetail-6M32S6XS.js +57 -0
- package/dist/IidCreateFlowDetail-6M32S6XS.js.map +1 -0
- package/dist/KycVerifyConfig-VCG65K5K.js +65 -0
- package/dist/KycVerifyConfig-VCG65K5K.js.map +1 -0
- package/dist/KycVerifyFlowDetail-EWOMXSD3.js +421 -0
- package/dist/KycVerifyFlowDetail-EWOMXSD3.js.map +1 -0
- package/dist/ListDomainFlowsConfig-3JZEPTOJ.js +37 -0
- package/dist/ListDomainFlowsConfig-3JZEPTOJ.js.map +1 -0
- package/dist/ListDomainFlowsFlowDetail-XX5AXDZZ.js +257 -0
- package/dist/ListDomainFlowsFlowDetail-XX5AXDZZ.js.map +1 -0
- package/dist/LoadBatchesConfig-IMODIWRT.js +38 -0
- package/dist/LoadBatchesConfig-IMODIWRT.js.map +1 -0
- package/dist/LoadBatchesFlowDetail-GB24T76O.js +101 -0
- package/dist/LoadBatchesFlowDetail-GB24T76O.js.map +1 -0
- package/dist/MatrixDmConfig-NBII27CS.js +120 -0
- package/dist/MatrixDmConfig-NBII27CS.js.map +1 -0
- package/dist/MatrixRegisterConfig-N2U4FBYF.js +62 -0
- package/dist/MatrixRegisterConfig-N2U4FBYF.js.map +1 -0
- package/dist/MatrixRegisterFlowDetail-D5YNL5QX.js +86 -0
- package/dist/MatrixRegisterFlowDetail-D5YNL5QX.js.map +1 -0
- package/dist/MemberMultiSelectConfig-E7WUB2WD.js +30 -0
- package/dist/MemberMultiSelectConfig-E7WUB2WD.js.map +1 -0
- package/dist/MemberMultiSelectFlowDetail-6C4ZMSDR.js +392 -0
- package/dist/MemberMultiSelectFlowDetail-6C4ZMSDR.js.map +1 -0
- package/dist/OracleConfig-R7TDTTKN.js +56 -0
- package/dist/OracleConfig-R7TDTTKN.js.map +1 -0
- package/dist/OracleConfigureOracleConfig-QFF74X3N.js +198 -0
- package/dist/OracleConfigureOracleConfig-QFF74X3N.js.map +1 -0
- package/dist/OracleConfigureOracleFlowDetail-73BHAN76.js +255 -0
- package/dist/OracleConfigureOracleFlowDetail-73BHAN76.js.map +1 -0
- package/dist/OracleContractConfig-PHY5L7W2.js +38 -0
- package/dist/OracleContractConfig-PHY5L7W2.js.map +1 -0
- package/dist/OracleContractFlowDetail-M3PM4AU4.js +78 -0
- package/dist/OracleContractFlowDetail-M3PM4AU4.js.map +1 -0
- package/dist/OracleDeployConfig-QBG76ATZ.js +10 -0
- package/dist/OracleDeployConfig-QBG76ATZ.js.map +1 -0
- package/dist/OracleDeployFlowDetail-WKTMD2AD.js +231 -0
- package/dist/OracleDeployFlowDetail-WKTMD2AD.js.map +1 -0
- package/dist/OracleDeploySetupConfig-75XPGFJQ.js +10 -0
- package/dist/OracleDeploySetupConfig-75XPGFJQ.js.map +1 -0
- package/dist/OracleDeploySetupFlowDetail-R3BQ7EAU.js +165 -0
- package/dist/OracleDeploySetupFlowDetail-R3BQ7EAU.js.map +1 -0
- package/dist/OracleDeployStartConfig-NA6GZ4VQ.js +10 -0
- package/dist/OracleDeployStartConfig-NA6GZ4VQ.js.map +1 -0
- package/dist/OracleDeployStartFlowDetail-EL3CMDMG.js +89 -0
- package/dist/OracleDeployStartFlowDetail-EL3CMDMG.js.map +1 -0
- package/dist/OracleFlowDetail-5JCJK3GH.js +76 -0
- package/dist/OracleFlowDetail-5JCJK3GH.js.map +1 -0
- package/dist/OraclePromptConfig-YBRESISH.js +39 -0
- package/dist/OraclePromptConfig-YBRESISH.js.map +1 -0
- package/dist/OraclePromptFlowDetail-O3XNK7HY.js +112 -0
- package/dist/OraclePromptFlowDetail-O3XNK7HY.js.map +1 -0
- package/dist/OracleStoreConfigConfig-TUZWTJMA.js +134 -0
- package/dist/OracleStoreConfigConfig-TUZWTJMA.js.map +1 -0
- package/dist/OracleStoreConfigFlowDetail-Q6AUUSUL.js +99 -0
- package/dist/OracleStoreConfigFlowDetail-Q6AUUSUL.js.map +1 -0
- package/dist/OracleStoreSecretsAndConfigConfig-SZPYEK7U.js +198 -0
- package/dist/OracleStoreSecretsAndConfigConfig-SZPYEK7U.js.map +1 -0
- package/dist/OracleStoreSecretsAndConfigFlowDetail-BFV2EHLT.js +220 -0
- package/dist/OracleStoreSecretsAndConfigFlowDetail-BFV2EHLT.js.map +1 -0
- package/dist/OracleStoreSecretsConfig-PQMF7LFT.js +191 -0
- package/dist/OracleStoreSecretsConfig-PQMF7LFT.js.map +1 -0
- package/dist/OracleStoreSecretsFlowDetail-DNNOPHVA.js +197 -0
- package/dist/OracleStoreSecretsFlowDetail-DNNOPHVA.js.map +1 -0
- package/dist/ProposalCreateConfig-U5IHZNT7.js +161 -0
- package/dist/ProposalCreateConfig-U5IHZNT7.js.map +1 -0
- package/dist/ProposalCreateFlowDetail-4VZZPAWH.js +235 -0
- package/dist/ProposalCreateFlowDetail-4VZZPAWH.js.map +1 -0
- package/dist/ProposalVoteConfig-MH4MU7SL.js +150 -0
- package/dist/ProposalVoteConfig-MH4MU7SL.js.map +1 -0
- package/dist/ProposalVoteFlowDetail-IJJ3OHAB.js +280 -0
- package/dist/ProposalVoteFlowDetail-IJJ3OHAB.js.map +1 -0
- package/dist/ProtocolSelectConfig-S5U3P6K7.js +48 -0
- package/dist/ProtocolSelectConfig-S5U3P6K7.js.map +1 -0
- package/dist/ProtocolSelectFlowDetail-XBSJIEIH.js +116 -0
- package/dist/ProtocolSelectFlowDetail-XBSJIEIH.js.map +1 -0
- package/dist/RetireConfig-MV37WWZ6.js +59 -0
- package/dist/RetireConfig-MV37WWZ6.js.map +1 -0
- package/dist/RetireFlowDetail-VZ5O4SXI.js +147 -0
- package/dist/RetireFlowDetail-VZ5O4SXI.js.map +1 -0
- package/dist/SandboxProvisionConfig-ZGG4IRHM.js +46 -0
- package/dist/SandboxProvisionConfig-ZGG4IRHM.js.map +1 -0
- package/dist/SandboxProvisionFlowDetail-RUY64INV.js +79 -0
- package/dist/SandboxProvisionFlowDetail-RUY64INV.js.map +1 -0
- package/dist/WalletFundConfig-CMM3EP3B.js +117 -0
- package/dist/WalletFundConfig-CMM3EP3B.js.map +1 -0
- package/dist/WalletFundFlowDetail-TXWCZA4K.js +279 -0
- package/dist/WalletFundFlowDetail-TXWCZA4K.js.map +1 -0
- package/dist/WalletGenerateAndFundConfig-364RSEND.js +10 -0
- package/dist/WalletGenerateAndFundConfig-364RSEND.js.map +1 -0
- package/dist/WalletGenerateAndFundFlowDetail-C2LZW3NO.js +54 -0
- package/dist/WalletGenerateAndFundFlowDetail-C2LZW3NO.js.map +1 -0
- package/dist/WalletGenerateConfig-YYLCS65G.js +10 -0
- package/dist/WalletGenerateConfig-YYLCS65G.js.map +1 -0
- package/dist/WalletGenerateFlowDetail-CQCNDGJA.js +53 -0
- package/dist/WalletGenerateFlowDetail-CQCNDGJA.js.map +1 -0
- package/dist/XeroContactCreateConfig-OWG5PA3B.js +102 -0
- package/dist/XeroContactCreateConfig-OWG5PA3B.js.map +1 -0
- package/dist/XeroContactCreateFlowDetail-6MAINCF6.js +127 -0
- package/dist/XeroContactCreateFlowDetail-6MAINCF6.js.map +1 -0
- package/dist/XeroInvoiceCreateConfig-O74RUSZM.js +403 -0
- package/dist/XeroInvoiceCreateConfig-O74RUSZM.js.map +1 -0
- package/dist/XeroInvoiceCreateFlowDetail-UL7KS6CZ.js +631 -0
- package/dist/XeroInvoiceCreateFlowDetail-UL7KS6CZ.js.map +1 -0
- package/dist/XeroInvoiceListConfig-UR3GONBJ.js +113 -0
- package/dist/XeroInvoiceListConfig-UR3GONBJ.js.map +1 -0
- package/dist/XeroInvoiceListFlowDetail-LYHODWH6.js +58 -0
- package/dist/XeroInvoiceListFlowDetail-LYHODWH6.js.map +1 -0
- package/dist/XeroPaymentCreateConfig-RPMAIK6E.js +116 -0
- package/dist/XeroPaymentCreateConfig-RPMAIK6E.js.map +1 -0
- package/dist/XeroPaymentCreateFlowDetail-CF35MVIM.js +573 -0
- package/dist/XeroPaymentCreateFlowDetail-CF35MVIM.js.map +1 -0
- package/dist/action-manifest.json +2091 -393
- package/dist/chunk-2GAYKKTL.js +9 -0
- package/dist/chunk-2GAYKKTL.js.map +1 -0
- package/dist/chunk-2WPEATI7.js +315 -0
- package/dist/chunk-2WPEATI7.js.map +1 -0
- package/dist/chunk-3O42FYT3.js +3333 -0
- package/dist/chunk-3O42FYT3.js.map +1 -0
- package/dist/chunk-3TUYY4HK.js +20 -0
- package/dist/chunk-3TUYY4HK.js.map +1 -0
- package/dist/chunk-3XSLBJYI.js +554 -0
- package/dist/chunk-3XSLBJYI.js.map +1 -0
- package/dist/chunk-4DGCCXD6.js +710 -0
- package/dist/chunk-4DGCCXD6.js.map +1 -0
- package/dist/chunk-4NAFQF6V.js +11 -0
- package/dist/chunk-4NAFQF6V.js.map +1 -0
- package/dist/chunk-4PONO4US.js +799 -0
- package/dist/chunk-4PONO4US.js.map +1 -0
- package/dist/chunk-4TMOIK5M.js +21 -0
- package/dist/chunk-4TMOIK5M.js.map +1 -0
- package/dist/chunk-5IH3VC5I.js +102 -0
- package/dist/chunk-5IH3VC5I.js.map +1 -0
- package/dist/chunk-5NTKDOP6.js +89 -0
- package/dist/chunk-5NTKDOP6.js.map +1 -0
- package/dist/chunk-5O2SFRGU.js +18 -0
- package/dist/chunk-5O2SFRGU.js.map +1 -0
- package/dist/chunk-632JLECF.js +55 -0
- package/dist/chunk-632JLECF.js.map +1 -0
- package/dist/chunk-676HDB7K.js +95 -0
- package/dist/chunk-676HDB7K.js.map +1 -0
- package/dist/chunk-6ESTNTSH.js +223 -0
- package/dist/chunk-6ESTNTSH.js.map +1 -0
- package/dist/chunk-6GKJR52N.js +15 -0
- package/dist/chunk-6GKJR52N.js.map +1 -0
- package/dist/chunk-6L4ZIKYU.js +23 -0
- package/dist/chunk-6L4ZIKYU.js.map +1 -0
- package/dist/chunk-76YX5R4L.js +11 -0
- package/dist/chunk-76YX5R4L.js.map +1 -0
- package/dist/chunk-7J3GFMN3.js +32 -0
- package/dist/chunk-7J3GFMN3.js.map +1 -0
- package/dist/chunk-7LSARC2G.js +102 -0
- package/dist/chunk-7LSARC2G.js.map +1 -0
- package/dist/chunk-7W7UUUIE.js +609 -0
- package/dist/chunk-7W7UUUIE.js.map +1 -0
- package/dist/chunk-7ZLW7H37.js +21 -0
- package/dist/chunk-7ZLW7H37.js.map +1 -0
- package/dist/chunk-AAZHI22G.js +18 -0
- package/dist/chunk-AAZHI22G.js.map +1 -0
- package/dist/chunk-ACNE455I.js +76 -0
- package/dist/chunk-ACNE455I.js.map +1 -0
- package/dist/chunk-BKLSSLPZ.js +27 -0
- package/dist/chunk-BKLSSLPZ.js.map +1 -0
- package/dist/chunk-BZ7UPUTY.js +417 -0
- package/dist/chunk-BZ7UPUTY.js.map +1 -0
- package/dist/chunk-CGFAICUE.js +28 -0
- package/dist/chunk-CGFAICUE.js.map +1 -0
- package/dist/chunk-CMCEWQ3C.js +19 -0
- package/dist/chunk-CMCEWQ3C.js.map +1 -0
- package/dist/chunk-CP4UV436.js +41 -0
- package/dist/chunk-CP4UV436.js.map +1 -0
- package/dist/chunk-D2CQPNQG.js +27508 -0
- package/dist/chunk-D2CQPNQG.js.map +1 -0
- package/dist/chunk-DIQRZP7Z.js +51 -0
- package/dist/chunk-DIQRZP7Z.js.map +1 -0
- package/dist/chunk-EBFFDDAS.js +13 -0
- package/dist/chunk-EBFFDDAS.js.map +1 -0
- package/dist/chunk-EGVS23DR.js +85 -0
- package/dist/chunk-EGVS23DR.js.map +1 -0
- package/dist/chunk-EKBQ7K4N.js +15 -0
- package/dist/chunk-EKBQ7K4N.js.map +1 -0
- package/dist/chunk-EKQCZRAN.js +24 -0
- package/dist/chunk-EKQCZRAN.js.map +1 -0
- package/dist/chunk-EYKZIZ5J.js +48 -0
- package/dist/chunk-EYKZIZ5J.js.map +1 -0
- package/dist/{chunk-NEOPTPDF.js → chunk-F4PTFXZH.js} +11554 -22046
- package/dist/chunk-F4PTFXZH.js.map +1 -0
- package/dist/chunk-FFYZXA75.js +58 -0
- package/dist/chunk-FFYZXA75.js.map +1 -0
- package/dist/chunk-GFGDHPZ2.js +22 -0
- package/dist/chunk-GFGDHPZ2.js.map +1 -0
- package/dist/chunk-GR3CDFID.js +18 -0
- package/dist/chunk-GR3CDFID.js.map +1 -0
- package/dist/chunk-GR4SIU32.js +104 -0
- package/dist/chunk-GR4SIU32.js.map +1 -0
- package/dist/chunk-H5E46IIS.js +18 -0
- package/dist/chunk-H5E46IIS.js.map +1 -0
- package/dist/chunk-HFHVAMZL.js +22 -0
- package/dist/chunk-HFHVAMZL.js.map +1 -0
- package/dist/chunk-HRRI4BLF.js +4456 -0
- package/dist/chunk-HRRI4BLF.js.map +1 -0
- package/dist/chunk-HT6L7A5M.js +12 -0
- package/dist/chunk-HT6L7A5M.js.map +1 -0
- package/dist/chunk-I2FPFISM.js +301 -0
- package/dist/chunk-I2FPFISM.js.map +1 -0
- package/dist/chunk-IADAQJDH.js +28 -0
- package/dist/chunk-IADAQJDH.js.map +1 -0
- package/dist/chunk-IBOBCMQQ.js +99 -0
- package/dist/chunk-IBOBCMQQ.js.map +1 -0
- package/dist/chunk-IFWKRCFF.js +56 -0
- package/dist/chunk-IFWKRCFF.js.map +1 -0
- package/dist/chunk-IH4T7V4C.js +40 -0
- package/dist/chunk-IH4T7V4C.js.map +1 -0
- package/dist/chunk-IIIZZ4E4.js +1679 -0
- package/dist/chunk-IIIZZ4E4.js.map +1 -0
- package/dist/chunk-ILSFU3WD.js +83 -0
- package/dist/chunk-ILSFU3WD.js.map +1 -0
- package/dist/chunk-IX3VBV3L.js +43 -0
- package/dist/chunk-IX3VBV3L.js.map +1 -0
- package/dist/chunk-JBBFSORW.js +846 -0
- package/dist/chunk-JBBFSORW.js.map +1 -0
- package/dist/chunk-JIDTNKKL.js +1183 -0
- package/dist/chunk-JIDTNKKL.js.map +1 -0
- package/dist/chunk-JSPE6NGZ.js +22 -0
- package/dist/chunk-JSPE6NGZ.js.map +1 -0
- package/dist/chunk-JVROGQ7Q.js +150 -0
- package/dist/chunk-JVROGQ7Q.js.map +1 -0
- package/dist/chunk-K4WUMWNJ.js +32 -0
- package/dist/chunk-K4WUMWNJ.js.map +1 -0
- package/dist/chunk-K74XQ4Q5.js +11 -0
- package/dist/chunk-K74XQ4Q5.js.map +1 -0
- package/dist/chunk-KLLMJ4U3.js +22 -0
- package/dist/chunk-KLLMJ4U3.js.map +1 -0
- package/dist/chunk-LTKVCJ2E.js +27 -0
- package/dist/chunk-LTKVCJ2E.js.map +1 -0
- package/dist/chunk-M36DJTFZ.js +34 -0
- package/dist/chunk-M36DJTFZ.js.map +1 -0
- package/dist/chunk-MHM52LCJ.js +154 -0
- package/dist/chunk-MHM52LCJ.js.map +1 -0
- package/dist/chunk-MQCDMHRZ.js +59 -0
- package/dist/chunk-MQCDMHRZ.js.map +1 -0
- package/dist/chunk-N3ORMGAI.js +348 -0
- package/dist/chunk-N3ORMGAI.js.map +1 -0
- package/dist/chunk-NCSGIRRQ.js +28 -0
- package/dist/chunk-NCSGIRRQ.js.map +1 -0
- package/dist/chunk-NIXT2SBH.js +1423 -0
- package/dist/chunk-NIXT2SBH.js.map +1 -0
- package/dist/chunk-NJAII6CO.js +148 -0
- package/dist/chunk-NJAII6CO.js.map +1 -0
- package/dist/chunk-NKE4TL43.js +92 -0
- package/dist/chunk-NKE4TL43.js.map +1 -0
- package/dist/chunk-NZ7AXA7B.js +1 -0
- package/dist/chunk-NZ7AXA7B.js.map +1 -0
- package/dist/chunk-OCAYEGI2.js +26 -0
- package/dist/chunk-OCAYEGI2.js.map +1 -0
- package/dist/chunk-OMLI45ER.js +90 -0
- package/dist/chunk-OMLI45ER.js.map +1 -0
- package/dist/chunk-P7OBLJAG.js +88 -0
- package/dist/chunk-P7OBLJAG.js.map +1 -0
- package/dist/chunk-PAY3CBWL.js +2321 -0
- package/dist/chunk-PAY3CBWL.js.map +1 -0
- package/dist/chunk-PFF6VY35.js +257 -0
- package/dist/chunk-PFF6VY35.js.map +1 -0
- package/dist/chunk-PYNDJDWZ.js +1758 -0
- package/dist/chunk-PYNDJDWZ.js.map +1 -0
- package/dist/chunk-QDQ6UMMN.js +53 -0
- package/dist/chunk-QDQ6UMMN.js.map +1 -0
- package/dist/chunk-QGT3G2XG.js +24 -0
- package/dist/chunk-QGT3G2XG.js.map +1 -0
- package/dist/chunk-QZYCJ2GZ.js +55 -0
- package/dist/chunk-QZYCJ2GZ.js.map +1 -0
- package/dist/chunk-REZ7RFSA.js +124 -0
- package/dist/chunk-REZ7RFSA.js.map +1 -0
- package/dist/chunk-RRYBAE6E.js +2449 -0
- package/dist/chunk-RRYBAE6E.js.map +1 -0
- package/dist/chunk-RWUZOB62.js +34 -0
- package/dist/chunk-RWUZOB62.js.map +1 -0
- package/dist/chunk-SB5UCPZH.js +116 -0
- package/dist/chunk-SB5UCPZH.js.map +1 -0
- package/dist/chunk-SEJJ7CRI.js +99 -0
- package/dist/chunk-SEJJ7CRI.js.map +1 -0
- package/dist/chunk-SHBFGRPV.js +45 -0
- package/dist/chunk-SHBFGRPV.js.map +1 -0
- package/dist/chunk-SOFJ4GC5.js +45 -0
- package/dist/chunk-SOFJ4GC5.js.map +1 -0
- package/dist/chunk-STH2HPZK.js +44 -0
- package/dist/chunk-STH2HPZK.js.map +1 -0
- package/dist/chunk-TK3JNKME.js +28 -0
- package/dist/chunk-TK3JNKME.js.map +1 -0
- package/dist/chunk-TMONHFE3.js +46 -0
- package/dist/chunk-TMONHFE3.js.map +1 -0
- package/dist/chunk-TR4KO3AG.js +44 -0
- package/dist/chunk-TR4KO3AG.js.map +1 -0
- package/dist/chunk-TS2LNBF2.js +68 -0
- package/dist/chunk-TS2LNBF2.js.map +1 -0
- package/dist/chunk-UZUMBFPP.js +26 -0
- package/dist/chunk-UZUMBFPP.js.map +1 -0
- package/dist/chunk-VRZ5LMOW.js +176 -0
- package/dist/chunk-VRZ5LMOW.js.map +1 -0
- package/dist/chunk-WLGGY6Z6.js +75 -0
- package/dist/chunk-WLGGY6Z6.js.map +1 -0
- package/dist/chunk-WO7V6ZNC.js +11 -0
- package/dist/chunk-WO7V6ZNC.js.map +1 -0
- package/dist/chunk-WXSENSRP.js +64 -0
- package/dist/chunk-WXSENSRP.js.map +1 -0
- package/dist/chunk-XEKBZ2SA.js +19 -0
- package/dist/chunk-XEKBZ2SA.js.map +1 -0
- package/dist/chunk-XPBKU3JX.js +61 -0
- package/dist/chunk-XPBKU3JX.js.map +1 -0
- package/dist/chunk-XRYXBXWH.js +24 -0
- package/dist/chunk-XRYXBXWH.js.map +1 -0
- package/dist/chunk-XVA7QRVH.js +22 -0
- package/dist/chunk-XVA7QRVH.js.map +1 -0
- package/dist/chunk-YCTHHBSS.js +37 -0
- package/dist/chunk-YCTHHBSS.js.map +1 -0
- package/dist/chunk-YHPWD5NE.js +70 -0
- package/dist/chunk-YHPWD5NE.js.map +1 -0
- package/dist/chunk-YLNEKJQ5.js +126 -0
- package/dist/chunk-YLNEKJQ5.js.map +1 -0
- package/dist/chunk-YN4CEKCF.js +73 -0
- package/dist/chunk-YN4CEKCF.js.map +1 -0
- package/dist/chunk-YYNMESIF.js +17 -0
- package/dist/chunk-YYNMESIF.js.map +1 -0
- package/dist/chunk-Z6PRMCV6.js +1 -0
- package/dist/chunk-Z6PRMCV6.js.map +1 -0
- package/dist/chunk-ZDNW6VQG.js +11 -0
- package/dist/chunk-ZDNW6VQG.js.map +1 -0
- package/dist/chunk-ZP4D73DO.js +36 -0
- package/dist/chunk-ZP4D73DO.js.map +1 -0
- package/dist/chunk-ZUATADUV.js +26 -0
- package/dist/chunk-ZUATADUV.js.map +1 -0
- package/dist/{connections-1NtNQrsY.d.ts → connections-CEcurtWI.d.ts} +74 -9
- package/dist/core/index.cjs +14041 -6973
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +422 -138
- package/dist/core/index.js +425 -183
- package/dist/core/index.js.map +1 -1
- package/dist/flow-vnext/index.cjs +2842 -0
- package/dist/flow-vnext/index.cjs.map +1 -0
- package/dist/flow-vnext/index.d.ts +3 -0
- package/dist/flow-vnext/index.js +119 -0
- package/dist/flow-vnext/index.js.map +1 -0
- package/dist/{graphql-client-Bn0tN049.d.ts → graphql-client-B2tREsx6.d.ts} +3 -1
- package/dist/index-b9xxXGFs.d.ts +1230 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +202 -37
- package/dist/index.js.map +1 -1
- package/dist/legacy-BpgIqaQ5.d.ts +14 -0
- package/dist/mantine/index.d.ts +7 -4
- package/dist/mantine/index.js +84 -30
- package/dist/mantine/index.js.map +1 -1
- package/dist/{runtime-BFwvCQDF.d.ts → types-Dqk5MTfW.d.ts} +6096 -5386
- package/package.json +12 -2
- package/dist/chunk-A4CWC4AG.js +0 -374
- package/dist/chunk-A4CWC4AG.js.map +0 -1
- package/dist/chunk-NEOPTPDF.js.map +0 -1
- package/dist/chunk-VRCRDKN5.js +0 -59694
- package/dist/chunk-VRCRDKN5.js.map +0 -1
|
@@ -0,0 +1,641 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StableSurvey
|
|
3
|
+
} from "./chunk-2GAYKKTL.js";
|
|
4
|
+
import {
|
|
5
|
+
resolveFilesInCredentialSubject
|
|
6
|
+
} from "./chunk-OMLI45ER.js";
|
|
7
|
+
import {
|
|
8
|
+
parseClaimActionInputs
|
|
9
|
+
} from "./chunk-ZUATADUV.js";
|
|
10
|
+
import {
|
|
11
|
+
ActAsGroupSection,
|
|
12
|
+
GroupProposalStatus,
|
|
13
|
+
actAsGroupReady,
|
|
14
|
+
actAsGroupRuntimeInputs,
|
|
15
|
+
emptyActAsGroupState
|
|
16
|
+
} from "./chunk-2WPEATI7.js";
|
|
17
|
+
import "./chunk-TR4KO3AG.js";
|
|
18
|
+
import {
|
|
19
|
+
SurveyAiFillButton,
|
|
20
|
+
attachSurveyAnalytics,
|
|
21
|
+
buildBlockLabel,
|
|
22
|
+
getFlowRoomContext,
|
|
23
|
+
useRegisterOpenSurvey
|
|
24
|
+
} from "./chunk-PFF6VY35.js";
|
|
25
|
+
import {
|
|
26
|
+
surveyTheme
|
|
27
|
+
} from "./chunk-MHM52LCJ.js";
|
|
28
|
+
import {
|
|
29
|
+
getClaimStatusInfo
|
|
30
|
+
} from "./chunk-NKE4TL43.js";
|
|
31
|
+
import {
|
|
32
|
+
ListItemContainer
|
|
33
|
+
} from "./chunk-EYKZIZ5J.js";
|
|
34
|
+
import "./chunk-BZ7UPUTY.js";
|
|
35
|
+
import {
|
|
36
|
+
BasePrimaryButton
|
|
37
|
+
} from "./chunk-K74XQ4Q5.js";
|
|
38
|
+
import "./chunk-4NAFQF6V.js";
|
|
39
|
+
import {
|
|
40
|
+
useRunRuntimeReader
|
|
41
|
+
} from "./chunk-FFYZXA75.js";
|
|
42
|
+
import "./chunk-NZ7AXA7B.js";
|
|
43
|
+
import "./chunk-HRRI4BLF.js";
|
|
44
|
+
import "./chunk-F4PTFXZH.js";
|
|
45
|
+
import "./chunk-IH4T7V4C.js";
|
|
46
|
+
import "./chunk-PYNDJDWZ.js";
|
|
47
|
+
import "./chunk-NIXT2SBH.js";
|
|
48
|
+
import "./chunk-JIDTNKKL.js";
|
|
49
|
+
import {
|
|
50
|
+
resolveReferences
|
|
51
|
+
} from "./chunk-JVROGQ7Q.js";
|
|
52
|
+
import "./chunk-IIIZZ4E4.js";
|
|
53
|
+
import "./chunk-HT6L7A5M.js";
|
|
54
|
+
import "./chunk-RRYBAE6E.js";
|
|
55
|
+
import "./chunk-N3ORMGAI.js";
|
|
56
|
+
import "./chunk-NCSGIRRQ.js";
|
|
57
|
+
import "./chunk-ZDNW6VQG.js";
|
|
58
|
+
import {
|
|
59
|
+
DismissibleAlert
|
|
60
|
+
} from "./chunk-IFWKRCFF.js";
|
|
61
|
+
import {
|
|
62
|
+
actionAlertStyles
|
|
63
|
+
} from "./chunk-6GKJR52N.js";
|
|
64
|
+
import "./chunk-EBFFDDAS.js";
|
|
65
|
+
import "./chunk-WO7V6ZNC.js";
|
|
66
|
+
import {
|
|
67
|
+
useBlocknoteHandlers,
|
|
68
|
+
useTranslate
|
|
69
|
+
} from "./chunk-4DGCCXD6.js";
|
|
70
|
+
import "./chunk-7W7UUUIE.js";
|
|
71
|
+
import "./chunk-TS2LNBF2.js";
|
|
72
|
+
|
|
73
|
+
// src/mantine/blocks/action/actionTypes/claim/ClaimFlowDetail.tsx
|
|
74
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
75
|
+
import { ActionIcon, Box, Collapse, Group, Loader, Stack, Text, UnstyledButton } from "@mantine/core";
|
|
76
|
+
import { IconArrowLeft, IconCheck, IconChevronRight, IconPlayerPlay } from "@tabler/icons-react";
|
|
77
|
+
import { SurveyModel } from "@ixo/surveys";
|
|
78
|
+
function getTimeAgo(dateString) {
|
|
79
|
+
if (!dateString) return "";
|
|
80
|
+
try {
|
|
81
|
+
const date = new Date(dateString);
|
|
82
|
+
const now = /* @__PURE__ */ new Date();
|
|
83
|
+
const diffMs = now.getTime() - date.getTime();
|
|
84
|
+
const diffMins = Math.floor(diffMs / 6e4);
|
|
85
|
+
if (diffMins < 1) return "just now";
|
|
86
|
+
if (diffMins < 60) return `${diffMins}m ago`;
|
|
87
|
+
const diffHours = Math.floor(diffMins / 60);
|
|
88
|
+
if (diffHours < 24) return `${diffHours}h ago`;
|
|
89
|
+
const diffDays = Math.floor(diffHours / 24);
|
|
90
|
+
if (diffDays < 30) return `${diffDays} day${diffDays > 1 ? "s" : ""} ago`;
|
|
91
|
+
const diffMonths = Math.floor(diffDays / 30);
|
|
92
|
+
return `${diffMonths} month${diffMonths > 1 ? "s" : ""} ago`;
|
|
93
|
+
} catch {
|
|
94
|
+
return dateString;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function truncateAddress(address) {
|
|
98
|
+
if (!address) return "";
|
|
99
|
+
if (address.length <= 14) return address;
|
|
100
|
+
return `${address.slice(0, 8)}...${address.slice(-3)}`;
|
|
101
|
+
}
|
|
102
|
+
function truncateId(value, start = 8, end = 6) {
|
|
103
|
+
if (!value) return "";
|
|
104
|
+
if (value.length <= start + end + 3) return value;
|
|
105
|
+
return `${value.slice(0, start)}...${value.slice(-end)}`;
|
|
106
|
+
}
|
|
107
|
+
var ClaimFlowDetail = ({
|
|
108
|
+
inputs,
|
|
109
|
+
editor,
|
|
110
|
+
runtime,
|
|
111
|
+
block,
|
|
112
|
+
isDisabled,
|
|
113
|
+
provideSigningHandler,
|
|
114
|
+
unlockSigning,
|
|
115
|
+
registerRuntimeInputs,
|
|
116
|
+
executeAction
|
|
117
|
+
}) => {
|
|
118
|
+
const [actAs, setActAs] = useState(emptyActAsGroupState());
|
|
119
|
+
const t = useTranslate();
|
|
120
|
+
const handlers = useBlocknoteHandlers();
|
|
121
|
+
const handlersRef = useRef(handlers);
|
|
122
|
+
useEffect(() => {
|
|
123
|
+
handlersRef.current = handlers;
|
|
124
|
+
}, [handlers]);
|
|
125
|
+
const actorDid = useMemo(() => {
|
|
126
|
+
try {
|
|
127
|
+
return handlers?.getCurrentUser?.()?.address || "";
|
|
128
|
+
} catch {
|
|
129
|
+
return "";
|
|
130
|
+
}
|
|
131
|
+
}, [handlers]);
|
|
132
|
+
const parsed = useMemo(() => parseClaimActionInputs(inputs), [inputs]);
|
|
133
|
+
const editorDocument = editor?.document || [];
|
|
134
|
+
const runtimeReader = useRunRuntimeReader(editor);
|
|
135
|
+
const resolveOpts = useMemo(() => ({ yRuntime: runtimeReader }), [runtimeReader]);
|
|
136
|
+
const deedDid = resolveReferences(parsed.deedDid, editorDocument, resolveOpts).trim();
|
|
137
|
+
const collectionId = resolveReferences(parsed.collectionId, editorDocument, resolveOpts).trim();
|
|
138
|
+
const [claims, setClaims] = useState([]);
|
|
139
|
+
const [loadingClaims, setLoadingClaims] = useState(false);
|
|
140
|
+
const [adminAddress, setAdminAddress] = useState("");
|
|
141
|
+
const [surveyJson, setSurveyJson] = useState(null);
|
|
142
|
+
const [prefillData, setPrefillData] = useState(null);
|
|
143
|
+
const [loadingSurvey, setLoadingSurvey] = useState(false);
|
|
144
|
+
const [submitting, setSubmitting] = useState(false);
|
|
145
|
+
const [error, setError] = useState(null);
|
|
146
|
+
const [profilesByDid, setProfilesByDid] = useState({});
|
|
147
|
+
const [isServiceAgentAuthorized, setIsServiceAgentAuthorized] = useState(false);
|
|
148
|
+
const [authChecking, setAuthChecking] = useState(true);
|
|
149
|
+
const [authError, setAuthError] = useState(null);
|
|
150
|
+
const [authRetryKey, setAuthRetryKey] = useState(0);
|
|
151
|
+
const [surveyComplete, setSurveyComplete] = useState(false);
|
|
152
|
+
const [selectedClaimId, setSelectedClaimId] = useState("");
|
|
153
|
+
const [selectedClaimData, setSelectedClaimData] = useState(null);
|
|
154
|
+
const [loadingClaimDetail, setLoadingClaimDetail] = useState(false);
|
|
155
|
+
const [disputeDetails, setDisputeDetails] = useState(null);
|
|
156
|
+
const [loadingDispute, setLoadingDispute] = useState(false);
|
|
157
|
+
const [claimsExpanded, setClaimsExpanded] = useState(false);
|
|
158
|
+
const selectedClaim = useMemo(() => claims.find((c) => c.claimId === selectedClaimId) || null, [claims, selectedClaimId]);
|
|
159
|
+
const selectedClaimStatus = useMemo(() => selectedClaim ? getClaimStatusInfo(selectedClaim) : null, [selectedClaim]);
|
|
160
|
+
const isSelectedDisputed = selectedClaimStatus?.key === "disputed";
|
|
161
|
+
const checkSurveyCompleteness = useCallback((model) => {
|
|
162
|
+
const allRequired = model.getAllQuestions(true).filter((q) => q.isRequired);
|
|
163
|
+
const isComplete = allRequired.length === 0 || allRequired.every((q) => !q.isEmpty());
|
|
164
|
+
setSurveyComplete(isComplete);
|
|
165
|
+
}, []);
|
|
166
|
+
const surveyModel = useMemo(() => {
|
|
167
|
+
if (!surveyJson) return null;
|
|
168
|
+
const model = new SurveyModel(surveyJson);
|
|
169
|
+
model.applyTheme(surveyTheme);
|
|
170
|
+
model.showQuestionNumbers = "off";
|
|
171
|
+
if (provideSigningHandler) {
|
|
172
|
+
model.showCompleteButton = false;
|
|
173
|
+
model.showCompletedPage = false;
|
|
174
|
+
const reviewEl = model.getQuestionByName("reviewAndSubmit") || model.getPanelByName("reviewAndSubmit");
|
|
175
|
+
if (reviewEl) reviewEl.visible = false;
|
|
176
|
+
const reviewMsg = model.getQuestionByName("reviewMessage");
|
|
177
|
+
if (reviewMsg) reviewMsg.visible = false;
|
|
178
|
+
}
|
|
179
|
+
if (handlersRef.current.uploadClaimFile) {
|
|
180
|
+
for (const q of model.getAllQuestions()) {
|
|
181
|
+
if (q.getType?.() === "file") {
|
|
182
|
+
q.storeDataAsText = false;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
model.onUploadFiles.add((_sender, options) => {
|
|
186
|
+
const uploader = handlersRef.current.uploadClaimFile;
|
|
187
|
+
if (!uploader) {
|
|
188
|
+
options.callback([], ["File upload is not supported"]);
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
Promise.all(options.files.map((file) => uploader(file, collectionId, { entityDid: deedDid }))).then((results) => {
|
|
192
|
+
options.callback(options.files.map((file, i) => ({ file, content: results[i].content })));
|
|
193
|
+
}).catch((err) => {
|
|
194
|
+
console.error("[Claim] file upload failed", err);
|
|
195
|
+
options.callback([], [err instanceof Error ? err.message : "File upload failed"]);
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
if (prefillData) {
|
|
200
|
+
model.data = prefillData?.credentialSubject ?? prefillData;
|
|
201
|
+
}
|
|
202
|
+
return model;
|
|
203
|
+
}, [surveyJson, provideSigningHandler, prefillData, collectionId, deedDid]);
|
|
204
|
+
const mediaBlobCacheRef = useRef(/* @__PURE__ */ new Map());
|
|
205
|
+
useEffect(() => {
|
|
206
|
+
return () => {
|
|
207
|
+
for (const blobUrl of mediaBlobCacheRef.current.values()) URL.revokeObjectURL(blobUrl);
|
|
208
|
+
mediaBlobCacheRef.current.clear();
|
|
209
|
+
};
|
|
210
|
+
}, []);
|
|
211
|
+
const detailSurveyModel = useMemo(() => {
|
|
212
|
+
if (!surveyJson || !selectedClaimData) return null;
|
|
213
|
+
const model = new SurveyModel(surveyJson);
|
|
214
|
+
model.applyTheme(surveyTheme);
|
|
215
|
+
model.showQuestionNumbers = "off";
|
|
216
|
+
model.questionsOnPageMode = "singlePage";
|
|
217
|
+
model.mode = "display";
|
|
218
|
+
const fetcher = handlersRef.current.fetchClaimMedia;
|
|
219
|
+
if (fetcher) {
|
|
220
|
+
const cache = mediaBlobCacheRef.current;
|
|
221
|
+
for (const q of model.getAllQuestions()) {
|
|
222
|
+
if (q.getType?.() === "file") {
|
|
223
|
+
q.storeDataAsText = false;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
model.onDownloadFile.add((_sender, options) => {
|
|
227
|
+
const src = options?.content;
|
|
228
|
+
if (typeof src !== "string" || !/^https?:/i.test(src)) {
|
|
229
|
+
options.callback("success", src);
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
const cached = cache.get(src);
|
|
233
|
+
if (cached) {
|
|
234
|
+
options.callback("success", cached);
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
fetcher(src, { entityDid: deedDid }).then((blob) => {
|
|
238
|
+
const blobUrl = URL.createObjectURL(blob);
|
|
239
|
+
cache.set(src, blobUrl);
|
|
240
|
+
options.callback("success", blobUrl);
|
|
241
|
+
}).catch((err) => {
|
|
242
|
+
console.error("[Claim] fetchClaimMedia failed", src, err);
|
|
243
|
+
options.callback("error");
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
const cs = selectedClaimData?.credentialSubject ?? selectedClaimData;
|
|
248
|
+
model.data = cs && typeof cs === "object" ? resolveFilesInCredentialSubject(cs) : cs;
|
|
249
|
+
return model;
|
|
250
|
+
}, [surveyJson, selectedClaimData, deedDid]);
|
|
251
|
+
const openSurveyId = `claim-action:${block.id}:new`;
|
|
252
|
+
const openSurveyTitle = `Submit Claim${block?.props?.title ? ` \u2014 ${block.props.title}` : ""}`;
|
|
253
|
+
useRegisterOpenSurvey({
|
|
254
|
+
id: openSurveyId,
|
|
255
|
+
title: openSurveyTitle,
|
|
256
|
+
source: "panel",
|
|
257
|
+
schema: surveyJson,
|
|
258
|
+
context: {
|
|
259
|
+
flowType: "claim-submission",
|
|
260
|
+
blockId: block.id,
|
|
261
|
+
blockTitle: block?.props?.title,
|
|
262
|
+
blockType: "action",
|
|
263
|
+
deedId: deedDid,
|
|
264
|
+
collectionId,
|
|
265
|
+
...getFlowRoomContext(editor)
|
|
266
|
+
},
|
|
267
|
+
model: surveyModel,
|
|
268
|
+
enabled: !!surveyModel && !selectedClaimId
|
|
269
|
+
});
|
|
270
|
+
useEffect(() => {
|
|
271
|
+
if (!registerRuntimeInputs) return;
|
|
272
|
+
registerRuntimeInputs({ adminAddress, claimStarted: !!surveyJson && !selectedClaimId });
|
|
273
|
+
}, [registerRuntimeInputs, adminAddress, surveyJson, selectedClaimId]);
|
|
274
|
+
useEffect(() => {
|
|
275
|
+
if (!unlockSigning) return;
|
|
276
|
+
unlockSigning((actAs.actAsGroup || isServiceAgentAuthorized) && !!surveyModel && !!adminAddress && surveyComplete && !selectedClaimId && actAsGroupReady(actAs));
|
|
277
|
+
}, [unlockSigning, isServiceAgentAuthorized, surveyModel, adminAddress, surveyComplete, selectedClaimId, actAs]);
|
|
278
|
+
useEffect(() => {
|
|
279
|
+
if (!surveyModel) {
|
|
280
|
+
setSurveyComplete(false);
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
const handler = () => checkSurveyCompleteness(surveyModel);
|
|
284
|
+
surveyModel.onValueChanged.add(handler);
|
|
285
|
+
surveyModel.onCurrentPageChanged.add(handler);
|
|
286
|
+
checkSurveyCompleteness(surveyModel);
|
|
287
|
+
return () => {
|
|
288
|
+
surveyModel.onValueChanged.remove(handler);
|
|
289
|
+
surveyModel.onCurrentPageChanged.remove(handler);
|
|
290
|
+
};
|
|
291
|
+
}, [surveyModel, checkSurveyCompleteness]);
|
|
292
|
+
useEffect(() => {
|
|
293
|
+
if (!provideSigningHandler || !surveyModel) return;
|
|
294
|
+
provideSigningHandler(async () => {
|
|
295
|
+
surveyModel.tryComplete();
|
|
296
|
+
});
|
|
297
|
+
}, [provideSigningHandler, surveyModel]);
|
|
298
|
+
const fetchClaimsAndAdmin = useCallback(async () => {
|
|
299
|
+
if (!deedDid || !collectionId || !actorDid) return;
|
|
300
|
+
const handlers2 = handlersRef.current;
|
|
301
|
+
setLoadingClaims(true);
|
|
302
|
+
setError(null);
|
|
303
|
+
try {
|
|
304
|
+
const [claimsResponse, collectionsResponse] = await Promise.all([
|
|
305
|
+
handlers2.getClaimsPerUserAddress({ collectionId, userAddress: actorDid }),
|
|
306
|
+
handlers2.getClaimCollections(deedDid)
|
|
307
|
+
]);
|
|
308
|
+
const fetchedClaims = Array.isArray(claimsResponse) ? claimsResponse : [];
|
|
309
|
+
console.log(
|
|
310
|
+
"[Claim/SA] status breakdown:",
|
|
311
|
+
fetchedClaims.map((c) => ({
|
|
312
|
+
claimId: c.claimId,
|
|
313
|
+
evalStatus: c.evaluationByClaimId?.status,
|
|
314
|
+
disputeBySubjectId: c.disputeBySubjectId,
|
|
315
|
+
resolvedKey: getClaimStatusInfo(c).key
|
|
316
|
+
}))
|
|
317
|
+
);
|
|
318
|
+
setClaims(fetchedClaims);
|
|
319
|
+
const resolvedAdmin = collectionsResponse?.collections?.find?.((c) => c?.id === collectionId)?.admin || collectionsResponse?.adminAddress || "";
|
|
320
|
+
setAdminAddress(resolvedAdmin);
|
|
321
|
+
} catch (err) {
|
|
322
|
+
setClaims([]);
|
|
323
|
+
setAdminAddress("");
|
|
324
|
+
setError(err instanceof Error ? err.message : t("actionTypes.claim.flow.errors.loadClaimData", { defaultValue: "Failed to load claim data" }));
|
|
325
|
+
} finally {
|
|
326
|
+
setLoadingClaims(false);
|
|
327
|
+
}
|
|
328
|
+
}, [deedDid, collectionId, actorDid]);
|
|
329
|
+
useEffect(() => {
|
|
330
|
+
setSurveyJson(null);
|
|
331
|
+
setPrefillData(null);
|
|
332
|
+
setSelectedClaimId("");
|
|
333
|
+
setError(null);
|
|
334
|
+
}, [deedDid, collectionId]);
|
|
335
|
+
useEffect(() => {
|
|
336
|
+
if (!deedDid || !collectionId || !actorDid) return;
|
|
337
|
+
fetchClaimsAndAdmin();
|
|
338
|
+
}, [deedDid, collectionId, actorDid, fetchClaimsAndAdmin]);
|
|
339
|
+
useEffect(() => {
|
|
340
|
+
let mounted = true;
|
|
341
|
+
const dids = Array.from(new Set(claims.map((claim) => claim.agentDid).filter(Boolean)));
|
|
342
|
+
const missing = dids.filter((did) => !profilesByDid[did]);
|
|
343
|
+
if (missing.length === 0)
|
|
344
|
+
return () => {
|
|
345
|
+
mounted = false;
|
|
346
|
+
};
|
|
347
|
+
const loadProfiles = async () => {
|
|
348
|
+
const handlers2 = handlersRef.current;
|
|
349
|
+
const results = await Promise.all(
|
|
350
|
+
missing.map(async (did) => {
|
|
351
|
+
try {
|
|
352
|
+
const profile = await handlers2.getMatrixInfoPerDid(did);
|
|
353
|
+
return [did, profile];
|
|
354
|
+
} catch {
|
|
355
|
+
return [did, null];
|
|
356
|
+
}
|
|
357
|
+
})
|
|
358
|
+
);
|
|
359
|
+
if (!mounted) return;
|
|
360
|
+
setProfilesByDid((prev) => {
|
|
361
|
+
const next = { ...prev };
|
|
362
|
+
results.forEach(([did, profile]) => {
|
|
363
|
+
if (profile) {
|
|
364
|
+
next[did] = profile;
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
return next;
|
|
368
|
+
});
|
|
369
|
+
};
|
|
370
|
+
loadProfiles();
|
|
371
|
+
return () => {
|
|
372
|
+
mounted = false;
|
|
373
|
+
};
|
|
374
|
+
}, [claims, profilesByDid]);
|
|
375
|
+
useEffect(() => {
|
|
376
|
+
let mounted = true;
|
|
377
|
+
const checkServiceAgentAuthorization = async () => {
|
|
378
|
+
const handlers2 = handlersRef.current;
|
|
379
|
+
if (!deedDid || !collectionId || !adminAddress || !actorDid) {
|
|
380
|
+
if (mounted) {
|
|
381
|
+
setIsServiceAgentAuthorized(false);
|
|
382
|
+
setAuthError(null);
|
|
383
|
+
setAuthChecking(false);
|
|
384
|
+
}
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
if (typeof handlers2.getUserRoles !== "function") {
|
|
388
|
+
if (mounted) {
|
|
389
|
+
setIsServiceAgentAuthorized(false);
|
|
390
|
+
setAuthError(null);
|
|
391
|
+
setAuthChecking(false);
|
|
392
|
+
}
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
setAuthChecking(true);
|
|
396
|
+
setAuthError(null);
|
|
397
|
+
try {
|
|
398
|
+
const roles = await handlers2.getUserRoles({
|
|
399
|
+
userAddress: actorDid,
|
|
400
|
+
adminAddress,
|
|
401
|
+
deedDid,
|
|
402
|
+
collectionIds: [collectionId]
|
|
403
|
+
});
|
|
404
|
+
const role = roles?.find((r) => r.collectionId === collectionId)?.role || null;
|
|
405
|
+
if (mounted) {
|
|
406
|
+
setIsServiceAgentAuthorized(role === "SA" /* ServiceProvider */);
|
|
407
|
+
setAuthError(null);
|
|
408
|
+
}
|
|
409
|
+
} catch (err) {
|
|
410
|
+
if (mounted) {
|
|
411
|
+
setIsServiceAgentAuthorized(false);
|
|
412
|
+
setAuthError(err instanceof Error ? err.message : t("actionTypes.claim.flow.errors.verifyAuth", { defaultValue: "Failed to verify authorization" }));
|
|
413
|
+
}
|
|
414
|
+
} finally {
|
|
415
|
+
if (mounted) {
|
|
416
|
+
setAuthChecking(false);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
checkServiceAgentAuthorization();
|
|
421
|
+
return () => {
|
|
422
|
+
mounted = false;
|
|
423
|
+
};
|
|
424
|
+
}, [actorDid, adminAddress, deedDid, collectionId, authRetryKey]);
|
|
425
|
+
useEffect(() => {
|
|
426
|
+
if (!selectedClaim) {
|
|
427
|
+
setSelectedClaimData(null);
|
|
428
|
+
setDisputeDetails(null);
|
|
429
|
+
return;
|
|
430
|
+
}
|
|
431
|
+
let cancelled = false;
|
|
432
|
+
const loadDetail = async () => {
|
|
433
|
+
const handlers2 = handlersRef.current;
|
|
434
|
+
setLoadingClaimDetail(true);
|
|
435
|
+
setError(null);
|
|
436
|
+
try {
|
|
437
|
+
const [claimDataResult, templateResult] = await Promise.all([
|
|
438
|
+
handlers2.getClaimData(collectionId, selectedClaim.claimId, { entityDid: deedDid }),
|
|
439
|
+
surveyJson ? Promise.resolve({ surveyTemplate: surveyJson }) : handlers2.getDeedSurveyTemplate(deedDid, collectionId)
|
|
440
|
+
]);
|
|
441
|
+
if (cancelled) return;
|
|
442
|
+
setSelectedClaimData(claimDataResult || null);
|
|
443
|
+
if (!surveyJson && templateResult?.surveyTemplate) {
|
|
444
|
+
setSurveyJson(templateResult.surveyTemplate);
|
|
445
|
+
}
|
|
446
|
+
} catch (err) {
|
|
447
|
+
if (!cancelled) setError(err instanceof Error ? err.message : t("actionTypes.claim.flow.errors.loadClaimDetails", { defaultValue: "Failed to load claim details" }));
|
|
448
|
+
} finally {
|
|
449
|
+
if (!cancelled) setLoadingClaimDetail(false);
|
|
450
|
+
}
|
|
451
|
+
if (getClaimStatusInfo(selectedClaim).key === "disputed" && typeof handlers2.getClaimDisputeDetails === "function") {
|
|
452
|
+
setLoadingDispute(true);
|
|
453
|
+
try {
|
|
454
|
+
const details = await handlers2.getClaimDisputeDetails(selectedClaim.claimId);
|
|
455
|
+
if (!cancelled) setDisputeDetails(details);
|
|
456
|
+
} catch {
|
|
457
|
+
if (!cancelled) setDisputeDetails(null);
|
|
458
|
+
} finally {
|
|
459
|
+
if (!cancelled) setLoadingDispute(false);
|
|
460
|
+
}
|
|
461
|
+
} else {
|
|
462
|
+
setDisputeDetails(null);
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
loadDetail();
|
|
466
|
+
return () => {
|
|
467
|
+
cancelled = true;
|
|
468
|
+
};
|
|
469
|
+
}, [selectedClaim, collectionId, deedDid, surveyJson]);
|
|
470
|
+
const amendAndResubmit = useCallback(() => {
|
|
471
|
+
if (!selectedClaimData) return;
|
|
472
|
+
setPrefillData(selectedClaimData);
|
|
473
|
+
setSelectedClaimId("");
|
|
474
|
+
}, [selectedClaimData]);
|
|
475
|
+
const startSurvey = useCallback(async () => {
|
|
476
|
+
if (!deedDid) return;
|
|
477
|
+
const handlers2 = handlersRef.current;
|
|
478
|
+
setLoadingSurvey(true);
|
|
479
|
+
setError(null);
|
|
480
|
+
setPrefillData(null);
|
|
481
|
+
try {
|
|
482
|
+
const template = await handlers2.getDeedSurveyTemplate(deedDid, collectionId);
|
|
483
|
+
if (!template?.surveyTemplate) {
|
|
484
|
+
setSurveyJson(null);
|
|
485
|
+
setError(t("actionTypes.claim.flow.errors.noSurveyTemplate", { defaultValue: "No survey template found for this {{did}}", did: "DID" }));
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
setSurveyJson(template.surveyTemplate);
|
|
489
|
+
} catch (err) {
|
|
490
|
+
setSurveyJson(null);
|
|
491
|
+
setError(err instanceof Error ? err.message : t("actionTypes.shared.errors.surveyTemplateLoad", { defaultValue: "Failed to load survey template" }));
|
|
492
|
+
} finally {
|
|
493
|
+
setLoadingSurvey(false);
|
|
494
|
+
}
|
|
495
|
+
}, [deedDid, collectionId]);
|
|
496
|
+
const handleSurveyComplete = useCallback(
|
|
497
|
+
async (sender) => {
|
|
498
|
+
if (authChecking || !isServiceAgentAuthorized && !actAs.actAsGroup) {
|
|
499
|
+
setError(t("actionTypes.claim.flow.errors.notAuthorized", { defaultValue: "You need service agent authorization for this collection to submit claims." }));
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
if (!adminAddress) {
|
|
503
|
+
setError(t("actionTypes.claim.flow.errors.noAdminAddress", { defaultValue: "Admin address could not be resolved for this collection" }));
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
506
|
+
if (!executeAction) {
|
|
507
|
+
setError(t("actionTypes.claim.flow.errors.actionNotRegistered", { defaultValue: "Claim action executor is unavailable" }));
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
510
|
+
const submissionProps = {
|
|
511
|
+
flowType: "claim-submission",
|
|
512
|
+
entityDid: handlers.getEntityDid?.(),
|
|
513
|
+
...getFlowRoomContext(editor),
|
|
514
|
+
blockId: block.id,
|
|
515
|
+
blockTitle: block?.props?.title,
|
|
516
|
+
blockLabel: buildBlockLabel(block.id, block?.props?.title),
|
|
517
|
+
deedId: deedDid,
|
|
518
|
+
collectionId
|
|
519
|
+
};
|
|
520
|
+
let submittedEmitted = false;
|
|
521
|
+
setSubmitting(true);
|
|
522
|
+
setError(null);
|
|
523
|
+
try {
|
|
524
|
+
handlers.onAnalyticsEvent?.("editor_flow_submission_attempted", submissionProps);
|
|
525
|
+
const outcome = await executeAction({
|
|
526
|
+
runtimeInputs: {
|
|
527
|
+
...actAsGroupRuntimeInputs(actAs),
|
|
528
|
+
deedDid,
|
|
529
|
+
collectionId,
|
|
530
|
+
adminAddress,
|
|
531
|
+
surveyAnswers: sender.data
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
if (!outcome.success) {
|
|
535
|
+
throw new Error(outcome.error || t("actionTypes.claim.flow.errors.executionFailed", { defaultValue: "Claim execution failed" }));
|
|
536
|
+
}
|
|
537
|
+
handlers.onAnalyticsEvent?.("editor_flow_submitted", {
|
|
538
|
+
...submissionProps,
|
|
539
|
+
claimId: outcome.output?.claimId
|
|
540
|
+
});
|
|
541
|
+
submittedEmitted = true;
|
|
542
|
+
setSurveyJson(null);
|
|
543
|
+
setPrefillData(null);
|
|
544
|
+
setClaimsExpanded(true);
|
|
545
|
+
await fetchClaimsAndAdmin();
|
|
546
|
+
} catch (err) {
|
|
547
|
+
const message = err instanceof Error ? err.message : t("actionTypes.claim.flow.errors.submitFailed", { defaultValue: "Failed to submit claim" });
|
|
548
|
+
if (!submittedEmitted) {
|
|
549
|
+
handlers.onAnalyticsEvent?.("editor_flow_submission_failed", { ...submissionProps, reason: message });
|
|
550
|
+
}
|
|
551
|
+
setError(message);
|
|
552
|
+
} finally {
|
|
553
|
+
setSubmitting(false);
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
[adminAddress, actorDid, block.id, collectionId, deedDid, editor, executeAction, fetchClaimsAndAdmin, handlers, authChecking, isServiceAgentAuthorized, actAs]
|
|
557
|
+
);
|
|
558
|
+
useEffect(() => {
|
|
559
|
+
if (!surveyModel) return void 0;
|
|
560
|
+
surveyModel.onComplete.add(handleSurveyComplete);
|
|
561
|
+
return () => {
|
|
562
|
+
surveyModel.onComplete.remove(handleSurveyComplete);
|
|
563
|
+
};
|
|
564
|
+
}, [surveyModel, handleSurveyComplete]);
|
|
565
|
+
useEffect(() => {
|
|
566
|
+
return attachSurveyAnalytics({
|
|
567
|
+
model: surveyModel,
|
|
568
|
+
handlers,
|
|
569
|
+
flowType: "claim-submission",
|
|
570
|
+
sectionName: "claim-survey",
|
|
571
|
+
extraProps: {
|
|
572
|
+
entityDid: handlers?.getEntityDid?.(),
|
|
573
|
+
...getFlowRoomContext(editor),
|
|
574
|
+
blockId: block.id,
|
|
575
|
+
blockTitle: block?.props?.title,
|
|
576
|
+
blockLabel: buildBlockLabel(block.id, block?.props?.title),
|
|
577
|
+
deedId: deedDid,
|
|
578
|
+
collectionId
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
}, [surveyModel, handlers, editor, deedDid, collectionId, block.id, block?.props?.title]);
|
|
582
|
+
if (selectedClaim) {
|
|
583
|
+
return /* @__PURE__ */ React.createElement(Stack, { gap: "md" }, /* @__PURE__ */ React.createElement(Group, { gap: "xs", align: "center" }, /* @__PURE__ */ React.createElement(ActionIcon, { variant: "subtle", color: "gray", size: "sm", onClick: () => setSelectedClaimId("") }, /* @__PURE__ */ React.createElement(IconArrowLeft, { size: 16 })), /* @__PURE__ */ React.createElement(Text, { fw: 500, size: "sm", title: selectedClaim.claimId }, t("actionTypes.claim.flow.claimNumber", { id: truncateId(selectedClaim.claimId), defaultValue: `Claim #${truncateId(selectedClaim.claimId)}` }))), selectedClaimStatus && /* @__PURE__ */ React.createElement(Group, { gap: "xs", align: "center" }, /* @__PURE__ */ React.createElement(Text, { size: "sm", c: "dimmed" }, t("actionTypes.claim.flow.statusLabel", { defaultValue: "Status:" })), /* @__PURE__ */ React.createElement(Text, { fw: 500, size: "sm", c: selectedClaimStatus.color }, selectedClaimStatus.label), /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed" }, "\xB7 ", getTimeAgo(selectedClaim.submissionDate || ""))), isSelectedDisputed && /* @__PURE__ */ React.createElement(DismissibleAlert, { color: "orange", title: t("actionTypes.claim.flow.disputed.title", { defaultValue: "Claim disputed" }), styles: actionAlertStyles }, loadingDispute ? /* @__PURE__ */ React.createElement(Group, { gap: "xs" }, /* @__PURE__ */ React.createElement(Loader, { size: "xs" }), /* @__PURE__ */ React.createElement(Text, { size: "xs" }, t("actionTypes.claim.flow.disputed.loadingDetails", { defaultValue: "Loading dispute details\u2026" }))) : disputeDetails ? /* @__PURE__ */ React.createElement(Stack, { gap: 6 }, disputeDetails.reason ? /* @__PURE__ */ React.createElement(Text, { size: "sm" }, disputeDetails.reason) : /* @__PURE__ */ React.createElement(Text, { size: "sm", c: "dimmed" }, t("actionTypes.claim.flow.disputed.noMessage", { defaultValue: "The evaluator disputed this claim but did not provide a message." })), (disputeDetails.evaluatorDid || disputeDetails.disputedAt) && /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed" }, disputeDetails.evaluatorDid ? t("actionTypes.claim.flow.disputed.byEvaluator", {
|
|
584
|
+
address: truncateAddress(disputeDetails.evaluatorDid),
|
|
585
|
+
defaultValue: `By ${truncateAddress(disputeDetails.evaluatorDid)}`
|
|
586
|
+
}) : "", disputeDetails.evaluatorDid && disputeDetails.disputedAt ? " \xB7 " : "", disputeDetails.disputedAt ? new Date(disputeDetails.disputedAt).toLocaleString() : ""), /* @__PURE__ */ React.createElement(BasePrimaryButton, { onClick: amendAndResubmit, disabled: isDisabled || submitting || !isServiceAgentAuthorized || !selectedClaimData }, t("actionTypes.claim.flow.disputed.amendAndResubmit", { defaultValue: "Amend & Resubmit" }))) : typeof handlers.getClaimDisputeDetails !== "function" ? /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.disputed.unavailable", { defaultValue: "Dispute details unavailable in this environment." })) : /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.disputed.noRecord", { defaultValue: "No dispute record found on-chain for this claim." }))), loadingClaimDetail ? /* @__PURE__ */ React.createElement(Group, { gap: "xs" }, /* @__PURE__ */ React.createElement(Loader, { size: "xs" }), /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.loadingSubmission", { defaultValue: "Loading submission\u2026" }))) : detailSurveyModel ? /* @__PURE__ */ React.createElement(StableSurvey, { model: detailSurveyModel }) : /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.noSubmissionData", { defaultValue: "No submission data available." })), error && /* @__PURE__ */ React.createElement(DismissibleAlert, { color: "red", styles: actionAlertStyles }, error));
|
|
587
|
+
}
|
|
588
|
+
return /* @__PURE__ */ React.createElement(Stack, { gap: "md" }, /* @__PURE__ */ React.createElement(GroupProposalStatus, { editor, block, runtime }), runtime?.state !== "awaiting_readback" && /* @__PURE__ */ React.createElement(
|
|
589
|
+
ActAsGroupSection,
|
|
590
|
+
{
|
|
591
|
+
value: actAs,
|
|
592
|
+
onChange: setActAs,
|
|
593
|
+
isDisabled,
|
|
594
|
+
actionLabel: "submit this claim",
|
|
595
|
+
authzFilter: collectionId ? { requiresAuthz: "submitClaim", collectionId } : void 0
|
|
596
|
+
}
|
|
597
|
+
), !deedDid || !collectionId ? /* @__PURE__ */ React.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, t("actionTypes.shared.errors.configRequired", {
|
|
598
|
+
defaultValue: "Configure {{did}} and {{claimCollection}} in template mode before running this action.",
|
|
599
|
+
did: "DID",
|
|
600
|
+
claimCollection: "claim collection"
|
|
601
|
+
})) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed" }, t("actionTypes.shared.collectionPrefix", { id: collectionId, defaultValue: `Collection: ${collectionId}` })), loadingClaims ? /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.loadingYourClaims", { defaultValue: "Loading your claims..." })) : claims.length === 0 ? /* @__PURE__ */ React.createElement(Text, { size: "sm", c: "dimmed" }, t("actionTypes.claim.flow.noClaimsYet", { defaultValue: "No claims submitted for this collection yet." })) : /* @__PURE__ */ React.createElement(Stack, { gap: "xs" }, /* @__PURE__ */ React.createElement(UnstyledButton, { onClick: () => setClaimsExpanded((prev) => !prev), style: { color: "var(--mantine-color-text)" } }, /* @__PURE__ */ React.createElement(Group, { gap: 6, align: "center" }, /* @__PURE__ */ React.createElement(IconChevronRight, { size: 16, style: { transform: claimsExpanded ? "rotate(90deg)" : "none", transition: "transform 150ms ease", flexShrink: 0 } }), /* @__PURE__ */ React.createElement(Text, { size: "sm", fw: 600 }, t("actionTypes.claim.flow.yourClaims", { defaultValue: "Your Claims" }), " (", claims.length, ")"))), /* @__PURE__ */ React.createElement(Collapse, { in: claimsExpanded }, /* @__PURE__ */ React.createElement(Stack, { gap: "xs" }, claims.map((claim) => {
|
|
602
|
+
const status = getClaimStatusInfo(claim);
|
|
603
|
+
const profile = profilesByDid[claim.agentDid];
|
|
604
|
+
const displayName = profile?.displayname || claim.agentDid || claim.agentAddress;
|
|
605
|
+
const avatarLabel = (profile?.displayname || claim.agentDid || claim.agentAddress || "?")[0]?.toUpperCase();
|
|
606
|
+
return /* @__PURE__ */ React.createElement(ListItemContainer, { key: claim.claimId, isChecked: false, onClick: () => setSelectedClaimId(claim.claimId) }, /* @__PURE__ */ React.createElement(Group, { gap: 16, align: "center", style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React.createElement(
|
|
607
|
+
Box,
|
|
608
|
+
{
|
|
609
|
+
style: {
|
|
610
|
+
width: 32,
|
|
611
|
+
height: 32,
|
|
612
|
+
borderRadius: "50%",
|
|
613
|
+
background: "var(--mantine-color-neutralColor-4)",
|
|
614
|
+
display: "flex",
|
|
615
|
+
alignItems: "center",
|
|
616
|
+
justifyContent: "center",
|
|
617
|
+
flexShrink: 0,
|
|
618
|
+
fontSize: 14,
|
|
619
|
+
fontWeight: 500,
|
|
620
|
+
color: "var(--mantine-color-dimmed)",
|
|
621
|
+
backgroundImage: profile?.avatarUrl ? `url(${profile.avatarUrl})` : void 0,
|
|
622
|
+
backgroundSize: "cover",
|
|
623
|
+
backgroundPosition: "center"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
profile?.avatarUrl ? null : avatarLabel
|
|
627
|
+
), /* @__PURE__ */ React.createElement(Stack, { gap: 0, style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React.createElement(Text, { fw: 500, size: "md", truncate: true, style: { lineHeight: 1.5 } }, displayName), /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed", truncate: true }, truncateAddress(claim.agentAddress)))), /* @__PURE__ */ React.createElement(Stack, { gap: 0, align: "flex-end", style: { flexShrink: 0, minWidth: 80 } }, /* @__PURE__ */ React.createElement(Text, { fw: 500, size: "md", c: status.color, style: { lineHeight: 1.5 } }, status.key === "approved" && /* @__PURE__ */ React.createElement(IconCheck, { size: 14, style: { verticalAlign: "middle", marginRight: 2 } }), status.label), /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed" }, getTimeAgo(claim.submissionDate || ""))));
|
|
628
|
+
})))), prefillData && /* @__PURE__ */ React.createElement(DismissibleAlert, { color: "orange", styles: actionAlertStyles }, t("actionTypes.claim.flow.amendingNotice", { defaultValue: "Amending a previously disputed claim \u2014 edit the fields below and submit to resubmit." })), /* @__PURE__ */ React.createElement(
|
|
629
|
+
BasePrimaryButton,
|
|
630
|
+
{
|
|
631
|
+
leftSection: loadingSurvey || authChecking ? /* @__PURE__ */ React.createElement(Loader, { size: 14 }) : /* @__PURE__ */ React.createElement(IconPlayerPlay, { size: 14 }),
|
|
632
|
+
onClick: startSurvey,
|
|
633
|
+
disabled: isDisabled || loadingSurvey || submitting || authChecking || !isServiceAgentAuthorized && !actAs.actAsGroup || !adminAddress
|
|
634
|
+
},
|
|
635
|
+
authChecking ? t("actionTypes.claim.flow.checkingAuthorization", { defaultValue: "Checking authorization..." }) : loadingSurvey ? t("actionTypes.shared.loadingSurvey", { defaultValue: "Loading Survey..." }) : t("actionTypes.claim.flow.startNewClaim", { defaultValue: "Start New Claim" })
|
|
636
|
+
), !authChecking && authError && /* @__PURE__ */ React.createElement(DismissibleAlert, { color: "orange", styles: actionAlertStyles }, /* @__PURE__ */ React.createElement(Stack, { gap: "xs" }, /* @__PURE__ */ React.createElement(Text, { size: "sm" }, t("actionTypes.claim.flow.authVerifyFailed", { defaultValue: "Couldn't verify your authorization \u2014 the chain RPC is unreachable." })), /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed" }, authError), /* @__PURE__ */ React.createElement(BasePrimaryButton, { size: "xs", onClick: () => setAuthRetryKey((k) => k + 1) }, t("actionTypes.claim.flow.retry", { defaultValue: "Retry" })))), !authChecking && !authError && !isServiceAgentAuthorized && !actAs.actAsGroup && /* @__PURE__ */ React.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, t("actionTypes.claim.flow.errors.notAuthorized", { defaultValue: "You need service agent authorization for this collection to submit claims." })), surveyModel && !loadingSurvey && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SurveyAiFillButton, { surveyId: openSurveyId, title: openSurveyTitle }), /* @__PURE__ */ React.createElement(StableSurvey, { model: surveyModel }))), submitting && /* @__PURE__ */ React.createElement(Group, { gap: "xs" }, /* @__PURE__ */ React.createElement(Loader, { size: "xs" }), /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.submittingClaim", { defaultValue: "Submitting claim..." }))), error && /* @__PURE__ */ React.createElement(DismissibleAlert, { color: "red", styles: actionAlertStyles }, error));
|
|
637
|
+
};
|
|
638
|
+
export {
|
|
639
|
+
ClaimFlowDetail
|
|
640
|
+
};
|
|
641
|
+
//# sourceMappingURL=ClaimFlowDetail-UVEQMEI5.js.map
|