@ixo/editor 5.10.0 → 5.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@ import {
39
39
  tempDomainCreatorSurvey,
40
40
  transformSurveyToCredentialSubject,
41
41
  writeRunRecordAndReconcile
42
- } from "./chunk-MD3CXTGZ.mjs";
42
+ } from "./chunk-GCR6VY7O.mjs";
43
43
 
44
44
  // src/mantine/hooks/useCreateIxoEditor.ts
45
45
  import { useCreateBlockNote } from "@blocknote/react";
@@ -24218,6 +24218,7 @@ function ActionPanelContent({
24218
24218
  const [canSign, setCanSign] = useState95(false);
24219
24219
  const [runtimeInputs, setRuntimeInputs] = useState95({});
24220
24220
  const [showFlowDetail, setShowFlowDetail] = useState95(false);
24221
+ const [activeInvocation, setActiveInvocation] = useState95(null);
24221
24222
  const [invokingId, setInvokingId] = useState95(null);
24222
24223
  const provideSigningHandler = useCallback74((fn) => {
24223
24224
  executeFnRef.current = fn;
@@ -24231,17 +24232,37 @@ function ActionPanelContent({
24231
24232
  const actionTypeUI = actionType ? getActionTypeUI(actionType) : void 0;
24232
24233
  const executionMode = actionTypeUI?.executionMode ?? "custom";
24233
24234
  const isSlideToSign = executionMode === "slide-to-sign";
24234
- const handleInvoke = useCallback74((invocation) => {
24235
- if (invocation?.id) setInvokingId(invocation.id);
24236
- setShowFlowDetail(true);
24237
- }, []);
24235
+ const handlePendingInvocationCompleted = useCallback74(
24236
+ (invocationId) => {
24237
+ const yDoc = editor?._yDoc;
24238
+ if (yDoc) removePendingInvocation(yDoc, block.id, invocationId);
24239
+ setInvokingId(null);
24240
+ setActiveInvocation(null);
24241
+ },
24242
+ [editor, block.id]
24243
+ );
24244
+ const handleInvoke = useCallback74(
24245
+ (invocation) => {
24246
+ if (invocation?.id) {
24247
+ setInvokingId(invocation.id);
24248
+ setActiveInvocation(invocation);
24249
+ updateRuntime({
24250
+ state: "idle",
24251
+ error: void 0,
24252
+ pendingPayload: {
24253
+ ...invocation.payload || {},
24254
+ ...invocation.refSnapshots || {}
24255
+ }
24256
+ });
24257
+ }
24258
+ setShowFlowDetail(true);
24259
+ },
24260
+ [updateRuntime]
24261
+ );
24238
24262
  useEffect78(() => {
24239
24263
  if (runtime.state !== "completed" || !invokingId) return;
24240
- const yDoc = editor?._yDoc;
24241
- if (yDoc) removePendingInvocation(yDoc, block.id, invokingId);
24242
- setInvokingId(null);
24243
- setShowFlowDetail(false);
24244
- }, [runtime.state, invokingId, editor, block.id]);
24264
+ handlePendingInvocationCompleted(invokingId);
24265
+ }, [runtime.state, invokingId, handlePendingInvocationCompleted]);
24245
24266
  const triggerMode = (() => {
24246
24267
  const raw = block.props.trigger;
24247
24268
  if (raw && typeof raw === "string") {
@@ -24290,7 +24311,9 @@ function ActionPanelContent({
24290
24311
  isDisabled,
24291
24312
  provideSigningHandler,
24292
24313
  unlockSigning,
24293
- registerRuntimeInputs
24314
+ registerRuntimeInputs,
24315
+ activePendingInvocation: activeInvocation,
24316
+ onPendingInvocationCompleted: handlePendingInvocationCompleted
24294
24317
  }
24295
24318
  ), diffView), runtime.error && /* @__PURE__ */ React242.createElement(Alert35, { icon: /* @__PURE__ */ React242.createElement(IconAlertTriangle4, { size: 16 }), title: t("actionBlock.alerts.executionError", { defaultValue: "Execution Error" }), color: "red", styles: actionAlertStyles }, /* @__PURE__ */ React242.createElement(Text139, { size: "xs" }, runtime.error.message)));
24296
24319
  }
@@ -30806,7 +30829,7 @@ var DomainSignConfig = ({ inputs, onInputsChange }) => {
30806
30829
  };
30807
30830
 
30808
30831
  // src/mantine/blocks/action/actionTypes/domainSign/DomainSignFlowDetail.tsx
30809
- import React277, { useCallback as useCallback104, useMemo as useMemo108, useState as useState128 } from "react";
30832
+ import React277, { useCallback as useCallback104, useEffect as useEffect105, useMemo as useMemo108, useState as useState128 } from "react";
30810
30833
  import { Alert as Alert55, Button as Button58, Group as Group109, Loader as Loader55, Stack as Stack194, Text as Text172 } from "@mantine/core";
30811
30834
  import { IconCheck as IconCheck23, IconAlertCircle as IconAlertCircle21, IconExternalLink as IconExternalLink2 } from "@tabler/icons-react";
30812
30835
  var STEP_LABELS = {
@@ -30814,7 +30837,16 @@ var STEP_LABELS = {
30814
30837
  uploading: "Uploading to storage...",
30815
30838
  creating: "Creating domain entity..."
30816
30839
  };
30817
- var DomainSignFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isDisabled }) => {
30840
+ var DomainSignFlowDetail = ({
30841
+ inputs,
30842
+ editor,
30843
+ block,
30844
+ runtime,
30845
+ updateRuntime,
30846
+ isDisabled,
30847
+ activePendingInvocation,
30848
+ onPendingInvocationCompleted
30849
+ }) => {
30818
30850
  const handlers = useBlocknoteHandlers();
30819
30851
  const services = useMemo108(() => buildServicesFromHandlers(handlers), [handlers]);
30820
30852
  const flowNode = useMemo108(() => buildFlowNodeFromBlock(block), [block]);
@@ -30839,7 +30871,13 @@ var DomainSignFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isD
30839
30871
  const editorDocument = editor?.document || [];
30840
30872
  const resolveOpts = useMemo108(() => ({ yRuntime: editor?._yRuntime }), [editor?._yRuntime]);
30841
30873
  const entityType = resolveReferences(parsed.entityType, editorDocument, resolveOpts).trim();
30842
- const pendingPayload = runtime.pendingPayload;
30874
+ const pendingPayload = useMemo108(() => {
30875
+ if (!activePendingInvocation) return runtime.pendingPayload;
30876
+ return {
30877
+ ...activePendingInvocation.payload || {},
30878
+ ...activePendingInvocation.refSnapshots || {}
30879
+ };
30880
+ }, [activePendingInvocation, runtime.pendingPayload]);
30843
30881
  const domainCardData = useMemo108(() => {
30844
30882
  try {
30845
30883
  const raw = pendingPayload?.domainCardData;
@@ -30859,8 +30897,17 @@ var DomainSignFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isD
30859
30897
  });
30860
30898
  const [activeStep, setActiveStep] = useState128("");
30861
30899
  const [error, setError] = useState128(runtime.error?.message || null);
30900
+ useEffect105(() => {
30901
+ if (!activePendingInvocation?.id) return;
30902
+ setFlowStep("idle");
30903
+ setActiveStep("");
30904
+ setError(null);
30905
+ }, [activePendingInvocation?.id]);
30862
30906
  const entityDid = runtime.output?.entityDid || "";
30863
- const isCompleted = flowStep === "success" || runtime.state === "completed";
30907
+ const governanceGroupCoreAddress = runtime.output?.governanceGroupCoreAddress || "";
30908
+ const transactionHash = runtime.output?.transactionHash || "";
30909
+ const isInvokingPending = !!activePendingInvocation?.id;
30910
+ const isCompleted = flowStep === "success" || runtime.state === "completed" && !isInvokingPending;
30864
30911
  const handleSign = useCallback104(async () => {
30865
30912
  if (isDisabled || flowStep === "running" || isCompleted) return;
30866
30913
  if (!domainCardData) {
@@ -30877,6 +30924,7 @@ var DomainSignFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isD
30877
30924
  setError(null);
30878
30925
  updateRuntime({ state: "running", error: void 0 });
30879
30926
  try {
30927
+ let actionEvents = [];
30880
30928
  const outcome = await executeNode({
30881
30929
  node: flowNode,
30882
30930
  actorDid,
@@ -30926,6 +30974,7 @@ var DomainSignFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isD
30926
30974
  editor
30927
30975
  }
30928
30976
  );
30977
+ actionEvents = result.events || [];
30929
30978
  return {
30930
30979
  payload: result.output,
30931
30980
  submittedByDid: actorDid || void 0
@@ -30936,11 +30985,32 @@ var DomainSignFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isD
30936
30985
  if (!outcome.success) {
30937
30986
  throw new Error(outcome.error || "Domain sign failed");
30938
30987
  }
30988
+ const output = outcome.result?.payload || {};
30939
30989
  updateRuntime({
30940
30990
  state: "completed",
30941
30991
  executedAt: Date.now(),
30942
- output: outcome.result?.payload || {}
30992
+ output
30943
30993
  });
30994
+ if (actionEvents.length > 0) {
30995
+ writeRunRecordAndReconcile(
30996
+ editor,
30997
+ block.id,
30998
+ output,
30999
+ actionEvents,
31000
+ actorDid,
31001
+ activePendingInvocation ? {
31002
+ fromPendingInvocationId: activePendingInvocation.id,
31003
+ triggeredBy: {
31004
+ sourceBlockId: activePendingInvocation.triggeringBlockId,
31005
+ eventName: activePendingInvocation.eventName
31006
+ },
31007
+ sourceRunId: activePendingInvocation.sourceRunId
31008
+ } : void 0
31009
+ );
31010
+ }
31011
+ if (activePendingInvocation?.id) {
31012
+ onPendingInvocationCompleted?.(activePendingInvocation.id);
31013
+ }
30944
31014
  setFlowStep("success");
30945
31015
  setActiveStep("");
30946
31016
  } catch (err) {
@@ -30955,6 +31025,7 @@ var DomainSignFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isD
30955
31025
  }
30956
31026
  }, [
30957
31027
  actorDid,
31028
+ activePendingInvocation,
30958
31029
  block.id,
30959
31030
  domainCardData,
30960
31031
  editor,
@@ -30969,6 +31040,7 @@ var DomainSignFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isD
30969
31040
  isCompleted,
30970
31041
  isDisabled,
30971
31042
  pendingPayload,
31043
+ onPendingInvocationCompleted,
30972
31044
  runtimeManager,
30973
31045
  services,
30974
31046
  ucanService,
@@ -30988,7 +31060,7 @@ var DomainSignFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isD
30988
31060
  const isActive = activeStep === step;
30989
31061
  const isDone = ["signing", "uploading", "creating"].indexOf(step) < ["signing", "uploading", "creating"].indexOf(activeStep);
30990
31062
  return /* @__PURE__ */ React277.createElement(Group109, { key: step, gap: "xs" }, isDone ? /* @__PURE__ */ React277.createElement(IconCheck23, { size: 14, color: "var(--mantine-color-green-5)" }) : isActive ? /* @__PURE__ */ React277.createElement(Loader55, { size: 14 }) : /* @__PURE__ */ React277.createElement(Text172, { size: "xs", c: "dimmed", style: { width: 14 } }, "\u2013"), /* @__PURE__ */ React277.createElement(Text172, { size: "xs", c: isActive ? void 0 : "dimmed" }, STEP_LABELS[step]));
30991
- })), isCompleted && /* @__PURE__ */ React277.createElement(Alert55, { icon: /* @__PURE__ */ React277.createElement(IconCheck23, { size: 16 }), title: "Domain Created Successfully", color: "green" }, /* @__PURE__ */ React277.createElement(Stack194, { gap: "xs" }, /* @__PURE__ */ React277.createElement(Text172, { size: "sm" }, "The domain card has been signed and the entity has been created on-chain."), entityDid && /* @__PURE__ */ React277.createElement(Text172, { size: "xs", c: "dimmed", style: { wordBreak: "break-all" } }, "Entity DID: ", entityDid))), isCompleted && entityDid && handlers?.redirectToEntityOverview && /* @__PURE__ */ React277.createElement(Button58, { variant: "outline", leftSection: /* @__PURE__ */ React277.createElement(IconExternalLink2, { size: 14 }), onClick: handleVisitEntity }, "Visit Entity"), !isCompleted && /* @__PURE__ */ React277.createElement(Button58, { fullWidth: true, onClick: handleSign, disabled: isDisabled || flowStep === "running", loading: flowStep === "running" }, flowStep === "running" ? "Processing..." : "Sign & Create Domain"), flowStep === "error" && /* @__PURE__ */ React277.createElement(Group109, null, /* @__PURE__ */ React277.createElement(Button58, { variant: "outline", onClick: handleRetry }, "Try Again"))), error && /* @__PURE__ */ React277.createElement(Alert55, { icon: /* @__PURE__ */ React277.createElement(IconAlertCircle21, { size: 16 }), color: "red", styles: actionAlertStyles }, error), runtime.error?.message && flowStep !== "error" && /* @__PURE__ */ React277.createElement(Alert55, { color: "red", styles: actionAlertStyles }, runtime.error.message));
31063
+ })), isCompleted && /* @__PURE__ */ React277.createElement(Alert55, { icon: /* @__PURE__ */ React277.createElement(IconCheck23, { size: 16 }), title: "Domain Created Successfully", color: "green" }, /* @__PURE__ */ React277.createElement(Stack194, { gap: "xs" }, /* @__PURE__ */ React277.createElement(Text172, { size: "sm" }, "The domain card has been signed and the entity has been created on-chain."), entityDid && /* @__PURE__ */ React277.createElement(Text172, { size: "xs", c: "dimmed", style: { wordBreak: "break-all" } }, "POD DID: ", entityDid), governanceGroupCoreAddress && /* @__PURE__ */ React277.createElement(Text172, { size: "xs", c: "dimmed", style: { wordBreak: "break-all" } }, "Group core address: ", governanceGroupCoreAddress), transactionHash && /* @__PURE__ */ React277.createElement(Text172, { size: "xs", c: "dimmed", style: { wordBreak: "break-all" } }, "Transaction hash: ", transactionHash))), isCompleted && entityDid && handlers?.redirectToEntityOverview && /* @__PURE__ */ React277.createElement(Button58, { variant: "outline", leftSection: /* @__PURE__ */ React277.createElement(IconExternalLink2, { size: 14 }), onClick: handleVisitEntity }, "Visit Entity"), !isCompleted && /* @__PURE__ */ React277.createElement(Button58, { fullWidth: true, onClick: handleSign, disabled: isDisabled || flowStep === "running", loading: flowStep === "running" }, flowStep === "running" ? "Processing..." : "Sign & Create Domain"), flowStep === "error" && /* @__PURE__ */ React277.createElement(Group109, null, /* @__PURE__ */ React277.createElement(Button58, { variant: "outline", onClick: handleRetry }, "Try Again"))), error && /* @__PURE__ */ React277.createElement(Alert55, { icon: /* @__PURE__ */ React277.createElement(IconAlertCircle21, { size: 16 }), color: "red", styles: actionAlertStyles }, error), runtime.error?.message && flowStep !== "error" && /* @__PURE__ */ React277.createElement(Alert55, { color: "red", styles: actionAlertStyles }, runtime.error.message));
30992
31064
  };
