PageSourceSearch

https://nextthere.com/assets/StatusAlertView-DwmBub6-.js

js nextthere.com collected 2026-10-02 05:05:27 UTC 2,453 bytes, 1 lines download raw bytes

1import{S as x}from"./SimplePanel-CrGTrN0K.js";import{_ as A}from"./AlertSummaryView.vue_vue_type_script_setup_true_lang-CESa_ShO.js";import{d as C,r as s,c as y,i as G,p as I,k as u,b as f,w as B,e as V,a as g,l as q,g as D,F as N,o as i}from"./index-DbpIxVVg.js";import{S as E}from"./ServiceAlertService-DtVcqPAR.js";import{A as F}from"./ActivityIndicator-CHNVpzvm.js";import{_ as P}from"./AlertCalendarWeek.vue_vue_type_script_setup_true_lang-BDu5_XAd.js";import{u as Q}from"./entity-Dyy2H1qK.js";import"./Stop-8NKSpgr4.js";import"./RouteGlyph.vue_vue_type_script_setup_true_lang-CZS1VAaM.js";import"./RoundedBadge-zDfp8xRL.js";import"./RelativeTime.vue_vue_type_script_setup_true_lang-BRXoPN3V.js";import"./PaginatedResultSet-gBeGRM8h.js";import"./OtrStatus-DmpbC-wt.js";import"./OtrTripMetrics-8M7zv94c.js";import"./Incident-SBCbh7or.js";import"./NotificationItem-4HMpixlg.js";import"./RouteGroup-C9eTeiZ3.js";import"./FacetGroupResultSet-C1YPHhsR.js";import"./ExclamationTriangleIcon-B1DgQ3b5.js";import"./CheckIcon-Dnwzojqc.js";const T={role:"list",class:"divide-y divide-gray-200-d text-sm"},ie=C({__name:"StatusAlertView",props:{countryCode:{type:String,required:!0},regionCode:{type:String,required:!0},alertGroupId:{type:String,required:!0}},setup(n){const c=n,r=s(),l=s(!1),d=s(),o=s(),S=Q(),k=new E,p=y(()=>{var e;return(e=S.statusIndex)==null?void 0:e.alertGroups.find(t=>t.id===c.alertGroupId)}),h=y(()=>{var e,t;if((e=r.value)!=null&&e.length&&o.value){const a=o.value.plus({hour:3}),_=o.value.plus({hour:23});return(t=r.value)==null?void 0:t.filter(w=>{var v;return(v=w.activePeriod)==null?void 0:v.some(b=>b.intersects(a,_))})}return r.value});G(()=>m()),I(()=>c.alertGroupId,()=>m());async function m(){if(p.value)try{l.value=!0,d.value=null,r.value=await k.findActiveByQuery(p.value.buildQuery())}catch(e){d.value=e}finally{l.value=!1}}return(e,t)=>l.value?(i(),u(F,{key:0})):r.value?(i(),u(x,{key:1},{default:B(()=>[n.alertGroupId==="trackwork"?(i(),u(P,{key:0,alerts:r.value,"selected-day":o.value,type:"routes",class:"px-4 py-4 border-b border-gray-200-d",onDayClicked:t[0]||(t[0]=a=>o.value=a)},null,8,["alerts","selected-day"])):f("",!0),V("ul",T,[(i(!0),g(N,null,q(h.value,a=>(i(),g("li",{key:a.id,class:"relative py-5 px-4 hover:bg-gray-50 dark:hover:bg-gray-800 focus-within:ring-2 focus-within:ring-inset focus-within:ring-orange-600"},[D(A,{alert:a},null,8,["alert"])]))),128))])]),_:1})):f("",!0)}});export{ie 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.