PageSourceSearch

https://www.gotransit.com/_next/static/chunks/8266.ad88cd8dd44949b5.js

js gotransit.com collected 2026-09-24 08:46:24 UTC 7,315 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8266],{59159:function(e,t,n){var r=n(85893),l=n(52030);t.W=({items:e=[],activeItemIndex:t,activeItemClasses:n="",onItemClick:a,navigationFooter:o})=>r.jsxs("nav",{className:l("pl-48 lg:pl-0 text-left after:absolute after:left-[8px] after:top-4","after:w-[1px] after:bottom-0 after:bg-neutral-300 lg:after:content-none"),children:[r.jsx("ul",{className:"flex flex-col gap-[13px]",children:e?.map((e,o)=>{let i=t===o;return r.jsx("li",{className:l({"relative cx-subtitle-200 z-[1] before:absolute before:-left-[48px] lg:before:-left-[56px]":i,"before:top-4 before:h-16 before:w-16 before:bg-go-primary-base before:rounded-full":i,[n]:i,"cx-body-text-small":!i}),children:r.jsx("a",{href:e.id?`#${e.id}`:"#",className:l("cx-focus-outline",{"text-global-black":i,"text-neutral-700":!i}),onClick:e=>{e.preventDefault(),a(o)},children:e.textContent})},o)})}),o]})},10761:function(e,t,n){var r=n(67294),l=n(17950),a=n(32359),o=n(67487);t.l=(e,t)=>{let[n,i]=r.useState([]),[s,u]=r.useState([]),[c,f]=r.useState(0),[d,p]=r.useState(),[b,m]=r.useState([]),{scrollY:h}=a.useScroll(),x=o.useScrollDirection(),{offsetTop:g,topRow:v}
1=t,w=l.useBreakpointSpecificValue({mobile:v.mobile},v.desktop),k=l.useBreakpointSpecificValue({mobile:g.mobile,tablet:g.tablet},g.desktop),E=r.useRef(new ResizeObserver(()=>N())),y=r.useCallback(()=>e.current?Array.from(e.current.querySelectorAll("h2")).filter(e=>!!e.textContent?.trim()):[],[e]),S=r.useCallback(e=>Math.round(e.getBoundingClientRect().top)+Math.round(h)-k,[k,h]),C=r.useCallback(()=>n.reduce((e,t,n,r)=>{let l=[];return 0===n?l.push(-1/0):l.push(S(t)),n===r.length-1?l.push(1/0):l.push(S(r[n+1])),e.push(l),e},[]),[n,S]),N=r.useCallback(()=>{e.current&&(i(y()),m(C()))},[e,C,y]);r.useEffect(()=>{if(e.current){let t=e.current,n=E.current;n.observe(t);let r=y();return i(r),u(r.map(e=>({textContent:e.textContent?.trim()||"",id:e.id}))),()=>{t&&n.unobserve(t)}}},[E,e,y]),r.useEffect(()=>{if(0===n.length)return;m(C());let e=()=>m(C());return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[n,S,C]),r.useEffect(()=>{if(0===b.length)return;let e=Math.round(h+(x===o.ScrollDirection.Up?w:0));f(b.findIndex(([t,n])=>e>=t&&e<n)||0)},[h,x,w,s,b]),r.useEffect(()=>{let e=s[c];e&&p(e.textContent)},[c,s]);let j=r.useCallback(e=>{if(0===n.length)return;let t=S(n[e]),r=h>t;setTimeout(()=>{window.scrollTo({top:r?t-w:t,behavior:"smooth"})})},[n,h,S,w]);return r.useEffect(()=>{let e=decodeURI(window.location.hash.slice(1)),t=n.findIndex(t=>t.id===e);t>=0&&f(t)},[n]),{activeOnPageNavItem:c,activeOnPageNavItemTitle:d,onPageNavigationItems:s,handleOnPageNavItemClick:j}}},88266:function(e,t,n){n.r(t),n.d(t,{MobileOnPageNavigation:function(){return N}});var r=n(85893),l=n(67294),a=new WeakMap,o=new WeakMap,i={},s=0,u=function(e){return e&&(e.host||u(e.parentNode))},c=function(e,t,n,r){var l=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=u(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var c=i[n],f=[],d=new Set,p=new Set(l),b=function(e){!e||d.has(e)||(d.add(e),b(e.parentNode))};l.forEach(b);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))m(e);else{var t=e.getAttribute(r),l=null!==t&&"false"!==t,i=(a.get(e)||0)+1,s=(c.get(e)||0)+1;a.set(e,i),c.set(e,s),f.push(e),1===i&&l&&o.set(e,!0),1===s&&e.setAttribute(n,"true"),l||e.setAttribute(r,"true")}})};return m(t),d.clear(),s++,function(){f.forEach(function(e){var t=a.get(e)-1,l=c.get(e)-1;a.set(e,t),c.set(e,l),t||(o.has(e)||e.removeAttribute(r),o.delete(e)),l||e.removeAttribute(n)}),--s||(a=new WeakMap,a=new WeakMap,o=new WeakMap,i={})}},f=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),l=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return l?(r.push.apply(r,Array.from(l.querySelectorAll("[aria-live]"))),c(r,l,n,"aria-hidden")):function(){return null}},d=n(50899),p=n(58756),b=n(59159),m=n(68399),h=n(28550),x=n(64920),g=n(69207),v=n(17950),w=n(10761),k=n(40645),E=n(3173),y=n(37285);let S=(e,t)=>"".concat((parseInt(e,10)||0)+-1*t,"px"),C=()=>{var e;let t=null===(e=document.getElementById(E.W))||void 0===e?void 0:e.getBoundingClientRect();if(t&&!(t.top<=0)){if("fixed"===window.getComputedStyle(document.body).position){let e=window.getComputedStyle(document.body).top;document.body.style.top=S(e,t.top)}else window.scrollTo(0,t.top+document.documentElement.scrollTop)}},N=e=>{let{pageContainerRef:t}=e,{activeOnPageNavItem:n,activeOnPageNavItemTitle:a,onPageNavigationItems:o,handleOnPageNavItemClick:i}=(0,w.l)(t,y.oX),{isTopNavBarHidden:s}=(0,k._)(),u=(0,v.useBreakpointSpecificValue)({mobile:E.Y.mobile,tablet:s?E.Y.tablet:E.Y.tablet+E.Y.topRow},0),{t:c}=(0,d.$G)(),S=(0,l.useRef)(null),N=(0,l.useRef)(null),[j,I]=(0,l.useState)(!1);(0,g.useBodyScrollLock)(j,S);let[A,T]=(0,l.useState)(!1),B=(0,l.useRef)(null),M=(0,l.useCallback)(()=>{if(!t.current||!B.current)return;let{top:e,height:n}=B.current.getBoundingClientRect(),r=t.current.getBoundingClientRect().bottom;T(e<=u&&r>u+n)},[t,B,u]);return(0,l.useEffect)(()=>(document.addEventListener("scroll",M,{capture:!1,passive:!0}),document.body.classList.add("with-onpage-nav"),()=>{document.removeEventListener("scroll",M),document.body.classList.remove("with-onpage-nav")}),[M]),(0,l.useEffect)(()=>{let e;return N.current&&j&&(e=f(N.current)),j&&C(),()=>{e&&e()}},[j]),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"cx-small-title mb-[13px]",children:c("jumpToSection")}),(0,r.jsxs)("button",{ref:B,className:"relative flex justify-between align-middle w-full p-12 pl-16 cx-body-text text-neutral-700 bg-neutral-200 cx-focus-outline after:absolute after:h-[2px] after:bottom-0 after:left-0 after:right-0 after:bg-global-black",onClick:()=>{I(!0)},children:[(0,r.jsx)("span",{className:"truncate",children:a}),(0,r.jsx)(x.ExpandMore,{className:"shrink-0"})]}),(0,r.jsx)(m.Portal,{id:"header-portal",children:(0,r.jsxs)(p.ZP,{disabled:!j,ref:N,children:[(A||j)&&(0,r.jsxs)("button",{className:"z-[11] relative flex justify-between align-middle w-full p-12 px-24 sm:px-40 cx-body-text font-medium text-global-black bg-global-white focus:outline-none after:absolute after:h-[1px] after:bottom-0 after:left-0 after:right-0 after:bg-neutral-400",onClick:()=>{I(!j),M()},children:[(0,r.jsx)("span",{className:"truncate",children:j?c("jumpToSection"):a}),j?(0,r.jsx)(h.ExpandLess,{className:"shrink-0"}):(0,r.jsx)(x.ExpandMore,{className:"shrink-0"})]}),j&&(0,r.jsx)("div",{ref:S,className:"z-10 relative h-screen top-0 p-24 overflow-auto bg-global-white",children:(0,r.jsx)("div",{className:"relative h-full",children:(0,r.jsx)(b.W,{items:o,activeItemIndex:n,onItemClick:e=>{I(!1),i(e)}})})})]})})]})}},37285:function(e,t,n){n.d(t,{oX:function(){return s}});var r,l,a,o,i=n(3173);(r=a||(a={}))[r.MOBILE=40]="MOBILE",r[r.DESKTOP=48]="DESKTOP",(l=o||(o={}))[l.MOBILE=i.Y.mobile+40+48]="MOBILE",l[l.TABLET=i.Y.tablet+48+48]="TABLET",l[l.DESKTOP=i.Y.desktop+48]="DESKTOP";let s={offsetTop:{mobile:o.MOBILE,tablet:o.TABLET,desktop:o.DESKTOP}
1,topRow:{desktop:i.Y.topRow,mobile:0}}}}]);

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.