import{j as e}from"./vendor-react-DcxrbCFs.js";import{c$ as t,d0 as o}from"./c4b350ac1-BTR_0NaM.js";import{M as a}from"./vendor-intl-C0z7gCkr.js";import{u as n}from"./cc7a628cb-Cz4IqOwA.js";import{D as r,B as s}from"./vendor-ant-cds-BOj-tX6j.js";function i(i){const{isOpen:l,onClose:u,seatTier:c,seatsNeeded:d,requestCount:m,crossTierAssign:p}=i,b=function(e){return e.isJoinRequestApproval?"join_request":e.emails?"invite":"reassign"}(i),f=n()[c]||c,g=i.emails?.length??i.members?.length??m??0,h=t(o.BillingManage);return e.jsx(r.Root,{open:l,onOpenChange:e=>!e&&u(),children:e.jsxs(r.Popup,{size:"md",children:[e.jsx(r.Header,{children:e.jsx(a,{defaultMessage:"Insufficient seats",id:"BS3HW6pEv8"})}),e.jsx("div",{className:"mt-6",children:e.jsxs("div",{className:"text-primary mb-4",children:[e.jsx("p",{className:"mb-2",children:"join_request"===b?e.jsx(a,{defaultMessage:"To approve {requestText}, you need {seatsText}.",id:"LmYatX2q5R",values:{requestText:e.jsx(a,{defaultMessage:"{count, plural, one {# request} other {# requests}}",id:"ZTZBr/f1jP",values:{count:g}}),seatsText:e.jsx(a,{defaultMessage:"{count} additional {tierLabel} {count, plural, one {seat} other {seats}}",id:"9iEUZavjVe",values:{count:d,tierLabel:String(f).toLowerCase()}})}}):"invite"===b?p?e.jsx(a,{defaultMessage:"To invite {memberCount, plural, one {# member} other {# members}}, you need {seatsText}.",id:"GWYKGKRISW",values:{memberCount:g,seatsText:e.jsx(a,{defaultMessage:"{count} additional {tierLabel} {count, plural, one {seat} other {seats}}",id:"9iEUZavjVe",values:{count:d,tierLabel:String(f).toLowerCase()}})}}):e.jsx(a,{defaultMessage:"To invite {memberCount} {tierLabel} {memberCount, plural, one {member} other {members}}, you need {seatsText}.",id:"p/huyLovOG",values:{memberCount:g,tierLabel:String(f).toLowerCase(),seatsText:e.jsx(a,{defaultMessage:"{count} additional {tierLabel} {count, plural, one {seat} other {seats}}",id:"9iEUZavjVe",values:{count:d,tierLabel:String(f).toLowerCase()}})}}):e.jsx(a,{defaultMessage:"To move {memberCount, plural, one {# member} other {# members}} to {tierLabel}, you need {seatsText}.",id:"iqoUYjV/Te",values:{memberCount:g,tierLabel:String(f).toLowerCase(),seatsText:e.jsx(a,{defaultMessage:"{count} additional {tierLabel} {count, plural, one {seat} other {seats}}",id:"9iEUZavjVe",values:{count:d,tierLabel:String(f).toLowerCase()}})}})}),e.jsx("p",{children:h?"join_request"===b||!1===i.canChangeTier?e.jsx(a,{defaultMessage:"Contact your Anthropic representative to procure additional seats.",id:"53rjekVsYJ"}):e.jsx(a,{defaultMessage:"Contact your Anthropic representative to procure additional seats, or use a tier which has enough available seats.",id:"vKsO0y5sme"}):"join_request"===b||!1===i.canChangeTier?e.jsx(a,{defaultMessage:"New members are added to the lowest available seat tier. Contact an owner to purchase more seats.",id:"aKWKFy/q6Y"}):"invite"===b?e.jsx(a,{defaultMessage:"Contact an owner to purchase more seats, or invite them on a tier which has enough available seats.",id:"7ni7THbLKt"}):e.jsx(a,{defaultMessage:"Contact an owner to purchase more seats, or assign them to a tier which has enough available seats.",id:"MCguqxZw2k"})})]})}),e.jsx(r.Footer,{children:e.jsx(s,{onClick:u,variant:"primary",children:e.jsx(a,{defaultMessage:"Close",id:"rbrahOGMC3"})})})]})})}function l(a){return t(o.BillingManage),e.jsx(i,{...a})}const u=Object.freeze(Object.defineProperty({__proto__:null,InsufficientSeatsModal:l},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
 *-----------------------------------------------------------------------------*/
/*!---------------------------------------------------------------------------------------------
 *  Copyright (C) David Owens II, owensd.io. All rights reserved.
 *--------------------------------------------------------------------------------------------*/
const c=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:{defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@GKInspectable","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet","@IBSegueAction","@NSApplicationMain","@NSCopying","@NSManaged","@Sendable","@UIApplicationMain","@autoclosure","@actorIndependent","@asyncHandler","@available","@convention","@derivative","@differentiable","@discardableResult","@dynamicCallable","@dynamicMemberLookup","@escaping","@frozen","@globalActor","@inlinable","@inline","@main","@noDerivative","@nonobjc","@noreturn","@objc","@objcMembers","@preconcurrency","@propertyWrapper","@requires_stored_property_inits","@resultBuilder","@testable","@unchecked","@unknown","@usableFromInline","@warn_unqualified_access"],accessmodifiers:["open","public","internal","fileprivate","private"],keywords:["#available","#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning","Any","Protocol","Self","Type","actor","as","assignment","associatedtype","associativity","async","await","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","false","fileprivate","final","for","func","get","guard","higherThan","if","import","in","indirect","infix","init","inout","internal","is","isolated","lazy","left","let","lowerThan","mutating","nil","none","nonisolated","nonmutating","open","operator","optional","override","postfix","precedence","precedencegroup","prefix","private","protocol","public","repeat","required","rethrows","return","right","safe","self","set","some","static","struct","subscript","super","switch","throw","throws","true","try","typealias","unowned","unsafe","var","weak","where","while","willSet","__consuming","__owned"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/@@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}},Symbol.toStringTag,{value:"Module"}));export{l as I,u as a,c as s};
