import{r as e,j as t}from"./vendor-react-AXa6hZO5.js";import{b as n,e as o,B as s}from"./c6eedc03a-C8LSdtro.js";import{aW as a,aX as r}from"./index-D35RxkWr.js";import{M as i}from"./vendor-intl-BdADXLLt.js";import{ai as c,aj as l,al as d,T as u,an as p}from"./vendor-radix-jAWPQP1f.js";const f={code:"desktop-code-tab",cowork:"desktop-cowork-tab"};function m(e){return"code"===e?"/upgrade?feature=code":"/upgrade?feature=cowork"}function g(){if("undefined"==typeof document)return 0;const e=document.querySelector(".dframe-root"),t=document.querySelector(".dframe-sidebar");return e&&t&&!e.hasAttribute("data-collapsed")?Math.round(t.getBoundingClientRect().right):0}function x({feature:e,copy:n}){return"code"===e?"team"===n?t.jsx(i,{defaultMessage:"Build at a bigger scale",id:"B0171SFQhg"}):t.jsx(i,{defaultMessage:"Ship features, not lines",id:"ye9sGm7rX3"}):"team"===n?t.jsx(i,{defaultMessage:"Hand off complex tasks",id:"89uBcpSCey"}):t.jsx(i,{defaultMessage:"Power through tedious tasks",id:"4ahpF5N/t0"})}function w({feature:e,copy:n}){return"code"===e?"team"===n?t.jsx(i,{defaultMessage:"Run parallel agents\u2014each with a full terminal, editor, and preview\u2014so you can build, review, and correct without ever leaving the session.",id:"ssmKrOHndG"}):t.jsx(i,{defaultMessage:"Run parallel sessions on your real codebase\u2014each with its own terminal, editor, and preview\u2014so you can take a change from idea to merged.",id:"6qZJPYESfX"}):"team"===n?t.jsx(i,{defaultMessage:"Describe what you need and come back to polished work. Claude works across your files and connected tools, on the schedule you set.",id:"axpBl7HA0g"}):t.jsx(i,{defaultMessage:"Cowork lets Claude complete work in the background. Describe what you need and come back to finished work.",id:"ZnwdLP1ZJQ"})}function b({feature:e}){return"code"===e?t.jsx(i,{defaultMessage:"Get Claude Code",id:"BwZb5mni5x"}):t.jsx(i,{defaultMessage:"Get Cowork",id:"Xt+8YWBbF9"})}function h({feature:i,copy:h,variant:k,triggerRef:y,onClose:v}){const j=n(),{track:q}=o(),C=e.useRef(!1),[_]=e.useState(()=>"undefined"==typeof document?null:document.querySelector(".dframe-content")),[M,S]=e.useState(g);e.useEffect(()=>{const e=document.querySelector(".dframe-root"),t=document.querySelector(".dframe-sidebar");if(!e||!t)return;const n=()=>S(g()),o=new ResizeObserver(n);o.observe(t);const s=new MutationObserver(n);return s.observe(e,{attributes:!0,attributeFilter:["data-collapsed"]}),window.addEventListener("resize",n),()=>{o.disconnect(),s.disconnect(),window.removeEventListener("resize",n)}},[]),e.useEffect(()=>{q({event_key:"claudeai.code_cowork_discovery.shown",data:{feature:i,copy:h,variant:k}})},[q,i,h,k]);const F=e.useCallback(()=>{q({event_key:"claudeai.code_cowork_discovery.upgrade_clicked",data:{feature:i,copy:h,variant:k}}),j.push(m(i)),v()},[j,q,i,h,k,v]);return t.jsx(c,{open:!0,modal:!1,onOpenChange:e=>{e||v()},children:t.jsx(l,{container:_??void 0,children:t.jsxs(d,{className:`draggable-none ${_?"absolute":"fixed"} inset-0 z-10 flex flex-col items-center justify-center overflow-y-auto py-6 focus:outline-none`,style:{paddingLeft:M,backgroundColor:"var(--df-bg-page, hsl(var(--bg-100)))"},onInteractOutside:e=>e.preventDefault(),onOpenAutoFocus:e=>{e.preventDefault(),e.target instanceof HTMLElement&&e.target.focus()},onEscapeKeyDown:()=>{C.current=!0},onCloseAutoFocus:e=>{e.preventDefault(),C.current&&document.activeElement===document.body&&y?.current?.focus()},children:[t.jsx("div",{className:"aspect-video w-full max-w-[min(42rem,calc((55vh)*16/9))] overflow-hidden rounded-3xl border border-border-300 shadow-sm",children:t.jsx(a,{asset:r[f[i]],className:"block h-full w-full scale-[1.01] object-cover",autoPlay:!0,loop:!0,muted:!0,playsInline:!0})}),t.jsxs("div",{className:"flex flex-col items-center gap-5 px-6 pb-2 pt-8",children:[t.jsx(u,{asChild:!0,children:t.jsx("h2",{className:"max-w-xl text-center font-serif text-[28px] font-medium leading-[1.3] text-text-000",children:t.jsx(x,{feature:i,copy:h})})}),t.jsx(p,{asChild:!0,children:t.jsx("p",{className:"max-w-xl text-center text-sm text-text-300",children:t.jsx(w,{feature:i,copy:h})})}),t.jsx(s,{variant:"primary",className:"mt-2",onClick:F,children:t.jsx(b,{feature:i})})]})]})})})}
/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
 * Released under the MIT license
 * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
 *-----------------------------------------------------------------------------*/var k={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}};const y=Object.freeze(Object.defineProperty({__proto__:null,conf:k,language:{defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@?[a-zA-Z_]\w*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@keywords":{token:"keyword.$0",next:"@qualified"},"@default":{token:"identifier",next:"@qualified"}}}],{include:"@whitespace"},[/}/,{cases:{"$S2==interpolatedstring":{token:"string.quote",next:"@pop"},"$S2==litinterpstring":{token:"string.quote",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},Symbol.toStringTag,{value:"Module"}));export{h as C,x as D,f as V,w as a,y as c,m as d};
