@ixo/editor 5.20.0 → 5.20.2

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.
@@ -43,7 +43,7 @@ import {
43
43
  setActiveEditor,
44
44
  tempDomainCreatorSurvey,
45
45
  transformSurveyToCredentialSubject
46
- } from "./chunk-6N5JNDZ3.mjs";
46
+ } from "./chunk-HETRTQWL.mjs";
47
47
 
48
48
  // src/mantine/hooks/useCreateIxoEditor.ts
49
49
  import { useCreateBlockNote } from "@blocknote/react";
@@ -1548,6 +1548,19 @@ var getHandlersFromEditor = (editor) => {
1548
1548
  const editorWithHandlers = editor;
1549
1549
  return editorWithHandlers?.handlers || editorWithHandlers?._handlers || editorWithHandlers?.blocknoteHandlers || editorWithHandlers?.getHandlers?.() || editorWithHandlers?.getBlocknoteHandlers?.();
1550
1550
  };
1551
+ function mergeBlocknoteHandlers(primary, override) {
1552
+ if (!primary) return override;
1553
+ if (!override) return primary;
1554
+ const integrations = primary.integrations || override.integrations ? {
1555
+ ...primary.integrations || {},
1556
+ ...override.integrations || {}
1557
+ } : void 0;
1558
+ return {
1559
+ ...primary,
1560
+ ...override,
1561
+ integrations
1562
+ };
1563
+ }
1551
1564
  var BlocknoteProvider = ({
1552
1565
  children,
1553
1566
  editor,
@@ -1569,13 +1582,7 @@ var BlocknoteProvider = ({
1569
1582
  const [drawerContent, setDrawerContent] = useState3(null);
1570
1583
  const editorHandlers = getHandlersFromEditor(editor);
1571
1584
  const effectiveHandlers = useMemo3(() => {
1572
- if (handlers && editorHandlers) {
1573
- return {
1574
- ...editorHandlers,
1575
- ...handlers
1576
- };
1577
- }
1578
- return handlers || editorHandlers;
1585
+ return mergeBlocknoteHandlers(editorHandlers, handlers);
1579
1586
  }, [handlers, editorHandlers]);
1580
1587
  const docType = editor?.docType || "flow";
1581
1588
  const flowVersion = editor?.getFlowMetadata?.()?.schema_version || "0.3";
@@ -5514,7 +5521,7 @@ var ClaimsListPanelContent = ({ collectionId, deedId, claim }) => {
5514
5521
  if (!claim) return;
5515
5522
  setSurveyLoading(true);
5516
5523
  setSurveyError(null);
5517
- const claimDataResult = await handlers.getClaimData(collectionId, claim.claimId);
5524
+ const claimDataResult = await handlers.getClaimData(collectionId, claim.claimId, { entityDid: deedId });
5518
5525
  setClaimData(claimDataResult || null);
5519
5526
  const surveyResult = await handlers.getDeedSurveyTemplate(deedId, collectionId);
5520
5527
  if (surveyResult?.surveyTemplate) {
@@ -7507,7 +7514,7 @@ var BidItem = ({ editor, block, bid, deedId, adminAddress, onRefresh, execution,
7507
7514
 
7508
7515
  // src/mantine/blocks/components/bid/hooks/useBids.ts
7509
7516
  import { useState as useState28, useEffect as useEffect27, useCallback as useCallback24 } from "react";
7510
- function useBids(collectionId) {
7517
+ function useBids(collectionId, entityDid) {
7511
7518
  const handlers = useBlocknoteHandlers();
7512
7519
  const [bids, setBids] = useState28([]);
7513
7520
  const [loading, setLoading] = useState28(true);
@@ -7520,7 +7527,7 @@ function useBids(collectionId) {
7520
7527
  try {
7521
7528
  setLoading(true);
7522
7529
  setError(null);
7523
- const response = await handlers.queryBids({ collectionId });
7530
+ const response = await handlers.queryBids({ collectionId, entityDid });
7524
7531
  setBids(Array.isArray(response?.data) ? response.data : []);
7525
7532
  } catch (err) {
7526
7533
  setError(err instanceof Error ? err.message : "Failed to fetch bids");
@@ -7528,7 +7535,7 @@ function useBids(collectionId) {
7528
7535
  } finally {
7529
7536
  setLoading(false);
7530
7537
  }
7531
- }, [collectionId]);
7538
+ }, [collectionId, entityDid, handlers]);
7532
7539
  useEffect27(() => {
7533
7540
  fetchBids();
7534
7541
  }, [fetchBids]);
@@ -7538,7 +7545,7 @@ function useBids(collectionId) {
7538
7545
  // src/mantine/blocks/components/bid/components/BidsList.tsx
7539
7546
  var BidsList = ({ editor, block, collectionId, deedId, adminAddress, onRefresh, execution, executeHookedActions }) => {
7540
7547
  const { closePanel } = usePanelStore();
7541
- const { bids, loading, error, refetch } = useBids(collectionId);
7548
+ const { bids, loading, error, refetch } = useBids(collectionId, deedId);
7542
7549
  const handleRefresh = useCallback25(() => {
7543
7550
  refetch();
7544
7551
  onRefresh();
@@ -7583,7 +7590,7 @@ var BidsList = ({ editor, block, collectionId, deedId, adminAddress, onRefresh,
7583
7590
 
7584
7591
  // src/mantine/blocks/components/bid/hooks/useUserBid.ts
7585
7592
  import { useState as useState29, useEffect as useEffect28, useCallback as useCallback26 } from "react";
7586
- function useUserBid(collectionId, userDid) {
7593
+ function useUserBid(collectionId, userDid, entityDid) {
7587
7594
  const handlers = useBlocknoteHandlers();
7588
7595
  const [userBid, setUserBid] = useState29(null);
7589
7596
  const [loading, setLoading] = useState29(true);
@@ -7597,7 +7604,7 @@ function useUserBid(collectionId, userDid) {
7597
7604
  setLoading(true);
7598
7605
  setError(null);
7599
7606
  const formattedDid = userDid.startsWith("did:ixo:") ? userDid : `did:ixo:${userDid}`;
7600
- const response = await handlers.queryBidsByDid({ collectionId, did: formattedDid });
7607
+ const response = await handlers.queryBidsByDid({ collectionId, did: formattedDid, entityDid });
7601
7608
  setUserBid(Array.isArray(response?.data) && response.data.length > 0 ? response.data[0] : null);
7602
7609
  } catch (err) {
7603
7610
  setError(err instanceof Error ? err.message : "Failed to fetch user bid");
@@ -7605,7 +7612,7 @@ function useUserBid(collectionId, userDid) {
7605
7612
  } finally {
7606
7613
  setLoading(false);
7607
7614
  }
7608
- }, [collectionId, userDid, handlers]);
7615
+ }, [collectionId, userDid, entityDid, handlers]);
7609
7616
  useEffect28(() => {
7610
7617
  fetchUserBid();
7611
7618
  }, [fetchUserBid]);
@@ -7821,7 +7828,7 @@ var BidCollectionItem = ({ collection, editor, block, deedId, adminAddress, user
7821
7828
  ucanService: execution.ucanService,
7822
7829
  flowUri: execution.flowUri
7823
7830
  });
7824
- const { userBid, loading: userBidLoading } = useUserBid(collection.id, execution.actorDid);
7831
+ const { userBid, loading: userBidLoading } = useUserBid(collection.id, execution.actorDid, deedId);
7825
7832
  const executionRef = React73.useRef(execution);
7826
7833
  const executeHookedActionsRef = React73.useRef(executeHookedActions);
7827
7834
  const onRefreshRef = React73.useRef(onRefresh);
@@ -8423,7 +8430,7 @@ var ClaimsList = ({ collectionId, collectionName, deedId, adminAddress, onEvalua
8423
8430
  setSurveyError(null);
8424
8431
  setEvaluationResult(null);
8425
8432
  setRubricData(null);
8426
- const claimDataResult = await handlers.getClaimData(collectionId, claim.claimId);
8433
+ const claimDataResult = await handlers.getClaimData(collectionId, claim.claimId, { entityDid: deedId });
8427
8434
  setClaimData(claimDataResult || null);
8428
8435
  const surveyResult = await handlers.getDeedSurveyTemplate(deedId, collectionId);
8429
8436
  if (surveyResult?.surveyTemplate) {
@@ -10444,7 +10451,7 @@ var ClaimsEvaluation = ({ collectionId, adminAddress, deedId, claim, onRefresh }
10444
10451
  const record = evalBlockId ? readClaimCapture(runtimeManager, evalBlockId, claim.claimId) : null;
10445
10452
  setCapturedInvoiceId(record?.invoiceId || "");
10446
10453
  setSettledPaymentId(record?.settledPaymentId || "");
10447
- const claimDataResult = await handlers.getClaimData(collectionId, claim.claimId);
10454
+ const claimDataResult = await handlers.getClaimData(collectionId, claim.claimId, { entityDid: deedId });
10448
10455
  setClaimDataForXero(claimDataResult);
10449
10456
  if (handlers.getDeedRubric && handlers.evaluateWithRubric && claimDataResult) {
10450
10457
  setEvaluationLoading(true);
@@ -24462,10 +24469,7 @@ function mergeActionHandlers(contextHandlers, executionHandlers) {
24462
24469
  if (!executionHandlers) return contextHandlers;
24463
24470
  if (!contextHandlers) return executionHandlers;
24464
24471
  if (typeof contextHandlers !== "object" || typeof executionHandlers !== "object") return executionHandlers;
24465
- return {
24466
- ...contextHandlers,
24467
- ...executionHandlers
24468
- };
24472
+ return mergeBlocknoteHandlers(contextHandlers, executionHandlers);
24469
24473
  }
24470
24474
  function useExecuteActionBlock({ editor, block }) {
24471
24475
  const handlers = useBlocknoteHandlers();
@@ -26855,7 +26859,10 @@ var BidFlowDetail = ({
26855
26859
  setStatusLoading(true);
26856
26860
  try {
26857
26861
  const formattedDid = actorDid.startsWith("did:ixo:") ? actorDid : `did:ixo:${actorDid}`;
26858
- const [bidResponse, collectionsResponse] = await Promise.all([handlers2.queryBidsByDid({ collectionId, did: formattedDid }), handlers2.getClaimCollections(deedDid)]);
26862
+ const [bidResponse, collectionsResponse] = await Promise.all([
26863
+ handlers2.queryBidsByDid({ collectionId, did: formattedDid, entityDid: deedDid }),
26864
+ handlers2.getClaimCollections(deedDid)
26865
+ ]);
26859
26866
  if (!mounted) return;
26860
26867
  const bid = Array.isArray(bidResponse?.data) && bidResponse.data.length > 0 ? bidResponse.data[0] : null;
26861
26868
  setUserBid(bid);
@@ -27275,7 +27282,7 @@ var EvaluateBidFlowDetail = ({
27275
27282
  setLoadingBids(true);
27276
27283
  setError(null);
27277
27284
  try {
27278
- const [bidsResponse, collectionsResponse] = await Promise.all([handlers2.queryBids({ collectionId }), handlers2.getClaimCollections(deedDid)]);
27285
+ const [bidsResponse, collectionsResponse] = await Promise.all([handlers2.queryBids({ collectionId, entityDid: deedDid }), handlers2.getClaimCollections(deedDid)]);
27279
27286
  const fetchedBids = Array.isArray(bidsResponse?.data) ? bidsResponse.data : [];
27280
27287
  setBids(fetchedBids);
27281
27288
  if (selectedBidId && !fetchedBids.some((bid) => bid.id === selectedBidId)) {
@@ -28068,7 +28075,7 @@ var ClaimFlowDetail = ({
28068
28075
  setError(null);
28069
28076
  try {
28070
28077
  const [claimDataResult, templateResult] = await Promise.all([
28071
- handlers2.getClaimData(collectionId, selectedClaim.claimId),
28078
+ handlers2.getClaimData(collectionId, selectedClaim.claimId, { entityDid: deedDid }),
28072
28079
  surveyJson ? Promise.resolve({ surveyTemplate: surveyJson }) : handlers2.getDeedSurveyTemplate(deedDid, collectionId)
28073
28080
  ]);
28074
28081
  if (cancelled) return;
@@ -28680,7 +28687,7 @@ function isImage(file) {
28680
28687
  const ext = (file.name || "").toLowerCase().split(".").pop() || "";
28681
28688
  return t.startsWith("image/") || ["png", "jpg", "jpeg", "gif", "webp", "svg", "bmp"].includes(ext);
28682
28689
  }
28683
- var ClaimAttachments = ({ surveyModel, credentialSubject }) => {
28690
+ var ClaimAttachments = ({ surveyModel, credentialSubject, entityDid }) => {
28684
28691
  const t = useTranslate();
28685
28692
  const { fetchClaimMedia } = useBlocknoteHandlers();
28686
28693
  const [active, setActive] = useState120(null);
@@ -28705,7 +28712,7 @@ var ClaimAttachments = ({ surveyModel, credentialSubject }) => {
28705
28712
  if (existing) return existing;
28706
28713
  setPending((p) => ({ ...p, [url]: true }));
28707
28714
  const promise = (async () => {
28708
- const blob = await fetchClaimMedia(url);
28715
+ const blob = await fetchClaimMedia(url, { entityDid });
28709
28716
  const blobUrl = URL.createObjectURL(blob);
28710
28717
  cacheRef.current.set(url, blobUrl);
28711
28718
  setResolved((r) => ({ ...r, [url]: blobUrl }));
@@ -28723,7 +28730,7 @@ var ClaimAttachments = ({ surveyModel, credentialSubject }) => {
28723
28730
  inflightRef.current.set(url, promise);
28724
28731
  return promise;
28725
28732
  },
28726
- [fetchClaimMedia]
28733
+ [fetchClaimMedia, entityDid]
28727
28734
  );
28728
28735
  const items = useMemo105(() => {
28729
28736
  if (!credentialSubject || typeof credentialSubject !== "object") return [];
@@ -29034,7 +29041,7 @@ var EvaluateClaimFlowDetail = ({
29034
29041
  }
29035
29042
  setSurveyActiveFile({ name, type, content: raw });
29036
29043
  try {
29037
- const blob = await fetcher(raw);
29044
+ const blob = await fetcher(raw, { entityDid: deedDid });
29038
29045
  const blobUrl = URL.createObjectURL(blob);
29039
29046
  cache.set(raw, blobUrl);
29040
29047
  setSurveyActiveFile((curr) => curr && curr.content === raw ? { name, type, content: blobUrl } : curr);
@@ -29042,7 +29049,7 @@ var EvaluateClaimFlowDetail = ({
29042
29049
  console.error("[EvaluateClaim] fetchClaimMedia failed", raw, err);
29043
29050
  }
29044
29051
  };
29045
- }, [handlers.fetchClaimMedia]);
29052
+ }, [handlers.fetchClaimMedia, deedDid]);
29046
29053
  const surveyModel = useMemo106(() => {
29047
29054
  if (!surveyJson || !claimData) return null;
29048
29055
  const model = new SurveyModel11(surveyJson);
@@ -29064,7 +29071,7 @@ var EvaluateClaimFlowDetail = ({
29064
29071
  options.callback("success", cached);
29065
29072
  return;
29066
29073
  }
29067
- fetcher(src).then((blob) => {
29074
+ fetcher(src, { entityDid: deedDid }).then((blob) => {
29068
29075
  const blobUrl = URL.createObjectURL(blob);
29069
29076
  cache.set(src, blobUrl);
29070
29077
  options.callback("success", blobUrl);
@@ -29105,7 +29112,7 @@ var EvaluateClaimFlowDetail = ({
29105
29112
  }
29106
29113
  model.data = resolvedCredentialSubject;
29107
29114
  return model;
29108
- }, [surveyJson, claimData, resolvedCredentialSubject]);
29115
+ }, [surveyJson, claimData, resolvedCredentialSubject, deedDid, handlers.fetchClaimMedia]);
29109
29116
  const outcomeSurveyModel = useMemo106(() => {
29110
29117
  if (!outcomeTemplateJson) return null;
29111
29118
  const model = new SurveyModel11(outcomeTemplateJson);
@@ -29182,7 +29189,7 @@ var EvaluateClaimFlowDetail = ({
29182
29189
  setEvaluationResult(null);
29183
29190
  setError(null);
29184
29191
  try {
29185
- const claimDataResult = await handlers2.getClaimData(collectionId, claim.claimId);
29192
+ const claimDataResult = await handlers2.getClaimData(collectionId, claim.claimId, { entityDid: deedDid });
29186
29193
  setClaimData(claimDataResult || null);
29187
29194
  const surveyResult = await handlers2.getDeedSurveyTemplate(deedDid, collectionId);
29188
29195
  setSurveyJson(surveyResult?.surveyTemplate || null);
@@ -29801,7 +29808,7 @@ var EvaluateClaimFlowDetail = ({
29801
29808
  ), /* @__PURE__ */ React269.createElement(Stack186, { gap: 0, style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React269.createElement(Text164, { fw: 500, size: "md", truncate: true }, selectedDisplayName), /* @__PURE__ */ React269.createElement(Text164, { size: "xs", c: "dimmed", truncate: true }, truncateAddress4(selectedClaim.agentAddress))), /* @__PURE__ */ React269.createElement(Stack186, { gap: 0, align: "flex-end", style: { flexShrink: 0 } }, /* @__PURE__ */ React269.createElement(Text164, { fw: 500, size: "md", c: claimStatus.color }, claimStatus.key === "approved" && /* @__PURE__ */ React269.createElement(IconCheck22, { size: 14, style: { verticalAlign: "middle", marginRight: 4 } }), claimStatus.label), /* @__PURE__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, getTimeAgo3(selectedClaim.submissionDate || "")))), claimStatus.key === "disputed" && /* @__PURE__ */ React269.createElement(Alert52, { color: "orange", title: t("actionTypes.claim.flow.disputed.title", { defaultValue: "Claim disputed" }), styles: actionAlertStyles }, loadingDispute ? /* @__PURE__ */ React269.createElement(Group105, { gap: "xs" }, /* @__PURE__ */ React269.createElement(Loader50, { size: "xs" }), /* @__PURE__ */ React269.createElement(Text164, { size: "xs" }, t("actionTypes.claim.flow.disputed.loadingDetails", { defaultValue: "Loading dispute details\u2026" }))) : disputeDetails ? /* @__PURE__ */ React269.createElement(Stack186, { gap: 6 }, disputeDetails.reason ? /* @__PURE__ */ React269.createElement(Text164, { size: "sm" }, disputeDetails.reason) : /* @__PURE__ */ React269.createElement(Text164, { 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__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, disputeDetails.evaluatorDid ? t("actionTypes.claim.flow.disputed.byEvaluator", {
29802
29809
  address: truncateAddress4(disputeDetails.evaluatorDid),
29803
29810
  defaultValue: `By ${truncateAddress4(disputeDetails.evaluatorDid)}`
29804
- }) : "", disputeDetails.evaluatorDid && disputeDetails.disputedAt ? " \xB7 " : "", disputeDetails.disputedAt ? new Date(disputeDetails.disputedAt).toLocaleString() : ""), /* @__PURE__ */ React269.createElement(Text164, { 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__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.disputed.unavailable", { defaultValue: "Dispute details unavailable in this environment." })) : /* @__PURE__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.disputed.noRecord", { defaultValue: "No dispute record found on-chain for this claim." }))), /* @__PURE__ */ React269.createElement(CollapsibleSection, { title: t("actionTypes.evaluateClaim.flow.section.submission", { defaultValue: "Submission" }) }, surveyLoading ? /* @__PURE__ */ React269.createElement(Group105, { gap: "xs" }, /* @__PURE__ */ React269.createElement(Loader50, { size: "xs" }), /* @__PURE__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.loadingSubmissionDetails", { defaultValue: "Loading submission details..." }))) : surveyModel ? /* @__PURE__ */ React269.createElement(ScrollArea8, { h: 280 }, /* @__PURE__ */ React269.createElement(StableSurvey, { model: surveyModel })) : /* @__PURE__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.noSubmissionTemplate", { defaultValue: "No submission template/data available." }))), /* @__PURE__ */ React269.createElement(CollapsibleSection, { title: t("actionTypes.evaluateClaim.flow.section.attachments", { defaultValue: "Attachments" }) }, /* @__PURE__ */ React269.createElement(ClaimAttachments, { surveyModel, credentialSubject: resolvedCredentialSubject })), /* @__PURE__ */ React269.createElement(CollapsibleSection, { title: t("actionTypes.evaluateClaim.flow.section.aiEvaluation", { defaultValue: "AI Evaluation" }) }, evaluationLoading ? /* @__PURE__ */ React269.createElement(Group105, { gap: "xs" }, /* @__PURE__ */ React269.createElement(Loader50, { size: "xs" }), /* @__PURE__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.runningRubric", { defaultValue: "Running rubric evaluation..." }))) : evaluationResult ? /* @__PURE__ */ React269.createElement(ScrollArea8, { h: 280 }, /* @__PURE__ */ React269.createElement(RubricEvaluationResults, { evaluation: evaluationResult })) : /* @__PURE__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.noRubric", { defaultValue: "No rubric evaluation available for this claim." }))), xeroBlocks.invoiceCreateBlock && !isClaimAlreadyEvaluated && /* @__PURE__ */ React269.createElement(
29811
+ }) : "", disputeDetails.evaluatorDid && disputeDetails.disputedAt ? " \xB7 " : "", disputeDetails.disputedAt ? new Date(disputeDetails.disputedAt).toLocaleString() : ""), /* @__PURE__ */ React269.createElement(Text164, { 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__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.disputed.unavailable", { defaultValue: "Dispute details unavailable in this environment." })) : /* @__PURE__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, t("actionTypes.claim.flow.disputed.noRecord", { defaultValue: "No dispute record found on-chain for this claim." }))), /* @__PURE__ */ React269.createElement(CollapsibleSection, { title: t("actionTypes.evaluateClaim.flow.section.submission", { defaultValue: "Submission" }) }, surveyLoading ? /* @__PURE__ */ React269.createElement(Group105, { gap: "xs" }, /* @__PURE__ */ React269.createElement(Loader50, { size: "xs" }), /* @__PURE__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.loadingSubmissionDetails", { defaultValue: "Loading submission details..." }))) : surveyModel ? /* @__PURE__ */ React269.createElement(ScrollArea8, { h: 280 }, /* @__PURE__ */ React269.createElement(StableSurvey, { model: surveyModel })) : /* @__PURE__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.noSubmissionTemplate", { defaultValue: "No submission template/data available." }))), /* @__PURE__ */ React269.createElement(CollapsibleSection, { title: t("actionTypes.evaluateClaim.flow.section.attachments", { defaultValue: "Attachments" }) }, /* @__PURE__ */ React269.createElement(ClaimAttachments, { surveyModel, credentialSubject: resolvedCredentialSubject, entityDid: deedDid })), /* @__PURE__ */ React269.createElement(CollapsibleSection, { title: t("actionTypes.evaluateClaim.flow.section.aiEvaluation", { defaultValue: "AI Evaluation" }) }, evaluationLoading ? /* @__PURE__ */ React269.createElement(Group105, { gap: "xs" }, /* @__PURE__ */ React269.createElement(Loader50, { size: "xs" }), /* @__PURE__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.runningRubric", { defaultValue: "Running rubric evaluation..." }))) : evaluationResult ? /* @__PURE__ */ React269.createElement(ScrollArea8, { h: 280 }, /* @__PURE__ */ React269.createElement(RubricEvaluationResults, { evaluation: evaluationResult })) : /* @__PURE__ */ React269.createElement(Text164, { size: "xs", c: "dimmed" }, t("actionTypes.evaluateClaim.flow.noRubric", { defaultValue: "No rubric evaluation available for this claim." }))), xeroBlocks.invoiceCreateBlock && !isClaimAlreadyEvaluated && /* @__PURE__ */ React269.createElement(
29805
29812
  CollapsibleSection,
29806
29813
  {
29807
29814
  title: "Xero Bill",
@@ -44942,4 +44949,4 @@ export {
44942
44949
  getExtraSlashMenuItems,
44943
44950
  useCreateIxoEditor
44944
44951
  };
44945
- //# sourceMappingURL=chunk-DJHCUHR5.mjs.map
44952
+ //# sourceMappingURL=chunk-6WLTWDCS.mjs.map