import { c as _c } from "react/compiler-runtime";
import React, { useCallback, useState } from 'react';
import TextInput from '../../components/TextInput.js';
import { useTerminalSize } from '../../hooks/useTerminalSize.js';
import { Box, color, Text, useTheme } from '../../ink.js';
import { useKeybindings } from '../../keybindings/useKeybinding.js';
interface ApiKeyStepProps {
  existingApiKey: string | null;
  useExistingKey: boolean;
  apiKeyOrOAuthToken: string;
  onApiKeyChange: (value: string) => void;
  onToggleUseExistingKey: (useExisting: boolean) => void;
  onSubmit: () => void;
  onCreateOAuthToken?: () => void;
  selectedOption?: 'existing' | 'new' | 'oauth';
  onSelectOption?: (option: 'existing' | 'new' | 'oauth') => void;
}
export function ApiKeyStep(t0) {
  const $ = _c(55);
  const {
    existingApiKey,
    apiKeyOrOAuthToken,
    onApiKeyChange,
    onSubmit,
    onToggleUseExistingKey,
    onCreateOAuthToken,
    selectedOption: t1,
    onSelectOption
  } = t0;
  const selectedOption = t1 === undefined ? existingApiKey ? "existing" : onCreateOAuthToken ? "oauth" : "new" : t1;
  const [cursorOffset, setCursorOffset] = useState(0);
  const terminalSize = useTerminalSize();
  const [theme] = useTheme();
  let t2;
  if ($[0] !== existingApiKey || $[1] !== onCreateOAuthToken || $[2] !== onSelectOption || $[3] !== onToggleUseExistingKey || $[4] !== selectedOption) {
    t2 = () => {
      if (selectedOption === "new" && onCreateOAuthToken) {
        onSelectOption?.("oauth");
      } else {
        if (selectedOption === "oauth" && existingApiKey) {
          onSelectOption?.("existing");
          onToggleUseExistingKey(true);
        }
      }
    };
    $[0] = existingApiKey;
    $[1] = onCreateOAuthToken;
    $[2] = onSelectOption;
    $[3] = onToggleUseExistingKey;
    $[4] = selectedOption;
    $[5] = t2;
  } else {
    t2 = $[5];
  }
  const handlePrevious = t2;
  let t3;
  if ($[6] !== onCreateOAuthToken || $[7] !== onSelectOption || $[8] !== onToggleUseExistingKey || $[9] !== selectedOption) {
    t3 = () => {
      if (selectedOption === "existing") {
        onSelectOption?.(onCreateOAuthToken ? "oauth" : "new");
        onToggleUseExistingKey(false);
      } else {
        if (selectedOption === "oauth") {
          onSelectOption?.("new");
        }
      }
    };
    $[6] = onCreateOAuthToken;
    $[7] = onSelectOption;
    $[8] = onToggleUseExistingKey;
    $[9] = selectedOption;
    $[10] = t3;
  } else {
    t3 = $[10];
  }
  const handleNext = t3;
  let t4;
  if ($[11] !== onCreateOAuthToken || $[12] !== onSubmit || $[13] !== selectedOption) {
    t4 = () => {
      if (selectedOption === "oauth" && onCreateOAuthToken) {
        onCreateOAuthToken();
      } else {
        onSubmit();
      }
    };
    $[11] = onCreateOAuthToken;
    $[12] = onSubmit;
    $[13] = selectedOption;
    $[14] = t4;
  } else {
    t4 = $[14];
  }
  const handleConfirm = t4;
  const isTextInputVisible = selectedOption === "new";
  let t5;
  if ($[15] !== handleConfirm || $[16] !== handleNext || $[17] !== handlePrevious) {
    t5 = {
      "confirm:previous": handlePrevious,
      "confirm:next": handleNext,
      "confirm:yes": handleConfirm
    };
    $[15] = handleConfirm;
    $[16] = handleNext;
    $[17] = handlePrevious;
    $[18] = t5;
  } else {
    t5 = $[18];
  }
  const t6 = !isTextInputVisible;
  let t7;
  if ($[19] !== t6) {
    t7 = {
      context: "Confirmation",
      isActive: t6
    };
    $[19] = t6;
    $[20] = t7;
  } else {
    t7 = $[20];
  }
  useKeybindings(t5, t7);
  let t8;
  if ($[21] !== handleNext || $[22] !== handlePrevious) {
    t8 = {
      "confirm:previous": handlePrevious,
      "confirm:next": handleNext
    };
    $[21] = handleNext;
    $[22] = handlePrevious;
    $[23] = t8;
  } else {
    t8 = $[23];
  }
  let t9;
  if ($[24] !== isTextInputVisible) {
    t9 = {
      context: "Confirmation",
      isActive: isTextInputVisible
    };
    $[24] = isTextInputVisible;
    $[25] = t9;
  } else {
    t9 = $[25];
  }
  useKeybindings(t8, t9);
  let t10;
  if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
    t10 = <Box flexDirection="column" marginBottom={1}><Text bold={true}>Install GitHub App</Text><Text dimColor={true}>Choose API key</Text></Box>;
    $[26] = t10;
  } else {
    t10 = $[26];
  }
  let t11;
  if ($[27] !== existingApiKey || $[28] !== selectedOption || $[29] !== theme) {
    t11 = existingApiKey && <Box marginBottom={1}><Text>{selectedOption === "existing" ? color("success", theme)("> ") : "  "}Use your existing Claude Code API key</Text></Box>;
    $[27] = existingApiKey;
    $[28] = selectedOption;
    $[29] = theme;
    $[30] = t11;
  } else {
    t11 = $[30];
  }
  let t12;
  if ($[31] !== onCreateOAuthToken || $[32] !== selectedOption || $[33] !== theme) {
    t12 = onCreateOAuthToken && <Box marginBottom={1}><Text>{selectedOption === "oauth" ? color("success", theme)("> ") : "  "}Create a long-lived token with your Claude subscription</Text></Box>;
    $[31] = onCreateOAuthToken;
    $[32] = selectedOption;
    $[33] = theme;
    $[34] = t12;
  } else {
    t12 = $[34];
  }
  let t13;
  if ($[35] !== selectedOption || $[36] !== theme) {
    t13 = selectedOption === "new" ? color("success", theme)("> ") : "  ";
    $[35] = selectedOption;
    $[36] = theme;
    $[37] = t13;
  } else {
    t13 = $[37];
  }
  let t14;
  if ($[38] !== t13) {
    t14 = <Box marginBottom={1}><Text>{t13}Enter a new API key</Text></Box>;
    $[38] = t13;
    $[39] = t14;
  } else {
    t14 = $[39];
  }
  let t15;
  if ($[40] !== apiKeyOrOAuthToken || $[41] !== cursorOffset || $[42] !== onApiKeyChange || $[43] !== onSubmit || $[44] !== selectedOption || $[45] !== terminalSize) {
    t15 = selectedOption === "new" && <TextInput value={apiKeyOrOAuthToken} onChange={onApiKeyChange} onSubmit={onSubmit} onPaste={onApiKeyChange} focus={true} placeholder={"sk-ant\u2026 (Create a new key at https://platform.claude.com/settings/keys)"} mask="*" columns={terminalSize.columns} cursorOffset={cursorOffset} onChangeCursorOffset={setCursorOffset} showCursor={true} />;
    $[40] = apiKeyOrOAuthToken;
    $[41] = cursorOffset;
    $[42] = onApiKeyChange;
    $[43] = onSubmit;
    $[44] = selectedOption;
    $[45] = terminalSize;
    $[46] = t15;
  } else {
    t15 = $[46];
  }
  let t16;
  if ($[47] !== t11 || $[48] !== t12 || $[49] !== t14 || $[50] !== t15) {
    t16 = <Box flexDirection="column" borderStyle="round" paddingX={1}>{t10}{t11}{t12}{t14}{t15}</Box>;
    $[47] = t11;
    $[48] = t12;
    $[49] = t14;
    $[50] = t15;
    $[51] = t16;
  } else {
    t16 = $[51];
  }
  let t17;
  if ($[52] === Symbol.for("react.memo_cache_sentinel")) {
    t17 = <Box marginLeft={3}><Text dimColor={true}>↑/↓ to select · Enter to continue</Text></Box>;
    $[52] = t17;
  } else {
    t17 = $[52];
  }
  let t18;
  if ($[53] !== t16) {
    t18 = <>{t16}{t17}</>;
    $[53] = t16;
    $[54] = t18;
  } else {
    t18 = $[54];
  }
  return t18;
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJSZWFjdCIsInVzZUNhbGxiYWNrIiwidXNlU3RhdGUiLCJUZXh0SW5wdXQiLCJ1c2VUZXJtaW5hbFNpemUiLCJCb3giLCJjb2xvciIsIlRleHQiLCJ1c2VUaGVtZSIsInVzZUtleWJpbmRpbmdzIiwiQXBpS2V5U3RlcFByb3BzIiwiZXhpc3RpbmdBcGlLZXkiLCJ1c2VFeGlzdGluZ0tleSIsImFwaUtleU9yT0F1dGhUb2tlbiIsIm9uQXBpS2V5Q2hhbmdlIiwidmFsdWUiLCJvblRvZ2dsZVVzZUV4aXN0aW5nS2V5IiwidXNlRXhpc3RpbmciLCJvblN1Ym1pdCIsIm9uQ3JlYXRlT0F1dGhUb2tlbiIsInNlbGVjdGVkT3B0aW9uIiwib25TZWxlY3RPcHRpb24iLCJvcHRpb24iLCJBcGlLZXlTdGVwIiwidDAiLCIkIiwiX2MiLCJ0MSIsInVuZGVmaW5lZCIsImN1cnNvck9mZnNldCIsInNldEN1cnNvck9mZnNldCIsInRlcm1pbmFsU2l6ZSIsInRoZW1lIiwidDIiLCJoYW5kbGVQcmV2aW91cyIsInQzIiwiaG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m1hdGlvbicsIGlzQWN0aXZlOiBpc1RleHRJbnB1dFZpc2libGUgfSxcbiAgKVxuXG4gIHJldHVybiAoXG4gICAgPD5cbiAgICAgIDxCb3ggZmxleERpcmVjdGlvbj1cImNvbHVtblwiIGJvcmRlclN0eWxlPVwicm91bmRcIiBwYWRkaW5nWD17MX0+XG4gICAgICAgIDxCb3ggZmxleERpcmVjdGlvbj1cImNvbHVtblwiIG1hcmdpbkJvdHRvbT17MX0+XG4gICAgICAgICAgPFRleHQgYm9sZD5JbnN0YWxsIEdpdEh1YiBBcHA8L1RleHQ+XG4gICAgICAgICAgPFRleHQgZGltQ29sb3I+Q2hvb3NlIEFQSSBrZXk8L1RleHQ+XG4gICAgICAgIDwvQm94PlxuICAgICAgICB7ZXhpc3RpbmdBcGlLZXkgJiYgKFxuICAgICAgICAgIDxCb3ggbWFyZ2luQm90dG9tPXsxfT5cbiAgICAgICAgICAgIDxUZXh0PlxuICAgICAgICAgICAgICB7c2VsZWN0ZWRPcHRpb24gPT09ICdleGlzdGluZydcbiAgICAgICAgICAgICAgICA/IGNvbG9yKCdzdWNjZXNzJywgdGhlbWUpKCc+ICcpXG4gICAgICAgICAgICAgICAgOiAnICAnfVxuICAgICAgICAgICAgICBVc2UgeW91ciBleGlzdGluZyBDbGF1ZGUgQ29kZSBBUEkga2V5XG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgPC9Cb3g+XG4gICAgICAgICl9XG4gICAgICAgIHtvbkNyZWF0ZU9BdXRoVG9rZW4gJiYgKFxuICAgICAgICAgIDxCb3ggbWFyZ2luQm90dG9tPXsxfT5cbiAgICAgICAgICAgIDxUZXh0PlxuICAgICAgICAgICAgICB7c2VsZWN0ZWRPcHRpb24gPT09ICdvYXV0aCdcbiAgICAgICAgICAgICAgICA/IGNvbG9yKCdzdWNjZXNzJywgdGhlbWUpKCc+ICcpXG4gICAgICAgICAgICAgICAgOiAnICAnfVxuICAgICAgICAgICAgICBDcmVhdGUgYSBsb25nLWxpdmVkIHRva2VuIHdpdGggeW91ciBDbGF1ZGUgc3Vic2NyaXB0aW9uXG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgPC9Cb3g+XG4gICAgICAgICl9XG4gICAgICAgIDxCb3ggbWFyZ2luQm90dG9tPXsxfT5cbiAgICAgICAgICA8VGV4dD5cbiAgICAgICAgICAgIHtzZWxlY3RlZE9wdGlvbiA9PT0gJ25ldycgPyBjb2xvcignc3VjY2VzcycsIHRoZW1lKSgnPiAnKSA6ICcgICd9XG4gICAgICAgICAgICBFbnRlciBhIG5ldyBBUEkga2V5XG4gICAgICAgICAgPC9UZXh0PlxuICAgICAgICA8L0JveD5cbiAgICAgICAge3NlbGVjdGVkT3B0aW9uID09PSAnbmV3JyAmJiAoXG4gICAgICAgICAgPFRleHRJbnB1dFxuICAgICAgICAgICAgdmFsdWU9e2FwaUtleU9yT0F1dGhUb2tlbn1cbiAgICAgICAgICAgIG9uQ2hhbmdlPXtvbkFwaUtleUNoYW5nZX1cbiAgICAgICAgICAgIG9uU3VibWl0PXtvblN1Ym1pdH1cbiAgICAgICAgICAgIG9uUGFzdGU9e29uQXBpS2V5Q2hhbmdlfVxuICAgICAgICAgICAgZm9jdXM9e3RydWV9XG4gICAgICAgICAgICBwbGFjZWhvbGRlcj1cInNrLWFudOKApiAoQ3JlYXRlIGEgbmV3IGtleSBhdCBodHRwczovL3BsYXRmb3JtLmNsYXVkZS5jb20vc2V0dGluZ3Mva2V5cylcIlxuICAgICAgICAgICAgbWFzaz1cIipcIlxuICAgICAgICAgICAgY29sdW1ucz17dGVybWluYWxTaXplLmNvbHVtbnN9XG4gICAgICAgICAgICBjdXJzb3JPZmZzZXQ9e2N1cnNvck9mZnNldH1cbiAgICAgICAgICAgIG9uQ2hhbmdlQ3Vyc29yT2Zmc2V0PXtzZXRDdXJzb3JPZmZzZXR9XG4gICAgICAgICAgICBzaG93Q3Vyc29yPXt0cnVlfVxuICAgICAgICAgIC8+XG4gICAgICAgICl9XG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