1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bb09165c-18f6-5809-884d-18fca4493727")}catch(e){}}(); 3(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`2481b260761baf0ba06bb99cdde256805aacaea9`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b1f71273-ab71-4183-b860-efde23d24664`,e._sentryDebugIdIdentifier=`sentry-dbid-b1f71273-ab71-4183-b860-efde23d24664`)}catch{}})();import{s as e}from"./rolldown-runtime-DtzTlhqZ.js";import{t}from"./react-C-eScrTr.js";import{t as n}from"./jsx-runtime-CvtChUJ7.js";import{n as r,t as i}from"./dist-BumPETTW.js";import{t as a}from"./dist-CdRAGky2.js";import{t as o}from"./cn-C-e8avoH.js";import{t as s}from"./disabledToast-bnLm5pbn.js";import{r as c}from"./Loading-Byz0Xdf2.js";import{t as l}from"./Icon-CAkxbIXd.js";var u=e(t(),1),d=n(),f=`bg-background-inverse text-text-inverse transition-colors hover:bg-background-inverse/90 active:bg-background-inverse/80 disabled:opacity-50`,p=`bg-control-primary text-text-primary transition-colors hover:bg-control-secondary active:bg-control-background disabled:opacity-50 dark:bg-base-50/[0.13] dark:hover:bg-base-50/[0.17] dark:active:bg-base-50/[0.19]`,m=a(`inline-flex items-center select-none relative font-semibold justify-center whitespace-nowrap text-sm ring-offset-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed box-border`,{variants:{variant:{default:f,outline:`border border-border-primary dark:border-base-50/15 bg-transparent text-text-primary transition-colors hover:surface-hover active:surface-press dark:hover:bg-[hsl(var(--surface-tint)_/_0.08)] dark:active:bg-[hsl(var(--surface-tint)_/_0.13)] disabled:opacity-50`,dashed:`border border-dashed border-border-primary dark:border-base-50/15 bg-transparent text-text-primary transition-colors hover:surface-hover active:surface-press disabled:opacity-50`,inverse:`bg-background-inverse text-text-inverse disabled:opacity-50`,accent:`bg-blue text-base-50`,"accent-muted":`bg-blue/10 text-blue transition-colors hover:bg-blue/15 active:bg-blue/20 disabled:opacity-50`,ghost:`text-text-primary hover:surface-hover hover:text-text-primary active:surface-press dark:hover:bg-base-50/[0.08] dark:active:bg-base-50/[0.13] disabled:opacity-50 data-[highlighted]:surface-hover data-[highlighted]:text-text-primary data-[state=open]:surface-hover data-[state=highlighted]:surface-hover group-data-[highlighted]:surface-hover group-data-[highlighted]:text-text-primary group-focus-visible:surface-hover group-focus-visible:text-text-primary aria-pressed:surface-press aria-pressed:text-text-primary`,destructive:`bg-control-destructive text-text-destructive hover:brightness-95 active:brightness-90 disabled:opacity-50`,muted:p,secondary:p,control:`${p} border border-border-primary`,sidebar:`hover:bg-[hsl(var(--hover-app))] focus:bg-control-primary focus:text-text-primary data-[highlighted]:bg-control-primary data-[highlighted]:text-text-primary data-[selected=true]:bg-[hsl(var(--active-app))] data-[selected=true]:hover:bg-[hsl(var(--active-app))] data-[selected=true]:focus:bg-[hsl(var(--active-app))] overflow-hidden font-medium w-full text-text-primary justify-start gap-2 text-sm`,onboarding:`bg-none shadow-[inset_0_0_0_2px_hsl(var(--border-primary))] text-text-primary cursor-pointer !h-11 ease-in transition-transform`,success:`bg-green/10 text-green-700 transition-colors hover:bg-green/15 active:bg-green/20 disabled:opacity-50 dark:text-green-400`,"danger-ghost":`text-text-destructive`,primary:f,surface:`surface-raise text-text-primary border surface-edge-strong transition-colors hover:surface-raise-hover disabled:opacity-50`},size:{"x-small":`h-5 px-1 py-0.5 text-sm gap-0.5`,small:`h-6 px-1.5 py-1 text-sm gap-0.5`,medium:`h-[28px] px-2 py-1 text-sm gap-1`,large:`h-8 px-2.5 py-1.5 text-sm gap-0.5`,"x-large":`h-9 px-3 py-2 text-sm gap-0.5`,"xx-large":`h-11 px-2.5 py-3.5 text-sm gap-1.5`,"icon-xs":`h-5 w-5`,"
3icon-sm":`h-6 w-6`,icon:`h-7 w-7`,"icon-lg":`h-8 w-8`,"icon-xl":`h-9 w-9`},shape:{rounded:``,rectangular:``,pill:`rounded-full`}},compoundVariants:[{shape:`rectangular`,size:[`x-small`,`small`,`icon-xs`,`icon-sm`],class:`rounded-md font-medium`},{shape:`rectangular`,size:[`medium`,`icon`],class:`rounded-lg font-medium`},{shape:`rectangular`,size:[`large`,`icon-lg`],class:`rounded-[10px] font-medium`},{shape:`rectangular`,size:[`x-large`,`icon-xl`],class:`rounded-xl font-medium`},{shape:`rectangular`,size:[`xx-large`],class:`rounded-2xl`},{shape:`rounded`,size:[`x-small`,`small`],class:`rounded-full font-medium`},{shape:`rounded`,size:[`medium`],class:`rounded-full font-medium`},{shape:`rounded`,size:[`large`],class:`rounded-full font-medium`},{shape:`rounded`,size:[`x-large`],class:`rounded-full font-medium`},{shape:`rounded`,size:[`xx-large`],class:`rounded-full`},{shape:`rounded`,size:[`icon`,`icon-xs`,`icon-sm`,`icon-lg`,`icon-xl`],class:`rounded-full`},{variant:`sidebar`,class:`rounded-lg`},{variant:`onboarding`,class:`rounded-xl`},{size:[`x-small`],class:`gap-0.5`},{size:[`small`],class:`gap-1`},{size:[`medium`],class:`gap-1`},{size:[`large`],class:`gap-0.5`},{size:[`x-large`],class:`gap-0.5`},{size:[`xx-large`],class:`gap-3`}],defaultVariants:{variant:`default`,size:`medium`,shape:`rectangular`}}),h={"x-small":{leading:`pl-0.5`,trailing:`pr-0.5`},small:{leading:`pl-1`,trailing:`pr-1`},medium:{leading:`pl-1.5`,trailing:`pr-1.5`},large:{leading:`pl-2`,trailing:`pr-2`},"x-large":{leading:`pl-2`,trailing:`pr-2`},"xx-large":{leading:`pl-2`,trailing:`pr-2`}},g={normal:`font-normal`,medium:`font-medium`,semibold:`font-semibold`,bold:`font-bold`},renderIcon=(e,t,n)=>e?typeof e!=`string`&&typeof e!=`number`&&!(0,u.isValidElement)(e)?(0,d.jsx)(l,{as:e,size:t,className:o(`shrink-0`,n)}):(0,d.jsx)(`span`,{className:o(`shrink-0`,n),children:e}):null,_=(0,u.memo)(({className:e,variant:t,size:n,shape:a,asChild:l=!1,isLoading:u=!1,loadingClassName:f,loadingVariant:p,href:_,leadingIcon:v,trailingIcon:y,label:b,secondaryLabel:x,showLabel:S=!0,showSecondaryLabel:C=!0,leadingIconClassName:w,trailingIconClassName:T,trailingIconSpanClassName:E,leadingIconSize:D=`sm`,trailingIconSize:O=`sm`,surface:k,weight:A,selected:j,disabledReason:M,as:N,children:P,ref:F,...I})=>{let L=l?i:_?`a`:N||`button`,R=!u&&typeof M==`string`&&M.length>0,handleSoftActivate=e=>{e.preventDefault(),e.stopPropagation(),M&&s(M)},z=R?{disabled:void 0,href:void 0,..._?{tabIndex:I.tabIndex??0,role:`link`}:null,"aria-disabled":!0,"data-disabled":`true`,onClick:handleSoftActivate,onKeyDown:e=>{if(e.key===`Enter`||e.key===` `){handleSoftActivate(e);return}I.onKeyDown?.(e)}}:void 0,B=b||P,V=S&&B,H=C&&x,U=!!V||!!H,W=h[n??`medium`],G=U&&v?W?.leading:void 0,K=U&&y?W?.trailing:void 0,q=p?.variant??t??`default`,J=q===`inverse`||q===`primary`||q==="default"?`inverse`:`gray`,Y=k?{"--surface":`var(--surface-${k})`}:void 0;return(0,d.jsxs)(L,{tabIndex:0,disabled:I.disabled??u,"aria-busy":u,"data-selected":j?`true`:void 0,className:o(m({variant:t,size:n,shape:a}),G,K,A&&g[A],e,u&&`!text-transparent disabled:opacity-100 [&>*:not(.loading-overlay)]:invisible`),ref:F,..._?{href:_,target:`_blank`,rel:`noopener noreferrer`}:{},...I,...z,style:Y?{...Y,...I.style}:I.style,children:[renderIcon(v,D,w),V&&(l?(0,d.jsx)(r,{children:B}):(0,d.jsx)(`span`,{className:`truncate`,children:B})),H&&(0,d.jsx)(`span`,{className:o(`text-nowrap`,t===`inverse`?`text-text-inverse/65`:`text-text-secondary`),children:x}),y&&(0,d.jsx)(`span`,{className:o(`ml-auto`,E),children:renderIcon(y,O,T)}),u&&(0,d.jsx)(`span`,{className:o(`loading-overlay absolute z-10 inset-0 size-full flex items-center justify-center px-1`,f),children:(0,d.jsx)(c,{color:J})})]})});export{m as n,_ as t}; 4//# debugId=bb09165c-18f6-5809-884d-18fca4493727
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.