1import{j as s,c as v}from"./chunk-LFPYN7LY-BYCOceFh.js";import{F as C}from"./alerts-mA4EJBuF.js";import{u as G}from"./EnvironmentContext-X49McUcm.js";import{u as w,B as b,T as R}from"./index-B19M7xEA.js";import{f as j,c as T}from"./use-style-config-ZxeY2J_M.js";import{I as F}from"./icon-BoqpEvxL.js";const A=j(function(c,l){const{templateAreas:m,gap:i,rowGap:u,columnGap:g,column:r,row:p,autoFlow:d,autoRows:e,templateRows:f,autoColumns:n,templateColumns:o,...t}=c,h={display:"grid",gridTemplateAreas:m,gridGap:i,gridRowGap:u,gridColumnGap:g,gridAutoColumns:n,gridColumn:r,gridRow:p,gridAutoFlow:d,gridAutoRows:e,gridTemplateRows:f,gridTemplateColumns:o};return s.jsx(T.div,{ref:l,__css:h,...t})});A.displayName="Grid";function z({alerts:a,routeParam:c}){const l=v(),{isDevelopment:m}=G(),{theme:i}=w(),u=c?`/announcements?route=${encodeURIComponent(c)}`:"/announcements",r=(m?a:a.filter(t=>t.active)).length;if(r===0)return null;const p=`${r} ${r===1?"Active Alert":"Active Alerts"}`,d=t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),l(u))},e=i.components.alertRow,f=e==null?void 0:e.height,n=e==null?void 0:e.borderRadius,o=e==null?void 0:e.backgroundColor;return s.jsx(b,{bg:o||i.colors.components.alert.activeBg,color:"white",borderRadius:n||i.radii.lg,boxShadow:"sm",cursor:"pointer",role:"button",tabIndex:0,"aria-label":p,onClick:()=>l(u),onKeyDown:d,_hover:{opacity:.9},_focus:{boxShadow:"outline"},transition:"opacity 0.2s",w:"100%",h:f,display:"flex",alignItems:"center",px:3,children:s.jsxs(A,{templateColumns:"24px 1fr 24px",alignItems:"center",columnGap:3,w:"100%",children:[s.jsx(F,{as:C,boxSize:4}),s.jsx(R,{textAlign:"center",fontSize:"lg",fontWeight:"bold",children:p}),s.jsx(b,{})]})})}function E({children:a,backgroundColor:c,color:l,onClick:m,borderRadius:i,fontSize:u,fontWeight:g,fontFamily:r,lineHeight:p,height:d,flexShrink:e,...f}){var x,y;const{theme:n}=w(),o=(x=n.components.breadcrumb)==null?void 0:x.tag,t=(y=n.components.breadcrumb)==null?void 0:y.title,h=typeof m=="function";return s.jsx(b,{as:h?"button":"span",bg:c??(o==null?void 0:o.backgroundColor),color:l??(o==null?void 0:o.color),px:1.5,py:0,borderRadius:i??(o==null?void 0:o.borderRadius)??n.radii.md,fontSize:u??(o==null?void 0:o.fontSize)??"xs",fontWeight:g??(o==null?void 0:o.fontWeight)??"semibold",fontFamily:r??(o==null?void 0:o.fontFamily)??n.typography.fontFamily.body,lineHeight:p??(o==null?void 0:o.lineHeight)??(t==null?void 0:t.lineHeight)??n.typography.lineHeight,height:d??(o==null?void 0:o.height),flexShrink:e,onClick:m,cursor:h?"pointer":"default",_hover:h?{opacity:.8}:void 0,transition:`opacity ${n.transitions.normal}`,title:a,...f,children:a})}export{z as A,A as G,E as T};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.