import{nd as l,od as m,rd as u,sd as y}from"./cli-0.5.4-ja0mbwdv.mjs";import{HD as p,JD as b}from"./cli-0.5.4-k5fz4zd3.mjs";import{KW as s,MW as e,pX as C}from"./cli-0.5.4-s7k1f0wc.mjs";import{PY as i,QY as r,RY as g}from"./cli-0.5.4-mn22gk7g.mjs";import{SY as M}from"./cli-0.5.4-5t3jj85n.mjs";import{Vma as h,Zma as f}from"./cli-0.5.4-aacw1src.mjs";function T({enabled:c,onDismiss:a}){let[n,o]=k.useState(()=>c?{kind:"prompt"}:{kind:"hidden"});if(!c||n.kind==="hidden")return null;if(n.kind==="running")return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudio/..."}),i(e,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(n.kind==="success"||n.kind==="error"){let d=n.kind==="success"?"success":"warning",t=n.kind==="success"?"Migration complete":"Migration finished with warnings";return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:d,bold:!0,children:t}),i(e,{children:m(n.report)})]})}return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),i(e,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudio/?"}),i(p,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(d)=>{if(d==="skip"){u(),o({kind:"hidden"}),a?.("skipped");return}o({kind:"running"}),(async()=>{let t=await l();o({kind:t.errors.length===0?"success":"error",report:t}),a?.("migrated")})()},onCancel:()=>{o({kind:"hidden"}),a?.("skipped")},visibleOptionCount:2})]})}var k;var w=f(()=>{C();y();b();g();k=h(M(),1)});
export{T as ld,w as md};
