Build 533169stable
Module 785796
696 characters · in b9999b4583975d25.js, aca7018765200529.jsDependencies
Source Raw
function(e,t,n){n.d(t,{A:()=>o});var i=n(562465),l=n(73153),s=n(652215);let a=`${s.Joy}/api/v2/scheduled-maintenances`,r=`${s.Joy}/api/v2/incidents/unresolved.json`,o={checkIncidents(){Promise.all([i.Bo.get({url:`${a}/active.json`,rejectWithError:!0}),i.Bo.get(r)]).then(e=>{let[t,n]=e,[i]=t.body.scheduled_maintenances,[s]=n.body.incidents;l.h.dispatch({type:"STATUS_PAGE_INCIDENT",incident:s||i})})},checkScheduledMaintenances(){i.Bo.get({url:`${a}/upcoming.json`,rejectWithError:!0}).then(e=>{let[t]=e.body.scheduled_maintenances;l.h.dispatch({type:"STATUS_PAGE_SCHEDULED_MAINTENANCE",maintenance:t})})},ackScheduledMaintenance(){l.h.dispatch({type:"STATUS_PAGE_SCHEDULED_MAINTENANCE_ACK"})}}}