1import{T as N,i as a,a0 as Z,e as r}from"./vendor-portal-vue-components-DEY1bxiG.js";import{I as B}from"./incident-DkICXkY8.js";import{_ as P}from"./messagesList.vue_vue_type_script_setup_true_lang-BhAAFQCc.js";import{d as E,b as f,i as g,w as U,L as k,B as j,M as F,A as n,j as M,y as t,aB as W,o as z,z as i,I as G,G as K,aR as S,E as q,K as H}from"./vendor-B4cyLKnC.js";import{u as J}from"./notification-ClAC1aeS.js";import{_ as Q,a as h}from"./notificationLocations.vue_vue_type_script_setup_true_lang-Bcu9DJqt.js";import{U as X,s as Y}from"../index.bundle.js";import{p as ee}from"./vendor-date-fns-By1Iq1cw.js";import"./vendor-google-libphonenumber-DBEjeW_L.js";import"./vendor-axios-42ANG6Sg.js";import"./constants-BxpOxvhP.js";import"./usePermissionsService-CzpWIyKL.js";import"./vendor-bootstrap-CEaqxPXy.js";const te={class:"html-table-wrapper"},ge=E({__name:"incidentDetails",setup(ae){const y=W(),{getDataWithType:I,alertVisible:l,isInError:c,isSavingData:T}=N(),{incidentsApiUrl:_,customerId:D,canReadNotification:b,getTagSeverity:u,returnToList:p}=J(),v=f(!1),e=f(new B),d=g(()=>y.params.id.toString()),w=g(C);U(()=>Y.state.selectedAccount,p),k(async()=>{v.value=!0,d.value||p(),await L(),v.value=!1});async function L(){c.value=!1;const s=await I(`${_}/${d.value}?customerId=${D.value}`);s.success&&s.data?e.value=s.data:c.value=!0}function R(){return[{label:a("service"),value:e.value.service},{label:a("serviceOffering"),value:e.value.serviceOffering},{label:a("type"),value:e.value.type},{label:a("component"),value:e.value.component}]}function A(){return[{label:a("currentSeverity"),template:e.value.severity?S:void 0,templateProps:{severity:u(e.value.severity),value:e.value.severity}},{label:a("highestSeverityAchieved"),template:e.value.highestSeverityAchieved?S:void 0,templateProps:{severity:u(e.value.highestSeverityAchieved),value:e.value.highestSeverityAchieved}}]}function V(){const s=[{label:a("startDateTime"),template:h,templateProps:{date:e.value.startDateTime}}];if(e.value.timeZone){const o=e.value.startDateTime.slice(-1)==="Z"?e.value.startDateTime:`${e.value.startDateTime}Z`,m=ee(o);s.push({label:a("startDateTimeInIncidentTimeZone"),value:X.getFormattedZonedTimeWithAbbr(m,e.value.timeZone)})}return s}function x(){return[{label:a("resolvedDateTime"),template:h,templateProps:{date:e.value.resolvedDateTime}}]}function C(){return u(e.value.state)}return(s,o)=>{const m=q("Divider"),O=H("dompurify-html");return z(),j(t(Z),{pageId:"incident",emptyStateText:t(a)("errorRetrievingIncidentDetails"),title:e.value.incidentNumber,isInError:t(c),isLoading:v.value,isSavingData:t(T),permission:t(b),alertVisible:t(l),"onUpdate:alertVisible":o[0]||(o[0]=$=>M(l)?l.value=$:null),tagSeverity:w.value,tagValue:e.value.state},F({sectionOneLeft:n(()=>[i(t(r),{sectionItems:R()},null,8,["sectionItems"])]),sectionOneRight:n(()=>[i(t(r),{sectionItems:A()},null,8,["sectionItems"])]),sectionTwoLeft:n(()=>[i(t(r),{sectionItems:V()},null,8,["sectionItems"])]),sectionTwoRight:n(()=>[i(t(r),{sectionItems:x()},null,8,["sectionItems"])]),sectionFour:n(()=>[i(t(r),{title:t(a)("description")},{default:n(()=>[G(K("div",te,null,512),[[O,e.value.subject]])]),_:1},8,["title"]),i(m),i(P,{data:e.value.comments},null,8,["data"])]),_:2},[e.value.dataCenterSpaces.length>0?{name:"sectionThree",fn:n(()=>[i(Q,{dataCenterSpaces:e.value.dataCenterSpaces},null,8,["dataCenterSpaces"])]),key:"0"}:void 0]),1032,["emptyStateText","title","isInError","isLoading","isSavingData","permission","alertVisible","tagSeverity","tagValue"])}}});export{ge 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.