import{j as e,r as t}from"./vendor-react-Dp9pL_Wn.js";import{aT as a,fi as s,bU as r,fj as n,fk as i,G0 as l,aR as o,fm as d,fn as m,fl as c}from"./c6eedc03a-CsEFTfjy.js";import{c as p,o as h,M as x,g as u,I as b,T as g}from"./vendor-ant-cds-bBedrtIN.js";import{a7 as E,a8 as w,a9 as f,aa as y,ab as N,ac as k,ad as T,ae as v,af as j,b3 as S,b4 as R,b5 as A}from"./vendor-radix-Ch96tRrt.js";import{M as O}from"./vendor-intl-D2wGIp4M.js";const C=t=>e.jsx(a,{...t,children:e.jsx("path",{d:"M14.128 7.165a.502.502 0 0 1 .744.67l-4.5 5-.078.07a.5.5 0 0 1-.666-.07l-4.5-5-.06-.082a.501.501 0 0 1 .729-.656l.075.068L10 11.752z"})}),I=h("text-text-100 py-0 transition-colors can-focus cursor-pointer appearance-none w-full flex items-center justify-between text-nowrap disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 pl-2 pr-1.5 text-sm rounded-md gap-1",normal:"h-9 pl-2.5 pr-2 rounded-lg gap-1",lg:"h-11 pl-3 pr-2.5 rounded-[0.6rem] gap-1.5"},variant:{outline:"bg-bg-000 border border-border-300 enabled:hover:border-border-200 shadow-none",ghost:"bg-transparent border-none shadow-none cursor-pointer",danger:"bg-danger-900 text-danger-000 shadow border-danger-200 hover:border-danger-200 focus:border-danger-200"}},defaultVariants:{size:"normal",variant:"outline"}}),L=t.forwardRef(({size:t,variant:a,className:o,label:d,id:m,name:c,value:h,defaultValue:x,onValueChange:u,onOpenChange:b,placeholder:g,displayValue:v,disabled:j,required:S,children:R,"aria-label":A},O)=>{const L=s({id:m,label:d}),D=r();return e.jsxs(e.Fragment,{children:[d&&e.jsx(n,{label:d,id:L,required:S}),e.jsxs(E,{name:c,value:h,defaultValue:x,onValueChange:u,onOpenChange:b,disabled:j,required:S,children:[e.jsxs(w,{id:L,ref:O,"aria-label":A,className:I({size:t,className:o,variant:a}),children:[e.jsx("span",{className:"truncate",children:v?e.jsx(f,{placeholder:g,children:v}):e.jsx(f,{placeholder:g})}),e.jsx(y,{asChild:!0,children:e.jsx(C,{size:"sm"===t?12:16,className:"text-text-500 shrink-0"})})]}),e.jsx(N,{children:e.jsx(k,{className:p(i,l),position:"popper",sideOffset:4,style:{minWidth:"var(--radix-select-trigger-width)",zIndex:D},children:e.jsx(T,{className:"p-1.5",children:R})})})]})]})});L.displayName="Select";const D=t.forwardRef(({className:t,children:a,disabled:s,textValue:r,...n},i)=>e.jsxs(v,{ref:i,className:p(d,s&&m,t),disabled:s,textValue:r,...n,children:[e.jsx(j,{children:a}),e.jsx(S,{children:e.jsx(o,{size:16,className:"text-accent-100"})})]}));D.displayName="SelectItem";t.forwardRef(({className:t,...a},s)=>e.jsx(R,{ref:s,className:p("text-text-500 pt-1 px-2 text-sm",t),...a})).displayName="SelectLabel";const P=t.forwardRef(({className:t,...a},s)=>e.jsx(A,{ref:s,className:p(c,t),...a}));function z({value:t,onChange:a,roles:s,disabled:r=!1,removeOption:n,triggerClassName:i,align:l="end",triggerAriaLabel:o,popupClassName:d,triggerVariant:m="compact"}){const c=s.find(e=>e.value===t),h="row"===m?"flex items-center gap-2 rounded px-3 py-2 text-body text-primary transition-colors hover:bg-alpha-1 data-[popup-open]:bg-alpha-1":"flex h-7 items-center gap-1 rounded-md px-2 text-xs text-text-300 transition-colors hover:bg-bg-200 hover:text-text-100 data-[popup-open]:bg-bg-200 data-[popup-open]:text-text-100",E=e.jsx("span",{className:"truncate",children:c?.label??e.jsx(O,{id:"kQAf2d9u+x",defaultMessage:"Select"})});if(r)return e.jsx("span",{className:p("row"===m?"flex items-center gap-2 rounded px-3 py-2 text-body text-disabled":"flex h-7 items-center gap-1 rounded-md px-2 text-xs text-text-400",i),children:E});const w=n&&e.jsx(x.Item,{variant:"danger",disabled:n.disabled,onClick:n.onSelect,children:n.label??e.jsx(O,{id:"G/yZLul6P1",defaultMessage:"Remove"})});return e.jsxs(x.Root,{children:[e.jsx(x.Trigger,{render:e.jsxs("button",{type:"button","aria-label":o,className:p(h,i),children:[E,e.jsx(C,{className:"row"===m?"size-4 text-muted":"size-3.5"})]})}),e.jsx(u,{className:"contents",children:e.jsxs(x.Popup,{align:l,className:p("min-w-56",d),children:[e.jsx(x.Group,{children:s.filter(e=>!e.hidden).map(s=>{const r=e.jsxs("span",{className:"flex min-w-0 flex-col whitespace-normal",children:[e.jsx("span",{children:s.label}),s.description&&e.jsx("span",{className:"text-footnote text-muted",children:s.description})]});return s.locked?e.jsx(x.Item,{disabled:!0,trailing:e.jsx("span",{className:"-mr-1 flex size-4 shrink-0 items-center justify-center",children:e.jsx(b,{name:"Lock",size:"sm"})}),className:"!items-start",children:r},s.value):e.jsx(x.Item,{checked:s.value===t,checkedRole:"radio",onClick:()=>a(s.value),className:"!items-start",children:r},s.value)})}),n&&e.jsxs(e.Fragment,{children:[e.jsx(x.Separator,{}),n.disabled&&n.disabledTooltip?e.jsx(g,{content:n.disabledTooltip,side:"left",children:e.jsx("span",{className:"block",children:w})}):w]})]})})]})}P.displayName="SelectSeparator";const F=Object.freeze(Object.defineProperty({__proto__:null,SidebarProductBadgeV1:function(e){return null}},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 M=Object.freeze(Object.defineProperty({__proto__:null,conf:{comments:{blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"(*",close:"*)"},{open:"<*",close:"*>"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}]},language:{defaultToken:"",tokenPostfix:".m3",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["AND","ANY","ARRAY","AS","BEGIN","BITS","BRANDED","BY","CASE","CONST","DIV","DO","ELSE","ELSIF","END","EVAL","EXCEPT","EXCEPTION","EXIT","EXPORTS","FINALLY","FOR","FROM","GENERIC","IF","IMPORT","IN","INTERFACE","LOCK","LOOP","METHODS","MOD","MODULE","NOT","OBJECT","OF","OR","OVERRIDES","PROCEDURE","RAISE","RAISES","READONLY","RECORD","REF","REPEAT","RETURN","REVEAL","SET","THEN","TO","TRY","TYPE","TYPECASE","UNSAFE","UNTIL","UNTRACED","VALUE","VAR","WHILE","WITH"],reservedConstNames:["ABS","ADR","ADRSIZE","BITSIZE","BYTESIZE","CEILING","DEC","DISPOSE","FALSE","FIRST","FLOAT","FLOOR","INC","ISTYPE","LAST","LOOPHOLE","MAX","MIN","NARROW","NEW","NIL","NUMBER","ORD","ROUND","SUBARRAY","TRUE","TRUNC","TYPECODE","VAL"],reservedTypeNames:["ADDRESS","ANY","BOOLEAN","CARDINAL","CHAR","EXTENDED","INTEGER","LONGCARD","LONGINT","LONGREAL","MUTEX","NULL","REAL","REFANY","ROOT","TEXT"],operators:["+","-","*","/","&","^","."],relations:["=","#","<","<=",">",">=","<:",":"],delimiters:["|","..","=>",",",";",":="],symbols:/[>=<#.,:;+\-*/&^]+/,escapes:/\\(?:[\\fnrt"']|[0-7]{3})/,tokenizer:{root:[[/_\w*/,"invalid"],[/[a-zA-Z][a-zA-Z0-9_]*/,{cases:{"@keywords":{token:"keyword.$0"},"@reservedConstNames":{token:"constant.reserved.$0"},"@reservedTypeNames":{token:"type.reserved.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/,"number.float"],[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/,"number"],[/@symbols/,{cases:{"@operators":"operators","@relations":"operators","@delimiters":"delimiter","@default":"invalid"}}],[/'[^\\']'/,"string.char"],[/(')(@escapes)(')/,["string.char","string.escape","string.char"]],[/'/,"invalid"],[/"([^"\\]|\\.)*$/,"invalid"],[/"/,"string.text","@text"]],text:[[/[^\\"]+/,"string.text"],[/@escapes/,"string.escape"],[/\\./,"invalid"],[/"/,"string.text","@pop"]],comment:[[/\(\*/,"comment","@push"],[/\*\)/,"comment","@pop"],[/./,"comment"]],pragma:[[/<\*/,"keyword.pragma","@push"],[/\*>/,"keyword.pragma","@pop"],[/./,"keyword.pragma"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/<\*/,"keyword.pragma","@pragma"]]}}},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 V=Object.freeze(Object.defineProperty({__proto__:null,conf:{wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],["\x3c!--","--\x3e"],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},language:{defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<{]+/]],commentState:[[/#}/,"comment.twig","@pop"],[/./,"comment.twig"]],blockState:[[/[-~]?%}/,"delimiter.twig","@pop"],[/\s+/],[/(verbatim)(\s*)([-~]?%})/,["keyword.twig","",{token:"delimiter.twig",next:"@rawDataState"}]],{include:"expression"}],rawDataState:[[/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,["delimiter.twig","","keyword.twig","",{token:"delimiter.twig",next:"@popall"}]],[/./,"string.twig"]],variableState:[[/[-~]?}}/,"delimiter.twig","@pop"],{include:"expression"}],stringState:[[/"/,"string.twig","@pop"],[/#{\s*/,"string.twig","@interpolationState"],[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/,"string.twig"]],interpolationState:[[/}/,"string.twig","@pop"],{include:"expression"}],expression:[[/\s+/],[/\+|-|\/{1,2}|%|\*{1,2}/,"operators.twig"],[/(and|or|not|b-and|b-xor|b-or)(\s+)/,["operators.twig",""]],[/==|!=|<|>|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}},Symbol.toStringTag,{value:"Module"}));export{C,z as R,L as S,D as a,P as b,F as c,M as m,V as t};
