import{r as e,j as o}from"./vendor-react-Dp9pL_Wn.js";import{w as t,o as a,q as s,ao as r,b as i,$ as n,ap as d}from"./c6eedc03a-CsEFTfjy.js";import{aw as l,T as m,aG as p,S as c}from"./index-DhMXk6CR.js";import{S as g}from"./c755b7060-HuCm6IIc.js";import{u}from"./vendor-intl-D2wGIp4M.js";import{e as h}from"./vendor-ant-cds-bBedrtIN.js";import"./vendor-base-ui-DNypCIlh.js";import"./vendor-radix-Ch96tRrt.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-zod-0xcuG3aM.js";import"./vendor-zustand-BeF8W8xk.js";import"./vendor-icons-CokWnmlw.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-BwvgHhJ1.js";import"./vendor-zod-v3-CZy0YPWu.js";import"./vendor-motion-EDlUw66k.js";import"./vendor-luxon-CZxT8ieM.js";import"./vendor-growthbook-C66YtMMX.js";import"./vendor-infra-DayZK7Ds.js";import"./caf7c7e06-DJYXCm3T.js";import"./c5669b8e4-DFSq88jr.js";import"./c5f4e1303-CiyIFgnl.js";import"./cbaad2c48-DaP34LG2.js";import"./vendor-virtual-DRz8lJfQ.js";import"./cc2e285cb-XbqxPJb1.js";const f=e.memo(({handleDismiss:i,handleAction:n,isDesktop:d,hasPaidAccount:c,isMsix:f})=>{const w=u(),k=t(),v=a(),j=r(),x=l(),b=d?f:x.routesInApp,M=d&&c?0:1,_="dark"===h(),{downloadAndOpenModal:C,modal:y}=m("cowork_windows_spotlight",{onClose:()=>{n({actionName:"web",variant:M})}}),A=function(o){const t=u();return e.useMemo(()=>1===o?{darkImage:"/images/spotlights/cowork_usecase_dark.png",lightImage:"/images/spotlights/cowork_usecase_light.png",title:t.formatMessage({defaultMessage:"Run multiple tasks at once with Cowork",id:"EqZ/pBYnmN"}),bodyText:t.formatMessage({defaultMessage:"With Cowork, Claude can tackle several complex tasks at the same time. Organize files while drafting a report while crunching data.\n\nCheck in when you want or just let Claude cook.",id:"4Id8KvhPLQ"})}:{darkImage:"/images/spotlights/cowork_direction_dark.png",lightImage:"/images/spotlights/cowork_direction_light.png",title:t.formatMessage({defaultMessage:"You set the direction. Cowork gets it done.",id:"URCoGtVGuq"}),bodyText:t.formatMessage({defaultMessage:"Tell Claude what you need so you can move on to whatever\u2019s next. It\u2019ll organize files, draft reports, and crunch data\u2014all at the same time.\n\nCheck in when you want or just let Claude run.",id:"uyXpLJqkUR"})},[t,o])}(M),D=_?A.darkImage:A.lightImage,T=e.useMemo(()=>{const e=b?c?w.formatMessage({defaultMessage:"Try Cowork",id:"o2vHDAOpDQ"}):w.formatMessage({defaultMessage:"Upgrade to try",id:"AHF8t0j/O1"}):d?w.formatMessage({defaultMessage:"Reinstall app",id:"21lgr39Bvb"}):w.formatMessage({defaultMessage:"Download for Windows",id:"B1kbGgSfbf"}),o=w.formatMessage({defaultMessage:"Later",id:"uQDRsYlg+S"}),t=c?void 0:w.formatMessage({defaultMessage:"Available for Pro and Max plans",id:"cxWH/CSH5V"});return{title:A.title,bodyText:A.bodyText,bulletPoints:[],ctaCaption:t,ctaText:e,ctaHref:"",dismissText:o,imageUrl:D}},[w,b,d,c,D,A,j]),I=e.useCallback(()=>{if(b){const e=c?"/task/new":"/upgrade?feature=cowork&hide_free=true&returnTo=/task/new";return v.push(e),void n({actionName:"desktop",variant:M})}if(d)return k.track({event_key:"apps.download_button_clicked",platform:"win-x64",source:"cowork_windows_spotlight"}),s({href:p("win-x64"),webBehavior:"new-tab",desktopBehavior:"open-in-browser"}),void n({actionName:"web",variant:M});C("win-x64")},[b,d,c,v,n,k,M,C]);return o.jsxs(o.Fragment,{children:[o.jsx(g,{content:T,onCtaClick:I,onDismiss:i,classNames:{contentPanel:"p-6 min-h-[500px]",bulletList:"space-y-1",rightPanel:"bg-bg-100 [background-image:linear-gradient(to_right,hsl(var(--bg-200))_1px,transparent_1px),linear-gradient(to_bottom,hsl(var(--bg-200))_1px,transparent_1px)] [background-size:24px_24px]",rightPanelContainer:"overflow-hidden min-h-[533px]",closeButton:"top-4 right-6",ctaContainer:"mt-4"}}),y]})});f.displayName="CoworkWindowsSpotlightContent";const w=e.memo(({onDismiss:e,onAction:t})=>{const a=i(),s=n(),r=d(),l=!0===r?.is_msix;return o.jsx(c,{modalSize:"xl",modalClassName:"!p-0 min-h-[500px]",onDismiss:e,onAction:t,render:({handleDismiss:e,handleAction:t})=>o.jsx(f,{handleDismiss:e,handleAction:t,isDesktop:a,hasPaidAccount:s,isMsix:l})})});w.displayName="CoworkWindowsSpotlight";export{w as CoworkWindowsSpotlight};
