import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{Dvt as t,EM as n,FM as r,IM as i,Mvt as a,TM as o,aM as s,dM as c,fM as l,iM as u,oM as d,rM as f,sM as p}from"./app-initial-BHB6SClA.js";function m(e){let t=(0,g.c)(7),n,r;if(t[0]===e?(n=t[1],r=t[2]):({source:n,...r}=e,t[0]=e,t[1]=n,t[2]=r),i(n)){let n;return t[3]===e?n=t[4]:(n=(0,_.jsx)(f,{...e}),t[3]=e,t[4]=n),n}let a;return t[5]===r?a=t[6]:(a=(0,_.jsx)(h,{...r}),t[5]=r,t[6]=a),a}function h(e){let t=(0,g.c)(36),{backgroundAgents:n,className:r,chromeVariant:i,excludedAgentConversationIds:a,excludedThreadIds:s,hostId:c,isHomeMenu:d,keyboardEventTarget:f,leadingItems:m,onAddContext:h,onRequestClose:v,onUpdateSelectedMention:y,placement:b,query:x,fileSearchRootPaths:S,skillRoots:C,threadSearchRoots:w}=e,T;t[0]===n?T=t[1]:(T=n===void 0?[]:n,t[0]=n,t[1]=T);let E=T,D=i===void 0?`default`:i,O;t[2]===a?O=t[3]:(O=a===void 0?[]:a,t[2]=a,t[3]=O);let k=O,A;t[4]===s?A=t[5]:(A=s===void 0?[]:s,t[4]=s,t[5]=A);let j=A,M=d===void 0?!1:d,N;t[6]===m?N=t[7]:(N=m===void 0?[]:m,t[6]=m,t[7]=N);let P=N,F=b===void 0?`top`:b,I;t[8]!==j||t[9]!==c||t[10]!==x||t[11]!==w?(I={excludedThreadIds:j,hostId:c,query:x,roots:w},t[8]=j,t[9]=c,t[10]=x,t[11]=w,t[12]=I):I=t[12];let L=p(I),R;t[13]!==E||t[14]!==k||t[15]!==S||t[16]!==c||t[17]!==x||t[18]!==C||t[19]!==L?(R={backgroundAgents:E,excludedAgentConversationIds:k,hostId:c,query:x,roots:S,skillRoots:C,threadSource:L},t[13]=E,t[14]=k,t[15]=S,t[16]=c,t[17]=x,t[18]=C,t[19]=L,t[20]=R):R=t[20];let{sections:z}=l(R),B;t[21]!==P||t[22]!==x||t[23]!==z?(B=o(z,x,P),t[21]=P,t[22]=x,t[23]=z,t[24]=B):B=t[24];let V;return t[25]!==D||t[26]!==r||t[27]!==M||t[28]!==f||t[29]!==h||t[30]!==v||t[31]!==y||t[32]!==F||t[33]!==x||t[34]!==B?(V=(0,_.jsx)(u,{className:r,chromeVariant:D,isHomeMenu:M,keyboardEventTarget:f,onAddContext:h,onRequestClose:v,onUpdateSelectedMention:y,placement:F,query:x,sections:B}),t[25]=D,t[26]=r,t[27]=M,t[28]=f,t[29]=h,t[30]=v,t[31]=y,t[32]=F,t[33]=x,t[34]=B,t[35]=V):V=t[35],V}var g,_;e((()=>{g=a(),r(),s(),n(),c(),d(),_=t()}))();export{m as PrimaryComposerAtMentionList};
//# sourceMappingURL=primary-composer-at-mention-list-y4_g26to.js.map