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]=`e20abf12-285f-4886-9dd5-a4d16ad6fb87`,e._sentryDebugIdIdentifier=`sentry-dbid-e20abf12-285f-4886-9dd5-a4d16ad6fb87`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{rt as t,st as n}from"./xds-react-components-lks62tbl.js";import{Ag as r,Dn as i,Fg as a,Ig as o,Lt as s,cr as c,dn as l,lh as u,or as d,pn as f,sh as p,wg as m}from"./entry.client-dr7r6s9a.js";import{n as h}from"./responsive-toolkit-nc72eouk.js";import{n as g}from"./DialogShell-k2jpaw9r.js";var _=e(d(),1),v=a(),y=e(o(),1),b=r(),x=l(e=>{let t=(0,v.c)(21),{handleClose:r}=e,{t:i}=u(`UserProfile`),a=h(),o,c;t[0]===a?(o=t[1],c=t[2]):(o=()=>{a?.()},c=[a],t[0]=a,t[1]=o,t[2]=c),(0,y.useEffect)(o,c);let l;t[3]===i?l=t[4]:(l=i(`See your profile`,{shortKey:`see_your_profile`}),t[3]=i,t[4]=l);let d;t[5]!==l||t[6]!==r?(d={text:l,onPress:r},t[5]=l,t[6]=r,t[7]=d):d=t[7];let p;t[8]===i?p=t[9]:(p=i(`Change privacy settings`,{shortKey:`change_privacy_settings`}),t[8]=i,t[9]=p);let m;t[10]===p?m=t[11]:(m={text:p,href:s,target:`_blank`},t[10]=p,t[11]=m);let g;t[12]===i?g=t[13]:(g=i(`You can change your privacy settings to adjust what other people can see and do on your profile.`,{shortKey:`privacy_body`}),t[12]=i,t[13]=g);let _;t[14]===i?_=t[15]:(_=i(`Privacy is important`,{shortKey:`privacy_title`}),t[14]=i,t[15]=_);let x;return t[16]!==d||t[17]!==m||t[18]!==g||t[19]!==_?(x=(0,b.jsx)(n,{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:d,secondaryButton:m,subtitle:g,title:_})}),t[16]=d,t[17]=m,t[18]=g,t[19]=_,t[20]=x):x=t[20],x},()=>{let{dialog:e,settings:t}=p(),{mutate:n}=m(e.mutations.goBack.getOptions()),{mutate:r}=m(t.mutations.setShowProfileOnboardingDialogSetting.getOptions());return{handleClose:()=>{r({settingValue:!1}),n()}}}),S=l(e=>{let n=(0,v.c)(15),{onWillClose:r}=e,a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={edge:`top`,centered:!0},n[0]=a):a=n[0];let o=t(a),s;n[1]===o?s=n[2]:(s=i(o),n[1]=o,n[2]=s);let l=s,u;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(u={default:!0,XSL_20:!1,SM_10:!1},n[3]=u):u=n[3];let{data:d}=c(u),f=d?l:void 0,p=g.useComponent(),m=x.useComponent(),h=!d,y;n[4]!==h||n[5]!==d?(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":d},`[--scrollbar-track-margin-top:var(--modal-spacing)]`),n[4]=h,n[5]=d,n[6]=y):y=n[6];let S;n[7]===m?S=n[8]:(S=(0,b.jsx)(m,{}),n[7]=m,n[8]=S);let C;return n[9]!==p||n[10]!==y||n[11]!==r||n[12]!==f||n[13]!==S?(C=(0,b.jsx)(p,{autoHeight:!0,className:y,onWillClose:r,positionStyle:f,children:S}),n[9]=p,n[10]=y,n[11]=r,n[12]=f,n[13]=S,n[14]=C):C=n[14],C},()=>{let{settings:e}=p(),{mutate:t}=m(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};