import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n}from"./src-Di342QoJ.js";import{W as r,cn as i}from"./state-sIHsFpDu.js";import{cx as a,lx as o,oC as s,sC as c,vC as l,yC as u}from"./loadAgentsDir-C_wFhytF.js";function d(){let{addNotification:e,removeNotification:t}=c(),[n,i]=(0,f.useState)(()=>{let{errors:e}=a();return e});return u((0,f.useCallback)(()=>{let{errors:e}=a();i(e)},[])),(0,f.useEffect)(()=>{r()||(n.length>0?e({key:p,text:`Found ${n.length} settings ${n.length===1?`issue`:`issues`} · /doctor for details`,color:`warning`,priority:`high`,timeoutMs:6e4}):t(p))},[n,e,t]),n}var f,p,m=e((()=>{f=t(n()),s(),i(),o(),l(),p=`settings-errors`}));export{d as n,m as t};