PageSourceSearch

https://canalrivertrust.org.uk/build/2088.fff97afc.js

js canalrivertrust.org.uk collected 2026-09-24 08:45:31 UTC 2,457 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2088],{72088:function(n,t,e){e.d(t,{default:function(){return i}});var r=e(60377),u=e(53346);function o(n){const t=document.activeElement;if(!(0,u.m0)(n,"ArrowLeft")||!(0,u.l0)(t)||!(0,u.qB)(t))return;n.preventDefault();const e=(0,u.jQ)((0,u.xc)(t)),r=e.indexOf(t);e[(0,u.ts)(e,r)].focus()}function i(){return(0,r.A)("keydown",o),null}},53346:function(n,t,e){e.d(t,{Cb:function(){return s},D3:function(){return f},jQ:function(){return c},l0:function(){return A},m0:function(){return p},nk:function(){return a},pC:function(){return m},qB:function(){return v},r9:function(){return i},ts:function(){return l},xc:function(){return o}});const r=["menu-main","menu-explorers"],u=["menu","menubar"];function o(n){return u.includes(n.getAttribute("role"))?n:o(n.parentNode)}function i(n){const t=n.getAttribute("class");return"menu_level_1"===t?1:"menu_level_2"===t?2:i(n.parentNode)}function c(n){const t=n.getAttribute("id");return Array.from(n.parentNode.querySelectorAll(`#${t} > li > [role=menuitem], #${t} > ul > li > div > [role=menuitem]`))}function f(n,t){const e=t+1;return e>n.length-1?0:e}function l(n,t){const e=t-1;return e<0?n.length-1:e}function d(n){return n&&"NAV"!==n.nodeName?d(n.parentNode):n}function s(n){return(n=d(n))?n.querySelector("ul"):null}function a(n){var t;return r.includes(null===(t=s(n))||void 0===t?void 0:t.getAttribute("id"))}function v(n){const t=s(n);return"menubar"===t.getAttribute("role")&&!r.includes(t.getAttribute("id"))}function m(n){var t;return"menu-footer"===(null===(t=s(n))||void 0===t?void 0:t.getAttribute("id"))}function A(n){return"menuitem"===n.getAttribute("role")}function p(n,t){return n.key===t}},2739:function(n,t,e){e.d(t,{AU:function(){return u},Bd:function(){return o},on:function(){return r}});function r(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];n&&n.addEventListener&&n.addEventListener.apply(n,t)}function u(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];n&&n.removeEventListener&&n.removeEventListener.apply(n,t)}var o="undefined"!=typeof window},60377:function(n,t,e){var r=e(96540),u=e(2739),o=u.Bd?window:null,i=function(n){return!!n.addEventListener},c=function(n){return!!n.on};t.A=function(n,t,e,f){void 0===e&&(e=o),(0,r.useEffect)((function(){if(t&&e)return i(e)?(0,u.on)(e,n,t,f):c(e)&&e.on(n,t,f),function(){i(e)?(0,u.AU)(e,n,t,f):c(e)&&e.off(n,t,f)}}),[n,t,e,JSON.stringify(f)])}}}]);

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.