import{j as e}from"./vendor-react-Dp9pL_Wn.js";import{cT as t,cU as s}from"./c6eedc03a-CsEFTfjy.js";import{M as E}from"./vendor-intl-D2wGIp4M.js";import{a as n}from"./c590fc197-rhQnzVjM.js";import{D as o,B as T}from"./vendor-ant-cds-bBedrtIN.js";function a(a){const{isOpen:i,onClose:r,seatTier:A,seatsNeeded:N,requestCount:R,crossTierAssign:I}=a,O=function(e){return e.isJoinRequestApproval?"join_request":e.emails?"invite":"reassign"}(a),S=n()[A]||A,l=a.emails?.length??a.members?.length??R??0,L=t(s.BillingManage);return e.jsx(o.Root,{open:i,onOpenChange:e=>!e&&r(),children:e.jsxs(o.Popup,{size:"md",children:[e.jsx(o.Header,{children:e.jsx(E,{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"===O?e.jsx(E,{defaultMessage:"To approve {requestText}, you need {seatsText}.",id:"LmYatX2q5R",values:{requestText:e.jsx(E,{defaultMessage:"{count, plural, one {# request} other {# requests}}",id:"ZTZBr/f1jP",values:{count:l}}),seatsText:e.jsx(E,{defaultMessage:"{count} additional {tierLabel} {count, plural, one {seat} other {seats}}",id:"9iEUZavjVe",values:{count:N,tierLabel:String(S).toLowerCase()}})}}):"invite"===O?I?e.jsx(E,{defaultMessage:"To invite {memberCount, plural, one {# member} other {# members}}, you need {seatsText}.",id:"GWYKGKRISW",values:{memberCount:l,seatsText:e.jsx(E,{defaultMessage:"{count} additional {tierLabel} {count, plural, one {seat} other {seats}}",id:"9iEUZavjVe",values:{count:N,tierLabel:String(S).toLowerCase()}})}}):e.jsx(E,{defaultMessage:"To invite {memberCount} {tierLabel} {memberCount, plural, one {member} other {members}}, you need {seatsText}.",id:"p/huyLovOG",values:{memberCount:l,tierLabel:String(S).toLowerCase(),seatsText:e.jsx(E,{defaultMessage:"{count} additional {tierLabel} {count, plural, one {seat} other {seats}}",id:"9iEUZavjVe",values:{count:N,tierLabel:String(S).toLowerCase()}})}}):e.jsx(E,{defaultMessage:"To move {memberCount, plural, one {# member} other {# members}} to {tierLabel}, you need {seatsText}.",id:"iqoUYjV/Te",values:{memberCount:l,tierLabel:String(S).toLowerCase(),seatsText:e.jsx(E,{defaultMessage:"{count} additional {tierLabel} {count, plural, one {seat} other {seats}}",id:"9iEUZavjVe",values:{count:N,tierLabel:String(S).toLowerCase()}})}})}),e.jsx("p",{children:L?"join_request"===O||!1===a.canChangeTier?e.jsx(E,{defaultMessage:"Contact your Anthropic representative to procure additional seats.",id:"53rjekVsYJ"}):e.jsx(E,{defaultMessage:"Contact your Anthropic representative to procure additional seats, or use a tier which has enough available seats.",id:"vKsO0y5sme"}):"join_request"===O||!1===a.canChangeTier?e.jsx(E,{defaultMessage:"New members are added to the lowest available seat tier. Contact an owner to purchase more seats.",id:"aKWKFy/q6Y"}):"invite"===O?e.jsx(E,{defaultMessage:"Contact an owner to purchase more seats, or invite them on a tier which has enough available seats.",id:"7ni7THbLKt"}):e.jsx(E,{defaultMessage:"Contact an owner to purchase more seats, or assign them to a tier which has enough available seats.",id:"MCguqxZw2k"})})]})}),e.jsx(o.Footer,{children:e.jsx(T,{onClick:r,variant:"primary",children:e.jsx(E,{defaultMessage:"Close",id:"rbrahOGMC3"})})})]})})}function i(E){return t(s.BillingManage),e.jsx(a,{...E})}const r=Object.freeze(Object.defineProperty({__proto__:null,InsufficientSeatsModal:i},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
 *-----------------------------------------------------------------------------*/const A=Object.freeze(Object.defineProperty({__proto__:null,conf:{comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]}]},language:{defaultToken:"",tokenPostfix:".msdax",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["VAR","RETURN","NOT","EVALUATE","DATATABLE","ORDER","BY","START","AT","DEFINE","MEASURE","ASC","DESC","IN","BOOLEAN","DOUBLE","INTEGER","DATETIME","CURRENCY","STRING"],functions:["CLOSINGBALANCEMONTH","CLOSINGBALANCEQUARTER","CLOSINGBALANCEYEAR","DATEADD","DATESBETWEEN","DATESINPERIOD","DATESMTD","DATESQTD","DATESYTD","ENDOFMONTH","ENDOFQUARTER","ENDOFYEAR","FIRSTDATE","FIRSTNONBLANK","LASTDATE","LASTNONBLANK","NEXTDAY","NEXTMONTH","NEXTQUARTER","NEXTYEAR","OPENINGBALANCEMONTH","OPENINGBALANCEQUARTER","OPENINGBALANCEYEAR","PARALLELPERIOD","PREVIOUSDAY","PREVIOUSMONTH","PREVIOUSQUARTER","PREVIOUSYEAR","SAMEPERIODLASTYEAR","STARTOFMONTH","STARTOFQUARTER","STARTOFYEAR","TOTALMTD","TOTALQTD","TOTALYTD","ADDCOLUMNS","ADDMISSINGITEMS","ALL","ALLEXCEPT","ALLNOBLANKROW","ALLSELECTED","CALCULATE","CALCULATETABLE","CALENDAR","CALENDARAUTO","CROSSFILTER","CROSSJOIN","CURRENTGROUP","DATATABLE","DETAILROWS","DISTINCT","EARLIER","EARLIEST","EXCEPT","FILTER","FILTERS","GENERATE","GENERATEALL","GROUPBY","IGNORE","INTERSECT","ISONORAFTER","KEEPFILTERS","LOOKUPVALUE","NATURALINNERJOIN","NATURALLEFTOUTERJOIN","RELATED","RELATEDTABLE","ROLLUP","ROLLUPADDISSUBTOTAL","ROLLUPGROUP","ROLLUPISSUBTOTAL","ROW","SAMPLE","SELECTCOLUMNS","SUBSTITUTEWITHINDEX","SUMMARIZE","SUMMARIZECOLUMNS","TOPN","TREATAS","UNION","USERELATIONSHIP","VALUES","SUM","SUMX","PATH","PATHCONTAINS","PATHITEM","PATHITEMREVERSE","PATHLENGTH","AVERAGE","AVERAGEA","AVERAGEX","COUNT","COUNTA","COUNTAX","COUNTBLANK","COUNTROWS","COUNTX","DISTINCTCOUNT","DIVIDE","GEOMEAN","GEOMEANX","MAX","MAXA","MAXX","MEDIAN","MEDIANX","MIN","MINA","MINX","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILEX.EXC","PERCENTILEX.INC","PRODUCT","PRODUCTX","RANK.EQ","RANKX","STDEV.P","STDEV.S","STDEVX.P","STDEVX.S","VAR.P","VAR.S","VARX.P","VARX.S","XIRR","XNPV","DATE","DATEDIFF","DATEVALUE","DAY","EDATE","EOMONTH","HOUR","MINUTE","MONTH","NOW","SECOND","TIME","TIMEVALUE","TODAY","WEEKDAY","WEEKNUM","YEAR","YEARFRAC","CONTAINS","CONTAINSROW","CUSTOMDATA","ERROR","HASONEFILTER","HASONEVALUE","ISBLANK","ISCROSSFILTERED","ISEMPTY","ISERROR","ISEVEN","ISFILTERED","ISLOGICAL","ISNONTEXT","ISNUMBER","ISODD","ISSUBTOTAL","ISTEXT","USERNAME","USERPRINCIPALNAME","AND","FALSE","IF","IFERROR","NOT","OR","SWITCH","TRUE","ABS","ACOS","ACOSH","ACOT","ACOTH","ASIN","ASINH","ATAN","ATANH","BETA.DIST","BETA.INV","CEILING","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","COMBIN","COMBINA","CONFIDENCE.NORM","CONFIDENCE.T","COS","COSH","COT","COTH","CURRENCY","DEGREES","EVEN","EXP","EXPON.DIST","FACT","FLOOR","GCD","INT","ISO.CEILING","LCM","LN","LOG","LOG10","MOD","MROUND","ODD","PERMUT","PI","POISSON.DIST","POWER","QUOTIENT","RADIANS","RAND","RANDBETWEEN","ROUND","ROUNDDOWN","ROUNDUP","SIGN","SIN","SINH","SQRT","SQRTPI","TAN","TANH","TRUNC","BLANK","CONCATENATE","CONCATENATEX","EXACT","FIND","FIXED","FORMAT","LEFT","LEN","LOWER","MID","REPLACE","REPT","RIGHT","SEARCH","SUBSTITUTE","TRIM","UNICHAR","UNICODE","UPPER","VALUE"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},[/[;,.]/,"delimiter"],[/[({})]/,"@brackets"],[/[a-z_][a-zA-Z0-9_]*/,{cases:{"@keywords":"keyword","@functions":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/\/\/+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N"/,{token:"string",next:"@string"}],[/"/,{token:"string",next:"@string"}]],string:[[/[^"]+/,"string"],[/""/,"string"],[/"/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/'/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^']+/,"identifier"],[/''/,"identifier"],[/'/,{token:"identifier.quote",next:"@pop"}]]}}},Symbol.toStringTag,{value:"Module"}));export{i as I,r as a,A as m};
