import{j as e,r as t}from"./vendor-react-Dp9pL_Wn.js";import{aM as n,aH as r,Fu as i,aL as a,Cl as o,aG as s,v8 as l,Fv as u,Ch as c,Ca as d}from"./c2ee0272b-DPDuX889.js";import{M as m,u as p}from"./vendor-intl-D2wGIp4M.js";import{S as b}from"./c2f2d399f-D0AuqAdC.js";import{o as f}from"./vendor-ant-cds-BLsR_p72.js";const g="__no_change__";function k(){const e=s(),{data:t}=a();return e||l(t?.assignable_seat_tiers)}function x(e,t,n){return n&&"enterprise_usage_based"===e?t.formatMessage({defaultMessage:"Claude Enterprise",id:"MwY0j6lAfZ"}):d(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"})}:u(e,t)}function h(e,s={}){const{includePurchasableSiblings:l=!1}=s,u=p(),{tiers:c}=n(),d=r(),{data:m}=i(),{data:b}=a(),f=k();return t.useMemo(()=>{let t;t=d&&m?.seat_tier_options?l?m.seat_tier_options:b?.assignable_seat_tiers??[...c]:[...c],f&&(t=t.filter(e=>"enterprise_usage_based_chat"!==e));const n=e?t.filter(t=>!e.includes(t)):t,r=o(n),i={};for(const e of r){const t=v(e,u,f);t&&(i[e]=t)}return i},[u,c,d,m,b,f,e,l])}function y(){const e=p(),n=k();return t.useMemo(()=>Object.fromEntries(c.map(t=>{const r=x(t,e,n);return r?[t,r]:null}).filter(e=>null!==e)),[e,n])}function _({count:t}){return k()?e.jsx(m,{defaultMessage:"{count} Claude Enterprise seats",id:"2t0+hCEWBz",values:{count:t}}):e.jsx(m,{defaultMessage:"{count} Chat + Claude Code seats",id:"dSypWIjtUE",values:{count:t}})}function w({value:n,onSelect:r,disabled:i,className:a,label:o,matchWidth:s,excludedTiers:l,noChangeOption:u,includePurchasableSiblings:c}){const d=p(),m=k(),v=h(l,{includePurchasableSiblings:c}),_=y(),w=t.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=t.useCallback(t=>{if(null===t)return null;if(t.value===g)return t.label;const n=x(t.value,d,m)??t.label;return e.jsx("span",{className:"truncate",children:n})},[d,m]),M=t.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 e.jsx(b,{label:o,children:e.jsx(f,{mode:"select",size:"sm",searchable:!1,fullWidth:s??!1,items:w,value:j,onChange:M,renderTriggerValue:C,disabled:i,placeholder:_[n]??n,className:a,popupClassName:s?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,y as a,M as c,h as u};
