1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{t as n}from"./jsx-runtime-BdxMnOeJ.js";import{c as r}from"./react-router-BkmJBoOP.js";import{t as i}from"./polymorphic-BHw2eKRx.js";var a=e(t()),o=n(),s={POST:`detailed-status`},c=(0,a.createContext)(null),l=({children:e})=>{let t=(0,a.useRef)(!1),n=(0,a.useRef)(null),{pathname:i,search:s,state:l}=r(),{focusTarget:u}=l??{};return(0,a.useLayoutEffect)(()=>{let e=n.current;if(e===null){n.current={pathname:i,search:s,focusTarget:u};return}(e.pathname!==i||e.search!==s||e.focusTarget!==u)&&(n.current={pathname:i,search:s,focusTarget:!1},t.current=u??!0)},[i,s,u]),(0,o.jsx)(c.Provider,{value:t,children:e})};function u(e){let t=(0,a.useContext)(c);return(0,a.useCallback)(n=>{let r=t?.current;!n||!r||(r===!0||r===e)&&setTimeout(()=>{n.focus({preventScroll:!0})},0)},[t,e])}var d=i(({as:e=`h1`,focusTargetName:t,children:n,...r})=>{let i=u(t);return(0,o.jsx)(e,{ref:i,tabIndex:-1,...r,children:n})});export{l as n,d as r,s as t}; 2//# sourceMappingURL=navigation_focus_target-B65hNV9H.js.map
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.