@ixo/editor 1.18.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1396,11 +1396,11 @@ var CheckboxBlockSpec = createReactBlockSpec(
1396
1396
  );
1397
1397
 
1398
1398
  // src/mantine/blocks/list/ListBlockSpec.tsx
1399
- import React42 from "react";
1399
+ import React43 from "react";
1400
1400
  import { createReactBlockSpec as createReactBlockSpec2 } from "@blocknote/react";
1401
1401
 
1402
1402
  // src/mantine/blocks/list/ListBlock.tsx
1403
- import React41 from "react";
1403
+ import React42 from "react";
1404
1404
 
1405
1405
  // src/mantine/blocks/list/template/TemplateView.tsx
1406
1406
  import React16, { useMemo as useMemo6 } from "react";
@@ -1464,7 +1464,15 @@ var assetsConfigFields = [
1464
1464
  description: "The DID of the collection to fetch assets from",
1465
1465
  type: "text",
1466
1466
  placeholder: "did:ixo:entity:collection123",
1467
- required: true
1467
+ required: false
1468
+ },
1469
+ {
1470
+ key: "ownerBased",
1471
+ label: "Owner-based",
1472
+ description: "Fetch assets based on the owner address",
1473
+ type: "switch",
1474
+ required: false,
1475
+ defaultValue: false
1468
1476
  }
1469
1477
  // {
1470
1478
  // key: 'showTableHeaders',
@@ -1939,6 +1947,41 @@ var daosSelectionPanelConfig = {
1939
1947
  detailsHandlerKey: "getDaoDetails"
1940
1948
  };
1941
1949
 
1950
+ // src/mantine/blocks/list/balances/config.ts
1951
+ var balancesMetadata = {
1952
+ id: "balances",
1953
+ name: "Balances",
1954
+ description: "Display balances of an address",
1955
+ icon: "\u{1F4B2}"
1956
+ };
1957
+ var balancesConfigFields = [
1958
+ {
1959
+ key: "address",
1960
+ label: "Address",
1961
+ description: "The address to fetch balances from",
1962
+ type: "text",
1963
+ required: false
1964
+ }
1965
+ ];
1966
+ var balancesSortFields = [
1967
+ { key: "amount", label: "Amount", type: "number" },
1968
+ { key: "usdAmount", label: "USD Amount", type: "number" }
1969
+ ];
1970
+ var balancesFilterFields = [
1971
+ { key: "isCoin", label: "Coins", type: true },
1972
+ { key: "isShare", label: "Shares", type: true },
1973
+ { key: "isCredit", label: "Credits", type: true }
1974
+ ];
1975
+ var balancesHandlerKey = "getBalances";
1976
+ var balancesSelectionPanelConfig = {
1977
+ title: (item) => item.tokenName || "Unnamed Token",
1978
+ image: (item) => item.tokenImage,
1979
+ description: (item) => item.description || "No description",
1980
+ prompts: (item) => [{ text: `Amount: ${item.amount}` }, { text: `USD Amount: ${item.usdAmount}` }],
1981
+ actionSections: (item) => item.actionSections,
1982
+ detailsHandlerKey: "getBalanceDetails"
1983
+ };
1984
+
1942
1985
  // src/mantine/blocks/list/registry.ts
1943
1986
  var listTypeRegistry = {
1944
1987
  linked_resources: {
@@ -2038,6 +2081,13 @@ var listTypeRegistry = {
2038
2081
  sortFields: daosSortFields,
2039
2082
  filterFields: daosFilterFields,
2040
2083
  handlerKey: daosHandlerKey
2084
+ },
2085
+ balances: {
2086
+ metadata: balancesMetadata,
2087
+ configFields: balancesConfigFields,
2088
+ sortFields: balancesSortFields,
2089
+ filterFields: balancesFilterFields,
2090
+ handlerKey: balancesHandlerKey
2041
2091
  }
2042
2092
  };
2043
2093
  var getAllListTypes = () => {
@@ -2063,11 +2113,13 @@ var listSelectionPanelRegistry = {
2063
2113
  validators: validatorsSelectionPanelConfig,
2064
2114
  dao_members: daoMembersSelectionPanelConfig,
2065
2115
  projects: projectsSelectionPanelConfig,
2066
- daos: daosSelectionPanelConfig
2116
+ daos: daosSelectionPanelConfig,
2117
+ balances: balancesSelectionPanelConfig
2067
2118
  };
2068
2119
  var getSelectionPanelConfig = (type) => {
2069
2120
  return listSelectionPanelRegistry[type];
2070
2121
  };
2122
+ var listTypesWithAddresses = ["transactions"];
2071
2123
 
2072
2124
  // src/mantine/blocks/list/template/GeneralTab.tsx
2073
2125
  var GeneralTab2 = ({ initialConfig, onSave }) => {
@@ -2096,7 +2148,7 @@ var GeneralTab2 = ({ initialConfig, onSave }) => {
2096
2148
  setConfig((prev) => ({ ...prev, [key]: value }));
2097
2149
  };
2098
2150
  const handleAutoFill = async () => {
2099
- if (selectedType === "transactions" && handlers?.getCurrentUser) {
2151
+ if (selectedType && listTypesWithAddresses.includes(selectedType) && handlers?.getCurrentUser) {
2100
2152
  try {
2101
2153
  const user = handlers.getCurrentUser();
2102
2154
  handleConfigChange("address", user.address);
@@ -2142,7 +2194,7 @@ var GeneralTab2 = ({ initialConfig, onSave }) => {
2142
2194
  }
2143
2195
  }
2144
2196
  }
2145
- ), field.key === "address" && selectedType === "transactions" && /* @__PURE__ */ React14.createElement(Button4, { size: "xs", variant: "subtle", onClick: handleAutoFill }, "Use Current User Address"));
2197
+ ), field.key === "address" && selectedType && listTypesWithAddresses.includes(selectedType) && /* @__PURE__ */ React14.createElement(Button4, { size: "xs", variant: "subtle", onClick: handleAutoFill }, "Use Current User Address"));
2146
2198
  case "switch":
2147
2199
  return /* @__PURE__ */ React14.createElement(
2148
2200
  Switch3,
@@ -2311,8 +2363,8 @@ var ListTemplateView = ({ editor, block }) => {
2311
2363
  };
2312
2364
 
2313
2365
  // src/mantine/blocks/list/flow/ListFlowView.tsx
2314
- import React40, { useState as useState6, useEffect as useEffect6, useMemo as useMemo9, useCallback as useCallback10 } from "react";
2315
- import { Group as Group7, Stack as Stack26, Text as Text26, ActionIcon as ActionIcon5, Alert as Alert4, Loader as Loader2, Center as Center2, Flex as Flex18, Button as Button5, Title as Title4, Collapse } from "@mantine/core";
2366
+ import React41, { useState as useState6, useEffect as useEffect6, useMemo as useMemo9, useCallback as useCallback10 } from "react";
2367
+ import { Group as Group8, Stack as Stack27, Text as Text27, ActionIcon as ActionIcon5, Alert as Alert4, Loader as Loader2, Center as Center2, Flex as Flex19, Button as Button5, Title as Title4, Collapse } from "@mantine/core";
2316
2368
 
2317
2369
  // src/mantine/blocks/list/linked_resources/LinkedResourcesList.tsx
2318
2370
  import React20 from "react";
@@ -2485,14 +2537,53 @@ var CollectionsList = ({ items, mods, isItemChecked, onItemCheck }) => {
2485
2537
  return /* @__PURE__ */ React23.createElement(Box5, { flex: 1 }, /* @__PURE__ */ React23.createElement(Stack13, null, rows));
2486
2538
  };
2487
2539
 
2488
- // src/mantine/blocks/list/investments/InvestmentsList.tsx
2540
+ // src/mantine/blocks/list/balances/BalancesList.tsx
2489
2541
  import React24 from "react";
2490
- import { Text as Text12, Box as Box6, Image as Image3, Stack as Stack14, Flex as Flex7, Progress } from "@mantine/core";
2542
+ import { Text as Text12, Box as Box6, Stack as Stack14, Flex as Flex7, Avatar, Group as Group6 } from "@mantine/core";
2543
+
2544
+ // src/core/utils/numbers.ts
2545
+ var numberFormatter = (num, digits) => {
2546
+ const lookup = [
2547
+ { value: 1, symbol: "" },
2548
+ { value: 1e3, symbol: "k" },
2549
+ { value: 1e6, symbol: "M" },
2550
+ { value: 1e9, symbol: "G" },
2551
+ { value: 1e12, symbol: "T" },
2552
+ { value: 1e15, symbol: "P" },
2553
+ { value: 1e18, symbol: "E" }
2554
+ ];
2555
+ const rx = /\.0+$|(\.[0-9]*[1-9])0+$/;
2556
+ const item = lookup.slice().reverse().find((lookupItem) => num >= lookupItem.value);
2557
+ return item ? (num / item.value).toFixed(digits).replace(rx, "$1") + item.symbol : "0";
2558
+ };
2559
+ var microAmountToAmount = (microAmount, microUnits = 6) => {
2560
+ const amount = (microAmount ?? 0) / Math.pow(10, microUnits);
2561
+ return amount;
2562
+ };
2563
+ function renderNumber(value) {
2564
+ if (value === 0) return "0";
2565
+ if (!value) return "";
2566
+ const formattedValue = value.toLocaleString(void 0, { minimumFractionDigits: 0, maximumFractionDigits: 6 });
2567
+ return formattedValue;
2568
+ }
2569
+
2570
+ // src/mantine/blocks/list/balances/BalancesList.tsx
2571
+ var BalancesList = ({ items, mods, isItemChecked, onItemCheck }) => {
2572
+ if (!items || items.length === 0) {
2573
+ return /* @__PURE__ */ React24.createElement(Text12, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No balances found");
2574
+ }
2575
+ const rows = items.map((balance) => /* @__PURE__ */ React24.createElement(ListItemContainer, { key: balance.denom }, /* @__PURE__ */ React24.createElement(Group6, { gap: 12 }, /* @__PURE__ */ React24.createElement(Avatar, { src: balance.tokenImage, size: 40, radius: "xl" }), /* @__PURE__ */ React24.createElement(Stack14, { gap: 4 }, /* @__PURE__ */ React24.createElement(Text12, { size: "sm", fw: 500 }, balance.tokenName), balance.chainCount > 1 && /* @__PURE__ */ React24.createElement(Group6, { gap: 4 }, /* @__PURE__ */ React24.createElement(Text12, { size: "xs", c: "dimmed" }, balance.chainCount, " chains"), /* @__PURE__ */ React24.createElement(Group6, { gap: -4 }, /* @__PURE__ */ React24.createElement(Avatar, { size: 16, radius: "xl", bg: "dimmed" }), /* @__PURE__ */ React24.createElement(Avatar, { size: 16, radius: "xl", bg: "dimmed", ml: -4 }), balance.chainCount > 2 && /* @__PURE__ */ React24.createElement(Avatar, { size: 16, radius: "xl", bg: "dimmed", ml: -4 }))))), /* @__PURE__ */ React24.createElement(Flex7, { align: "center", gap: "md" }, /* @__PURE__ */ React24.createElement(Stack14, { gap: 4, align: "flex-end" }, /* @__PURE__ */ React24.createElement(Text12, { size: "sm", fw: 500 }, renderNumber(balance.amount)), /* @__PURE__ */ React24.createElement(Text12, { size: "xs", c: "dimmed" }, "$", renderNumber(balance.usdAmount))), mods && /* @__PURE__ */ React24.createElement(ListItemCheckbox, { ariaLabel: `Select balance ${balance.denom}`, checked: isItemChecked?.(balance.denom), onCheck: (checked) => onItemCheck?.(balance.denom, checked) }))));
2576
+ return /* @__PURE__ */ React24.createElement(Box6, { flex: 1 }, /* @__PURE__ */ React24.createElement(Stack14, null, rows));
2577
+ };
2578
+
2579
+ // src/mantine/blocks/list/investments/InvestmentsList.tsx
2580
+ import React25 from "react";
2581
+ import { Text as Text13, Box as Box7, Image as Image3, Stack as Stack15, Flex as Flex8, Progress } from "@mantine/core";
2491
2582
  var InvestmentsList = ({ items, mods, isItemChecked, onItemCheck }) => {
2492
2583
  if (!items || items.length === 0) {
2493
- return /* @__PURE__ */ React24.createElement(Text12, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No investments found");
2584
+ return /* @__PURE__ */ React25.createElement(Text13, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No investments found");
2494
2585
  }
2495
- const rows = items.map((investment) => /* @__PURE__ */ React24.createElement(ListItemContainer, { key: investment.did }, /* @__PURE__ */ React24.createElement(Flex7, { align: "center", gap: "sm" }, /* @__PURE__ */ React24.createElement(Image3, { radius: 16, w: 32, h: 32, src: investment.icon }), /* @__PURE__ */ React24.createElement(Stack14, { gap: 0 }, /* @__PURE__ */ React24.createElement(Text12, { size: "sm" }, investment.name || "-"), /* @__PURE__ */ React24.createElement(Text12, { size: "sm", c: "dimmed" }, investment.brand || "-"))), /* @__PURE__ */ React24.createElement(Flex7, { align: "center", gap: "md" }, /* @__PURE__ */ React24.createElement(Stack14, { ta: "right", gap: 0 }, /* @__PURE__ */ React24.createElement(Flex7, { gap: "5px" }, /* @__PURE__ */ React24.createElement(Text12, { size: "sm" }, investment.currency + formatNumber(investment.currentAmount)), /* @__PURE__ */ React24.createElement(Text12, { size: "sm", c: "dimmed" }, "/ ", investment.currency + formatNumber(investment.maxAmount))), /* @__PURE__ */ React24.createElement(Text12, { size: "xs", c: "dimmed" }, /* @__PURE__ */ React24.createElement(Progress, { color: "rgb(0, 255, 157)", radius: "xl", size: "lg", value: investment.currentAmount * 100 / investment.maxAmount }))), mods && /* @__PURE__ */ React24.createElement(
2586
+ const rows = items.map((investment) => /* @__PURE__ */ React25.createElement(ListItemContainer, { key: investment.did }, /* @__PURE__ */ React25.createElement(Flex8, { align: "center", gap: "sm" }, /* @__PURE__ */ React25.createElement(Image3, { radius: 16, w: 32, h: 32, src: investment.icon }), /* @__PURE__ */ React25.createElement(Stack15, { gap: 0 }, /* @__PURE__ */ React25.createElement(Text13, { size: "sm" }, investment.name || "-"), /* @__PURE__ */ React25.createElement(Text13, { size: "sm", c: "dimmed" }, investment.brand || "-"))), /* @__PURE__ */ React25.createElement(Flex8, { align: "center", gap: "md" }, /* @__PURE__ */ React25.createElement(Stack15, { ta: "right", gap: 0 }, /* @__PURE__ */ React25.createElement(Flex8, { gap: "5px" }, /* @__PURE__ */ React25.createElement(Text13, { size: "sm" }, investment.currency + formatNumber(investment.currentAmount)), /* @__PURE__ */ React25.createElement(Text13, { size: "sm", c: "dimmed" }, "/ ", investment.currency + formatNumber(investment.maxAmount))), /* @__PURE__ */ React25.createElement(Text13, { size: "xs", c: "dimmed" }, /* @__PURE__ */ React25.createElement(Progress, { color: "rgb(0, 255, 157)", radius: "xl", size: "lg", value: investment.currentAmount * 100 / investment.maxAmount }))), mods && /* @__PURE__ */ React25.createElement(
2496
2587
  ListItemCheckbox,
2497
2588
  {
2498
2589
  ariaLabel: `Select investment ${investment.did}`,
@@ -2500,87 +2591,67 @@ var InvestmentsList = ({ items, mods, isItemChecked, onItemCheck }) => {
2500
2591
  onCheck: (checked) => onItemCheck?.(investment.did, checked)
2501
2592
  }
2502
2593
  ))));
2503
- return /* @__PURE__ */ React24.createElement(Box6, { flex: 1 }, /* @__PURE__ */ React24.createElement(Stack14, null, rows));
2594
+ return /* @__PURE__ */ React25.createElement(Box7, { flex: 1 }, /* @__PURE__ */ React25.createElement(Stack15, null, rows));
2504
2595
  };
2505
2596
 
2506
2597
  // src/mantine/blocks/list/oracles/OraclesList.tsx
2507
- import React25 from "react";
2508
- import { Text as Text13, Box as Box7, Image as Image4, Stack as Stack15, Flex as Flex8 } from "@mantine/core";
2598
+ import React26 from "react";
2599
+ import { Text as Text14, Box as Box8, Image as Image4, Stack as Stack16, Flex as Flex9 } from "@mantine/core";
2509
2600
  var OraclesList = ({ items, mods, isItemChecked, onItemCheck }) => {
2510
2601
  if (!items || items.length === 0) {
2511
- return /* @__PURE__ */ React25.createElement(Text13, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No oracles found");
2602
+ return /* @__PURE__ */ React26.createElement(Text14, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No oracles found");
2512
2603
  }
2513
- const rows = items.map((oracle) => /* @__PURE__ */ React25.createElement(ListItemContainer, { key: oracle.did }, /* @__PURE__ */ React25.createElement(Flex8, { align: "center", gap: "sm" }, /* @__PURE__ */ React25.createElement(Image4, { radius: 16, w: 32, h: 32, src: oracle.icon }), /* @__PURE__ */ React25.createElement(Stack15, { gap: 0 }, /* @__PURE__ */ React25.createElement(Text13, { size: "sm" }, oracle.name || "-"), /* @__PURE__ */ React25.createElement(Text13, { size: "sm", c: "dimmed" }, oracle.brand || "-"))), /* @__PURE__ */ React25.createElement(Flex8, { align: "center", gap: "md" }, /* @__PURE__ */ React25.createElement(Stack15, { ta: "right", gap: 0 }, /* @__PURE__ */ React25.createElement(Text13, { size: "sm" }, oracle.currency || "-"), /* @__PURE__ */ React25.createElement(Text13, { size: "xs", c: "dimmed" }, oracle.minPoints, " - ", oracle.maxPoints, " pts"), /* @__PURE__ */ React25.createElement(Text13, { size: "xs", c: "dimmed" }, oracle.flowsAmount, " Flows")), mods && /* @__PURE__ */ React25.createElement(ListItemCheckbox, { ariaLabel: `Select oracle ${oracle.did}`, checked: isItemChecked?.(oracle.did), onCheck: (checked) => onItemCheck?.(oracle.did, checked) }))));
2514
- return /* @__PURE__ */ React25.createElement(Box7, { flex: 1 }, /* @__PURE__ */ React25.createElement(Stack15, null, rows));
2604
+ const rows = items.map((oracle) => /* @__PURE__ */ React26.createElement(ListItemContainer, { key: oracle.did }, /* @__PURE__ */ React26.createElement(Flex9, { align: "center", gap: "sm" }, /* @__PURE__ */ React26.createElement(Image4, { radius: 16, w: 32, h: 32, src: oracle.icon }), /* @__PURE__ */ React26.createElement(Stack16, { gap: 0 }, /* @__PURE__ */ React26.createElement(Text14, { size: "sm" }, oracle.name || "-"), /* @__PURE__ */ React26.createElement(Text14, { size: "sm", c: "dimmed" }, oracle.brand || "-"))), /* @__PURE__ */ React26.createElement(Flex9, { align: "center", gap: "md" }, /* @__PURE__ */ React26.createElement(Stack16, { ta: "right", gap: 0 }, /* @__PURE__ */ React26.createElement(Text14, { size: "sm" }, oracle.currency || "-"), /* @__PURE__ */ React26.createElement(Text14, { size: "xs", c: "dimmed" }, oracle.minPoints, " - ", oracle.maxPoints, " pts"), /* @__PURE__ */ React26.createElement(Text14, { size: "xs", c: "dimmed" }, oracle.flowsAmount, " Flows")), mods && /* @__PURE__ */ React26.createElement(ListItemCheckbox, { ariaLabel: `Select oracle ${oracle.did}`, checked: isItemChecked?.(oracle.did), onCheck: (checked) => onItemCheck?.(oracle.did, checked) }))));
2605
+ return /* @__PURE__ */ React26.createElement(Box8, { flex: 1 }, /* @__PURE__ */ React26.createElement(Stack16, null, rows));
2515
2606
  };
2516
2607
 
2517
2608
  // src/mantine/blocks/list/pods/PODsList.tsx
2518
- import React26 from "react";
2519
- import { Text as Text14, Box as Box8, Image as Image5, Stack as Stack16, Flex as Flex9 } from "@mantine/core";
2609
+ import React27 from "react";
2610
+ import { Text as Text15, Box as Box9, Image as Image5, Stack as Stack17, Flex as Flex10 } from "@mantine/core";
2520
2611
  var PodsList = ({ items, mods, isItemChecked, onItemCheck }) => {
2521
2612
  if (!items || items.length === 0) {
2522
- return /* @__PURE__ */ React26.createElement(Text14, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No PODs found");
2613
+ return /* @__PURE__ */ React27.createElement(Text15, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No PODs found");
2523
2614
  }
2524
- const rows = items.map((pod) => /* @__PURE__ */ React26.createElement(ListItemContainer, { key: pod.did }, /* @__PURE__ */ React26.createElement(Flex9, { align: "center", gap: "sm" }, /* @__PURE__ */ React26.createElement(Image5, { radius: 16, w: 32, h: 32, src: pod.icon }), /* @__PURE__ */ React26.createElement(Stack16, { gap: 0 }, /* @__PURE__ */ React26.createElement(Text14, { size: "sm" }, pod.name || "-"), /* @__PURE__ */ React26.createElement(Text14, { size: "sm", c: "dimmed" }, pod.startDate, " \u2192 ", pod.endDate))), /* @__PURE__ */ React26.createElement(Flex9, { align: "center", gap: "md" }, /* @__PURE__ */ React26.createElement(Stack16, { ta: "right", gap: 0 }, /* @__PURE__ */ React26.createElement(Text14, { size: "sm" }, pod.members, " Members"), /* @__PURE__ */ React26.createElement(Text14, { size: "sm", c: "dimmed" }, pod.totalProposals, " Proposals")), mods && /* @__PURE__ */ React26.createElement(ListItemCheckbox, { ariaLabel: `Select pod ${pod.did}`, checked: isItemChecked?.(pod.did), onCheck: (checked) => onItemCheck?.(pod.did, checked) }))));
2525
- return /* @__PURE__ */ React26.createElement(Box8, { flex: 1 }, /* @__PURE__ */ React26.createElement(Stack16, null, rows));
2615
+ const rows = items.map((pod) => /* @__PURE__ */ React27.createElement(ListItemContainer, { key: pod.did }, /* @__PURE__ */ React27.createElement(Flex10, { align: "center", gap: "sm" }, /* @__PURE__ */ React27.createElement(Image5, { radius: 16, w: 32, h: 32, src: pod.icon }), /* @__PURE__ */ React27.createElement(Stack17, { gap: 0 }, /* @__PURE__ */ React27.createElement(Text15, { size: "sm" }, pod.name || "-"), /* @__PURE__ */ React27.createElement(Text15, { size: "sm", c: "dimmed" }, pod.startDate, " \u2192 ", pod.endDate))), /* @__PURE__ */ React27.createElement(Flex10, { align: "center", gap: "md" }, /* @__PURE__ */ React27.createElement(Stack17, { ta: "right", gap: 0 }, /* @__PURE__ */ React27.createElement(Text15, { size: "sm" }, pod.members, " Members"), /* @__PURE__ */ React27.createElement(Text15, { size: "sm", c: "dimmed" }, pod.totalProposals, " Proposals")), mods && /* @__PURE__ */ React27.createElement(ListItemCheckbox, { ariaLabel: `Select pod ${pod.did}`, checked: isItemChecked?.(pod.did), onCheck: (checked) => onItemCheck?.(pod.did, checked) }))));
2616
+ return /* @__PURE__ */ React27.createElement(Box9, { flex: 1 }, /* @__PURE__ */ React27.createElement(Stack17, null, rows));
2526
2617
  };
2527
2618
 
2528
2619
  // src/mantine/blocks/list/proposals/ProposalsList.tsx
2529
- import React27 from "react";
2530
- import { Text as Text15, Box as Box9, Image as Image6, Stack as Stack17, Flex as Flex10, Badge as Badge4 } from "@mantine/core";
2620
+ import React28 from "react";
2621
+ import { Text as Text16, Box as Box10, Image as Image6, Stack as Stack18, Flex as Flex11, Badge as Badge4 } from "@mantine/core";
2531
2622
  var ProposalsList = ({ items, mods, isItemChecked, onItemCheck }) => {
2532
2623
  if (!items || items.length === 0) {
2533
- return /* @__PURE__ */ React27.createElement(Text15, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No proposals found");
2624
+ return /* @__PURE__ */ React28.createElement(Text16, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No proposals found");
2534
2625
  }
2535
- const rows = items.map((proposal) => /* @__PURE__ */ React27.createElement(ListItemContainer, { key: proposal.did }, /* @__PURE__ */ React27.createElement(Flex10, { align: "center", gap: "sm" }, /* @__PURE__ */ React27.createElement(Image6, { radius: 16, w: 32, h: 32, src: proposal.icon }), /* @__PURE__ */ React27.createElement(Stack17, { gap: 0 }, /* @__PURE__ */ React27.createElement(Text15, { size: "sm" }, proposal.name || "-"), /* @__PURE__ */ React27.createElement(Text15, { size: "xs", c: "dimmed" }, proposal.description || "-"))), /* @__PURE__ */ React27.createElement(Flex10, { align: "center", gap: "md" }, /* @__PURE__ */ React27.createElement(Stack17, { ta: "right", align: "end", gap: 0 }, /* @__PURE__ */ React27.createElement(Badge4, { size: "sm", variant: "light", color: "blue", style: { fontFamily: "monospace", fontSize: "10px" } }, proposal.status), /* @__PURE__ */ React27.createElement(Text15, { size: "sm", c: "dimmed" }, proposal.isVotedOn ? "Voted" : "Not voted")), mods && /* @__PURE__ */ React27.createElement(ListItemCheckbox, { ariaLabel: `Select proposal ${proposal.did}`, checked: isItemChecked?.(proposal.did), onCheck: (checked) => onItemCheck?.(proposal.did, checked) }))));
2536
- return /* @__PURE__ */ React27.createElement(Box9, { flex: 1 }, /* @__PURE__ */ React27.createElement(Stack17, null, rows));
2626
+ const rows = items.map((proposal) => /* @__PURE__ */ React28.createElement(ListItemContainer, { key: proposal.did }, /* @__PURE__ */ React28.createElement(Flex11, { align: "center", gap: "sm" }, /* @__PURE__ */ React28.createElement(Image6, { radius: 16, w: 32, h: 32, src: proposal.icon }), /* @__PURE__ */ React28.createElement(Stack18, { gap: 0 }, /* @__PURE__ */ React28.createElement(Text16, { size: "sm" }, proposal.name || "-"), /* @__PURE__ */ React28.createElement(Text16, { size: "xs", c: "dimmed" }, proposal.description || "-"))), /* @__PURE__ */ React28.createElement(Flex11, { align: "center", gap: "md" }, /* @__PURE__ */ React28.createElement(Stack18, { ta: "right", align: "end", gap: 0 }, /* @__PURE__ */ React28.createElement(Badge4, { size: "sm", variant: "light", color: "blue", style: { fontFamily: "monospace", fontSize: "10px" } }, proposal.status), /* @__PURE__ */ React28.createElement(Text16, { size: "sm", c: "dimmed" }, proposal.isVotedOn ? "Voted" : "Not voted")), mods && /* @__PURE__ */ React28.createElement(ListItemCheckbox, { ariaLabel: `Select proposal ${proposal.did}`, checked: isItemChecked?.(proposal.did), onCheck: (checked) => onItemCheck?.(proposal.did, checked) }))));
2627
+ return /* @__PURE__ */ React28.createElement(Box10, { flex: 1 }, /* @__PURE__ */ React28.createElement(Stack18, null, rows));
2537
2628
  };
2538
2629
 
2539
2630
  // src/mantine/blocks/list/requests/RequestsList.tsx
2540
- import React28 from "react";
2541
- import { Text as Text16, Box as Box10, Image as Image7, Stack as Stack18, Flex as Flex11 } from "@mantine/core";
2631
+ import React29 from "react";
2632
+ import { Text as Text17, Box as Box11, Image as Image7, Stack as Stack19, Flex as Flex12 } from "@mantine/core";
2542
2633
  var RequestsList = ({ items, mods, isItemChecked, onItemCheck }) => {
2543
2634
  if (!items || items.length === 0) {
2544
- return /* @__PURE__ */ React28.createElement(Text16, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No requests found");
2635
+ return /* @__PURE__ */ React29.createElement(Text17, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No requests found");
2545
2636
  }
2546
- const rows = items.map((request) => /* @__PURE__ */ React28.createElement(ListItemContainer, { key: request.did }, /* @__PURE__ */ React28.createElement(Flex11, { align: "center", gap: "sm" }, /* @__PURE__ */ React28.createElement(Image7, { radius: 16, w: 32, h: 32, src: request.icon }), /* @__PURE__ */ React28.createElement(Stack18, { gap: 0 }, /* @__PURE__ */ React28.createElement(Text16, { size: "sm" }, request.name || "-"), /* @__PURE__ */ React28.createElement(Text16, { size: "sm", c: "dimmed" }, request.brand || "-"))), /* @__PURE__ */ React28.createElement(Flex11, { align: "center", gap: "md" }, /* @__PURE__ */ React28.createElement(Stack18, { ta: "right", gap: 0 }, /* @__PURE__ */ React28.createElement(Text16, { size: "sm", c: "dimmed" }, request.currency || "", request.budget ?? "-"), /* @__PURE__ */ React28.createElement(Text16, { size: "xs", c: "dimmed" }, request.totalApplications ?? 0, " Applications")), mods && /* @__PURE__ */ React28.createElement(ListItemCheckbox, { ariaLabel: `Select request ${request.did}`, checked: isItemChecked?.(request.did), onCheck: (checked) => onItemCheck?.(request.did, checked) }))));
2547
- return /* @__PURE__ */ React28.createElement(Box10, { flex: 1 }, /* @__PURE__ */ React28.createElement(Stack18, null, rows));
2637
+ const rows = items.map((request) => /* @__PURE__ */ React29.createElement(ListItemContainer, { key: request.did }, /* @__PURE__ */ React29.createElement(Flex12, { align: "center", gap: "sm" }, /* @__PURE__ */ React29.createElement(Image7, { radius: 16, w: 32, h: 32, src: request.icon }), /* @__PURE__ */ React29.createElement(Stack19, { gap: 0 }, /* @__PURE__ */ React29.createElement(Text17, { size: "sm" }, request.name || "-"), /* @__PURE__ */ React29.createElement(Text17, { size: "sm", c: "dimmed" }, request.brand || "-"))), /* @__PURE__ */ React29.createElement(Flex12, { align: "center", gap: "md" }, /* @__PURE__ */ React29.createElement(Stack19, { ta: "right", gap: 0 }, /* @__PURE__ */ React29.createElement(Text17, { size: "sm", c: "dimmed" }, request.currency || "", request.budget ?? "-"), /* @__PURE__ */ React29.createElement(Text17, { size: "xs", c: "dimmed" }, request.totalApplications ?? 0, " Applications")), mods && /* @__PURE__ */ React29.createElement(ListItemCheckbox, { ariaLabel: `Select request ${request.did}`, checked: isItemChecked?.(request.did), onCheck: (checked) => onItemCheck?.(request.did, checked) }))));
2638
+ return /* @__PURE__ */ React29.createElement(Box11, { flex: 1 }, /* @__PURE__ */ React29.createElement(Stack19, null, rows));
2548
2639
  };
2549
2640
 
2550
2641
  // src/mantine/blocks/list/members/MembersList.tsx
2551
- import React29 from "react";
2552
- import { Text as Text17, Box as Box11, Image as Image8, Stack as Stack19, Flex as Flex12 } from "@mantine/core";
2642
+ import React30 from "react";
2643
+ import { Text as Text18, Box as Box12, Image as Image8, Stack as Stack20, Flex as Flex13 } from "@mantine/core";
2553
2644
  var MembersList = ({ items, mods, isItemChecked, onItemCheck }) => {
2554
2645
  if (!items || items.length === 0) {
2555
- return /* @__PURE__ */ React29.createElement(Text17, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No members found");
2646
+ return /* @__PURE__ */ React30.createElement(Text18, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No members found");
2556
2647
  }
2557
- const rows = items.map((member) => /* @__PURE__ */ React29.createElement(ListItemContainer, { key: member.did }, /* @__PURE__ */ React29.createElement(Flex12, { align: "center", gap: "sm" }, /* @__PURE__ */ React29.createElement(Image8, { radius: 16, w: 32, h: 32, src: member.icon }), /* @__PURE__ */ React29.createElement(Stack19, { gap: 0 }, /* @__PURE__ */ React29.createElement(Text17, { size: "sm" }, member.username || "-"), /* @__PURE__ */ React29.createElement(Text17, { size: "xs", c: "dimmed" }, member.address || "-"))), /* @__PURE__ */ React29.createElement(Flex12, { align: "center", gap: "md" }, /* @__PURE__ */ React29.createElement(Stack19, { ta: "right", gap: 0 }, /* @__PURE__ */ React29.createElement(Text17, { size: "sm" }, member.percentage), /* @__PURE__ */ React29.createElement(Text17, { size: "sm", c: "dimmed" }, member.role)), mods && /* @__PURE__ */ React29.createElement(ListItemCheckbox, { ariaLabel: `Select member ${member.did}`, checked: isItemChecked?.(member.did), onCheck: (checked) => onItemCheck?.(member.did, checked) }))));
2558
- return /* @__PURE__ */ React29.createElement(Box11, { flex: 1 }, /* @__PURE__ */ React29.createElement(Stack19, null, rows));
2648
+ const rows = items.map((member) => /* @__PURE__ */ React30.createElement(ListItemContainer, { key: member.did }, /* @__PURE__ */ React30.createElement(Flex13, { align: "center", gap: "sm" }, /* @__PURE__ */ React30.createElement(Image8, { radius: 16, w: 32, h: 32, src: member.icon }), /* @__PURE__ */ React30.createElement(Stack20, { gap: 0 }, /* @__PURE__ */ React30.createElement(Text18, { size: "sm" }, member.username || "-"), /* @__PURE__ */ React30.createElement(Text18, { size: "xs", c: "dimmed" }, member.address || "-"))), /* @__PURE__ */ React30.createElement(Flex13, { align: "center", gap: "md" }, /* @__PURE__ */ React30.createElement(Stack20, { ta: "right", gap: 0 }, /* @__PURE__ */ React30.createElement(Text18, { size: "sm" }, member.percentage), /* @__PURE__ */ React30.createElement(Text18, { size: "sm", c: "dimmed" }, member.role)), mods && /* @__PURE__ */ React30.createElement(ListItemCheckbox, { ariaLabel: `Select member ${member.did}`, checked: isItemChecked?.(member.did), onCheck: (checked) => onItemCheck?.(member.did, checked) }))));
2649
+ return /* @__PURE__ */ React30.createElement(Box12, { flex: 1 }, /* @__PURE__ */ React30.createElement(Stack20, null, rows));
2559
2650
  };
2560
2651
 
2561
2652
  // src/mantine/blocks/list/validators/ValidatorsList.tsx
2562
- import React30 from "react";
2563
- import { Text as Text18, Box as Box12, Image as Image9, Stack as Stack20, Flex as Flex13 } from "@mantine/core";
2564
-
2565
- // src/core/utils/numbers.ts
2566
- var numberFormatter = (num, digits) => {
2567
- const lookup = [
2568
- { value: 1, symbol: "" },
2569
- { value: 1e3, symbol: "k" },
2570
- { value: 1e6, symbol: "M" },
2571
- { value: 1e9, symbol: "G" },
2572
- { value: 1e12, symbol: "T" },
2573
- { value: 1e15, symbol: "P" },
2574
- { value: 1e18, symbol: "E" }
2575
- ];
2576
- const rx = /\.0+$|(\.[0-9]*[1-9])0+$/;
2577
- const item = lookup.slice().reverse().find((lookupItem) => num >= lookupItem.value);
2578
- return item ? (num / item.value).toFixed(digits).replace(rx, "$1") + item.symbol : "0";
2579
- };
2580
- var microAmountToAmount = (microAmount, microUnits = 6) => {
2581
- const amount = (microAmount ?? 0) / Math.pow(10, microUnits);
2582
- return amount;
2583
- };
2653
+ import React31 from "react";
2654
+ import { Text as Text19, Box as Box13, Image as Image9, Stack as Stack21, Flex as Flex14 } from "@mantine/core";
2584
2655
 
2585
2656
  // src/core/lib/validators.ts
2586
2657
  var getDelegatedTokensFromValidator = (validator) => Number(validator?.amount ?? 0);
@@ -2589,25 +2660,25 @@ var getDisplayDelegatedTokensFromValidator = (validator) => microAmountToAmount(
2589
2660
  // src/mantine/blocks/list/validators/ValidatorsList.tsx
2590
2661
  var ValidatorsList = ({ items, mods, isItemChecked, onItemCheck }) => {
2591
2662
  if (!items || items.length === 0) {
2592
- return /* @__PURE__ */ React30.createElement(Text18, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No validators found");
2663
+ return /* @__PURE__ */ React31.createElement(Text19, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No validators found");
2593
2664
  }
2594
- const rows = items.map((v) => /* @__PURE__ */ React30.createElement(ListItemContainer, { key: v.did }, /* @__PURE__ */ React30.createElement(Flex13, { align: "center", gap: "sm" }, /* @__PURE__ */ React30.createElement(Image9, { radius: 16, w: 32, h: 32, src: v.icon }), /* @__PURE__ */ React30.createElement(Stack20, { gap: 0 }, /* @__PURE__ */ React30.createElement(Text18, { size: "sm" }, v.name || "-"), /* @__PURE__ */ React30.createElement(Text18, { size: "xs", c: "dimmed" }, v.description || "-"))), /* @__PURE__ */ React30.createElement(Flex13, { align: "center", gap: "md" }, /* @__PURE__ */ React30.createElement(Stack20, { ta: "right", gap: 0 }, /* @__PURE__ */ React30.createElement(Text18, { size: "sm" }, numberFormatter(getDisplayDelegatedTokensFromValidator(v), 2), " ", v.currency), /* @__PURE__ */ React30.createElement(Text18, { size: "sm", c: "dimmed" }, v.commission, "% fee"), /* @__PURE__ */ React30.createElement(Text18, { size: "xs", c: "dimmed" }, v.isActive ? "Active" : "Inactive", " \u2022 ", v.isStaked ? "Staked" : "Not staked", " \u2022 ", v.isBonding ? "Bonding" : "Not bonding")), mods && /* @__PURE__ */ React30.createElement(ListItemCheckbox, { ariaLabel: `Select validator ${v.did}`, checked: isItemChecked?.(v.did), onCheck: (checked) => onItemCheck?.(v.did, checked) }))));
2595
- return /* @__PURE__ */ React30.createElement(Box12, { flex: 1 }, /* @__PURE__ */ React30.createElement(Stack20, null, rows));
2665
+ const rows = items.map((v) => /* @__PURE__ */ React31.createElement(ListItemContainer, { key: v.did }, /* @__PURE__ */ React31.createElement(Flex14, { align: "center", gap: "sm" }, /* @__PURE__ */ React31.createElement(Image9, { radius: 16, w: 32, h: 32, src: v.icon }), /* @__PURE__ */ React31.createElement(Stack21, { gap: 0 }, /* @__PURE__ */ React31.createElement(Text19, { size: "sm" }, v.name || "-"), /* @__PURE__ */ React31.createElement(Text19, { size: "xs", c: "dimmed" }, v.description || "-"))), /* @__PURE__ */ React31.createElement(Flex14, { align: "center", gap: "md" }, /* @__PURE__ */ React31.createElement(Stack21, { ta: "right", gap: 0 }, /* @__PURE__ */ React31.createElement(Text19, { size: "sm" }, numberFormatter(getDisplayDelegatedTokensFromValidator(v), 2), " ", v.currency), /* @__PURE__ */ React31.createElement(Text19, { size: "sm", c: "dimmed" }, v.commission, "% fee"), /* @__PURE__ */ React31.createElement(Text19, { size: "xs", c: "dimmed" }, v.isActive ? "Active" : "Inactive", " \u2022 ", v.isStaked ? "Staked" : "Not staked", " \u2022 ", v.isBonding ? "Bonding" : "Not bonding")), mods && /* @__PURE__ */ React31.createElement(ListItemCheckbox, { ariaLabel: `Select validator ${v.did}`, checked: isItemChecked?.(v.did), onCheck: (checked) => onItemCheck?.(v.did, checked) }))));
2666
+ return /* @__PURE__ */ React31.createElement(Box13, { flex: 1 }, /* @__PURE__ */ React31.createElement(Stack21, null, rows));
2596
2667
  };
2597
2668
 
2598
2669
  // src/mantine/blocks/list/ListActionsMenu.tsx
2599
- import React31 from "react";
2600
- import { Menu, Text as Text19, ActionIcon as ActionIcon4 } from "@mantine/core";
2670
+ import React32 from "react";
2671
+ import { Menu, Text as Text20, ActionIcon as ActionIcon4 } from "@mantine/core";
2601
2672
  import { IconArrowDown, IconArrowUp, IconAdjustments, IconCheckbox as IconCheckbox2, IconAdjustmentsHorizontal, IconDownload } from "@tabler/icons-react";
2602
2673
  var ListActionsMenu = ({ options, selectionMode, onSelectActionClick, value, onChange, onDownloadCsv }) => {
2603
2674
  const renderItem = (opt, direction) => {
2604
2675
  const isActive = value?.key === opt.key && value?.direction === direction;
2605
2676
  const Icon = direction === "asc" ? IconArrowUp : IconArrowDown;
2606
- return /* @__PURE__ */ React31.createElement(
2677
+ return /* @__PURE__ */ React32.createElement(
2607
2678
  Menu.Item,
2608
2679
  {
2609
2680
  key: `${opt.key}-${direction}`,
2610
- leftSection: /* @__PURE__ */ React31.createElement(Icon, { size: 16 }),
2681
+ leftSection: /* @__PURE__ */ React32.createElement(Icon, { size: 16 }),
2611
2682
  onClick: () => {
2612
2683
  onChange({ key: opt.key, direction });
2613
2684
  },
@@ -2616,7 +2687,7 @@ var ListActionsMenu = ({ options, selectionMode, onSelectActionClick, value, onC
2616
2687
  opt.label
2617
2688
  );
2618
2689
  };
2619
- return /* @__PURE__ */ React31.createElement(Menu, { shadow: "md", width: 220 }, /* @__PURE__ */ React31.createElement(Menu.Target, null, /* @__PURE__ */ React31.createElement(ActionIcon4, { variant: "subtle", size: "sm", "aria-label": "List actions", title: "List actions" }, /* @__PURE__ */ React31.createElement(IconAdjustmentsHorizontal, { size: 18 }))), /* @__PURE__ */ React31.createElement(Menu.Dropdown, null, /* @__PURE__ */ React31.createElement(Menu.Label, null, /* @__PURE__ */ React31.createElement(Text19, { c: "dimmed" }, "Order By")), options.map((opt) => /* @__PURE__ */ React31.createElement(React31.Fragment, { key: opt.key }, renderItem(opt, "desc"), renderItem(opt, "asc"))), /* @__PURE__ */ React31.createElement(Menu.Divider, null), /* @__PURE__ */ React31.createElement(Menu.Item, { leftSection: /* @__PURE__ */ React31.createElement(IconAdjustments, { size: 16 }) }, "Smart Filter"), /* @__PURE__ */ React31.createElement(Menu.Divider, null), /* @__PURE__ */ React31.createElement(Menu.Item, { onClick: () => onSelectActionClick(selectionMode === "single" ? null : "single"), leftSection: /* @__PURE__ */ React31.createElement(IconCheckbox2, { size: 16 }) }, "Single Select"), /* @__PURE__ */ React31.createElement(Menu.Item, { onClick: () => onSelectActionClick(selectionMode === "multi" ? null : "multi"), leftSection: /* @__PURE__ */ React31.createElement(IconCheckbox2, { size: 16 }) }, "Multi Select"), onDownloadCsv && /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(Menu.Divider, null), /* @__PURE__ */ React31.createElement(Menu.Item, { onClick: onDownloadCsv, leftSection: /* @__PURE__ */ React31.createElement(IconDownload, { size: 16 }) }, "Download CSV"))));
2690
+ return /* @__PURE__ */ React32.createElement(Menu, { shadow: "md", width: 220 }, /* @__PURE__ */ React32.createElement(Menu.Target, null, /* @__PURE__ */ React32.createElement(ActionIcon4, { variant: "subtle", size: "sm", "aria-label": "List actions", title: "List actions" }, /* @__PURE__ */ React32.createElement(IconAdjustmentsHorizontal, { size: 18 }))), /* @__PURE__ */ React32.createElement(Menu.Dropdown, null, /* @__PURE__ */ React32.createElement(Menu.Label, null, /* @__PURE__ */ React32.createElement(Text20, { c: "dimmed" }, "Order By")), options.map((opt) => /* @__PURE__ */ React32.createElement(React32.Fragment, { key: opt.key }, renderItem(opt, "desc"), renderItem(opt, "asc"))), /* @__PURE__ */ React32.createElement(Menu.Divider, null), /* @__PURE__ */ React32.createElement(Menu.Item, { leftSection: /* @__PURE__ */ React32.createElement(IconAdjustments, { size: 16 }) }, "Smart Filter"), /* @__PURE__ */ React32.createElement(Menu.Divider, null), /* @__PURE__ */ React32.createElement(Menu.Item, { onClick: () => onSelectActionClick(selectionMode === "single" ? null : "single"), leftSection: /* @__PURE__ */ React32.createElement(IconCheckbox2, { size: 16 }) }, "Single Select"), /* @__PURE__ */ React32.createElement(Menu.Item, { onClick: () => onSelectActionClick(selectionMode === "multi" ? null : "multi"), leftSection: /* @__PURE__ */ React32.createElement(IconCheckbox2, { size: 16 }) }, "Multi Select"), onDownloadCsv && /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(Menu.Divider, null), /* @__PURE__ */ React32.createElement(Menu.Item, { onClick: onDownloadCsv, leftSection: /* @__PURE__ */ React32.createElement(IconDownload, { size: 16 }) }, "Download CSV"))));
2620
2691
  };
2621
2692
 
2622
2693
  // src/core/lib/sortListItems.ts
@@ -2639,10 +2710,10 @@ function sortListItems(data, sortOption) {
2639
2710
  }
2640
2711
 
2641
2712
  // src/mantine/blocks/list/FilterTab.tsx
2642
- import React32 from "react";
2643
- import { UnstyledButton, Text as Text20 } from "@mantine/core";
2713
+ import React33 from "react";
2714
+ import { UnstyledButton, Text as Text21 } from "@mantine/core";
2644
2715
  function FilterTab({ onClick, label, isActive }) {
2645
- return /* @__PURE__ */ React32.createElement(
2716
+ return /* @__PURE__ */ React33.createElement(
2646
2717
  UnstyledButton,
2647
2718
  {
2648
2719
  onClick,
@@ -2673,7 +2744,7 @@ function FilterTab({ onClick, label, isActive }) {
2673
2744
  if (!isActive) e.currentTarget.style.background = "transparent";
2674
2745
  }
2675
2746
  },
2676
- /* @__PURE__ */ React32.createElement(Text20, { size: "sm", fw: 500 }, label)
2747
+ /* @__PURE__ */ React33.createElement(Text21, { size: "sm", fw: 500 }, label)
2677
2748
  );
2678
2749
  }
2679
2750
 
@@ -2693,10 +2764,10 @@ function filterListItems(items, filterOption) {
2693
2764
  import { IconArrowDown as IconArrowDown2, IconArrowUp as IconArrowUp2, IconChevronDown, IconChevronUp, IconRefresh, IconSettings, IconAlertCircle } from "@tabler/icons-react";
2694
2765
 
2695
2766
  // src/mantine/blocks/list/ListPagination.tsx
2696
- import React33 from "react";
2767
+ import React34 from "react";
2697
2768
  import { Pagination } from "@mantine/core";
2698
2769
  function ListPagination({ page, setPage, totalPages }) {
2699
- return /* @__PURE__ */ React33.createElement(
2770
+ return /* @__PURE__ */ React34.createElement(
2700
2771
  Pagination,
2701
2772
  {
2702
2773
  value: page,
@@ -2723,13 +2794,13 @@ function ListPagination({ page, setPage, totalPages }) {
2723
2794
  var DEFAULT_PAGE_SIZE = 5;
2724
2795
 
2725
2796
  // src/mantine/blocks/list/dao_members/MembersList.tsx
2726
- import React34 from "react";
2727
- import { Text as Text21, Box as Box13, Image as Image10, Stack as Stack21, Flex as Flex14 } from "@mantine/core";
2797
+ import React35 from "react";
2798
+ import { Text as Text22, Box as Box14, Image as Image10, Stack as Stack22, Flex as Flex15 } from "@mantine/core";
2728
2799
  var DaoMembersList = ({ items, mods, isItemChecked, onItemCheck }) => {
2729
2800
  if (!items || items.length === 0) {
2730
- return /* @__PURE__ */ React34.createElement(Text21, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No members found");
2801
+ return /* @__PURE__ */ React35.createElement(Text22, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No members found");
2731
2802
  }
2732
- const rows = items.map((member) => /* @__PURE__ */ React34.createElement(ListItemContainer, { key: member.did }, /* @__PURE__ */ React34.createElement(Flex14, { align: "center", gap: "sm" }, /* @__PURE__ */ React34.createElement(Image10, { radius: 16, w: 32, h: 32, src: member.icon }), /* @__PURE__ */ React34.createElement(Stack21, { gap: 0 }, /* @__PURE__ */ React34.createElement(Text21, { size: "sm", fw: 500 }, member.username || "Unknown User"), /* @__PURE__ */ React34.createElement(Text21, { size: "xs", c: "dimmed", lineClamp: 1 }, member.address || "No address"))), /* @__PURE__ */ React34.createElement(Flex14, { align: "center", gap: "md" }, /* @__PURE__ */ React34.createElement(Stack21, { ta: "right", gap: 0 }, /* @__PURE__ */ React34.createElement(Text21, { size: "sm", fw: 500, c: "blue" }, member.percentage || "0%"), /* @__PURE__ */ React34.createElement(Text21, { size: "xs", c: "dimmed", tt: "capitalize" }, member.role || "member")), mods && /* @__PURE__ */ React34.createElement(
2803
+ const rows = items.map((member) => /* @__PURE__ */ React35.createElement(ListItemContainer, { key: member.did }, /* @__PURE__ */ React35.createElement(Flex15, { align: "center", gap: "sm" }, /* @__PURE__ */ React35.createElement(Image10, { radius: 16, w: 32, h: 32, src: member.icon }), /* @__PURE__ */ React35.createElement(Stack22, { gap: 0 }, /* @__PURE__ */ React35.createElement(Text22, { size: "sm", fw: 500 }, member.username || "Unknown User"), /* @__PURE__ */ React35.createElement(Text22, { size: "xs", c: "dimmed", lineClamp: 1 }, member.address || "No address"))), /* @__PURE__ */ React35.createElement(Flex15, { align: "center", gap: "md" }, /* @__PURE__ */ React35.createElement(Stack22, { ta: "right", gap: 0 }, /* @__PURE__ */ React35.createElement(Text22, { size: "sm", fw: 500, c: "blue" }, member.percentage || "0%"), /* @__PURE__ */ React35.createElement(Text22, { size: "xs", c: "dimmed", tt: "capitalize" }, member.role || "member")), mods && /* @__PURE__ */ React35.createElement(
2733
2804
  ListItemCheckbox,
2734
2805
  {
2735
2806
  ariaLabel: `Select member ${member.username || member.did}`,
@@ -2737,34 +2808,34 @@ var DaoMembersList = ({ items, mods, isItemChecked, onItemCheck }) => {
2737
2808
  onCheck: (checked) => onItemCheck?.(member.did, checked)
2738
2809
  }
2739
2810
  ))));
2740
- return /* @__PURE__ */ React34.createElement(Box13, { flex: 1 }, /* @__PURE__ */ React34.createElement(Stack21, { gap: "xs" }, rows));
2811
+ return /* @__PURE__ */ React35.createElement(Box14, { flex: 1 }, /* @__PURE__ */ React35.createElement(Stack22, { gap: "xs" }, rows));
2741
2812
  };
2742
2813
 
2743
2814
  // src/mantine/blocks/list/ListSelectionPanel.tsx
2744
- import React36, { useState as useState5, useEffect as useEffect5, useMemo as useMemo7 } from "react";
2745
- import { Paper as Paper4, CloseButton as CloseButton3, Stack as Stack23, Alert as Alert3, Text as Text23, Loader, Center } from "@mantine/core";
2815
+ import React37, { useState as useState5, useEffect as useEffect5, useMemo as useMemo7 } from "react";
2816
+ import { Paper as Paper4, CloseButton as CloseButton3, Stack as Stack24, Alert as Alert3, Text as Text24, Loader, Center } from "@mantine/core";
2746
2817
 
2747
2818
  // src/mantine/blocks/list/components/SelectionPanelContent.tsx
2748
- import React35 from "react";
2749
- import { Stack as Stack22, Text as Text22, Title as Title3, Divider as Divider2, Flex as Flex15, Paper as Paper3, Group as Group6 } from "@mantine/core";
2819
+ import React36 from "react";
2820
+ import { Stack as Stack23, Text as Text23, Title as Title3, Divider as Divider2, Flex as Flex16, Paper as Paper3, Group as Group7 } from "@mantine/core";
2750
2821
  import { useHover } from "@mantine/hooks";
2751
2822
  import { IconArrowRight, IconTarget } from "@tabler/icons-react";
2752
2823
  var SelectionPanelHeader = ({ title, description }) => {
2753
- return /* @__PURE__ */ React35.createElement(Stack22, { gap: "xs" }, /* @__PURE__ */ React35.createElement(Title3, { fw: 400, order: 3 }, title), /* @__PURE__ */ React35.createElement(Text22, { c: "dimmed" }, description));
2824
+ return /* @__PURE__ */ React36.createElement(Stack23, { gap: "xs" }, /* @__PURE__ */ React36.createElement(Title3, { fw: 400, order: 3 }, title), /* @__PURE__ */ React36.createElement(Text23, { c: "dimmed" }, description));
2754
2825
  };
2755
2826
  var SelectionPromptItem = ({ prompt }) => {
2756
- return /* @__PURE__ */ React35.createElement(React35.Fragment, null, /* @__PURE__ */ React35.createElement(Flex15, { gap: 10 }, /* @__PURE__ */ React35.createElement(IconArrowRight, { size: 24, color: "white" }), /* @__PURE__ */ React35.createElement(Text22, null, prompt.text)), /* @__PURE__ */ React35.createElement(Divider2, { c: "dimmed", h: 1 }));
2827
+ return /* @__PURE__ */ React36.createElement(React36.Fragment, null, /* @__PURE__ */ React36.createElement(Flex16, { gap: 10 }, /* @__PURE__ */ React36.createElement(IconArrowRight, { size: 24, color: "white" }), /* @__PURE__ */ React36.createElement(Text23, null, prompt.text)), /* @__PURE__ */ React36.createElement(Divider2, { c: "dimmed", h: 1 }));
2757
2828
  };
2758
2829
  var SelectionPrompts = ({ prompts }) => {
2759
2830
  if (!prompts || prompts.length === 0) return null;
2760
- return /* @__PURE__ */ React35.createElement(Stack22, { gap: "xs" }, prompts.map((prompt, index) => /* @__PURE__ */ React35.createElement(SelectionPromptItem, { key: index, prompt })));
2831
+ return /* @__PURE__ */ React36.createElement(Stack23, { gap: "xs" }, prompts.map((prompt, index) => /* @__PURE__ */ React36.createElement(SelectionPromptItem, { key: index, prompt })));
2761
2832
  };
2762
2833
  var SelectionActionButton = ({ action, itemId, itemData }) => {
2763
2834
  const { hovered, ref } = useHover();
2764
2835
  const handleClick = () => {
2765
2836
  action.onClick(itemId, itemData);
2766
2837
  };
2767
- return /* @__PURE__ */ React35.createElement(
2838
+ return /* @__PURE__ */ React36.createElement(
2768
2839
  Paper3,
2769
2840
  {
2770
2841
  ref,
@@ -2779,19 +2850,19 @@ var SelectionActionButton = ({ action, itemId, itemData }) => {
2779
2850
  },
2780
2851
  onClick: handleClick
2781
2852
  },
2782
- /* @__PURE__ */ React35.createElement(Group6, { justify: "space-between", align: "center" }, /* @__PURE__ */ React35.createElement(Group6, { gap: "sm" }, /* @__PURE__ */ React35.createElement(IconTarget, { size: 20, color: "var(--mantine-color-gray-3)" }), /* @__PURE__ */ React35.createElement(Text22, { size: "sm", fw: 500, c: "white" }, action.label)), /* @__PURE__ */ React35.createElement(IconArrowRight, { size: 16, color: "var(--mantine-color-gray-4)" }))
2853
+ /* @__PURE__ */ React36.createElement(Group7, { justify: "space-between", align: "center" }, /* @__PURE__ */ React36.createElement(Group7, { gap: "sm" }, /* @__PURE__ */ React36.createElement(IconTarget, { size: 20, color: "var(--mantine-color-gray-3)" }), /* @__PURE__ */ React36.createElement(Text23, { size: "sm", fw: 500, c: "white" }, action.label)), /* @__PURE__ */ React36.createElement(IconArrowRight, { size: 16, color: "var(--mantine-color-gray-4)" }))
2783
2854
  );
2784
2855
  };
2785
2856
  var SelectionActionSectionComponent = ({ section, itemId, itemData }) => {
2786
2857
  if (!section.actions || section.actions.length === 0) return null;
2787
- return /* @__PURE__ */ React35.createElement(Stack22, { gap: "xs" }, /* @__PURE__ */ React35.createElement(Text22, { fw: 500 }, section.title), section.description && /* @__PURE__ */ React35.createElement(Text22, { size: "sm", c: "dimmed" }, section.description), /* @__PURE__ */ React35.createElement(Stack22, { gap: "xs" }, section.actions.map((action) => /* @__PURE__ */ React35.createElement(SelectionActionButton, { key: action.id, action, itemId, itemData }))));
2858
+ return /* @__PURE__ */ React36.createElement(Stack23, { gap: "xs" }, /* @__PURE__ */ React36.createElement(Text23, { fw: 500 }, section.title), section.description && /* @__PURE__ */ React36.createElement(Text23, { size: "sm", c: "dimmed" }, section.description), /* @__PURE__ */ React36.createElement(Stack23, { gap: "xs" }, section.actions.map((action) => /* @__PURE__ */ React36.createElement(SelectionActionButton, { key: action.id, action, itemId, itemData }))));
2788
2859
  };
2789
2860
  var SelectionActionSections = ({ sections, itemId, itemData }) => {
2790
2861
  if (!sections || sections.length === 0) return null;
2791
- return /* @__PURE__ */ React35.createElement(Stack22, { gap: "md" }, sections.map((section, index) => /* @__PURE__ */ React35.createElement(React35.Fragment, { key: index }, /* @__PURE__ */ React35.createElement(SelectionActionSectionComponent, { section, itemId, itemData }), index < sections.length - 1 && /* @__PURE__ */ React35.createElement(Divider2, null))));
2862
+ return /* @__PURE__ */ React36.createElement(Stack23, { gap: "md" }, sections.map((section, index) => /* @__PURE__ */ React36.createElement(React36.Fragment, { key: index }, /* @__PURE__ */ React36.createElement(SelectionActionSectionComponent, { section, itemId, itemData }), index < sections.length - 1 && /* @__PURE__ */ React36.createElement(Divider2, null))));
2792
2863
  };
2793
2864
  var SelectionPanelEmpty = ({ message = "No item selected" }) => {
2794
- return /* @__PURE__ */ React35.createElement(Stack22, { gap: "md", align: "center", py: "xl" }, /* @__PURE__ */ React35.createElement(Text22, { size: "sm", c: "dimmed", ta: "center" }, message));
2865
+ return /* @__PURE__ */ React36.createElement(Stack23, { gap: "md", align: "center", py: "xl" }, /* @__PURE__ */ React36.createElement(Text23, { size: "sm", c: "dimmed", ta: "center" }, message));
2795
2866
  };
2796
2867
 
2797
2868
  // src/mantine/blocks/list/ListSelectionPanel.tsx
@@ -2837,7 +2908,7 @@ var ListSelectionPanel = ({ selectedIds, listType }) => {
2837
2908
  fetchItemDetails();
2838
2909
  }, [selectedItemId, listType, handlers, panelConfig]);
2839
2910
  if (!listType || !panelConfig) {
2840
- return /* @__PURE__ */ React36.createElement(
2911
+ return /* @__PURE__ */ React37.createElement(
2841
2912
  Paper4,
2842
2913
  {
2843
2914
  p: "md",
@@ -2849,7 +2920,7 @@ var ListSelectionPanel = ({ selectedIds, listType }) => {
2849
2920
  position: "relative"
2850
2921
  }
2851
2922
  },
2852
- /* @__PURE__ */ React36.createElement(
2923
+ /* @__PURE__ */ React37.createElement(
2853
2924
  CloseButton3,
2854
2925
  {
2855
2926
  onClick: closePanel,
@@ -2861,11 +2932,11 @@ var ListSelectionPanel = ({ selectedIds, listType }) => {
2861
2932
  }
2862
2933
  }
2863
2934
  ),
2864
- /* @__PURE__ */ React36.createElement(SelectionPanelEmpty, { message: "List type not configured" })
2935
+ /* @__PURE__ */ React37.createElement(SelectionPanelEmpty, { message: "List type not configured" })
2865
2936
  );
2866
2937
  }
2867
2938
  if (!selectedItemId) {
2868
- return /* @__PURE__ */ React36.createElement(
2939
+ return /* @__PURE__ */ React37.createElement(
2869
2940
  Paper4,
2870
2941
  {
2871
2942
  p: "md",
@@ -2877,7 +2948,7 @@ var ListSelectionPanel = ({ selectedIds, listType }) => {
2877
2948
  position: "relative"
2878
2949
  }
2879
2950
  },
2880
- /* @__PURE__ */ React36.createElement(
2951
+ /* @__PURE__ */ React37.createElement(
2881
2952
  CloseButton3,
2882
2953
  {
2883
2954
  onClick: closePanel,
@@ -2889,10 +2960,10 @@ var ListSelectionPanel = ({ selectedIds, listType }) => {
2889
2960
  }
2890
2961
  }
2891
2962
  ),
2892
- /* @__PURE__ */ React36.createElement(SelectionPanelEmpty, { message: "No item selected" })
2963
+ /* @__PURE__ */ React37.createElement(SelectionPanelEmpty, { message: "No item selected" })
2893
2964
  );
2894
2965
  }
2895
- return /* @__PURE__ */ React36.createElement(
2966
+ return /* @__PURE__ */ React37.createElement(
2896
2967
  Paper4,
2897
2968
  {
2898
2969
  p: "md",
@@ -2904,7 +2975,7 @@ var ListSelectionPanel = ({ selectedIds, listType }) => {
2904
2975
  position: "relative"
2905
2976
  }
2906
2977
  },
2907
- /* @__PURE__ */ React36.createElement(
2978
+ /* @__PURE__ */ React37.createElement(
2908
2979
  CloseButton3,
2909
2980
  {
2910
2981
  onClick: closePanel,
@@ -2916,7 +2987,7 @@ var ListSelectionPanel = ({ selectedIds, listType }) => {
2916
2987
  }
2917
2988
  }
2918
2989
  ),
2919
- loading ? /* @__PURE__ */ React36.createElement(Center, { h: 200 }, /* @__PURE__ */ React36.createElement(Loader, null)) : error ? /* @__PURE__ */ React36.createElement(Alert3, { color: "red", title: "Error" }, /* @__PURE__ */ React36.createElement(Text23, { size: "sm" }, error)) : itemData ? /* @__PURE__ */ React36.createElement(Stack23, { gap: "md", style: { flex: 1 } }, /* @__PURE__ */ React36.createElement(SelectionPanelHeader, { title: panelConfig.title(itemData), description: panelConfig.description(itemData) }), panelConfig?.image && /* @__PURE__ */ React36.createElement(
2990
+ loading ? /* @__PURE__ */ React37.createElement(Center, { h: 200 }, /* @__PURE__ */ React37.createElement(Loader, null)) : error ? /* @__PURE__ */ React37.createElement(Alert3, { color: "red", title: "Error" }, /* @__PURE__ */ React37.createElement(Text24, { size: "sm" }, error)) : itemData ? /* @__PURE__ */ React37.createElement(Stack24, { gap: "md", style: { flex: 1 } }, /* @__PURE__ */ React37.createElement(SelectionPanelHeader, { title: panelConfig.title(itemData), description: panelConfig.description(itemData) }), panelConfig?.image && /* @__PURE__ */ React37.createElement(
2920
2991
  "img",
2921
2992
  {
2922
2993
  src: panelConfig?.image(itemData),
@@ -2928,30 +2999,30 @@ var ListSelectionPanel = ({ selectedIds, listType }) => {
2928
2999
  objectFit: "cover"
2929
3000
  }
2930
3001
  }
2931
- ), /* @__PURE__ */ React36.createElement(SelectionPrompts, { prompts: panelConfig.prompts(itemData) }), /* @__PURE__ */ React36.createElement(SelectionActionSections, { sections: panelConfig.actionSections(itemData), itemId: selectedItemId, itemData })) : /* @__PURE__ */ React36.createElement(SelectionPanelEmpty, { message: "Failed to load item details" })
3002
+ ), /* @__PURE__ */ React37.createElement(SelectionPrompts, { prompts: panelConfig.prompts(itemData) }), /* @__PURE__ */ React37.createElement(SelectionActionSections, { sections: panelConfig.actionSections(itemData), itemId: selectedItemId, itemData })) : /* @__PURE__ */ React37.createElement(SelectionPanelEmpty, { message: "Failed to load item details" })
2932
3003
  );
2933
3004
  };
2934
3005
 
2935
3006
  // src/mantine/blocks/list/projects/ProjectsList.tsx
2936
- import React37 from "react";
2937
- import { Text as Text24, Box as Box14, Image as Image11, Stack as Stack24, Flex as Flex16 } from "@mantine/core";
3007
+ import React38 from "react";
3008
+ import { Text as Text25, Box as Box15, Image as Image11, Stack as Stack25, Flex as Flex17 } from "@mantine/core";
2938
3009
  var ProjectsList = ({ items, mods, isItemChecked, onItemCheck }) => {
2939
3010
  if (!items || items.length === 0) {
2940
- return /* @__PURE__ */ React37.createElement(Text24, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No Projects found");
3011
+ return /* @__PURE__ */ React38.createElement(Text25, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No Projects found");
2941
3012
  }
2942
- const rows = items.map((project) => /* @__PURE__ */ React37.createElement(ListItemContainer, { key: project.did }, /* @__PURE__ */ React37.createElement(Flex16, { align: "center", gap: "sm" }, /* @__PURE__ */ React37.createElement(Image11, { radius: 16, w: 32, h: 32, src: project.icon }), /* @__PURE__ */ React37.createElement(Stack24, { gap: 0 }, /* @__PURE__ */ React37.createElement(Text24, { size: "sm" }, project.name || "-"), /* @__PURE__ */ React37.createElement(Text24, { size: "sm", c: "dimmed" }, shortStr(project.description, 50, 0) || "-"))), /* @__PURE__ */ React37.createElement(Flex16, { align: "center", gap: "md" }, mods && /* @__PURE__ */ React37.createElement(ListItemCheckbox, { ariaLabel: `Select request ${project.did}`, checked: isItemChecked?.(project.did), onCheck: (checked) => onItemCheck?.(project.did, checked) }))));
2943
- return /* @__PURE__ */ React37.createElement(Box14, { flex: 1 }, /* @__PURE__ */ React37.createElement(Stack24, null, rows));
3013
+ const rows = items.map((project) => /* @__PURE__ */ React38.createElement(ListItemContainer, { key: project.did }, /* @__PURE__ */ React38.createElement(Flex17, { align: "center", gap: "sm" }, /* @__PURE__ */ React38.createElement(Image11, { radius: 16, w: 32, h: 32, src: project.icon }), /* @__PURE__ */ React38.createElement(Stack25, { gap: 0 }, /* @__PURE__ */ React38.createElement(Text25, { size: "sm" }, project.name || "-"), /* @__PURE__ */ React38.createElement(Text25, { size: "sm", c: "dimmed" }, shortStr(project.description, 50, 0) || "-"))), /* @__PURE__ */ React38.createElement(Flex17, { align: "center", gap: "md" }, mods && /* @__PURE__ */ React38.createElement(ListItemCheckbox, { ariaLabel: `Select request ${project.did}`, checked: isItemChecked?.(project.did), onCheck: (checked) => onItemCheck?.(project.did, checked) }))));
3014
+ return /* @__PURE__ */ React38.createElement(Box15, { flex: 1 }, /* @__PURE__ */ React38.createElement(Stack25, null, rows));
2944
3015
  };
2945
3016
 
2946
3017
  // src/mantine/blocks/list/daos/DaosList.tsx
2947
- import React38 from "react";
2948
- import { Text as Text25, Box as Box15, Image as Image12, Stack as Stack25, Flex as Flex17 } from "@mantine/core";
3018
+ import React39 from "react";
3019
+ import { Text as Text26, Box as Box16, Image as Image12, Stack as Stack26, Flex as Flex18 } from "@mantine/core";
2949
3020
  var DaosList = ({ items, mods, isItemChecked, onItemCheck }) => {
2950
3021
  if (!items || items.length === 0) {
2951
- return /* @__PURE__ */ React38.createElement(Text25, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No Daos found");
3022
+ return /* @__PURE__ */ React39.createElement(Text26, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No Daos found");
2952
3023
  }
2953
- const rows = items.map((dao) => /* @__PURE__ */ React38.createElement(ListItemContainer, { key: dao.did }, /* @__PURE__ */ React38.createElement(Flex17, { align: "center", gap: "sm" }, /* @__PURE__ */ React38.createElement(Image12, { radius: 16, w: 32, h: 32, src: dao.icon }), /* @__PURE__ */ React38.createElement(Stack25, { gap: 0 }, /* @__PURE__ */ React38.createElement(Text25, { size: "sm" }, dao.name || "-"), /* @__PURE__ */ React38.createElement(Text25, { size: "sm", c: "dimmed" }, shortStr(dao.description, 50, 0) || "-"))), /* @__PURE__ */ React38.createElement(Flex17, { align: "center", gap: "md" }, mods && /* @__PURE__ */ React38.createElement(ListItemCheckbox, { ariaLabel: `Select request ${dao.did}`, checked: isItemChecked?.(dao.did), onCheck: (checked) => onItemCheck?.(dao.did, checked) }))));
2954
- return /* @__PURE__ */ React38.createElement(Box15, { flex: 1 }, /* @__PURE__ */ React38.createElement(Stack25, null, rows));
3024
+ const rows = items.map((dao) => /* @__PURE__ */ React39.createElement(ListItemContainer, { key: dao.did }, /* @__PURE__ */ React39.createElement(Flex18, { align: "center", gap: "sm" }, /* @__PURE__ */ React39.createElement(Image12, { radius: 16, w: 32, h: 32, src: dao.icon }), /* @__PURE__ */ React39.createElement(Stack26, { gap: 0 }, /* @__PURE__ */ React39.createElement(Text26, { size: "sm" }, dao.name || "-"), /* @__PURE__ */ React39.createElement(Text26, { size: "sm", c: "dimmed" }, shortStr(dao.description, 50, 0) || "-"))), /* @__PURE__ */ React39.createElement(Flex18, { align: "center", gap: "md" }, mods && /* @__PURE__ */ React39.createElement(ListItemCheckbox, { ariaLabel: `Select request ${dao.did}`, checked: isItemChecked?.(dao.did), onCheck: (checked) => onItemCheck?.(dao.did, checked) }))));
3025
+ return /* @__PURE__ */ React39.createElement(Box16, { flex: 1 }, /* @__PURE__ */ React39.createElement(Stack26, null, rows));
2955
3026
  };
2956
3027
 
2957
3028
  // src/core/utils/files.ts
@@ -3015,7 +3086,7 @@ function downloadArrayAsCsv(rows, options) {
3015
3086
  import { useDisclosure } from "@mantine/hooks";
3016
3087
 
3017
3088
  // src/mantine/blocks/list/ui/ListBlocksUIContext.tsx
3018
- import React39, { createContext as createContext2, useCallback as useCallback9, useContext as useContext2, useMemo as useMemo8, useRef as useRef3 } from "react";
3089
+ import React40, { createContext as createContext2, useCallback as useCallback9, useContext as useContext2, useMemo as useMemo8, useRef as useRef3 } from "react";
3019
3090
  var ListBlocksUIContext = createContext2(null);
3020
3091
  var ListBlocksUIProvider = ({ children }) => {
3021
3092
  const listenersRef = useRef3(/* @__PURE__ */ new Set());
@@ -3029,7 +3100,7 @@ var ListBlocksUIProvider = ({ children }) => {
3029
3100
  listenersRef.current.forEach((listener) => listener(event));
3030
3101
  }, []);
3031
3102
  const value = useMemo8(() => ({ broadcastCollapse, subscribe }), [broadcastCollapse, subscribe]);
3032
- return /* @__PURE__ */ React39.createElement(ListBlocksUIContext.Provider, { value }, children);
3103
+ return /* @__PURE__ */ React40.createElement(ListBlocksUIContext.Provider, { value }, children);
3033
3104
  };
3034
3105
  var useListBlocksUI = () => {
3035
3106
  const ctx = useContext2(ListBlocksUIContext);
@@ -3054,14 +3125,14 @@ var ListFlowView = ({ block, editor }) => {
3054
3125
  const [totalPages, setTotalPages] = useState6(0);
3055
3126
  const [selectedIds, setSelectedIds] = useState6(/* @__PURE__ */ new Set());
3056
3127
  const panelId = `${LIST_FLOW_PANEL_ID}-${block.id}`;
3057
- const panelContent = useMemo9(() => /* @__PURE__ */ React40.createElement(TemplateConfig2, { editor, block }), [editor, block]);
3128
+ const panelContent = useMemo9(() => /* @__PURE__ */ React41.createElement(TemplateConfig2, { editor, block }), [editor, block]);
3058
3129
  const { open: openPanel } = usePanel(panelId, panelContent);
3059
3130
  const handlers = useBlocknoteHandlers();
3060
3131
  const listType = block.props.listType && block.props.listType !== "" ? block.props.listType : null;
3061
3132
  const { subscribe } = useListBlocksUI();
3062
3133
  const selectionPanelId = `${LIST_SELECTION_FLOW_PANEL_ID}-${block.id}`;
3063
3134
  const selectionPanelContent = useMemo9(
3064
- () => /* @__PURE__ */ React40.createElement(ListSelectionPanel, { editor, block, selectedIds, listType }),
3135
+ () => /* @__PURE__ */ React41.createElement(ListSelectionPanel, { editor, block, selectedIds, listType }),
3065
3136
  [editor, block, selectedIds, listType]
3066
3137
  );
3067
3138
  const { open: openSelectionPanel, close: closeSelectionPanel } = usePanel(selectionPanelId, selectionPanelContent);
@@ -3185,7 +3256,7 @@ var ListFlowView = ({ block, editor }) => {
3185
3256
  let did;
3186
3257
  let relayerDid;
3187
3258
  let groupIds;
3188
- let userAddress;
3259
+ let user;
3189
3260
  switch (listType) {
3190
3261
  case "linked_resources":
3191
3262
  did = handlers.getEntityDid();
@@ -3196,7 +3267,12 @@ var ListFlowView = ({ block, editor }) => {
3196
3267
  case "assets":
3197
3268
  did = handlers.getEntityDid();
3198
3269
  if (!did && !listConfig.collectionDid) throw new Error("Collection DID is required");
3199
- result = await handlers.getAssets(listConfig.collectionDid || did, page);
3270
+ if (listConfig.ownerBased) {
3271
+ user = handlers.getCurrentUser();
3272
+ result = await handlers.getAssets(listConfig.collectionDid || did, page, user.address);
3273
+ } else {
3274
+ result = await handlers.getAssets(listConfig.collectionDid || did, page);
3275
+ }
3200
3276
  setTotalPages(Math.ceil(result.totalCount / DEFAULT_PAGE_SIZE));
3201
3277
  setData({ items: result.data });
3202
3278
  break;
@@ -3271,12 +3347,18 @@ var ListFlowView = ({ block, editor }) => {
3271
3347
  result = await handlers.getValidators(listConfig.relayedNodeDid || relayerDid, page);
3272
3348
  setData({ items: result.data });
3273
3349
  break;
3350
+ case "balances":
3351
+ user = handlers.getCurrentUser();
3352
+ if (!user.address && !listConfig.address) throw new Error("Address is required");
3353
+ result = await handlers.getBalances(listConfig.address || user.address);
3354
+ setData({ items: result.data });
3355
+ break;
3274
3356
  case "dao_members":
3275
- userAddress = handlers.getCurrentUser();
3357
+ user = handlers.getCurrentUser();
3276
3358
  groupIds = await handlers.getDaoGroupsIds();
3277
- if (!userAddress.address && !listConfig.address) throw new Error("Address is required");
3359
+ if (!user.address && !listConfig.address) throw new Error("Address is required");
3278
3360
  if (!groupIds && !listConfig.groupIds) throw new Error("Group Ids are required");
3279
- result = await handlers.getDaoMembers(listConfig.address || userAddress.address, listConfig.groupIds || groupIds, listConfig.withBalance, page);
3361
+ result = await handlers.getDaoMembers(listConfig.address || user.address, listConfig.groupIds || groupIds, listConfig.withBalance, page);
3280
3362
  setData({ items: result.data });
3281
3363
  break;
3282
3364
  default:
@@ -3318,44 +3400,46 @@ var ListFlowView = ({ block, editor }) => {
3318
3400
  if (!filteredData || !listType) return null;
3319
3401
  switch (listType) {
3320
3402
  case "linked_resources":
3321
- return /* @__PURE__ */ React40.createElement(LinkedResourcesList, { items: filteredData, config: listConfig, mods: selectionMode, isItemChecked, onItemCheck });
3403
+ return /* @__PURE__ */ React41.createElement(LinkedResourcesList, { items: filteredData, config: listConfig, mods: selectionMode, isItemChecked, onItemCheck });
3322
3404
  case "assets":
3323
- return /* @__PURE__ */ React40.createElement(AssetsList, { items: filteredData, config: listConfig, mods: selectionMode, isItemChecked, onItemCheck });
3405
+ return /* @__PURE__ */ React41.createElement(AssetsList, { items: filteredData, config: listConfig, mods: selectionMode, isItemChecked, onItemCheck });
3324
3406
  case "transactions":
3325
- return /* @__PURE__ */ React40.createElement(TransactionsList, { items: filteredData, config: listConfig, mods: selectionMode, isItemChecked, onItemCheck });
3407
+ return /* @__PURE__ */ React41.createElement(TransactionsList, { items: filteredData, config: listConfig, mods: selectionMode, isItemChecked, onItemCheck });
3326
3408
  case "collections":
3327
- return /* @__PURE__ */ React40.createElement(CollectionsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3409
+ return /* @__PURE__ */ React41.createElement(CollectionsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3410
+ case "balances":
3411
+ return /* @__PURE__ */ React41.createElement(BalancesList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3328
3412
  case "investments":
3329
- return /* @__PURE__ */ React40.createElement(InvestmentsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3413
+ return /* @__PURE__ */ React41.createElement(InvestmentsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3330
3414
  case "oracles":
3331
- return /* @__PURE__ */ React40.createElement(OraclesList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3415
+ return /* @__PURE__ */ React41.createElement(OraclesList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3332
3416
  case "pods":
3333
- return /* @__PURE__ */ React40.createElement(PodsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3417
+ return /* @__PURE__ */ React41.createElement(PodsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3334
3418
  case "proposals":
3335
- return /* @__PURE__ */ React40.createElement(ProposalsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3419
+ return /* @__PURE__ */ React41.createElement(ProposalsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3336
3420
  case "requests":
3337
- return /* @__PURE__ */ React40.createElement(RequestsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3421
+ return /* @__PURE__ */ React41.createElement(RequestsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3338
3422
  case "projects":
3339
- return /* @__PURE__ */ React40.createElement(ProjectsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3423
+ return /* @__PURE__ */ React41.createElement(ProjectsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3340
3424
  case "daos":
3341
- return /* @__PURE__ */ React40.createElement(DaosList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3425
+ return /* @__PURE__ */ React41.createElement(DaosList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3342
3426
  case "group_members":
3343
- return /* @__PURE__ */ React40.createElement(MembersList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3427
+ return /* @__PURE__ */ React41.createElement(MembersList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3344
3428
  case "dao_members":
3345
- return /* @__PURE__ */ React40.createElement(DaoMembersList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3429
+ return /* @__PURE__ */ React41.createElement(DaoMembersList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3346
3430
  case "validators":
3347
- return /* @__PURE__ */ React40.createElement(ValidatorsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3431
+ return /* @__PURE__ */ React41.createElement(ValidatorsList, { items: filteredData, mods: selectionMode, isItemChecked, onItemCheck });
3348
3432
  default:
3349
3433
  return null;
3350
3434
  }
3351
3435
  };
3352
3436
  if (!listType) {
3353
- return /* @__PURE__ */ React40.createElement(Center2, { py: "xl" }, /* @__PURE__ */ React40.createElement(Text26, { size: "sm", c: "dimmed" }, "List not configured"));
3437
+ return /* @__PURE__ */ React41.createElement(Center2, { py: "xl" }, /* @__PURE__ */ React41.createElement(Text27, { size: "sm", c: "dimmed" }, "List not configured"));
3354
3438
  }
3355
- return /* @__PURE__ */ React40.createElement(Stack26, { w: "100%" }, /* @__PURE__ */ React40.createElement(Flex18, { px: 5, align: "center", justify: "space-between" }, /* @__PURE__ */ React40.createElement(Title4, { order: 4 }, getListNameByType(listType)), /* @__PURE__ */ React40.createElement(ActionIcon5, { variant: "subtle", size: "sm", onClick: toggle, "aria-label": opened ? "Collapse" : "Expand", title: opened ? "Collapse" : "Expand" }, opened ? /* @__PURE__ */ React40.createElement(IconChevronUp, { size: 18 }) : /* @__PURE__ */ React40.createElement(IconChevronDown, { size: 18 }))), /* @__PURE__ */ React40.createElement(Collapse, { pb: 5, px: 5, in: opened }, /* @__PURE__ */ React40.createElement(Stack26, { mih: totalPages !== 1 ? 500 : void 0, w: "100%" }, /* @__PURE__ */ React40.createElement(Flex18, { align: "center", gap: "xs" }, listSortConfig?.key && /* @__PURE__ */ React40.createElement(Flex18, { align: "center" }, /* @__PURE__ */ React40.createElement(Text26, { size: "xs" }, listSortConfig.key?.replace(/([A-Z])/g, " $1").replace(
3439
+ return /* @__PURE__ */ React41.createElement(Stack27, { w: "100%" }, /* @__PURE__ */ React41.createElement(Flex19, { px: 5, align: "center", justify: "space-between" }, /* @__PURE__ */ React41.createElement(Title4, { order: 4 }, getListNameByType(listType)), /* @__PURE__ */ React41.createElement(ActionIcon5, { variant: "subtle", size: "sm", onClick: toggle, "aria-label": opened ? "Collapse" : "Expand", title: opened ? "Collapse" : "Expand" }, opened ? /* @__PURE__ */ React41.createElement(IconChevronUp, { size: 18 }) : /* @__PURE__ */ React41.createElement(IconChevronDown, { size: 18 }))), /* @__PURE__ */ React41.createElement(Collapse, { pb: 5, px: 5, in: opened }, /* @__PURE__ */ React41.createElement(Stack27, { mih: totalPages !== 1 ? 500 : void 0, w: "100%" }, /* @__PURE__ */ React41.createElement(Flex19, { align: "center", gap: "xs" }, listSortConfig?.key && /* @__PURE__ */ React41.createElement(Flex19, { align: "center" }, /* @__PURE__ */ React41.createElement(Text27, { size: "xs" }, listSortConfig.key?.replace(/([A-Z])/g, " $1").replace(
3356
3440
  /^./,
3357
3441
  (str) => str.toUpperCase()
3358
- ), " "), /* @__PURE__ */ React40.createElement(Text26, { lh: 0.5 }, listSortConfig.direction === "asc" && /* @__PURE__ */ React40.createElement(IconArrowUp2, { size: 18 }), listSortConfig.direction === "desc" && /* @__PURE__ */ React40.createElement(IconArrowDown2, { size: 18 }))), selectionMode && /* @__PURE__ */ React40.createElement(Text26, { lh: 0.5 }, selectionMode === "single" ? "Single Selection" : "Multi Selection")), /* @__PURE__ */ React40.createElement(Flex18, { justify: "space-between" }, /* @__PURE__ */ React40.createElement(Flex18, { gap: "xs", align: "center" }, /* @__PURE__ */ React40.createElement(FilterTab, { key: "All", label: "All", isActive: !listFilterConfig?.key, onClick: () => handleFilterChange(null) }), Array.isArray(listFilterConfigOptions) && listFilterConfigOptions.length > 0 && listFilterConfigOptions.map(({ key, label, type }) => /* @__PURE__ */ React40.createElement(
3442
+ ), " "), /* @__PURE__ */ React41.createElement(Text27, { lh: 0.5 }, listSortConfig.direction === "asc" && /* @__PURE__ */ React41.createElement(IconArrowUp2, { size: 18 }), listSortConfig.direction === "desc" && /* @__PURE__ */ React41.createElement(IconArrowDown2, { size: 18 }))), selectionMode && /* @__PURE__ */ React41.createElement(Text27, { lh: 0.5 }, selectionMode === "single" ? "Single Selection" : "Multi Selection")), /* @__PURE__ */ React41.createElement(Flex19, { justify: "space-between" }, /* @__PURE__ */ React41.createElement(Flex19, { gap: "xs", align: "center" }, /* @__PURE__ */ React41.createElement(FilterTab, { key: "All", label: "All", isActive: !listFilterConfig?.key, onClick: () => handleFilterChange(null) }), Array.isArray(listFilterConfigOptions) && listFilterConfigOptions.length > 0 && listFilterConfigOptions.map(({ key, label, type }) => /* @__PURE__ */ React41.createElement(
3359
3443
  FilterTab,
3360
3444
  {
3361
3445
  key: label,
@@ -3363,7 +3447,7 @@ var ListFlowView = ({ block, editor }) => {
3363
3447
  isActive: listFilterConfig?.key === key && listFilterConfig?.value === type,
3364
3448
  onClick: () => handleFilterChange({ key, value: type })
3365
3449
  }
3366
- ))), /* @__PURE__ */ React40.createElement(Flex18, { gap: "xs" }, /* @__PURE__ */ React40.createElement(ActionIcon5, { variant: "subtle", size: "sm", onClick: fetchData, loading }, /* @__PURE__ */ React40.createElement(IconRefresh, { size: 18 })), editable && /* @__PURE__ */ React40.createElement(ActionIcon5, { variant: "subtle", size: "sm", onClick: openPanel }, /* @__PURE__ */ React40.createElement(IconSettings, { size: 18 })), listConfig && listSortConfigOptions && listSortConfigOptions?.length > 0 && /* @__PURE__ */ React40.createElement(
3450
+ ))), /* @__PURE__ */ React41.createElement(Flex19, { gap: "xs" }, /* @__PURE__ */ React41.createElement(ActionIcon5, { variant: "subtle", size: "sm", onClick: fetchData, loading }, /* @__PURE__ */ React41.createElement(IconRefresh, { size: 18 })), editable && /* @__PURE__ */ React41.createElement(ActionIcon5, { variant: "subtle", size: "sm", onClick: openPanel }, /* @__PURE__ */ React41.createElement(IconSettings, { size: 18 })), listConfig && listSortConfigOptions && listSortConfigOptions?.length > 0 && /* @__PURE__ */ React41.createElement(
3367
3451
  ListActionsMenu,
3368
3452
  {
3369
3453
  onSelectActionClick: (mode) => setSelectionMode(mode),
@@ -3373,7 +3457,7 @@ var ListFlowView = ({ block, editor }) => {
3373
3457
  onChange: (sortOption) => handleSortChange(sortOption),
3374
3458
  onDownloadCsv: data?.items ? () => downloadArrayAsCsv(data.items) : void 0
3375
3459
  }
3376
- ))), /* @__PURE__ */ React40.createElement(Flex18, { flex: 1 }, loading ? /* @__PURE__ */ React40.createElement(Center2, { py: "xl", w: "100%" }, /* @__PURE__ */ React40.createElement(Loader2, { size: "md", mx: "auto" })) : error ? /* @__PURE__ */ React40.createElement(Alert4, { color: "red", title: "Failed to load data", icon: /* @__PURE__ */ React40.createElement(IconAlertCircle, { size: 18 }) }, /* @__PURE__ */ React40.createElement(Stack26, { gap: "xs" }, /* @__PURE__ */ React40.createElement(Text26, { size: "sm" }, showErrorDetails ? error : "Unable to fetch list data"), /* @__PURE__ */ React40.createElement(Group7, { gap: "xs" }, /* @__PURE__ */ React40.createElement(Button5, { size: "xs", variant: "subtle", onClick: fetchData }, "Retry"), /* @__PURE__ */ React40.createElement(Button5, { size: "xs", variant: "subtle", onClick: () => setShowErrorDetails(!showErrorDetails) }, showErrorDetails ? "Hide" : "Show", " Details")))) : /* @__PURE__ */ React40.createElement(Stack26, { flex: 1 }, /* @__PURE__ */ React40.createElement(Stack26, { gap: "md" }, renderListComponent(), /* @__PURE__ */ React40.createElement(
3460
+ ))), /* @__PURE__ */ React41.createElement(Flex19, { flex: 1 }, loading ? /* @__PURE__ */ React41.createElement(Center2, { py: "xl", w: "100%" }, /* @__PURE__ */ React41.createElement(Loader2, { size: "md", mx: "auto" })) : error ? /* @__PURE__ */ React41.createElement(Alert4, { color: "red", title: "Failed to load data", icon: /* @__PURE__ */ React41.createElement(IconAlertCircle, { size: 18 }) }, /* @__PURE__ */ React41.createElement(Stack27, { gap: "xs" }, /* @__PURE__ */ React41.createElement(Text27, { size: "sm" }, showErrorDetails ? error : "Unable to fetch list data"), /* @__PURE__ */ React41.createElement(Group8, { gap: "xs" }, /* @__PURE__ */ React41.createElement(Button5, { size: "xs", variant: "subtle", onClick: fetchData }, "Retry"), /* @__PURE__ */ React41.createElement(Button5, { size: "xs", variant: "subtle", onClick: () => setShowErrorDetails(!showErrorDetails) }, showErrorDetails ? "Hide" : "Show", " Details")))) : /* @__PURE__ */ React41.createElement(Stack27, { flex: 1 }, /* @__PURE__ */ React41.createElement(Stack27, { gap: "md" }, renderListComponent(), /* @__PURE__ */ React41.createElement(
3377
3461
  ListPagination,
3378
3462
  {
3379
3463
  page,
@@ -3391,9 +3475,9 @@ function ListBlock({ editor, block }) {
3391
3475
  const listType = block.props.listType && block.props.listType !== "";
3392
3476
  const isConfigured = listType;
3393
3477
  if (editable && !isConfigured) {
3394
- return /* @__PURE__ */ React41.createElement(ListTemplateView, { editor, block });
3478
+ return /* @__PURE__ */ React42.createElement(ListTemplateView, { editor, block });
3395
3479
  }
3396
- return /* @__PURE__ */ React41.createElement(ListFlowView, { block, editor });
3480
+ return /* @__PURE__ */ React42.createElement(ListFlowView, { block, editor });
3397
3481
  }
3398
3482
 
3399
3483
  // src/mantine/blocks/list/ListBlockSpec.tsx
@@ -3428,16 +3512,16 @@ var ListBlockSpec = createReactBlockSpec2(
3428
3512
  {
3429
3513
  render: (props) => {
3430
3514
  const ixoProps = props;
3431
- return /* @__PURE__ */ React42.createElement(ListBlock, { ...ixoProps });
3515
+ return /* @__PURE__ */ React43.createElement(ListBlock, { ...ixoProps });
3432
3516
  }
3433
3517
  }
3434
3518
  );
3435
3519
 
3436
3520
  // src/mantine/blocks/overview/OverviewBlock.tsx
3437
- import React43 from "react";
3521
+ import React44 from "react";
3438
3522
  import { createReactBlockSpec as createReactBlockSpec3 } from "@blocknote/react";
3439
3523
  var OverviewBlockContent = ({ block, editor }) => {
3440
- return /* @__PURE__ */ React43.createElement(
3524
+ return /* @__PURE__ */ React44.createElement(
3441
3525
  "div",
3442
3526
  {
3443
3527
  style: {
@@ -3449,7 +3533,7 @@ var OverviewBlockContent = ({ block, editor }) => {
3449
3533
  border: "1px solid #e5e7eb"
3450
3534
  }
3451
3535
  },
3452
- /* @__PURE__ */ React43.createElement("div", { style: { marginBottom: "12px" } }, /* @__PURE__ */ React43.createElement(
3536
+ /* @__PURE__ */ React44.createElement("div", { style: { marginBottom: "12px" } }, /* @__PURE__ */ React44.createElement(
3453
3537
  "input",
3454
3538
  {
3455
3539
  type: "text",
@@ -3475,7 +3559,7 @@ var OverviewBlockContent = ({ block, editor }) => {
3475
3559
  }
3476
3560
  }
3477
3561
  )),
3478
- /* @__PURE__ */ React43.createElement("div", { style: { minHeight: "40px", color: "#6b7280" } }, block.props.did ? /* @__PURE__ */ React43.createElement("p", null, "Loading overview for DID: ", block.props.did) : /* @__PURE__ */ React43.createElement("p", null, "Enter a DID to load overview data"))
3562
+ /* @__PURE__ */ React44.createElement("div", { style: { minHeight: "40px", color: "#6b7280" } }, block.props.did ? /* @__PURE__ */ React44.createElement("p", null, "Loading overview for DID: ", block.props.did) : /* @__PURE__ */ React44.createElement("p", null, "Enter a DID to load overview data"))
3479
3563
  );
3480
3564
  };
3481
3565
  var OverviewBlock = createReactBlockSpec3(
@@ -3489,7 +3573,7 @@ var OverviewBlock = createReactBlockSpec3(
3489
3573
  content: "none"
3490
3574
  },
3491
3575
  {
3492
- render: (props) => /* @__PURE__ */ React43.createElement(OverviewBlockContent, { ...props })
3576
+ render: (props) => /* @__PURE__ */ React44.createElement(OverviewBlockContent, { ...props })
3493
3577
  }
3494
3578
  );
3495
3579
 
@@ -3545,22 +3629,22 @@ var useSharedProposal = ({ proposalId, contractAddress, autoFetch = true }) => {
3545
3629
  };
3546
3630
 
3547
3631
  // src/mantine/blocks/proposal/ProposalBlockSpec.tsx
3548
- import React87 from "react";
3632
+ import React88 from "react";
3549
3633
  import { createReactBlockSpec as createReactBlockSpec4 } from "@blocknote/react";
3550
3634
 
3551
3635
  // src/mantine/blocks/proposal/ProposalBlock.tsx
3552
- import React86 from "react";
3636
+ import React87 from "react";
3553
3637
 
3554
3638
  // src/mantine/blocks/proposal/template/TemplateView.tsx
3555
- import React80, { useMemo as useMemo11 } from "react";
3639
+ import React81, { useMemo as useMemo11 } from "react";
3556
3640
 
3557
3641
  // src/mantine/blocks/proposal/template/TemplateConfig.tsx
3558
- import React79, { useCallback as useCallback13 } from "react";
3642
+ import React80, { useCallback as useCallback13 } from "react";
3559
3643
  import { Paper as Paper6, CloseButton as CloseButton4, Title as Title5 } from "@mantine/core";
3560
3644
 
3561
3645
  // src/mantine/blocks/proposal/template/GeneralTab.tsx
3562
- import React44, { useEffect as useEffect8, useState as useState8 } from "react";
3563
- import { Stack as Stack27, Text as Text27, TextInput as TextInput5, Textarea as Textarea2, Select as Select3, Loader as Loader3, SegmentedControl as SegmentedControl4 } from "@mantine/core";
3646
+ import React45, { useEffect as useEffect8, useState as useState8 } from "react";
3647
+ import { Stack as Stack28, Text as Text28, TextInput as TextInput5, Textarea as Textarea2, Select as Select3, Loader as Loader3, SegmentedControl as SegmentedControl4 } from "@mantine/core";
3564
3648
  var GeneralTab3 = ({ title, description, coreAddress, onTitleChange, onDescriptionChange, onGroupChange }) => {
3565
3649
  const handlers = useBlocknoteHandlers();
3566
3650
  const [localTitle, setLocalTitle] = useState8(title || "");
@@ -3604,7 +3688,7 @@ var GeneralTab3 = ({ title, description, coreAddress, onTitleChange, onDescripti
3604
3688
  };
3605
3689
  fetchGroups();
3606
3690
  }, [handlers]);
3607
- return /* @__PURE__ */ React44.createElement(Stack27, { gap: "lg" }, /* @__PURE__ */ React44.createElement(Stack27, { gap: "xs" }, /* @__PURE__ */ React44.createElement(Text27, { size: "sm", fw: 600 }, "Title"), /* @__PURE__ */ React44.createElement(
3691
+ return /* @__PURE__ */ React45.createElement(Stack28, { gap: "lg" }, /* @__PURE__ */ React45.createElement(Stack28, { gap: "xs" }, /* @__PURE__ */ React45.createElement(Text28, { size: "sm", fw: 600 }, "Title"), /* @__PURE__ */ React45.createElement(
3608
3692
  TextInput5,
3609
3693
  {
3610
3694
  placeholder: "e.g. Proposal Title",
@@ -3615,7 +3699,7 @@ var GeneralTab3 = ({ title, description, coreAddress, onTitleChange, onDescripti
3615
3699
  onTitleChange(newTitle);
3616
3700
  }
3617
3701
  }
3618
- )), /* @__PURE__ */ React44.createElement(Stack27, { gap: "xs" }, /* @__PURE__ */ React44.createElement(Text27, { size: "sm", fw: 600 }, "Description"), /* @__PURE__ */ React44.createElement(
3702
+ )), /* @__PURE__ */ React45.createElement(Stack28, { gap: "xs" }, /* @__PURE__ */ React45.createElement(Text28, { size: "sm", fw: 600 }, "Description"), /* @__PURE__ */ React45.createElement(
3619
3703
  Textarea2,
3620
3704
  {
3621
3705
  placeholder: "Describe what this proposal is about",
@@ -3627,7 +3711,7 @@ var GeneralTab3 = ({ title, description, coreAddress, onTitleChange, onDescripti
3627
3711
  onDescriptionChange(newDescription);
3628
3712
  }
3629
3713
  }
3630
- )), /* @__PURE__ */ React44.createElement(Stack27, { gap: "xs" }, /* @__PURE__ */ React44.createElement(Text27, { size: "sm", fw: 600 }, "Group"), /* @__PURE__ */ React44.createElement(
3714
+ )), /* @__PURE__ */ React45.createElement(Stack28, { gap: "xs" }, /* @__PURE__ */ React45.createElement(Text28, { size: "sm", fw: 600 }, "Group"), /* @__PURE__ */ React45.createElement(
3631
3715
  SegmentedControl4,
3632
3716
  {
3633
3717
  value: inputMode,
@@ -3638,7 +3722,7 @@ var GeneralTab3 = ({ title, description, coreAddress, onTitleChange, onDescripti
3638
3722
  ],
3639
3723
  fullWidth: true
3640
3724
  }
3641
- ), inputMode === "select" ? /* @__PURE__ */ React44.createElement(
3725
+ ), inputMode === "select" ? /* @__PURE__ */ React45.createElement(
3642
3726
  Select3,
3643
3727
  {
3644
3728
  placeholder: loadingGroups ? "Loading groups..." : "Select a DAO group",
@@ -3656,10 +3740,10 @@ var GeneralTab3 = ({ title, description, coreAddress, onTitleChange, onDescripti
3656
3740
  label: group.name
3657
3741
  })),
3658
3742
  disabled: loadingGroups,
3659
- rightSection: loadingGroups ? /* @__PURE__ */ React44.createElement(Loader3, { size: "xs" }) : void 0,
3743
+ rightSection: loadingGroups ? /* @__PURE__ */ React45.createElement(Loader3, { size: "xs" }) : void 0,
3660
3744
  searchable: true
3661
3745
  }
3662
- ) : /* @__PURE__ */ React44.createElement(
3746
+ ) : /* @__PURE__ */ React45.createElement(
3663
3747
  TextInput5,
3664
3748
  {
3665
3749
  placeholder: "Enter DAO core address",
@@ -3674,12 +3758,12 @@ var GeneralTab3 = ({ title, description, coreAddress, onTitleChange, onDescripti
3674
3758
  };
3675
3759
 
3676
3760
  // src/mantine/blocks/proposal/template/ActionsTab.tsx
3677
- import React77, { useCallback as useCallback12, useEffect as useEffect11, useState as useState16 } from "react";
3678
- import { Card as Card13, Stack as Stack60 } from "@mantine/core";
3761
+ import React78, { useCallback as useCallback12, useEffect as useEffect11, useState as useState16 } from "react";
3762
+ import { Card as Card13, Stack as Stack61 } from "@mantine/core";
3679
3763
 
3680
3764
  // src/mantine/blocks/proposal/actions-components/ActionsCard.tsx
3681
- import React45 from "react";
3682
- import { Card as Card6, Group as Group8, Text as Text28, Badge as Badge5, Stack as Stack28, ActionIcon as ActionIcon6, ScrollArea } from "@mantine/core";
3765
+ import React46 from "react";
3766
+ import { Card as Card6, Group as Group9, Text as Text29, Badge as Badge5, Stack as Stack29, ActionIcon as ActionIcon6, ScrollArea } from "@mantine/core";
3683
3767
  var getActionSummary = (action) => {
3684
3768
  switch (action.type) {
3685
3769
  case "Spend":
@@ -3711,7 +3795,7 @@ var ActionsCard = ({ actions, isSelected, onClick, onEditAction, onRemoveAction,
3711
3795
  }
3712
3796
  onClick();
3713
3797
  };
3714
- return /* @__PURE__ */ React45.createElement(
3798
+ return /* @__PURE__ */ React46.createElement(
3715
3799
  Card6,
3716
3800
  {
3717
3801
  shadow: "sm",
@@ -3728,7 +3812,7 @@ var ActionsCard = ({ actions, isSelected, onClick, onEditAction, onRemoveAction,
3728
3812
  },
3729
3813
  onClick: handleCardClick
3730
3814
  },
3731
- /* @__PURE__ */ React45.createElement(Group8, { justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React45.createElement(Stack28, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React45.createElement(Text28, { size: "md", fw: 600, style: { color: "#f1f3f5" } }, "Proposal Actions (", actions.length, ")"), actions.length === 0 ? /* @__PURE__ */ React45.createElement(Text28, { size: "sm", style: { color: "#868e96" } }, "No actions added yet.") : /* @__PURE__ */ React45.createElement(ScrollArea, { h: actions.length > 3 ? 150 : void 0, style: { marginTop: 8 } }, /* @__PURE__ */ React45.createElement(Stack28, { gap: "xs" }, actions.map((action, index) => /* @__PURE__ */ React45.createElement(
3815
+ /* @__PURE__ */ React46.createElement(Group9, { justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React46.createElement(Stack29, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React46.createElement(Text29, { size: "md", fw: 600, style: { color: "#f1f3f5" } }, "Proposal Actions (", actions.length, ")"), actions.length === 0 ? /* @__PURE__ */ React46.createElement(Text29, { size: "sm", style: { color: "#868e96" } }, "No actions added yet.") : /* @__PURE__ */ React46.createElement(ScrollArea, { h: actions.length > 3 ? 150 : void 0, style: { marginTop: 8 } }, /* @__PURE__ */ React46.createElement(Stack29, { gap: "xs" }, actions.map((action, index) => /* @__PURE__ */ React46.createElement(
3732
3816
  Card6,
3733
3817
  {
3734
3818
  key: index,
@@ -3739,7 +3823,7 @@ var ActionsCard = ({ actions, isSelected, onClick, onEditAction, onRemoveAction,
3739
3823
  borderColor: "#333"
3740
3824
  }
3741
3825
  },
3742
- /* @__PURE__ */ React45.createElement(Group8, { justify: "space-between", align: "center" }, /* @__PURE__ */ React45.createElement(Group8, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React45.createElement(
3826
+ /* @__PURE__ */ React46.createElement(Group9, { justify: "space-between", align: "center" }, /* @__PURE__ */ React46.createElement(Group9, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React46.createElement(
3743
3827
  Badge5,
3744
3828
  {
3745
3829
  size: "sm",
@@ -3750,7 +3834,7 @@ var ActionsCard = ({ actions, isSelected, onClick, onEditAction, onRemoveAction,
3750
3834
  }
3751
3835
  },
3752
3836
  action.type
3753
- ), /* @__PURE__ */ React45.createElement(Text28, { size: "sm", style: { color: "#adb5bd" } }, getActionSummary(action))), !disabled && /* @__PURE__ */ React45.createElement(Group8, { gap: 4 }, /* @__PURE__ */ React45.createElement(
3837
+ ), /* @__PURE__ */ React46.createElement(Text29, { size: "sm", style: { color: "#adb5bd" } }, getActionSummary(action))), !disabled && /* @__PURE__ */ React46.createElement(Group9, { gap: 4 }, /* @__PURE__ */ React46.createElement(
3754
3838
  ActionIcon6,
3755
3839
  {
3756
3840
  size: "sm",
@@ -3763,7 +3847,7 @@ var ActionsCard = ({ actions, isSelected, onClick, onEditAction, onRemoveAction,
3763
3847
  style: { color: "#4dabf7" }
3764
3848
  },
3765
3849
  "\u270F\uFE0F"
3766
- ), /* @__PURE__ */ React45.createElement(
3850
+ ), /* @__PURE__ */ React46.createElement(
3767
3851
  ActionIcon6,
3768
3852
  {
3769
3853
  size: "sm",
@@ -3782,14 +3866,14 @@ var ActionsCard = ({ actions, isSelected, onClick, onEditAction, onRemoveAction,
3782
3866
  };
3783
3867
 
3784
3868
  // src/mantine/blocks/proposal/ActionsPanel.tsx
3785
- import React76, { useState as useState15, useEffect as useEffect10, useMemo as useMemo10 } from "react";
3786
- import { Stack as Stack59, Button as Button11, Group as Group19, Text as Text36, Card as Card12, Badge as Badge8, Divider as Divider4, ScrollArea as ScrollArea3, Alert as Alert7, Tabs as Tabs2, SimpleGrid, Paper as Paper5 } from "@mantine/core";
3869
+ import React77, { useState as useState15, useEffect as useEffect10, useMemo as useMemo10 } from "react";
3870
+ import { Stack as Stack60, Button as Button11, Group as Group20, Text as Text37, Card as Card12, Badge as Badge8, Divider as Divider4, ScrollArea as ScrollArea3, Alert as Alert7, Tabs as Tabs2, SimpleGrid, Paper as Paper5 } from "@mantine/core";
3787
3871
 
3788
3872
  // src/mantine/blocks/proposal/actions-components/SpendActionForm.tsx
3789
- import React46 from "react";
3790
- import { TextInput as TextInput6, Stack as Stack29 } from "@mantine/core";
3873
+ import React47 from "react";
3874
+ import { TextInput as TextInput6, Stack as Stack30 } from "@mantine/core";
3791
3875
  var SpendActionForm = ({ data, onChange }) => {
3792
- return /* @__PURE__ */ React46.createElement(Stack29, null, /* @__PURE__ */ React46.createElement(
3876
+ return /* @__PURE__ */ React47.createElement(Stack30, null, /* @__PURE__ */ React47.createElement(
3793
3877
  TextInput6,
3794
3878
  {
3795
3879
  label: "Recipient Address",
@@ -3809,7 +3893,7 @@ var SpendActionForm = ({ data, onChange }) => {
3809
3893
  }
3810
3894
  }
3811
3895
  }
3812
- ), /* @__PURE__ */ React46.createElement(
3896
+ ), /* @__PURE__ */ React47.createElement(
3813
3897
  TextInput6,
3814
3898
  {
3815
3899
  label: "Denomination",
@@ -3829,7 +3913,7 @@ var SpendActionForm = ({ data, onChange }) => {
3829
3913
  }
3830
3914
  }
3831
3915
  }
3832
- ), /* @__PURE__ */ React46.createElement(
3916
+ ), /* @__PURE__ */ React47.createElement(
3833
3917
  TextInput6,
3834
3918
  {
3835
3919
  label: "Amount",
@@ -3853,8 +3937,8 @@ var SpendActionForm = ({ data, onChange }) => {
3853
3937
  };
3854
3938
 
3855
3939
  // src/mantine/blocks/proposal/actions-components/UpdateMembersActionForm.tsx
3856
- import React47, { useState as useState9 } from "react";
3857
- import { Stack as Stack30, TextInput as TextInput7, NumberInput as NumberInput2, Button as Button6, Group as Group9, Text as Text29, Card as Card7, Badge as Badge6, ActionIcon as ActionIcon7, Divider as Divider3, ScrollArea as ScrollArea2 } from "@mantine/core";
3940
+ import React48, { useState as useState9 } from "react";
3941
+ import { Stack as Stack31, TextInput as TextInput7, NumberInput as NumberInput2, Button as Button6, Group as Group10, Text as Text30, Card as Card7, Badge as Badge6, ActionIcon as ActionIcon7, Divider as Divider3, ScrollArea as ScrollArea2 } from "@mantine/core";
3858
3942
  var UpdateMembersActionForm = ({ data, onChange }) => {
3859
3943
  const [newMember, setNewMember] = useState9({ addr: "", weight: 1 });
3860
3944
  const [newRemoveAddress, setNewRemoveAddress] = useState9("");
@@ -3897,7 +3981,7 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
3897
3981
  }
3898
3982
  }
3899
3983
  };
3900
- return /* @__PURE__ */ React47.createElement(Stack30, null, /* @__PURE__ */ React47.createElement(Stack30, { gap: "xs" }, /* @__PURE__ */ React47.createElement(Text29, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Members to Add"), /* @__PURE__ */ React47.createElement(ScrollArea2, { h: 150 }, /* @__PURE__ */ React47.createElement(Stack30, { gap: "xs" }, (data.add || []).map((member, index) => /* @__PURE__ */ React47.createElement(
3984
+ return /* @__PURE__ */ React48.createElement(Stack31, null, /* @__PURE__ */ React48.createElement(Stack31, { gap: "xs" }, /* @__PURE__ */ React48.createElement(Text30, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Members to Add"), /* @__PURE__ */ React48.createElement(ScrollArea2, { h: 150 }, /* @__PURE__ */ React48.createElement(Stack31, { gap: "xs" }, (data.add || []).map((member, index) => /* @__PURE__ */ React48.createElement(
3901
3985
  Card7,
3902
3986
  {
3903
3987
  key: index,
@@ -3908,7 +3992,7 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
3908
3992
  borderColor: "#333"
3909
3993
  }
3910
3994
  },
3911
- /* @__PURE__ */ React47.createElement(Group9, { justify: "space-between" }, /* @__PURE__ */ React47.createElement("div", null, /* @__PURE__ */ React47.createElement(Text29, { size: "sm", fw: 500, style: { color: "#f1f3f5" } }, member.addr.slice(0, 20), "..."), /* @__PURE__ */ React47.createElement(
3995
+ /* @__PURE__ */ React48.createElement(Group10, { justify: "space-between" }, /* @__PURE__ */ React48.createElement("div", null, /* @__PURE__ */ React48.createElement(Text30, { size: "sm", fw: 500, style: { color: "#f1f3f5" } }, member.addr.slice(0, 20), "..."), /* @__PURE__ */ React48.createElement(
3912
3996
  Badge6,
3913
3997
  {
3914
3998
  size: "sm",
@@ -3919,8 +4003,8 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
3919
4003
  },
3920
4004
  "Weight: ",
3921
4005
  member.weight
3922
- )), /* @__PURE__ */ React47.createElement(ActionIcon7, { size: "sm", variant: "subtle", onClick: () => handleRemoveMember(index), style: { color: "#ff6b6b" } }, "\u{1F5D1}\uFE0F"))
3923
- )))), /* @__PURE__ */ React47.createElement(Group9, { grow: true }, /* @__PURE__ */ React47.createElement(TextInput7, { placeholder: "Member address", value: newMember.addr, onChange: (e) => setNewMember({ ...newMember, addr: e.currentTarget.value }), styles: inputStyles29 }), /* @__PURE__ */ React47.createElement(
4006
+ )), /* @__PURE__ */ React48.createElement(ActionIcon7, { size: "sm", variant: "subtle", onClick: () => handleRemoveMember(index), style: { color: "#ff6b6b" } }, "\u{1F5D1}\uFE0F"))
4007
+ )))), /* @__PURE__ */ React48.createElement(Group10, { grow: true }, /* @__PURE__ */ React48.createElement(TextInput7, { placeholder: "Member address", value: newMember.addr, onChange: (e) => setNewMember({ ...newMember, addr: e.currentTarget.value }), styles: inputStyles29 }), /* @__PURE__ */ React48.createElement(
3924
4008
  NumberInput2,
3925
4009
  {
3926
4010
  placeholder: "Weight",
@@ -3929,7 +4013,7 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
3929
4013
  min: 1,
3930
4014
  styles: inputStyles29
3931
4015
  }
3932
- ), /* @__PURE__ */ React47.createElement(
4016
+ ), /* @__PURE__ */ React48.createElement(
3933
4017
  Button6,
3934
4018
  {
3935
4019
  size: "sm",
@@ -3942,7 +4026,7 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
3942
4026
  }
3943
4027
  },
3944
4028
  "\u2795 Add"
3945
- ))), /* @__PURE__ */ React47.createElement(Divider3, { color: "#333" }), /* @__PURE__ */ React47.createElement(Stack30, { gap: "xs" }, /* @__PURE__ */ React47.createElement(Text29, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Members to Remove"), /* @__PURE__ */ React47.createElement(ScrollArea2, { h: 100 }, /* @__PURE__ */ React47.createElement(Stack30, { gap: "xs" }, (data.remove || []).map((item, index) => /* @__PURE__ */ React47.createElement(
4029
+ ))), /* @__PURE__ */ React48.createElement(Divider3, { color: "#333" }), /* @__PURE__ */ React48.createElement(Stack31, { gap: "xs" }, /* @__PURE__ */ React48.createElement(Text30, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Members to Remove"), /* @__PURE__ */ React48.createElement(ScrollArea2, { h: 100 }, /* @__PURE__ */ React48.createElement(Stack31, { gap: "xs" }, (data.remove || []).map((item, index) => /* @__PURE__ */ React48.createElement(
3946
4030
  Card7,
3947
4031
  {
3948
4032
  key: index,
@@ -3953,8 +4037,8 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
3953
4037
  borderColor: "#333"
3954
4038
  }
3955
4039
  },
3956
- /* @__PURE__ */ React47.createElement(Group9, { justify: "space-between" }, /* @__PURE__ */ React47.createElement(Text29, { size: "sm", style: { color: "#adb5bd" } }, item.addr.slice(0, 30), "..."), /* @__PURE__ */ React47.createElement(ActionIcon7, { size: "sm", variant: "subtle", onClick: () => handleRemoveRemoveAddress(index), style: { color: "#ff6b6b" } }, "\u{1F5D1}\uFE0F"))
3957
- )))), /* @__PURE__ */ React47.createElement(Group9, { grow: true }, /* @__PURE__ */ React47.createElement(TextInput7, { placeholder: "Address to remove", value: newRemoveAddress, onChange: (e) => setNewRemoveAddress(e.currentTarget.value), styles: inputStyles29 }), /* @__PURE__ */ React47.createElement(
4040
+ /* @__PURE__ */ React48.createElement(Group10, { justify: "space-between" }, /* @__PURE__ */ React48.createElement(Text30, { size: "sm", style: { color: "#adb5bd" } }, item.addr.slice(0, 30), "..."), /* @__PURE__ */ React48.createElement(ActionIcon7, { size: "sm", variant: "subtle", onClick: () => handleRemoveRemoveAddress(index), style: { color: "#ff6b6b" } }, "\u{1F5D1}\uFE0F"))
4041
+ )))), /* @__PURE__ */ React48.createElement(Group10, { grow: true }, /* @__PURE__ */ React48.createElement(TextInput7, { placeholder: "Address to remove", value: newRemoveAddress, onChange: (e) => setNewRemoveAddress(e.currentTarget.value), styles: inputStyles29 }), /* @__PURE__ */ React48.createElement(
3958
4042
  Button6,
3959
4043
  {
3960
4044
  size: "sm",
@@ -3971,8 +4055,8 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
3971
4055
  };
3972
4056
 
3973
4057
  // src/mantine/blocks/proposal/actions-components/StakeActionForm.tsx
3974
- import React48 from "react";
3975
- import { Stack as Stack31, TextInput as TextInput8, Select as Select4, NumberInput as NumberInput3 } from "@mantine/core";
4058
+ import React49 from "react";
4059
+ import { Stack as Stack32, TextInput as TextInput8, Select as Select4, NumberInput as NumberInput3 } from "@mantine/core";
3976
4060
  var stakeTypeOptions = [
3977
4061
  { value: StakeType.Delegate, label: "Delegate" },
3978
4062
  { value: StakeType.Undelegate, label: "Undelegate" },
@@ -4017,7 +4101,7 @@ var selectStyles = {
4017
4101
  var StakeActionForm = ({ data, onChange }) => {
4018
4102
  const isRedelegate = data.stakeType === StakeType.Redelegate;
4019
4103
  const needsAmount = data.stakeType !== StakeType.WithdrawDelegatorReward;
4020
- return /* @__PURE__ */ React48.createElement(Stack31, { gap: "md" }, /* @__PURE__ */ React48.createElement(
4104
+ return /* @__PURE__ */ React49.createElement(Stack32, { gap: "md" }, /* @__PURE__ */ React49.createElement(
4021
4105
  Select4,
4022
4106
  {
4023
4107
  label: "Stake Type",
@@ -4027,7 +4111,7 @@ var StakeActionForm = ({ data, onChange }) => {
4027
4111
  required: true,
4028
4112
  styles: selectStyles
4029
4113
  }
4030
- ), /* @__PURE__ */ React48.createElement(
4114
+ ), /* @__PURE__ */ React49.createElement(
4031
4115
  TextInput8,
4032
4116
  {
4033
4117
  label: "Validator Address",
@@ -4037,7 +4121,7 @@ var StakeActionForm = ({ data, onChange }) => {
4037
4121
  required: true,
4038
4122
  styles: inputStyles
4039
4123
  }
4040
- ), isRedelegate && /* @__PURE__ */ React48.createElement(
4124
+ ), isRedelegate && /* @__PURE__ */ React49.createElement(
4041
4125
  TextInput8,
4042
4126
  {
4043
4127
  label: "Destination Validator Address",
@@ -4047,7 +4131,7 @@ var StakeActionForm = ({ data, onChange }) => {
4047
4131
  required: true,
4048
4132
  styles: inputStyles
4049
4133
  }
4050
- ), needsAmount && /* @__PURE__ */ React48.createElement(React48.Fragment, null, /* @__PURE__ */ React48.createElement(
4134
+ ), needsAmount && /* @__PURE__ */ React49.createElement(React49.Fragment, null, /* @__PURE__ */ React49.createElement(
4051
4135
  NumberInput3,
4052
4136
  {
4053
4137
  label: "Amount",
@@ -4059,7 +4143,7 @@ var StakeActionForm = ({ data, onChange }) => {
4059
4143
  required: true,
4060
4144
  styles: inputStyles
4061
4145
  }
4062
- ), /* @__PURE__ */ React48.createElement(
4146
+ ), /* @__PURE__ */ React49.createElement(
4063
4147
  Select4,
4064
4148
  {
4065
4149
  label: "Denomination",
@@ -4076,8 +4160,8 @@ var StakeActionForm = ({ data, onChange }) => {
4076
4160
  };
4077
4161
 
4078
4162
  // src/mantine/blocks/proposal/actions-components/JoinActionForm.tsx
4079
- import React49 from "react";
4080
- import { Stack as Stack32, TextInput as TextInput9 } from "@mantine/core";
4163
+ import React50 from "react";
4164
+ import { Stack as Stack33, TextInput as TextInput9 } from "@mantine/core";
4081
4165
  var inputStyles2 = {
4082
4166
  label: { color: "#adb5bd" },
4083
4167
  input: {
@@ -4090,7 +4174,7 @@ var inputStyles2 = {
4090
4174
  }
4091
4175
  };
4092
4176
  var JoinActionForm = ({ data, onChange }) => {
4093
- return /* @__PURE__ */ React49.createElement(Stack32, { gap: "md" }, /* @__PURE__ */ React49.createElement(TextInput9, { label: "ID", placeholder: "did:ixo:entity:abc123...", value: data.id, onChange: (e) => onChange({ ...data, id: e.target.value }), required: true, styles: inputStyles2 }), /* @__PURE__ */ React49.createElement(
4177
+ return /* @__PURE__ */ React50.createElement(Stack33, { gap: "md" }, /* @__PURE__ */ React50.createElement(TextInput9, { label: "ID", placeholder: "did:ixo:entity:abc123...", value: data.id, onChange: (e) => onChange({ ...data, id: e.target.value }), required: true, styles: inputStyles2 }), /* @__PURE__ */ React50.createElement(
4094
4178
  TextInput9,
4095
4179
  {
4096
4180
  label: "Core Address",
@@ -4100,12 +4184,12 @@ var JoinActionForm = ({ data, onChange }) => {
4100
4184
  required: true,
4101
4185
  styles: inputStyles2
4102
4186
  }
4103
- ), /* @__PURE__ */ React49.createElement(TextInput9, { label: "Address", placeholder: "ixo1...", value: data.address, onChange: (e) => onChange({ ...data, address: e.target.value }), required: true, styles: inputStyles2 }));
4187
+ ), /* @__PURE__ */ React50.createElement(TextInput9, { label: "Address", placeholder: "ixo1...", value: data.address, onChange: (e) => onChange({ ...data, address: e.target.value }), required: true, styles: inputStyles2 }));
4104
4188
  };
4105
4189
 
4106
4190
  // src/mantine/blocks/proposal/actions-components/forms/MintActionForm.tsx
4107
- import React50 from "react";
4108
- import { Stack as Stack33, TextInput as TextInput10, NumberInput as NumberInput4 } from "@mantine/core";
4191
+ import React51 from "react";
4192
+ import { Stack as Stack34, TextInput as TextInput10, NumberInput as NumberInput4 } from "@mantine/core";
4109
4193
  var inputStyles3 = {
4110
4194
  label: { color: "#adb5bd" },
4111
4195
  input: {
@@ -4118,7 +4202,7 @@ var inputStyles3 = {
4118
4202
  }
4119
4203
  };
4120
4204
  var MintActionForm = ({ data, onChange }) => {
4121
- return /* @__PURE__ */ React50.createElement(Stack33, { gap: "md" }, /* @__PURE__ */ React50.createElement(TextInput10, { label: "Recipient Address", placeholder: "ixo1...", value: data.to, onChange: (e) => onChange({ ...data, to: e.currentTarget.value }), required: true, styles: inputStyles3 }), /* @__PURE__ */ React50.createElement(
4205
+ return /* @__PURE__ */ React51.createElement(Stack34, { gap: "md" }, /* @__PURE__ */ React51.createElement(TextInput10, { label: "Recipient Address", placeholder: "ixo1...", value: data.to, onChange: (e) => onChange({ ...data, to: e.currentTarget.value }), required: true, styles: inputStyles3 }), /* @__PURE__ */ React51.createElement(
4122
4206
  NumberInput4,
4123
4207
  {
4124
4208
  label: "Amount",
@@ -4134,8 +4218,8 @@ var MintActionForm = ({ data, onChange }) => {
4134
4218
  };
4135
4219
 
4136
4220
  // src/mantine/blocks/proposal/actions-components/forms/ExecuteActionForm.tsx
4137
- import React51, { useState as useState10 } from "react";
4138
- import { Stack as Stack34, TextInput as TextInput11, Textarea as Textarea3, Button as Button7, Group as Group10, Text as Text30, Card as Card8 } from "@mantine/core";
4221
+ import React52, { useState as useState10 } from "react";
4222
+ import { Stack as Stack35, TextInput as TextInput11, Textarea as Textarea3, Button as Button7, Group as Group11, Text as Text31, Card as Card8 } from "@mantine/core";
4139
4223
  var inputStyles4 = {
4140
4224
  label: { color: "#adb5bd" },
4141
4225
  input: {
@@ -4172,7 +4256,7 @@ var ExecuteActionForm = ({ data, onChange }) => {
4172
4256
  return data.message;
4173
4257
  }
4174
4258
  };
4175
- return /* @__PURE__ */ React51.createElement(Stack34, { gap: "md" }, /* @__PURE__ */ React51.createElement(
4259
+ return /* @__PURE__ */ React52.createElement(Stack35, { gap: "md" }, /* @__PURE__ */ React52.createElement(
4176
4260
  TextInput11,
4177
4261
  {
4178
4262
  label: "Contract Address",
@@ -4182,7 +4266,7 @@ var ExecuteActionForm = ({ data, onChange }) => {
4182
4266
  required: true,
4183
4267
  styles: inputStyles4
4184
4268
  }
4185
- ), /* @__PURE__ */ React51.createElement(
4269
+ ), /* @__PURE__ */ React52.createElement(
4186
4270
  Textarea3,
4187
4271
  {
4188
4272
  label: "Message (JSON)",
@@ -4193,7 +4277,7 @@ var ExecuteActionForm = ({ data, onChange }) => {
4193
4277
  required: true,
4194
4278
  styles: inputStyles4
4195
4279
  }
4196
- ), /* @__PURE__ */ React51.createElement(Stack34, { gap: "xs" }, /* @__PURE__ */ React51.createElement(Text30, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Funds (Optional)"), (data.funds || []).map((fund, index) => /* @__PURE__ */ React51.createElement(Card8, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "#2a2a2a", borderColor: "#333" } }, /* @__PURE__ */ React51.createElement(Group10, { justify: "space-between" }, /* @__PURE__ */ React51.createElement(Text30, { size: "sm", style: { color: "#f1f3f5" } }, fund.amount, " ", fund.denom), /* @__PURE__ */ React51.createElement(Button7, { size: "xs", variant: "subtle", onClick: () => handleRemoveFund(index), style: { color: "#ff6b6b" } }, "Remove")))), /* @__PURE__ */ React51.createElement(Group10, { grow: true }, /* @__PURE__ */ React51.createElement(TextInput11, { placeholder: "Amount", value: newFund.amount, onChange: (e) => setNewFund({ ...newFund, amount: e.currentTarget.value }), styles: inputStyles4 }), /* @__PURE__ */ React51.createElement(TextInput11, { placeholder: "Denom (e.g., uixo)", value: newFund.denom, onChange: (e) => setNewFund({ ...newFund, denom: e.currentTarget.value }), styles: inputStyles4 }), /* @__PURE__ */ React51.createElement(
4280
+ ), /* @__PURE__ */ React52.createElement(Stack35, { gap: "xs" }, /* @__PURE__ */ React52.createElement(Text31, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Funds (Optional)"), (data.funds || []).map((fund, index) => /* @__PURE__ */ React52.createElement(Card8, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "#2a2a2a", borderColor: "#333" } }, /* @__PURE__ */ React52.createElement(Group11, { justify: "space-between" }, /* @__PURE__ */ React52.createElement(Text31, { size: "sm", style: { color: "#f1f3f5" } }, fund.amount, " ", fund.denom), /* @__PURE__ */ React52.createElement(Button7, { size: "xs", variant: "subtle", onClick: () => handleRemoveFund(index), style: { color: "#ff6b6b" } }, "Remove")))), /* @__PURE__ */ React52.createElement(Group11, { grow: true }, /* @__PURE__ */ React52.createElement(TextInput11, { placeholder: "Amount", value: newFund.amount, onChange: (e) => setNewFund({ ...newFund, amount: e.currentTarget.value }), styles: inputStyles4 }), /* @__PURE__ */ React52.createElement(TextInput11, { placeholder: "Denom (e.g., uixo)", value: newFund.denom, onChange: (e) => setNewFund({ ...newFund, denom: e.currentTarget.value }), styles: inputStyles4 }), /* @__PURE__ */ React52.createElement(
4197
4281
  Button7,
4198
4282
  {
4199
4283
  size: "sm",
@@ -4208,9 +4292,9 @@ var ExecuteActionForm = ({ data, onChange }) => {
4208
4292
  };
4209
4293
 
4210
4294
  // src/mantine/blocks/proposal/actions-components/forms/CustomActionForm.tsx
4211
- import React52, { useState as useState11, useEffect as useEffect9 } from "react";
4212
- import { Stack as Stack35, Textarea as Textarea4, Alert as Alert5, Text as Text31, Badge as Badge7 } from "@mantine/core";
4213
- import { Group as Group11 } from "@mantine/core";
4295
+ import React53, { useState as useState11, useEffect as useEffect9 } from "react";
4296
+ import { Stack as Stack36, Textarea as Textarea4, Alert as Alert5, Text as Text32, Badge as Badge7 } from "@mantine/core";
4297
+ import { Group as Group12 } from "@mantine/core";
4214
4298
  var inputStyles5 = {
4215
4299
  label: { color: "#adb5bd" },
4216
4300
  input: {
@@ -4246,7 +4330,7 @@ var CustomActionForm = ({ data, onChange }) => {
4246
4330
  return data.message;
4247
4331
  }
4248
4332
  };
4249
- return /* @__PURE__ */ React52.createElement(Stack35, { gap: "md" }, /* @__PURE__ */ React52.createElement(Alert5, { color: "yellow", style: { backgroundColor: "#2a2a2a", borderColor: "#ffd43b" } }, /* @__PURE__ */ React52.createElement(Text31, { size: "sm", style: { color: "#ffd43b" } }, "\u26A0\uFE0F Custom actions require valid JSON messages. Supports both Wasm and Stargate message formats.")), /* @__PURE__ */ React52.createElement("div", null, /* @__PURE__ */ React52.createElement(Group11, { gap: "xs", mb: "xs" }, /* @__PURE__ */ React52.createElement(Text31, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Custom Message (JSON)"), /* @__PURE__ */ React52.createElement(
4333
+ return /* @__PURE__ */ React53.createElement(Stack36, { gap: "md" }, /* @__PURE__ */ React53.createElement(Alert5, { color: "yellow", style: { backgroundColor: "#2a2a2a", borderColor: "#ffd43b" } }, /* @__PURE__ */ React53.createElement(Text32, { size: "sm", style: { color: "#ffd43b" } }, "\u26A0\uFE0F Custom actions require valid JSON messages. Supports both Wasm and Stargate message formats.")), /* @__PURE__ */ React53.createElement("div", null, /* @__PURE__ */ React53.createElement(Group12, { gap: "xs", mb: "xs" }, /* @__PURE__ */ React53.createElement(Text32, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Custom Message (JSON)"), /* @__PURE__ */ React53.createElement(
4250
4334
  Badge7,
4251
4335
  {
4252
4336
  size: "sm",
@@ -4256,7 +4340,7 @@ var CustomActionForm = ({ data, onChange }) => {
4256
4340
  }
4257
4341
  },
4258
4342
  isValid ? "Valid JSON" : "Invalid JSON"
4259
- )), /* @__PURE__ */ React52.createElement(
4343
+ )), /* @__PURE__ */ React53.createElement(
4260
4344
  Textarea4,
4261
4345
  {
4262
4346
  placeholder: `Example Wasm message:
@@ -4289,8 +4373,8 @@ Example Stargate message:
4289
4373
  };
4290
4374
 
4291
4375
  // src/mantine/blocks/proposal/actions-components/forms/AuthzExecActionForm.tsx
4292
- import React53 from "react";
4293
- import { Stack as Stack36, Select as Select5, TextInput as TextInput12, Textarea as Textarea5 } from "@mantine/core";
4376
+ import React54 from "react";
4377
+ import { Stack as Stack37, Select as Select5, TextInput as TextInput12, Textarea as Textarea5 } from "@mantine/core";
4294
4378
  var inputStyles6 = {
4295
4379
  label: { color: "#adb5bd" },
4296
4380
  input: {
@@ -4325,7 +4409,7 @@ var AuthzExecActionForm = ({ data, onChange }) => {
4325
4409
  onChange({ ...data, [field]: value });
4326
4410
  }
4327
4411
  };
4328
- return /* @__PURE__ */ React53.createElement(Stack36, { gap: "md" }, /* @__PURE__ */ React53.createElement(
4412
+ return /* @__PURE__ */ React54.createElement(Stack37, { gap: "md" }, /* @__PURE__ */ React54.createElement(
4329
4413
  Select5,
4330
4414
  {
4331
4415
  label: "Action Type",
@@ -4336,7 +4420,7 @@ var AuthzExecActionForm = ({ data, onChange }) => {
4336
4420
  required: true,
4337
4421
  styles: inputStyles6
4338
4422
  }
4339
- ), data.authzExecActionType === AuthzExecActionTypes.Delegate && /* @__PURE__ */ React53.createElement(
4423
+ ), data.authzExecActionType === AuthzExecActionTypes.Delegate && /* @__PURE__ */ React54.createElement(
4340
4424
  Textarea5,
4341
4425
  {
4342
4426
  label: "Delegate Message (JSON)",
@@ -4346,7 +4430,7 @@ var AuthzExecActionForm = ({ data, onChange }) => {
4346
4430
  minRows: 4,
4347
4431
  styles: inputStyles6
4348
4432
  }
4349
- ), data.authzExecActionType === AuthzExecActionTypes.Undelegate && /* @__PURE__ */ React53.createElement(
4433
+ ), data.authzExecActionType === AuthzExecActionTypes.Undelegate && /* @__PURE__ */ React54.createElement(
4350
4434
  Textarea5,
4351
4435
  {
4352
4436
  label: "Undelegate Message (JSON)",
@@ -4356,7 +4440,7 @@ var AuthzExecActionForm = ({ data, onChange }) => {
4356
4440
  minRows: 4,
4357
4441
  styles: inputStyles6
4358
4442
  }
4359
- ), data.authzExecActionType === AuthzExecActionTypes.Redelegate && /* @__PURE__ */ React53.createElement(
4443
+ ), data.authzExecActionType === AuthzExecActionTypes.Redelegate && /* @__PURE__ */ React54.createElement(
4360
4444
  Textarea5,
4361
4445
  {
4362
4446
  label: "Redelegate Message (JSON)",
@@ -4366,7 +4450,7 @@ var AuthzExecActionForm = ({ data, onChange }) => {
4366
4450
  minRows: 4,
4367
4451
  styles: inputStyles6
4368
4452
  }
4369
- ), data.authzExecActionType === AuthzExecActionTypes.ClaimRewards && /* @__PURE__ */ React53.createElement(
4453
+ ), data.authzExecActionType === AuthzExecActionTypes.ClaimRewards && /* @__PURE__ */ React54.createElement(
4370
4454
  Textarea5,
4371
4455
  {
4372
4456
  label: "Claim Rewards Message (JSON)",
@@ -4376,7 +4460,7 @@ var AuthzExecActionForm = ({ data, onChange }) => {
4376
4460
  minRows: 3,
4377
4461
  styles: inputStyles6
4378
4462
  }
4379
- ), data.authzExecActionType === AuthzExecActionTypes.Custom && /* @__PURE__ */ React53.createElement(
4463
+ ), data.authzExecActionType === AuthzExecActionTypes.Custom && /* @__PURE__ */ React54.createElement(
4380
4464
  TextInput12,
4381
4465
  {
4382
4466
  label: "Custom Message",
@@ -4389,8 +4473,8 @@ var AuthzExecActionForm = ({ data, onChange }) => {
4389
4473
  };
4390
4474
 
4391
4475
  // src/mantine/blocks/proposal/actions-components/forms/AuthzGrantActionForm.tsx
4392
- import React54 from "react";
4393
- import { Stack as Stack37, TextInput as TextInput13 } from "@mantine/core";
4476
+ import React55 from "react";
4477
+ import { Stack as Stack38, TextInput as TextInput13 } from "@mantine/core";
4394
4478
  var inputStyles7 = {
4395
4479
  label: { color: "#adb5bd" },
4396
4480
  input: {
@@ -4403,7 +4487,7 @@ var inputStyles7 = {
4403
4487
  }
4404
4488
  };
4405
4489
  var AuthzGrantActionForm = ({ data, onChange }) => {
4406
- return /* @__PURE__ */ React54.createElement(Stack37, { gap: "md" }, /* @__PURE__ */ React54.createElement(
4490
+ return /* @__PURE__ */ React55.createElement(Stack38, { gap: "md" }, /* @__PURE__ */ React55.createElement(
4407
4491
  TextInput13,
4408
4492
  {
4409
4493
  label: "Type URL",
@@ -4413,7 +4497,7 @@ var AuthzGrantActionForm = ({ data, onChange }) => {
4413
4497
  required: true,
4414
4498
  styles: inputStyles7
4415
4499
  }
4416
- ), /* @__PURE__ */ React54.createElement(
4500
+ ), /* @__PURE__ */ React55.createElement(
4417
4501
  TextInput13,
4418
4502
  {
4419
4503
  label: "Grantee Address",
@@ -4426,7 +4510,7 @@ var AuthzGrantActionForm = ({ data, onChange }) => {
4426
4510
  required: true,
4427
4511
  styles: inputStyles7
4428
4512
  }
4429
- ), /* @__PURE__ */ React54.createElement(
4513
+ ), /* @__PURE__ */ React55.createElement(
4430
4514
  TextInput13,
4431
4515
  {
4432
4516
  label: "Message Type URL",
@@ -4443,8 +4527,8 @@ var AuthzGrantActionForm = ({ data, onChange }) => {
4443
4527
  };
4444
4528
 
4445
4529
  // src/mantine/blocks/proposal/actions-components/forms/BurnNftActionForm.tsx
4446
- import React55 from "react";
4447
- import { Stack as Stack38, TextInput as TextInput14 } from "@mantine/core";
4530
+ import React56 from "react";
4531
+ import { Stack as Stack39, TextInput as TextInput14 } from "@mantine/core";
4448
4532
  var inputStyles8 = {
4449
4533
  label: { color: "#adb5bd" },
4450
4534
  input: {
@@ -4457,7 +4541,7 @@ var inputStyles8 = {
4457
4541
  }
4458
4542
  };
4459
4543
  var BurnNftActionForm = ({ data, onChange }) => {
4460
- return /* @__PURE__ */ React55.createElement(Stack38, { gap: "md" }, /* @__PURE__ */ React55.createElement(
4544
+ return /* @__PURE__ */ React56.createElement(Stack39, { gap: "md" }, /* @__PURE__ */ React56.createElement(
4461
4545
  TextInput14,
4462
4546
  {
4463
4547
  label: "Collection Address",
@@ -4467,12 +4551,12 @@ var BurnNftActionForm = ({ data, onChange }) => {
4467
4551
  required: true,
4468
4552
  styles: inputStyles8
4469
4553
  }
4470
- ), /* @__PURE__ */ React55.createElement(TextInput14, { label: "Token ID", placeholder: "1", value: data.tokenId, onChange: (e) => onChange({ ...data, tokenId: e.currentTarget.value }), required: true, styles: inputStyles8 }));
4554
+ ), /* @__PURE__ */ React56.createElement(TextInput14, { label: "Token ID", placeholder: "1", value: data.tokenId, onChange: (e) => onChange({ ...data, tokenId: e.currentTarget.value }), required: true, styles: inputStyles8 }));
4471
4555
  };
4472
4556
 
4473
4557
  // src/mantine/blocks/proposal/actions-components/forms/TransferNftActionForm.tsx
4474
- import React56 from "react";
4475
- import { Stack as Stack39, TextInput as TextInput15, Checkbox as Checkbox4, Textarea as Textarea6 } from "@mantine/core";
4558
+ import React57 from "react";
4559
+ import { Stack as Stack40, TextInput as TextInput15, Checkbox as Checkbox4, Textarea as Textarea6 } from "@mantine/core";
4476
4560
  var inputStyles9 = {
4477
4561
  label: { color: "#adb5bd" },
4478
4562
  input: {
@@ -4485,7 +4569,7 @@ var inputStyles9 = {
4485
4569
  }
4486
4570
  };
4487
4571
  var TransferNftActionForm = ({ data, onChange }) => {
4488
- return /* @__PURE__ */ React56.createElement(Stack39, { gap: "md" }, /* @__PURE__ */ React56.createElement(
4572
+ return /* @__PURE__ */ React57.createElement(Stack40, { gap: "md" }, /* @__PURE__ */ React57.createElement(
4489
4573
  TextInput15,
4490
4574
  {
4491
4575
  label: "Collection Address",
@@ -4495,7 +4579,7 @@ var TransferNftActionForm = ({ data, onChange }) => {
4495
4579
  required: true,
4496
4580
  styles: inputStyles9
4497
4581
  }
4498
- ), /* @__PURE__ */ React56.createElement(TextInput15, { label: "Token ID", placeholder: "1", value: data.tokenId, onChange: (e) => onChange({ ...data, tokenId: e.currentTarget.value }), required: true, styles: inputStyles9 }), /* @__PURE__ */ React56.createElement(
4582
+ ), /* @__PURE__ */ React57.createElement(TextInput15, { label: "Token ID", placeholder: "1", value: data.tokenId, onChange: (e) => onChange({ ...data, tokenId: e.currentTarget.value }), required: true, styles: inputStyles9 }), /* @__PURE__ */ React57.createElement(
4499
4583
  TextInput15,
4500
4584
  {
4501
4585
  label: "Recipient Address",
@@ -4505,7 +4589,7 @@ var TransferNftActionForm = ({ data, onChange }) => {
4505
4589
  required: true,
4506
4590
  styles: inputStyles9
4507
4591
  }
4508
- ), /* @__PURE__ */ React56.createElement(
4592
+ ), /* @__PURE__ */ React57.createElement(
4509
4593
  Checkbox4,
4510
4594
  {
4511
4595
  label: "Execute Smart Contract",
@@ -4516,7 +4600,7 @@ var TransferNftActionForm = ({ data, onChange }) => {
4516
4600
  input: { backgroundColor: "#2a2a2a", borderColor: "#333" }
4517
4601
  }
4518
4602
  }
4519
- ), data.executeSmartContract && /* @__PURE__ */ React56.createElement(
4603
+ ), data.executeSmartContract && /* @__PURE__ */ React57.createElement(
4520
4604
  Textarea6,
4521
4605
  {
4522
4606
  label: "Smart Contract Message (JSON)",
@@ -4530,8 +4614,8 @@ var TransferNftActionForm = ({ data, onChange }) => {
4530
4614
  };
4531
4615
 
4532
4616
  // src/mantine/blocks/proposal/actions-components/forms/ManageCw721ActionForm.tsx
4533
- import React57 from "react";
4534
- import { Stack as Stack40, TextInput as TextInput16, Radio, Group as Group12 } from "@mantine/core";
4617
+ import React58 from "react";
4618
+ import { Stack as Stack41, TextInput as TextInput16, Radio, Group as Group13 } from "@mantine/core";
4535
4619
  var inputStyles10 = {
4536
4620
  label: { color: "#adb5bd" },
4537
4621
  input: {
@@ -4544,7 +4628,7 @@ var inputStyles10 = {
4544
4628
  }
4545
4629
  };
4546
4630
  var ManageCw721ActionForm = ({ data, onChange }) => {
4547
- return /* @__PURE__ */ React57.createElement(Stack40, { gap: "md" }, /* @__PURE__ */ React57.createElement(Radio.Group, { label: "Action", value: data.adding ? "add" : "remove", onChange: (value) => onChange({ ...data, adding: value === "add" }) }, /* @__PURE__ */ React57.createElement(Group12, { mt: "xs" }, /* @__PURE__ */ React57.createElement(
4631
+ return /* @__PURE__ */ React58.createElement(Stack41, { gap: "md" }, /* @__PURE__ */ React58.createElement(Radio.Group, { label: "Action", value: data.adding ? "add" : "remove", onChange: (value) => onChange({ ...data, adding: value === "add" }) }, /* @__PURE__ */ React58.createElement(Group13, { mt: "xs" }, /* @__PURE__ */ React58.createElement(
4548
4632
  Radio,
4549
4633
  {
4550
4634
  value: "add",
@@ -4554,7 +4638,7 @@ var ManageCw721ActionForm = ({ data, onChange }) => {
4554
4638
  radio: { backgroundColor: "#2a2a2a", borderColor: "#333" }
4555
4639
  }
4556
4640
  }
4557
- ), /* @__PURE__ */ React57.createElement(
4641
+ ), /* @__PURE__ */ React58.createElement(
4558
4642
  Radio,
4559
4643
  {
4560
4644
  value: "remove",
@@ -4564,7 +4648,7 @@ var ManageCw721ActionForm = ({ data, onChange }) => {
4564
4648
  radio: { backgroundColor: "#2a2a2a", borderColor: "#333" }
4565
4649
  }
4566
4650
  }
4567
- ))), /* @__PURE__ */ React57.createElement(
4651
+ ))), /* @__PURE__ */ React58.createElement(
4568
4652
  TextInput16,
4569
4653
  {
4570
4654
  label: "NFT Contract Address",
@@ -4578,8 +4662,8 @@ var ManageCw721ActionForm = ({ data, onChange }) => {
4578
4662
  };
4579
4663
 
4580
4664
  // src/mantine/blocks/proposal/actions-components/forms/InstantiateActionForm.tsx
4581
- import React58, { useState as useState12 } from "react";
4582
- import { Stack as Stack41, TextInput as TextInput17, Textarea as Textarea7, NumberInput as NumberInput5, Button as Button8, Group as Group13, Text as Text32, Card as Card9 } from "@mantine/core";
4665
+ import React59, { useState as useState12 } from "react";
4666
+ import { Stack as Stack42, TextInput as TextInput17, Textarea as Textarea7, NumberInput as NumberInput5, Button as Button8, Group as Group14, Text as Text33, Card as Card9 } from "@mantine/core";
4583
4667
  var inputStyles11 = {
4584
4668
  label: { color: "#adb5bd" },
4585
4669
  input: {
@@ -4616,7 +4700,7 @@ var InstantiateActionForm = ({ data, onChange }) => {
4616
4700
  return data.message;
4617
4701
  }
4618
4702
  };
4619
- return /* @__PURE__ */ React58.createElement(Stack41, { gap: "md" }, /* @__PURE__ */ React58.createElement(
4703
+ return /* @__PURE__ */ React59.createElement(Stack42, { gap: "md" }, /* @__PURE__ */ React59.createElement(
4620
4704
  TextInput17,
4621
4705
  {
4622
4706
  label: "Admin Address",
@@ -4626,7 +4710,7 @@ var InstantiateActionForm = ({ data, onChange }) => {
4626
4710
  required: true,
4627
4711
  styles: inputStyles11
4628
4712
  }
4629
- ), /* @__PURE__ */ React58.createElement(
4713
+ ), /* @__PURE__ */ React59.createElement(
4630
4714
  NumberInput5,
4631
4715
  {
4632
4716
  label: "Code ID",
@@ -4637,7 +4721,7 @@ var InstantiateActionForm = ({ data, onChange }) => {
4637
4721
  required: true,
4638
4722
  styles: inputStyles11
4639
4723
  }
4640
- ), /* @__PURE__ */ React58.createElement(TextInput17, { label: "Label", placeholder: "My Contract", value: data.label, onChange: (e) => onChange({ ...data, label: e.currentTarget.value }), required: true, styles: inputStyles11 }), /* @__PURE__ */ React58.createElement(
4724
+ ), /* @__PURE__ */ React59.createElement(TextInput17, { label: "Label", placeholder: "My Contract", value: data.label, onChange: (e) => onChange({ ...data, label: e.currentTarget.value }), required: true, styles: inputStyles11 }), /* @__PURE__ */ React59.createElement(
4641
4725
  Textarea7,
4642
4726
  {
4643
4727
  label: "Instantiate Message (JSON)",
@@ -4648,7 +4732,7 @@ var InstantiateActionForm = ({ data, onChange }) => {
4648
4732
  required: true,
4649
4733
  styles: inputStyles11
4650
4734
  }
4651
- ), /* @__PURE__ */ React58.createElement(Stack41, { gap: "xs" }, /* @__PURE__ */ React58.createElement(Text32, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Funds (Optional)"), (data.funds || []).map((fund, index) => /* @__PURE__ */ React58.createElement(Card9, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "#2a2a2a", borderColor: "#333" } }, /* @__PURE__ */ React58.createElement(Group13, { justify: "space-between" }, /* @__PURE__ */ React58.createElement(Text32, { size: "sm", style: { color: "#f1f3f5" } }, fund.amount, " ", fund.denom), /* @__PURE__ */ React58.createElement(Button8, { size: "xs", variant: "subtle", onClick: () => handleRemoveFund(index), style: { color: "#ff6b6b" } }, "Remove")))), /* @__PURE__ */ React58.createElement(Group13, { grow: true }, /* @__PURE__ */ React58.createElement(TextInput17, { placeholder: "Amount", value: newFund.amount, onChange: (e) => setNewFund({ ...newFund, amount: e.currentTarget.value }), styles: inputStyles11 }), /* @__PURE__ */ React58.createElement(TextInput17, { placeholder: "Denom (e.g., uixo)", value: newFund.denom, onChange: (e) => setNewFund({ ...newFund, denom: e.currentTarget.value }), styles: inputStyles11 }), /* @__PURE__ */ React58.createElement(
4735
+ ), /* @__PURE__ */ React59.createElement(Stack42, { gap: "xs" }, /* @__PURE__ */ React59.createElement(Text33, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Funds (Optional)"), (data.funds || []).map((fund, index) => /* @__PURE__ */ React59.createElement(Card9, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "#2a2a2a", borderColor: "#333" } }, /* @__PURE__ */ React59.createElement(Group14, { justify: "space-between" }, /* @__PURE__ */ React59.createElement(Text33, { size: "sm", style: { color: "#f1f3f5" } }, fund.amount, " ", fund.denom), /* @__PURE__ */ React59.createElement(Button8, { size: "xs", variant: "subtle", onClick: () => handleRemoveFund(index), style: { color: "#ff6b6b" } }, "Remove")))), /* @__PURE__ */ React59.createElement(Group14, { grow: true }, /* @__PURE__ */ React59.createElement(TextInput17, { placeholder: "Amount", value: newFund.amount, onChange: (e) => setNewFund({ ...newFund, amount: e.currentTarget.value }), styles: inputStyles11 }), /* @__PURE__ */ React59.createElement(TextInput17, { placeholder: "Denom (e.g., uixo)", value: newFund.denom, onChange: (e) => setNewFund({ ...newFund, denom: e.currentTarget.value }), styles: inputStyles11 }), /* @__PURE__ */ React59.createElement(
4652
4736
  Button8,
4653
4737
  {
4654
4738
  size: "sm",
@@ -4663,8 +4747,8 @@ var InstantiateActionForm = ({ data, onChange }) => {
4663
4747
  };
4664
4748
 
4665
4749
  // src/mantine/blocks/proposal/actions-components/forms/MigrateActionForm.tsx
4666
- import React59 from "react";
4667
- import { Stack as Stack42, TextInput as TextInput18, Textarea as Textarea8, NumberInput as NumberInput6 } from "@mantine/core";
4750
+ import React60 from "react";
4751
+ import { Stack as Stack43, TextInput as TextInput18, Textarea as Textarea8, NumberInput as NumberInput6 } from "@mantine/core";
4668
4752
  var inputStyles12 = {
4669
4753
  label: { color: "#adb5bd" },
4670
4754
  input: {
@@ -4685,7 +4769,7 @@ var MigrateActionForm = ({ data, onChange }) => {
4685
4769
  return data.msg;
4686
4770
  }
4687
4771
  };
4688
- return /* @__PURE__ */ React59.createElement(Stack42, { gap: "md" }, /* @__PURE__ */ React59.createElement(
4772
+ return /* @__PURE__ */ React60.createElement(Stack43, { gap: "md" }, /* @__PURE__ */ React60.createElement(
4689
4773
  TextInput18,
4690
4774
  {
4691
4775
  label: "Contract Address",
@@ -4695,7 +4779,7 @@ var MigrateActionForm = ({ data, onChange }) => {
4695
4779
  required: true,
4696
4780
  styles: inputStyles12
4697
4781
  }
4698
- ), /* @__PURE__ */ React59.createElement(
4782
+ ), /* @__PURE__ */ React60.createElement(
4699
4783
  NumberInput6,
4700
4784
  {
4701
4785
  label: "New Code ID",
@@ -4706,7 +4790,7 @@ var MigrateActionForm = ({ data, onChange }) => {
4706
4790
  required: true,
4707
4791
  styles: inputStyles12
4708
4792
  }
4709
- ), /* @__PURE__ */ React59.createElement(
4793
+ ), /* @__PURE__ */ React60.createElement(
4710
4794
  Textarea8,
4711
4795
  {
4712
4796
  label: "Migration Message (JSON)",
@@ -4721,8 +4805,8 @@ var MigrateActionForm = ({ data, onChange }) => {
4721
4805
  };
4722
4806
 
4723
4807
  // src/mantine/blocks/proposal/actions-components/forms/UpdateAdminActionForm.tsx
4724
- import React60 from "react";
4725
- import { Stack as Stack43, TextInput as TextInput19 } from "@mantine/core";
4808
+ import React61 from "react";
4809
+ import { Stack as Stack44, TextInput as TextInput19 } from "@mantine/core";
4726
4810
  var inputStyles13 = {
4727
4811
  label: { color: "#adb5bd" },
4728
4812
  input: {
@@ -4735,7 +4819,7 @@ var inputStyles13 = {
4735
4819
  }
4736
4820
  };
4737
4821
  var UpdateAdminActionForm = ({ data, onChange }) => {
4738
- return /* @__PURE__ */ React60.createElement(Stack43, { gap: "md" }, /* @__PURE__ */ React60.createElement(
4822
+ return /* @__PURE__ */ React61.createElement(Stack44, { gap: "md" }, /* @__PURE__ */ React61.createElement(
4739
4823
  TextInput19,
4740
4824
  {
4741
4825
  label: "Contract Address",
@@ -4745,7 +4829,7 @@ var UpdateAdminActionForm = ({ data, onChange }) => {
4745
4829
  required: true,
4746
4830
  styles: inputStyles13
4747
4831
  }
4748
- ), /* @__PURE__ */ React60.createElement(
4832
+ ), /* @__PURE__ */ React61.createElement(
4749
4833
  TextInput19,
4750
4834
  {
4751
4835
  label: "New Admin Address",
@@ -4759,8 +4843,8 @@ var UpdateAdminActionForm = ({ data, onChange }) => {
4759
4843
  };
4760
4844
 
4761
4845
  // src/mantine/blocks/proposal/actions-components/forms/ManageCw20ActionForm.tsx
4762
- import React61 from "react";
4763
- import { Stack as Stack44, TextInput as TextInput20, Radio as Radio2, Group as Group14 } from "@mantine/core";
4846
+ import React62 from "react";
4847
+ import { Stack as Stack45, TextInput as TextInput20, Radio as Radio2, Group as Group15 } from "@mantine/core";
4764
4848
  var inputStyles14 = {
4765
4849
  label: { color: "#adb5bd" },
4766
4850
  input: {
@@ -4773,7 +4857,7 @@ var inputStyles14 = {
4773
4857
  }
4774
4858
  };
4775
4859
  var ManageCw20ActionForm = ({ data, onChange }) => {
4776
- return /* @__PURE__ */ React61.createElement(Stack44, { gap: "md" }, /* @__PURE__ */ React61.createElement(Radio2.Group, { label: "Action", value: data.adding ? "add" : "remove", onChange: (value) => onChange({ ...data, adding: value === "add" }) }, /* @__PURE__ */ React61.createElement(Group14, { mt: "xs" }, /* @__PURE__ */ React61.createElement(
4860
+ return /* @__PURE__ */ React62.createElement(Stack45, { gap: "md" }, /* @__PURE__ */ React62.createElement(Radio2.Group, { label: "Action", value: data.adding ? "add" : "remove", onChange: (value) => onChange({ ...data, adding: value === "add" }) }, /* @__PURE__ */ React62.createElement(Group15, { mt: "xs" }, /* @__PURE__ */ React62.createElement(
4777
4861
  Radio2,
4778
4862
  {
4779
4863
  value: "add",
@@ -4783,7 +4867,7 @@ var ManageCw20ActionForm = ({ data, onChange }) => {
4783
4867
  radio: { backgroundColor: "#2a2a2a", borderColor: "#333" }
4784
4868
  }
4785
4869
  }
4786
- ), /* @__PURE__ */ React61.createElement(
4870
+ ), /* @__PURE__ */ React62.createElement(
4787
4871
  Radio2,
4788
4872
  {
4789
4873
  value: "remove",
@@ -4793,7 +4877,7 @@ var ManageCw20ActionForm = ({ data, onChange }) => {
4793
4877
  radio: { backgroundColor: "#2a2a2a", borderColor: "#333" }
4794
4878
  }
4795
4879
  }
4796
- ))), /* @__PURE__ */ React61.createElement(
4880
+ ))), /* @__PURE__ */ React62.createElement(
4797
4881
  TextInput20,
4798
4882
  {
4799
4883
  label: "Token Contract Address",
@@ -4807,8 +4891,8 @@ var ManageCw20ActionForm = ({ data, onChange }) => {
4807
4891
  };
4808
4892
 
4809
4893
  // src/mantine/blocks/proposal/actions-components/forms/ManageSubDaosActionForm.tsx
4810
- import React62, { useState as useState13 } from "react";
4811
- import { Stack as Stack45, TextInput as TextInput21, Button as Button9, Group as Group15, Text as Text33, Card as Card10, Textarea as Textarea9 } from "@mantine/core";
4894
+ import React63, { useState as useState13 } from "react";
4895
+ import { Stack as Stack46, TextInput as TextInput21, Button as Button9, Group as Group16, Text as Text34, Card as Card10, Textarea as Textarea9 } from "@mantine/core";
4812
4896
  var inputStyles15 = {
4813
4897
  label: { color: "#adb5bd" },
4814
4898
  input: {
@@ -4853,7 +4937,7 @@ var ManageSubDaosActionForm = ({ data, onChange }) => {
4853
4937
  toRemove: (data.toRemove || []).filter((_, i) => i !== index)
4854
4938
  });
4855
4939
  };
4856
- return /* @__PURE__ */ React62.createElement(Stack45, { gap: "md" }, /* @__PURE__ */ React62.createElement(Stack45, { gap: "xs" }, /* @__PURE__ */ React62.createElement(Text33, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "SubDAOs to Add"), (data.toAdd || []).map((subDao, index) => /* @__PURE__ */ React62.createElement(Card10, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "#2a2a2a", borderColor: "#333" } }, /* @__PURE__ */ React62.createElement(Stack45, { gap: "xs" }, /* @__PURE__ */ React62.createElement(Group15, { justify: "space-between" }, /* @__PURE__ */ React62.createElement(Text33, { size: "sm", style: { color: "#f1f3f5" } }, subDao.addr), /* @__PURE__ */ React62.createElement(Button9, { size: "xs", variant: "subtle", onClick: () => handleRemoveFromAddList(index), style: { color: "#ff6b6b" } }, "Remove")), subDao.charter && /* @__PURE__ */ React62.createElement(Text33, { size: "xs", style: { color: "#adb5bd" } }, "Charter: ", subDao.charter)))), /* @__PURE__ */ React62.createElement(Stack45, { gap: "xs" }, /* @__PURE__ */ React62.createElement(TextInput21, { placeholder: "SubDAO Address", value: newSubDao.addr, onChange: (e) => setNewSubDao({ ...newSubDao, addr: e.currentTarget.value }), styles: inputStyles15 }), /* @__PURE__ */ React62.createElement(
4940
+ return /* @__PURE__ */ React63.createElement(Stack46, { gap: "md" }, /* @__PURE__ */ React63.createElement(Stack46, { gap: "xs" }, /* @__PURE__ */ React63.createElement(Text34, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "SubDAOs to Add"), (data.toAdd || []).map((subDao, index) => /* @__PURE__ */ React63.createElement(Card10, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "#2a2a2a", borderColor: "#333" } }, /* @__PURE__ */ React63.createElement(Stack46, { gap: "xs" }, /* @__PURE__ */ React63.createElement(Group16, { justify: "space-between" }, /* @__PURE__ */ React63.createElement(Text34, { size: "sm", style: { color: "#f1f3f5" } }, subDao.addr), /* @__PURE__ */ React63.createElement(Button9, { size: "xs", variant: "subtle", onClick: () => handleRemoveFromAddList(index), style: { color: "#ff6b6b" } }, "Remove")), subDao.charter && /* @__PURE__ */ React63.createElement(Text34, { size: "xs", style: { color: "#adb5bd" } }, "Charter: ", subDao.charter)))), /* @__PURE__ */ React63.createElement(Stack46, { gap: "xs" }, /* @__PURE__ */ React63.createElement(TextInput21, { placeholder: "SubDAO Address", value: newSubDao.addr, onChange: (e) => setNewSubDao({ ...newSubDao, addr: e.currentTarget.value }), styles: inputStyles15 }), /* @__PURE__ */ React63.createElement(
4857
4941
  Textarea9,
4858
4942
  {
4859
4943
  placeholder: "Charter (optional)",
@@ -4862,7 +4946,7 @@ var ManageSubDaosActionForm = ({ data, onChange }) => {
4862
4946
  minRows: 2,
4863
4947
  styles: inputStyles15
4864
4948
  }
4865
- ), /* @__PURE__ */ React62.createElement(
4949
+ ), /* @__PURE__ */ React63.createElement(
4866
4950
  Button9,
4867
4951
  {
4868
4952
  size: "sm",
@@ -4873,7 +4957,7 @@ var ManageSubDaosActionForm = ({ data, onChange }) => {
4873
4957
  }
4874
4958
  },
4875
4959
  "Add SubDAO"
4876
- ))), /* @__PURE__ */ React62.createElement(Stack45, { gap: "xs" }, /* @__PURE__ */ React62.createElement(Text33, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "SubDAOs to Remove"), (data.toRemove || []).map((subDao, index) => /* @__PURE__ */ React62.createElement(Card10, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "#2a2a2a", borderColor: "#333" } }, /* @__PURE__ */ React62.createElement(Group15, { justify: "space-between" }, /* @__PURE__ */ React62.createElement(Text33, { size: "sm", style: { color: "#f1f3f5" } }, subDao.address), /* @__PURE__ */ React62.createElement(Button9, { size: "xs", variant: "subtle", onClick: () => handleRemoveFromRemoveList(index), style: { color: "#ff6b6b" } }, "Remove")))), /* @__PURE__ */ React62.createElement(Group15, { grow: true }, /* @__PURE__ */ React62.createElement(TextInput21, { placeholder: "SubDAO Address to Remove", value: newRemoveAddress, onChange: (e) => setNewRemoveAddress(e.currentTarget.value), styles: inputStyles15 }), /* @__PURE__ */ React62.createElement(
4960
+ ))), /* @__PURE__ */ React63.createElement(Stack46, { gap: "xs" }, /* @__PURE__ */ React63.createElement(Text34, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "SubDAOs to Remove"), (data.toRemove || []).map((subDao, index) => /* @__PURE__ */ React63.createElement(Card10, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "#2a2a2a", borderColor: "#333" } }, /* @__PURE__ */ React63.createElement(Group16, { justify: "space-between" }, /* @__PURE__ */ React63.createElement(Text34, { size: "sm", style: { color: "#f1f3f5" } }, subDao.address), /* @__PURE__ */ React63.createElement(Button9, { size: "xs", variant: "subtle", onClick: () => handleRemoveFromRemoveList(index), style: { color: "#ff6b6b" } }, "Remove")))), /* @__PURE__ */ React63.createElement(Group16, { grow: true }, /* @__PURE__ */ React63.createElement(TextInput21, { placeholder: "SubDAO Address to Remove", value: newRemoveAddress, onChange: (e) => setNewRemoveAddress(e.currentTarget.value), styles: inputStyles15 }), /* @__PURE__ */ React63.createElement(
4877
4961
  Button9,
4878
4962
  {
4879
4963
  size: "sm",
@@ -4888,8 +4972,8 @@ var ManageSubDaosActionForm = ({ data, onChange }) => {
4888
4972
  };
4889
4973
 
4890
4974
  // src/mantine/blocks/proposal/actions-components/forms/UpdateInfoActionForm.tsx
4891
- import React63 from "react";
4892
- import { Stack as Stack46, TextInput as TextInput22, Textarea as Textarea10, Checkbox as Checkbox5 } from "@mantine/core";
4975
+ import React64 from "react";
4976
+ import { Stack as Stack47, TextInput as TextInput22, Textarea as Textarea10, Checkbox as Checkbox5 } from "@mantine/core";
4893
4977
  var inputStyles16 = {
4894
4978
  label: { color: "#adb5bd" },
4895
4979
  input: {
@@ -4902,7 +4986,7 @@ var inputStyles16 = {
4902
4986
  }
4903
4987
  };
4904
4988
  var UpdateInfoActionForm = ({ data, onChange }) => {
4905
- return /* @__PURE__ */ React63.createElement(Stack46, { gap: "md" }, /* @__PURE__ */ React63.createElement(TextInput22, { label: "DAO Name", placeholder: "My DAO", value: data.name, onChange: (e) => onChange({ ...data, name: e.currentTarget.value }), required: true, styles: inputStyles16 }), /* @__PURE__ */ React63.createElement(
4989
+ return /* @__PURE__ */ React64.createElement(Stack47, { gap: "md" }, /* @__PURE__ */ React64.createElement(TextInput22, { label: "DAO Name", placeholder: "My DAO", value: data.name, onChange: (e) => onChange({ ...data, name: e.currentTarget.value }), required: true, styles: inputStyles16 }), /* @__PURE__ */ React64.createElement(
4906
4990
  Textarea10,
4907
4991
  {
4908
4992
  label: "Description",
@@ -4912,7 +4996,7 @@ var UpdateInfoActionForm = ({ data, onChange }) => {
4912
4996
  minRows: 3,
4913
4997
  styles: inputStyles16
4914
4998
  }
4915
- ), /* @__PURE__ */ React63.createElement(
4999
+ ), /* @__PURE__ */ React64.createElement(
4916
5000
  TextInput22,
4917
5001
  {
4918
5002
  label: "Image URL (Optional)",
@@ -4921,7 +5005,7 @@ var UpdateInfoActionForm = ({ data, onChange }) => {
4921
5005
  onChange: (e) => onChange({ ...data, image_url: e.currentTarget.value || null }),
4922
5006
  styles: inputStyles16
4923
5007
  }
4924
- ), /* @__PURE__ */ React63.createElement(
5008
+ ), /* @__PURE__ */ React64.createElement(
4925
5009
  TextInput22,
4926
5010
  {
4927
5011
  label: "DAO URI (Optional)",
@@ -4930,7 +5014,7 @@ var UpdateInfoActionForm = ({ data, onChange }) => {
4930
5014
  onChange: (e) => onChange({ ...data, dao_uri: e.currentTarget.value || null }),
4931
5015
  styles: inputStyles16
4932
5016
  }
4933
- ), /* @__PURE__ */ React63.createElement(
5017
+ ), /* @__PURE__ */ React64.createElement(
4934
5018
  Checkbox5,
4935
5019
  {
4936
5020
  label: "Automatically add CW20 tokens",
@@ -4941,7 +5025,7 @@ var UpdateInfoActionForm = ({ data, onChange }) => {
4941
5025
  input: { backgroundColor: "#2a2a2a", borderColor: "#333" }
4942
5026
  }
4943
5027
  }
4944
- ), /* @__PURE__ */ React63.createElement(
5028
+ ), /* @__PURE__ */ React64.createElement(
4945
5029
  Checkbox5,
4946
5030
  {
4947
5031
  label: "Automatically add CW721 NFTs",
@@ -4956,8 +5040,8 @@ var UpdateInfoActionForm = ({ data, onChange }) => {
4956
5040
  };
4957
5041
 
4958
5042
  // src/mantine/blocks/proposal/actions-components/forms/ManageStorageItemsActionForm.tsx
4959
- import React64 from "react";
4960
- import { Stack as Stack47, TextInput as TextInput23, Radio as Radio3, Group as Group16, Textarea as Textarea11 } from "@mantine/core";
5043
+ import React65 from "react";
5044
+ import { Stack as Stack48, TextInput as TextInput23, Radio as Radio3, Group as Group17, Textarea as Textarea11 } from "@mantine/core";
4961
5045
  var inputStyles17 = {
4962
5046
  label: { color: "#adb5bd" },
4963
5047
  input: {
@@ -4970,7 +5054,7 @@ var inputStyles17 = {
4970
5054
  }
4971
5055
  };
4972
5056
  var ManageStorageItemsActionForm = ({ data, onChange }) => {
4973
- return /* @__PURE__ */ React64.createElement(Stack47, { gap: "md" }, /* @__PURE__ */ React64.createElement(Radio3.Group, { label: "Action", value: data.setting ? "set" : "remove", onChange: (value) => onChange({ ...data, setting: value === "set" }) }, /* @__PURE__ */ React64.createElement(Group16, { mt: "xs" }, /* @__PURE__ */ React64.createElement(
5057
+ return /* @__PURE__ */ React65.createElement(Stack48, { gap: "md" }, /* @__PURE__ */ React65.createElement(Radio3.Group, { label: "Action", value: data.setting ? "set" : "remove", onChange: (value) => onChange({ ...data, setting: value === "set" }) }, /* @__PURE__ */ React65.createElement(Group17, { mt: "xs" }, /* @__PURE__ */ React65.createElement(
4974
5058
  Radio3,
4975
5059
  {
4976
5060
  value: "set",
@@ -4980,7 +5064,7 @@ var ManageStorageItemsActionForm = ({ data, onChange }) => {
4980
5064
  radio: { backgroundColor: "#2a2a2a", borderColor: "#333" }
4981
5065
  }
4982
5066
  }
4983
- ), /* @__PURE__ */ React64.createElement(
5067
+ ), /* @__PURE__ */ React65.createElement(
4984
5068
  Radio3,
4985
5069
  {
4986
5070
  value: "remove",
@@ -4990,7 +5074,7 @@ var ManageStorageItemsActionForm = ({ data, onChange }) => {
4990
5074
  radio: { backgroundColor: "#2a2a2a", borderColor: "#333" }
4991
5075
  }
4992
5076
  }
4993
- ))), /* @__PURE__ */ React64.createElement(TextInput23, { label: "Storage Key", placeholder: "config_key", value: data.key, onChange: (e) => onChange({ ...data, key: e.currentTarget.value }), required: true, styles: inputStyles17 }), data.setting && /* @__PURE__ */ React64.createElement(
5077
+ ))), /* @__PURE__ */ React65.createElement(TextInput23, { label: "Storage Key", placeholder: "config_key", value: data.key, onChange: (e) => onChange({ ...data, key: e.currentTarget.value }), required: true, styles: inputStyles17 }), data.setting && /* @__PURE__ */ React65.createElement(
4994
5078
  Textarea11,
4995
5079
  {
4996
5080
  label: "Storage Value",
@@ -5005,8 +5089,8 @@ var ManageStorageItemsActionForm = ({ data, onChange }) => {
5005
5089
  };
5006
5090
 
5007
5091
  // src/mantine/blocks/proposal/actions-components/forms/DaoAdminExecActionForm.tsx
5008
- import React65, { useState as useState14 } from "react";
5009
- import { Stack as Stack48, TextInput as TextInput24, Button as Button10, Group as Group17, Text as Text34, Card as Card11, Textarea as Textarea12 } from "@mantine/core";
5092
+ import React66, { useState as useState14 } from "react";
5093
+ import { Stack as Stack49, TextInput as TextInput24, Button as Button10, Group as Group18, Text as Text35, Card as Card11, Textarea as Textarea12 } from "@mantine/core";
5010
5094
  var inputStyles18 = {
5011
5095
  label: { color: "#adb5bd" },
5012
5096
  input: {
@@ -5039,7 +5123,7 @@ var DaoAdminExecActionForm = ({ data, onChange }) => {
5039
5123
  msgs: (data.msgs || []).filter((_, i) => i !== index)
5040
5124
  });
5041
5125
  };
5042
- return /* @__PURE__ */ React65.createElement(Stack48, { gap: "md" }, /* @__PURE__ */ React65.createElement(
5126
+ return /* @__PURE__ */ React66.createElement(Stack49, { gap: "md" }, /* @__PURE__ */ React66.createElement(
5043
5127
  TextInput24,
5044
5128
  {
5045
5129
  label: "Core Address",
@@ -5049,7 +5133,7 @@ var DaoAdminExecActionForm = ({ data, onChange }) => {
5049
5133
  required: true,
5050
5134
  styles: inputStyles18
5051
5135
  }
5052
- ), /* @__PURE__ */ React65.createElement(Stack48, { gap: "xs" }, /* @__PURE__ */ React65.createElement(Text34, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Messages to Execute"), (data.msgs || []).map((msg, index) => /* @__PURE__ */ React65.createElement(Card11, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "#2a2a2a", borderColor: "#333" } }, /* @__PURE__ */ React65.createElement(Group17, { justify: "space-between" }, /* @__PURE__ */ React65.createElement(Text34, { size: "sm", style: { color: "#f1f3f5" } }, "Message ", index + 1), /* @__PURE__ */ React65.createElement(Button10, { size: "xs", variant: "subtle", onClick: () => handleRemoveMessage(index), style: { color: "#ff6b6b" } }, "Remove")), /* @__PURE__ */ React65.createElement(Text34, { size: "xs", style: { color: "#adb5bd", fontFamily: "monospace" } }, JSON.stringify(msg, null, 2).substring(0, 100), "..."))), /* @__PURE__ */ React65.createElement(
5136
+ ), /* @__PURE__ */ React66.createElement(Stack49, { gap: "xs" }, /* @__PURE__ */ React66.createElement(Text35, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Messages to Execute"), (data.msgs || []).map((msg, index) => /* @__PURE__ */ React66.createElement(Card11, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "#2a2a2a", borderColor: "#333" } }, /* @__PURE__ */ React66.createElement(Group18, { justify: "space-between" }, /* @__PURE__ */ React66.createElement(Text35, { size: "sm", style: { color: "#f1f3f5" } }, "Message ", index + 1), /* @__PURE__ */ React66.createElement(Button10, { size: "xs", variant: "subtle", onClick: () => handleRemoveMessage(index), style: { color: "#ff6b6b" } }, "Remove")), /* @__PURE__ */ React66.createElement(Text35, { size: "xs", style: { color: "#adb5bd", fontFamily: "monospace" } }, JSON.stringify(msg, null, 2).substring(0, 100), "..."))), /* @__PURE__ */ React66.createElement(
5053
5137
  Textarea12,
5054
5138
  {
5055
5139
  placeholder: 'Add cosmos message as JSON:\\n{"bank": {"send": {"to_address": "ixo1...", "amount": [{"denom": "uixo", "amount": "1000"}]}}}',
@@ -5058,7 +5142,7 @@ var DaoAdminExecActionForm = ({ data, onChange }) => {
5058
5142
  minRows: 4,
5059
5143
  styles: inputStyles18
5060
5144
  }
5061
- ), /* @__PURE__ */ React65.createElement(
5145
+ ), /* @__PURE__ */ React66.createElement(
5062
5146
  Button10,
5063
5147
  {
5064
5148
  size: "sm",
@@ -5073,8 +5157,8 @@ var DaoAdminExecActionForm = ({ data, onChange }) => {
5073
5157
  };
5074
5158
 
5075
5159
  // src/mantine/blocks/proposal/actions-components/forms/AcceptToMarketplaceActionForm.tsx
5076
- import React66 from "react";
5077
- import { Stack as Stack49, TextInput as TextInput25 } from "@mantine/core";
5160
+ import React67 from "react";
5161
+ import { Stack as Stack50, TextInput as TextInput25 } from "@mantine/core";
5078
5162
  var inputStyles19 = {
5079
5163
  label: { color: "#adb5bd" },
5080
5164
  input: {
@@ -5087,7 +5171,7 @@ var inputStyles19 = {
5087
5171
  }
5088
5172
  };
5089
5173
  var AcceptToMarketplaceActionForm = ({ data, onChange }) => {
5090
- return /* @__PURE__ */ React66.createElement(Stack49, { gap: "md" }, /* @__PURE__ */ React66.createElement(TextInput25, { label: "DID", placeholder: "did:ixo:...", value: data.did, onChange: (e) => onChange({ ...data, did: e.currentTarget.value }), required: true, styles: inputStyles19 }), /* @__PURE__ */ React66.createElement(
5174
+ return /* @__PURE__ */ React67.createElement(Stack50, { gap: "md" }, /* @__PURE__ */ React67.createElement(TextInput25, { label: "DID", placeholder: "did:ixo:...", value: data.did, onChange: (e) => onChange({ ...data, did: e.currentTarget.value }), required: true, styles: inputStyles19 }), /* @__PURE__ */ React67.createElement(
5091
5175
  TextInput25,
5092
5176
  {
5093
5177
  label: "Relayer Node DID",
@@ -5097,7 +5181,7 @@ var AcceptToMarketplaceActionForm = ({ data, onChange }) => {
5097
5181
  required: true,
5098
5182
  styles: inputStyles19
5099
5183
  }
5100
- ), /* @__PURE__ */ React66.createElement(
5184
+ ), /* @__PURE__ */ React67.createElement(
5101
5185
  TextInput25,
5102
5186
  {
5103
5187
  label: "Relayer Node Address",
@@ -5111,8 +5195,8 @@ var AcceptToMarketplaceActionForm = ({ data, onChange }) => {
5111
5195
  };
5112
5196
 
5113
5197
  // src/mantine/blocks/proposal/actions-components/forms/CreateEntityActionForm.tsx
5114
- import React67 from "react";
5115
- import { Stack as Stack50, Textarea as Textarea13, Alert as Alert6, Text as Text35 } from "@mantine/core";
5198
+ import React68 from "react";
5199
+ import { Stack as Stack51, Textarea as Textarea13, Alert as Alert6, Text as Text36 } from "@mantine/core";
5116
5200
  var inputStyles20 = {
5117
5201
  label: { color: "#adb5bd" },
5118
5202
  input: {
@@ -5132,7 +5216,7 @@ var CreateEntityActionForm = ({ data, onChange }) => {
5132
5216
  } catch {
5133
5217
  }
5134
5218
  };
5135
- return /* @__PURE__ */ React67.createElement(Stack50, { gap: "md" }, /* @__PURE__ */ React67.createElement(Alert6, { color: "blue", style: { backgroundColor: "#2a2a2a", borderColor: "#4dabf7" } }, /* @__PURE__ */ React67.createElement(Text35, { size: "sm", style: { color: "#4dabf7" } }, "This is a complex entity creation action. Please provide the complete entity data as JSON.")), /* @__PURE__ */ React67.createElement(
5219
+ return /* @__PURE__ */ React68.createElement(Stack51, { gap: "md" }, /* @__PURE__ */ React68.createElement(Alert6, { color: "blue", style: { backgroundColor: "#2a2a2a", borderColor: "#4dabf7" } }, /* @__PURE__ */ React68.createElement(Text36, { size: "sm", style: { color: "#4dabf7" } }, "This is a complex entity creation action. Please provide the complete entity data as JSON.")), /* @__PURE__ */ React68.createElement(
5136
5220
  Textarea13,
5137
5221
  {
5138
5222
  label: "Entity Data (JSON)",
@@ -5147,8 +5231,8 @@ var CreateEntityActionForm = ({ data, onChange }) => {
5147
5231
  };
5148
5232
 
5149
5233
  // src/mantine/blocks/proposal/actions-components/forms/UpdateVotingConfigActionForm.tsx
5150
- import React68 from "react";
5151
- import { Stack as Stack51, Checkbox as Checkbox6, Select as Select6, NumberInput as NumberInput7, Group as Group18 } from "@mantine/core";
5234
+ import React69 from "react";
5235
+ import { Stack as Stack52, Checkbox as Checkbox6, Select as Select6, NumberInput as NumberInput7, Group as Group19 } from "@mantine/core";
5152
5236
  var inputStyles21 = {
5153
5237
  label: { color: "#adb5bd" },
5154
5238
  input: {
@@ -5161,7 +5245,7 @@ var inputStyles21 = {
5161
5245
  }
5162
5246
  };
5163
5247
  var UpdateVotingConfigActionForm = ({ data, onChange }) => {
5164
- return /* @__PURE__ */ React68.createElement(Stack51, { gap: "md" }, /* @__PURE__ */ React68.createElement(
5248
+ return /* @__PURE__ */ React69.createElement(Stack52, { gap: "md" }, /* @__PURE__ */ React69.createElement(
5165
5249
  Checkbox6,
5166
5250
  {
5167
5251
  label: "Only members can execute",
@@ -5172,7 +5256,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
5172
5256
  input: { backgroundColor: "#2a2a2a", borderColor: "#333" }
5173
5257
  }
5174
5258
  }
5175
- ), /* @__PURE__ */ React68.createElement(
5259
+ ), /* @__PURE__ */ React69.createElement(
5176
5260
  Select6,
5177
5261
  {
5178
5262
  label: "Threshold Type",
@@ -5184,7 +5268,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
5184
5268
  ],
5185
5269
  styles: inputStyles21
5186
5270
  }
5187
- ), data.thresholdType === "%" && /* @__PURE__ */ React68.createElement(
5271
+ ), data.thresholdType === "%" && /* @__PURE__ */ React69.createElement(
5188
5272
  NumberInput7,
5189
5273
  {
5190
5274
  label: "Threshold Percentage",
@@ -5196,7 +5280,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
5196
5280
  suffix: "%",
5197
5281
  styles: inputStyles21
5198
5282
  }
5199
- ), /* @__PURE__ */ React68.createElement(
5283
+ ), /* @__PURE__ */ React69.createElement(
5200
5284
  Checkbox6,
5201
5285
  {
5202
5286
  label: "Enable Quorum",
@@ -5207,7 +5291,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
5207
5291
  input: { backgroundColor: "#2a2a2a", borderColor: "#333" }
5208
5292
  }
5209
5293
  }
5210
- ), data.quorumEnabled && /* @__PURE__ */ React68.createElement(React68.Fragment, null, /* @__PURE__ */ React68.createElement(
5294
+ ), data.quorumEnabled && /* @__PURE__ */ React69.createElement(React69.Fragment, null, /* @__PURE__ */ React69.createElement(
5211
5295
  Select6,
5212
5296
  {
5213
5297
  label: "Quorum Type",
@@ -5219,7 +5303,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
5219
5303
  ],
5220
5304
  styles: inputStyles21
5221
5305
  }
5222
- ), data.quorumType === "%" && /* @__PURE__ */ React68.createElement(
5306
+ ), data.quorumType === "%" && /* @__PURE__ */ React69.createElement(
5223
5307
  NumberInput7,
5224
5308
  {
5225
5309
  label: "Quorum Percentage",
@@ -5231,7 +5315,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
5231
5315
  suffix: "%",
5232
5316
  styles: inputStyles21
5233
5317
  }
5234
- )), /* @__PURE__ */ React68.createElement(Group18, { grow: true }, /* @__PURE__ */ React68.createElement(
5318
+ )), /* @__PURE__ */ React69.createElement(Group19, { grow: true }, /* @__PURE__ */ React69.createElement(
5235
5319
  NumberInput7,
5236
5320
  {
5237
5321
  label: "Proposal Duration",
@@ -5241,7 +5325,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
5241
5325
  min: 1,
5242
5326
  styles: inputStyles21
5243
5327
  }
5244
- ), /* @__PURE__ */ React68.createElement(
5328
+ ), /* @__PURE__ */ React69.createElement(
5245
5329
  Select6,
5246
5330
  {
5247
5331
  label: "Duration Units",
@@ -5255,7 +5339,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
5255
5339
  ],
5256
5340
  styles: inputStyles21
5257
5341
  }
5258
- )), /* @__PURE__ */ React68.createElement(
5342
+ )), /* @__PURE__ */ React69.createElement(
5259
5343
  Checkbox6,
5260
5344
  {
5261
5345
  label: "Allow revoting",
@@ -5270,8 +5354,8 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
5270
5354
  };
5271
5355
 
5272
5356
  // src/mantine/blocks/proposal/actions-components/forms/UpdatePreProposeConfigActionForm.tsx
5273
- import React69 from "react";
5274
- import { Stack as Stack52, Checkbox as Checkbox7, TextInput as TextInput26, Select as Select7, Textarea as Textarea14 } from "@mantine/core";
5357
+ import React70 from "react";
5358
+ import { Stack as Stack53, Checkbox as Checkbox7, TextInput as TextInput26, Select as Select7, Textarea as Textarea14 } from "@mantine/core";
5275
5359
  var inputStyles22 = {
5276
5360
  label: { color: "#adb5bd" },
5277
5361
  input: {
@@ -5284,7 +5368,7 @@ var inputStyles22 = {
5284
5368
  }
5285
5369
  };
5286
5370
  var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
5287
- return /* @__PURE__ */ React69.createElement(Stack52, { gap: "md" }, /* @__PURE__ */ React69.createElement(
5371
+ return /* @__PURE__ */ React70.createElement(Stack53, { gap: "md" }, /* @__PURE__ */ React70.createElement(
5288
5372
  Checkbox7,
5289
5373
  {
5290
5374
  label: "Anyone can propose",
@@ -5295,7 +5379,7 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
5295
5379
  input: { backgroundColor: "#2a2a2a", borderColor: "#333" }
5296
5380
  }
5297
5381
  }
5298
- ), /* @__PURE__ */ React69.createElement(
5382
+ ), /* @__PURE__ */ React70.createElement(
5299
5383
  Checkbox7,
5300
5384
  {
5301
5385
  label: "Deposit required",
@@ -5306,7 +5390,7 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
5306
5390
  input: { backgroundColor: "#2a2a2a", borderColor: "#333" }
5307
5391
  }
5308
5392
  }
5309
- ), data.depositRequired && /* @__PURE__ */ React69.createElement(React69.Fragment, null, /* @__PURE__ */ React69.createElement(
5393
+ ), data.depositRequired && /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(
5310
5394
  TextInput26,
5311
5395
  {
5312
5396
  label: "Deposit Amount",
@@ -5319,7 +5403,7 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
5319
5403
  required: true,
5320
5404
  styles: inputStyles22
5321
5405
  }
5322
- ), /* @__PURE__ */ React69.createElement(
5406
+ ), /* @__PURE__ */ React70.createElement(
5323
5407
  Select7,
5324
5408
  {
5325
5409
  label: "Deposit Type",
@@ -5335,7 +5419,7 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
5335
5419
  ],
5336
5420
  styles: inputStyles22
5337
5421
  }
5338
- ), /* @__PURE__ */ React69.createElement(
5422
+ ), /* @__PURE__ */ React70.createElement(
5339
5423
  TextInput26,
5340
5424
  {
5341
5425
  label: "Token Denomination or Address",
@@ -5348,7 +5432,7 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
5348
5432
  required: true,
5349
5433
  styles: inputStyles22
5350
5434
  }
5351
- ), /* @__PURE__ */ React69.createElement(
5435
+ ), /* @__PURE__ */ React70.createElement(
5352
5436
  TextInput26,
5353
5437
  {
5354
5438
  label: "Refund Policy",
@@ -5361,7 +5445,7 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
5361
5445
  required: true,
5362
5446
  styles: inputStyles22
5363
5447
  }
5364
- ), data.depositInfo.type !== "native" && /* @__PURE__ */ React69.createElement(
5448
+ ), data.depositInfo.type !== "native" && /* @__PURE__ */ React70.createElement(
5365
5449
  Textarea14,
5366
5450
  {
5367
5451
  label: "Token Configuration (JSON)",
@@ -5384,8 +5468,8 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
5384
5468
  };
5385
5469
 
5386
5470
  // src/mantine/blocks/proposal/actions-components/forms/GovernanceVoteActionForm.tsx
5387
- import React70 from "react";
5388
- import { Stack as Stack53, TextInput as TextInput27, Select as Select8 } from "@mantine/core";
5471
+ import React71 from "react";
5472
+ import { Stack as Stack54, TextInput as TextInput27, Select as Select8 } from "@mantine/core";
5389
5473
  var inputStyles23 = {
5390
5474
  label: { color: "#adb5bd" },
5391
5475
  input: {
@@ -5404,7 +5488,7 @@ var GovernanceVoteActionForm = ({ data, onChange }) => {
5404
5488
  { value: "3", label: "No" },
5405
5489
  { value: "4", label: "No with Veto" }
5406
5490
  ];
5407
- return /* @__PURE__ */ React70.createElement(Stack53, { gap: "md" }, /* @__PURE__ */ React70.createElement(
5491
+ return /* @__PURE__ */ React71.createElement(Stack54, { gap: "md" }, /* @__PURE__ */ React71.createElement(
5408
5492
  TextInput27,
5409
5493
  {
5410
5494
  label: "Proposal ID",
@@ -5414,7 +5498,7 @@ var GovernanceVoteActionForm = ({ data, onChange }) => {
5414
5498
  required: true,
5415
5499
  styles: inputStyles23
5416
5500
  }
5417
- ), /* @__PURE__ */ React70.createElement(
5501
+ ), /* @__PURE__ */ React71.createElement(
5418
5502
  Select8,
5419
5503
  {
5420
5504
  label: "Vote Option",
@@ -5428,8 +5512,8 @@ var GovernanceVoteActionForm = ({ data, onChange }) => {
5428
5512
  };
5429
5513
 
5430
5514
  // src/mantine/blocks/proposal/actions-components/forms/WithdrawTokenSwapActionForm.tsx
5431
- import React71 from "react";
5432
- import { Stack as Stack54, TextInput as TextInput28, Checkbox as Checkbox8 } from "@mantine/core";
5515
+ import React72 from "react";
5516
+ import { Stack as Stack55, TextInput as TextInput28, Checkbox as Checkbox8 } from "@mantine/core";
5433
5517
  var inputStyles24 = {
5434
5518
  label: { color: "#adb5bd" },
5435
5519
  input: {
@@ -5442,7 +5526,7 @@ var inputStyles24 = {
5442
5526
  }
5443
5527
  };
5444
5528
  var WithdrawTokenSwapActionForm = ({ data, onChange }) => {
5445
- return /* @__PURE__ */ React71.createElement(Stack54, { gap: "md" }, /* @__PURE__ */ React71.createElement(
5529
+ return /* @__PURE__ */ React72.createElement(Stack55, { gap: "md" }, /* @__PURE__ */ React72.createElement(
5446
5530
  Checkbox8,
5447
5531
  {
5448
5532
  label: "Contract chosen",
@@ -5453,7 +5537,7 @@ var WithdrawTokenSwapActionForm = ({ data, onChange }) => {
5453
5537
  input: { backgroundColor: "#2a2a2a", borderColor: "#333" }
5454
5538
  }
5455
5539
  }
5456
- ), data.contractChosen && /* @__PURE__ */ React71.createElement(
5540
+ ), data.contractChosen && /* @__PURE__ */ React72.createElement(
5457
5541
  TextInput28,
5458
5542
  {
5459
5543
  label: "Token Swap Contract Address",
@@ -5467,8 +5551,8 @@ var WithdrawTokenSwapActionForm = ({ data, onChange }) => {
5467
5551
  };
5468
5552
 
5469
5553
  // src/mantine/blocks/proposal/actions-components/forms/PerformTokenSwapActionForm.tsx
5470
- import React72 from "react";
5471
- import { Stack as Stack55, TextInput as TextInput29, Checkbox as Checkbox9, Textarea as Textarea15 } from "@mantine/core";
5554
+ import React73 from "react";
5555
+ import { Stack as Stack56, TextInput as TextInput29, Checkbox as Checkbox9, Textarea as Textarea15 } from "@mantine/core";
5472
5556
  var inputStyles25 = {
5473
5557
  label: { color: "#adb5bd" },
5474
5558
  input: {
@@ -5481,7 +5565,7 @@ var inputStyles25 = {
5481
5565
  }
5482
5566
  };
5483
5567
  var PerformTokenSwapActionForm = ({ data, onChange }) => {
5484
- return /* @__PURE__ */ React72.createElement(Stack55, { gap: "md" }, /* @__PURE__ */ React72.createElement(
5568
+ return /* @__PURE__ */ React73.createElement(Stack56, { gap: "md" }, /* @__PURE__ */ React73.createElement(
5485
5569
  Checkbox9,
5486
5570
  {
5487
5571
  label: "Contract chosen",
@@ -5492,7 +5576,7 @@ var PerformTokenSwapActionForm = ({ data, onChange }) => {
5492
5576
  input: { backgroundColor: "#2a2a2a", borderColor: "#333" }
5493
5577
  }
5494
5578
  }
5495
- ), data.contractChosen && /* @__PURE__ */ React72.createElement(React72.Fragment, null, /* @__PURE__ */ React72.createElement(
5579
+ ), data.contractChosen && /* @__PURE__ */ React73.createElement(React73.Fragment, null, /* @__PURE__ */ React73.createElement(
5496
5580
  TextInput29,
5497
5581
  {
5498
5582
  label: "Token Swap Contract Address",
@@ -5502,7 +5586,7 @@ var PerformTokenSwapActionForm = ({ data, onChange }) => {
5502
5586
  required: true,
5503
5587
  styles: inputStyles25
5504
5588
  }
5505
- ), /* @__PURE__ */ React72.createElement(
5589
+ ), /* @__PURE__ */ React73.createElement(
5506
5590
  Textarea15,
5507
5591
  {
5508
5592
  label: "Self Party Information (JSON)",
@@ -5518,7 +5602,7 @@ var PerformTokenSwapActionForm = ({ data, onChange }) => {
5518
5602
  minRows: 4,
5519
5603
  styles: inputStyles25
5520
5604
  }
5521
- ), /* @__PURE__ */ React72.createElement(
5605
+ ), /* @__PURE__ */ React73.createElement(
5522
5606
  Textarea15,
5523
5607
  {
5524
5608
  label: "Counterparty Information (JSON)",
@@ -5538,8 +5622,8 @@ var PerformTokenSwapActionForm = ({ data, onChange }) => {
5538
5622
  };
5539
5623
 
5540
5624
  // src/mantine/blocks/proposal/actions-components/forms/StakeToGroupActionForm.tsx
5541
- import React73 from "react";
5542
- import { Stack as Stack56, TextInput as TextInput30 } from "@mantine/core";
5625
+ import React74 from "react";
5626
+ import { Stack as Stack57, TextInput as TextInput30 } from "@mantine/core";
5543
5627
  var inputStyles26 = {
5544
5628
  label: { color: "#adb5bd" },
5545
5629
  input: {
@@ -5552,7 +5636,7 @@ var inputStyles26 = {
5552
5636
  }
5553
5637
  };
5554
5638
  var StakeToGroupActionForm = ({ data, onChange }) => {
5555
- return /* @__PURE__ */ React73.createElement(Stack56, { gap: "md" }, /* @__PURE__ */ React73.createElement(
5639
+ return /* @__PURE__ */ React74.createElement(Stack57, { gap: "md" }, /* @__PURE__ */ React74.createElement(
5556
5640
  TextInput30,
5557
5641
  {
5558
5642
  label: "Token Contract Address",
@@ -5562,7 +5646,7 @@ var StakeToGroupActionForm = ({ data, onChange }) => {
5562
5646
  required: true,
5563
5647
  styles: inputStyles26
5564
5648
  }
5565
- ), /* @__PURE__ */ React73.createElement(
5649
+ ), /* @__PURE__ */ React74.createElement(
5566
5650
  TextInput30,
5567
5651
  {
5568
5652
  label: "Staking Contract Address",
@@ -5572,12 +5656,12 @@ var StakeToGroupActionForm = ({ data, onChange }) => {
5572
5656
  required: true,
5573
5657
  styles: inputStyles26
5574
5658
  }
5575
- ), /* @__PURE__ */ React73.createElement(TextInput30, { label: "Amount", placeholder: "1000", value: data.amount, onChange: (e) => onChange({ ...data, amount: e.currentTarget.value }), required: true, styles: inputStyles26 }));
5659
+ ), /* @__PURE__ */ React74.createElement(TextInput30, { label: "Amount", placeholder: "1000", value: data.amount, onChange: (e) => onChange({ ...data, amount: e.currentTarget.value }), required: true, styles: inputStyles26 }));
5576
5660
  };
5577
5661
 
5578
5662
  // src/mantine/blocks/proposal/actions-components/forms/SendGroupTokenActionForm.tsx
5579
- import React74 from "react";
5580
- import { Stack as Stack57, TextInput as TextInput31 } from "@mantine/core";
5663
+ import React75 from "react";
5664
+ import { Stack as Stack58, TextInput as TextInput31 } from "@mantine/core";
5581
5665
  var inputStyles27 = {
5582
5666
  label: { color: "#adb5bd" },
5583
5667
  input: {
@@ -5590,7 +5674,7 @@ var inputStyles27 = {
5590
5674
  }
5591
5675
  };
5592
5676
  var SendGroupTokenActionForm = ({ data, onChange }) => {
5593
- return /* @__PURE__ */ React74.createElement(Stack57, { gap: "md" }, /* @__PURE__ */ React74.createElement(
5677
+ return /* @__PURE__ */ React75.createElement(Stack58, { gap: "md" }, /* @__PURE__ */ React75.createElement(
5594
5678
  TextInput31,
5595
5679
  {
5596
5680
  label: "Contract Address",
@@ -5600,7 +5684,7 @@ var SendGroupTokenActionForm = ({ data, onChange }) => {
5600
5684
  required: true,
5601
5685
  styles: inputStyles27
5602
5686
  }
5603
- ), /* @__PURE__ */ React74.createElement(
5687
+ ), /* @__PURE__ */ React75.createElement(
5604
5688
  TextInput31,
5605
5689
  {
5606
5690
  label: "Recipient Address",
@@ -5610,12 +5694,12 @@ var SendGroupTokenActionForm = ({ data, onChange }) => {
5610
5694
  required: true,
5611
5695
  styles: inputStyles27
5612
5696
  }
5613
- ), /* @__PURE__ */ React74.createElement(TextInput31, { label: "Amount", placeholder: "1000", value: data.amount, onChange: (e) => onChange({ ...data, amount: e.currentTarget.value }), required: true, styles: inputStyles27 }));
5697
+ ), /* @__PURE__ */ React75.createElement(TextInput31, { label: "Amount", placeholder: "1000", value: data.amount, onChange: (e) => onChange({ ...data, amount: e.currentTarget.value }), required: true, styles: inputStyles27 }));
5614
5698
  };
5615
5699
 
5616
5700
  // src/mantine/blocks/proposal/actions-components/forms/ValidatorActionsActionForm.tsx
5617
- import React75 from "react";
5618
- import { Stack as Stack58, Select as Select9, Textarea as Textarea16 } from "@mantine/core";
5701
+ import React76 from "react";
5702
+ import { Stack as Stack59, Select as Select9, Textarea as Textarea16 } from "@mantine/core";
5619
5703
  var inputStyles28 = {
5620
5704
  label: { color: "#adb5bd" },
5621
5705
  input: {
@@ -5634,7 +5718,7 @@ var ValidatorActionsActionForm = ({ data, onChange }) => {
5634
5718
  { value: "/cosmos.slashing.v1beta1.MsgUnjail" /* UnjailValidator */, label: "Unjail Validator" },
5635
5719
  { value: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission" /* WithdrawValidatorCommission */, label: "Withdraw Commission" }
5636
5720
  ];
5637
- return /* @__PURE__ */ React75.createElement(Stack58, { gap: "md" }, /* @__PURE__ */ React75.createElement(
5721
+ return /* @__PURE__ */ React76.createElement(Stack59, { gap: "md" }, /* @__PURE__ */ React76.createElement(
5638
5722
  Select9,
5639
5723
  {
5640
5724
  label: "Validator Action Type",
@@ -5644,7 +5728,7 @@ var ValidatorActionsActionForm = ({ data, onChange }) => {
5644
5728
  required: true,
5645
5729
  styles: inputStyles28
5646
5730
  }
5647
- ), data.validatorActionType === "/cosmos.staking.v1beta1.MsgCreateValidator" /* CreateValidator */ && /* @__PURE__ */ React75.createElement(
5731
+ ), data.validatorActionType === "/cosmos.staking.v1beta1.MsgCreateValidator" /* CreateValidator */ && /* @__PURE__ */ React76.createElement(
5648
5732
  Textarea16,
5649
5733
  {
5650
5734
  label: "Create Validator Message (JSON)",
@@ -5655,7 +5739,7 @@ var ValidatorActionsActionForm = ({ data, onChange }) => {
5655
5739
  required: true,
5656
5740
  styles: inputStyles28
5657
5741
  }
5658
- ), data.validatorActionType === "/cosmos.staking.v1beta1.MsgEditValidator" /* EditValidator */ && /* @__PURE__ */ React75.createElement(
5742
+ ), data.validatorActionType === "/cosmos.staking.v1beta1.MsgEditValidator" /* EditValidator */ && /* @__PURE__ */ React76.createElement(
5659
5743
  Textarea16,
5660
5744
  {
5661
5745
  label: "Edit Validator Message (JSON)",
@@ -6360,10 +6444,10 @@ var ActionsPanel = ({ actions, editingIndex, onSave, onCancel, isTemplateMode =
6360
6444
  };
6361
6445
  const renderActionForm = () => {
6362
6446
  if (!currentActionConfig) {
6363
- return /* @__PURE__ */ React76.createElement(Alert7, { color: "red", style: { backgroundColor: "#2a2a2a", borderColor: "#ff6b6b" } }, /* @__PURE__ */ React76.createElement(Text36, { size: "sm", style: { color: "#ff6b6b" } }, "Unknown action type selected"));
6447
+ return /* @__PURE__ */ React77.createElement(Alert7, { color: "red", style: { backgroundColor: "#2a2a2a", borderColor: "#ff6b6b" } }, /* @__PURE__ */ React77.createElement(Text37, { size: "sm", style: { color: "#ff6b6b" } }, "Unknown action type selected"));
6364
6448
  }
6365
6449
  const FormComponent = currentActionConfig.FormComponent;
6366
- return /* @__PURE__ */ React76.createElement(FormComponent, { data: actionData, onChange: setActionData, isTemplateMode });
6450
+ return /* @__PURE__ */ React77.createElement(FormComponent, { data: actionData, onChange: setActionData, isTemplateMode });
6367
6451
  };
6368
6452
  const getCategoryColor = (category) => {
6369
6453
  const colors = {
@@ -6378,7 +6462,7 @@ var ActionsPanel = ({ actions, editingIndex, onSave, onCancel, isTemplateMode =
6378
6462
  };
6379
6463
  return colors[category] || "#6b7280";
6380
6464
  };
6381
- return /* @__PURE__ */ React76.createElement(Stack59, { style: { backgroundColor: "#1a1a1a", color: "#f1f3f5", height: "100%" } }, /* @__PURE__ */ React76.createElement(Text36, { size: "lg", fw: 600, style: { color: "#f1f3f5" } }, isEditing ? "Edit Action" : "Add New Action"), !isEditing ? /* @__PURE__ */ React76.createElement(Stack59, { gap: "md" }, /* @__PURE__ */ React76.createElement(Text36, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Select Action Type"), /* @__PURE__ */ React76.createElement(
6465
+ return /* @__PURE__ */ React77.createElement(Stack60, { style: { backgroundColor: "#1a1a1a", color: "#f1f3f5", height: "100%" } }, /* @__PURE__ */ React77.createElement(Text37, { size: "lg", fw: 600, style: { color: "#f1f3f5" } }, isEditing ? "Edit Action" : "Add New Action"), !isEditing ? /* @__PURE__ */ React77.createElement(Stack60, { gap: "md" }, /* @__PURE__ */ React77.createElement(Text37, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Select Action Type"), /* @__PURE__ */ React77.createElement(
6382
6466
  Tabs2,
6383
6467
  {
6384
6468
  defaultValue: ACTION_CATEGORIES[0].id,
@@ -6399,8 +6483,8 @@ var ActionsPanel = ({ actions, editingIndex, onSave, onCancel, isTemplateMode =
6399
6483
  panel: { paddingTop: "md" }
6400
6484
  }
6401
6485
  },
6402
- /* @__PURE__ */ React76.createElement(Tabs2.List, null, ACTION_CATEGORIES.map((category) => /* @__PURE__ */ React76.createElement(Tabs2.Tab, { key: category.id, value: category.id }, /* @__PURE__ */ React76.createElement(Group19, { gap: "xs" }, /* @__PURE__ */ React76.createElement("span", null, category.icon), /* @__PURE__ */ React76.createElement("span", null, category.label))))),
6403
- ACTION_CATEGORIES.map((category) => /* @__PURE__ */ React76.createElement(Tabs2.Panel, { key: category.id, value: category.id, mt: 10 }, /* @__PURE__ */ React76.createElement(SimpleGrid, { cols: 2, spacing: "xs" }, (categorizedActions.get(category.id) || []).map((config) => /* @__PURE__ */ React76.createElement(
6486
+ /* @__PURE__ */ React77.createElement(Tabs2.List, null, ACTION_CATEGORIES.map((category) => /* @__PURE__ */ React77.createElement(Tabs2.Tab, { key: category.id, value: category.id }, /* @__PURE__ */ React77.createElement(Group20, { gap: "xs" }, /* @__PURE__ */ React77.createElement("span", null, category.icon), /* @__PURE__ */ React77.createElement("span", null, category.label))))),
6487
+ ACTION_CATEGORIES.map((category) => /* @__PURE__ */ React77.createElement(Tabs2.Panel, { key: category.id, value: category.id, mt: 10 }, /* @__PURE__ */ React77.createElement(SimpleGrid, { cols: 2, spacing: "xs" }, (categorizedActions.get(category.id) || []).map((config) => /* @__PURE__ */ React77.createElement(
6404
6488
  Paper5,
6405
6489
  {
6406
6490
  key: config.value,
@@ -6414,9 +6498,9 @@ var ActionsPanel = ({ actions, editingIndex, onSave, onCancel, isTemplateMode =
6414
6498
  },
6415
6499
  onClick: () => setSelectedActionType(config.value)
6416
6500
  },
6417
- /* @__PURE__ */ React76.createElement(Stack59, { gap: "xs" }, /* @__PURE__ */ React76.createElement(Group19, { justify: "space-between" }, /* @__PURE__ */ React76.createElement(Text36, { size: "sm", fw: 500, style: { color: "#f1f3f5" } }, config.label), selectedActionType === config.value && /* @__PURE__ */ React76.createElement(Badge8, { size: "xs", style: { backgroundColor: "#4dabf7" } }, "Selected")), config.description && /* @__PURE__ */ React76.createElement(Text36, { size: "xs", style: { color: "#adb5bd" } }, config.description))
6501
+ /* @__PURE__ */ React77.createElement(Stack60, { gap: "xs" }, /* @__PURE__ */ React77.createElement(Group20, { justify: "space-between" }, /* @__PURE__ */ React77.createElement(Text37, { size: "sm", fw: 500, style: { color: "#f1f3f5" } }, config.label), selectedActionType === config.value && /* @__PURE__ */ React77.createElement(Badge8, { size: "xs", style: { backgroundColor: "#4dabf7" } }, "Selected")), config.description && /* @__PURE__ */ React77.createElement(Text37, { size: "xs", style: { color: "#adb5bd" } }, config.description))
6418
6502
  )))))
6419
- )) : /* @__PURE__ */ React76.createElement(
6503
+ )) : /* @__PURE__ */ React77.createElement(
6420
6504
  Card12,
6421
6505
  {
6422
6506
  withBorder: true,
@@ -6426,7 +6510,7 @@ var ActionsPanel = ({ actions, editingIndex, onSave, onCancel, isTemplateMode =
6426
6510
  borderColor: "#333"
6427
6511
  }
6428
6512
  },
6429
- /* @__PURE__ */ React76.createElement(Group19, { justify: "space-between" }, /* @__PURE__ */ React76.createElement(Group19, { gap: "xs" }, /* @__PURE__ */ React76.createElement(
6513
+ /* @__PURE__ */ React77.createElement(Group20, { justify: "space-between" }, /* @__PURE__ */ React77.createElement(Group20, { gap: "xs" }, /* @__PURE__ */ React77.createElement(
6430
6514
  Badge8,
6431
6515
  {
6432
6516
  size: "sm",
@@ -6436,10 +6520,10 @@ var ActionsPanel = ({ actions, editingIndex, onSave, onCancel, isTemplateMode =
6436
6520
  }
6437
6521
  },
6438
6522
  currentActionConfig?.label || selectedActionType
6439
- ), /* @__PURE__ */ React76.createElement(Text36, { size: "sm", style: { color: "#adb5bd" } }, "(Editing)")))
6440
- ), /* @__PURE__ */ React76.createElement(Divider4, { color: "#333" }), /* @__PURE__ */ React76.createElement(ScrollArea3, { style: { flex: 1 } }, renderActionForm()), /* @__PURE__ */ React76.createElement(Divider4, { color: "#333" }), /* @__PURE__ */ React76.createElement(Stack59, { gap: "xs" }, /* @__PURE__ */ React76.createElement(Text36, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Current Actions (", actions.length, ")"), /* @__PURE__ */ React76.createElement(ScrollArea3, { h: 100 }, /* @__PURE__ */ React76.createElement(Stack59, { gap: "xs" }, actions.map((action, index) => {
6523
+ ), /* @__PURE__ */ React77.createElement(Text37, { size: "sm", style: { color: "#adb5bd" } }, "(Editing)")))
6524
+ ), /* @__PURE__ */ React77.createElement(Divider4, { color: "#333" }), /* @__PURE__ */ React77.createElement(ScrollArea3, { style: { flex: 1 } }, renderActionForm()), /* @__PURE__ */ React77.createElement(Divider4, { color: "#333" }), /* @__PURE__ */ React77.createElement(Stack60, { gap: "xs" }, /* @__PURE__ */ React77.createElement(Text37, { size: "sm", fw: 500, style: { color: "#adb5bd" } }, "Current Actions (", actions.length, ")"), /* @__PURE__ */ React77.createElement(ScrollArea3, { h: 100 }, /* @__PURE__ */ React77.createElement(Stack60, { gap: "xs" }, actions.map((action, index) => {
6441
6525
  const config = getActionConfig(action.type);
6442
- return /* @__PURE__ */ React76.createElement(
6526
+ return /* @__PURE__ */ React77.createElement(
6443
6527
  Card12,
6444
6528
  {
6445
6529
  key: index,
@@ -6452,7 +6536,7 @@ var ActionsPanel = ({ actions, editingIndex, onSave, onCancel, isTemplateMode =
6452
6536
  opacity: index === editingIndex ? 0.7 : 1
6453
6537
  }
6454
6538
  },
6455
- /* @__PURE__ */ React76.createElement(Group19, { gap: "xs" }, /* @__PURE__ */ React76.createElement(
6539
+ /* @__PURE__ */ React77.createElement(Group20, { gap: "xs" }, /* @__PURE__ */ React77.createElement(
6456
6540
  Badge8,
6457
6541
  {
6458
6542
  size: "sm",
@@ -6462,9 +6546,9 @@ var ActionsPanel = ({ actions, editingIndex, onSave, onCancel, isTemplateMode =
6462
6546
  }
6463
6547
  },
6464
6548
  config?.label || action.type
6465
- ), /* @__PURE__ */ React76.createElement(Text36, { size: "sm", style: { color: "#adb5bd" } }, config?.getSummary(action.data) || "Action"), index === editingIndex && /* @__PURE__ */ React76.createElement(Badge8, { size: "xs", style: { backgroundColor: "#4dabf7", color: "#fff" } }, "Editing"))
6549
+ ), /* @__PURE__ */ React77.createElement(Text37, { size: "sm", style: { color: "#adb5bd" } }, config?.getSummary(action.data) || "Action"), index === editingIndex && /* @__PURE__ */ React77.createElement(Badge8, { size: "xs", style: { backgroundColor: "#4dabf7", color: "#fff" } }, "Editing"))
6466
6550
  );
6467
- })))), /* @__PURE__ */ React76.createElement(Group19, { justify: "flex-end", mt: "md" }, /* @__PURE__ */ React76.createElement(
6551
+ })))), /* @__PURE__ */ React77.createElement(Group20, { justify: "flex-end", mt: "md" }, /* @__PURE__ */ React77.createElement(
6468
6552
  Button11,
6469
6553
  {
6470
6554
  variant: "default",
@@ -6479,7 +6563,7 @@ var ActionsPanel = ({ actions, editingIndex, onSave, onCancel, isTemplateMode =
6479
6563
  }
6480
6564
  },
6481
6565
  "Cancel"
6482
- ), /* @__PURE__ */ React76.createElement(
6566
+ ), /* @__PURE__ */ React77.createElement(
6483
6567
  Button11,
6484
6568
  {
6485
6569
  onClick: handleSave,
@@ -6552,8 +6636,8 @@ var ActionsTab = ({ actions, onActionsChange, editor, block }) => {
6552
6636
  setIsEditorVisible(false);
6553
6637
  setEditingIndex(null);
6554
6638
  }, []);
6555
- return /* @__PURE__ */ React77.createElement(Stack60, { gap: "md" }, /* @__PURE__ */ React77.createElement(ActionsCard, { actions: currentActions, isSelected: false, onClick: () => {
6556
- }, onEditAction: handleEditAction, onRemoveAction: handleRemoveAction }), isEditorVisible && /* @__PURE__ */ React77.createElement(
6639
+ return /* @__PURE__ */ React78.createElement(Stack61, { gap: "md" }, /* @__PURE__ */ React78.createElement(ActionsCard, { actions: currentActions, isSelected: false, onClick: () => {
6640
+ }, onEditAction: handleEditAction, onRemoveAction: handleRemoveAction }), isEditorVisible && /* @__PURE__ */ React78.createElement(
6557
6641
  Card13,
6558
6642
  {
6559
6643
  withBorder: true,
@@ -6564,15 +6648,15 @@ var ActionsTab = ({ actions, onActionsChange, editor, block }) => {
6564
6648
  borderColor: "#333"
6565
6649
  }
6566
6650
  },
6567
- /* @__PURE__ */ React77.createElement(ActionsPanel, { actions: currentActions, editingIndex, onSave: handleSaveAction, onCancel: handleCancelEditor, isTemplateMode: true })
6651
+ /* @__PURE__ */ React78.createElement(ActionsPanel, { actions: currentActions, editingIndex, onSave: handleSaveAction, onCancel: handleCancelEditor, isTemplateMode: true })
6568
6652
  ));
6569
6653
  };
6570
6654
 
6571
6655
  // src/mantine/blocks/proposal/template/VoteTab.tsx
6572
- import React78 from "react";
6573
- import { Stack as Stack61, TextInput as TextInput32 } from "@mantine/core";
6656
+ import React79 from "react";
6657
+ import { Stack as Stack62, TextInput as TextInput32 } from "@mantine/core";
6574
6658
  var VoteTab = ({ voteTitle, voteSubtitle, voteIcon, onVoteTitleChange, onVoteSubtitleChange, onVoteIconChange }) => {
6575
- return /* @__PURE__ */ React78.createElement(Stack61, { gap: "md" }, /* @__PURE__ */ React78.createElement(TextInput32, { label: "Vote Button Title", placeholder: "Vote on this proposal", value: voteTitle, onChange: (event) => onVoteTitleChange(event.currentTarget.value) }), /* @__PURE__ */ React78.createElement(TextInput32, { label: "Vote Button Subtitle", placeholder: "Cast your vote", value: voteSubtitle, onChange: (event) => onVoteSubtitleChange(event.currentTarget.value) }), /* @__PURE__ */ React78.createElement(TextInput32, { label: "Vote Icon", placeholder: "checklist", value: voteIcon, onChange: (event) => onVoteIconChange(event.currentTarget.value) }));
6659
+ return /* @__PURE__ */ React79.createElement(Stack62, { gap: "md" }, /* @__PURE__ */ React79.createElement(TextInput32, { label: "Vote Button Title", placeholder: "Vote on this proposal", value: voteTitle, onChange: (event) => onVoteTitleChange(event.currentTarget.value) }), /* @__PURE__ */ React79.createElement(TextInput32, { label: "Vote Button Subtitle", placeholder: "Cast your vote", value: voteSubtitle, onChange: (event) => onVoteSubtitleChange(event.currentTarget.value) }), /* @__PURE__ */ React79.createElement(TextInput32, { label: "Vote Icon", placeholder: "checklist", value: voteIcon, onChange: (event) => onVoteIconChange(event.currentTarget.value) }));
6576
6660
  };
6577
6661
 
6578
6662
  // src/mantine/blocks/proposal/template/TemplateConfig.tsx
@@ -6589,7 +6673,7 @@ var TemplateConfig3 = ({ editor, block }) => {
6589
6673
  },
6590
6674
  [editor, block]
6591
6675
  );
6592
- return /* @__PURE__ */ React79.createElement(
6676
+ return /* @__PURE__ */ React80.createElement(
6593
6677
  Paper6,
6594
6678
  {
6595
6679
  p: "md",
@@ -6600,7 +6684,7 @@ var TemplateConfig3 = ({ editor, block }) => {
6600
6684
  flexDirection: "column"
6601
6685
  }
6602
6686
  },
6603
- /* @__PURE__ */ React79.createElement(
6687
+ /* @__PURE__ */ React80.createElement(
6604
6688
  "div",
6605
6689
  {
6606
6690
  style: {
@@ -6610,17 +6694,17 @@ var TemplateConfig3 = ({ editor, block }) => {
6610
6694
  marginBottom: "1rem"
6611
6695
  }
6612
6696
  },
6613
- /* @__PURE__ */ React79.createElement(Title5, { order: 3 }, "Proposal Settings"),
6614
- /* @__PURE__ */ React79.createElement(CloseButton4, { onClick: closePanel })
6697
+ /* @__PURE__ */ React80.createElement(Title5, { order: 3 }, "Proposal Settings"),
6698
+ /* @__PURE__ */ React80.createElement(CloseButton4, { onClick: closePanel })
6615
6699
  ),
6616
- /* @__PURE__ */ React79.createElement(
6700
+ /* @__PURE__ */ React80.createElement(
6617
6701
  ReusablePanel,
6618
6702
  {
6619
6703
  extraTabs: [
6620
6704
  {
6621
6705
  label: "General",
6622
6706
  value: "general",
6623
- content: /* @__PURE__ */ React79.createElement(
6707
+ content: /* @__PURE__ */ React80.createElement(
6624
6708
  GeneralTab3,
6625
6709
  {
6626
6710
  title: block.props.title || "",
@@ -6635,12 +6719,12 @@ var TemplateConfig3 = ({ editor, block }) => {
6635
6719
  {
6636
6720
  label: "Actions",
6637
6721
  value: "actions",
6638
- content: /* @__PURE__ */ React79.createElement(ActionsTab, { actions: block.props.actions || "[]", onActionsChange: (actions) => updateProp("actions", JSON.stringify(actions)), editor, block })
6722
+ content: /* @__PURE__ */ React80.createElement(ActionsTab, { actions: block.props.actions || "[]", onActionsChange: (actions) => updateProp("actions", JSON.stringify(actions)), editor, block })
6639
6723
  },
6640
6724
  {
6641
6725
  label: "Vote",
6642
6726
  value: "vote",
6643
- content: /* @__PURE__ */ React79.createElement(
6727
+ content: /* @__PURE__ */ React80.createElement(
6644
6728
  VoteTab,
6645
6729
  {
6646
6730
  voteTitle: block.props.voteTitle || "",
@@ -6660,21 +6744,21 @@ var TemplateConfig3 = ({ editor, block }) => {
6660
6744
  };
6661
6745
 
6662
6746
  // src/mantine/blocks/proposal/template/TemplateView.tsx
6663
- import { Card as Card14, Group as Group20, Stack as Stack62, Text as Text37, ActionIcon as ActionIcon8 } from "@mantine/core";
6747
+ import { Card as Card14, Group as Group21, Stack as Stack63, Text as Text38, ActionIcon as ActionIcon8 } from "@mantine/core";
6664
6748
  var PROPOSAL_TEMPLATE_PANEL_ID = "proposal-template-panel";
6665
6749
  var ProposalTemplateView = ({ editor, block }) => {
6666
6750
  const panelId = `${PROPOSAL_TEMPLATE_PANEL_ID}-${block.id}`;
6667
- const panelContent = useMemo11(() => /* @__PURE__ */ React80.createElement(TemplateConfig3, { editor, block }), [editor, block]);
6751
+ const panelContent = useMemo11(() => /* @__PURE__ */ React81.createElement(TemplateConfig3, { editor, block }), [editor, block]);
6668
6752
  const { open } = usePanel(panelId, panelContent);
6669
- return /* @__PURE__ */ React80.createElement(Card14, { withBorder: true, padding: "md", radius: "md", style: { width: "100%", cursor: "pointer" }, onClick: open }, /* @__PURE__ */ React80.createElement(Group20, { wrap: "nowrap", justify: "space-between", align: "center" }, /* @__PURE__ */ React80.createElement(Group20, { wrap: "nowrap", align: "center" }, /* @__PURE__ */ React80.createElement(ActionIcon8, { variant: "light", color: "blue", size: "lg", radius: "xl", style: { flexShrink: 0 } }, getIcon(block.props.icon, 18, 1.5, "file-text")), /* @__PURE__ */ React80.createElement(Stack62, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React80.createElement(Text37, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "Proposal Title"), /* @__PURE__ */ React80.createElement(Text37, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description || "Proposal description"))), /* @__PURE__ */ React80.createElement(Text37, { size: "xs", c: "dimmed", contentEditable: false }, block.props.status || "draft")));
6753
+ return /* @__PURE__ */ React81.createElement(Card14, { withBorder: true, padding: "md", radius: "md", style: { width: "100%", cursor: "pointer" }, onClick: open }, /* @__PURE__ */ React81.createElement(Group21, { wrap: "nowrap", justify: "space-between", align: "center" }, /* @__PURE__ */ React81.createElement(Group21, { wrap: "nowrap", align: "center" }, /* @__PURE__ */ React81.createElement(ActionIcon8, { variant: "light", color: "blue", size: "lg", radius: "xl", style: { flexShrink: 0 } }, getIcon(block.props.icon, 18, 1.5, "file-text")), /* @__PURE__ */ React81.createElement(Stack63, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React81.createElement(Text38, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "Proposal Title"), /* @__PURE__ */ React81.createElement(Text38, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description || "Proposal description"))), /* @__PURE__ */ React81.createElement(Text38, { size: "xs", c: "dimmed", contentEditable: false }, block.props.status || "draft")));
6670
6754
  };
6671
6755
 
6672
6756
  // src/mantine/blocks/proposal/flow/FlowView.tsx
6673
- import React85, { useMemo as useMemo12 } from "react";
6757
+ import React86, { useMemo as useMemo12 } from "react";
6674
6758
 
6675
6759
  // src/mantine/blocks/proposal/components/OnChainProposalCard.tsx
6676
- import React81 from "react";
6677
- import { Card as Card15, Group as Group21, Stack as Stack63, Text as Text38, Skeleton, Badge as Badge9, Button as Button13, ActionIcon as ActionIcon9 } from "@mantine/core";
6760
+ import React82 from "react";
6761
+ import { Card as Card15, Group as Group22, Stack as Stack64, Text as Text39, Skeleton, Badge as Badge9, Button as Button13, ActionIcon as ActionIcon9 } from "@mantine/core";
6678
6762
  var statusColor = {
6679
6763
  open: "#4dabf7",
6680
6764
  passed: "#51cf66",
@@ -6703,7 +6787,7 @@ var OnChainProposalCard = ({
6703
6787
  onVote,
6704
6788
  voteEnabled = false
6705
6789
  }) => {
6706
- return /* @__PURE__ */ React81.createElement(
6790
+ return /* @__PURE__ */ React82.createElement(
6707
6791
  Card15,
6708
6792
  {
6709
6793
  shadow: "sm",
@@ -6716,9 +6800,9 @@ var OnChainProposalCard = ({
6716
6800
  },
6717
6801
  onClick
6718
6802
  },
6719
- isFetching && /* @__PURE__ */ React81.createElement(Stack63, null, /* @__PURE__ */ React81.createElement(Skeleton, { height: 20, width: "70%" }), /* @__PURE__ */ React81.createElement(Skeleton, { height: 16 }), /* @__PURE__ */ React81.createElement(Skeleton, { height: 16, width: "40%" })),
6720
- error && /* @__PURE__ */ React81.createElement(Text38, { size: "sm", c: "red" }, typeof error === "string" ? error : error.message || "An error occurred while loading the proposal."),
6721
- !isFetching && /* @__PURE__ */ React81.createElement(Group21, { justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React81.createElement(Group21, { align: "flex-start", gap: "md", style: { flex: 1 } }, /* @__PURE__ */ React81.createElement(ActionIcon9, { variant: "light", color: "blue", size: "xl", radius: "xl", style: { flexShrink: 0 } }, getIcon(icon, 24, 1.5, "file-text")), /* @__PURE__ */ React81.createElement(Stack63, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React81.createElement(Group21, { gap: "xs" }, /* @__PURE__ */ React81.createElement(Text38, { size: "md", fw: 600 }, title || "Proposal"), /* @__PURE__ */ React81.createElement(Badge9, { color: statusColor[status], variant: "filled", size: "sm", radius: "sm" }, status.replace(/_/g, " ").toUpperCase())), /* @__PURE__ */ React81.createElement(Text38, { size: "sm", c: "dimmed" }, getDisplayDescription(description)))), /* @__PURE__ */ React81.createElement(Group21, { gap: "xs" }, voteEnabled && onVote && status === "open" && /* @__PURE__ */ React81.createElement(
6803
+ isFetching && /* @__PURE__ */ React82.createElement(Stack64, null, /* @__PURE__ */ React82.createElement(Skeleton, { height: 20, width: "70%" }), /* @__PURE__ */ React82.createElement(Skeleton, { height: 16 }), /* @__PURE__ */ React82.createElement(Skeleton, { height: 16, width: "40%" })),
6804
+ error && /* @__PURE__ */ React82.createElement(Text39, { size: "sm", c: "red" }, typeof error === "string" ? error : error.message || "An error occurred while loading the proposal."),
6805
+ !isFetching && /* @__PURE__ */ React82.createElement(Group22, { justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React82.createElement(Group22, { align: "flex-start", gap: "md", style: { flex: 1 } }, /* @__PURE__ */ React82.createElement(ActionIcon9, { variant: "light", color: "blue", size: "xl", radius: "xl", style: { flexShrink: 0 } }, getIcon(icon, 24, 1.5, "file-text")), /* @__PURE__ */ React82.createElement(Stack64, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React82.createElement(Group22, { gap: "xs" }, /* @__PURE__ */ React82.createElement(Text39, { size: "md", fw: 600 }, title || "Proposal"), /* @__PURE__ */ React82.createElement(Badge9, { color: statusColor[status], variant: "filled", size: "sm", radius: "sm" }, status.replace(/_/g, " ").toUpperCase())), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", c: "dimmed" }, getDisplayDescription(description)))), /* @__PURE__ */ React82.createElement(Group22, { gap: "xs" }, voteEnabled && onVote && status === "open" && /* @__PURE__ */ React82.createElement(
6722
6806
  Button13,
6723
6807
  {
6724
6808
  size: "sm",
@@ -6731,7 +6815,7 @@ var OnChainProposalCard = ({
6731
6815
  style: { flexShrink: 0 }
6732
6816
  },
6733
6817
  "Vote"
6734
- ), status === "passed" && onExecute && /* @__PURE__ */ React81.createElement(
6818
+ ), status === "passed" && onExecute && /* @__PURE__ */ React82.createElement(
6735
6819
  Button13,
6736
6820
  {
6737
6821
  size: "sm",
@@ -6750,8 +6834,8 @@ var OnChainProposalCard = ({
6750
6834
  };
6751
6835
 
6752
6836
  // src/mantine/blocks/proposal/flow/FlowConfig.tsx
6753
- import React84, { useCallback as useCallback15, useState as useState21, useEffect as useEffect15 } from "react";
6754
- import { Paper as Paper7, CloseButton as CloseButton5, Title as Title6, Stack as Stack66, TextInput as TextInput33, Textarea as Textarea18, Button as Button16, Text as Text41, Card as Card18, Select as Select10, Loader as Loader4, SegmentedControl as SegmentedControl5 } from "@mantine/core";
6837
+ import React85, { useCallback as useCallback15, useState as useState21, useEffect as useEffect15 } from "react";
6838
+ import { Paper as Paper7, CloseButton as CloseButton5, Title as Title6, Stack as Stack67, TextInput as TextInput33, Textarea as Textarea18, Button as Button16, Text as Text42, Card as Card18, Select as Select10, Loader as Loader4, SegmentedControl as SegmentedControl5 } from "@mantine/core";
6755
6839
 
6756
6840
  // src/mantine/blocks/proposal/flow/useFlowBusinessLogic.ts
6757
6841
  import { useEffect as useEffect12, useState as useState17 } from "react";
@@ -6991,8 +7075,8 @@ var useVoteBusinessLogic = ({ block, editor }) => {
6991
7075
  };
6992
7076
 
6993
7077
  // src/mantine/blocks/proposal/flow/VoteGeneralTab.tsx
6994
- import React82, { useState as useState19 } from "react";
6995
- import { Stack as Stack64, Text as Text39, Group as Group22, Card as Card16, Button as Button14, Progress as Progress2, Box as Box16, Textarea as Textarea17, Tooltip as Tooltip3 } from "@mantine/core";
7078
+ import React83, { useState as useState19 } from "react";
7079
+ import { Stack as Stack65, Text as Text40, Group as Group23, Card as Card16, Button as Button14, Progress as Progress2, Box as Box17, Textarea as Textarea17, Tooltip as Tooltip3 } from "@mantine/core";
6996
7080
  var getVoteIcon = (voteType) => {
6997
7081
  switch (voteType) {
6998
7082
  case "yes":
@@ -7034,7 +7118,7 @@ var FlowGeneralTab = ({
7034
7118
  setRationale("");
7035
7119
  }
7036
7120
  };
7037
- return /* @__PURE__ */ React82.createElement(Stack64, { gap: "lg" }, !hasSubmittedProposal && /* @__PURE__ */ React82.createElement(
7121
+ return /* @__PURE__ */ React83.createElement(Stack65, { gap: "lg" }, !hasSubmittedProposal && /* @__PURE__ */ React83.createElement(
7038
7122
  Card16,
7039
7123
  {
7040
7124
  padding: "md",
@@ -7045,8 +7129,8 @@ var FlowGeneralTab = ({
7045
7129
  color: "#f1f3f5"
7046
7130
  }
7047
7131
  },
7048
- /* @__PURE__ */ React82.createElement(Group22, { gap: "xs", align: "center" }, /* @__PURE__ */ React82.createElement(
7049
- Box16,
7132
+ /* @__PURE__ */ React83.createElement(Group23, { gap: "xs", align: "center" }, /* @__PURE__ */ React83.createElement(
7133
+ Box17,
7050
7134
  {
7051
7135
  style: {
7052
7136
  width: 8,
@@ -7055,9 +7139,9 @@ var FlowGeneralTab = ({
7055
7139
  borderRadius: "50%"
7056
7140
  }
7057
7141
  }
7058
- ), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", fw: 500, style: { color: "#ffd43b" } }, "Waiting for Proposal Submission")),
7059
- /* @__PURE__ */ React82.createElement(Text39, { size: "xs", style: { color: "#adb5bd", marginTop: 4 } }, "The connected proposal needs to be submitted before voting can begin.")
7060
- ), /* @__PURE__ */ React82.createElement(
7142
+ ), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", fw: 500, style: { color: "#ffd43b" } }, "Waiting for Proposal Submission")),
7143
+ /* @__PURE__ */ React83.createElement(Text40, { size: "xs", style: { color: "#adb5bd", marginTop: 4 } }, "The connected proposal needs to be submitted before voting can begin.")
7144
+ ), /* @__PURE__ */ React83.createElement(
7061
7145
  Card16,
7062
7146
  {
7063
7147
  padding: "lg",
@@ -7069,8 +7153,8 @@ var FlowGeneralTab = ({
7069
7153
  opacity: !hasSubmittedProposal ? 0.6 : 1
7070
7154
  }
7071
7155
  },
7072
- /* @__PURE__ */ React82.createElement(Stack64, { gap: "xs" }, /* @__PURE__ */ React82.createElement(Group22, { justify: "space-between" }, /* @__PURE__ */ React82.createElement(Group22, { gap: "xs" }, /* @__PURE__ */ React82.createElement(
7073
- Box16,
7156
+ /* @__PURE__ */ React83.createElement(Stack65, { gap: "xs" }, /* @__PURE__ */ React83.createElement(Group23, { justify: "space-between" }, /* @__PURE__ */ React83.createElement(Group23, { gap: "xs" }, /* @__PURE__ */ React83.createElement(
7157
+ Box17,
7074
7158
  {
7075
7159
  w: 8,
7076
7160
  h: 8,
@@ -7079,8 +7163,8 @@ var FlowGeneralTab = ({
7079
7163
  borderRadius: "50%"
7080
7164
  }
7081
7165
  }
7082
- ), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", style: { color: "#adb5bd" } }, "Status")), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", fw: 500, style: { color: "#f1f3f5" } }, hasSubmittedProposal ? proposalStatus === "open" ? "Active" : proposalStatus || "Active" : "Waiting")), /* @__PURE__ */ React82.createElement(Group22, { justify: "space-between" }, /* @__PURE__ */ React82.createElement(Group22, { gap: "xs" }, /* @__PURE__ */ React82.createElement(Box16, { w: 8, h: 8, style: { backgroundColor: "#adb5bd", borderRadius: "50%" } }), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", style: { color: "#adb5bd" } }, "Proposal ID")), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", fw: 500, style: { color: "#f1f3f5" } }, hasSubmittedProposal ? `#${proposalId}` : "TBD")), /* @__PURE__ */ React82.createElement(Group22, { justify: "space-between" }, /* @__PURE__ */ React82.createElement(Group22, { gap: "xs" }, /* @__PURE__ */ React82.createElement(Box16, { w: 8, h: 8, style: { backgroundColor: "#adb5bd", borderRadius: "50%" } }), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", style: { color: "#adb5bd" } }, "Title")), /* @__PURE__ */ React82.createElement(
7083
- Text39,
7166
+ ), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", style: { color: "#adb5bd" } }, "Status")), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", fw: 500, style: { color: "#f1f3f5" } }, hasSubmittedProposal ? proposalStatus === "open" ? "Active" : proposalStatus || "Active" : "Waiting")), /* @__PURE__ */ React83.createElement(Group23, { justify: "space-between" }, /* @__PURE__ */ React83.createElement(Group23, { gap: "xs" }, /* @__PURE__ */ React83.createElement(Box17, { w: 8, h: 8, style: { backgroundColor: "#adb5bd", borderRadius: "50%" } }), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", style: { color: "#adb5bd" } }, "Proposal ID")), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", fw: 500, style: { color: "#f1f3f5" } }, hasSubmittedProposal ? `#${proposalId}` : "TBD")), /* @__PURE__ */ React83.createElement(Group23, { justify: "space-between" }, /* @__PURE__ */ React83.createElement(Group23, { gap: "xs" }, /* @__PURE__ */ React83.createElement(Box17, { w: 8, h: 8, style: { backgroundColor: "#adb5bd", borderRadius: "50%" } }), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", style: { color: "#adb5bd" } }, "Title")), /* @__PURE__ */ React83.createElement(
7167
+ Text40,
7084
7168
  {
7085
7169
  size: "sm",
7086
7170
  fw: 500,
@@ -7089,8 +7173,8 @@ var FlowGeneralTab = ({
7089
7173
  }
7090
7174
  },
7091
7175
  hasSubmittedProposal ? proposalTitle || "Untitled" : "N/A"
7092
- )), /* @__PURE__ */ React82.createElement(Group22, { justify: "space-between" }, /* @__PURE__ */ React82.createElement(Group22, { gap: "xs" }, /* @__PURE__ */ React82.createElement(Box16, { w: 8, h: 8, style: { backgroundColor: "#adb5bd", borderRadius: "50%" } }), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", style: { color: "#adb5bd" } }, "Description")), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", fw: 500, style: { color: "#f1f3f5" }, title: proposalDescription }, hasSubmittedProposal ? proposalDescription ? proposalDescription.length > 30 ? proposalDescription.substring(0, 30) + "..." : proposalDescription : "No description" : "N/A")), /* @__PURE__ */ React82.createElement(Group22, { justify: "space-between" }, /* @__PURE__ */ React82.createElement(Group22, { gap: "xs" }, /* @__PURE__ */ React82.createElement(Box16, { w: 8, h: 8, style: { backgroundColor: "#adb5bd", borderRadius: "50%" } }), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", style: { color: "#adb5bd" } }, "My Vote")), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", fw: 500, style: { color: "#f1f3f5" } }, hasSubmittedProposal ? userVote?.vote ? userVote.vote.vote : "Pending" : "N/A"))),
7093
- /* @__PURE__ */ React82.createElement(Stack64, { gap: "xs" }, /* @__PURE__ */ React82.createElement(Text39, { size: "sm", style: { color: "#adb5bd" } }, hasSubmittedProposal ? "Voting is open" : "Voting pending"), /* @__PURE__ */ React82.createElement(
7176
+ )), /* @__PURE__ */ React83.createElement(Group23, { justify: "space-between" }, /* @__PURE__ */ React83.createElement(Group23, { gap: "xs" }, /* @__PURE__ */ React83.createElement(Box17, { w: 8, h: 8, style: { backgroundColor: "#adb5bd", borderRadius: "50%" } }), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", style: { color: "#adb5bd" } }, "Description")), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", fw: 500, style: { color: "#f1f3f5" }, title: proposalDescription }, hasSubmittedProposal ? proposalDescription ? proposalDescription.length > 30 ? proposalDescription.substring(0, 30) + "..." : proposalDescription : "No description" : "N/A")), /* @__PURE__ */ React83.createElement(Group23, { justify: "space-between" }, /* @__PURE__ */ React83.createElement(Group23, { gap: "xs" }, /* @__PURE__ */ React83.createElement(Box17, { w: 8, h: 8, style: { backgroundColor: "#adb5bd", borderRadius: "50%" } }), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", style: { color: "#adb5bd" } }, "My Vote")), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", fw: 500, style: { color: "#f1f3f5" } }, hasSubmittedProposal ? userVote?.vote ? userVote.vote.vote : "Pending" : "N/A"))),
7177
+ /* @__PURE__ */ React83.createElement(Stack65, { gap: "xs" }, /* @__PURE__ */ React83.createElement(Text40, { size: "sm", style: { color: "#adb5bd" } }, hasSubmittedProposal ? "Voting is open" : "Voting pending"), /* @__PURE__ */ React83.createElement(
7094
7178
  Progress2,
7095
7179
  {
7096
7180
  value: hasSubmittedProposal ? 75 : 0,
@@ -7103,7 +7187,7 @@ var FlowGeneralTab = ({
7103
7187
  }
7104
7188
  }
7105
7189
  ))
7106
- ), hasSubmittedProposal && !hasVoted && (status === "open" || proposalStatus === "open") && /* @__PURE__ */ React82.createElement(Stack64, { gap: "lg" }, disabled && isDisabled?.message && /* @__PURE__ */ React82.createElement(
7190
+ ), hasSubmittedProposal && !hasVoted && (status === "open" || proposalStatus === "open") && /* @__PURE__ */ React83.createElement(Stack65, { gap: "lg" }, disabled && isDisabled?.message && /* @__PURE__ */ React83.createElement(
7107
7191
  Card16,
7108
7192
  {
7109
7193
  padding: "md",
@@ -7114,8 +7198,8 @@ var FlowGeneralTab = ({
7114
7198
  color: "#f1f3f5"
7115
7199
  }
7116
7200
  },
7117
- /* @__PURE__ */ React82.createElement(Group22, { gap: "xs", align: "center" }, /* @__PURE__ */ React82.createElement(
7118
- Box16,
7201
+ /* @__PURE__ */ React83.createElement(Group23, { gap: "xs", align: "center" }, /* @__PURE__ */ React83.createElement(
7202
+ Box17,
7119
7203
  {
7120
7204
  style: {
7121
7205
  width: 8,
@@ -7124,8 +7208,8 @@ var FlowGeneralTab = ({
7124
7208
  borderRadius: "50%"
7125
7209
  }
7126
7210
  }
7127
- ), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", fw: 500, style: { color: "#ffd43b" } }, isDisabled.message))
7128
- ), /* @__PURE__ */ React82.createElement(Stack64, { gap: "md" }, ["yes", "no", "no_with_veto", "abstain"].map((voteType) => /* @__PURE__ */ React82.createElement(Tooltip3, { key: voteType, label: disabled ? isDisabled?.message : void 0, disabled: !disabled, position: "top" }, /* @__PURE__ */ React82.createElement(
7211
+ ), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", fw: 500, style: { color: "#ffd43b" } }, isDisabled.message))
7212
+ ), /* @__PURE__ */ React83.createElement(Stack65, { gap: "md" }, ["yes", "no", "no_with_veto", "abstain"].map((voteType) => /* @__PURE__ */ React83.createElement(Tooltip3, { key: voteType, label: disabled ? isDisabled?.message : void 0, disabled: !disabled, position: "top" }, /* @__PURE__ */ React83.createElement(
7129
7213
  Button14,
7130
7214
  {
7131
7215
  variant: "outline",
@@ -7144,8 +7228,8 @@ var FlowGeneralTab = ({
7144
7228
  opacity: disabled ? 0.5 : 1
7145
7229
  }
7146
7230
  },
7147
- /* @__PURE__ */ React82.createElement(Text39, { fw: 500, tt: "capitalize", style: { textAlign: "left" } }, voteType === "no_with_veto" ? "No with Veto" : voteType)
7148
- )))), /* @__PURE__ */ React82.createElement(Stack64, { gap: "xs" }, /* @__PURE__ */ React82.createElement(Text39, { size: "sm", style: { color: "#adb5bd" } }, "Rationale (optional)"), /* @__PURE__ */ React82.createElement(
7231
+ /* @__PURE__ */ React83.createElement(Text40, { fw: 500, tt: "capitalize", style: { textAlign: "left" } }, voteType === "no_with_veto" ? "No with Veto" : voteType)
7232
+ )))), /* @__PURE__ */ React83.createElement(Stack65, { gap: "xs" }, /* @__PURE__ */ React83.createElement(Text40, { size: "sm", style: { color: "#adb5bd" } }, "Rationale (optional)"), /* @__PURE__ */ React83.createElement(
7149
7233
  Textarea17,
7150
7234
  {
7151
7235
  value: rationale,
@@ -7162,7 +7246,7 @@ var FlowGeneralTab = ({
7162
7246
  }
7163
7247
  }
7164
7248
  }
7165
- ))), (status === "executed" || proposalStatus === "executed") && /* @__PURE__ */ React82.createElement(
7249
+ ))), (status === "executed" || proposalStatus === "executed") && /* @__PURE__ */ React83.createElement(
7166
7250
  Card16,
7167
7251
  {
7168
7252
  padding: "md",
@@ -7172,8 +7256,8 @@ var FlowGeneralTab = ({
7172
7256
  border: "1px solid #333"
7173
7257
  }
7174
7258
  },
7175
- /* @__PURE__ */ React82.createElement(Stack64, { gap: "xs" }, /* @__PURE__ */ React82.createElement(Text39, { fw: 500, size: "sm", style: { color: "#f1f3f5" } }, "Proposal Executed"), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", style: { color: "#adb5bd" } }, "This proposal has been successfully executed."))
7176
- ), !hasSubmittedProposal && /* @__PURE__ */ React82.createElement(Stack64, { gap: "lg" }, /* @__PURE__ */ React82.createElement(Stack64, { gap: "md" }, ["yes", "no", "no_with_veto", "abstain"].map((voteType) => /* @__PURE__ */ React82.createElement(Tooltip3, { key: voteType, label: "Proposal must be submitted before voting", position: "top" }, /* @__PURE__ */ React82.createElement(
7259
+ /* @__PURE__ */ React83.createElement(Stack65, { gap: "xs" }, /* @__PURE__ */ React83.createElement(Text40, { fw: 500, size: "sm", style: { color: "#f1f3f5" } }, "Proposal Executed"), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", style: { color: "#adb5bd" } }, "This proposal has been successfully executed."))
7260
+ ), !hasSubmittedProposal && /* @__PURE__ */ React83.createElement(Stack65, { gap: "lg" }, /* @__PURE__ */ React83.createElement(Stack65, { gap: "md" }, ["yes", "no", "no_with_veto", "abstain"].map((voteType) => /* @__PURE__ */ React83.createElement(Tooltip3, { key: voteType, label: "Proposal must be submitted before voting", position: "top" }, /* @__PURE__ */ React83.createElement(
7177
7261
  Button14,
7178
7262
  {
7179
7263
  variant: "outline",
@@ -7190,8 +7274,8 @@ var FlowGeneralTab = ({
7190
7274
  opacity: 0.5
7191
7275
  }
7192
7276
  },
7193
- /* @__PURE__ */ React82.createElement(Text39, { fw: 500, tt: "capitalize", style: { textAlign: "left" } }, voteType === "no_with_veto" ? "No with Veto" : voteType)
7194
- ))))), hasSubmittedProposal && !hasVoted && selectedVote && (status === "open" || proposalStatus === "open") && /* @__PURE__ */ React82.createElement(Tooltip3, { label: disabled ? isDisabled?.message : "Sign to vote", position: "top" }, /* @__PURE__ */ React82.createElement("div", null, /* @__PURE__ */ React82.createElement(
7277
+ /* @__PURE__ */ React83.createElement(Text40, { fw: 500, tt: "capitalize", style: { textAlign: "left" } }, voteType === "no_with_veto" ? "No with Veto" : voteType)
7278
+ ))))), hasSubmittedProposal && !hasVoted && selectedVote && (status === "open" || proposalStatus === "open") && /* @__PURE__ */ React83.createElement(Tooltip3, { label: disabled ? isDisabled?.message : "Sign to vote", position: "top" }, /* @__PURE__ */ React83.createElement("div", null, /* @__PURE__ */ React83.createElement(
7195
7279
  Button14,
7196
7280
  {
7197
7281
  size: "sm",
@@ -7207,7 +7291,7 @@ var FlowGeneralTab = ({
7207
7291
  }
7208
7292
  },
7209
7293
  "Sign"
7210
- ))), hasVoted && hasSubmittedProposal && /* @__PURE__ */ React82.createElement(
7294
+ ))), hasVoted && hasSubmittedProposal && /* @__PURE__ */ React83.createElement(
7211
7295
  Card16,
7212
7296
  {
7213
7297
  padding: "md",
@@ -7218,8 +7302,8 @@ var FlowGeneralTab = ({
7218
7302
  color: "#f1f3f5"
7219
7303
  }
7220
7304
  },
7221
- /* @__PURE__ */ React82.createElement(Stack64, { gap: "xs" }, /* @__PURE__ */ React82.createElement(Group22, { gap: "xs", align: "center" }, /* @__PURE__ */ React82.createElement(
7222
- Box16,
7305
+ /* @__PURE__ */ React83.createElement(Stack65, { gap: "xs" }, /* @__PURE__ */ React83.createElement(Group23, { gap: "xs", align: "center" }, /* @__PURE__ */ React83.createElement(
7306
+ Box17,
7223
7307
  {
7224
7308
  style: {
7225
7309
  width: 8,
@@ -7228,13 +7312,13 @@ var FlowGeneralTab = ({
7228
7312
  borderRadius: "50%"
7229
7313
  }
7230
7314
  }
7231
- ), /* @__PURE__ */ React82.createElement(Text39, { size: "sm", fw: 500, style: { color: "#51cf66" } }, "Vote Submitted")), /* @__PURE__ */ React82.createElement(Text39, { size: "xs", style: { color: "#adb5bd" } }, "You have already voted on this proposal. Your vote:", " ", /* @__PURE__ */ React82.createElement(Text39, { span: true, fw: 500, tt: "capitalize" }, userVote?.vote?.vote)))
7315
+ ), /* @__PURE__ */ React83.createElement(Text40, { size: "sm", fw: 500, style: { color: "#51cf66" } }, "Vote Submitted")), /* @__PURE__ */ React83.createElement(Text40, { size: "xs", style: { color: "#adb5bd" } }, "You have already voted on this proposal. Your vote:", " ", /* @__PURE__ */ React83.createElement(Text40, { span: true, fw: 500, tt: "capitalize" }, userVote?.vote?.vote)))
7232
7316
  ));
7233
7317
  };
7234
7318
 
7235
7319
  // src/mantine/blocks/proposal/flow/ActionsTab.tsx
7236
- import React83, { useCallback as useCallback14, useEffect as useEffect14, useState as useState20 } from "react";
7237
- import { Alert as Alert8, Button as Button15, Card as Card17, Stack as Stack65, Text as Text40 } from "@mantine/core";
7320
+ import React84, { useCallback as useCallback14, useEffect as useEffect14, useState as useState20 } from "react";
7321
+ import { Alert as Alert8, Button as Button15, Card as Card17, Stack as Stack66, Text as Text41 } from "@mantine/core";
7238
7322
  var ActionsTab2 = ({ actions, onActionsChange, editor, block, isProposalCreated }) => {
7239
7323
  const [isEditorVisible, setIsEditorVisible] = useState20(false);
7240
7324
  const [editingIndex, setEditingIndex] = useState20(null);
@@ -7293,7 +7377,7 @@ var ActionsTab2 = ({ actions, onActionsChange, editor, block, isProposalCreated
7293
7377
  setIsEditorVisible(false);
7294
7378
  setEditingIndex(null);
7295
7379
  }, []);
7296
- return /* @__PURE__ */ React83.createElement(Stack65, { gap: "md" }, isProposalCreated && /* @__PURE__ */ React83.createElement(Alert8, { color: "yellow", title: "Actions Locked" }, /* @__PURE__ */ React83.createElement(Text40, { size: "sm" }, "Actions cannot be edited after the proposal has been created. These actions are now part of the on-chain proposal.")), /* @__PURE__ */ React83.createElement(Stack65, { gap: "sm" }, !isProposalCreated && /* @__PURE__ */ React83.createElement(
7380
+ return /* @__PURE__ */ React84.createElement(Stack66, { gap: "md" }, isProposalCreated && /* @__PURE__ */ React84.createElement(Alert8, { color: "yellow", title: "Actions Locked" }, /* @__PURE__ */ React84.createElement(Text41, { size: "sm" }, "Actions cannot be edited after the proposal has been created. These actions are now part of the on-chain proposal.")), /* @__PURE__ */ React84.createElement(Stack66, { gap: "sm" }, !isProposalCreated && /* @__PURE__ */ React84.createElement(
7297
7381
  Button15,
7298
7382
  {
7299
7383
  onClick: handleAddAction,
@@ -7305,7 +7389,7 @@ var ActionsTab2 = ({ actions, onActionsChange, editor, block, isProposalCreated
7305
7389
  }
7306
7390
  },
7307
7391
  "Add Action"
7308
- ), /* @__PURE__ */ React83.createElement(
7392
+ ), /* @__PURE__ */ React84.createElement(
7309
7393
  ActionsCard,
7310
7394
  {
7311
7395
  actions: currentActions,
@@ -7316,7 +7400,7 @@ var ActionsTab2 = ({ actions, onActionsChange, editor, block, isProposalCreated
7316
7400
  onRemoveAction: handleRemoveAction,
7317
7401
  disabled: isProposalCreated
7318
7402
  }
7319
- )), !isProposalCreated && isEditorVisible && /* @__PURE__ */ React83.createElement(
7403
+ )), !isProposalCreated && isEditorVisible && /* @__PURE__ */ React84.createElement(
7320
7404
  Card17,
7321
7405
  {
7322
7406
  withBorder: true,
@@ -7327,7 +7411,7 @@ var ActionsTab2 = ({ actions, onActionsChange, editor, block, isProposalCreated
7327
7411
  borderColor: "#333"
7328
7412
  }
7329
7413
  },
7330
- /* @__PURE__ */ React83.createElement(ActionsPanel, { actions: currentActions, editingIndex, onSave: handleSaveAction, onCancel: handleCancelEditor, isTemplateMode: false })
7414
+ /* @__PURE__ */ React84.createElement(ActionsPanel, { actions: currentActions, editingIndex, onSave: handleSaveAction, onCancel: handleCancelEditor, isTemplateMode: false })
7331
7415
  ));
7332
7416
  };
7333
7417
 
@@ -7414,7 +7498,7 @@ var FlowConfig = ({ editor, block }) => {
7414
7498
  setIsCreating(false);
7415
7499
  }
7416
7500
  };
7417
- const createProposalTab = /* @__PURE__ */ React84.createElement(Stack66, { gap: "lg" }, /* @__PURE__ */ React84.createElement(Stack66, { gap: "xs" }, /* @__PURE__ */ React84.createElement(Text41, { size: "sm", fw: 600 }, "DAO Group"), /* @__PURE__ */ React84.createElement(
7501
+ const createProposalTab = /* @__PURE__ */ React85.createElement(Stack67, { gap: "lg" }, /* @__PURE__ */ React85.createElement(Stack67, { gap: "xs" }, /* @__PURE__ */ React85.createElement(Text42, { size: "sm", fw: 600 }, "DAO Group"), /* @__PURE__ */ React85.createElement(
7418
7502
  SegmentedControl5,
7419
7503
  {
7420
7504
  value: inputMode,
@@ -7426,7 +7510,7 @@ var FlowConfig = ({ editor, block }) => {
7426
7510
  fullWidth: true,
7427
7511
  disabled: isProposalCreated
7428
7512
  }
7429
- ), inputMode === "select" ? /* @__PURE__ */ React84.createElement(
7513
+ ), inputMode === "select" ? /* @__PURE__ */ React85.createElement(
7430
7514
  Select10,
7431
7515
  {
7432
7516
  placeholder: loadingGroups ? "Loading groups..." : "Select a DAO group",
@@ -7444,10 +7528,10 @@ var FlowConfig = ({ editor, block }) => {
7444
7528
  label: group.name
7445
7529
  })),
7446
7530
  disabled: loadingGroups || isProposalCreated,
7447
- rightSection: loadingGroups ? /* @__PURE__ */ React84.createElement(Loader4, { size: "xs" }) : void 0,
7531
+ rightSection: loadingGroups ? /* @__PURE__ */ React85.createElement(Loader4, { size: "xs" }) : void 0,
7448
7532
  searchable: true
7449
7533
  }
7450
- ) : /* @__PURE__ */ React84.createElement(
7534
+ ) : /* @__PURE__ */ React85.createElement(
7451
7535
  TextInput33,
7452
7536
  {
7453
7537
  placeholder: "Enter DAO core address",
@@ -7459,7 +7543,7 @@ var FlowConfig = ({ editor, block }) => {
7459
7543
  },
7460
7544
  disabled: isProposalCreated
7461
7545
  }
7462
- ), coreAddress && /* @__PURE__ */ React84.createElement(Card18, { padding: "sm", radius: "md", withBorder: true }, /* @__PURE__ */ React84.createElement(Text41, { size: "xs", c: "dimmed" }, "Core Address:", " ", /* @__PURE__ */ React84.createElement(Text41, { span: true, ff: "monospace", c: "bright" }, coreAddress.slice(0, 20), "...", coreAddress.slice(-10))))), /* @__PURE__ */ React84.createElement(
7546
+ ), coreAddress && /* @__PURE__ */ React85.createElement(Card18, { padding: "sm", radius: "md", withBorder: true }, /* @__PURE__ */ React85.createElement(Text42, { size: "xs", c: "dimmed" }, "Core Address:", " ", /* @__PURE__ */ React85.createElement(Text42, { span: true, ff: "monospace", c: "bright" }, coreAddress.slice(0, 20), "...", coreAddress.slice(-10))))), /* @__PURE__ */ React85.createElement(
7463
7547
  TextInput33,
7464
7548
  {
7465
7549
  label: "Title",
@@ -7470,7 +7554,7 @@ var FlowConfig = ({ editor, block }) => {
7470
7554
  required: true,
7471
7555
  disabled: isProposalCreated
7472
7556
  }
7473
- ), /* @__PURE__ */ React84.createElement(
7557
+ ), /* @__PURE__ */ React85.createElement(
7474
7558
  Textarea18,
7475
7559
  {
7476
7560
  label: "Description",
@@ -7482,7 +7566,7 @@ var FlowConfig = ({ editor, block }) => {
7482
7566
  required: true,
7483
7567
  disabled: isProposalCreated
7484
7568
  }
7485
- ), errors.general && /* @__PURE__ */ React84.createElement(Text41, { size: "sm", c: "red" }, errors.general), isProposalCreated && /* @__PURE__ */ React84.createElement(Card18, { padding: "md", radius: "md", withBorder: true, style: { borderColor: "var(--mantine-color-green-6)" } }, /* @__PURE__ */ React84.createElement(Text41, { fw: 500, size: "sm", c: "green" }, "Proposal Created Successfully"), /* @__PURE__ */ React84.createElement(Text41, { size: "sm", c: "dimmed" }, "Your proposal has been created and is now open for voting.")), /* @__PURE__ */ React84.createElement(Button16, { fullWidth: true, onClick: handleCreateProposal, disabled: isProposalCreated, loading: isCreating }, isProposalCreated ? "Proposal Created" : "Create Proposal"));
7569
+ ), errors.general && /* @__PURE__ */ React85.createElement(Text42, { size: "sm", c: "red" }, errors.general), isProposalCreated && /* @__PURE__ */ React85.createElement(Card18, { padding: "md", radius: "md", withBorder: true, style: { borderColor: "var(--mantine-color-green-6)" } }, /* @__PURE__ */ React85.createElement(Text42, { fw: 500, size: "sm", c: "green" }, "Proposal Created Successfully"), /* @__PURE__ */ React85.createElement(Text42, { size: "sm", c: "dimmed" }, "Your proposal has been created and is now open for voting.")), /* @__PURE__ */ React85.createElement(Button16, { fullWidth: true, onClick: handleCreateProposal, disabled: isProposalCreated, loading: isCreating }, isProposalCreated ? "Proposal Created" : "Create Proposal"));
7486
7570
  const handleActionsChange = useCallback15(
7487
7571
  (newActions) => {
7488
7572
  updateProp("actions", JSON.stringify(newActions));
@@ -7498,12 +7582,12 @@ var FlowConfig = ({ editor, block }) => {
7498
7582
  {
7499
7583
  label: "Actions",
7500
7584
  value: "actions",
7501
- content: /* @__PURE__ */ React84.createElement(ActionsTab2, { actions: block.props.actions || "[]", onActionsChange: handleActionsChange, editor, block, isProposalCreated })
7585
+ content: /* @__PURE__ */ React85.createElement(ActionsTab2, { actions: block.props.actions || "[]", onActionsChange: handleActionsChange, editor, block, isProposalCreated })
7502
7586
  },
7503
7587
  {
7504
7588
  label: "Vote",
7505
7589
  value: "vote",
7506
- content: /* @__PURE__ */ React84.createElement(
7590
+ content: /* @__PURE__ */ React85.createElement(
7507
7591
  FlowGeneralTab,
7508
7592
  {
7509
7593
  proposalId: voteLogic.proposalId,
@@ -7519,7 +7603,7 @@ var FlowConfig = ({ editor, block }) => {
7519
7603
  )
7520
7604
  }
7521
7605
  ];
7522
- return /* @__PURE__ */ React84.createElement(
7606
+ return /* @__PURE__ */ React85.createElement(
7523
7607
  Paper7,
7524
7608
  {
7525
7609
  p: "md",
@@ -7530,7 +7614,7 @@ var FlowConfig = ({ editor, block }) => {
7530
7614
  flexDirection: "column"
7531
7615
  }
7532
7616
  },
7533
- /* @__PURE__ */ React84.createElement(
7617
+ /* @__PURE__ */ React85.createElement(
7534
7618
  "div",
7535
7619
  {
7536
7620
  style: {
@@ -7540,10 +7624,10 @@ var FlowConfig = ({ editor, block }) => {
7540
7624
  marginBottom: "1rem"
7541
7625
  }
7542
7626
  },
7543
- /* @__PURE__ */ React84.createElement(Title6, { order: 3 }, "Proposal Settings"),
7544
- /* @__PURE__ */ React84.createElement(CloseButton5, { onClick: closePanel })
7627
+ /* @__PURE__ */ React85.createElement(Title6, { order: 3 }, "Proposal Settings"),
7628
+ /* @__PURE__ */ React85.createElement(CloseButton5, { onClick: closePanel })
7545
7629
  ),
7546
- /* @__PURE__ */ React84.createElement(ReusablePanel, { extraTabs, context: { editor, block } })
7630
+ /* @__PURE__ */ React85.createElement(ReusablePanel, { extraTabs, context: { editor, block } })
7547
7631
  );
7548
7632
  };
7549
7633
 
@@ -7555,13 +7639,13 @@ var ProposalFlowView = ({ block, editor }) => {
7555
7639
  block,
7556
7640
  editor
7557
7641
  });
7558
- const panelContent = useMemo12(() => /* @__PURE__ */ React85.createElement(FlowConfig, { editor, block }), [editor, block]);
7642
+ const panelContent = useMemo12(() => /* @__PURE__ */ React86.createElement(FlowConfig, { editor, block }), [editor, block]);
7559
7643
  const { open } = usePanel(panelId, panelContent);
7560
7644
  const handleVote = () => {
7561
7645
  open();
7562
7646
  };
7563
7647
  const showVoteButton = (block.props.voteEnabled || false) && proposalId;
7564
- return /* @__PURE__ */ React85.createElement(
7648
+ return /* @__PURE__ */ React86.createElement(
7565
7649
  OnChainProposalCard,
7566
7650
  {
7567
7651
  title,
@@ -7588,10 +7672,10 @@ function ProposalBlock({ editor, block }) {
7588
7672
  console.log("[ProposalBlock] Rendering with docType:", docType);
7589
7673
  if (docType === "template") {
7590
7674
  console.log("[ProposalBlock] Rendering ProposalTemplateView (docType is template)");
7591
- return /* @__PURE__ */ React86.createElement(ProposalTemplateView, { editor, block });
7675
+ return /* @__PURE__ */ React87.createElement(ProposalTemplateView, { editor, block });
7592
7676
  }
7593
7677
  console.log("[ProposalBlock] Rendering ProposalFlowView (docType is flow)");
7594
- return /* @__PURE__ */ React86.createElement(ProposalFlowView, { block, editor });
7678
+ return /* @__PURE__ */ React87.createElement(ProposalFlowView, { block, editor });
7595
7679
  }
7596
7680
 
7597
7681
  // src/mantine/blocks/proposal/ProposalBlockSpec.tsx
@@ -7650,38 +7734,38 @@ var ProposalBlockSpec = createReactBlockSpec4(
7650
7734
  {
7651
7735
  render: (props) => {
7652
7736
  const ixoProps = props;
7653
- return /* @__PURE__ */ React87.createElement(ProposalBlock, { ...ixoProps });
7737
+ return /* @__PURE__ */ React88.createElement(ProposalBlock, { ...ixoProps });
7654
7738
  }
7655
7739
  }
7656
7740
  );
7657
7741
 
7658
7742
  // src/mantine/blocks/apiRequest/ApiRequestBlockSpec.tsx
7659
- import React96 from "react";
7743
+ import React97 from "react";
7660
7744
  import { createReactBlockSpec as createReactBlockSpec5 } from "@blocknote/react";
7661
7745
 
7662
7746
  // src/mantine/blocks/apiRequest/ApiRequestBlock.tsx
7663
- import React95 from "react";
7747
+ import React96 from "react";
7664
7748
 
7665
7749
  // src/mantine/blocks/apiRequest/template/TemplateView.tsx
7666
- import React93, { useMemo as useMemo16 } from "react";
7750
+ import React94, { useMemo as useMemo16 } from "react";
7667
7751
 
7668
7752
  // src/mantine/blocks/apiRequest/template/TemplateConfig.tsx
7669
- import React92, { useCallback as useCallback17, useMemo as useMemo15 } from "react";
7753
+ import React93, { useCallback as useCallback17, useMemo as useMemo15 } from "react";
7670
7754
  import { Paper as Paper10, CloseButton as CloseButton6, Title as Title7 } from "@mantine/core";
7671
7755
 
7672
7756
  // src/mantine/blocks/apiRequest/template/GeneralTab.tsx
7673
- import React90, { useEffect as useEffect16, useState as useState24 } from "react";
7674
- import { Divider as Divider5, Select as Select11, Stack as Stack68, Text as Text43, TextInput as TextInput34, Textarea as Textarea19, Button as Button18, Group as Group25, ActionIcon as ActionIcon12, Paper as Paper8 } from "@mantine/core";
7757
+ import React91, { useEffect as useEffect16, useState as useState24 } from "react";
7758
+ import { Divider as Divider5, Select as Select11, Stack as Stack69, Text as Text44, TextInput as TextInput34, Textarea as Textarea19, Button as Button18, Group as Group26, ActionIcon as ActionIcon12, Paper as Paper8 } from "@mantine/core";
7675
7759
  import { IconTrash, IconPlus } from "@tabler/icons-react";
7676
7760
 
7677
7761
  // src/mantine/components/DataInput/DataInput.tsx
7678
- import React89, { useState as useState23, useCallback as useCallback16, useMemo as useMemo14 } from "react";
7679
- import { Input as Input2, ActionIcon as ActionIcon11, Tooltip as Tooltip5, Badge as Badge11, Group as Group24 } from "@mantine/core";
7762
+ import React90, { useState as useState23, useCallback as useCallback16, useMemo as useMemo14 } from "react";
7763
+ import { Input as Input2, ActionIcon as ActionIcon11, Tooltip as Tooltip5, Badge as Badge11, Group as Group25 } from "@mantine/core";
7680
7764
  import { IconVariable, IconX as IconX2 } from "@tabler/icons-react";
7681
7765
 
7682
7766
  // src/mantine/components/DataInput/BlockPropSelector.tsx
7683
- import React88, { useState as useState22, useMemo as useMemo13 } from "react";
7684
- import { Popover, Text as Text42, Stack as Stack67, Group as Group23, ActionIcon as ActionIcon10, Input, ScrollArea as ScrollArea4, Badge as Badge10, Box as Box17, Tooltip as Tooltip4 } from "@mantine/core";
7767
+ import React89, { useState as useState22, useMemo as useMemo13 } from "react";
7768
+ import { Popover, Text as Text43, Stack as Stack68, Group as Group24, ActionIcon as ActionIcon10, Input, ScrollArea as ScrollArea4, Badge as Badge10, Box as Box18, Tooltip as Tooltip4 } from "@mantine/core";
7685
7769
  import { IconSearch, IconX, IconCircle, IconChevronRight, IconArrowLeft } from "@tabler/icons-react";
7686
7770
  function buildPropertyTree(properties) {
7687
7771
  const root = [];
@@ -7804,20 +7888,20 @@ function BlockPropSelector({ children, opened, onClose, onSelect, editorDocument
7804
7888
  setSearchQuery("");
7805
7889
  onClose();
7806
7890
  };
7807
- return /* @__PURE__ */ React88.createElement(Popover, { opened, onClose: handleClose, position: "bottom-end", width: 420, shadow: "md", withinPortal: true }, /* @__PURE__ */ React88.createElement(Popover.Target, null, children), /* @__PURE__ */ React88.createElement(Popover.Dropdown, { p: "md" }, /* @__PURE__ */ React88.createElement(Stack67, { gap: "md" }, /* @__PURE__ */ React88.createElement(Group23, { justify: "space-between", align: "center" }, /* @__PURE__ */ React88.createElement(Group23, { gap: "xs" }, (selectedBlock || navigationPath.length > 0) && /* @__PURE__ */ React88.createElement(ActionIcon10, { variant: "subtle", size: "sm", onClick: handleBack }, /* @__PURE__ */ React88.createElement(IconArrowLeft, { size: 16 })), /* @__PURE__ */ React88.createElement(Text42, { fw: 600, size: "sm" }, !selectedBlock ? "Select a Block" : navigationPath.length === 0 ? `${selectedBlock.displayName} - Select Property` : `${navigationPath[navigationPath.length - 1].displayName}`)), /* @__PURE__ */ React88.createElement(ActionIcon10, { variant: "subtle", size: "sm", onClick: handleClose }, /* @__PURE__ */ React88.createElement(IconX, { size: 16 }))), !selectedBlock && /* @__PURE__ */ React88.createElement(
7891
+ return /* @__PURE__ */ React89.createElement(Popover, { opened, onClose: handleClose, position: "bottom-end", width: 420, shadow: "md", withinPortal: true }, /* @__PURE__ */ React89.createElement(Popover.Target, null, children), /* @__PURE__ */ React89.createElement(Popover.Dropdown, { p: "md" }, /* @__PURE__ */ React89.createElement(Stack68, { gap: "md" }, /* @__PURE__ */ React89.createElement(Group24, { justify: "space-between", align: "center" }, /* @__PURE__ */ React89.createElement(Group24, { gap: "xs" }, (selectedBlock || navigationPath.length > 0) && /* @__PURE__ */ React89.createElement(ActionIcon10, { variant: "subtle", size: "sm", onClick: handleBack }, /* @__PURE__ */ React89.createElement(IconArrowLeft, { size: 16 })), /* @__PURE__ */ React89.createElement(Text43, { fw: 600, size: "sm" }, !selectedBlock ? "Select a Block" : navigationPath.length === 0 ? `${selectedBlock.displayName} - Select Property` : `${navigationPath[navigationPath.length - 1].displayName}`)), /* @__PURE__ */ React89.createElement(ActionIcon10, { variant: "subtle", size: "sm", onClick: handleClose }, /* @__PURE__ */ React89.createElement(IconX, { size: 16 }))), !selectedBlock && /* @__PURE__ */ React89.createElement(
7808
7892
  Input,
7809
7893
  {
7810
7894
  placeholder: "Search blocks and properties...",
7811
- leftSection: /* @__PURE__ */ React88.createElement(IconSearch, { size: 16 }),
7895
+ leftSection: /* @__PURE__ */ React89.createElement(IconSearch, { size: 16 }),
7812
7896
  value: searchQuery,
7813
7897
  onChange: (e) => setSearchQuery(e.currentTarget.value),
7814
7898
  size: "xs",
7815
- rightSection: searchQuery && /* @__PURE__ */ React88.createElement(ActionIcon10, { variant: "subtle", onClick: () => setSearchQuery(""), size: "xs" }, /* @__PURE__ */ React88.createElement(IconX, { size: 12 }))
7899
+ rightSection: searchQuery && /* @__PURE__ */ React89.createElement(ActionIcon10, { variant: "subtle", onClick: () => setSearchQuery(""), size: "xs" }, /* @__PURE__ */ React89.createElement(IconX, { size: 12 }))
7816
7900
  }
7817
- ), /* @__PURE__ */ React88.createElement(ScrollArea4, { h: 300, type: "auto" }, !selectedBlock ? (
7901
+ ), /* @__PURE__ */ React89.createElement(ScrollArea4, { h: 300, type: "auto" }, !selectedBlock ? (
7818
7902
  // Block selection view
7819
- filteredBlocks.length === 0 ? /* @__PURE__ */ React88.createElement(Text42, { c: "dimmed", ta: "center", py: "xl", size: "sm" }, availableBlocks.length === 0 ? "No blocks with referenceable properties found" : "No blocks match your search") : /* @__PURE__ */ React88.createElement(Stack67, { gap: "sm" }, filteredBlocks.map((block) => /* @__PURE__ */ React88.createElement(
7820
- Box17,
7903
+ filteredBlocks.length === 0 ? /* @__PURE__ */ React89.createElement(Text43, { c: "dimmed", ta: "center", py: "xl", size: "sm" }, availableBlocks.length === 0 ? "No blocks with referenceable properties found" : "No blocks match your search") : /* @__PURE__ */ React89.createElement(Stack68, { gap: "sm" }, filteredBlocks.map((block) => /* @__PURE__ */ React89.createElement(
7904
+ Box18,
7821
7905
  {
7822
7906
  key: block.id,
7823
7907
  onClick: () => handleBlockSelect(block),
@@ -7837,19 +7921,19 @@ function BlockPropSelector({ children, opened, onClose, onSelect, editorDocument
7837
7921
  e.currentTarget.style.borderColor = "var(--mantine-color-gray-3)";
7838
7922
  }
7839
7923
  },
7840
- /* @__PURE__ */ React88.createElement(Group23, { gap: "xs", justify: "space-between" }, /* @__PURE__ */ React88.createElement(Group23, { gap: "xs" }, /* @__PURE__ */ React88.createElement(
7924
+ /* @__PURE__ */ React89.createElement(Group24, { gap: "xs", justify: "space-between" }, /* @__PURE__ */ React89.createElement(Group24, { gap: "xs" }, /* @__PURE__ */ React89.createElement(
7841
7925
  IconCircle,
7842
7926
  {
7843
7927
  size: 10,
7844
7928
  fill: `var(--mantine-color-${getBlockTypeColor(block.type)}-6)`,
7845
7929
  color: `var(--mantine-color-${getBlockTypeColor(block.type)}-6)`
7846
7930
  }
7847
- ), /* @__PURE__ */ React88.createElement(Text42, { fw: 500, size: "sm" }, block.displayName), /* @__PURE__ */ React88.createElement(Badge10, { size: "xs", variant: "light", color: getBlockTypeColor(block.type) }, block.type)), /* @__PURE__ */ React88.createElement(IconChevronRight, { size: 16, color: "var(--mantine-color-gray-5)" }))
7931
+ ), /* @__PURE__ */ React89.createElement(Text43, { fw: 500, size: "sm" }, block.displayName), /* @__PURE__ */ React89.createElement(Badge10, { size: "xs", variant: "light", color: getBlockTypeColor(block.type) }, block.type)), /* @__PURE__ */ React89.createElement(IconChevronRight, { size: 16, color: "var(--mantine-color-gray-5)" }))
7848
7932
  )))
7849
7933
  ) : (
7850
7934
  // Property navigation view
7851
- currentNodes.length === 0 ? /* @__PURE__ */ React88.createElement(Text42, { c: "dimmed", ta: "center", py: "xl", size: "sm" }, "No properties available") : /* @__PURE__ */ React88.createElement(Stack67, { gap: "xs" }, currentNodes.map((node, index) => /* @__PURE__ */ React88.createElement(Tooltip4, { key: index, label: node.isLeaf ? `Select ${node.displayName}` : `Navigate into ${node.displayName}`, position: "left", withArrow: true }, /* @__PURE__ */ React88.createElement(
7852
- Box17,
7935
+ currentNodes.length === 0 ? /* @__PURE__ */ React89.createElement(Text43, { c: "dimmed", ta: "center", py: "xl", size: "sm" }, "No properties available") : /* @__PURE__ */ React89.createElement(Stack68, { gap: "xs" }, currentNodes.map((node, index) => /* @__PURE__ */ React89.createElement(Tooltip4, { key: index, label: node.isLeaf ? `Select ${node.displayName}` : `Navigate into ${node.displayName}`, position: "left", withArrow: true }, /* @__PURE__ */ React89.createElement(
7936
+ Box18,
7853
7937
  {
7854
7938
  onClick: () => handleNodeClick(node),
7855
7939
  style: {
@@ -7868,7 +7952,7 @@ function BlockPropSelector({ children, opened, onClose, onSelect, editorDocument
7868
7952
  e.currentTarget.style.borderColor = "transparent";
7869
7953
  }
7870
7954
  },
7871
- /* @__PURE__ */ React88.createElement(Group23, { gap: "xs", justify: "space-between" }, /* @__PURE__ */ React88.createElement(Group23, { gap: "xs" }, /* @__PURE__ */ React88.createElement(Text42, { size: "sm" }, node.displayName), /* @__PURE__ */ React88.createElement(Badge10, { size: "xs", variant: "dot", color: "gray" }, node.type)), !node.isLeaf && /* @__PURE__ */ React88.createElement(IconChevronRight, { size: 16, color: "var(--mantine-color-gray-5)" }))
7955
+ /* @__PURE__ */ React89.createElement(Group24, { gap: "xs", justify: "space-between" }, /* @__PURE__ */ React89.createElement(Group24, { gap: "xs" }, /* @__PURE__ */ React89.createElement(Text43, { size: "sm" }, node.displayName), /* @__PURE__ */ React89.createElement(Badge10, { size: "xs", variant: "dot", color: "gray" }, node.type)), !node.isLeaf && /* @__PURE__ */ React89.createElement(IconChevronRight, { size: 16, color: "var(--mantine-color-gray-5)" }))
7872
7956
  ))))
7873
7957
  )))));
7874
7958
  }
@@ -8006,7 +8090,7 @@ function DataInput({
8006
8090
  });
8007
8091
  onChange(newValue);
8008
8092
  }, [value, references, onChange]);
8009
- return /* @__PURE__ */ React89.createElement(Input2.Wrapper, { label, description, required, size, style: { width: "100%" } }, /* @__PURE__ */ React89.createElement(
8093
+ return /* @__PURE__ */ React90.createElement(Input2.Wrapper, { label, description, required, size, style: { width: "100%" } }, /* @__PURE__ */ React90.createElement(
8010
8094
  Input2,
8011
8095
  {
8012
8096
  value: value || "",
@@ -8017,7 +8101,7 @@ function DataInput({
8017
8101
  size,
8018
8102
  style: { width: "100%" },
8019
8103
  rightSectionPointerEvents: "all",
8020
- rightSection: /* @__PURE__ */ React89.createElement(Group24, { gap: 4, wrap: "nowrap" }, containsReferences && /* @__PURE__ */ React89.createElement(Tooltip5, { label: "Click to clear all references", position: "left" }, /* @__PURE__ */ React89.createElement(Badge11, { size: "sm", variant: "light", color: "blue", style: { cursor: "pointer" }, onClick: handleClearReferences, leftSection: /* @__PURE__ */ React89.createElement(IconX2, { size: 10 }) }, references.length, " ref", references.length !== 1 ? "s" : "")), /* @__PURE__ */ React89.createElement(
8104
+ rightSection: /* @__PURE__ */ React90.createElement(Group25, { gap: 4, wrap: "nowrap" }, containsReferences && /* @__PURE__ */ React90.createElement(Tooltip5, { label: "Click to clear all references", position: "left" }, /* @__PURE__ */ React90.createElement(Badge11, { size: "sm", variant: "light", color: "blue", style: { cursor: "pointer" }, onClick: handleClearReferences, leftSection: /* @__PURE__ */ React90.createElement(IconX2, { size: 10 }) }, references.length, " ref", references.length !== 1 ? "s" : "")), /* @__PURE__ */ React90.createElement(
8021
8105
  BlockPropSelector,
8022
8106
  {
8023
8107
  opened: selectorOpened,
@@ -8026,7 +8110,7 @@ function DataInput({
8026
8110
  editorDocument,
8027
8111
  currentBlockId
8028
8112
  },
8029
- /* @__PURE__ */ React89.createElement(Tooltip5, { label: "Insert reference to another block's property", position: "left" }, /* @__PURE__ */ React89.createElement(
8113
+ /* @__PURE__ */ React90.createElement(Tooltip5, { label: "Insert reference to another block's property", position: "left" }, /* @__PURE__ */ React90.createElement(
8030
8114
  ActionIcon11,
8031
8115
  {
8032
8116
  variant: containsReferences ? "light" : "subtle",
@@ -8035,7 +8119,7 @@ function DataInput({
8035
8119
  disabled,
8036
8120
  size
8037
8121
  },
8038
- /* @__PURE__ */ React89.createElement(IconVariable, { size: 16 })
8122
+ /* @__PURE__ */ React90.createElement(IconVariable, { size: 16 })
8039
8123
  ))
8040
8124
  ))
8041
8125
  }
@@ -8103,7 +8187,7 @@ var GeneralTab4 = ({
8103
8187
  setLocalBody(newBody);
8104
8188
  onBodyChange(newBody);
8105
8189
  };
8106
- return /* @__PURE__ */ React90.createElement(Stack68, { gap: "lg" }, /* @__PURE__ */ React90.createElement(Stack68, { gap: "xs" }, /* @__PURE__ */ React90.createElement(Text43, { size: "sm", fw: 600 }, "Title"), /* @__PURE__ */ React90.createElement(
8190
+ return /* @__PURE__ */ React91.createElement(Stack69, { gap: "lg" }, /* @__PURE__ */ React91.createElement(Stack69, { gap: "xs" }, /* @__PURE__ */ React91.createElement(Text44, { size: "sm", fw: 600 }, "Title"), /* @__PURE__ */ React91.createElement(
8107
8191
  TextInput34,
8108
8192
  {
8109
8193
  placeholder: "e.g. Submit User Data",
@@ -8114,7 +8198,7 @@ var GeneralTab4 = ({
8114
8198
  onTitleChange(newTitle);
8115
8199
  }
8116
8200
  }
8117
- )), /* @__PURE__ */ React90.createElement(Stack68, { gap: "xs" }, /* @__PURE__ */ React90.createElement(Text43, { size: "sm", fw: 600 }, "Description"), /* @__PURE__ */ React90.createElement(
8201
+ )), /* @__PURE__ */ React91.createElement(Stack69, { gap: "xs" }, /* @__PURE__ */ React91.createElement(Text44, { size: "sm", fw: 600 }, "Description"), /* @__PURE__ */ React91.createElement(
8118
8202
  Textarea19,
8119
8203
  {
8120
8204
  placeholder: "Describe what this API request does",
@@ -8126,7 +8210,7 @@ var GeneralTab4 = ({
8126
8210
  onDescriptionChange(newDescription);
8127
8211
  }
8128
8212
  }
8129
- )), /* @__PURE__ */ React90.createElement(Divider5, { variant: "dashed" }), /* @__PURE__ */ React90.createElement(Stack68, { gap: "xs" }, /* @__PURE__ */ React90.createElement(Text43, { size: "sm", fw: 600 }, "HTTP Method"), /* @__PURE__ */ React90.createElement(
8213
+ )), /* @__PURE__ */ React91.createElement(Divider5, { variant: "dashed" }), /* @__PURE__ */ React91.createElement(Stack69, { gap: "xs" }, /* @__PURE__ */ React91.createElement(Text44, { size: "sm", fw: 600 }, "HTTP Method"), /* @__PURE__ */ React91.createElement(
8130
8214
  Select11,
8131
8215
  {
8132
8216
  value: localMethod,
@@ -8143,7 +8227,7 @@ var GeneralTab4 = ({
8143
8227
  { value: "PATCH", label: "PATCH" }
8144
8228
  ]
8145
8229
  }
8146
- )), /* @__PURE__ */ React90.createElement(Stack68, { gap: "xs" }, /* @__PURE__ */ React90.createElement(Text43, { size: "sm", fw: 600 }, "Endpoint URL"), /* @__PURE__ */ React90.createElement(
8230
+ )), /* @__PURE__ */ React91.createElement(Stack69, { gap: "xs" }, /* @__PURE__ */ React91.createElement(Text44, { size: "sm", fw: 600 }, "Endpoint URL"), /* @__PURE__ */ React91.createElement(
8147
8231
  TextInput34,
8148
8232
  {
8149
8233
  placeholder: "https://api.example.com/endpoint",
@@ -8154,7 +8238,7 @@ var GeneralTab4 = ({
8154
8238
  onEndpointChange(newEndpoint);
8155
8239
  }
8156
8240
  }
8157
- )), /* @__PURE__ */ React90.createElement(Divider5, { variant: "dashed" }), /* @__PURE__ */ React90.createElement(Stack68, { gap: "xs" }, /* @__PURE__ */ React90.createElement(Group25, { justify: "space-between" }, /* @__PURE__ */ React90.createElement(Text43, { size: "sm", fw: 600 }, "Request Headers"), /* @__PURE__ */ React90.createElement(Button18, { size: "xs", variant: "light", leftSection: /* @__PURE__ */ React90.createElement(IconPlus, { size: 14 }), onClick: handleAddHeader }, "Add Header")), /* @__PURE__ */ React90.createElement(Text43, { size: "xs" }, "Add custom headers to your API request (e.g., Authorization, Content-Type)"), localHeaders.length > 0 && /* @__PURE__ */ React90.createElement(Stack68, { gap: "xs" }, localHeaders.map((header, index) => /* @__PURE__ */ React90.createElement(Paper8, { key: index, p: "xs" }, /* @__PURE__ */ React90.createElement(Group25, { gap: "xs", align: "flex-start" }, /* @__PURE__ */ React90.createElement(
8241
+ )), /* @__PURE__ */ React91.createElement(Divider5, { variant: "dashed" }), /* @__PURE__ */ React91.createElement(Stack69, { gap: "xs" }, /* @__PURE__ */ React91.createElement(Group26, { justify: "space-between" }, /* @__PURE__ */ React91.createElement(Text44, { size: "sm", fw: 600 }, "Request Headers"), /* @__PURE__ */ React91.createElement(Button18, { size: "xs", variant: "light", leftSection: /* @__PURE__ */ React91.createElement(IconPlus, { size: 14 }), onClick: handleAddHeader }, "Add Header")), /* @__PURE__ */ React91.createElement(Text44, { size: "xs" }, "Add custom headers to your API request (e.g., Authorization, Content-Type)"), localHeaders.length > 0 && /* @__PURE__ */ React91.createElement(Stack69, { gap: "xs" }, localHeaders.map((header, index) => /* @__PURE__ */ React91.createElement(Paper8, { key: index, p: "xs" }, /* @__PURE__ */ React91.createElement(Group26, { gap: "xs", align: "flex-start" }, /* @__PURE__ */ React91.createElement(
8158
8242
  DataInput,
8159
8243
  {
8160
8244
  placeholder: "Header key (e.g., Authorization)",
@@ -8164,7 +8248,7 @@ var GeneralTab4 = ({
8164
8248
  currentBlockId: blockId,
8165
8249
  size: "sm"
8166
8250
  }
8167
- ), /* @__PURE__ */ React90.createElement(
8251
+ ), /* @__PURE__ */ React91.createElement(
8168
8252
  DataInput,
8169
8253
  {
8170
8254
  placeholder: "Header value (e.g., Bearer token123)",
@@ -8174,7 +8258,7 @@ var GeneralTab4 = ({
8174
8258
  currentBlockId: blockId,
8175
8259
  size: "sm"
8176
8260
  }
8177
- ), /* @__PURE__ */ React90.createElement(ActionIcon12, { color: "red", variant: "subtle", onClick: () => handleRemoveHeader(index) }, /* @__PURE__ */ React90.createElement(IconTrash, { size: 16 }))))))), /* @__PURE__ */ React90.createElement(Divider5, { variant: "dashed" }), /* @__PURE__ */ React90.createElement(Stack68, { gap: "xs" }, /* @__PURE__ */ React90.createElement(Group25, { justify: "space-between" }, /* @__PURE__ */ React90.createElement(Text43, { size: "sm", fw: 600 }, "Request Body (JSON)"), /* @__PURE__ */ React90.createElement(Button18, { size: "xs", variant: "light", leftSection: /* @__PURE__ */ React90.createElement(IconPlus, { size: 14 }), onClick: handleAddBodyField }, "Add Field")), /* @__PURE__ */ React90.createElement(Text43, { size: "xs" }, "Build your JSON request body as key-value pairs"), localBody.length > 0 && /* @__PURE__ */ React90.createElement(Stack68, { gap: "xs" }, localBody.map((field, index) => /* @__PURE__ */ React90.createElement(Paper8, { key: index, p: "xs" }, /* @__PURE__ */ React90.createElement(Group25, { gap: "xs", align: "flex-start" }, /* @__PURE__ */ React90.createElement(
8261
+ ), /* @__PURE__ */ React91.createElement(ActionIcon12, { color: "red", variant: "subtle", onClick: () => handleRemoveHeader(index) }, /* @__PURE__ */ React91.createElement(IconTrash, { size: 16 }))))))), /* @__PURE__ */ React91.createElement(Divider5, { variant: "dashed" }), /* @__PURE__ */ React91.createElement(Stack69, { gap: "xs" }, /* @__PURE__ */ React91.createElement(Group26, { justify: "space-between" }, /* @__PURE__ */ React91.createElement(Text44, { size: "sm", fw: 600 }, "Request Body (JSON)"), /* @__PURE__ */ React91.createElement(Button18, { size: "xs", variant: "light", leftSection: /* @__PURE__ */ React91.createElement(IconPlus, { size: 14 }), onClick: handleAddBodyField }, "Add Field")), /* @__PURE__ */ React91.createElement(Text44, { size: "xs" }, "Build your JSON request body as key-value pairs"), localBody.length > 0 && /* @__PURE__ */ React91.createElement(Stack69, { gap: "xs" }, localBody.map((field, index) => /* @__PURE__ */ React91.createElement(Paper8, { key: index, p: "xs" }, /* @__PURE__ */ React91.createElement(Group26, { gap: "xs", align: "flex-start" }, /* @__PURE__ */ React91.createElement(
8178
8262
  DataInput,
8179
8263
  {
8180
8264
  placeholder: "Field key (e.g., name)",
@@ -8184,7 +8268,7 @@ var GeneralTab4 = ({
8184
8268
  currentBlockId: blockId,
8185
8269
  size: "sm"
8186
8270
  }
8187
- ), /* @__PURE__ */ React90.createElement(
8271
+ ), /* @__PURE__ */ React91.createElement(
8188
8272
  DataInput,
8189
8273
  {
8190
8274
  placeholder: "Field value (e.g., John Doe)",
@@ -8194,12 +8278,12 @@ var GeneralTab4 = ({
8194
8278
  currentBlockId: blockId,
8195
8279
  size: "sm"
8196
8280
  }
8197
- ), /* @__PURE__ */ React90.createElement(ActionIcon12, { color: "red", variant: "subtle", onClick: () => handleRemoveBodyField(index) }, /* @__PURE__ */ React90.createElement(IconTrash, { size: 16 }))))))));
8281
+ ), /* @__PURE__ */ React91.createElement(ActionIcon12, { color: "red", variant: "subtle", onClick: () => handleRemoveBodyField(index) }, /* @__PURE__ */ React91.createElement(IconTrash, { size: 16 }))))))));
8198
8282
  };
8199
8283
 
8200
8284
  // src/mantine/blocks/apiRequest/template/ResponseSchemaTab.tsx
8201
- import React91 from "react";
8202
- import { Stack as Stack69, Text as Text44, Button as Button19, Group as Group26, ActionIcon as ActionIcon13, Paper as Paper9, TextInput as TextInput35, Select as Select12, Textarea as Textarea20, Alert as Alert9, Code } from "@mantine/core";
8285
+ import React92 from "react";
8286
+ import { Stack as Stack70, Text as Text45, Button as Button19, Group as Group27, ActionIcon as ActionIcon13, Paper as Paper9, TextInput as TextInput35, Select as Select12, Textarea as Textarea20, Alert as Alert9, Code } from "@mantine/core";
8203
8287
  import { IconTrash as IconTrash2, IconPlus as IconPlus2, IconInfoCircle } from "@tabler/icons-react";
8204
8288
  var ResponseSchemaTab = ({ schema, onSchemaChange, blockId }) => {
8205
8289
  const fields = schema?.fields || [];
@@ -8224,7 +8308,7 @@ var ResponseSchemaTab = ({ schema, onSchemaChange, blockId }) => {
8224
8308
  newFields[index] = { ...newFields[index], [key]: value };
8225
8309
  onSchemaChange({ fields: newFields });
8226
8310
  };
8227
- return /* @__PURE__ */ React91.createElement(Stack69, { gap: "lg" }, /* @__PURE__ */ React91.createElement(Alert9, { icon: /* @__PURE__ */ React91.createElement(IconInfoCircle, { size: 16 }), title: "Response Schema", color: "blue" }, /* @__PURE__ */ React91.createElement(Text44, { size: "xs" }, "Define the expected structure of your API response. This allows other blocks to reference specific fields from the response data using the DataInput component.")), /* @__PURE__ */ React91.createElement(Stack69, { gap: "xs" }, /* @__PURE__ */ React91.createElement(Text44, { size: "sm", fw: 600 }, "How it works"), /* @__PURE__ */ React91.createElement(Text44, { size: "xs", c: "dimmed" }, "1. Define response fields using dot notation (e.g., ", /* @__PURE__ */ React91.createElement(Code, null, "customer.email"), ")"), /* @__PURE__ */ React91.createElement(Text44, { size: "xs", c: "dimmed" }, "2. Fields become available in DataInput selectors across other blocks"), /* @__PURE__ */ React91.createElement(Text44, { size: "xs", c: "dimmed" }, "3. Reference them like: ", /* @__PURE__ */ React91.createElement(Code, null, `{{${blockId}.response.customer.email}}`))), /* @__PURE__ */ React91.createElement(Stack69, { gap: "xs" }, /* @__PURE__ */ React91.createElement(Group26, { justify: "space-between" }, /* @__PURE__ */ React91.createElement(Text44, { size: "sm", fw: 600 }, "Response Fields"), /* @__PURE__ */ React91.createElement(Button19, { size: "xs", variant: "light", leftSection: /* @__PURE__ */ React91.createElement(IconPlus2, { size: 14 }), onClick: handleAddField }, "Add Field")), fields.length === 0 ? /* @__PURE__ */ React91.createElement(Paper9, { p: "md", withBorder: true, style: { backgroundColor: "var(--mantine-color-gray-0)" } }, /* @__PURE__ */ React91.createElement(Text44, { size: "sm", c: "dimmed", ta: "center" }, 'No response fields defined yet. Click "Add Field" to start defining your response structure.')) : /* @__PURE__ */ React91.createElement(Stack69, { gap: "md" }, fields.map((field, index) => /* @__PURE__ */ React91.createElement(Paper9, { key: index, p: "md", withBorder: true }, /* @__PURE__ */ React91.createElement(Stack69, { gap: "sm" }, /* @__PURE__ */ React91.createElement(Group26, { justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React91.createElement(Text44, { size: "sm", fw: 500 }, "Field ", index + 1), /* @__PURE__ */ React91.createElement(ActionIcon13, { color: "red", variant: "subtle", onClick: () => handleRemoveField(index) }, /* @__PURE__ */ React91.createElement(IconTrash2, { size: 16 }))), /* @__PURE__ */ React91.createElement(
8311
+ return /* @__PURE__ */ React92.createElement(Stack70, { gap: "lg" }, /* @__PURE__ */ React92.createElement(Alert9, { icon: /* @__PURE__ */ React92.createElement(IconInfoCircle, { size: 16 }), title: "Response Schema", color: "blue" }, /* @__PURE__ */ React92.createElement(Text45, { size: "xs" }, "Define the expected structure of your API response. This allows other blocks to reference specific fields from the response data using the DataInput component.")), /* @__PURE__ */ React92.createElement(Stack70, { gap: "xs" }, /* @__PURE__ */ React92.createElement(Text45, { size: "sm", fw: 600 }, "How it works"), /* @__PURE__ */ React92.createElement(Text45, { size: "xs", c: "dimmed" }, "1. Define response fields using dot notation (e.g., ", /* @__PURE__ */ React92.createElement(Code, null, "customer.email"), ")"), /* @__PURE__ */ React92.createElement(Text45, { size: "xs", c: "dimmed" }, "2. Fields become available in DataInput selectors across other blocks"), /* @__PURE__ */ React92.createElement(Text45, { size: "xs", c: "dimmed" }, "3. Reference them like: ", /* @__PURE__ */ React92.createElement(Code, null, `{{${blockId}.response.customer.email}}`))), /* @__PURE__ */ React92.createElement(Stack70, { gap: "xs" }, /* @__PURE__ */ React92.createElement(Group27, { justify: "space-between" }, /* @__PURE__ */ React92.createElement(Text45, { size: "sm", fw: 600 }, "Response Fields"), /* @__PURE__ */ React92.createElement(Button19, { size: "xs", variant: "light", leftSection: /* @__PURE__ */ React92.createElement(IconPlus2, { size: 14 }), onClick: handleAddField }, "Add Field")), fields.length === 0 ? /* @__PURE__ */ React92.createElement(Paper9, { p: "md", withBorder: true, style: { backgroundColor: "var(--mantine-color-gray-0)" } }, /* @__PURE__ */ React92.createElement(Text45, { size: "sm", c: "dimmed", ta: "center" }, 'No response fields defined yet. Click "Add Field" to start defining your response structure.')) : /* @__PURE__ */ React92.createElement(Stack70, { gap: "md" }, fields.map((field, index) => /* @__PURE__ */ React92.createElement(Paper9, { key: index, p: "md", withBorder: true }, /* @__PURE__ */ React92.createElement(Stack70, { gap: "sm" }, /* @__PURE__ */ React92.createElement(Group27, { justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React92.createElement(Text45, { size: "sm", fw: 500 }, "Field ", index + 1), /* @__PURE__ */ React92.createElement(ActionIcon13, { color: "red", variant: "subtle", onClick: () => handleRemoveField(index) }, /* @__PURE__ */ React92.createElement(IconTrash2, { size: 16 }))), /* @__PURE__ */ React92.createElement(
8228
8312
  TextInput35,
8229
8313
  {
8230
8314
  label: "Field Path",
@@ -8235,7 +8319,7 @@ var ResponseSchemaTab = ({ schema, onSchemaChange, blockId }) => {
8235
8319
  required: true,
8236
8320
  size: "sm"
8237
8321
  }
8238
- ), /* @__PURE__ */ React91.createElement(
8322
+ ), /* @__PURE__ */ React92.createElement(
8239
8323
  TextInput35,
8240
8324
  {
8241
8325
  label: "Display Name",
@@ -8246,7 +8330,7 @@ var ResponseSchemaTab = ({ schema, onSchemaChange, blockId }) => {
8246
8330
  required: true,
8247
8331
  size: "sm"
8248
8332
  }
8249
- ), /* @__PURE__ */ React91.createElement(
8333
+ ), /* @__PURE__ */ React92.createElement(
8250
8334
  Select12,
8251
8335
  {
8252
8336
  label: "Type",
@@ -8262,7 +8346,7 @@ var ResponseSchemaTab = ({ schema, onSchemaChange, blockId }) => {
8262
8346
  ],
8263
8347
  size: "sm"
8264
8348
  }
8265
- ), /* @__PURE__ */ React91.createElement(
8349
+ ), /* @__PURE__ */ React92.createElement(
8266
8350
  Textarea20,
8267
8351
  {
8268
8352
  label: "Description (optional)",
@@ -8272,7 +8356,7 @@ var ResponseSchemaTab = ({ schema, onSchemaChange, blockId }) => {
8272
8356
  minRows: 2,
8273
8357
  size: "sm"
8274
8358
  }
8275
- ), field.path && field.displayName && /* @__PURE__ */ React91.createElement(Stack69, { gap: 4 }, /* @__PURE__ */ React91.createElement(Text44, { size: "xs", c: "dimmed" }, "Reference format:"), /* @__PURE__ */ React91.createElement(Code, { block: true, style: { fontSize: "11px" } }, `{{${blockId}.response.${field.path}}}`))))))), fields.length === 0 && /* @__PURE__ */ React91.createElement(Stack69, { gap: "xs" }, /* @__PURE__ */ React91.createElement(Text44, { size: "sm", fw: 600 }, "Example Schema"), /* @__PURE__ */ React91.createElement(Text44, { size: "xs", c: "dimmed" }, "For a typical API response like:"), /* @__PURE__ */ React91.createElement(Code, { block: true, style: { fontSize: "11px" } }, `{
8359
+ ), field.path && field.displayName && /* @__PURE__ */ React92.createElement(Stack70, { gap: 4 }, /* @__PURE__ */ React92.createElement(Text45, { size: "xs", c: "dimmed" }, "Reference format:"), /* @__PURE__ */ React92.createElement(Code, { block: true, style: { fontSize: "11px" } }, `{{${blockId}.response.${field.path}}}`))))))), fields.length === 0 && /* @__PURE__ */ React92.createElement(Stack70, { gap: "xs" }, /* @__PURE__ */ React92.createElement(Text45, { size: "sm", fw: 600 }, "Example Schema"), /* @__PURE__ */ React92.createElement(Text45, { size: "xs", c: "dimmed" }, "For a typical API response like:"), /* @__PURE__ */ React92.createElement(Code, { block: true, style: { fontSize: "11px" } }, `{
8276
8360
  "customer": {
8277
8361
  "email": "user@example.com",
8278
8362
  "name": "John Doe"
@@ -8281,7 +8365,7 @@ var ResponseSchemaTab = ({ schema, onSchemaChange, blockId }) => {
8281
8365
  "id": "l1v6r07b",
8282
8366
  "name": "Product-1"
8283
8367
  }
8284
- }`), /* @__PURE__ */ React91.createElement(Text44, { size: "xs", c: "dimmed" }, "You would define fields like:"), /* @__PURE__ */ React91.createElement(Text44, { size: "xs", c: "dimmed" }, "\u2022 Path: ", /* @__PURE__ */ React91.createElement(Code, null, "customer.email"), ', Display Name: "Customer Email", Type: string'), /* @__PURE__ */ React91.createElement(Text44, { size: "xs", c: "dimmed" }, "\u2022 Path: ", /* @__PURE__ */ React91.createElement(Code, null, "customer.name"), ', Display Name: "Customer Name", Type: string'), /* @__PURE__ */ React91.createElement(Text44, { size: "xs", c: "dimmed" }, "\u2022 Path: ", /* @__PURE__ */ React91.createElement(Code, null, "product.id"), ', Display Name: "Product ID", Type: string'), /* @__PURE__ */ React91.createElement(Text44, { size: "xs", c: "dimmed" }, "\u2022 Path: ", /* @__PURE__ */ React91.createElement(Code, null, "product.name"), ', Display Name: "Product Name", Type: string')));
8368
+ }`), /* @__PURE__ */ React92.createElement(Text45, { size: "xs", c: "dimmed" }, "You would define fields like:"), /* @__PURE__ */ React92.createElement(Text45, { size: "xs", c: "dimmed" }, "\u2022 Path: ", /* @__PURE__ */ React92.createElement(Code, null, "customer.email"), ', Display Name: "Customer Email", Type: string'), /* @__PURE__ */ React92.createElement(Text45, { size: "xs", c: "dimmed" }, "\u2022 Path: ", /* @__PURE__ */ React92.createElement(Code, null, "customer.name"), ', Display Name: "Customer Name", Type: string'), /* @__PURE__ */ React92.createElement(Text45, { size: "xs", c: "dimmed" }, "\u2022 Path: ", /* @__PURE__ */ React92.createElement(Code, null, "product.id"), ', Display Name: "Product ID", Type: string'), /* @__PURE__ */ React92.createElement(Text45, { size: "xs", c: "dimmed" }, "\u2022 Path: ", /* @__PURE__ */ React92.createElement(Code, null, "product.name"), ', Display Name: "Product Name", Type: string')));
8285
8369
  };
8286
8370
 
8287
8371
  // src/mantine/blocks/apiRequest/template/TemplateConfig.tsx
@@ -8324,7 +8408,7 @@ var TemplateConfig4 = ({ editor, block }) => {
8324
8408
  {
8325
8409
  label: "General",
8326
8410
  value: "general",
8327
- content: /* @__PURE__ */ React92.createElement(
8411
+ content: /* @__PURE__ */ React93.createElement(
8328
8412
  GeneralTab4,
8329
8413
  {
8330
8414
  title: block.props.title || "",
@@ -8359,7 +8443,7 @@ var TemplateConfig4 = ({ editor, block }) => {
8359
8443
  {
8360
8444
  label: "Response Schema",
8361
8445
  value: "response-schema",
8362
- content: /* @__PURE__ */ React92.createElement(ResponseSchemaTab, { schema: parsedResponseSchema, onSchemaChange: handleSchemaChange, blockId: block.id })
8446
+ content: /* @__PURE__ */ React93.createElement(ResponseSchemaTab, { schema: parsedResponseSchema, onSchemaChange: handleSchemaChange, blockId: block.id })
8363
8447
  }
8364
8448
  ],
8365
8449
  [
@@ -8378,7 +8462,7 @@ var TemplateConfig4 = ({ editor, block }) => {
8378
8462
  editor
8379
8463
  ]
8380
8464
  );
8381
- return /* @__PURE__ */ React92.createElement(
8465
+ return /* @__PURE__ */ React93.createElement(
8382
8466
  Paper10,
8383
8467
  {
8384
8468
  p: "md",
@@ -8389,7 +8473,7 @@ var TemplateConfig4 = ({ editor, block }) => {
8389
8473
  flexDirection: "column"
8390
8474
  }
8391
8475
  },
8392
- /* @__PURE__ */ React92.createElement(
8476
+ /* @__PURE__ */ React93.createElement(
8393
8477
  "div",
8394
8478
  {
8395
8479
  style: {
@@ -8399,19 +8483,19 @@ var TemplateConfig4 = ({ editor, block }) => {
8399
8483
  marginBottom: "1rem"
8400
8484
  }
8401
8485
  },
8402
- /* @__PURE__ */ React92.createElement(Title7, { order: 3 }, "API Request Settings"),
8403
- /* @__PURE__ */ React92.createElement(CloseButton6, { onClick: closePanel })
8486
+ /* @__PURE__ */ React93.createElement(Title7, { order: 3 }, "API Request Settings"),
8487
+ /* @__PURE__ */ React93.createElement(CloseButton6, { onClick: closePanel })
8404
8488
  ),
8405
- /* @__PURE__ */ React92.createElement(ReusablePanel, { extraTabs: tabs, context: { editor, block } })
8489
+ /* @__PURE__ */ React93.createElement(ReusablePanel, { extraTabs: tabs, context: { editor, block } })
8406
8490
  );
8407
8491
  };
8408
8492
 
8409
8493
  // src/mantine/blocks/apiRequest/template/TemplateView.tsx
8410
- import { Card as Card19, Group as Group27, Stack as Stack70, Text as Text45, ActionIcon as ActionIcon14, Badge as Badge12 } from "@mantine/core";
8494
+ import { Card as Card19, Group as Group28, Stack as Stack71, Text as Text46, ActionIcon as ActionIcon14, Badge as Badge12 } from "@mantine/core";
8411
8495
  var API_REQUEST_TEMPLATE_PANEL_ID = "api-request-template-panel";
8412
8496
  var ApiRequestTemplateView = ({ editor, block }) => {
8413
8497
  const panelId = `${API_REQUEST_TEMPLATE_PANEL_ID}-${block.id}`;
8414
- const panelContent = useMemo16(() => /* @__PURE__ */ React93.createElement(TemplateConfig4, { editor, block }), [editor, block]);
8498
+ const panelContent = useMemo16(() => /* @__PURE__ */ React94.createElement(TemplateConfig4, { editor, block }), [editor, block]);
8415
8499
  const { open } = usePanel(panelId, panelContent);
8416
8500
  const method = block.props.method || "GET";
8417
8501
  const endpoint = block.props.endpoint || "https://api.example.com/endpoint";
@@ -8431,12 +8515,12 @@ var ApiRequestTemplateView = ({ editor, block }) => {
8431
8515
  return "gray";
8432
8516
  }
8433
8517
  };
8434
- return /* @__PURE__ */ React93.createElement(Card19, { withBorder: true, padding: "md", radius: "md", style: { width: "100%", cursor: "pointer", position: "relative" }, onClick: open }, /* @__PURE__ */ React93.createElement(Badge12, { size: "xs", variant: "light", color: "gray", style: { position: "absolute", top: 8, right: 8 } }, "Template"), /* @__PURE__ */ React93.createElement(Group27, { wrap: "nowrap", justify: "space-between", align: "center" }, /* @__PURE__ */ React93.createElement(Group27, { wrap: "nowrap", align: "center" }, /* @__PURE__ */ React93.createElement(ActionIcon14, { variant: "light", color: "violet", size: "lg", radius: "xl", style: { flexShrink: 0 } }, getIcon(block.props.icon, 18, 1.5, "square-check")), /* @__PURE__ */ React93.createElement(Stack70, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React93.createElement(Group27, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React93.createElement(Badge12, { size: "sm", variant: "filled", color: getMethodColor(method) }, method), /* @__PURE__ */ React93.createElement(Text45, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "API Request")), /* @__PURE__ */ React93.createElement(Text45, { size: "xs", c: "dimmed", contentEditable: false, lineClamp: 1 }, endpoint), block.props.description && /* @__PURE__ */ React93.createElement(Text45, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description)))));
8518
+ return /* @__PURE__ */ React94.createElement(Card19, { withBorder: true, padding: "md", radius: "md", style: { width: "100%", cursor: "pointer", position: "relative" }, onClick: open }, /* @__PURE__ */ React94.createElement(Badge12, { size: "xs", variant: "light", color: "gray", style: { position: "absolute", top: 8, right: 8 } }, "Template"), /* @__PURE__ */ React94.createElement(Group28, { wrap: "nowrap", justify: "space-between", align: "center" }, /* @__PURE__ */ React94.createElement(Group28, { wrap: "nowrap", align: "center" }, /* @__PURE__ */ React94.createElement(ActionIcon14, { variant: "light", color: "violet", size: "lg", radius: "xl", style: { flexShrink: 0 } }, getIcon(block.props.icon, 18, 1.5, "square-check")), /* @__PURE__ */ React94.createElement(Stack71, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React94.createElement(Group28, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React94.createElement(Badge12, { size: "sm", variant: "filled", color: getMethodColor(method) }, method), /* @__PURE__ */ React94.createElement(Text46, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "API Request")), /* @__PURE__ */ React94.createElement(Text46, { size: "xs", c: "dimmed", contentEditable: false, lineClamp: 1 }, endpoint), block.props.description && /* @__PURE__ */ React94.createElement(Text46, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description)))));
8435
8519
  };
8436
8520
 
8437
8521
  // src/mantine/blocks/apiRequest/flow/FlowView.tsx
8438
- import React94, { useState as useState25 } from "react";
8439
- import { Card as Card20, Group as Group28, Stack as Stack71, Text as Text46, ActionIcon as ActionIcon15, Tooltip as Tooltip6, Button as Button20, Badge as Badge13, Collapse as Collapse2, Code as Code2, Loader as Loader5, Alert as Alert10 } from "@mantine/core";
8522
+ import React95, { useState as useState25 } from "react";
8523
+ import { Card as Card20, Group as Group29, Stack as Stack72, Text as Text47, ActionIcon as ActionIcon15, Tooltip as Tooltip6, Button as Button20, Badge as Badge13, Collapse as Collapse2, Code as Code2, Loader as Loader5, Alert as Alert10 } from "@mantine/core";
8440
8524
  import { IconSend, IconChevronDown as IconChevronDown2, IconChevronUp as IconChevronUp2, IconAlertTriangle } from "@tabler/icons-react";
8441
8525
  var ApiRequestFlowView = ({ editor, block, isDisabled }) => {
8442
8526
  const disabled = isDisabled?.isDisabled === "disable";
@@ -8564,21 +8648,21 @@ var ApiRequestFlowView = ({ editor, block, isDisabled }) => {
8564
8648
  setIsLoading(false);
8565
8649
  }
8566
8650
  };
8567
- const executeButton = /* @__PURE__ */ React94.createElement(
8651
+ const executeButton = /* @__PURE__ */ React95.createElement(
8568
8652
  Button20,
8569
8653
  {
8570
8654
  size: "sm",
8571
8655
  variant: "light",
8572
8656
  color: getMethodColor(method),
8573
- leftSection: isLoading ? /* @__PURE__ */ React94.createElement(Loader5, { size: 14 }) : /* @__PURE__ */ React94.createElement(IconSend, { size: 14 }),
8657
+ leftSection: isLoading ? /* @__PURE__ */ React95.createElement(Loader5, { size: 14 }) : /* @__PURE__ */ React95.createElement(IconSend, { size: 14 }),
8574
8658
  onClick: handleExecuteRequest,
8575
8659
  disabled: disabled || isLoading || !endpoint,
8576
8660
  style: { flexShrink: 0 }
8577
8661
  },
8578
8662
  isLoading ? "Sending..." : "Execute"
8579
8663
  );
8580
- return /* @__PURE__ */ React94.createElement(Card20, { withBorder: true, padding: "md", radius: "md", style: { width: "100%" } }, /* @__PURE__ */ React94.createElement(Stack71, { gap: "md" }, /* @__PURE__ */ React94.createElement(Group28, { wrap: "nowrap", justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React94.createElement(Group28, { wrap: "nowrap", align: "flex-start", style: { flex: 1 } }, /* @__PURE__ */ React94.createElement(ActionIcon15, { variant: "light", color: "violet", size: "lg", radius: "xl", style: { flexShrink: 0 } }, getIcon(block.props.icon, 18, 1.5, "square-check")), /* @__PURE__ */ React94.createElement(Stack71, { gap: "xs", style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React94.createElement(Group28, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React94.createElement(Badge13, { size: "sm", variant: "filled", color: getMethodColor(method) }, method), /* @__PURE__ */ React94.createElement(Text46, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "API Request"), status !== "idle" && /* @__PURE__ */ React94.createElement(Badge13, { size: "xs", variant: "dot", color: getStatusColor(status) }, status)), /* @__PURE__ */ React94.createElement(
8581
- Text46,
8664
+ return /* @__PURE__ */ React95.createElement(Card20, { withBorder: true, padding: "md", radius: "md", style: { width: "100%" } }, /* @__PURE__ */ React95.createElement(Stack72, { gap: "md" }, /* @__PURE__ */ React95.createElement(Group29, { wrap: "nowrap", justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React95.createElement(Group29, { wrap: "nowrap", align: "flex-start", style: { flex: 1 } }, /* @__PURE__ */ React95.createElement(ActionIcon15, { variant: "light", color: "violet", size: "lg", radius: "xl", style: { flexShrink: 0 } }, getIcon(block.props.icon, 18, 1.5, "square-check")), /* @__PURE__ */ React95.createElement(Stack72, { gap: "xs", style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React95.createElement(Group29, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React95.createElement(Badge13, { size: "sm", variant: "filled", color: getMethodColor(method) }, method), /* @__PURE__ */ React95.createElement(Text47, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "API Request"), status !== "idle" && /* @__PURE__ */ React95.createElement(Badge13, { size: "xs", variant: "dot", color: getStatusColor(status) }, status)), /* @__PURE__ */ React95.createElement(
8665
+ Text47,
8582
8666
  {
8583
8667
  size: "xs",
8584
8668
  c: "dimmed",
@@ -8590,7 +8674,7 @@ var ApiRequestFlowView = ({ editor, block, isDisabled }) => {
8590
8674
  }
8591
8675
  },
8592
8676
  endpoint || "No endpoint configured"
8593
- ), block.props.description && /* @__PURE__ */ React94.createElement(Text46, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), /* @__PURE__ */ React94.createElement(Group28, { gap: "xs", style: { flexShrink: 0 } }, disabled && isDisabled?.message ? /* @__PURE__ */ React94.createElement(Tooltip6, { label: isDisabled.message, position: "left", withArrow: true }, executeButton) : executeButton, /* @__PURE__ */ React94.createElement(ActionIcon15, { variant: "subtle", onClick: () => setShowDetails(!showDetails), disabled: headers.length === 0 && body.length === 0 && !response }, showDetails ? /* @__PURE__ */ React94.createElement(IconChevronUp2, { size: 16 }) : /* @__PURE__ */ React94.createElement(IconChevronDown2, { size: 16 })))), /* @__PURE__ */ React94.createElement(Collapse2, { in: showDetails }, /* @__PURE__ */ React94.createElement(Stack71, { gap: "md" }, validationWarnings.length > 0 && /* @__PURE__ */ React94.createElement(Alert10, { icon: /* @__PURE__ */ React94.createElement(IconAlertTriangle, { size: 16 }), title: "Schema Validation Warnings", color: "yellow" }, /* @__PURE__ */ React94.createElement(Stack71, { gap: "xs" }, /* @__PURE__ */ React94.createElement(Text46, { size: "xs" }, "The API response does not match the defined schema:"), validationWarnings.map((warning, index) => /* @__PURE__ */ React94.createElement(Text46, { key: index, size: "xs", c: "dimmed" }, "\u2022 ", warning)))), headers.length > 0 && /* @__PURE__ */ React94.createElement(Stack71, { gap: "xs" }, /* @__PURE__ */ React94.createElement(Text46, { size: "xs", fw: 600, c: "dimmed" }, "Headers:"), /* @__PURE__ */ React94.createElement(Code2, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
8677
+ ), block.props.description && /* @__PURE__ */ React95.createElement(Text47, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), /* @__PURE__ */ React95.createElement(Group29, { gap: "xs", style: { flexShrink: 0 } }, disabled && isDisabled?.message ? /* @__PURE__ */ React95.createElement(Tooltip6, { label: isDisabled.message, position: "left", withArrow: true }, executeButton) : executeButton, /* @__PURE__ */ React95.createElement(ActionIcon15, { variant: "subtle", onClick: () => setShowDetails(!showDetails), disabled: headers.length === 0 && body.length === 0 && !response }, showDetails ? /* @__PURE__ */ React95.createElement(IconChevronUp2, { size: 16 }) : /* @__PURE__ */ React95.createElement(IconChevronDown2, { size: 16 })))), /* @__PURE__ */ React95.createElement(Collapse2, { in: showDetails }, /* @__PURE__ */ React95.createElement(Stack72, { gap: "md" }, validationWarnings.length > 0 && /* @__PURE__ */ React95.createElement(Alert10, { icon: /* @__PURE__ */ React95.createElement(IconAlertTriangle, { size: 16 }), title: "Schema Validation Warnings", color: "yellow" }, /* @__PURE__ */ React95.createElement(Stack72, { gap: "xs" }, /* @__PURE__ */ React95.createElement(Text47, { size: "xs" }, "The API response does not match the defined schema:"), validationWarnings.map((warning, index) => /* @__PURE__ */ React95.createElement(Text47, { key: index, size: "xs", c: "dimmed" }, "\u2022 ", warning)))), headers.length > 0 && /* @__PURE__ */ React95.createElement(Stack72, { gap: "xs" }, /* @__PURE__ */ React95.createElement(Text47, { size: "xs", fw: 600, c: "dimmed" }, "Headers:"), /* @__PURE__ */ React95.createElement(Code2, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
8594
8678
  headers.reduce(
8595
8679
  (acc, h) => {
8596
8680
  if (h.key && h.value) acc[h.key] = h.value;
@@ -8600,7 +8684,7 @@ var ApiRequestFlowView = ({ editor, block, isDisabled }) => {
8600
8684
  ),
8601
8685
  null,
8602
8686
  2
8603
- ))), method !== "GET" && body.length > 0 && /* @__PURE__ */ React94.createElement(Stack71, { gap: "xs" }, /* @__PURE__ */ React94.createElement(Text46, { size: "xs", fw: 600, c: "dimmed" }, "Body:"), /* @__PURE__ */ React94.createElement(Code2, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
8687
+ ))), method !== "GET" && body.length > 0 && /* @__PURE__ */ React95.createElement(Stack72, { gap: "xs" }, /* @__PURE__ */ React95.createElement(Text47, { size: "xs", fw: 600, c: "dimmed" }, "Body:"), /* @__PURE__ */ React95.createElement(Code2, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
8604
8688
  body.reduce(
8605
8689
  (acc, b) => {
8606
8690
  if (b.key && b.value) acc[b.key] = b.value;
@@ -8610,7 +8694,7 @@ var ApiRequestFlowView = ({ editor, block, isDisabled }) => {
8610
8694
  ),
8611
8695
  null,
8612
8696
  2
8613
- ))), response && /* @__PURE__ */ React94.createElement(Stack71, { gap: "xs" }, /* @__PURE__ */ React94.createElement(Text46, { size: "xs", fw: 600, c: "dimmed" }, "Response:"), status === "error" ? /* @__PURE__ */ React94.createElement(Alert10, { color: "red", title: "Error", styles: { message: { fontSize: "11px" } } }, /* @__PURE__ */ React94.createElement(Code2, { block: true, style: { fontSize: "11px" } }, response)) : /* @__PURE__ */ React94.createElement(Code2, { block: true, style: { fontSize: "11px", maxHeight: "300px", overflow: "auto" } }, response))))));
8697
+ ))), response && /* @__PURE__ */ React95.createElement(Stack72, { gap: "xs" }, /* @__PURE__ */ React95.createElement(Text47, { size: "xs", fw: 600, c: "dimmed" }, "Response:"), status === "error" ? /* @__PURE__ */ React95.createElement(Alert10, { color: "red", title: "Error", styles: { message: { fontSize: "11px" } } }, /* @__PURE__ */ React95.createElement(Code2, { block: true, style: { fontSize: "11px" } }, response)) : /* @__PURE__ */ React95.createElement(Code2, { block: true, style: { fontSize: "11px", maxHeight: "300px", overflow: "auto" } }, response))))));
8614
8698
  };
8615
8699
 
8616
8700
  // src/mantine/blocks/apiRequest/ApiRequestBlock.tsx
@@ -8618,7 +8702,7 @@ function ApiRequestBlock({ editor, block }) {
8618
8702
  const { docType } = useBlocknoteContext();
8619
8703
  const { actions } = useBlockConditions(block, editor);
8620
8704
  if (docType === "template") {
8621
- return /* @__PURE__ */ React95.createElement(ApiRequestTemplateView, { editor, block });
8705
+ return /* @__PURE__ */ React96.createElement(ApiRequestTemplateView, { editor, block });
8622
8706
  }
8623
8707
  const conditionConfig = parseConditionConfig(block.props.conditions);
8624
8708
  const hasVisibility = hasVisibilityConditions(conditionConfig);
@@ -8630,7 +8714,7 @@ function ApiRequestBlock({ editor, block }) {
8630
8714
  const hasEnable = hasEnableConditions(conditionConfig);
8631
8715
  const enableActionExists = actions.some((a) => a.action === "enable");
8632
8716
  const shouldDisable = hasEnable && !enableActionExists;
8633
- return /* @__PURE__ */ React95.createElement(
8717
+ return /* @__PURE__ */ React96.createElement(
8634
8718
  ApiRequestFlowView,
8635
8719
  {
8636
8720
  block,
@@ -8687,36 +8771,36 @@ var ApiRequestBlockSpec = createReactBlockSpec5(
8687
8771
  {
8688
8772
  render: (props) => {
8689
8773
  const ixoProps = props;
8690
- return /* @__PURE__ */ React96.createElement(ApiRequestBlock, { ...ixoProps });
8774
+ return /* @__PURE__ */ React97.createElement(ApiRequestBlock, { ...ixoProps });
8691
8775
  }
8692
8776
  }
8693
8777
  );
8694
8778
 
8695
8779
  // src/mantine/blocks/enumChecklist/EnumChecklistBlock.tsx
8696
- import React103, { useState as useState27, useEffect as useEffect17, useMemo as useMemo17, useCallback as useCallback18 } from "react";
8780
+ import React104, { useState as useState27, useEffect as useEffect17, useMemo as useMemo17, useCallback as useCallback18 } from "react";
8697
8781
  import { createReactBlockSpec as createReactBlockSpec6 } from "@blocknote/react";
8698
- import { Stack as Stack77, Text as Text52, Button as Button25, ActionIcon as ActionIcon16, Center as Center3, Flex as Flex20 } from "@mantine/core";
8782
+ import { Stack as Stack78, Text as Text53, Button as Button25, ActionIcon as ActionIcon16, Center as Center3, Flex as Flex21 } from "@mantine/core";
8699
8783
 
8700
8784
  // src/mantine/blocks/enumChecklist/oracle_personalities/index.tsx
8701
- import React97 from "react";
8702
- import { Box as Box18, Flex as Flex19, Stack as Stack72, Text as Text47, Image as Image13 } from "@mantine/core";
8785
+ import React98 from "react";
8786
+ import { Box as Box19, Flex as Flex20, Stack as Stack73, Text as Text48, Image as Image13 } from "@mantine/core";
8703
8787
  function OraclePersonalitiesEnumList({ selectionMode, isItemChecked, onItemCheck, items }) {
8704
8788
  if (!items || items.length === 0) {
8705
- return /* @__PURE__ */ React97.createElement(Text47, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No assets found");
8789
+ return /* @__PURE__ */ React98.createElement(Text48, { size: "sm", c: "dimmed", ta: "center", py: "md" }, "No assets found");
8706
8790
  }
8707
- const rows = items.map(({ id, name, description, voice, icon }) => /* @__PURE__ */ React97.createElement(ListItemContainer, { key: id }, /* @__PURE__ */ React97.createElement(Flex19, { align: "center", gap: "sm" }, /* @__PURE__ */ React97.createElement(Image13, { radius: 16, w: 62, h: 62, src: icon, alt: name }), /* @__PURE__ */ React97.createElement(Stack72, { gap: 0 }, /* @__PURE__ */ React97.createElement(Text47, { size: "sm", fw: 500 }, name || "-"), description !== void 0 && /* @__PURE__ */ React97.createElement(Text47, { size: "sm", c: "dimmed" }, description))), /* @__PURE__ */ React97.createElement(Flex19, { align: "center", gap: "md" }, /* @__PURE__ */ React97.createElement(Stack72, { ta: "right", gap: 0 }, /* @__PURE__ */ React97.createElement(Text47, { size: "sm", fw: 500 }, "Voice"), /* @__PURE__ */ React97.createElement(Text47, { size: "sm", c: "dimmed" }, voice)), selectionMode && /* @__PURE__ */ React97.createElement(ListItemCheckbox, { ariaLabel: `Select oracle ${name}`, checked: isItemChecked?.(id), onCheck: (checked) => onItemCheck?.(id, checked) }))));
8708
- return /* @__PURE__ */ React97.createElement(Box18, { flex: 1 }, /* @__PURE__ */ React97.createElement(Stack72, null, rows));
8791
+ const rows = items.map(({ id, name, description, voice, icon }) => /* @__PURE__ */ React98.createElement(ListItemContainer, { key: id }, /* @__PURE__ */ React98.createElement(Flex20, { align: "center", gap: "sm" }, /* @__PURE__ */ React98.createElement(Image13, { radius: 16, w: 62, h: 62, src: icon, alt: name }), /* @__PURE__ */ React98.createElement(Stack73, { gap: 0 }, /* @__PURE__ */ React98.createElement(Text48, { size: "sm", fw: 500 }, name || "-"), description !== void 0 && /* @__PURE__ */ React98.createElement(Text48, { size: "sm", c: "dimmed" }, description))), /* @__PURE__ */ React98.createElement(Flex20, { align: "center", gap: "md" }, /* @__PURE__ */ React98.createElement(Stack73, { ta: "right", gap: 0 }, /* @__PURE__ */ React98.createElement(Text48, { size: "sm", fw: 500 }, "Voice"), /* @__PURE__ */ React98.createElement(Text48, { size: "sm", c: "dimmed" }, voice)), selectionMode && /* @__PURE__ */ React98.createElement(ListItemCheckbox, { ariaLabel: `Select oracle ${name}`, checked: isItemChecked?.(id), onCheck: (checked) => onItemCheck?.(id, checked) }))));
8792
+ return /* @__PURE__ */ React98.createElement(Box19, { flex: 1 }, /* @__PURE__ */ React98.createElement(Stack73, null, rows));
8709
8793
  }
8710
8794
 
8711
8795
  // src/mantine/blocks/enumChecklist/EnumChecklistConfigModal.tsx
8712
- import React102, { useState as useState26 } from "react";
8713
- import { Modal, Group as Group32, Box as Box20 } from "@mantine/core";
8796
+ import React103, { useState as useState26 } from "react";
8797
+ import { Modal, Group as Group33, Box as Box21 } from "@mantine/core";
8714
8798
 
8715
8799
  // src/mantine/blocks/list/modal/ModalNavigation.tsx
8716
- import React98 from "react";
8717
- import { Stack as Stack73, Button as Button21, Text as Text48 } from "@mantine/core";
8800
+ import React99 from "react";
8801
+ import { Stack as Stack74, Button as Button21, Text as Text49 } from "@mantine/core";
8718
8802
  var ModalNavigation = ({ steps, activeStep, onStepChange, showUpdateButton = false, onUpdateBlock }) => {
8719
- return /* @__PURE__ */ React98.createElement(Stack73, { gap: "xs", style: { height: "100%" } }, /* @__PURE__ */ React98.createElement(Stack73, { gap: "xs", style: { flex: 1 } }, steps.map((step) => /* @__PURE__ */ React98.createElement(
8803
+ return /* @__PURE__ */ React99.createElement(Stack74, { gap: "xs", style: { height: "100%" } }, /* @__PURE__ */ React99.createElement(Stack74, { gap: "xs", style: { flex: 1 } }, steps.map((step) => /* @__PURE__ */ React99.createElement(
8720
8804
  Button21,
8721
8805
  {
8722
8806
  key: step.id,
@@ -8734,13 +8818,13 @@ var ModalNavigation = ({ steps, activeStep, onStepChange, showUpdateButton = fal
8734
8818
  }
8735
8819
  }
8736
8820
  },
8737
- /* @__PURE__ */ React98.createElement(Stack73, { gap: 2, align: "flex-start" }, /* @__PURE__ */ React98.createElement(Text48, { size: "sm", fw: 500 }, step.label), /* @__PURE__ */ React98.createElement(Text48, { size: "xs", opacity: 0.7 }, step.description))
8738
- ))), showUpdateButton && /* @__PURE__ */ React98.createElement(Button21, { variant: "filled", color: "blue", onClick: onUpdateBlock, style: { marginTop: "auto" } }, "Update Block"));
8821
+ /* @__PURE__ */ React99.createElement(Stack74, { gap: 2, align: "flex-start" }, /* @__PURE__ */ React99.createElement(Text49, { size: "sm", fw: 500 }, step.label), /* @__PURE__ */ React99.createElement(Text49, { size: "xs", opacity: 0.7 }, step.description))
8822
+ ))), showUpdateButton && /* @__PURE__ */ React99.createElement(Button21, { variant: "filled", color: "blue", onClick: onUpdateBlock, style: { marginTop: "auto" } }, "Update Block"));
8739
8823
  };
8740
8824
 
8741
8825
  // src/mantine/blocks/enumChecklist/EnumChecklistTypeSelection.tsx
8742
- import React99 from "react";
8743
- import { Stack as Stack74, Card as Card21, Group as Group29, Text as Text49, Box as Box19, Button as Button22 } from "@mantine/core";
8826
+ import React100 from "react";
8827
+ import { Stack as Stack75, Card as Card21, Group as Group30, Text as Text50, Box as Box20, Button as Button22 } from "@mantine/core";
8744
8828
 
8745
8829
  // src/mantine/blocks/enumChecklist/oracle_personalities/config.ts
8746
8830
  var oraclePersonalitiesMetadata = {
@@ -8869,7 +8953,7 @@ function getEnumListItems(type) {
8869
8953
  // src/mantine/blocks/enumChecklist/EnumChecklistTypeSelection.tsx
8870
8954
  var EnumChecklistTypeSelection = ({ selectedType, onTypeSelect, onNext }) => {
8871
8955
  const enumListsMeta = getEnumListTypesMetadata();
8872
- return /* @__PURE__ */ React99.createElement(Stack74, { gap: "md" }, /* @__PURE__ */ React99.createElement("div", null, /* @__PURE__ */ React99.createElement(Text49, { size: "lg", fw: 600, mb: "xs" }, "Choose List Type"), /* @__PURE__ */ React99.createElement(Text49, { size: "sm", c: "dimmed" }, "Select the type of list you want to create")), /* @__PURE__ */ React99.createElement(Stack74, { gap: "sm" }, enumListsMeta.map((enumChecklistMeta) => /* @__PURE__ */ React99.createElement(
8956
+ return /* @__PURE__ */ React100.createElement(Stack75, { gap: "md" }, /* @__PURE__ */ React100.createElement("div", null, /* @__PURE__ */ React100.createElement(Text50, { size: "lg", fw: 600, mb: "xs" }, "Choose List Type"), /* @__PURE__ */ React100.createElement(Text50, { size: "sm", c: "dimmed" }, "Select the type of list you want to create")), /* @__PURE__ */ React100.createElement(Stack75, { gap: "sm" }, enumListsMeta.map((enumChecklistMeta) => /* @__PURE__ */ React100.createElement(
8873
8957
  Card21,
8874
8958
  {
8875
8959
  key: enumChecklistMeta.id,
@@ -8882,8 +8966,8 @@ var EnumChecklistTypeSelection = ({ selectedType, onTypeSelect, onNext }) => {
8882
8966
  },
8883
8967
  onClick: () => onTypeSelect(enumChecklistMeta.id)
8884
8968
  },
8885
- /* @__PURE__ */ React99.createElement(Group29, { gap: "md", align: "flex-start" }, /* @__PURE__ */ React99.createElement(
8886
- Box19,
8969
+ /* @__PURE__ */ React100.createElement(Group30, { gap: "md", align: "flex-start" }, /* @__PURE__ */ React100.createElement(
8970
+ Box20,
8887
8971
  {
8888
8972
  style: {
8889
8973
  width: 48,
@@ -8898,35 +8982,35 @@ var EnumChecklistTypeSelection = ({ selectedType, onTypeSelect, onNext }) => {
8898
8982
  }
8899
8983
  },
8900
8984
  enumChecklistMeta.icon
8901
- ), /* @__PURE__ */ React99.createElement(Stack74, { gap: 2, style: { flex: 1 } }, /* @__PURE__ */ React99.createElement(Text49, { size: "md", fw: 600 }, enumChecklistMeta.name), /* @__PURE__ */ React99.createElement(Text49, { size: "sm", c: "dimmed" }, enumChecklistMeta.description)))
8902
- ))), /* @__PURE__ */ React99.createElement(Group29, { justify: "flex-end", mt: "md" }, /* @__PURE__ */ React99.createElement(Button22, { onClick: onNext, disabled: !selectedType }, "Next")));
8985
+ ), /* @__PURE__ */ React100.createElement(Stack75, { gap: 2, style: { flex: 1 } }, /* @__PURE__ */ React100.createElement(Text50, { size: "md", fw: 600 }, enumChecklistMeta.name), /* @__PURE__ */ React100.createElement(Text50, { size: "sm", c: "dimmed" }, enumChecklistMeta.description)))
8986
+ ))), /* @__PURE__ */ React100.createElement(Group30, { justify: "flex-end", mt: "md" }, /* @__PURE__ */ React100.createElement(Button22, { onClick: onNext, disabled: !selectedType }, "Next")));
8903
8987
  };
8904
8988
 
8905
8989
  // src/mantine/blocks/enumChecklist/EnumChecklistPreviewStep.tsx
8906
- import React100 from "react";
8907
- import { Stack as Stack75, Text as Text50, Button as Button23, Group as Group30 } from "@mantine/core";
8990
+ import React101 from "react";
8991
+ import { Stack as Stack76, Text as Text51, Button as Button23, Group as Group31 } from "@mantine/core";
8908
8992
  var EnumChecklistPreviewStep = ({ listType, onAddToBlock, onPrev }) => {
8909
8993
  const renderListComponent = () => {
8910
8994
  switch (listType) {
8911
8995
  case "oracle_personalities":
8912
- return /* @__PURE__ */ React100.createElement(OraclePersonalitiesEnumList, { items: getEnumListItems(listType) });
8996
+ return /* @__PURE__ */ React101.createElement(OraclePersonalitiesEnumList, { items: getEnumListItems(listType) });
8913
8997
  default:
8914
8998
  return null;
8915
8999
  }
8916
9000
  };
8917
- return /* @__PURE__ */ React100.createElement(Stack75, { gap: "md" }, /* @__PURE__ */ React100.createElement("div", null, /* @__PURE__ */ React100.createElement(Text50, { size: "lg", fw: 600, mb: "xs" }, "Preview ", getEnumListNameByType(listType)), /* @__PURE__ */ React100.createElement(Text50, { size: "sm", c: "dimmed" }, "Preview how your list will look with the current configuration")), /* @__PURE__ */ React100.createElement("div", { style: { maxHeight: "400px", overflow: "auto" } }, renderListComponent()), /* @__PURE__ */ React100.createElement(Group30, { justify: "space-between", mt: "md" }, /* @__PURE__ */ React100.createElement(Button23, { variant: "subtle", onClick: onPrev }, "Previous"), /* @__PURE__ */ React100.createElement(Button23, { onClick: onAddToBlock }, "Add to Block")));
9001
+ return /* @__PURE__ */ React101.createElement(Stack76, { gap: "md" }, /* @__PURE__ */ React101.createElement("div", null, /* @__PURE__ */ React101.createElement(Text51, { size: "lg", fw: 600, mb: "xs" }, "Preview ", getEnumListNameByType(listType)), /* @__PURE__ */ React101.createElement(Text51, { size: "sm", c: "dimmed" }, "Preview how your list will look with the current configuration")), /* @__PURE__ */ React101.createElement("div", { style: { maxHeight: "400px", overflow: "auto" } }, renderListComponent()), /* @__PURE__ */ React101.createElement(Group31, { justify: "space-between", mt: "md" }, /* @__PURE__ */ React101.createElement(Button23, { variant: "subtle", onClick: onPrev }, "Previous"), /* @__PURE__ */ React101.createElement(Button23, { onClick: onAddToBlock }, "Add to Block")));
8918
9002
  };
8919
9003
 
8920
9004
  // src/mantine/blocks/enumChecklist/EnumChecklistConfigurationStep.tsx
8921
- import React101 from "react";
8922
- import { Stack as Stack76, TextInput as TextInput36, Text as Text51, Button as Button24, Group as Group31, Switch as Switch4, Select as Select13 } from "@mantine/core";
9005
+ import React102 from "react";
9006
+ import { Stack as Stack77, TextInput as TextInput36, Text as Text52, Button as Button24, Group as Group32, Switch as Switch4, Select as Select13 } from "@mantine/core";
8923
9007
  var EnumChecklistConfigurationStep = ({ enumChecklistType: listType, config, onConfigChange, onPrev, onNext, isValid }) => {
8924
9008
  const typeConfig = ENUM_LIST_CONFIG[listType];
8925
9009
  const configFields = getEnumListTypesConfigFields(listType);
8926
9010
  const renderListConfigField = (field) => {
8927
9011
  switch (field.type) {
8928
9012
  case "text":
8929
- return /* @__PURE__ */ React101.createElement(
9013
+ return /* @__PURE__ */ React102.createElement(
8930
9014
  TextInput36,
8931
9015
  {
8932
9016
  label: field.label,
@@ -8938,7 +9022,7 @@ var EnumChecklistConfigurationStep = ({ enumChecklistType: listType, config, onC
8938
9022
  }
8939
9023
  );
8940
9024
  case "switch":
8941
- return /* @__PURE__ */ React101.createElement(
9025
+ return /* @__PURE__ */ React102.createElement(
8942
9026
  Switch4,
8943
9027
  {
8944
9028
  label: field.label,
@@ -8948,7 +9032,7 @@ var EnumChecklistConfigurationStep = ({ enumChecklistType: listType, config, onC
8948
9032
  }
8949
9033
  );
8950
9034
  case "select":
8951
- return /* @__PURE__ */ React101.createElement(
9035
+ return /* @__PURE__ */ React102.createElement(
8952
9036
  Select13,
8953
9037
  {
8954
9038
  label: field.label,
@@ -8961,7 +9045,7 @@ var EnumChecklistConfigurationStep = ({ enumChecklistType: listType, config, onC
8961
9045
  }
8962
9046
  );
8963
9047
  default:
8964
- return /* @__PURE__ */ React101.createElement(
9048
+ return /* @__PURE__ */ React102.createElement(
8965
9049
  TextInput36,
8966
9050
  {
8967
9051
  label: field.label,
@@ -8974,7 +9058,7 @@ var EnumChecklistConfigurationStep = ({ enumChecklistType: listType, config, onC
8974
9058
  );
8975
9059
  }
8976
9060
  };
8977
- return /* @__PURE__ */ React101.createElement(Stack76, { gap: "md" }, /* @__PURE__ */ React101.createElement("div", null, /* @__PURE__ */ React101.createElement(Text51, { size: "lg", fw: 600, mb: "xs" }, "Configure ", typeConfig.metadata.name), /* @__PURE__ */ React101.createElement(Text51, { size: "sm", c: "dimmed" }, typeConfig.metadata.description)), /* @__PURE__ */ React101.createElement(Stack76, { gap: "sm" }, configFields.map((field) => /* @__PURE__ */ React101.createElement("div", { key: field.key }, renderListConfigField(field)))), /* @__PURE__ */ React101.createElement(Group31, { justify: "space-between", mt: "md" }, /* @__PURE__ */ React101.createElement(Button24, { variant: "subtle", onClick: onPrev }, "Previous"), /* @__PURE__ */ React101.createElement(Button24, { onClick: onNext, disabled: !isValid }, "Next")));
9061
+ return /* @__PURE__ */ React102.createElement(Stack77, { gap: "md" }, /* @__PURE__ */ React102.createElement("div", null, /* @__PURE__ */ React102.createElement(Text52, { size: "lg", fw: 600, mb: "xs" }, "Configure ", typeConfig.metadata.name), /* @__PURE__ */ React102.createElement(Text52, { size: "sm", c: "dimmed" }, typeConfig.metadata.description)), /* @__PURE__ */ React102.createElement(Stack77, { gap: "sm" }, configFields.map((field) => /* @__PURE__ */ React102.createElement("div", { key: field.key }, renderListConfigField(field)))), /* @__PURE__ */ React102.createElement(Group32, { justify: "space-between", mt: "md" }, /* @__PURE__ */ React102.createElement(Button24, { variant: "subtle", onClick: onPrev }, "Previous"), /* @__PURE__ */ React102.createElement(Button24, { onClick: onNext, disabled: !isValid }, "Next")));
8978
9062
  };
8979
9063
 
8980
9064
  // src/mantine/blocks/enumChecklist/EnumChecklistConfigModal.tsx
@@ -9036,9 +9120,9 @@ var EnumChecklistConfigModal = ({ opened, onClose, onSave, initialConfig }) => {
9036
9120
  const renderStepContent = () => {
9037
9121
  switch (activeStep) {
9038
9122
  case "type":
9039
- return /* @__PURE__ */ React102.createElement(EnumChecklistTypeSelection, { selectedType, onTypeSelect: handleTypeSelect, onNext: () => setActiveStep("configure") });
9123
+ return /* @__PURE__ */ React103.createElement(EnumChecklistTypeSelection, { selectedType, onTypeSelect: handleTypeSelect, onNext: () => setActiveStep("configure") });
9040
9124
  case "configure":
9041
- return selectedType ? /* @__PURE__ */ React102.createElement(
9125
+ return selectedType ? /* @__PURE__ */ React103.createElement(
9042
9126
  EnumChecklistConfigurationStep,
9043
9127
  {
9044
9128
  enumChecklistType: selectedType,
@@ -9050,16 +9134,16 @@ var EnumChecklistConfigModal = ({ opened, onClose, onSave, initialConfig }) => {
9050
9134
  }
9051
9135
  ) : null;
9052
9136
  case "preview":
9053
- return selectedType ? /* @__PURE__ */ React102.createElement(EnumChecklistPreviewStep, { listType: selectedType, onAddToBlock: handleAddToBlock, onPrev: () => setActiveStep("configure") }) : null;
9137
+ return selectedType ? /* @__PURE__ */ React103.createElement(EnumChecklistPreviewStep, { listType: selectedType, onAddToBlock: handleAddToBlock, onPrev: () => setActiveStep("configure") }) : null;
9054
9138
  default:
9055
9139
  return null;
9056
9140
  }
9057
9141
  };
9058
- return /* @__PURE__ */ React102.createElement(Modal, { opened, onClose: handleClose, title: "Configure Enum Checklist Block", size: "xl" }, /* @__PURE__ */ React102.createElement(Group32, { align: "flex-start", gap: "lg", style: { minHeight: "400px" } }, /* @__PURE__ */ React102.createElement(Box20, { style: { width: "200px", flexShrink: 0, height: "400px", display: "flex" } }, /* @__PURE__ */ React102.createElement(ModalNavigation, { steps, activeStep, onStepChange: setActiveStep, showUpdateButton: selectedType !== null, onUpdateBlock: handleAddToBlock })), /* @__PURE__ */ React102.createElement(Box20, { style: { flex: 1 } }, renderStepContent())));
9142
+ return /* @__PURE__ */ React103.createElement(Modal, { opened, onClose: handleClose, title: "Configure Enum Checklist Block", size: "xl" }, /* @__PURE__ */ React103.createElement(Group33, { align: "flex-start", gap: "lg", style: { minHeight: "400px" } }, /* @__PURE__ */ React103.createElement(Box21, { style: { width: "200px", flexShrink: 0, height: "400px", display: "flex" } }, /* @__PURE__ */ React103.createElement(ModalNavigation, { steps, activeStep, onStepChange: setActiveStep, showUpdateButton: selectedType !== null, onUpdateBlock: handleAddToBlock })), /* @__PURE__ */ React103.createElement(Box21, { style: { flex: 1 } }, renderStepContent())));
9059
9143
  };
9060
9144
 
9061
9145
  // src/mantine/blocks/enumChecklist/EnumChecklistBlock.tsx
9062
- var IconSettings2 = () => /* @__PURE__ */ React103.createElement("span", null, "\u2699\uFE0F");
9146
+ var IconSettings2 = () => /* @__PURE__ */ React104.createElement("span", null, "\u2699\uFE0F");
9063
9147
  var EnumChecklistBlockType = "enumChecklist";
9064
9148
  var EnumChecklistBlockContent = ({ block, editor }) => {
9065
9149
  const [modalOpened, setModalOpened] = useState27(false);
@@ -9145,7 +9229,7 @@ var EnumChecklistBlockContent = ({ block, editor }) => {
9145
9229
  if (!listType) return null;
9146
9230
  switch (listType) {
9147
9231
  case "oracle_personalities":
9148
- return /* @__PURE__ */ React103.createElement(
9232
+ return /* @__PURE__ */ React104.createElement(
9149
9233
  OraclePersonalitiesEnumList,
9150
9234
  {
9151
9235
  items: getEnumListItems(listType),
@@ -9158,7 +9242,7 @@ var EnumChecklistBlockContent = ({ block, editor }) => {
9158
9242
  return null;
9159
9243
  }
9160
9244
  };
9161
- return /* @__PURE__ */ React103.createElement(Stack77, { w: "100%" }, listType && /* @__PURE__ */ React103.createElement(Flex20, { align: "center", justify: "space-between", gap: "xs" }, /* @__PURE__ */ React103.createElement(Text52, null, getEnumListNameByType(listType)), listConfig.listSelectionMode && /* @__PURE__ */ React103.createElement(Text52, { lh: 0.5, c: "dimmed" }, listConfig?.selection_mode === "single" ? "Single Selection" : "Multi Selection"), editable && /* @__PURE__ */ React103.createElement(Flex20, { justify: listType ? "space-between" : "flex-end" }, /* @__PURE__ */ React103.createElement(Flex20, { gap: "xs" }, /* @__PURE__ */ React103.createElement(ActionIcon16, { variant: "subtle", size: "sm", onClick: () => setModalOpened(true) }, /* @__PURE__ */ React103.createElement(IconSettings2, null))))), /* @__PURE__ */ React103.createElement(Flex20, { flex: 1 }, !listType ? /* @__PURE__ */ React103.createElement(Center3, { py: "xl" }, /* @__PURE__ */ React103.createElement(Stack77, { align: "center", gap: "sm" }, /* @__PURE__ */ React103.createElement(Text52, { size: "sm", c: "dimmed", ta: "center" }, "No list type configured"), /* @__PURE__ */ React103.createElement(Button25, { size: "sm", variant: "light", onClick: () => setModalOpened(true) }, "Configure List"))) : /* @__PURE__ */ React103.createElement(Stack77, { gap: "md", flex: 1 }, renderListComponent())), /* @__PURE__ */ React103.createElement(
9245
+ return /* @__PURE__ */ React104.createElement(Stack78, { w: "100%" }, listType && /* @__PURE__ */ React104.createElement(Flex21, { align: "center", justify: "space-between", gap: "xs" }, /* @__PURE__ */ React104.createElement(Text53, null, getEnumListNameByType(listType)), listConfig.listSelectionMode && /* @__PURE__ */ React104.createElement(Text53, { lh: 0.5, c: "dimmed" }, listConfig?.selection_mode === "single" ? "Single Selection" : "Multi Selection"), editable && /* @__PURE__ */ React104.createElement(Flex21, { justify: listType ? "space-between" : "flex-end" }, /* @__PURE__ */ React104.createElement(Flex21, { gap: "xs" }, /* @__PURE__ */ React104.createElement(ActionIcon16, { variant: "subtle", size: "sm", onClick: () => setModalOpened(true) }, /* @__PURE__ */ React104.createElement(IconSettings2, null))))), /* @__PURE__ */ React104.createElement(Flex21, { flex: 1 }, !listType ? /* @__PURE__ */ React104.createElement(Center3, { py: "xl" }, /* @__PURE__ */ React104.createElement(Stack78, { align: "center", gap: "sm" }, /* @__PURE__ */ React104.createElement(Text53, { size: "sm", c: "dimmed", ta: "center" }, "No list type configured"), /* @__PURE__ */ React104.createElement(Button25, { size: "sm", variant: "light", onClick: () => setModalOpened(true) }, "Configure List"))) : /* @__PURE__ */ React104.createElement(Stack78, { gap: "md", flex: 1 }, renderListComponent())), /* @__PURE__ */ React104.createElement(
9162
9246
  EnumChecklistConfigModal,
9163
9247
  {
9164
9248
  opened: modalOpened,
@@ -9190,27 +9274,27 @@ var EnumChecklistBlock = createReactBlockSpec6(
9190
9274
  content: "none"
9191
9275
  },
9192
9276
  {
9193
- render: (props) => /* @__PURE__ */ React103.createElement(EnumChecklistBlockContent, { ...props })
9277
+ render: (props) => /* @__PURE__ */ React104.createElement(EnumChecklistBlockContent, { ...props })
9194
9278
  }
9195
9279
  );
9196
9280
 
9197
9281
  // src/mantine/blocks/notify/NotifyBlockSpec.tsx
9198
- import React109 from "react";
9282
+ import React110 from "react";
9199
9283
  import { createReactBlockSpec as createReactBlockSpec7 } from "@blocknote/react";
9200
9284
 
9201
9285
  // src/mantine/blocks/notify/NotifyBlock.tsx
9202
- import React108 from "react";
9286
+ import React109 from "react";
9203
9287
 
9204
9288
  // src/mantine/blocks/notify/template/TemplateView.tsx
9205
- import React106, { useMemo as useMemo18 } from "react";
9289
+ import React107, { useMemo as useMemo18 } from "react";
9206
9290
 
9207
9291
  // src/mantine/blocks/notify/template/TemplateConfig.tsx
9208
- import React105, { useCallback as useCallback19 } from "react";
9292
+ import React106, { useCallback as useCallback19 } from "react";
9209
9293
  import { Paper as Paper12, CloseButton as CloseButton7, Title as Title8 } from "@mantine/core";
9210
9294
 
9211
9295
  // src/mantine/blocks/notify/template/GeneralTab.tsx
9212
- import React104, { useEffect as useEffect18, useState as useState28 } from "react";
9213
- import { Divider as Divider6, Select as Select14, Stack as Stack78, Text as Text53, TextInput as TextInput37, Textarea as Textarea21, Button as Button26, Group as Group33, ActionIcon as ActionIcon17, Paper as Paper11 } from "@mantine/core";
9296
+ import React105, { useEffect as useEffect18, useState as useState28 } from "react";
9297
+ import { Divider as Divider6, Select as Select14, Stack as Stack79, Text as Text54, TextInput as TextInput37, Textarea as Textarea21, Button as Button26, Group as Group34, ActionIcon as ActionIcon17, Paper as Paper11 } from "@mantine/core";
9214
9298
  import { IconTrash as IconTrash3, IconPlus as IconPlus3 } from "@tabler/icons-react";
9215
9299
  var GeneralTab5 = ({
9216
9300
  title,
@@ -9285,7 +9369,7 @@ var GeneralTab5 = ({
9285
9369
  setter(newRecipients);
9286
9370
  callback(newRecipients);
9287
9371
  };
9288
- return /* @__PURE__ */ React104.createElement(Stack78, { gap: "lg" }, /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, /* @__PURE__ */ React104.createElement(Text53, { size: "sm", fw: 600 }, "Title"), /* @__PURE__ */ React104.createElement(
9372
+ return /* @__PURE__ */ React105.createElement(Stack79, { gap: "lg" }, /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, /* @__PURE__ */ React105.createElement(Text54, { size: "sm", fw: 600 }, "Title"), /* @__PURE__ */ React105.createElement(
9289
9373
  TextInput37,
9290
9374
  {
9291
9375
  placeholder: "e.g. Welcome Email",
@@ -9296,7 +9380,7 @@ var GeneralTab5 = ({
9296
9380
  onTitleChange(newTitle);
9297
9381
  }
9298
9382
  }
9299
- )), /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, /* @__PURE__ */ React104.createElement(Text53, { size: "sm", fw: 600 }, "Description"), /* @__PURE__ */ React104.createElement(
9383
+ )), /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, /* @__PURE__ */ React105.createElement(Text54, { size: "sm", fw: 600 }, "Description"), /* @__PURE__ */ React105.createElement(
9300
9384
  Textarea21,
9301
9385
  {
9302
9386
  placeholder: "Describe what this notification does",
@@ -9308,7 +9392,7 @@ var GeneralTab5 = ({
9308
9392
  onDescriptionChange(newDescription);
9309
9393
  }
9310
9394
  }
9311
- )), /* @__PURE__ */ React104.createElement(Divider6, { variant: "dashed" }), /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, /* @__PURE__ */ React104.createElement(Text53, { size: "sm", fw: 600 }, "Channel"), /* @__PURE__ */ React104.createElement(
9395
+ )), /* @__PURE__ */ React105.createElement(Divider6, { variant: "dashed" }), /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, /* @__PURE__ */ React105.createElement(Text54, { size: "sm", fw: 600 }, "Channel"), /* @__PURE__ */ React105.createElement(
9312
9396
  Select14,
9313
9397
  {
9314
9398
  value: localChannel,
@@ -9324,7 +9408,7 @@ var GeneralTab5 = ({
9324
9408
  { value: "rcs", label: "RCS (Coming Soon)", disabled: true }
9325
9409
  ]
9326
9410
  }
9327
- )), /* @__PURE__ */ React104.createElement(Divider6, { variant: "dashed" }), localChannel === "email" && /* @__PURE__ */ React104.createElement(React104.Fragment, null, /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, /* @__PURE__ */ React104.createElement(Group33, { justify: "space-between" }, /* @__PURE__ */ React104.createElement(Text53, { size: "sm", fw: 600 }, "To (Recipients)"), /* @__PURE__ */ React104.createElement(Button26, { size: "xs", leftSection: /* @__PURE__ */ React104.createElement(IconPlus3, { size: 14 }), onClick: () => handleAddRecipient("to") }, "Add")), localTo.length === 0 && /* @__PURE__ */ React104.createElement(Text53, { size: "xs", c: "dimmed" }, "No recipients added yet"), /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, localTo.map((recipient, index) => /* @__PURE__ */ React104.createElement(Paper11, { key: index, p: "xs", withBorder: true }, /* @__PURE__ */ React104.createElement(Group33, { gap: "xs", wrap: "nowrap", align: "flex-start" }, /* @__PURE__ */ React104.createElement(
9411
+ )), /* @__PURE__ */ React105.createElement(Divider6, { variant: "dashed" }), localChannel === "email" && /* @__PURE__ */ React105.createElement(React105.Fragment, null, /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, /* @__PURE__ */ React105.createElement(Group34, { justify: "space-between" }, /* @__PURE__ */ React105.createElement(Text54, { size: "sm", fw: 600 }, "To (Recipients)"), /* @__PURE__ */ React105.createElement(Button26, { size: "xs", leftSection: /* @__PURE__ */ React105.createElement(IconPlus3, { size: 14 }), onClick: () => handleAddRecipient("to") }, "Add")), localTo.length === 0 && /* @__PURE__ */ React105.createElement(Text54, { size: "xs", c: "dimmed" }, "No recipients added yet"), /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, localTo.map((recipient, index) => /* @__PURE__ */ React105.createElement(Paper11, { key: index, p: "xs", withBorder: true }, /* @__PURE__ */ React105.createElement(Group34, { gap: "xs", wrap: "nowrap", align: "flex-start" }, /* @__PURE__ */ React105.createElement(
9328
9412
  DataInput,
9329
9413
  {
9330
9414
  placeholder: "email@example.com or reference",
@@ -9334,7 +9418,7 @@ var GeneralTab5 = ({
9334
9418
  currentBlockId: blockId,
9335
9419
  size: "sm"
9336
9420
  }
9337
- ), /* @__PURE__ */ React104.createElement(ActionIcon17, { color: "red", variant: "light", onClick: () => handleRemoveRecipient("to", index) }, /* @__PURE__ */ React104.createElement(IconTrash3, { size: 16 }))))))), /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, /* @__PURE__ */ React104.createElement(Group33, { justify: "space-between" }, /* @__PURE__ */ React104.createElement(Text53, { size: "sm", fw: 600 }, "CC (Optional)"), /* @__PURE__ */ React104.createElement(Button26, { size: "xs", leftSection: /* @__PURE__ */ React104.createElement(IconPlus3, { size: 14 }), onClick: () => handleAddRecipient("cc") }, "Add")), localCc.length > 0 && /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, localCc.map((recipient, index) => /* @__PURE__ */ React104.createElement(Paper11, { key: index, p: "xs", withBorder: true }, /* @__PURE__ */ React104.createElement(Group33, { gap: "xs", wrap: "nowrap", align: "flex-start" }, /* @__PURE__ */ React104.createElement(
9421
+ ), /* @__PURE__ */ React105.createElement(ActionIcon17, { color: "red", variant: "light", onClick: () => handleRemoveRecipient("to", index) }, /* @__PURE__ */ React105.createElement(IconTrash3, { size: 16 }))))))), /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, /* @__PURE__ */ React105.createElement(Group34, { justify: "space-between" }, /* @__PURE__ */ React105.createElement(Text54, { size: "sm", fw: 600 }, "CC (Optional)"), /* @__PURE__ */ React105.createElement(Button26, { size: "xs", leftSection: /* @__PURE__ */ React105.createElement(IconPlus3, { size: 14 }), onClick: () => handleAddRecipient("cc") }, "Add")), localCc.length > 0 && /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, localCc.map((recipient, index) => /* @__PURE__ */ React105.createElement(Paper11, { key: index, p: "xs", withBorder: true }, /* @__PURE__ */ React105.createElement(Group34, { gap: "xs", wrap: "nowrap", align: "flex-start" }, /* @__PURE__ */ React105.createElement(
9338
9422
  DataInput,
9339
9423
  {
9340
9424
  placeholder: "email@example.com or reference",
@@ -9344,7 +9428,7 @@ var GeneralTab5 = ({
9344
9428
  currentBlockId: blockId,
9345
9429
  size: "sm"
9346
9430
  }
9347
- ), /* @__PURE__ */ React104.createElement(ActionIcon17, { color: "red", variant: "light", onClick: () => handleRemoveRecipient("cc", index) }, /* @__PURE__ */ React104.createElement(IconTrash3, { size: 16 }))))))), /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, /* @__PURE__ */ React104.createElement(Group33, { justify: "space-between" }, /* @__PURE__ */ React104.createElement(Text53, { size: "sm", fw: 600 }, "BCC (Optional)"), /* @__PURE__ */ React104.createElement(Button26, { size: "xs", leftSection: /* @__PURE__ */ React104.createElement(IconPlus3, { size: 14 }), onClick: () => handleAddRecipient("bcc") }, "Add")), localBcc.length > 0 && /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, localBcc.map((recipient, index) => /* @__PURE__ */ React104.createElement(Paper11, { key: index, p: "xs", withBorder: true }, /* @__PURE__ */ React104.createElement(Group33, { gap: "xs", wrap: "nowrap", align: "flex-start" }, /* @__PURE__ */ React104.createElement(
9431
+ ), /* @__PURE__ */ React105.createElement(ActionIcon17, { color: "red", variant: "light", onClick: () => handleRemoveRecipient("cc", index) }, /* @__PURE__ */ React105.createElement(IconTrash3, { size: 16 }))))))), /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, /* @__PURE__ */ React105.createElement(Group34, { justify: "space-between" }, /* @__PURE__ */ React105.createElement(Text54, { size: "sm", fw: 600 }, "BCC (Optional)"), /* @__PURE__ */ React105.createElement(Button26, { size: "xs", leftSection: /* @__PURE__ */ React105.createElement(IconPlus3, { size: 14 }), onClick: () => handleAddRecipient("bcc") }, "Add")), localBcc.length > 0 && /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, localBcc.map((recipient, index) => /* @__PURE__ */ React105.createElement(Paper11, { key: index, p: "xs", withBorder: true }, /* @__PURE__ */ React105.createElement(Group34, { gap: "xs", wrap: "nowrap", align: "flex-start" }, /* @__PURE__ */ React105.createElement(
9348
9432
  DataInput,
9349
9433
  {
9350
9434
  placeholder: "email@example.com or reference",
@@ -9354,7 +9438,7 @@ var GeneralTab5 = ({
9354
9438
  currentBlockId: blockId,
9355
9439
  size: "sm"
9356
9440
  }
9357
- ), /* @__PURE__ */ React104.createElement(ActionIcon17, { color: "red", variant: "light", onClick: () => handleRemoveRecipient("bcc", index) }, /* @__PURE__ */ React104.createElement(IconTrash3, { size: 16 }))))))), /* @__PURE__ */ React104.createElement(Divider6, { variant: "dashed" }), /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, /* @__PURE__ */ React104.createElement(Text53, { size: "sm", fw: 600 }, "From (Optional)"), /* @__PURE__ */ React104.createElement(
9441
+ ), /* @__PURE__ */ React105.createElement(ActionIcon17, { color: "red", variant: "light", onClick: () => handleRemoveRecipient("bcc", index) }, /* @__PURE__ */ React105.createElement(IconTrash3, { size: 16 }))))))), /* @__PURE__ */ React105.createElement(Divider6, { variant: "dashed" }), /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, /* @__PURE__ */ React105.createElement(Text54, { size: "sm", fw: 600 }, "From (Optional)"), /* @__PURE__ */ React105.createElement(
9358
9442
  TextInput37,
9359
9443
  {
9360
9444
  placeholder: "sender@example.com",
@@ -9365,7 +9449,7 @@ var GeneralTab5 = ({
9365
9449
  onFromChange(newFrom);
9366
9450
  }
9367
9451
  }
9368
- ), /* @__PURE__ */ React104.createElement(Text53, { size: "xs", c: "dimmed" }, "Custom sender email address")), /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, /* @__PURE__ */ React104.createElement(Text53, { size: "sm", fw: 600 }, "Reply-To (Optional)"), /* @__PURE__ */ React104.createElement(
9452
+ ), /* @__PURE__ */ React105.createElement(Text54, { size: "xs", c: "dimmed" }, "Custom sender email address")), /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, /* @__PURE__ */ React105.createElement(Text54, { size: "sm", fw: 600 }, "Reply-To (Optional)"), /* @__PURE__ */ React105.createElement(
9369
9453
  TextInput37,
9370
9454
  {
9371
9455
  placeholder: "reply@example.com",
@@ -9376,7 +9460,7 @@ var GeneralTab5 = ({
9376
9460
  onReplyToChange(newReplyTo);
9377
9461
  }
9378
9462
  }
9379
- ), /* @__PURE__ */ React104.createElement(Text53, { size: "xs", c: "dimmed" }, "Where replies should be sent")), /* @__PURE__ */ React104.createElement(Divider6, { variant: "dashed" }), /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, /* @__PURE__ */ React104.createElement(Text53, { size: "sm", fw: 600 }, "Subject"), /* @__PURE__ */ React104.createElement(
9463
+ ), /* @__PURE__ */ React105.createElement(Text54, { size: "xs", c: "dimmed" }, "Where replies should be sent")), /* @__PURE__ */ React105.createElement(Divider6, { variant: "dashed" }), /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, /* @__PURE__ */ React105.createElement(Text54, { size: "sm", fw: 600 }, "Subject"), /* @__PURE__ */ React105.createElement(
9380
9464
  TextInput37,
9381
9465
  {
9382
9466
  placeholder: "Email subject line",
@@ -9387,7 +9471,7 @@ var GeneralTab5 = ({
9387
9471
  onSubjectChange(newSubject);
9388
9472
  }
9389
9473
  }
9390
- )), /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, /* @__PURE__ */ React104.createElement(Text53, { size: "sm", fw: 600 }, "Body Type"), /* @__PURE__ */ React104.createElement(
9474
+ )), /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, /* @__PURE__ */ React105.createElement(Text54, { size: "sm", fw: 600 }, "Body Type"), /* @__PURE__ */ React105.createElement(
9391
9475
  Select14,
9392
9476
  {
9393
9477
  value: localBodyType,
@@ -9401,7 +9485,7 @@ var GeneralTab5 = ({
9401
9485
  { value: "html", label: "HTML" }
9402
9486
  ]
9403
9487
  }
9404
- )), /* @__PURE__ */ React104.createElement(Stack78, { gap: "xs" }, /* @__PURE__ */ React104.createElement(Text53, { size: "sm", fw: 600 }, "Body"), /* @__PURE__ */ React104.createElement(
9488
+ )), /* @__PURE__ */ React105.createElement(Stack79, { gap: "xs" }, /* @__PURE__ */ React105.createElement(Text54, { size: "sm", fw: 600 }, "Body"), /* @__PURE__ */ React105.createElement(
9405
9489
  Textarea21,
9406
9490
  {
9407
9491
  placeholder: localBodyType === "html" ? "<h1>Hello!</h1><p>Welcome to our service.</p>" : "Email body content",
@@ -9413,7 +9497,7 @@ var GeneralTab5 = ({
9413
9497
  onBodyChange(newBody);
9414
9498
  }
9415
9499
  }
9416
- ), /* @__PURE__ */ React104.createElement(Text53, { size: "xs", c: "dimmed" }, localBodyType === "html" ? "HTML content for the email body" : "Plain text content for the email body"))));
9500
+ ), /* @__PURE__ */ React105.createElement(Text54, { size: "xs", c: "dimmed" }, localBodyType === "html" ? "HTML content for the email body" : "Plain text content for the email body"))));
9417
9501
  };
9418
9502
 
9419
9503
  // src/mantine/blocks/notify/template/TemplateConfig.tsx
@@ -9448,7 +9532,7 @@ var TemplateConfig5 = ({ editor, block }) => {
9448
9532
  },
9449
9533
  [updateProp]
9450
9534
  );
9451
- return /* @__PURE__ */ React105.createElement(
9535
+ return /* @__PURE__ */ React106.createElement(
9452
9536
  Paper12,
9453
9537
  {
9454
9538
  p: "md",
@@ -9459,7 +9543,7 @@ var TemplateConfig5 = ({ editor, block }) => {
9459
9543
  flexDirection: "column"
9460
9544
  }
9461
9545
  },
9462
- /* @__PURE__ */ React105.createElement(
9546
+ /* @__PURE__ */ React106.createElement(
9463
9547
  "div",
9464
9548
  {
9465
9549
  style: {
@@ -9469,17 +9553,17 @@ var TemplateConfig5 = ({ editor, block }) => {
9469
9553
  marginBottom: "1rem"
9470
9554
  }
9471
9555
  },
9472
- /* @__PURE__ */ React105.createElement(Title8, { order: 3 }, "Notification Settings"),
9473
- /* @__PURE__ */ React105.createElement(CloseButton7, { onClick: closePanel })
9556
+ /* @__PURE__ */ React106.createElement(Title8, { order: 3 }, "Notification Settings"),
9557
+ /* @__PURE__ */ React106.createElement(CloseButton7, { onClick: closePanel })
9474
9558
  ),
9475
- /* @__PURE__ */ React105.createElement(
9559
+ /* @__PURE__ */ React106.createElement(
9476
9560
  ReusablePanel,
9477
9561
  {
9478
9562
  extraTabs: [
9479
9563
  {
9480
9564
  label: "General",
9481
9565
  value: "general",
9482
- content: /* @__PURE__ */ React105.createElement(
9566
+ content: /* @__PURE__ */ React106.createElement(
9483
9567
  GeneralTab5,
9484
9568
  {
9485
9569
  title: block.props.title || "",
@@ -9535,11 +9619,11 @@ var TemplateConfig5 = ({ editor, block }) => {
9535
9619
  };
9536
9620
 
9537
9621
  // src/mantine/blocks/notify/template/TemplateView.tsx
9538
- import { Card as Card22, Group as Group34, Stack as Stack79, Text as Text54, ActionIcon as ActionIcon18, Badge as Badge14 } from "@mantine/core";
9622
+ import { Card as Card22, Group as Group35, Stack as Stack80, Text as Text55, ActionIcon as ActionIcon18, Badge as Badge14 } from "@mantine/core";
9539
9623
  var NOTIFY_TEMPLATE_PANEL_ID = "notify-template-panel";
9540
9624
  var NotifyTemplateView = ({ editor, block }) => {
9541
9625
  const panelId = `${NOTIFY_TEMPLATE_PANEL_ID}-${block.id}`;
9542
- const panelContent = useMemo18(() => /* @__PURE__ */ React106.createElement(TemplateConfig5, { editor, block }), [editor, block]);
9626
+ const panelContent = useMemo18(() => /* @__PURE__ */ React107.createElement(TemplateConfig5, { editor, block }), [editor, block]);
9543
9627
  const { open } = usePanel(panelId, panelContent);
9544
9628
  const channel = block.props.channel || "email";
9545
9629
  const to = (() => {
@@ -9564,12 +9648,12 @@ var NotifyTemplateView = ({ editor, block }) => {
9564
9648
  return "gray";
9565
9649
  }
9566
9650
  };
9567
- return /* @__PURE__ */ React106.createElement(Card22, { withBorder: true, padding: "md", radius: "md", style: { width: "100%", cursor: "pointer", position: "relative" }, onClick: open }, /* @__PURE__ */ React106.createElement(Badge14, { size: "xs", variant: "light", color: "gray", style: { position: "absolute", top: 8, right: 8 } }, "Template"), /* @__PURE__ */ React106.createElement(Group34, { wrap: "nowrap", justify: "space-between", align: "center" }, /* @__PURE__ */ React106.createElement(Group34, { wrap: "nowrap", align: "center" }, /* @__PURE__ */ React106.createElement(ActionIcon18, { variant: "light", color: getChannelColor(channel), size: "lg", radius: "xl", style: { flexShrink: 0 } }, getIcon(block.props.icon, 18, 1.5, "bell")), /* @__PURE__ */ React106.createElement(Stack79, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React106.createElement(Group34, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React106.createElement(Badge14, { size: "sm", variant: "filled", color: getChannelColor(channel) }, channel.toUpperCase()), /* @__PURE__ */ React106.createElement(Text54, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "Notification")), /* @__PURE__ */ React106.createElement(Text54, { size: "xs", c: "dimmed", contentEditable: false, lineClamp: 1 }, to.length > 0 ? `To: ${to.join(", ")}` : "Click to configure recipients"), block.props.description && /* @__PURE__ */ React106.createElement(Text54, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description)))));
9651
+ return /* @__PURE__ */ React107.createElement(Card22, { withBorder: true, padding: "md", radius: "md", style: { width: "100%", cursor: "pointer", position: "relative" }, onClick: open }, /* @__PURE__ */ React107.createElement(Badge14, { size: "xs", variant: "light", color: "gray", style: { position: "absolute", top: 8, right: 8 } }, "Template"), /* @__PURE__ */ React107.createElement(Group35, { wrap: "nowrap", justify: "space-between", align: "center" }, /* @__PURE__ */ React107.createElement(Group35, { wrap: "nowrap", align: "center" }, /* @__PURE__ */ React107.createElement(ActionIcon18, { variant: "light", color: getChannelColor(channel), size: "lg", radius: "xl", style: { flexShrink: 0 } }, getIcon(block.props.icon, 18, 1.5, "bell")), /* @__PURE__ */ React107.createElement(Stack80, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React107.createElement(Group35, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React107.createElement(Badge14, { size: "sm", variant: "filled", color: getChannelColor(channel) }, channel.toUpperCase()), /* @__PURE__ */ React107.createElement(Text55, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "Notification")), /* @__PURE__ */ React107.createElement(Text55, { size: "xs", c: "dimmed", contentEditable: false, lineClamp: 1 }, to.length > 0 ? `To: ${to.join(", ")}` : "Click to configure recipients"), block.props.description && /* @__PURE__ */ React107.createElement(Text55, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description)))));
9568
9652
  };
9569
9653
 
9570
9654
  // src/mantine/blocks/notify/flow/FlowView.tsx
9571
- import React107, { useState as useState29 } from "react";
9572
- import { Card as Card23, Group as Group35, Stack as Stack80, Text as Text55, ActionIcon as ActionIcon19, Tooltip as Tooltip7, Button as Button27, Badge as Badge15, Collapse as Collapse3, Alert as Alert11, Loader as Loader6, Code as Code3 } from "@mantine/core";
9655
+ import React108, { useState as useState29 } from "react";
9656
+ import { Card as Card23, Group as Group36, Stack as Stack81, Text as Text56, ActionIcon as ActionIcon19, Tooltip as Tooltip7, Button as Button27, Badge as Badge15, Collapse as Collapse3, Alert as Alert11, Loader as Loader6, Code as Code3 } from "@mantine/core";
9573
9657
  import { IconSend as IconSend2, IconChevronDown as IconChevronDown3, IconChevronUp as IconChevronUp3, IconCheck, IconX as IconX3 } from "@tabler/icons-react";
9574
9658
  var NotifyFlowView = ({ editor, block, isDisabled }) => {
9575
9659
  const disabled = isDisabled?.isDisabled === "disable";
@@ -9683,20 +9767,20 @@ var NotifyFlowView = ({ editor, block, isDisabled }) => {
9683
9767
  }
9684
9768
  };
9685
9769
  const canSend = !disabled && !isLoading && handlers && to.length > 0 && (channel === "email" ? block.props.subject && block.props.body : true);
9686
- const sendButton = /* @__PURE__ */ React107.createElement(
9770
+ const sendButton = /* @__PURE__ */ React108.createElement(
9687
9771
  Button27,
9688
9772
  {
9689
9773
  size: "sm",
9690
9774
  variant: "light",
9691
9775
  color: getChannelColor(channel),
9692
- leftSection: isLoading ? /* @__PURE__ */ React107.createElement(Loader6, { size: 14 }) : status === "sent" ? /* @__PURE__ */ React107.createElement(IconCheck, { size: 14 }) : /* @__PURE__ */ React107.createElement(IconSend2, { size: 14 }),
9776
+ leftSection: isLoading ? /* @__PURE__ */ React108.createElement(Loader6, { size: 14 }) : status === "sent" ? /* @__PURE__ */ React108.createElement(IconCheck, { size: 14 }) : /* @__PURE__ */ React108.createElement(IconSend2, { size: 14 }),
9693
9777
  onClick: handleSendNotification,
9694
9778
  disabled: !canSend,
9695
9779
  style: { flexShrink: 0 }
9696
9780
  },
9697
9781
  isLoading ? "Sending..." : status === "sent" ? "Sent" : "Send"
9698
9782
  );
9699
- return /* @__PURE__ */ React107.createElement(Card23, { withBorder: true, padding: "md", radius: "md", style: { width: "100%" } }, /* @__PURE__ */ React107.createElement(Stack80, { gap: "md" }, /* @__PURE__ */ React107.createElement(Group35, { wrap: "nowrap", justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React107.createElement(Group35, { wrap: "nowrap", align: "flex-start", style: { flex: 1 } }, /* @__PURE__ */ React107.createElement(ActionIcon19, { variant: "light", color: getChannelColor(channel), size: "lg", radius: "xl", style: { flexShrink: 0 } }, getIcon(block.props.icon, 18, 1.5, "bell")), /* @__PURE__ */ React107.createElement(Stack80, { gap: "xs", style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React107.createElement(Group35, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React107.createElement(Badge15, { size: "sm", variant: "filled", color: getChannelColor(channel) }, channel.toUpperCase()), /* @__PURE__ */ React107.createElement(Text55, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "Notification"), status !== "idle" && /* @__PURE__ */ React107.createElement(Badge15, { size: "xs", variant: "dot", color: getStatusColor(status) }, status)), /* @__PURE__ */ React107.createElement(Text55, { size: "xs", c: "dimmed", contentEditable: false, lineClamp: 1 }, to.length > 0 ? `To: ${to.slice(0, 2).join(", ")}${to.length > 2 ? ` +${to.length - 2} more` : ""}` : "No recipients"), block.props.description && /* @__PURE__ */ React107.createElement(Text55, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), /* @__PURE__ */ React107.createElement(Group35, { gap: "xs", style: { flexShrink: 0 } }, disabled && isDisabled?.message ? /* @__PURE__ */ React107.createElement(Tooltip7, { label: isDisabled.message, position: "left", withArrow: true }, sendButton) : sendButton, /* @__PURE__ */ React107.createElement(ActionIcon19, { variant: "subtle", onClick: () => setShowDetails(!showDetails) }, showDetails ? /* @__PURE__ */ React107.createElement(IconChevronUp3, { size: 16 }) : /* @__PURE__ */ React107.createElement(IconChevronDown3, { size: 16 })))), status === "failed" && block.props.errorMessage && /* @__PURE__ */ React107.createElement(Alert11, { color: "red", icon: /* @__PURE__ */ React107.createElement(IconX3, { size: 16 }), title: "Failed to send", styles: { message: { fontSize: "12px" } } }, block.props.errorMessage), status === "sent" && block.props.messageId && /* @__PURE__ */ React107.createElement(Alert11, { color: "green", icon: /* @__PURE__ */ React107.createElement(IconCheck, { size: 16 }), title: "Sent successfully", styles: { message: { fontSize: "12px" } } }, "Message ID: ", block.props.messageId, block.props.sentAt && /* @__PURE__ */ React107.createElement(React107.Fragment, null, /* @__PURE__ */ React107.createElement("br", null), "Sent at: ", new Date(block.props.sentAt).toLocaleString())), /* @__PURE__ */ React107.createElement(Collapse3, { in: showDetails }, /* @__PURE__ */ React107.createElement(Stack80, { gap: "md" }, channel === "email" && /* @__PURE__ */ React107.createElement(React107.Fragment, null, /* @__PURE__ */ React107.createElement(Stack80, { gap: "xs" }, /* @__PURE__ */ React107.createElement(Text55, { size: "xs", fw: 600, c: "dimmed" }, "Recipients:"), /* @__PURE__ */ React107.createElement(Code3, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
9783
+ return /* @__PURE__ */ React108.createElement(Card23, { withBorder: true, padding: "md", radius: "md", style: { width: "100%" } }, /* @__PURE__ */ React108.createElement(Stack81, { gap: "md" }, /* @__PURE__ */ React108.createElement(Group36, { wrap: "nowrap", justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React108.createElement(Group36, { wrap: "nowrap", align: "flex-start", style: { flex: 1 } }, /* @__PURE__ */ React108.createElement(ActionIcon19, { variant: "light", color: getChannelColor(channel), size: "lg", radius: "xl", style: { flexShrink: 0 } }, getIcon(block.props.icon, 18, 1.5, "bell")), /* @__PURE__ */ React108.createElement(Stack81, { gap: "xs", style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React108.createElement(Group36, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React108.createElement(Badge15, { size: "sm", variant: "filled", color: getChannelColor(channel) }, channel.toUpperCase()), /* @__PURE__ */ React108.createElement(Text56, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "Notification"), status !== "idle" && /* @__PURE__ */ React108.createElement(Badge15, { size: "xs", variant: "dot", color: getStatusColor(status) }, status)), /* @__PURE__ */ React108.createElement(Text56, { size: "xs", c: "dimmed", contentEditable: false, lineClamp: 1 }, to.length > 0 ? `To: ${to.slice(0, 2).join(", ")}${to.length > 2 ? ` +${to.length - 2} more` : ""}` : "No recipients"), block.props.description && /* @__PURE__ */ React108.createElement(Text56, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), /* @__PURE__ */ React108.createElement(Group36, { gap: "xs", style: { flexShrink: 0 } }, disabled && isDisabled?.message ? /* @__PURE__ */ React108.createElement(Tooltip7, { label: isDisabled.message, position: "left", withArrow: true }, sendButton) : sendButton, /* @__PURE__ */ React108.createElement(ActionIcon19, { variant: "subtle", onClick: () => setShowDetails(!showDetails) }, showDetails ? /* @__PURE__ */ React108.createElement(IconChevronUp3, { size: 16 }) : /* @__PURE__ */ React108.createElement(IconChevronDown3, { size: 16 })))), status === "failed" && block.props.errorMessage && /* @__PURE__ */ React108.createElement(Alert11, { color: "red", icon: /* @__PURE__ */ React108.createElement(IconX3, { size: 16 }), title: "Failed to send", styles: { message: { fontSize: "12px" } } }, block.props.errorMessage), status === "sent" && block.props.messageId && /* @__PURE__ */ React108.createElement(Alert11, { color: "green", icon: /* @__PURE__ */ React108.createElement(IconCheck, { size: 16 }), title: "Sent successfully", styles: { message: { fontSize: "12px" } } }, "Message ID: ", block.props.messageId, block.props.sentAt && /* @__PURE__ */ React108.createElement(React108.Fragment, null, /* @__PURE__ */ React108.createElement("br", null), "Sent at: ", new Date(block.props.sentAt).toLocaleString())), /* @__PURE__ */ React108.createElement(Collapse3, { in: showDetails }, /* @__PURE__ */ React108.createElement(Stack81, { gap: "md" }, channel === "email" && /* @__PURE__ */ React108.createElement(React108.Fragment, null, /* @__PURE__ */ React108.createElement(Stack81, { gap: "xs" }, /* @__PURE__ */ React108.createElement(Text56, { size: "xs", fw: 600, c: "dimmed" }, "Recipients:"), /* @__PURE__ */ React108.createElement(Code3, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
9700
9784
  {
9701
9785
  to: to.filter((e) => e.trim() !== ""),
9702
9786
  ...cc.length > 0 && { cc: cc.filter((e) => e.trim() !== "") },
@@ -9704,7 +9788,7 @@ var NotifyFlowView = ({ editor, block, isDisabled }) => {
9704
9788
  },
9705
9789
  null,
9706
9790
  2
9707
- ))), block.props.subject && /* @__PURE__ */ React107.createElement(Stack80, { gap: "xs" }, /* @__PURE__ */ React107.createElement(Text55, { size: "xs", fw: 600, c: "dimmed" }, "Subject:"), /* @__PURE__ */ React107.createElement(Text55, { size: "xs" }, block.props.subject)), block.props.body && /* @__PURE__ */ React107.createElement(Stack80, { gap: "xs" }, /* @__PURE__ */ React107.createElement(Text55, { size: "xs", fw: 600, c: "dimmed" }, "Body (", block.props.bodyType || "text", "):"), /* @__PURE__ */ React107.createElement(Code3, { block: true, style: { fontSize: "11px", maxHeight: "200px", overflow: "auto" } }, block.props.body)), (block.props.from || block.props.replyTo) && /* @__PURE__ */ React107.createElement(Stack80, { gap: "xs" }, /* @__PURE__ */ React107.createElement(Text55, { size: "xs", fw: 600, c: "dimmed" }, "Additional:"), /* @__PURE__ */ React107.createElement(Code3, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
9791
+ ))), block.props.subject && /* @__PURE__ */ React108.createElement(Stack81, { gap: "xs" }, /* @__PURE__ */ React108.createElement(Text56, { size: "xs", fw: 600, c: "dimmed" }, "Subject:"), /* @__PURE__ */ React108.createElement(Text56, { size: "xs" }, block.props.subject)), block.props.body && /* @__PURE__ */ React108.createElement(Stack81, { gap: "xs" }, /* @__PURE__ */ React108.createElement(Text56, { size: "xs", fw: 600, c: "dimmed" }, "Body (", block.props.bodyType || "text", "):"), /* @__PURE__ */ React108.createElement(Code3, { block: true, style: { fontSize: "11px", maxHeight: "200px", overflow: "auto" } }, block.props.body)), (block.props.from || block.props.replyTo) && /* @__PURE__ */ React108.createElement(Stack81, { gap: "xs" }, /* @__PURE__ */ React108.createElement(Text56, { size: "xs", fw: 600, c: "dimmed" }, "Additional:"), /* @__PURE__ */ React108.createElement(Code3, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
9708
9792
  {
9709
9793
  ...block.props.from && { from: block.props.from },
9710
9794
  ...block.props.replyTo && { replyTo: block.props.replyTo }
@@ -9719,7 +9803,7 @@ function NotifyBlock({ editor, block }) {
9719
9803
  const { editable } = useBlocknoteContext();
9720
9804
  const { actions } = useBlockConditions(block, editor);
9721
9805
  if (editable) {
9722
- return /* @__PURE__ */ React108.createElement(NotifyTemplateView, { editor, block });
9806
+ return /* @__PURE__ */ React109.createElement(NotifyTemplateView, { editor, block });
9723
9807
  }
9724
9808
  const conditionConfig = parseConditionConfig(block.props.conditions);
9725
9809
  const hasVisibility = hasVisibilityConditions(conditionConfig);
@@ -9731,7 +9815,7 @@ function NotifyBlock({ editor, block }) {
9731
9815
  const hasEnable = hasEnableConditions(conditionConfig);
9732
9816
  const enableActionExists = actions.some((a) => a.action === "enable");
9733
9817
  const shouldDisable = hasEnable && !enableActionExists;
9734
- return /* @__PURE__ */ React108.createElement(NotifyFlowView, { block, editor, isDisabled: shouldDisable ? { isDisabled: "disable", message: "Notification disabled by conditions" } : void 0 });
9818
+ return /* @__PURE__ */ React109.createElement(NotifyFlowView, { block, editor, isDisabled: shouldDisable ? { isDisabled: "disable", message: "Notification disabled by conditions" } : void 0 });
9735
9819
  }
9736
9820
 
9737
9821
  // src/mantine/blocks/notify/NotifyBlockSpec.tsx
@@ -9775,18 +9859,18 @@ var NotifyBlockSpec = createReactBlockSpec7(
9775
9859
  {
9776
9860
  render: (props) => {
9777
9861
  const ixoProps = props;
9778
- return /* @__PURE__ */ React109.createElement(NotifyBlock, { ...ixoProps });
9862
+ return /* @__PURE__ */ React110.createElement(NotifyBlock, { ...ixoProps });
9779
9863
  }
9780
9864
  }
9781
9865
  );
9782
9866
 
9783
9867
  // src/mantine/blocks/list/ui/ListBlocksToolbar.tsx
9784
- import React110 from "react";
9785
- import { ActionIcon as ActionIcon20, Group as Group36, Tooltip as Tooltip8 } from "@mantine/core";
9868
+ import React111 from "react";
9869
+ import { ActionIcon as ActionIcon20, Group as Group37, Tooltip as Tooltip8 } from "@mantine/core";
9786
9870
  import { IconChevronUp as IconChevronUp4, IconChevronDown as IconChevronDown4 } from "@tabler/icons-react";
9787
9871
  var ListBlocksToolbar = () => {
9788
9872
  const { broadcastCollapse } = useListBlocksUI();
9789
- return /* @__PURE__ */ React110.createElement(Group36, { gap: "xs" }, /* @__PURE__ */ React110.createElement(Tooltip8, { label: "Collapse all lists", withArrow: true }, /* @__PURE__ */ React110.createElement(ActionIcon20, { c: "dimmed", variant: "subtle", size: "sm", "aria-label": "Collapse all lists", onClick: () => broadcastCollapse("collapse") }, /* @__PURE__ */ React110.createElement(IconChevronUp4, { size: 18 }))), /* @__PURE__ */ React110.createElement(Tooltip8, { label: "Expand all lists", withArrow: true }, /* @__PURE__ */ React110.createElement(ActionIcon20, { c: "dimmed", variant: "subtle", size: "sm", "aria-label": "Expand all lists", onClick: () => broadcastCollapse("expand") }, /* @__PURE__ */ React110.createElement(IconChevronDown4, { size: 18 }))));
9873
+ return /* @__PURE__ */ React111.createElement(Group37, { gap: "xs" }, /* @__PURE__ */ React111.createElement(Tooltip8, { label: "Collapse all lists", withArrow: true }, /* @__PURE__ */ React111.createElement(ActionIcon20, { c: "dimmed", variant: "subtle", size: "sm", "aria-label": "Collapse all lists", onClick: () => broadcastCollapse("collapse") }, /* @__PURE__ */ React111.createElement(IconChevronUp4, { size: 18 }))), /* @__PURE__ */ React111.createElement(Tooltip8, { label: "Expand all lists", withArrow: true }, /* @__PURE__ */ React111.createElement(ActionIcon20, { c: "dimmed", variant: "subtle", size: "sm", "aria-label": "Expand all lists", onClick: () => broadcastCollapse("expand") }, /* @__PURE__ */ React111.createElement(IconChevronDown4, { size: 18 }))));
9790
9874
  };
9791
9875
 
9792
9876
  // src/mantine/blocks/registry/blockRegistry.ts
@@ -10495,21 +10579,21 @@ function useCreateCollaborativeIxoEditor(options) {
10495
10579
  }
10496
10580
 
10497
10581
  // src/mantine/IxoEditor.tsx
10498
- import React112 from "react";
10582
+ import React113 from "react";
10499
10583
  import { getDefaultReactSlashMenuItems, SuggestionMenuController } from "@blocknote/react";
10500
10584
  import { BlockNoteView } from "@blocknote/mantine";
10501
10585
  import { filterSuggestionItems } from "@blocknote/core";
10502
- import { Flex as Flex21, MantineProvider, Text as Text56 } from "@mantine/core";
10586
+ import { Flex as Flex22, MantineProvider, Text as Text57 } from "@mantine/core";
10503
10587
 
10504
10588
  // src/mantine/components/PanelContent.tsx
10505
- import React111 from "react";
10506
- import { Box as Box21 } from "@mantine/core";
10589
+ import React112 from "react";
10590
+ import { Box as Box22 } from "@mantine/core";
10507
10591
  function PanelContent() {
10508
10592
  const { activePanel, registeredPanels } = usePanelStore();
10509
10593
  const isOpen = activePanel !== null;
10510
10594
  const content = activePanel ? registeredPanels.get(activePanel) : null;
10511
- return /* @__PURE__ */ React111.createElement(
10512
- Box21,
10595
+ return /* @__PURE__ */ React112.createElement(
10596
+ Box22,
10513
10597
  {
10514
10598
  pos: "sticky",
10515
10599
  right: 0,
@@ -10535,7 +10619,7 @@ function IxoEditorContent({
10535
10619
  onSelectionChange,
10536
10620
  children
10537
10621
  }) {
10538
- return /* @__PURE__ */ React112.createElement("div", { style: { display: "flex", height: "100%" } }, /* @__PURE__ */ React112.createElement("div", { className: `ixo-editor ixo-editor--theme-${config.theme} ${className}`, style: { flex: 1 } }, /* @__PURE__ */ React112.createElement(
10622
+ return /* @__PURE__ */ React113.createElement("div", { style: { display: "flex", height: "100%" } }, /* @__PURE__ */ React113.createElement("div", { className: `ixo-editor ixo-editor--theme-${config.theme} ${className}`, style: { flex: 1 } }, /* @__PURE__ */ React113.createElement(
10539
10623
  BlockNoteView,
10540
10624
  {
10541
10625
  editor,
@@ -10550,7 +10634,7 @@ function IxoEditorContent({
10550
10634
  onChange,
10551
10635
  onSelectionChange
10552
10636
  },
10553
- config.slashMenu && /* @__PURE__ */ React112.createElement(
10637
+ config.slashMenu && /* @__PURE__ */ React113.createElement(
10554
10638
  SuggestionMenuController,
10555
10639
  {
10556
10640
  triggerCharacter: "/",
@@ -10562,7 +10646,7 @@ function IxoEditorContent({
10562
10646
  }
10563
10647
  ),
10564
10648
  children
10565
- )), /* @__PURE__ */ React112.createElement(PanelContent, null));
10649
+ )), /* @__PURE__ */ React113.createElement(PanelContent, null));
10566
10650
  }
10567
10651
  function IxoEditor({
10568
10652
  editor,
@@ -10588,9 +10672,9 @@ function IxoEditor({
10588
10672
  tableHandles: true
10589
10673
  };
10590
10674
  const isEditable = editable;
10591
- const editorContent = /* @__PURE__ */ React112.createElement(BlocknoteProvider, { editor, handlers, blockRequirements, editable: isEditable }, /* @__PURE__ */ React112.createElement(ListBlocksUIProvider, null, /* @__PURE__ */ React112.createElement(Flex21, { pr: 25, justify: "flex-end", align: "center", gap: "xs" }, /* @__PURE__ */ React112.createElement(Text56, { size: "xs", c: "dimmed", tt: "uppercase" }, "Global actions"), /* @__PURE__ */ React112.createElement(ListBlocksToolbar, null)), /* @__PURE__ */ React112.createElement(IxoEditorContent, { editor, config, isEditable, className, onChange, onSelectionChange }, children)));
10675
+ const editorContent = /* @__PURE__ */ React113.createElement(BlocknoteProvider, { editor, handlers, blockRequirements, editable: isEditable }, /* @__PURE__ */ React113.createElement(ListBlocksUIProvider, null, /* @__PURE__ */ React113.createElement(Flex22, { pr: 25, justify: "flex-end", align: "center", gap: "xs" }, /* @__PURE__ */ React113.createElement(Text57, { size: "xs", c: "dimmed", tt: "uppercase" }, "Global actions"), /* @__PURE__ */ React113.createElement(ListBlocksToolbar, null)), /* @__PURE__ */ React113.createElement(IxoEditorContent, { editor, config, isEditable, className, onChange, onSelectionChange }, children)));
10592
10676
  if (mantineTheme) {
10593
- return /* @__PURE__ */ React112.createElement(MantineProvider, { theme: mantineTheme }, editorContent);
10677
+ return /* @__PURE__ */ React113.createElement(MantineProvider, { theme: mantineTheme }, editorContent);
10594
10678
  }
10595
10679
  return editorContent;
10596
10680
  }
@@ -10674,4 +10758,4 @@ export {
10674
10758
  ixoGraphQLClient,
10675
10759
  getEntity
10676
10760
  };
10677
- //# sourceMappingURL=chunk-JQ2HK6IY.mjs.map
10761
+ //# sourceMappingURL=chunk-FDLWSUB5.mjs.map