import{c as e,p as s,o as a,b as i,n as t,e as n,f as c,r as o}from"./vendor--leCAzSo.js";import{h as l,u as d,j as r,k as f,d as m}from"./ca9c256b9-7brFE8T2.js";import{U as u,V as _}from"./index-DZuQva-j.js";const p=e(e=>({config:null,showing:!1,setConfig:s=>e({config:s}),setShowing:s=>e({showing:s}),clear:()=>e({config:null,showing:!1})})),h=["set_folder","first_prompt","first_pr","add_claude_md","setup_routine","plan_mode","enable_notifications","install_cli","add_mcp"],g=c(h),b=a({header_key:c(["get_started","go_further"]),item_ids:i(g).min(1).max(10).refine(e=>new Set(e).size===e.length,"duplicate item_ids"),shuffle:n().default(!1)}),k=s(e=>e??{},a({...Object.fromEntries(h.map(e=>[e,n().default(!1).catch(!1)])),max_visible:t().int().min(1).max(10).default(3).catch(3),pages:i(b).min(1).max(3).refine(e=>new Set(e.flatMap(e=>e.item_ids)).size===e.flatMap(e=>e.item_ids).length,"item_ids must be unique across pages").optional().catch(void 0)})),w=k.parse({});function x(){return l("claudified_code_desktop_activation_checklist",w,k)}function j(e){return(e.pages??[]).some(e=>e.item_ids.length>0)}function v(){return!1}const S="ccd-checklist-dismissed";function z(){const e=d(),s=r(),a=f("claude_ai_sot_has_claude_code"),[i,t]=m(S,!1),[n,c]=m("ccd-checklist-le1-sessions-at-first-eval",!1),l=u(),p=e&&s&&!a&&!i;o.useEffect(()=>{p&&l&&!n&&_().length<=1&&c(!0)},[p,l,n,c]);const h=o.useCallback(()=>t(!0),[t]);return{eligible:p&&l&&n,dismiss:h}}export{S as L,v as a,x as b,p as c,j as h,z as u};