30993
31065
 
30994
31066
  // src/mantine/blocks/action/actionTypes/domainSign/index.ts
@@ -30998,7 +31070,7 @@ registerActionTypeUI("qi/domain.sign", {
30998
31070
  });
30999
31071
 
31000
31072
  // src/mantine/blocks/action/actionTypes/domainCardPreview/DomainCardPreviewConfig.tsx
31001
- import React278, { useCallback as useCallback105, useEffect as useEffect105, useState as useState129 } from "react";
31073
+ import React278, { useCallback as useCallback105, useEffect as useEffect106, useState as useState129 } from "react";
31002
31074
  import { Stack as Stack195, Text as Text173, Textarea as Textarea3 } from "@mantine/core";
31003
31075
 
31004
31076
  // src/mantine/blocks/action/actionTypes/domainCardPreview/types.ts
@@ -31052,7 +31124,7 @@ function buildCardDataFromInputs(inputs) {
31052
31124
  // src/mantine/blocks/action/actionTypes/domainCardPreview/DomainCardPreviewConfig.tsx
31053
31125
  var DomainCardPreviewConfig = ({ inputs, onInputsChange }) => {
31054
31126
  const [local, setLocal] = useState129(() => parseDomainCardPreviewInputs(inputs));
31055
- useEffect105(() => {
31127
+ useEffect106(() => {
31056
31128
  setLocal(parseDomainCardPreviewInputs(inputs));
31057
31129
  }, [inputs]);
31058
31130
  const update = useCallback105(
@@ -31148,7 +31220,7 @@ registerActionTypeUI("qi/domain.card-preview", {
31148
31220
  });
31149
31221
 
31150
31222
  // src/mantine/blocks/action/actionTypes/oracle/OracleConfig.tsx
31151
- import React280, { useCallback as useCallback107, useEffect as useEffect106, useState as useState130 } from "react";
31223
+ import React280, { useCallback as useCallback107, useEffect as useEffect107, useState as useState130 } from "react";
31152
31224
  import { Stack as Stack197 } from "@mantine/core";
31153
31225
 
31154
31226
  // src/mantine/blocks/action/actionTypes/oracle/types.ts
@@ -31171,7 +31243,7 @@ function serializeOracleInputs(inputs) {
31171
31243
  // src/mantine/blocks/action/actionTypes/oracle/OracleConfig.tsx
31172
31244
  var OracleConfig = ({ inputs, onInputsChange, editor, blockId }) => {
31173
31245
  const [local, setLocal] = useState130(() => parseOracleInputs(inputs));
31174
- useEffect106(() => {
31246
+ useEffect107(() => {
31175
31247
  setLocal(parseOracleInputs(inputs));
31176
31248
  }, [inputs]);
31177
31249
  const update = useCallback107(
@@ -31251,7 +31323,7 @@ registerActionTypeUI("oracle", {
31251
31323
  });
31252
31324
 
31253
31325
  // src/mantine/blocks/action/actionTypes/oraclePrompt/OraclePromptConfig.tsx
31254
- import React282, { useCallback as useCallback109, useEffect as useEffect107, useState as useState132 } from "react";
31326
+ import React282, { useCallback as useCallback109, useEffect as useEffect108, useState as useState132 } from "react";
31255
31327
  import { Stack as Stack199 } from "@mantine/core";
31256
31328
 
31257
31329
  // src/mantine/blocks/action/actionTypes/oraclePrompt/types.ts
@@ -31272,7 +31344,7 @@ function serializeOraclePromptInputs(inputs) {
31272
31344
  // src/mantine/blocks/action/actionTypes/oraclePrompt/OraclePromptConfig.tsx
31273
31345
  var OraclePromptConfig = ({ inputs, onInputsChange }) => {
31274
31346
  const [localPrompt, setLocalPrompt] = useState132(() => parseOraclePromptInputs(inputs).prompt);
31275
- useEffect107(() => {
31347
+ useEffect108(() => {
31276
31348
  setLocalPrompt(parseOraclePromptInputs(inputs).prompt);
31277
31349
  }, [inputs]);
31278
31350
  const handleChange = useCallback109(
@@ -31382,7 +31454,7 @@ registerActionTypeUI("oracle.prompt", {
31382
31454
  });
31383
31455
 
31384
31456
  // src/mantine/blocks/action/actionTypes/formSubmit/FormSubmitConfig.tsx
31385
- import React284, { useCallback as useCallback111, useEffect as useEffect108, useState as useState134 } from "react";
31457
+ import React284, { useCallback as useCallback111, useEffect as useEffect109, useState as useState134 } from "react";
31386
31458
  import { Stack as Stack201, Text as Text176 } from "@mantine/core";
31387
31459
 
31388
31460
  // src/mantine/blocks/action/actionTypes/formSubmit/types.ts
@@ -31419,7 +31491,7 @@ function isValidSchemaJson(value) {
31419
31491
  var FormSubmitConfig = ({ inputs, onInputsChange }) => {
31420
31492
  const [localSchema, setLocalSchema] = useState134(() => parseFormSubmitActionInputs(inputs).surveySchema);
31421
31493
  const [error, setError] = useState134(null);
31422
- useEffect108(() => {
31494
+ useEffect109(() => {
31423
31495
  setLocalSchema(parseFormSubmitActionInputs(inputs).surveySchema);
31424
31496
  setError(null);
31425
31497
  }, [inputs]);
@@ -31454,7 +31526,7 @@ var FormSubmitConfig = ({ inputs, onInputsChange }) => {
31454
31526
  };
31455
31527
 
31456
31528
  // src/mantine/blocks/action/actionTypes/formSubmit/FormSubmitFlowDetail.tsx
31457
- import React285, { useCallback as useCallback112, useEffect as useEffect109, useMemo as useMemo112, useState as useState135 } from "react";
31529
+ import React285, { useCallback as useCallback112, useEffect as useEffect110, useMemo as useMemo112, useState as useState135 } from "react";
31458
31530
  import { Alert as Alert59, Loader as Loader58, Stack as Stack202, Text as Text177 } from "@mantine/core";
31459
31531
  import { SurveyModel as SurveyModel12 } from "@ixo/surveys";
31460
31532
  function parsePrimarySkill2(rawSkill) {
@@ -31641,7 +31713,7 @@ var FormSubmitFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isD
31641
31713
  },
31642
31714
  [actorDid, block, editor, flowId, flowNode, flowOwnerDid, flowUri, handlers, invocationStore, isDisabled, runtimeManager, services, submitting, ucanService, updateRuntime]
31643
31715
  );
31644
- useEffect109(() => {
31716
+ useEffect110(() => {
31645
31717
  if (!surveyModel) return void 0;
31646
31718
  surveyModel.onComplete.add(handleSurveyComplete);
31647
31719
  return () => {
@@ -31663,7 +31735,7 @@ registerActionTypeUI("qi/human.form.submit", {
31663
31735
  });
31664
31736
 
31665
31737
  // src/mantine/blocks/action/actionTypes/credentialStore/CredentialStoreConfig.tsx
31666
- import React286, { useCallback as useCallback113, useEffect as useEffect110, useState as useState136 } from "react";
31738
+ import React286, { useCallback as useCallback113, useEffect as useEffect111, useState as useState136 } from "react";
31667
31739
  import { Stack as Stack203, Text as Text178 } from "@mantine/core";
31668
31740
 
31669
31741
  // src/mantine/blocks/action/actionTypes/credentialStore/types.ts
@@ -31696,7 +31768,7 @@ function serializeCredentialStoreInputs(inputs) {
31696
31768
  // src/mantine/blocks/action/actionTypes/credentialStore/CredentialStoreConfig.tsx
31697
31769
  var CredentialStoreConfig = ({ inputs, onInputsChange, editor, blockId }) => {
31698
31770
  const [local, setLocal] = useState136(() => parseCredentialStoreInputs(inputs));
31699
- useEffect110(() => {
31771
+ useEffect111(() => {
31700
31772
  setLocal(parseCredentialStoreInputs(inputs));
31701
31773
  }, [inputs]);
31702
31774
  const update = useCallback113(
@@ -31900,7 +31972,7 @@ registerActionTypeUI("qi/credential.store", {
31900
31972
  });
31901
31973
 
31902
31974
  // src/mantine/blocks/action/actionTypes/payment/PaymentConfig.tsx
31903
- import React288, { useCallback as useCallback115, useEffect as useEffect111, useState as useState138 } from "react";
31975
+ import React288, { useCallback as useCallback115, useEffect as useEffect112, useState as useState138 } from "react";
31904
31976
  import { Stack as Stack205, Text as Text180 } from "@mantine/core";
31905
31977
 
31906
31978
  // src/mantine/blocks/action/actionTypes/payment/types.ts
@@ -31936,7 +32008,7 @@ function isValidPaymentConfig(value) {
31936
32008
  var PaymentConfig = ({ inputs, onInputsChange }) => {
31937
32009
  const [localConfig, setLocalConfig] = useState138(() => parsePaymentInputs(inputs).paymentConfig);
31938
32010
  const [error, setError] = useState138(null);
31939
- useEffect111(() => {
32011
+ useEffect112(() => {
31940
32012
  setLocalConfig(parsePaymentInputs(inputs).paymentConfig);
31941
32013
  setError(null);
31942
32014
  }, [inputs]);
@@ -32291,7 +32363,7 @@ registerActionTypeUI("qi/payment.execute", {
32291
32363
  });
32292
32364
 
32293
32365
  // src/mantine/blocks/action/actionTypes/matrixDm/MatrixDmConfig.tsx
32294
- import React290, { useCallback as useCallback117, useEffect as useEffect112, useMemo as useMemo115, useState as useState140 } from "react";
32366
+ import React290, { useCallback as useCallback117, useEffect as useEffect113, useMemo as useMemo115, useState as useState140 } from "react";
32295
32367
  import { Flex as Flex35, Stack as Stack207, Text as Text182 } from "@mantine/core";
32296
32368
 
32297
32369
  // src/mantine/blocks/action/actionTypes/matrixDm/types.ts
@@ -32321,10 +32393,10 @@ var MatrixDmConfig = ({ inputs, onInputsChange, editor }) => {
32321
32393
  const [searchValue, setSearchValue] = useState140("");
32322
32394
  const roomId = editor?.getRoomId?.() || null;
32323
32395
  const mx = editor?.getMatrixClient?.() || null;
32324
- useEffect112(() => {
32396
+ useEffect113(() => {
32325
32397
  setLocal(parseMatrixDmInputs(inputs));
32326
32398
  }, [inputs]);
32327
- useEffect112(() => {
32399
+ useEffect113(() => {
32328
32400
  (async () => {
32329
32401
  if (!roomId || !mx) return;
32330
32402
  try {
@@ -32398,11 +32470,11 @@ registerActionTypeUI("qi/matrix.dm", {
32398
32470
  });
32399
32471
 
32400
32472
  // src/mantine/blocks/action/actionTypes/calendar/eventCreate/CalendarEventCreateConfig.tsx
32401
- import React291, { useCallback as useCallback118, useEffect as useEffect113, useState as useState141 } from "react";
32473
+ import React291, { useCallback as useCallback118, useEffect as useEffect114, useState as useState141 } from "react";
32402
32474
  import { Divider as Divider26, Stack as Stack208, Text as Text183 } from "@mantine/core";
32403
32475
  var CalendarEventCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
32404
32476
  const [local, setLocal] = useState141(() => parseCalendarEventCreateInputs(inputs));
32405
- useEffect113(() => {
32477
+ useEffect114(() => {
32406
32478
  setLocal(parseCalendarEventCreateInputs(inputs));
32407
32479
  }, [inputs]);
32408
32480
  const update = useCallback118(
@@ -32519,7 +32591,7 @@ var CalendarEventCreateConfig = ({ inputs, onInputsChange, editor, blockId }) =>
32519
32591
  };
32520
32592
 
32521
32593
  // src/mantine/blocks/action/actionTypes/calendar/eventCreate/CalendarEventCreateFlowDetail.tsx
32522
- import React292, { useCallback as useCallback119, useEffect as useEffect114, useMemo as useMemo116, useState as useState142 } from "react";
32594
+ import React292, { useCallback as useCallback119, useEffect as useEffect115, useMemo as useMemo116, useState as useState142 } from "react";
32523
32595
  import { Alert as Alert62, Anchor as Anchor2, Stack as Stack209, Text as Text184 } from "@mantine/core";
32524
32596
  var CalendarEventCreateFlowDetail = ({
32525
32597
  inputs,
@@ -32571,7 +32643,7 @@ var CalendarEventCreateFlowDetail = ({
32571
32643
  description: resolve("description"),
32572
32644
  calendar_id: resolve("calendar_id") || "primary"
32573
32645
  }));
32574
- useEffect114(() => {
32646
+ useEffect115(() => {
32575
32647
  setLocal((prev) => ({
32576
32648
  summary: prev.summary || resolve("summary"),
32577
32649
  start_datetime: prev.start_datetime || resolve("start_datetime"),
@@ -32591,10 +32663,10 @@ var CalendarEventCreateFlowDetail = ({
32591
32663
  const entityMismatch = hasConnection && entityDid && connection.entityDid && connection.entityDid !== entityDid;
32592
32664
  const isCompleted = runtime.state === "completed";
32593
32665
  const readyToSign = hasConnection && !entityMismatch && !!local.start_datetime.trim() && !isCompleted;
32594
- useEffect114(() => {
32666
+ useEffect115(() => {
32595
32667
  unlockSigning?.(readyToSign);
32596
32668
  }, [unlockSigning, readyToSign]);
32597
- useEffect114(() => {
32669
+ useEffect115(() => {
32598
32670
  registerRuntimeInputs?.(local);
32599
32671
  }, [registerRuntimeInputs, local]);
32600
32672
  const [error, setError] = useState142(null);
@@ -32700,7 +32772,7 @@ var CalendarEventCreateFlowDetail = ({
32700
32772
  ucanService,
32701
32773
  updateRuntime
32702
32774
  ]);
32703
- useEffect114(() => {
32775
+ useEffect115(() => {
32704
32776
  if (!provideSigningHandler) return;
32705
32777
  provideSigningHandler(execute);
32706
32778
  }, [provideSigningHandler, execute]);
@@ -32758,7 +32830,7 @@ registerActionTypeUI("qi/calendar.event.create", {
32758
32830
  });
32759
32831
 
32760
32832
  // src/mantine/blocks/action/actionTypes/calendar/eventUpdate/CalendarEventUpdateConfig.tsx
32761
- import React293, { useCallback as useCallback120, useEffect as useEffect115, useState as useState143 } from "react";
32833
+ import React293, { useCallback as useCallback120, useEffect as useEffect116, useState as useState143 } from "react";
32762
32834
  import { Divider as Divider27, Stack as Stack210, Text as Text185 } from "@mantine/core";
32763
32835
 
32764
32836
  // src/core/lib/actionRegistry/actions/calendar/eventUpdate.types.ts
@@ -32804,7 +32876,7 @@ function serializeCalendarEventUpdateInputs(inputs) {
32804
32876
  // src/mantine/blocks/action/actionTypes/calendar/eventUpdate/CalendarEventUpdateConfig.tsx
32805
32877
  var CalendarEventUpdateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
32806
32878
  const [local, setLocal] = useState143(() => parseCalendarEventUpdateInputs(inputs));
32807
- useEffect115(() => {
32879
+ useEffect116(() => {
32808
32880
  setLocal(parseCalendarEventUpdateInputs(inputs));
32809
32881
  }, [inputs]);
32810
32882
  const update = useCallback120(
@@ -32898,7 +32970,7 @@ var CalendarEventUpdateConfig = ({ inputs, onInputsChange, editor, blockId }) =>
32898
32970
  };
32899
32971
 
32900
32972
  // src/mantine/blocks/action/actionTypes/calendar/eventUpdate/CalendarEventUpdateFlowDetail.tsx
32901
- import React294, { useCallback as useCallback121, useEffect as useEffect116, useMemo as useMemo117, useState as useState144 } from "react";
32973
+ import React294, { useCallback as useCallback121, useEffect as useEffect117, useMemo as useMemo117, useState as useState144 } from "react";
32902
32974
  import { Alert as Alert63, Anchor as Anchor3, Stack as Stack211, Text as Text186 } from "@mantine/core";
32903
32975
  var CalendarEventUpdateFlowDetail = ({
32904
32976
  inputs,
@@ -32951,7 +33023,7 @@ var CalendarEventUpdateFlowDetail = ({
32951
33023
  description: resolve("description"),
32952
33024
  calendar_id: resolve("calendar_id") || "primary"
32953
33025
  }));
32954
- useEffect116(() => {
33026
+ useEffect117(() => {
32955
33027
  setLocal((prev) => ({
32956
33028
  event_id: prev.event_id || resolve("event_id"),
32957
33029
  summary: prev.summary || resolve("summary"),
@@ -32972,10 +33044,10 @@ var CalendarEventUpdateFlowDetail = ({
32972
33044
  const entityMismatch = hasConnection && entityDid && connection.entityDid && connection.entityDid !== entityDid;
32973
33045
  const isCompleted = runtime.state === "completed";
32974
33046
  const readyToSign = hasConnection && !entityMismatch && !!local.event_id.trim() && !!local.start_datetime.trim() && !isCompleted;
32975
- useEffect116(() => {
33047
+ useEffect117(() => {
32976
33048
  unlockSigning?.(readyToSign);
32977
33049
  }, [unlockSigning, readyToSign]);
32978
- useEffect116(() => {
33050
+ useEffect117(() => {
32979
33051
  registerRuntimeInputs?.(local);
32980
33052
  }, [registerRuntimeInputs, local]);
32981
33053
  const [error, setError] = useState144(null);
@@ -33082,7 +33154,7 @@ var CalendarEventUpdateFlowDetail = ({
33082
33154
  ucanService,
33083
33155
  updateRuntime
33084
33156
  ]);
33085
- useEffect116(() => {
33157
+ useEffect117(() => {
33086
33158
  if (!provideSigningHandler) return;
33087
33159
  provideSigningHandler(execute);
33088
33160
  }, [provideSigningHandler, execute]);
@@ -33119,7 +33191,7 @@ registerActionTypeUI("qi/calendar.event.update", {
33119
33191
  });
33120
33192
 
33121
33193
  // src/mantine/blocks/action/actionTypes/calendar/eventList/CalendarEventListConfig.tsx
33122
- import React295, { useCallback as useCallback122, useEffect as useEffect117, useState as useState145 } from "react";
33194
+ import React295, { useCallback as useCallback122, useEffect as useEffect118, useState as useState145 } from "react";
33123
33195
  import { Divider as Divider28, Group as Group112, Stack as Stack212, Switch as Switch7, Text as Text187 } from "@mantine/core";
33124
33196
 
33125
33197
  // src/core/lib/actionRegistry/actions/calendar/eventList.types.ts
@@ -33161,7 +33233,7 @@ function serializeCalendarEventListInputs(inputs) {
33161
33233
  // src/mantine/blocks/action/actionTypes/calendar/eventList/CalendarEventListConfig.tsx
33162
33234
  var CalendarEventListConfig = ({ inputs, onInputsChange, editor, blockId }) => {
33163
33235
  const [local, setLocal] = useState145(() => parseCalendarEventListInputs(inputs));
33164
- useEffect117(() => {
33236
+ useEffect118(() => {
33165
33237
  setLocal(parseCalendarEventListInputs(inputs));
33166
33238
  }, [inputs]);
33167
33239
  const update = useCallback122(
@@ -33382,7 +33454,7 @@ registerActionTypeUI("qi/calendar.event.list", {
33382
33454
  });
33383
33455
 
33384
33456
  // src/mantine/blocks/action/actionTypes/xero/contactCreate/XeroContactCreateConfig.tsx
33385
- import React297, { useCallback as useCallback124, useEffect as useEffect118, useState as useState147 } from "react";
33457
+ import React297, { useCallback as useCallback124, useEffect as useEffect119, useState as useState147 } from "react";
33386
33458
  import { Divider as Divider29, Group as Group113, Stack as Stack214, Switch as Switch8, Text as Text188 } from "@mantine/core";
33387
33459
 
33388
33460
  // src/core/lib/actionRegistry/actions/xero/contactCreate.types.ts
@@ -33436,7 +33508,7 @@ function serializeXeroContactCreateInputs(inputs) {
33436
33508
  // src/mantine/blocks/action/actionTypes/xero/contactCreate/XeroContactCreateConfig.tsx
33437
33509
  var XeroContactCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
33438
33510
  const [local, setLocal] = useState147(() => parseXeroContactCreateInputs(inputs));
33439
- useEffect118(() => {
33511
+ useEffect119(() => {
33440
33512
  setLocal(parseXeroContactCreateInputs(inputs));
33441
33513
  }, [inputs]);
33442
33514
  const update = useCallback124(
@@ -33501,7 +33573,7 @@ var XeroContactCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
33501
33573
  };
33502
33574
 
33503
33575
  // src/mantine/blocks/action/actionTypes/xero/contactCreate/XeroContactCreateFlowDetail.tsx
33504
- import React298, { useCallback as useCallback125, useEffect as useEffect119, useMemo as useMemo119, useState as useState148 } from "react";
33576
+ import React298, { useCallback as useCallback125, useEffect as useEffect120, useMemo as useMemo119, useState as useState148 } from "react";
33505
33577
  import { Alert as Alert65, Stack as Stack215, Text as Text189 } from "@mantine/core";
33506
33578
  var XeroContactCreateFlowDetail = ({
33507
33579
  inputs,
@@ -33551,7 +33623,7 @@ var XeroContactCreateFlowDetail = ({
33551
33623
  phone_number: resolve("phone_number"),
33552
33624
  mobile_number: resolve("mobile_number")
33553
33625
  }));
33554
- useEffect119(() => {
33626
+ useEffect120(() => {
33555
33627
  setLocal((prev) => ({
33556
33628
  Name: prev.Name || resolve("Name"),
33557
33629
  EmailAddress: prev.EmailAddress || resolve("EmailAddress"),
@@ -33569,10 +33641,10 @@ var XeroContactCreateFlowDetail = ({
33569
33641
  const entityMismatch = hasConnection && entityDid && connection.entityDid && connection.entityDid !== entityDid;
33570
33642
  const isCompleted = runtime.state === "completed";
33571
33643
  const readyToSign = hasConnection && !entityMismatch && !!local.Name.trim() && !isCompleted;
33572
- useEffect119(() => {
33644
+ useEffect120(() => {
33573
33645
  unlockSigning?.(readyToSign);
33574
33646
  }, [unlockSigning, readyToSign]);
33575
- useEffect119(() => {
33647
+ useEffect120(() => {
33576
33648
  registerRuntimeInputs?.(local);
33577
33649
  }, [registerRuntimeInputs, local]);
33578
33650
  const [error, setError] = useState148(null);
@@ -33683,7 +33755,7 @@ var XeroContactCreateFlowDetail = ({
33683
33755
  ucanService,
33684
33756
  updateRuntime
33685
33757
  ]);
33686
- useEffect119(() => {
33758
+ useEffect120(() => {
33687
33759
  if (!provideSigningHandler) return;
33688
33760
  provideSigningHandler(execute);
33689
33761
  }, [provideSigningHandler, execute]);
@@ -33698,7 +33770,7 @@ registerActionTypeUI("qi/xero.contact.create", {
33698
33770
  });
33699
33771
 
33700
33772
  // src/mantine/blocks/action/actionTypes/xero/invoiceCreate/XeroInvoiceCreateConfig.tsx
33701
- import React300, { useCallback as useCallback127, useEffect as useEffect120, useState as useState149 } from "react";
33773
+ import React300, { useCallback as useCallback127, useEffect as useEffect121, useState as useState149 } from "react";
33702
33774
  import { Divider as Divider31, Group as Group115, Stack as Stack217, Text as Text191 } from "@mantine/core";
33703
33775
 
33704
33776
  // src/mantine/blocks/action/actionTypes/xero/invoiceCreate/XeroLineItemsEditor.tsx
@@ -33951,7 +34023,7 @@ function IterativeMapEditor({
33951
34023
  // src/mantine/blocks/action/actionTypes/xero/invoiceCreate/XeroInvoiceCreateConfig.tsx
33952
34024
  var XeroInvoiceCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
33953
34025
  const [local, setLocal] = useState149(() => parseXeroInvoiceCreateInputs(inputs));
33954
- useEffect120(() => {
34026
+ useEffect121(() => {
33955
34027
  setLocal(parseXeroInvoiceCreateInputs(inputs));
33956
34028
  }, [inputs]);
33957
34029
  const update = useCallback127(
@@ -34058,7 +34130,7 @@ var XeroInvoiceCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
34058
34130
  };
34059
34131
 
34060
34132
  // src/mantine/blocks/action/actionTypes/xero/invoiceCreate/XeroInvoiceCreateFlowDetail.tsx
34061
- import React301, { useCallback as useCallback128, useEffect as useEffect121, useMemo as useMemo121, useState as useState150 } from "react";
34133
+ import React301, { useCallback as useCallback128, useEffect as useEffect122, useMemo as useMemo121, useState as useState150 } from "react";
34062
34134
  import { Alert as Alert67, Badge as Badge54, Stack as Stack218, Text as Text192 } from "@mantine/core";
34063
34135
  function resolveIterativeSource(source, editorDocument, opts) {
34064
34136
  const refs = parseReferences(source || "");
@@ -34139,7 +34211,7 @@ var XeroInvoiceCreateFlowDetail = ({
34139
34211
  InvoiceNumber: seedFromTemplate("InvoiceNumber"),
34140
34212
  Reference: seedFromTemplate("Reference")
34141
34213
  }));
34142
- useEffect121(() => {
34214
+ useEffect122(() => {
34143
34215
  setLocal((prev) => {
34144
34216
  const next = {
34145
34217
  ContactID: prev.ContactID || seedFromTemplate("ContactID"),
@@ -34173,10 +34245,10 @@ var XeroInvoiceCreateFlowDetail = ({
34173
34245
  }, [parsed.LineItems, editor, resolveOpts]);
34174
34246
  const hasContact = !!(local.ContactID.trim() || local.ContactName.trim());
34175
34247
  const readyToSign = hasConnection && !entityMismatch && lineItemsValidation.ok && hasContact && !isCompleted;
34176
- useEffect121(() => {
34248
+ useEffect122(() => {
34177
34249
  unlockSigning?.(readyToSign);
34178
34250
  }, [unlockSigning, readyToSign]);
34179
- useEffect121(() => {
34251
+ useEffect122(() => {
34180
34252
  registerRuntimeInputs?.(local);
34181
34253
  }, [registerRuntimeInputs, local]);
34182
34254
  const [error, setError] = useState150(null);
@@ -34293,7 +34365,7 @@ var XeroInvoiceCreateFlowDetail = ({
34293
34365
  ucanService,
34294
34366
  updateRuntime
34295
34367
  ]);
34296
- useEffect121(() => {
34368
+ useEffect122(() => {
34297
34369
  if (!provideSigningHandler) return;
34298
34370
  provideSigningHandler(execute);
34299
34371
  }, [provideSigningHandler, execute]);
@@ -34317,7 +34389,7 @@ registerActionTypeUI("qi/xero.invoice.create", {
34317
34389
  });
34318
34390
 
34319
34391
  // src/mantine/blocks/action/actionTypes/xero/invoiceList/XeroInvoiceListConfig.tsx
34320
- import React302, { useCallback as useCallback129, useEffect as useEffect122, useState as useState151 } from "react";
34392
+ import React302, { useCallback as useCallback129, useEffect as useEffect123, useState as useState151 } from "react";
34321
34393
  import { Divider as Divider32, Group as Group116, Stack as Stack219, Switch as Switch9, Text as Text193 } from "@mantine/core";
34322
34394
 
34323
34395
  // src/core/lib/actionRegistry/actions/xero/invoiceList.types.ts
@@ -34361,7 +34433,7 @@ function serializeXeroInvoiceListInputs(inputs) {
34361
34433
  // src/mantine/blocks/action/actionTypes/xero/invoiceList/XeroInvoiceListConfig.tsx
34362
34434
  var XeroInvoiceListConfig = ({ inputs, onInputsChange, editor, blockId }) => {
34363
34435
  const [local, setLocal] = useState151(() => parseXeroInvoiceListInputs(inputs));
34364
- useEffect122(() => {
34436
+ useEffect123(() => {
34365
34437
  setLocal(parseXeroInvoiceListInputs(inputs));
34366
34438
  }, [inputs]);
34367
34439
  const update = useCallback129(
@@ -34583,11 +34655,11 @@ registerActionTypeUI("qi/xero.invoice.list", {
34583
34655
  });
34584
34656
 
34585
34657
  // src/mantine/blocks/action/actionTypes/xero/paymentCreate/XeroPaymentCreateConfig.tsx
34586
- import React304, { useCallback as useCallback131, useEffect as useEffect123, useState as useState153 } from "react";
34658
+ import React304, { useCallback as useCallback131, useEffect as useEffect124, useState as useState153 } from "react";
34587
34659
  import { Divider as Divider33, Group as Group117, Stack as Stack221, Text as Text194 } from "@mantine/core";
34588
34660
  var XeroPaymentCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
34589
34661
  const [local, setLocal] = useState153(() => parseXeroPaymentCreateInputs(inputs));
34590
- useEffect123(() => {
34662
+ useEffect124(() => {
34591
34663
  setLocal(parseXeroPaymentCreateInputs(inputs));
34592
34664
  }, [inputs]);
34593
34665
  const update = useCallback131(
@@ -34678,7 +34750,7 @@ var XeroPaymentCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
34678
34750
  };
34679
34751
 
34680
34752
  // src/mantine/blocks/action/actionTypes/xero/paymentCreate/XeroPaymentCreateFlowDetail.tsx
34681
- import React305, { useCallback as useCallback132, useEffect as useEffect124, useMemo as useMemo123, useState as useState154 } from "react";
34753
+ import React305, { useCallback as useCallback132, useEffect as useEffect125, useMemo as useMemo123, useState as useState154 } from "react";
34682
34754
  import { Alert as Alert69, Stack as Stack222, Text as Text195 } from "@mantine/core";
34683
34755
  var XeroPaymentCreateFlowDetail = ({
34684
34756
  inputs,
@@ -34728,7 +34800,7 @@ var XeroPaymentCreateFlowDetail = ({
34728
34800
  Date: seedFromTemplate("Date"),
34729
34801
  Reference: seedFromTemplate("Reference")
34730
34802
  }));
34731
- useEffect124(() => {
34803
+ useEffect125(() => {
34732
34804
  setLocal((prev) => {
34733
34805
  const next = {
34734
34806
  InvoiceID: prev.InvoiceID || seedFromTemplate("InvoiceID"),
@@ -34757,10 +34829,10 @@ var XeroPaymentCreateFlowDetail = ({
34757
34829
  }, [local.Amount]);
34758
34830
  const amountValid = Number.isFinite(amountNumber) && amountNumber > 0;
34759
34831
  const readyToSign = hasConnection && !entityMismatch && !!local.InvoiceID.trim() && !!local.AccountID.trim() && amountValid && !isCompleted;
34760
- useEffect124(() => {
34832
+ useEffect125(() => {
34761
34833
  unlockSigning?.(readyToSign);
34762
34834
  }, [unlockSigning, readyToSign]);
34763
- useEffect124(() => {
34835
+ useEffect125(() => {
34764
34836
  registerRuntimeInputs?.(local);
34765
34837
  }, [registerRuntimeInputs, local]);
34766
34838
  const [error, setError] = useState154(null);
@@ -34874,7 +34946,7 @@ var XeroPaymentCreateFlowDetail = ({
34874
34946
  ucanService,
34875
34947
  updateRuntime
34876
34948
  ]);
34877
- useEffect124(() => {
34949
+ useEffect125(() => {
34878
34950
  if (!provideSigningHandler) return;
34879
34951
  provideSigningHandler(execute);
34880
34952
  }, [provideSigningHandler, execute]);
@@ -35017,7 +35089,7 @@ registerActionTypeUI("qi/wallet.generate", {
35017
35089
  });
35018
35090
 
35019
35091
  // src/mantine/blocks/action/actionTypes/walletFund/WalletFundConfig.tsx
35020
- import React308, { useCallback as useCallback134, useEffect as useEffect125, useState as useState155 } from "react";
35092
+ import React308, { useCallback as useCallback134, useEffect as useEffect126, useState as useState155 } from "react";
35021
35093
  import { Stack as Stack225, Text as Text198, NumberInput as NumberInput5 } from "@mantine/core";
35022
35094
 
35023
35095
  // src/mantine/blocks/action/actionTypes/walletFund/types.ts
@@ -35043,7 +35115,7 @@ function serializeWalletFundInputs(inputs) {
35043
35115
  // src/mantine/blocks/action/actionTypes/walletFund/WalletFundConfig.tsx
35044
35116
  var WalletFundConfig = ({ inputs, onInputsChange }) => {
35045
35117
  const [local, setLocal] = useState155(() => parseWalletFundInputs(inputs));
35046
- useEffect125(() => {
35118
+ useEffect126(() => {
35047
35119
  setLocal(parseWalletFundInputs(inputs));
35048
35120
  }, [inputs]);
35049
35121
  const update = useCallback134(
@@ -35058,7 +35130,7 @@ var WalletFundConfig = ({ inputs, onInputsChange }) => {
35058
35130
  };
35059
35131
 
35060
35132
  // src/mantine/blocks/action/actionTypes/walletFund/WalletFundFlowDetail.tsx
35061
- import React309, { useCallback as useCallback135, useEffect as useEffect126, useMemo as useMemo125 } from "react";
35133
+ import React309, { useCallback as useCallback135, useEffect as useEffect127, useMemo as useMemo125 } from "react";
35062
35134
  import { Alert as Alert71, Group as Group119, Loader as Loader64, Stack as Stack226, Text as Text199 } from "@mantine/core";
35063
35135
  import { IconCheck as IconCheck27, IconAlertCircle as IconAlertCircle25 } from "@tabler/icons-react";
35064
35136
  var WalletFundFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isDisabled, provideSigningHandler, unlockSigning }) => {
@@ -35165,10 +35237,10 @@ var WalletFundFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isD
35165
35237
  updateRuntime,
35166
35238
  schemaVersion
35167
35239
  ]);
35168
- useEffect126(() => {
35240
+ useEffect127(() => {
35169
35241
  provideSigningHandler?.(handleExecute);
35170
35242
  }, [provideSigningHandler, handleExecute]);
35171
- useEffect126(() => {
35243
+ useEffect127(() => {
35172
35244
  unlockSigning?.(!!resolvedAddress && !isCompleted && !isRunning);
35173
35245
  }, [unlockSigning, resolvedAddress, isCompleted, isRunning]);
35174
35246
  const handleRetry = useCallback135(() => {
@@ -35305,7 +35377,7 @@ registerActionTypeUI("qi/wallet.generateAndFund", {
35305
35377
  });
35306
35378
 
35307
35379
  // src/mantine/blocks/action/actionTypes/iidCreate/IidCreateConfig.tsx
35308
- import React312, { useCallback as useCallback137, useEffect as useEffect127, useState as useState156 } from "react";
35380
+ import React312, { useCallback as useCallback137, useEffect as useEffect128, useState as useState156 } from "react";
35309
35381
  import { Stack as Stack229, Text as Text202 } from "@mantine/core";
35310
35382
 
35311
35383
  // src/mantine/blocks/action/actionTypes/iidCreate/types.ts
@@ -35334,7 +35406,7 @@ function serializeIidCreateInputs(inputs) {
35334
35406
  // src/mantine/blocks/action/actionTypes/iidCreate/IidCreateConfig.tsx
35335
35407
  var IidCreateConfig = ({ inputs, onInputsChange }) => {
35336
35408
  const [local, setLocal] = useState156(() => parseIidCreateInputs(inputs));
35337
- useEffect127(() => {
35409
+ useEffect128(() => {
35338
35410
  setLocal(parseIidCreateInputs(inputs));
35339
35411
  }, [inputs]);
35340
35412
  const update = useCallback137(
@@ -35552,7 +35624,7 @@ registerActionTypeUI("qi/iid.create", {
35552
35624
  });
35553
35625
 
35554
35626
  // src/mantine/blocks/action/actionTypes/matrixRegister/MatrixRegisterConfig.tsx
35555
- import React314, { useCallback as useCallback139, useEffect as useEffect128, useState as useState157 } from "react";
35627
+ import React314, { useCallback as useCallback139, useEffect as useEffect129, useState as useState157 } from "react";
35556
35628
  import { Stack as Stack231, Text as Text204 } from "@mantine/core";
35557
35629
 
35558
35630
  // src/mantine/blocks/action/actionTypes/matrixRegister/types.ts
@@ -35585,7 +35657,7 @@ function serializeMatrixRegisterInputs(inputs) {
35585
35657
  // src/mantine/blocks/action/actionTypes/matrixRegister/MatrixRegisterConfig.tsx
35586
35658
  var MatrixRegisterConfig = ({ inputs, onInputsChange }) => {
35587
35659
  const [local, setLocal] = useState157(() => parseMatrixRegisterInputs(inputs));
35588
- useEffect128(() => {
35660
+ useEffect129(() => {
35589
35661
  setLocal(parseMatrixRegisterInputs(inputs));
35590
35662
  }, [inputs]);
35591
35663
  const update = useCallback139(
@@ -35763,7 +35835,7 @@ registerActionTypeUI("qi/matrix.register", {
35763
35835
  });
35764
35836
 
35765
35837
  // src/mantine/blocks/action/actionTypes/identityCreate/IdentityCreateConfig.tsx
35766
- import React316, { useCallback as useCallback141, useEffect as useEffect129, useState as useState158 } from "react";
35838
+ import React316, { useCallback as useCallback141, useEffect as useEffect130, useState as useState158 } from "react";
35767
35839
  import { Stack as Stack233, Text as Text206 } from "@mantine/core";
35768
35840
 
35769
35841
  // src/mantine/blocks/action/actionTypes/identityCreate/types.ts
@@ -35795,7 +35867,7 @@ function serializeIdentityCreateInputs(inputs) {
35795
35867
  // src/mantine/blocks/action/actionTypes/identityCreate/IdentityCreateConfig.tsx
35796
35868
  var IdentityCreateConfig = ({ inputs, onInputsChange }) => {
35797
35869
  const [local, setLocal] = useState158(() => parseIdentityCreateInputs(inputs));
35798
- useEffect129(() => {
35870
+ useEffect130(() => {
35799
35871
  setLocal(parseIdentityCreateInputs(inputs));
35800
35872
  }, [inputs]);
35801
35873
  const update = useCallback141(
@@ -36049,7 +36121,7 @@ registerActionTypeUI("qi/identity.create", {
36049
36121
  });
36050
36122
 
36051
36123
  // src/mantine/blocks/action/actionTypes/entityCreateOracle/EntityCreateOracleConfig.tsx
36052
- import React318, { useCallback as useCallback143, useEffect as useEffect130, useState as useState159 } from "react";
36124
+ import React318, { useCallback as useCallback143, useEffect as useEffect131, useState as useState159 } from "react";
36053
36125
  import { Divider as Divider34, Stack as Stack235, Text as Text208 } from "@mantine/core";
36054
36126
 
36055
36127
  // src/mantine/blocks/action/actionTypes/entityCreateOracle/types.ts
@@ -36114,7 +36186,7 @@ function serializeEntityCreateOracleInputs(inputs) {
36114
36186
  // src/mantine/blocks/action/actionTypes/entityCreateOracle/EntityCreateOracleConfig.tsx
36115
36187
  var EntityCreateOracleConfig = ({ inputs, onInputsChange }) => {
36116
36188
  const [local, setLocal] = useState159(() => parseEntityCreateOracleInputs(inputs));
36117
- useEffect130(() => {
36189
+ useEffect131(() => {
36118
36190
  setLocal(parseEntityCreateOracleInputs(inputs));
36119
36191
  }, [inputs]);
36120
36192
  const update = useCallback143(
@@ -36414,7 +36486,7 @@ registerActionTypeUI("qi/entity.createOracle", {
36414
36486
  });
36415
36487
 
36416
36488
  // src/mantine/blocks/action/actionTypes/sandboxProvision/SandboxProvisionConfig.tsx
36417
- import React320, { useCallback as useCallback145, useEffect as useEffect131, useState as useState160 } from "react";
36489
+ import React320, { useCallback as useCallback145, useEffect as useEffect132, useState as useState160 } from "react";
36418
36490
  import { Stack as Stack237, Text as Text210 } from "@mantine/core";
36419
36491
 
36420
36492
  // src/mantine/blocks/action/actionTypes/sandboxProvision/types.ts
@@ -36439,7 +36511,7 @@ function serializeSandboxProvisionInputs(inputs) {
36439
36511
  // src/mantine/blocks/action/actionTypes/sandboxProvision/SandboxProvisionConfig.tsx
36440
36512
  var SandboxProvisionConfig = ({ inputs, onInputsChange }) => {
36441
36513
  const [local, setLocal] = useState160(() => parseSandboxProvisionInputs(inputs));
36442
- useEffect131(() => {
36514
+ useEffect132(() => {
36443
36515
  setLocal(parseSandboxProvisionInputs(inputs));
36444
36516
  }, [inputs]);
36445
36517
  const update = useCallback145(
@@ -36586,7 +36658,7 @@ registerActionTypeUI("qi/sandbox.provision", {
36586
36658
  });
36587
36659
 
36588
36660
  // src/mantine/blocks/action/actionTypes/oracleContract/OracleContractConfig.tsx
36589
- import React322, { useCallback as useCallback147, useEffect as useEffect132, useState as useState161 } from "react";
36661
+ import React322, { useCallback as useCallback147, useEffect as useEffect133, useState as useState161 } from "react";
36590
36662
  import { Stack as Stack239, Text as Text212 } from "@mantine/core";
36591
36663
 
36592
36664
  // src/mantine/blocks/action/actionTypes/oracleContract/types.ts
@@ -36609,7 +36681,7 @@ function serializeOracleContractInputs(inputs) {
36609
36681
  // src/mantine/blocks/action/actionTypes/oracleContract/OracleContractConfig.tsx
36610
36682
  var OracleContractConfig = ({ inputs, onInputsChange }) => {
36611
36683
  const [local, setLocal] = useState161(() => parseOracleContractInputs(inputs));
36612
- useEffect132(() => {
36684
+ useEffect133(() => {
36613
36685
  setLocal(parseOracleContractInputs(inputs));
36614
36686
  }, [inputs]);
36615
36687
  const update = useCallback147(
@@ -36746,7 +36818,7 @@ registerActionTypeUI("qi/oracle.contract", {
36746
36818
  });
36747
36819
 
36748
36820
  // src/mantine/blocks/action/actionTypes/oracleStoreSecrets/OracleStoreSecretsConfig.tsx
36749
- import React324, { useCallback as useCallback149, useEffect as useEffect133, useState as useState162 } from "react";
36821
+ import React324, { useCallback as useCallback149, useEffect as useEffect134, useState as useState162 } from "react";
36750
36822
  import { Divider as Divider35, Stack as Stack241, Text as Text214 } from "@mantine/core";
36751
36823
 
36752
36824
  // src/mantine/blocks/action/actionTypes/oracleStoreSecrets/types.ts
@@ -36795,7 +36867,7 @@ function serializeOracleStoreSecretsInputs(inputs) {
36795
36867
  // src/mantine/blocks/action/actionTypes/oracleStoreSecrets/OracleStoreSecretsConfig.tsx
36796
36868
  var OracleStoreSecretsConfig = ({ inputs, onInputsChange }) => {
36797
36869
  const [local, setLocal] = useState162(() => parseOracleStoreSecretsInputs(inputs));
36798
- useEffect133(() => {
36870
+ useEffect134(() => {
36799
36871
  setLocal(parseOracleStoreSecretsInputs(inputs));
36800
36872
  }, [inputs]);
36801
36873
  const update = useCallback149(
@@ -36930,7 +37002,7 @@ var OracleStoreSecretsConfig = ({ inputs, onInputsChange }) => {
36930
37002
  };
36931
37003
 
36932
37004
  // src/mantine/blocks/action/actionTypes/oracleStoreSecrets/OracleStoreSecretsFlowDetail.tsx
36933
- import React325, { useCallback as useCallback150, useEffect as useEffect134, useMemo as useMemo133, useRef as useRef33, useState as useState163 } from "react";
37005
+ import React325, { useCallback as useCallback150, useEffect as useEffect135, useMemo as useMemo133, useRef as useRef33, useState as useState163 } from "react";
36934
37006
  import { Alert as Alert79, Button as Button74, Collapse as Collapse11, Divider as Divider36, Group as Group127, Loader as Loader72, Stack as Stack242, Text as Text215 } from "@mantine/core";
36935
37007
  import { IconAlertCircle as IconAlertCircle33, IconCheck as IconCheck35, IconChevronDown as IconChevronDown11, IconChevronUp as IconChevronUp5, IconLock as IconLock2 } from "@tabler/icons-react";
36936
37008
  var EXPECTED_SECRETS = ["SECP_MNEMONIC", "MATRIX_ORACLE_ADMIN_PASSWORD", "MATRIX_ORACLE_ADMIN_ACCESS_TOKEN", "MATRIX_RECOVERY_PHRASE", "MATRIX_VALUE_PIN", "OPEN_ROUTER_API_KEY"];
@@ -37126,7 +37198,7 @@ var OracleStoreSecretsFlowDetail = ({ inputs, editor, block, runtime, updateRunt
37126
37198
  missingFields
37127
37199
  ]);
37128
37200
  const idempotencyCheckRef = useRef33(false);
37129
- useEffect134(() => {
37201
+ useEffect135(() => {
37130
37202
  if (idempotencyCheckRef.current) return;
37131
37203
  if (!inputsReady) return;
37132
37204
  if (runtime.state === "completed") return;
@@ -37159,7 +37231,7 @@ var OracleStoreSecretsFlowDetail = ({ inputs, editor, block, runtime, updateRunt
37159
37231
  }
37160
37232
  })();
37161
37233
  }, [inputsReady, runtime.state, isDisabled, services, resolvedInputs.matrixRoomId, updateRuntime]);
37162
- useEffect134(() => {
37234
+ useEffect135(() => {
37163
37235
  if (constantsFetchRef.current) return;
37164
37236
  if (!inputsReady) return;
37165
37237
  if (!resolvedInputs.oracleName) return;
@@ -37211,7 +37283,7 @@ registerActionTypeUI("qi/oracle.storeSecrets", {
37211
37283
  });
37212
37284
 
37213
37285
  // src/mantine/blocks/action/actionTypes/oracleStoreConfig/OracleStoreConfigConfig.tsx
37214
- import React326, { useCallback as useCallback151, useEffect as useEffect135, useState as useState164 } from "react";
37286
+ import React326, { useCallback as useCallback151, useEffect as useEffect136, useState as useState164 } from "react";
37215
37287
  import { Divider as Divider37, Stack as Stack243, Text as Text216 } from "@mantine/core";
37216
37288
 
37217
37289
  // src/mantine/blocks/action/actionTypes/oracleStoreConfig/types.ts
@@ -37282,7 +37354,7 @@ function serializeOracleStoreConfigInputs(inputs) {
37282
37354
  // src/mantine/blocks/action/actionTypes/oracleStoreConfig/OracleStoreConfigConfig.tsx
37283
37355
  var OracleStoreConfigConfig = ({ inputs, onInputsChange }) => {
37284
37356
  const [local, setLocal] = useState164(() => parseOracleStoreConfigInputs(inputs));
37285
- useEffect135(() => {
37357
+ useEffect136(() => {
37286
37358
  setLocal(parseOracleStoreConfigInputs(inputs));
37287
37359
  }, [inputs]);
37288
37360
  const update = useCallback151(
@@ -37545,7 +37617,7 @@ registerActionTypeUI("qi/oracle.storeConfig", {
37545
37617
  });
37546
37618
 
37547
37619
  // src/mantine/blocks/action/actionTypes/oracleStoreSecretsAndConfig/OracleStoreSecretsAndConfigConfig.tsx
37548
- import React328, { useCallback as useCallback153, useEffect as useEffect136, useState as useState165 } from "react";
37620
+ import React328, { useCallback as useCallback153, useEffect as useEffect137, useState as useState165 } from "react";
37549
37621
  import { Divider as Divider38, Stack as Stack245, Text as Text218 } from "@mantine/core";
37550
37622
 
37551
37623
  // src/mantine/blocks/action/actionTypes/oracleStoreSecretsAndConfig/types.ts
@@ -37621,7 +37693,7 @@ function serializeOracleStoreSecretsAndConfigInputs(inputs) {
37621
37693
  // src/mantine/blocks/action/actionTypes/oracleStoreSecretsAndConfig/OracleStoreSecretsAndConfigConfig.tsx
37622
37694
  var OracleStoreSecretsAndConfigConfig = ({ inputs, onInputsChange }) => {
37623
37695
  const [local, setLocal] = useState165(() => parseOracleStoreSecretsAndConfigInputs(inputs));
37624
- useEffect136(() => {
37696
+ useEffect137(() => {
37625
37697
  setLocal(parseOracleStoreSecretsAndConfigInputs(inputs));
37626
37698
  }, [inputs]);
37627
37699
  const update = useCallback153(
@@ -37804,7 +37876,7 @@ var OracleStoreSecretsAndConfigConfig = ({ inputs, onInputsChange }) => {
37804
37876
  };
37805
37877
 
37806
37878
  // src/mantine/blocks/action/actionTypes/oracleStoreSecretsAndConfig/OracleStoreSecretsAndConfigFlowDetail.tsx
37807
- import React329, { useCallback as useCallback154, useEffect as useEffect137, useMemo as useMemo135, useRef as useRef34, useState as useState166 } from "react";
37879
+ import React329, { useCallback as useCallback154, useEffect as useEffect138, useMemo as useMemo135, useRef as useRef34, useState as useState166 } from "react";
37808
37880
  import { Alert as Alert81, Button as Button76, Collapse as Collapse12, Divider as Divider39, Group as Group129, Loader as Loader74, Stack as Stack246, Text as Text219 } from "@mantine/core";
37809
37881
  import { IconAlertCircle as IconAlertCircle35, IconCheck as IconCheck37, IconChevronDown as IconChevronDown12, IconChevronUp as IconChevronUp6, IconLock as IconLock3 } from "@tabler/icons-react";
37810
37882
  var EXPECTED_SECRETS2 = ["SECP_MNEMONIC", "MATRIX_ORACLE_ADMIN_PASSWORD", "MATRIX_ORACLE_ADMIN_ACCESS_TOKEN", "MATRIX_RECOVERY_PHRASE", "MATRIX_VALUE_PIN", "OPEN_ROUTER_API_KEY"];
@@ -38012,7 +38084,7 @@ var OracleStoreSecretsAndConfigFlowDetail = ({ inputs, editor, block, runtime, u
38012
38084
  missingFields
38013
38085
  ]);
38014
38086
  const idempotencyCheckRef = useRef34(false);
38015
- useEffect137(() => {
38087
+ useEffect138(() => {
38016
38088
  if (idempotencyCheckRef.current) return;
38017
38089
  if (!inputsReady) return;
38018
38090
  if (runtime.state === "completed") return;
@@ -38043,7 +38115,7 @@ var OracleStoreSecretsAndConfigFlowDetail = ({ inputs, editor, block, runtime, u
38043
38115
  }
38044
38116
  })();
38045
38117
  }, [inputsReady, runtime.state, isDisabled, services, resolvedInputs.matrixRoomId, updateRuntime]);
38046
- useEffect137(() => {
38118
+ useEffect138(() => {
38047
38119
  if (constantsFetchRef.current) return;
38048
38120
  if (!inputsReady) return;
38049
38121
  if (!resolvedInputs.oracleName) return;
@@ -38091,7 +38163,7 @@ registerActionTypeUI("qi/oracle.storeSecretsAndConfig", {
38091
38163
  });
38092
38164
 
38093
38165
  // src/mantine/blocks/action/actionTypes/oracleConfigureOracle/OracleConfigureOracleConfig.tsx
38094
- import React330, { useCallback as useCallback155, useEffect as useEffect138, useState as useState167 } from "react";
38166
+ import React330, { useCallback as useCallback155, useEffect as useEffect139, useState as useState167 } from "react";
38095
38167
  import { Divider as Divider40, Stack as Stack247, Text as Text220 } from "@mantine/core";
38096
38168
 
38097
38169
  // src/mantine/blocks/action/actionTypes/oracleConfigureOracle/types.ts
@@ -38168,7 +38240,7 @@ function serializeOracleConfigureOracleInputs(inputs) {
38168
38240
  // src/mantine/blocks/action/actionTypes/oracleConfigureOracle/OracleConfigureOracleConfig.tsx
38169
38241
  var OracleConfigureOracleConfig = ({ inputs, onInputsChange }) => {
38170
38242
  const [local, setLocal] = useState167(() => parseOracleConfigureOracleInputs(inputs));
38171
- useEffect138(() => {
38243
+ useEffect139(() => {
38172
38244
  setLocal(parseOracleConfigureOracleInputs(inputs));
38173
38245
  }, [inputs]);
38174
38246
  const update = useCallback155(
@@ -38351,7 +38423,7 @@ var OracleConfigureOracleConfig = ({ inputs, onInputsChange }) => {
38351
38423
  };
38352
38424
 
38353
38425
  // src/mantine/blocks/action/actionTypes/oracleConfigureOracle/OracleConfigureOracleFlowDetail.tsx
38354
- import React331, { useCallback as useCallback156, useEffect as useEffect139, useMemo as useMemo136, useRef as useRef35, useState as useState168 } from "react";
38426
+ import React331, { useCallback as useCallback156, useEffect as useEffect140, useMemo as useMemo136, useRef as useRef35, useState as useState168 } from "react";
38355
38427
  import { Alert as Alert82, Button as Button77, Collapse as Collapse13, Divider as Divider41, Group as Group130, Loader as Loader75, Stack as Stack248, Text as Text221 } from "@mantine/core";
38356
38428
  import { IconAlertCircle as IconAlertCircle36, IconCheck as IconCheck38, IconChevronDown as IconChevronDown13, IconChevronUp as IconChevronUp7, IconLock as IconLock4 } from "@tabler/icons-react";
38357
38429
  var EXPECTED_SECRETS3 = ["SECP_MNEMONIC", "MATRIX_ORACLE_ADMIN_PASSWORD", "MATRIX_ORACLE_ADMIN_ACCESS_TOKEN", "MATRIX_RECOVERY_PHRASE", "MATRIX_VALUE_PIN", "OPEN_ROUTER_API_KEY"];
@@ -38580,7 +38652,7 @@ var OracleConfigureOracleFlowDetail = ({ inputs, editor, block, runtime, updateR
38580
38652
  missingFields
38581
38653
  ]);
38582
38654
  const idempotencyCheckRef = useRef35(false);
38583
- useEffect139(() => {
38655
+ useEffect140(() => {
38584
38656
  if (idempotencyCheckRef.current) return;
38585
38657
  if (!inputsReady) return;
38586
38658
  if (runtime.state === "completed") return;
@@ -38612,7 +38684,7 @@ var OracleConfigureOracleFlowDetail = ({ inputs, editor, block, runtime, updateR
38612
38684
  }
38613
38685
  })();
38614
38686
  }, [inputsReady, runtime.state, runtime.output?.userOracleRoomId, isDisabled, services, updateRuntime]);
38615
- useEffect139(() => {
38687
+ useEffect140(() => {
38616
38688
  if (constantsFetchRef.current) return;
38617
38689
  if (!inputsReady) return;
38618
38690
  if (!resolvedInputs.oracleName) return;
@@ -39399,14 +39471,14 @@ import React342, { useCallback as useCallback161 } from "react";
39399
39471
  import { IconSettings as IconSettings19 } from "@tabler/icons-react";
39400
39472
 
39401
39473
  // src/mantine/blocks/location/template/GeneralTab.tsx
39402
- import React341, { useEffect as useEffect141, useRef as useRef36, useState as useState171 } from "react";
39474
+ import React341, { useEffect as useEffect142, useRef as useRef36, useState as useState171 } from "react";
39403
39475
  import { Box as Box63, Divider as Divider42, Stack as Stack255, Text as Text228 } from "@mantine/core";
39404
39476
 
39405
39477
  // src/core/hooks/useUnlMap.ts
39406
- import { useEffect as useEffect140, useState as useState169 } from "react";
39478
+ import { useEffect as useEffect141, useState as useState169 } from "react";
39407
39479
  function useUnlMap() {
39408
39480
  const [status, setStatus] = useState169("loading");
39409
- useEffect140(() => {
39481
+ useEffect141(() => {
39410
39482
  if (typeof window === "undefined") {
39411
39483
  return;
39412
39484
  }
@@ -39580,13 +39652,13 @@ var GeneralTab17 = ({ title, description, latitude, longitude, onTitleChange, on
39580
39652
  const mapRef = useRef36(null);
39581
39653
  const wrapperRef = useRef36(null);
39582
39654
  const containerRef = useRef36(null);
39583
- useEffect141(() => {
39655
+ useEffect142(() => {
39584
39656
  setLocalTitle(title);
39585
39657
  }, [title]);
39586
- useEffect141(() => {
39658
+ useEffect142(() => {
39587
39659
  setLocalDescription(description);
39588
39660
  }, [description]);
39589
- useEffect141(() => {
39661
+ useEffect142(() => {
39590
39662
  if (status !== "ready" || !UnlSdk || mapRef.current || !mapConfig || !containerRef.current || !wrapperRef.current) return;
39591
39663
  try {
39592
39664
  const hasCoords = latitude && longitude;
@@ -39712,7 +39784,7 @@ var TemplateConfig17 = ({ editor, block }) => {
39712
39784
  };
39713
39785
 
39714
39786
  // src/mantine/blocks/location/components/LocationMap.tsx
39715
- import React343, { useEffect as useEffect142, useRef as useRef37, useState as useState172 } from "react";
39787
+ import React343, { useEffect as useEffect143, useRef as useRef37, useState as useState172 } from "react";
39716
39788
  import { Box as Box64, Flex as Flex36, Loader as Loader79, Text as Text229 } from "@mantine/core";
39717
39789
  var UnlMap = ({ w = "100%", h = 200, latitude, longitude, zoom = 5, showMarker = true, showTilesControl = false }) => {
39718
39790
  const [mapError, setMapError] = useState172(null);
@@ -39722,7 +39794,7 @@ var UnlMap = ({ w = "100%", h = 200, latitude, longitude, zoom = 5, showMarker =
39722
39794
  const mapRef = useRef37(null);
39723
39795
  const markerRef = useRef37(null);
39724
39796
  const { status, UnlSdk } = useUnlMap();
39725
- useEffect142(() => {
39797
+ useEffect143(() => {
39726
39798
  if (status !== "ready" || !UnlSdk || mapRef.current || !containerRef.current || !wrapperRef.current) return;
39727
39799
  let ro;
39728
39800
  let resizeTimer;
@@ -39753,7 +39825,7 @@ var UnlMap = ({ w = "100%", h = 200, latitude, longitude, zoom = 5, showMarker =
39753
39825
  ro?.disconnect();
39754
39826
  };
39755
39827
  }, [status, UnlSdk, mapConfig]);
39756
- useEffect142(() => {
39828
+ useEffect143(() => {
39757
39829
  if (!mapRef.current || !latitude || !longitude) return;
39758
39830
  const coords = [Number(longitude), Number(latitude)];
39759
39831
  mapRef.current.setCenter(coords);
@@ -39893,7 +39965,7 @@ import React350, { useCallback as useCallback162 } from "react";
39893
39965
  import { IconSettings as IconSettings20 } from "@tabler/icons-react";
39894
39966
 
39895
39967
  // src/mantine/blocks/embed/template/GeneralTab.tsx
39896
- import React349, { useEffect as useEffect143, useState as useState173 } from "react";
39968
+ import React349, { useEffect as useEffect144, useState as useState173 } from "react";
39897
39969
  import { Stack as Stack258, Switch as Switch10, Text as Text232 } from "@mantine/core";
39898
39970
  var GeneralTab18 = ({
39899
39971
  url,
@@ -39915,10 +39987,10 @@ var GeneralTab18 = ({
39915
39987
  value: key,
39916
39988
  label: key.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ")
39917
39989
  }));
39918
- useEffect143(() => {
39990
+ useEffect144(() => {
39919
39991
  setLocalUrl(url);
39920
39992
  }, [url]);
39921
- useEffect143(() => {
39993
+ useEffect144(() => {
39922
39994
  setLocalHeight(height);
39923
39995
  }, [height]);
39924
39996
  return /* @__PURE__ */ React349.createElement(Stack258, { gap: "md" }, /* @__PURE__ */ React349.createElement(Stack258, { gap: "xs" }, /* @__PURE__ */ React349.createElement(Text232, { size: "sm", fw: 600 }, "URL"), /* @__PURE__ */ React349.createElement(
@@ -40333,7 +40405,7 @@ var SkillsTemplateView = ({ editor: _editor, block }) => {
40333
40405
  // src/mantine/blocks/skills/flow/SkillsFlowView.tsx
40334
40406
  import { ActionIcon as ActionIcon46, Badge as Badge57, Button as Button82, Collapse as Collapse15, Group as Group141, Loader as Loader80, Paper as Paper21, Stack as Stack263, Text as Text237, Tooltip as Tooltip30 } from "@mantine/core";
40335
40407
  import { IconBrain as IconBrain3, IconCheck as IconCheck43, IconPencil, IconPlus as IconPlus11, IconTrash as IconTrash11, IconX as IconX15 } from "@tabler/icons-react";
40336
- import React361, { useCallback as useCallback165, useEffect as useEffect144, useMemo as useMemo146, useRef as useRef38, useState as useState175 } from "react";
40408
+ import React361, { useCallback as useCallback165, useEffect as useEffect145, useMemo as useMemo146, useRef as useRef38, useState as useState175 } from "react";
40337
40409
  function parseSkills2(raw) {
40338
40410
  try {
40339
40411
  const parsed = JSON.parse(raw || "[]");
@@ -40366,7 +40438,7 @@ var SkillsFlowView = ({ editor, block }) => {
40366
40438
  const [capsules, setCapsules] = useState175([]);
40367
40439
  const [loadingCapsules, setLoadingCapsules] = useState175(false);
40368
40440
  const capsulesFetchedRef = useRef38(false);
40369
- useEffect144(() => {
40441
+ useEffect145(() => {
40370
40442
  if (capsulesFetchedRef.current || !handlers.getSkills) return;
40371
40443
  capsulesFetchedRef.current = true;
40372
40444
  setLoadingCapsules(true);
@@ -40374,7 +40446,7 @@ var SkillsFlowView = ({ editor, block }) => {
40374
40446
  }, [handlers.getSkills]);
40375
40447
  const [network, setNetwork] = useState175("");
40376
40448
  const networkFetchedRef = useRef38(false);
40377
- useEffect144(() => {
40449
+ useEffect145(() => {
40378
40450
  if (networkFetchedRef.current || !handlers.getNetwork) return;
40379
40451
  networkFetchedRef.current = true;
40380
40452
  handlers.getNetwork().then(setNetwork).catch(() => setNetwork("mainnet"));
@@ -40910,7 +40982,7 @@ blockRegistry.register({
40910
40982
  });
40911
40983
 
40912
40984
  // src/mantine/blocks/hooks/useBlockDependencies.ts
40913
- import { useMemo as useMemo147, useEffect as useEffect145, useState as useState176, useCallback as useCallback166 } from "react";
40985
+ import { useMemo as useMemo147, useEffect as useEffect146, useState as useState176, useCallback as useCallback166 } from "react";
40914
40986
 
40915
40987
  // src/mantine/blocks/hooks/useDependsOn.ts
40916
40988
  import { useMemo as useMemo148 } from "react";
@@ -41481,7 +41553,7 @@ import { useCreateBlockNote as useCreateBlockNote2 } from "@blocknote/react";
41481
41553
  import { BlockNoteSchema as BlockNoteSchema2, defaultBlockSpecs as defaultBlockSpecs2, defaultInlineContentSpecs as defaultInlineContentSpecs2 } from "@blocknote/core";
41482
41554
 
41483
41555
  // src/core/hooks/useMatrixProvider.ts
41484
- import { useEffect as useEffect146, useState as useState177, useRef as useRef39, useCallback as useCallback167, useMemo as useMemo149 } from "react";
41556
+ import { useEffect as useEffect147, useState as useState177, useRef as useRef39, useCallback as useCallback167, useMemo as useMemo149 } from "react";
41485
41557
  import { MatrixProvider } from "@ixo/matrix-crdt";
41486
41558
  function useMatrixProvider({ matrixClient, roomId, yDoc }) {
41487
41559
  const [matrixProvider, setProvider] = useState177(null);
@@ -41550,7 +41622,7 @@ function useMatrixProvider({ matrixClient, roomId, yDoc }) {
41550
41622
  }
41551
41623
  }
41552
41624
  }, [matrixClient, providerOptions, handleDocumentAvailable, handleDocumentUnavailable, handleCanWriteChanged]);
41553
- useEffect146(() => {
41625
+ useEffect147(() => {
41554
41626
  isMountedRef.current = true;
41555
41627
  initProvider();
41556
41628
  return () => {
@@ -41567,7 +41639,7 @@ function useMatrixProvider({ matrixClient, roomId, yDoc }) {
41567
41639
  setStatus("disconnected");
41568
41640
  };
41569
41641
  }, [initProvider]);
41570
- useEffect146(() => {
41642
+ useEffect147(() => {
41571
41643
  return () => {
41572
41644
  isMountedRef.current = false;
41573
41645
  };
@@ -41586,7 +41658,7 @@ function useCollaborativeYDoc(_options) {
41586
41658
  }
41587
41659
 
41588
41660
  // src/mantine/hooks/useCollaborativeIxoEditor.ts
41589
- import { useMemo as useMemo151, useEffect as useEffect148, useState as useState178, useRef as useRef41 } from "react";
41661
+ import { useMemo as useMemo151, useEffect as useEffect149, useState as useState178, useRef as useRef41 } from "react";
41590
41662
 
41591
41663
  // src/core/lib/matrixMetadata.ts
41592
41664
  var COVER_IMAGE_EVENT_TYPE = "ixo.page.cover_image";
@@ -41855,7 +41927,7 @@ function logInvocation(matrixClient, roomId, invocation) {
41855
41927
  }
41856
41928
 
41857
41929
  // src/mantine/hooks/useFlowLifecycle.ts
41858
- import { useEffect as useEffect147, useCallback as useCallback168, useRef as useRef40 } from "react";
41930
+ import { useEffect as useEffect148, useCallback as useCallback168, useRef as useRef40 } from "react";
41859
41931
 
41860
41932
  // src/mantine/hooks/useFlowTTLCleanup.ts
41861
41933
  function performTTLCleanup(editor) {
@@ -42106,19 +42178,19 @@ function useFlowLifecycle({ editor, connectionStatus, enabled = true }) {
42106
42178
  runningRef.current = false;
42107
42179
  }
42108
42180
  }, [editor]);
42109
- useEffect147(() => {
42181
+ useEffect148(() => {
42110
42182
  if (!enabled || !editor || connectionStatus !== "connected" || hasRunInitialRef.current) return;
42111
42183
  if (editor.docType !== "flow") return;
42112
42184
  hasRunInitialRef.current = true;
42113
42185
  runPipeline();
42114
42186
  }, [editor, connectionStatus, enabled, runPipeline]);
42115
- useEffect147(() => {
42187
+ useEffect148(() => {
42116
42188
  if (!enabled || !editor || connectionStatus !== "connected") return;
42117
42189
  if (editor.docType !== "flow") return;
42118
42190
  const id = setInterval(runPipeline, DEFAULT_INTERVAL_MS);
42119
42191
  return () => clearInterval(id);
42120
42192
  }, [editor, connectionStatus, enabled, runPipeline]);
42121
- useEffect147(() => {
42193
+ useEffect148(() => {
42122
42194
  if (!enabled || !editor || connectionStatus !== "connected") return;
42123
42195
  if (editor.docType !== "flow") return;
42124
42196
  const runtimeMap = editor._yRuntime;
@@ -42228,7 +42300,7 @@ function useCreateCollaborativeIxoEditor(options) {
42228
42300
  roomId: options.roomId
42229
42301
  });
42230
42302
  const metadataManager = useMemo151(() => new MatrixMetadataManager(matrixClient, options.roomId), [matrixClient, options.roomId]);
42231
- useEffect148(() => {
42303
+ useEffect149(() => {
42232
42304
  return () => {
42233
42305
  metadataManager.dispose();
42234
42306
  };
@@ -42266,6 +42338,8 @@ function useCreateCollaborativeIxoEditor(options) {
42266
42338
  const delegationsMap = useMemo151(() => yDoc.getMap("delegations"), [yDoc]);
42267
42339
  const invocationsMap = useMemo151(() => yDoc.getMap("invocations"), [yDoc]);
42268
42340
  const migrationMap = useMemo151(() => yDoc.getMap("migration"), [yDoc]);
42341
+ const agentOutboxMap = useMemo151(() => yDoc.getMap("agentOutbox"), [yDoc]);
42342
+ const agentLeasesMap = useMemo151(() => yDoc.getMap("agentLeases"), [yDoc]);
42269
42343
  const ucanDelegationStore = useMemo151(() => {
42270
42344
  const store = createUcanDelegationStore(delegationsMap);
42271
42345
  const originalSet = store.set;
@@ -42311,7 +42385,7 @@ function useCreateCollaborativeIxoEditor(options) {
42311
42385
  [theme, editable, sideMenu, slashMenu, formattingToolbar, linkToolbar, filePanel, tableHandles]
42312
42386
  );
42313
42387
  const [providerReady, setProviderReady] = useState178(false);
42314
- useEffect148(() => {
42388
+ useEffect149(() => {
42315
42389
  if (matrixProvider && !providerReady) setProviderReady(true);
42316
42390
  }, [matrixProvider, providerReady]);
42317
42391
  const editor = useCreateBlockNote2(
@@ -42392,6 +42466,8 @@ function useCreateCollaborativeIxoEditor(options) {
42392
42466
  ixoEditor._ucanDelegationStore = ucanDelegationStore;
42393
42467
  ixoEditor._invocationStore = invocationStore;
42394
42468
  ixoEditor._yMigration = migrationMap;
42469
+ ixoEditor._yAgentOutbox = agentOutboxMap;
42470
+ ixoEditor._yAgentLeases = agentLeasesMap;
42395
42471
  ixoEditor.getUcanService = () => {
42396
42472
  return null;
42397
42473
  };
@@ -42521,12 +42597,12 @@ function useCreateCollaborativeIxoEditor(options) {
42521
42597
  return void 0;
42522
42598
  };
42523
42599
  }
42524
- useEffect148(() => {
42600
+ useEffect149(() => {
42525
42601
  if (ixoEditor) {
42526
42602
  ixoEditor.isEditable = editable;
42527
42603
  }
42528
42604
  }, [ixoEditor, editable]);
42529
- useEffect148(() => {
42605
+ useEffect149(() => {
42530
42606
  if (connectionStatus !== "connected") {
42531
42607
  return;
42532
42608
  }
@@ -42551,7 +42627,7 @@ function useCreateCollaborativeIxoEditor(options) {
42551
42627
  const [connectedUsers, setConnectedUsers] = useState178([]);
42552
42628
  const activeBlockIdRef = useRef41(null);
42553
42629
  const awarenessInstance = matrixProvider?.awarenessInstance ?? null;
42554
- useEffect148(() => {
42630
+ useEffect149(() => {
42555
42631
  if (!awarenessInstance || connectionStatus !== "connected") {
42556
42632
  return;
42557
42633
  }
@@ -42569,7 +42645,7 @@ function useCreateCollaborativeIxoEditor(options) {
42569
42645
  awarenessInstance.off("change", updateUsers);
42570
42646
  };
42571
42647
  }, [awarenessInstance, connectionStatus]);
42572
- useEffect148(() => {
42648
+ useEffect149(() => {
42573
42649
  if (!awarenessInstance || connectionStatus !== "connected") {
42574
42650
  return;
42575
42651
  }
@@ -42598,7 +42674,7 @@ function useCreateCollaborativeIxoEditor(options) {
42598
42674
  };
42599
42675
  }, [awarenessInstance, connectionStatus, memoizedUser.id, memoizedUser.name, memoizedUser.color, memoizedUser.avatar]);
42600
42676
  useFlowLifecycle({ editor: ixoEditor, connectionStatus, enabled: permissions.write });
42601
- useEffect148(() => {
42677
+ useEffect149(() => {
42602
42678
  if (!ixoEditor) return;
42603
42679
  setActiveEditor(ixoEditor);
42604
42680
  return () => {
@@ -42665,7 +42741,7 @@ function sanitizeThemeForMantine7(theme) {
42665
42741
  }
42666
42742
 
42667
42743
  // src/mantine/components/CommandPalette.tsx
42668
- import React364, { useEffect as useEffect149, useRef as useRef42, useState as useState179, useMemo as useMemo152, useCallback as useCallback169 } from "react";
42744
+ import React364, { useEffect as useEffect150, useRef as useRef42, useState as useState179, useMemo as useMemo152, useCallback as useCallback169 } from "react";
42669
42745
  import { Box as Box67, Text as Text238, Stack as Stack264 } from "@mantine/core";
42670
42746
  var GROUP_ORDER = {
42671
42747
  Headings: 0,
@@ -42697,7 +42773,7 @@ function translateGroupLabel(groupKey, t) {
42697
42773
  function PaletteItem({ item, isSelected, onClick, id }) {
42698
42774
  const ref = useRef42(null);
42699
42775
  const [hovered, setHovered] = useState179(false);
42700
- useEffect149(() => {
42776
+ useEffect150(() => {
42701
42777
  if (isSelected && ref.current) {
42702
42778
  ref.current.scrollIntoView({ block: "nearest" });
42703
42779
  }
@@ -42924,7 +43000,7 @@ function PanelContent({ theme: _theme }) {
42924
43000
  }
42925
43001
 
42926
43002
  // src/mantine/components/CoverImage.tsx
42927
- import React370, { useState as useState183, useRef as useRef43, useEffect as useEffect152, useMemo as useMemo155 } from "react";
43003
+ import React370, { useState as useState183, useRef as useRef43, useEffect as useEffect153, useMemo as useMemo155 } from "react";
42928
43004
  import { Box as Box72, Group as Group145 } from "@mantine/core";
42929
43005
  import { IconMoodSmile, IconPhoto as IconPhoto6, IconSettings as IconSettings22, IconArrowsMove, IconTrash as IconTrash13, IconRefresh as IconRefresh10 } from "@tabler/icons-react";
42930
43006
 
@@ -43104,7 +43180,7 @@ var CoverImageButton = forwardRef(function CoverImageButton2({ isActive = false,
43104
43180
  });
43105
43181
 
43106
43182
  // src/mantine/components/Base/BaseIconPicker.tsx
43107
- import React367, { useState as useState181, useMemo as useMemo153, useEffect as useEffect150 } from "react";
43183
+ import React367, { useState as useState181, useMemo as useMemo153, useEffect as useEffect151 } from "react";
43108
43184
  import { TextInput as TextInput9, Tabs as Tabs4, Box as Box69, Stack as Stack265, UnstyledButton as UnstyledButton8, Text as Text240, Center as Center15, ScrollArea as ScrollArea10, Group as Group143, Popover as Popover6 } from "@mantine/core";
43109
43185
  import * as TablerIcons2 from "@tabler/icons-react";
43110
43186
  import { IconSearch as IconSearch9, IconX as IconX16, IconChevronLeft, IconChevronRight as IconChevronRight13 } from "@tabler/icons-react";
@@ -43149,7 +43225,7 @@ function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove
43149
43225
  const query = searchQuery.toLowerCase();
43150
43226
  return allIcons.filter(([name]) => name.toLowerCase().includes(query));
43151
43227
  }, [allIcons, searchQuery]);
43152
- useEffect150(() => {
43228
+ useEffect151(() => {
43153
43229
  setCurrentPage(1);
43154
43230
  }, [searchQuery]);
43155
43231
  const paginatedIcons = useMemo153(() => {
@@ -43335,7 +43411,7 @@ function PageIcon({ src, iconSize = 64, useCenter = false, style }) {
43335
43411
  import { useDisclosure as useDisclosure8 } from "@mantine/hooks";
43336
43412
 
43337
43413
  // src/mantine/components/FlowSettingsPanel.tsx
43338
- import React369, { useState as useState182, useEffect as useEffect151, useCallback as useCallback170 } from "react";
43414
+ import React369, { useState as useState182, useEffect as useEffect152, useCallback as useCallback170 } from "react";
43339
43415
  import { Stack as Stack266, Group as Group144, Button as Button83, ActionIcon as ActionIcon47, Text as Text241, Box as Box71 } from "@mantine/core";
43340
43416
  import { IconPlus as IconPlus12, IconTrash as IconTrash12 } from "@tabler/icons-react";
43341
43417
  var SYSTEM_KEYS = /* @__PURE__ */ new Set(["@context", "_type", "schema_version", "doc_id", "title", "createdAt", "createdBy", "flowOwnerDid"]);
@@ -43353,7 +43429,7 @@ var FlowSettingsPanel = ({ editor }) => {
43353
43429
  }
43354
43430
  setRows(customRows);
43355
43431
  }, [editor]);
43356
- useEffect151(() => {
43432
+ useEffect152(() => {
43357
43433
  loadSettings();
43358
43434
  }, [loadSettings]);
43359
43435
  const handleKeyChange = useCallback170(
@@ -43418,7 +43494,7 @@ function CoverImage({ coverImageUrl, logoUrl }) {
43418
43494
  const [metadata, setMetadata] = useState183(() => editor?.getPageMetadata?.() || null);
43419
43495
  const settingsPanelContent = useMemo155(() => editor ? /* @__PURE__ */ React370.createElement(FlowSettingsPanel, { editor }) : null, [editor]);
43420
43496
  const { open: openSettings } = usePanel("flow-settings-panel", settingsPanelContent);
43421
- useEffect152(() => {
43497
+ useEffect153(() => {
43422
43498
  if (!editor?._metadataManager) {
43423
43499
  return;
43424
43500
  }
@@ -43708,7 +43784,7 @@ function CoverImage({ coverImageUrl, logoUrl }) {
43708
43784
  }
43709
43785
 
43710
43786
  // src/mantine/components/PageTitle.tsx
43711
- import React371, { useState as useState184, useEffect as useEffect153, useRef as useRef44, useCallback as useCallback171 } from "react";
43787
+ import React371, { useState as useState184, useEffect as useEffect154, useRef as useRef44, useCallback as useCallback171 } from "react";
43712
43788
  import { Box as Box73 } from "@mantine/core";
43713
43789
  var DEFAULT_TITLE = "New page";
43714
43790
  function isUserTitle(name) {
@@ -43757,7 +43833,7 @@ function PageTitle({ editor, editable }) {
43757
43833
  const [hasIcon, setHasIcon] = useState184(false);
43758
43834
  const titleRef = useRef44(null);
43759
43835
  const isComposing = useRef44(false);
43760
- useEffect153(() => {
43836
+ useEffect154(() => {
43761
43837
  if (!editor?._metadataManager) return;
43762
43838
  const metadata = editor._metadataManager.getMetadata();
43763
43839
  const initial = isUserTitle(metadata?.title);
@@ -43777,7 +43853,7 @@ function PageTitle({ editor, editable }) {
43777
43853
  });
43778
43854
  return unsubscribe;
43779
43855
  }, [editor]);
43780
- useEffect153(() => {
43856
+ useEffect154(() => {
43781
43857
  if (titleRef.current && title && !titleRef.current.textContent) {
43782
43858
  titleRef.current.textContent = title;
43783
43859
  }
@@ -43821,7 +43897,7 @@ function PageTitle({ editor, editable }) {
43821
43897
  },
43822
43898
  [editor, saveTitle]
43823
43899
  );
43824
- useEffect153(() => {
43900
+ useEffect154(() => {
43825
43901
  const handleEditorKeyDown = (e) => {
43826
43902
  if (e.key !== "ArrowUp" || !titleRef.current) return;
43827
43903
  if (document.getElementById("bn-suggestion-menu")) return;
@@ -43911,7 +43987,7 @@ if (typeof document !== "undefined") {
43911
43987
  }
43912
43988
 
43913
43989
  // src/mantine/components/ExternalDropZone.tsx
43914
- import React372, { useCallback as useCallback172, useEffect as useEffect154, useRef as useRef45, useState as useState185 } from "react";
43990
+ import React372, { useCallback as useCallback172, useEffect as useEffect155, useRef as useRef45, useState as useState185 } from "react";
43915
43991
  import { Box as Box74 } from "@mantine/core";
43916
43992
  var SCROLL_ZONE_SIZE = 80;
43917
43993
  var SCROLL_SPEED = 12;
@@ -44087,7 +44163,7 @@ var ExternalDropZone = ({
44087
44163
  },
44088
44164
  [onDrop, stopAutoScroll]
44089
44165
  );
44090
- useEffect154(() => {
44166
+ useEffect155(() => {
44091
44167
  const handleGlobalDragEnd = () => {
44092
44168
  setIsValidDrag(false);
44093
44169
  dropPositionRef.current = null;
@@ -44145,7 +44221,7 @@ var ExternalDropZone = ({
44145
44221
  },
44146
44222
  [getScrollContainer]
44147
44223
  );
44148
- useEffect154(() => {
44224
+ useEffect155(() => {
44149
44225
  if (!isPlacementMode) return;
44150
44226
  const handleKeyDown = (e) => {
44151
44227
  if (e.key === "Escape") {
@@ -44168,13 +44244,13 @@ var ExternalDropZone = ({
44168
44244
  document.removeEventListener("click", handleGlobalClick, true);
44169
44245
  };
44170
44246
  }, [isPlacementMode, onPlacementCancel]);
44171
- useEffect154(() => {
44247
+ useEffect155(() => {
44172
44248
  if (!isPlacementMode) {
44173
44249
  setIsHoveringInPlacementMode(false);
44174
44250
  dropPositionRef.current = null;
44175
44251
  }
44176
44252
  }, [isPlacementMode]);
44177
- useEffect154(() => {
44253
+ useEffect155(() => {
44178
44254
  const isActive = isValidDrag || isPlacementMode && isHoveringInPlacementMode;
44179
44255
  if (isActive) {
44180
44256
  document.body.classList.add("external-artifact-drag-active");
@@ -44185,7 +44261,7 @@ var ExternalDropZone = ({
44185
44261
  document.body.classList.remove("external-artifact-drag-active");
44186
44262
  };
44187
44263
  }, [isValidDrag, isPlacementMode, isHoveringInPlacementMode]);
44188
- useEffect154(() => {
44264
+ useEffect155(() => {
44189
44265
  return () => {
44190
44266
  if (scrollAnimationRef.current) {
44191
44267
  cancelAnimationFrame(scrollAnimationRef.current);
@@ -44536,7 +44612,7 @@ function DebugButton({ editor }) {
44536
44612
  }
44537
44613
 
44538
44614
  // src/mantine/components/PageHeader.tsx
44539
- import React375, { useState as useState186, useRef as useRef46, useEffect as useEffect155 } from "react";
44615
+ import React375, { useState as useState186, useRef as useRef46, useEffect as useEffect156 } from "react";
44540
44616
  function PageHeader({
44541
44617
  title = "New page",
44542
44618
  icon: icon2,
@@ -44552,7 +44628,7 @@ function PageHeader({
44552
44628
  const [isPrivacyOpen, setIsPrivacyOpen] = useState186(false);
44553
44629
  const menuRef = useRef46(null);
44554
44630
  const privacyRef = useRef46(null);
44555
- useEffect155(() => {
44631
+ useEffect156(() => {
44556
44632
  function handleClickOutside(event) {
44557
44633
  if (menuRef.current && !menuRef.current.contains(event.target)) {
44558
44634
  setIsMenuOpen(false);
@@ -44822,7 +44898,7 @@ var EntitySigningSetup = ({ opened, onClose, entityDid, entityName, onSetup }) =
44822
44898
  };
44823
44899
 
44824
44900
  // src/mantine/components/FlowPermissionsPanel.tsx
44825
- import React377, { useState as useState188, useEffect as useEffect156, useMemo as useMemo157 } from "react";
44901
+ import React377, { useState as useState188, useEffect as useEffect157, useMemo as useMemo157 } from "react";
44826
44902
  import { Stack as Stack268, Text as Text243, Paper as Paper22, Group as Group147, Badge as Badge58, Button as Button85, ActionIcon as ActionIcon48, Loader as Loader81, Alert as Alert87, Divider as Divider43 } from "@mantine/core";
44827
44903
  import { IconPlus as IconPlus13, IconTrash as IconTrash14, IconShieldCheck as IconShieldCheck16, IconUser as IconUser14, IconRobot as IconRobot4, IconBuilding as IconBuilding2 } from "@tabler/icons-react";
44828
44904
  var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission, onRevokePermission, getUserDisplayName }) => {
@@ -44835,7 +44911,7 @@ var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission,
44835
44911
  }
44836
44912
  return null;
44837
44913
  }, [editor]);
44838
- useEffect156(() => {
44914
+ useEffect157(() => {
44839
44915
  const loadDelegations = async () => {
44840
44916
  setLoading(true);
44841
44917
  let allDelegations = [];
@@ -45184,4 +45260,4 @@ export {
45184
45260
  getExtraSlashMenuItems,
45185
45261
  useCreateIxoEditor
45186
45262
  };
45187
- //# sourceMappingURL=chunk-OSIGG4JK.mjs.map
45263
+ //# sourceMappingURL=chunk-RAEW6M7A.mjs.map