import{j as e,r as s}from"./vendor-react-Dp9pL_Wn.js";import{O as r}from"./caf7c7e06-DJYXCm3T.js";import{h as t,o as i,Z as a,_ as o,P as d}from"./c6eedc03a-CsEFTfjy.js";import{F as n,M as c}from"./vendor-intl-D2wGIp4M.js";import{ab as l,S as m}from"./index-CBEPphRm.js";import{B as x}from"./vendor-ant-cds-bBedrtIN.js";import"./vendor-zod-0xcuG3aM.js";import"./vendor-base-ui-DNypCIlh.js";import"./vendor-radix-Ch96tRrt.js";import"./vendor-base-5_f7mmWg.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"./c5669b8e4-DFSq88jr.js";import"./c5f4e1303-CiyIFgnl.js";import"./cbaad2c48-DaP34LG2.js";import"./vendor-virtual-DRz8lJfQ.js";const j=s.memo(({onDismiss:s,onAction:r})=>{const{data:t,isLoading:i}=a("/api/account/standing",{queryKey:[o]});if(i||!t)return null;const d=t.reinstatement_credit_cents??0;return d<=0?null:e.jsx(m,{onDismiss:s,onAction:r,maxWidth:560,modalClassName:"!p-0",render:({handleDismiss:s,handleAction:r})=>e.jsx(p,{standing:t,creditCents:d,handleDismiss:s,handleAction:r})})});function p({standing:s,creditCents:r,handleDismiss:a,handleAction:o}){const{activeOrganization:d}=t(),m=(d?.capabilities??[]).some(e=>["claude_pro","claude_max"].includes(e)),j=e.jsx(n,{value:r/100,style:"currency",currency:s.reinstatement_credit_currency??"USD",minimumFractionDigits:0,maximumFractionDigits:0}),p=i();return e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"flex flex-col overflow-hidden sm:flex-row",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col p-7",children:[e.jsx(l,{className:"font-heading text-text-000 mb-4",children:e.jsx(c,{defaultMessage:"Your account is back, with {credit} on us",id:"tMa1K2yQ90",values:{credit:j}})}),e.jsx("p",{className:"text-text-200 mb-3 text-sm",children:e.jsx(c,{defaultMessage:"We reviewed your account and removed the hold. Thanks for your patience, and sorry for the time it cost you.",id:"fy+lnSL5QY"})}),e.jsx("p",{className:"text-text-200 mb-3 text-sm",children:e.jsx(c,{defaultMessage:"We\u2019ve credited {credit} to your next billing cycle on us.",id:"twMJa6l3Lh",values:{credit:j}})}),e.jsx("p",{className:"text-text-400 mt-auto pt-4 text-xs",children:e.jsx(c,{defaultMessage:"Anthropic team",id:"GAIsvleakL"})})]}),e.jsx(u,{})]}),e.jsx("div",{className:"border-border-300 flex justify-center gap-3 border-t p-5",children:m?e.jsx(x,{variant:"primary",onClick:()=>{a()},children:e.jsx(c,{defaultMessage:"Got it",id:"NYTGIbSNz5"})}):e.jsxs(e.Fragment,{children:[e.jsx(x,{variant:"secondary",onClick:()=>{a()},children:e.jsx(c,{defaultMessage:"Continue for free",id:"V/2dOOWlyn"})}),e.jsx(x,{variant:"primary",onClick:()=>{o({cta:"restart"}),p.push("/upgrade?from=appeals_restored")},children:e.jsx(c,{defaultMessage:"Restart with {credit} off",id:"ZD2tIbi7L+",values:{credit:j}})})]})})]})}function u(){return e.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:[e.jsx(d,{asset:r,size:"md"}),e.jsxs("div",{className:"mt-auto flex w-full flex-col gap-3",children:[e.jsx("div",{className:"border-border-300 border-t"}),e.jsx("div",{className:"border-border-300 border-t"}),e.jsx("div",{className:"border-border-300 border-t"})]})]})}j.displayName="AppealsRestoredSpotlight";export{p as AppealsRestoredContent,j as AppealsRestoredSpotlight};
