import{o as a}from"./rolldown-runtime-iuO8RvI4.js";import{Dd as e,Ll as s,Tu as o,av as t,bi as n}from"./shared-0-C4kdVF7Y.js";import{Mi as r,ki as i}from"./vendor-frame-CwiylG4Y.js";import{iv as l,nv as d,rv as u}from"./shared-1-3-6x7RKF.js";import{ho as c,io as p,vo as m,xo as f}from"./shared-6-Cf_fMhRZ.js";import{$t as k}from"./vendor-all-2-BJdkbLSj.js";import{n as v}from"./c8b5ab6fc-D_uxD0d1.js";var g=a(r()),b=i(),h=k({heading:{defaultMessage:"Now get the most out of Claude on your desktop",id:"8xb1JWzQOI"}});function j(){const a=o(),r=n(),i=t(),k=e(),j=d(),_=l(),w=u(),x=p(),y=function(a){const[e,s]=(0,g.useState)(null);return(0,g.useEffect)(()=>{a&&f().then(s)},[a]),a?e:null}(_),{activeOrganization:C}=s(),O=C?.capabilities.includes("externally_managed"),z=!k&&!w&&!O&&x&&(j||_),D=!i||_&&null===y;(0,g.useEffect)(()=>{D||z||a.replace("/new")},[D,z,a]);const E=j?"mac":"windows",L=c(j?"mac":y??"win-x64"),M=(0,g.useCallback)(()=>{r.track({event_key:"apps.download_button_clicked",platform:E,source:"desktop_landing_post_upgrade"}),m(L)},[r,E,L]),I=(0,g.useCallback)(()=>{r.track({event_key:"claudeai.desktop_landing.skipped",platform:E}),a.push("/new")},[r,E,a]);return D||!z?(0,b.jsx)("div",{role:"status","aria-busy":"true","aria-label":"Loading"}):(0,b.jsx)(v,{desktopPlatform:E,onDownload:M,onContinue:I,headingOverride:h.heading,surface:"desktop_landing"})}export{j as default};