@ixo/editor 7.4.0 → 7.5.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-KNA5F754.js → BidConfig-7OPADSLJ.js} +10 -10
- package/dist/{BidFlowDetail-35VAQFG5.js → BidFlowDetail-CLGN6RFS.js} +15 -15
- package/dist/{CalendarEventCreateConfig-YAL6TVL4.js → CalendarEventCreateConfig-HFHRPWXW.js} +11 -11
- package/dist/{CalendarEventCreateFlowDetail-SAX5W3YK.js → CalendarEventCreateFlowDetail-ZXPHYLF4.js} +12 -12
- package/dist/{CalendarEventListConfig-DCTNJGDY.js → CalendarEventListConfig-LYPXEDYO.js} +11 -11
- package/dist/{CalendarEventListFlowDetail-UY2AZ6RC.js → CalendarEventListFlowDetail-3P5I6NWJ.js} +5 -5
- package/dist/{CalendarEventUpdateConfig-WKXJD2HV.js → CalendarEventUpdateConfig-FZNZRRCQ.js} +11 -11
- package/dist/{CalendarEventUpdateFlowDetail-7WBBCKLF.js → CalendarEventUpdateFlowDetail-SBODZKHB.js} +12 -12
- package/dist/{ClaimConfig-FFODSFKZ.js → ClaimConfig-T7KRYXOU.js} +13 -13
- package/dist/{ClaimFlowDetail-KYQN7T3O.js → ClaimFlowDetail-DI27NHDH.js} +15 -15
- package/dist/{CollectionLifecycleConfig-QB6IPNQH.js → CollectionLifecycleConfig-SLU7TWJI.js} +4 -4
- package/dist/{CollectionLifecycleFlowDetail-IS67MULY.js → CollectionLifecycleFlowDetail-NHMR566C.js} +14 -14
- package/dist/{CollectionUsersConfig-PKS552AQ.js → CollectionUsersConfig-XUIJ6DSW.js} +10 -10
- package/dist/{CollectionUsersFlowDetail-E26KNRRR.js → CollectionUsersFlowDetail-IM3YWT6E.js} +16 -16
- package/dist/{CredentialStoreConfig-HTO27S4R.js → CredentialStoreConfig-KAST7NSD.js} +8 -8
- package/dist/{CredentialStoreFlowDetail-JWHL2EWV.js → CredentialStoreFlowDetail-FKIAQZJ7.js} +7 -7
- package/dist/{DesignPodFlowDetail-OTK2MILV.js → DesignPodFlowDetail-UXGGFJRH.js} +5 -5
- package/dist/{DomainCardPreviewFlowDetail-HTMQUADZ.js → DomainCardPreviewFlowDetail-IT2OJF46.js} +7 -7
- package/dist/{DomainIndexerLookupFlowDetail-OVE2U2SJ.js → DomainIndexerLookupFlowDetail-Y7JRRKD5.js} +5 -5
- package/dist/{DomainSignFlowDetail-RGX4ZLLZ.js → DomainSignFlowDetail-T5PZHM6M.js} +8 -8
- package/dist/{DomainSingleSelectionConfig-TW5CQXD5.js → DomainSingleSelectionConfig-H7RSNYC2.js} +4 -4
- package/dist/{DomainSingleSelectionFlowDetail-LATPKYGI.js → DomainSingleSelectionFlowDetail-JHSD5G3A.js} +5 -5
- package/dist/{EmailSendConfig-WK3N3Y5H.js → EmailSendConfig-6RJNKNVV.js} +10 -10
- package/dist/{EntityCreateOracleFlowDetail-BX3663I6.js → EntityCreateOracleFlowDetail-LZPSS3GS.js} +7 -7
- package/dist/{EntitySingleSelectionFlowDetail-44E7FIAF.js → EntitySingleSelectionFlowDetail-HMCMVXKR.js} +5 -5
- package/dist/{EntityTransferFlowDetail-UED7MVTT.js → EntityTransferFlowDetail-RSFDF5PB.js} +7 -7
- package/dist/{EvalEngineConfig-OLHCNPSF.js → EvalEngineConfig-7JSFDMQR.js} +16 -14
- package/dist/{EvalEngineConfig-OLHCNPSF.js.map → EvalEngineConfig-7JSFDMQR.js.map} +1 -1
- package/dist/{EvalEngineFlowDetail-VJPJH2PZ.js → EvalEngineFlowDetail-OAM3AGN2.js} +15 -13
- package/dist/{EvalEngineFlowDetail-VJPJH2PZ.js.map → EvalEngineFlowDetail-OAM3AGN2.js.map} +1 -1
- package/dist/{EvaluateBidConfig-QQTV3JMC.js → EvaluateBidConfig-WYWY3SSW.js} +10 -10
- package/dist/{EvaluateBidFlowDetail-TNLDTBJ4.js → EvaluateBidFlowDetail-QMSIAFG5.js} +14 -14
- package/dist/{EvaluateClaimConfig-Q56H4TIK.js → EvaluateClaimConfig-FMGZ3UG7.js} +10 -10
- package/dist/{EvaluateClaimFlowDetail-J3K2FXHT.js → EvaluateClaimFlowDetail-AL6AL5FV.js} +760 -275
- package/dist/EvaluateClaimFlowDetail-AL6AL5FV.js.map +1 -0
- package/dist/{FormSubmitFlowDetail-EWCK6AFO.js → FormSubmitFlowDetail-ICG3GSOA.js} +59 -10
- package/dist/FormSubmitFlowDetail-ICG3GSOA.js.map +1 -0
- package/dist/{GovernanceAuthzExecFlowDetail-C7SVYIHL.js → GovernanceAuthzExecFlowDetail-IW76KM4Q.js} +8 -8
- package/dist/{GovernanceAuthzGrantFlowDetail-D6ULSNL4.js → GovernanceAuthzGrantFlowDetail-BTCMC2ZN.js} +9 -9
- package/dist/{GovernanceAuthzRevokeFlowDetail-FVZZOOVR.js → GovernanceAuthzRevokeFlowDetail-7DVXQWXC.js} +9 -9
- package/dist/{GovernanceChainVoteFlowDetail-LPUYSQJI.js → GovernanceChainVoteFlowDetail-CIBRJPP6.js} +8 -8
- package/dist/{GovernanceConfigFlowDetail-WV5UCYWW.js → GovernanceConfigFlowDetail-6P7GLUT4.js} +5 -5
- package/dist/{GovernanceContractExecuteFlowDetail-N3IX6ZUE.js → GovernanceContractExecuteFlowDetail-4Q32MNXQ.js} +9 -9
- package/dist/{GovernanceContractInstantiateFlowDetail-PEG3YS3J.js → GovernanceContractInstantiateFlowDetail-GOFRJNS6.js} +9 -9
- package/dist/{GovernanceContractManageCw20FlowDetail-PGJLC6HG.js → GovernanceContractManageCw20FlowDetail-QYFC2CBY.js} +8 -8
- package/dist/{GovernanceContractMigrateFlowDetail-WAATSI24.js → GovernanceContractMigrateFlowDetail-YS575HJK.js} +9 -9
- package/dist/{GovernanceContractUpdateAdminFlowDetail-FX2MQO3P.js → GovernanceContractUpdateAdminFlowDetail-YNN5VVUN.js} +8 -8
- package/dist/{GovernanceCustomMessageFlowDetail-RKZIPQBE.js → GovernanceCustomMessageFlowDetail-AP2DYHPG.js} +9 -9
- package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-GS4K573O.js → GovernanceDaoAcceptToMarketplaceFlowDetail-WHC2GXB7.js} +9 -9
- package/dist/{GovernanceDaoAdminExecFlowDetail-5GAJ677O.js → GovernanceDaoAdminExecFlowDetail-5545VOCJ.js} +10 -10
- package/dist/{GovernanceDaoCreateEntityFlowDetail-YQBK5ZJ6.js → GovernanceDaoCreateEntityFlowDetail-QKSNQHT3.js} +9 -9
- package/dist/{GovernanceDaoJoinFlowDetail-TUWWA76P.js → GovernanceDaoJoinFlowDetail-ZIZA4CHJ.js} +9 -9
- package/dist/{GovernanceDaoManageStorageFlowDetail-ZABNXYGW.js → GovernanceDaoManageStorageFlowDetail-V7CNBFD5.js} +8 -8
- package/dist/{GovernanceDaoManageSubDaosFlowDetail-JUZOW3NX.js → GovernanceDaoManageSubDaosFlowDetail-U6HCZEWB.js} +9 -9
- package/dist/{GovernanceDaoUpdateInfoFlowDetail-GTPZETSW.js → GovernanceDaoUpdateInfoFlowDetail-YGVZWXYR.js} +8 -8
- package/dist/{GovernanceMemberProposalConfig-MYHHSBWL.js → GovernanceMemberProposalConfig-3HKKBDJ5.js} +5 -5
- package/dist/{GovernanceMemberProposalFlowDetail-NYKIPRXZ.js → GovernanceMemberProposalFlowDetail-5DYOTEMZ.js} +9 -9
- package/dist/{GovernanceNftBurnFlowDetail-V5YEWTZZ.js → GovernanceNftBurnFlowDetail-ZHL6NSBB.js} +8 -8
- package/dist/{GovernanceNftManageCollectionsFlowDetail-NV5IQJQY.js → GovernanceNftManageCollectionsFlowDetail-YKWXV6PI.js} +8 -8
- package/dist/{GovernanceNftTransferFlowDetail-MT4A3IPX.js → GovernanceNftTransferFlowDetail-SQ5ZSKIK.js} +9 -9
- package/dist/{GovernanceSettingsProposalConfig-U7SO63AZ.js → GovernanceSettingsProposalConfig-IZFFFRHS.js} +5 -5
- package/dist/{GovernanceSettingsProposalFlowDetail-A6HNAOCP.js → GovernanceSettingsProposalFlowDetail-72OGJWPM.js} +8 -8
- package/dist/{GovernanceStakingStakeFlowDetail-ANPDO5CW.js → GovernanceStakingStakeFlowDetail-TQT6JVX5.js} +8 -8
- package/dist/{GovernanceStakingStakeToGroupFlowDetail-3EXFBNXM.js → GovernanceStakingStakeToGroupFlowDetail-RHW3KT4J.js} +8 -8
- package/dist/{GovernanceSubmissionConfigProposalFlowDetail-W7J6W3CX.js → GovernanceSubmissionConfigProposalFlowDetail-ELSE6QV6.js} +8 -8
- package/dist/{GovernanceTransactionMintFlowDetail-H5T5SHDW.js → GovernanceTransactionMintFlowDetail-3I7F3FSC.js} +9 -9
- package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-T7QTOJEJ.js → GovernanceTransactionPerformTokenSwapFlowDetail-5UTYTE3P.js} +8 -8
- package/dist/{GovernanceTransactionSendFundsConfig-7GWFZYBO.js → GovernanceTransactionSendFundsConfig-UITDQIEX.js} +5 -5
- package/dist/{GovernanceTransactionSendFundsFlowDetail-SSGQKOYI.js → GovernanceTransactionSendFundsFlowDetail-FUHTFFYK.js} +9 -9
- package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-YKWCSXQO.js → GovernanceTransactionSendGroupTokenFlowDetail-JEGHRGVA.js} +9 -9
- package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-Y44MBQSJ.js → GovernanceTransactionWithdrawTokenSwapFlowDetail-IGKD3XFX.js} +8 -8
- package/dist/{GovernanceValidatorActionsFlowDetail-KVPO7XYV.js → GovernanceValidatorActionsFlowDetail-XFJM4T54.js} +8 -8
- package/dist/{HarvestConfig-WMHB3Z4M.js → HarvestConfig-MQCRQM6E.js} +9 -9
- package/dist/{HarvestFlowDetail-2E6FAG5D.js → HarvestFlowDetail-4AGZTR7Z.js} +7 -7
- package/dist/{HttpRequestConfig-MSVW46CZ.js → HttpRequestConfig-24VT44SK.js} +8 -8
- package/dist/{HttpRequestFlowDetail-AHYCCC7Z.js → HttpRequestFlowDetail-LGWILJCS.js} +5 -5
- package/dist/{IdentityCreateFlowDetail-KKQP5H6J.js → IdentityCreateFlowDetail-6UVA3GLT.js} +13 -13
- package/dist/{IidCreateFlowDetail-HZ3IBACZ.js → IidCreateFlowDetail-6DMLKXSP.js} +13 -13
- package/dist/{KycVerifyConfig-MRFKB3RS.js → KycVerifyConfig-QKU3GYXH.js} +8 -8
- package/dist/{KycVerifyFlowDetail-UL4YW23S.js → KycVerifyFlowDetail-MJB5DFB5.js} +13 -13
- package/dist/{ListDomainFlowsFlowDetail-NBTEXXR6.js → ListDomainFlowsFlowDetail-PDUSV2TD.js} +5 -5
- package/dist/{LoadBatchesFlowDetail-6B6EUQUU.js → LoadBatchesFlowDetail-SXLSDRVT.js} +7 -7
- package/dist/{MatrixDmConfig-VCECTS77.js → MatrixDmConfig-XCS2HCGZ.js} +4 -4
- package/dist/{MatrixRegisterFlowDetail-Q5GRDCJ3.js → MatrixRegisterFlowDetail-7JMBMOTF.js} +7 -7
- package/dist/{MemberMultiSelectFlowDetail-EOJ6UIUT.js → MemberMultiSelectFlowDetail-DLAKXCRC.js} +5 -5
- package/dist/{OracleConfig-QR62IIUE.js → OracleConfig-RU6N4JBF.js} +8 -8
- package/dist/{OracleConfigureOracleFlowDetail-WJM6LIC2.js → OracleConfigureOracleFlowDetail-AET56AV6.js} +13 -13
- package/dist/{OracleContractFlowDetail-LQEGQ6CN.js → OracleContractFlowDetail-4RWSGCLI.js} +7 -7
- package/dist/{OracleDeployFlowDetail-KUPXAFG2.js → OracleDeployFlowDetail-2HOKGJEO.js} +7 -7
- package/dist/{OracleDeploySetupFlowDetail-MKWUVJWU.js → OracleDeploySetupFlowDetail-AOUCBEJK.js} +7 -7
- package/dist/{OracleDeployStartFlowDetail-XUKADF5E.js → OracleDeployStartFlowDetail-5R5O54VE.js} +7 -7
- package/dist/{OracleFlowDetail-ZB4BXPMP.js → OracleFlowDetail-REP3CDHK.js} +7 -7
- package/dist/{OraclePromptFlowDetail-BJCIRJC7.js → OraclePromptFlowDetail-RWGI7Y46.js} +7 -7
- package/dist/{OracleStoreConfigFlowDetail-PUDZJ6XK.js → OracleStoreConfigFlowDetail-F2E4ZEVA.js} +7 -7
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-WWJ5EE65.js → OracleStoreSecretsAndConfigFlowDetail-6X4CPXKW.js} +13 -13
- package/dist/{OracleStoreSecretsFlowDetail-74KT4D5R.js → OracleStoreSecretsFlowDetail-DYPIPYIT.js} +13 -13
- package/dist/{ProposalCreateConfig-UKWLNGGT.js → ProposalCreateConfig-DRYE2AKJ.js} +10 -10
- package/dist/{ProposalCreateFlowDetail-HTA7MM6V.js → ProposalCreateFlowDetail-CHIA2XWY.js} +14 -14
- package/dist/{ProposalVoteConfig-GQ2EFLLM.js → ProposalVoteConfig-7UNWFROZ.js} +10 -10
- package/dist/{ProposalVoteFlowDetail-WXYSRQVM.js → ProposalVoteFlowDetail-DSMBVP3E.js} +8 -8
- package/dist/{ProtocolSelectFlowDetail-M533L2VH.js → ProtocolSelectFlowDetail-NTLOLTSO.js} +4 -4
- package/dist/{RetireConfig-TTS4O56B.js → RetireConfig-BF2DX5IS.js} +9 -9
- package/dist/{RetireFlowDetail-5MPYK3Y4.js → RetireFlowDetail-LY77O4VE.js} +7 -7
- package/dist/{SandboxProvisionFlowDetail-RQV3OVSV.js → SandboxProvisionFlowDetail-QPRFK7N3.js} +7 -7
- package/dist/{WalletFundConfig-32GHDUYC.js → WalletFundConfig-QF2D65SA.js} +5 -5
- package/dist/{WalletFundFlowDetail-BVSKFSCJ.js → WalletFundFlowDetail-CTWM57AK.js} +8 -8
- package/dist/{WalletGenerateAndFundFlowDetail-MLULHQ2V.js → WalletGenerateAndFundFlowDetail-TY3HOGEU.js} +5 -5
- package/dist/{WalletGenerateFlowDetail-EHYFCON2.js → WalletGenerateFlowDetail-F5LNH4VY.js} +5 -5
- package/dist/{XeroContactCreateConfig-F46RAJZ3.js → XeroContactCreateConfig-GTRMV4MO.js} +11 -11
- package/dist/{XeroContactCreateFlowDetail-BXZPZRN6.js → XeroContactCreateFlowDetail-4IFZRJOF.js} +12 -12
- package/dist/{XeroInvoiceCreateConfig-3C57CRA5.js → XeroInvoiceCreateConfig-HVMMNUU4.js} +11 -11
- package/dist/{XeroInvoiceCreateFlowDetail-TB5ILGFK.js → XeroInvoiceCreateFlowDetail-4UPL55DU.js} +14 -14
- package/dist/{XeroInvoiceListConfig-NJL2XCJU.js → XeroInvoiceListConfig-IMXZZTNF.js} +11 -11
- package/dist/{XeroInvoiceListFlowDetail-SW77EBQJ.js → XeroInvoiceListFlowDetail-SUWMEU7K.js} +5 -5
- package/dist/{XeroPaymentCreateConfig-36RZJ572.js → XeroPaymentCreateConfig-ONPADVHN.js} +8 -8
- package/dist/{XeroPaymentCreateFlowDetail-ASEL73SM.js → XeroPaymentCreateFlowDetail-52FOC77L.js} +13 -13
- package/dist/action-manifest.json +489 -5
- package/dist/{chunk-TWPAZA5U.js → chunk-3S6HH3LV.js} +2 -2
- package/dist/{chunk-3ZY7LBMV.js → chunk-5JEXVSJG.js} +11 -129
- package/dist/chunk-5JEXVSJG.js.map +1 -0
- package/dist/chunk-5WYFQEOS.js +49 -0
- package/dist/chunk-5WYFQEOS.js.map +1 -0
- package/dist/{chunk-BLXL5LNU.js → chunk-6332CJVF.js} +2 -2
- package/dist/{chunk-YICU2BTW.js → chunk-66EWPWA5.js} +2 -2
- package/dist/{chunk-V2K5S3GW.js → chunk-66XW6TQT.js} +580 -8
- package/dist/chunk-66XW6TQT.js.map +1 -0
- package/dist/{chunk-YSKMW5N4.js → chunk-6OBTZWYM.js} +3 -3
- package/dist/{chunk-4SNJX2WR.js → chunk-7XB6INJ4.js} +2 -2
- package/dist/{chunk-FVRGJE6M.js → chunk-ALJO4A2R.js} +2984 -860
- package/dist/chunk-ALJO4A2R.js.map +1 -0
- package/dist/{chunk-QSUE3ZFB.js → chunk-AZGVSR3T.js} +2 -2
- package/dist/{chunk-AAUAZ4YK.js → chunk-DMWXSWLO.js} +2 -2
- package/dist/{chunk-SCLMJ7FE.js → chunk-FYPDR7DJ.js} +2010 -1891
- package/dist/chunk-FYPDR7DJ.js.map +1 -0
- package/dist/{chunk-C376YPPE.js → chunk-HPHWYDGB.js} +3 -3
- package/dist/{chunk-JWC4VVY7.js → chunk-JCI46234.js} +2 -2
- package/dist/{chunk-ZWBVAYXF.js → chunk-KIAAAFZF.js} +2 -2
- package/dist/{chunk-D3OHPJQD.js → chunk-KSITH7AN.js} +3 -3
- package/dist/chunk-KSITH7AN.js.map +1 -0
- package/dist/{chunk-MY22PTP4.js → chunk-LMQT3VUE.js} +2 -2
- package/dist/{chunk-VVXNHTWA.js → chunk-M5ELO3A5.js} +2 -2
- package/dist/{chunk-RETGBEFM.js → chunk-M7XUQCKC.js} +2 -2
- package/dist/{chunk-F6BSA345.js → chunk-MDCOAGIF.js} +10 -7
- package/dist/chunk-MDCOAGIF.js.map +1 -0
- package/dist/{chunk-W2GRWAXP.js → chunk-MFUWKWMA.js} +2 -2
- package/dist/{chunk-I3BKKGB6.js → chunk-P365VW4X.js} +2 -2
- package/dist/{chunk-TOHRTMHF.js → chunk-PCRDF4BQ.js} +2 -2
- package/dist/{chunk-W6Z3HNIC.js → chunk-PNS4Y2PQ.js} +2 -2
- package/dist/{chunk-WKZQA4KR.js → chunk-PWPTKUNE.js} +2 -2
- package/dist/{chunk-EAMEGHQZ.js → chunk-SAOQXHK6.js} +2 -2
- package/dist/{chunk-MCKX6WIM.js → chunk-SI2AUBY5.js} +4 -4
- package/dist/{chunk-CMG6TZKH.js → chunk-TGRBWL3B.js} +3 -3
- package/dist/{chunk-EVCXBPHP.js → chunk-TGTS2R2O.js} +5 -5
- package/dist/{chunk-JK6RAKE3.js → chunk-UOYPASUI.js} +2 -2
- package/dist/{chunk-KRWN6IDZ.js → chunk-VD4HSZSN.js} +2 -2
- package/dist/{chunk-O365JU7B.js → chunk-VOBXFJLM.js} +2 -2
- package/dist/{chunk-M3GHFF5N.js → chunk-X5BU6FRG.js} +3 -47
- package/dist/chunk-X5BU6FRG.js.map +1 -0
- package/dist/{chunk-QW7LA67J.js → chunk-X5W725D3.js} +11 -4
- package/dist/chunk-X5W725D3.js.map +1 -0
- package/dist/{chunk-RRLKIT5M.js → chunk-XUJPJRLW.js} +2 -2
- package/dist/{connections-Dm0-mxre.d.ts → connections-Dx7agyTM.d.ts} +1 -1
- package/dist/core/index.cjs +581 -15
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +6 -4
- package/dist/core/index.js +12 -12
- package/dist/{graphql-client-VK7-KGDc.d.ts → graphql-client-VfvdQc02.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +23 -21
- package/dist/index.js.map +1 -1
- package/dist/mantine/index.d.ts +3 -3
- package/dist/mantine/index.js +22 -20
- package/dist/mantine/index.js.map +1 -1
- package/dist/{types-CYtPUWc7.d.ts → types-BjlQ_0i3.d.ts} +590 -0
- package/package.json +1 -1
- package/dist/EvaluateClaimFlowDetail-J3K2FXHT.js.map +0 -1
- package/dist/FormSubmitFlowDetail-EWCK6AFO.js.map +0 -1
- package/dist/chunk-3ZY7LBMV.js.map +0 -1
- package/dist/chunk-D3OHPJQD.js.map +0 -1
- package/dist/chunk-F6BSA345.js.map +0 -1
- package/dist/chunk-FVRGJE6M.js.map +0 -1
- package/dist/chunk-M3GHFF5N.js.map +0 -1
- package/dist/chunk-QW7LA67J.js.map +0 -1
- package/dist/chunk-SCLMJ7FE.js.map +0 -1
- package/dist/chunk-V2K5S3GW.js.map +0 -1
- /package/dist/{BidConfig-KNA5F754.js.map → BidConfig-7OPADSLJ.js.map} +0 -0
- /package/dist/{BidFlowDetail-35VAQFG5.js.map → BidFlowDetail-CLGN6RFS.js.map} +0 -0
- /package/dist/{CalendarEventCreateConfig-YAL6TVL4.js.map → CalendarEventCreateConfig-HFHRPWXW.js.map} +0 -0
- /package/dist/{CalendarEventCreateFlowDetail-SAX5W3YK.js.map → CalendarEventCreateFlowDetail-ZXPHYLF4.js.map} +0 -0
- /package/dist/{CalendarEventListConfig-DCTNJGDY.js.map → CalendarEventListConfig-LYPXEDYO.js.map} +0 -0
- /package/dist/{CalendarEventListFlowDetail-UY2AZ6RC.js.map → CalendarEventListFlowDetail-3P5I6NWJ.js.map} +0 -0
- /package/dist/{CalendarEventUpdateConfig-WKXJD2HV.js.map → CalendarEventUpdateConfig-FZNZRRCQ.js.map} +0 -0
- /package/dist/{CalendarEventUpdateFlowDetail-7WBBCKLF.js.map → CalendarEventUpdateFlowDetail-SBODZKHB.js.map} +0 -0
- /package/dist/{ClaimConfig-FFODSFKZ.js.map → ClaimConfig-T7KRYXOU.js.map} +0 -0
- /package/dist/{ClaimFlowDetail-KYQN7T3O.js.map → ClaimFlowDetail-DI27NHDH.js.map} +0 -0
- /package/dist/{CollectionLifecycleConfig-QB6IPNQH.js.map → CollectionLifecycleConfig-SLU7TWJI.js.map} +0 -0
- /package/dist/{CollectionLifecycleFlowDetail-IS67MULY.js.map → CollectionLifecycleFlowDetail-NHMR566C.js.map} +0 -0
- /package/dist/{CollectionUsersConfig-PKS552AQ.js.map → CollectionUsersConfig-XUIJ6DSW.js.map} +0 -0
- /package/dist/{CollectionUsersFlowDetail-E26KNRRR.js.map → CollectionUsersFlowDetail-IM3YWT6E.js.map} +0 -0
- /package/dist/{CredentialStoreConfig-HTO27S4R.js.map → CredentialStoreConfig-KAST7NSD.js.map} +0 -0
- /package/dist/{CredentialStoreFlowDetail-JWHL2EWV.js.map → CredentialStoreFlowDetail-FKIAQZJ7.js.map} +0 -0
- /package/dist/{DesignPodFlowDetail-OTK2MILV.js.map → DesignPodFlowDetail-UXGGFJRH.js.map} +0 -0
- /package/dist/{DomainCardPreviewFlowDetail-HTMQUADZ.js.map → DomainCardPreviewFlowDetail-IT2OJF46.js.map} +0 -0
- /package/dist/{DomainIndexerLookupFlowDetail-OVE2U2SJ.js.map → DomainIndexerLookupFlowDetail-Y7JRRKD5.js.map} +0 -0
- /package/dist/{DomainSignFlowDetail-RGX4ZLLZ.js.map → DomainSignFlowDetail-T5PZHM6M.js.map} +0 -0
- /package/dist/{DomainSingleSelectionConfig-TW5CQXD5.js.map → DomainSingleSelectionConfig-H7RSNYC2.js.map} +0 -0
- /package/dist/{DomainSingleSelectionFlowDetail-LATPKYGI.js.map → DomainSingleSelectionFlowDetail-JHSD5G3A.js.map} +0 -0
- /package/dist/{EmailSendConfig-WK3N3Y5H.js.map → EmailSendConfig-6RJNKNVV.js.map} +0 -0
- /package/dist/{EntityCreateOracleFlowDetail-BX3663I6.js.map → EntityCreateOracleFlowDetail-LZPSS3GS.js.map} +0 -0
- /package/dist/{EntitySingleSelectionFlowDetail-44E7FIAF.js.map → EntitySingleSelectionFlowDetail-HMCMVXKR.js.map} +0 -0
- /package/dist/{EntityTransferFlowDetail-UED7MVTT.js.map → EntityTransferFlowDetail-RSFDF5PB.js.map} +0 -0
- /package/dist/{EvaluateBidConfig-QQTV3JMC.js.map → EvaluateBidConfig-WYWY3SSW.js.map} +0 -0
- /package/dist/{EvaluateBidFlowDetail-TNLDTBJ4.js.map → EvaluateBidFlowDetail-QMSIAFG5.js.map} +0 -0
- /package/dist/{EvaluateClaimConfig-Q56H4TIK.js.map → EvaluateClaimConfig-FMGZ3UG7.js.map} +0 -0
- /package/dist/{GovernanceAuthzExecFlowDetail-C7SVYIHL.js.map → GovernanceAuthzExecFlowDetail-IW76KM4Q.js.map} +0 -0
- /package/dist/{GovernanceAuthzGrantFlowDetail-D6ULSNL4.js.map → GovernanceAuthzGrantFlowDetail-BTCMC2ZN.js.map} +0 -0
- /package/dist/{GovernanceAuthzRevokeFlowDetail-FVZZOOVR.js.map → GovernanceAuthzRevokeFlowDetail-7DVXQWXC.js.map} +0 -0
- /package/dist/{GovernanceChainVoteFlowDetail-LPUYSQJI.js.map → GovernanceChainVoteFlowDetail-CIBRJPP6.js.map} +0 -0
- /package/dist/{GovernanceConfigFlowDetail-WV5UCYWW.js.map → GovernanceConfigFlowDetail-6P7GLUT4.js.map} +0 -0
- /package/dist/{GovernanceContractExecuteFlowDetail-N3IX6ZUE.js.map → GovernanceContractExecuteFlowDetail-4Q32MNXQ.js.map} +0 -0
- /package/dist/{GovernanceContractInstantiateFlowDetail-PEG3YS3J.js.map → GovernanceContractInstantiateFlowDetail-GOFRJNS6.js.map} +0 -0
- /package/dist/{GovernanceContractManageCw20FlowDetail-PGJLC6HG.js.map → GovernanceContractManageCw20FlowDetail-QYFC2CBY.js.map} +0 -0
- /package/dist/{GovernanceContractMigrateFlowDetail-WAATSI24.js.map → GovernanceContractMigrateFlowDetail-YS575HJK.js.map} +0 -0
- /package/dist/{GovernanceContractUpdateAdminFlowDetail-FX2MQO3P.js.map → GovernanceContractUpdateAdminFlowDetail-YNN5VVUN.js.map} +0 -0
- /package/dist/{GovernanceCustomMessageFlowDetail-RKZIPQBE.js.map → GovernanceCustomMessageFlowDetail-AP2DYHPG.js.map} +0 -0
- /package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-GS4K573O.js.map → GovernanceDaoAcceptToMarketplaceFlowDetail-WHC2GXB7.js.map} +0 -0
- /package/dist/{GovernanceDaoAdminExecFlowDetail-5GAJ677O.js.map → GovernanceDaoAdminExecFlowDetail-5545VOCJ.js.map} +0 -0
- /package/dist/{GovernanceDaoCreateEntityFlowDetail-YQBK5ZJ6.js.map → GovernanceDaoCreateEntityFlowDetail-QKSNQHT3.js.map} +0 -0
- /package/dist/{GovernanceDaoJoinFlowDetail-TUWWA76P.js.map → GovernanceDaoJoinFlowDetail-ZIZA4CHJ.js.map} +0 -0
- /package/dist/{GovernanceDaoManageStorageFlowDetail-ZABNXYGW.js.map → GovernanceDaoManageStorageFlowDetail-V7CNBFD5.js.map} +0 -0
- /package/dist/{GovernanceDaoManageSubDaosFlowDetail-JUZOW3NX.js.map → GovernanceDaoManageSubDaosFlowDetail-U6HCZEWB.js.map} +0 -0
- /package/dist/{GovernanceDaoUpdateInfoFlowDetail-GTPZETSW.js.map → GovernanceDaoUpdateInfoFlowDetail-YGVZWXYR.js.map} +0 -0
- /package/dist/{GovernanceMemberProposalConfig-MYHHSBWL.js.map → GovernanceMemberProposalConfig-3HKKBDJ5.js.map} +0 -0
- /package/dist/{GovernanceMemberProposalFlowDetail-NYKIPRXZ.js.map → GovernanceMemberProposalFlowDetail-5DYOTEMZ.js.map} +0 -0
- /package/dist/{GovernanceNftBurnFlowDetail-V5YEWTZZ.js.map → GovernanceNftBurnFlowDetail-ZHL6NSBB.js.map} +0 -0
- /package/dist/{GovernanceNftManageCollectionsFlowDetail-NV5IQJQY.js.map → GovernanceNftManageCollectionsFlowDetail-YKWXV6PI.js.map} +0 -0
- /package/dist/{GovernanceNftTransferFlowDetail-MT4A3IPX.js.map → GovernanceNftTransferFlowDetail-SQ5ZSKIK.js.map} +0 -0
- /package/dist/{GovernanceSettingsProposalConfig-U7SO63AZ.js.map → GovernanceSettingsProposalConfig-IZFFFRHS.js.map} +0 -0
- /package/dist/{GovernanceSettingsProposalFlowDetail-A6HNAOCP.js.map → GovernanceSettingsProposalFlowDetail-72OGJWPM.js.map} +0 -0
- /package/dist/{GovernanceStakingStakeFlowDetail-ANPDO5CW.js.map → GovernanceStakingStakeFlowDetail-TQT6JVX5.js.map} +0 -0
- /package/dist/{GovernanceStakingStakeToGroupFlowDetail-3EXFBNXM.js.map → GovernanceStakingStakeToGroupFlowDetail-RHW3KT4J.js.map} +0 -0
- /package/dist/{GovernanceSubmissionConfigProposalFlowDetail-W7J6W3CX.js.map → GovernanceSubmissionConfigProposalFlowDetail-ELSE6QV6.js.map} +0 -0
- /package/dist/{GovernanceTransactionMintFlowDetail-H5T5SHDW.js.map → GovernanceTransactionMintFlowDetail-3I7F3FSC.js.map} +0 -0
- /package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-T7QTOJEJ.js.map → GovernanceTransactionPerformTokenSwapFlowDetail-5UTYTE3P.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendFundsConfig-7GWFZYBO.js.map → GovernanceTransactionSendFundsConfig-UITDQIEX.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendFundsFlowDetail-SSGQKOYI.js.map → GovernanceTransactionSendFundsFlowDetail-FUHTFFYK.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-YKWCSXQO.js.map → GovernanceTransactionSendGroupTokenFlowDetail-JEGHRGVA.js.map} +0 -0
- /package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-Y44MBQSJ.js.map → GovernanceTransactionWithdrawTokenSwapFlowDetail-IGKD3XFX.js.map} +0 -0
- /package/dist/{GovernanceValidatorActionsFlowDetail-KVPO7XYV.js.map → GovernanceValidatorActionsFlowDetail-XFJM4T54.js.map} +0 -0
- /package/dist/{HarvestConfig-WMHB3Z4M.js.map → HarvestConfig-MQCRQM6E.js.map} +0 -0
- /package/dist/{HarvestFlowDetail-2E6FAG5D.js.map → HarvestFlowDetail-4AGZTR7Z.js.map} +0 -0
- /package/dist/{HttpRequestConfig-MSVW46CZ.js.map → HttpRequestConfig-24VT44SK.js.map} +0 -0
- /package/dist/{HttpRequestFlowDetail-AHYCCC7Z.js.map → HttpRequestFlowDetail-LGWILJCS.js.map} +0 -0
- /package/dist/{IdentityCreateFlowDetail-KKQP5H6J.js.map → IdentityCreateFlowDetail-6UVA3GLT.js.map} +0 -0
- /package/dist/{IidCreateFlowDetail-HZ3IBACZ.js.map → IidCreateFlowDetail-6DMLKXSP.js.map} +0 -0
- /package/dist/{KycVerifyConfig-MRFKB3RS.js.map → KycVerifyConfig-QKU3GYXH.js.map} +0 -0
- /package/dist/{KycVerifyFlowDetail-UL4YW23S.js.map → KycVerifyFlowDetail-MJB5DFB5.js.map} +0 -0
- /package/dist/{ListDomainFlowsFlowDetail-NBTEXXR6.js.map → ListDomainFlowsFlowDetail-PDUSV2TD.js.map} +0 -0
- /package/dist/{LoadBatchesFlowDetail-6B6EUQUU.js.map → LoadBatchesFlowDetail-SXLSDRVT.js.map} +0 -0
- /package/dist/{MatrixDmConfig-VCECTS77.js.map → MatrixDmConfig-XCS2HCGZ.js.map} +0 -0
- /package/dist/{MatrixRegisterFlowDetail-Q5GRDCJ3.js.map → MatrixRegisterFlowDetail-7JMBMOTF.js.map} +0 -0
- /package/dist/{MemberMultiSelectFlowDetail-EOJ6UIUT.js.map → MemberMultiSelectFlowDetail-DLAKXCRC.js.map} +0 -0
- /package/dist/{OracleConfig-QR62IIUE.js.map → OracleConfig-RU6N4JBF.js.map} +0 -0
- /package/dist/{OracleConfigureOracleFlowDetail-WJM6LIC2.js.map → OracleConfigureOracleFlowDetail-AET56AV6.js.map} +0 -0
- /package/dist/{OracleContractFlowDetail-LQEGQ6CN.js.map → OracleContractFlowDetail-4RWSGCLI.js.map} +0 -0
- /package/dist/{OracleDeployFlowDetail-KUPXAFG2.js.map → OracleDeployFlowDetail-2HOKGJEO.js.map} +0 -0
- /package/dist/{OracleDeploySetupFlowDetail-MKWUVJWU.js.map → OracleDeploySetupFlowDetail-AOUCBEJK.js.map} +0 -0
- /package/dist/{OracleDeployStartFlowDetail-XUKADF5E.js.map → OracleDeployStartFlowDetail-5R5O54VE.js.map} +0 -0
- /package/dist/{OracleFlowDetail-ZB4BXPMP.js.map → OracleFlowDetail-REP3CDHK.js.map} +0 -0
- /package/dist/{OraclePromptFlowDetail-BJCIRJC7.js.map → OraclePromptFlowDetail-RWGI7Y46.js.map} +0 -0
- /package/dist/{OracleStoreConfigFlowDetail-PUDZJ6XK.js.map → OracleStoreConfigFlowDetail-F2E4ZEVA.js.map} +0 -0
- /package/dist/{OracleStoreSecretsAndConfigFlowDetail-WWJ5EE65.js.map → OracleStoreSecretsAndConfigFlowDetail-6X4CPXKW.js.map} +0 -0
- /package/dist/{OracleStoreSecretsFlowDetail-74KT4D5R.js.map → OracleStoreSecretsFlowDetail-DYPIPYIT.js.map} +0 -0
- /package/dist/{ProposalCreateConfig-UKWLNGGT.js.map → ProposalCreateConfig-DRYE2AKJ.js.map} +0 -0
- /package/dist/{ProposalCreateFlowDetail-HTA7MM6V.js.map → ProposalCreateFlowDetail-CHIA2XWY.js.map} +0 -0
- /package/dist/{ProposalVoteConfig-GQ2EFLLM.js.map → ProposalVoteConfig-7UNWFROZ.js.map} +0 -0
- /package/dist/{ProposalVoteFlowDetail-WXYSRQVM.js.map → ProposalVoteFlowDetail-DSMBVP3E.js.map} +0 -0
- /package/dist/{ProtocolSelectFlowDetail-M533L2VH.js.map → ProtocolSelectFlowDetail-NTLOLTSO.js.map} +0 -0
- /package/dist/{RetireConfig-TTS4O56B.js.map → RetireConfig-BF2DX5IS.js.map} +0 -0
- /package/dist/{RetireFlowDetail-5MPYK3Y4.js.map → RetireFlowDetail-LY77O4VE.js.map} +0 -0
- /package/dist/{SandboxProvisionFlowDetail-RQV3OVSV.js.map → SandboxProvisionFlowDetail-QPRFK7N3.js.map} +0 -0
- /package/dist/{WalletFundConfig-32GHDUYC.js.map → WalletFundConfig-QF2D65SA.js.map} +0 -0
- /package/dist/{WalletFundFlowDetail-BVSKFSCJ.js.map → WalletFundFlowDetail-CTWM57AK.js.map} +0 -0
- /package/dist/{WalletGenerateAndFundFlowDetail-MLULHQ2V.js.map → WalletGenerateAndFundFlowDetail-TY3HOGEU.js.map} +0 -0
- /package/dist/{WalletGenerateFlowDetail-EHYFCON2.js.map → WalletGenerateFlowDetail-F5LNH4VY.js.map} +0 -0
- /package/dist/{XeroContactCreateConfig-F46RAJZ3.js.map → XeroContactCreateConfig-GTRMV4MO.js.map} +0 -0
- /package/dist/{XeroContactCreateFlowDetail-BXZPZRN6.js.map → XeroContactCreateFlowDetail-4IFZRJOF.js.map} +0 -0
- /package/dist/{XeroInvoiceCreateConfig-3C57CRA5.js.map → XeroInvoiceCreateConfig-HVMMNUU4.js.map} +0 -0
- /package/dist/{XeroInvoiceCreateFlowDetail-TB5ILGFK.js.map → XeroInvoiceCreateFlowDetail-4UPL55DU.js.map} +0 -0
- /package/dist/{XeroInvoiceListConfig-NJL2XCJU.js.map → XeroInvoiceListConfig-IMXZZTNF.js.map} +0 -0
- /package/dist/{XeroInvoiceListFlowDetail-SW77EBQJ.js.map → XeroInvoiceListFlowDetail-SUWMEU7K.js.map} +0 -0
- /package/dist/{XeroPaymentCreateConfig-36RZJ572.js.map → XeroPaymentCreateConfig-ONPADVHN.js.map} +0 -0
- /package/dist/{XeroPaymentCreateFlowDetail-ASEL73SM.js.map → XeroPaymentCreateFlowDetail-52FOC77L.js.map} +0 -0
- /package/dist/{chunk-TWPAZA5U.js.map → chunk-3S6HH3LV.js.map} +0 -0
- /package/dist/{chunk-BLXL5LNU.js.map → chunk-6332CJVF.js.map} +0 -0
- /package/dist/{chunk-YICU2BTW.js.map → chunk-66EWPWA5.js.map} +0 -0
- /package/dist/{chunk-YSKMW5N4.js.map → chunk-6OBTZWYM.js.map} +0 -0
- /package/dist/{chunk-4SNJX2WR.js.map → chunk-7XB6INJ4.js.map} +0 -0
- /package/dist/{chunk-QSUE3ZFB.js.map → chunk-AZGVSR3T.js.map} +0 -0
- /package/dist/{chunk-AAUAZ4YK.js.map → chunk-DMWXSWLO.js.map} +0 -0
- /package/dist/{chunk-C376YPPE.js.map → chunk-HPHWYDGB.js.map} +0 -0
- /package/dist/{chunk-JWC4VVY7.js.map → chunk-JCI46234.js.map} +0 -0
- /package/dist/{chunk-ZWBVAYXF.js.map → chunk-KIAAAFZF.js.map} +0 -0
- /package/dist/{chunk-MY22PTP4.js.map → chunk-LMQT3VUE.js.map} +0 -0
- /package/dist/{chunk-VVXNHTWA.js.map → chunk-M5ELO3A5.js.map} +0 -0
- /package/dist/{chunk-RETGBEFM.js.map → chunk-M7XUQCKC.js.map} +0 -0
- /package/dist/{chunk-W2GRWAXP.js.map → chunk-MFUWKWMA.js.map} +0 -0
- /package/dist/{chunk-I3BKKGB6.js.map → chunk-P365VW4X.js.map} +0 -0
- /package/dist/{chunk-TOHRTMHF.js.map → chunk-PCRDF4BQ.js.map} +0 -0
- /package/dist/{chunk-W6Z3HNIC.js.map → chunk-PNS4Y2PQ.js.map} +0 -0
- /package/dist/{chunk-WKZQA4KR.js.map → chunk-PWPTKUNE.js.map} +0 -0
- /package/dist/{chunk-EAMEGHQZ.js.map → chunk-SAOQXHK6.js.map} +0 -0
- /package/dist/{chunk-MCKX6WIM.js.map → chunk-SI2AUBY5.js.map} +0 -0
- /package/dist/{chunk-CMG6TZKH.js.map → chunk-TGRBWL3B.js.map} +0 -0
- /package/dist/{chunk-EVCXBPHP.js.map → chunk-TGTS2R2O.js.map} +0 -0
- /package/dist/{chunk-JK6RAKE3.js.map → chunk-UOYPASUI.js.map} +0 -0
- /package/dist/{chunk-KRWN6IDZ.js.map → chunk-VD4HSZSN.js.map} +0 -0
- /package/dist/{chunk-O365JU7B.js.map → chunk-VOBXFJLM.js.map} +0 -0
- /package/dist/{chunk-RRLKIT5M.js.map → chunk-XUJPJRLW.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usdLabel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DMWXSWLO.js";
|
|
4
4
|
import {
|
|
5
5
|
parseEvaluateClaimActionInputs
|
|
6
6
|
} from "./chunk-DIQRZP7Z.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
actAsGroupReady,
|
|
31
31
|
actAsGroupRuntimeInputs,
|
|
32
32
|
emptyActAsGroupState
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-TGTS2R2O.js";
|
|
34
34
|
import "./chunk-TR4KO3AG.js";
|
|
35
35
|
import {
|
|
36
36
|
useNodeContext
|
|
@@ -57,30 +57,30 @@ import {
|
|
|
57
57
|
import {
|
|
58
58
|
BaseNumberInput
|
|
59
59
|
} from "./chunk-76YX5R4L.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-XUJPJRLW.js";
|
|
61
61
|
import {
|
|
62
62
|
BaseSelect
|
|
63
63
|
} from "./chunk-4NAFQF6V.js";
|
|
64
64
|
import {
|
|
65
65
|
useRunRuntimeReader
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-M7XUQCKC.js";
|
|
67
67
|
import "./chunk-NZ7AXA7B.js";
|
|
68
68
|
import "./chunk-YYNMESIF.js";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-MDCOAGIF.js";
|
|
70
70
|
import {
|
|
71
71
|
buildPendingClaimSnapshot,
|
|
72
72
|
buildServicesFromHandlers,
|
|
73
73
|
formatCoin,
|
|
74
74
|
readPendingClaimSnapshot,
|
|
75
75
|
samePendingClaimSnapshot
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-66XW6TQT.js";
|
|
77
77
|
import "./chunk-IH4T7V4C.js";
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-JCI46234.js";
|
|
79
|
+
import "./chunk-UOYPASUI.js";
|
|
80
|
+
import "./chunk-VD4HSZSN.js";
|
|
81
81
|
import {
|
|
82
82
|
resolveReferences
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-AZGVSR3T.js";
|
|
84
84
|
import "./chunk-UTLM6U75.js";
|
|
85
85
|
import "./chunk-N3ORMGAI.js";
|
|
86
86
|
import {
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
} from "./chunk-ZDNW6VQG.js";
|
|
89
89
|
import {
|
|
90
90
|
DismissibleAlert
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-PWPTKUNE.js";
|
|
92
92
|
import {
|
|
93
93
|
actionAlertStyles
|
|
94
94
|
} from "./chunk-6GKJR52N.js";
|
|
@@ -99,17 +99,17 @@ import {
|
|
|
99
99
|
import {
|
|
100
100
|
useBlocknoteHandlers,
|
|
101
101
|
useTranslate
|
|
102
|
-
} from "./chunk-
|
|
103
|
-
import "./chunk-
|
|
104
|
-
import "./chunk-
|
|
102
|
+
} from "./chunk-KSITH7AN.js";
|
|
103
|
+
import "./chunk-MFUWKWMA.js";
|
|
104
|
+
import "./chunk-X5W725D3.js";
|
|
105
105
|
import "./chunk-THG6RXFR.js";
|
|
106
106
|
import "./chunk-NCSGIRRQ.js";
|
|
107
107
|
|
|
108
108
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/EvaluateClaimFlowDetail.tsx
|
|
109
109
|
import { SurveyModel } from "@ixo/surveys";
|
|
110
|
-
import { ActionIcon as
|
|
111
|
-
import { IconArrowLeft, IconCheck as
|
|
112
|
-
import { default as
|
|
110
|
+
import { ActionIcon as ActionIcon5, Box as Box5, Button as Button5, Checkbox, Divider as Divider2, Group as Group13, Loader as Loader3, ScrollArea as ScrollArea2, Stack as Stack13, Text as Text13, UnstyledButton as UnstyledButton5 } from "@mantine/core";
|
|
111
|
+
import { IconArrowLeft, IconCheck as IconCheck9, IconRefresh as IconRefresh2 } from "@tabler/icons-react";
|
|
112
|
+
import { default as React13, useCallback as useCallback4, useEffect as useEffect5, useMemo as useMemo3, useRef as useRef5, useState as useState10 } from "react";
|
|
113
113
|
|
|
114
114
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/AiChecksSection.tsx
|
|
115
115
|
import React from "react";
|
|
@@ -725,10 +725,424 @@ var EvaluationReportSection = ({ runtime, selectedClaimId }) => {
|
|
|
725
725
|
}))));
|
|
726
726
|
};
|
|
727
727
|
|
|
728
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/OracleDecisionOverlay.tsx
|
|
729
|
+
import { default as React8, useEffect as useEffect2, useRef as useRef2, useState as useState6 } from "react";
|
|
730
|
+
import { ActionIcon as ActionIcon2, Anchor, Button as Button4, CopyButton, Divider, Group as Group8, Stack as Stack8, Text as Text8, Tooltip as Tooltip4 } from "@mantine/core";
|
|
731
|
+
import { IconCheck as IconCheck4, IconCopy, IconMinus as IconMinus2, IconShieldCheck, IconX as IconX4 } from "@tabler/icons-react";
|
|
732
|
+
|
|
733
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/OracleReviewAnswerForm.tsx
|
|
734
|
+
import React7, { useState as useState5 } from "react";
|
|
735
|
+
import { Button as Button3, Group as Group7, Stack as Stack7, Text as Text7, TextInput } from "@mantine/core";
|
|
736
|
+
|
|
737
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/ReviewAnswerForm.tsx
|
|
738
|
+
import React6, { useMemo as useMemo2, useState as useState4 } from "react";
|
|
739
|
+
import { Button as Button2, Group as Group6, Image, Stack as Stack6, Text as Text6, UnstyledButton as UnstyledButton2 } from "@mantine/core";
|
|
740
|
+
function evidenceValue(ref, subject) {
|
|
741
|
+
if (!subject || !ref.startsWith("$")) return void 0;
|
|
742
|
+
return ref.slice(1).split(".").reduce((acc, key) => acc && typeof acc === "object" ? acc[key] : void 0, subject);
|
|
743
|
+
}
|
|
744
|
+
function isImageLike(name, type, url) {
|
|
745
|
+
const ext = (name || url).toLowerCase().split(".").pop() || "";
|
|
746
|
+
return type.toLowerCase().startsWith("image/") || ["png", "jpg", "jpeg", "gif", "webp", "bmp"].includes(ext);
|
|
747
|
+
}
|
|
748
|
+
var Evidence = ({ value }) => {
|
|
749
|
+
if (value == null || value === "") return null;
|
|
750
|
+
if (Array.isArray(value)) {
|
|
751
|
+
return /* @__PURE__ */ React6.createElement(Group6, { gap: "xs" }, value.map((entry, i) => /* @__PURE__ */ React6.createElement(Evidence, { key: i, value: entry })));
|
|
752
|
+
}
|
|
753
|
+
if (typeof value === "object") {
|
|
754
|
+
const file = value;
|
|
755
|
+
if (typeof file.content === "string") {
|
|
756
|
+
if (isImageLike(file.name || "", file.type || "", file.content)) {
|
|
757
|
+
return /* @__PURE__ */ React6.createElement(Image, { src: file.content, alt: file.name || "evidence", radius: "sm", mah: 160, maw: 240, fit: "contain" });
|
|
758
|
+
}
|
|
759
|
+
return /* @__PURE__ */ React6.createElement(Text6, { size: "xs", c: "dimmed" }, file.name || "attachment");
|
|
760
|
+
}
|
|
761
|
+
return null;
|
|
762
|
+
}
|
|
763
|
+
return /* @__PURE__ */ React6.createElement(Text6, { size: "sm" }, String(value));
|
|
764
|
+
};
|
|
765
|
+
var AnswerButtons = ({ task, value, disabled, onChange }) => {
|
|
766
|
+
if (task.answer.type === "boolean") {
|
|
767
|
+
return /* @__PURE__ */ React6.createElement(Group6, { gap: "xs" }, /* @__PURE__ */ React6.createElement(Button2, { size: "xs", variant: value === true ? "filled" : "light", color: "green", disabled, onClick: () => onChange(true) }, "Yes"), /* @__PURE__ */ React6.createElement(Button2, { size: "xs", variant: value === false ? "filled" : "light", color: "red", disabled, onClick: () => onChange(false) }, "No"));
|
|
768
|
+
}
|
|
769
|
+
return /* @__PURE__ */ React6.createElement(Group6, { gap: "xs" }, task.answer.options.map((option) => /* @__PURE__ */ React6.createElement(Button2, { key: option, size: "xs", variant: value === option ? "filled" : "light", color: "accent", disabled, onClick: () => onChange(option) }, option)));
|
|
770
|
+
};
|
|
771
|
+
var ReviewAnswerForm = ({
|
|
772
|
+
evaluation,
|
|
773
|
+
review,
|
|
774
|
+
rubric,
|
|
775
|
+
credentialSubject,
|
|
776
|
+
isAssignedToMe,
|
|
777
|
+
reviewerName,
|
|
778
|
+
submitting,
|
|
779
|
+
submitError,
|
|
780
|
+
reviewSent,
|
|
781
|
+
disabled,
|
|
782
|
+
onSubmit
|
|
783
|
+
}) => {
|
|
784
|
+
const [answers, setAnswers] = useState4({});
|
|
785
|
+
const [answeringForOther, setAnsweringForOther] = useState4(false);
|
|
786
|
+
const pendingTaskIds = evaluation.decision?.pendingTasks ?? [];
|
|
787
|
+
const tasks = useMemo2(() => pendingTaskIds.map((id) => ({ id, task: rubric?.review?.tasks?.find((t) => t.id === id) })), [pendingTaskIds, rubric]);
|
|
788
|
+
if (review?.status === "completed") {
|
|
789
|
+
const when = review.completedAt ? new Date(review.completedAt).toLocaleString(void 0, { day: "numeric", month: "short", year: "numeric" }) : null;
|
|
790
|
+
return /* @__PURE__ */ React6.createElement(Stack6, { gap: 4 }, /* @__PURE__ */ React6.createElement(Text6, { size: "xs", c: "dimmed" }, "Reviewed by ", reviewerName || review.reviewerDid, when ? `, ${when}` : ""), Object.entries(review.answers || {}).map(([taskId, answer]) => {
|
|
791
|
+
const task = rubric?.review?.tasks?.find((t) => t.id === taskId);
|
|
792
|
+
return /* @__PURE__ */ React6.createElement(Text6, { key: taskId, size: "xs", c: "dimmed" }, task?.prompt || taskId, ": ", /* @__PURE__ */ React6.createElement("b", null, answer === true ? "Yes" : answer === false ? "No" : String(answer)));
|
|
793
|
+
}));
|
|
794
|
+
}
|
|
795
|
+
if (reviewSent || review?.status === "received") return null;
|
|
796
|
+
if (review?.status === "failed") {
|
|
797
|
+
return /* @__PURE__ */ React6.createElement(Stack6, { gap: "xs" }, /* @__PURE__ */ React6.createElement(Text6, { size: "xs", c: "dimmed" }, "Your answers were saved. Sending them again finishes the evaluation \u2014 nobody is asked twice."), /* @__PURE__ */ React6.createElement(Group6, null, /* @__PURE__ */ React6.createElement(Button2, { size: "xs", loading: submitting, disabled, onClick: () => onSubmit(review.answers || {}) }, "Send again")), submitError && /* @__PURE__ */ React6.createElement(Text6, { size: "xs", c: "red" }, submitError));
|
|
798
|
+
}
|
|
799
|
+
const needsHumanNow = evaluation.status === "pending_review" || evaluation.verdict === "review";
|
|
800
|
+
if (!needsHumanNow) return null;
|
|
801
|
+
if (tasks.length === 0) {
|
|
802
|
+
const reasons = evaluation.decision?.reasons ?? [];
|
|
803
|
+
if (reasons.length === 0) return null;
|
|
804
|
+
return /* @__PURE__ */ React6.createElement(Stack6, { gap: 2 }, reasons.map((reason) => /* @__PURE__ */ React6.createElement(Text6, { key: reason.code, size: "xs", c: "dimmed" }, reason.reason, " (", reason.code, ")")));
|
|
805
|
+
}
|
|
806
|
+
if (!isAssignedToMe && !answeringForOther) {
|
|
807
|
+
return /* @__PURE__ */ React6.createElement(UnstyledButton2, { onClick: () => setAnsweringForOther(true) }, /* @__PURE__ */ React6.createElement(Text6, { size: "xs", c: "dimmed", td: "underline" }, "Answer on their behalf"));
|
|
808
|
+
}
|
|
809
|
+
const readOnly = disabled;
|
|
810
|
+
const allAnswered = tasks.every(({ id }) => answers[id] !== void 0);
|
|
811
|
+
return /* @__PURE__ */ React6.createElement(Stack6, { gap: "md" }, tasks.map(({ id, task }, index) => /* @__PURE__ */ React6.createElement(Stack6, { key: id, gap: 6 }, /* @__PURE__ */ React6.createElement(Text6, { size: "sm", fw: 500 }, index + 1, ". ", task?.prompt || id), task?.show?.map((ref) => /* @__PURE__ */ React6.createElement(Evidence, { key: ref, value: evidenceValue(ref, credentialSubject) })), task ? /* @__PURE__ */ React6.createElement(AnswerButtons, { task, value: answers[id], disabled: readOnly || submitting, onChange: (value) => setAnswers((prev) => ({ ...prev, [id]: value })) }) : /* @__PURE__ */ React6.createElement(Text6, { size: "xs", c: "dimmed" }, "This question is missing from the loaded rules \u2014 refresh, or check the collection's rules."))), /* @__PURE__ */ React6.createElement(Group6, { gap: "sm", align: "center" }, /* @__PURE__ */ React6.createElement(Button2, { size: "xs", disabled: readOnly || !allAnswered, loading: submitting, onClick: () => onSubmit(answers) }, "Send review"), /* @__PURE__ */ React6.createElement(Text6, { size: "xs", c: "dimmed" }, "Your answers finish this claim's evaluation.")), submitError && /* @__PURE__ */ React6.createElement(Text6, { size: "xs", c: "red" }, submitError));
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/oracleReviewFormModel.ts
|
|
815
|
+
function oracleReviewTasksFrom(pendingTaskIds, rubric) {
|
|
816
|
+
return pendingTaskIds.map((id) => {
|
|
817
|
+
const task = rubric?.review?.tasks?.find((t) => t.id === id);
|
|
818
|
+
return task ? { id, prompt: task.prompt, answer: task.answer } : { id, prompt: id, answer: { type: "text" } };
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
function isOracleAnswerComplete(shape, value) {
|
|
822
|
+
if (value === void 0) return false;
|
|
823
|
+
if (shape.type === "boolean") return typeof value === "boolean";
|
|
824
|
+
if (shape.type === "enum") return typeof value === "string" && !!value.trim() && shape.options.includes(value);
|
|
825
|
+
return typeof value === "string" && value.trim().length > 0;
|
|
826
|
+
}
|
|
827
|
+
function areOracleAnswersComplete(tasks, answers) {
|
|
828
|
+
return tasks.length > 0 && tasks.every((task) => isOracleAnswerComplete(task.answer, answers[task.id]));
|
|
829
|
+
}
|
|
830
|
+
function buildOracleReviewPayload(tasks, answers) {
|
|
831
|
+
if (!areOracleAnswersComplete(tasks, answers)) return null;
|
|
832
|
+
const out = {};
|
|
833
|
+
for (const task of tasks) out[task.id] = answers[task.id];
|
|
834
|
+
return out;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/OracleReviewAnswerForm.tsx
|
|
838
|
+
var OracleReviewAnswerForm = ({ tasks, submitting, submitError, onSubmit }) => {
|
|
839
|
+
const [answers, setAnswers] = useState5({});
|
|
840
|
+
const setAnswer = (id, value) => setAnswers((prev) => ({ ...prev, [id]: value }));
|
|
841
|
+
const canSubmit = areOracleAnswersComplete(tasks, answers);
|
|
842
|
+
return /* @__PURE__ */ React7.createElement(Stack7, { gap: "md" }, tasks.map((task, index) => /* @__PURE__ */ React7.createElement(Stack7, { key: task.id, gap: 6 }, /* @__PURE__ */ React7.createElement(Text7, { size: "sm", fw: 500 }, index + 1, ". ", task.prompt), task.answer.type === "boolean" || task.answer.type === "enum" ? /* @__PURE__ */ React7.createElement(AnswerButtons, { task: { answer: task.answer }, value: answers[task.id], disabled: submitting, onChange: (value) => setAnswer(task.id, value) }) : /* @__PURE__ */ React7.createElement(
|
|
843
|
+
TextInput,
|
|
844
|
+
{
|
|
845
|
+
size: "xs",
|
|
846
|
+
value: typeof answers[task.id] === "string" ? answers[task.id] : "",
|
|
847
|
+
disabled: submitting,
|
|
848
|
+
onChange: (e) => setAnswer(task.id, e.currentTarget.value),
|
|
849
|
+
placeholder: "Type your answer"
|
|
850
|
+
}
|
|
851
|
+
))), /* @__PURE__ */ React7.createElement(Group7, { gap: "sm", align: "center" }, /* @__PURE__ */ React7.createElement(
|
|
852
|
+
Button3,
|
|
853
|
+
{
|
|
854
|
+
size: "xs",
|
|
855
|
+
disabled: !canSubmit,
|
|
856
|
+
loading: submitting,
|
|
857
|
+
onClick: () => {
|
|
858
|
+
const payload = buildOracleReviewPayload(tasks, answers);
|
|
859
|
+
if (payload) onSubmit(payload);
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
"Send review"
|
|
863
|
+
), /* @__PURE__ */ React7.createElement(Text7, { size: "xs", c: "dimmed" }, "Your answers finish this claim's evaluation.")), submitError && /* @__PURE__ */ React7.createElement(Text7, { size: "xs", c: "red" }, submitError));
|
|
864
|
+
};
|
|
865
|
+
|
|
866
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/oracleOverlayModel.ts
|
|
867
|
+
function oracleOverlayGateOf(params) {
|
|
868
|
+
if (!params.engineOutOfPicture) return "skip";
|
|
869
|
+
if (!params.claimEvaluatedOnChain) return "skip";
|
|
870
|
+
if (!params.oracleResolved) return "skip";
|
|
871
|
+
return params.hasCachedSigner ? "auto" : "button";
|
|
872
|
+
}
|
|
873
|
+
function oracleOverlayViewOf(record) {
|
|
874
|
+
const decision = record.decision;
|
|
875
|
+
if (!decision || !decision.verdict) return null;
|
|
876
|
+
const explanation = typeof decision.explanation === "string" ? decision.explanation.trim() : "";
|
|
877
|
+
return {
|
|
878
|
+
verdict: decision.verdict,
|
|
879
|
+
explanation: explanation || null,
|
|
880
|
+
decidedAt: decision.updatedAt || decision.createdAt,
|
|
881
|
+
receiptCid: decision.receiptCid || null
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
function oracleOverlayNoteFor(status, triggeredByClick) {
|
|
885
|
+
if (!triggeredByClick) return null;
|
|
886
|
+
if (status === "forbidden") return "You don't have access to this oracle's details.";
|
|
887
|
+
if (status === "unauthorized") return null;
|
|
888
|
+
return "Couldn't load the oracle's evaluation details.";
|
|
889
|
+
}
|
|
890
|
+
function oracleReceiptLinkFor(receiptCid, decisionEngineBaseUrl) {
|
|
891
|
+
const base = decisionEngineBaseUrl.trim().replace(/\/+$/, "");
|
|
892
|
+
if (!base) return null;
|
|
893
|
+
return `${base}/v1/receipts/${encodeURIComponent(receiptCid)}`;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/OracleDecisionOverlay.tsx
|
|
897
|
+
function truncateCid(cid) {
|
|
898
|
+
if (cid.length <= 20) return cid;
|
|
899
|
+
return `${cid.slice(0, 10)}\u2026${cid.slice(-6)}`;
|
|
900
|
+
}
|
|
901
|
+
var CopyCid = ({ value }) => /* @__PURE__ */ React8.createElement(CopyButton, { value, timeout: 1500 }, ({ copied, copy }) => /* @__PURE__ */ React8.createElement(Tooltip4, { label: copied ? "Copied" : "Copy receipt CID" }, /* @__PURE__ */ React8.createElement(ActionIcon2, { size: "xs", variant: "subtle", color: copied ? "teal" : "gray", onClick: copy }, copied ? /* @__PURE__ */ React8.createElement(IconCheck4, { size: 12 }) : /* @__PURE__ */ React8.createElement(IconCopy, { size: 12 }))));
|
|
902
|
+
var RECEIPT_FAILURE_COPY = {
|
|
903
|
+
missing_input: "the receipt or the claim is missing.",
|
|
904
|
+
not_found: "the engine has no receipt with this CID.",
|
|
905
|
+
no_signed_bytes: "the engine returned the receipt without its signed bytes.",
|
|
906
|
+
malformed: "the receipt is unreadable.",
|
|
907
|
+
wrong_algorithm: "the receipt is not signed the way the engine signs.",
|
|
908
|
+
wrong_engine: "it was not signed by this network\u2019s decision engine.",
|
|
909
|
+
unknown_key: "its signing key is not one the engine publishes.",
|
|
910
|
+
bad_signature: "the signature does not match the contents.",
|
|
911
|
+
wrong_issuer: "it names a different issuer.",
|
|
912
|
+
claim_mismatch: "it is for a different claim."
|
|
913
|
+
};
|
|
914
|
+
var ReceiptCheckResult = ({ result }) => {
|
|
915
|
+
const t = useTranslate();
|
|
916
|
+
if (result.status === "verified") {
|
|
917
|
+
const details = [
|
|
918
|
+
result.outcome && t("actionTypes.evaluateClaim.receipt.outcome", { defaultValue: "Outcome: {{outcome}}", outcome: result.outcome }),
|
|
919
|
+
result.oracleDid && t("actionTypes.evaluateClaim.receipt.oracle", { defaultValue: "Oracle: {{oracle}}", oracle: result.oracleDid }),
|
|
920
|
+
result.issuedAt && t("actionTypes.evaluateClaim.receipt.issuedAt", { defaultValue: "Issued {{when}}", when: new Date(result.issuedAt).toLocaleString() })
|
|
921
|
+
].filter(Boolean);
|
|
922
|
+
return /* @__PURE__ */ React8.createElement(Stack8, { gap: 2 }, /* @__PURE__ */ React8.createElement(Group8, { gap: 4, wrap: "nowrap", role: "status" }, icon(IconCheck4, 14, "var(--mantine-color-green-6)"), /* @__PURE__ */ React8.createElement(Text8, { size: "xs", fw: 600, c: "green" }, t("actionTypes.evaluateClaim.receipt.verified", { defaultValue: "Verified by IXO" }))), details.length > 0 && /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "dimmed", style: { wordBreak: "break-all" } }, details.join(" \xB7 ")));
|
|
923
|
+
}
|
|
924
|
+
if (result.status === "failed") {
|
|
925
|
+
return /* @__PURE__ */ React8.createElement(Group8, { gap: 4, wrap: "nowrap", role: "status" }, icon(IconX4, 14, "var(--mantine-color-red-6)"), /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "red" }, t("actionTypes.evaluateClaim.receipt.failed", {
|
|
926
|
+
defaultValue: "Not verified: {{reason}}",
|
|
927
|
+
reason: t(`actionTypes.evaluateClaim.receipt.reasons.${result.reason}`, { defaultValue: RECEIPT_FAILURE_COPY[result.reason] ?? RECEIPT_FAILURE_COPY.malformed })
|
|
928
|
+
})));
|
|
929
|
+
}
|
|
930
|
+
return /* @__PURE__ */ React8.createElement(Group8, { gap: 4, wrap: "nowrap", role: "status" }, icon(IconMinus2, 14, "var(--mantine-color-gray-6)"), /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.receipt.unavailable", { defaultValue: "Can\u2019t check this receipt on this network right now." })));
|
|
931
|
+
};
|
|
932
|
+
var OracleDecisionOverlay = ({ claimId, protocolDid, engineOutOfPicture, claimEvaluatedOnChain, oracleResolved, rubric }) => {
|
|
933
|
+
const handlers = useBlocknoteHandlers();
|
|
934
|
+
const handlersRef = useRef2(handlers);
|
|
935
|
+
useEffect2(() => {
|
|
936
|
+
handlersRef.current = handlers;
|
|
937
|
+
}, [handlers]);
|
|
938
|
+
const supported = typeof handlers.getOracleClaimDetail === "function";
|
|
939
|
+
const [state, setState] = useState6({ kind: "hidden" });
|
|
940
|
+
const [reviewSubmitting, setReviewSubmitting] = useState6(false);
|
|
941
|
+
const [reviewSubmitError, setReviewSubmitError] = useState6(null);
|
|
942
|
+
const [receiptCheck, setReceiptCheck] = useState6({ kind: "idle" });
|
|
943
|
+
const t = useTranslate();
|
|
944
|
+
function applyResult(result, triggeredByClick) {
|
|
945
|
+
if (result.status === "ok") {
|
|
946
|
+
const { record } = result;
|
|
947
|
+
if (record.decision?.status === "pending_review") {
|
|
948
|
+
if (record.review && !record.review.foldedAt) {
|
|
949
|
+
setState({ kind: "review-sent" });
|
|
950
|
+
return;
|
|
951
|
+
}
|
|
952
|
+
const pending = record.pendingTasks ?? [];
|
|
953
|
+
if (pending.length > 0) {
|
|
954
|
+
setState({ kind: "review", tasks: oracleReviewTasksFrom(pending, rubric), answeredAgainst: record.decision?.resultDigest ?? null, collectionId: record.collectionId || null });
|
|
955
|
+
return;
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
const view2 = oracleOverlayViewOf(record);
|
|
959
|
+
setState(view2 ? { kind: "shown", view: view2, receiptJws: record.decision?.receiptJws ?? null } : { kind: "hidden" });
|
|
960
|
+
return;
|
|
961
|
+
}
|
|
962
|
+
if (result.status === "unauthorized" && !triggeredByClick) {
|
|
963
|
+
setState({ kind: "needs-signer" });
|
|
964
|
+
return;
|
|
965
|
+
}
|
|
966
|
+
const note = oracleOverlayNoteFor(result.status, triggeredByClick);
|
|
967
|
+
setState(note ? { kind: "note", note } : { kind: "hidden" });
|
|
968
|
+
}
|
|
969
|
+
async function handleSubmitReview(answers, answeredAgainst, collectionId) {
|
|
970
|
+
const submit = handlersRef.current.submitOracleReview;
|
|
971
|
+
if (!submit) return;
|
|
972
|
+
if (!answeredAgainst) {
|
|
973
|
+
setReviewSubmitError("This claim can't be answered yet \u2014 refresh and try again.");
|
|
974
|
+
return;
|
|
975
|
+
}
|
|
976
|
+
setReviewSubmitting(true);
|
|
977
|
+
setReviewSubmitError(null);
|
|
978
|
+
try {
|
|
979
|
+
const result = await submit({ protocolDid, claimId, collectionId, answers, answeredAgainst });
|
|
980
|
+
if (result.status === "ok") {
|
|
981
|
+
setState({ kind: "review-sent" });
|
|
982
|
+
try {
|
|
983
|
+
const refetched = await handlersRef.current.getOracleClaimDetail?.({ claimId, protocolDid, silent: true });
|
|
984
|
+
if (refetched) applyResult(refetched, false);
|
|
985
|
+
} catch {
|
|
986
|
+
}
|
|
987
|
+
return;
|
|
988
|
+
}
|
|
989
|
+
if (result.status === "conflict" || result.status === "error") {
|
|
990
|
+
setReviewSubmitError(result.message);
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
setReviewSubmitError("You don't have access to send this review.");
|
|
994
|
+
} catch (err) {
|
|
995
|
+
console.warn("[claim.evaluate] submitOracleReview failed", err);
|
|
996
|
+
setReviewSubmitError(err instanceof Error ? err.message : "The oracle didn't respond \u2014 try again");
|
|
997
|
+
} finally {
|
|
998
|
+
setReviewSubmitting(false);
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
useEffect2(() => {
|
|
1002
|
+
setState({ kind: "hidden" });
|
|
1003
|
+
setReviewSubmitting(false);
|
|
1004
|
+
setReviewSubmitError(null);
|
|
1005
|
+
setReceiptCheck({ kind: "idle" });
|
|
1006
|
+
if (!supported || !engineOutOfPicture || !claimEvaluatedOnChain || !claimId || !protocolDid) return;
|
|
1007
|
+
const gate = oracleOverlayGateOf({
|
|
1008
|
+
engineOutOfPicture,
|
|
1009
|
+
claimEvaluatedOnChain,
|
|
1010
|
+
oracleResolved,
|
|
1011
|
+
hasCachedSigner: handlersRef.current.hasCachedSigner?.() ?? false
|
|
1012
|
+
});
|
|
1013
|
+
if (gate === "skip") return;
|
|
1014
|
+
if (gate === "button") {
|
|
1015
|
+
setState({ kind: "needs-signer" });
|
|
1016
|
+
return;
|
|
1017
|
+
}
|
|
1018
|
+
setState({ kind: "loading" });
|
|
1019
|
+
let cancelled = false;
|
|
1020
|
+
(async () => {
|
|
1021
|
+
try {
|
|
1022
|
+
const result = await handlersRef.current.getOracleClaimDetail({ claimId, protocolDid, silent: true });
|
|
1023
|
+
if (!cancelled) applyResult(result, false);
|
|
1024
|
+
} catch (err) {
|
|
1025
|
+
console.warn("[claim.evaluate] getOracleClaimDetail (silent) failed", err);
|
|
1026
|
+
if (!cancelled) setState({ kind: "hidden" });
|
|
1027
|
+
}
|
|
1028
|
+
})();
|
|
1029
|
+
return () => {
|
|
1030
|
+
cancelled = true;
|
|
1031
|
+
};
|
|
1032
|
+
}, [claimId, protocolDid, engineOutOfPicture, claimEvaluatedOnChain, oracleResolved, supported]);
|
|
1033
|
+
const handleVerifyReceipt = async (cid, jws) => {
|
|
1034
|
+
const verify = handlersRef.current.verifyDecisionReceipt;
|
|
1035
|
+
if (!verify) return;
|
|
1036
|
+
setReceiptCheck({ kind: "checking" });
|
|
1037
|
+
try {
|
|
1038
|
+
setReceiptCheck({ kind: "done", result: await verify({ cid, jws, claimId }) });
|
|
1039
|
+
} catch {
|
|
1040
|
+
setReceiptCheck({ kind: "done", result: { status: "unavailable" } });
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
const handleShowClick = async () => {
|
|
1044
|
+
const getOracleClaimDetail = handlersRef.current.getOracleClaimDetail;
|
|
1045
|
+
if (!getOracleClaimDetail) return;
|
|
1046
|
+
setState({ kind: "loading" });
|
|
1047
|
+
try {
|
|
1048
|
+
const result = await getOracleClaimDetail({ claimId, protocolDid, silent: false });
|
|
1049
|
+
applyResult(result, true);
|
|
1050
|
+
} catch (err) {
|
|
1051
|
+
console.warn("[claim.evaluate] getOracleClaimDetail failed", err);
|
|
1052
|
+
setState({ kind: "note", note: oracleOverlayNoteFor("error", true) ?? "Couldn't load the oracle's evaluation details." });
|
|
1053
|
+
}
|
|
1054
|
+
};
|
|
1055
|
+
if (state.kind === "hidden") return null;
|
|
1056
|
+
if (state.kind === "needs-signer" || state.kind === "loading") {
|
|
1057
|
+
return /* @__PURE__ */ React8.createElement(Button4, { variant: "subtle", size: "compact-xs", color: "gray", loading: state.kind === "loading", onClick: () => void handleShowClick(), style: { alignSelf: "flex-start" } }, "Show evaluation details");
|
|
1058
|
+
}
|
|
1059
|
+
if (state.kind === "note") {
|
|
1060
|
+
return /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "dimmed", fs: "italic" }, state.note);
|
|
1061
|
+
}
|
|
1062
|
+
if (state.kind === "review") {
|
|
1063
|
+
const { tasks, answeredAgainst, collectionId } = state;
|
|
1064
|
+
return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(Divider, { color: "color-mix(in srgb, var(--mantine-color-text) 8%, transparent)" }), /* @__PURE__ */ React8.createElement(
|
|
1065
|
+
OracleReviewAnswerForm,
|
|
1066
|
+
{
|
|
1067
|
+
tasks,
|
|
1068
|
+
submitting: reviewSubmitting,
|
|
1069
|
+
submitError: reviewSubmitError,
|
|
1070
|
+
onSubmit: (answers) => void handleSubmitReview(answers, answeredAgainst, collectionId)
|
|
1071
|
+
}
|
|
1072
|
+
));
|
|
1073
|
+
}
|
|
1074
|
+
if (state.kind === "review-sent") {
|
|
1075
|
+
return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(Divider, { color: "color-mix(in srgb, var(--mantine-color-text) 8%, transparent)" }), /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "dimmed", fs: "italic" }, "Your answers were sent \u2014 the oracle is folding them into the decision."));
|
|
1076
|
+
}
|
|
1077
|
+
const { view, receiptJws } = state;
|
|
1078
|
+
const canVerify = typeof handlers.verifyDecisionReceipt === "function";
|
|
1079
|
+
const receiptLink = view.receiptCid ? oracleReceiptLinkFor(view.receiptCid, handlers.getDecisionEngineBaseUrl?.() ?? "") : null;
|
|
1080
|
+
return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(Divider, { color: "color-mix(in srgb, var(--mantine-color-text) 8%, transparent)" }), /* @__PURE__ */ React8.createElement(Text8, { fw: 700, size: "sm" }, view.verdict), view.explanation && /* @__PURE__ */ React8.createElement(Text8, { size: "xs" }, view.explanation), /* @__PURE__ */ React8.createElement(Group8, { gap: 6, wrap: "wrap" }, /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "dimmed" }, new Date(view.decidedAt).toLocaleString()), view.receiptCid && /* @__PURE__ */ React8.createElement(Group8, { gap: 4, wrap: "nowrap" }, /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "dimmed", style: { fontFamily: "monospace" } }, truncateCid(view.receiptCid)), /* @__PURE__ */ React8.createElement(CopyCid, { value: view.receiptCid }), receiptLink && /* @__PURE__ */ React8.createElement(Anchor, { size: "xs", href: receiptLink, target: "_blank", rel: "noopener noreferrer" }, t("actionTypes.evaluateClaim.receipt.open", { defaultValue: "Open" })))), view.receiptCid && canVerify && /* @__PURE__ */ React8.createElement(Group8, { gap: 8, wrap: "wrap", align: "center" }, /* @__PURE__ */ React8.createElement(
|
|
1081
|
+
Button4,
|
|
1082
|
+
{
|
|
1083
|
+
variant: "secondary",
|
|
1084
|
+
size: "sm",
|
|
1085
|
+
leftSection: icon(IconShieldCheck, 16),
|
|
1086
|
+
loading: receiptCheck.kind === "checking",
|
|
1087
|
+
onClick: () => void handleVerifyReceipt(view.receiptCid, receiptJws),
|
|
1088
|
+
style: { alignSelf: "flex-start" }
|
|
1089
|
+
},
|
|
1090
|
+
t("actionTypes.evaluateClaim.receipt.verify", { defaultValue: "Verify" })
|
|
1091
|
+
), receiptCheck.kind === "done" && /* @__PURE__ */ React8.createElement(ReceiptCheckResult, { result: receiptCheck.result })));
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/oracleListModel.ts
|
|
1095
|
+
function oracleChainSegment(chainStatus) {
|
|
1096
|
+
if (chainStatus === "submitted" || chainStatus === "owner_submitted") return { written: true, text: "on chain" };
|
|
1097
|
+
if (chainStatus === "blocked") return { written: false, text: "blocked" };
|
|
1098
|
+
if (chainStatus === "skipped") return { written: false, text: "not on chain" };
|
|
1099
|
+
return null;
|
|
1100
|
+
}
|
|
1101
|
+
var ORACLE_VERDICT_HEADLINE = {
|
|
1102
|
+
approve: { tone: "positive", headline: "Approved" },
|
|
1103
|
+
partial: { tone: "positive", headline: "Partly approved" },
|
|
1104
|
+
reject: { tone: "negative", headline: "Rejected" }
|
|
1105
|
+
};
|
|
1106
|
+
function oracleRowViewOf(row) {
|
|
1107
|
+
if (!row) return { tone: "neutral", headline: "", owed: false, action: null, chain: null };
|
|
1108
|
+
if (row.ingestStatus === "failed") {
|
|
1109
|
+
return { tone: "negative", headline: "Ingest failed", owed: false, action: null, chain: null };
|
|
1110
|
+
}
|
|
1111
|
+
if (!row.decisionStatus) {
|
|
1112
|
+
return { tone: "neutral", headline: "", owed: false, action: null, chain: null };
|
|
1113
|
+
}
|
|
1114
|
+
if (row.decisionStatus === "unusable" || row.decisionStatus === "invalid_facts") {
|
|
1115
|
+
return { tone: "neutral", headline: "Unusable", owed: false, action: null, chain: null };
|
|
1116
|
+
}
|
|
1117
|
+
if (row.decisionStatus === "pending_review" || row.verdict === "review") {
|
|
1118
|
+
return { tone: "attention", headline: "Needs review", owed: true, action: { text: "Answer questions", isLink: true }, chain: null };
|
|
1119
|
+
}
|
|
1120
|
+
const verdictView = row.verdict ? ORACLE_VERDICT_HEADLINE[row.verdict] : void 0;
|
|
1121
|
+
if (!verdictView) {
|
|
1122
|
+
return { tone: "neutral", headline: "", owed: false, action: null, chain: null };
|
|
1123
|
+
}
|
|
1124
|
+
return { tone: verdictView.tone, headline: verdictView.headline, owed: false, action: null, chain: oracleChainSegment(row.chainStatus) };
|
|
1125
|
+
}
|
|
1126
|
+
var VERDICTS_FOR_DECISION = { approve: ["approve", "partial"], reject: ["reject"] };
|
|
1127
|
+
function oracleReceiptProofOf(row, decision) {
|
|
1128
|
+
const cid = row?.receiptCid?.trim();
|
|
1129
|
+
if (!cid || !row?.verdict) return void 0;
|
|
1130
|
+
return (VERDICTS_FOR_DECISION[decision] ?? []).includes(row.verdict) ? cid : void 0;
|
|
1131
|
+
}
|
|
1132
|
+
async function verifiedOracleReceiptProof(cid, claimId, verify) {
|
|
1133
|
+
if (!cid || !verify) return void 0;
|
|
1134
|
+
try {
|
|
1135
|
+
const result = await verify({ cid, claimId });
|
|
1136
|
+
return result.status === "verified" ? cid : void 0;
|
|
1137
|
+
} catch {
|
|
1138
|
+
return void 0;
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
|
|
728
1142
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/OutsideServicesSection.tsx
|
|
729
|
-
import
|
|
730
|
-
import { Accordion as Accordion2, Badge as Badge2, Group as
|
|
731
|
-
import { IconAlertTriangle as IconAlertTriangle3, IconCheck as
|
|
1143
|
+
import React9 from "react";
|
|
1144
|
+
import { Accordion as Accordion2, Badge as Badge2, Group as Group9, Stack as Stack9, Text as Text9 } from "@mantine/core";
|
|
1145
|
+
import { IconAlertTriangle as IconAlertTriangle3, IconCheck as IconCheck5 } from "@tabler/icons-react";
|
|
732
1146
|
function originOf(url) {
|
|
733
1147
|
try {
|
|
734
1148
|
return new URL(url).origin;
|
|
@@ -736,57 +1150,58 @@ function originOf(url) {
|
|
|
736
1150
|
return url;
|
|
737
1151
|
}
|
|
738
1152
|
}
|
|
739
|
-
var OutsideServicesSection = ({ ext }) => /* @__PURE__ */
|
|
1153
|
+
var OutsideServicesSection = ({ ext }) => /* @__PURE__ */ React9.createElement(Accordion2, { variant: "separated", radius: "md" }, Object.entries(ext).map(([name, fact]) => /* @__PURE__ */ React9.createElement(Accordion2.Item, { key: name, value: name }, /* @__PURE__ */ React9.createElement(Accordion2.Control, null, /* @__PURE__ */ React9.createElement(Group9, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React9.createElement(Text9, { size: "sm", fw: 500, style: { flex: 1, minWidth: 0 }, truncate: true }, name), fact.status === "ok" ? /* @__PURE__ */ React9.createElement(Badge2, { size: "sm", variant: "light", color: "green", leftSection: /* @__PURE__ */ React9.createElement(IconCheck5, { size: 10 }) }, "answered") : /* @__PURE__ */ React9.createElement(Badge2, { size: "sm", variant: "light", color: "orange", leftSection: /* @__PURE__ */ React9.createElement(IconAlertTriangle3, { size: 10 }) }, "couldn't answer"))), /* @__PURE__ */ React9.createElement(Accordion2.Panel, null, /* @__PURE__ */ React9.createElement(Stack9, { gap: 4 }, /* @__PURE__ */ React9.createElement(Text9, { size: "xs", c: "dimmed" }, "We asked ", originOf(fact.transcript.request.url)), fact.status === "ok" ? /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(Text9, { size: "sm" }, "Their answer: ", /* @__PURE__ */ React9.createElement("b", null, typeof fact.value === "boolean" ? fact.value ? "Yes" : "No" : `${Math.round(fact.value / 100)}/100`)), fact.reason && /* @__PURE__ */ React9.createElement(Text9, { size: "xs" }, fact.reason)) : /* @__PURE__ */ React9.createElement(Text9, { size: "sm", c: "dimmed" }, fact.onError === "reject" ? "They never answered, so the claim was rejected to stay safe." : "They never answered, so the claim is held for a person to look at."), /* @__PURE__ */ React9.createElement(Text9, { size: "xs", c: "dimmed" }, fact.transcript.attempts, " ", fact.transcript.attempts === 1 ? "try" : "tries", " \xB7 ", fact.transcript.elapsedMs, " ms"))))));
|
|
740
1154
|
|
|
741
1155
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/TechnicalDetails.tsx
|
|
742
|
-
import
|
|
743
|
-
import { ActionIcon as
|
|
744
|
-
import { IconCheck as
|
|
745
|
-
var CopyIcon = ({ value }) => /* @__PURE__ */
|
|
746
|
-
var IdRow = ({ label, value }) => value ? /* @__PURE__ */
|
|
747
|
-
var SubHead = ({ children }) => /* @__PURE__ */
|
|
1156
|
+
import React10 from "react";
|
|
1157
|
+
import { ActionIcon as ActionIcon3, Badge as Badge3, CopyButton as CopyButton2, Group as Group10, Paper as Paper2, ScrollArea, Stack as Stack10, Table, Text as Text10, Timeline, Tooltip as Tooltip5 } from "@mantine/core";
|
|
1158
|
+
import { IconCheck as IconCheck6, IconCopy as IconCopy2 } from "@tabler/icons-react";
|
|
1159
|
+
var CopyIcon = ({ value }) => /* @__PURE__ */ React10.createElement(CopyButton2, { value, timeout: 1500 }, ({ copied, copy }) => /* @__PURE__ */ React10.createElement(Tooltip5, { label: copied ? "Copied" : "Copy" }, /* @__PURE__ */ React10.createElement(ActionIcon3, { size: "xs", variant: "subtle", color: copied ? "teal" : "gray", onClick: copy }, copied ? /* @__PURE__ */ React10.createElement(IconCheck6, { size: 12 }) : /* @__PURE__ */ React10.createElement(IconCopy2, { size: 12 }))));
|
|
1160
|
+
var IdRow = ({ label, value }) => value ? /* @__PURE__ */ React10.createElement(Group10, { gap: 6, wrap: "nowrap" }, /* @__PURE__ */ React10.createElement(Text10, { size: "xs", c: "dimmed", style: { width: 110, flexShrink: 0 } }, label), /* @__PURE__ */ React10.createElement(Text10, { size: "xs", style: { fontFamily: "monospace", wordBreak: "break-all", flex: 1 } }, value), /* @__PURE__ */ React10.createElement(CopyIcon, { value })) : null;
|
|
1161
|
+
var SubHead = ({ children }) => /* @__PURE__ */ React10.createElement(Text10, { size: "xs", fw: 600, c: "dimmed", tt: "uppercase" }, children);
|
|
748
1162
|
var JsonViewer = ({ label, value }) => {
|
|
749
1163
|
const json = JSON.stringify(value, null, 2);
|
|
750
|
-
return /* @__PURE__ */
|
|
1164
|
+
return /* @__PURE__ */ React10.createElement(Stack10, { gap: 4 }, /* @__PURE__ */ React10.createElement(Group10, { gap: 6 }, /* @__PURE__ */ React10.createElement(SubHead, null, label), /* @__PURE__ */ React10.createElement(CopyIcon, { value: json })), /* @__PURE__ */ React10.createElement(Paper2, { p: "xs", radius: "sm", style: { background: "var(--mantine-color-neutralColor-3)" } }, /* @__PURE__ */ React10.createElement(ScrollArea.Autosize, { mah: 240 }, /* @__PURE__ */ React10.createElement("pre", { style: { margin: 0, fontSize: 11, fontFamily: "monospace", whiteSpace: "pre-wrap", wordBreak: "break-word" } }, json))));
|
|
751
1165
|
};
|
|
752
|
-
var TranscriptCard = ({ name, transcript }) => /* @__PURE__ */
|
|
1166
|
+
var TranscriptCard = ({ name, transcript }) => /* @__PURE__ */ React10.createElement(Paper2, { p: "xs", radius: "sm", style: { background: "var(--mantine-color-neutralColor-3)" } }, /* @__PURE__ */ React10.createElement(Stack10, { gap: 4 }, /* @__PURE__ */ React10.createElement(Group10, { gap: "xs", wrap: "wrap" }, /* @__PURE__ */ React10.createElement(Text10, { size: "xs", fw: 600 }, name), transcript.genId && /* @__PURE__ */ React10.createElement(Text10, { size: "xs", c: "dimmed", style: { fontFamily: "monospace" } }, transcript.genId), /* @__PURE__ */ React10.createElement(Text10, { size: "xs", c: "dimmed" }, transcript.attempts, " attempt", transcript.attempts === 1 ? "" : "s", " \xB7 ", transcript.elapsedMs, " ms", typeof transcript.latencyMs === "number" ? ` \xB7 last try ${transcript.latencyMs} ms` : "")), transcript.usage && /* @__PURE__ */ React10.createElement(Text10, { size: "xs", c: "dimmed" }, "Tokens: ", transcript.usage.promptTokens, " prompt \xB7 ", transcript.usage.completionTokens, " completion \xB7 ", transcript.usage.cachedTokens, " cached \xB7 $", transcript.usage.costUsd.toFixed(6)), /* @__PURE__ */ React10.createElement(Text10, { size: "xs", style: { fontFamily: "monospace", wordBreak: "break-all" } }, transcript.request.url), /* @__PURE__ */ React10.createElement(ScrollArea.Autosize, { mah: 140 }, /* @__PURE__ */ React10.createElement("pre", { style: { margin: 0, fontSize: 11, fontFamily: "monospace", whiteSpace: "pre-wrap", wordBreak: "break-word" } }, JSON.stringify({ request: transcript.request.body, response: transcript.response }, null, 2)))));
|
|
753
1167
|
var TechnicalDetails = ({ record, onChain }) => {
|
|
754
1168
|
const { ingest, evaluation, review } = record;
|
|
755
1169
|
const trace = evaluation?.trace ?? null;
|
|
756
1170
|
const billing = evaluation?.billing ?? null;
|
|
757
|
-
return /* @__PURE__ */
|
|
1171
|
+
return /* @__PURE__ */ React10.createElement(Stack10, { gap: "md" }, /* @__PURE__ */ React10.createElement(Stack10, { gap: 4 }, /* @__PURE__ */ React10.createElement(SubHead, null, "Identifiers"), /* @__PURE__ */ React10.createElement(IdRow, { label: "Claim ID", value: record.claimId }), /* @__PURE__ */ React10.createElement(IdRow, { label: "Collection ID", value: evaluation?.collectionId }), /* @__PURE__ */ React10.createElement(IdRow, { label: "Rubric ID", value: evaluation?.rubricId }), /* @__PURE__ */ React10.createElement(IdRow, { label: "Result digest", value: evaluation?.resultDigest }), /* @__PURE__ */ React10.createElement(IdRow, { label: "Final digest", value: review?.finalDigest }), /* @__PURE__ */ React10.createElement(IdRow, { label: "Workflow instance", value: ingest?.instanceId })), ingest && /* @__PURE__ */ React10.createElement(Stack10, { gap: 4 }, /* @__PURE__ */ React10.createElement(SubHead, null, "Pipeline"), /* @__PURE__ */ React10.createElement(Timeline, { active: evaluation ? 2 : 0, bulletSize: 16, lineWidth: 2 }, /* @__PURE__ */ React10.createElement(Timeline.Item, { title: /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Queued") }, /* @__PURE__ */ React10.createElement(Text10, { size: "xs", c: "dimmed" }, new Date(ingest.createdAt).toLocaleString())), evaluation && /* @__PURE__ */ React10.createElement(Timeline.Item, { title: /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Evaluated") }, /* @__PURE__ */ React10.createElement(Text10, { size: "xs", c: "dimmed" }, new Date(evaluation.createdAt).toLocaleString())), /* @__PURE__ */ React10.createElement(Timeline.Item, { title: /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Now: ", ingest.status) }, /* @__PURE__ */ React10.createElement(Text10, { size: "xs", c: "dimmed" }, new Date(ingest.updatedAt).toLocaleString())))), trace && /* @__PURE__ */ React10.createElement(Stack10, { gap: 4 }, /* @__PURE__ */ React10.createElement(SubHead, null, "Context snapshot"), /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Evaluation clock: ", trace.ctx.now), /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Collection window: ", trace.ctx.collection.startDate ?? "\u2014", " \u2013 ", trace.ctx.collection.endDate ?? "\u2014"), /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Submitter: ", trace.ctx.claim.submitter ?? "\u2014"), /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Submitted: ", trace.ctx.claim.submissionDate ?? "\u2014")), trace && Object.keys(trace.derived).length > 0 && /* @__PURE__ */ React10.createElement(Stack10, { gap: 4 }, /* @__PURE__ */ React10.createElement(SubHead, null, "Derived values"), /* @__PURE__ */ React10.createElement(Table, { withTableBorder: false, verticalSpacing: 2 }, /* @__PURE__ */ React10.createElement(Table.Tbody, null, Object.entries(trace.derived).map(([name, value]) => /* @__PURE__ */ React10.createElement(Table.Tr, { key: name }, /* @__PURE__ */ React10.createElement(Table.Td, null, /* @__PURE__ */ React10.createElement(Text10, { size: "xs", style: { fontFamily: "monospace" } }, "~", name)), /* @__PURE__ */ React10.createElement(Table.Td, null, /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, value ?? "null"))))))), trace && /* @__PURE__ */ React10.createElement(Stack10, { gap: 4 }, /* @__PURE__ */ React10.createElement(Group10, { gap: 6 }, /* @__PURE__ */ React10.createElement(SubHead, null, "Form proof"), trace.formProof.drifted && /* @__PURE__ */ React10.createElement(Badge3, { size: "xs", variant: "light", color: "orange" }, "drifted \u2014 the form changed after the rules were written; all rules still bind")), /* @__PURE__ */ React10.createElement(IdRow, { label: "Pinned", value: trace.formProof.pinned }), /* @__PURE__ */ React10.createElement(IdRow, { label: "Live", value: trace.formProof.live })), trace && trace.attachments.length > 0 && /* @__PURE__ */ React10.createElement(Stack10, { gap: 4 }, /* @__PURE__ */ React10.createElement(SubHead, null, "Observed attachments"), trace.attachments.map((attachment, i) => /* @__PURE__ */ React10.createElement(Text10, { key: i, size: "xs", style: { wordBreak: "break-all" } }, attachment.question, ": ", attachment.name, " \xB7 ", attachment.mediaType, " \xB7 ", attachment.cid ?? "no CID", " \xB7", " ", attachment.size != null ? `${attachment.size} bytes` : "size unknown"))), trace && (Object.keys(trace.ext).length > 0 || Object.keys(trace.ai).length > 0) && /* @__PURE__ */ React10.createElement(Stack10, { gap: 6 }, /* @__PURE__ */ React10.createElement(SubHead, null, "Transcripts"), Object.entries(trace.ext).map(([name, fact]) => /* @__PURE__ */ React10.createElement(TranscriptCard, { key: `ext-${name}`, name: `ext.${name}`, transcript: fact.transcript })), Object.entries(trace.ai).map(([name, fact]) => /* @__PURE__ */ React10.createElement(TranscriptCard, { key: `ai-${name}`, name: `ai.${name}`, transcript: fact.transcript }))), trace?.settings && /* @__PURE__ */ React10.createElement(Stack10, { gap: 4 }, /* @__PURE__ */ React10.createElement(SubHead, null, "Settings in effect"), /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "AI checks: ", trace.settings.allowAiChecks ? "on" : "off"), /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Fake-photo detection: ", trace.settings.allowImageChecks ? "on" : "off")), evaluation && /* @__PURE__ */ React10.createElement(Stack10, { gap: 4 }, /* @__PURE__ */ React10.createElement(SubHead, null, "This claim's bill"), billing?.free ? /* @__PURE__ */ React10.createElement(Text10, { size: "xs", c: "dimmed" }, "Free run \u2014 ", billing.free) : /* @__PURE__ */ React10.createElement(React10.Fragment, null, billing?.base && /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Checking the claim: ", usdLabel(billing.base.usd)), billing?.aiChecks && /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "AI checks \xD7 ", billing.aiChecks.count, ": ", usdLabel(billing.aiChecks.usd)), billing?.imageChecks && /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Photo checks \xD7 ", billing.imageChecks.count, ": ", usdLabel(billing.imageChecks.usd)), /* @__PURE__ */ React10.createElement(Text10, { size: "xs", fw: 600 }, "Total: ", usdLabel(evaluation.revenueUsd)))), onChain && /* @__PURE__ */ React10.createElement(Stack10, { gap: 4 }, /* @__PURE__ */ React10.createElement(SubHead, null, "On-chain evaluation"), /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Status: ", onChain.statusLabel), onChain.evaluatorDid && /* @__PURE__ */ React10.createElement(IdRow, { label: "Evaluator", value: onChain.evaluatorDid }), onChain.evaluatedAt && /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Date: ", new Date(onChain.evaluatedAt).toLocaleString()), onChain.amount && onChain.amount.length > 0 && /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Amount: ", onChain.amount.map(formatCoin).join(", ")), onChain.reason && /* @__PURE__ */ React10.createElement(Text10, { size: "xs" }, "Reason: ", onChain.reason)), evaluation?.decision && /* @__PURE__ */ React10.createElement(JsonViewer, { label: "Raw decision", value: evaluation.decision }), trace && /* @__PURE__ */ React10.createElement(JsonViewer, { label: "Raw trace", value: trace }), review?.finalDecision && /* @__PURE__ */ React10.createElement(JsonViewer, { label: "Raw final decision", value: review.finalDecision }));
|
|
758
1172
|
};
|
|
759
1173
|
|
|
760
1174
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/useClaimEngine.ts
|
|
761
|
-
import { useCallback as useCallback2, useEffect as
|
|
1175
|
+
import { useCallback as useCallback2, useEffect as useEffect3, useRef as useRef3, useState as useState7 } from "react";
|
|
762
1176
|
var POLL_MS = 1e4;
|
|
763
1177
|
var REVIEW_POLL_MS = 5e3;
|
|
764
|
-
function useClaimEngine(claimId) {
|
|
1178
|
+
function useClaimEngine(claimId, options) {
|
|
1179
|
+
const enabled = options?.enabled ?? true;
|
|
765
1180
|
const handlers = useBlocknoteHandlers();
|
|
766
|
-
const handlersRef =
|
|
767
|
-
|
|
1181
|
+
const handlersRef = useRef3(handlers);
|
|
1182
|
+
useEffect3(() => {
|
|
768
1183
|
handlersRef.current = handlers;
|
|
769
1184
|
}, [handlers]);
|
|
770
1185
|
const supported = typeof handlers.getClaimEvaluation === "function";
|
|
771
|
-
const [record, setRecord] =
|
|
772
|
-
const [forbidden, setForbidden] =
|
|
773
|
-
const [loading, setLoading] =
|
|
774
|
-
const [updatedAt, setUpdatedAt] =
|
|
775
|
-
const [fetchIndex, setFetchIndex] =
|
|
776
|
-
const [submitting, setSubmitting] =
|
|
777
|
-
const [submitError, setSubmitError] =
|
|
778
|
-
const [reviewSent, setReviewSent] =
|
|
779
|
-
|
|
1186
|
+
const [record, setRecord] = useState7(null);
|
|
1187
|
+
const [forbidden, setForbidden] = useState7(false);
|
|
1188
|
+
const [loading, setLoading] = useState7(false);
|
|
1189
|
+
const [updatedAt, setUpdatedAt] = useState7(null);
|
|
1190
|
+
const [fetchIndex, setFetchIndex] = useState7(0);
|
|
1191
|
+
const [submitting, setSubmitting] = useState7(false);
|
|
1192
|
+
const [submitError, setSubmitError] = useState7(null);
|
|
1193
|
+
const [reviewSent, setReviewSent] = useState7(false);
|
|
1194
|
+
useEffect3(() => {
|
|
780
1195
|
setRecord(null);
|
|
781
1196
|
setForbidden(false);
|
|
782
1197
|
setUpdatedAt(null);
|
|
783
1198
|
setSubmitError(null);
|
|
784
1199
|
setReviewSent(false);
|
|
785
|
-
setLoading(!!claimId);
|
|
1200
|
+
setLoading(enabled && !!claimId);
|
|
786
1201
|
setFetchIndex(0);
|
|
787
|
-
}, [claimId]);
|
|
788
|
-
|
|
789
|
-
if (!supported || !claimId) return;
|
|
1202
|
+
}, [claimId, enabled]);
|
|
1203
|
+
useEffect3(() => {
|
|
1204
|
+
if (!supported || !claimId || !enabled) return;
|
|
790
1205
|
let cancelled = false;
|
|
791
1206
|
(async () => {
|
|
792
1207
|
try {
|
|
@@ -812,16 +1227,16 @@ function useClaimEngine(claimId) {
|
|
|
812
1227
|
return () => {
|
|
813
1228
|
cancelled = true;
|
|
814
1229
|
};
|
|
815
|
-
}, [supported, claimId, fetchIndex]);
|
|
816
|
-
|
|
817
|
-
if (!supported || !claimId || forbidden || updatedAt == null) return;
|
|
1230
|
+
}, [supported, claimId, enabled, fetchIndex]);
|
|
1231
|
+
useEffect3(() => {
|
|
1232
|
+
if (!supported || !claimId || !enabled || forbidden || updatedAt == null) return;
|
|
818
1233
|
const view = engineStateOf(record);
|
|
819
1234
|
const reviewCompleting = reviewSent || view.key === "review_completing";
|
|
820
1235
|
const interval = reviewCompleting ? REVIEW_POLL_MS : view.settled ? 0 : POLL_MS;
|
|
821
1236
|
if (!interval) return;
|
|
822
1237
|
const timer = setTimeout(() => setFetchIndex((i) => i + 1), interval);
|
|
823
1238
|
return () => clearTimeout(timer);
|
|
824
|
-
}, [supported, claimId, forbidden, record, reviewSent, updatedAt]);
|
|
1239
|
+
}, [supported, claimId, enabled, forbidden, record, reviewSent, updatedAt]);
|
|
825
1240
|
const refresh = useCallback2(() => setFetchIndex((i) => i + 1), []);
|
|
826
1241
|
const submitReview = useCallback2(
|
|
827
1242
|
async (answers) => {
|
|
@@ -849,127 +1264,130 @@ function useClaimEngine(claimId) {
|
|
|
849
1264
|
);
|
|
850
1265
|
return { supported, record, forbidden, loading, updatedAt, refresh, submitReview, submitting, submitError, reviewSent };
|
|
851
1266
|
}
|
|
852
|
-
function useEngineSummaries(collectionId) {
|
|
1267
|
+
function useEngineSummaries(collectionId, options) {
|
|
1268
|
+
const enabled = options?.enabled ?? true;
|
|
853
1269
|
const handlers = useBlocknoteHandlers();
|
|
854
|
-
const handlersRef =
|
|
855
|
-
|
|
1270
|
+
const handlersRef = useRef3(handlers);
|
|
1271
|
+
useEffect3(() => {
|
|
856
1272
|
handlersRef.current = handlers;
|
|
857
1273
|
}, [handlers]);
|
|
858
1274
|
const supported = typeof handlers.listClaimEvaluations === "function";
|
|
859
|
-
const [byClaimId, setByClaimId] =
|
|
860
|
-
const [notEnrolled, setNotEnrolled] =
|
|
861
|
-
const [
|
|
862
|
-
const [
|
|
863
|
-
|
|
864
|
-
|
|
1275
|
+
const [byClaimId, setByClaimId] = useState7({});
|
|
1276
|
+
const [notEnrolled, setNotEnrolled] = useState7(false);
|
|
1277
|
+
const [engineUnavailable, setEngineUnavailable] = useState7(false);
|
|
1278
|
+
const [updatedAt, setUpdatedAt] = useState7(null);
|
|
1279
|
+
const [fetchIndex, setFetchIndex] = useState7(0);
|
|
1280
|
+
useEffect3(() => {
|
|
1281
|
+
if (!supported || !collectionId || !enabled) return;
|
|
865
1282
|
let cancelled = false;
|
|
866
1283
|
(async () => {
|
|
867
1284
|
try {
|
|
868
|
-
const result = await handlersRef.current.listClaimEvaluations({ collectionId });
|
|
1285
|
+
const result = await handlersRef.current.listClaimEvaluations({ collectionId, silent: true });
|
|
869
1286
|
if (cancelled) return;
|
|
1287
|
+
if (result?.unauthorized === true) {
|
|
1288
|
+
setEngineUnavailable(true);
|
|
1289
|
+
return;
|
|
1290
|
+
}
|
|
870
1291
|
const next = {};
|
|
871
1292
|
for (const item of result?.items ?? []) next[item.claimId] = item;
|
|
872
1293
|
setByClaimId(next);
|
|
873
1294
|
setNotEnrolled(result?.notEnrolled === true);
|
|
1295
|
+
setEngineUnavailable(false);
|
|
1296
|
+
setUpdatedAt(Date.now());
|
|
874
1297
|
} catch (err) {
|
|
875
1298
|
console.warn("[claim.evaluate] listClaimEvaluations failed", err);
|
|
876
|
-
|
|
877
|
-
if (!cancelled) setUpdatedAt(Date.now());
|
|
1299
|
+
if (!cancelled) setEngineUnavailable(true);
|
|
878
1300
|
}
|
|
879
1301
|
})();
|
|
880
1302
|
return () => {
|
|
881
1303
|
cancelled = true;
|
|
882
1304
|
};
|
|
883
|
-
}, [supported, collectionId, fetchIndex]);
|
|
1305
|
+
}, [supported, collectionId, enabled, fetchIndex]);
|
|
884
1306
|
const refresh = useCallback2(() => setFetchIndex((i) => i + 1), []);
|
|
885
|
-
return { supported, byClaimId, notEnrolled, updatedAt, refresh };
|
|
1307
|
+
return { supported, byClaimId, notEnrolled, engineUnavailable, updatedAt, refresh };
|
|
886
1308
|
}
|
|
887
1309
|
|
|
888
|
-
// src/mantine/blocks/action/actionTypes/evaluateClaim/
|
|
889
|
-
import
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
function
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
1310
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/useOracleClaims.ts
|
|
1311
|
+
import { useCallback as useCallback3, useEffect as useEffect4, useRef as useRef4, useState as useState8 } from "react";
|
|
1312
|
+
var EMPTY = {};
|
|
1313
|
+
function useOracleClaimSummaries(collectionId, protocolDid, oracleResolved) {
|
|
1314
|
+
const handlers = useBlocknoteHandlers();
|
|
1315
|
+
const handlersRef = useRef4(handlers);
|
|
1316
|
+
useEffect4(() => {
|
|
1317
|
+
handlersRef.current = handlers;
|
|
1318
|
+
}, [handlers]);
|
|
1319
|
+
const [byClaimId, setByClaimId] = useState8(EMPTY);
|
|
1320
|
+
const [updatedAt, setUpdatedAt] = useState8(null);
|
|
1321
|
+
const [fetchIndex, setFetchIndex] = useState8(0);
|
|
1322
|
+
const supported = typeof handlers.listOracleClaims === "function" && typeof handlers.hasCachedSigner === "function";
|
|
1323
|
+
useEffect4(() => {
|
|
1324
|
+
setByClaimId(EMPTY);
|
|
1325
|
+
setUpdatedAt(null);
|
|
1326
|
+
if (!supported || !collectionId || !protocolDid || !oracleResolved) return;
|
|
1327
|
+
if (!handlersRef.current.hasCachedSigner()) return;
|
|
1328
|
+
let cancelled = false;
|
|
1329
|
+
(async () => {
|
|
1330
|
+
try {
|
|
1331
|
+
const result = await handlersRef.current.listOracleClaims({ protocolDid, collectionId, silent: true });
|
|
1332
|
+
if (cancelled) return;
|
|
1333
|
+
if (result.status !== "ok") return;
|
|
1334
|
+
const next = {};
|
|
1335
|
+
for (const item of result.items) next[item.claimId] = item;
|
|
1336
|
+
setByClaimId(next);
|
|
1337
|
+
setUpdatedAt(Date.now());
|
|
1338
|
+
} catch (err) {
|
|
1339
|
+
console.warn("[claim.evaluate] listOracleClaims failed", err);
|
|
914
1340
|
}
|
|
915
|
-
|
|
1341
|
+
})();
|
|
1342
|
+
return () => {
|
|
1343
|
+
cancelled = true;
|
|
1344
|
+
};
|
|
1345
|
+
}, [supported, collectionId, protocolDid, oracleResolved, fetchIndex]);
|
|
1346
|
+
const refresh = useCallback3(() => setFetchIndex((i) => i + 1), []);
|
|
1347
|
+
return { byClaimId, updatedAt, refresh };
|
|
1348
|
+
}
|
|
1349
|
+
function useOracleResolution(protocolDid, options) {
|
|
1350
|
+
const ready = options?.ready ?? true;
|
|
1351
|
+
const handlers = useBlocknoteHandlers();
|
|
1352
|
+
const handlersRef = useRef4(handlers);
|
|
1353
|
+
useEffect4(() => {
|
|
1354
|
+
handlersRef.current = handlers;
|
|
1355
|
+
}, [handlers]);
|
|
1356
|
+
const supported = typeof handlers.resolveOracleForProtocol === "function";
|
|
1357
|
+
const [status, setStatus] = useState8("checking");
|
|
1358
|
+
useEffect4(() => {
|
|
1359
|
+
if (!ready) {
|
|
1360
|
+
setStatus("checking");
|
|
1361
|
+
return;
|
|
916
1362
|
}
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
onSubmit
|
|
939
|
-
}) => {
|
|
940
|
-
const [answers, setAnswers] = useState5({});
|
|
941
|
-
const [answeringForOther, setAnsweringForOther] = useState5(false);
|
|
942
|
-
const pendingTaskIds = evaluation.decision?.pendingTasks ?? [];
|
|
943
|
-
const tasks = useMemo2(() => pendingTaskIds.map((id) => ({ id, task: rubric?.review?.tasks?.find((t) => t.id === id) })), [pendingTaskIds, rubric]);
|
|
944
|
-
if (review?.status === "completed") {
|
|
945
|
-
const when = review.completedAt ? new Date(review.completedAt).toLocaleString(void 0, { day: "numeric", month: "short", year: "numeric" }) : null;
|
|
946
|
-
return /* @__PURE__ */ React8.createElement(Stack8, { gap: 4 }, /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "dimmed" }, "Reviewed by ", reviewerName || review.reviewerDid, when ? `, ${when}` : ""), Object.entries(review.answers || {}).map(([taskId, answer]) => {
|
|
947
|
-
const task = rubric?.review?.tasks?.find((t) => t.id === taskId);
|
|
948
|
-
return /* @__PURE__ */ React8.createElement(Text8, { key: taskId, size: "xs", c: "dimmed" }, task?.prompt || taskId, ": ", /* @__PURE__ */ React8.createElement("b", null, answer === true ? "Yes" : answer === false ? "No" : String(answer)));
|
|
949
|
-
}));
|
|
950
|
-
}
|
|
951
|
-
if (reviewSent || review?.status === "received") return null;
|
|
952
|
-
if (review?.status === "failed") {
|
|
953
|
-
return /* @__PURE__ */ React8.createElement(Stack8, { gap: "xs" }, /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "dimmed" }, "Your answers were saved. Sending them again finishes the evaluation \u2014 nobody is asked twice."), /* @__PURE__ */ React8.createElement(Group8, null, /* @__PURE__ */ React8.createElement(Button2, { size: "xs", loading: submitting, disabled, onClick: () => onSubmit(review.answers || {}) }, "Send again")), submitError && /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "red" }, submitError));
|
|
954
|
-
}
|
|
955
|
-
const needsHumanNow = evaluation.status === "pending_review" || evaluation.verdict === "review";
|
|
956
|
-
if (!needsHumanNow) return null;
|
|
957
|
-
if (tasks.length === 0) {
|
|
958
|
-
const reasons = evaluation.decision?.reasons ?? [];
|
|
959
|
-
if (reasons.length === 0) return null;
|
|
960
|
-
return /* @__PURE__ */ React8.createElement(Stack8, { gap: 2 }, reasons.map((reason) => /* @__PURE__ */ React8.createElement(Text8, { key: reason.code, size: "xs", c: "dimmed" }, reason.reason, " (", reason.code, ")")));
|
|
961
|
-
}
|
|
962
|
-
if (!isAssignedToMe && !answeringForOther) {
|
|
963
|
-
return /* @__PURE__ */ React8.createElement(UnstyledButton2, { onClick: () => setAnsweringForOther(true) }, /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "dimmed", td: "underline" }, "Answer on their behalf"));
|
|
964
|
-
}
|
|
965
|
-
const readOnly = disabled;
|
|
966
|
-
const allAnswered = tasks.every(({ id }) => answers[id] !== void 0);
|
|
967
|
-
return /* @__PURE__ */ React8.createElement(Stack8, { gap: "md" }, tasks.map(({ id, task }, index) => /* @__PURE__ */ React8.createElement(Stack8, { key: id, gap: 6 }, /* @__PURE__ */ React8.createElement(Text8, { size: "sm", fw: 500 }, index + 1, ". ", task?.prompt || id), task?.show?.map((ref) => /* @__PURE__ */ React8.createElement(Evidence, { key: ref, value: evidenceValue(ref, credentialSubject) })), task ? /* @__PURE__ */ React8.createElement(AnswerButtons, { task, value: answers[id], disabled: readOnly || submitting, onChange: (value) => setAnswers((prev) => ({ ...prev, [id]: value })) }) : /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "dimmed" }, "This question is missing from the loaded rules \u2014 refresh, or check the collection's rules."))), /* @__PURE__ */ React8.createElement(Group8, { gap: "sm", align: "center" }, /* @__PURE__ */ React8.createElement(Button2, { size: "xs", disabled: readOnly || !allAnswered, loading: submitting, onClick: () => onSubmit(answers) }, "Send review"), /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "dimmed" }, "Your answers finish this claim's evaluation.")), submitError && /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "red" }, submitError));
|
|
968
|
-
};
|
|
1363
|
+
if (!supported || !protocolDid) {
|
|
1364
|
+
setStatus("none");
|
|
1365
|
+
return;
|
|
1366
|
+
}
|
|
1367
|
+
setStatus("checking");
|
|
1368
|
+
let cancelled = false;
|
|
1369
|
+
(async () => {
|
|
1370
|
+
try {
|
|
1371
|
+
const resolved = await handlersRef.current.resolveOracleForProtocol({ protocolDid });
|
|
1372
|
+
if (!cancelled) setStatus(resolved ? "resolved" : "none");
|
|
1373
|
+
} catch (err) {
|
|
1374
|
+
console.warn("[claim.evaluate] resolveOracleForProtocol (sequencing check) failed", err);
|
|
1375
|
+
if (!cancelled) setStatus("none");
|
|
1376
|
+
}
|
|
1377
|
+
})();
|
|
1378
|
+
return () => {
|
|
1379
|
+
cancelled = true;
|
|
1380
|
+
};
|
|
1381
|
+
}, [ready, supported, protocolDid]);
|
|
1382
|
+
return { status };
|
|
1383
|
+
}
|
|
969
1384
|
|
|
970
1385
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/VerdictBlock.tsx
|
|
1386
|
+
import React11, { useState as useState9 } from "react";
|
|
1387
|
+
import { ActionIcon as ActionIcon4, Badge as Badge4, Box as Box3, Group as Group11, Loader as Loader2, Stack as Stack11, Text as Text11, Tooltip as Tooltip6, UnstyledButton as UnstyledButton3 } from "@mantine/core";
|
|
1388
|
+
import { IconAlertTriangle as IconAlertTriangle4, IconArrowRight, IconCheck as IconCheck7, IconMinus as IconMinus3, IconRefresh, IconX as IconX5 } from "@tabler/icons-react";
|
|
971
1389
|
var TONE_COLOR3 = { positive: "green", attention: "yellow", negative: "red", neutral: "gray" };
|
|
972
|
-
var TONE_ICON2 = { positive:
|
|
1390
|
+
var TONE_ICON2 = { positive: IconCheck7, attention: IconAlertTriangle4, negative: IconX5, neutral: IconMinus3 };
|
|
973
1391
|
function formatDate(value) {
|
|
974
1392
|
if (!value) return null;
|
|
975
1393
|
const date = new Date(value);
|
|
@@ -1003,7 +1421,7 @@ function effectiveHeader(animated, summary, reviewSent, assignedElsewhereTo, tas
|
|
|
1003
1421
|
return { headline: summary?.headline ?? "", detail: summary?.detail ?? "", tone: toneOf(summary), animated, noRail: false };
|
|
1004
1422
|
}
|
|
1005
1423
|
var MatchedClaims = ({ refs, duplicate, openableClaimIds, onOpenClaim }) => {
|
|
1006
|
-
const [expanded, setExpanded] =
|
|
1424
|
+
const [expanded, setExpanded] = useState9(false);
|
|
1007
1425
|
if (refs.length === 0 || duplicate && !isDuplicateFlagged(duplicate)) return null;
|
|
1008
1426
|
const detailFor = (claimId) => {
|
|
1009
1427
|
const candidate = duplicate?.candidates.find((c) => c.claimId === claimId);
|
|
@@ -1015,11 +1433,11 @@ var MatchedClaims = ({ refs, duplicate, openableClaimIds, onOpenClaim }) => {
|
|
|
1015
1433
|
...refs.map((ref) => ({ id: ref.id, detail: detailFor(ref.id) })),
|
|
1016
1434
|
...expanded ? extraCandidates.map((c) => ({ id: c.claimId, detail: detailFor(c.claimId) })) : []
|
|
1017
1435
|
];
|
|
1018
|
-
return /* @__PURE__ */
|
|
1436
|
+
return /* @__PURE__ */ React11.createElement(Stack11, { gap: 4 }, /* @__PURE__ */ React11.createElement(Text11, { size: "xs", fw: 600, c: "dimmed" }, refs[0].label), rows.map((row) => {
|
|
1019
1437
|
const canOpen = !!onOpenClaim && !!openableClaimIds?.has(row.id);
|
|
1020
|
-
const id = /* @__PURE__ */
|
|
1021
|
-
return /* @__PURE__ */
|
|
1022
|
-
}), !expanded && extraCandidates.length > 0 && /* @__PURE__ */
|
|
1438
|
+
const id = /* @__PURE__ */ React11.createElement(Text11, { size: "xs", style: { fontFamily: "monospace" } }, truncateClaimId2(row.id));
|
|
1439
|
+
return /* @__PURE__ */ React11.createElement(Group11, { key: row.id, gap: 6, wrap: "wrap", align: "baseline" }, canOpen ? /* @__PURE__ */ React11.createElement(UnstyledButton3, { onClick: () => onOpenClaim?.(row.id) }, /* @__PURE__ */ React11.createElement(Group11, { gap: 2, align: "baseline", wrap: "nowrap" }, id, /* @__PURE__ */ React11.createElement(IconArrowRight, { size: 12 }))) : id, row.detail && /* @__PURE__ */ React11.createElement(Text11, { size: "xs", c: "dimmed" }, row.detail));
|
|
1440
|
+
}), !expanded && extraCandidates.length > 0 && /* @__PURE__ */ React11.createElement(UnstyledButton3, { onClick: () => setExpanded(true) }, /* @__PURE__ */ React11.createElement(Text11, { size: "xs", fw: 600, c: "dimmed", td: "underline" }, "+", extraCandidates.length, " more")));
|
|
1023
1441
|
};
|
|
1024
1442
|
var VerdictBlock = ({
|
|
1025
1443
|
record,
|
|
@@ -1055,7 +1473,7 @@ var VerdictBlock = ({
|
|
|
1055
1473
|
const checkedAt = formatDate(review?.completedAt ?? evaluation?.createdAt);
|
|
1056
1474
|
const waitingSegment = assignedElsewhereTo && evaluation ? waitingText2(evaluation.createdAt, rubric?.review?.slaHours) : null;
|
|
1057
1475
|
const metaLine = [...leadingFacts, checkedAt ? `Checked ${checkedAt}` : null, costFact, onChain?.statusLabel ?? null, waitingSegment].filter((s) => !!s).join(" \xB7 ");
|
|
1058
|
-
return /* @__PURE__ */
|
|
1476
|
+
return /* @__PURE__ */ React11.createElement(
|
|
1059
1477
|
Box3,
|
|
1060
1478
|
{
|
|
1061
1479
|
p: "md",
|
|
@@ -1066,7 +1484,7 @@ var VerdictBlock = ({
|
|
|
1066
1484
|
borderLeft: header.noRail ? void 0 : `3px solid var(--mantine-color-${toneColor}-6)`
|
|
1067
1485
|
}
|
|
1068
1486
|
},
|
|
1069
|
-
/* @__PURE__ */
|
|
1487
|
+
/* @__PURE__ */ React11.createElement(Stack11, { gap: 8 }, /* @__PURE__ */ React11.createElement(Group11, { gap: "xs", wrap: "nowrap" }, header.animated ? /* @__PURE__ */ React11.createElement(Loader2, { size: 16, color: toneColor }) : /* @__PURE__ */ React11.createElement(Icon, { size: 16, color: `var(--mantine-color-${toneColor}-6)` }), /* @__PURE__ */ React11.createElement(Text11, { fw: 700, c: toneColor, size: "sm", style: { flex: 1, minWidth: 0 } }, header.headline), matchFact && /* @__PURE__ */ React11.createElement(Badge4, { size: "sm", variant: "light", color: "neutralColor" }, matchFact.text)), header.detail && /* @__PURE__ */ React11.createElement(Text11, { size: "sm" }, header.detail), summary?.disposition === "your_call_on_chain" && /* @__PURE__ */ React11.createElement(Text11, { size: "xs", c: "dimmed" }, "Nothing was written on chain \u2014 approve or reject it yourself below."), /* @__PURE__ */ React11.createElement(MatchedClaims, { refs: summary?.refs ?? [], duplicate, openableClaimIds, onOpenClaim }), evaluation && /* @__PURE__ */ React11.createElement(
|
|
1070
1488
|
ReviewAnswerForm,
|
|
1071
1489
|
{
|
|
1072
1490
|
evaluation,
|
|
@@ -1081,14 +1499,14 @@ var VerdictBlock = ({
|
|
|
1081
1499
|
disabled,
|
|
1082
1500
|
onSubmit
|
|
1083
1501
|
}
|
|
1084
|
-
), /* @__PURE__ */
|
|
1502
|
+
), /* @__PURE__ */ React11.createElement(Group11, { justify: "space-between", align: "center", wrap: "nowrap", gap: "xs" }, /* @__PURE__ */ React11.createElement(Text11, { size: "xs", c: "dimmed", style: { flex: 1, minWidth: 0 } }, metaLine), /* @__PURE__ */ React11.createElement(Tooltip6, { label: updatedAt ? `Updated ${new Date(updatedAt).toLocaleTimeString()}` : "Loading\u2026" }, /* @__PURE__ */ React11.createElement(ActionIcon4, { size: "xs", variant: "subtle", color: "gray", onClick: onRefresh, "aria-label": "Refresh" }, /* @__PURE__ */ React11.createElement(IconRefresh, { size: 12 })))))
|
|
1085
1503
|
);
|
|
1086
1504
|
};
|
|
1087
1505
|
|
|
1088
1506
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/WhyThisResult.tsx
|
|
1089
|
-
import
|
|
1090
|
-
import { Badge as Badge5, Box as Box4, Group as
|
|
1091
|
-
import { IconAlertTriangle as IconAlertTriangle5, IconBan, IconChartBar, IconCheck as
|
|
1507
|
+
import React12 from "react";
|
|
1508
|
+
import { Badge as Badge5, Box as Box4, Group as Group12, Progress, Stack as Stack12, Text as Text12, UnstyledButton as UnstyledButton4 } from "@mantine/core";
|
|
1509
|
+
import { IconAlertTriangle as IconAlertTriangle5, IconBan, IconChartBar, IconCheck as IconCheck8, IconClock, IconMinus as IconMinus4, IconUser as IconUser2, IconX as IconX6 } from "@tabler/icons-react";
|
|
1092
1510
|
var TONE_COLOR4 = { positive: "green", attention: "yellow", negative: "red", neutral: "gray" };
|
|
1093
1511
|
var GATE_TONE = {
|
|
1094
1512
|
passed: "positive",
|
|
@@ -1098,9 +1516,9 @@ var GATE_TONE = {
|
|
|
1098
1516
|
unevaluated: "attention"
|
|
1099
1517
|
};
|
|
1100
1518
|
var GATE_ICON = {
|
|
1101
|
-
passed:
|
|
1102
|
-
failed:
|
|
1103
|
-
skipped:
|
|
1519
|
+
passed: IconCheck8,
|
|
1520
|
+
failed: IconX6,
|
|
1521
|
+
skipped: IconMinus4,
|
|
1104
1522
|
not_reached: IconClock,
|
|
1105
1523
|
unevaluated: IconAlertTriangle5
|
|
1106
1524
|
};
|
|
@@ -1131,7 +1549,7 @@ function whyThisResultLabel(decision) {
|
|
|
1131
1549
|
return `Why this result? \xB7 ${total} check${total === 1 ? "" : "s"}, ${status}`;
|
|
1132
1550
|
}
|
|
1133
1551
|
var WhyThisResult = ({ decision, rubric }) => {
|
|
1134
|
-
const [showAll, setShowAll] =
|
|
1552
|
+
const [showAll, setShowAll] = React12.useState(false);
|
|
1135
1553
|
const gateLabel = (code) => rubric?.gates?.find((gate) => gate.code === code)?.reason || code;
|
|
1136
1554
|
const criterionLabel = (code) => rubric?.scoring?.criteria?.find((criterion) => criterion.code === code)?.reason || code;
|
|
1137
1555
|
const failReason = (code) => decision.reasons?.find((reason) => reason.code === code)?.reason ?? null;
|
|
@@ -1154,7 +1572,7 @@ var WhyThisResult = ({ decision, rubric }) => {
|
|
|
1154
1572
|
};
|
|
1155
1573
|
const renderGateRow = (gate) => {
|
|
1156
1574
|
const tone = GATE_TONE[gate.outcome] ?? "neutral";
|
|
1157
|
-
const Icon = GATE_ICON[gate.outcome] ??
|
|
1575
|
+
const Icon = GATE_ICON[gate.outcome] ?? IconMinus4;
|
|
1158
1576
|
const sentence = (() => {
|
|
1159
1577
|
switch (gate.outcome) {
|
|
1160
1578
|
case "failed":
|
|
@@ -1173,7 +1591,7 @@ var WhyThisResult = ({ decision, rubric }) => {
|
|
|
1173
1591
|
const named = members.filter((member) => gate.outcome === "failed" ? !member.ok : member.ok);
|
|
1174
1592
|
const passedCount = members.filter((member) => member.ok).length;
|
|
1175
1593
|
const bar = members.length > 0 ? gateBar(gate.code) : null;
|
|
1176
|
-
return /* @__PURE__ */
|
|
1594
|
+
return /* @__PURE__ */ React12.createElement(Stack12, { key: gate.code, gap: 2 }, /* @__PURE__ */ React12.createElement(Group12, { gap: "xs", wrap: "nowrap", align: "flex-start" }, /* @__PURE__ */ React12.createElement(Icon, { size: 14, color: `var(--mantine-color-${TONE_COLOR4[tone]}-6)` }), /* @__PURE__ */ React12.createElement(Text12, { size: "sm", style: { flex: 1 } }, sentence, " ", /* @__PURE__ */ React12.createElement(Text12, { span: true, size: "xs", c: "dimmed", style: { fontFamily: "monospace" } }, "(", gate.code, ")"))), members.length > 0 && /* @__PURE__ */ React12.createElement(Stack12, { gap: 0, pl: 24 }, /* @__PURE__ */ React12.createElement(Text12, { size: "xs", c: "dimmed" }, passedCount, " of ", members.length, " check", members.length === 1 ? "" : "s", " passed", bar ? ` \u2014 ${bar}` : ""), named.length > 0 && /* @__PURE__ */ React12.createElement(Text12, { size: "xs", c: "dimmed" }, gate.outcome === "failed" ? "failed: " : "passed: ", named.map((member, i) => /* @__PURE__ */ React12.createElement(React12.Fragment, { key: member.index }, i > 0 && " \xB7 ", /* @__PURE__ */ React12.createElement(Text12, { span: true, size: "xs", style: { fontFamily: "monospace" } }, member.ref))))));
|
|
1177
1595
|
};
|
|
1178
1596
|
const shownGates = decision.gates.filter((gate) => !FOLDABLE.has(gate.outcome) || showAll);
|
|
1179
1597
|
const foldCounts = { passed: 0, skipped: 0, not_reached: 0 };
|
|
@@ -1200,12 +1618,12 @@ var WhyThisResult = ({ decision, rubric }) => {
|
|
|
1200
1618
|
push(scoring.partialFloor, "part-pay");
|
|
1201
1619
|
push(scoring.approveAt, "approve");
|
|
1202
1620
|
}
|
|
1203
|
-
return /* @__PURE__ */
|
|
1621
|
+
return /* @__PURE__ */ React12.createElement(Stack12, { gap: "md" }, decision.gates.length > 0 && /* @__PURE__ */ React12.createElement(Stack12, { gap: 6 }, /* @__PURE__ */ React12.createElement(Group12, { gap: 6 }, /* @__PURE__ */ React12.createElement(IconBan, { size: 14, color: "var(--mantine-color-dimmed)" }), /* @__PURE__ */ React12.createElement(Text12, { size: "xs", fw: 600, c: "dimmed" }, "Must pass")), shownGates.map(renderGateRow), foldSegments.length > 0 && /* @__PURE__ */ React12.createElement(Group12, { gap: 6, wrap: "nowrap" }, !showAll && /* @__PURE__ */ React12.createElement(IconMinus4, { size: 14, color: "var(--mantine-color-dimmed)" }), !showAll && /* @__PURE__ */ React12.createElement(Text12, { size: "sm", c: "dimmed", style: { flex: 1 } }, foldSegments.join(" \xB7 ")), /* @__PURE__ */ React12.createElement(UnstyledButton4, { onClick: () => setShowAll((v) => !v) }, /* @__PURE__ */ React12.createElement(Text12, { size: "xs", fw: 600, c: "dimmed", td: "underline" }, showAll ? "show less" : "show all")))), decision.criteria.length > 0 && /* @__PURE__ */ React12.createElement(Stack12, { gap: 8 }, /* @__PURE__ */ React12.createElement(Group12, { gap: 6 }, /* @__PURE__ */ React12.createElement(IconChartBar, { size: 14, color: "var(--mantine-color-dimmed)" }), /* @__PURE__ */ React12.createElement(Text12, { size: "xs", fw: 600, c: "dimmed" }, "Scored")), decision.criteria.map((criterion) => {
|
|
1204
1622
|
const score = scoreOf(criterion.scoreBps);
|
|
1205
|
-
return /* @__PURE__ */
|
|
1206
|
-
})), decision.criteria.length > 0 && total != null && /* @__PURE__ */
|
|
1623
|
+
return /* @__PURE__ */ React12.createElement(Stack12, { key: criterion.code, gap: 2 }, /* @__PURE__ */ React12.createElement(Group12, { justify: "space-between", gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React12.createElement(Text12, { size: "sm", style: { flex: 1, minWidth: 0 } }, criterionLabel(criterion.code), " ", /* @__PURE__ */ React12.createElement(Text12, { span: true, size: "xs", c: "dimmed" }, "(", criterion.code, ")")), /* @__PURE__ */ React12.createElement(Group12, { gap: 6, wrap: "nowrap" }, criterion.pending && /* @__PURE__ */ React12.createElement(Badge5, { size: "xs", variant: "light", color: "neutralColor", leftSection: /* @__PURE__ */ React12.createElement(IconUser2, { size: 10 }) }, "needs you"), criterion.capped && /* @__PURE__ */ React12.createElement(Badge5, { size: "xs", variant: "light", color: "neutralColor" }, "capped"), !criterion.pending && score != null && /* @__PURE__ */ React12.createElement(Text12, { size: "xs", c: "dimmed", style: { whiteSpace: "nowrap" } }, score, "/100"))), /* @__PURE__ */ React12.createElement(Progress, { value: criterion.pending ? 0 : score ?? 0, size: "sm", radius: "xl", color: criterion.pending ? "gray" : "accent" }));
|
|
1624
|
+
})), decision.criteria.length > 0 && total != null && /* @__PURE__ */ React12.createElement(Stack12, { gap: 2 }, /* @__PURE__ */ React12.createElement(Group12, { justify: "space-between" }, /* @__PURE__ */ React12.createElement(Text12, { size: "xs", c: "dimmed" }, "Total"), /* @__PURE__ */ React12.createElement(Text12, { size: "xs", fw: 600 }, total, "/100")), /* @__PURE__ */ React12.createElement(Stack12, { gap: 2 }, /* @__PURE__ */ React12.createElement(Progress, { value: total, size: "lg", radius: "xl", color: "accent" }), tickEntries.length > 0 && /* @__PURE__ */ React12.createElement(Box4, { style: { position: "relative", height: 20 } }, tickEntries.map((tick) => {
|
|
1207
1625
|
const transform = tick.at <= 8 ? "translateX(0)" : tick.at >= 92 ? "translateX(-100%)" : "translateX(-50%)";
|
|
1208
|
-
return /* @__PURE__ */
|
|
1626
|
+
return /* @__PURE__ */ React12.createElement(Box4, { key: tick.at, style: { position: "absolute", top: 0, left: `${tick.at}%`, transform } }, /* @__PURE__ */ React12.createElement(Box4, { style: { width: 2, height: 6, background: "var(--mantine-color-text)", opacity: 0.4, margin: "0 auto" } }), /* @__PURE__ */ React12.createElement(Text12, { size: "10px", c: "dimmed", style: { whiteSpace: "nowrap" } }, tick.label));
|
|
1209
1627
|
})))));
|
|
1210
1628
|
};
|
|
1211
1629
|
|
|
@@ -1232,6 +1650,34 @@ var chainStatusRowView = (claim) => {
|
|
|
1232
1650
|
return { tone: "neutral", headline: "", owed: false, action: null, chain: null };
|
|
1233
1651
|
}
|
|
1234
1652
|
};
|
|
1653
|
+
function chainOnlyTone(status) {
|
|
1654
|
+
if (status.key === "approved") return "positive";
|
|
1655
|
+
if (status.key === "rejected") return "negative";
|
|
1656
|
+
return "neutral";
|
|
1657
|
+
}
|
|
1658
|
+
var ChainOnlyStatusCard = ({ status, onChain, children }) => {
|
|
1659
|
+
const toneColor = TONE_COLOR5[chainOnlyTone(status)];
|
|
1660
|
+
const label = onChain?.statusLabel || status.label;
|
|
1661
|
+
const factsLine = [
|
|
1662
|
+
onChain?.evaluatorDid ? `By ${truncateAddress(onChain.evaluatorDid)}` : null,
|
|
1663
|
+
onChain?.evaluatedAt ? new Date(onChain.evaluatedAt).toLocaleString() : null,
|
|
1664
|
+
onChain?.amount && onChain.amount.length > 0 ? onChain.amount.map(formatCoin).join(", ") : null,
|
|
1665
|
+
onChain?.reason || null
|
|
1666
|
+
].filter((s) => !!s).join(" \xB7 ");
|
|
1667
|
+
return /* @__PURE__ */ React13.createElement(
|
|
1668
|
+
Box5,
|
|
1669
|
+
{
|
|
1670
|
+
p: "md",
|
|
1671
|
+
style: {
|
|
1672
|
+
borderRadius: 16,
|
|
1673
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
1674
|
+
border: "1px solid color-mix(in srgb, var(--mantine-color-text) 6%, transparent)",
|
|
1675
|
+
borderLeft: `3px solid var(--mantine-color-${toneColor}-6)`
|
|
1676
|
+
}
|
|
1677
|
+
},
|
|
1678
|
+
/* @__PURE__ */ React13.createElement(Stack13, { gap: 4 }, /* @__PURE__ */ React13.createElement(Text13, { fw: 700, size: "sm", c: toneColor }, label), factsLine && /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, factsLine), children)
|
|
1679
|
+
);
|
|
1680
|
+
};
|
|
1235
1681
|
var createPaymentRow = () => ({
|
|
1236
1682
|
id: `payment-${Math.random().toString(36).slice(2, 9)}`,
|
|
1237
1683
|
denom: USDC_DENOM,
|
|
@@ -1279,16 +1725,16 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1279
1725
|
registerRuntimeInputs,
|
|
1280
1726
|
executeAction
|
|
1281
1727
|
}) => {
|
|
1282
|
-
const [actAs, setActAs] =
|
|
1728
|
+
const [actAs, setActAs] = useState10(emptyActAsGroupState());
|
|
1283
1729
|
const t = useTranslate();
|
|
1284
1730
|
const handlers = useBlocknoteHandlers();
|
|
1285
|
-
const handlersRef =
|
|
1286
|
-
|
|
1731
|
+
const handlersRef = useRef5(handlers);
|
|
1732
|
+
useEffect5(() => {
|
|
1287
1733
|
handlersRef.current = handlers;
|
|
1288
1734
|
}, [handlers]);
|
|
1289
|
-
const runtimeRef =
|
|
1290
|
-
const updateRuntimeRef =
|
|
1291
|
-
|
|
1735
|
+
const runtimeRef = useRef5(runtime);
|
|
1736
|
+
const updateRuntimeRef = useRef5(updateRuntime);
|
|
1737
|
+
useEffect5(() => {
|
|
1292
1738
|
runtimeRef.current = runtime;
|
|
1293
1739
|
updateRuntimeRef.current = updateRuntime;
|
|
1294
1740
|
}, [runtime, updateRuntime]);
|
|
@@ -1307,56 +1753,62 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1307
1753
|
const resolveOpts = useMemo3(() => ({ yRuntime: runtimeReader }), [runtimeReader]);
|
|
1308
1754
|
const deedDid = resolveReferences(parsed.deedDid, editorDocument, resolveOpts).trim();
|
|
1309
1755
|
const collectionId = resolveReferences(parsed.collectionId, editorDocument, resolveOpts).trim();
|
|
1310
|
-
const [claims, setClaims] =
|
|
1311
|
-
const [selectedClaimId, setSelectedClaimId] =
|
|
1312
|
-
const [decision, setDecision] =
|
|
1313
|
-
const [disputeReason, setDisputeReason] =
|
|
1314
|
-
const [loadingClaims, setLoadingClaims] =
|
|
1315
|
-
const [submitting, setSubmitting] =
|
|
1316
|
-
const [error, setError] =
|
|
1317
|
-
const [adminAddress, setAdminAddress] =
|
|
1318
|
-
const [paymentRows, setPaymentRows] =
|
|
1319
|
-
const [createUdid, setCreateUdid] =
|
|
1320
|
-
const [claimData, setClaimData] =
|
|
1321
|
-
const [surveyJson, setSurveyJson] =
|
|
1322
|
-
const [surveyLoading, setSurveyLoading] =
|
|
1323
|
-
const [rubricBody, setRubricBody] =
|
|
1324
|
-
const [onChainEvaluation, setOnChainEvaluation] =
|
|
1325
|
-
const [
|
|
1326
|
-
const [
|
|
1327
|
-
const [
|
|
1328
|
-
const [
|
|
1329
|
-
const [
|
|
1330
|
-
const [
|
|
1331
|
-
const [
|
|
1332
|
-
const [
|
|
1333
|
-
const [
|
|
1334
|
-
const [
|
|
1335
|
-
const [
|
|
1336
|
-
const [
|
|
1337
|
-
const [
|
|
1338
|
-
const [
|
|
1756
|
+
const [claims, setClaims] = useState10([]);
|
|
1757
|
+
const [selectedClaimId, setSelectedClaimId] = useState10("");
|
|
1758
|
+
const [decision, setDecision] = useState10("");
|
|
1759
|
+
const [disputeReason, setDisputeReason] = useState10("");
|
|
1760
|
+
const [loadingClaims, setLoadingClaims] = useState10(false);
|
|
1761
|
+
const [submitting, setSubmitting] = useState10(false);
|
|
1762
|
+
const [error, setError] = useState10(null);
|
|
1763
|
+
const [adminAddress, setAdminAddress] = useState10("");
|
|
1764
|
+
const [paymentRows, setPaymentRows] = useState10([createPaymentRow()]);
|
|
1765
|
+
const [createUdid, setCreateUdid] = useState10(true);
|
|
1766
|
+
const [claimData, setClaimData] = useState10(null);
|
|
1767
|
+
const [surveyJson, setSurveyJson] = useState10(null);
|
|
1768
|
+
const [surveyLoading, setSurveyLoading] = useState10(false);
|
|
1769
|
+
const [rubricBody, setRubricBody] = useState10(null);
|
|
1770
|
+
const [onChainEvaluation, setOnChainEvaluation] = useState10(null);
|
|
1771
|
+
const [protocolDid, setProtocolDid] = useState10("");
|
|
1772
|
+
const [collectionsLoaded, setCollectionsLoaded] = useState10(false);
|
|
1773
|
+
const [activeFilter, setActiveFilter] = useState10("all");
|
|
1774
|
+
const [outcomeTemplateJson, setOutcomeTemplateJson] = useState10(null);
|
|
1775
|
+
const [outcomeTemplateLoading, setOutcomeTemplateLoading] = useState10(false);
|
|
1776
|
+
const [outcomeResponses, setOutcomeResponses] = useState10({});
|
|
1777
|
+
const [outcomeComplete, setOutcomeComplete] = useState10(false);
|
|
1778
|
+
const [isEvaluatorAuthorized] = useState10(true);
|
|
1779
|
+
const [authChecking] = useState10(false);
|
|
1780
|
+
const [authError] = useState10(null);
|
|
1781
|
+
const [, setAuthRetryKey] = useState10(0);
|
|
1782
|
+
const [profilesByDid, setProfilesByDid] = useState10({});
|
|
1783
|
+
const [disputeDetails] = useState10(null);
|
|
1784
|
+
const [loadingDispute] = useState10(false);
|
|
1785
|
+
const [evaluationOutcomePatch] = useState10(null);
|
|
1786
|
+
const [evaluationAmount] = useState10(null);
|
|
1339
1787
|
const selectedClaim = useMemo3(() => claims.find((claim) => claim.claimId === selectedClaimId) || null, [claims, selectedClaimId]);
|
|
1340
1788
|
const loadedClaimIds = useMemo3(() => new Set(claims.map((claim) => claim.claimId)), [claims]);
|
|
1341
|
-
const
|
|
1789
|
+
const oracleResolution = useOracleResolution(protocolDid, { ready: collectionsLoaded });
|
|
1790
|
+
const engineSummaries = useEngineSummaries(collectionId, { enabled: oracleResolution.status === "none" });
|
|
1791
|
+
const engineOutOfPicture = oracleResolution.status === "resolved" || engineSummaries.notEnrolled || engineSummaries.engineUnavailable;
|
|
1792
|
+
const oracleSummaries = useOracleClaimSummaries(collectionId, protocolDid, oracleResolution.status === "resolved");
|
|
1793
|
+
const oracleReceiptProof = selectedClaim ? oracleReceiptProofOf(oracleSummaries.byClaimId[selectedClaim.claimId], decision) : void 0;
|
|
1342
1794
|
const resolvedCredentialSubject = useMemo3(() => {
|
|
1343
1795
|
const cs = claimData?.credentials?.credentialSubject ?? claimData?.credentialSubject ?? claimData;
|
|
1344
1796
|
if (!cs || typeof cs !== "object") return cs;
|
|
1345
1797
|
return resolveFilesInCredentialSubject(cs);
|
|
1346
1798
|
}, [claimData]);
|
|
1347
|
-
const mediaBlobCacheRef =
|
|
1348
|
-
const mediaTypeCacheRef =
|
|
1349
|
-
const [surveyActiveFile, setSurveyActiveFile] =
|
|
1350
|
-
const openFileRef =
|
|
1799
|
+
const mediaBlobCacheRef = React13.useRef(/* @__PURE__ */ new Map());
|
|
1800
|
+
const mediaTypeCacheRef = React13.useRef(/* @__PURE__ */ new Map());
|
|
1801
|
+
const [surveyActiveFile, setSurveyActiveFile] = useState10(null);
|
|
1802
|
+
const openFileRef = React13.useRef(() => {
|
|
1351
1803
|
});
|
|
1352
|
-
|
|
1804
|
+
useEffect5(() => {
|
|
1353
1805
|
return () => {
|
|
1354
1806
|
for (const blobUrl of mediaBlobCacheRef.current.values()) URL.revokeObjectURL(blobUrl);
|
|
1355
1807
|
mediaBlobCacheRef.current.clear();
|
|
1356
1808
|
mediaTypeCacheRef.current.clear();
|
|
1357
1809
|
};
|
|
1358
1810
|
}, []);
|
|
1359
|
-
|
|
1811
|
+
useEffect5(() => {
|
|
1360
1812
|
const fetcher = handlers.fetchClaimMedia;
|
|
1361
1813
|
const cache = mediaBlobCacheRef.current;
|
|
1362
1814
|
const typeCache = mediaTypeCacheRef.current;
|
|
@@ -1496,7 +1948,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1496
1948
|
});
|
|
1497
1949
|
return model;
|
|
1498
1950
|
}, [outcomeTemplateJson, collectionId, deedDid]);
|
|
1499
|
-
|
|
1951
|
+
useEffect5(() => {
|
|
1500
1952
|
if (!outcomeSurveyModel) return;
|
|
1501
1953
|
const evaluated = selectedClaim ? isClaimEvaluated(selectedClaim) : false;
|
|
1502
1954
|
if (evaluated) {
|
|
@@ -1516,8 +1968,8 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1516
1968
|
outcomeSurveyModel.mode = "edit";
|
|
1517
1969
|
}
|
|
1518
1970
|
}, [outcomeSurveyModel, evaluationOutcomePatch, selectedClaim]);
|
|
1519
|
-
const claimListRequest =
|
|
1520
|
-
const refreshClaims =
|
|
1971
|
+
const claimListRequest = useRef5(0);
|
|
1972
|
+
const refreshClaims = useCallback4(async () => {
|
|
1521
1973
|
if (!deedDid || !collectionId) return;
|
|
1522
1974
|
const request = ++claimListRequest.current;
|
|
1523
1975
|
const handlers2 = handlersRef.current;
|
|
@@ -1536,6 +1988,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1536
1988
|
const collection = collectionsResponse?.collections?.find?.((c) => c?.id === collectionId);
|
|
1537
1989
|
const resolvedAdmin = collection?.admin || collectionsResponse?.adminAddress || fallbackAdmin || "";
|
|
1538
1990
|
setAdminAddress(resolvedAdmin);
|
|
1991
|
+
setProtocolDid(collection?.protocol?.id || "");
|
|
1539
1992
|
const current = runtimeRef.current;
|
|
1540
1993
|
if (current.state === "completed") {
|
|
1541
1994
|
const snapshot = buildPendingClaimSnapshot({ claims: fetchedClaims, collection, now: Date.now() });
|
|
@@ -1547,19 +2000,23 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1547
2000
|
if (request !== claimListRequest.current) return;
|
|
1548
2001
|
setClaims([]);
|
|
1549
2002
|
setAdminAddress("");
|
|
2003
|
+
setProtocolDid("");
|
|
1550
2004
|
setError(err instanceof Error ? err.message : t("actionTypes.evaluateClaim.flow.errors.loadClaims", { defaultValue: "Failed to load claims" }));
|
|
1551
2005
|
} finally {
|
|
1552
|
-
if (request === claimListRequest.current)
|
|
2006
|
+
if (request === claimListRequest.current) {
|
|
2007
|
+
setLoadingClaims(false);
|
|
2008
|
+
setCollectionsLoaded(true);
|
|
2009
|
+
}
|
|
1553
2010
|
}
|
|
1554
2011
|
}, [deedDid, collectionId]);
|
|
1555
|
-
|
|
2012
|
+
useEffect5(() => {
|
|
1556
2013
|
if (!deedDid || !collectionId) return;
|
|
1557
2014
|
void refreshClaims();
|
|
1558
2015
|
return () => {
|
|
1559
2016
|
claimListRequest.current++;
|
|
1560
2017
|
};
|
|
1561
2018
|
}, [deedDid, collectionId, refreshClaims]);
|
|
1562
|
-
const fetchClaimContents =
|
|
2019
|
+
const fetchClaimContents = useCallback4(
|
|
1563
2020
|
async (subset) => {
|
|
1564
2021
|
const handlers2 = handlersRef.current;
|
|
1565
2022
|
const contentsByClaimId = {};
|
|
@@ -1576,7 +2033,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1576
2033
|
},
|
|
1577
2034
|
[collectionId, deedDid]
|
|
1578
2035
|
);
|
|
1579
|
-
const fetchClaimExport =
|
|
2036
|
+
const fetchClaimExport = useCallback4(
|
|
1580
2037
|
async (subset) => {
|
|
1581
2038
|
const contentsByClaimId = await fetchClaimContents(subset);
|
|
1582
2039
|
const warnings = [];
|
|
@@ -1595,7 +2052,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1595
2052
|
},
|
|
1596
2053
|
[fetchClaimContents]
|
|
1597
2054
|
);
|
|
1598
|
-
const downloadClaimsCsv =
|
|
2055
|
+
const downloadClaimsCsv = useCallback4(
|
|
1599
2056
|
async (subset, filename) => {
|
|
1600
2057
|
const { contentsByClaimId, baseClaimSubmittersByClaimId, warnings } = await fetchClaimExport(subset);
|
|
1601
2058
|
downloadArrayAsCsv(buildClaimRows(subset, contentsByClaimId, { baseClaimSubmittersByClaimId }), { filename });
|
|
@@ -1615,7 +2072,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1615
2072
|
}
|
|
1616
2073
|
return titles;
|
|
1617
2074
|
}, [surveyJson]);
|
|
1618
|
-
const downloadClaimsZip =
|
|
2075
|
+
const downloadClaimsZip = useCallback4(
|
|
1619
2076
|
async (subset, names) => {
|
|
1620
2077
|
const handlers2 = handlersRef.current;
|
|
1621
2078
|
const { contentsByClaimId, baseClaimSubmittersByClaimId, warnings } = await fetchClaimExport(subset);
|
|
@@ -1646,9 +2103,9 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1646
2103
|
},
|
|
1647
2104
|
[fetchClaimExport, deedDid, titlesByFieldName]
|
|
1648
2105
|
);
|
|
1649
|
-
const handleDownloadClaimsCsv =
|
|
1650
|
-
const handleDownloadClaimsZip =
|
|
1651
|
-
|
|
2106
|
+
const handleDownloadClaimsCsv = useCallback4(() => downloadClaimsCsv(claims, exportFileNames.claims(collectionId).csv), [downloadClaimsCsv, claims, collectionId]);
|
|
2107
|
+
const handleDownloadClaimsZip = useCallback4(() => downloadClaimsZip(claims, exportFileNames.claims(collectionId)), [downloadClaimsZip, claims, collectionId]);
|
|
2108
|
+
useEffect5(() => {
|
|
1652
2109
|
let mounted = true;
|
|
1653
2110
|
const dids = Array.from(new Set(claims.map((claim) => claim.agentDid).filter(Boolean)));
|
|
1654
2111
|
const missing = dids.filter((did) => profilesByDid[did] === void 0);
|
|
@@ -1682,15 +2139,15 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1682
2139
|
mounted = false;
|
|
1683
2140
|
};
|
|
1684
2141
|
}, [claims, profilesByDid]);
|
|
1685
|
-
const selectedClaimRef =
|
|
1686
|
-
|
|
2142
|
+
const selectedClaimRef = useRef5(selectedClaim);
|
|
2143
|
+
useEffect5(() => {
|
|
1687
2144
|
if (!deedDid || !collectionId) return;
|
|
1688
2145
|
const current = handlersRef.current;
|
|
1689
2146
|
void Promise.allSettled([current.getDeedSurveyTemplate(deedDid, collectionId), current.getEvaluationTemplate?.(deedDid, collectionId)]);
|
|
1690
2147
|
}, [deedDid, collectionId]);
|
|
1691
2148
|
selectedClaimRef.current = selectedClaim;
|
|
1692
2149
|
const selectedClaimEvaluated = selectedClaim ? isClaimEvaluated(selectedClaim) : false;
|
|
1693
|
-
|
|
2150
|
+
useEffect5(() => {
|
|
1694
2151
|
const claim = selectedClaimRef.current;
|
|
1695
2152
|
if (!claim) return;
|
|
1696
2153
|
let cancelled = false;
|
|
@@ -1719,7 +2176,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1719
2176
|
if (!cancelled) setOutcomeTemplateLoading(false);
|
|
1720
2177
|
});
|
|
1721
2178
|
const evaluation = Promise.resolve().then(() => selectedClaimEvaluated ? current.getClaimEvaluationDetails?.(claim.claimId) : null).then((details) => {
|
|
1722
|
-
if (!cancelled) setOnChainEvaluation(details ? { ...details, statusLabel:
|
|
2179
|
+
if (!cancelled) setOnChainEvaluation(details ? { ...details, statusLabel: getClaimStatusInfo(claim).label } : null);
|
|
1723
2180
|
}).catch(() => {
|
|
1724
2181
|
if (!cancelled) setOnChainEvaluation(null);
|
|
1725
2182
|
});
|
|
@@ -1728,18 +2185,20 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1728
2185
|
cancelled = true;
|
|
1729
2186
|
};
|
|
1730
2187
|
}, [selectedClaimId, selectedClaimEvaluated, collectionId, deedDid]);
|
|
1731
|
-
|
|
2188
|
+
useEffect5(() => {
|
|
1732
2189
|
setSelectedClaimId("");
|
|
1733
2190
|
setError(null);
|
|
1734
2191
|
setPaymentRows([createPaymentRow()]);
|
|
1735
2192
|
setClaimData(null);
|
|
1736
2193
|
setSurveyJson(null);
|
|
1737
2194
|
setOnChainEvaluation(null);
|
|
2195
|
+
setProtocolDid("");
|
|
2196
|
+
setCollectionsLoaded(false);
|
|
1738
2197
|
setOutcomeTemplateJson(null);
|
|
1739
2198
|
setOutcomeResponses({});
|
|
1740
2199
|
setOutcomeComplete(false);
|
|
1741
2200
|
}, [deedDid, collectionId]);
|
|
1742
|
-
|
|
2201
|
+
useEffect5(() => {
|
|
1743
2202
|
setRubricBody(null);
|
|
1744
2203
|
if (!deedDid || !collectionId) return;
|
|
1745
2204
|
let cancelled = false;
|
|
@@ -1759,7 +2218,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1759
2218
|
cancelled = true;
|
|
1760
2219
|
};
|
|
1761
2220
|
}, [deedDid, collectionId]);
|
|
1762
|
-
const engine = useClaimEngine(selectedClaimId);
|
|
2221
|
+
const engine = useClaimEngine(selectedClaimId, { enabled: !engineOutOfPicture });
|
|
1763
2222
|
const onChainDisplay = useMemo3(() => {
|
|
1764
2223
|
const chainState = engine.record?.summary?.chainState;
|
|
1765
2224
|
if (!chainState && !onChainEvaluation) return null;
|
|
@@ -1767,8 +2226,8 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1767
2226
|
}, [engine.record?.summary?.chainState, onChainEvaluation]);
|
|
1768
2227
|
const assigneeDid = rubricBody?.review?.assignTo?.assigneeDid || "";
|
|
1769
2228
|
const reviewerDid = engine.record?.review?.reviewerDid || "";
|
|
1770
|
-
const [peopleNames, setPeopleNames] =
|
|
1771
|
-
|
|
2229
|
+
const [peopleNames, setPeopleNames] = useState10({});
|
|
2230
|
+
useEffect5(() => {
|
|
1772
2231
|
let mounted = true;
|
|
1773
2232
|
const missing = [assigneeDid, reviewerDid].filter((did) => did && peopleNames[did] === void 0);
|
|
1774
2233
|
if (missing.length === 0)
|
|
@@ -1812,11 +2271,16 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1812
2271
|
const map = /* @__PURE__ */ new Map();
|
|
1813
2272
|
for (const claim of claims) {
|
|
1814
2273
|
const engineRow = engineSummaries.byClaimId[claim.claimId];
|
|
1815
|
-
|
|
2274
|
+
if (engineRow?.summary) {
|
|
2275
|
+
map.set(claim.claimId, engineRowViewOf(engineRow, assignedElsewhereToName, rubricBody?.review?.slaHours));
|
|
2276
|
+
continue;
|
|
2277
|
+
}
|
|
2278
|
+
const oracleRow = oracleSummaries.byClaimId[claim.claimId];
|
|
2279
|
+
map.set(claim.claimId, oracleRow ? oracleRowViewOf(oracleRow) : chainStatusRowView(claim));
|
|
1816
2280
|
}
|
|
1817
2281
|
return map;
|
|
1818
|
-
}, [claims, engineSummaries.byClaimId, assignedElsewhereToName, rubricBody?.review?.slaHours]);
|
|
1819
|
-
const isClaimSettled =
|
|
2282
|
+
}, [claims, engineSummaries.byClaimId, oracleSummaries.byClaimId, assignedElsewhereToName, rubricBody?.review?.slaHours]);
|
|
2283
|
+
const isClaimSettled = useCallback4(
|
|
1820
2284
|
(claim) => {
|
|
1821
2285
|
const summary = engineSummaries.byClaimId[claim.claimId]?.summary;
|
|
1822
2286
|
if (summary) return summary.disposition === "settled";
|
|
@@ -1831,7 +2295,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1831
2295
|
}, [claims, activeFilter, isClaimSettled, rowViewByClaimId]);
|
|
1832
2296
|
const owedCount = useMemo3(() => claims.filter((claim) => rowViewByClaimId.get(claim.claimId)?.owed ?? false).length, [claims, rowViewByClaimId]);
|
|
1833
2297
|
const settledCount = useMemo3(() => claims.filter(isClaimSettled).length, [claims, isClaimSettled]);
|
|
1834
|
-
const buildPaymentCoins =
|
|
2298
|
+
const buildPaymentCoins = useCallback4(() => {
|
|
1835
2299
|
return paymentRows.map((row) => {
|
|
1836
2300
|
const denom = row.denom === CUSTOM_DENOM ? row.customDenom.trim() : row.denom || "";
|
|
1837
2301
|
const amount = Number(row.amount);
|
|
@@ -1848,16 +2312,16 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1848
2312
|
return selectedClaim ? isClaimEvaluated(selectedClaim) : false;
|
|
1849
2313
|
}, [selectedClaim]);
|
|
1850
2314
|
const outcomeNotReady = Boolean(outcomeTemplateJson && !outcomeComplete);
|
|
1851
|
-
const updatePaymentRow =
|
|
2315
|
+
const updatePaymentRow = useCallback4((id, patch) => {
|
|
1852
2316
|
setPaymentRows((rows) => rows.map((row) => row.id === id ? { ...row, ...patch } : row));
|
|
1853
2317
|
}, []);
|
|
1854
|
-
const addPaymentRow =
|
|
2318
|
+
const addPaymentRow = useCallback4(() => {
|
|
1855
2319
|
setPaymentRows((rows) => [...rows, createPaymentRow()]);
|
|
1856
2320
|
}, []);
|
|
1857
|
-
const removePaymentRow =
|
|
2321
|
+
const removePaymentRow = useCallback4((id) => {
|
|
1858
2322
|
setPaymentRows((rows) => rows.length > 1 ? rows.filter((row) => row.id !== id) : rows);
|
|
1859
2323
|
}, []);
|
|
1860
|
-
|
|
2324
|
+
useEffect5(() => {
|
|
1861
2325
|
if (!registerRuntimeInputs) return;
|
|
1862
2326
|
if (!selectedClaim) {
|
|
1863
2327
|
registerRuntimeInputs({ claimId: "", decision: "", adminAddress: "", createUdid: true });
|
|
@@ -1875,7 +2339,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1875
2339
|
reason: decision === "dispute" ? disputeReason : void 0
|
|
1876
2340
|
});
|
|
1877
2341
|
}, [registerRuntimeInputs, selectedClaim, decision, adminAddress, createUdid, buildPaymentCoins, outcomeTemplateJson, outcomeComplete, isClaimAlreadyEvaluated, disputeReason]);
|
|
1878
|
-
|
|
2342
|
+
useEffect5(() => {
|
|
1879
2343
|
if (!unlockSigning) return;
|
|
1880
2344
|
if (!selectedClaim || !decision || !adminAddress || authChecking || !isEvaluatorAuthorized && !actAs.actAsGroup || isClaimAlreadyEvaluated || outcomeNotReady) {
|
|
1881
2345
|
unlockSigning(false);
|
|
@@ -1887,7 +2351,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1887
2351
|
}
|
|
1888
2352
|
unlockSigning(actAsGroupReady(actAs));
|
|
1889
2353
|
}, [unlockSigning, selectedClaim, decision, adminAddress, authChecking, isEvaluatorAuthorized, isClaimAlreadyEvaluated, outcomeNotReady, disputeReason, actAs]);
|
|
1890
|
-
|
|
2354
|
+
useEffect5(() => {
|
|
1891
2355
|
if (!provideSigningHandler || !selectedClaim || !decision) return;
|
|
1892
2356
|
provideSigningHandler(async () => {
|
|
1893
2357
|
const isDispute = decision === "dispute";
|
|
@@ -1945,7 +2409,8 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1945
2409
|
rubricId: deedDid,
|
|
1946
2410
|
patch: Object.keys(outcomeResponses).length > 0 ? outcomeResponses : void 0,
|
|
1947
2411
|
granteeAddress: actorDid,
|
|
1948
|
-
claimSnapshot: selectedClaim
|
|
2412
|
+
claimSnapshot: selectedClaim,
|
|
2413
|
+
verificationProof: await verifiedOracleReceiptProof(oracleReceiptProof, selectedClaim.claimId, handlersRef.current.verifyDecisionReceipt)
|
|
1949
2414
|
}
|
|
1950
2415
|
});
|
|
1951
2416
|
if (!outcome.success) throw new Error(outcome.error || t("actionTypes.evaluateClaim.flow.errors.evaluationFailed", { defaultValue: "Claim evaluation failed" }));
|
|
@@ -1975,29 +2440,30 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1975
2440
|
buildPaymentCoins,
|
|
1976
2441
|
outcomeResponses,
|
|
1977
2442
|
disputeReason,
|
|
1978
|
-
executeAction
|
|
2443
|
+
executeAction,
|
|
2444
|
+
oracleReceiptProof
|
|
1979
2445
|
]);
|
|
1980
|
-
const flowManagerContext = /* @__PURE__ */
|
|
2446
|
+
const flowManagerContext = /* @__PURE__ */ React13.createElement(FlowManagerContextSection, { record: nodeContext, onOverride: setNodeContextOverride, disabled: isDisabled });
|
|
1981
2447
|
if (selectedClaim) {
|
|
1982
2448
|
const claimStatus = getClaimStatusInfo(selectedClaim);
|
|
1983
2449
|
const selectedClaimProfile = profilesByDid[selectedClaim.agentDid];
|
|
1984
2450
|
const selectedDisplayName = selectedClaimProfile?.displayname || selectedClaim.agentDid || selectedClaim.agentAddress;
|
|
1985
2451
|
const selectedAvatarLabel = (selectedClaimProfile?.displayname || selectedClaim.agentDid || selectedClaim.agentAddress || "?")[0]?.toUpperCase();
|
|
1986
|
-
return /* @__PURE__ */
|
|
2452
|
+
return /* @__PURE__ */ React13.createElement(Stack13, { gap: "md" }, /* @__PURE__ */ React13.createElement(Group13, { gap: "xs", align: "center" }, /* @__PURE__ */ React13.createElement(ActionIcon5, { variant: "subtle", color: "gray", size: "sm", onClick: () => setSelectedClaimId("") }, /* @__PURE__ */ React13.createElement(IconArrowLeft, { size: 16 })), /* @__PURE__ */ React13.createElement(Text13, { fw: 500, size: "sm", title: selectedClaim.claimId, truncate: true, style: { flex: 1, minWidth: 0 } }, t("actionTypes.claim.flow.claimNumber", { id: truncateId(selectedClaim.claimId), defaultValue: `Claim #${truncateId(selectedClaim.claimId)}` })), /* @__PURE__ */ React13.createElement(
|
|
1987
2453
|
DownloadCsvButton,
|
|
1988
2454
|
{
|
|
1989
2455
|
onDownload: () => downloadClaimsCsv([selectedClaim], exportFileNames.claim(selectedClaim.claimId).csv),
|
|
1990
2456
|
label: "Download claim CSV",
|
|
1991
2457
|
onError: setError
|
|
1992
2458
|
}
|
|
1993
|
-
), /* @__PURE__ */
|
|
2459
|
+
), /* @__PURE__ */ React13.createElement(
|
|
1994
2460
|
DownloadZipButton,
|
|
1995
2461
|
{
|
|
1996
2462
|
onDownload: () => downloadClaimsZip([selectedClaim], exportFileNames.claim(selectedClaim.claimId)),
|
|
1997
2463
|
label: "Download claim + media (ZIP)",
|
|
1998
2464
|
onError: setError
|
|
1999
2465
|
}
|
|
2000
|
-
)), /* @__PURE__ */
|
|
2466
|
+
)), /* @__PURE__ */ React13.createElement(Group13, { gap: 16, align: "center", style: { width: "100%" } }, /* @__PURE__ */ React13.createElement(
|
|
2001
2467
|
Box5,
|
|
2002
2468
|
{
|
|
2003
2469
|
style: {
|
|
@@ -2018,10 +2484,28 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2018
2484
|
}
|
|
2019
2485
|
},
|
|
2020
2486
|
selectedClaimProfile?.avatarUrl ? null : selectedAvatarLabel
|
|
2021
|
-
), /* @__PURE__ */
|
|
2487
|
+
), /* @__PURE__ */ React13.createElement(Stack13, { gap: 0, style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React13.createElement(Text13, { fw: 500, size: "md", truncate: true }, selectedDisplayName), /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed", truncate: true }, truncateAddress(selectedClaim.agentAddress))), /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed", style: { flexShrink: 0 } }, getTimeAgo(selectedClaim.submissionDate || ""))), claimStatus.key === "disputed" && /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "orange", title: t("actionTypes.claim.flow.disputed.title", { defaultValue: "Claim disputed" }), styles: actionAlertStyles }, loadingDispute ? /* @__PURE__ */ React13.createElement(Group13, { gap: "xs" }, /* @__PURE__ */ React13.createElement(Loader3, { size: "xs" }), /* @__PURE__ */ React13.createElement(Text13, { size: "xs" }, t("actionTypes.claim.flow.disputed.loadingDetails", { defaultValue: "Loading dispute details\u2026" }))) : disputeDetails ? /* @__PURE__ */ React13.createElement(Stack13, { gap: 6 }, disputeDetails.reason ? /* @__PURE__ */ React13.createElement(Text13, { size: "sm" }, disputeDetails.reason) : /* @__PURE__ */ React13.createElement(Text13, { size: "sm", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.disputed.noMessageAttached", { defaultValue: "A dispute was recorded but no message was attached." })), (disputeDetails.evaluatorDid || disputeDetails.disputedAt) && /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, disputeDetails.evaluatorDid ? t("actionTypes.claim.flow.disputed.byEvaluator", {
|
|
2022
2488
|
address: truncateAddress(disputeDetails.evaluatorDid),
|
|
2023
2489
|
defaultValue: `By ${truncateAddress(disputeDetails.evaluatorDid)}`
|
|
2024
|
-
}) : "", disputeDetails.evaluatorDid && disputeDetails.disputedAt ? " \xB7 " : "", disputeDetails.disputedAt ? new Date(disputeDetails.disputedAt).toLocaleString() : ""), /* @__PURE__ */
|
|
2490
|
+
}) : "", disputeDetails.evaluatorDid && disputeDetails.disputedAt ? " \xB7 " : "", disputeDetails.disputedAt ? new Date(disputeDetails.disputedAt).toLocaleString() : ""), /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.disputed.amendNeeded", { defaultValue: "The submitter needs to amend and resubmit before this claim can be evaluated." }))) : typeof handlers.getClaimDisputeDetails !== "function" ? /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.disputed.unavailable", { defaultValue: "Dispute details unavailable in this environment." })) : /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.disputed.noRecord", { defaultValue: "No dispute record found on-chain for this claim." }))), engine.supported && (engine.forbidden ? /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "gray", styles: actionAlertStyles }, "You need evaluator access on this collection to see the engine's results.") : engine.loading && !engine.record ? /* @__PURE__ */ React13.createElement(Group13, { gap: "xs" }, /* @__PURE__ */ React13.createElement(Loader3, { size: "xs" }), /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, "Checking what the engine knows about this claim\u2026")) : !engine.record && engineOutOfPicture ? (
|
|
2491
|
+
// Chain-first status fix round 2 (coordinator review finding 1): a not-enrolled
|
|
2492
|
+
// (or unreachable) collection never gets an engine row, so `VerdictBlock` and
|
|
2493
|
+
// `TechnicalDetails` below both stay permanently gated off by `engine.record` —
|
|
2494
|
+
// this slot must not go quiet just because they did. Every other "record is
|
|
2495
|
+
// null" case (below) is the ENROLLED "not yet ingested" poll, unaffected: it
|
|
2496
|
+
// keeps rendering `VerdictBlock` with `record: null` exactly as before.
|
|
2497
|
+
/* @__PURE__ */ React13.createElement(ChainOnlyStatusCard, { status: claimStatus, onChain: onChainDisplay }, /* @__PURE__ */ React13.createElement(
|
|
2498
|
+
OracleDecisionOverlay,
|
|
2499
|
+
{
|
|
2500
|
+
claimId: selectedClaim.claimId,
|
|
2501
|
+
protocolDid,
|
|
2502
|
+
engineOutOfPicture,
|
|
2503
|
+
oracleResolved: oracleResolution.status === "resolved",
|
|
2504
|
+
claimEvaluatedOnChain: claimStatus.isTerminal,
|
|
2505
|
+
rubric: rubricBody
|
|
2506
|
+
}
|
|
2507
|
+
))
|
|
2508
|
+
) : /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(
|
|
2025
2509
|
VerdictBlock,
|
|
2026
2510
|
{
|
|
2027
2511
|
key: selectedClaim.claimId,
|
|
@@ -2042,7 +2526,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2042
2526
|
openableClaimIds: loadedClaimIds,
|
|
2043
2527
|
onOpenClaim: setSelectedClaimId
|
|
2044
2528
|
}
|
|
2045
|
-
), engine.record?.evaluation?.decision && /* @__PURE__ */
|
|
2529
|
+
), engine.record?.evaluation?.decision && /* @__PURE__ */ React13.createElement(
|
|
2046
2530
|
CollapsibleSection,
|
|
2047
2531
|
{
|
|
2048
2532
|
key: selectedClaim.claimId,
|
|
@@ -2051,29 +2535,29 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2051
2535
|
),
|
|
2052
2536
|
defaultOpen: engine.record?.summary?.expandByDefault ?? false
|
|
2053
2537
|
},
|
|
2054
|
-
/* @__PURE__ */
|
|
2538
|
+
/* @__PURE__ */ React13.createElement(
|
|
2055
2539
|
WhyThisResult,
|
|
2056
2540
|
{
|
|
2057
2541
|
decision: engine.record.review?.status === "completed" && engine.record.review.finalDecision ? engine.record.review.finalDecision : engine.record.evaluation.decision,
|
|
2058
2542
|
rubric: rubricBody
|
|
2059
2543
|
}
|
|
2060
2544
|
)
|
|
2061
|
-
), engine.record?.evaluation?.trace && Object.keys(engine.record.evaluation.trace.ai).length > 0 && /* @__PURE__ */
|
|
2545
|
+
), engine.record?.evaluation?.trace && Object.keys(engine.record.evaluation.trace.ai).length > 0 && /* @__PURE__ */ React13.createElement(CollapsibleSection, { key: selectedClaim.claimId, title: `AI checks \xB7 ${aiChecksPassedCount(engine.record.evaluation.trace.ai)} passed` }, /* @__PURE__ */ React13.createElement(AiChecksSection, { ai: engine.record.evaluation.trace.ai, rubric: rubricBody })), engine.record?.evaluation?.trace && Object.keys(engine.record.evaluation.trace.ext).length > 0 && /* @__PURE__ */ React13.createElement(
|
|
2062
2546
|
CollapsibleSection,
|
|
2063
2547
|
{
|
|
2064
2548
|
key: selectedClaim.claimId,
|
|
2065
2549
|
title: `Outside services \xB7 ${Object.values(engine.record.evaluation.trace.ext).filter((fact) => fact.status === "ok").length} answered`
|
|
2066
2550
|
},
|
|
2067
|
-
/* @__PURE__ */
|
|
2068
|
-
))), /* @__PURE__ */
|
|
2551
|
+
/* @__PURE__ */ React13.createElement(OutsideServicesSection, { ext: engine.record.evaluation.trace.ext })
|
|
2552
|
+
))), /* @__PURE__ */ React13.createElement(CollapsibleSection, { title: t("actionTypes.evaluateClaim.flow.section.submission", { defaultValue: "The claim" }) }, surveyLoading ? /* @__PURE__ */ React13.createElement(Group13, { gap: "xs" }, /* @__PURE__ */ React13.createElement(Loader3, { size: "xs" }), /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.loadingSubmissionDetails", { defaultValue: "Loading submission details..." }))) : surveyModel ? /* @__PURE__ */ React13.createElement(ScrollArea2, { h: 280 }, /* @__PURE__ */ React13.createElement(StableSurvey, { model: surveyModel })) : /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.noSubmissionTemplate", { defaultValue: "No submission template/data available." }))), /* @__PURE__ */ React13.createElement(CollapsibleSection, { title: t("actionTypes.evaluateClaim.flow.section.attachments", { defaultValue: "Attachments" }) }, /* @__PURE__ */ React13.createElement(ClaimAttachments, { surveyModel, credentialSubject: resolvedCredentialSubject, entityDid: deedDid })), flowManagerContext, /* @__PURE__ */ React13.createElement(EvaluationReportSection, { runtime, selectedClaimId: selectedClaim.claimId }), parsed.xeroOracleInvoiceOnApprove && /* @__PURE__ */ React13.createElement(CollapsibleSection, { title: "Xero work", defaultOpen: false }, /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "blue", variant: "light", p: "xs" }, /* @__PURE__ */ React13.createElement(Text13, { size: "xs" }, "Approving this claim queues a Xero invoice work item. The contracted Xero oracle creates a draft invoice from the claim material \u2014 no Xero side effects run in the browser."))), (outcomeTemplateLoading || outcomeTemplateJson) && /* @__PURE__ */ React13.createElement(
|
|
2069
2553
|
CollapsibleSection,
|
|
2070
2554
|
{
|
|
2071
2555
|
title: t("actionTypes.evaluateClaim.flow.section.outcome", { defaultValue: "Outcome" }),
|
|
2072
2556
|
defaultOpen: true,
|
|
2073
|
-
badge: /* @__PURE__ */
|
|
2557
|
+
badge: /* @__PURE__ */ React13.createElement(React13.Fragment, null, outcomeTemplateJson && !outcomeComplete && !isClaimAlreadyEvaluated && /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "yellow" }, t("actionTypes.evaluateClaim.flow.outcome.requiredBadge", { defaultValue: "(required)" })), (outcomeComplete || isClaimAlreadyEvaluated) && /* @__PURE__ */ React13.createElement(IconCheck9, { size: 14, color: "var(--mantine-color-green-6)" }))
|
|
2074
2558
|
},
|
|
2075
|
-
outcomeTemplateLoading ? /* @__PURE__ */
|
|
2076
|
-
), !isClaimAlreadyEvaluated && /* @__PURE__ */
|
|
2559
|
+
outcomeTemplateLoading ? /* @__PURE__ */ React13.createElement(Group13, { gap: "xs" }, /* @__PURE__ */ React13.createElement(Loader3, { size: "xs" }), /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.outcome.loading", { defaultValue: "Loading evaluation template..." }))) : outcomeSurveyModel ? /* @__PURE__ */ React13.createElement(ScrollArea2, { h: 320 }, /* @__PURE__ */ React13.createElement(StableSurvey, { model: outcomeSurveyModel })) : /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.outcome.noTemplate", { defaultValue: "No evaluation template available." }))
|
|
2560
|
+
), !isClaimAlreadyEvaluated && /* @__PURE__ */ React13.createElement(CollapsibleSection, { title: t("actionTypes.evaluateClaim.flow.section.evaluation", { defaultValue: "Evaluation" }), defaultOpen: true }, /* @__PURE__ */ React13.createElement(Stack13, { gap: "md" }, /* @__PURE__ */ React13.createElement(Divider2, { color: "color-mix(in srgb, var(--mantine-color-text) 6%, transparent)" }), decision === "dispute" ? /* @__PURE__ */ React13.createElement(Stack13, { gap: "md" }, /* @__PURE__ */ React13.createElement(
|
|
2077
2561
|
BaseTextArea,
|
|
2078
2562
|
{
|
|
2079
2563
|
label: t("actionTypes.evaluateClaim.flow.dispute.messageLabel", { defaultValue: "Message to claimant" }),
|
|
@@ -2086,7 +2570,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2086
2570
|
required: true,
|
|
2087
2571
|
disabled: isDisabled || submitting || isClaimAlreadyEvaluated
|
|
2088
2572
|
}
|
|
2089
|
-
)) : /* @__PURE__ */
|
|
2573
|
+
)) : /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.payment.label", { defaultValue: "Payment (optional custom payouts)" })), paymentRows.map((row, index) => /* @__PURE__ */ React13.createElement(Stack13, { key: row.id, gap: 8 }, /* @__PURE__ */ React13.createElement(Group13, { justify: "space-between", align: "center" }, /* @__PURE__ */ React13.createElement(Text13, { size: "sm" }, t("actionTypes.evaluateClaim.flow.payment.token", { index: index + 1, defaultValue: `Token ${index + 1}` })), paymentRows.length > 1 && /* @__PURE__ */ React13.createElement(Button5, { variant: "subtle", size: "compact-xs", color: "red", onClick: () => removePaymentRow(row.id), disabled: isDisabled || submitting }, t("actionTypes.evaluateClaim.flow.payment.remove", { defaultValue: "Remove" }))), /* @__PURE__ */ React13.createElement(
|
|
2090
2574
|
BaseSelect,
|
|
2091
2575
|
{
|
|
2092
2576
|
value: row.denom,
|
|
@@ -2099,7 +2583,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2099
2583
|
clearable: false,
|
|
2100
2584
|
disabled: isDisabled || submitting
|
|
2101
2585
|
}
|
|
2102
|
-
), row.denom === CUSTOM_DENOM && /* @__PURE__ */
|
|
2586
|
+
), row.denom === CUSTOM_DENOM && /* @__PURE__ */ React13.createElement(
|
|
2103
2587
|
BaseTextInput,
|
|
2104
2588
|
{
|
|
2105
2589
|
placeholder: t("actionTypes.evaluateClaim.flow.payment.customDenomPlaceholder", { defaultValue: "Custom denom (e.g. ibc/... or uixo)" }),
|
|
@@ -2107,7 +2591,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2107
2591
|
onChange: (event) => updatePaymentRow(row.id, { customDenom: event.currentTarget.value }),
|
|
2108
2592
|
disabled: isDisabled || submitting
|
|
2109
2593
|
}
|
|
2110
|
-
), /* @__PURE__ */
|
|
2594
|
+
), /* @__PURE__ */ React13.createElement(
|
|
2111
2595
|
BaseNumberInput,
|
|
2112
2596
|
{
|
|
2113
2597
|
min: 0,
|
|
@@ -2116,17 +2600,17 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2116
2600
|
placeholder: t("actionTypes.evaluateClaim.flow.payment.amountPlaceholder", { defaultValue: "Amount" }),
|
|
2117
2601
|
disabled: isDisabled || submitting
|
|
2118
2602
|
}
|
|
2119
|
-
))), /* @__PURE__ */
|
|
2603
|
+
))), /* @__PURE__ */ React13.createElement(Button5, { variant: "light", size: "xs", onClick: addPaymentRow, disabled: isDisabled || submitting }, t("actionTypes.evaluateClaim.flow.payment.addPayment", { defaultValue: "Add Payment" }))), /* @__PURE__ */ React13.createElement(
|
|
2120
2604
|
Checkbox,
|
|
2121
2605
|
{
|
|
2122
2606
|
label: t("actionTypes.evaluateClaim.flow.generateUdid", { defaultValue: "Generate UDID proof before signing" }),
|
|
2123
2607
|
checked: createUdid,
|
|
2124
2608
|
onChange: (event) => setCreateUdid(event.currentTarget.checked)
|
|
2125
2609
|
}
|
|
2126
|
-
))), engine.supported && !engine.forbidden && engine.record && /* @__PURE__ */
|
|
2610
|
+
))), engine.supported && !engine.forbidden && engine.record && /* @__PURE__ */ React13.createElement(CollapsibleSection, { title: "Technical details" }, /* @__PURE__ */ React13.createElement(TechnicalDetails, { record: engine.record, onChain: onChainDisplay })), outcomeNotReady && !isClaimAlreadyEvaluated && /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, t("actionTypes.evaluateClaim.flow.outcome.completeBeforeAction", { defaultValue: "Complete the Outcome evaluation template before approving or rejecting." })), isClaimAlreadyEvaluated && claimStatus.key !== "disputed" && /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, /* @__PURE__ */ React13.createElement(Stack13, { gap: 4 }, /* @__PURE__ */ React13.createElement(Text13, { size: "sm" }, t("actionTypes.evaluateClaim.flow.alreadyEvaluated", { defaultValue: "This claim is already evaluated." })), evaluationAmount && evaluationAmount.length > 0 && /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.transferredOnChain", {
|
|
2127
2611
|
amount: evaluationAmount.map(formatCoin).join(", "),
|
|
2128
2612
|
defaultValue: `Transferred on-chain: ${evaluationAmount.map(formatCoin).join(", ")}`
|
|
2129
|
-
})))), !authChecking && authError && /* @__PURE__ */
|
|
2613
|
+
})))), !authChecking && authError && /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "orange", styles: actionAlertStyles }, /* @__PURE__ */ React13.createElement(Stack13, { gap: "xs" }, /* @__PURE__ */ React13.createElement(Text13, { size: "sm" }, t("actionTypes.claim.flow.authVerifyFailed", { defaultValue: "Couldn't verify your authorization \u2014 the chain RPC is unreachable." })), /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, authError), /* @__PURE__ */ React13.createElement(Button5, { size: "xs", variant: "light", onClick: () => setAuthRetryKey((k) => k + 1) }, t("actionTypes.claim.flow.retry", { defaultValue: "Retry" })))), !authChecking && !authError && !isEvaluatorAuthorized && /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, t("actionTypes.evaluateClaim.flow.notAuthorized", { defaultValue: "You need evaluator authorization for this collection to approve or reject claims." })), !isClaimAlreadyEvaluated && /* @__PURE__ */ React13.createElement(
|
|
2130
2614
|
BaseSelect,
|
|
2131
2615
|
{
|
|
2132
2616
|
label: t("actionTypes.evaluateClaim.flow.decision.label", { defaultValue: "Decision" }),
|
|
@@ -2140,7 +2624,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2140
2624
|
],
|
|
2141
2625
|
disabled: isDisabled || submitting
|
|
2142
2626
|
}
|
|
2143
|
-
), error && /* @__PURE__ */
|
|
2627
|
+
), error && /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "red", styles: actionAlertStyles }, error), /* @__PURE__ */ React13.createElement(MediaPreviewModal, { file: surveyActiveFile, onClose: () => setSurveyActiveFile(null) }));
|
|
2144
2628
|
}
|
|
2145
2629
|
const engineHasData = engineSummaries.supported && Object.keys(engineSummaries.byClaimId).length > 0;
|
|
2146
2630
|
const filterTabs = [
|
|
@@ -2148,7 +2632,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2148
2632
|
{ value: "owed", label: engineHasData ? `Owed by you (${owedCount})` : `Pending (${owedCount})` },
|
|
2149
2633
|
{ value: "settled", label: `Settled (${settledCount})` }
|
|
2150
2634
|
];
|
|
2151
|
-
return /* @__PURE__ */
|
|
2635
|
+
return /* @__PURE__ */ React13.createElement(Stack13, { gap: "md" }, /* @__PURE__ */ React13.createElement(GroupProposalStatus, { editor, block, runtime }), runtime?.state !== "awaiting_readback" && /* @__PURE__ */ React13.createElement(
|
|
2152
2636
|
ActAsGroupSection,
|
|
2153
2637
|
{
|
|
2154
2638
|
value: actAs,
|
|
@@ -2157,11 +2641,11 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2157
2641
|
actionLabel: "evaluate this claim",
|
|
2158
2642
|
authzFilter: collectionId ? { requiresAuthz: "evaluateClaim", collectionId } : void 0
|
|
2159
2643
|
}
|
|
2160
|
-
), !deedDid || !collectionId ? /* @__PURE__ */
|
|
2644
|
+
), !deedDid || !collectionId ? /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, t("actionTypes.shared.errors.configRequired", {
|
|
2161
2645
|
defaultValue: "Configure {{did}} and {{claimCollection}} in template mode before running this action.",
|
|
2162
2646
|
did: "DID",
|
|
2163
2647
|
claimCollection: "claim collection"
|
|
2164
|
-
})) : /* @__PURE__ */
|
|
2648
|
+
})) : /* @__PURE__ */ React13.createElement(React13.Fragment, null, flowManagerContext, /* @__PURE__ */ React13.createElement(EvaluationReportSection, { runtime }), /* @__PURE__ */ React13.createElement(Group13, { justify: "space-between", align: "center" }, /* @__PURE__ */ React13.createElement(Group13, { gap: 0 }, filterTabs.map((tab) => /* @__PURE__ */ React13.createElement(
|
|
2165
2649
|
UnstyledButton5,
|
|
2166
2650
|
{
|
|
2167
2651
|
key: tab.value,
|
|
@@ -2174,9 +2658,9 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2174
2658
|
transition: "background 150ms ease"
|
|
2175
2659
|
}
|
|
2176
2660
|
},
|
|
2177
|
-
/* @__PURE__ */
|
|
2178
|
-
))), /* @__PURE__ */
|
|
2179
|
-
|
|
2661
|
+
/* @__PURE__ */ React13.createElement(Text13, { size: "sm", fw: 500, c: activeFilter === tab.value ? "var(--mantine-color-text)" : "dimmed" }, tab.label)
|
|
2662
|
+
))), /* @__PURE__ */ React13.createElement(Group13, { gap: 4, align: "center" }, /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, claims.length, " claim", claims.length === 1 ? "" : "s", " \xB7 ", owedCount, " ", engineHasData ? "owed by you" : "pending"), engineSummaries.updatedAt && /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, "Updated ", new Date(engineSummaries.updatedAt).toLocaleTimeString()), /* @__PURE__ */ React13.createElement(
|
|
2663
|
+
ActionIcon5,
|
|
2180
2664
|
{
|
|
2181
2665
|
variant: "subtle",
|
|
2182
2666
|
color: "gray",
|
|
@@ -2185,17 +2669,18 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2185
2669
|
onClick: () => {
|
|
2186
2670
|
void refreshClaims();
|
|
2187
2671
|
engineSummaries.refresh();
|
|
2672
|
+
oracleSummaries.refresh();
|
|
2188
2673
|
}
|
|
2189
2674
|
},
|
|
2190
|
-
/* @__PURE__ */
|
|
2191
|
-
), /* @__PURE__ */
|
|
2675
|
+
/* @__PURE__ */ React13.createElement(IconRefresh2, { size: 16 })
|
|
2676
|
+
), /* @__PURE__ */ React13.createElement(DownloadCsvButton, { onDownload: handleDownloadClaimsCsv, disabled: loadingClaims || claims.length === 0, label: "Download claims CSV", onError: setError }), /* @__PURE__ */ React13.createElement(DownloadZipButton, { onDownload: handleDownloadClaimsZip, disabled: loadingClaims || claims.length === 0, label: "Download claims + media (ZIP)", onError: setError }))), engineSummaries.supported && engineSummaries.notEnrolled && !engineSummaries.engineUnavailable && /* @__PURE__ */ React13.createElement(EnginePromo, null), loadingClaims && /* @__PURE__ */ React13.createElement(Group13, { gap: "xs", justify: "center", py: "md" }, /* @__PURE__ */ React13.createElement(Loader3, { size: "xs" }), /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.loadingClaims", { defaultValue: "Loading claims..." }))), !loadingClaims && filteredClaims.length === 0 && /* @__PURE__ */ React13.createElement(Text13, { size: "sm", c: "dimmed", ta: "center", py: "md" }, claims.length === 0 ? t("actionTypes.evaluateClaim.flow.empty.allCollections", { defaultValue: "No claims available for this collection." }) : activeFilter === "owed" ? "No claims are waiting on you right now." : t("actionTypes.evaluateClaim.flow.empty.filtered", { filter: activeFilter, defaultValue: `No ${activeFilter} claims found.` })), filteredClaims.length > 0 && /* @__PURE__ */ React13.createElement(Stack13, { gap: 12 }, filteredClaims.map((claim) => {
|
|
2192
2677
|
const row = engineSummaries.byClaimId[claim.claimId];
|
|
2193
2678
|
const view = rowViewByClaimId.get(claim.claimId) ?? { tone: "neutral", headline: "", owed: false, action: null, chain: null };
|
|
2194
2679
|
const profile = profilesByDid[claim.agentDid];
|
|
2195
2680
|
const displayName = profile?.displayname || claim.agentDid || claim.agentAddress;
|
|
2196
2681
|
const avatarLabel = (profile?.displayname || claim.agentDid || claim.agentAddress || "?")[0]?.toUpperCase();
|
|
2197
2682
|
const timeAgo = getTimeAgo(row?.evaluatedAt || claim.submissionDate || "");
|
|
2198
|
-
return /* @__PURE__ */
|
|
2683
|
+
return /* @__PURE__ */ React13.createElement(ListItemContainer, { key: claim.claimId, isChecked: false, onClick: () => setSelectedClaimId(claim.claimId) }, /* @__PURE__ */ React13.createElement(Group13, { gap: 16, align: "center", style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React13.createElement(
|
|
2199
2684
|
Box5,
|
|
2200
2685
|
{
|
|
2201
2686
|
style: {
|
|
@@ -2206,7 +2691,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2206
2691
|
background: view.owed ? `var(--mantine-color-${TONE_COLOR5[view.tone]}-6)` : "transparent"
|
|
2207
2692
|
}
|
|
2208
2693
|
}
|
|
2209
|
-
), /* @__PURE__ */
|
|
2694
|
+
), /* @__PURE__ */ React13.createElement(
|
|
2210
2695
|
Box5,
|
|
2211
2696
|
{
|
|
2212
2697
|
style: {
|
|
@@ -2227,10 +2712,10 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2227
2712
|
}
|
|
2228
2713
|
},
|
|
2229
2714
|
profile?.avatarUrl ? null : avatarLabel
|
|
2230
|
-
), /* @__PURE__ */
|
|
2231
|
-
}))), error && /* @__PURE__ */
|
|
2715
|
+
), /* @__PURE__ */ React13.createElement(Stack13, { gap: 0, style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React13.createElement(Text13, { fw: 500, size: "md", truncate: true, style: { lineHeight: 1.5 } }, displayName), /* @__PURE__ */ React13.createElement(Text13, { size: "xs", c: "dimmed", truncate: true }, truncateAddress(claim.agentAddress)))), /* @__PURE__ */ React13.createElement(EngineBadge, { view, timeAgo }));
|
|
2716
|
+
}))), error && /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "red", styles: actionAlertStyles }, error), /* @__PURE__ */ React13.createElement(MediaPreviewModal, { file: surveyActiveFile, onClose: () => setSurveyActiveFile(null) }));
|
|
2232
2717
|
};
|
|
2233
2718
|
export {
|
|
2234
2719
|
EvaluateClaimFlowDetail
|
|
2235
2720
|
};
|
|
2236
|
-
//# sourceMappingURL=EvaluateClaimFlowDetail-
|
|
2721
|
+
//# sourceMappingURL=EvaluateClaimFlowDetail-AL6AL5FV.js.map
|