import{r as e,j as t}from"./vendor-react-Dp9pL_Wn.js";import{ES as n,aC as r,aH as a,uE as i,EL as s,aI as o,aD as l,IG as u,EW as c,IH as d}from"./c4b350ac1-KLFM4jkb.js";import{u as m,M as p}from"./vendor-intl-BDR1NhN_.js";import{S as b}from"./c2f2d399f-BaHBz-00.js";import{l as f}from"./vendor-ant-cds-DvTmcYA1.js";const g="__no_change__";function k(){const e=r(),{data:t}=a();return e||i(t?.assignable_seat_tiers)}function x(e,t,n){return n&&"enterprise_usage_based"===e?t.formatMessage({defaultMessage:"Claude Enterprise",id:"MwY0j6lAfZ"}):s(e,t)}function v(e,t,n){return n&&"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"})}:d(e,t)}function h(t,n={}){const{includePurchasableSiblings:r=!1}=n,i=m(),{tiers:s}=o(),d=l(),{data:p}=u(),{data:b}=a(),f=k();return e.useMemo(()=>{let e;e=d&&p?.seat_tier_options?r?p.seat_tier_options:b?.assignable_seat_tiers??[...s]:[...s],f&&(e=e.filter(e=>"enterprise_usage_based_chat"!==e));const n=t?e.filter(e=>!t.includes(e)):e,a=c(n),o={};for(const t of a){const e=v(t,i,f);e&&(o[t]=e)}return o},[i,s,d,p,b,f,t,r])}function y(){const t=m(),r=k();return e.useMemo(()=>Object.fromEntries(n.map(e=>{const n=x(e,t,r);return n?[e,n]:null}).filter(e=>null!==e)),[t,r])}function _({count:e}){return k()?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 w({value:n,onSelect:r,disabled:a,className:i,label:s,matchWidth:o,excludedTiers:l,noChangeOption:u,includePurchasableSiblings:c}){const d=m(),p=k(),v=h(l,{includePurchasableSiblings:c}),_=y(),w=e.useMemo(()=>{const e=Object.values(v).map(e=>({value:e.key,label:e.label,description:e.description}));return u&&e.unshift({value:g,label:d.formatMessage({defaultMessage:"No change",id:"bnMqMr2Qwq"})}),e},[v,u,d]),C=e.useCallback(e=>{if(null===e)return null;if(e.value===g)return e.label;const n=x(e.value,d,p)??e.label;return t.jsx("span",{className:"truncate",children:n})},[d,p]),M=e.useCallback(e=>{if(null===e)return;if(e===g)return void r("unassigned");e!==n&&r(e)},[r,n]),j=u&&"unassigned"===n?g:n;return t.jsx(b,{label:s,children:t.jsx(f,{mode:"select",size:"sm",searchable:!1,fullWidth:o??!1,items:w,value:j,onChange:M,renderTriggerValue:C,disabled:a,placeholder:_[n]??n,className:i,popupClassName:o?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 C={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{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"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}};const M=Object.freeze(Object.defineProperty({__proto__:null,conf:C,language:{defaultToken:"",tokenPostfix:".css",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}},Symbol.toStringTag,{value:"Module"}));export{w as S,_ as U,h as a,M as c,y as u};
