PageSourceSearch

https://go.chatway.app/assets/useFocusTrap-Bx0xTyr5.js

js chatway.app collected 2026-09-24 15:34:52 UTC 1,654 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`release-202609241050`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d25d5ee3-6f5e-4934-9d84-ed534beec62e`,e._sentryDebugIdIdentifier=`sentry-dbid-d25d5ee3-6f5e-4934-9d84-ed534beec62e`)}catch{}})();import{K as e,Q as t,pt as n}from"./vendor-vue-core-B0avW4A6.js";function r(r,i){let a=null,o=`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`,s=e=>{if(e.key!==`Tab`||!r.value)return;let t=Array.from(r.value.querySelectorAll(o)).filter(e=>e.offsetWidth>0||e.offsetHeight>0);if(t.length===0){e.preventDefault();return}let n=t[0],i=t[t.length-1];if(document.activeElement&&!r.value.contains(document.activeElement)){e.shiftKey?i.focus():n.focus(),e.preventDefault();return}e.shiftKey?(document.activeElement===n||document.activeElement===r.value)&&(i.focus(),e.preventDefault()):(document.activeElement===i||document.activeElement===r.value)&&(n.focus(),e.preventDefault())},c=null;n(i,async t=>{if(t){if(a=document.activeElement,window.addEventListener(`keydown`,s),await e(),!i.value)return;c=setTimeout(()=>{if(i.value&&r.value){let e=Array.from(r.value.querySelectorAll(o)).filter(e=>e.offsetWidth>0||e.offsetHeight>0);e.length>0?e[0].focus():r.value.focus()}},50)}else c!==null&&(clearTimeout(c),c=null),window.removeEventListener(`keydown`,s),a&&a.focus()}),t(()=>{c!==null&&(clearTimeout(c),c=null),window.removeEventListener(`keydown`,s),a&&i.value&&a.focus()})}export{r as t};
2//# sourceMappingURL=useFocusTrap-Bx0xTyr5.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.