1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0b32b459-a54a-592f-906c-fb77e9e8463f")}catch(e){}}(); 3import{r as o,j as e}from"./index-lGm5ADjG.js";import{c as f,L as c}from"./DiagonalArrowIcon-miZX70_K.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"2849f3c44d80a7b4821617312b2b033dde07e9d7"}}catch{}})();const a="data-above-nav-banner",p={"sage-light":{scope:"sage-green",tone:"light"},"powder-blue":{scope:"powder-blue",tone:"default"},"sky-blue":{scope:"sky-blue",tone:"default"},celery:{scope:"celery",tone:"default"},"pine-green":{scope:"pine",tone:"default"},"cadet-blue":{scope:"cadet-blue",tone:"default"}};function b({banner:n}){const[t,s]=o.useState(!0);o.useEffect(()=>{const m=localStorage.getItem(`announcement-dismissed-${n.id}`)==="true";s(m)},[n.id]);const i=(n.position??"above-nav")==="above-nav";if(o.useEffect(()=>{if(!(t||!i))return document.documentElement.setAttribute(a,""),()=>document.documentElement.removeAttribute(a)},[t,i]),t)return null;const u=()=>{localStorage.setItem(`announcement-dismissed-${n.id}`,"true"),s(!0)},r=p[n.backgroundColor??"sage-light"];return e.jsxs("div",{"data-theme-accent":r.scope,className:f("text-body-small min-h-10 md:h-10",r.tone==="light"?"bg-accent-light text-on-accent-light":"bg-accent text-on-accent"),children:[e.jsx(g,{banner:n}),e.jsx(h,{banner:n,onDismiss:u})]})}function g({banner:n}){const t="flex min-h-10 items-center justify-between gap-gap-lg px-inline-lg py-stack-sm md:hidden",s=n.message.find(i=>i.blockType==="announcement-link-segment");return s?e.jsxs(c,{to:s.url,className:t,children:[e.jsx("span",{className:"line-clamp-2 underline underline-offset-2",children:e.jsx(x,{message:n.message})}),e.jsx(d,{})]}):e.jsx("div",{className:t,children:e.jsx("span",{className:"line-clamp-2",children:e.jsx(l,{message:n.message})})})}function h({banner:n,onDismiss:t}){return e.jsxs("div",{className:"px-inline-3xl hidden h-10 grid-cols-[1fr_auto_1fr] items-center md:grid",children:[e.jsx("div",{className:"gap-gap-2xl col-start-2 flex items-center justify-center",children:e.jsx(l,{message:n.message})}),e.jsx("button",{type:"button",onClick:t,"aria-label":"Dismiss banner",className:"col-start-3 justify-self-end opacity-60 transition-opacity hover:opacity-100",children:e.jsx(j,{})})]})}function l({message:n}){return e.jsx("span",{children:n.map((t,s)=>t.blockType==="announcement-text-segment"?e.jsx("span",{children:t.text},t.id??s):t.blockType==="announcement-link-segment"?e.jsxs(c,{to:t.url,className:"gap-gap-md inline-flex items-center underline underline-offset-2",children:[t.text,e.jsx(d,{})]},t.id??s):null)})}function x({message:n}){return e.jsx(e.Fragment,{children:n.map((t,s)=>e.jsx("span",{children:t.text},t.id??s))})}function d(){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",className:"shrink-0",children:e.jsx("path",{d:"M3 8h10m0 0L9 4m4 4l-4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function j(){return e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M12.5 3.5L3.5 12.5M3.5 3.5L12.5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}export{b as A}; 4 5//# debugId=0b32b459-a54a-592f-906c-fb77e9e8463f
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.