import{Tu as e,bi as s}from"./shared-0-C4kdVF7Y.js";import{ki as a}from"./vendor-frame-CwiylG4Y.js";import{Lf as t,Qf as l,hs as d}from"./shared-1-3-6x7RKF.js";import{Ct as i,Dt as r,Et as o,Ot as n,St as c,Tt as m,nn as x}from"./vendor-all-2-BJdkbLSj.js";import{X as f}from"./shared-frame-DbQbH4Yr.js";import{n as u}from"./vendor-all-6-BsAVZMtu.js";import{t as h}from"./c6e66d139-ddVxqBkZ.js";var p=a(),j=[{key:"cowork",href:"https://claude.com/product/cowork",title:(0,p.jsx)(x,{defaultMessage:"Cowork",id:"xi2NxiZh10"}),subtitle:(0,p.jsx)(x,{defaultMessage:"Hand off tasks to Claude so you can focus on other work.",id:"BamLJxwxTM"})},{key:"claude_code",href:"https://claude.com/product/claude-code",title:(0,p.jsx)(x,{defaultMessage:"Claude Code",id:"vKMj39KhGw"}),subtitle:(0,p.jsx)(x,{defaultMessage:"Build, debug, and ship by describing what you need.",id:"mUV32KPrRR"})},{key:"office",href:"https://claude.com/claude-in-excel",title:(0,p.jsx)(x,{defaultMessage:"Microsoft Office",id:"lnSx2ahO9a"}),subtitle:(0,p.jsx)(x,{defaultMessage:"Analyze data and build slides with Claude alongside you.",id:"7NDZA/bFon"})},{key:"chrome",href:"https://claude.com/chrome",title:(0,p.jsx)(x,{defaultMessage:"Chrome",id:"sS42/B0p76"}),subtitle:(0,p.jsx)(x,{defaultMessage:"Claude navigates, clicks buttons, and fills forms in your browser.",id:"imJkk+xTs0"})}];function g({onClose:a}){const g=e(),v=s(),{resolvedMode:b}=t(),k="dark"===b?"dark":"light",_=d()||1,y=f(40),w=()=>{v.track({event_key:"apps.project_limit_modal_dismissed",variant:"visual"}),a()};return(0,p.jsx)(r,{open:!0,onOpenChange:w,children:(0,p.jsx)(o,{children:(0,p.jsx)(m,{className:"draggable-none fixed inset-0 bg-always-black/50 backdrop-blur-[2px] flex items-center justify-center p-4 data-[state=open]:animate-[fade_250ms_ease-in_forwards] data-[state=closed]:animate-[fade_125ms_ease-out_reverse_forwards]",style:{zIndex:y},children:(0,p.jsxs)(i,{"aria-describedby":void 0,className:"relative w-full max-w-[460px] md:max-w-4xl bg-bg-000 rounded-2xl shadow-xl overflow-hidden\n                       focus:outline-none\n                       data-[state=open]:animate-[zoom_250ms_ease-in_forwards]\n                       data-[state=closed]:animate-[zoom_125ms_ease-out_reverse_forwards]",style:{zIndex:y},children:[(0,p.jsx)("div",{className:"absolute top-4 right-4",children:(0,p.jsx)(c,{asChild:!0,children:(0,p.jsx)(l,{variant:"ghost",size:"icon_sm",className:"text-text-400 hover:text-text-200","aria-label":"Close",children:(0,p.jsx)(u,{size:20,weight:"regular"})})})}),(0,p.jsxs)("div",{className:"p-6 flex flex-col gap-6",children:[(0,p.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,p.jsx)(n,{asChild:!0,className:"font-title",children:(0,p.jsx)("h1",{children:(0,p.jsx)(x,{defaultMessage:"Upgrade for unlimited projects",id:"YU19nSq9tC"})})}),(0,p.jsx)("p",{className:"text-text-300 font-base",children:(0,p.jsx)(x,{defaultMessage:"Free plans are limited to {count, plural, one {one project} other {# projects}}. Upgrade to create as many as you need.",id:"2fisBu66YH",values:{count:_}})}),(0,p.jsx)("p",{className:"text-text-300 font-base",children:(0,p.jsx)(x,{defaultMessage:"Plus, get more ways to use Claude:",id:"VfAnd0eFYk"})})]}),(0,p.jsxs)("div",{className:"relative",children:[(0,p.jsx)("div",{className:"flex flex-col md:grid md:grid-cols-4 gap-4 px-2 -mx-2 max-h-[40vh] md:max-h-none overflow-y-auto md:overflow-visible",children:j.map(e=>(0,p.jsx)(h,{title:e.title,subtitle:e.subtitle,href:e.href,illustrationSrc:`/images/feature-preview/message-limit/${e.key}_${k}.svg`,onClick:()=>(e=>{v.track({event_key:"apps.project_limit_tile_clicked",tile:e})})(e.key)},e.key))}),(0,p.jsx)("div",{className:"md:hidden pointer-events-none absolute -inset-x-2 bottom-0 h-10 bg-gradient-to-t from-bg-000 to-transparent"})]}),(0,p.jsxs)("div",{className:"flex flex-col-reverse md:flex-row md:justify-end gap-2",children:[(0,p.jsx)(l,{variant:"secondary",onClick:w,className:"max-md:border-0 max-md:bg-transparent max-md:shadow-none",children:(0,p.jsx)(x,{defaultMessage:"Not now",id:"dUCA4Khx0S"})}),(0,p.jsx)(l,{variant:"primary",onClick:()=>{v.track({event_key:"apps.project_limit_modal_upgrade_clicked",variant:"visual"}),a(),g.push("/upgrade?from=project_limit")},children:(0,p.jsx)(x,{defaultMessage:"Explore plans",id:"BB6lTqQOLY"})})]})]})]})})})})}export{g as ProjectLimitUpsellModal};