1import{Xb as g,dc as A,fb as T,gb as f,t as y,w as H}from"./chunk-DQVPEXLR.js";import{G as c,I as m,Ia as P,Ma as h,W as d,f as v,la as u}from"./chunk-LL4UPCF5.js";var E=v(T());var w=(()=>{class s{exportTableToExcel(a,o,r=""){let i="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",n=this.convertDataToHtml(a,o),t=document.createElement("div");t.appendChild(n);let e=n.outerHTML.replace(/ /g,"%20");r=r?r+".xls":"excel_data.xls";let p=document.createElement("a");if(t.appendChild(p),navigator.msSaveOrOpenBlob){let l=new Blob(["\uFEFF",e],{type:i});navigator.msSaveOrOpenBlob(l,r)}else p.href="data:"+i+", "+e,p.download=r,p.click();t.remove()}convertDataToHtml(a,o){let r=document.createDocumentFragment(),i=document.createElement("table");if((0,E.isArray)(a)&&a.length>0){let n=document.createElement("tr");r.append(n),o.forEach(t=>{let e=document.createElement("th");e.append(document.createTextNode(t)),n.append(e)}),a.forEach(t=>{let e=document.createElement("tr");r.append(e),t.forEach(p=>{let l=document.createElement("td");l.append(document.createTextNode(p)),e.append(l)})}),i.append(r)}return i}arrayToCsv(a){return a.map(o=>o.map(r=>`"${String(r).replace(/"/g,'""')}"`).join(",")).join(`\r 2`)}downloadBlob(a,o,r){let i=new Blob([a],{type:r}),n=URL.createObjectURL(i),t=document.createElement("a");t.href=n,t.setAttribute("download",o),t.click()}static{this.\u0275fac=function(o){return new(o||s)}}static{this.\u0275prov=P({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var C=(()=>{class s{get apiUrl$(){return this.applicationSettingsService.gatewayApiBaseUrl.pipe(u(),c(a=>`${a}/reports`))}constructor(a,o,r,i){this.httpClient=a,this.applicationSettingsService=o,this.apiErrorHelper=r,this.httpParamsHelper=i}getCompanyPayments(a="",o="",r="",i="",n="",t="application/json"){let e=new y;return e=this.httpParamsHelper.conditionallyAddParam(e,"contentType","",t),e=this.httpParamsHelper.conditionallyAddParam(e,"earliestDate","",a),e=this.httpParamsHelper.conditionallyAddParam(e,"latestDate","",o),e=this.httpParamsHelper.conditionallyAddParam(e,"agencyKey","",r),e=this.httpParamsHelper.conditionallyAddParam(e,"companyKey","",i),e=this.httpParamsHelper.conditionallyAddParam(e,"currencyCode","",n),this.apiUrl$.pipe(m(p=>{let l={params:e};return this.httpClient.get(`${p}/companyPayments`,l).pipe(c(b=>b.data),d(this.apiErrorHelper.handleError()))}))}getAgencyPayments(a="",o="",r="",i="",n="application/json"){let t=new y;return t=this.httpParamsHelper.conditionallyAddParam(t,"contentType","",n),t=this.httpParamsHelper.conditionallyAddParam(t,"earliestDate","",a),t=this.httpParamsHelper.conditionallyAddParam(t,"latestDate","",o),t=this.httpParamsHelper.conditionallyAddParam(t,"agencyKey","",r),t=this.httpParamsHelper.conditionallyAddParam(t,"currencyCode","",i),this.apiUrl$.pipe(m(e=>{let p={params:t};return this.httpClient.get(`${e}/agencyPayments`,p).pipe(c(l=>l.data),d(this.apiErrorHelper.handleError()))}))}getCompanyTransactions(a="",o="",r="",i="application/json"){let n=new y;return n=this.httpParamsHelper.conditionallyAddParam(n,"contentType","",i),n=this.httpParamsHelper.conditionallyAddParam(n,"earliestDate","",a),n=this.httpParamsHelper.conditionallyAddParam(n,"latestDate","",o),n=this.httpParamsHelper.conditionallyAddParam(n,"companyKey","",r),this.apiUrl$.pipe(m(t=>{let e={params:n};return this.httpClient.get(`${t}/companyTransactions`,e).pipe(c(p=>p.data),d(this.apiErrorHelper.handleError()))}))}getAgencyPassengerSegments(a="",o="",r="",i="",n="application/json"){let t=new y;return t=this.httpParamsHelper.conditionallyAddParam(t,"contentType","",n),t=this.httpParamsHelper.conditionallyAddParam(t,"earliestDate","",a),t=this.httpParamsHelper.conditionallyAddParam(t,"latestDate","",o),t=this.httpParamsHelper.conditionallyAddParam(t,"agencyKey","",r),t=this.httpParamsHelper.conditionallyAddParam(t,"companyKey","",i),this.apiUrl$.pipe(m(e=>{let p={params:t};return this.httpClient.get(`${e}/agencyPassengerSegments`,p).pipe(c(l=>l.data),d(this.apiErrorHelper.handleError()))}))}static{this.\u0275fac=function(o){return new(o||s)(h(H),h(A),h(f),h(g))}}static{this.\u0275prov=P({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{C as a,w 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.