1var y=Object.defineProperty;var i=(c,r,e)=>r in c?y(c,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[r]=e;var s=(c,r,e)=>i(c,typeof r!="symbol"?r+"":r,e);import{A as p}from"./AgencyDashboard-RukStT_d.js";import{a as o,A,O as g}from"./OtrSnapshotResult-CwFW6pFJ.js";import{O as u,A as O}from"./OtrStatusSnapshot-B6hQvm4b.js";import{O as J}from"./Stop-8NKSpgr4.js";import{X as N}from"./index-DbpIxVVg.js";class S{constructor(){s(this,"dashboard");s(this,"currentOtrStatus");s(this,"referenceOtrStatus");s(this,"agencyAreas");s(this,"agencyGroups");s(this,"monitoredAreas")}static fromJSON(r,e){const a=new S;return a.dashboard=p.fromJSON(r.dashboard,e),a.currentOtrStatus=r.currentOtrStatus&&u.fromJSON(r.currentOtrStatus),a.referenceOtrStatus=r.referenceOtrStatus&&u.fromJSON(r.referenceOtrStatus),a.agencyAreas=r.agencyAreas instanceof Array?r.agencyAreas.map(t=>({area:o.fromJSON(t.area,e),currentOtrStatus:t.currentOtrStatus&&u.fromJSON(t.currentOtrStatus),referenceOtrStatus:t.referenceOtrStatus&&u.fromJSON(t.referenceOtrStatus)})):void 0,a.agencyGroups=r.agencyGroups instanceof Array?r.agencyGroups.map(t=>({group:O.fromJSON(t.group,e),currentOtrStatus:t.currentOtrStatus&&u.fromJSON(t.currentOtrStatus),referenceOtrStatus:t.referenceOtrStatus&&u.fromJSON(t.referenceOtrStatus)})):void 0,a.monitoredAreas=r.monitoredAreas instanceof Array?r.monitoredAreas.map(t=>({monitoredArea:J.fromJSON(t.monitoredArea,e),currentOtrStatus:t.currentOtrStatus&&u.fromJSON(t.currentOtrStatus),referenceOtrStatus:t.referenceOtrStatus&&u.fromJSON(t.referenceOtrStatus)})):void 0,a}}class f{constructor(){s(this,"dashboard");s(this,"agencyAreas");s(this,"agencyGroups")}static fromJSON(r,e){var t,d;const a=new f;return a.dashboard=p.fromJSON(r.dashboard,e),a.agencyAreas=(t=r.areas)==null?void 0:t.map(n=>o.fromJSON(n,e)),a.agencyGroups=(d=r.groups)==null?void 0:d.map(n=>O.fromJSON(n,e)),a}}class m{constructor(){s(this,"agencyArea");s(this,"agencyGroups");s(this,"currentOtrStatus");s(this,"referenceOtrStatus")}static fromJSON(r,e){const a=new m;return a.agencyArea=o.fromJSON(r.area,e),a.agencyGroups=r.groups instanceof Array?r.groups.map(t=>({group:O.fromJSON(t.group,e),currentOtrStatus:t.currentOtrStatus&&u.fromJSON(t.currentOtrStatus),referenceOtrStatus:t.referenceOtrStatus&&u.fromJSON(t.referenceOtrStatus)})):[],a.currentOtrStatus=r.currentOtrStatus&&u.fromJSON(r.currentOtrStatus),a.referenceOtrStatus=r.referenceOtrStatus&&u.fromJSON(r.referenceOtrStatus),a}}class l extends A{async getDashboard(r,e){const a=await this.client.get(`/v1/agency/dashboard/${r.urlComponent}/${e}`);return f.fromJSON(a.data,r)}async getSummary(r,e){const a=await this.client.get(`/v1/agency/dashboard/${r.urlComponent}/${e}/summary`);return S.fromJSON(a.data,r)}async getAreaMap(r,e){const a=await this.client.get(`/v1/agency/area/${r.urlComponent}/${e}/map`);return m.fromJSON(a.data,r)}async getOtrHistory(r,e,a=N.fromObject({hours:6})){const t=await this.client.get(`/v1/agency/dashboard/${r.urlComponent}/${e}/otrHistory?period=${a.toISO()}`);return g.fromJSON(t.data,r)}}export{l as A,f as a,m as b};
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.