import { c as _c } from "react/compiler-runtime";
import setWith from 'lodash-es/setWith.js';
import * as React from 'react';
import { Box, Text, useTheme } from '../ink.js';
import type { ValidationError } from '../utils/settings/validation.js';
import { type TreeNode, treeify } from '../utils/treeify.js';

/**
 * Builds a nested tree structure from dot-notation paths
 * Uses lodash setWith to avoid automatic array creation
 */
function buildNestedTree(errors: ValidationError[]): TreeNode {
  const tree: TreeNode = {};
  errors.forEach(error => {
    if (!error.path) {
      // Root level error - use empty string as key
      tree[''] = error.message;
      return;
    }

    // Try to enhance the path with meaningful values
    const pathParts = error.path.split('.');
    let modifiedPath = error.path;

    // If we have an invalid value, try to make the path more readable
    if (error.invalidValue !== null && error.invalidValue !== undefined && pathParts.length > 0) {
      const newPathParts: string[] = [];
      for (let i = 0; i < pathParts.length; i++) {
        const part = pathParts[i];
        if (!part) continue;
        const numericPart = parseInt(part, 10);

        // If this is a numeric index and it's the last part where we have the invalid value
        if (!isNaN(numericPart) && i === pathParts.length - 1) {
          // Format the value for display
          let displayValue: string;
          if (typeof error.invalidValue === 'string') {
            displayValue = `"${error.invalidValue}"`;
          } else if (error.invalidValue === null) {
            displayValue = 'null';
          } else if (error.invalidValue === undefined) {
            displayValue = 'undefined';
          } else {
            displayValue = String(error.invalidValue);
          }
          newPathParts.push(displayValue);
        } else {
          // Keep other parts as-is
          newPathParts.push(part);
        }
      }
      modifiedPath = newPathParts.join('.');
    }
    setWith(tree, modifiedPath, error.message, Object);
  });
  return tree;
}

/**
 * Groups and displays validation errors using treeify with deduplication
 */
