import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{Dvt as t,E$ as n,Mvt as r,O$ as i,T$ as a,g0 as o,h0 as s,k$ as c,p0 as l,y0 as u}from"./app-initial-BHB6SClA.js";import{o as d,s as f}from"./conversation-source-Bjyo78F2.js";function p(e){let t=(0,g.c)(15),{children:r,isOpen:o,onOpenChange:s,shouldPreventAutoFocus:c,trigger:l}=e,u=c===void 0?!1:c,d;t[0]===l?d=t[1]:(d=(0,_.jsx)(i,{asChild:!0,children:l}),t[0]=l,t[1]=d);let f,p;t[2]===u?(f=t[3],p=t[4]):(f=e=>{u&&e.preventDefault()},p=e=>{u&&e.preventDefault()},t[2]=u,t[3]=f,t[4]=p);let v;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v={maxHeight:`none`,maxWidth:`none`},t[5]=v):v=t[5];let y=o?r:null,b;t[6]!==f||t[7]!==p||t[8]!==y?(b=(0,_.jsx)(n,{align:`end`,side:`bottom`,sideOffset:8,className:`!w-auto !overflow-visible !rounded-3xl !bg-transparent !p-0 !shadow-none !ring-0 !backdrop-blur-none`,onOpenAutoFocus:f,onCloseAutoFocus:p,onFocusOutside:h,onPointerDownOutside:m,style:v,children:y}),t[6]=f,t[7]=p,t[8]=y,t[9]=b):b=t[9];let x;return t[10]!==o||t[11]!==s||t[12]!==d||t[13]!==b?(x=(0,_.jsxs)(a,{open:o,onOpenChange:s,children:[d,b]}),t[10]=o,t[11]=s,t[12]=d,t[13]=b,t[14]=x):x=t[14],x}function m(e){e.target instanceof Element&&e.target.closest(`[data-app-shell-tab-strip-controller="right"]`)!=null&&e.preventDefault()}function h(e){e.target instanceof Element&&e.target.matches(`[role="tabpanel"][data-app-shell-tab-panel-controller="right"]`)&&e.preventDefault()}var g,_,v=e((()=>{g=r(),c(),_=t()}));function y(e,t=!0){let n=e.get(f),r=s(e.get(u,t),t);if(n.displayMode!==`overlay`){e.set(u,t,l(t,!r));return}let i=n.isPopoverOpen||typeof t!=`boolean`&&r;typeof t!=`boolean`&&e.set(u,t,l(t,!i)),e.set(f,{...n,isPopoverOpen:!i})}var b=e((()=>{o(),d()}));export{v as i,y as n,p as r,b as t};
//# sourceMappingURL=toggle-thread-summary-panel-DoNWFew9.js.map