@ixo/editor 3.0.0-beta.20 → 3.0.0-beta.21

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.
@@ -336,7 +336,8 @@ var useListBlocksUI = () => {
336
336
  // src/mantine/components/Layouts/BaseRightPanelLayout.tsx
337
337
  import { ActionIcon as ActionIcon3, Box as Box2, Flex as Flex2, Stack as Stack10, Text as Text8, Title } from "@mantine/core";
338
338
  import { IconBrain, IconShieldCheck, IconWand, IconX as IconX2 } from "@tabler/icons-react";
339
- import React19, { useMemo as useMemo6 } from "react";
339
+ import React19, { useEffect as useEffect9, useMemo as useMemo6 } from "react";
340
+ import { useMediaQuery } from "@mantine/hooks";
340
341
 
341
342
  // src/mantine/components/ReusablePanel.tsx
342
343
  import React5, { useState as useState2 } from "react";
@@ -2344,7 +2345,7 @@ var rowStyle = {
2344
2345
  borderRadius: 10,
2345
2346
  background: "var(--mantine-color-neutralColor-5)"
2346
2347
  };
2347
- function PanelOptionsPopover({ isMaximized, onToggleMaximize, context, isTemplate, onSelectTab }) {
2348
+ function PanelOptionsPopover({ isMaximized, onToggleMaximize, context, isTemplate, onSelectTab, isMobile }) {
2348
2349
  const [opened, { open, close }] = useDisclosure(false);
2349
2350
  const [ttlExpanded, { toggle: toggleTtl }] = useDisclosure(false);
2350
2351
  const access = context ? getAccessSummary(context.block.props) : null;
@@ -2365,7 +2366,7 @@ function PanelOptionsPopover({ isMaximized, onToggleMaximize, context, isTemplat
2365
2366
  }
2366
2367
  },
2367
2368
  /* @__PURE__ */ React18.createElement(Popover.Target, null, /* @__PURE__ */ React18.createElement(ActionIcon2, { onClick: open, size: 32, radius: "md", variant: "filled", styles: actionIconStyles }, icon(IconDotsVertical))),
2368
- /* @__PURE__ */ React18.createElement(Popover.Dropdown, { p: 0, style: { backdropFilter: "blur(20px)" } }, /* @__PURE__ */ React18.createElement(Stack9, { gap: "sm", p: "sm", miw: 260 }, /* @__PURE__ */ React18.createElement(
2369
+ /* @__PURE__ */ React18.createElement(Popover.Dropdown, { p: 0, style: { backdropFilter: "blur(20px)" } }, /* @__PURE__ */ React18.createElement(Stack9, { gap: "sm", p: "sm", miw: 260 }, !isMobile && /* @__PURE__ */ React18.createElement(
2369
2370
  UnstyledButton,
2370
2371
  {
2371
2372
  onClick: () => {
@@ -2404,6 +2405,12 @@ function PanelOptionsPopover({ isMaximized, onToggleMaximize, context, isTemplat
2404
2405
  function BaseRightPanelLayout({ title, isTemplate: _isTemplate = true, captionContent, onClose, children, tabs, context }) {
2405
2406
  const { setMaximized, isMaximized } = useListBlocksUI();
2406
2407
  const { askCompanion } = useBlocknoteHandlers();
2408
+ const isMobile = useMediaQuery("(max-width: 992px)");
2409
+ useEffect9(() => {
2410
+ if (isMobile) {
2411
+ setMaximized(true);
2412
+ }
2413
+ }, [isMobile, setMaximized]);
2407
2414
  const allTabs = !tabs ? [] : context && _isTemplate ? [
2408
2415
  ...tabs,
2409
2416
  {
@@ -2434,7 +2441,8 @@ function BaseRightPanelLayout({ title, isTemplate: _isTemplate = true, captionCo
2434
2441
  onToggleMaximize: () => setMaximized(!isMaximized),
2435
2442
  context,
2436
2443
  isTemplate: _isTemplate,
2437
- onSelectTab: tabState.setActiveTab
2444
+ onSelectTab: tabState.setActiveTab,
2445
+ isMobile
2438
2446
  }
2439
2447
  ), /* @__PURE__ */ React19.createElement(
2440
2448
  ActionIcon3,
@@ -2490,7 +2498,7 @@ function BaseRightPanelLayout({ title, isTemplate: _isTemplate = true, captionCo
2490
2498
  }
2491
2499
 
2492
2500
  // src/mantine/components/AuthorizationTab.tsx
2493
- import React21, { useMemo as useMemo7, useState as useState8, useEffect as useEffect9, useCallback as useCallback13 } from "react";
2501
+ import React21, { useMemo as useMemo7, useState as useState8, useEffect as useEffect10, useCallback as useCallback13 } from "react";
2494
2502
  import { Stack as Stack12, TextInput as TextInput3, Text as Text10, Badge as Badge3, Group as Group6, Switch as Switch3, Select as Select2, Divider as Divider3, Radio as Radio2, Paper as Paper2, Button as Button4, ActionIcon as ActionIcon5, Alert as Alert4 } from "@mantine/core";
2495
2503
  import { IconPlus, IconX as IconX4, IconUsers as IconUsers2, IconShieldPlus as IconShieldPlus2, IconShieldCheck as IconShieldCheck2, IconTrash, IconUser as IconUser2, IconRobot as IconRobot2, IconKey } from "@tabler/icons-react";
2496
2504
 
@@ -2708,7 +2716,7 @@ var AuthorizationTab = ({
2708
2716
  const doc = editor?.document || [];
2709
2717
  return doc.find((b) => b.id === initialBlock.id) || initialBlock;
2710
2718
  }, [editor?.document, initialBlock]);
2711
- useEffect9(() => {
2719
+ useEffect10(() => {
2712
2720
  if (!editor) return;
2713
2721
  const handleChange = () => {
2714
2722
  forceUpdate({});
@@ -2816,7 +2824,7 @@ var AuthorizationTab = ({
2816
2824
  return "anyone";
2817
2825
  }, [parentCapability, actorList, blockCapabilities.length]);
2818
2826
  const [authMode, setAuthMode] = useState8(derivedAuthMode);
2819
- useEffect9(() => {
2827
+ useEffect10(() => {
2820
2828
  setAuthMode(derivedAuthMode);
2821
2829
  }, [derivedAuthMode]);
2822
2830
  const handleAuthModeChange = (mode) => {
@@ -3143,7 +3151,7 @@ import React26, { useMemo as useMemo9 } from "react";
3143
3151
  import { Checkbox as Checkbox3, Group as Group8, Stack as Stack14, Text as Text12, Tooltip } from "@mantine/core";
3144
3152
 
3145
3153
  // src/mantine/hooks/useNodeRuntime.ts
3146
- import { useState as useState9, useEffect as useEffect10, useCallback as useCallback15, useRef as useRef5 } from "react";
3154
+ import { useState as useState9, useEffect as useEffect11, useCallback as useCallback15, useRef as useRef5 } from "react";
3147
3155
  function shallowEqual(a, b) {
3148
3156
  const keysA = Object.keys(a);
3149
3157
  const keysB = Object.keys(b);
@@ -3161,10 +3169,10 @@ function useNodeRuntime(editor, nodeId) {
3161
3169
  return stored && typeof stored === "object" ? { ...stored } : {};
3162
3170
  });
3163
3171
  const stateRef = useRef5(state);
3164
- useEffect10(() => {
3172
+ useEffect11(() => {
3165
3173
  stateRef.current = state;
3166
3174
  });
3167
- useEffect10(() => {
3175
+ useEffect11(() => {
3168
3176
  if (!runtimeMap) return;
3169
3177
  const handler = () => {
3170
3178
  const current = runtimeMap.get(nodeId);
@@ -3221,7 +3229,7 @@ var CheckboxFlowView = ({ editor, block, isDisabled }) => {
3221
3229
  };
3222
3230
 
3223
3231
  // src/mantine/blocks/hooks/useBlockConditions.ts
3224
- import { useMemo as useMemo10, useEffect as useEffect11, useState as useState10 } from "react";
3232
+ import { useMemo as useMemo10, useEffect as useEffect12, useState as useState10 } from "react";
3225
3233
 
3226
3234
  // src/mantine/blocks/utils/conditionNormalizer.ts
3227
3235
  var OPERATOR_INVERSIONS = {
@@ -3360,7 +3368,7 @@ function useBlockConditions(block, editor, currentUser) {
3360
3368
  return parseConditionConfig(block?.props?.conditions);
3361
3369
  }, [block?.props?.conditions]);
3362
3370
  const [sourceBlockVersion, setSourceBlockVersion] = useState10(0);
3363
- useEffect11(() => {
3371
+ useEffect12(() => {
3364
3372
  if (!editor) {
3365
3373
  return;
3366
3374
  }
@@ -4687,7 +4695,7 @@ var ListTemplateView = ({ editor, block }) => {
4687
4695
  };
4688
4696
 
4689
4697
  // src/mantine/blocks/list/flow/ListFlowView.tsx
4690
- import React88, { useState as useState37, useEffect as useEffect34, useMemo as useMemo39, useCallback as useCallback31, useRef as useRef12 } from "react";
4698
+ import React88, { useState as useState37, useEffect as useEffect35, useMemo as useMemo39, useCallback as useCallback31, useRef as useRef12 } from "react";
4691
4699
  import { Stack as Stack59, Text as Text60, ActionIcon as ActionIcon11, Loader as Loader16, Center as Center9, Flex as Flex27, Title as Title6, Collapse as Collapse3, Tooltip as Tooltip6 } from "@mantine/core";
4692
4700
 
4693
4701
  // src/mantine/blocks/list/linked_resources/ResourcesList.tsx
@@ -5252,7 +5260,7 @@ var DeedSubscriptionsList = ({ items, isMultiSelect: _isMultiSelect, isItemCheck
5252
5260
  };
5253
5261
 
5254
5262
  // src/mantine/blocks/list/ListSelectionPanel.tsx
5255
- import React83, { useState as useState34, useEffect as useEffect32, useMemo as useMemo37 } from "react";
5263
+ import React83, { useState as useState34, useEffect as useEffect33, useMemo as useMemo37 } from "react";
5256
5264
  import { Stack as Stack55, Alert as Alert14, Text as Text55, Loader as Loader15, Center as Center8, Space } from "@mantine/core";
5257
5265
  import { IconClipboardText, IconChecklist as IconChecklist4, IconFileDescription as IconFileDescription2 } from "@tabler/icons-react";
5258
5266
 
@@ -5308,7 +5316,7 @@ var SelectionPanelEmpty = ({ message = "No item selected" }) => {
5308
5316
  };
5309
5317
 
5310
5318
  // src/mantine/blocks/list/transactions/TransactionDetails.tsx
5311
- import React53, { useEffect as useEffect12, useState as useState13 } from "react";
5319
+ import React53, { useEffect as useEffect13, useState as useState13 } from "react";
5312
5320
  import { Text as Text32, Tooltip as Tooltip3, Stack as Stack33, Group as Group13, Paper as Paper5, Divider as Divider5, CopyButton, ActionIcon as ActionIcon6 } from "@mantine/core";
5313
5321
  import { IconCopy, IconCheck } from "@tabler/icons-react";
5314
5322
  var CopyableField = ({ label, value, truncate = true }) => {
@@ -5320,7 +5328,7 @@ var CopyableField = ({ label, value, truncate = true }) => {
5320
5328
  var TransactionDetails = ({ transaction }) => {
5321
5329
  const handlers = useBlocknoteHandlers();
5322
5330
  const [assetsList, setAssetsList] = useState13([]);
5323
- useEffect12(() => {
5331
+ useEffect13(() => {
5324
5332
  const fetchAssets = async () => {
5325
5333
  try {
5326
5334
  const assets = await handlers.getCryptoAssets();
@@ -5353,7 +5361,7 @@ var TransactionDetails = ({ transaction }) => {
5353
5361
  };
5354
5362
 
5355
5363
  // src/mantine/blocks/list/claims/ClaimsListPanelContent.tsx
5356
- import React54, { useEffect as useEffect13, useMemo as useMemo12, useState as useState14 } from "react";
5364
+ import React54, { useEffect as useEffect14, useMemo as useMemo12, useState as useState14 } from "react";
5357
5365
  import { Text as Text33, Stack as Stack34, Loader as Loader3, Alert as Alert5 } from "@mantine/core";
5358
5366
  import { Survey, SurveyModel } from "@ixo/surveys";
5359
5367
 
@@ -5509,7 +5517,7 @@ var ClaimsListPanelContent = ({ collectionId, deedId, claim }) => {
5509
5517
  }
5510
5518
  return model;
5511
5519
  }, [surveyJson, claimData]);
5512
- useEffect13(() => {
5520
+ useEffect14(() => {
5513
5521
  fetchClaimAndSurvey();
5514
5522
  }, [claim?.claimId]);
5515
5523
  if (!claim) {
@@ -5519,7 +5527,7 @@ var ClaimsListPanelContent = ({ collectionId, deedId, claim }) => {
5519
5527
  };
5520
5528
 
5521
5529
  // src/mantine/blocks/list/claims/ClaimsEvaluation.tsx
5522
- import React82, { useCallback as useCallback30, useEffect as useEffect31, useMemo as useMemo36, useRef as useRef11, useState as useState33 } from "react";
5530
+ import React82, { useCallback as useCallback30, useEffect as useEffect32, useMemo as useMemo36, useRef as useRef11, useState as useState33 } from "react";
5523
5531
  import { Alert as Alert13, Box as Box24, Button as Button11, Divider as Divider8, Group as Group23, Loader as Loader14, Stack as Stack54, Text as Text54 } from "@mantine/core";
5524
5532
 
5525
5533
  // src/mantine/blocks/evaluator/EvaluatorBlock.tsx
@@ -5534,10 +5542,10 @@ import React59, { useCallback as useCallback19 } from "react";
5534
5542
  import { IconSettings as IconSettings3, IconShieldCheck as IconShieldCheck5, IconContract, IconClock as IconClock2 } from "@tabler/icons-react";
5535
5543
 
5536
5544
  // src/mantine/blocks/evaluator/template/GeneralTab.tsx
5537
- import React56, { useEffect as useEffect15, useState as useState16, useCallback as useCallback17, useMemo as useMemo13 } from "react";
5545
+ import React56, { useEffect as useEffect16, useState as useState16, useCallback as useCallback17, useMemo as useMemo13 } from "react";
5538
5546
 
5539
5547
  // src/mantine/components/CollectionSelector.tsx
5540
- import React55, { useState as useState15, useEffect as useEffect14 } from "react";
5548
+ import React55, { useState as useState15, useEffect as useEffect15 } from "react";
5541
5549
  import { Stack as Stack35, Text as Text34, Checkbox as Checkbox5, Loader as Loader4, Alert as Alert6 } from "@mantine/core";
5542
5550
  var CollectionSelector = ({
5543
5551
  did,
@@ -5552,7 +5560,7 @@ var CollectionSelector = ({
5552
5560
  const [collections, setCollections] = useState15([]);
5553
5561
  const [loading, setLoading] = useState15(false);
5554
5562
  const [error, setError] = useState15(null);
5555
- useEffect14(() => {
5563
+ useEffect15(() => {
5556
5564
  setLocalDid(did || "");
5557
5565
  }, [did]);
5558
5566
  const handleDidChange = (value) => {
@@ -5634,10 +5642,10 @@ var GeneralTab3 = ({
5634
5642
  }) => {
5635
5643
  const [localTitle, setLocalTitle] = useState16(title || "");
5636
5644
  const [localDescription, setLocalDescription] = useState16(description || "");
5637
- useEffect15(() => {
5645
+ useEffect16(() => {
5638
5646
  setLocalTitle(title || "");
5639
5647
  }, [title]);
5640
- useEffect15(() => {
5648
+ useEffect16(() => {
5641
5649
  setLocalDescription(description || "");
5642
5650
  }, [description]);
5643
5651
  const parsedSelectedCollections = useMemo13(() => {
@@ -5701,7 +5709,7 @@ var GeneralTab3 = ({
5701
5709
  };
5702
5710
 
5703
5711
  // src/mantine/components/CommitmentTab.tsx
5704
- import React58, { useMemo as useMemo14, useState as useState17, useEffect as useEffect16, useCallback as useCallback18 } from "react";
5712
+ import React58, { useMemo as useMemo14, useState as useState17, useEffect as useEffect17, useCallback as useCallback18 } from "react";
5705
5713
  import { Stack as Stack36, Flex as Flex19, Text as Text35 } from "@mantine/core";
5706
5714
 
5707
5715
  // src/mantine/components/Base/BaseAvatar.tsx
@@ -5740,7 +5748,7 @@ var CommitmentTab = ({ editor, block: initialBlock }) => {
5740
5748
  const doc = editor?.document || [];
5741
5749
  return doc.find((b) => b.id === initialBlock.id) || initialBlock;
5742
5750
  }, [editor?.document, initialBlock]);
5743
- useEffect16(() => {
5751
+ useEffect17(() => {
5744
5752
  (async () => {
5745
5753
  if (!roomId || !mx) return;
5746
5754
  try {
@@ -5751,7 +5759,7 @@ var CommitmentTab = ({ editor, block: initialBlock }) => {
5751
5759
  }
5752
5760
  })();
5753
5761
  }, [roomId, mx]);
5754
- useEffect16(() => {
5762
+ useEffect17(() => {
5755
5763
  if (!editor) return;
5756
5764
  const handleChange = () => {
5757
5765
  forceUpdate({});
@@ -5843,7 +5851,7 @@ var CommitmentTab = ({ editor, block: initialBlock }) => {
5843
5851
  });
5844
5852
  return lookup;
5845
5853
  }, [roomMembers]);
5846
- useEffect16(() => {
5854
+ useEffect17(() => {
5847
5855
  if (committedActorData?.did) {
5848
5856
  setSelectedValue(committedActorData.did);
5849
5857
  } else {
@@ -5922,7 +5930,7 @@ import React62 from "react";
5922
5930
  import { useMemo as useMemo17 } from "react";
5923
5931
 
5924
5932
  // src/mantine/components/AssignmentTab.tsx
5925
- import React60, { useMemo as useMemo15, useState as useState18, useEffect as useEffect17, useCallback as useCallback20 } from "react";
5933
+ import React60, { useMemo as useMemo15, useState as useState18, useEffect as useEffect18, useCallback as useCallback20 } from "react";
5926
5934
  import { Stack as Stack37, Flex as Flex20, Text as Text36 } from "@mantine/core";
5927
5935
  var AssignmentTab = ({ editor, block: initialBlock }) => {
5928
5936
  const handlers = useBlocknoteHandlers();
@@ -5939,7 +5947,7 @@ var AssignmentTab = ({ editor, block: initialBlock }) => {
5939
5947
  const doc = editor?.document || [];
5940
5948
  return doc.find((b) => b.id === initialBlock.id) || initialBlock;
5941
5949
  }, [editor?.document, initialBlock]);
5942
- useEffect17(() => {
5950
+ useEffect18(() => {
5943
5951
  (async () => {
5944
5952
  if (!roomId || !mx) return;
5945
5953
  try {
@@ -5951,7 +5959,7 @@ var AssignmentTab = ({ editor, block: initialBlock }) => {
5951
5959
  }
5952
5960
  })();
5953
5961
  }, [roomId, mx]);
5954
- useEffect17(() => {
5962
+ useEffect18(() => {
5955
5963
  if (!editor) return;
5956
5964
  const handleChange = () => {
5957
5965
  forceUpdate({});
@@ -6063,7 +6071,7 @@ var AssignmentTab = ({ editor, block: initialBlock }) => {
6063
6071
  });
6064
6072
  return lookup;
6065
6073
  }, [roomMembers]);
6066
- useEffect17(() => {
6074
+ useEffect18(() => {
6067
6075
  if (assignedActorData?.did) {
6068
6076
  setSelectedValue(assignedActorData.did);
6069
6077
  } else {
@@ -6239,15 +6247,15 @@ import { Stack as Stack52, Text as Text52, Loader as Loader13, Center as Center7
6239
6247
  import { IconAlertCircle as IconAlertCircle7 } from "@tabler/icons-react";
6240
6248
 
6241
6249
  // src/mantine/hooks/useCurrentUser.ts
6242
- import { useState as useState19, useEffect as useEffect18, useRef as useRef6 } from "react";
6250
+ import { useState as useState19, useEffect as useEffect19, useRef as useRef6 } from "react";
6243
6251
  function useCurrentUser() {
6244
6252
  const { getCurrentUser } = useBlocknoteHandlers();
6245
6253
  const getCurrentUserRef = useRef6(getCurrentUser);
6246
- useEffect18(() => {
6254
+ useEffect19(() => {
6247
6255
  getCurrentUserRef.current = getCurrentUser;
6248
6256
  }, [getCurrentUser]);
6249
6257
  const [userAddress, setUserAddress] = useState19("");
6250
- useEffect18(() => {
6258
+ useEffect19(() => {
6251
6259
  const fetchUserAddress = () => {
6252
6260
  try {
6253
6261
  const user = getCurrentUserRef.current();
@@ -6262,11 +6270,11 @@ function useCurrentUser() {
6262
6270
  }
6263
6271
 
6264
6272
  // src/mantine/hooks/useCollections.ts
6265
- import { useState as useState20, useEffect as useEffect19, useCallback as useCallback21, useRef as useRef7, useMemo as useMemo21 } from "react";
6273
+ import { useState as useState20, useEffect as useEffect20, useCallback as useCallback21, useRef as useRef7, useMemo as useMemo21 } from "react";
6266
6274
  function useCollections(did, selectedCollectionIds, block, editor) {
6267
6275
  const { getClaimCollections } = useBlocknoteHandlers();
6268
6276
  const getClaimCollectionsRef = useRef7(getClaimCollections);
6269
- useEffect19(() => {
6277
+ useEffect20(() => {
6270
6278
  getClaimCollectionsRef.current = getClaimCollections;
6271
6279
  }, [getClaimCollections]);
6272
6280
  const [collections, setCollections] = useState20([]);
@@ -6306,7 +6314,7 @@ function useCollections(did, selectedCollectionIds, block, editor) {
6306
6314
  setLoading(false);
6307
6315
  }
6308
6316
  }, [did, selectedCollectionIdsStr]);
6309
- useEffect19(() => {
6317
+ useEffect20(() => {
6310
6318
  fetchCollections();
6311
6319
  }, [fetchCollections]);
6312
6320
  return { collections, loading, error, refetch: fetchCollections };
@@ -6317,7 +6325,7 @@ import React77 from "react";
6317
6325
  import { Stack as Stack51, Text as Text51, Loader as Loader12, Center as Center6 } from "@mantine/core";
6318
6326
 
6319
6327
  // src/mantine/hooks/useUserRoles.ts
6320
- import { useState as useState21, useEffect as useEffect20, useMemo as useMemo22, useRef as useRef8 } from "react";
6328
+ import { useState as useState21, useEffect as useEffect21, useMemo as useMemo22, useRef as useRef8 } from "react";
6321
6329
 
6322
6330
  // src/mantine/hooks/utils.ts
6323
6331
  function isClientFulfillmentError(error) {
@@ -6329,7 +6337,7 @@ function isClientFulfillmentError(error) {
6329
6337
  function useUserRoles(collections, userAddress, adminAddress, deedId) {
6330
6338
  const { getUserRoles } = useBlocknoteHandlers();
6331
6339
  const getUserRolesRef = useRef8(getUserRoles);
6332
- useEffect20(() => {
6340
+ useEffect21(() => {
6333
6341
  getUserRolesRef.current = getUserRoles;
6334
6342
  }, [getUserRoles]);
6335
6343
  const [userRoles, setUserRoles] = useState21({});
@@ -6340,7 +6348,7 @@ function useUserRoles(collections, userAddress, adminAddress, deedId) {
6340
6348
  [collections]
6341
6349
  );
6342
6350
  const requestKey = useMemo22(() => [userAddress, adminAddress, deedId, collectionIdsKey].filter(Boolean).join("|"), [userAddress, adminAddress, deedId, collectionIdsKey]);
6343
- useEffect20(() => {
6351
+ useEffect21(() => {
6344
6352
  let isMounted = true;
6345
6353
  const setEmptyRoles = () => {
6346
6354
  const rolesMap = {};
@@ -6407,7 +6415,7 @@ import React67, { useMemo as useMemo24 } from "react";
6407
6415
  import { Stack as Stack42, Text as Text41, Group as Group16 } from "@mantine/core";
6408
6416
 
6409
6417
  // src/mantine/blocks/claim/flow/ClaimsListSheet.tsx
6410
- import React66, { useState as useState22, useEffect as useEffect21, useCallback as useCallback22, useMemo as useMemo23 } from "react";
6418
+ import React66, { useState as useState22, useEffect as useEffect22, useCallback as useCallback22, useMemo as useMemo23 } from "react";
6411
6419
  import { Loader as Loader5, Stack as Stack41, Text as Text40, ActionIcon as ActionIcon7, Alert as Alert7, Box as Box20, Group as Group15 } from "@mantine/core";
6412
6420
  import { IconArrowLeft as IconArrowLeft2, IconAlertCircle as IconAlertCircle2 } from "@tabler/icons-react";
6413
6421
  import { Survey as Survey2, SurveyModel as SurveyModel2 } from "@ixo/surveys";
@@ -6480,7 +6488,7 @@ var ClaimsListSheet = ({
6480
6488
  setSurveyLoading(false);
6481
6489
  }
6482
6490
  }, [deedId]);
6483
- useEffect21(() => {
6491
+ useEffect22(() => {
6484
6492
  console.log("[ClaimsListSheet] useEffect fetchClaims");
6485
6493
  fetchClaims();
6486
6494
  }, [fetchClaims]);
@@ -6571,7 +6579,7 @@ var ClaimsListSheet = ({
6571
6579
  },
6572
6580
  [handlers, deedId, collectionId, adminAddress, closePanel, onSubmitComplete, execution]
6573
6581
  );
6574
- useEffect21(() => {
6582
+ useEffect22(() => {
6575
6583
  if (surveyModel) {
6576
6584
  console.log("[ClaimsListSheet] register surveyModel.onComplete listener");
6577
6585
  surveyModel.onComplete.add(handleSurveyComplete);
@@ -6750,7 +6758,7 @@ import React73, { useMemo as useMemo31 } from "react";
6750
6758
  import { Stack as Stack47, Text as Text47, Center as Center4, Loader as Loader10, Group as Group19 } from "@mantine/core";
6751
6759
 
6752
6760
  // src/mantine/hooks/useBlockAuthorization.ts
6753
- import { useState as useState23, useEffect as useEffect22, useMemo as useMemo25 } from "react";
6761
+ import { useState as useState23, useEffect as useEffect23, useMemo as useMemo25 } from "react";
6754
6762
  function useBlockAuthorization({ editor, flowNode, actorDid, flowUri }) {
6755
6763
  const handlers = useBlocknoteHandlers();
6756
6764
  const [result, setResult] = useState23({ authorized: true });
@@ -6777,7 +6785,7 @@ function useBlockAuthorization({ editor, flowNode, actorDid, flowUri }) {
6777
6785
  }
6778
6786
  };
6779
6787
  }, [handlers.verifyCapabilitySignature]);
6780
- useEffect22(() => {
6788
+ useEffect23(() => {
6781
6789
  const checkAuthorization = async () => {
6782
6790
  setLoading(true);
6783
6791
  if (!actorDid) {
@@ -6836,7 +6844,7 @@ import { Survey as Survey3 } from "@ixo/surveys";
6836
6844
  import { IconCheck as IconCheck2, IconX as IconX6, IconAlertCircle as IconAlertCircle3 } from "@tabler/icons-react";
6837
6845
 
6838
6846
  // src/mantine/blocks/components/bid/hooks/useBidView.ts
6839
- import { useState as useState24, useEffect as useEffect23, useMemo as useMemo26 } from "react";
6847
+ import { useState as useState24, useEffect as useEffect24, useMemo as useMemo26 } from "react";
6840
6848
  import { SurveyModel as SurveyModel3 } from "@ixo/surveys";
6841
6849
 
6842
6850
  // src/mantine/blocks/components/bid/constants.ts
@@ -6888,7 +6896,7 @@ function useBidView(bid, deedId) {
6888
6896
  const [surveyJson, setSurveyJson] = useState24(null);
6889
6897
  const [loading, setLoading] = useState24(true);
6890
6898
  const [error, setError] = useState24(null);
6891
- useEffect23(() => {
6899
+ useEffect24(() => {
6892
6900
  const fetchSurveyTemplate = async () => {
6893
6901
  try {
6894
6902
  setLoading(true);
@@ -7137,12 +7145,12 @@ var BidViewPanel = ({ editor, block, bid, deedId, adminAddress, onRefresh, execu
7137
7145
  };
7138
7146
 
7139
7147
  // src/mantine/hooks/useUserProfile.ts
7140
- import { useState as useState27, useEffect as useEffect24 } from "react";
7148
+ import { useState as useState27, useEffect as useEffect25 } from "react";
7141
7149
  function useUserProfile(did) {
7142
7150
  const handlers = useBlocknoteHandlers();
7143
7151
  const [userProfile, setUserProfile] = useState27(null);
7144
7152
  const [loading, setLoading] = useState27(false);
7145
- useEffect24(() => {
7153
+ useEffect25(() => {
7146
7154
  const fetchUserProfile = async () => {
7147
7155
  if (!did) return;
7148
7156
  try {
@@ -7189,7 +7197,7 @@ var BidItem = ({ editor, block, bid, deedId, adminAddress, onRefresh, execution,
7189
7197
  };
7190
7198
 
7191
7199
  // src/mantine/blocks/components/bid/hooks/useBids.ts
7192
- import { useState as useState28, useEffect as useEffect25, useCallback as useCallback24 } from "react";
7200
+ import { useState as useState28, useEffect as useEffect26, useCallback as useCallback24 } from "react";
7193
7201
  function useBids(collectionId) {
7194
7202
  const handlers = useBlocknoteHandlers();
7195
7203
  const [bids, setBids] = useState28([]);
@@ -7212,7 +7220,7 @@ function useBids(collectionId) {
7212
7220
  setLoading(false);
7213
7221
  }
7214
7222
  }, [collectionId]);
7215
- useEffect25(() => {
7223
+ useEffect26(() => {
7216
7224
  fetchBids();
7217
7225
  }, [fetchBids]);
7218
7226
  return { bids, loading, error, refetch: fetchBids };
@@ -7265,7 +7273,7 @@ var BidsList = ({ editor, block, collectionId, deedId, adminAddress, onRefresh,
7265
7273
  };
7266
7274
 
7267
7275
  // src/mantine/blocks/components/bid/hooks/useUserBid.ts
7268
- import { useState as useState29, useEffect as useEffect26, useCallback as useCallback26 } from "react";
7276
+ import { useState as useState29, useEffect as useEffect27, useCallback as useCallback26 } from "react";
7269
7277
  function useUserBid(collectionId, userDid) {
7270
7278
  const handlers = useBlocknoteHandlers();
7271
7279
  const [userBid, setUserBid] = useState29(null);
@@ -7289,7 +7297,7 @@ function useUserBid(collectionId, userDid) {
7289
7297
  setLoading(false);
7290
7298
  }
7291
7299
  }, [collectionId, userDid, handlers]);
7292
- useEffect26(() => {
7300
+ useEffect27(() => {
7293
7301
  fetchUserBid();
7294
7302
  }, [fetchUserBid]);
7295
7303
  return { userBid, loading, error, refetch: fetchUserBid };
@@ -7319,12 +7327,12 @@ var BidRoleSelectPanel = ({ editor, block, collectionId, openEA, openSA, userRol
7319
7327
  };
7320
7328
 
7321
7329
  // src/mantine/blocks/components/bid/components/BidSurveyPanel.tsx
7322
- import React72, { useMemo as useMemo30, useEffect as useEffect28, useRef as useRef9, useCallback as useCallback28 } from "react";
7330
+ import React72, { useMemo as useMemo30, useEffect as useEffect29, useRef as useRef9, useCallback as useCallback28 } from "react";
7323
7331
  import { Loader as Loader9, Stack as Stack46, Text as Text46 } from "@mantine/core";
7324
7332
  import { Survey as Survey4 } from "@ixo/surveys";
7325
7333
 
7326
7334
  // src/mantine/blocks/components/bid/hooks/useBidSurvey.ts
7327
- import { useState as useState30, useEffect as useEffect27, useMemo as useMemo29, useCallback as useCallback27 } from "react";
7335
+ import { useState as useState30, useEffect as useEffect28, useMemo as useMemo29, useCallback as useCallback27 } from "react";
7328
7336
  import { SurveyModel as SurveyModel4 } from "@ixo/surveys";
7329
7337
  function useBidSurvey(deedId, collectionId, role, onSubmitComplete, execution, executeHookedActions) {
7330
7338
  const handlers = useBlocknoteHandlers();
@@ -7332,7 +7340,7 @@ function useBidSurvey(deedId, collectionId, role, onSubmitComplete, execution, e
7332
7340
  const [surveyJson, setSurveyJson] = useState30(null);
7333
7341
  const [loading, setLoading] = useState30(true);
7334
7342
  const [error, setError] = useState30(null);
7335
- useEffect27(() => {
7343
+ useEffect28(() => {
7336
7344
  const fetchSurveyTemplate = async () => {
7337
7345
  try {
7338
7346
  setLoading(true);
@@ -7425,7 +7433,7 @@ var BidSurveyPanel = ({ editor, block, deedId, collectionId, role, onSubmitCompl
7425
7433
  const { surveyModel, loading, error, handleSurveyComplete } = useBidSurvey(deedId, collectionId, role, onSubmitComplete, execution, executeHookedActions);
7426
7434
  const roleLabel = role === "service_agent" ? "Service Agent" : "Evaluation Agent";
7427
7435
  const handleSurveyCompleteRef = useRef9(handleSurveyComplete);
7428
- useEffect28(() => {
7436
+ useEffect29(() => {
7429
7437
  handleSurveyCompleteRef.current = handleSurveyComplete;
7430
7438
  }, [handleSurveyComplete]);
7431
7439
  const stableHandleSurveyComplete = useCallback28((sender) => {
@@ -7441,7 +7449,7 @@ var BidSurveyPanel = ({ editor, block, deedId, collectionId, role, onSubmitCompl
7441
7449
  }),
7442
7450
  []
7443
7451
  );
7444
- useEffect28(() => {
7452
+ useEffect29(() => {
7445
7453
  if (surveyModel) {
7446
7454
  surveyModel.onComplete.add(stableHandleSurveyComplete);
7447
7455
  return () => {
@@ -7608,11 +7616,11 @@ var BidCollectionItem = ({ collection, editor, block, deedId, adminAddress, user
7608
7616
  };
7609
7617
 
7610
7618
  // src/mantine/blocks/evaluator/flow/EvaluationCollectionItem.tsx
7611
- import React76, { useMemo as useMemo34, useEffect as useEffect30, useRef as useRef10 } from "react";
7619
+ import React76, { useMemo as useMemo34, useEffect as useEffect31, useRef as useRef10 } from "react";
7612
7620
  import { Group as Group22, Stack as Stack50, Text as Text50 } from "@mantine/core";
7613
7621
 
7614
7622
  // src/mantine/blocks/evaluator/flow/ClaimsList.tsx
7615
- import React75, { useState as useState31, useEffect as useEffect29, useCallback as useCallback29, useMemo as useMemo33 } from "react";
7623
+ import React75, { useState as useState31, useEffect as useEffect30, useCallback as useCallback29, useMemo as useMemo33 } from "react";
7616
7624
  import { Paper as Paper7, CloseButton, Title as Title5, Loader as Loader11, Stack as Stack49, Text as Text49, ActionIcon as ActionIcon9, Alert as Alert11, Badge as Badge8, Group as Group21, Button as Button9, Divider as Divider7, Tabs, ScrollArea, Box as Box23, Select as Select3 } from "@mantine/core";
7617
7625
 
7618
7626
  // src/mantine/utils/claimStatus.ts
@@ -8188,7 +8196,7 @@ var ClaimsList = ({ collectionId, collectionName, deedId, adminAddress, onEvalua
8188
8196
  setLoading(false);
8189
8197
  }
8190
8198
  }, [collectionId]);
8191
- useEffect29(() => {
8199
+ useEffect30(() => {
8192
8200
  fetchClaims();
8193
8201
  }, [fetchClaims]);
8194
8202
  const fetchClaimAndSurvey = useCallback29(
@@ -8578,7 +8586,7 @@ var ClaimListItem = ({ claim, onViewClaim }) => {
8578
8586
  const handlers = useBlocknoteHandlers();
8579
8587
  const [userProfile, setUserProfile] = useState31(null);
8580
8588
  const [loadingProfile, setLoadingProfile] = useState31(false);
8581
- useEffect29(() => {
8589
+ useEffect30(() => {
8582
8590
  const fetchUserProfile = async () => {
8583
8591
  if (!claim.agentDid) return;
8584
8592
  try {
@@ -8618,7 +8626,7 @@ import { IconFile as IconFile3 } from "@tabler/icons-react";
8618
8626
  var EvaluationCollectionItem = ({ collection, block, deedId, adminAddress, editor, userRole, onRefresh }) => {
8619
8627
  const { getCurrentUser } = useBlocknoteHandlers();
8620
8628
  const getCurrentUserRef = useRef10(getCurrentUser);
8621
- useEffect30(() => {
8629
+ useEffect31(() => {
8622
8630
  getCurrentUserRef.current = getCurrentUser;
8623
8631
  }, [getCurrentUser]);
8624
8632
  const currentUser = getCurrentUserRef.current();
@@ -8901,7 +8909,7 @@ var ClaimsEvaluation = ({ collectionId, adminAddress, deedId, claim, onRefresh }
8901
8909
  const [rubricData, setRubricData] = useState33(null);
8902
8910
  const [evaluationLoading, setEvaluationLoading] = useState33(false);
8903
8911
  const isFetchingRef = useRef11(false);
8904
- useEffect31(() => {
8912
+ useEffect32(() => {
8905
8913
  if (!claim?.claimId || !collectionId || !deedId || !handlers?.getClaimData) {
8906
8914
  return;
8907
8915
  }
@@ -9171,7 +9179,7 @@ var ListSelectionPanel = ({ selectedIds, listConfig, listData, listType, userRol
9171
9179
  if (!listType) return null;
9172
9180
  return getSelectionPanelConfig(listType);
9173
9181
  }, [listType]);
9174
- useEffect32(() => {
9182
+ useEffect33(() => {
9175
9183
  const fetchItemDetails = async () => {
9176
9184
  if (!selectedItemId || !listType || !handlers || !panelConfig) {
9177
9185
  setItemHandlerData(null);
@@ -9315,7 +9323,7 @@ var DaosList = ({ items, isMultiSelect, isItemChecked, onItemCheck }) => {
9315
9323
  };
9316
9324
 
9317
9325
  // src/mantine/blocks/list/claims/ClaimsList.tsx
9318
- import React86, { useState as useState35, useEffect as useEffect33, useMemo as useMemo38 } from "react";
9326
+ import React86, { useState as useState35, useEffect as useEffect34, useMemo as useMemo38 } from "react";
9319
9327
  import { Text as Text58, Stack as Stack58, Flex as Flex25, Box as Box27, Group as Group24 } from "@mantine/core";
9320
9328
  var ClaimsList2 = ({ items, isMultiSelect, isItemChecked, onItemCheck }) => {
9321
9329
  const handlers = useBlocknoteHandlers();
@@ -9329,7 +9337,7 @@ var ClaimsList2 = ({ items, isMultiSelect, isItemChecked, onItemCheck }) => {
9329
9337
  });
9330
9338
  return Array.from(dids);
9331
9339
  }, [items]);
9332
- useEffect33(() => {
9340
+ useEffect34(() => {
9333
9341
  const fetchProfiles = async () => {
9334
9342
  if (uniqueAgentDids.length === 0) {
9335
9343
  setProfiles({});
@@ -9695,7 +9703,7 @@ var ListFlowView = ({ block, editor }) => {
9695
9703
  [editor, block, selectedIds, listConfig, listType, userRole, handlePanelClose, data]
9696
9704
  );
9697
9705
  const { open: openSelectionPanel, close: closeSelectionPanel } = usePanel(selectionPanelId, selectionPanelContent);
9698
- useEffect34(() => {
9706
+ useEffect35(() => {
9699
9707
  if (!isMultiSelect && selectedIds.size > 1) {
9700
9708
  const arr = Array.from(selectedIds);
9701
9709
  const lastSelected = arr.length > 0 ? arr[arr.length - 1] : void 0;
@@ -9782,7 +9790,7 @@ var ListFlowView = ({ block, editor }) => {
9782
9790
  }
9783
9791
  return {};
9784
9792
  }, [block.props.sort]);
9785
- useEffect34(() => {
9793
+ useEffect35(() => {
9786
9794
  const unsubscribe = subscribe((event) => {
9787
9795
  if (event === "collapse") close();
9788
9796
  else if (event === "expand") open();
@@ -9982,10 +9990,10 @@ var ListFlowView = ({ block, editor }) => {
9982
9990
  setLoading(false);
9983
9991
  }
9984
9992
  }, [handlers, page, listType, listConfig, runtimeSearchValue]);
9985
- useEffect34(() => {
9993
+ useEffect35(() => {
9986
9994
  fetchDataRef.current = fetchData;
9987
9995
  }, [fetchData]);
9988
- useEffect34(() => {
9996
+ useEffect35(() => {
9989
9997
  if (listType && listConfig) {
9990
9998
  fetchData();
9991
9999
  }
@@ -10150,7 +10158,7 @@ var ListBlockSpec = createReactBlockSpec3(
10150
10158
  );
10151
10159
 
10152
10160
  // src/mantine/blocks/overview/OverviewBlock.tsx
10153
- import React91, { useEffect as useEffect35, useState as useState38 } from "react";
10161
+ import React91, { useEffect as useEffect36, useState as useState38 } from "react";
10154
10162
  import { createReactBlockSpec as createReactBlockSpec4 } from "@blocknote/react";
10155
10163
  import { Stack as Stack60, Text as Text61, Box as Box29, Loader as Loader17, Alert as Alert15, Group as Group25, Accordion as Accordion3, Collapse as Collapse4 } from "@mantine/core";
10156
10164
  import { IconChevronRight as IconChevronRight3, IconChevronDown as IconChevronDown4, IconFileDescription as IconFileDescription3, IconWorld, IconCalendar, IconUser as IconUser6, IconCircleCheck } from "@tabler/icons-react";
@@ -10161,7 +10169,7 @@ var OverviewBlockContent = () => {
10161
10169
  const [loading, setLoading] = useState38(true);
10162
10170
  const [error, setError] = useState38(null);
10163
10171
  const [detailsOpened, { toggle: toggleDetails }] = useDisclosure5(false);
10164
- useEffect35(() => {
10172
+ useEffect36(() => {
10165
10173
  const fetchDomainCard = async () => {
10166
10174
  setLoading(true);
10167
10175
  setError(null);
@@ -10312,7 +10320,7 @@ import React127, { useCallback as useCallback33 } from "react";
10312
10320
  import { IconSettings as IconSettings5, IconBolt as IconBolt2, IconCheck as IconCheck4, IconShieldCheck as IconShieldCheck6, IconClock as IconClock5 } from "@tabler/icons-react";
10313
10321
 
10314
10322
  // src/mantine/blocks/proposal/template/GeneralTab.tsx
10315
- import React92, { useEffect as useEffect36, useState as useState39 } from "react";
10323
+ import React92, { useEffect as useEffect37, useState as useState39 } from "react";
10316
10324
  import { Stack as Stack61, Text as Text62, Loader as Loader18, SegmentedControl as SegmentedControl4 } from "@mantine/core";
10317
10325
  var GeneralTab4 = ({ title, description, coreAddress, onTitleChange, onDescriptionChange, onGroupChange }) => {
10318
10326
  const handlers = useBlocknoteHandlers();
@@ -10322,13 +10330,13 @@ var GeneralTab4 = ({ title, description, coreAddress, onTitleChange, onDescripti
10322
10330
  const [loadingGroups, setLoadingGroups] = useState39(false);
10323
10331
  const [inputMode, setInputMode] = useState39("select");
10324
10332
  const [manualAddress, setManualAddress] = useState39("");
10325
- useEffect36(() => {
10333
+ useEffect37(() => {
10326
10334
  setLocalTitle(title || "");
10327
10335
  }, [title]);
10328
- useEffect36(() => {
10336
+ useEffect37(() => {
10329
10337
  setLocalDescription(description || "");
10330
10338
  }, [description]);
10331
- useEffect36(() => {
10339
+ useEffect37(() => {
10332
10340
  if (coreAddress) {
10333
10341
  const matchesGroup = groups.some((g) => g.coreAddress === coreAddress);
10334
10342
  if (matchesGroup) {
@@ -10339,7 +10347,7 @@ var GeneralTab4 = ({ title, description, coreAddress, onTitleChange, onDescripti
10339
10347
  }
10340
10348
  }
10341
10349
  }, [coreAddress, groups]);
10342
- useEffect36(() => {
10350
+ useEffect37(() => {
10343
10351
  const fetchGroups = async () => {
10344
10352
  if (!handlers?.getDAOGroups) {
10345
10353
  return;
@@ -10427,7 +10435,7 @@ var GeneralTab4 = ({ title, description, coreAddress, onTitleChange, onDescripti
10427
10435
  };
10428
10436
 
10429
10437
  // src/mantine/blocks/proposal/template/ActionsTab.tsx
10430
- import React125, { useCallback as useCallback32, useEffect as useEffect39, useState as useState47 } from "react";
10438
+ import React125, { useCallback as useCallback32, useEffect as useEffect40, useState as useState47 } from "react";
10431
10439
  import { Card as Card12, Stack as Stack94 } from "@mantine/core";
10432
10440
 
10433
10441
  // src/mantine/blocks/proposal/actions-components/ActionsCard.tsx
@@ -10535,7 +10543,7 @@ var ActionsCard = ({ actions, isSelected, onClick, onEditAction, onRemoveAction,
10535
10543
  };
10536
10544
 
10537
10545
  // src/mantine/blocks/proposal/ActionsPanel.tsx
10538
- import React124, { useState as useState46, useEffect as useEffect38, useMemo as useMemo40 } from "react";
10546
+ import React124, { useState as useState46, useEffect as useEffect39, useMemo as useMemo40 } from "react";
10539
10547
  import { Stack as Stack93, Button as Button17, Group as Group37, Text as Text71, Card as Card11, Badge as Badge12, Divider as Divider10, ScrollArea as ScrollArea4, Alert as Alert18, Tabs as Tabs2, SimpleGrid, Paper as Paper8 } from "@mantine/core";
10540
10548
 
10541
10549
  // src/mantine/blocks/proposal/actions-components/SpendActionForm.tsx
@@ -10777,12 +10785,12 @@ var ExecuteActionForm = ({ data, onChange }) => {
10777
10785
  };
10778
10786
 
10779
10787
  // src/mantine/blocks/proposal/actions-components/forms/CustomActionForm.tsx
10780
- import React100, { useState as useState42, useEffect as useEffect37 } from "react";
10788
+ import React100, { useState as useState42, useEffect as useEffect38 } from "react";
10781
10789
  import { Stack as Stack69, Alert as Alert16, Group as Group29, Text as Text66, Badge as Badge11 } from "@mantine/core";
10782
10790
  var CustomActionForm = ({ data, onChange }) => {
10783
10791
  const [isValid, setIsValid] = useState42(true);
10784
10792
  const [error, setError] = useState42("");
10785
- useEffect37(() => {
10793
+ useEffect38(() => {
10786
10794
  try {
10787
10795
  if (data.message) {
10788
10796
  JSON.parse(data.message);
@@ -12428,7 +12436,7 @@ var ActionsPanel = ({ actions, editingIndex, onSave, onCancel, isTemplateMode =
12428
12436
  });
12429
12437
  const currentActionConfig = getActionConfig(selectedActionType);
12430
12438
  const categorizedActions = useMemo40(() => getCategorizedActions(), []);
12431
- useEffect38(() => {
12439
+ useEffect39(() => {
12432
12440
  if (!isEditing) {
12433
12441
  const config = getActionConfig(selectedActionType);
12434
12442
  if (config) {
@@ -12602,7 +12610,7 @@ var ActionsTab = ({ actions, onActionsChange }) => {
12602
12610
  }
12603
12611
  };
12604
12612
  const currentActions = parseActions(actions);
12605
- useEffect39(() => {
12613
+ useEffect40(() => {
12606
12614
  if (currentActions.length === 0 && !isEditorVisible) {
12607
12615
  setEditingIndex(null);
12608
12616
  setIsEditorVisible(true);
@@ -12801,12 +12809,12 @@ var OnChainProposalCard = ({
12801
12809
  };
12802
12810
 
12803
12811
  // src/mantine/blocks/proposal/flow/FlowConfig.tsx
12804
- import React132, { useCallback as useCallback35, useState as useState52, useEffect as useEffect43 } from "react";
12812
+ import React132, { useCallback as useCallback35, useState as useState52, useEffect as useEffect44 } from "react";
12805
12813
  import { Stack as Stack100, Button as Button21, Text as Text76, Card as Card16, Loader as Loader19, SegmentedControl as SegmentedControl5 } from "@mantine/core";
12806
12814
  import { IconPlus as IconPlus3, IconBolt as IconBolt3, IconCheck as IconCheck5 } from "@tabler/icons-react";
12807
12815
 
12808
12816
  // src/mantine/blocks/proposal/flow/useFlowBusinessLogic.ts
12809
- import { useEffect as useEffect40, useState as useState48 } from "react";
12817
+ import { useEffect as useEffect41, useState as useState48 } from "react";
12810
12818
  var CHAIN_STATUSES = ["open", "passed", "rejected", "executed", "closed", "execution_failed", "veto_timelock"];
12811
12819
  var isChainStatus = (value) => {
12812
12820
  return CHAIN_STATUSES.includes(value);
@@ -12849,7 +12857,7 @@ var useFlowBusinessLogic = ({ block, editor }) => {
12849
12857
  props: { ...block.props, ...nextProps }
12850
12858
  });
12851
12859
  };
12852
- useEffect40(() => {
12860
+ useEffect41(() => {
12853
12861
  if (!handlers || !coreAddress || !proposalId) {
12854
12862
  setProposalContractAddress(null);
12855
12863
  return;
@@ -12869,7 +12877,7 @@ var useFlowBusinessLogic = ({ block, editor }) => {
12869
12877
  isCancelled = true;
12870
12878
  };
12871
12879
  }, [handlers, coreAddress, proposalId]);
12872
- useEffect40(() => {
12880
+ useEffect41(() => {
12873
12881
  if (!proposal) return;
12874
12882
  const chainStatus = proposal.proposal.status;
12875
12883
  const parsedStatus = parseStatus(chainStatus);
@@ -12951,7 +12959,7 @@ var useFlowBusinessLogic = ({ block, editor }) => {
12951
12959
  };
12952
12960
 
12953
12961
  // src/mantine/blocks/proposal/flow/useVoteBusinessLogic.ts
12954
- import { useState as useState49, useEffect as useEffect41 } from "react";
12962
+ import { useState as useState49, useEffect as useEffect42 } from "react";
12955
12963
  var useVoteBusinessLogic = ({ block }) => {
12956
12964
  const [localError, setLocalError] = useState49(null);
12957
12965
  const [userVote, setUserVote] = useState49(null);
@@ -12967,7 +12975,7 @@ var useVoteBusinessLogic = ({ block }) => {
12967
12975
  const description = block.props.description || "";
12968
12976
  const status = block.props.status || "draft";
12969
12977
  const coreAddress = block.props.coreAddress || "";
12970
- useEffect41(() => {
12978
+ useEffect42(() => {
12971
12979
  if (!handlers || !coreAddress || !proposalId) {
12972
12980
  setProposalContractAddress(null);
12973
12981
  return;
@@ -12987,7 +12995,7 @@ var useVoteBusinessLogic = ({ block }) => {
12987
12995
  isCancelled = true;
12988
12996
  };
12989
12997
  }, [handlers, coreAddress, proposalId]);
12990
- useEffect41(() => {
12998
+ useEffect42(() => {
12991
12999
  if (!handlers || !proposalContractAddress || !proposalId) {
12992
13000
  return;
12993
13001
  }
@@ -13266,7 +13274,7 @@ var FlowGeneralTab = ({
13266
13274
  };
13267
13275
 
13268
13276
  // src/mantine/blocks/proposal/flow/ActionsTab.tsx
13269
- import React131, { useCallback as useCallback34, useEffect as useEffect42, useState as useState51 } from "react";
13277
+ import React131, { useCallback as useCallback34, useEffect as useEffect43, useState as useState51 } from "react";
13270
13278
  import { Alert as Alert19, Button as Button20, Card as Card15, Stack as Stack99, Text as Text75 } from "@mantine/core";
13271
13279
  var ActionsTab2 = ({ actions, onActionsChange, isProposalCreated }) => {
13272
13280
  const [isEditorVisible, setIsEditorVisible] = useState51(false);
@@ -13280,7 +13288,7 @@ var ActionsTab2 = ({ actions, onActionsChange, isProposalCreated }) => {
13280
13288
  }
13281
13289
  };
13282
13290
  const currentActions = parseActions(actions);
13283
- useEffect42(() => {
13291
+ useEffect43(() => {
13284
13292
  if (!isProposalCreated && currentActions.length === 0 && !isEditorVisible) {
13285
13293
  setEditingIndex(null);
13286
13294
  setIsEditorVisible(true);
@@ -13391,7 +13399,7 @@ var FlowConfig2 = ({ editor, block }) => {
13391
13399
  },
13392
13400
  [editor, block]
13393
13401
  );
13394
- useEffect43(() => {
13402
+ useEffect44(() => {
13395
13403
  if (coreAddress) {
13396
13404
  const matchesGroup = groups.some((g) => g.coreAddress === coreAddress);
13397
13405
  if (matchesGroup) {
@@ -13402,7 +13410,7 @@ var FlowConfig2 = ({ editor, block }) => {
13402
13410
  }
13403
13411
  }
13404
13412
  }, [coreAddress, groups]);
13405
- useEffect43(() => {
13413
+ useEffect44(() => {
13406
13414
  const fetchGroups = async () => {
13407
13415
  if (!handlers?.getDAOGroups) {
13408
13416
  return;
@@ -13660,7 +13668,7 @@ var ProposalBlockSpec = createReactBlockSpec5(
13660
13668
  );
13661
13669
 
13662
13670
  // src/mantine/blocks/enumChecklist/EnumChecklistBlock.tsx
13663
- import React142, { useState as useState54, useEffect as useEffect44, useMemo as useMemo43, useCallback as useCallback36 } from "react";
13671
+ import React142, { useState as useState54, useEffect as useEffect45, useMemo as useMemo43, useCallback as useCallback36 } from "react";
13664
13672
  import { createReactBlockSpec as createReactBlockSpec6 } from "@blocknote/react";
13665
13673
  import { Stack as Stack106, Text as Text82, Button as Button26, ActionIcon as ActionIcon14, Center as Center10, Flex as Flex29 } from "@mantine/core";
13666
13674
 
@@ -14052,7 +14060,7 @@ var EnumChecklistBlockContent = ({ block, editor }) => {
14052
14060
  }
14053
14061
  return /* @__PURE__ */ new Set();
14054
14062
  }, [block.props.selectedIds]);
14055
- useEffect44(() => {
14063
+ useEffect45(() => {
14056
14064
  if (listConfig?.selection_mode === "single" && selectedIds.size > 1) {
14057
14065
  const arr = Array.from(selectedIds);
14058
14066
  const lastSelected = arr.length > 0 ? arr[arr.length - 1] : void 0;
@@ -14175,7 +14183,7 @@ import React148, { useCallback as useCallback39, useMemo as useMemo47 } from "re
14175
14183
  import { IconSettings as IconSettings7, IconCode, IconShieldCheck as IconShieldCheck7, IconUser as IconUser7, IconChecklist as IconChecklist5, IconClock as IconClock6 } from "@tabler/icons-react";
14176
14184
 
14177
14185
  // src/mantine/blocks/apiRequest/template/GeneralTab.tsx
14178
- import React145, { useEffect as useEffect45, useState as useState57 } from "react";
14186
+ import React145, { useEffect as useEffect46, useState as useState57 } from "react";
14179
14187
  import { Divider as Divider11, Stack as Stack108, Text as Text84, Button as Button27, Group as Group47, ActionIcon as ActionIcon17, Paper as Paper9 } from "@mantine/core";
14180
14188
  import { IconTrash as IconTrash2, IconPlus as IconPlus4 } from "@tabler/icons-react";
14181
14189
 
@@ -14598,12 +14606,12 @@ var GeneralTab5 = ({
14598
14606
  const [localMethod, setLocalMethod] = useState57(method || "GET");
14599
14607
  const [localHeaders, setLocalHeaders] = useState57(headers || []);
14600
14608
  const [localBody, setLocalBody] = useState57(body || []);
14601
- useEffect45(() => setLocalTitle(title || ""), [title]);
14602
- useEffect45(() => setLocalDescription(description || ""), [description]);
14603
- useEffect45(() => setLocalEndpoint(endpoint || ""), [endpoint]);
14604
- useEffect45(() => setLocalMethod(method || "GET"), [method]);
14605
- useEffect45(() => setLocalHeaders(headers || []), [headers]);
14606
- useEffect45(() => setLocalBody(body || []), [body]);
14609
+ useEffect46(() => setLocalTitle(title || ""), [title]);
14610
+ useEffect46(() => setLocalDescription(description || ""), [description]);
14611
+ useEffect46(() => setLocalEndpoint(endpoint || ""), [endpoint]);
14612
+ useEffect46(() => setLocalMethod(method || "GET"), [method]);
14613
+ useEffect46(() => setLocalHeaders(headers || []), [headers]);
14614
+ useEffect46(() => setLocalBody(body || []), [body]);
14607
14615
  const handleAddHeader = () => {
14608
14616
  const newHeaders = [...localHeaders, { key: "", value: "" }];
14609
14617
  setLocalHeaders(newHeaders);
@@ -14822,7 +14830,7 @@ var ResponseSchemaTab = ({ schema, onSchemaChange, blockId }) => {
14822
14830
  };
14823
14831
 
14824
14832
  // src/mantine/components/EvaluationTab.tsx
14825
- import React147, { useMemo as useMemo46, useState as useState58, useEffect as useEffect46, useCallback as useCallback38 } from "react";
14833
+ import React147, { useMemo as useMemo46, useState as useState58, useEffect as useEffect47, useCallback as useCallback38 } from "react";
14826
14834
  import { Stack as Stack110, TextInput as TextInput6, Text as Text86 } from "@mantine/core";
14827
14835
  var EvaluationTab = ({ editor, block: initialBlock }) => {
14828
14836
  const [, forceUpdate] = useState58({});
@@ -14830,7 +14838,7 @@ var EvaluationTab = ({ editor, block: initialBlock }) => {
14830
14838
  const doc = editor?.document || [];
14831
14839
  return doc.find((b) => b.id === initialBlock.id) || initialBlock;
14832
14840
  }, [editor?.document, initialBlock]);
14833
- useEffect46(() => {
14841
+ useEffect47(() => {
14834
14842
  if (!editor) return;
14835
14843
  const handleChange = () => {
14836
14844
  forceUpdate({});
@@ -15364,7 +15372,7 @@ import React154, { useCallback as useCallback40 } from "react";
15364
15372
  import { IconSettings as IconSettings8 } from "@tabler/icons-react";
15365
15373
 
15366
15374
  // src/mantine/blocks/notify/template/GeneralTab.tsx
15367
- import React153, { useEffect as useEffect47, useState as useState60 } from "react";
15375
+ import React153, { useEffect as useEffect48, useState as useState60 } from "react";
15368
15376
  import { Divider as Divider13, Stack as Stack113, Text as Text89, Group as Group51, ActionIcon as ActionIcon19, Paper as Paper11 } from "@mantine/core";
15369
15377
  import { IconTrash as IconTrash4 } from "@tabler/icons-react";
15370
15378
  var GeneralTab6 = ({
@@ -15404,17 +15412,17 @@ var GeneralTab6 = ({
15404
15412
  const [localBodyType, setLocalBodyType] = useState60(bodyType || "text");
15405
15413
  const [localFrom, setLocalFrom] = useState60(from || "");
15406
15414
  const [localReplyTo, setLocalReplyTo] = useState60(replyTo || "");
15407
- useEffect47(() => setLocalTitle(title || ""), [title]);
15408
- useEffect47(() => setLocalDescription(description || ""), [description]);
15409
- useEffect47(() => setLocalChannel(channel || "email"), [channel]);
15410
- useEffect47(() => setLocalTo(to || []), [to]);
15411
- useEffect47(() => setLocalCc(cc || []), [cc]);
15412
- useEffect47(() => setLocalBcc(bcc || []), [bcc]);
15413
- useEffect47(() => setLocalSubject(subject || ""), [subject]);
15414
- useEffect47(() => setLocalBody(body || ""), [body]);
15415
- useEffect47(() => setLocalBodyType(bodyType || "text"), [bodyType]);
15416
- useEffect47(() => setLocalFrom(from || ""), [from]);
15417
- useEffect47(() => setLocalReplyTo(replyTo || ""), [replyTo]);
15415
+ useEffect48(() => setLocalTitle(title || ""), [title]);
15416
+ useEffect48(() => setLocalDescription(description || ""), [description]);
15417
+ useEffect48(() => setLocalChannel(channel || "email"), [channel]);
15418
+ useEffect48(() => setLocalTo(to || []), [to]);
15419
+ useEffect48(() => setLocalCc(cc || []), [cc]);
15420
+ useEffect48(() => setLocalBcc(bcc || []), [bcc]);
15421
+ useEffect48(() => setLocalSubject(subject || ""), [subject]);
15422
+ useEffect48(() => setLocalBody(body || ""), [body]);
15423
+ useEffect48(() => setLocalBodyType(bodyType || "text"), [bodyType]);
15424
+ useEffect48(() => setLocalFrom(from || ""), [from]);
15425
+ useEffect48(() => setLocalReplyTo(replyTo || ""), [replyTo]);
15418
15426
  const handleAddRecipient = (type) => {
15419
15427
  const setter = type === "to" ? setLocalTo : type === "cc" ? setLocalCc : setLocalBcc;
15420
15428
  const callback = type === "to" ? onToChange : type === "cc" ? onCcChange : onBccChange;
@@ -15922,7 +15930,7 @@ import React160, { useCallback as useCallback42 } from "react";
15922
15930
  import { IconSettings as IconSettings9, IconShieldCheck as IconShieldCheck8, IconUser as IconUser10, IconContract as IconContract2, IconChecklist as IconChecklist6, IconClock as IconClock7 } from "@tabler/icons-react";
15923
15931
 
15924
15932
  // src/mantine/blocks/claim/template/GeneralTab.tsx
15925
- import React159, { useEffect as useEffect48, useState as useState62, useCallback as useCallback41, useMemo as useMemo51 } from "react";
15933
+ import React159, { useEffect as useEffect49, useState as useState62, useCallback as useCallback41, useMemo as useMemo51 } from "react";
15926
15934
  var GeneralTab7 = ({
15927
15935
  title,
15928
15936
  description,
@@ -15937,10 +15945,10 @@ var GeneralTab7 = ({
15937
15945
  }) => {
15938
15946
  const [localTitle, setLocalTitle] = useState62(title || "");
15939
15947
  const [localDescription, setLocalDescription] = useState62(description || "");
15940
- useEffect48(() => {
15948
+ useEffect49(() => {
15941
15949
  setLocalTitle(title || "");
15942
15950
  }, [title]);
15943
- useEffect48(() => {
15951
+ useEffect49(() => {
15944
15952
  setLocalDescription(description || "");
15945
15953
  }, [description]);
15946
15954
  const parsedSelectedCollections = useMemo51(() => {
@@ -16082,7 +16090,7 @@ var ClaimTemplateView = ({ editor, block }) => {
16082
16090
  };
16083
16091
 
16084
16092
  // src/mantine/blocks/claim/flow/FlowView.tsx
16085
- import React162, { useMemo as useMemo53, useRef as useRef13, useEffect as useEffect49, useCallback as useCallback43 } from "react";
16093
+ import React162, { useMemo as useMemo53, useRef as useRef13, useEffect as useEffect50, useCallback as useCallback43 } from "react";
16086
16094
  import { Stack as Stack117, Text as Text93, Loader as Loader22, Center as Center11, Alert as Alert23 } from "@mantine/core";
16087
16095
  import { IconAlertCircle as IconAlertCircle10 } from "@tabler/icons-react";
16088
16096
  var ClaimFlowView = ({ editor, block }) => {
@@ -16120,7 +16128,7 @@ var ClaimFlowView = ({ editor, block }) => {
16120
16128
  [flowNode, runtime, ucanManager, userAddress, delegationStore, verifySignature, flowOwnerDid, flowUri]
16121
16129
  );
16122
16130
  const executionRef = useRef13(executionValue);
16123
- useEffect49(() => {
16131
+ useEffect50(() => {
16124
16132
  executionRef.current = executionValue;
16125
16133
  }, [executionValue]);
16126
16134
  const execution = useMemo53(
@@ -16164,7 +16172,7 @@ var ClaimFlowView = ({ editor, block }) => {
16164
16172
  const adminAddress = block.props.adminAddress || "";
16165
16173
  const { collections, loading, error, refetch } = useCollections(did, selectedCollectionIds, block, editor);
16166
16174
  const refetchRef = useRef13(refetch);
16167
- useEffect49(() => {
16175
+ useEffect50(() => {
16168
16176
  refetchRef.current = refetch;
16169
16177
  }, [refetch]);
16170
16178
  const stableRefetch = useCallback43(() => {
@@ -16257,14 +16265,14 @@ import React166 from "react";
16257
16265
  import { createReactBlockSpec as createReactBlockSpec10 } from "@blocknote/react";
16258
16266
 
16259
16267
  // src/mantine/blocks/visualization/VisualizationBlock.tsx
16260
- import React165, { useMemo as useMemo54, useCallback as useCallback44, useRef as useRef14, useState as useState63, useEffect as useEffect50 } from "react";
16268
+ import React165, { useMemo as useMemo54, useCallback as useCallback44, useRef as useRef14, useState as useState63, useEffect as useEffect51 } from "react";
16261
16269
  import { Box as Box35, Stack as Stack118, Text as Text94, Paper as Paper12, Group as Group55 } from "@mantine/core";
16262
16270
  function VisualizationBlock({ block, editor }) {
16263
16271
  const { visualizationRenderer } = useBlocknoteContext();
16264
16272
  const { vizType, config, title, preferences } = block.props;
16265
16273
  const containerRef = useRef14(null);
16266
16274
  const [hasValidDimensions, setHasValidDimensions] = useState63(false);
16267
- useEffect50(() => {
16275
+ useEffect51(() => {
16268
16276
  const container = containerRef.current;
16269
16277
  if (!container) return;
16270
16278
  const checkDimensions = () => {
@@ -16354,7 +16362,7 @@ import React169 from "react";
16354
16362
  import { createReactBlockSpec as createReactBlockSpec11 } from "@blocknote/react";
16355
16363
 
16356
16364
  // src/mantine/blocks/dynamicList/DynamicListBlock.tsx
16357
- import React168, { useMemo as useMemo56, useState as useState65, useCallback as useCallback45, useEffect as useEffect51, useRef as useRef15 } from "react";
16365
+ import React168, { useMemo as useMemo56, useState as useState65, useCallback as useCallback45, useEffect as useEffect52, useRef as useRef15 } from "react";
16358
16366
  import { Box as Box37, Stack as Stack120, Text as Text96, Paper as Paper14, Group as Group57, Button as Button31, ActionIcon as ActionIcon21, Tooltip as Tooltip10, Code as Code5, Flex as Flex30, Collapse as Collapse7, Title as Title7, Badge as Badge19, TextInput as TextInput7, CloseButton as CloseButton3, Select as Select4, Menu as Menu2 } from "@mantine/core";
16359
16367
  import { useDisclosure as useDisclosure6 } from "@mantine/hooks";
16360
16368
  import {
@@ -16619,7 +16627,7 @@ function DynamicListBlock({ block, editor }) {
16619
16627
  const endIndex = startIndex + DEFAULT_PAGE_SIZE;
16620
16628
  return allData.slice(startIndex, endIndex);
16621
16629
  }, [allData, page]);
16622
- useEffect51(() => {
16630
+ useEffect52(() => {
16623
16631
  if (page > totalPages && totalPages > 0) {
16624
16632
  setPage(1);
16625
16633
  }
@@ -16780,7 +16788,7 @@ function DynamicListBlock({ block, editor }) {
16780
16788
  return next;
16781
16789
  });
16782
16790
  }, []);
16783
- useEffect51(() => {
16791
+ useEffect52(() => {
16784
16792
  setPage(1);
16785
16793
  }, [searchQuery]);
16786
16794
  const formatValue2 = (value, type) => {
@@ -17038,14 +17046,14 @@ import React171, { useCallback as useCallback46 } from "react";
17038
17046
  import { IconSettings as IconSettings10, IconShieldCheck as IconShieldCheck9 } from "@tabler/icons-react";
17039
17047
 
17040
17048
  // src/mantine/blocks/domainCreator/template/GeneralTab.tsx
17041
- import React170, { useEffect as useEffect52, useState as useState66 } from "react";
17049
+ import React170, { useEffect as useEffect53, useState as useState66 } from "react";
17042
17050
  var GeneralTab8 = ({ title, description, icon: icon2, onTitleChange, onDescriptionChange, onIconChange }) => {
17043
17051
  const [localTitle, setLocalTitle] = useState66(title || "");
17044
17052
  const [localDescription, setLocalDescription] = useState66(description || "");
17045
17053
  const [localIcon, setLocalIcon] = useState66(icon2 || "file-text");
17046
- useEffect52(() => setLocalTitle(title || ""), [title]);
17047
- useEffect52(() => setLocalDescription(description || ""), [description]);
17048
- useEffect52(() => setLocalIcon(icon2 || "file-text"), [icon2]);
17054
+ useEffect53(() => setLocalTitle(title || ""), [title]);
17055
+ useEffect53(() => setLocalDescription(description || ""), [description]);
17056
+ useEffect53(() => setLocalIcon(icon2 || "file-text"), [icon2]);
17049
17057
  return /* @__PURE__ */ React170.createElement(BaseSection, null, /* @__PURE__ */ React170.createElement(
17050
17058
  BaseTextInput,
17051
17059
  {
@@ -17129,7 +17137,7 @@ import { ActionIcon as ActionIcon22, Badge as Badge21, Group as Group60, Stack a
17129
17137
  import { IconChevronRight as IconChevronRight7, IconCheck as IconCheck8, IconAlertCircle as IconAlertCircle12 } from "@tabler/icons-react";
17130
17138
 
17131
17139
  // src/mantine/blocks/domainCreator/flow/DomainCreatorSurveyPanel.tsx
17132
- import React173, { useCallback as useCallback47, useEffect as useEffect53, useMemo as useMemo58, useRef as useRef16, useState as useState67 } from "react";
17140
+ import React173, { useCallback as useCallback47, useEffect as useEffect54, useMemo as useMemo58, useRef as useRef16, useState as useState67 } from "react";
17133
17141
  import { Alert as Alert24, Button as Button32, Group as Group59, Loader as Loader23, Stack as Stack122, Text as Text98 } from "@mantine/core";
17134
17142
  import { useDebouncedCallback } from "@mantine/hooks";
17135
17143
  import { IconAlertCircle as IconAlertCircle11, IconCheck as IconCheck7 } from "@tabler/icons-react";
@@ -17885,13 +17893,13 @@ var DomainCreatorSurveyPanel = ({ editor, block, onComplete, entityDid: existing
17885
17893
  }
17886
17894
  });
17887
17895
  }, SYNC_DEBOUNCE_MS);
17888
- useEffect53(() => {
17896
+ useEffect54(() => {
17889
17897
  const answersJson = block.props.answers;
17890
17898
  if (answersJson) {
17891
17899
  syncPropToSurvey(answersJson);
17892
17900
  }
17893
17901
  }, [block.props.answers, syncPropToSurvey]);
17894
- useEffect53(() => {
17902
+ useEffect54(() => {
17895
17903
  const handleValueChanged = () => {
17896
17904
  if (isUpdatingFromProp.current) return;
17897
17905
  syncSurveyToProp(surveyModel.data);
@@ -17901,7 +17909,7 @@ var DomainCreatorSurveyPanel = ({ editor, block, onComplete, entityDid: existing
17901
17909
  surveyModel.onValueChanged.remove(handleValueChanged);
17902
17910
  };
17903
17911
  }, [surveyModel, syncSurveyToProp]);
17904
- useEffect53(() => {
17912
+ useEffect54(() => {
17905
17913
  const needsSchema = !block.props.surveySchema;
17906
17914
  const needsAnswers = !block.props.answers;
17907
17915
  if (needsSchema || needsAnswers) {
@@ -18029,7 +18037,7 @@ var DomainCreatorSurveyPanel = ({ editor, block, onComplete, entityDid: existing
18029
18037
  },
18030
18038
  [processDomainCreation, onComplete, editor, block]
18031
18039
  );
18032
- useEffect53(() => {
18040
+ useEffect54(() => {
18033
18041
  surveyModel.onComplete.add(handleSurveyComplete);
18034
18042
  return () => {
18035
18043
  surveyModel.onComplete.remove(handleSurveyComplete);
@@ -18172,7 +18180,7 @@ import React179, { useCallback as useCallback51, useMemo as useMemo61 } from "re
18172
18180
  import { IconSettings as IconSettings11, IconVariable as IconVariable2, IconShieldCheck as IconShieldCheck10 } from "@tabler/icons-react";
18173
18181
 
18174
18182
  // src/mantine/blocks/email/template/GeneralTab.tsx
18175
- import React177, { useEffect as useEffect54, useState as useState69, useCallback as useCallback49, useRef as useRef17 } from "react";
18183
+ import React177, { useEffect as useEffect55, useState as useState69, useCallback as useCallback49, useRef as useRef17 } from "react";
18176
18184
  import { Divider as Divider15, Loader as Loader24, Select as Select5, Stack as Stack124, Text as Text100 } from "@mantine/core";
18177
18185
 
18178
18186
  // src/mantine/blocks/email/utils/extractHandlebars.ts
@@ -18219,14 +18227,14 @@ var GeneralTab9 = ({ editor, blockId, getCurrentBlock, onTitleChange, onTemplate
18219
18227
  const [loadingTemplates, setLoadingTemplates] = useState69(false);
18220
18228
  const [loadingContent, setLoadingContent] = useState69(false);
18221
18229
  const [error, setError] = useState69(null);
18222
- useEffect54(() => {
18230
+ useEffect55(() => {
18223
18231
  const currentBlock = getCurrentBlock();
18224
18232
  setLocalTitle(currentBlock.props.title || "");
18225
18233
  setLocalTemplateName(currentBlock.props.templateName || "");
18226
18234
  setLocalTo(currentBlock.props.to || "");
18227
18235
  }, [getCurrentBlock]);
18228
18236
  const hasLoadedTemplates = useRef17(false);
18229
- useEffect54(() => {
18237
+ useEffect55(() => {
18230
18238
  if (hasLoadedTemplates.current) return;
18231
18239
  async function loadTemplates() {
18232
18240
  if (!handlers.listEmailTemplates) {
@@ -18337,7 +18345,7 @@ var GeneralTab9 = ({ editor, blockId, getCurrentBlock, onTitleChange, onTemplate
18337
18345
  };
18338
18346
 
18339
18347
  // src/mantine/blocks/email/template/VariablesTab.tsx
18340
- import React178, { useMemo as useMemo60, useCallback as useCallback50, useState as useState70, useEffect as useEffect55 } from "react";
18348
+ import React178, { useMemo as useMemo60, useCallback as useCallback50, useState as useState70, useEffect as useEffect56 } from "react";
18341
18349
  import { Alert as Alert25, Badge as Badge22, Divider as Divider16, Group as Group61, Stack as Stack125, Text as Text101 } from "@mantine/core";
18342
18350
  import { IconInfoCircle as IconInfoCircle4, IconCheck as IconCheck9 } from "@tabler/icons-react";
18343
18351
  var VariablesTab = ({ editor, blockId, getCurrentBlock, onVariablesChange }) => {
@@ -18358,7 +18366,7 @@ var VariablesTab = ({ editor, blockId, getCurrentBlock, onVariablesChange }) =>
18358
18366
  }
18359
18367
  }, [blockProps.variables]);
18360
18368
  const [localMapping, setLocalMapping] = useState70(parsedVariableMapping);
18361
- useEffect55(() => {
18369
+ useEffect56(() => {
18362
18370
  const currentBlock = getCurrentBlock();
18363
18371
  try {
18364
18372
  const mapping = JSON.parse(currentBlock.props.variables || "{}");
@@ -18777,7 +18785,7 @@ import React185, { useCallback as useCallback53 } from "react";
18777
18785
  import { IconSettings as IconSettings12 } from "@tabler/icons-react";
18778
18786
 
18779
18787
  // src/mantine/blocks/protocolSelector/template/GeneralTab.tsx
18780
- import React184, { useEffect as useEffect56, useMemo as useMemo64, useState as useState72 } from "react";
18788
+ import React184, { useEffect as useEffect57, useMemo as useMemo64, useState as useState72 } from "react";
18781
18789
  import { Divider as Divider18, Stack as Stack128, Text as Text104, PillsInput as PillsInput2, Pill as Pill2, Box as Box38 } from "@mantine/core";
18782
18790
  var GeneralTab10 = ({ title, description, protocolDids, onTitleChange, onDescriptionChange, onProtocolDidsChange }) => {
18783
18791
  const [localTitle, setLocalTitle] = useState72(title || "");
@@ -18791,10 +18799,10 @@ var GeneralTab10 = ({ title, description, protocolDids, onTitleChange, onDescrip
18791
18799
  return [];
18792
18800
  }
18793
18801
  }, [protocolDids]);
18794
- useEffect56(() => {
18802
+ useEffect57(() => {
18795
18803
  setLocalTitle(title || "");
18796
18804
  }, [title]);
18797
- useEffect56(() => {
18805
+ useEffect57(() => {
18798
18806
  setLocalDescription(description || "");
18799
18807
  }, [description]);
18800
18808
  const handleAddDid = () => {
@@ -18914,7 +18922,7 @@ import { Badge as Badge25, Box as Box41, Group as Group66, Stack as Stack131, Te
18914
18922
  import { IconCircleDashed as IconCircleDashed3, IconChecks as IconChecks3 } from "@tabler/icons-react";
18915
18923
 
18916
18924
  // src/mantine/blocks/protocolSelector/flow/ProtocolSelectionPanel.tsx
18917
- import React188, { useState as useState73, useEffect as useEffect57, useMemo as useMemo66, useCallback as useCallback54 } from "react";
18925
+ import React188, { useState as useState73, useEffect as useEffect58, useMemo as useMemo66, useCallback as useCallback54 } from "react";
18918
18926
  import { Stack as Stack130, Text as Text106, Box as Box40, Group as Group65, Loader as Loader26 } from "@mantine/core";
18919
18927
 
18920
18928
  // src/icons/EntityAvatar.tsx
@@ -18953,7 +18961,7 @@ var ProtocolSelectionPanel = ({ editor, block }) => {
18953
18961
  }
18954
18962
  }, [block.props.protocolDids]);
18955
18963
  const [protocols, setProtocols] = useState73([]);
18956
- useEffect57(() => {
18964
+ useEffect58(() => {
18957
18965
  if (protocolDids.length === 0) {
18958
18966
  setProtocols([]);
18959
18967
  return;
@@ -19180,7 +19188,7 @@ import { Badge as Badge26, Group as Group67, Stack as Stack132, Text as Text109
19180
19188
  import React193, { useCallback as useCallback55 } from "react";
19181
19189
 
19182
19190
  // src/mantine/blocks/form/template/GeneralTab.tsx
19183
- import React192, { useEffect as useEffect58, useState as useState74 } from "react";
19191
+ import React192, { useEffect as useEffect59, useState as useState74 } from "react";
19184
19192
  import { Text as Text108 } from "@mantine/core";
19185
19193
  var GeneralTab11 = ({ title, description, icon: icon2, surveySchema, onTitleChange, onDescriptionChange, onIconChange, onSurveySchemaChange }) => {
19186
19194
  const [localTitle, setLocalTitle] = useState74(title || "");
@@ -19188,10 +19196,10 @@ var GeneralTab11 = ({ title, description, icon: icon2, surveySchema, onTitleChan
19188
19196
  const [localIcon, setLocalIcon] = useState74(icon2 || "checklist");
19189
19197
  const [localSchema, setLocalSchema] = useState74(surveySchema || "");
19190
19198
  const [schemaError, setSchemaError] = useState74(null);
19191
- useEffect58(() => setLocalTitle(title || ""), [title]);
19192
- useEffect58(() => setLocalDescription(description || ""), [description]);
19193
- useEffect58(() => setLocalIcon(icon2 || "checklist"), [icon2]);
19194
- useEffect58(() => setLocalSchema(surveySchema || ""), [surveySchema]);
19199
+ useEffect59(() => setLocalTitle(title || ""), [title]);
19200
+ useEffect59(() => setLocalDescription(description || ""), [description]);
19201
+ useEffect59(() => setLocalIcon(icon2 || "checklist"), [icon2]);
19202
+ useEffect59(() => setLocalSchema(surveySchema || ""), [surveySchema]);
19195
19203
  const handleSchemaChange = (value) => {
19196
19204
  setLocalSchema(value);
19197
19205
  setSchemaError(null);
@@ -19312,7 +19320,7 @@ import { ActionIcon as ActionIcon24, Badge as Badge27, Group as Group68, Stack a
19312
19320
  import { IconChevronRight as IconChevronRight8 } from "@tabler/icons-react";
19313
19321
 
19314
19322
  // src/mantine/blocks/form/flow/FormPanel.tsx
19315
- import React195, { useCallback as useCallback56, useEffect as useEffect59, useMemo as useMemo69, useRef as useRef18 } from "react";
19323
+ import React195, { useCallback as useCallback56, useEffect as useEffect60, useMemo as useMemo69, useRef as useRef18 } from "react";
19316
19324
  import { Alert as Alert27, Text as Text110 } from "@mantine/core";
19317
19325
  import { useDebouncedCallback as useDebouncedCallback2 } from "@mantine/hooks";
19318
19326
  import { IconAlertCircle as IconAlertCircle13 } from "@tabler/icons-react";
@@ -19386,13 +19394,13 @@ var FormPanel = ({ editor, block, onComplete }) => {
19386
19394
  output: { ...runtime.output, form: { ...runtime.output?.form, answers: newAnswersJson } }
19387
19395
  });
19388
19396
  }, SYNC_DEBOUNCE_MS2);
19389
- useEffect59(() => {
19397
+ useEffect60(() => {
19390
19398
  const answersJson = runtime.output?.form?.answers;
19391
19399
  if (answersJson) {
19392
19400
  syncPropToSurvey(answersJson);
19393
19401
  }
19394
19402
  }, [runtime.output?.form?.answers, syncPropToSurvey]);
19395
- useEffect59(() => {
19403
+ useEffect60(() => {
19396
19404
  if (!surveyModel) return;
19397
19405
  const handleValueChanged = () => {
19398
19406
  if (isUpdatingFromProp.current) return;
@@ -19417,7 +19425,7 @@ var FormPanel = ({ editor, block, onComplete }) => {
19417
19425
  },
19418
19426
  [updateRuntime, onComplete]
19419
19427
  );
19420
- useEffect59(() => {
19428
+ useEffect60(() => {
19421
19429
  if (!surveyModel) return;
19422
19430
  surveyModel.onComplete.add(handleSurveyComplete);
19423
19431
  return () => {
@@ -19540,14 +19548,14 @@ import React200, { useCallback as useCallback58 } from "react";
19540
19548
  import { IconSettings as IconSettings14, IconContract as IconContract3, IconClock as IconClock8 } from "@tabler/icons-react";
19541
19549
 
19542
19550
  // src/mantine/blocks/domainCreatorSign/template/GeneralTab.tsx
19543
- import React199, { useEffect as useEffect60, useState as useState76 } from "react";
19551
+ import React199, { useEffect as useEffect61, useState as useState76 } from "react";
19544
19552
  var GeneralTab12 = ({ title, description, icon: icon2, onTitleChange, onDescriptionChange, onIconChange }) => {
19545
19553
  const [localTitle, setLocalTitle] = useState76(title || "");
19546
19554
  const [localDescription, setLocalDescription] = useState76(description || "");
19547
19555
  const [localIcon, setLocalIcon] = useState76(icon2 || "file-text");
19548
- useEffect60(() => setLocalTitle(title || ""), [title]);
19549
- useEffect60(() => setLocalDescription(description || ""), [description]);
19550
- useEffect60(() => setLocalIcon(icon2 || "file-text"), [icon2]);
19556
+ useEffect61(() => setLocalTitle(title || ""), [title]);
19557
+ useEffect61(() => setLocalDescription(description || ""), [description]);
19558
+ useEffect61(() => setLocalIcon(icon2 || "file-text"), [icon2]);
19551
19559
  return /* @__PURE__ */ React199.createElement(BaseSection, null, /* @__PURE__ */ React199.createElement(
19552
19560
  BaseTextInput,
19553
19561
  {
@@ -19632,7 +19640,7 @@ var DomainCreatorSignTemplateView = ({ editor, block }) => {
19632
19640
  };
19633
19641
 
19634
19642
  // src/mantine/blocks/domainCreatorSign/flow/FlowView.tsx
19635
- import React204, { useCallback as useCallback60, useMemo as useMemo72, useEffect as useEffect61 } from "react";
19643
+ import React204, { useCallback as useCallback60, useMemo as useMemo72, useEffect as useEffect62 } from "react";
19636
19644
  import { ActionIcon as ActionIcon25, Badge as Badge30, Group as Group72, Stack as Stack137, Text as Text115, Tooltip as Tooltip16 } from "@mantine/core";
19637
19645
  import { IconChevronRight as IconChevronRight9 } from "@tabler/icons-react";
19638
19646
 
@@ -19943,7 +19951,7 @@ var DomainCreatorSignFlowView = ({ editor, block }) => {
19943
19951
  const domainCardData = block.props.domainCardData || "{}";
19944
19952
  const isDataReady = isDomainCardDataReady(domainCardData);
19945
19953
  const status = runtimeState === "completed" ? "completed" : runtimeState === "failed" ? "error" : runtimeState === "running" ? runtime.output?.domain?.step || "signing" : isDataReady ? "ready" : "pending";
19946
- useEffect61(() => {
19954
+ useEffect62(() => {
19947
19955
  if (!runtimeState && isDataReady) {
19948
19956
  updateRuntime({ state: "idle" });
19949
19957
  }
@@ -20099,14 +20107,14 @@ import { Badge as Badge31, Group as Group73, Stack as Stack138, Text as Text116
20099
20107
  import React208, { useCallback as useCallback61 } from "react";
20100
20108
 
20101
20109
  // src/mantine/blocks/domainCardViewer/template/GeneralTab.tsx
20102
- import React207, { useEffect as useEffect62, useState as useState79 } from "react";
20110
+ import React207, { useEffect as useEffect63, useState as useState79 } from "react";
20103
20111
  var GeneralTab13 = ({ title, description, icon: icon2, onTitleChange, onDescriptionChange, onIconChange }) => {
20104
20112
  const [localTitle, setLocalTitle] = useState79(title || "");
20105
20113
  const [localDescription, setLocalDescription] = useState79(description || "");
20106
20114
  const [localIcon, setLocalIcon] = useState79(icon2 || "dots-circle");
20107
- useEffect62(() => setLocalTitle(title || ""), [title]);
20108
- useEffect62(() => setLocalDescription(description || ""), [description]);
20109
- useEffect62(() => setLocalIcon(icon2 || "dots-circle"), [icon2]);
20115
+ useEffect63(() => setLocalTitle(title || ""), [title]);
20116
+ useEffect63(() => setLocalDescription(description || ""), [description]);
20117
+ useEffect63(() => setLocalIcon(icon2 || "dots-circle"), [icon2]);
20110
20118
  return /* @__PURE__ */ React207.createElement(BaseSection, null, /* @__PURE__ */ React207.createElement(
20111
20119
  BaseTextInput,
20112
20120
  {
@@ -20194,7 +20202,7 @@ var DomainCardViewerTemplateView = ({ editor, block }) => {
20194
20202
  };
20195
20203
 
20196
20204
  // src/mantine/blocks/domainCardViewer/flow/FlowView.tsx
20197
- import React211, { useMemo as useMemo75, useCallback as useCallback62, useEffect as useEffect63 } from "react";
20205
+ import React211, { useMemo as useMemo75, useCallback as useCallback62, useEffect as useEffect64 } from "react";
20198
20206
  import { ActionIcon as ActionIcon26, Badge as Badge32, Button as Button36, Group as Group74, Stack as Stack140, Text as Text118, Tooltip as Tooltip17 } from "@mantine/core";
20199
20207
  import { IconChevronRight as IconChevronRight10, IconLoader, IconTestPipe, IconTrash as IconTrash5 } from "@tabler/icons-react";
20200
20208
 
@@ -20509,7 +20517,7 @@ var DomainCardViewerFlowView = ({ editor, block }) => {
20509
20517
  const status = block.props.status || "pending";
20510
20518
  const domainPreviewData = block.props.domainPreviewData || "{}";
20511
20519
  const isDataReady = isPreviewDataReady(domainPreviewData);
20512
- useEffect63(() => {
20520
+ useEffect64(() => {
20513
20521
  if (status === "pending" && isDataReady) {
20514
20522
  editor.updateBlock(block, {
20515
20523
  props: {
@@ -20666,7 +20674,7 @@ import React217, { useCallback as useCallback65 } from "react";
20666
20674
  import { IconSettings as IconSettings16, IconBolt as IconBolt6, IconShieldCheck as IconShieldCheck11 } from "@tabler/icons-react";
20667
20675
 
20668
20676
  // src/mantine/blocks/governanceGroup/template/GeneralTab.tsx
20669
- import React214, { useEffect as useEffect64, useState as useState80 } from "react";
20677
+ import React214, { useEffect as useEffect65, useState as useState80 } from "react";
20670
20678
  import { Card as Card18, SimpleGrid as SimpleGrid2, Stack as Stack141, Text as Text119, ThemeIcon as ThemeIcon3 } from "@mantine/core";
20671
20679
  import { IconUsers as IconUsers5, IconSignature, IconPhoto as IconPhoto2, IconCoin } from "@tabler/icons-react";
20672
20680
 
@@ -20709,9 +20717,9 @@ var GeneralTab14 = ({ title, description, icon: icon2, groupType, onTitleChange,
20709
20717
  const [localTitle, setLocalTitle] = useState80(title || "");
20710
20718
  const [localDescription, setLocalDescription] = useState80(description || "");
20711
20719
  const [localIcon, setLocalIcon] = useState80(icon2 || "users");
20712
- useEffect64(() => setLocalTitle(title || ""), [title]);
20713
- useEffect64(() => setLocalDescription(description || ""), [description]);
20714
- useEffect64(() => setLocalIcon(icon2 || "users"), [icon2]);
20720
+ useEffect65(() => setLocalTitle(title || ""), [title]);
20721
+ useEffect65(() => setLocalDescription(description || ""), [description]);
20722
+ useEffect65(() => setLocalIcon(icon2 || "users"), [icon2]);
20715
20723
  return /* @__PURE__ */ React214.createElement(BaseSection, null, /* @__PURE__ */ React214.createElement(Stack141, { gap: "md" }, /* @__PURE__ */ React214.createElement(Text119, { size: "sm", fw: 500 }, "Group Type"), /* @__PURE__ */ React214.createElement(SimpleGrid2, { cols: 2, spacing: "sm" }, GROUP_TYPE_CONFIGS.map((config) => {
20716
20724
  const isSelected = groupType === config.type;
20717
20725
  return /* @__PURE__ */ React214.createElement(
@@ -20773,12 +20781,12 @@ var GeneralTab14 = ({ title, description, icon: icon2, groupType, onTitleChange,
20773
20781
  };
20774
20782
 
20775
20783
  // src/mantine/components/HookedActionsTab/HookedActionsTab.tsx
20776
- import React216, { useCallback as useCallback64, useMemo as useMemo76, useEffect as useEffect66, useState as useState82 } from "react";
20784
+ import React216, { useCallback as useCallback64, useMemo as useMemo76, useEffect as useEffect67, useState as useState82 } from "react";
20777
20785
  import { Stack as Stack143, Text as Text121, Alert as Alert30, Accordion as Accordion4, Group as Group76, Badge as Badge34, Menu as Menu3, Button as Button37 } from "@mantine/core";
20778
20786
  import { IconPlus as IconPlus6, IconMail as IconMail5, IconLink as IconLink3 } from "@tabler/icons-react";
20779
20787
 
20780
20788
  // src/mantine/components/HookedActionsTab/ActionInstanceCard.tsx
20781
- import React215, { useCallback as useCallback63, useState as useState81, useEffect as useEffect65 } from "react";
20789
+ import React215, { useCallback as useCallback63, useState as useState81, useEffect as useEffect66 } from "react";
20782
20790
  import { Card as Card19, Stack as Stack142, Group as Group75, Text as Text120, ActionIcon as ActionIcon27, Switch as Switch6, Badge as Badge33, Divider as Divider19, Loader as Loader29 } from "@mantine/core";
20783
20791
  import { IconTrash as IconTrash6, IconMail as IconMail4, IconLink as IconLink2 } from "@tabler/icons-react";
20784
20792
  var getActionIcon = (type) => {
@@ -20797,7 +20805,7 @@ var ActionInstanceCard = ({ instance, actionType, payloadFields, availableBlocks
20797
20805
  const [loadingTemplates, setLoadingTemplates] = useState81(false);
20798
20806
  const [templateVariables, setTemplateVariables] = useState81([]);
20799
20807
  const [loadingVariables, setLoadingVariables] = useState81(false);
20800
- useEffect65(() => {
20808
+ useEffect66(() => {
20801
20809
  if (instance.type === "sendEmail" && handlers.listEmailTemplates) {
20802
20810
  setLoadingTemplates(true);
20803
20811
  handlers.listEmailTemplates({}).then((response) => {
@@ -20810,7 +20818,7 @@ var ActionInstanceCard = ({ instance, actionType, payloadFields, availableBlocks
20810
20818
  }).catch(console.error).finally(() => setLoadingTemplates(false));
20811
20819
  }
20812
20820
  }, [instance.type, handlers.listEmailTemplates]);
20813
- useEffect65(() => {
20821
+ useEffect66(() => {
20814
20822
  const templateName = instance.config.templateName;
20815
20823
  if (instance.type === "sendEmail" && templateName && handlers.getEmailTemplate) {
20816
20824
  setLoadingVariables(true);
@@ -21017,11 +21025,11 @@ function ensureActionTypesRegistered() {
21017
21025
  }
21018
21026
  var HookedActionsTab = ({ editor, block, blockActions, hookedActions, onHookedActionsChange }) => {
21019
21027
  const handlers = useBlocknoteHandlers();
21020
- useEffect66(() => {
21028
+ useEffect67(() => {
21021
21029
  ensureActionTypesRegistered();
21022
21030
  }, []);
21023
21031
  const [dynamicFields, setDynamicFields] = useState82({});
21024
- useEffect66(() => {
21032
+ useEffect67(() => {
21025
21033
  const blockProps = block?.props || {};
21026
21034
  let cancelled = false;
21027
21035
  const resolveAll = async () => {
@@ -22025,12 +22033,12 @@ var GovernanceGroupTemplateView = ({ editor, block }) => {
22025
22033
  };
22026
22034
 
22027
22035
  // src/mantine/blocks/governanceGroup/flow/FlowView.tsx
22028
- import React220, { useCallback as useCallback67, useEffect as useEffect68, useMemo as useMemo79, useRef as useRef20, useState as useState84 } from "react";
22036
+ import React220, { useCallback as useCallback67, useEffect as useEffect69, useMemo as useMemo79, useRef as useRef20, useState as useState84 } from "react";
22029
22037
  import { ActionIcon as ActionIcon28, Badge as Badge36, Group as Group79, Stack as Stack146, Text as Text124, Tooltip as Tooltip18 } from "@mantine/core";
22030
22038
  import { IconChevronRight as IconChevronRight11 } from "@tabler/icons-react";
22031
22039
 
22032
22040
  // src/mantine/blocks/governanceGroup/flow/GovernanceGroupPanel.tsx
22033
- import React219, { useCallback as useCallback66, useEffect as useEffect67, useMemo as useMemo78, useRef as useRef19, useState as useState83 } from "react";
22041
+ import React219, { useCallback as useCallback66, useEffect as useEffect68, useMemo as useMemo78, useRef as useRef19, useState as useState83 } from "react";
22034
22042
  import { Alert as Alert31, Button as Button38, Card as Card20, Group as Group78, Loader as Loader30, SimpleGrid as SimpleGrid3, Stack as Stack145, Text as Text123, ThemeIcon as ThemeIcon4 } from "@mantine/core";
22035
22043
  import { useDebouncedCallback as useDebouncedCallback3 } from "@mantine/hooks";
22036
22044
  import { IconAlertCircle as IconAlertCircle16, IconCheck as IconCheck13, IconUsers as IconUsers6, IconSignature as IconSignature2, IconPhoto as IconPhoto3, IconCoin as IconCoin2, IconArrowLeft as IconArrowLeft5 } from "@tabler/icons-react";
@@ -22119,13 +22127,13 @@ var GovernanceGroupPanel = ({ editor, block, onComplete }) => {
22119
22127
  }
22120
22128
  });
22121
22129
  }, SYNC_DEBOUNCE_MS3);
22122
- useEffect67(() => {
22130
+ useEffect68(() => {
22123
22131
  const answersJson = block.props.answers;
22124
22132
  if (answersJson && surveyModel) {
22125
22133
  syncPropToSurvey(answersJson);
22126
22134
  }
22127
22135
  }, [block.props.answers, syncPropToSurvey, surveyModel]);
22128
- useEffect67(() => {
22136
+ useEffect68(() => {
22129
22137
  if (!surveyModel) return;
22130
22138
  const handleValueChanged = () => {
22131
22139
  if (isUpdatingFromProp.current) return;
@@ -22209,7 +22217,7 @@ var GovernanceGroupPanel = ({ editor, block, onComplete }) => {
22209
22217
  },
22210
22218
  [processGroupCreation, onComplete, editor, block, selectedGroupType]
22211
22219
  );
22212
- useEffect67(() => {
22220
+ useEffect68(() => {
22213
22221
  if (!surveyModel) return;
22214
22222
  surveyModel.onComplete.add(handleSurveyComplete);
22215
22223
  return () => {
@@ -22286,7 +22294,7 @@ var GovernanceGroupFlowView = ({ editor, block }) => {
22286
22294
  const hasExistingSubmission = lastSubmission?.coreAddress;
22287
22295
  const editorRef = useRef20(editor);
22288
22296
  const blockRef = useRef20(block);
22289
- useEffect68(() => {
22297
+ useEffect69(() => {
22290
22298
  editorRef.current = editor;
22291
22299
  blockRef.current = block;
22292
22300
  });
@@ -22327,7 +22335,7 @@ var GovernanceGroupFlowView = ({ editor, block }) => {
22327
22335
  });
22328
22336
  setSubmissionStatus("success");
22329
22337
  }, []);
22330
- useEffect68(() => {
22338
+ useEffect69(() => {
22331
22339
  handleCompleteRef.current = handleComplete;
22332
22340
  });
22333
22341
  const stableHandleComplete = useCallback67(
@@ -22453,7 +22461,7 @@ var GeneralTab15 = ({ title, description, icon: icon2, onTitleChange, onDescript
22453
22461
  };
22454
22462
 
22455
22463
  // src/mantine/blocks/flowLink/template/LinksTab.tsx
22456
- import React224, { useEffect as useEffect69, useMemo as useMemo80, useState as useState85 } from "react";
22464
+ import React224, { useEffect as useEffect70, useMemo as useMemo80, useState as useState85 } from "react";
22457
22465
  import { Stack as Stack148, Card as Card21, Group as Group80, ActionIcon as ActionIcon29, Text as Text125, Divider as Divider20 } from "@mantine/core";
22458
22466
  import { IconPlus as IconPlus7, IconTrash as IconTrash7, IconGripVertical } from "@tabler/icons-react";
22459
22467
  import { DndContext, PointerSensor, useSensor, useSensors, closestCenter, useDraggable, useDroppable } from "@dnd-kit/core";
@@ -22477,7 +22485,7 @@ function generateId(prefix) {
22477
22485
  // src/mantine/blocks/flowLink/template/LinksTab.tsx
22478
22486
  var DraggableLinkCard = ({ link, index, onRemove, onUpdate }) => {
22479
22487
  const [localUrl, setLocalUrl] = useState85(link.url || "");
22480
- useEffect69(() => {
22488
+ useEffect70(() => {
22481
22489
  setLocalUrl(link.url || "");
22482
22490
  }, [link.url]);
22483
22491
  const { attributes, listeners, setNodeRef: setDragRef, transform, isDragging } = useDraggable({ id: link.id });
@@ -22620,7 +22628,7 @@ import React228, { useMemo as useMemo82 } from "react";
22620
22628
  import { Badge as Badge38, Group as Group83, Stack as Stack151, Text as Text128, Tooltip as Tooltip20 } from "@mantine/core";
22621
22629
 
22622
22630
  // src/mantine/blocks/flowLink/flow/FlowLinkPanel.tsx
22623
- import React227, { useState as useState86, useEffect as useEffect70, useCallback as useCallback68 } from "react";
22631
+ import React227, { useState as useState86, useEffect as useEffect71, useCallback as useCallback68 } from "react";
22624
22632
  import { Stack as Stack150, Text as Text127, Card as Card22, Group as Group82, Badge as Badge37, ActionIcon as ActionIcon30, Loader as Loader31, Tooltip as Tooltip19 } from "@mantine/core";
22625
22633
  import { IconRefresh as IconRefresh4, IconCheck as IconCheck14, IconClock as IconClock10, IconCircleDashed as IconCircleDashed4 } from "@tabler/icons-react";
22626
22634
  var FlowLinkPanel = ({ editor, block }) => {
@@ -22648,7 +22656,7 @@ var FlowLinkPanel = ({ editor, block }) => {
22648
22656
  );
22649
22657
  setLinksWithStatus(updatedLinks);
22650
22658
  }, [handlers, links]);
22651
- useEffect70(() => {
22659
+ useEffect71(() => {
22652
22660
  fetchStatuses();
22653
22661
  }, []);
22654
22662
  const handleNavigate = (link) => {
@@ -22802,7 +22810,7 @@ import { Stack as Stack154 } from "@mantine/core";
22802
22810
  import { IconCheck as IconCheck15, IconContract as IconContract4, IconSettings as IconSettings18, IconShieldCheck as IconShieldCheck13, IconUserCheck as IconUserCheck4 } from "@tabler/icons-react";
22803
22811
 
22804
22812
  // src/mantine/blocks/action/template/GeneralTab.tsx
22805
- import React232, { useEffect as useEffect71, useMemo as useMemo83, useState as useState87 } from "react";
22813
+ import React232, { useEffect as useEffect72, useMemo as useMemo83, useState as useState87 } from "react";
22806
22814
  import { Group as Group85, Stack as Stack153, Text as Text130, Button as Button39, ActionIcon as ActionIcon31, Paper as Paper16 } from "@mantine/core";
22807
22815
  import {
22808
22816
  IconMail as IconMail6,
@@ -23026,8 +23034,8 @@ var GeneralTab16 = ({
23026
23034
  }) => {
23027
23035
  const [localTitle, setLocalTitle] = useState87(title || "");
23028
23036
  const [localDescription, setLocalDescription] = useState87(description || "");
23029
- useEffect71(() => setLocalTitle(title || ""), [title]);
23030
- useEffect71(() => setLocalDescription(description || ""), [description]);
23037
+ useEffect72(() => setLocalTitle(title || ""), [title]);
23038
+ useEffect72(() => setLocalDescription(description || ""), [description]);
23031
23039
  const actionTypeOptions = useMemo83(() => {
23032
23040
  return getAllActions().map((a) => {
23033
23041
  const m = getActionMeta(a.type);
@@ -23063,7 +23071,7 @@ var GeneralTab16 = ({
23063
23071
  };
23064
23072
  function GenericInputsEditor({ inputs, onInputsChange, editor, blockId }) {
23065
23073
  const [localInputs, setLocalInputs] = useState87(() => parseInputPairs(inputs));
23066
- useEffect71(() => setLocalInputs(parseInputPairs(inputs)), [inputs]);
23074
+ useEffect72(() => setLocalInputs(parseInputPairs(inputs)), [inputs]);
23067
23075
  const handleAddInput = () => {
23068
23076
  const updated = [...localInputs, { key: "", value: "" }];
23069
23077
  setLocalInputs(updated);
@@ -23254,11 +23262,11 @@ import { Group as Group87, Stack as Stack156, Text as Text132, Button as Button4
23254
23262
  import { IconPlayerPlay as IconPlayerPlay2, IconAlertTriangle as IconAlertTriangle3, IconUser as IconUser13, IconBolt as IconBolt8 } from "@tabler/icons-react";
23255
23263
 
23256
23264
  // src/mantine/hooks/useAutoCommitOnExecute.ts
23257
- import { useEffect as useEffect72, useRef as useRef21 } from "react";
23265
+ import { useEffect as useEffect73, useRef as useRef21 } from "react";
23258
23266
  function useAutoCommitOnExecute(editor, block, runtimeState) {
23259
23267
  const handlers = useBlocknoteHandlers();
23260
23268
  const prevState = useRef21(runtimeState);
23261
- useEffect72(() => {
23269
+ useEffect73(() => {
23262
23270
  const wasCompleted = prevState.current === "completed";
23263
23271
  prevState.current = runtimeState;
23264
23272
  if (runtimeState !== "completed" || wasCompleted) return;
@@ -23588,12 +23596,12 @@ function GenericFlowPanel({
23588
23596
  }
23589
23597
 
23590
23598
  // src/mantine/blocks/action/actionTypes/httpRequest/HttpRequestConfig.tsx
23591
- import React236, { useEffect as useEffect73, useState as useState89, useCallback as useCallback70 } from "react";
23599
+ import React236, { useEffect as useEffect74, useState as useState89, useCallback as useCallback70 } from "react";
23592
23600
  import { Stack as Stack157, Text as Text133, Button as Button41, Group as Group88, ActionIcon as ActionIcon32, Paper as Paper17, Alert as Alert33, Code as Code8 } from "@mantine/core";
23593
23601
  import { IconTrash as IconTrash9, IconPlus as IconPlus9, IconInfoCircle as IconInfoCircle5 } from "@tabler/icons-react";
23594
23602
  var HttpRequestConfig = ({ inputs, onInputsChange, editor, blockId }) => {
23595
23603
  const [local, setLocal] = useState89(() => parseHttpRequestInputs(inputs));
23596
- useEffect73(() => {
23604
+ useEffect74(() => {
23597
23605
  setLocal(parseHttpRequestInputs(inputs));
23598
23606
  }, [inputs]);
23599
23607
  const update = useCallback70(
@@ -23881,7 +23889,7 @@ registerActionTypeUI("http.request", {
23881
23889
  });
23882
23890
 
23883
23891
  // src/mantine/blocks/action/actionTypes/emailSend/EmailSendConfig.tsx
23884
- import React238, { useCallback as useCallback71, useEffect as useEffect74, useRef as useRef22, useState as useState91, useMemo as useMemo88 } from "react";
23892
+ import React238, { useCallback as useCallback71, useEffect as useEffect75, useRef as useRef22, useState as useState91, useMemo as useMemo88 } from "react";
23885
23893
  import { Alert as Alert35, Badge as Badge40, Group as Group90, Loader as Loader34, Stack as Stack159, Text as Text135 } from "@mantine/core";
23886
23894
  import { IconCheck as IconCheck16, IconInfoCircle as IconInfoCircle6 } from "@tabler/icons-react";
23887
23895
 
@@ -23918,7 +23926,7 @@ function serializeEmailSendInputs(inputs) {
23918
23926
  var EmailSendConfig = ({ inputs, onInputsChange, editor, blockId }) => {
23919
23927
  const handlers = useBlocknoteHandlers();
23920
23928
  const [local, setLocal] = useState91(() => parseEmailSendInputs(inputs));
23921
- useEffect74(() => {
23929
+ useEffect75(() => {
23922
23930
  setLocal(parseEmailSendInputs(inputs));
23923
23931
  }, [inputs]);
23924
23932
  const update = useCallback71(
@@ -23934,7 +23942,7 @@ var EmailSendConfig = ({ inputs, onInputsChange, editor, blockId }) => {
23934
23942
  const [loadingContent, setLoadingContent] = useState91(false);
23935
23943
  const [templateError, setTemplateError] = useState91(null);
23936
23944
  const hasLoadedTemplates = useRef22(false);
23937
- useEffect74(() => {
23945
+ useEffect75(() => {
23938
23946
  if (hasLoadedTemplates.current) return;
23939
23947
  async function loadTemplates() {
23940
23948
  if (!handlers.listEmailTemplates) {
@@ -24063,7 +24071,7 @@ registerActionTypeUI("email.send", {
24063
24071
  });
24064
24072
 
24065
24073
  // src/mantine/blocks/action/actionTypes/bid/BidConfig.tsx
24066
- import React239, { useCallback as useCallback72, useEffect as useEffect75, useMemo as useMemo89, useState as useState92 } from "react";
24074
+ import React239, { useCallback as useCallback72, useEffect as useEffect76, useMemo as useMemo89, useState as useState92 } from "react";
24067
24075
  import { Alert as Alert36, Loader as Loader35, Stack as Stack160, Text as Text136 } from "@mantine/core";
24068
24076
  import { IconInfoCircle as IconInfoCircle7 } from "@tabler/icons-react";
24069
24077
 
@@ -24093,7 +24101,7 @@ var BidConfig = ({ inputs, onInputsChange, editor, blockId }) => {
24093
24101
  const [collections, setCollections] = useState92([]);
24094
24102
  const [loadingCollections, setLoadingCollections] = useState92(false);
24095
24103
  const [error, setError] = useState92(null);
24096
- useEffect75(() => {
24104
+ useEffect76(() => {
24097
24105
  setLocal(parseBidActionInputs(inputs));
24098
24106
  }, [inputs]);
24099
24107
  const update = useCallback72(
@@ -24166,7 +24174,7 @@ var BidConfig = ({ inputs, onInputsChange, editor, blockId }) => {
24166
24174
  };
24167
24175
 
24168
24176
  // src/mantine/blocks/action/actionTypes/bid/BidFlowDetail.tsx
24169
- import React241, { useCallback as useCallback73, useEffect as useEffect76, useMemo as useMemo90, useState as useState93 } from "react";
24177
+ import React241, { useCallback as useCallback73, useEffect as useEffect77, useMemo as useMemo90, useState as useState93 } from "react";
24170
24178
  import { Alert as Alert37, Loader as Loader36, Stack as Stack161, Text as Text137 } from "@mantine/core";
24171
24179
  import { IconPlayerPlay as IconPlayerPlay3 } from "@tabler/icons-react";
24172
24180
  import { SurveyModel as SurveyModel9 } from "@ixo/surveys";
@@ -24250,11 +24258,11 @@ var BidFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isDisabled
24250
24258
  setLoadingSurvey(false);
24251
24259
  }
24252
24260
  }, [handlers, role, deedDid, collectionId]);
24253
- useEffect76(() => {
24261
+ useEffect77(() => {
24254
24262
  setSurveyJson(null);
24255
24263
  setError(null);
24256
24264
  }, [role, deedDid, collectionId]);
24257
- useEffect76(() => {
24265
+ useEffect77(() => {
24258
24266
  let mounted = true;
24259
24267
  const fetchApplicationState = async () => {
24260
24268
  if (!deedDid || !collectionId || !actorDid) {
@@ -24392,7 +24400,7 @@ var BidFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isDisabled
24392
24400
  verifySignature
24393
24401
  ]
24394
24402
  );
24395
- useEffect76(() => {
24403
+ useEffect77(() => {
24396
24404
  if (!surveyModel) return void 0;
24397
24405
  surveyModel.onComplete.add(handleSurveyComplete);
24398
24406
  return () => {
@@ -24429,7 +24437,7 @@ registerActionTypeUI("bid", {
24429
24437
  });
24430
24438
 
24431
24439
  // src/mantine/blocks/action/actionTypes/evaluateBid/EvaluateBidConfig.tsx
24432
- import React242, { useCallback as useCallback74, useEffect as useEffect77, useMemo as useMemo91, useState as useState94 } from "react";
24440
+ import React242, { useCallback as useCallback74, useEffect as useEffect78, useMemo as useMemo91, useState as useState94 } from "react";
24433
24441
  import { Alert as Alert38, Loader as Loader37, Stack as Stack162 } from "@mantine/core";
24434
24442
 
24435
24443
  // src/mantine/blocks/action/actionTypes/evaluateBid/types.ts
@@ -24458,7 +24466,7 @@ var EvaluateBidConfig = ({ inputs, onInputsChange, editor, blockId }) => {
24458
24466
  const [collections, setCollections] = useState94([]);
24459
24467
  const [loadingCollections, setLoadingCollections] = useState94(false);
24460
24468
  const [error, setError] = useState94(null);
24461
- useEffect77(() => {
24469
+ useEffect78(() => {
24462
24470
  setLocal(parseEvaluateBidActionInputs(inputs));
24463
24471
  }, [inputs]);
24464
24472
  const update = useCallback74(
@@ -24531,7 +24539,7 @@ var EvaluateBidConfig = ({ inputs, onInputsChange, editor, blockId }) => {
24531
24539
  };
24532
24540
 
24533
24541
  // src/mantine/blocks/action/actionTypes/evaluateBid/EvaluateBidFlowDetail.tsx
24534
- import React243, { useCallback as useCallback75, useEffect as useEffect78, useMemo as useMemo92, useState as useState95 } from "react";
24542
+ import React243, { useCallback as useCallback75, useEffect as useEffect79, useMemo as useMemo92, useState as useState95 } from "react";
24535
24543
  import { ActionIcon as ActionIcon34, Alert as Alert39, Badge as Badge41, Box as Box46, Button as Button42, Collapse as Collapse9, Divider as Divider22, Group as Group91, Loader as Loader38, Stack as Stack163, Text as Text138, UnstyledButton as UnstyledButton3 } from "@mantine/core";
24536
24544
  import { IconArrowLeft as IconArrowLeft6, IconCheck as IconCheck17, IconChevronDown as IconChevronDown9, IconChevronRight as IconChevronRight12, IconFilter, IconThumbDown, IconThumbUp as IconThumbUp3 } from "@tabler/icons-react";
24537
24545
  function getRoleColor2(role) {
@@ -24661,23 +24669,23 @@ var EvaluateBidFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, is
24661
24669
  setLoadingBids(false);
24662
24670
  }
24663
24671
  }, [handlers, deedDid, collectionId, selectedBidId]);
24664
- useEffect78(() => {
24672
+ useEffect79(() => {
24665
24673
  setSelectedBidId("");
24666
24674
  setRejectReason("");
24667
24675
  setError(null);
24668
24676
  }, [deedDid, collectionId]);
24669
- useEffect78(() => {
24677
+ useEffect79(() => {
24670
24678
  setRejectReason("");
24671
24679
  setPaymentRows([createPaymentRow()]);
24672
24680
  setEvaluationOpen(true);
24673
24681
  setDetailsOpen(false);
24674
24682
  setInputsOpen(false);
24675
24683
  }, [selectedBidId]);
24676
- useEffect78(() => {
24684
+ useEffect79(() => {
24677
24685
  if (!deedDid || !collectionId) return;
24678
24686
  refreshBids();
24679
24687
  }, [deedDid, collectionId, refreshBids]);
24680
- useEffect78(() => {
24688
+ useEffect79(() => {
24681
24689
  let mounted = true;
24682
24690
  const dids = Array.from(new Set(bids.map((bid) => bid.did).filter(Boolean)));
24683
24691
  const missing = dids.filter((did) => !profilesByDid[did]);
@@ -25004,7 +25012,7 @@ registerActionTypeUI("evaluateBid", {
25004
25012
  });
25005
25013
 
25006
25014
  // src/mantine/blocks/action/actionTypes/claim/ClaimConfig.tsx
25007
- import React244, { useCallback as useCallback76, useEffect as useEffect79, useMemo as useMemo93, useState as useState96 } from "react";
25015
+ import React244, { useCallback as useCallback76, useEffect as useEffect80, useMemo as useMemo93, useState as useState96 } from "react";
25008
25016
  import { Alert as Alert40, Loader as Loader39, Stack as Stack164 } from "@mantine/core";
25009
25017
 
25010
25018
  // src/mantine/blocks/action/actionTypes/claim/types.ts
@@ -25033,7 +25041,7 @@ var ClaimConfig = ({ inputs, onInputsChange, editor, blockId }) => {
25033
25041
  const [collections, setCollections] = useState96([]);
25034
25042
  const [loadingCollections, setLoadingCollections] = useState96(false);
25035
25043
  const [error, setError] = useState96(null);
25036
- useEffect79(() => {
25044
+ useEffect80(() => {
25037
25045
  setLocal(parseClaimActionInputs(inputs));
25038
25046
  }, [inputs]);
25039
25047
  const update = useCallback76(
@@ -25106,7 +25114,7 @@ var ClaimConfig = ({ inputs, onInputsChange, editor, blockId }) => {
25106
25114
  };
25107
25115
 
25108
25116
  // src/mantine/blocks/action/actionTypes/claim/ClaimFlowDetail.tsx
25109
- import React245, { useCallback as useCallback77, useEffect as useEffect80, useMemo as useMemo94, useState as useState97 } from "react";
25117
+ import React245, { useCallback as useCallback77, useEffect as useEffect81, useMemo as useMemo94, useState as useState97 } from "react";
25110
25118
  import { Alert as Alert41, Box as Box47, Group as Group92, Loader as Loader40, Stack as Stack165, Text as Text139 } from "@mantine/core";
25111
25119
  import { IconCheck as IconCheck18, IconPlayerPlay as IconPlayerPlay4 } from "@tabler/icons-react";
25112
25120
  import { SurveyModel as SurveyModel10 } from "@ixo/surveys";
@@ -25203,15 +25211,15 @@ var ClaimFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isDisabl
25203
25211
  setLoadingClaims(false);
25204
25212
  }
25205
25213
  }, [handlers, deedDid, collectionId, actorDid]);
25206
- useEffect80(() => {
25214
+ useEffect81(() => {
25207
25215
  setSurveyJson(null);
25208
25216
  setError(null);
25209
25217
  }, [deedDid, collectionId]);
25210
- useEffect80(() => {
25218
+ useEffect81(() => {
25211
25219
  if (!deedDid || !collectionId || !actorDid) return;
25212
25220
  fetchClaimsAndAdmin();
25213
25221
  }, [deedDid, collectionId, actorDid, fetchClaimsAndAdmin]);
25214
- useEffect80(() => {
25222
+ useEffect81(() => {
25215
25223
  let mounted = true;
25216
25224
  const dids = Array.from(new Set(claims.map((claim) => claim.agentDid).filter(Boolean)));
25217
25225
  const missing = dids.filter((did) => !profilesByDid[did]);
@@ -25246,7 +25254,7 @@ var ClaimFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isDisabl
25246
25254
  mounted = false;
25247
25255
  };
25248
25256
  }, [claims, handlers, profilesByDid]);
25249
- useEffect80(() => {
25257
+ useEffect81(() => {
25250
25258
  let mounted = true;
25251
25259
  const checkServiceAgentAuthorization = async () => {
25252
25260
  if (!deedDid || !collectionId || !adminAddress || !actorDid) {
@@ -25411,7 +25419,7 @@ var ClaimFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isDisabl
25411
25419
  isServiceAgentAuthorized
25412
25420
  ]
25413
25421
  );
25414
- useEffect80(() => {
25422
+ useEffect81(() => {
25415
25423
  if (!surveyModel) return void 0;
25416
25424
  surveyModel.onComplete.add(handleSurveyComplete);
25417
25425
  return () => {
@@ -25463,7 +25471,7 @@ registerActionTypeUI("claim", {
25463
25471
  });
25464
25472
 
25465
25473
  // src/mantine/blocks/action/actionTypes/evaluateClaim/EvaluateClaimConfig.tsx
25466
- import React246, { useCallback as useCallback78, useEffect as useEffect81, useMemo as useMemo95, useState as useState98 } from "react";
25474
+ import React246, { useCallback as useCallback78, useEffect as useEffect82, useMemo as useMemo95, useState as useState98 } from "react";
25467
25475
  import { Alert as Alert42, Loader as Loader41, Stack as Stack166 } from "@mantine/core";
25468
25476
 
25469
25477
  // src/mantine/blocks/action/actionTypes/evaluateClaim/types.ts
@@ -25492,7 +25500,7 @@ var EvaluateClaimConfig = ({ inputs, onInputsChange, editor, blockId }) => {
25492
25500
  const [collections, setCollections] = useState98([]);
25493
25501
  const [loadingCollections, setLoadingCollections] = useState98(false);
25494
25502
  const [error, setError] = useState98(null);
25495
- useEffect81(() => {
25503
+ useEffect82(() => {
25496
25504
  setLocal(parseEvaluateClaimActionInputs(inputs));
25497
25505
  }, [inputs]);
25498
25506
  const update = useCallback78(
@@ -25565,7 +25573,7 @@ var EvaluateClaimConfig = ({ inputs, onInputsChange, editor, blockId }) => {
25565
25573
  };
25566
25574
 
25567
25575
  // src/mantine/blocks/action/actionTypes/evaluateClaim/EvaluateClaimFlowDetail.tsx
25568
- import React247, { useCallback as useCallback79, useEffect as useEffect82, useMemo as useMemo96, useState as useState99 } from "react";
25576
+ import React247, { useCallback as useCallback79, useEffect as useEffect83, useMemo as useMemo96, useState as useState99 } from "react";
25569
25577
  import { ActionIcon as ActionIcon35, Alert as Alert43, Box as Box48, Button as Button43, Checkbox as Checkbox12, Collapse as Collapse10, Divider as Divider23, Group as Group93, Loader as Loader42, ScrollArea as ScrollArea8, Stack as Stack167, Text as Text140, UnstyledButton as UnstyledButton4 } from "@mantine/core";
25570
25578
  import { IconArrowLeft as IconArrowLeft7, IconCheck as IconCheck19, IconChevronDown as IconChevronDown10, IconChevronRight as IconChevronRight13, IconFilter as IconFilter2, IconThumbDown as IconThumbDown2, IconThumbUp as IconThumbUp4 } from "@tabler/icons-react";
25571
25579
  import { SurveyModel as SurveyModel11 } from "@ixo/surveys";
@@ -25773,7 +25781,7 @@ var EvaluateClaimFlowDetail = ({ inputs, editor, block, runtime, updateRuntime,
25773
25781
  },
25774
25782
  [handlers, collectionId, deedDid]
25775
25783
  );
25776
- useEffect82(() => {
25784
+ useEffect83(() => {
25777
25785
  setSelectedClaimId("");
25778
25786
  setError(null);
25779
25787
  setPaymentRows([createPaymentRow2()]);
@@ -25784,11 +25792,11 @@ var EvaluateClaimFlowDetail = ({ inputs, editor, block, runtime, updateRuntime,
25784
25792
  setOutcomeResponses({});
25785
25793
  setOutcomeComplete(false);
25786
25794
  }, [deedDid, collectionId]);
25787
- useEffect82(() => {
25795
+ useEffect83(() => {
25788
25796
  if (!deedDid || !collectionId) return;
25789
25797
  refreshClaims();
25790
25798
  }, [deedDid, collectionId, refreshClaims]);
25791
- useEffect82(() => {
25799
+ useEffect83(() => {
25792
25800
  let mounted = true;
25793
25801
  const dids = Array.from(new Set(claims.map((claim) => claim.agentDid).filter(Boolean)));
25794
25802
  const missing = dids.filter((did) => !profilesByDid[did]);
@@ -25823,7 +25831,7 @@ var EvaluateClaimFlowDetail = ({ inputs, editor, block, runtime, updateRuntime,
25823
25831
  mounted = false;
25824
25832
  };
25825
25833
  }, [claims, handlers, profilesByDid]);
25826
- useEffect82(() => {
25834
+ useEffect83(() => {
25827
25835
  let mounted = true;
25828
25836
  const checkEvaluatorAuthorization = async () => {
25829
25837
  if (!deedDid || !collectionId || !adminAddress || !actorDid) {
@@ -25867,7 +25875,7 @@ var EvaluateClaimFlowDetail = ({ inputs, editor, block, runtime, updateRuntime,
25867
25875
  mounted = false;
25868
25876
  };
25869
25877
  }, [handlers, actorDid, adminAddress, deedDid, collectionId]);
25870
- useEffect82(() => {
25878
+ useEffect83(() => {
25871
25879
  if (!selectedClaim) {
25872
25880
  setClaimData(null);
25873
25881
  setSurveyJson(null);
@@ -26207,7 +26215,7 @@ registerActionTypeUI("evaluateClaim", {
26207
26215
  });
26208
26216
 
26209
26217
  // src/mantine/blocks/action/actionTypes/proposalCreate/ProposalCreateConfig.tsx
26210
- import React248, { useCallback as useCallback80, useEffect as useEffect83, useState as useState100 } from "react";
26218
+ import React248, { useCallback as useCallback80, useEffect as useEffect84, useState as useState100 } from "react";
26211
26219
  import { Divider as Divider24, Loader as Loader43, SegmentedControl as SegmentedControl6, Stack as Stack168, Text as Text141 } from "@mantine/core";
26212
26220
 
26213
26221
  // src/mantine/blocks/action/actionTypes/proposalCreate/types.ts
@@ -26241,7 +26249,7 @@ var ProposalCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
26241
26249
  const [loadingGroups, setLoadingGroups] = useState100(false);
26242
26250
  const [inputMode, setInputMode] = useState100("select");
26243
26251
  const [manualAddress, setManualAddress] = useState100("");
26244
- useEffect83(() => {
26252
+ useEffect84(() => {
26245
26253
  setLocal(parseProposalCreateInputs(inputs));
26246
26254
  }, [inputs]);
26247
26255
  const update = useCallback80(
@@ -26252,7 +26260,7 @@ var ProposalCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
26252
26260
  },
26253
26261
  [local, onInputsChange]
26254
26262
  );
26255
- useEffect83(() => {
26263
+ useEffect84(() => {
26256
26264
  if (local.coreAddress) {
26257
26265
  const matchesGroup = groups.some((g) => g.coreAddress === local.coreAddress);
26258
26266
  if (matchesGroup) {
@@ -26263,7 +26271,7 @@ var ProposalCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
26263
26271
  }
26264
26272
  }
26265
26273
  }, [local.coreAddress, groups]);
26266
- useEffect83(() => {
26274
+ useEffect84(() => {
26267
26275
  const fetchGroups = async () => {
26268
26276
  if (!handlers?.getDAOGroups) return;
26269
26277
  setLoadingGroups(true);
@@ -26352,7 +26360,7 @@ var ProposalCreateConfig = ({ inputs, onInputsChange, editor, blockId }) => {
26352
26360
  };
26353
26361
 
26354
26362
  // src/mantine/blocks/action/actionTypes/proposalCreate/ProposalCreateFlowDetail.tsx
26355
- import React249, { useCallback as useCallback81, useEffect as useEffect84, useMemo as useMemo97, useState as useState101 } from "react";
26363
+ import React249, { useCallback as useCallback81, useEffect as useEffect85, useMemo as useMemo97, useState as useState101 } from "react";
26356
26364
  import { Alert as Alert44, Badge as Badge42, Button as Button44, Card as Card23, Group as Group94, Loader as Loader44, Stack as Stack169, Text as Text142 } from "@mantine/core";
26357
26365
  import { IconPlus as IconPlus10, IconPlayerPlay as IconPlayerPlay5 } from "@tabler/icons-react";
26358
26366
  var CHAIN_STATUSES2 = ["open", "passed", "rejected", "executed", "closed", "execution_failed", "veto_timelock"];
@@ -26409,7 +26417,7 @@ var ProposalCreateFlowDetail = ({ inputs, editor, block, runtime, updateRuntime,
26409
26417
  const proposalId = runtime.output?.proposalId || "";
26410
26418
  const currentStatus = parseStatus2(runtime.output?.status);
26411
26419
  const isProposalCreated = !!proposalId;
26412
- useEffect84(() => {
26420
+ useEffect85(() => {
26413
26421
  if (!handlers || !coreAddress || !proposalId) {
26414
26422
  setProposalContractAddress(null);
26415
26423
  return;
@@ -26441,7 +26449,7 @@ var ProposalCreateFlowDetail = ({ inputs, editor, block, runtime, updateRuntime,
26441
26449
  contractAddress: proposalContractAddress || "",
26442
26450
  autoFetch: shouldFetch
26443
26451
  });
26444
- useEffect84(() => {
26452
+ useEffect85(() => {
26445
26453
  if (!proposal) return;
26446
26454
  const chainStatus = proposal.proposal.status;
26447
26455
  const parsedStatus = parseStatus2(chainStatus);
@@ -26580,7 +26588,7 @@ var ProposalCreateFlowDetail = ({ inputs, editor, block, runtime, updateRuntime,
26580
26588
  setIsExecuting(false);
26581
26589
  }
26582
26590
  }, [handlers, proposalContractAddress, proposalId, invalidate, refetch]);
26583
- useEffect84(() => {
26591
+ useEffect85(() => {
26584
26592
  if (currentStatus === "executed" && runtime.state !== "completed") {
26585
26593
  updateRuntime({ state: "completed" });
26586
26594
  }
@@ -26628,7 +26636,7 @@ registerActionTypeUI("proposal.create", {
26628
26636
  });
26629
26637
 
26630
26638
  // src/mantine/blocks/action/actionTypes/proposalVote/ProposalVoteConfig.tsx
26631
- import React250, { useCallback as useCallback82, useEffect as useEffect85, useState as useState102 } from "react";
26639
+ import React250, { useCallback as useCallback82, useEffect as useEffect86, useState as useState102 } from "react";
26632
26640
  import { Divider as Divider25, Loader as Loader45, SegmentedControl as SegmentedControl7, Stack as Stack170, Text as Text143 } from "@mantine/core";
26633
26641
 
26634
26642
  // src/mantine/blocks/action/actionTypes/proposalVote/types.ts
@@ -26660,7 +26668,7 @@ var ProposalVoteConfig = ({ inputs, onInputsChange, editor, blockId }) => {
26660
26668
  const [loadingGroups, setLoadingGroups] = useState102(false);
26661
26669
  const [inputMode, setInputMode] = useState102("select");
26662
26670
  const [manualAddress, setManualAddress] = useState102("");
26663
- useEffect85(() => {
26671
+ useEffect86(() => {
26664
26672
  setLocal(parseProposalVoteInputs(inputs));
26665
26673
  }, [inputs]);
26666
26674
  const update = useCallback82(
@@ -26671,7 +26679,7 @@ var ProposalVoteConfig = ({ inputs, onInputsChange, editor, blockId }) => {
26671
26679
  },
26672
26680
  [local, onInputsChange]
26673
26681
  );
26674
- useEffect85(() => {
26682
+ useEffect86(() => {
26675
26683
  if (local.coreAddress) {
26676
26684
  const matchesGroup = groups.some((g) => g.coreAddress === local.coreAddress);
26677
26685
  if (matchesGroup) {
@@ -26682,7 +26690,7 @@ var ProposalVoteConfig = ({ inputs, onInputsChange, editor, blockId }) => {
26682
26690
  }
26683
26691
  }
26684
26692
  }, [local.coreAddress, groups]);
26685
- useEffect85(() => {
26693
+ useEffect86(() => {
26686
26694
  const fetchGroups = async () => {
26687
26695
  if (!handlers?.getDAOGroups) return;
26688
26696
  setLoadingGroups(true);
@@ -26766,7 +26774,7 @@ var ProposalVoteConfig = ({ inputs, onInputsChange, editor, blockId }) => {
26766
26774
  };
26767
26775
 
26768
26776
  // src/mantine/blocks/action/actionTypes/proposalVote/ProposalVoteFlowDetail.tsx
26769
- import React251, { useCallback as useCallback83, useEffect as useEffect86, useMemo as useMemo98, useState as useState103 } from "react";
26777
+ import React251, { useCallback as useCallback83, useEffect as useEffect87, useMemo as useMemo98, useState as useState103 } from "react";
26770
26778
  import { Alert as Alert45, Box as Box49, Button as Button45, Card as Card24, Group as Group95, Progress as Progress4, Stack as Stack171, Text as Text144, Tooltip as Tooltip21 } from "@mantine/core";
26771
26779
  var getVoteIcon2 = (voteType) => {
26772
26780
  switch (voteType) {
@@ -26821,7 +26829,7 @@ var ProposalVoteFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, i
26821
26829
  const [proposalContractAddress, setProposalContractAddress] = useState103(inputContractAddress || null);
26822
26830
  const hasSubmittedProposal = Boolean(proposalId);
26823
26831
  const hasVoted = Boolean(userVote?.vote);
26824
- useEffect86(() => {
26832
+ useEffect87(() => {
26825
26833
  if (inputContractAddress) {
26826
26834
  setProposalContractAddress(inputContractAddress);
26827
26835
  return;
@@ -26845,7 +26853,7 @@ var ProposalVoteFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, i
26845
26853
  isCancelled = true;
26846
26854
  };
26847
26855
  }, [handlers, coreAddress, proposalId, inputContractAddress]);
26848
- useEffect86(() => {
26856
+ useEffect87(() => {
26849
26857
  if (!handlers || !proposalContractAddress || !proposalId) return;
26850
26858
  let isCancelled = false;
26851
26859
  const loadUserVote = async () => {
@@ -27150,7 +27158,7 @@ var ProtocolSelectConfig = ({ inputs, onInputsChange }) => {
27150
27158
  };
27151
27159
 
27152
27160
  // src/mantine/blocks/action/actionTypes/protocolSelect/ProtocolSelectFlowDetail.tsx
27153
- import React253, { useCallback as useCallback84, useEffect as useEffect87, useMemo as useMemo100, useState as useState105 } from "react";
27161
+ import React253, { useCallback as useCallback84, useEffect as useEffect88, useMemo as useMemo100, useState as useState105 } from "react";
27154
27162
  import { Box as Box51, Group as Group96, Loader as Loader46, Stack as Stack173, Text as Text146 } from "@mantine/core";
27155
27163
  function parseInputs2(json) {
27156
27164
  try {
@@ -27167,7 +27175,7 @@ var ProtocolSelectFlowDetail = ({ inputs, block, runtime, updateRuntime, isDisab
27167
27175
  const { protocolDids } = useMemo100(() => parseInputs2(inputs), [inputs]);
27168
27176
  const [protocols, setProtocols] = useState105([]);
27169
27177
  const selectedDid = runtime.output?.selectedProtocolDid;
27170
- useEffect87(() => {
27178
+ useEffect88(() => {
27171
27179
  if (protocolDids.length === 0) {
27172
27180
  setProtocols([]);
27173
27181
  return;
@@ -27262,7 +27270,7 @@ registerActionTypeUI("protocol.select", {
27262
27270
  });
27263
27271
 
27264
27272
  // src/mantine/blocks/action/actionTypes/domainSign/DomainSignConfig.tsx
27265
- import React254, { useCallback as useCallback85, useEffect as useEffect88, useState as useState106 } from "react";
27273
+ import React254, { useCallback as useCallback85, useEffect as useEffect89, useState as useState106 } from "react";
27266
27274
  import { Divider as Divider26, Stack as Stack174, Text as Text147, Textarea as Textarea2 } from "@mantine/core";
27267
27275
 
27268
27276
  // src/mantine/blocks/action/actionTypes/domainSign/types.ts
@@ -27295,7 +27303,7 @@ var ENTITY_TYPE_OPTIONS = [
27295
27303
  ];
27296
27304
  var DomainSignConfig = ({ inputs, onInputsChange }) => {
27297
27305
  const [local, setLocal] = useState106(() => parseDomainSignInputs(inputs));
27298
- useEffect88(() => {
27306
+ useEffect89(() => {
27299
27307
  setLocal(parseDomainSignInputs(inputs));
27300
27308
  }, [inputs]);
27301
27309
  const update = useCallback85(
@@ -27528,7 +27536,7 @@ registerActionTypeUI("domain.sign", {
27528
27536
  });
27529
27537
 
27530
27538
  // src/mantine/blocks/action/actionTypes/domainCreate/DomainCreateConfig.tsx
27531
- import React256, { useCallback as useCallback87, useEffect as useEffect89, useState as useState108 } from "react";
27539
+ import React256, { useCallback as useCallback87, useEffect as useEffect90, useState as useState108 } from "react";
27532
27540
  import { Stack as Stack176, Text as Text149 } from "@mantine/core";
27533
27541
 
27534
27542
  // src/mantine/blocks/action/actionTypes/domainCreate/types.ts
@@ -27560,7 +27568,7 @@ var ENTITY_TYPE_OPTIONS2 = [
27560
27568
  ];
27561
27569
  var DomainCreateConfig = ({ inputs, onInputsChange }) => {
27562
27570
  const [local, setLocal] = useState108(() => parseDomainCreateInputs(inputs));
27563
- useEffect89(() => {
27571
+ useEffect90(() => {
27564
27572
  setLocal(parseDomainCreateInputs(inputs));
27565
27573
  }, [inputs]);
27566
27574
  const update = useCallback87(
@@ -27571,7 +27579,7 @@ var DomainCreateConfig = ({ inputs, onInputsChange }) => {
27571
27579
  },
27572
27580
  [local, onInputsChange]
27573
27581
  );
27574
- useEffect89(() => {
27582
+ useEffect90(() => {
27575
27583
  if (!local.surveySchema) {
27576
27584
  update({ surveySchema: tempDomainCreatorSurvey });
27577
27585
  }
@@ -27590,7 +27598,7 @@ var DomainCreateConfig = ({ inputs, onInputsChange }) => {
27590
27598
  };
27591
27599
 
27592
27600
  // src/mantine/blocks/action/actionTypes/domainCreate/DomainCreateFlowDetail.tsx
27593
- import React257, { useCallback as useCallback88, useEffect as useEffect90, useMemo as useMemo102, useState as useState109 } from "react";
27601
+ import React257, { useCallback as useCallback88, useEffect as useEffect91, useMemo as useMemo102, useState as useState109 } from "react";
27594
27602
  import { Alert as Alert47, Button as Button47, Group as Group98, Loader as Loader48, Stack as Stack177, Text as Text150 } from "@mantine/core";
27595
27603
  import { IconCheck as IconCheck21, IconAlertCircle as IconAlertCircle18, IconPlayerPlay as IconPlayerPlay6 } from "@tabler/icons-react";
27596
27604
  import { SurveyModel as SurveyModel12 } from "@ixo/surveys";
@@ -27705,7 +27713,7 @@ var DomainCreateFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, i
27705
27713
  },
27706
27714
  [actorDid, block.id, delegationStore, editor, entityType, flowNode, flowOwnerDid, flowUri, handlers, runtimeManager, services, ucanManager, updateRuntime, verifySignature]
27707
27715
  );
27708
- useEffect90(() => {
27716
+ useEffect91(() => {
27709
27717
  surveyModel.onComplete.add(handleSurveyComplete);
27710
27718
  return () => {
27711
27719
  surveyModel.onComplete.remove(handleSurveyComplete);
@@ -27739,7 +27747,7 @@ registerActionTypeUI("domain.create", {
27739
27747
  });
27740
27748
 
27741
27749
  // src/mantine/blocks/action/actionTypes/oracle/OracleConfig.tsx
27742
- import React258, { useCallback as useCallback89, useEffect as useEffect91, useState as useState110 } from "react";
27750
+ import React258, { useCallback as useCallback89, useEffect as useEffect92, useState as useState110 } from "react";
27743
27751
  import { Stack as Stack178 } from "@mantine/core";
27744
27752
 
27745
27753
  // src/mantine/blocks/action/actionTypes/oracle/types.ts
@@ -27762,7 +27770,7 @@ function serializeOracleInputs(inputs) {
27762
27770
  // src/mantine/blocks/action/actionTypes/oracle/OracleConfig.tsx
27763
27771
  var OracleConfig = ({ inputs, onInputsChange, editor, blockId }) => {
27764
27772
  const [local, setLocal] = useState110(() => parseOracleInputs(inputs));
27765
- useEffect91(() => {
27773
+ useEffect92(() => {
27766
27774
  setLocal(parseOracleInputs(inputs));
27767
27775
  }, [inputs]);
27768
27776
  const update = useCallback89(
@@ -27842,7 +27850,7 @@ registerActionTypeUI("oracle", {
27842
27850
  });
27843
27851
 
27844
27852
  // src/mantine/blocks/action/actionTypes/oraclePrompt/OraclePromptConfig.tsx
27845
- import React260, { useCallback as useCallback91, useEffect as useEffect92, useState as useState112 } from "react";
27853
+ import React260, { useCallback as useCallback91, useEffect as useEffect93, useState as useState112 } from "react";
27846
27854
  import { Stack as Stack180 } from "@mantine/core";
27847
27855
 
27848
27856
  // src/mantine/blocks/action/actionTypes/oraclePrompt/types.ts
@@ -27863,7 +27871,7 @@ function serializeOraclePromptInputs(inputs) {
27863
27871
  // src/mantine/blocks/action/actionTypes/oraclePrompt/OraclePromptConfig.tsx
27864
27872
  var OraclePromptConfig = ({ inputs, onInputsChange }) => {
27865
27873
  const [localPrompt, setLocalPrompt] = useState112(() => parseOraclePromptInputs(inputs).prompt);
27866
- useEffect92(() => {
27874
+ useEffect93(() => {
27867
27875
  setLocalPrompt(parseOraclePromptInputs(inputs).prompt);
27868
27876
  }, [inputs]);
27869
27877
  const handleChange = useCallback91(
@@ -27973,7 +27981,7 @@ registerActionTypeUI("oracle.prompt", {
27973
27981
  });
27974
27982
 
27975
27983
  // src/mantine/blocks/action/actionTypes/formSubmit/FormSubmitConfig.tsx
27976
- import React262, { useCallback as useCallback93, useEffect as useEffect93, useState as useState114 } from "react";
27984
+ import React262, { useCallback as useCallback93, useEffect as useEffect94, useState as useState114 } from "react";
27977
27985
  import { Stack as Stack182, Text as Text152 } from "@mantine/core";
27978
27986
 
27979
27987
  // src/mantine/blocks/action/actionTypes/formSubmit/types.ts
@@ -28010,7 +28018,7 @@ function isValidSchemaJson(value) {
28010
28018
  var FormSubmitConfig = ({ inputs, onInputsChange }) => {
28011
28019
  const [localSchema, setLocalSchema] = useState114(() => parseFormSubmitActionInputs(inputs).surveySchema);
28012
28020
  const [error, setError] = useState114(null);
28013
- useEffect93(() => {
28021
+ useEffect94(() => {
28014
28022
  setLocalSchema(parseFormSubmitActionInputs(inputs).surveySchema);
28015
28023
  setError(null);
28016
28024
  }, [inputs]);
@@ -28045,7 +28053,7 @@ var FormSubmitConfig = ({ inputs, onInputsChange }) => {
28045
28053
  };
28046
28054
 
28047
28055
  // src/mantine/blocks/action/actionTypes/formSubmit/FormSubmitFlowDetail.tsx
28048
- import React263, { useCallback as useCallback94, useEffect as useEffect94, useMemo as useMemo105, useState as useState115 } from "react";
28056
+ import React263, { useCallback as useCallback94, useEffect as useEffect95, useMemo as useMemo105, useState as useState115 } from "react";
28049
28057
  import { Alert as Alert50, Loader as Loader50, Stack as Stack183, Text as Text153 } from "@mantine/core";
28050
28058
  import { SurveyModel as SurveyModel13 } from "@ixo/surveys";
28051
28059
  function parsePrimarySkill2(rawSkill) {
@@ -28252,7 +28260,7 @@ var FormSubmitFlowDetail = ({ inputs, editor, block, runtime, updateRuntime, isD
28252
28260
  verifySignature
28253
28261
  ]
28254
28262
  );
28255
- useEffect94(() => {
28263
+ useEffect95(() => {
28256
28264
  if (!surveyModel) return void 0;
28257
28265
  surveyModel.onComplete.add(handleSurveyComplete);
28258
28266
  return () => {
@@ -28274,7 +28282,7 @@ registerActionTypeUI("human.form.submit", {
28274
28282
  });
28275
28283
 
28276
28284
  // src/mantine/blocks/action/actionTypes/credentialStore/CredentialStoreConfig.tsx
28277
- import React264, { useCallback as useCallback95, useEffect as useEffect95, useState as useState116 } from "react";
28285
+ import React264, { useCallback as useCallback95, useEffect as useEffect96, useState as useState116 } from "react";
28278
28286
  import { Stack as Stack184, Text as Text154 } from "@mantine/core";
28279
28287
 
28280
28288
  // src/mantine/blocks/action/actionTypes/credentialStore/types.ts
@@ -28307,7 +28315,7 @@ function serializeCredentialStoreInputs(inputs) {
28307
28315
  // src/mantine/blocks/action/actionTypes/credentialStore/CredentialStoreConfig.tsx
28308
28316
  var CredentialStoreConfig = ({ inputs, onInputsChange, editor, blockId }) => {
28309
28317
  const [local, setLocal] = useState116(() => parseCredentialStoreInputs(inputs));
28310
- useEffect95(() => {
28318
+ useEffect96(() => {
28311
28319
  setLocal(parseCredentialStoreInputs(inputs));
28312
28320
  }, [inputs]);
28313
28321
  const update = useCallback95(
@@ -28515,7 +28523,7 @@ registerActionTypeUI("credential.store", {
28515
28523
  });
28516
28524
 
28517
28525
  // src/mantine/blocks/action/actionTypes/payment/PaymentConfig.tsx
28518
- import React266, { useCallback as useCallback97, useEffect as useEffect96, useState as useState118 } from "react";
28526
+ import React266, { useCallback as useCallback97, useEffect as useEffect97, useState as useState118 } from "react";
28519
28527
  import { Stack as Stack186, Text as Text156 } from "@mantine/core";
28520
28528
 
28521
28529
  // src/mantine/blocks/action/actionTypes/payment/types.ts
@@ -28551,7 +28559,7 @@ function isValidPaymentConfig(value) {
28551
28559
  var PaymentConfig = ({ inputs, onInputsChange }) => {
28552
28560
  const [localConfig, setLocalConfig] = useState118(() => parsePaymentInputs(inputs).paymentConfig);
28553
28561
  const [error, setError] = useState118(null);
28554
- useEffect96(() => {
28562
+ useEffect97(() => {
28555
28563
  setLocalConfig(parsePaymentInputs(inputs).paymentConfig);
28556
28564
  setError(null);
28557
28565
  }, [inputs]);
@@ -29023,14 +29031,14 @@ import React272, { useCallback as useCallback100 } from "react";
29023
29031
  import { IconSettings as IconSettings19 } from "@tabler/icons-react";
29024
29032
 
29025
29033
  // src/mantine/blocks/location/template/GeneralTab.tsx
29026
- import React271, { useEffect as useEffect98, useRef as useRef23, useState as useState122 } from "react";
29034
+ import React271, { useEffect as useEffect99, useRef as useRef23, useState as useState122 } from "react";
29027
29035
  import { Box as Box52, Divider as Divider28, Stack as Stack188, Text as Text158 } from "@mantine/core";
29028
29036
 
29029
29037
  // src/core/hooks/useUnlMap.ts
29030
- import { useEffect as useEffect97, useState as useState120 } from "react";
29038
+ import { useEffect as useEffect98, useState as useState120 } from "react";
29031
29039
  function useUnlMap() {
29032
29040
  const [status, setStatus] = useState120("loading");
29033
- useEffect97(() => {
29041
+ useEffect98(() => {
29034
29042
  if (typeof window === "undefined") {
29035
29043
  return;
29036
29044
  }
@@ -29204,13 +29212,13 @@ var GeneralTab17 = ({ title, description, latitude, longitude, onTitleChange, on
29204
29212
  const mapRef = useRef23(null);
29205
29213
  const wrapperRef = useRef23(null);
29206
29214
  const containerRef = useRef23(null);
29207
- useEffect98(() => {
29215
+ useEffect99(() => {
29208
29216
  setLocalTitle(title);
29209
29217
  }, [title]);
29210
- useEffect98(() => {
29218
+ useEffect99(() => {
29211
29219
  setLocalDescription(description);
29212
29220
  }, [description]);
29213
- useEffect98(() => {
29221
+ useEffect99(() => {
29214
29222
  if (status !== "ready" || !UnlSdk || mapRef.current || !mapConfig || !containerRef.current || !wrapperRef.current) return;
29215
29223
  try {
29216
29224
  const hasCoords = latitude && longitude;
@@ -29336,7 +29344,7 @@ var TemplateConfig17 = ({ editor, block }) => {
29336
29344
  };
29337
29345
 
29338
29346
  // src/mantine/blocks/location/components/LocationMap.tsx
29339
- import React273, { useEffect as useEffect99, useRef as useRef24, useState as useState123 } from "react";
29347
+ import React273, { useEffect as useEffect100, useRef as useRef24, useState as useState123 } from "react";
29340
29348
  import { Box as Box53, Flex as Flex32, Loader as Loader53, Text as Text159 } from "@mantine/core";
29341
29349
  var UnlMap = ({ w = "100%", h = 200, latitude, longitude, zoom = 5, showMarker = true, showTilesControl = false }) => {
29342
29350
  const [mapError, setMapError] = useState123(null);
@@ -29346,7 +29354,7 @@ var UnlMap = ({ w = "100%", h = 200, latitude, longitude, zoom = 5, showMarker =
29346
29354
  const mapRef = useRef24(null);
29347
29355
  const markerRef = useRef24(null);
29348
29356
  const { status, UnlSdk } = useUnlMap();
29349
- useEffect99(() => {
29357
+ useEffect100(() => {
29350
29358
  if (status !== "ready" || !UnlSdk || mapRef.current || !containerRef.current || !wrapperRef.current) return;
29351
29359
  let ro;
29352
29360
  let resizeTimer;
@@ -29377,7 +29385,7 @@ var UnlMap = ({ w = "100%", h = 200, latitude, longitude, zoom = 5, showMarker =
29377
29385
  ro?.disconnect();
29378
29386
  };
29379
29387
  }, [status, UnlSdk, mapConfig]);
29380
- useEffect99(() => {
29388
+ useEffect100(() => {
29381
29389
  if (!mapRef.current || !latitude || !longitude) return;
29382
29390
  const coords = [Number(longitude), Number(latitude)];
29383
29391
  mapRef.current.setCenter(coords);
@@ -29700,7 +29708,7 @@ blockRegistry.register({
29700
29708
  });
29701
29709
 
29702
29710
  // src/mantine/blocks/hooks/useBlockDependencies.ts
29703
- import { useMemo as useMemo110, useEffect as useEffect100, useState as useState124, useCallback as useCallback101 } from "react";
29711
+ import { useMemo as useMemo110, useEffect as useEffect101, useState as useState124, useCallback as useCallback101 } from "react";
29704
29712
 
29705
29713
  // src/mantine/blocks/hooks/useDependsOn.ts
29706
29714
  import { useMemo as useMemo111 } from "react";
@@ -30173,7 +30181,7 @@ import { useCreateBlockNote as useCreateBlockNote2 } from "@blocknote/react";
30173
30181
  import { BlockNoteSchema as BlockNoteSchema2, defaultBlockSpecs as defaultBlockSpecs2, defaultInlineContentSpecs as defaultInlineContentSpecs2, defaultStyleSpecs as defaultStyleSpecs2 } from "@blocknote/core";
30174
30182
 
30175
30183
  // src/core/hooks/useMatrixProvider.ts
30176
- import { useEffect as useEffect101, useState as useState125, useRef as useRef25, useCallback as useCallback102, useMemo as useMemo112 } from "react";
30184
+ import { useEffect as useEffect102, useState as useState125, useRef as useRef25, useCallback as useCallback102, useMemo as useMemo112 } from "react";
30177
30185
  import { MatrixProvider } from "@ixo/matrix-crdt";
30178
30186
  function useMatrixProvider({ matrixClient, roomId, yDoc }) {
30179
30187
  const [matrixProvider, setProvider] = useState125(null);
@@ -30242,7 +30250,7 @@ function useMatrixProvider({ matrixClient, roomId, yDoc }) {
30242
30250
  }
30243
30251
  }
30244
30252
  }, [matrixClient, providerOptions, handleDocumentAvailable, handleDocumentUnavailable, handleCanWriteChanged]);
30245
- useEffect101(() => {
30253
+ useEffect102(() => {
30246
30254
  isMountedRef.current = true;
30247
30255
  initProvider();
30248
30256
  return () => {
@@ -30259,7 +30267,7 @@ function useMatrixProvider({ matrixClient, roomId, yDoc }) {
30259
30267
  setStatus("disconnected");
30260
30268
  };
30261
30269
  }, [initProvider]);
30262
- useEffect101(() => {
30270
+ useEffect102(() => {
30263
30271
  return () => {
30264
30272
  isMountedRef.current = false;
30265
30273
  };
@@ -30278,7 +30286,7 @@ function useCollaborativeYDoc(_options) {
30278
30286
  }
30279
30287
 
30280
30288
  // src/mantine/hooks/useCollaborativeIxoEditor.ts
30281
- import { useMemo as useMemo114, useEffect as useEffect102, useState as useState126, useRef as useRef26 } from "react";
30289
+ import { useMemo as useMemo114, useEffect as useEffect103, useState as useState126, useRef as useRef26 } from "react";
30282
30290
 
30283
30291
  // src/core/lib/matrixMetadata.ts
30284
30292
  var COVER_IMAGE_EVENT_TYPE = "ixo.page.cover_image";
@@ -30472,7 +30480,7 @@ function useCreateCollaborativeIxoEditor(options) {
30472
30480
  roomId: options.roomId
30473
30481
  });
30474
30482
  const metadataManager = useMemo114(() => new MatrixMetadataManager(matrixClient, options.roomId), [matrixClient, options.roomId]);
30475
- useEffect102(() => {
30483
+ useEffect103(() => {
30476
30484
  return () => {
30477
30485
  metadataManager.dispose();
30478
30486
  };
@@ -30739,12 +30747,12 @@ function useCreateCollaborativeIxoEditor(options) {
30739
30747
  return void 0;
30740
30748
  };
30741
30749
  }
30742
- useEffect102(() => {
30750
+ useEffect103(() => {
30743
30751
  if (ixoEditor) {
30744
30752
  ixoEditor.isEditable = editable;
30745
30753
  }
30746
30754
  }, [ixoEditor, editable]);
30747
- useEffect102(() => {
30755
+ useEffect103(() => {
30748
30756
  if (connectionStatus !== "connected") {
30749
30757
  return;
30750
30758
  }
@@ -30769,7 +30777,7 @@ function useCreateCollaborativeIxoEditor(options) {
30769
30777
  const [connectedUsers, setConnectedUsers] = useState126([]);
30770
30778
  const activeBlockIdRef = useRef26(null);
30771
30779
  const awarenessInstance = matrixProvider?.awarenessInstance ?? null;
30772
- useEffect102(() => {
30780
+ useEffect103(() => {
30773
30781
  if (!awarenessInstance || connectionStatus !== "connected") {
30774
30782
  return;
30775
30783
  }
@@ -30787,7 +30795,7 @@ function useCreateCollaborativeIxoEditor(options) {
30787
30795
  awarenessInstance.off("change", updateUsers);
30788
30796
  };
30789
30797
  }, [awarenessInstance, connectionStatus]);
30790
- useEffect102(() => {
30798
+ useEffect103(() => {
30791
30799
  if (!awarenessInstance || connectionStatus !== "connected") {
30792
30800
  return;
30793
30801
  }
@@ -30828,7 +30836,7 @@ function useCreateCollaborativeIxoEditor(options) {
30828
30836
  }
30829
30837
 
30830
30838
  // src/mantine/IxoEditor.tsx
30831
- import React287, { useState as useState132, useEffect as useEffect108, useCallback as useCallback105 } from "react";
30839
+ import React287, { useState as useState132, useEffect as useEffect109, useCallback as useCallback105 } from "react";
30832
30840
  import { SuggestionMenuController } from "@blocknote/react";
30833
30841
  import { BlockNoteView } from "@blocknote/mantine";
30834
30842
  import { filterSuggestionItems } from "@blocknote/core";
@@ -30885,7 +30893,7 @@ function PanelContent({ theme }) {
30885
30893
  }
30886
30894
 
30887
30895
  // src/mantine/components/CoverImage.tsx
30888
- import React284, { useState as useState129, useRef as useRef27, useEffect as useEffect105, useMemo as useMemo117 } from "react";
30896
+ import React284, { useState as useState129, useRef as useRef27, useEffect as useEffect106, useMemo as useMemo117 } from "react";
30889
30897
  import { Box as Box58, Group as Group105 } from "@mantine/core";
30890
30898
 
30891
30899
  // src/core/lib/imageTransform.ts
@@ -31044,7 +31052,7 @@ var CoverImageButton = forwardRef(({ isActive = false, onClick, children, style,
31044
31052
  CoverImageButton.displayName = "CoverImageButton";
31045
31053
 
31046
31054
  // src/mantine/components/Base/BaseIconPicker.tsx
31047
- import React281, { useState as useState127, useMemo as useMemo115, useEffect as useEffect103 } from "react";
31055
+ import React281, { useState as useState127, useMemo as useMemo115, useEffect as useEffect104 } from "react";
31048
31056
  import { TextInput as TextInput8, Tabs as Tabs4, Box as Box55, Stack as Stack191, UnstyledButton as UnstyledButton5, Text as Text162, Center as Center13, ScrollArea as ScrollArea9, Group as Group103, Popover as Popover6 } from "@mantine/core";
31049
31057
  import * as TablerIcons from "@tabler/icons-react";
31050
31058
  import { IconSearch as IconSearch7, IconX as IconX14, IconChevronLeft, IconChevronRight as IconChevronRight14 } from "@tabler/icons-react";
@@ -31089,7 +31097,7 @@ function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, children
31089
31097
  const query = searchQuery.toLowerCase();
31090
31098
  return allIcons.filter(([name]) => name.toLowerCase().includes(query));
31091
31099
  }, [allIcons, searchQuery]);
31092
- useEffect103(() => {
31100
+ useEffect104(() => {
31093
31101
  setCurrentPage(1);
31094
31102
  }, [searchQuery]);
31095
31103
  const paginatedIcons = useMemo115(() => {
@@ -31252,7 +31260,7 @@ function PageIcon({ src, iconSize = 64, useCenter = false, style }) {
31252
31260
  import { useDisclosure as useDisclosure7 } from "@mantine/hooks";
31253
31261
 
31254
31262
  // src/mantine/components/FlowSettingsPanel.tsx
31255
- import React283, { useState as useState128, useEffect as useEffect104, useCallback as useCallback103 } from "react";
31263
+ import React283, { useState as useState128, useEffect as useEffect105, useCallback as useCallback103 } from "react";
31256
31264
  import { Stack as Stack192, Group as Group104, Button as Button52, ActionIcon as ActionIcon37, Text as Text163, Box as Box57 } from "@mantine/core";
31257
31265
  import { IconPlus as IconPlus11, IconTrash as IconTrash10 } from "@tabler/icons-react";
31258
31266
  var SYSTEM_KEYS = /* @__PURE__ */ new Set(["@context", "_type", "schema_version", "doc_id", "title", "createdAt", "createdBy", "flowOwnerDid"]);
@@ -31270,7 +31278,7 @@ var FlowSettingsPanel = ({ editor }) => {
31270
31278
  }
31271
31279
  setRows(customRows);
31272
31280
  }, [editor]);
31273
- useEffect104(() => {
31281
+ useEffect105(() => {
31274
31282
  loadSettings();
31275
31283
  }, [loadSettings]);
31276
31284
  const handleKeyChange = useCallback103(
@@ -31335,7 +31343,7 @@ function CoverImage({ coverImageUrl, logoUrl }) {
31335
31343
  const [metadata, setMetadata] = useState129(() => editor?.getPageMetadata?.() || null);
31336
31344
  const settingsPanelContent = useMemo117(() => editor ? /* @__PURE__ */ React284.createElement(FlowSettingsPanel, { editor }) : null, [editor]);
31337
31345
  const { open: openSettings } = usePanel("flow-settings-panel", settingsPanelContent);
31338
- useEffect105(() => {
31346
+ useEffect106(() => {
31339
31347
  if (!editor?._metadataManager) {
31340
31348
  return;
31341
31349
  }
@@ -31649,7 +31657,7 @@ function CoverImage({ coverImageUrl, logoUrl }) {
31649
31657
  }
31650
31658
 
31651
31659
  // src/mantine/components/PageHeader.tsx
31652
- import React285, { useState as useState130, useRef as useRef28, useEffect as useEffect106 } from "react";
31660
+ import React285, { useState as useState130, useRef as useRef28, useEffect as useEffect107 } from "react";
31653
31661
  function PageHeader({
31654
31662
  title = "New page",
31655
31663
  icon: icon2,
@@ -31665,7 +31673,7 @@ function PageHeader({
31665
31673
  const [isPrivacyOpen, setIsPrivacyOpen] = useState130(false);
31666
31674
  const menuRef = useRef28(null);
31667
31675
  const privacyRef = useRef28(null);
31668
- useEffect106(() => {
31676
+ useEffect107(() => {
31669
31677
  function handleClickOutside(event) {
31670
31678
  if (menuRef.current && !menuRef.current.contains(event.target)) {
31671
31679
  setIsMenuOpen(false);
@@ -31863,7 +31871,7 @@ var styles = {
31863
31871
  };
31864
31872
 
31865
31873
  // src/mantine/components/ExternalDropZone.tsx
31866
- import React286, { useCallback as useCallback104, useEffect as useEffect107, useRef as useRef29, useState as useState131 } from "react";
31874
+ import React286, { useCallback as useCallback104, useEffect as useEffect108, useRef as useRef29, useState as useState131 } from "react";
31867
31875
  import { Box as Box59 } from "@mantine/core";
31868
31876
  var SCROLL_ZONE_SIZE = 80;
31869
31877
  var SCROLL_SPEED = 12;
@@ -32039,7 +32047,7 @@ var ExternalDropZone = ({
32039
32047
  },
32040
32048
  [onDrop, stopAutoScroll]
32041
32049
  );
32042
- useEffect107(() => {
32050
+ useEffect108(() => {
32043
32051
  const handleGlobalDragEnd = () => {
32044
32052
  setIsValidDrag(false);
32045
32053
  dropPositionRef.current = null;
@@ -32097,7 +32105,7 @@ var ExternalDropZone = ({
32097
32105
  },
32098
32106
  [getScrollContainer]
32099
32107
  );
32100
- useEffect107(() => {
32108
+ useEffect108(() => {
32101
32109
  if (!isPlacementMode) return;
32102
32110
  const handleKeyDown = (e) => {
32103
32111
  if (e.key === "Escape") {
@@ -32120,13 +32128,13 @@ var ExternalDropZone = ({
32120
32128
  document.removeEventListener("click", handleGlobalClick, true);
32121
32129
  };
32122
32130
  }, [isPlacementMode, onPlacementCancel]);
32123
- useEffect107(() => {
32131
+ useEffect108(() => {
32124
32132
  if (!isPlacementMode) {
32125
32133
  setIsHoveringInPlacementMode(false);
32126
32134
  dropPositionRef.current = null;
32127
32135
  }
32128
32136
  }, [isPlacementMode]);
32129
- useEffect107(() => {
32137
+ useEffect108(() => {
32130
32138
  const isActive = isValidDrag || isPlacementMode && isHoveringInPlacementMode;
32131
32139
  if (isActive) {
32132
32140
  document.body.classList.add("external-artifact-drag-active");
@@ -32137,7 +32145,7 @@ var ExternalDropZone = ({
32137
32145
  document.body.classList.remove("external-artifact-drag-active");
32138
32146
  };
32139
32147
  }, [isValidDrag, isPlacementMode, isHoveringInPlacementMode]);
32140
- useEffect107(() => {
32148
+ useEffect108(() => {
32141
32149
  return () => {
32142
32150
  if (scrollAnimationRef.current) {
32143
32151
  cancelAnimationFrame(scrollAnimationRef.current);
@@ -32211,7 +32219,7 @@ function IxoEditorContent({
32211
32219
  const { activePanel } = usePanelStore();
32212
32220
  const isPanelOpen = activePanel !== null;
32213
32221
  const [isRoomPrivate, setIsRoomPrivate] = useState132(pageHeaderProps?.isPrivate ?? true);
32214
- useEffect108(() => {
32222
+ useEffect109(() => {
32215
32223
  const matrixClient = editor.getMatrixClient?.();
32216
32224
  const roomId = editor.getRoomId?.();
32217
32225
  if (!matrixClient || !roomId) return;
@@ -32518,7 +32526,7 @@ var EntitySigningSetup = ({ opened, onClose, entityDid, entityName, onSetup }) =
32518
32526
  };
32519
32527
 
32520
32528
  // src/mantine/components/FlowPermissionsPanel.tsx
32521
- import React290, { useState as useState134, useEffect as useEffect109, useMemo as useMemo118 } from "react";
32529
+ import React290, { useState as useState134, useEffect as useEffect110, useMemo as useMemo118 } from "react";
32522
32530
  import { Stack as Stack194, Text as Text165, Paper as Paper18, Group as Group107, Badge as Badge43, Button as Button54, ActionIcon as ActionIcon38, Loader as Loader54, Alert as Alert54, Divider as Divider29 } from "@mantine/core";
32523
32531
  import { IconPlus as IconPlus12, IconTrash as IconTrash11, IconShieldCheck as IconShieldCheck15, IconUser as IconUser14, IconRobot as IconRobot4, IconBuilding as IconBuilding2 } from "@tabler/icons-react";
32524
32532
  var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission, onRevokePermission, getUserDisplayName }) => {
@@ -32526,7 +32534,7 @@ var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission,
32526
32534
  const [loading, setLoading] = useState134(true);
32527
32535
  const [revoking, setRevoking] = useState134(null);
32528
32536
  const rootCapability = useMemo118(() => editor.getRootCapability?.(), [editor]);
32529
- useEffect109(() => {
32537
+ useEffect110(() => {
32530
32538
  const loadDelegations = async () => {
32531
32539
  setLoading(true);
32532
32540
  const allDelegations = editor.getAllDelegations?.() || [];
@@ -32867,4 +32875,4 @@ export {
32867
32875
  getExtraSlashMenuItems,
32868
32876
  useCreateIxoEditor
32869
32877
  };
32870
- //# sourceMappingURL=chunk-VR7OZJUQ.mjs.map
32878
+ //# sourceMappingURL=chunk-4344EQ47.mjs.map