@ixo/editor 2.3.0 → 2.4.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.
@@ -2597,7 +2597,7 @@ var ListTemplateView = ({ editor, block }) => {
2597
2597
 
2598
2598
  // src/mantine/blocks/list/flow/ListFlowView.tsx
2599
2599
  import React46, { useState as useState7, useEffect as useEffect7, useMemo as useMemo8, useCallback as useCallback10 } from "react";
2600
- import { Group as Group8, Stack as Stack27, Text as Text27, ActionIcon as ActionIcon2, Alert as Alert4, Loader as Loader2, Center as Center2, Flex as Flex19, Button as Button6, Title as Title4, Collapse } from "@mantine/core";
2600
+ import { Group as Group8, Stack as Stack27, Text as Text27, ActionIcon as ActionIcon2, Alert as Alert4, Loader as Loader2, Center as Center2, Flex as Flex19, Button as Button6, Title as Title4, Collapse, Tooltip as Tooltip4 } from "@mantine/core";
2601
2601
 
2602
2602
  // src/mantine/blocks/list/linked_resources/LinkedResourcesList.tsx
2603
2603
  import React26 from "react";
@@ -2931,7 +2931,7 @@ var ValidatorsList = ({ items, isMultiSelect, isItemChecked, onItemCheck }) => {
2931
2931
 
2932
2932
  // src/mantine/blocks/list/ListActionsMenu.tsx
2933
2933
  import React38 from "react";
2934
- import { Menu, Text as Text20, ActionIcon } from "@mantine/core";
2934
+ import { Menu, Text as Text20, ActionIcon, Tooltip as Tooltip3 } from "@mantine/core";
2935
2935
  import { IconArrowDown, IconArrowUp, IconAdjustments, IconCheckbox as IconCheckbox2, IconAdjustmentsHorizontal, IconDownload } from "@tabler/icons-react";
2936
2936
  var ListActionsMenu = ({ options, isMultiSelect, setIsMultiSelect, value, onChange, onDownloadCsv }) => {
2937
2937
  const renderItem = (opt, direction) => {
@@ -2978,7 +2978,7 @@ var ListActionsMenu = ({ options, isMultiSelect, setIsMultiSelect, value, onChan
2978
2978
  }
2979
2979
  }
2980
2980
  },
2981
- /* @__PURE__ */ React38.createElement(Menu.Target, null, /* @__PURE__ */ React38.createElement(ActionIcon, { variant: "subtle", size: "sm", "aria-label": "List actions", title: "List actions" }, /* @__PURE__ */ React38.createElement(IconAdjustmentsHorizontal, { size: 18 }))),
2981
+ /* @__PURE__ */ React38.createElement(Menu.Target, null, /* @__PURE__ */ React38.createElement(Tooltip3, { label: "Actions", withArrow: true }, /* @__PURE__ */ React38.createElement(ActionIcon, { variant: "subtle", size: "sm", "aria-label": "List actions", title: "List actions" }, /* @__PURE__ */ React38.createElement(IconAdjustmentsHorizontal, { size: 18 })))),
2982
2982
  /* @__PURE__ */ React38.createElement(Menu.Dropdown, null, /* @__PURE__ */ React38.createElement(Menu.Label, null, /* @__PURE__ */ React38.createElement(Text20, null, "Order By")), options.map((opt) => /* @__PURE__ */ React38.createElement(React38.Fragment, { key: opt.key }, renderItem(opt, "desc"), renderItem(opt, "asc"))), /* @__PURE__ */ React38.createElement(Menu.Divider, null), /* @__PURE__ */ React38.createElement(Menu.Item, { leftSection: /* @__PURE__ */ React38.createElement(IconAdjustments, { size: 16 }) }, "Smart Filter"), /* @__PURE__ */ React38.createElement(Menu.Divider, null), /* @__PURE__ */ React38.createElement(Menu.Item, { onClick: () => setIsMultiSelect(!isMultiSelect), leftSection: /* @__PURE__ */ React38.createElement(IconCheckbox2, { size: 16 }) }, "Multi Select"), onDownloadCsv && /* @__PURE__ */ React38.createElement(React38.Fragment, null, /* @__PURE__ */ React38.createElement(Menu.Divider, null), /* @__PURE__ */ React38.createElement(Menu.Item, { onClick: onDownloadCsv, leftSection: /* @__PURE__ */ React38.createElement(IconDownload, { size: 16 }) }, "Download CSV")))
2983
2983
  );
2984
2984
  };
@@ -3706,7 +3706,7 @@ var ListFlowView = ({ block, editor }) => {
3706
3706
  if (!listType) {
3707
3707
  return /* @__PURE__ */ React46.createElement(Center2, { py: "xl" }, /* @__PURE__ */ React46.createElement(Text27, { size: "sm", c: "dimmed" }, "List not configured"));
3708
3708
  }
3709
- return /* @__PURE__ */ React46.createElement(Stack27, { w: "100%" }, /* @__PURE__ */ React46.createElement(Flex19, { px: 5, align: "center", justify: "space-between" }, /* @__PURE__ */ React46.createElement(Title4, { order: 4 }, getListNameByType(listType)), /* @__PURE__ */ React46.createElement(ActionIcon2, { variant: "subtle", size: "sm", onClick: toggle, "aria-label": opened ? "Collapse" : "Expand", title: opened ? "Collapse" : "Expand" }, opened ? /* @__PURE__ */ React46.createElement(IconChevronUp, { size: 18 }) : /* @__PURE__ */ React46.createElement(IconChevronDown, { size: 18 }))), /* @__PURE__ */ React46.createElement(Collapse, { pb: 5, px: 5, in: opened }, /* @__PURE__ */ React46.createElement(Stack27, { mih: totalPages !== 1 ? 500 : void 0, w: "100%" }, /* @__PURE__ */ React46.createElement(Flex19, { align: "center", gap: "xs" }, listSortConfig?.key && /* @__PURE__ */ React46.createElement(Flex19, { align: "center" }, /* @__PURE__ */ React46.createElement(Text27, { size: "xs" }, listSortConfig.key?.replace(/([A-Z])/g, " $1").replace(
3709
+ return /* @__PURE__ */ React46.createElement(Stack27, { w: "100%" }, /* @__PURE__ */ React46.createElement(Flex19, { px: 5, align: "center", justify: "space-between" }, /* @__PURE__ */ React46.createElement(Title4, { order: 4 }, getListNameByType(listType)), /* @__PURE__ */ React46.createElement(Tooltip4, { label: opened ? "Collapse" : "Expand", withArrow: true }, /* @__PURE__ */ React46.createElement(ActionIcon2, { variant: "subtle", size: "sm", onClick: toggle, "aria-label": opened ? "Collapse" : "Expand" }, opened ? /* @__PURE__ */ React46.createElement(IconChevronUp, { size: 18 }) : /* @__PURE__ */ React46.createElement(IconChevronDown, { size: 18 })))), /* @__PURE__ */ React46.createElement(Collapse, { pb: 5, px: 5, in: opened }, /* @__PURE__ */ React46.createElement(Stack27, { mih: totalPages !== 1 ? 500 : void 0, w: "100%" }, /* @__PURE__ */ React46.createElement(Flex19, { align: "center", gap: "xs" }, listSortConfig?.key && /* @__PURE__ */ React46.createElement(Flex19, { align: "center" }, /* @__PURE__ */ React46.createElement(Text27, { size: "xs" }, listSortConfig.key?.replace(/([A-Z])/g, " $1").replace(
3710
3710
  /^./,
3711
3711
  (str) => str.toUpperCase()
3712
3712
  ), " "), /* @__PURE__ */ React46.createElement(Text27, { lh: 0.5 }, listSortConfig.direction === "asc" && /* @__PURE__ */ React46.createElement(IconArrowUp2, { size: 18 }), listSortConfig.direction === "desc" && /* @__PURE__ */ React46.createElement(IconArrowDown2, { size: 18 }))), isMultiSelect && /* @__PURE__ */ React46.createElement(Text27, { lh: 0.5 }, "Multi Selection")), /* @__PURE__ */ React46.createElement(Flex19, { justify: "space-between" }, /* @__PURE__ */ React46.createElement(Flex19, { gap: "xs", align: "center" }, /* @__PURE__ */ React46.createElement(FilterTab, { key: "All", label: "All", isActive: !listFilterConfig?.key, onClick: () => handleFilterChange(null) }), Array.isArray(listFilterConfigOptions) && listFilterConfigOptions.length > 0 && listFilterConfigOptions.map(({ key, label, type }) => /* @__PURE__ */ React46.createElement(
@@ -3717,7 +3717,7 @@ var ListFlowView = ({ block, editor }) => {
3717
3717
  isActive: listFilterConfig?.key === key && listFilterConfig?.value === type,
3718
3718
  onClick: () => handleFilterChange({ key, value: type })
3719
3719
  }
3720
- ))), /* @__PURE__ */ React46.createElement(Flex19, { gap: "xs" }, /* @__PURE__ */ React46.createElement(ActionIcon2, { variant: "subtle", size: "sm", onClick: fetchData, loading }, /* @__PURE__ */ React46.createElement(IconRefresh, { size: 18 })), editable && /* @__PURE__ */ React46.createElement(ActionIcon2, { variant: "subtle", size: "sm", onClick: openPanel }, /* @__PURE__ */ React46.createElement(IconSettings, { size: 18 })), listConfig && listSortConfigOptions && listSortConfigOptions?.length > 0 && /* @__PURE__ */ React46.createElement(
3720
+ ))), /* @__PURE__ */ React46.createElement(Flex19, { gap: "xs" }, /* @__PURE__ */ React46.createElement(Tooltip4, { label: "Refresh", withArrow: true }, /* @__PURE__ */ React46.createElement(ActionIcon2, { variant: "subtle", size: "sm", onClick: fetchData, loading }, /* @__PURE__ */ React46.createElement(IconRefresh, { size: 18 }))), editable && /* @__PURE__ */ React46.createElement(Tooltip4, { label: "Settings", withArrow: true }, /* @__PURE__ */ React46.createElement(ActionIcon2, { variant: "subtle", size: "sm", onClick: openPanel }, /* @__PURE__ */ React46.createElement(IconSettings, { size: 18 }))), listConfig && listSortConfigOptions && listSortConfigOptions?.length > 0 && /* @__PURE__ */ React46.createElement(
3721
3721
  ListActionsMenu,
3722
3722
  {
3723
3723
  isMultiSelect,
@@ -6714,7 +6714,7 @@ var useVoteBusinessLogic = ({ block, editor }) => {
6714
6714
 
6715
6715
  // src/mantine/blocks/proposal/flow/VoteGeneralTab.tsx
6716
6716
  import React89, { useState as useState20 } from "react";
6717
- import { Stack as Stack67, Text as Text41, Group as Group24, Card as Card12, Button as Button15, Progress as Progress2, Box as Box18, Tooltip as Tooltip3 } from "@mantine/core";
6717
+ import { Stack as Stack67, Text as Text41, Group as Group24, Card as Card12, Button as Button15, Progress as Progress2, Box as Box18, Tooltip as Tooltip5 } from "@mantine/core";
6718
6718
  var getVoteIcon = (voteType) => {
6719
6719
  switch (voteType) {
6720
6720
  case "yes":
@@ -6847,7 +6847,7 @@ var FlowGeneralTab = ({
6847
6847
  }
6848
6848
  }
6849
6849
  ), /* @__PURE__ */ React89.createElement(Text41, { size: "sm", fw: 500, style: { color: "#ffd43b" } }, isDisabled.message))
6850
- ), /* @__PURE__ */ React89.createElement(Stack67, { gap: "md" }, ["yes", "no", "no_with_veto", "abstain"].map((voteType) => /* @__PURE__ */ React89.createElement(Tooltip3, { key: voteType, label: disabled ? isDisabled?.message : void 0, disabled: !disabled, position: "top" }, /* @__PURE__ */ React89.createElement(
6850
+ ), /* @__PURE__ */ React89.createElement(Stack67, { gap: "md" }, ["yes", "no", "no_with_veto", "abstain"].map((voteType) => /* @__PURE__ */ React89.createElement(Tooltip5, { key: voteType, label: disabled ? isDisabled?.message : void 0, disabled: !disabled, position: "top" }, /* @__PURE__ */ React89.createElement(
6851
6851
  Button15,
6852
6852
  {
6853
6853
  variant: "outline",
@@ -6888,7 +6888,7 @@ var FlowGeneralTab = ({
6888
6888
  }
6889
6889
  },
6890
6890
  /* @__PURE__ */ React89.createElement(Stack67, { gap: "xs" }, /* @__PURE__ */ React89.createElement(Text41, { fw: 500, size: "sm", style: { color: "#f1f3f5" } }, "Proposal Executed"), /* @__PURE__ */ React89.createElement(Text41, { size: "sm", style: { color: "#adb5bd" } }, "This proposal has been successfully executed."))
6891
- ), !hasSubmittedProposal && /* @__PURE__ */ React89.createElement(Stack67, { gap: "lg" }, /* @__PURE__ */ React89.createElement(Stack67, { gap: "md" }, ["yes", "no", "no_with_veto", "abstain"].map((voteType) => /* @__PURE__ */ React89.createElement(Tooltip3, { key: voteType, label: "Proposal must be submitted before voting", position: "top" }, /* @__PURE__ */ React89.createElement(
6891
+ ), !hasSubmittedProposal && /* @__PURE__ */ React89.createElement(Stack67, { gap: "lg" }, /* @__PURE__ */ React89.createElement(Stack67, { gap: "md" }, ["yes", "no", "no_with_veto", "abstain"].map((voteType) => /* @__PURE__ */ React89.createElement(Tooltip5, { key: voteType, label: "Proposal must be submitted before voting", position: "top" }, /* @__PURE__ */ React89.createElement(
6892
6892
  Button15,
6893
6893
  {
6894
6894
  variant: "outline",
@@ -6906,7 +6906,7 @@ var FlowGeneralTab = ({
6906
6906
  }
6907
6907
  },
6908
6908
  /* @__PURE__ */ React89.createElement(Text41, { fw: 500, tt: "capitalize", style: { textAlign: "left" } }, voteType === "no_with_veto" ? "No with Veto" : voteType)
6909
- ))))), hasSubmittedProposal && !hasVoted && selectedVote && (status === "open" || proposalStatus === "open") && /* @__PURE__ */ React89.createElement(Tooltip3, { label: disabled ? isDisabled?.message : "Sign to vote", position: "top" }, /* @__PURE__ */ React89.createElement("div", null, /* @__PURE__ */ React89.createElement(
6909
+ ))))), hasSubmittedProposal && !hasVoted && selectedVote && (status === "open" || proposalStatus === "open") && /* @__PURE__ */ React89.createElement(Tooltip5, { label: disabled ? isDisabled?.message : "Sign to vote", position: "top" }, /* @__PURE__ */ React89.createElement("div", null, /* @__PURE__ */ React89.createElement(
6910
6910
  Button15,
6911
6911
  {
6912
6912
  size: "sm",
@@ -7385,12 +7385,12 @@ import { IconTrash, IconPlus as IconPlus2 } from "@tabler/icons-react";
7385
7385
 
7386
7386
  // src/mantine/components/DataInput/DataInput.tsx
7387
7387
  import React96, { useState as useState24, useCallback as useCallback15, useMemo as useMemo13 } from "react";
7388
- import { Input as Input2, ActionIcon as ActionIcon7, Tooltip as Tooltip5, Badge as Badge11, Group as Group26 } from "@mantine/core";
7388
+ import { Input as Input2, ActionIcon as ActionIcon7, Tooltip as Tooltip7, Badge as Badge11, Group as Group26 } from "@mantine/core";
7389
7389
  import { IconVariable, IconX as IconX2 } from "@tabler/icons-react";
7390
7390
 
7391
7391
  // src/mantine/components/DataInput/BlockPropSelector.tsx
7392
7392
  import React95, { useState as useState23, useMemo as useMemo12 } from "react";
7393
- import { Popover, Text as Text44, Stack as Stack70, Group as Group25, ActionIcon as ActionIcon6, Input, ScrollArea as ScrollArea4, Badge as Badge10, Box as Box19, Tooltip as Tooltip4 } from "@mantine/core";
7393
+ import { Popover, Text as Text44, Stack as Stack70, Group as Group25, ActionIcon as ActionIcon6, Input, ScrollArea as ScrollArea4, Badge as Badge10, Box as Box19, Tooltip as Tooltip6 } from "@mantine/core";
7394
7394
  import { IconSearch, IconX, IconCircle, IconChevronRight as IconChevronRight2, IconArrowLeft } from "@tabler/icons-react";
7395
7395
  function buildPropertyTree(properties) {
7396
7396
  const root = [];
@@ -7557,7 +7557,7 @@ function BlockPropSelector({ children, opened, onClose, onSelect, editorDocument
7557
7557
  )))
7558
7558
  ) : (
7559
7559
  // Property navigation view
7560
- currentNodes.length === 0 ? /* @__PURE__ */ React95.createElement(Text44, { c: "dimmed", ta: "center", py: "xl", size: "sm" }, "No properties available") : /* @__PURE__ */ React95.createElement(Stack70, { gap: "xs" }, currentNodes.map((node, index) => /* @__PURE__ */ React95.createElement(Tooltip4, { key: index, label: node.isLeaf ? `Select ${node.displayName}` : `Navigate into ${node.displayName}`, position: "left", withArrow: true }, /* @__PURE__ */ React95.createElement(
7560
+ currentNodes.length === 0 ? /* @__PURE__ */ React95.createElement(Text44, { c: "dimmed", ta: "center", py: "xl", size: "sm" }, "No properties available") : /* @__PURE__ */ React95.createElement(Stack70, { gap: "xs" }, currentNodes.map((node, index) => /* @__PURE__ */ React95.createElement(Tooltip6, { key: index, label: node.isLeaf ? `Select ${node.displayName}` : `Navigate into ${node.displayName}`, position: "left", withArrow: true }, /* @__PURE__ */ React95.createElement(
7561
7561
  Box19,
7562
7562
  {
7563
7563
  onClick: () => handleNodeClick(node),
@@ -7716,7 +7716,7 @@ function DataInput({
7716
7716
  size,
7717
7717
  style: { width: "100%" },
7718
7718
  rightSectionPointerEvents: "all",
7719
- rightSection: /* @__PURE__ */ React96.createElement(Group26, { gap: 4, wrap: "nowrap" }, containsReferences && /* @__PURE__ */ React96.createElement(Tooltip5, { label: "Click to clear all references", position: "left" }, /* @__PURE__ */ React96.createElement(Badge11, { size: "sm", variant: "light", color: "blue", style: { cursor: "pointer" }, onClick: handleClearReferences, leftSection: /* @__PURE__ */ React96.createElement(IconX2, { size: 10 }) }, references.length, " ref", references.length !== 1 ? "s" : "")), /* @__PURE__ */ React96.createElement(
7719
+ rightSection: /* @__PURE__ */ React96.createElement(Group26, { gap: 4, wrap: "nowrap" }, containsReferences && /* @__PURE__ */ React96.createElement(Tooltip7, { label: "Click to clear all references", position: "left" }, /* @__PURE__ */ React96.createElement(Badge11, { size: "sm", variant: "light", color: "blue", style: { cursor: "pointer" }, onClick: handleClearReferences, leftSection: /* @__PURE__ */ React96.createElement(IconX2, { size: 10 }) }, references.length, " ref", references.length !== 1 ? "s" : "")), /* @__PURE__ */ React96.createElement(
7720
7720
  BlockPropSelector,
7721
7721
  {
7722
7722
  opened: selectorOpened,
@@ -7725,7 +7725,7 @@ function DataInput({
7725
7725
  editorDocument,
7726
7726
  currentBlockId
7727
7727
  },
7728
- /* @__PURE__ */ React96.createElement(Tooltip5, { label: "Insert reference to another block's property", position: "left" }, /* @__PURE__ */ React96.createElement(
7728
+ /* @__PURE__ */ React96.createElement(Tooltip7, { label: "Insert reference to another block's property", position: "left" }, /* @__PURE__ */ React96.createElement(
7729
7729
  ActionIcon7,
7730
7730
  {
7731
7731
  variant: containsReferences ? "light" : "subtle",
@@ -8139,7 +8139,7 @@ var ApiRequestTemplateView = ({ editor, block }) => {
8139
8139
 
8140
8140
  // src/mantine/blocks/apiRequest/flow/FlowView.tsx
8141
8141
  import React101, { useState as useState26 } from "react";
8142
- import { Group as Group30, Stack as Stack74, Text as Text48, ActionIcon as ActionIcon10, Tooltip as Tooltip6, Button as Button21, Badge as Badge13, Collapse as Collapse3, Code as Code2, Loader as Loader6, Alert as Alert11 } from "@mantine/core";
8142
+ import { Group as Group30, Stack as Stack74, Text as Text48, ActionIcon as ActionIcon10, Tooltip as Tooltip8, Button as Button21, Badge as Badge13, Collapse as Collapse3, Code as Code2, Loader as Loader6, Alert as Alert11 } from "@mantine/core";
8143
8143
  import { IconSend, IconChevronDown as IconChevronDown3, IconChevronUp as IconChevronUp2, IconAlertTriangle } from "@tabler/icons-react";
8144
8144
  var ApiRequestFlowView = ({ editor, block, isDisabled }) => {
8145
8145
  const disabled = isDisabled?.isDisabled === "disable";
@@ -8292,7 +8292,7 @@ var ApiRequestFlowView = ({ editor, block, isDisabled }) => {
8292
8292
  }
8293
8293
  },
8294
8294
  endpoint || "No endpoint configured"
8295
- ), block.props.description && /* @__PURE__ */ React101.createElement(Text48, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), /* @__PURE__ */ React101.createElement(Group30, { gap: "xs", style: { flexShrink: 0 } }, disabled && isDisabled?.message ? /* @__PURE__ */ React101.createElement(Tooltip6, { label: isDisabled.message, position: "left", withArrow: true }, executeButton) : executeButton, /* @__PURE__ */ React101.createElement(ActionIcon10, { variant: "subtle", onClick: () => setShowDetails(!showDetails), disabled: headers.length === 0 && body.length === 0 && !response }, showDetails ? /* @__PURE__ */ React101.createElement(IconChevronUp2, { size: 16 }) : /* @__PURE__ */ React101.createElement(IconChevronDown3, { size: 16 })))), /* @__PURE__ */ React101.createElement(Collapse3, { in: showDetails }, /* @__PURE__ */ React101.createElement(Stack74, { gap: "md" }, validationWarnings.length > 0 && /* @__PURE__ */ React101.createElement(Alert11, { icon: /* @__PURE__ */ React101.createElement(IconAlertTriangle, { size: 16 }), title: "Schema Validation Warnings", color: "yellow" }, /* @__PURE__ */ React101.createElement(Stack74, { gap: "xs" }, /* @__PURE__ */ React101.createElement(Text48, { size: "xs" }, "The API response does not match the defined schema:"), validationWarnings.map((warning, index) => /* @__PURE__ */ React101.createElement(Text48, { key: index, size: "xs", c: "dimmed" }, "\u2022 ", warning)))), headers.length > 0 && /* @__PURE__ */ React101.createElement(Stack74, { gap: "xs" }, /* @__PURE__ */ React101.createElement(Text48, { size: "xs", fw: 600, c: "dimmed" }, "Headers:"), /* @__PURE__ */ React101.createElement(Code2, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
8295
+ ), block.props.description && /* @__PURE__ */ React101.createElement(Text48, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), /* @__PURE__ */ React101.createElement(Group30, { gap: "xs", style: { flexShrink: 0 } }, disabled && isDisabled?.message ? /* @__PURE__ */ React101.createElement(Tooltip8, { label: isDisabled.message, position: "left", withArrow: true }, executeButton) : executeButton, /* @__PURE__ */ React101.createElement(ActionIcon10, { variant: "subtle", onClick: () => setShowDetails(!showDetails), disabled: headers.length === 0 && body.length === 0 && !response }, showDetails ? /* @__PURE__ */ React101.createElement(IconChevronUp2, { size: 16 }) : /* @__PURE__ */ React101.createElement(IconChevronDown3, { size: 16 })))), /* @__PURE__ */ React101.createElement(Collapse3, { in: showDetails }, /* @__PURE__ */ React101.createElement(Stack74, { gap: "md" }, validationWarnings.length > 0 && /* @__PURE__ */ React101.createElement(Alert11, { icon: /* @__PURE__ */ React101.createElement(IconAlertTriangle, { size: 16 }), title: "Schema Validation Warnings", color: "yellow" }, /* @__PURE__ */ React101.createElement(Stack74, { gap: "xs" }, /* @__PURE__ */ React101.createElement(Text48, { size: "xs" }, "The API response does not match the defined schema:"), validationWarnings.map((warning, index) => /* @__PURE__ */ React101.createElement(Text48, { key: index, size: "xs", c: "dimmed" }, "\u2022 ", warning)))), headers.length > 0 && /* @__PURE__ */ React101.createElement(Stack74, { gap: "xs" }, /* @__PURE__ */ React101.createElement(Text48, { size: "xs", fw: 600, c: "dimmed" }, "Headers:"), /* @__PURE__ */ React101.createElement(Code2, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
8296
8296
  headers.reduce(
8297
8297
  (acc, h) => {
8298
8298
  if (h.key && h.value) acc[h.key] = h.value;
@@ -9277,7 +9277,7 @@ var NotifyTemplateView = ({ editor, block }) => {
9277
9277
 
9278
9278
  // src/mantine/blocks/notify/flow/FlowView.tsx
9279
9279
  import React114, { useState as useState30 } from "react";
9280
- import { Group as Group37, Stack as Stack83, Text as Text57, ActionIcon as ActionIcon13, Tooltip as Tooltip7, Button as Button27, Badge as Badge15, Collapse as Collapse4, Alert as Alert12, Loader as Loader7, Code as Code3 } from "@mantine/core";
9280
+ import { Group as Group37, Stack as Stack83, Text as Text57, ActionIcon as ActionIcon13, Tooltip as Tooltip9, Button as Button27, Badge as Badge15, Collapse as Collapse4, Alert as Alert12, Loader as Loader7, Code as Code3 } from "@mantine/core";
9281
9281
  import { IconSend as IconSend2, IconChevronDown as IconChevronDown4, IconChevronUp as IconChevronUp3, IconCheck, IconX as IconX3 } from "@tabler/icons-react";
9282
9282
  var NotifyFlowView = ({ editor, block, isDisabled }) => {
9283
9283
  const disabled = isDisabled?.isDisabled === "disable";
@@ -9404,7 +9404,7 @@ var NotifyFlowView = ({ editor, block, isDisabled }) => {
9404
9404
  },
9405
9405
  isLoading ? "Sending..." : status === "sent" ? "Sent" : "Send"
9406
9406
  );
9407
- return /* @__PURE__ */ React114.createElement(BaseContainer, null, /* @__PURE__ */ React114.createElement(Stack83, { gap: "md" }, /* @__PURE__ */ React114.createElement(Group37, { wrap: "nowrap", justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React114.createElement(Group37, { wrap: "nowrap", align: "flex-start", style: { flex: 1 } }, getIcon("bell", block.props.icon), /* @__PURE__ */ React114.createElement(Stack83, { gap: "xs", style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React114.createElement(Group37, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React114.createElement(Badge15, { size: "sm", variant: "filled", color: getChannelColor(channel) }, channel.toUpperCase()), /* @__PURE__ */ React114.createElement(Text57, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "Notification"), status !== "idle" && /* @__PURE__ */ React114.createElement(Badge15, { size: "xs", variant: "dot", color: getStatusColor2(status) }, status)), /* @__PURE__ */ React114.createElement(Text57, { 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__ */ React114.createElement(Text57, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), /* @__PURE__ */ React114.createElement(Group37, { gap: "xs", style: { flexShrink: 0 } }, disabled && isDisabled?.message ? /* @__PURE__ */ React114.createElement(Tooltip7, { label: isDisabled.message, position: "left", withArrow: true }, sendButton) : sendButton, /* @__PURE__ */ React114.createElement(ActionIcon13, { variant: "subtle", onClick: () => setShowDetails(!showDetails) }, showDetails ? /* @__PURE__ */ React114.createElement(IconChevronUp3, { size: 16 }) : /* @__PURE__ */ React114.createElement(IconChevronDown4, { size: 16 })))), status === "failed" && block.props.errorMessage && /* @__PURE__ */ React114.createElement(Alert12, { color: "red", icon: /* @__PURE__ */ React114.createElement(IconX3, { size: 16 }), title: "Failed to send", styles: { message: { fontSize: "12px" } } }, block.props.errorMessage), status === "sent" && block.props.messageId && /* @__PURE__ */ React114.createElement(Alert12, { color: "green", icon: /* @__PURE__ */ React114.createElement(IconCheck, { size: 16 }), title: "Sent successfully", styles: { message: { fontSize: "12px" } } }, "Message ID: ", block.props.messageId, block.props.sentAt && /* @__PURE__ */ React114.createElement(React114.Fragment, null, /* @__PURE__ */ React114.createElement("br", null), "Sent at: ", new Date(block.props.sentAt).toLocaleString())), /* @__PURE__ */ React114.createElement(Collapse4, { in: showDetails }, /* @__PURE__ */ React114.createElement(Stack83, { gap: "md" }, channel === "email" && /* @__PURE__ */ React114.createElement(React114.Fragment, null, /* @__PURE__ */ React114.createElement(Stack83, { gap: "xs" }, /* @__PURE__ */ React114.createElement(Text57, { size: "xs", fw: 600, c: "dimmed" }, "Recipients:"), /* @__PURE__ */ React114.createElement(Code3, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
9407
+ return /* @__PURE__ */ React114.createElement(BaseContainer, null, /* @__PURE__ */ React114.createElement(Stack83, { gap: "md" }, /* @__PURE__ */ React114.createElement(Group37, { wrap: "nowrap", justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React114.createElement(Group37, { wrap: "nowrap", align: "flex-start", style: { flex: 1 } }, getIcon("bell", block.props.icon), /* @__PURE__ */ React114.createElement(Stack83, { gap: "xs", style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ React114.createElement(Group37, { gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React114.createElement(Badge15, { size: "sm", variant: "filled", color: getChannelColor(channel) }, channel.toUpperCase()), /* @__PURE__ */ React114.createElement(Text57, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "Notification"), status !== "idle" && /* @__PURE__ */ React114.createElement(Badge15, { size: "xs", variant: "dot", color: getStatusColor2(status) }, status)), /* @__PURE__ */ React114.createElement(Text57, { 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__ */ React114.createElement(Text57, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), /* @__PURE__ */ React114.createElement(Group37, { gap: "xs", style: { flexShrink: 0 } }, disabled && isDisabled?.message ? /* @__PURE__ */ React114.createElement(Tooltip9, { label: isDisabled.message, position: "left", withArrow: true }, sendButton) : sendButton, /* @__PURE__ */ React114.createElement(ActionIcon13, { variant: "subtle", onClick: () => setShowDetails(!showDetails) }, showDetails ? /* @__PURE__ */ React114.createElement(IconChevronUp3, { size: 16 }) : /* @__PURE__ */ React114.createElement(IconChevronDown4, { size: 16 })))), status === "failed" && block.props.errorMessage && /* @__PURE__ */ React114.createElement(Alert12, { color: "red", icon: /* @__PURE__ */ React114.createElement(IconX3, { size: 16 }), title: "Failed to send", styles: { message: { fontSize: "12px" } } }, block.props.errorMessage), status === "sent" && block.props.messageId && /* @__PURE__ */ React114.createElement(Alert12, { color: "green", icon: /* @__PURE__ */ React114.createElement(IconCheck, { size: 16 }), title: "Sent successfully", styles: { message: { fontSize: "12px" } } }, "Message ID: ", block.props.messageId, block.props.sentAt && /* @__PURE__ */ React114.createElement(React114.Fragment, null, /* @__PURE__ */ React114.createElement("br", null), "Sent at: ", new Date(block.props.sentAt).toLocaleString())), /* @__PURE__ */ React114.createElement(Collapse4, { in: showDetails }, /* @__PURE__ */ React114.createElement(Stack83, { gap: "md" }, channel === "email" && /* @__PURE__ */ React114.createElement(React114.Fragment, null, /* @__PURE__ */ React114.createElement(Stack83, { gap: "xs" }, /* @__PURE__ */ React114.createElement(Text57, { size: "xs", fw: 600, c: "dimmed" }, "Recipients:"), /* @__PURE__ */ React114.createElement(Code3, { block: true, style: { fontSize: "11px" } }, JSON.stringify(
9408
9408
  {
9409
9409
  to: to.filter((e) => e.trim() !== ""),
9410
9410
  ...cc.length > 0 && { cc: cc.filter((e) => e.trim() !== "") },
@@ -9829,7 +9829,7 @@ import { IconSettings as IconSettings3, IconRefresh as IconRefresh2, IconAlertCi
9829
9829
 
9830
9830
  // src/mantine/blocks/claim/flow/ClaimCollectionsList.tsx
9831
9831
  import React122, { useMemo as useMemo23 } from "react";
9832
- import { Stack as Stack87, Text as Text61, ActionIcon as ActionIcon15, Tooltip as Tooltip8, Loader as Loader10, Center as Center4 } from "@mantine/core";
9832
+ import { Stack as Stack87, Text as Text61, ActionIcon as ActionIcon15, Tooltip as Tooltip10, Loader as Loader10, Center as Center4 } from "@mantine/core";
9833
9833
 
9834
9834
  // src/mantine/hooks/useUserRoles.ts
9835
9835
  import { useState as useState35, useEffect as useEffect24, useMemo as useMemo21, useRef as useRef5 } from "react";
@@ -10393,7 +10393,7 @@ var CollectionItem = ({ collection, deedId, adminAddress, userRole, onRefresh })
10393
10393
  openClaimsPanel();
10394
10394
  }
10395
10395
  };
10396
- return /* @__PURE__ */ React122.createElement("div", { style: { opacity: canAccessClaims ? 1 : 0.5 } }, /* @__PURE__ */ React122.createElement(ListItemContainer, null, /* @__PURE__ */ React122.createElement(Stack87, { gap: 4, style: { flex: 1 } }, /* @__PURE__ */ React122.createElement(Text61, { size: "sm", fw: 500, c: canAccessClaims ? void 0 : "dimmed" }, collectionName), collection.description && /* @__PURE__ */ React122.createElement(Text61, { size: "xs", c: "dimmed" }, collection.description)), /* @__PURE__ */ React122.createElement(Tooltip8, { label: "You need to apply to be a service agent first", disabled: canAccessClaims, position: "left", withArrow: true }, /* @__PURE__ */ React122.createElement(ActionIcon15, { variant: "subtle", size: "lg", onClick: handleClick, disabled: !canAccessClaims, style: { cursor: canAccessClaims ? "pointer" : "not-allowed" } }, /* @__PURE__ */ React122.createElement(IconArrowRight2, { size: 20 })))));
10396
+ return /* @__PURE__ */ React122.createElement("div", { style: { opacity: canAccessClaims ? 1 : 0.5 } }, /* @__PURE__ */ React122.createElement(ListItemContainer, null, /* @__PURE__ */ React122.createElement(Stack87, { gap: 4, style: { flex: 1 } }, /* @__PURE__ */ React122.createElement(Text61, { size: "sm", fw: 500, c: canAccessClaims ? void 0 : "dimmed" }, collectionName), collection.description && /* @__PURE__ */ React122.createElement(Text61, { size: "xs", c: "dimmed" }, collection.description)), /* @__PURE__ */ React122.createElement(Tooltip10, { label: "You need to apply to be a service agent first", disabled: canAccessClaims, position: "left", withArrow: true }, /* @__PURE__ */ React122.createElement(ActionIcon15, { variant: "subtle", size: "lg", onClick: handleClick, disabled: !canAccessClaims, style: { cursor: canAccessClaims ? "pointer" : "not-allowed" } }, /* @__PURE__ */ React122.createElement(IconArrowRight2, { size: 20 })))));
10397
10397
  };
10398
10398
  var ClaimCollectionsList = ({ collections, deedId, adminAddress, userAddress, onRefresh }) => {
10399
10399
  const { userRoles, loading: loadingRoles } = useUserRoles(collections, userAddress, adminAddress, deedId);
@@ -11508,7 +11508,7 @@ import { IconSettings as IconSettings5, IconRefresh as IconRefresh5, IconAlertCi
11508
11508
 
11509
11509
  // src/mantine/blocks/evaluator/flow/ClaimCollectionsList.tsx
11510
11510
  import React145, { useMemo as useMemo37, useEffect as useEffect34, useRef as useRef6 } from "react";
11511
- import { Stack as Stack99, Text as Text73, ActionIcon as ActionIcon21, Tooltip as Tooltip9, Loader as Loader18, Center as Center9 } from "@mantine/core";
11511
+ import { Stack as Stack99, Text as Text73, ActionIcon as ActionIcon21, Tooltip as Tooltip11, Loader as Loader18, Center as Center9 } from "@mantine/core";
11512
11512
 
11513
11513
  // src/mantine/blocks/evaluator/flow/ClaimsList.tsx
11514
11514
  import React144, { useState as useState45, useEffect as useEffect33, useCallback as useCallback31, useMemo as useMemo36 } from "react";
@@ -12005,7 +12005,7 @@ var CollectionItem3 = ({ collection, deedId, adminAddress, userRole, onRefresh }
12005
12005
  openClaimsPanel();
12006
12006
  }
12007
12007
  };
12008
- return /* @__PURE__ */ React145.createElement("div", { style: { opacity: canEvaluateClaims ? 1 : 0.5 } }, /* @__PURE__ */ React145.createElement(ListItemContainer, null, /* @__PURE__ */ React145.createElement(Stack99, { gap: 4, style: { flex: 1 } }, /* @__PURE__ */ React145.createElement(Text73, { size: "sm", fw: 500, c: canEvaluateClaims ? void 0 : "dimmed" }, getCollectionName2(collection)), collection.description && /* @__PURE__ */ React145.createElement(Text73, { size: "xs", c: "dimmed" }, collection.description)), /* @__PURE__ */ React145.createElement(Tooltip9, { label: "You need to be an evaluator agent to review claims", disabled: canEvaluateClaims, position: "left", withArrow: true }, /* @__PURE__ */ React145.createElement(ActionIcon21, { variant: "subtle", size: "lg", onClick: handleClick, disabled: !canEvaluateClaims, style: { cursor: canEvaluateClaims ? "pointer" : "not-allowed" } }, /* @__PURE__ */ React145.createElement(IconArrowRight6, { size: 20 })))));
12008
+ return /* @__PURE__ */ React145.createElement("div", { style: { opacity: canEvaluateClaims ? 1 : 0.5 } }, /* @__PURE__ */ React145.createElement(ListItemContainer, null, /* @__PURE__ */ React145.createElement(Stack99, { gap: 4, style: { flex: 1 } }, /* @__PURE__ */ React145.createElement(Text73, { size: "sm", fw: 500, c: canEvaluateClaims ? void 0 : "dimmed" }, getCollectionName2(collection)), collection.description && /* @__PURE__ */ React145.createElement(Text73, { size: "xs", c: "dimmed" }, collection.description)), /* @__PURE__ */ React145.createElement(Tooltip11, { label: "You need to be an evaluator agent to review claims", disabled: canEvaluateClaims, position: "left", withArrow: true }, /* @__PURE__ */ React145.createElement(ActionIcon21, { variant: "subtle", size: "lg", onClick: handleClick, disabled: !canEvaluateClaims, style: { cursor: canEvaluateClaims ? "pointer" : "not-allowed" } }, /* @__PURE__ */ React145.createElement(IconArrowRight6, { size: 20 })))));
12009
12009
  };
12010
12010
  var ClaimCollectionsList3 = ({ collections, deedId, adminAddress, userAddress, onRefresh }) => {
12011
12011
  const { userRoles, loading: loadingRoles } = useUserRoles(collections, userAddress, adminAddress, deedId);
@@ -13843,4 +13843,4 @@ export {
13843
13843
  ixoGraphQLClient,
13844
13844
  getEntity
13845
13845
  };
13846
- //# sourceMappingURL=chunk-RJMX6Q2F.mjs.map
13846
+ //# sourceMappingURL=chunk-CXOTHTXE.mjs.map