import { jsx as _jsx } from "react/jsx-runtime";
import React from "react";
import { Box, Text } from "ink";
export const PLAN_MODE_LOGO = [
    "▗▄▄▖ ▗▖    ▗▄▖ ▗▖  ▗▖    ▗▖  ▗▖ ▗▄▖ ▗▄▄▄ ▗▄▄▄▖",
    "▐▌ ▐▌▐▌   ▐▌ ▐▌▐▛▚▖▐▌    ▐▛▚▞▜▌▐▌ ▐▌▐▌  █▐▌",
    "▐▛▀▘ ▐▌   ▐▛▀▜▌▐▌ ▝▜▌    ▐▌  ▐▌▐▌ ▐▌▐▌  █▐▛▀▀▘",
    "▐▌   ▐▙▄▄▖▐▌ ▐▌▐▌  ▐▌    ▐▌  ▐▌▝▚▄▞▘▐▙▄▄▀▐▙▄▄▖",
];
const AMBER_GRADIENT = [
    "#f59e0b",
    "#fbbf24",
    "#f59e0b",
    "#d97706",
    "#f59e0b",
    "#fbbf24",
    "#d97706",
];
function PlanGradientText({ text }) {
    const spans = [];
    let colorIdx = 0;
    let currentColor = "";
    let currentChars = "";
    const flush = () => {
        if (!currentChars)
            return;
        spans.push(_jsx(Text, { color: currentColor, children: currentChars }, spans.length));
        currentChars = "";
    };
    for (const ch of text) {
        if (ch === " ") {
            currentChars += ch;
            continue;
        }
        const color = AMBER_GRADIENT[colorIdx % AMBER_GRADIENT.length];
        if (color !== currentColor) {
            flush();
            currentColor = color;
        }
        currentChars += ch;
        colorIdx++;
    }
    flush();
    return _jsx(Text, { children: spans });
}
export function PlanModeLogo() {
    return (_jsx(Box, { flexDirection: "column", paddingLeft: 1, children: PLAN_MODE_LOGO.map((line) => (_jsx(PlanGradientText, { text: line }, line))) }));
}
//# sourceMappingURL=PlanModeLogo.js.map