import{t as e}from"./jsx-runtime-CiQ1k8xo.js";import{t}from"./clsx-BcPLHiun.js";import{lt as n}from"./vscode-api-DjORcpSo.js";import{t as r}from"./use-platform-D2c1wBYs.js";import{t as i}from"./with-window-BoZr9BJk.js";import{t as a}from"./checkbox-BAYeIfAk.js";var o=n(),s=e(),c=`h-[18px] w-[18px] rounded-[3px] border-[1px]`;function l(e){let n=(0,o.c)(6),{children:r,ariaLabel:i,className:a}=e,c;n[0]===a?c=n[1]:(c=t(`flex h-[240px] w-full flex-col overflow-y-auto rounded-2xl border border-token-border bg-token-surface-primary px-5 py-4`,a),n[0]=a,n[1]=c);let l;return n[2]!==i||n[3]!==r||n[4]!==c?(l=(0,s.jsx)(`div`,{className:c,role:`list`,"aria-label":i,children:r}),n[2]=i,n[3]=r,n[4]=c,n[5]=l):l=n[5],l}function u(e){let n=(0,o.c)(45),{checkboxId:r,checked:i,disabled:l,onCheckedChange:u,control:d,label:f,description:p,leadingContent:m,trailingContent:h,trailingControl:g,controlPlacement:_,className:v,checkboxClassName:y,labelClassName:b,descriptionClassName:x,trailingClassName:S}=e,C=l===void 0?!1:l,w=_===void 0?`left`:_,T=y===void 0?c:y,E=d==null&&r!=null&&i!=null&&u!=null,D;n[0]!==T||n[1]!==r||n[2]!==i||n[3]!==d||n[4]!==C||n[5]!==u||n[6]!==E?(D=E?(0,s.jsx)(a,{id:r,className:T,checked:i,disabled:C,onCheckedChange:e=>{u(e)}}):d,n[0]=T,n[1]=r,n[2]=i,n[3]=d,n[4]=C,n[5]=u,n[6]=E,n[7]=D):D=n[7];let O=D,k;n[8]===v?k=n[9]:(k=t(`relative flex items-start gap-2 last:border-b-0`,v),n[8]=v,n[9]=k);let A;n[10]!==O||n[11]!==w?(A=w===`left`?(0,s.jsx)(`div`,{children:O}):null,n[10]=O,n[11]=w,n[12]=A):A=n[12];let j;n[13]===m?j=n[14]:(j=m==null?null:(0,s.jsx)(`div`,{children:m}),n[13]=m,n[14]=j);let M=E?r:void 0,N;n[15]===b?N=n[16]:(N=t(`truncate text-base leading-5 text-token-foreground`,b),n[15]=b,n[16]=N);let P;n[17]!==f||n[18]!==N?(P=(0,s.jsx)(`div`,{className:N,children:f}),n[17]=f,n[18]=N,n[19]=P):P=n[19];let F;n[20]!==p||n[21]!==x?(F=p==null?null:(0,s.jsx)(`div`,{className:t(`truncate text-xs leading-4 text-token-text-secondary`,x),children:p}),n[20]=p,n[21]=x,n[22]=F):F=n[22];let I;n[23]!==P||n[24]!==F?(I=(0,s.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[P,F]}),n[23]=P,n[24]=F,n[25]=I):I=n[25];let L;n[26]!==S||n[27]!==h?(L=h==null?null:(0,s.jsx)(`span`,{className:t(`max-w-[45%] shrink truncate text-right text-sm leading-5 text-token-description-foreground`,S),children:h}),n[26]=S,n[27]=h,n[28]=L):L=n[28];let R;n[29]!==I||n[30]!==L||n[31]!==M?(R=(0,s.jsxs)(`label`,{className:`flex min-w-0 flex-1 items-start gap-2 text-left`,htmlFor:M,children:[I,L]}),n[29]=I,n[30]=L,n[31]=M,n[32]=R):R=n[32];let z;n[33]===g?z=n[34]:(z=g==null?null:(0,s.jsx)(`div`,{children:g}),n[33]=g,n[34]=z);let B;n[35]!==O||n[36]!==w?(B=w===`right`?(0,s.jsx)(`div`,{children:O}):null,n[35]=O,n[36]=w,n[37]=B):B=n[37];let V;return n[38]!==R||n[39]!==z||n[40]!==B||n[41]!==k||n[42]!==A||n[43]!==j?(V=(0,s.jsxs)(`div`,{className:k,role:`listitem`,children:[A,j,R,z,B]}),n[38]=R,n[39]=z,n[40]=B,n[41]=k,n[42]=A,n[43]=j,n[44]=V):V=n[44],V}function d(e){let n=(0,o.c)(21),{children:r,icon:i,title:a,subtitle:c,className:l,textClassName:u,titleClassName:d,subtitleClassName:f}=e,p;n[0]===l?p=n[1]:(p=t(`flex w-full flex-col items-center gap-6`,l),n[0]=l,n[1]=p);let m=i??null,h;n[2]===u?h=n[3]:(h=t(`flex w-full flex-col items-center text-center`,u),n[2]=u,n[3]=h);let g;n[4]===d?g=n[5]:(g=t(`text-heading-lg font-semibold text-token-foreground`,d),n[4]=d,n[5]=g);let _;n[6]!==g||n[7]!==a?(_=(0,s.jsx)(`span`,{className:g,children:a}),n[6]=g,n[7]=a,n[8]=_):_=n[8];let v;n[9]!==c||n[10]!==f?(v=c==null?null:(0,s.jsx)(`span`,{className:t(`text-lg leading-6 text-token-description-foreground`,f),children:c}),n[9]=c,n[10]=f,n[11]=v):v=n[11];let y;n[12]!==h||n[13]!==_||n[14]!==v?(y=(0,s.jsxs)(`div`,{className:h,children:[_,v]}),n[12]=h,n[13]=_,n[14]=v,n[15]=y):y=n[15];let b;return n[16]!==r||n[17]!==p||n[18]!==m||n[19]!==y?(b=(0,s.jsxs)(`div`,{className:p,children:[m,y,r]}),n[16]=r,n[17]=p,n[18]=m,n[19]=y,n[20]=b):b=n[20],b}function f(e){let n=(0,o.c)(12),{children:a,fullBleed:c,hideHeader:l}=e,u=c===void 0?!1:c,d=l===void 0?!1:l,{platform:f}=r(),p=!d&&f!==`windows`,m;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,s.jsx)(`div`,{className:`absolute inset-0 bg-token-bg-primary electron:bg-transparent`}),n[0]=m):m=n[0];let h;n[1]===p?h=n[2]:(h=p?(0,s.jsx)(`div`,{className:`draggable fixed inset-x-0 top-0 z-10 h-toolbar-sm select-none`}):null,n[1]=p,n[2]=h);let g;n[3]!==u||n[4]!==p?(g=u?`fixed inset-0`:t(`fixed inset-x-0 bottom-0 flex items-center justify-center px-6 pb-8`,p?`top-toolbar-sm pt-2`:`top-0 pt-8`),n[3]=u,n[4]=p,n[5]=g):g=n[5];let _;n[6]!==a||n[7]!==g?(_=(0,s.jsx)(`div`,{className:g,children:a}),n[6]=a,n[7]=g,n[8]=_):_=n[8];let v;return n[9]!==h||n[10]!==_?(v=(0,s.jsxs)(`div`,{className:`fixed inset-0 overflow-hidden select-none`,children:[m,(0,s.jsxs)(i,{browser:!0,electron:!0,children:[h,_]})]}),n[9]=h,n[10]=_,n[11]=v):v=n[11],v}export{f as a,d as i,l as n,u as r,c as t};
//# sourceMappingURL=onboarding-shell-BwVHjIHg.js.map