import{t as e}from"./jsx-runtime-CiQ1k8xo.js";import{t}from"./clsx-BcPLHiun.js";import{a as n,i as r,n as i,r as a}from"./dist-DBoRrpWS.js";import{lt as o}from"./vscode-api-DjORcpSo.js";import{n as s}from"./window-zoom-context-CSPQZGcc.js";var c=o(),l=e();function u(e){let t=(0,c.c)(2),n;return t[0]===e?n=t[1]:(n=(0,l.jsx)(r,{"data-slot":`popover`,...e}),t[0]=e,t[1]=n),n}function d(e){let t=(0,c.c)(2),r;return t[0]===e?r=t[1]:(r=(0,l.jsx)(n,{"data-slot":`popover-trigger`,...e}),t[0]=e,t[1]=r),r}function f(e){let n=(0,c.c)(17),r,o,u,d,f;n[0]===e?(r=n[1],o=n[2],u=n[3],d=n[4],f=n[5]):({className:r,align:d,sideOffset:f,style:u,...o}=e,n[0]=e,n[1]=r,n[2]=o,n[3]=u,n[4]=d,n[5]=f);let p=d===void 0?`start`:d,m=f===void 0?4:f,h=s(),g;n[6]===r?g=n[7]:(g=t(`bg-token-dropdown-background/90 text-token-foreground ring-token-border z-50 flex w-72 origin-[var(--radix-popover-content-transform-origin)] flex-col overflow-y-auto rounded-xl px-1 py-1 shadow-lg ring-[0.5px] backdrop-blur-sm outline-hidden`,r),n[6]=r,n[7]=g);let _=h===1?void 0:h,v;n[8]!==u||n[9]!==_?(v={zoom:_,maxWidth:`min(var(--radix-popover-content-available-width), calc(100vw - 16px))`,maxHeight:`min(var(--radix-popover-content-available-height), calc(100vh - 16px))`,...u},n[8]=u,n[9]=_,n[10]=v):v=n[10];let y;return n[11]!==p||n[12]!==o||n[13]!==m||n[14]!==g||n[15]!==v?(y=(0,l.jsx)(a,{children:(0,l.jsx)(i,{"data-slot":`popover-content`,align:p,collisionPadding:6,sideOffset:m,className:g,style:v,...o})}),n[11]=p,n[12]=o,n[13]=m,n[14]=g,n[15]=v,n[16]=y):y=n[16],y}function p(e){let n=(0,c.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(`font-medium`,r),n[3]=r,n[4]=a);let o;return n[5]!==i||n[6]!==a?(o=(0,l.jsx)(`div`,{"data-slot":`popover-title`,className:a,...i}),n[5]=i,n[6]=a,n[7]=o):o=n[7],o}export{d as i,f as n,p as r,u as t};
//# sourceMappingURL=popover-Bf2pJZul.js.map