PageSourceSearch

https://presidiobus.com/assets/home-DgBO3pCN.js

js presidiobus.com collected 2026-09-29 05:10:34 UTC 20,223 bytes, 1 lines download raw bytes

1import{j as o,r as l,w as Te,c as Ae,u as Oe,C as Ne}from"./chunk-LFPYN7LY-BYCOceFh.js";import{i as ze,H as xe,e as Be,a as He,h as be,F as We,u as $e}from"./alerts-mA4EJBuF.js";import{u as Me}from"./MapControlContext-CaZ7lMlQ.js";import{A as Re}from"./Tag-DsMa3Eur.js";import{b as Ke,N as Ue,a as qe}from"./useNearbyStops-HazlaHFi.js";import{u as Ce,B as O,T as q}from"./index-B19M7xEA.js";import{V as Z}from"./v-stack-C2JudPXh.js";import{m as ee,d as f,B as Ve}from"./button-LMyeCesN.js";import{I as ye}from"./icon-BoqpEvxL.js";import{c as ie,k as ce}from"./spinner-WEkHiO-h.js";import{c as M,f as le,m as Fe,o as Ie,a as de,n as Ye,b as Ge}from"./use-style-config-ZxeY2J_M.js";import{c as T,a as Xe}from"./call-all-DDzecCnU.js";import{v as Je}from"./time-DAo_j7jH.js";import{a as ne,u as se,b as Qe}from"./use-update-effect-NPvO9y9c.js";import"./EnvironmentContext-X49McUcm.js";import"./GeolocationPermissionContext-BNsxlLYQ.js";import"./nearbyStopsService-D1T8Cnfb.js";import"./create-icon-CgxNfmBl.js";const[sn,Ze]=ie({name:"CheckboxGroupContext",strict:!1});function et(e){return o.jsx(M.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:o.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function tt(e){return o.jsx(M.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:o.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function nt(e){const{isIndeterminate:t,isChecked:s,...a}=e,u=t?tt:et;return s||t?o.jsx(M.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:o.jsx(u,{...a})}):null}var st=()=>typeof document<"u",Se=!1,G=null,R=!1,ae=!1,oe=new Set;function ue(e,t){oe.forEach(s=>s(e,t))}var at=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function ot(e){return!(e.metaKey||!at&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ve(e){R=!0,ot(e)&&(G="keyboard",ue("keyboard",e))}function U(e){if(G="pointer",e.type==="mousedown"||e.type==="pointerdown"){R=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let s=!1;try{s=t.matches(":focus-visible")}catch{}if(s)return;ue("pointer",e)}}function rt(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function it(e){rt(e)&&(R=!0,G="virtual")}function ct(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!R&&!ae&&(G="virtual",ue("virtual",e)),R=!1,ae=!1)}function lt(){R=!1,ae=!0}function ke(){return G!=="pointer"}function dt(){if(!st()||Se)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...s){R=!0,e.apply(this,s)},document.addEventListener("keydown",ve,!0),document.addEventListener("keyup",ve,!0),document.addEventListener("click",it,!0),window.addEventListener("focus",ct,!0),window.addEventListener("blur",lt,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",U,!0),document.addEventListener("pointermove",U,!0),document.addEventListener("pointerup",U,!0)):(document.addEventListener("mousedown",U,!0),document.addEventListener("mousemove",U,!0),document.addEventListener("mouseup",U,!0)),Se=!0}function ut(e){dt(),e(ke());const t=()=>e(ke());return oe.add(t),()=>{oe.delete(t)}}const[mt,ht]=ie({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[ft,_e]=ie({strict:!1,name:"FormControlContext"});function pt(e){const{id:t,isRequired:s,isInvalid:a,isDisabled:u,isReadOnly:i,...g}=e,F=l.useId(),S=t||`field-${F}`,x=`${S}-label`,h=`${S}-feedback`,b=`${S}-helptext`,[E,r]=l.useState(!1),[n,I]=l.useState(!1),[y,C]=l.useState(!1),j=l.useCallback((m={},v=null)=>({id:b,...m,ref:ee(v,d=>{d&&I(!0)})}),[b]),L=l.useCallback((m={},v=null)=>({...m,ref:v,"data-focus":f(y),"data-disabled":f(u),"data-invalid":f(a),"data-readonly":f(i),id:m.id!==void 0?m.id:x,htmlFor:m.htmlFor!==void 0?m.htmlFor:S}),[S,u,y,a,i,x]),_=l.useCallback((m={},v=null)=>({id:h,...m,ref:ee(v,d=>{d&&r(!0)}),"aria-live":"polite"}),[h]),p=l.useCallback((m={},v=null)=>({...m,...g,ref:v,role:"group","data-focus":f(y),"data-disabled":f(u),"data-invalid":f(a),"data-readonly":f(i)}),[g,u,y,a,i]),w=l.useCallback((m={},v=null)=>
1({...m,ref:v,role:"presentation","aria-hidden":!0,children:m.children||"*"}),[]);return{isRequired:!!s,isInvalid:!!a,isReadOnly:!!i,isDisabled:!!u,isFocused:!!y,onFocus:()=>C(!0),onBlur:()=>C(!1),hasFeedbackText:E,setHasFeedbackText:r,hasHelpText:n,setHasHelpText:I,id:S,labelId:x,feedbackId:h,helpTextId:b,htmlProps:g,getHelpTextProps:j,getErrorMessageProps:_,getRootProps:p,getLabelProps:L,getRequiredIndicatorProps:w}}const xt=le(function(t,s){const a=Fe("Form",t),u=Ie(t),{getRootProps:i,htmlProps:g,...F}=pt(u),S=de("chakra-form-control",t.className);return o.jsx(ft,{value:F,children:o.jsx(mt,{value:a,children:o.jsx(M.div,{...i({},s),className:S,__css:a.container})})})});xt.displayName="FormControl";const bt=le(function(t,s){const a=_e(),u=ht(),i=de("chakra-form__helper-text",t.className);return o.jsx(M.div,{...a==null?void 0:a.getHelpTextProps(t,s),__css:u.helperText,className:i})});bt.displayName="FormHelperText";function yt(e){const t=_e(),{id:s,disabled:a,readOnly:u,required:i,isRequired:g,isInvalid:F,isReadOnly:S,isDisabled:x,onFocus:h,onBlur:b,...E}=e,r=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&r.push(t.feedbackId),t!=null&&t.hasHelpText&&r.push(t.helpTextId),{...E,"aria-describedby":r.join(" ")||void 0,id:s??(t==null?void 0:t.id),isDisabled:a??x??(t==null?void 0:t.isDisabled),isReadOnly:u??S??(t==null?void 0:t.isReadOnly),isRequired:i??g??(t==null?void 0:t.isRequired),isInvalid:F??(t==null?void 0:t.isInvalid),onFocus:T(t==null?void 0:t.onFocus,h),onBlur:T(t==null?void 0:t.onBlur,b)}}function St(e={}){const t=yt(e),{isDisabled:s,isReadOnly:a,isRequired:u,isInvalid:i,id:g,onBlur:F,onFocus:S,"aria-describedby":x}=t,{defaultChecked:h,isChecked:b,isFocusable:E,onChange:r,isIndeterminate:n,name:I,value:y,tabIndex:C=void 0,"aria-label":j,"aria-labelledby":L,"aria-invalid":_,...p}=e,w=Ye(p,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),m=ne(r),v=ne(F),d=ne(S),[k,z]=l.useState(!1),[W,V]=l.useState(!1),[$,B]=l.useState(!1),K=l.useRef(!1);l.useEffect(()=>ut(c=>{K.current=c}),[]);const D=l.useRef(null),[Y,X]=l.useState(!0),[H,J]=l.useState(!!h),te=b!==void 0,P=te?b:H,me=l.useCallback(c=>{if(a||s){c.preventDefault();return}te||J(P?c.currentTarget.checked:n?!0:c.currentTarget.checked),m==null||m(c)},[a,s,P,te,n,m]);se(()=>{D.current&&(D.current.indeterminate=!!n)},[n]),Qe(()=>{s&&z(!1)},[s,z]),se(()=>{const c=D.current;if(!(c!=null&&c.form))return;const A=()=>{J(!!h)};return c.form.addEventListener("reset",A),()=>{var N;return(N=c.form)==null?void 0:N.removeEventListener("reset",A)}},[]);const he=s&&!E,fe=l.useCallback(c=>{c.key===" "&&B(!0)},[B]),pe=l.useCallback(c=>{c.key===" "&&B(!1)},[B]);se(()=>{if(!D.current)return;D.current.checked!==P&&J(D.current.checked)},[D.current]);const we=l.useCallback((c={},A=null)=>{const N=Q=>{k&&Q.preventDefault(),B(!0)};return{...c,ref:A,"data-active":f($),"data-hover":f(W),"data-checked":f(P),"data-focus":f(k),"data-focus-visible":f(k&&K.current),"data-indeterminate":f(n),"data-disabled":f(s),"data-invalid":f(i),"data-readonly":f(a),"aria-hidden":!0,onMouseDown:T(c.onMouseDown,N),onMouseUp:T(c.onMouseUp,()=>B(!1)),onMouseEnter:T(c.onMouseEnter,()=>V(!0)),onMouseLeave:T(c.onMouseLeave,()=>V(!1))}},[$,P,s,k,W,n,i,a]),je=l.useCallback((c={},A=null)=>({...c,ref:A,"data-active":f($),"data-hover":f(W),"data-checked":f(P),"data-focus":f(k),"data-focus-visible":f(k&&K.current),"data-indeterminate":f(n),"data-disabled":f(s),"data-invalid":f(i),"data-readonly":f(a)}),[$,P,s,k,W,n,i,a]),Le=l.useCallback((c={},A=null)=>({...w,...c,ref:ee(A,N=>{N&&X(N.tagName==="LABEL")}),onClick:T(c.onClick,()=>{var N;Y||((N=D.current)==null||N.click(),requestAnimationFrame(()=>{var Q;(Q=D.current)==null||Q.focus({preventScroll:!0})}
1))}),"data-disabled":f(s),"data-checked":f(P),"data-invalid":f(i)}),[w,s,P,i,Y]),Pe=l.useCallback((c={},A=null)=>({...c,ref:ee(D,A),type:"checkbox",name:I,value:y,id:g,tabIndex:C,onChange:T(c.onChange,me),onBlur:T(c.onBlur,v,()=>z(!1)),onFocus:T(c.onFocus,d,()=>z(!0)),onKeyDown:T(c.onKeyDown,fe),onKeyUp:T(c.onKeyUp,pe),required:u,checked:P,disabled:he,readOnly:a,"aria-label":j,"aria-labelledby":L,"aria-invalid":_?!!_:i,"aria-describedby":x,"aria-disabled":s,"aria-checked":n?"mixed":P,style:Je}),[I,y,g,C,me,v,d,fe,pe,u,P,he,a,j,L,_,i,x,s,n]),De=l.useCallback((c={},A=null)=>({...c,ref:A,onMouseDown:T(c.onMouseDown,vt),"data-disabled":f(s),"data-checked":f(P),"data-invalid":f(i)}),[P,s,i]);return{state:{isInvalid:i,isFocused:k,isChecked:P,isActive:$,isHovered:W,isIndeterminate:n,isDisabled:s,isReadOnly:a,isRequired:u},getRootProps:Le,getCheckboxProps:we,getIndicatorProps:je,getInputProps:Pe,getLabelProps:De,htmlProps:w}}function vt(e){e.preventDefault(),e.stopPropagation()}function kt(e){const[t,s]=l.useState(e),[a,u]=l.useState(!1);return e!==t&&(u(!0),s(e)),a}const gt={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Et={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Ct=ce({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Ft=ce({from:{opacity:0}
1,to:{opacity:1}}),It=ce({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),re=le(function(t,s){const a=Ze(),u={...a,...t},i=Fe("Checkbox",u),g=Ie(t),{spacing:F="0.5rem",className:S,children:x,iconColor:h,iconSize:b,icon:E=o.jsx(nt,{}),isChecked:r,isDisabled:n=a==null?void 0:a.isDisabled,onChange:I,inputProps:y,...C}=g;let j=r;a!=null&&a.value&&g.value&&(j=a.value.includes(g.value));let L=I;a!=null&&a.onChange&&g.value&&(L=Xe(a.onChange,I));const{state:_,getInputProps:p,getCheckboxProps:w,getLabelProps:m,getRootProps:v}=St({...C,isDisabled:n,isChecked:j,onChange:L}),d=kt(_.isChecked),k=l.useMemo(()=>({animation:d?_.isIndeterminate?`${Ft} 20ms linear, ${It} 200ms linear`:`${Ct} 200ms linear`:void 0,...i.icon,...Ge({fontSize:b,color:h})}),[h,b,d,_.isIndeterminate,i.icon]),z=l.cloneElement(E,{__css:k,isIndeterminate:_.isIndeterminate,isChecked:_.isChecked});return o.jsxs(M.label,{__css:{...Et,...i.container},className:de("chakra-checkbox",S),...v(),children:[o.jsx("input",{className:"chakra-checkbox__input",...p(y,s)}),o.jsx(M.span,{__css:{...gt,...i.control},className:"chakra-checkbox__control",...w(),children:z}),x&&o.jsx(M.span,{className:"chakra-checkbox__label",...m(),__css:{marginStart:F,...i.label},children:x})]})});re.displayName="Checkbox";function _t(e,t){const s=(e??"").trim(),a=(t??"").trim();if(s===a)return 0;if(s==="")return 1;if(a==="")return-1;const u=/^\d/.test(s),i=/^\d/.test(a);return u&&!i?-1:!u&&i?1:s.localeCompare(a,"en",{numeric:!0,sensitivity:"base"})}const wt={flexShrink:0,alignSelf:"stretch"},jt={display:"flex",alignItems:"center",pl:3},Lt={flexShrink:0},Pt={flex:1,minW:0},Dt={display:"block",maxW:"100%",w:"fit-content"},Tt={display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},At="0 4px 7px rgba(0, 0, 0, 0.3)",Ot={display:"flex",alignItems:"center",justifyContent:"space-between",px:4,w:"100%"},Nt={flex:1,role:"button",tabIndex:0,spacing:2,overflow:"hidden"};function ge(e,t,s,a){return{".chakra-checkbox__control":{bg:`${t} !important`,borderColor:s,borderWidth:(e==null?void 0:e.borderWidth)||"0",width:(e==null?void 0:e.size)||"24px",height:(e==null?void 0:e.size)||"24px",outline:"none !important",boxShadow:"none !important",_hover:{bg:`${t} !important`,borderColor:s,outline:"none !important",boxShadow:"none !important"},_checked:{bg:`${t} !important`,borderColor:s,outline:"none !important",boxShadow:"none !important",_hover:{bg:`${t} !important`,borderColor:s,outline:"none !important",boxShadow:"none !important"}},_focus:{outline:"none !important",boxShadow:"none !important"},_focusVisible:{outline:"none !important",boxShadow:"none !important"}},".chakra-checkbox__icon, .chakra-checkbox__icon svg, svg":{color:`${t} !important`,fill:`${t} !important`,stroke:`${t} !important`},"&[data-checked] .chakra-checkbox__icon, &[data-checked] .chakra-checkbox__icon svg, &[data-checked] svg":{color:`${a} !important`,fill:`${a} !important`,stroke:`${a} !important`},"&[data-indeterminate] .chakra-checkbox__icon, &[data-indeterminate] .chakra-checkbox__icon svg, &[data-indeterminate] svg":{color:`${a} !important`,fill:`${a} !important`,stroke:`${a} !important`}}}function Ee({title:e,routes:t,selectedRoutes:s,onRouteToggle:a,onBulkRouteToggle:u,onRouteClick:i,defaultExpanded:g=!0,collapsible:F=!0,routesWithAlerts:S,isMobile:x=!1}){var p,w,m,v;const{theme:h}=Ce(),[b,E]=l.useState(g),r=h.components.groupingTitle,n=h.components.routeRow,I=l.useMemo(()=>[...t].sort((d,k)=>_t(d.name,k.name)),[t]),y=I.map(d=>String(d.id)),C=y.filter(d=>s.includes(d)).length,j=y.length>0&&C===y.length,L=C>0&&C<y.length,_=d=>{d.stopPropagation(),u?u(y):j?y.forEach(k=>{s.includes(k)&&a(k)}):y.forEach(k=>{s.includes(k)||a(k)})};return o.jsxs(O,{mb:4,children:[o.jsxs(xe,{w:"full",justifyContent:"space-between",spacing:2,children:[F?o.jsxs(Ve,{variant:"ghost",flex:1,justifyContent:"space-between",p:0,h:"auto",minH:"auto",onClick:()=>E(!b),_hover:{bg:"transparent"},tabIndex:0,children:[o.jsx(q,{fontSize:r==null?void 0:r.fontSize,fontWeight:r==null?void 0:r.fontWeight,color:r==null?void 0:r.color,fontFamily:(r==null?void 0:r.fontFamily)||h.typography.fontFamily.body,sx:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},children:e}),o.jsx(ye,{as:b?Be:He,color:((w=(p=h.components.routesSection)==null?void 0:p.toggleIcon)==null?void 0:w.color)||h.colors.text.secondary,boxSize:((v=(m=h.components.routesSection)==null?void 0:m.toggleIcon)==null?void 0:v.size)||"20px"})]}):o.jsx(O,{flex:1,p:0,children:o.jsx(q,{fontSize:r==null?void 0:r.fontSize,fontWeight:r==null?void 0:r.fontWeight,color:r==null?void 0:r.color,fontFamily:(r==null?void 0:r.fontFamily)||h.typography.fontFamily.body,sx:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},children:e})}),!x&&o.jsx(re,{isChecked:j,isIndeterminate:L,onChange:_,onClick:d=>d.stopPropagation(),"aria-label":`Select all routes in ${e}`,size:"lg",icon:o.jsx(be,{}),sx:{borderRadius:h.radii.sm,...ge({size:"24px",borderWidth:"2px"},"white",h.colors.border.default,"rgba(44, 50, 66, 1)")},pr:3})]}),(F?b:!0)&&o.jsxs(Z,{spacing:2,align:"stretch",mt:3,children:[I.map(d=>{var z,W,V,$,B,K,D,Y,X;const k=d.name;return o.jsxs(O,{bg:d.color,borderRadius:n==null?void 0:n.borderRadius,boxSh
1adow:n==null?void 0:n.shadow,...Ot,transition:x?void 0:`box-shadow ${h.transitions.normal}`,_hover:x?void 0:{boxShadow:At},sx:{height:n==null?void 0:n.height,minHeight:n==null?void 0:n.height,...x?{}:{"&:hover .route-selection-title":{"&::after":{opacity:1}}}},children:[o.jsxs(xe,{...Nt,onClick:()=>i==null?void 0:i(String(d.id)),onKeyDown:H=>{(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),i==null||i(String(d.id)))},"aria-label":k,children:[o.jsx(O,{...Pt,"aria-hidden":!0,children:o.jsx(O,{as:"span",className:"route-selection-title",fontSize:(z=n==null?void 0:n.title)==null?void 0:z.fontSize,fontWeight:(W=n==null?void 0:n.title)==null?void 0:W.fontWeight,color:d.textColor,fontFamily:((V=n==null?void 0:n.title)==null?void 0:V.fontFamily)||h.typography.fontFamily.body,...Dt,sx:{position:"relative","&::after":{content:'""',position:"absolute",left:0,right:0,bottom:"1px",height:"2px",backgroundColor:d.textColor||"white",pointerEvents:"none",opacity:0,transition:x?"none":"opacity 0.2s ease"}},children:o.jsx(O,{as:"span",...Tt,children:d.name})})}),(S==null?void 0:S.has(d.id))&&o.jsx(ye,{as:We,color:d.textColor||"white",boxSize:(($=n==null?void 0:n.alertIcon)==null?void 0:$.size)||4,...Lt,marginRight:x?0:3,"aria-label":"Route has active alerts"})]}),!x&&o.jsxs(o.Fragment,{children:[o.jsx(O,{width:((B=n==null?void 0:n.divider)==null?void 0:B.width)||"1px",backgroundColor:d.textColor||"white",my:((K=n==null?void 0:n.divider)==null?void 0:K.paddingY)||3,...wt}),o.jsx(O,{...jt,children:o.jsx(re,{isChecked:s.includes(String(d.id)),onChange:H=>{H.stopPropagation(),a(String(d.id))},onClick:H=>H.stopPropagation(),"aria-label":`Select ${d.name}`,size:"lg",icon:o.jsx(be,{}),sx:{borderRadius:h.radii.sm,...ge(n==null?void 0:n.checkbox,((D=n==null?void 0:n.checkbox)==null?void 0:D.backgroundColor)||"white",((Y=n==null?void 0:n.checkbox)==null?void 0:Y.borderColor)||"white",((X=n==null?void 0:n.checkbox)==null?void 0:X.iconColor)||"black")}})})]})]},d.id)}),t.length===0&&o.jsx(q,{fontSize:"sm",color:h.colors.text.tertiary,textAlign:"center",py:2,fontFamily:h.typography.fontFamily.body,children:"No routes in this section"})]})]})}function zt({services:e,routes:t,selectedRoutes:s,onRouteToggle:a,onBulkRouteToggle:u,onRouteClick:i,title:g,defaultExpanded:F=!0,hideHeader:S=!1,messages:x,isMobile:h=!1,defaultRoutes:b}){const{theme:E}=Ce(),r=E.components.groupingCaption,n=Array.isArray(e)?e:[],I=Array.isArray(t)?t:[],y=l.useMemo(()=>{const p=new Set;if(!x||x.length===0)return p;const w=new Date;for(const m of x){if(!ze(m))continue;const v=new Date(m.start),d=new Date(m.end);if(w>=v&&w<=d&&m.assignments&&Array.isArray(m.assignments.routes))for(const k of m.assignments.routes)p.add(k.id)}return p},[x]),C=n.filter(p=>p&&p.routes&&p.routes.length>0),j=C.length>1,L=n.length>0?n.flatMap(p=>(p==null?void 0:p.routes)||[]):I,_=l.useRef(null);return l.useEffect(()=>{if(!(b!=null&&b.length)||!u||L.length===0)return;const p=JSON.stringify([...b].sort());_.current!==p&&(_.current=p,u(b))},[b==null?void 0:b.length,L.length,u]),o.jsxs(O,{children:[!S&&o.jsxs(q,{fontSize:r==null?void 0:r.fontSize,fontWeight:r==null?void 0:r.fontWeight,color:r==null?void 0:r.color,fontFamily:(r==null?void 0:r.fontFamily)||E.typography.fontFamily.body,mb:3,sx:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},children:[g??"Routes"," (",L.length," total)"]}),L.length===0&&n.length===0&&I.length===0?o.jsxs(O,{bg:E.colors.status.warning.bg,border:"1px solid",borderColor:E.colors.status.warning.border,borderRadius:E.radii.md,p:4,textAlign:"center",children:[o.jsx(q,{fontSize:"sm",color:E.colors.status.warning.text,fontWeight:"medium",mb:2,children:"No routes available"}),o.jsx(q,{fontSize:"xs",color:E.colors.status.warning.text,children:"This customer may not have data in this environment. Try switching to a different customer or environment."})]}):j?o.jsx(Z,{spacing:2,align:"stretch",children:C.map(p=>{var v;const w=p.routes||[],m=((v=p.name)==null?void 0:v.trim())||`Routes (${w.length})`;return o.jsx(Ee,{title:m,routes:w,selectedRoutes:s,onRouteToggle:a,onBulkRouteToggle:u,onRouteClick:i,defaultExpanded:F,collapsible:!0,routesWithAlerts:y,isMobile:h}
1,p.id)})}):o.jsx(Z,{spacing:2,align:"stretch",children:o.jsx(Ee,{title:"Routes",routes:L,selectedRoutes:s,onRouteToggle:a,onBulkRouteToggle:u,onRouteClick:i,defaultExpanded:F,collapsible:!1,routesWithAlerts:y,isMobile:h})})]})}const an=Te(function(){const t=Ae(),{setNavConfig:s,isMobile:a}=Oe(),{alerts:u,messages:i,services:g,selectedRoutes:F,onRouteToggle:S,onBulkRouteToggle:x}=$e(),{setFocusedRoute:h}=Me(),{arrivalRows:b,isLoading:E,hasCompletedInitialLoad:r}=Ke(5),[n]=Ne(),[I,y]=l.useState([]);return l.useEffect(()=>(s==null||s({showBack:!1,routeColor:void 0,routeTextColor:void 0}),()=>s==null?void 0:s({showBack:!1,routeColor:void 0,routeTextColor:void 0})),[s]),l.useEffect(()=>{h(null)},[h]),l.useEffect(()=>{const C=n.get("route"),j=C?C.split(","):null;y(j||[])},[n]),o.jsx(O,{w:"100%",children:o.jsxs(Z,{spacing:6,align:"stretch",w:"100%",children:[o.jsx(Re,{alerts:u}),o.jsx(Ue,{children:o.jsx(qe,{arrivalRows:b,isLoading:E,hasCompletedInitialLoad:r})}),o.jsx(zt,{services:g,selectedRoutes:F,onRouteToggle:S,onBulkRouteToggle:x,onRouteClick:C=>t(`/route/${C}`),title:"",defaultExpanded:!0,hideHeader:!0,messages:i,isMobile:a,defaultRoutes:I})]})})});export{an as default};

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.