import{c as e}from"./vendor-zustand-CcZsBpBq.js";import{j as s,u as a,k as t,m as i,c as n}from"./cec18ad9a-DiLjrOUd.js";import{p as o,o as c,a as r,n as d,b as l,e as m}from"./vendor-zod-CMvj0_Fd.js";import{r as f}from"./vendor-react-AXa6hZO5.js";import{a2 as u,a3 as _}from"./index-C_tZnXTW.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=m(h),b=c({header_key:m(["get_started","go_further"]),item_ids:r(g).min(1).max(10).refine(e=>new Set(e).size===e.length,"duplicate item_ids"),shuffle:l().default(!1)}),j=o(e=>e??{},c({...Object.fromEntries(h.map(e=>[e,l().default(!1).catch(!1)])),max_visible:d().int().min(1).max(10).default(3).catch(3),pages:r(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)})),k=j.parse({});function v(){return s("claudified_code_desktop_activation_checklist",k,j)}function w(e){return(e.pages??[]).some(e=>e.item_ids.length>0)}function x(){return!1}const z="ccd-checklist-dismissed";function S(){const e=a(),s=t(),o=i("claude_ai_sot_has_claude_code"),[c,r]=n(z,!1),[d,l]=n("ccd-checklist-le1-sessions-at-first-eval",!1),m=u(),p=e&&s&&!o&&!c;f.useEffect(()=>{p&&m&&!d&&_().length<=1&&l(!0)},[p,m,d,l]);const h=f.useCallback(()=>r(!0),[r]);return{eligible:p&&m&&d,dismiss:h}}export{z as L,x as a,v as b,p as c,w as h,S as u};
