import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{Clt as t,Dvt as n,Mvt as r,Slt as i,bft as a,dU as o,gut as s,hut as c,uU as l,xft as u}from"./app-initial-BHB6SClA.js";function d(e){let t=(0,p.c)(13),{action:n,buttonRef:r,kind:i}=e,a=n.icon,o=a!=null&&n.label==null,s=o?`border-transparent text-token-description-foreground hover:text-token-foreground`:`px-3 max-[400px]:flex-1 max-[400px]:justify-center`,l=i===`primary`?`primary`:`ghost`,u;t[0]===a?u=t[1]:(u=a?(0,m.jsx)(a,{className:`icon-xs`}):null,t[0]=a,t[1]=u);let d;return t[2]!==n.ariaLabel||t[3]!==n.disabled||t[4]!==n.label||t[5]!==n.loading||t[6]!==n.onClick||t[7]!==r||t[8]!==o||t[9]!==s||t[10]!==l||t[11]!==u?(d=(0,m.jsxs)(c,{ref:r,"aria-label":n.ariaLabel,className:s,color:l,disabled:n.disabled,loading:n.loading,onClick:n.onClick,size:`composerSm`,uniform:o,children:[u,n.label]}),t[2]=n.ariaLabel,t[3]=n.disabled,t[4]=n.label,t[5]=n.loading,t[6]=n.onClick,t[7]=r,t[8]=o,t[9]=s,t[10]=l,t[11]=u,t[12]=d):d=t[12],d}function f(e){let t=(0,p.c)(33),{actionsPlacement:n,additionalActions:r,badge:o,description:s,dismissAction:c,leadingVisual:u,primaryAction:f,primaryActionRef:h,secondaryAction:g,title:_}=e,v=n===void 0?`aside`:n,y=r!=null||f!=null||g!=null||c!=null,b,x,S,C;if(t[0]!==v||t[1]!==r||t[2]!==c||t[3]!==y||t[4]!==f||t[5]!==h||t[6]!==g){let e={aside:`self-center max-[400px]:w-full max-[400px]:justify-center max-[400px]:self-stretch`,body:`mt-3 w-full justify-end`,bodyOnNarrow:`mt-3 justify-start`}[v],n=t=>(0,m.jsxs)(`div`,{className:a(`flex items-center gap-2`,e,t),children:[g?(0,m.jsx)(d,{action:g,kind:`secondary`}):null,f?(0,m.jsx)(d,{action:f,buttonRef:h,kind:`primary`}):null,c?(0,m.jsx)(d,{action:c,kind:`dismiss`}):null,r]});x=y&&v===`body`?n():null,S=y&&v===`bodyOnNarrow`?n(`hidden max-[400px]:flex`):null,b=y&&v===`aside`?n():null,C=y&&v===`bodyOnNarrow`?n(`max-[400px]:hidden`):null,t[0]=v,t[1]=r,t[2]=c,t[3]=y,t[4]=f,t[5]=h,t[6]=g,t[7]=b,t[8]=x,t[9]=S,t[10]=C}else b=t[7],x=t[8],S=t[9],C=t[10];let w=C,T;t[11]===u?T=t[12]:(T=u?(0,m.jsx)(`div`,{className:`flex size-12 shrink-0 items-center justify-center self-center text-token-text-secondary`,children:u}):null,t[11]=u,t[12]=T);let E;t[13]===_?E=t[14]:(E=(0,m.jsx)(`div`,{className:`min-w-0 text-base font-medium text-token-text-primary`,children:_}),t[13]=_,t[14]=E);let D;t[15]===o?D=t[16]:(D=o?(0,m.jsx)(i,{className:`border border-token-border-default bg-transparent px-1.5 py-0.5 text-xs font-medium text-token-text-secondary`,children:o}):null,t[15]=o,t[16]=D);let O;t[17]!==E||t[18]!==D?(O=(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[E,D]}),t[17]=E,t[18]=D,t[19]=O):O=t[19];let k;t[20]===s?k=t[21]:(k=(0,m.jsx)(`div`,{className:`text-sm leading-tight text-pretty text-token-text-secondary`,children:s}),t[20]=s,t[21]=k);let A;t[22]!==x||t[23]!==S||t[24]!==O||t[25]!==k?(A=(0,m.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[O,k,x,S]}),t[22]=x,t[23]=S,t[24]=O,t[25]=k,t[26]=A):A=t[26];let j;t[27]!==T||t[28]!==A?(j=(0,m.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 max-[400px]:items-start`,children:[T,A]}),t[27]=T,t[28]=A,t[29]=j):j=t[29];let M=b??w??void 0,N;return t[30]!==M||t[31]!==j?(N=(0,m.jsx)(l,{stackOnNarrow:!0,content:j,customCtas:M}),t[30]=M,t[31]=j,t[32]=N):N=t[32],N}var p,m,h=e((()=>{p=r(),u(),t(),o(),s(),m=n()}));export{h as n,f as t};
//# sourceMappingURL=onboarding-banner-x8BEylhu.js.map