try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ecb9e98c-8f07-4ee7-9c18-584b3405c72a`,e._sentryDebugIdIdentifier=`sentry-dbid-ecb9e98c-8f07-4ee7-9c18-584b3405c72a`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,ii as n,jg as r,ng as i,pi as a,xr as o}from"./entry.client-mpghtlrl.js";import{y as s}from"./xds-react-components-ihgca01z.js";import{t as c}from"./DialogShell-ga7ic6wy.js";var l=e(a(),1),u=t(),d=e(r(),1),f=i(),p=(0,d.forwardRef)((e,t)=>{let n=(0,u.c)(7),r,i;n[0]===e?(r=n[1],i=n[2]):({text:i,...r}=e,n[0]=e,n[1]=r,n[2]=i);let a;return n[3]!==t||n[4]!==r||n[5]!==i?(a=(0,f.jsx)(o,{ref:t,as:`button`,size:`large`,className:`min-w-component-action-text-standard-min-width flex-1 content-center items-center gap-8 px-internal-container-padding-regular py-component-action-text-standard-container-padding-top-and-bottom`,...r,children:i}),n[3]=t,n[4]=r,n[5]=i,n[6]=a):a=n[6],a}),m=e=>{let t=(0,u.c)(31),{title:r,prompt:i,illustration:a,firstButton:o,secondButton:m,textInput:h}=e,g=(0,d.useRef)(null),[_,v]=(0,d.useState)(h?.value||``),y;t[0]===r?y=t[1]:(y={title:{text:r,sizeClassName:`type-section3`}},t[0]=r,t[1]=y);let b=y,x;t[2]===h?x=t[3]:(x=e=>{e.key===`Enter`&&g.current?.click(),h?.onKeyDown?.(e)},t[2]=h,t[3]=x);let S=x,C;t[4]===b?C=t[5]:(C=(0,f.jsx)(c.NavigationHeader,{className:`flex items-start self-stretch`,title:b,showClose:!0}),t[4]=b,t[5]=C);let w;t[6]===a?w=t[7]:(w=a&&(0,f.jsx)(`div`,{className:`mt-[-24px] flex justify-center self-stretch`,children:(0,f.jsx)(n,{illustration:a,size:`medium`})}),t[6]=a,t[7]=w);let T;t[8]!==i||t[9]!==a?(T=i&&(0,f.jsx)(`div`,{className:(0,l.default)(`flex items-start self-stretch text-noninteractive-content-primary-content type-body`,{"mx-auto":!!a}),children:i}),t[8]=i,t[9]=a,t[10]=T):T=t[10];let E;t[11]!==h||t[12]!==S||t[13]!==_?(E=h&&(0,f.jsx)(`div`,{className:`flex items-start self-stretch`,children:(0,f.jsx)(s,{className:`w-full`,...h,onKeyDown:S,value:_,"data-auto-focus":`true`,onChange:e=>{v(e),h.onChange?.(e)}})}),t[11]=h,t[12]=S,t[13]=_,t[14]=E):E=t[14];let D=h?void 0:`true`,O;t[15]!==D||t[16]!==o?(O=(0,f.jsx)(p,{ref:g,kind:`brand`,"data-auto-focus":D,...o}),t[15]=D,t[16]=o,t[17]=O):O=t[17];let k;t[18]===m?k=t[19]:(k=m&&(0,f.jsx)(p,{...m}),t[18]=m,t[19]=k);let A;t[20]!==O||t[21]!==k?(A=(0,f.jsxs)(`div`,{className:`flex items-center gap-layout-horizontal-gutter self-stretch`,children:[O,k]}),t[20]=O,t[21]=k,t[22]=A):A=t[22];let j;t[23]!==w||t[24]!==T||t[25]!==E||t[26]!==A?(j=(0,f.jsxs)(`div`,{className:`flex flex-col items-start gap-layout-vertical-new-section-tight self-stretch px-[var(--modal-spacing)] pb-[24px]`,children:[w,T,E,A]}),t[23]=w,t[24]=T,t[25]=E,t[26]=A,t[27]=j):j=t[27];let M;return t[28]!==C||t[29]!==j?(M=(0,f.jsxs)(f.Fragment,{children:[C,j]}),t[28]=C,t[29]=j,t[30]=M):M=t[30],M};m.CONTAINER_CLASSNAME=`w-[352px] rounded-lg bg-container-backgrounds-elevation-background-level-2 bg-cover`;export{m as t};