import { c as _c } from "react/compiler-runtime"; import chalk from 'chalk'; import type { UUID } from 'crypto'; import * as React from 'react'; import { getSessionId } from '../../bootstrap/state.js'; import type { CommandResultDisplay } from '../../commands.js'; import { Select } from '../../components/CustomSelect/select.js'; import { Dialog } from '../../components/design-system/Dialog.js'; import { COMMON_HELP_ARGS, COMMON_INFO_ARGS } from '../../constants/xml.js'; import { Box, Text } from '../../ink.js'; import { logEvent } from '../../services/analytics/index.js'; import type { LocalJSXCommandOnDone } from '../../types/command.js'; import { recursivelySanitizeUnicode } from '../../utils/sanitization.js'; import { getCurrentSessionTag, getTranscriptPath, saveTag } from '../../utils/sessionStorage.js'; function ConfirmRemoveTag(t0) { const $ = _c(11); const { tagName, onConfirm, onCancel } = t0; const t1 = `Current tag: #${tagName}`; let t2; if ($[0] === Symbol.for("react.memo_cache_sentinel")) { t2 = This will remove the tag from the current session.; $[0] = t2; } else { t2 = $[0]; } let t3; if ($[1] !== onCancel || $[2] !== onConfirm) { t3 = value => value === "yes" ? onConfirm() : onCancel(); $[1] = onCancel; $[2] = onConfirm; $[3] = t3; } else { t3 = $[3]; } let t4; if ($[4] === Symbol.for("react.memo_cache_sentinel")) { t4 = [{ label: "Yes, remove tag", value: "yes" }, { label: "No, keep tag", value: "no" }]; $[4] = t4; } else { t4 = $[4]; } let t5; if ($[5] !== t3) { t5 = {t2}