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]=`d6e310fc-b070-4f83-9ea0-133274c5bd50`,e._sentryDebugIdIdentifier=`sentry-dbid-d6e310fc-b070-4f83-9ea0-133274c5bd50`)}catch{}import"./rolldown-runtime-nx40z1zs.js";import{$m as e,Ag as t,Hm as n,Yh as r,Zm as i,_r as a,ng as o,xr as s,yr as c}from"./entry.client-mpghtlrl.js";import{n as l}from"./responsive-toolkit-jup4yedr.js";import{n as u}from"./DialogShell-ga7ic6wy.js";var d=t(),f=`/assets/welcome-o23agywh.mp4`,p=o(),m=496,h=290,g=`min-w-component-action-text-standard-min-width flex w-full max-w-[360px] content-center items-center gap-8 px-internal-container-padding-regular py-component-action-text-standard-container-padding-top-and-bottom`,_=a(t=>{let r=(0,d.c)(23),{handleDismiss:i}=t,{t:a}=e(`FirstLookWelcomeDialog`),{locGotIt:o}=n(),u=l(),_;r[0]===a?_=r[1]:(_=a(`Animation showing how to send feedback from the profile menu`,{shortKey:`welcome_video_label`}),r[0]=a,r[1]=_);let v;r[2]!==_||r[3]!==u?(v=(0,p.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center overflow-hidden`,children:(0,p.jsx)(`video`,{"aria-label":_,className:`h-auto max-h-full min-h-0 w-full max-w-[496px] flex-shrink object-contain`,src:f,width:m,height:h,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,onLoadedMetadata:u})}),r[2]=_,r[3]=u,r[4]=v):v=r[4];let y;r[5]===a?y=r[6]:(y=a(`Welcome to the new experience!`,{shortKey:`welcome_title`}),r[5]=a,r[6]=y);let b;r[7]===a?b=r[8]:(b=a(`We're still polishing things. Spot an issue? Send us feedback. You can switch back anytime from your profile menu.`,{shortKey:`welcome_body`}),r[7]=a,r[8]=b);let x;r[9]!==y||r[10]!==b?(x=(0,p.jsx)(c,{title:y,subtitle:b}),r[9]=y,r[10]=b,r[11]=x):x=r[11];let S;r[12]===o?S=r[13]:(S=o(),r[12]=o,r[13]=S);let C;r[14]!==i||r[15]!==S?(C=(0,p.jsx)(s,{as:`button`,size:`large`,onPress:i,className:g,kind:`brand`,children:S}),r[14]=i,r[15]=S,r[16]=C):C=r[16];let w;r[17]!==x||r[18]!==C?(w=(0,p.jsxs)(`div`,{className:`flex flex-shrink-0 flex-col items-center gap-layout-vertical-group-of-items-tight`,children:[x,C]}),r[17]=x,r[18]=C,r[19]=w):w=r[19];let T;return r[20]!==v||r[21]!==w?(T=(0,p.jsxs)(`div`,{className:`p-template-overlays-modal-container-padding-regular flex h-full min-h-0 flex-col items-center self-stretch overflow-hidden`,children:[v,w]}),r[20]=v,r[21]=w,r[22]=T):T=r[22],T},()=>{let{dialog:{mutations:{goBack:e}},settings:t}=i(),{mutate:n}=r(e.getOptions()),{mutate:a}=r(t.mutations.setHasSeenFirstLookWelcomeSetting.getOptions());return{handleDismiss:()=>{a({settingValue:!0}),n()}}}),v=()=>{let e=(0,d.c)(2),t=_.useComponent(),n;return e[0]===t?n=e[1]:(n=(0,p.jsx)(t,{}),e[0]=t,e[1]=n),n},y=()=>{let e=(0,d.c)(3),t=u.useComponent(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,p.jsx)(v,{}),e[0]=n):n=e[0];let r;return e[1]===t?r=e[2]:(r=(0,p.jsx)(t,{autoHeight:!0,className:`modal-floating flex max-h-[90dvh] w-[540px] max-w-[90vw] flex-col bg-container-backgrounds-elevation-background-level-2 bg-cover`,children:n}),e[1]=t,e[2]=r),r};export{y as FirstLookWelcomeDialog,y as default};