import{JC as L,KC as h,Mt as J,Nt as Z,oE as z,pE as M}from"./cli-0.5.3-jbzr8k4s.mjs";import{pV as X}from"./cli-0.5.3-842pf3t4.mjs";import{QY as W}from"./cli-0.5.3-rch86nhn.mjs";import{Ila as H,gma as V}from"./cli-0.5.3-qrvd6cmy.mjs";import{Tma as D,Xma as U}from"./cli-0.5.3-0df3r78b.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{h();V();M();Z();P=D(X(),1),x=D(W(),1)});
export{v as nf,A as of};
