import{ru as e}from"./shared-0-C4kdVF7Y.js";import{ki as s}from"./vendor-frame-CwiylG4Y.js";import{Qf as a}from"./shared-1-3-6x7RKF.js";import{d}from"./shared-17-YFu3JFq7.js";import{$t as t,nn as r}from"./vendor-all-2-BJdkbLSj.js";import{J as i,X as l}from"./shared-frame-DbQbH4Yr.js";import{Qi as o}from"./shared-4-6CEyRAHb.js";import{pn as n}from"./index-C9LAU4f-.js";var m=s(),x=t({title:{id:"qdkdWxX+kx",defaultMessage:"Do more in Claude Code"},body:{id:"TEDYbOzyTJ",defaultMessage:"Get faster replies and automated reviews for your team by buying usage credits."},bodyLegacy:{id:"TElCfNto60",defaultMessage:"Get faster replies and automated reviews for your team by buying extra usage."},bodySsEnt:{id:"TfXqNNb2wU",defaultMessage:"Turn on faster replies and automated reviews for your team."},addCredits:{id:"QMCNtxwHPh",defaultMessage:"Add usage credits"},addCreditsSsEnt:{id:"GeCGPh4LnO",defaultMessage:"Set up now"},later:{id:"2nz+k9xHZw",defaultMessage:"Maybe later"}});function c({href:s,onAddCredits:d,onDismiss:t}){const n=o(),c=e(),f=c?x.bodySsEnt:n?x.bodyLegacy:x.body,p=c?x.addCreditsSsEnt:x.addCredits;return(0,m.jsx)("div",{className:"fixed bottom-10 right-10 w-[232px] overflow-hidden rounded-xl border-[0.5px] border-border-200 bg-bg-000 shadow-[0_40px_80px_0_hsl(var(--always-black)/15%)]",style:{zIndex:l(50)},"data-testid":"fund-unlock-upsell-card",children:(0,m.jsxs)(i,{children:[(0,m.jsx)("div",{className:"p-2",children:(0,m.jsxs)("div",{className:"relative flex h-[120px] items-center justify-center overflow-hidden rounded-md bg-accent-brand",children:[(0,m.jsx)("img",{loading:"lazy",src:"/images/spotlights/fund-unlock/intersect.svg",alt:"",width:201,height:134,"aria-hidden":!0,className:"pointer-events-none absolute left-[-6px] top-[-4px] h-[134px] w-[201px]"}),(0,m.jsx)("img",{loading:"lazy",src:"/images/spotlights/fund-unlock/speedometer.svg",alt:"",width:75,height:55,"aria-hidden":!0,className:"relative h-[55px] w-[75px]"})]})}),(0,m.jsxs)("div",{className:"flex flex-col gap-3 pb-2",children:[(0,m.jsxs)("div",{className:"flex flex-col gap-1 px-3",children:[(0,m.jsx)("p",{className:"text-sm font-medium text-text-100",children:(0,m.jsx)(r,{...x.title})}),(0,m.jsx)("p",{className:"text-sm text-text-400",children:(0,m.jsx)(r,{...f})})]}),(0,m.jsxs)("div",{className:"flex flex-col gap-2.5 px-2",children:[(0,m.jsx)(a,{variant:"primary",size:"sm",className:"w-full",href:s,onClick:d,children:(0,m.jsx)(r,{...p})}),(0,m.jsx)(a,{variant:"secondary",size:"sm",className:"w-full",onClick:t,children:(0,m.jsx)(r,{...x.later})})]})]})]})})}function f({enabled:e=!0,onDismiss:s,onAction:a}){return e?(0,m.jsx)(c,{href:n,onAddCredits:()=>a(),onDismiss:s}):null}export{f as FundUnlockNudge};