import{r as e,j as s,F as t,T as r,M as a}from"./vendor--leCAzSo.js";import{p as i,A as d,a as n,B as l}from"./ca9c256b9-7brFE8T2.js";import{S as o}from"./index-DZuQva-j.js";import"./c723dd3dd-58n3MxoB.js";import"./c57c2877c-dpgWZiV5.js";import"./cb5cdda9a-CSfiLIa6.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";const c={claude_pro:"Pro",claude_max:"Max",claude_team:"Team",claude_enterprise:"Enterprise"},x=e.memo(({onDismiss:e,onAction:t})=>{const{data:r,isLoading:a}=i("/api/account/standing",{queryKey:[d]});if(a||!r)return null;const n=r.reinstatement_credit_cents??0;return n<=0?null:s.jsx(o,{onDismiss:e,onAction:t,maxWidth:560,modalClassName:"!p-0",render:({handleDismiss:e,handleAction:t})=>s.jsx(m,{standing:r,creditCents:n,handleDismiss:e,handleAction:t})})});function m({standing:e,creditCents:i,handleDismiss:d,handleAction:o}){const x=c[e.prev_plan_tier??""],m=!!x,h=s.jsx(t,{value:i/100,style:"currency",currency:e.reinstatement_credit_currency??"USD",minimumFractionDigits:0,maximumFractionDigits:0}),p=n();return s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("div",{className:"flex flex-col overflow-hidden sm:flex-row",children:[s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col p-7",children:[s.jsx(r,{asChild:!0,children:s.jsx("h1",{className:"font-heading text-text-000 mb-4 text-2xl",children:s.jsx(a,{defaultMessage:"Your account is back, with {credit} on us",id:"tMa1K2yQ90",values:{credit:h}})})}),s.jsx("p",{className:"text-text-200 mb-3 text-sm",children:s.jsx(a,{defaultMessage:"We reviewed your account and lifted the hold. Thanks for your patience, and sorry for the time it cost you.",id:"6ADOslBl20"})}),s.jsx("p",{className:"text-text-200 mb-3 text-sm",children:m?s.jsx(a,{defaultMessage:"Your {plan} plan was canceled and refunded while your account was on hold. We've credited {credit} to your account so you can restart your plan.",id:"WKTt4OYLXJ",values:{plan:x,credit:h}}):s.jsx(a,{defaultMessage:"Here's {credit} off your first month of a paid plan, whenever you're ready.",id:"pxttCSSeAj",values:{credit:h}})}),s.jsx("p",{className:"text-text-400 mt-auto pt-4 text-xs",children:s.jsx(a,{defaultMessage:"Anthropic team",id:"GAIsvleakL"})})]}),s.jsx(u,{})]}),s.jsxs("div",{className:"border-border-300 flex justify-center gap-3 border-t p-5",children:[s.jsx(l,{variant:"secondary",onClick:()=>{d()},children:s.jsx(a,{defaultMessage:"Continue for free",id:"V/2dOOWlyn"})}),s.jsx(l,{variant:"primary",onClick:()=>{o({cta:m?"restart":"claim"}),p.push("/upgrade?from=appeals_restored")},children:m?s.jsx(a,{defaultMessage:"Restart with {credit} off",id:"ZD2tIbi7L+",values:{credit:h}}):s.jsx(a,{defaultMessage:"Claim your {credit}",id:"v6zzf5Fu/E",values:{credit:h}})})]})]})}function u(){return s.jsxs("div",{"aria-hidden":"true",className:"border-border-300 hidden w-[180px] shrink-0 flex-col items-end gap-6 border-l p-7 sm:flex",children:[s.jsx(h,{}),s.jsxs("div",{className:"mt-auto flex w-full flex-col gap-3",children:[s.jsx("div",{className:"border-border-300 border-t"}),s.jsx("div",{className:"border-border-300 border-t"}),s.jsx("div",{className:"border-border-300 border-t"})]})]})}function h(){return s.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"text-text-000",children:[s.jsx("rect",{x:"4",y:"4",width:"72",height:"72",strokeDasharray:"2 3",className:"fill-bg-200"}),s.jsx("rect",{x:"10",y:"10",width:"60",height:"60",className:"fill-bg-000"}),s.jsx("rect",{x:"28",y:"38",width:"24",height:"20"}),s.jsx("path",{d:"M28 38 H52 M40 38 V58"}),s.jsx("path",{d:"M40 38 Q34 30 30 34 Q30 38 40 38 Q50 38 50 34 Q46 30 40 38"}),s.jsx("path",{d:"M26 36 L20 42 L24 46 L30 40 Z M22 44 L22 44"})]})}x.displayName="AppealsRestoredSpotlight";export{x as AppealsRestoredSpotlight};
