import{o as e}from"./rolldown-runtime-C_s2cVnS.js";import{m as t}from"./vendor-react-nmZsNlRz.js";import{t as n}from"./utils-BRwGVQJx.js";import{t as r}from"./codicon-eqX7Peys.js";var i=13.9,a=.65;function o(e=1){return`${i*e}px`}var s=`calc(var(--spacing) * 0.9)`;function c({darwinMajor:e=0,isFullscreen:t=!1,windowButtonPosition:n}={}){return t||n===null||e>=25?`0px`:s}function l(e,{darwinMajor:t=0,isFullscreen:n=!1}={}){return e>0?`${e}px`:n&&t>0?`14px`:`0.75rem`}var u=`text-muted-foreground/85 hover:bg-(--ui-control-hover-background) hover:text-foreground`,d=`fixed z-70 flex flex-row items-center pointer-events-auto select-none [-webkit-app-region:no-drag]`;function f(e){return`calc(${e} * var(--titlebar-control-size))`}var p=`pointer-events-none relative z-3 flex h-(--titlebar-height) w-full min-w-0 shrink-0 items-center justify-start gap-3 overflow-hidden border-b border-(--ui-stroke-tertiary) bg-(--ui-chat-surface-background) px-[max(0.75rem,var(--titlebar-content-inset,0rem))] pr-[calc(var(--titlebar-tools-right,0.75rem)+var(--titlebar-tools-width,0px)+0.75rem)]`,m=`min-w-0 flex-1 overflow-hidden`,h=`after:pointer-events-none after:absolute after:left-0 after:right-0 after:top-full after:h-4 after:bg-linear-to-b after:from-(--ui-chat-surface-background) after:to-transparent after:content-['']`;function g(e,t=!1){return e===null||t?{left:14,top:5}:{left:(e?.x??24)+74,top:5}}var _=e(t(),1);function v({className:e,name:t,size:i=o(),spinning:a}){return(0,_.jsx)(r,{className:n(`leading-none`,e),name:t,size:i,spinning:a})}export{c as a,m as c,l as d,f,g as i,o as l,a as n,p as o,u as r,h as s,v as t,d as u};