import{j as e,r as s}from"./vendor-react-DcxrbCFs.js";import{O as r}from"./ca8998c31-6H5Q4Fd2.js";import{f as t,q as i,_ as o,$ as a,P as d}from"./c4b350ac1-BTR_0NaM.js";import{F as c,M as n}from"./vendor-intl-C0z7gCkr.js";import{V as m,S as l}from"./index-BSvCx8kl.js";import{B as j}from"./vendor-ant-cds-BOj-tX6j.js";import"./vendor-zod-Zyr3BDtu.js";import"./vendor-base-ui-dYhdtXSh.js";import"./vendor-radix-BZeqcGXH.js";import"./vendor-zustand-BLLlCrLG.js";import"./vendor-icons-ChFdOXlJ.js";import"./vendor-lodash--OmUGVwS.js";import"./vendor-router-DD4soP8u.js";import"./vendor-query-DdY22HAU.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-motion-HFQQEH7Z.js";import"./vendor-growthbook-Bq25eETo.js";import"./c40b9b8f5-Da-ryo1W.js";import"./c4b43b0ae-760Yu4sg.js";import"./cbf215181-C3oidXTA.js";import"./c009a87a0-DXB61_5D.js";import"./c82022b5f-DK6eLSBd.js";import"./cc61d0d63-kW48LhDF.js";import"./c93f725a0-DejUT30N.js";import"./c85adc124-DNLst9Jo.js";import"./c26148d62-BlLiyl5z.js";import"./c0e977562-BYJ_xmcc.js";import"./c9f4bb49e-95JsAiB2.js";import"./cc2dfdfd3-C4WlGtCV.js";import"./c6a992d55-Bg3ygTzd.js";import"./c9e81e7b9-l4IaiKjm.js";import"./c5669b8e4-B184INBD.js";import"./cf57f6351-ChXug4Hw.js";import"./c0632795f-CL3ffsDQ.js";import"./cc2e285cb-B9NgZcZ2.js";import"./c1f96d614-DAkctE43.js";import"./cac5c74b6-D2snV6_H.js";import"./c627fcdb6-Cc-7gsFT.js";import"./c590fc197--sY4eEEU.js";import"./cbaad2c48-DRCBJU3Q.js";import"./vendor-virtual-sigx4wjL.js";import"./c1d7d8319-yi8QLBnY.js";import"./cdd5b9598-Bh6YyBPI.js";import"./c393cb7f5-JWhvNgWh.js";import"./c4526f334-Ddtc7W1k.js";import"./c8c7c4e8f-DoGfpMPz.js";import"./c1d96b207-D0fAg0jr.js";import"./c9bba154c-DdQs_cXE.js";const p=s.memo(({onDismiss:s,onAction:r})=>{const{data:t,isLoading:i}=o("/api/account/standing",{queryKey:[a]});if(i||!t)return null;const d=t.reinstatement_credit_cents??0;return d<=0?null:e.jsx(l,{onDismiss:s,onAction:r,maxWidth:560,modalClassName:"!p-0",render:({handleDismiss:s,handleAction:r})=>e.jsx(x,{standing:t,creditCents:d,handleDismiss:s,handleAction:r})})});function x({standing:s,creditCents:r,handleDismiss:o,handleAction:a}){const{activeOrganization:d}=t(),l=(d?.capabilities??[]).some(e=>["claude_pro","claude_max"].includes(e)),p=e.jsx(c,{value:r/100,style:"currency",currency:s.reinstatement_credit_currency??"USD",minimumFractionDigits:0,maximumFractionDigits:0}),x=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(m,{className:"font-heading text-text-000 mb-4",children:e.jsx(n,{defaultMessage:"Your account is back, with {credit} on us",id:"tMa1K2yQ90",values:{credit:p}})}),e.jsx("p",{className:"text-text-200 mb-3 text-sm",children:e.jsx(n,{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(n,{defaultMessage:"We've credited {credit} to your next billing cycle on us.",id:"BU+rc742ra",values:{credit:p}})}),e.jsx("p",{className:"text-text-400 mt-auto pt-4 text-xs",children:e.jsx(n,{defaultMessage:"Anthropic team",id:"GAIsvleakL"})})]}),e.jsx(f,{})]}),e.jsx("div",{className:"border-border-300 flex justify-center gap-3 border-t p-5",children:l?e.jsx(j,{variant:"primary",onClick:()=>{o()},children:e.jsx(n,{defaultMessage:"Got it",id:"NYTGIbSNz5"})}):e.jsxs(e.Fragment,{children:[e.jsx(j,{variant:"secondary",onClick:()=>{o()},children:e.jsx(n,{defaultMessage:"Continue for free",id:"V/2dOOWlyn"})}),e.jsx(j,{variant:"primary",onClick:()=>{a({cta:"restart"}),x.push("/upgrade?from=appeals_restored")},children:e.jsx(n,{defaultMessage:"Restart with {credit} off",id:"ZD2tIbi7L+",values:{credit:p}})})]})})]})}function f(){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"})]})]})}p.displayName="AppealsRestoredSpotlight";export{x as AppealsRestoredContent,p as AppealsRestoredSpotlight};
