import{r as e,j as i}from"./vendor-react-Dp9pL_Wn.js";import{ag as a}from"./index-CSvjYuL_.js";const r=e.memo(function({icon:e,message:r,actionLabel:n,onAction:s,onDismiss:l,dismissAriaLabel:o}){return i.jsxs("div",{className:"epitaxy-composer-aux-view",children:[i.jsx(t,{children:e}),i.jsxs("div",{className:"flex flex-1 min-w-0 flex-wrap items-center gap-x-g4",children:[i.jsx("span",{className:"flex-auto min-w-0 line-clamp-3 break-words text-body text-t8",children:r}),i.jsx(a,{variant:"link",size:"base",onClick:s,className:"shrink-0 -ml-[var(--p6)] -my-[calc((var(--class-base-height)-var(--leading-body))/2)]",children:n})]}),l&&o&&i.jsxs(i.Fragment,{children:[i.jsx("span",{"aria-hidden":"true",className:"w-px h-[12px] bg-t3 shrink-0"}),i.jsx(a,{variant:"muted",size:"base",icon:"XCrossCloseMedium",className:"shrink-0","aria-label":o,onClick:l})]})]})});function t({children:e}){return i.jsx("span",{"aria-hidden":"true",className:"flex items-center justify-center size-[20px] shrink-0 rounded-r3 bg-t2 text-t8",children:e})}var n=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");const s={token:function(e,i){var a=e.peek(),r=i.escaped;if(i.escaped=!1,"#"==a&&(0==e.pos||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(i.literal&&e.indentation()>i.keyCol)return e.skipToEnd(),"string";if(i.literal&&(i.literal=!1),e.sol()){if(i.keyCol=0,i.pair=!1,i.pairStart=!1,e.match("---"))return"def";if(e.match("..."))return"def";if(e.match(/^\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==a?i.inlinePairs++:"}"==a?i.inlinePairs--:"["==a?i.inlineList++:i.inlineList--,"meta";if(i.inlineList>0&&!r&&","==a)return e.next(),"meta";if(i.inlinePairs>0&&!r&&","==a)return i.keyCol=0,i.pair=!1,i.pairStart=!1,e.next(),"meta";if(i.pairStart){if(e.match(/^\s*(\||\>)\s*/))return i.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable";if(0==i.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(i.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(n))return"keyword"}return!i.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(i.pair=!0,i.keyCol=e.indentation(),"atom"):i.pair&&e.match(/^:\s*/)?(i.pairStart=!0,"meta"):(i.pairStart=!1,i.escaped="\\"==a,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},languageData:{commentTokens:{line:"#"}}},l=Object.freeze(Object.defineProperty({__proto__:null,yaml:s},Symbol.toStringTag,{value:"Module"}));export{r as E,l as y};
