import{j as e,r as s}from"./vendor-react-Dp9pL_Wn.js";import{a3 as t,w as n,u9 as i,h as o,b1 as a,I as r,m9 as l,aG as c,M as d,k as m}from"./c6eedc03a-CsEFTfjy.js";import{u,M as p}from"./vendor-intl-D2wGIp4M.js";import{D as g,B as f}from"./vendor-ant-cds-bBedrtIN.js";import{K as b}from"./index-CBEPphRm.js";function x({isOpen:s,onClose:t,title:n,children:i,actions:o,modalSize:a="md",className:r,headingVariant:l="default",hasCloseButton:c=!1,icon:d}){const m="heading"===l;return e.jsx(g.Root,{open:s,onOpenChange:e=>!e&&t(),children:e.jsxs(g.Popup,{size:{sm:"sm",md:"sm",lg:"md",xl:"lg"}[a],className:r,children:[d?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{children:d}),c&&e.jsx(g.CloseButton,{className:"-mr-1 -mt-1 self-start"})]}),e.jsx(g.Title,{className:"mt-4 "+(m?"font-serif text-2xl font-medium":"font-ui text-xl font-medium"),children:n})]}):e.jsxs("div",{className:"flex items-center justify-between gap-1",children:[e.jsx(g.Title,{className:m?"font-serif text-2xl font-medium":"font-ui text-xl font-medium",style:m?void 0:{transform:"translateY(-1px)"},children:n}),c&&e.jsx(g.CloseButton,{className:"-mr-1 -mt-1 self-start"})]}),i&&e.jsx("div",{className:o?"mb-6 mt-3":"mt-3",children:i}),o&&e.jsx(g.Footer,{children:o})]})})}function h({resumeDate:c,isOpen:d,onClose:m,onSuccess:g,source:b}){const{addSuccess:h}=t(),k=n(),v=u(),{mutate:w,isPending:j}=i({onSuccess:()=>{k.track({event_key:"claudeai.subscription.resume_modal.succeeded",source:b}),h(v.formatMessage({defaultMessage:"Subscription renewed",id:"samhQZ9Nkv"})),m(),g?.()},onError:()=>{k.track({event_key:"claudeai.subscription.resume_modal.failed",source:b})}}),y=s.useRef(!1);s.useEffect(()=>{d?y.current||(y.current=!0,k.track({event_key:"claudeai.subscription.resume_modal.shown",source:b})):y.current=!1},[d,k,b]);const{activeOrganization:E}=o(),N=function({hasRaven:s,isEnterprise:t,hasMaxPlan:n,resumeDate:i,organizationName:o}){return s?e.jsx(p,{defaultMessage:"You are about to renew the {planName} for {organizationName}. This will restore full Claude access to all members in your plan.",id:"vf27F8zZt9",values:{planName:t?"Enterprise plan":"Team plan",organizationName:o}}):n?i?e.jsx(p,{defaultMessage:"You will keep access to Claude Max and your next charge will be processed on {resumeDate}.",id:"k/M5MB6alw",values:{resumeDate:i}}):e.jsx(p,{defaultMessage:"You will keep access to Claude Max.",id:"QT3I5DF5bv"}):i?e.jsx(p,{defaultMessage:"You will keep access to Claude Pro and your next charge will be processed on {resumeDate}.",id:"oG/X72WR2w",values:{resumeDate:i}}):e.jsx(p,{defaultMessage:"You will keep access to Claude Pro.",id:"Q+vrGka0/y"})}({hasRaven:a(),isEnterprise:r(),hasMaxPlan:l(),resumeDate:c,organizationName:E?.name});return e.jsx(x,{isOpen:d,onClose:m,title:v.formatMessage({defaultMessage:"Renew subscription",id:"FoHB5ctPGM"}),actions:e.jsxs(e.Fragment,{children:[e.jsx(f,{type:"button",variant:"secondary",disabled:j,onClick:()=>m(),children:e.jsx(p,{defaultMessage:"Go back",id:"orvpWhO3rI"})}),e.jsx(f,{type:"submit",variant:"primary",busy:j,onClick:()=>{k.track({event_key:"claudeai.subscription.resume_modal.confirm_clicked",source:b}),w()},children:e.jsx(p,{defaultMessage:"Renew subscription",id:"FoHB5ctPGM"})})]}),children:e.jsx("p",{children:N})})}const k=Object.freeze(Object.defineProperty({__proto__:null,ResumeModal:h},Symbol.toStringTag,{value:"Module"}));function v(){const e=c(),s=r(),t=e||s,{data:n}=b(!t),i=n?.organizations.find(e=>!e.has_pending_request),o=(n?.organizations.length??0)>0;return{shouldRender:d("apps_join_discoverable_org_banner",!t&&o),firstUnrequestedOrg:i}}function w(){const e=m(),[t,n]=s.useState(null);return s.useEffect(()=>{const e=window.location.hash.slice(1);n(e)},[e]),t}function j({persistedMode:s}){return"auto"===s?e.jsx(p,{defaultMessage:"Automatically approve",id:"3AfgKEM6TG"}):e.jsx(p,{defaultMessage:"Skip all approvals",id:"LQiIjZex33"})}
/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
 * Released under the MIT license
 * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
 *-----------------------------------------------------------------------------*/var y={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","--\x3e","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}};const E=Object.freeze(Object.defineProperty({__proto__:null,conf:{comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},language:y},Symbol.toStringTag,{value:"Module"}));
/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
 * Released under the MIT license
 * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
 *-----------------------------------------------------------------------------*/var N={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}};const _=Object.freeze(Object.defineProperty({__proto__:null,conf:N,language:{defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[["non-sealed","keyword.non-sealed"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}},Symbol.toStringTag,{value:"Module"}));export{x as C,h as R,j as U,v as a,k as b,E as c,_ as j,w as u};