export function ValidationErrorsList(t0) {
  const $ = _c(9);
  const {
    errors
  } = t0;
  const [themeName] = useTheme();
  if (errors.length === 0) {
    return null;
  }
  let T0;
  let t1;
  let t2;
  if ($[0] !== errors || $[1] !== themeName) {
    const errorsByFile = errors.reduce(_temp, {});
    const sortedFiles = Object.keys(errorsByFile).sort();
    T0 = Box;
    t1 = "column";
    t2 = sortedFiles.map(file_0 => {
      const fileErrors = errorsByFile[file_0] || [];
      fileErrors.sort(_temp2);
      const errorTree = buildNestedTree(fileErrors);
      const suggestionPairs = new Map();
      fileErrors.forEach(error_0 => {
        if (error_0.suggestion || error_0.docLink) {
          const key = `${error_0.suggestion || ""}|${error_0.docLink || ""}`;
          if (!suggestionPairs.has(key)) {
            suggestionPairs.set(key, {
              suggestion: error_0.suggestion,
              docLink: error_0.docLink
            });
          }
        }
      });
      const treeOutput = treeify(errorTree, {
        showValues: true,
        themeName,
        treeCharColors: {
          treeChar: "inactive",
          key: "text",
          value: "inactive"
        }
      });
      return <Box key={file_0} flexDirection="column"><Text>{file_0}</Text><Box marginLeft={1}><Text dimColor={true}>{treeOutput}</Text></Box>{suggestionPairs.size > 0 && <Box flexDirection="column" marginTop={1}>{Array.from(suggestionPairs.values()).map(_temp3)}</Box>}</Box>;
    });
    $[0] = errors;
    $[1] = themeName;
    $[2] = T0;
    $[3] = t1;
    $[4] = t2;
  } else {
    T0 = $[2];
    t1 = $[3];
    t2 = $[4];
  }
  let t3;
  if ($[5] !== T0 || $[6] !== t1 || $[7] !== t2) {
    t3 = <T0 flexDirection={t1}>{t2}</T0>;
    $[5] = T0;
    $[6] = t1;
    $[7] = t2;
    $[8] = t3;
  } else {
    t3 = $[8];
  }
  return t3;
}
function _temp3(pair, index) {
  return <Box key={`suggestion-pair-${index}`} flexDirection="column" marginBottom={1}>{pair.suggestion && <Text dimColor={true} wrap="wrap">{pair.suggestion}</Text>}{pair.docLink && <Text dimColor={true} wrap="wrap">Learn more: {pair.docLink}</Text>}</Box>;
}
function _temp2(a, b) {
  if (!a.path && b.path) {
    return -1;
  }
  if (a.path && !b.path) {
    return 1;
  }
  return (a.path || "").localeCompare(b.path || "");
}
function _temp(acc, error) {
  const file = error.file || "(file not specified)";
  if (!acc[file]) {
    acc[file] = [];
  }
  acc[file].push(error);
  return acc;
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJzZXRXaXRoIiwiUmVhY3QiLCJCb3giLCJ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itkb2NMaW5rIHBhaXJzXG4gICAgICAgIGNvbnN0IHN1Z2dlc3Rpb25QYWlycyA9IG5ldyBNYXA8XG4gICAgICAgICAgc3RyaW5nLFxuICAgICAgICAgIHsgc3VnZ2VzdGlvbj86IHN0cmluZzsgZG9jTGluaz86IHN0cmluZyB9XG4gICAgICAgID4oKVxuXG4gICAgICAgIGZpbGVFcnJvcnMuZm9yRWFjaChlcnJvciA9PiB7XG4gICAgICAgICAgaWYgKGVycm9yLnN1Z2dlc3Rpb24gfHwgZXJyb3IuZG9jTGluaykge1xuICAgICAgICAgICAgLy8gQ3JlYXRlIGEga2V5IGZyb20gc3VnZ2VzdGlvbitkb2NMaW5rIGNvbWJpbmF0aW9uXG4gICAgICAgICAgICBjb25zdCBrZXkgPSBgJHtlcnJvci5zdWdnZXN0aW9uIHx8ICcnfXwke2Vycm9yLmRvY0xpbmsgfHwgJyd9YFxuICAgICAgICAgICAgaWYgKCFzdWdnZXN0aW9uUGFpcnMuaGFzKGtleSkpIHtcbiAgICAgICAgICAgICAgc3VnZ2VzdGlvblBhaXJzLnNldChrZXksIHtcbiAgICAgICAgICAgICAgICBzdWdnZXN0aW9uOiBlcnJvci5zdWdnZXN0aW9uLFxuICAgICAgICAgICAgICAgIGRvY0xpbms6IGVycm9yLmRvY0xpbmssXG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9KVxuXG4gICAgICAgIC8vIFJlbmRlciB0aGUgdHJlZVxuICAgICAgICBjb25zdCB0cmVlT3V0cHV0ID0gdHJlZWlmeShlcnJvclRyZWUsIHtcbiAgICAgICAgICBzaG93VmFsdWVzOiB0cnVlLFxuICAgICAgICAgIHRoZW1lTmFtZSxcbiAgICAgICAgICB0cmVlQ2hhckNvbG9yczoge1xuICAgICAgICAgICAgdHJlZUNoYXI6ICdpbmFjdGl2ZScsXG4gICAgICAgICAgICBrZXk6ICd0ZXh0JyxcbiAgICAgICAgICAgIHZhbHVlOiAnaW5hY3RpdmUnLFxuICAgICAgICAgIH0sXG4gICAgICAgIH0pXG5cbiAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICA8Qm94IGtleT17ZmlsZX0gZmxleERpcmVjdGlvbj1cImNvbHVtblwiPlxuICAgICAgICAgICAgPFRleHQ+e2ZpbGV9PC9UZXh0PlxuICAgICAgICAgICAgPEJveCBtYXJnaW5MZWZ0PXsxfT5cbiAgICAgICAgICAgICAgPFRleHQgZGltQ29sb3I+e3RyZWVPdXRwdXR9PC9UZXh0PlxuICAgICAgICAgICAgPC9Cb3g+XG4gICAgICAgICAgICB7LyogRGlzcGxheSB1bmlxdWUgc3VnZ2VzdGlvbitkb2NMaW5rIHBhaXJzICovfVxuICAgICAgICAgICAge3N1Z2dlc3Rpb25QYWlycy5zaXplID4gMCAmJiAoXG4gICAgICAgICAgICAgIDxCb3ggZmxleERpcmVjdGlvbj1cImNvbHVtblwiIG1hcmdpblRvcD17MX0+XG4gICAgICAgICAgICAgICAge0FycmF5LmZyb20oc3VnZ2VzdGlvblBhaXJzLnZhbHVlcygpKS5tYXAoKHBhaXIsIGluZGV4KSA9PiAoXG4gICAgICAgICAgICAgICAgICA8Qm94XG4gICAgICAgICAgICAgICAgICAgIGtleT17YHN1Z2dlc3Rpb24tcGFpci0ke2luZGV4fWB9XG4gICAgICAgICAgICAgICAgICAgIGZsZXhEaXJlY3Rpb249XCJjb2x1bW5cIlxuICAgICAgICAgICAgICAgICAgICBtYXJnaW5Cb3R0b209ezF9XG4gICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIHtwYWlyLnN1Z2dlc3Rpb24gJiYgKFxuICAgICAgICAgICAgICAgICAgICAgIDxUZXh0IGRpbUNvbG9yIHdyYXA9XCJ3cmFwXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICB7cGFpci5zdWdnZXN0aW9ufVxuICAgICAgICAgICAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgICAgICAgICAgKX1cbi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