PageSourceSearch

https://nextthere.com/assets/NotificationItemView-DmdZi1S6.js

js nextthere.com collected 2026-10-02 05:06:22 UTC 4,308 bytes, 1 lines download raw bytes

1var D=Object.defineProperty;var $=(a,e,t)=>e in a?D(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var y=(a,e,t)=>$(a,typeof e!="symbol"?e+"":e,t);import{x as w,d as R,r as p,i as V,a as v,k as x,b as m,g as r,w as l,F as M,e as i,v as c,t as d,s as P,h as I,o as n}from"./index-DbpIxVVg.js";import{N as A}from"./NotificationItemResult-wWRr9Ub0.js";import{P as F}from"./PageHeader-D-doL8ee.js";import{R as h}from"./RoundedBadge-zDfp8xRL.js";import{P as j}from"./PageContent-CaO1rUex.js";import{D as E}from"./DeviceNotificationService-Bp7AAmL5.js";import{_ as U}from"./DeviceNotificationList.vue_vue_type_script_setup_true_lang-CTX0jCqF.js";import{r as q}from"./DevicePhoneMobileIcon-CUzxCy8P.js";import{r as H}from"./ArrowDownTrayIcon-B8ldtCWP.js";import"./NotificationItem-4HMpixlg.js";import"./Stop-8NKSpgr4.js";import"./RouteGroup-C9eTeiZ3.js";import"./WFCheckIn-C1ZIiw9D.js";import"./SubscriberRule-TXsZFwtf.js";import"./Device-DZVV7L7n.js";import"./PaginatedResultSet-gBeGRM8h.js";import"./FacetGroupResultSet-C1YPHhsR.js";import"./CheckCircleIcon-DULLF68H.js";class J{constructor(e=w().apiClient){y(this,"client");this.client=e}async findById(e){const t=await this.client.get(`/v1/notification/item/${e}`);return A.fromJSON(t.data)}}const L={class:"flex py-4 justify-center"},O={class:"lg:w-3/5 space-y-2"},T={class:"flex items-center text-sm space-x-2"},z={key:1,class:"text-sm text-gray-500 flex-1 text-right"},G={key:2,class:"text-sm text-gray-500 flex-1 text-right"},K={class:"bg-gray-100 dark:bg-black rounded-xl border border-gray-200-d p-6 space-x-4 lg:space-x-6 flex items-top"},Q={class:"rounded-lg bg-orange-400-d w-12 h-12 flex-none flex items-center justify-center mt-1"},W={class:"space-y-1 flex-1"},X={class:"md:flex"},Y={class:"font-medium text-gray-800-d"},Z={class:"flex-1 text-right text-sm text-gray-500 whitespace-nowrap mt-0.5"},tt={key:0,class:"text-gray-800-d"},et={class:"text-gray-600-d"},it={class:"lg:grid lg:grid-cols-5 lg:gap-8 mt-4"},ot={class:"lg:block"},st={class:"lg:col-span-4"},bt=R({__name:"NotificationItemView",props:{itemId:{type:String,required:!0}},setup(a){const e=a,t=p(),_=p(),u=p(!1),f=p(),k=new J,b=new E,N=w();V(async()=>{await C(),await B()});async function C(){u.value=!0,f.value=null;try{const o=parseInt(e.itemId,10);t.value=await k.findById(o)}catch(o){f.value=o}finally{u.value=!1}}async function B(){try{f.value=null,u.value=!0;const o=parseInt(e.itemId,10);_.value=await b.findByNotificationItemId(o)}catch(o){f.value=o}finally{u.value=!1}}function S(){const o=`${N.baseUrl}/v1/notification/item/${e.itemId}/status?format=csv&limit=10000`;window.open(o,"_self")}return(o,s)=>{const g=P("router-link");return n(),v(M,null,[t.value?(n(),x(F,{key:0},{default:l(()=>[i("div",L,[i("div",O,[i("div",T,[r(h,{class:"bg-slate-200-d px-3 py-2"},{default:l(()=>s[0]||(s[0]=[c("Notification",-1)])),_:1,__:[0]}),t.value.notificationItem.isArchived?(n(),x(h,{key:0,class:"bg-green-100-d text-green-700-d px-3 py-2"},{default:l(()=>s[1]||(s[1]=[c(" Archived ",-1)])),_:1,__:[1]})):m("",!0),t.value.alert?(n(),v("div",z,[s[2]||(s[2]=c(" Dispatched from alert ",-1)),r(g,{to:t.value.alert.viewUrl,class:"text-sky-400-d"},{default:l(()=>[c("#"+d(t.value.alert.id),1)]),_:1},8,["to"])])):t.value.notificationItem.incidentId?(n(),v("div",G,[s[3]||(s[3]=c(" Dispatched from incident ",-1)),r(g,{to:`/incident/${t.value.region.urlComponent}/${t.value.notificationItem.incidentId}`,class:"text-sky-400-d"},{default:l(()=>[c(" #"+d(t.value.notificationItem.incidentId),1)]),_:1},8,["to"])])):m("",!0)]),i("div",K,[i("div",Q,[r(I(q),{class:"w-8 h-8 text-white"})]),i("div",W,[i("div",X,[i("div",Y,d(t.value.notificationItem.title),1),i("div",Z,d(t.value.notificationItem.createdDate.toFormat("d MMM y hh:mm")),1)]),t.value.notificationItem.subtitle?(n(),v("div",tt,d(t.value.notificationItem.subtitle),1)):m("",!0),i("div",et,d(t.value.notificationItem.body),1)])])])])]),_:1})):m("",!0),r(j,null,{default:l(()=>[i("div",it,[i("div",ot,[i("button",{class:"btn btn-light text-center flex space-x-3",onClick:S},[r(I(H),{class:"w-5 h-5"}),s[4]||(s[4]=i("span",null,"Export",-1))])]),i("main",st,[_.value?(n(),x(U,{key:0,notifications:_.value.deviceN
1otificationResultSet.items},null,8,["notifications"])):m("",!0)])])]),_:1})],64)}}});export{bt 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.