import{r as e,j as t}from"./vendor-react-Dp9pL_Wn.js";import{aR as n}from"./index-CBEPphRm.js";const r=e.memo(function({icon:e,message:r,actionLabel:a,onAction:o,onDismiss:s,dismissAriaLabel:l}){return t.jsxs("div",{className:"epitaxy-composer-aux-view",children:[t.jsx(i,{children:e}),t.jsxs("div",{className:"flex flex-1 min-w-0 flex-wrap items-center gap-x-g4",children:[t.jsx("span",{className:"flex-auto min-w-0 line-clamp-3 break-words text-body text-t8",children:r}),t.jsx(n,{variant:"link",size:"base",onClick:o,className:"shrink-0 -ml-[var(--p6)] -my-[calc((var(--class-base-height)-var(--leading-body))/2)]",children:a})]}),s&&l&&t.jsxs(t.Fragment,{children:[t.jsx("span",{"aria-hidden":"true",className:"w-px h-[12px] bg-t3 shrink-0"}),t.jsx(n,{variant:"muted",size:"base",icon:"XCrossCloseMedium",className:"shrink-0","aria-label":l,onClick:s})]})]})});function i({children:e}){return t.jsx("span",{"aria-hidden":"true",className:"flex items-center justify-center size-[20px] shrink-0 rounded-r3 bg-t2 text-t8",children:e})}var a,o={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},s={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},l=/[+\-*&^%:=<>!|\/]/;function c(e,t){var n,r=e.next();if('"'==r||"'"==r||"`"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,a=!1;null!=(r=e.next());){if(r==n&&!i){a=!0;break}i=!i&&"`"!=n&&"\\"==r}return(a||!i&&"`"!=n)&&(t.tokenize=c),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(r))return"."==r?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==r?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(r))return a=r,null;if("/"==r){if(e.eat("*"))return t.tokenize=u,u(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(l.test(r))return e.eatWhile(l),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var i=e.current();return o.propertyIsEnumerable(i)?("case"!=i&&"default"!=i||(a="case"),"keyword"):s.propertyIsEnumerable(i)?"atom":"variable"}function u(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=c;break}r="*"==n}return"comment"}function f(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function d(e,t,n){return e.context=new f(e.indented,t,n,null,e.context)}function m(e){if(e.context.prev){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}const p={startState:function(e){return{tokenize:null,context:new f(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==n.type&&(n.type="}")),e.eatSpace())return null;a=null;var r=(t.tokenize||c)(e,t);return"comment"==r||(null==n.align&&(n.align=!0),"{"==a?d(t,e.column(),"}"):"["==a?d(t,e.column(),"]"):"("==a?d(t,e.column(),")"):"case"==a?n.type="case":("}"==a&&"}"==n.type||a==n.type)&&m(t),t.startOfLine=!1),r},indent:function(e,t,n){if(e.tokenize!=c&&null!=e.tokenize)return null;var r=e.context,i=t&&t.charAt(0);if("case"==r.type&&/^(?:case|default)\b/.test(t))return e.context.type="}",r.indented;var a=i==r.type;return r.align?r.column+(a?0:1):r.indented+(a?0:n.unit)},languageData:{indentOnInput:/^\s([{}]|case |default\s*:)$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}},x=Object.freeze(Object.defineProperty({__proto__:null,go:p},Symbol.toStringTag,{value:"Module"}));export{r as E,x as g};
