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]=`5f23ebd7-91f5-4963-bced-d8c4494efa13`,e._sentryDebugIdIdentifier=`sentry-dbid-5f23ebd7-91f5-4963-bced-d8c4494efa13`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Ag as n,Bn as r,Fr as i,Yh as a,Zm as o,_r as s,hi as c,jg as l,ng as u,pi as d,yr as f}from"./entry.client-mpghtlrl.js";import{ft as p,ut as m}from"./xds-react-components-ihgca01z.js";import{n as h}from"./responsive-toolkit-jup4yedr.js";import{n as g}from"./DialogShell-ga7ic6wy.js";var _=e(d(),1),v=n(),y=e(l(),1),b=u(),x=s(e=>{let n=(0,v.c)(21),{handleClose:i}=e,{t:a}=t(`UserProfile`),o=h(),s,c;n[0]===o?(s=n[1],c=n[2]):(s=()=>{o?.()},c=[o],n[0]=o,n[1]=s,n[2]=c),(0,y.useEffect)(s,c);let l;n[3]===a?l=n[4]:(l=a(`See your profile`,{shortKey:`see_your_profile`}),n[3]=a,n[4]=l);let u;n[5]!==l||n[6]!==i?(u={text:l,onPress:i},n[5]=l,n[6]=i,n[7]=u):u=n[7];let d;n[8]===a?d=n[9]:(d=a(`Change privacy settings`,{shortKey:`change_privacy_settings`}),n[8]=a,n[9]=d);let p;n[10]===d?p=n[11]:(p={text:d,href:r,target:`_blank`},n[10]=d,n[11]=p);let g;n[12]===a?g=n[13]:(g=a(`You can change your privacy settings to adjust what other people can see and do on your profile.`,{shortKey:`privacy_body`}),n[12]=a,n[13]=g);let _;n[14]===a?_=n[15]:(_=a(`Privacy is important`,{shortKey:`privacy_title`}),n[14]=a,n[15]=_);let x;return n[16]!==u||n[17]!==p||n[18]!==g||n[19]!==_?(x=(0,b.jsx)(m,{className:`px-template-overlays-modal-container-padding-2-left-&-right pb-template-overlays-modal-container-padding-2-top-&-bottom flex max-h-full flex-col overflow-y-auto sbar`,children:(0,b.jsx)(f,{illustration:`unauthenticated`,primaryButton:u,secondaryButton:p,subtitle:g,title:_})}),n[16]=u,n[17]=p,n[18]=g,n[19]=_,n[20]=x):x=n[20],x},()=>{let{dialog:e,settings:t}=o(),{mutate:n}=a(e.mutations.goBack.getOptions()),{mutate:r}=a(t.mutations.setShowProfileOnboardingDialogSetting.getOptions());return{handleClose:()=>{r({settingValue:!1}),n()}}}),S=s(e=>{let t=(0,v.c)(15),{onWillClose:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={edge:`top`,centered:!0},t[0]=r):r=t[0];let a=p(r),o;t[1]===a?o=t[2]:(o=i(a),t[1]=a,t[2]=o);let s=o,l;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(l={default:!0,XSL_20:!1,SM_10:!1},t[3]=l):l=t[3];let{data:u}=c(l),d=u?s:void 0,f=g.useComponent(),m=x.useComponent(),h=!u,y;t[4]!==h||t[5]!==u?(y=(0,_.default)(`modal-small w-template-overlays-modal-size-small-width-compact`,`rounded-noninteractive-container-regular bg-cover`,`border-container-backgrounds-elevation-border-level-4 bg-container-backgrounds-elevation-background-level-4 shadow-container-backgrounds-elevation-background-level-4`,{"modal-floating":h,"h-full w-full":u},`[--scrollbar-track-margin-top:var(--modal-spacing)]`),t[4]=h,t[5]=u,t[6]=y):y=t[6];let S;t[7]===m?S=t[8]:(S=(0,b.jsx)(m,{}),t[7]=m,t[8]=S);let C;return t[9]!==f||t[10]!==y||t[11]!==n||t[12]!==d||t[13]!==S?(C=(0,b.jsx)(f,{autoHeight:!0,className:y,onWillClose:n,positionStyle:d,children:S}),t[9]=f,t[10]=y,t[11]=n,t[12]=d,t[13]=S,t[14]=C):C=t[14],C},()=>{let{settings:e}=o(),{mutate:t}=a(e.mutations.setShowProfileOnboardingDialogSetting.getOptions());return{onWillClose:()=>{t({settingValue:!1})}}}),C=()=>{let e=(0,v.c)(2),t=S.useComponent(),n;return e[0]===t?n=e[1]:(n=(0,b.jsx)(t,{}),e[0]=t,e[1]=n),n};export{C as DialogProfileOnboarding,C as default,S as ProfileOnboardingDialogConnection};