import{j as e,r as s}from"./vendor-react-Dp9pL_Wn.js";import{O as r}from"./ca8998c31-P9hjFFxa.js";import{g as t,n as i,W as o,X as a,P as d}from"./c4b350ac1-KLFM4jkb.js";import{F as c,M as n}from"./vendor-intl-BDR1NhN_.js";import{Q as m,S as l}from"./index-CSvjYuL_.js";import{B as j}from"./vendor-ant-cds-DvTmcYA1.js";import"./vendor-zod-DIcz3Rbr.js";import"./vendor-base-ui-CdQU4JQh.js";import"./vendor-radix-D3USJ4lr.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-zustand-CI9omAwJ.js";import"./vendor-icons-BBStP_8q.js";import"./vendor-lodash-CIro4mst.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-DgCRID2b.js";import"./vendor-motion-D7Z1qgzM.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-growthbook-C66YtMMX.js";import"./c40b9b8f5-CcFpJKg-.js";import"./c393cb7f5-HUvLXarC.js";import"./cbf215181-Bsdk_iVX.js";import"./c82022b5f-v1T93ITZ.js";import"./c627fcdb6-v1yU0Z6G.js";import"./c85adc124-DaXgLnIc.js";import"./c4b43b0ae-CSVSIKUp.js";import"./ce61829b3-0upsP-GZ.js";import"./c0632795f-DFHAnV4h.js";import"./c1f96d614-CNpmgQ8l.js";import"./c2591c98b-B0JYd9Jp.js";import"./c9bba154c-Bw59591Y.js";import"./c2a658aad-Db1B4w67.js";import"./c0e977562-B_Zbx8nl.js";import"./c9f4bb49e-CrIVzJHt.js";import"./cc2dfdfd3-BrnuP9el.js";import"./c6a992d55-BgxzHrh5.js";import"./c9e81e7b9-CQ79hI5E.js";import"./cdd5b9598-DXIbe6ku.js";import"./cf57f6351-BOW8NPIt.js";import"./c5669b8e4-B4xCGVen.js";import"./c93f725a0-BmtJGQGk.js";import"./c26148d62-Db4ihZzY.js";import"./vendor-virtual-DRz8lJfQ.js";import"./c3a36db6f-BVEOyI7C.js";import"./cc2e285cb-ERZJd0nP.js";import"./c4526f334-DmmtJSHf.js";import"./cb59e2e62-DU7B8aps.js";import"./c009a87a0-BdYPxNaw.js";import"./c8c15d455-BRkvbsON.js";import"./c0f96d0e0-DGUPaEDS.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};
