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]=`040d0f87-bd52-4cd3-8587-671d585799c7`,e._sentryDebugIdIdentifier=`sentry-dbid-040d0f87-bd52-4cd3-8587-671d585799c7`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{X as t}from"./xds-react-components-lks62tbl.js";import{Ag as n,Fg as r,Ig as i,Jn as a,hn as o,or as s}from"./entry.client-dr7r6s9a.js";import{t as c}from"./DialogShell-k2jpaw9r.js";var l=e(s(),1),u=r(),d=e(i(),1),f=n(),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 n=(0,u.c)(31),{title:r,prompt:i,illustration:o,firstButton:s,secondButton:m,textInput:h}=e,g=(0,d.useRef)(null),[_,v]=(0,d.useState)(h?.value||``),y;n[0]===r?y=n[1]:(y={title:{text:r,sizeClassName:`type-section3`}},n[0]=r,n[1]=y);let b=y,x;n[2]===h?x=n[3]:(x=e=>{e.key===`Enter`&&g.current?.click(),h?.onKeyDown?.(e)},n[2]=h,n[3]=x);let S=x,C;n[4]===b?C=n[5]:(C=(0,f.jsx)(c.NavigationHeader,{className:`flex items-start self-stretch`,title:b,showClose:!0}),n[4]=b,n[5]=C);let w;n[6]===o?w=n[7]:(w=o&&(0,f.jsx)(a,{illustration:o,size:`medium`,className:`mx-auto mt-[-24px] self-stretch`}),n[6]=o,n[7]=w);let T;n[8]!==i||n[9]!==o?(T=i&&(0,f.jsx)(`div`,{className:(0,l.default)(`flex items-start self-stretch text-noninteractive-content-primary-content type-body`,{"mx-auto":!!o}),children:i}),n[8]=i,n[9]=o,n[10]=T):T=n[10];let E;n[11]!==h||n[12]!==S||n[13]!==_?(E=h&&(0,f.jsx)(`div`,{className:`flex items-start self-stretch`,children:(0,f.jsx)(t,{className:`w-full`,...h,onKeyDown:S,value:_,"data-auto-focus":`true`,onChange:e=>{v(e),h.onChange?.(e)}})}),n[11]=h,n[12]=S,n[13]=_,n[14]=E):E=n[14];let D=h?void 0:`true`,O;n[15]!==D||n[16]!==s?(O=(0,f.jsx)(p,{ref:g,kind:`brand`,"data-auto-focus":D,...s}),n[15]=D,n[16]=s,n[17]=O):O=n[17];let k;n[18]===m?k=n[19]:(k=m&&(0,f.jsx)(p,{...m}),n[18]=m,n[19]=k);let A;n[20]!==O||n[21]!==k?(A=(0,f.jsxs)(`div`,{className:`flex items-center gap-layout-horizontal-gutter self-stretch`,children:[O,k]}),n[20]=O,n[21]=k,n[22]=A):A=n[22];let j;n[23]!==w||n[24]!==T||n[25]!==E||n[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]}),n[23]=w,n[24]=T,n[25]=E,n[26]=A,n[27]=j):j=n[27];let M;return n[28]!==C||n[29]!==j?(M=(0,f.jsxs)(f.Fragment,{children:[C,j]}),n[28]=C,n[29]=j,n[30]=M):M=n[30],M};m.CONTAINER_CLASSNAME=`w-[352px] rounded-lg bg-container-backgrounds-elevation-background-level-2 bg-cover`;export{m as t};