@ixo/editor 7.4.0 → 7.5.1
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-EP6P4A3E.js} +800 -312
- package/dist/EvaluateClaimFlowDetail-EP6P4A3E.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-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-FVRGJE6M.js → chunk-OADGEOZK.js} +2984 -860
- package/dist/chunk-OADGEOZK.js.map +1 -0
- 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 ActionIcon6, 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 IconCheck10, 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";
|
|
@@ -480,32 +480,35 @@ var EngineBadge = ({ view, timeAgo }) => {
|
|
|
480
480
|
|
|
481
481
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/EnginePromo.tsx
|
|
482
482
|
import React4, { useState as useState2 } from "react";
|
|
483
|
-
import { Button, Group as Group4, List, Modal, Paper, Stack as Stack4, Text as Text4, ThemeIcon } from "@mantine/core";
|
|
484
|
-
import {
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
icon: /* @__PURE__ */ React4.createElement(IconWand, { size: 16 }),
|
|
488
|
-
title: "Create a flow",
|
|
489
|
-
body: "In your entity, create a new flow \u2014 the same place you build your collection flows."
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
icon: /* @__PURE__ */ React4.createElement(IconChecklist, { size: 16 }),
|
|
493
|
-
title: 'Add "Claim Approval Rules"',
|
|
494
|
-
body: "Write your approval rules in plain sentences \u2014 what gets a claim approved, rejected, or checked by a person. No code."
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
icon: /* @__PURE__ */ React4.createElement(IconClipboardCheck, { size: 16 }),
|
|
498
|
-
title: 'Add "Enable Evaluation Engine"',
|
|
499
|
-
body: "Pick this claim collection (or wire it to your Claim Collection block, like the Collection Users and Collection Lifecycle flows do)."
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
icon: /* @__PURE__ */ React4.createElement(IconInnerShadowBottomRight, { size: 16 }),
|
|
503
|
-
title: "Slide to sign \u2014 done",
|
|
504
|
-
body: "From then on the engine checks every new claim against your rules automatically. AI checks and fake-photo detection are optional extras you can switch on."
|
|
505
|
-
}
|
|
506
|
-
];
|
|
507
|
-
var EnginePromo = () => {
|
|
483
|
+
import { ActionIcon, Button, Code, CopyButton, Group as Group4, List, Modal, Paper, Stack as Stack4, Text as Text4, ThemeIcon, Tooltip as Tooltip3 } from "@mantine/core";
|
|
484
|
+
import { IconCheck as IconCheck3, IconCopy, IconFilePlus, IconInnerShadowBottomRight, IconPlayerPlay, IconPlugConnected, IconSignature } from "@tabler/icons-react";
|
|
485
|
+
var CopyValue = ({ value, label }) => /* @__PURE__ */ React4.createElement(Group4, { gap: 4, wrap: "nowrap", mt: 4 }, /* @__PURE__ */ React4.createElement(Code, { style: { overflowWrap: "anywhere" } }, value), /* @__PURE__ */ React4.createElement(CopyButton, { value, timeout: 1500 }, ({ copied, copy }) => /* @__PURE__ */ React4.createElement(Tooltip3, { label: copied ? "Copied" : label }, /* @__PURE__ */ React4.createElement(ActionIcon, { size: "xs", variant: "subtle", color: copied ? "teal" : "gray", onClick: copy, "aria-label": label }, copied ? /* @__PURE__ */ React4.createElement(IconCheck3, { size: 12 }) : /* @__PURE__ */ React4.createElement(IconCopy, { size: 12 })))));
|
|
486
|
+
var EnginePromo = ({ entityDid, collectionId }) => {
|
|
508
487
|
const [open, setOpen] = useState2(false);
|
|
488
|
+
const collectionName = collectionId ? `#${collectionId}` : "this collection";
|
|
489
|
+
const collectionPhrase = collectionId ? `collection #${collectionId}` : "this collection";
|
|
490
|
+
const steps = [
|
|
491
|
+
{
|
|
492
|
+
icon: /* @__PURE__ */ React4.createElement(IconFilePlus, { size: 16 }),
|
|
493
|
+
title: "Create a template",
|
|
494
|
+
body: /* @__PURE__ */ React4.createElement(React4.Fragment, null, "Open your space's ", /* @__PURE__ */ React4.createElement("b", null, "Library"), " and click ", /* @__PURE__ */ React4.createElement("b", null, "New template"), ". Give it a name, for example \u201CConnect evaluation service\u201D.")
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
icon: /* @__PURE__ */ React4.createElement(IconPlugConnected, { size: 16 }),
|
|
498
|
+
title: 'Add the step "Connect evaluation service"',
|
|
499
|
+
body: /* @__PURE__ */ React4.createElement(React4.Fragment, null, "In the template, open the ", /* @__PURE__ */ React4.createElement("b", null, "Actions"), " tab, click ", /* @__PURE__ */ React4.createElement("b", null, "Add step"), " and search for ", /* @__PURE__ */ React4.createElement("b", null, "Connect evaluation service"), ". Choose ", /* @__PURE__ */ React4.createElement("b", null, "Enter manually"), " and paste", " ", entityDid ? "this entity DID:" : "the DID of the entity that owns this collection.", entityDid ? /* @__PURE__ */ React4.createElement(CopyValue, { value: entityDid, label: "Copy entity DID" }) : null, /* @__PURE__ */ React4.createElement(Text4, { size: "xs", c: "dimmed", mt: 4, component: "div" }, "Click ", /* @__PURE__ */ React4.createElement("b", null, "Get Collections"), ", then pick the one ending in ", /* @__PURE__ */ React4.createElement("b", null, collectionName), "."))
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
icon: /* @__PURE__ */ React4.createElement(IconPlayerPlay, { size: 16 }),
|
|
503
|
+
title: 'Click "Go Flow" and open the flow',
|
|
504
|
+
body: /* @__PURE__ */ React4.createElement(React4.Fragment, null, "In the template's right panel, click ", /* @__PURE__ */ React4.createElement("b", null, "Go Flow"), ", keep or change the flow name, then click ", /* @__PURE__ */ React4.createElement("b", null, "Go Flow"), " again. Open the new flow.")
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
icon: /* @__PURE__ */ React4.createElement(IconSignature, { size: 16 }),
|
|
508
|
+
title: "Open the step, pick a service, slide to sign",
|
|
509
|
+
body: /* @__PURE__ */ React4.createElement(React4.Fragment, null, "Open the ", /* @__PURE__ */ React4.createElement("b", null, "Connect evaluation service"), " step and pick a service from the list. You'll see what it checks and what it costs before you sign. Then slide to sign.")
|
|
510
|
+
}
|
|
511
|
+
];
|
|
509
512
|
return /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(
|
|
510
513
|
Paper,
|
|
511
514
|
{
|
|
@@ -517,22 +520,22 @@ var EnginePromo = () => {
|
|
|
517
520
|
background: "color-mix(in srgb, var(--mantine-color-accent-5) 6%, transparent)"
|
|
518
521
|
}
|
|
519
522
|
},
|
|
520
|
-
/* @__PURE__ */ React4.createElement(Group4, { wrap: "nowrap", align: "flex-start", gap: "md" }, /* @__PURE__ */ React4.createElement(ThemeIcon, { variant: "light", size: 40, radius: "md" }, /* @__PURE__ */ React4.createElement(IconInnerShadowBottomRight, { size: 24 })), /* @__PURE__ */ React4.createElement(Stack4, { gap: 4, style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React4.createElement(Text4, { size: "sm", fw: 600 }, "Let
|
|
521
|
-
), /* @__PURE__ */ React4.createElement(Modal, { opened: open, onClose: () => setOpen(false), title: "
|
|
523
|
+
/* @__PURE__ */ React4.createElement(Group4, { wrap: "nowrap", align: "flex-start", gap: "md" }, /* @__PURE__ */ React4.createElement(ThemeIcon, { variant: "light", size: 40, radius: "md" }, /* @__PURE__ */ React4.createElement(IconInnerShadowBottomRight, { size: 24 })), /* @__PURE__ */ React4.createElement(Stack4, { gap: 4, style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React4.createElement(Text4, { size: "sm", fw: 600 }, "Let an evaluation service check these claims"), /* @__PURE__ */ React4.createElement(Text4, { size: "xs", c: "dimmed" }, "Hire an evaluation service. It checks every new claim as soon as it arrives, approves or rejects it, and tells you why. You only look at the claims it sends back to you."), /* @__PURE__ */ React4.createElement(Group4, { mt: 4 }, /* @__PURE__ */ React4.createElement(Button, { size: "xs", variant: "light", onClick: () => setOpen(true) }, "How to set it up"))))
|
|
524
|
+
), /* @__PURE__ */ React4.createElement(Modal, { opened: open, onClose: () => setOpen(false), title: "Hire an evaluation service", size: "lg", centered: true, transitionProps: { duration: 0 } }, /* @__PURE__ */ React4.createElement(Stack4, { gap: "md" }, /* @__PURE__ */ React4.createElement(Text4, { size: "sm" }, "Four steps, once for ", collectionPhrase, ":"), /* @__PURE__ */ React4.createElement(List, { spacing: "md", size: "sm", center: false }, steps.map((step, index) => /* @__PURE__ */ React4.createElement(
|
|
522
525
|
List.Item,
|
|
523
526
|
{
|
|
524
527
|
key: step.title,
|
|
525
528
|
icon: /* @__PURE__ */ React4.createElement(ThemeIcon, { variant: "light", size: 28, radius: "xl" }, step.icon)
|
|
526
529
|
},
|
|
527
|
-
/* @__PURE__ */ React4.createElement(Text4, { size: "sm", fw: 600 }, step.title),
|
|
528
|
-
/* @__PURE__ */ React4.createElement(Text4, { size: "xs", c: "dimmed" }, step.body)
|
|
529
|
-
))), /* @__PURE__ */ React4.createElement(Text4, { size: "
|
|
530
|
+
/* @__PURE__ */ React4.createElement(Text4, { size: "sm", fw: 600 }, index + 1, ". ", step.title),
|
|
531
|
+
/* @__PURE__ */ React4.createElement(Text4, { size: "xs", c: "dimmed", component: "div" }, step.body)
|
|
532
|
+
))), /* @__PURE__ */ React4.createElement(Text4, { size: "sm" }, /* @__PURE__ */ React4.createElement("b", null, "That's it."), " New claims are checked automatically. Claims the service can't decide alone come back here for you to review."), /* @__PURE__ */ React4.createElement(Text4, { size: "xs", c: "dimmed" }, "Want workers paid automatically? In the same step, choose how workers are paid."), /* @__PURE__ */ React4.createElement(Group4, { justify: "flex-end" }, /* @__PURE__ */ React4.createElement(Button, { variant: "default", size: "xs", onClick: () => setOpen(false) }, "Got it")))));
|
|
530
533
|
};
|
|
531
534
|
|
|
532
535
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/FlowManagerAdvisorySections.tsx
|
|
533
536
|
import React5, { useState as useState3 } from "react";
|
|
534
|
-
import { ActionIcon, Badge, Group as Group5, Stack as Stack5, Text as Text5, Tooltip as
|
|
535
|
-
import { IconCheck as
|
|
537
|
+
import { ActionIcon as ActionIcon2, Badge, Group as Group5, Stack as Stack5, Text as Text5, Tooltip as Tooltip4 } from "@mantine/core";
|
|
538
|
+
import { IconCheck as IconCheck4, IconLink as IconLink2, IconPencil, IconSparkles, IconUser, IconX as IconX3 } from "@tabler/icons-react";
|
|
536
539
|
|
|
537
540
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/evaluationReportModel.ts
|
|
538
541
|
var EVALUATION_REPORT_SERVICE_ROLE = "evaluation-report";
|
|
@@ -626,7 +629,7 @@ function ProvenanceHint({ provenance }) {
|
|
|
626
629
|
const t = useTranslate();
|
|
627
630
|
if (provenance !== "derived" && provenance !== "inferred" && provenance !== "human") return null;
|
|
628
631
|
const hint = provenance === "human" ? { Icon: IconUser, label: t("actionTypes.evaluateClaim.flow.flowManager.provenance.human", { defaultValue: "Set by human" }) } : provenance === "derived" ? { Icon: IconLink2, label: t("actionTypes.evaluateClaim.flow.flowManager.provenance.derived", { defaultValue: "Derived from inputs" }) } : { Icon: IconSparkles, label: t("actionTypes.evaluateClaim.flow.flowManager.provenance.inferred", { defaultValue: "Inferred by LLM" }) };
|
|
629
|
-
return /* @__PURE__ */ React5.createElement(
|
|
632
|
+
return /* @__PURE__ */ React5.createElement(Tooltip4, { label: hint.label, withArrow: true }, /* @__PURE__ */ React5.createElement("span", { style: { display: "inline-flex", alignItems: "center" }, "aria-label": hint.label }, icon(hint.Icon, 12, "var(--mantine-color-dimmed)")));
|
|
630
633
|
}
|
|
631
634
|
var FlowManagerContextSection = ({ record, onOverride, disabled }) => {
|
|
632
635
|
const t = useTranslate();
|
|
@@ -667,7 +670,7 @@ var FlowManagerContextSection = ({ record, onOverride, disabled }) => {
|
|
|
667
670
|
"aria-label": t("actionTypes.evaluateClaim.flow.flowManager.themeEditLabel", { defaultValue: "Edit theme" })
|
|
668
671
|
}
|
|
669
672
|
)), /* @__PURE__ */ React5.createElement(
|
|
670
|
-
|
|
673
|
+
ActionIcon2,
|
|
671
674
|
{
|
|
672
675
|
variant: "subtle",
|
|
673
676
|
color: "gray",
|
|
@@ -675,9 +678,9 @@ var FlowManagerContextSection = ({ record, onOverride, disabled }) => {
|
|
|
675
678
|
onClick: commitThemeEdit,
|
|
676
679
|
"aria-label": t("actionTypes.evaluateClaim.flow.flowManager.saveTheme", { defaultValue: "Save theme" })
|
|
677
680
|
},
|
|
678
|
-
icon(
|
|
681
|
+
icon(IconCheck4, 14)
|
|
679
682
|
), /* @__PURE__ */ React5.createElement(
|
|
680
|
-
|
|
683
|
+
ActionIcon2,
|
|
681
684
|
{
|
|
682
685
|
variant: "subtle",
|
|
683
686
|
color: "gray",
|
|
@@ -687,7 +690,7 @@ var FlowManagerContextSection = ({ record, onOverride, disabled }) => {
|
|
|
687
690
|
},
|
|
688
691
|
icon(IconX3, 14)
|
|
689
692
|
)) : /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(Text5, { size: "sm", style: { flex: 1, minWidth: 0 }, truncate: true }, theme), /* @__PURE__ */ React5.createElement(ProvenanceHint, { provenance: provenance.theme }), !disabled && /* @__PURE__ */ React5.createElement(
|
|
690
|
-
|
|
693
|
+
ActionIcon2,
|
|
691
694
|
{
|
|
692
695
|
variant: "subtle",
|
|
693
696
|
color: "gray",
|
|
@@ -725,10 +728,424 @@ var EvaluationReportSection = ({ runtime, selectedClaimId }) => {
|
|
|
725
728
|
}))));
|
|
726
729
|
};
|
|
727
730
|
|
|
731
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/OracleDecisionOverlay.tsx
|
|
732
|
+
import { default as React8, useEffect as useEffect2, useRef as useRef2, useState as useState6 } from "react";
|
|
733
|
+
import { ActionIcon as ActionIcon3, Anchor, Button as Button4, CopyButton as CopyButton2, Divider, Group as Group8, Stack as Stack8, Text as Text8, Tooltip as Tooltip5 } from "@mantine/core";
|
|
734
|
+
import { IconCheck as IconCheck5, IconCopy as IconCopy2, IconMinus as IconMinus2, IconShieldCheck, IconX as IconX4 } from "@tabler/icons-react";
|
|
735
|
+
|
|
736
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/OracleReviewAnswerForm.tsx
|
|
737
|
+
import React7, { useState as useState5 } from "react";
|
|
738
|
+
import { Button as Button3, Group as Group7, Stack as Stack7, Text as Text7, TextInput } from "@mantine/core";
|
|
739
|
+
|
|
740
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/ReviewAnswerForm.tsx
|
|
741
|
+
import React6, { useMemo as useMemo2, useState as useState4 } from "react";
|
|
742
|
+
import { Button as Button2, Group as Group6, Image, Stack as Stack6, Text as Text6, UnstyledButton as UnstyledButton2 } from "@mantine/core";
|
|
743
|
+
function evidenceValue(ref, subject) {
|
|
744
|
+
if (!subject || !ref.startsWith("$")) return void 0;
|
|
745
|
+
return ref.slice(1).split(".").reduce((acc, key) => acc && typeof acc === "object" ? acc[key] : void 0, subject);
|
|
746
|
+
}
|
|
747
|
+
function isImageLike(name, type, url) {
|
|
748
|
+
const ext = (name || url).toLowerCase().split(".").pop() || "";
|
|
749
|
+
return type.toLowerCase().startsWith("image/") || ["png", "jpg", "jpeg", "gif", "webp", "bmp"].includes(ext);
|
|
750
|
+
}
|
|
751
|
+
var Evidence = ({ value }) => {
|
|
752
|
+
if (value == null || value === "") return null;
|
|
753
|
+
if (Array.isArray(value)) {
|
|
754
|
+
return /* @__PURE__ */ React6.createElement(Group6, { gap: "xs" }, value.map((entry, i) => /* @__PURE__ */ React6.createElement(Evidence, { key: i, value: entry })));
|
|
755
|
+
}
|
|
756
|
+
if (typeof value === "object") {
|
|
757
|
+
const file = value;
|
|
758
|
+
if (typeof file.content === "string") {
|
|
759
|
+
if (isImageLike(file.name || "", file.type || "", file.content)) {
|
|
760
|
+
return /* @__PURE__ */ React6.createElement(Image, { src: file.content, alt: file.name || "evidence", radius: "sm", mah: 160, maw: 240, fit: "contain" });
|
|
761
|
+
}
|
|
762
|
+
return /* @__PURE__ */ React6.createElement(Text6, { size: "xs", c: "dimmed" }, file.name || "attachment");
|
|
763
|
+
}
|
|
764
|
+
return null;
|
|
765
|
+
}
|
|
766
|
+
return /* @__PURE__ */ React6.createElement(Text6, { size: "sm" }, String(value));
|
|
767
|
+
};
|
|
768
|
+
var AnswerButtons = ({ task, value, disabled, onChange }) => {
|
|
769
|
+
if (task.answer.type === "boolean") {
|
|
770
|
+
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"));
|
|
771
|
+
}
|
|
772
|
+
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)));
|
|
773
|
+
};
|
|
774
|
+
var ReviewAnswerForm = ({
|
|
775
|
+
evaluation,
|
|
776
|
+
review,
|
|
777
|
+
rubric,
|
|
778
|
+
credentialSubject,
|
|
779
|
+
isAssignedToMe,
|
|
780
|
+
reviewerName,
|
|
781
|
+
submitting,
|
|
782
|
+
submitError,
|
|
783
|
+
reviewSent,
|
|
784
|
+
disabled,
|
|
785
|
+
onSubmit
|
|
786
|
+
}) => {
|
|
787
|
+
const [answers, setAnswers] = useState4({});
|
|
788
|
+
const [answeringForOther, setAnsweringForOther] = useState4(false);
|
|
789
|
+
const pendingTaskIds = evaluation.decision?.pendingTasks ?? [];
|
|
790
|
+
const tasks = useMemo2(() => pendingTaskIds.map((id) => ({ id, task: rubric?.review?.tasks?.find((t) => t.id === id) })), [pendingTaskIds, rubric]);
|
|
791
|
+
if (review?.status === "completed") {
|
|
792
|
+
const when = review.completedAt ? new Date(review.completedAt).toLocaleString(void 0, { day: "numeric", month: "short", year: "numeric" }) : null;
|
|
793
|
+
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]) => {
|
|
794
|
+
const task = rubric?.review?.tasks?.find((t) => t.id === taskId);
|
|
795
|
+
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)));
|
|
796
|
+
}));
|
|
797
|
+
}
|
|
798
|
+
if (reviewSent || review?.status === "received") return null;
|
|
799
|
+
if (review?.status === "failed") {
|
|
800
|
+
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));
|
|
801
|
+
}
|
|
802
|
+
const needsHumanNow = evaluation.status === "pending_review" || evaluation.verdict === "review";
|
|
803
|
+
if (!needsHumanNow) return null;
|
|
804
|
+
if (tasks.length === 0) {
|
|
805
|
+
const reasons = evaluation.decision?.reasons ?? [];
|
|
806
|
+
if (reasons.length === 0) return null;
|
|
807
|
+
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, ")")));
|
|
808
|
+
}
|
|
809
|
+
if (!isAssignedToMe && !answeringForOther) {
|
|
810
|
+
return /* @__PURE__ */ React6.createElement(UnstyledButton2, { onClick: () => setAnsweringForOther(true) }, /* @__PURE__ */ React6.createElement(Text6, { size: "xs", c: "dimmed", td: "underline" }, "Answer on their behalf"));
|
|
811
|
+
}
|
|
812
|
+
const readOnly = disabled;
|
|
813
|
+
const allAnswered = tasks.every(({ id }) => answers[id] !== void 0);
|
|
814
|
+
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));
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/oracleReviewFormModel.ts
|
|
818
|
+
function oracleReviewTasksFrom(pendingTaskIds, rubric) {
|
|
819
|
+
return pendingTaskIds.map((id) => {
|
|
820
|
+
const task = rubric?.review?.tasks?.find((t) => t.id === id);
|
|
821
|
+
return task ? { id, prompt: task.prompt, answer: task.answer } : { id, prompt: id, answer: { type: "text" } };
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
function isOracleAnswerComplete(shape, value) {
|
|
825
|
+
if (value === void 0) return false;
|
|
826
|
+
if (shape.type === "boolean") return typeof value === "boolean";
|
|
827
|
+
if (shape.type === "enum") return typeof value === "string" && !!value.trim() && shape.options.includes(value);
|
|
828
|
+
return typeof value === "string" && value.trim().length > 0;
|
|
829
|
+
}
|
|
830
|
+
function areOracleAnswersComplete(tasks, answers) {
|
|
831
|
+
return tasks.length > 0 && tasks.every((task) => isOracleAnswerComplete(task.answer, answers[task.id]));
|
|
832
|
+
}
|
|
833
|
+
function buildOracleReviewPayload(tasks, answers) {
|
|
834
|
+
if (!areOracleAnswersComplete(tasks, answers)) return null;
|
|
835
|
+
const out = {};
|
|
836
|
+
for (const task of tasks) out[task.id] = answers[task.id];
|
|
837
|
+
return out;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/OracleReviewAnswerForm.tsx
|
|
841
|
+
var OracleReviewAnswerForm = ({ tasks, submitting, submitError, onSubmit }) => {
|
|
842
|
+
const [answers, setAnswers] = useState5({});
|
|
843
|
+
const setAnswer = (id, value) => setAnswers((prev) => ({ ...prev, [id]: value }));
|
|
844
|
+
const canSubmit = areOracleAnswersComplete(tasks, answers);
|
|
845
|
+
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(
|
|
846
|
+
TextInput,
|
|
847
|
+
{
|
|
848
|
+
size: "xs",
|
|
849
|
+
value: typeof answers[task.id] === "string" ? answers[task.id] : "",
|
|
850
|
+
disabled: submitting,
|
|
851
|
+
onChange: (e) => setAnswer(task.id, e.currentTarget.value),
|
|
852
|
+
placeholder: "Type your answer"
|
|
853
|
+
}
|
|
854
|
+
))), /* @__PURE__ */ React7.createElement(Group7, { gap: "sm", align: "center" }, /* @__PURE__ */ React7.createElement(
|
|
855
|
+
Button3,
|
|
856
|
+
{
|
|
857
|
+
size: "xs",
|
|
858
|
+
disabled: !canSubmit,
|
|
859
|
+
loading: submitting,
|
|
860
|
+
onClick: () => {
|
|
861
|
+
const payload = buildOracleReviewPayload(tasks, answers);
|
|
862
|
+
if (payload) onSubmit(payload);
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
"Send review"
|
|
866
|
+
), /* @__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));
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/oracleOverlayModel.ts
|
|
870
|
+
function oracleOverlayGateOf(params) {
|
|
871
|
+
if (!params.engineOutOfPicture) return "skip";
|
|
872
|
+
if (!params.claimEvaluatedOnChain) return "skip";
|
|
873
|
+
if (!params.oracleResolved) return "skip";
|
|
874
|
+
return params.hasCachedSigner ? "auto" : "button";
|
|
875
|
+
}
|
|
876
|
+
function oracleOverlayViewOf(record) {
|
|
877
|
+
const decision = record.decision;
|
|
878
|
+
if (!decision || !decision.verdict) return null;
|
|
879
|
+
const explanation = typeof decision.explanation === "string" ? decision.explanation.trim() : "";
|
|
880
|
+
return {
|
|
881
|
+
verdict: decision.verdict,
|
|
882
|
+
explanation: explanation || null,
|
|
883
|
+
decidedAt: decision.updatedAt || decision.createdAt,
|
|
884
|
+
receiptCid: decision.receiptCid || null
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
function oracleOverlayNoteFor(status, triggeredByClick) {
|
|
888
|
+
if (!triggeredByClick) return null;
|
|
889
|
+
if (status === "forbidden") return "You don't have access to this oracle's details.";
|
|
890
|
+
if (status === "unauthorized") return null;
|
|
891
|
+
return "Couldn't load the oracle's evaluation details.";
|
|
892
|
+
}
|
|
893
|
+
function oracleReceiptLinkFor(receiptCid, decisionEngineBaseUrl) {
|
|
894
|
+
const base = decisionEngineBaseUrl.trim().replace(/\/+$/, "");
|
|
895
|
+
if (!base) return null;
|
|
896
|
+
return `${base}/v1/receipts/${encodeURIComponent(receiptCid)}`;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/OracleDecisionOverlay.tsx
|
|
900
|
+
function truncateCid(cid) {
|
|
901
|
+
if (cid.length <= 20) return cid;
|
|
902
|
+
return `${cid.slice(0, 10)}\u2026${cid.slice(-6)}`;
|
|
903
|
+
}
|
|
904
|
+
var CopyCid = ({ value }) => /* @__PURE__ */ React8.createElement(CopyButton2, { value, timeout: 1500 }, ({ copied, copy }) => /* @__PURE__ */ React8.createElement(Tooltip5, { label: copied ? "Copied" : "Copy receipt CID" }, /* @__PURE__ */ React8.createElement(ActionIcon3, { size: "xs", variant: "subtle", color: copied ? "teal" : "gray", onClick: copy }, copied ? /* @__PURE__ */ React8.createElement(IconCheck5, { size: 12 }) : /* @__PURE__ */ React8.createElement(IconCopy2, { size: 12 }))));
|
|
905
|
+
var RECEIPT_FAILURE_COPY = {
|
|
906
|
+
missing_input: "the receipt or the claim is missing.",
|
|
907
|
+
not_found: "the engine has no receipt with this CID.",
|
|
908
|
+
no_signed_bytes: "the engine returned the receipt without its signed bytes.",
|
|
909
|
+
malformed: "the receipt is unreadable.",
|
|
910
|
+
wrong_algorithm: "the receipt is not signed the way the engine signs.",
|
|
911
|
+
wrong_engine: "it was not signed by this network\u2019s decision engine.",
|
|
912
|
+
unknown_key: "its signing key is not one the engine publishes.",
|
|
913
|
+
bad_signature: "the signature does not match the contents.",
|
|
914
|
+
wrong_issuer: "it names a different issuer.",
|
|
915
|
+
claim_mismatch: "it is for a different claim."
|
|
916
|
+
};
|
|
917
|
+
var ReceiptCheckResult = ({ result }) => {
|
|
918
|
+
const t = useTranslate();
|
|
919
|
+
if (result.status === "verified") {
|
|
920
|
+
const details = [
|
|
921
|
+
result.outcome && t("actionTypes.evaluateClaim.receipt.outcome", { defaultValue: "Outcome: {{outcome}}", outcome: result.outcome }),
|
|
922
|
+
result.oracleDid && t("actionTypes.evaluateClaim.receipt.oracle", { defaultValue: "Oracle: {{oracle}}", oracle: result.oracleDid }),
|
|
923
|
+
result.issuedAt && t("actionTypes.evaluateClaim.receipt.issuedAt", { defaultValue: "Issued {{when}}", when: new Date(result.issuedAt).toLocaleString() })
|
|
924
|
+
].filter(Boolean);
|
|
925
|
+
return /* @__PURE__ */ React8.createElement(Stack8, { gap: 2 }, /* @__PURE__ */ React8.createElement(Group8, { gap: 4, wrap: "nowrap", role: "status" }, icon(IconCheck5, 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 ")));
|
|
926
|
+
}
|
|
927
|
+
if (result.status === "failed") {
|
|
928
|
+
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", {
|
|
929
|
+
defaultValue: "Not verified: {{reason}}",
|
|
930
|
+
reason: t(`actionTypes.evaluateClaim.receipt.reasons.${result.reason}`, { defaultValue: RECEIPT_FAILURE_COPY[result.reason] ?? RECEIPT_FAILURE_COPY.malformed })
|
|
931
|
+
})));
|
|
932
|
+
}
|
|
933
|
+
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." })));
|
|
934
|
+
};
|
|
935
|
+
var OracleDecisionOverlay = ({ claimId, protocolDid, engineOutOfPicture, claimEvaluatedOnChain, oracleResolved, rubric }) => {
|
|
936
|
+
const handlers = useBlocknoteHandlers();
|
|
937
|
+
const handlersRef = useRef2(handlers);
|
|
938
|
+
useEffect2(() => {
|
|
939
|
+
handlersRef.current = handlers;
|
|
940
|
+
}, [handlers]);
|
|
941
|
+
const supported = typeof handlers.getOracleClaimDetail === "function";
|
|
942
|
+
const [state, setState] = useState6({ kind: "hidden" });
|
|
943
|
+
const [reviewSubmitting, setReviewSubmitting] = useState6(false);
|
|
944
|
+
const [reviewSubmitError, setReviewSubmitError] = useState6(null);
|
|
945
|
+
const [receiptCheck, setReceiptCheck] = useState6({ kind: "idle" });
|
|
946
|
+
const t = useTranslate();
|
|
947
|
+
function applyResult(result, triggeredByClick) {
|
|
948
|
+
if (result.status === "ok") {
|
|
949
|
+
const { record } = result;
|
|
950
|
+
if (record.decision?.status === "pending_review") {
|
|
951
|
+
if (record.review && !record.review.foldedAt) {
|
|
952
|
+
setState({ kind: "review-sent" });
|
|
953
|
+
return;
|
|
954
|
+
}
|
|
955
|
+
const pending = record.pendingTasks ?? [];
|
|
956
|
+
if (pending.length > 0) {
|
|
957
|
+
setState({ kind: "review", tasks: oracleReviewTasksFrom(pending, rubric), answeredAgainst: record.decision?.resultDigest ?? null, collectionId: record.collectionId || null });
|
|
958
|
+
return;
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
const view2 = oracleOverlayViewOf(record);
|
|
962
|
+
setState(view2 ? { kind: "shown", view: view2, receiptJws: record.decision?.receiptJws ?? null } : { kind: "hidden" });
|
|
963
|
+
return;
|
|
964
|
+
}
|
|
965
|
+
if (result.status === "unauthorized" && !triggeredByClick) {
|
|
966
|
+
setState({ kind: "needs-signer" });
|
|
967
|
+
return;
|
|
968
|
+
}
|
|
969
|
+
const note = oracleOverlayNoteFor(result.status, triggeredByClick);
|
|
970
|
+
setState(note ? { kind: "note", note } : { kind: "hidden" });
|
|
971
|
+
}
|
|
972
|
+
async function handleSubmitReview(answers, answeredAgainst, collectionId) {
|
|
973
|
+
const submit = handlersRef.current.submitOracleReview;
|
|
974
|
+
if (!submit) return;
|
|
975
|
+
if (!answeredAgainst) {
|
|
976
|
+
setReviewSubmitError("This claim can't be answered yet \u2014 refresh and try again.");
|
|
977
|
+
return;
|
|
978
|
+
}
|
|
979
|
+
setReviewSubmitting(true);
|
|
980
|
+
setReviewSubmitError(null);
|
|
981
|
+
try {
|
|
982
|
+
const result = await submit({ protocolDid, claimId, collectionId, answers, answeredAgainst });
|
|
983
|
+
if (result.status === "ok") {
|
|
984
|
+
setState({ kind: "review-sent" });
|
|
985
|
+
try {
|
|
986
|
+
const refetched = await handlersRef.current.getOracleClaimDetail?.({ claimId, protocolDid, silent: true });
|
|
987
|
+
if (refetched) applyResult(refetched, false);
|
|
988
|
+
} catch {
|
|
989
|
+
}
|
|
990
|
+
return;
|
|
991
|
+
}
|
|
992
|
+
if (result.status === "conflict" || result.status === "error") {
|
|
993
|
+
setReviewSubmitError(result.message);
|
|
994
|
+
return;
|
|
995
|
+
}
|
|
996
|
+
setReviewSubmitError("You don't have access to send this review.");
|
|
997
|
+
} catch (err) {
|
|
998
|
+
console.warn("[claim.evaluate] submitOracleReview failed", err);
|
|
999
|
+
setReviewSubmitError(err instanceof Error ? err.message : "The oracle didn't respond \u2014 try again");
|
|
1000
|
+
} finally {
|
|
1001
|
+
setReviewSubmitting(false);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
useEffect2(() => {
|
|
1005
|
+
setState({ kind: "hidden" });
|
|
1006
|
+
setReviewSubmitting(false);
|
|
1007
|
+
setReviewSubmitError(null);
|
|
1008
|
+
setReceiptCheck({ kind: "idle" });
|
|
1009
|
+
if (!supported || !engineOutOfPicture || !claimEvaluatedOnChain || !claimId || !protocolDid) return;
|
|
1010
|
+
const gate = oracleOverlayGateOf({
|
|
1011
|
+
engineOutOfPicture,
|
|
1012
|
+
claimEvaluatedOnChain,
|
|
1013
|
+
oracleResolved,
|
|
1014
|
+
hasCachedSigner: handlersRef.current.hasCachedSigner?.() ?? false
|
|
1015
|
+
});
|
|
1016
|
+
if (gate === "skip") return;
|
|
1017
|
+
if (gate === "button") {
|
|
1018
|
+
setState({ kind: "needs-signer" });
|
|
1019
|
+
return;
|
|
1020
|
+
}
|
|
1021
|
+
setState({ kind: "loading" });
|
|
1022
|
+
let cancelled = false;
|
|
1023
|
+
(async () => {
|
|
1024
|
+
try {
|
|
1025
|
+
const result = await handlersRef.current.getOracleClaimDetail({ claimId, protocolDid, silent: true });
|
|
1026
|
+
if (!cancelled) applyResult(result, false);
|
|
1027
|
+
} catch (err) {
|
|
1028
|
+
console.warn("[claim.evaluate] getOracleClaimDetail (silent) failed", err);
|
|
1029
|
+
if (!cancelled) setState({ kind: "hidden" });
|
|
1030
|
+
}
|
|
1031
|
+
})();
|
|
1032
|
+
return () => {
|
|
1033
|
+
cancelled = true;
|
|
1034
|
+
};
|
|
1035
|
+
}, [claimId, protocolDid, engineOutOfPicture, claimEvaluatedOnChain, oracleResolved, supported]);
|
|
1036
|
+
const handleVerifyReceipt = async (cid, jws) => {
|
|
1037
|
+
const verify = handlersRef.current.verifyDecisionReceipt;
|
|
1038
|
+
if (!verify) return;
|
|
1039
|
+
setReceiptCheck({ kind: "checking" });
|
|
1040
|
+
try {
|
|
1041
|
+
setReceiptCheck({ kind: "done", result: await verify({ cid, jws, claimId }) });
|
|
1042
|
+
} catch {
|
|
1043
|
+
setReceiptCheck({ kind: "done", result: { status: "unavailable" } });
|
|
1044
|
+
}
|
|
1045
|
+
};
|
|
1046
|
+
const handleShowClick = async () => {
|
|
1047
|
+
const getOracleClaimDetail = handlersRef.current.getOracleClaimDetail;
|
|
1048
|
+
if (!getOracleClaimDetail) return;
|
|
1049
|
+
setState({ kind: "loading" });
|
|
1050
|
+
try {
|
|
1051
|
+
const result = await getOracleClaimDetail({ claimId, protocolDid, silent: false });
|
|
1052
|
+
applyResult(result, true);
|
|
1053
|
+
} catch (err) {
|
|
1054
|
+
console.warn("[claim.evaluate] getOracleClaimDetail failed", err);
|
|
1055
|
+
setState({ kind: "note", note: oracleOverlayNoteFor("error", true) ?? "Couldn't load the oracle's evaluation details." });
|
|
1056
|
+
}
|
|
1057
|
+
};
|
|
1058
|
+
if (state.kind === "hidden") return null;
|
|
1059
|
+
if (state.kind === "needs-signer" || state.kind === "loading") {
|
|
1060
|
+
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");
|
|
1061
|
+
}
|
|
1062
|
+
if (state.kind === "note") {
|
|
1063
|
+
return /* @__PURE__ */ React8.createElement(Text8, { size: "xs", c: "dimmed", fs: "italic" }, state.note);
|
|
1064
|
+
}
|
|
1065
|
+
if (state.kind === "review") {
|
|
1066
|
+
const { tasks, answeredAgainst, collectionId } = state;
|
|
1067
|
+
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(
|
|
1068
|
+
OracleReviewAnswerForm,
|
|
1069
|
+
{
|
|
1070
|
+
tasks,
|
|
1071
|
+
submitting: reviewSubmitting,
|
|
1072
|
+
submitError: reviewSubmitError,
|
|
1073
|
+
onSubmit: (answers) => void handleSubmitReview(answers, answeredAgainst, collectionId)
|
|
1074
|
+
}
|
|
1075
|
+
));
|
|
1076
|
+
}
|
|
1077
|
+
if (state.kind === "review-sent") {
|
|
1078
|
+
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."));
|
|
1079
|
+
}
|
|
1080
|
+
const { view, receiptJws } = state;
|
|
1081
|
+
const canVerify = typeof handlers.verifyDecisionReceipt === "function";
|
|
1082
|
+
const receiptLink = view.receiptCid ? oracleReceiptLinkFor(view.receiptCid, handlers.getDecisionEngineBaseUrl?.() ?? "") : null;
|
|
1083
|
+
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(
|
|
1084
|
+
Button4,
|
|
1085
|
+
{
|
|
1086
|
+
variant: "secondary",
|
|
1087
|
+
size: "sm",
|
|
1088
|
+
leftSection: icon(IconShieldCheck, 16),
|
|
1089
|
+
loading: receiptCheck.kind === "checking",
|
|
1090
|
+
onClick: () => void handleVerifyReceipt(view.receiptCid, receiptJws),
|
|
1091
|
+
style: { alignSelf: "flex-start" }
|
|
1092
|
+
},
|
|
1093
|
+
t("actionTypes.evaluateClaim.receipt.verify", { defaultValue: "Verify" })
|
|
1094
|
+
), receiptCheck.kind === "done" && /* @__PURE__ */ React8.createElement(ReceiptCheckResult, { result: receiptCheck.result })));
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/oracleListModel.ts
|
|
1098
|
+
function oracleChainSegment(chainStatus) {
|
|
1099
|
+
if (chainStatus === "submitted" || chainStatus === "owner_submitted") return { written: true, text: "on chain" };
|
|
1100
|
+
if (chainStatus === "blocked") return { written: false, text: "blocked" };
|
|
1101
|
+
if (chainStatus === "skipped") return { written: false, text: "not on chain" };
|
|
1102
|
+
return null;
|
|
1103
|
+
}
|
|
1104
|
+
var ORACLE_VERDICT_HEADLINE = {
|
|
1105
|
+
approve: { tone: "positive", headline: "Approved" },
|
|
1106
|
+
partial: { tone: "positive", headline: "Partly approved" },
|
|
1107
|
+
reject: { tone: "negative", headline: "Rejected" }
|
|
1108
|
+
};
|
|
1109
|
+
function oracleRowViewOf(row) {
|
|
1110
|
+
if (!row) return { tone: "neutral", headline: "", owed: false, action: null, chain: null };
|
|
1111
|
+
if (row.ingestStatus === "failed") {
|
|
1112
|
+
return { tone: "negative", headline: "Ingest failed", owed: false, action: null, chain: null };
|
|
1113
|
+
}
|
|
1114
|
+
if (!row.decisionStatus) {
|
|
1115
|
+
return { tone: "neutral", headline: "", owed: false, action: null, chain: null };
|
|
1116
|
+
}
|
|
1117
|
+
if (row.decisionStatus === "unusable" || row.decisionStatus === "invalid_facts") {
|
|
1118
|
+
return { tone: "neutral", headline: "Unusable", owed: false, action: null, chain: null };
|
|
1119
|
+
}
|
|
1120
|
+
if (row.decisionStatus === "pending_review" || row.verdict === "review") {
|
|
1121
|
+
return { tone: "attention", headline: "Needs review", owed: true, action: { text: "Answer questions", isLink: true }, chain: null };
|
|
1122
|
+
}
|
|
1123
|
+
const verdictView = row.verdict ? ORACLE_VERDICT_HEADLINE[row.verdict] : void 0;
|
|
1124
|
+
if (!verdictView) {
|
|
1125
|
+
return { tone: "neutral", headline: "", owed: false, action: null, chain: null };
|
|
1126
|
+
}
|
|
1127
|
+
return { tone: verdictView.tone, headline: verdictView.headline, owed: false, action: null, chain: oracleChainSegment(row.chainStatus) };
|
|
1128
|
+
}
|
|
1129
|
+
var VERDICTS_FOR_DECISION = { approve: ["approve", "partial"], reject: ["reject"] };
|
|
1130
|
+
function oracleReceiptProofOf(row, decision) {
|
|
1131
|
+
const cid = row?.receiptCid?.trim();
|
|
1132
|
+
if (!cid || !row?.verdict) return void 0;
|
|
1133
|
+
return (VERDICTS_FOR_DECISION[decision] ?? []).includes(row.verdict) ? cid : void 0;
|
|
1134
|
+
}
|
|
1135
|
+
async function verifiedOracleReceiptProof(cid, claimId, verify) {
|
|
1136
|
+
if (!cid || !verify) return void 0;
|
|
1137
|
+
try {
|
|
1138
|
+
const result = await verify({ cid, claimId });
|
|
1139
|
+
return result.status === "verified" ? cid : void 0;
|
|
1140
|
+
} catch {
|
|
1141
|
+
return void 0;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
|
|
728
1145
|
// 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
|
|
1146
|
+
import React9 from "react";
|
|
1147
|
+
import { Accordion as Accordion2, Badge as Badge2, Group as Group9, Stack as Stack9, Text as Text9 } from "@mantine/core";
|
|
1148
|
+
import { IconAlertTriangle as IconAlertTriangle3, IconCheck as IconCheck6 } from "@tabler/icons-react";
|
|
732
1149
|
function originOf(url) {
|
|
733
1150
|
try {
|
|
734
1151
|
return new URL(url).origin;
|
|
@@ -736,57 +1153,58 @@ function originOf(url) {
|
|
|
736
1153
|
return url;
|
|
737
1154
|
}
|
|
738
1155
|
}
|
|
739
|
-
var OutsideServicesSection = ({ ext }) => /* @__PURE__ */
|
|
1156
|
+
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(IconCheck6, { 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
1157
|
|
|
741
1158
|
// 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__ */
|
|
1159
|
+
import React10 from "react";
|
|
1160
|
+
import { ActionIcon as ActionIcon4, Badge as Badge3, CopyButton as CopyButton3, Group as Group10, Paper as Paper2, ScrollArea, Stack as Stack10, Table, Text as Text10, Timeline, Tooltip as Tooltip6 } from "@mantine/core";
|
|
1161
|
+
import { IconCheck as IconCheck7, IconCopy as IconCopy3 } from "@tabler/icons-react";
|
|
1162
|
+
var CopyIcon = ({ value }) => /* @__PURE__ */ React10.createElement(CopyButton3, { value, timeout: 1500 }, ({ copied, copy }) => /* @__PURE__ */ React10.createElement(Tooltip6, { label: copied ? "Copied" : "Copy" }, /* @__PURE__ */ React10.createElement(ActionIcon4, { size: "xs", variant: "subtle", color: copied ? "teal" : "gray", onClick: copy }, copied ? /* @__PURE__ */ React10.createElement(IconCheck7, { size: 12 }) : /* @__PURE__ */ React10.createElement(IconCopy3, { size: 12 }))));
|
|
1163
|
+
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;
|
|
1164
|
+
var SubHead = ({ children }) => /* @__PURE__ */ React10.createElement(Text10, { size: "xs", fw: 600, c: "dimmed", tt: "uppercase" }, children);
|
|
748
1165
|
var JsonViewer = ({ label, value }) => {
|
|
749
1166
|
const json = JSON.stringify(value, null, 2);
|
|
750
|
-
return /* @__PURE__ */
|
|
1167
|
+
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
1168
|
};
|
|
752
|
-
var TranscriptCard = ({ name, transcript }) => /* @__PURE__ */
|
|
1169
|
+
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
1170
|
var TechnicalDetails = ({ record, onChain }) => {
|
|
754
1171
|
const { ingest, evaluation, review } = record;
|
|
755
1172
|
const trace = evaluation?.trace ?? null;
|
|
756
1173
|
const billing = evaluation?.billing ?? null;
|
|
757
|
-
return /* @__PURE__ */
|
|
1174
|
+
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
1175
|
};
|
|
759
1176
|
|
|
760
1177
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/useClaimEngine.ts
|
|
761
|
-
import { useCallback as useCallback2, useEffect as
|
|
1178
|
+
import { useCallback as useCallback2, useEffect as useEffect3, useRef as useRef3, useState as useState7 } from "react";
|
|
762
1179
|
var POLL_MS = 1e4;
|
|
763
1180
|
var REVIEW_POLL_MS = 5e3;
|
|
764
|
-
function useClaimEngine(claimId) {
|
|
1181
|
+
function useClaimEngine(claimId, options) {
|
|
1182
|
+
const enabled = options?.enabled ?? true;
|
|
765
1183
|
const handlers = useBlocknoteHandlers();
|
|
766
|
-
const handlersRef =
|
|
767
|
-
|
|
1184
|
+
const handlersRef = useRef3(handlers);
|
|
1185
|
+
useEffect3(() => {
|
|
768
1186
|
handlersRef.current = handlers;
|
|
769
1187
|
}, [handlers]);
|
|
770
1188
|
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
|
-
|
|
1189
|
+
const [record, setRecord] = useState7(null);
|
|
1190
|
+
const [forbidden, setForbidden] = useState7(false);
|
|
1191
|
+
const [loading, setLoading] = useState7(false);
|
|
1192
|
+
const [updatedAt, setUpdatedAt] = useState7(null);
|
|
1193
|
+
const [fetchIndex, setFetchIndex] = useState7(0);
|
|
1194
|
+
const [submitting, setSubmitting] = useState7(false);
|
|
1195
|
+
const [submitError, setSubmitError] = useState7(null);
|
|
1196
|
+
const [reviewSent, setReviewSent] = useState7(false);
|
|
1197
|
+
useEffect3(() => {
|
|
780
1198
|
setRecord(null);
|
|
781
1199
|
setForbidden(false);
|
|
782
1200
|
setUpdatedAt(null);
|
|
783
1201
|
setSubmitError(null);
|
|
784
1202
|
setReviewSent(false);
|
|
785
|
-
setLoading(!!claimId);
|
|
1203
|
+
setLoading(enabled && !!claimId);
|
|
786
1204
|
setFetchIndex(0);
|
|
787
|
-
}, [claimId]);
|
|
788
|
-
|
|
789
|
-
if (!supported || !claimId) return;
|
|
1205
|
+
}, [claimId, enabled]);
|
|
1206
|
+
useEffect3(() => {
|
|
1207
|
+
if (!supported || !claimId || !enabled) return;
|
|
790
1208
|
let cancelled = false;
|
|
791
1209
|
(async () => {
|
|
792
1210
|
try {
|
|
@@ -812,16 +1230,16 @@ function useClaimEngine(claimId) {
|
|
|
812
1230
|
return () => {
|
|
813
1231
|
cancelled = true;
|
|
814
1232
|
};
|
|
815
|
-
}, [supported, claimId, fetchIndex]);
|
|
816
|
-
|
|
817
|
-
if (!supported || !claimId || forbidden || updatedAt == null) return;
|
|
1233
|
+
}, [supported, claimId, enabled, fetchIndex]);
|
|
1234
|
+
useEffect3(() => {
|
|
1235
|
+
if (!supported || !claimId || !enabled || forbidden || updatedAt == null) return;
|
|
818
1236
|
const view = engineStateOf(record);
|
|
819
1237
|
const reviewCompleting = reviewSent || view.key === "review_completing";
|
|
820
1238
|
const interval = reviewCompleting ? REVIEW_POLL_MS : view.settled ? 0 : POLL_MS;
|
|
821
1239
|
if (!interval) return;
|
|
822
1240
|
const timer = setTimeout(() => setFetchIndex((i) => i + 1), interval);
|
|
823
1241
|
return () => clearTimeout(timer);
|
|
824
|
-
}, [supported, claimId, forbidden, record, reviewSent, updatedAt]);
|
|
1242
|
+
}, [supported, claimId, enabled, forbidden, record, reviewSent, updatedAt]);
|
|
825
1243
|
const refresh = useCallback2(() => setFetchIndex((i) => i + 1), []);
|
|
826
1244
|
const submitReview = useCallback2(
|
|
827
1245
|
async (answers) => {
|
|
@@ -849,127 +1267,130 @@ function useClaimEngine(claimId) {
|
|
|
849
1267
|
);
|
|
850
1268
|
return { supported, record, forbidden, loading, updatedAt, refresh, submitReview, submitting, submitError, reviewSent };
|
|
851
1269
|
}
|
|
852
|
-
function useEngineSummaries(collectionId) {
|
|
1270
|
+
function useEngineSummaries(collectionId, options) {
|
|
1271
|
+
const enabled = options?.enabled ?? true;
|
|
853
1272
|
const handlers = useBlocknoteHandlers();
|
|
854
|
-
const handlersRef =
|
|
855
|
-
|
|
1273
|
+
const handlersRef = useRef3(handlers);
|
|
1274
|
+
useEffect3(() => {
|
|
856
1275
|
handlersRef.current = handlers;
|
|
857
1276
|
}, [handlers]);
|
|
858
1277
|
const supported = typeof handlers.listClaimEvaluations === "function";
|
|
859
|
-
const [byClaimId, setByClaimId] =
|
|
860
|
-
const [notEnrolled, setNotEnrolled] =
|
|
861
|
-
const [
|
|
862
|
-
const [
|
|
863
|
-
|
|
864
|
-
|
|
1278
|
+
const [byClaimId, setByClaimId] = useState7({});
|
|
1279
|
+
const [notEnrolled, setNotEnrolled] = useState7(false);
|
|
1280
|
+
const [engineUnavailable, setEngineUnavailable] = useState7(false);
|
|
1281
|
+
const [updatedAt, setUpdatedAt] = useState7(null);
|
|
1282
|
+
const [fetchIndex, setFetchIndex] = useState7(0);
|
|
1283
|
+
useEffect3(() => {
|
|
1284
|
+
if (!supported || !collectionId || !enabled) return;
|
|
865
1285
|
let cancelled = false;
|
|
866
1286
|
(async () => {
|
|
867
1287
|
try {
|
|
868
|
-
const result = await handlersRef.current.listClaimEvaluations({ collectionId });
|
|
1288
|
+
const result = await handlersRef.current.listClaimEvaluations({ collectionId, silent: true });
|
|
869
1289
|
if (cancelled) return;
|
|
1290
|
+
if (result?.unauthorized === true) {
|
|
1291
|
+
setEngineUnavailable(true);
|
|
1292
|
+
return;
|
|
1293
|
+
}
|
|
870
1294
|
const next = {};
|
|
871
1295
|
for (const item of result?.items ?? []) next[item.claimId] = item;
|
|
872
1296
|
setByClaimId(next);
|
|
873
1297
|
setNotEnrolled(result?.notEnrolled === true);
|
|
1298
|
+
setEngineUnavailable(false);
|
|
1299
|
+
setUpdatedAt(Date.now());
|
|
874
1300
|
} catch (err) {
|
|
875
1301
|
console.warn("[claim.evaluate] listClaimEvaluations failed", err);
|
|
876
|
-
|
|
877
|
-
if (!cancelled) setUpdatedAt(Date.now());
|
|
1302
|
+
if (!cancelled) setEngineUnavailable(true);
|
|
878
1303
|
}
|
|
879
1304
|
})();
|
|
880
1305
|
return () => {
|
|
881
1306
|
cancelled = true;
|
|
882
1307
|
};
|
|
883
|
-
}, [supported, collectionId, fetchIndex]);
|
|
1308
|
+
}, [supported, collectionId, enabled, fetchIndex]);
|
|
884
1309
|
const refresh = useCallback2(() => setFetchIndex((i) => i + 1), []);
|
|
885
|
-
return { supported, byClaimId, notEnrolled, updatedAt, refresh };
|
|
1310
|
+
return { supported, byClaimId, notEnrolled, engineUnavailable, updatedAt, refresh };
|
|
886
1311
|
}
|
|
887
1312
|
|
|
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
|
-
|
|
1313
|
+
// src/mantine/blocks/action/actionTypes/evaluateClaim/useOracleClaims.ts
|
|
1314
|
+
import { useCallback as useCallback3, useEffect as useEffect4, useRef as useRef4, useState as useState8 } from "react";
|
|
1315
|
+
var EMPTY = {};
|
|
1316
|
+
function useOracleClaimSummaries(collectionId, protocolDid, oracleResolved) {
|
|
1317
|
+
const handlers = useBlocknoteHandlers();
|
|
1318
|
+
const handlersRef = useRef4(handlers);
|
|
1319
|
+
useEffect4(() => {
|
|
1320
|
+
handlersRef.current = handlers;
|
|
1321
|
+
}, [handlers]);
|
|
1322
|
+
const [byClaimId, setByClaimId] = useState8(EMPTY);
|
|
1323
|
+
const [updatedAt, setUpdatedAt] = useState8(null);
|
|
1324
|
+
const [fetchIndex, setFetchIndex] = useState8(0);
|
|
1325
|
+
const supported = typeof handlers.listOracleClaims === "function" && typeof handlers.hasCachedSigner === "function";
|
|
1326
|
+
useEffect4(() => {
|
|
1327
|
+
setByClaimId(EMPTY);
|
|
1328
|
+
setUpdatedAt(null);
|
|
1329
|
+
if (!supported || !collectionId || !protocolDid || !oracleResolved) return;
|
|
1330
|
+
if (!handlersRef.current.hasCachedSigner()) return;
|
|
1331
|
+
let cancelled = false;
|
|
1332
|
+
(async () => {
|
|
1333
|
+
try {
|
|
1334
|
+
const result = await handlersRef.current.listOracleClaims({ protocolDid, collectionId, silent: true });
|
|
1335
|
+
if (cancelled) return;
|
|
1336
|
+
if (result.status !== "ok") return;
|
|
1337
|
+
const next = {};
|
|
1338
|
+
for (const item of result.items) next[item.claimId] = item;
|
|
1339
|
+
setByClaimId(next);
|
|
1340
|
+
setUpdatedAt(Date.now());
|
|
1341
|
+
} catch (err) {
|
|
1342
|
+
console.warn("[claim.evaluate] listOracleClaims failed", err);
|
|
914
1343
|
}
|
|
915
|
-
|
|
1344
|
+
})();
|
|
1345
|
+
return () => {
|
|
1346
|
+
cancelled = true;
|
|
1347
|
+
};
|
|
1348
|
+
}, [supported, collectionId, protocolDid, oracleResolved, fetchIndex]);
|
|
1349
|
+
const refresh = useCallback3(() => setFetchIndex((i) => i + 1), []);
|
|
1350
|
+
return { byClaimId, updatedAt, refresh };
|
|
1351
|
+
}
|
|
1352
|
+
function useOracleResolution(protocolDid, options) {
|
|
1353
|
+
const ready = options?.ready ?? true;
|
|
1354
|
+
const handlers = useBlocknoteHandlers();
|
|
1355
|
+
const handlersRef = useRef4(handlers);
|
|
1356
|
+
useEffect4(() => {
|
|
1357
|
+
handlersRef.current = handlers;
|
|
1358
|
+
}, [handlers]);
|
|
1359
|
+
const supported = typeof handlers.resolveOracleForProtocol === "function";
|
|
1360
|
+
const [status, setStatus] = useState8("checking");
|
|
1361
|
+
useEffect4(() => {
|
|
1362
|
+
if (!ready) {
|
|
1363
|
+
setStatus("checking");
|
|
1364
|
+
return;
|
|
916
1365
|
}
|
|
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
|
-
};
|
|
1366
|
+
if (!supported || !protocolDid) {
|
|
1367
|
+
setStatus("none");
|
|
1368
|
+
return;
|
|
1369
|
+
}
|
|
1370
|
+
setStatus("checking");
|
|
1371
|
+
let cancelled = false;
|
|
1372
|
+
(async () => {
|
|
1373
|
+
try {
|
|
1374
|
+
const resolved = await handlersRef.current.resolveOracleForProtocol({ protocolDid });
|
|
1375
|
+
if (!cancelled) setStatus(resolved ? "resolved" : "none");
|
|
1376
|
+
} catch (err) {
|
|
1377
|
+
console.warn("[claim.evaluate] resolveOracleForProtocol (sequencing check) failed", err);
|
|
1378
|
+
if (!cancelled) setStatus("none");
|
|
1379
|
+
}
|
|
1380
|
+
})();
|
|
1381
|
+
return () => {
|
|
1382
|
+
cancelled = true;
|
|
1383
|
+
};
|
|
1384
|
+
}, [ready, supported, protocolDid]);
|
|
1385
|
+
return { status };
|
|
1386
|
+
}
|
|
969
1387
|
|
|
970
1388
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/VerdictBlock.tsx
|
|
1389
|
+
import React11, { useState as useState9 } from "react";
|
|
1390
|
+
import { ActionIcon as ActionIcon5, Badge as Badge4, Box as Box3, Group as Group11, Loader as Loader2, Stack as Stack11, Text as Text11, Tooltip as Tooltip7, UnstyledButton as UnstyledButton3 } from "@mantine/core";
|
|
1391
|
+
import { IconAlertTriangle as IconAlertTriangle4, IconArrowRight, IconCheck as IconCheck8, IconMinus as IconMinus3, IconRefresh, IconX as IconX5 } from "@tabler/icons-react";
|
|
971
1392
|
var TONE_COLOR3 = { positive: "green", attention: "yellow", negative: "red", neutral: "gray" };
|
|
972
|
-
var TONE_ICON2 = { positive:
|
|
1393
|
+
var TONE_ICON2 = { positive: IconCheck8, attention: IconAlertTriangle4, negative: IconX5, neutral: IconMinus3 };
|
|
973
1394
|
function formatDate(value) {
|
|
974
1395
|
if (!value) return null;
|
|
975
1396
|
const date = new Date(value);
|
|
@@ -1003,7 +1424,7 @@ function effectiveHeader(animated, summary, reviewSent, assignedElsewhereTo, tas
|
|
|
1003
1424
|
return { headline: summary?.headline ?? "", detail: summary?.detail ?? "", tone: toneOf(summary), animated, noRail: false };
|
|
1004
1425
|
}
|
|
1005
1426
|
var MatchedClaims = ({ refs, duplicate, openableClaimIds, onOpenClaim }) => {
|
|
1006
|
-
const [expanded, setExpanded] =
|
|
1427
|
+
const [expanded, setExpanded] = useState9(false);
|
|
1007
1428
|
if (refs.length === 0 || duplicate && !isDuplicateFlagged(duplicate)) return null;
|
|
1008
1429
|
const detailFor = (claimId) => {
|
|
1009
1430
|
const candidate = duplicate?.candidates.find((c) => c.claimId === claimId);
|
|
@@ -1015,11 +1436,11 @@ var MatchedClaims = ({ refs, duplicate, openableClaimIds, onOpenClaim }) => {
|
|
|
1015
1436
|
...refs.map((ref) => ({ id: ref.id, detail: detailFor(ref.id) })),
|
|
1016
1437
|
...expanded ? extraCandidates.map((c) => ({ id: c.claimId, detail: detailFor(c.claimId) })) : []
|
|
1017
1438
|
];
|
|
1018
|
-
return /* @__PURE__ */
|
|
1439
|
+
return /* @__PURE__ */ React11.createElement(Stack11, { gap: 4 }, /* @__PURE__ */ React11.createElement(Text11, { size: "xs", fw: 600, c: "dimmed" }, refs[0].label), rows.map((row) => {
|
|
1019
1440
|
const canOpen = !!onOpenClaim && !!openableClaimIds?.has(row.id);
|
|
1020
|
-
const id = /* @__PURE__ */
|
|
1021
|
-
return /* @__PURE__ */
|
|
1022
|
-
}), !expanded && extraCandidates.length > 0 && /* @__PURE__ */
|
|
1441
|
+
const id = /* @__PURE__ */ React11.createElement(Text11, { size: "xs", style: { fontFamily: "monospace" } }, truncateClaimId2(row.id));
|
|
1442
|
+
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));
|
|
1443
|
+
}), !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
1444
|
};
|
|
1024
1445
|
var VerdictBlock = ({
|
|
1025
1446
|
record,
|
|
@@ -1055,7 +1476,7 @@ var VerdictBlock = ({
|
|
|
1055
1476
|
const checkedAt = formatDate(review?.completedAt ?? evaluation?.createdAt);
|
|
1056
1477
|
const waitingSegment = assignedElsewhereTo && evaluation ? waitingText2(evaluation.createdAt, rubric?.review?.slaHours) : null;
|
|
1057
1478
|
const metaLine = [...leadingFacts, checkedAt ? `Checked ${checkedAt}` : null, costFact, onChain?.statusLabel ?? null, waitingSegment].filter((s) => !!s).join(" \xB7 ");
|
|
1058
|
-
return /* @__PURE__ */
|
|
1479
|
+
return /* @__PURE__ */ React11.createElement(
|
|
1059
1480
|
Box3,
|
|
1060
1481
|
{
|
|
1061
1482
|
p: "md",
|
|
@@ -1066,7 +1487,7 @@ var VerdictBlock = ({
|
|
|
1066
1487
|
borderLeft: header.noRail ? void 0 : `3px solid var(--mantine-color-${toneColor}-6)`
|
|
1067
1488
|
}
|
|
1068
1489
|
},
|
|
1069
|
-
/* @__PURE__ */
|
|
1490
|
+
/* @__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
1491
|
ReviewAnswerForm,
|
|
1071
1492
|
{
|
|
1072
1493
|
evaluation,
|
|
@@ -1081,14 +1502,14 @@ var VerdictBlock = ({
|
|
|
1081
1502
|
disabled,
|
|
1082
1503
|
onSubmit
|
|
1083
1504
|
}
|
|
1084
|
-
), /* @__PURE__ */
|
|
1505
|
+
), /* @__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(Tooltip7, { label: updatedAt ? `Updated ${new Date(updatedAt).toLocaleTimeString()}` : "Loading\u2026" }, /* @__PURE__ */ React11.createElement(ActionIcon5, { size: "xs", variant: "subtle", color: "gray", onClick: onRefresh, "aria-label": "Refresh" }, /* @__PURE__ */ React11.createElement(IconRefresh, { size: 12 })))))
|
|
1085
1506
|
);
|
|
1086
1507
|
};
|
|
1087
1508
|
|
|
1088
1509
|
// 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
|
|
1510
|
+
import React12 from "react";
|
|
1511
|
+
import { Badge as Badge5, Box as Box4, Group as Group12, Progress, Stack as Stack12, Text as Text12, UnstyledButton as UnstyledButton4 } from "@mantine/core";
|
|
1512
|
+
import { IconAlertTriangle as IconAlertTriangle5, IconBan, IconChartBar, IconCheck as IconCheck9, IconClock, IconMinus as IconMinus4, IconUser as IconUser2, IconX as IconX6 } from "@tabler/icons-react";
|
|
1092
1513
|
var TONE_COLOR4 = { positive: "green", attention: "yellow", negative: "red", neutral: "gray" };
|
|
1093
1514
|
var GATE_TONE = {
|
|
1094
1515
|
passed: "positive",
|
|
@@ -1098,9 +1519,9 @@ var GATE_TONE = {
|
|
|
1098
1519
|
unevaluated: "attention"
|
|
1099
1520
|
};
|
|
1100
1521
|
var GATE_ICON = {
|
|
1101
|
-
passed:
|
|
1102
|
-
failed:
|
|
1103
|
-
skipped:
|
|
1522
|
+
passed: IconCheck9,
|
|
1523
|
+
failed: IconX6,
|
|
1524
|
+
skipped: IconMinus4,
|
|
1104
1525
|
not_reached: IconClock,
|
|
1105
1526
|
unevaluated: IconAlertTriangle5
|
|
1106
1527
|
};
|
|
@@ -1131,7 +1552,7 @@ function whyThisResultLabel(decision) {
|
|
|
1131
1552
|
return `Why this result? \xB7 ${total} check${total === 1 ? "" : "s"}, ${status}`;
|
|
1132
1553
|
}
|
|
1133
1554
|
var WhyThisResult = ({ decision, rubric }) => {
|
|
1134
|
-
const [showAll, setShowAll] =
|
|
1555
|
+
const [showAll, setShowAll] = React12.useState(false);
|
|
1135
1556
|
const gateLabel = (code) => rubric?.gates?.find((gate) => gate.code === code)?.reason || code;
|
|
1136
1557
|
const criterionLabel = (code) => rubric?.scoring?.criteria?.find((criterion) => criterion.code === code)?.reason || code;
|
|
1137
1558
|
const failReason = (code) => decision.reasons?.find((reason) => reason.code === code)?.reason ?? null;
|
|
@@ -1154,7 +1575,7 @@ var WhyThisResult = ({ decision, rubric }) => {
|
|
|
1154
1575
|
};
|
|
1155
1576
|
const renderGateRow = (gate) => {
|
|
1156
1577
|
const tone = GATE_TONE[gate.outcome] ?? "neutral";
|
|
1157
|
-
const Icon = GATE_ICON[gate.outcome] ??
|
|
1578
|
+
const Icon = GATE_ICON[gate.outcome] ?? IconMinus4;
|
|
1158
1579
|
const sentence = (() => {
|
|
1159
1580
|
switch (gate.outcome) {
|
|
1160
1581
|
case "failed":
|
|
@@ -1173,7 +1594,7 @@ var WhyThisResult = ({ decision, rubric }) => {
|
|
|
1173
1594
|
const named = members.filter((member) => gate.outcome === "failed" ? !member.ok : member.ok);
|
|
1174
1595
|
const passedCount = members.filter((member) => member.ok).length;
|
|
1175
1596
|
const bar = members.length > 0 ? gateBar(gate.code) : null;
|
|
1176
|
-
return /* @__PURE__ */
|
|
1597
|
+
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
1598
|
};
|
|
1178
1599
|
const shownGates = decision.gates.filter((gate) => !FOLDABLE.has(gate.outcome) || showAll);
|
|
1179
1600
|
const foldCounts = { passed: 0, skipped: 0, not_reached: 0 };
|
|
@@ -1200,12 +1621,12 @@ var WhyThisResult = ({ decision, rubric }) => {
|
|
|
1200
1621
|
push(scoring.partialFloor, "part-pay");
|
|
1201
1622
|
push(scoring.approveAt, "approve");
|
|
1202
1623
|
}
|
|
1203
|
-
return /* @__PURE__ */
|
|
1624
|
+
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
1625
|
const score = scoreOf(criterion.scoreBps);
|
|
1205
|
-
return /* @__PURE__ */
|
|
1206
|
-
})), decision.criteria.length > 0 && total != null && /* @__PURE__ */
|
|
1626
|
+
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" }));
|
|
1627
|
+
})), 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
1628
|
const transform = tick.at <= 8 ? "translateX(0)" : tick.at >= 92 ? "translateX(-100%)" : "translateX(-50%)";
|
|
1208
|
-
return /* @__PURE__ */
|
|
1629
|
+
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
1630
|
})))));
|
|
1210
1631
|
};
|
|
1211
1632
|
|
|
@@ -1232,6 +1653,34 @@ var chainStatusRowView = (claim) => {
|
|
|
1232
1653
|
return { tone: "neutral", headline: "", owed: false, action: null, chain: null };
|
|
1233
1654
|
}
|
|
1234
1655
|
};
|
|
1656
|
+
function chainOnlyTone(status) {
|
|
1657
|
+
if (status.key === "approved") return "positive";
|
|
1658
|
+
if (status.key === "rejected") return "negative";
|
|
1659
|
+
return "neutral";
|
|
1660
|
+
}
|
|
1661
|
+
var ChainOnlyStatusCard = ({ status, onChain, children }) => {
|
|
1662
|
+
const toneColor = TONE_COLOR5[chainOnlyTone(status)];
|
|
1663
|
+
const label = onChain?.statusLabel || status.label;
|
|
1664
|
+
const factsLine = [
|
|
1665
|
+
onChain?.evaluatorDid ? `By ${truncateAddress(onChain.evaluatorDid)}` : null,
|
|
1666
|
+
onChain?.evaluatedAt ? new Date(onChain.evaluatedAt).toLocaleString() : null,
|
|
1667
|
+
onChain?.amount && onChain.amount.length > 0 ? onChain.amount.map(formatCoin).join(", ") : null,
|
|
1668
|
+
onChain?.reason || null
|
|
1669
|
+
].filter((s) => !!s).join(" \xB7 ");
|
|
1670
|
+
return /* @__PURE__ */ React13.createElement(
|
|
1671
|
+
Box5,
|
|
1672
|
+
{
|
|
1673
|
+
p: "md",
|
|
1674
|
+
style: {
|
|
1675
|
+
borderRadius: 16,
|
|
1676
|
+
background: "var(--mantine-color-neutralColor-5)",
|
|
1677
|
+
border: "1px solid color-mix(in srgb, var(--mantine-color-text) 6%, transparent)",
|
|
1678
|
+
borderLeft: `3px solid var(--mantine-color-${toneColor}-6)`
|
|
1679
|
+
}
|
|
1680
|
+
},
|
|
1681
|
+
/* @__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)
|
|
1682
|
+
);
|
|
1683
|
+
};
|
|
1235
1684
|
var createPaymentRow = () => ({
|
|
1236
1685
|
id: `payment-${Math.random().toString(36).slice(2, 9)}`,
|
|
1237
1686
|
denom: USDC_DENOM,
|
|
@@ -1279,16 +1728,16 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1279
1728
|
registerRuntimeInputs,
|
|
1280
1729
|
executeAction
|
|
1281
1730
|
}) => {
|
|
1282
|
-
const [actAs, setActAs] =
|
|
1731
|
+
const [actAs, setActAs] = useState10(emptyActAsGroupState());
|
|
1283
1732
|
const t = useTranslate();
|
|
1284
1733
|
const handlers = useBlocknoteHandlers();
|
|
1285
|
-
const handlersRef =
|
|
1286
|
-
|
|
1734
|
+
const handlersRef = useRef5(handlers);
|
|
1735
|
+
useEffect5(() => {
|
|
1287
1736
|
handlersRef.current = handlers;
|
|
1288
1737
|
}, [handlers]);
|
|
1289
|
-
const runtimeRef =
|
|
1290
|
-
const updateRuntimeRef =
|
|
1291
|
-
|
|
1738
|
+
const runtimeRef = useRef5(runtime);
|
|
1739
|
+
const updateRuntimeRef = useRef5(updateRuntime);
|
|
1740
|
+
useEffect5(() => {
|
|
1292
1741
|
runtimeRef.current = runtime;
|
|
1293
1742
|
updateRuntimeRef.current = updateRuntime;
|
|
1294
1743
|
}, [runtime, updateRuntime]);
|
|
@@ -1307,56 +1756,62 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1307
1756
|
const resolveOpts = useMemo3(() => ({ yRuntime: runtimeReader }), [runtimeReader]);
|
|
1308
1757
|
const deedDid = resolveReferences(parsed.deedDid, editorDocument, resolveOpts).trim();
|
|
1309
1758
|
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 [
|
|
1759
|
+
const [claims, setClaims] = useState10([]);
|
|
1760
|
+
const [selectedClaimId, setSelectedClaimId] = useState10("");
|
|
1761
|
+
const [decision, setDecision] = useState10("");
|
|
1762
|
+
const [disputeReason, setDisputeReason] = useState10("");
|
|
1763
|
+
const [loadingClaims, setLoadingClaims] = useState10(false);
|
|
1764
|
+
const [submitting, setSubmitting] = useState10(false);
|
|
1765
|
+
const [error, setError] = useState10(null);
|
|
1766
|
+
const [adminAddress, setAdminAddress] = useState10("");
|
|
1767
|
+
const [paymentRows, setPaymentRows] = useState10([createPaymentRow()]);
|
|
1768
|
+
const [createUdid, setCreateUdid] = useState10(true);
|
|
1769
|
+
const [claimData, setClaimData] = useState10(null);
|
|
1770
|
+
const [surveyJson, setSurveyJson] = useState10(null);
|
|
1771
|
+
const [surveyLoading, setSurveyLoading] = useState10(false);
|
|
1772
|
+
const [rubricBody, setRubricBody] = useState10(null);
|
|
1773
|
+
const [onChainEvaluation, setOnChainEvaluation] = useState10(null);
|
|
1774
|
+
const [protocolDid, setProtocolDid] = useState10("");
|
|
1775
|
+
const [collectionsLoaded, setCollectionsLoaded] = useState10(false);
|
|
1776
|
+
const [activeFilter, setActiveFilter] = useState10("all");
|
|
1777
|
+
const [outcomeTemplateJson, setOutcomeTemplateJson] = useState10(null);
|
|
1778
|
+
const [outcomeTemplateLoading, setOutcomeTemplateLoading] = useState10(false);
|
|
1779
|
+
const [outcomeResponses, setOutcomeResponses] = useState10({});
|
|
1780
|
+
const [outcomeComplete, setOutcomeComplete] = useState10(false);
|
|
1781
|
+
const [isEvaluatorAuthorized] = useState10(true);
|
|
1782
|
+
const [authChecking] = useState10(false);
|
|
1783
|
+
const [authError] = useState10(null);
|
|
1784
|
+
const [, setAuthRetryKey] = useState10(0);
|
|
1785
|
+
const [profilesByDid, setProfilesByDid] = useState10({});
|
|
1786
|
+
const [disputeDetails] = useState10(null);
|
|
1787
|
+
const [loadingDispute] = useState10(false);
|
|
1788
|
+
const [evaluationOutcomePatch] = useState10(null);
|
|
1789
|
+
const [evaluationAmount] = useState10(null);
|
|
1339
1790
|
const selectedClaim = useMemo3(() => claims.find((claim) => claim.claimId === selectedClaimId) || null, [claims, selectedClaimId]);
|
|
1340
1791
|
const loadedClaimIds = useMemo3(() => new Set(claims.map((claim) => claim.claimId)), [claims]);
|
|
1341
|
-
const
|
|
1792
|
+
const oracleResolution = useOracleResolution(protocolDid, { ready: collectionsLoaded });
|
|
1793
|
+
const engineSummaries = useEngineSummaries(collectionId, { enabled: oracleResolution.status === "none" });
|
|
1794
|
+
const engineOutOfPicture = oracleResolution.status === "resolved" || engineSummaries.notEnrolled || engineSummaries.engineUnavailable;
|
|
1795
|
+
const oracleSummaries = useOracleClaimSummaries(collectionId, protocolDid, oracleResolution.status === "resolved");
|
|
1796
|
+
const oracleReceiptProof = selectedClaim ? oracleReceiptProofOf(oracleSummaries.byClaimId[selectedClaim.claimId], decision) : void 0;
|
|
1342
1797
|
const resolvedCredentialSubject = useMemo3(() => {
|
|
1343
1798
|
const cs = claimData?.credentials?.credentialSubject ?? claimData?.credentialSubject ?? claimData;
|
|
1344
1799
|
if (!cs || typeof cs !== "object") return cs;
|
|
1345
1800
|
return resolveFilesInCredentialSubject(cs);
|
|
1346
1801
|
}, [claimData]);
|
|
1347
|
-
const mediaBlobCacheRef =
|
|
1348
|
-
const mediaTypeCacheRef =
|
|
1349
|
-
const [surveyActiveFile, setSurveyActiveFile] =
|
|
1350
|
-
const openFileRef =
|
|
1802
|
+
const mediaBlobCacheRef = React13.useRef(/* @__PURE__ */ new Map());
|
|
1803
|
+
const mediaTypeCacheRef = React13.useRef(/* @__PURE__ */ new Map());
|
|
1804
|
+
const [surveyActiveFile, setSurveyActiveFile] = useState10(null);
|
|
1805
|
+
const openFileRef = React13.useRef(() => {
|
|
1351
1806
|
});
|
|
1352
|
-
|
|
1807
|
+
useEffect5(() => {
|
|
1353
1808
|
return () => {
|
|
1354
1809
|
for (const blobUrl of mediaBlobCacheRef.current.values()) URL.revokeObjectURL(blobUrl);
|
|
1355
1810
|
mediaBlobCacheRef.current.clear();
|
|
1356
1811
|
mediaTypeCacheRef.current.clear();
|
|
1357
1812
|
};
|
|
1358
1813
|
}, []);
|
|
1359
|
-
|
|
1814
|
+
useEffect5(() => {
|
|
1360
1815
|
const fetcher = handlers.fetchClaimMedia;
|
|
1361
1816
|
const cache = mediaBlobCacheRef.current;
|
|
1362
1817
|
const typeCache = mediaTypeCacheRef.current;
|
|
@@ -1496,7 +1951,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1496
1951
|
});
|
|
1497
1952
|
return model;
|
|
1498
1953
|
}, [outcomeTemplateJson, collectionId, deedDid]);
|
|
1499
|
-
|
|
1954
|
+
useEffect5(() => {
|
|
1500
1955
|
if (!outcomeSurveyModel) return;
|
|
1501
1956
|
const evaluated = selectedClaim ? isClaimEvaluated(selectedClaim) : false;
|
|
1502
1957
|
if (evaluated) {
|
|
@@ -1516,8 +1971,8 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1516
1971
|
outcomeSurveyModel.mode = "edit";
|
|
1517
1972
|
}
|
|
1518
1973
|
}, [outcomeSurveyModel, evaluationOutcomePatch, selectedClaim]);
|
|
1519
|
-
const claimListRequest =
|
|
1520
|
-
const refreshClaims =
|
|
1974
|
+
const claimListRequest = useRef5(0);
|
|
1975
|
+
const refreshClaims = useCallback4(async () => {
|
|
1521
1976
|
if (!deedDid || !collectionId) return;
|
|
1522
1977
|
const request = ++claimListRequest.current;
|
|
1523
1978
|
const handlers2 = handlersRef.current;
|
|
@@ -1536,6 +1991,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1536
1991
|
const collection = collectionsResponse?.collections?.find?.((c) => c?.id === collectionId);
|
|
1537
1992
|
const resolvedAdmin = collection?.admin || collectionsResponse?.adminAddress || fallbackAdmin || "";
|
|
1538
1993
|
setAdminAddress(resolvedAdmin);
|
|
1994
|
+
setProtocolDid(collection?.protocol?.id || "");
|
|
1539
1995
|
const current = runtimeRef.current;
|
|
1540
1996
|
if (current.state === "completed") {
|
|
1541
1997
|
const snapshot = buildPendingClaimSnapshot({ claims: fetchedClaims, collection, now: Date.now() });
|
|
@@ -1547,19 +2003,23 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1547
2003
|
if (request !== claimListRequest.current) return;
|
|
1548
2004
|
setClaims([]);
|
|
1549
2005
|
setAdminAddress("");
|
|
2006
|
+
setProtocolDid("");
|
|
1550
2007
|
setError(err instanceof Error ? err.message : t("actionTypes.evaluateClaim.flow.errors.loadClaims", { defaultValue: "Failed to load claims" }));
|
|
1551
2008
|
} finally {
|
|
1552
|
-
if (request === claimListRequest.current)
|
|
2009
|
+
if (request === claimListRequest.current) {
|
|
2010
|
+
setLoadingClaims(false);
|
|
2011
|
+
setCollectionsLoaded(true);
|
|
2012
|
+
}
|
|
1553
2013
|
}
|
|
1554
2014
|
}, [deedDid, collectionId]);
|
|
1555
|
-
|
|
2015
|
+
useEffect5(() => {
|
|
1556
2016
|
if (!deedDid || !collectionId) return;
|
|
1557
2017
|
void refreshClaims();
|
|
1558
2018
|
return () => {
|
|
1559
2019
|
claimListRequest.current++;
|
|
1560
2020
|
};
|
|
1561
2021
|
}, [deedDid, collectionId, refreshClaims]);
|
|
1562
|
-
const fetchClaimContents =
|
|
2022
|
+
const fetchClaimContents = useCallback4(
|
|
1563
2023
|
async (subset) => {
|
|
1564
2024
|
const handlers2 = handlersRef.current;
|
|
1565
2025
|
const contentsByClaimId = {};
|
|
@@ -1576,7 +2036,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1576
2036
|
},
|
|
1577
2037
|
[collectionId, deedDid]
|
|
1578
2038
|
);
|
|
1579
|
-
const fetchClaimExport =
|
|
2039
|
+
const fetchClaimExport = useCallback4(
|
|
1580
2040
|
async (subset) => {
|
|
1581
2041
|
const contentsByClaimId = await fetchClaimContents(subset);
|
|
1582
2042
|
const warnings = [];
|
|
@@ -1595,7 +2055,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1595
2055
|
},
|
|
1596
2056
|
[fetchClaimContents]
|
|
1597
2057
|
);
|
|
1598
|
-
const downloadClaimsCsv =
|
|
2058
|
+
const downloadClaimsCsv = useCallback4(
|
|
1599
2059
|
async (subset, filename) => {
|
|
1600
2060
|
const { contentsByClaimId, baseClaimSubmittersByClaimId, warnings } = await fetchClaimExport(subset);
|
|
1601
2061
|
downloadArrayAsCsv(buildClaimRows(subset, contentsByClaimId, { baseClaimSubmittersByClaimId }), { filename });
|
|
@@ -1615,7 +2075,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1615
2075
|
}
|
|
1616
2076
|
return titles;
|
|
1617
2077
|
}, [surveyJson]);
|
|
1618
|
-
const downloadClaimsZip =
|
|
2078
|
+
const downloadClaimsZip = useCallback4(
|
|
1619
2079
|
async (subset, names) => {
|
|
1620
2080
|
const handlers2 = handlersRef.current;
|
|
1621
2081
|
const { contentsByClaimId, baseClaimSubmittersByClaimId, warnings } = await fetchClaimExport(subset);
|
|
@@ -1646,9 +2106,9 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1646
2106
|
},
|
|
1647
2107
|
[fetchClaimExport, deedDid, titlesByFieldName]
|
|
1648
2108
|
);
|
|
1649
|
-
const handleDownloadClaimsCsv =
|
|
1650
|
-
const handleDownloadClaimsZip =
|
|
1651
|
-
|
|
2109
|
+
const handleDownloadClaimsCsv = useCallback4(() => downloadClaimsCsv(claims, exportFileNames.claims(collectionId).csv), [downloadClaimsCsv, claims, collectionId]);
|
|
2110
|
+
const handleDownloadClaimsZip = useCallback4(() => downloadClaimsZip(claims, exportFileNames.claims(collectionId)), [downloadClaimsZip, claims, collectionId]);
|
|
2111
|
+
useEffect5(() => {
|
|
1652
2112
|
let mounted = true;
|
|
1653
2113
|
const dids = Array.from(new Set(claims.map((claim) => claim.agentDid).filter(Boolean)));
|
|
1654
2114
|
const missing = dids.filter((did) => profilesByDid[did] === void 0);
|
|
@@ -1682,15 +2142,15 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1682
2142
|
mounted = false;
|
|
1683
2143
|
};
|
|
1684
2144
|
}, [claims, profilesByDid]);
|
|
1685
|
-
const selectedClaimRef =
|
|
1686
|
-
|
|
2145
|
+
const selectedClaimRef = useRef5(selectedClaim);
|
|
2146
|
+
useEffect5(() => {
|
|
1687
2147
|
if (!deedDid || !collectionId) return;
|
|
1688
2148
|
const current = handlersRef.current;
|
|
1689
2149
|
void Promise.allSettled([current.getDeedSurveyTemplate(deedDid, collectionId), current.getEvaluationTemplate?.(deedDid, collectionId)]);
|
|
1690
2150
|
}, [deedDid, collectionId]);
|
|
1691
2151
|
selectedClaimRef.current = selectedClaim;
|
|
1692
2152
|
const selectedClaimEvaluated = selectedClaim ? isClaimEvaluated(selectedClaim) : false;
|
|
1693
|
-
|
|
2153
|
+
useEffect5(() => {
|
|
1694
2154
|
const claim = selectedClaimRef.current;
|
|
1695
2155
|
if (!claim) return;
|
|
1696
2156
|
let cancelled = false;
|
|
@@ -1719,7 +2179,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1719
2179
|
if (!cancelled) setOutcomeTemplateLoading(false);
|
|
1720
2180
|
});
|
|
1721
2181
|
const evaluation = Promise.resolve().then(() => selectedClaimEvaluated ? current.getClaimEvaluationDetails?.(claim.claimId) : null).then((details) => {
|
|
1722
|
-
if (!cancelled) setOnChainEvaluation(details ? { ...details, statusLabel:
|
|
2182
|
+
if (!cancelled) setOnChainEvaluation(details ? { ...details, statusLabel: getClaimStatusInfo(claim).label } : null);
|
|
1723
2183
|
}).catch(() => {
|
|
1724
2184
|
if (!cancelled) setOnChainEvaluation(null);
|
|
1725
2185
|
});
|
|
@@ -1728,18 +2188,20 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1728
2188
|
cancelled = true;
|
|
1729
2189
|
};
|
|
1730
2190
|
}, [selectedClaimId, selectedClaimEvaluated, collectionId, deedDid]);
|
|
1731
|
-
|
|
2191
|
+
useEffect5(() => {
|
|
1732
2192
|
setSelectedClaimId("");
|
|
1733
2193
|
setError(null);
|
|
1734
2194
|
setPaymentRows([createPaymentRow()]);
|
|
1735
2195
|
setClaimData(null);
|
|
1736
2196
|
setSurveyJson(null);
|
|
1737
2197
|
setOnChainEvaluation(null);
|
|
2198
|
+
setProtocolDid("");
|
|
2199
|
+
setCollectionsLoaded(false);
|
|
1738
2200
|
setOutcomeTemplateJson(null);
|
|
1739
2201
|
setOutcomeResponses({});
|
|
1740
2202
|
setOutcomeComplete(false);
|
|
1741
2203
|
}, [deedDid, collectionId]);
|
|
1742
|
-
|
|
2204
|
+
useEffect5(() => {
|
|
1743
2205
|
setRubricBody(null);
|
|
1744
2206
|
if (!deedDid || !collectionId) return;
|
|
1745
2207
|
let cancelled = false;
|
|
@@ -1759,7 +2221,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1759
2221
|
cancelled = true;
|
|
1760
2222
|
};
|
|
1761
2223
|
}, [deedDid, collectionId]);
|
|
1762
|
-
const engine = useClaimEngine(selectedClaimId);
|
|
2224
|
+
const engine = useClaimEngine(selectedClaimId, { enabled: !engineOutOfPicture });
|
|
1763
2225
|
const onChainDisplay = useMemo3(() => {
|
|
1764
2226
|
const chainState = engine.record?.summary?.chainState;
|
|
1765
2227
|
if (!chainState && !onChainEvaluation) return null;
|
|
@@ -1767,8 +2229,8 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1767
2229
|
}, [engine.record?.summary?.chainState, onChainEvaluation]);
|
|
1768
2230
|
const assigneeDid = rubricBody?.review?.assignTo?.assigneeDid || "";
|
|
1769
2231
|
const reviewerDid = engine.record?.review?.reviewerDid || "";
|
|
1770
|
-
const [peopleNames, setPeopleNames] =
|
|
1771
|
-
|
|
2232
|
+
const [peopleNames, setPeopleNames] = useState10({});
|
|
2233
|
+
useEffect5(() => {
|
|
1772
2234
|
let mounted = true;
|
|
1773
2235
|
const missing = [assigneeDid, reviewerDid].filter((did) => did && peopleNames[did] === void 0);
|
|
1774
2236
|
if (missing.length === 0)
|
|
@@ -1812,11 +2274,16 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1812
2274
|
const map = /* @__PURE__ */ new Map();
|
|
1813
2275
|
for (const claim of claims) {
|
|
1814
2276
|
const engineRow = engineSummaries.byClaimId[claim.claimId];
|
|
1815
|
-
|
|
2277
|
+
if (engineRow?.summary) {
|
|
2278
|
+
map.set(claim.claimId, engineRowViewOf(engineRow, assignedElsewhereToName, rubricBody?.review?.slaHours));
|
|
2279
|
+
continue;
|
|
2280
|
+
}
|
|
2281
|
+
const oracleRow = oracleSummaries.byClaimId[claim.claimId];
|
|
2282
|
+
map.set(claim.claimId, oracleRow ? oracleRowViewOf(oracleRow) : chainStatusRowView(claim));
|
|
1816
2283
|
}
|
|
1817
2284
|
return map;
|
|
1818
|
-
}, [claims, engineSummaries.byClaimId, assignedElsewhereToName, rubricBody?.review?.slaHours]);
|
|
1819
|
-
const isClaimSettled =
|
|
2285
|
+
}, [claims, engineSummaries.byClaimId, oracleSummaries.byClaimId, assignedElsewhereToName, rubricBody?.review?.slaHours]);
|
|
2286
|
+
const isClaimSettled = useCallback4(
|
|
1820
2287
|
(claim) => {
|
|
1821
2288
|
const summary = engineSummaries.byClaimId[claim.claimId]?.summary;
|
|
1822
2289
|
if (summary) return summary.disposition === "settled";
|
|
@@ -1831,7 +2298,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1831
2298
|
}, [claims, activeFilter, isClaimSettled, rowViewByClaimId]);
|
|
1832
2299
|
const owedCount = useMemo3(() => claims.filter((claim) => rowViewByClaimId.get(claim.claimId)?.owed ?? false).length, [claims, rowViewByClaimId]);
|
|
1833
2300
|
const settledCount = useMemo3(() => claims.filter(isClaimSettled).length, [claims, isClaimSettled]);
|
|
1834
|
-
const buildPaymentCoins =
|
|
2301
|
+
const buildPaymentCoins = useCallback4(() => {
|
|
1835
2302
|
return paymentRows.map((row) => {
|
|
1836
2303
|
const denom = row.denom === CUSTOM_DENOM ? row.customDenom.trim() : row.denom || "";
|
|
1837
2304
|
const amount = Number(row.amount);
|
|
@@ -1848,16 +2315,16 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1848
2315
|
return selectedClaim ? isClaimEvaluated(selectedClaim) : false;
|
|
1849
2316
|
}, [selectedClaim]);
|
|
1850
2317
|
const outcomeNotReady = Boolean(outcomeTemplateJson && !outcomeComplete);
|
|
1851
|
-
const updatePaymentRow =
|
|
2318
|
+
const updatePaymentRow = useCallback4((id, patch) => {
|
|
1852
2319
|
setPaymentRows((rows) => rows.map((row) => row.id === id ? { ...row, ...patch } : row));
|
|
1853
2320
|
}, []);
|
|
1854
|
-
const addPaymentRow =
|
|
2321
|
+
const addPaymentRow = useCallback4(() => {
|
|
1855
2322
|
setPaymentRows((rows) => [...rows, createPaymentRow()]);
|
|
1856
2323
|
}, []);
|
|
1857
|
-
const removePaymentRow =
|
|
2324
|
+
const removePaymentRow = useCallback4((id) => {
|
|
1858
2325
|
setPaymentRows((rows) => rows.length > 1 ? rows.filter((row) => row.id !== id) : rows);
|
|
1859
2326
|
}, []);
|
|
1860
|
-
|
|
2327
|
+
useEffect5(() => {
|
|
1861
2328
|
if (!registerRuntimeInputs) return;
|
|
1862
2329
|
if (!selectedClaim) {
|
|
1863
2330
|
registerRuntimeInputs({ claimId: "", decision: "", adminAddress: "", createUdid: true });
|
|
@@ -1875,7 +2342,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1875
2342
|
reason: decision === "dispute" ? disputeReason : void 0
|
|
1876
2343
|
});
|
|
1877
2344
|
}, [registerRuntimeInputs, selectedClaim, decision, adminAddress, createUdid, buildPaymentCoins, outcomeTemplateJson, outcomeComplete, isClaimAlreadyEvaluated, disputeReason]);
|
|
1878
|
-
|
|
2345
|
+
useEffect5(() => {
|
|
1879
2346
|
if (!unlockSigning) return;
|
|
1880
2347
|
if (!selectedClaim || !decision || !adminAddress || authChecking || !isEvaluatorAuthorized && !actAs.actAsGroup || isClaimAlreadyEvaluated || outcomeNotReady) {
|
|
1881
2348
|
unlockSigning(false);
|
|
@@ -1887,7 +2354,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1887
2354
|
}
|
|
1888
2355
|
unlockSigning(actAsGroupReady(actAs));
|
|
1889
2356
|
}, [unlockSigning, selectedClaim, decision, adminAddress, authChecking, isEvaluatorAuthorized, isClaimAlreadyEvaluated, outcomeNotReady, disputeReason, actAs]);
|
|
1890
|
-
|
|
2357
|
+
useEffect5(() => {
|
|
1891
2358
|
if (!provideSigningHandler || !selectedClaim || !decision) return;
|
|
1892
2359
|
provideSigningHandler(async () => {
|
|
1893
2360
|
const isDispute = decision === "dispute";
|
|
@@ -1945,7 +2412,8 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1945
2412
|
rubricId: deedDid,
|
|
1946
2413
|
patch: Object.keys(outcomeResponses).length > 0 ? outcomeResponses : void 0,
|
|
1947
2414
|
granteeAddress: actorDid,
|
|
1948
|
-
claimSnapshot: selectedClaim
|
|
2415
|
+
claimSnapshot: selectedClaim,
|
|
2416
|
+
verificationProof: await verifiedOracleReceiptProof(oracleReceiptProof, selectedClaim.claimId, handlersRef.current.verifyDecisionReceipt)
|
|
1949
2417
|
}
|
|
1950
2418
|
});
|
|
1951
2419
|
if (!outcome.success) throw new Error(outcome.error || t("actionTypes.evaluateClaim.flow.errors.evaluationFailed", { defaultValue: "Claim evaluation failed" }));
|
|
@@ -1975,29 +2443,30 @@ var EvaluateClaimFlowDetail = ({
|
|
|
1975
2443
|
buildPaymentCoins,
|
|
1976
2444
|
outcomeResponses,
|
|
1977
2445
|
disputeReason,
|
|
1978
|
-
executeAction
|
|
2446
|
+
executeAction,
|
|
2447
|
+
oracleReceiptProof
|
|
1979
2448
|
]);
|
|
1980
|
-
const flowManagerContext = /* @__PURE__ */
|
|
2449
|
+
const flowManagerContext = /* @__PURE__ */ React13.createElement(FlowManagerContextSection, { record: nodeContext, onOverride: setNodeContextOverride, disabled: isDisabled });
|
|
1981
2450
|
if (selectedClaim) {
|
|
1982
2451
|
const claimStatus = getClaimStatusInfo(selectedClaim);
|
|
1983
2452
|
const selectedClaimProfile = profilesByDid[selectedClaim.agentDid];
|
|
1984
2453
|
const selectedDisplayName = selectedClaimProfile?.displayname || selectedClaim.agentDid || selectedClaim.agentAddress;
|
|
1985
2454
|
const selectedAvatarLabel = (selectedClaimProfile?.displayname || selectedClaim.agentDid || selectedClaim.agentAddress || "?")[0]?.toUpperCase();
|
|
1986
|
-
return /* @__PURE__ */
|
|
2455
|
+
return /* @__PURE__ */ React13.createElement(Stack13, { gap: "md" }, /* @__PURE__ */ React13.createElement(Group13, { gap: "xs", align: "center" }, /* @__PURE__ */ React13.createElement(ActionIcon6, { 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
2456
|
DownloadCsvButton,
|
|
1988
2457
|
{
|
|
1989
2458
|
onDownload: () => downloadClaimsCsv([selectedClaim], exportFileNames.claim(selectedClaim.claimId).csv),
|
|
1990
2459
|
label: "Download claim CSV",
|
|
1991
2460
|
onError: setError
|
|
1992
2461
|
}
|
|
1993
|
-
), /* @__PURE__ */
|
|
2462
|
+
), /* @__PURE__ */ React13.createElement(
|
|
1994
2463
|
DownloadZipButton,
|
|
1995
2464
|
{
|
|
1996
2465
|
onDownload: () => downloadClaimsZip([selectedClaim], exportFileNames.claim(selectedClaim.claimId)),
|
|
1997
2466
|
label: "Download claim + media (ZIP)",
|
|
1998
2467
|
onError: setError
|
|
1999
2468
|
}
|
|
2000
|
-
)), /* @__PURE__ */
|
|
2469
|
+
)), /* @__PURE__ */ React13.createElement(Group13, { gap: 16, align: "center", style: { width: "100%" } }, /* @__PURE__ */ React13.createElement(
|
|
2001
2470
|
Box5,
|
|
2002
2471
|
{
|
|
2003
2472
|
style: {
|
|
@@ -2018,10 +2487,28 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2018
2487
|
}
|
|
2019
2488
|
},
|
|
2020
2489
|
selectedClaimProfile?.avatarUrl ? null : selectedAvatarLabel
|
|
2021
|
-
), /* @__PURE__ */
|
|
2490
|
+
), /* @__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
2491
|
address: truncateAddress(disputeDetails.evaluatorDid),
|
|
2023
2492
|
defaultValue: `By ${truncateAddress(disputeDetails.evaluatorDid)}`
|
|
2024
|
-
}) : "", disputeDetails.evaluatorDid && disputeDetails.disputedAt ? " \xB7 " : "", disputeDetails.disputedAt ? new Date(disputeDetails.disputedAt).toLocaleString() : ""), /* @__PURE__ */
|
|
2493
|
+
}) : "", 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 ? (
|
|
2494
|
+
// Chain-first status fix round 2 (coordinator review finding 1): a not-enrolled
|
|
2495
|
+
// (or unreachable) collection never gets an engine row, so `VerdictBlock` and
|
|
2496
|
+
// `TechnicalDetails` below both stay permanently gated off by `engine.record` —
|
|
2497
|
+
// this slot must not go quiet just because they did. Every other "record is
|
|
2498
|
+
// null" case (below) is the ENROLLED "not yet ingested" poll, unaffected: it
|
|
2499
|
+
// keeps rendering `VerdictBlock` with `record: null` exactly as before.
|
|
2500
|
+
/* @__PURE__ */ React13.createElement(ChainOnlyStatusCard, { status: claimStatus, onChain: onChainDisplay }, /* @__PURE__ */ React13.createElement(
|
|
2501
|
+
OracleDecisionOverlay,
|
|
2502
|
+
{
|
|
2503
|
+
claimId: selectedClaim.claimId,
|
|
2504
|
+
protocolDid,
|
|
2505
|
+
engineOutOfPicture,
|
|
2506
|
+
oracleResolved: oracleResolution.status === "resolved",
|
|
2507
|
+
claimEvaluatedOnChain: claimStatus.isTerminal,
|
|
2508
|
+
rubric: rubricBody
|
|
2509
|
+
}
|
|
2510
|
+
))
|
|
2511
|
+
) : /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(
|
|
2025
2512
|
VerdictBlock,
|
|
2026
2513
|
{
|
|
2027
2514
|
key: selectedClaim.claimId,
|
|
@@ -2042,7 +2529,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2042
2529
|
openableClaimIds: loadedClaimIds,
|
|
2043
2530
|
onOpenClaim: setSelectedClaimId
|
|
2044
2531
|
}
|
|
2045
|
-
), engine.record?.evaluation?.decision && /* @__PURE__ */
|
|
2532
|
+
), engine.record?.evaluation?.decision && /* @__PURE__ */ React13.createElement(
|
|
2046
2533
|
CollapsibleSection,
|
|
2047
2534
|
{
|
|
2048
2535
|
key: selectedClaim.claimId,
|
|
@@ -2051,29 +2538,29 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2051
2538
|
),
|
|
2052
2539
|
defaultOpen: engine.record?.summary?.expandByDefault ?? false
|
|
2053
2540
|
},
|
|
2054
|
-
/* @__PURE__ */
|
|
2541
|
+
/* @__PURE__ */ React13.createElement(
|
|
2055
2542
|
WhyThisResult,
|
|
2056
2543
|
{
|
|
2057
2544
|
decision: engine.record.review?.status === "completed" && engine.record.review.finalDecision ? engine.record.review.finalDecision : engine.record.evaluation.decision,
|
|
2058
2545
|
rubric: rubricBody
|
|
2059
2546
|
}
|
|
2060
2547
|
)
|
|
2061
|
-
), engine.record?.evaluation?.trace && Object.keys(engine.record.evaluation.trace.ai).length > 0 && /* @__PURE__ */
|
|
2548
|
+
), 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
2549
|
CollapsibleSection,
|
|
2063
2550
|
{
|
|
2064
2551
|
key: selectedClaim.claimId,
|
|
2065
2552
|
title: `Outside services \xB7 ${Object.values(engine.record.evaluation.trace.ext).filter((fact) => fact.status === "ok").length} answered`
|
|
2066
2553
|
},
|
|
2067
|
-
/* @__PURE__ */
|
|
2068
|
-
))), /* @__PURE__ */
|
|
2554
|
+
/* @__PURE__ */ React13.createElement(OutsideServicesSection, { ext: engine.record.evaluation.trace.ext })
|
|
2555
|
+
))), /* @__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
2556
|
CollapsibleSection,
|
|
2070
2557
|
{
|
|
2071
2558
|
title: t("actionTypes.evaluateClaim.flow.section.outcome", { defaultValue: "Outcome" }),
|
|
2072
2559
|
defaultOpen: true,
|
|
2073
|
-
badge: /* @__PURE__ */
|
|
2560
|
+
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(IconCheck10, { size: 14, color: "var(--mantine-color-green-6)" }))
|
|
2074
2561
|
},
|
|
2075
|
-
outcomeTemplateLoading ? /* @__PURE__ */
|
|
2076
|
-
), !isClaimAlreadyEvaluated && /* @__PURE__ */
|
|
2562
|
+
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." }))
|
|
2563
|
+
), !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
2564
|
BaseTextArea,
|
|
2078
2565
|
{
|
|
2079
2566
|
label: t("actionTypes.evaluateClaim.flow.dispute.messageLabel", { defaultValue: "Message to claimant" }),
|
|
@@ -2086,7 +2573,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2086
2573
|
required: true,
|
|
2087
2574
|
disabled: isDisabled || submitting || isClaimAlreadyEvaluated
|
|
2088
2575
|
}
|
|
2089
|
-
)) : /* @__PURE__ */
|
|
2576
|
+
)) : /* @__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
2577
|
BaseSelect,
|
|
2091
2578
|
{
|
|
2092
2579
|
value: row.denom,
|
|
@@ -2099,7 +2586,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2099
2586
|
clearable: false,
|
|
2100
2587
|
disabled: isDisabled || submitting
|
|
2101
2588
|
}
|
|
2102
|
-
), row.denom === CUSTOM_DENOM && /* @__PURE__ */
|
|
2589
|
+
), row.denom === CUSTOM_DENOM && /* @__PURE__ */ React13.createElement(
|
|
2103
2590
|
BaseTextInput,
|
|
2104
2591
|
{
|
|
2105
2592
|
placeholder: t("actionTypes.evaluateClaim.flow.payment.customDenomPlaceholder", { defaultValue: "Custom denom (e.g. ibc/... or uixo)" }),
|
|
@@ -2107,7 +2594,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2107
2594
|
onChange: (event) => updatePaymentRow(row.id, { customDenom: event.currentTarget.value }),
|
|
2108
2595
|
disabled: isDisabled || submitting
|
|
2109
2596
|
}
|
|
2110
|
-
), /* @__PURE__ */
|
|
2597
|
+
), /* @__PURE__ */ React13.createElement(
|
|
2111
2598
|
BaseNumberInput,
|
|
2112
2599
|
{
|
|
2113
2600
|
min: 0,
|
|
@@ -2116,17 +2603,17 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2116
2603
|
placeholder: t("actionTypes.evaluateClaim.flow.payment.amountPlaceholder", { defaultValue: "Amount" }),
|
|
2117
2604
|
disabled: isDisabled || submitting
|
|
2118
2605
|
}
|
|
2119
|
-
))), /* @__PURE__ */
|
|
2606
|
+
))), /* @__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
2607
|
Checkbox,
|
|
2121
2608
|
{
|
|
2122
2609
|
label: t("actionTypes.evaluateClaim.flow.generateUdid", { defaultValue: "Generate UDID proof before signing" }),
|
|
2123
2610
|
checked: createUdid,
|
|
2124
2611
|
onChange: (event) => setCreateUdid(event.currentTarget.checked)
|
|
2125
2612
|
}
|
|
2126
|
-
))), engine.supported && !engine.forbidden && engine.record && /* @__PURE__ */
|
|
2613
|
+
))), 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
2614
|
amount: evaluationAmount.map(formatCoin).join(", "),
|
|
2128
2615
|
defaultValue: `Transferred on-chain: ${evaluationAmount.map(formatCoin).join(", ")}`
|
|
2129
|
-
})))), !authChecking && authError && /* @__PURE__ */
|
|
2616
|
+
})))), !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
2617
|
BaseSelect,
|
|
2131
2618
|
{
|
|
2132
2619
|
label: t("actionTypes.evaluateClaim.flow.decision.label", { defaultValue: "Decision" }),
|
|
@@ -2140,7 +2627,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2140
2627
|
],
|
|
2141
2628
|
disabled: isDisabled || submitting
|
|
2142
2629
|
}
|
|
2143
|
-
), error && /* @__PURE__ */
|
|
2630
|
+
), error && /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "red", styles: actionAlertStyles }, error), /* @__PURE__ */ React13.createElement(MediaPreviewModal, { file: surveyActiveFile, onClose: () => setSurveyActiveFile(null) }));
|
|
2144
2631
|
}
|
|
2145
2632
|
const engineHasData = engineSummaries.supported && Object.keys(engineSummaries.byClaimId).length > 0;
|
|
2146
2633
|
const filterTabs = [
|
|
@@ -2148,7 +2635,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2148
2635
|
{ value: "owed", label: engineHasData ? `Owed by you (${owedCount})` : `Pending (${owedCount})` },
|
|
2149
2636
|
{ value: "settled", label: `Settled (${settledCount})` }
|
|
2150
2637
|
];
|
|
2151
|
-
return /* @__PURE__ */
|
|
2638
|
+
return /* @__PURE__ */ React13.createElement(Stack13, { gap: "md" }, /* @__PURE__ */ React13.createElement(GroupProposalStatus, { editor, block, runtime }), runtime?.state !== "awaiting_readback" && /* @__PURE__ */ React13.createElement(
|
|
2152
2639
|
ActAsGroupSection,
|
|
2153
2640
|
{
|
|
2154
2641
|
value: actAs,
|
|
@@ -2157,11 +2644,11 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2157
2644
|
actionLabel: "evaluate this claim",
|
|
2158
2645
|
authzFilter: collectionId ? { requiresAuthz: "evaluateClaim", collectionId } : void 0
|
|
2159
2646
|
}
|
|
2160
|
-
), !deedDid || !collectionId ? /* @__PURE__ */
|
|
2647
|
+
), !deedDid || !collectionId ? /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "yellow", styles: actionAlertStyles }, t("actionTypes.shared.errors.configRequired", {
|
|
2161
2648
|
defaultValue: "Configure {{did}} and {{claimCollection}} in template mode before running this action.",
|
|
2162
2649
|
did: "DID",
|
|
2163
2650
|
claimCollection: "claim collection"
|
|
2164
|
-
})) : /* @__PURE__ */
|
|
2651
|
+
})) : /* @__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
2652
|
UnstyledButton5,
|
|
2166
2653
|
{
|
|
2167
2654
|
key: tab.value,
|
|
@@ -2174,9 +2661,9 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2174
2661
|
transition: "background 150ms ease"
|
|
2175
2662
|
}
|
|
2176
2663
|
},
|
|
2177
|
-
/* @__PURE__ */
|
|
2178
|
-
))), /* @__PURE__ */
|
|
2179
|
-
|
|
2664
|
+
/* @__PURE__ */ React13.createElement(Text13, { size: "sm", fw: 500, c: activeFilter === tab.value ? "var(--mantine-color-text)" : "dimmed" }, tab.label)
|
|
2665
|
+
))), /* @__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(
|
|
2666
|
+
ActionIcon6,
|
|
2180
2667
|
{
|
|
2181
2668
|
variant: "subtle",
|
|
2182
2669
|
color: "gray",
|
|
@@ -2185,17 +2672,18 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2185
2672
|
onClick: () => {
|
|
2186
2673
|
void refreshClaims();
|
|
2187
2674
|
engineSummaries.refresh();
|
|
2675
|
+
oracleSummaries.refresh();
|
|
2188
2676
|
}
|
|
2189
2677
|
},
|
|
2190
|
-
/* @__PURE__ */
|
|
2191
|
-
), /* @__PURE__ */
|
|
2678
|
+
/* @__PURE__ */ React13.createElement(IconRefresh2, { size: 16 })
|
|
2679
|
+
), /* @__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, { entityDid: deedDid, collectionId }), 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
2680
|
const row = engineSummaries.byClaimId[claim.claimId];
|
|
2193
2681
|
const view = rowViewByClaimId.get(claim.claimId) ?? { tone: "neutral", headline: "", owed: false, action: null, chain: null };
|
|
2194
2682
|
const profile = profilesByDid[claim.agentDid];
|
|
2195
2683
|
const displayName = profile?.displayname || claim.agentDid || claim.agentAddress;
|
|
2196
2684
|
const avatarLabel = (profile?.displayname || claim.agentDid || claim.agentAddress || "?")[0]?.toUpperCase();
|
|
2197
2685
|
const timeAgo = getTimeAgo(row?.evaluatedAt || claim.submissionDate || "");
|
|
2198
|
-
return /* @__PURE__ */
|
|
2686
|
+
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
2687
|
Box5,
|
|
2200
2688
|
{
|
|
2201
2689
|
style: {
|
|
@@ -2206,7 +2694,7 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2206
2694
|
background: view.owed ? `var(--mantine-color-${TONE_COLOR5[view.tone]}-6)` : "transparent"
|
|
2207
2695
|
}
|
|
2208
2696
|
}
|
|
2209
|
-
), /* @__PURE__ */
|
|
2697
|
+
), /* @__PURE__ */ React13.createElement(
|
|
2210
2698
|
Box5,
|
|
2211
2699
|
{
|
|
2212
2700
|
style: {
|
|
@@ -2227,10 +2715,10 @@ var EvaluateClaimFlowDetail = ({
|
|
|
2227
2715
|
}
|
|
2228
2716
|
},
|
|
2229
2717
|
profile?.avatarUrl ? null : avatarLabel
|
|
2230
|
-
), /* @__PURE__ */
|
|
2231
|
-
}))), error && /* @__PURE__ */
|
|
2718
|
+
), /* @__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 }));
|
|
2719
|
+
}))), error && /* @__PURE__ */ React13.createElement(DismissibleAlert, { color: "red", styles: actionAlertStyles }, error), /* @__PURE__ */ React13.createElement(MediaPreviewModal, { file: surveyActiveFile, onClose: () => setSurveyActiveFile(null) }));
|
|
2232
2720
|
};
|
|
2233
2721
|
export {
|
|
2234
2722
|
EvaluateClaimFlowDetail
|
|
2235
2723
|
};
|
|
2236
|
-
//# sourceMappingURL=EvaluateClaimFlowDetail-
|
|
2724
|
+
//# sourceMappingURL=EvaluateClaimFlowDetail-EP6P4A3E.js.map
|