import{r as e,j as t}from"./vendor-react-Dp9pL_Wn.js";import{A$ as s,ax as n,aC as a,tF as o,AU as r,aD as l,ay as i,$E as c,B3 as d,$F as m}from"./c6eedc03a-CsEFTfjy.js";import{u,M as p}from"./vendor-intl-D2wGIp4M.js";import{S as b}from"./cc7a628cb-BdOlGZ7z.js";import{m as g}from"./vendor-ant-cds-bBedrtIN.js";const h="__no_change__";function f(){const e=n(),{data:t}=a();return e||o(t?.assignable_seat_tiers)}function k(e,t,s){return s&&"enterprise_usage_based"===e?t.formatMessage({defaultMessage:"Claude Enterprise",id:"MwY0j6lAfZ"}):r(e,t)}function _(e,t,s){return s&&"enterprise_usage_based"===e?{key:e,label:t.formatMessage({defaultMessage:"Claude Enterprise seat",id:"7Oi+0BD/xe"}),description:t.formatMessage({defaultMessage:"Full access to Claude Chat and Claude Code",id:"cvrXRIXLTY"})}:m(e,t)}function x(t,s={}){const{includePurchasableSiblings:n=!1}=s,o=u(),{tiers:r}=l(),m=i(),{data:p}=c(),{data:b}=a(),g=f();return e.useMemo(()=>{let e;e=m&&p?.seat_tier_options?n?p.seat_tier_options:b?.assignable_seat_tiers??[...r]:[...r],g&&(e=e.filter(e=>"enterprise_usage_based_chat"!==e));const s=t?e.filter(e=>!t.includes(e)):e,a=d(s),l={};for(const t of a){const e=_(t,o,g);e&&(l[t]=e)}return l},[o,r,m,p,b,g,t,n])}function w(){const t=u(),n=f();return e.useMemo(()=>Object.fromEntries(s.map(e=>{const s=k(e,t,n);return s?[e,s]:null}).filter(e=>null!==e)),[t,n])}function y({count:e}){return f()?t.jsx(p,{defaultMessage:"{count} Claude Enterprise seats",id:"2t0+hCEWBz",values:{count:e}}):t.jsx(p,{defaultMessage:"{count} Chat + Claude Code seats",id:"dSypWIjtUE",values:{count:e}})}function $({value:s,onSelect:n,disabled:a,className:o,label:r,matchWidth:l,excludedTiers:i,noChangeOption:c,includePurchasableSiblings:d}){const m=u(),p=f(),_=x(i,{includePurchasableSiblings:d}),y=w(),$=e.useMemo(()=>{const e=Object.values(_).map(e=>({value:e.key,label:e.label,description:e.description}));return c&&e.unshift({value:h,label:m.formatMessage({defaultMessage:"No change",id:"bnMqMr2Qwq"})}),e},[_,c,m]),v=e.useCallback(e=>{if(null===e)return null;if(e.value===h)return e.label;const s=k(e.value,m,p)??e.label;return t.jsx("span",{className:"truncate",children:s})},[m,p]),S=e.useCallback(e=>{if(null===e)return;if(e===h)return void n("unassigned");e!==s&&n(e)},[n,s]),j=c&&"unassigned"===s?h:s;return t.jsx(b,{label:r,children:t.jsx(g,{mode:"select",size:"sm",searchable:!1,fullWidth:l??!1,items:$,value:j,onChange:S,renderTriggerValue:v,disabled:a,placeholder:y[s]??s,className:o,popupClassName:l?void 0:"min-w-72"})})}
/*!-----------------------------------------------------------------------------
 * 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 v={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}};const S=Object.freeze(Object.defineProperty({__proto__:null,conf:v,language:{defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:"tag"}],[/<!--/,"comment","@comment"]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,"comment","@pop"],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],tag:[[/[ \t\r\n]+/,"white"],[/(type)(\s*=\s*)(")([^"]+)(")/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(type)(\s*=\s*)(')([^']+)(')/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name.html","delimiter.html","string.html"]],[/\w+/,"attribute.name.html"],[/\/>/,"tag","@pop"],[/>/,{cases:{"$S2==style":{token:"tag",switchTo:"embeddedStyle",nextEmbedded:"text/css"},"$S2==script":{cases:{$S3:{token:"tag",switchTo:"embeddedScript",nextEmbedded:"$S3"},"@default":{token:"tag",switchTo:"embeddedScript",nextEmbedded:"text/javascript"}}},"@default":{token:"tag",next:"@pop"}}}]],embeddedStyle:[[/[^<]+/,""],[/<\/style\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]],embeddedScript:[[/[^<]+/,""],[/<\/script\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]]}}},Symbol.toStringTag,{value:"Module"}));export{$ as S,y as U,w as a,S as m,x as u};
