PageSourceSearch

https://stxcloud.com/chunk-6YPTYWQK.js

js stxcloud.com collected 2026-10-05 02:20:27 UTC 32,941 bytes, 14 lines download raw bytes

1import{d as fe,f as _e,g as De}from"./chunk-FITHSAKU.js";import"./chunk-XKLGBZBL.js";import"./chunk-CJPLD6EO.js";import{a as me,b as ce}from"./chunk-SIXBTUEX.js";import{a as he,b as ge,c as ue}from"./chunk-7FAQ4UKW.js";import"./chunk-GVZPOEAW.js";import{$a as T,$c as se,Ad as B,Bc as K,Cb as U,Db as A,Eb as X,Ec as ee,Fa as Q,Ga as _,Ia as D,Ic as te,Ka as b,La as P,Lc as ie,Ma as O,Na as w,Oa as a,Pa as r,Pc as ne,Q as N,Qa as v,Qc as ae,Rc as re,V as u,W as f,Xa as E,Za as C,Zc as oe,cd as le,db as q,eb as G,ed as pe,fb as J,fd as de,hd as Y,lb as p,mb as k,nb as L,nc as $,od as j,pa as d,tb as R,ub as y,uc as Z,va as S,vb as M,wb as I,xa as z,ya as W}from"./chunk-QXLMLGHR.js";var ye=["scheduleModal"],Me=()=>({backdrop:"static",keyboard:!1}),we=n=>[n],Te=()=>({actionMethod:"referralreport"});function ve(n,g){if(n&1&&(a(0,"option",21),p(1),r()),n&2){let t=g.$implicit;w("value",I(t.value)),d(),k(t.value)}}function xe(n,g){n&1&&(a(0,"span"),p(1,"\xA0\xA0 "),a(2,"i"),p(3,"Report Generating..."),r()())}function Se(n,g){if(n&1){let t=E();a(0,"button",52),C("click",function(){u(t);let e=T();return f(e.exportReport())}),v(1,"i",53),p(2,"\xA0 "),a(3,"span",29),p(4,"Export"),r()()}}function be(n,g){if(n&1&&(a(0,"a",61),p(1),r()),n&2){let t=T().$implicit;w("routerLink",X(3,we,"/client/edit/"+t.ClientId))("queryParams",A(5,Te)),d(),k(t.ClientName)}}function Pe(n,g){if(n&1&&(a(0,"span"),p(1),v(2,"br"),r()),n&2){let t=g.$implicit;d(),k(t)}}function Oe(n,g){if(n&1&&(a(0,"span"),p(1),v(2,"br"),r()),n&2){let t=g.$implicit;d(),k(t)}}function Ee(n,g){if(n&1&&(a(0,"tr",59)(1,"td"),p(2),r(),a(3,"td"),_(4,be,2,6,"a",61),r(),a(5,"td"),P(6,Pe,3,1,"span",null,b),r(),a(8,"td"),P(9,Oe,3,1,"span",null,b),r()()),n&2){let t=g.$implicit;d(2),k(t.ReferCount),d(2),D(t.ClientName!==null?4:-1),d(2),O(t.displayDates),d(3),O(t.displayClients)}}function ke(n,g){if(n&1&&(a(0,"div",31)(1,"div",54)(2,"div",55)(3,"div",56)(4,"table",57)(5,"thead")(6,"tr")(7,"th",58),p(8,"# of Referrals"),r(),a(9,"th",58),p(10,"Client Name"),r(),a(11,"th",58),p(12,"Date"),r(),a(13,"th",58),p(14,"Referred"),r()()(),a(15,"tbody"),P(16,Ee,11,2,"tr",59,b),r()(),a(18,"p",60),p(19),r()()()()()),n&2){let t=T();d(16),O(t.refferalData),d(3),L("TOTAL # OF REFERRALS : ",t.totalReferrals," ")}}function Fe(n,g){if(n&1&&(a(0,"option",21),p(1),r()),n&2){let t=g.$implicit;w("value",I(t.option)),d(),L(" ",t.option," ")}}function Ne(n,g){n&1&&(a(0,"div",8)(1,"div",62)(2,"span")(3,"i"),p(4,"Report generates within 2 to 60 minutes depending on the amount of data"),r()()()())}function We(n,g){n&1&&(a(0,"div",8)(1,"div",62)(2,"span")(3,"i"),p(4,"Report generates daily for the date of generation."),r()()()())}function Be(n,g){n&1&&(a(0,"div",8)(1,"div",62)(2,"span")(3,"i"),p(4,"Report generates weekly for the the last 7 days, including the date of generation."),r()()()())}function Ve(n,g){n&1&&(a(0,"div",8)(1,"div",62)(2,"span")(3,"i"),p(4,"Report generates bi-weekly for the last 14 days and includes the date of generation."),r()()()())}function Le(n,g){n&1&&(a(0,"div",8)(1,"div",62)(2,"span")(3,"i"),p(4,"Report generates on the 1st of the month for the previous month from the 16th to the end of the month and again on the 16th of the month for the current month from the 1st to the 15th. "),r()()()())}function Ie(n,g){n&1&&(a(0,"div",8)(1,"div",62)(2,"span")(3,"i"),p(4,"Report generates every 1st of the month for the previous month."),r()()()())}function Ae(n,g){n&1&&(a(0,"div",8)(1,"div",62)(2,"span")(3,"i"),p(4,"Report generates on January 1st, April 1st, July 1st and October 1st for the previous quarter."),r()()()())}function Ye(n,g){n&1&&(a(0,"div",8)(1,"div",62)(2,"span")(3,"i"),p(4,"Report generates every January 1st for the previous year. "),r()()()())}function je(n,g){if(n&1){let t=E();a(0,"div",8)(1,"div",37)(2,"label"),p(3,"Date Range"),r()(),a(4,"div",38)(5,"div",44)(6,"input",63),M("ngModelChange",function(e){u(t);let l=T();return y(l.startDate1,e)||(l.startDate1=e),f(e)}),r(),a(7,"span"),p(8,"to"),r(),a(9,"input",63),M("ngModelChange",function(e){u(t);let l=T();return y(l.endDate1,e)||(l.endDate1=e),f(e)}),r()()()()}if(n&2){let t=T();d(6),w("bsConfig",t.datePickerConfig),R("ngModel",t.startDate1),w("minDate",t.minDate1)("maxDate",t.maxDate1),d(3),w("bsConfig",t.datePickerConfig),R("ngModel",t.endDate1),w("minDate",t.minDate1)("maxDate",t.maxDate1)}}function He(n,g){if(n&1){let t=E();a(0,"div",8)(1,"div",37)(2,"label"),p(3,"Start Date"),r()(),a(4,"div",38)(5,"div",44)(6,"input",63),M("ngModelChange",function(e){u(t);let l=T();return y(l.startDate1,e)||(l.startDate1=e),f(e)}),r(),a(7,"span"),p(8,"at"),r(),a(9,"input",64),M("ngModelChange",function(e){u(t);let l=T();return y(l.startTime,e)||(l.startTime=e),f(e)}),C("blur",function(){u(t);let e=T();return f(e.formatHours(e.startTime,!0))}),r()()()()}if(n&2){let t=T();d(6),w("bsConfig",t.datePickerConfig),R("ngModel",t.startDate1),w("minDate",t.minDate1)("maxDate",t.maxDate1),d(3),R("ngModel",t.startTime)}}function ze(n,g){if(n&1){let t=E();a(0,"div",8)(1,"div",37)(2,"label"),p(3,"Generation at"),r()(),a(4,"div",38)(5,"input",64),M("ngModelChange",function(e){u(t);let l=T();return y(l.generationTime,e)||(l.generationTime=e),f(e)}),C("blur",function(){u(t);let e=T();return f(e.formatHours(e.generationTime,!1))}),r()()()}if(n&2){let t=T();d(5),R("ngModel",t.generationTime)}}var H=(()=>{class n{constructor(t,o,e,l,s){this.route=t,this.router=o,this.toastr=e,this.commonService=l,this.http=s,this.startDate=new Date,this.endDate=new Date,this.minDate=new Date,this.maxDate=new Date,this.staticData=[],this.refferalData=[],this.selectType="",this.SdateEdateError="",this.itemsDisplay=!1,this.numOfRef="",this.totalReferrals=0,this.tokenData={},this.displayMsg=!0,this.runReportOptions=[],this.startDate1=new Date,this.minDate1=new Date,this.maxDate1=new Date,this.endDate1=new Date,this.startTime="",this.generationTime="",this.option1="",this.trigger=!0,this.m360Instance=j.toString()==="GENER
1IC"||j.toString()==="M360",this.datePickerConfig=Object.assign({},{showWeekNumbers:!1,containerClass:"theme-blue",dateInputFormat:"MM/DD/YYYY"})}ngOnInit(){this.getStaticRewardValue();let t=localStorage.getItem("token"),o=localStorage.getItem("rights");this.tokenData=this.commonService.decodeToken(t).data;try{this.decodedToken=this.commonService.decodeToken(o)}catch(e){this.decodedToken={}}this.decodedToken.data&&this.decodedToken.data.dateRangeLimit?this.dateRangeLimit=this.decodedToken.data.dateRangeLimit:this.dateRangeLimit="",this.decodedToken.data&&this.decodedToken.data.permissions?this.decodedToken=JSON.parse(this.decodedToken.data.permissions):this.decodedToken={},this.dateRangeLimit==="180 Days"?(this.minDate.setDate(this.minDate.getDate()-179),this.maxDate.setDate(this.maxDate.getDate()+179),this.minDate1.setDate(this.minDate.getDate()-179),this.maxDate1.setDate(this.maxDate.getDate()+179)):this.dateRangeLimit==="90 Days"?(this.minDate.setDate(this.minDate.getDate()-89),this.maxDate.setDate(this.maxDate.getDate()+89),this.minDate1.setDate(this.minDate.getDate()-89),this.maxDate1.setDate(this.maxDate.getDate()+89)):this.dateRangeLimit==="30 Days"?(this.minDate.setDate(this.minDate.getDate()-29),this.maxDate.setDate(this.maxDate.getDate()+29),this.minDate1.setDate(this.minDate.getDate()-29),this.maxDate1.setDate(this.maxDate.getDate()+29)):this.dateRangeLimit==="7 Days"?(this.minDate.setDate(this.minDate.getDate()-6),this.maxDate.setDate(this.maxDate.getDate()+6),this.minDate1.setDate(this.minDate.getDate()-6),this.maxDate1.setDate(this.maxDate.getDate()+6)):this.dateRangeLimit==="Today Only"?(this.minDate=new Date,this.maxDate=new Date,this.minDate1=new Date,this.maxDate1=new Date):this.dateRangeLimit==="365 Days"?(this.minDate.setDate(this.minDate.getDate()-364),this.maxDate.setDate(this.maxDate.getDate()+364),this.minDate1.setDate(this.minDate.getDate()-364),this.maxDate1.setDate(this.maxDate.getDate()+364)):(this.minDate=null,this.maxDate=null,this.minDate1=null,this.maxDate1=null)}isNumeric(t){return this.commonService.IsNumeric(t)}getStaticRewardValue(){this.commonService.commonStaticData().subscribe(t=>{this.staticData=t.referralTypes,this.selectType=this.staticData[0].value,this.runReportOptions=t.RunReport,this.runReport=this.runReportOptions[0].option},t=>{let o=t.error.status;(o==="2044"||o==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}selectTypeOnChange(t){this.selectType=t,this.refferalData.length>0?this.selectType==="Client Last Name"?this.refferalData.sort((o,e)=>o.LastName.localeCompare(e.LastName)):this.selectType==="Client First Name"?this.refferalData.sort((o,e)=>o.FirstName.localeCompare(e.FirstName)):this.selectType==="# of Referrals"&&this.refferalData.sort((o,e)=>e.ReferCount-o.ReferCount):this.refferalData=[]}generateReferralReport(){this.refferalData=[],this.totalReferrals=0;let t=new Date;if(this.startDate===null)this.toastr.error("Please select begin date","",{timeOut:3e3});else if(isNaN(this.startDate.getTime()))this.toastr.error("Begin date is invalid","",{timeOut:3e3});else if(this.endDate===null)this.toastr.error("Please select End Date","",{timeOut:3e3});else if(isNaN(this.endDate.getTime()))this.toastr.error("End date is invalid","",{timeOut:3e3});else if(!this.numOfRef)this.toastr.error("# of Referrals Required Cannot Be Blank ","",{timeOut:3e3});else if(this.dateRangeLimit&&this.dateRangeLimit!=="All Days"&&(this.startDate.setHours(0,0,0,0)<this.minDate.setHours(0,0,0,0)||this.endDate.setHours(0,0,0,0)>this.maxDate.setHours(0,0,0,0)))this.toastr.error("Begin Date and End Date should be within the Date Range Limit","",{timeOut:3e3});else{let o=this.startDate.getFullYear()+"-"+("00"+(this.startDate.getMonth()+1)).slice(-2)+"-"+("00"+this.startDate.getDate()).slice(-2),e=this.endDate.getFullYear()+"-"+("00"+(this.endDate.getMonth()+1)).slice(-2)+"-"+("00"+this.endDate.getDate()).slice(-2),l=t.getFullYear()+"-"+("00"+(t.getMonth()+1)).slice(-2)+"-"+("00"+t.getDate()).slice(-2),s=t.getFullYear()+"-"+("00"+(t.getMonth()+1)).slice(-2)+"-"+("00"+t.getDate()).slice(-2);if(o>e)this.toastr.error("Begin Date must be before the End Date","",{timeOut:3e3});else if(o>l||e>s)this.toastr.error("Future Dates not allowed","",{timeOut:3e3});else{let i={startDate:this.commonService.getDBDatStr(this.startDate).split(" ")[0],endDate:this.commonService.getDBDatStr(this.endDate).split(" ")[0],numOfRef:this.numOfRef,selectType:this.selectType};this.itemsDisplay=!1,this.displayMsg=!1,this.commonService.commonPost("/api/reports/referralreport",i).subscribe(c=>{this.displayMsg=!0,c.result.length>0?(c.result.forEach(m=>{this.totalReferrals+=m.ReferCount,m.displayDates=m.Date.split(","),m.displayClients=m.Referred.split(",");for(let h=0;h<m.displayDates.length;h++)m.displayDates[h]=this.commonService.getUsrDtStrFrmDBStr(m.dis
1playDates[h])[0]}),this.refferalData=c.result,this.itemsDisplay=!0):(this.toastr.error("No data found","",{timeOut:3e3}),this.refferalData=[],this.itemsDisplay=!1)},c=>{this.displayMsg=!0;let m=c.status,h=c.error.status;switch(m){case 500:break;case 400:break}(h==="2044"||h==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}}}printDiv(){this.itemsDisplay?this.http.get("/assets/print/commonPrintTemplate3.html",{responseType:"text"}).subscribe(t=>{let o=t,e=document.getElementsByClassName("header-logo")[0];o=o.replace("{{CompanyLogo}}",e.src),o=o.replace("{{reportname}}","REFERRAL REPORT"),o=o.replace("{{CompanyName}}",this.tokenData.cname),o=o.replace("{{filterData}}",`<tr>
2      <td> <span style="font-weight: bold;">Date Range:</span>&nbsp;
3        ${this.startDate.getMonth()+1+"/"+this.startDate.getDate()+"/"+this.startDate.getFullYear()+" to "}
4        ${this.endDate.getMonth()+1+"/"+this.endDate.getDate()+"/"+this.endDate.getFullYear()}
5      </td>
6      <td> <span style="font-weight: bold;"># of Referrals required:</span>&nbsp;${this.numOfRef}</td></tr>
7      <tr><td> <span style="font-weight: bold;margin-left:10px;">Sort By:</span>&nbsp;${this.selectType}</td>`);let l="";o=o.replace("{{headerData}}",`<tr><th>
8        # of Referrals</th><th>Client Name</th>
9      <th>Date</th><th>Referred</th></tr>`),this.refferalData.forEach(i=>{l+=`<tr><td>${i.ReferCount}</td>`,l+=`<td>${i.ClientName}</td>`,l+=`<td><br/>${i.displayDates}</td>`,l+=`<td>${i.displayClients}<br/></td>`}),o=o.replace("{{reportsData}}",l),o=o.replace("{{Total}}",`<table><tr style="font-weight:bold;">
10        <td>TOTAL # OF REFERRALS:&nbsp ${this.totalReferrals}</td></tr></table>`);let s=window.open("","_blank","top=0,left=0,height=100%,width=auto");s.document.open(),s.document.write(o),s.document.close()}):this.toastr.error("No Report Generated","",{timeOut:2e3})}cancelModal(){this.scheduleModal.hide(),this.scheduleEmail="",this.fileType="",this.fileType1="",this.startDate1=new Date,this.endDate1=new Date,this.runReport=this.runReportOptions[0].option,this.startTime="",this.generationTime="",this.option1=""}clearSerType(t){t==="PDF"?(this.fileType="PDF",this.fileType1=""):(this.fileType="",this.fileType1="CSV")}onChangeRunReport(){this.scheduleEmail="",this.fileType="",this.fileType1="",this.startDate1=new Date,this.endDate1=new Date,this.startTime="",this.generationTime=""}formatHours(t,o){if(t&&!/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9][ ][AP][M]$/.test(t)){let l=t.replace(/\D/g,""),s=l.length>0?parseInt(l):0;for(;s>12;)s=parseInt(s.toString().slice(0,-1));let i=l.replace(s.toString(),"");for(i=i.length>0?parseInt(i):0;i>60;)i=parseInt(i.toString().slice(0,-1));i=i<10?`${i}0`:i;let c=/a|am/i.test(t),m=/p|pm/i.test(t),h="";c?h="AM":m?h="PM":s>7&&s<12||s===0?h="AM":h="PM",o===!0?this.startTime=`${s}:${i} ${h}`:this.generationTime=`${s}:${i} ${h}`}}saveSchedule(){let t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,o=/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9][ ][AP][M]$/;if(this.runReport==="ASAP"&&(this.startDate1===null||isNaN(this.startDate1.getTime())))this.toastr.error("Please enter a valid date ","",{timeOut:3e3});else if((this.runReport==="Daily"||this.runReport==="Weekly"||this.runReport==="Biweekly")&&(!this.startTime||this.startTime===""))this.toastr.error("Please enter a valid date or time ","",{timeOut:3e3});else if((this.runReport==="Daily"||this.runReport==="Weekly"||this.runReport==="Biweekly")&&this.startTime!==""&&!o.test(this.startTime))this.toastr.error("Time must be in hh:mm [AM|PM] format","",{timeOut:3e3});else if((this.runReport==="1st & 16th"||this.runReport==="Monthly"||this.runReport==="Quarterly"||this.runReport==="Yearly")&&(!this.generationTime||this.generationTime===""))this.toastr.error("Please enter a valid date or time ","",{timeOut:3e3});else if((this.runReport==="1st & 16th"||this.runReport==="Monthly"||this.runReport==="Quarterly"||this.runReport==="Yearly")&&this.generationTime!==""&&!
10o.test(this.generationTime))this.toastr.error("Time must be in hh:mm [AM|PM] format","",{timeOut:3e3});else if(!this.scheduleEmail)this.toastr.warning("Please enter an email.","",{timeOut:3e3});else if(this.scheduleEmail&&!t.test(this.scheduleEmail))this.toastr.warning("Please enter a valid email.","",{timeOut:3e3});else if(!this.fileType&&!this.fileType1)this.toastr.warning("Please select filetype.","",{timeOut:3e3});else if(this.trigger){this.trigger=!1;let e={Frequency:this.runReport,Report_Name:"Referral Report",Email:this.scheduleEmail?this.scheduleEmail:"",Format:this.fileType?this.fileType:this.fileType1,Settings:{"#ofReferralsRequired":this.option1}},l="",s="",i=[],c=[];if(this.runReport==="ASAP"){l=this.commonService.getDBDatTmStr(this.startDate1).split(" ")[0],s=this.commonService.getDBDatTmStr(this.endDate1).split(" ")[0];let m=new Date;m.setMinutes(m.getMinutes()+10),e.Next_Run_Date_Time=this.commonService.getDBDatTmStr(m),e.Settings.startDate=l+" to "+s}else if(this.runReport==="Daily"||this.runReport==="Weekly"||this.runReport==="Biweekly"){let m,h;this.startTime.split(" ")[1]==="AM"?(m=this.startTime.split(" ")[0].split(":")[0],h=this.startTime.split(" ")[0].split(":")[1],+m==12&&(m=0)):this.startTime.split(" ")[1]==="PM"&&(m=this.startTime.split(" ")[0].split(":")[0],parseInt(m,10)!==12&&(m=parseInt(m,10)+12),h=this.startTime.split(" ")[0].split(":")[1]);let F=new Date(this.startDate1.getFullYear(),this.startDate1.getMonth(),this.startDate1.getDate(),m,h);if(i.push(F),this.runReport==="Weekly"){let x=new Date(i[0]),V=x.getDate()+7;x.setDate(V),e.Settings.startDate=this.commonService.getDBDatTmStr(i[0]).split(" ")[0],e.Next_Run_Date_Time=this.commonService.getDBDatTmStr(x)}else if(this.runReport==="Biweekly"){let x=new Date(i[0]),V=x.getDate()+14;x.setDate(V),e.Settings.startDate=this.commonService.getDBDatTmStr(i[0]).split(" ")[0],e.Next_Run_Date_Time=this.commonService.getDBDatTmStr(x)}else e.Settings.startDate=this.commonService.getDBDatTmStr(i[0]).split(" ")[0],e.Next_Run_Date_Time=this.commonService.getDBDatTmStr(i[0]);e.Settings.generationAt=this.startTime}else if(this.runReport==="1st & 16th"||this.runReport==="Monthly"||this.runReport==="Quarterly"||this.runReport==="Yearly"){let m,h;this.generationTime.split(" ")[1]==="AM"?(m=this.generationTime.split(" ")[0].split(":")[0],h=this.generationTime.split(" ")[0].split(":")[1],+m==12&&(m=0)):this.generationTime.split(" ")[1]==="PM"&&(m=this.generationTime.split(" ")[0].split(":")[0],parseInt(m,10)!==12&&(m=parseInt(m,10)+12),h=this.generationTime.split(" ")[0].split(":")[1]);let F=new Date;F.setHours(m,h,0,0),c.push(F),this.runReport==="1st & 16th"?c[0].getDate()<=16?c[0].setDate(16):(c[0].setMonth(c[0].getMonth()+1),c[0].setDate(1)):this.runReport==="Monthly"?(c[0].setMonth(c[0].getMonth()+1),c[0].setDate(1)):this.runReport==="Quarterly"?(c[0].setMonth(c[0].getMonth()+3),c[0].setDate(1)):this.runReport==="Yearly"&&(c[0].setFullYear(c[0].getFullYear()+1),c[0].setMonth(0),c[0].setDate(1)),e.Settings.generationAt=this.generationTime,e.Next_Run_Date_Time=this.commonService.getDBDatTmStr(c[0])}this.commonService.commonPost("/api/reports/traditionalschedule",e).subscribe(m=>{this.trigger=!0,this.cancelModal(),this.toastr.success("Success! Your report has been scheduled.","",{timeOut:1500}),this.router.navigate(["/reports/scheduledreports/scheduledreport"])},m=>{this.trigger=!0;let h=m.error.status;m.error.status==="2003"&&(this.toastr.error("Name already exists"),window.scrollTo(0,0)),(h==="2044"||h==="2033")&&this.router.url!=="/"&&(localStorage.setItem("page",this.router.url),this.router.navigate(["/"]).then(()=>{}))})}}createSchedule(){this.decodedToken.Reports["Create & View Scheduled Reports"]?this.scheduleModal.show():this.toastr.error("No Access.","",{timeOut:1500})}exportReport(){let t=`# of Referrals,Client Name,Date,Referred
11`;this.refferalData.forEach(s=>{if(t+=s.ReferCount!=null?`"${s.ReferCount}",`:'"",',t+=s.ClientName?`"${s.ClientName}",`:'"",',s.displayDates&&s.displayDates.length>0){let i=s.displayDates.join(`
12`);t+=`"${i}",`}else t+='"",';if(s.displayClients&&s.displayClients.length>0){let i=s.displayClients.join(`
13`);t+=`"${i}",`}else t+='"",';t+=`
14`}),t+=`"TOTAL # OF REFERRALS :${this.totalReferrals}"`;let o=document.createElement("a"),e=new Blob([t],{type:"text/csv"}),l=window.URL.createObjectURL(e);o.href=encodeURI(l),o.download=`${this.commonService.generateCSVFileName("Referral Report")}
14`,o.click(),window.URL.revokeObjectURL(l),o.remove()}static{this.\u0275fac=function(o){return new(o||n)(S(le),S(pe),S(se),S(B),S(Z))}}static{this.\u0275cmp=z({type:n,selectors:[["app-refferal-report-app"]],viewQuery:function(o,e){if(o&1&&q(ye,5),o&2){let l;G(l=J())&&(e.scheduleModal=l.first)}},standalone:!1,features:[U([B])],decls:106,vars:33,consts:[["scheduleModal","bs-modal"],["id","wrapper_setup_new",2,"padding-right","0px"],[3,"newMenu"],["id","inner_cont"],[1,"container","form_cont"],[1,"row","d-flex",2,"flex-wrap","wrap"],[1,"col-sm-12","col-md-1"],[1,"col-sm-8","col-md-7"],[1,"row","mt-20"],[1,"col-md-7","col-sm-5","text-right","res-tleft"],[1,"font_weight_600"],[1,"col-md-5","col-sm-7"],[1,"date-flex","datefield"],["type","text","bsDatepicker","",3,"ngModelChange","ngModel","minDate","maxDate","bsConfig"],[1,"label","font_weight_600"],["type","text",3,"ngModelChange","keypress","paste","ngModel"],[1,"col-sm-4","col-md-4","dropwidth",2,"width","32% !important"],[1,"col-md-4","col-sm-5","col-md-offset-1","text-right","res-tleft",2,"padding-right","0px"],[1,"label",2,"margin-top","2px","padding-right","0px","font-weight","600 !important"],[1,"col-md-7","col-sm-7"],[1,"select-new-trans","select-input",3,"change","ngModelChange","ngModel"],[3,"value"],[1,"col-md-4","col-sm-5","col-md-offset-1"],[1,"col-md-7","col-sm-8"],["type","button",1,"btn","btn-gradient","ml-cont-50","btn-generate","font_weight_600",3,"click"],["aria-hidden","true",1,"fa","fa-cog"],[1,"ml-bottom"],["type","button",1,"btn","btn-gradient-print","align-right","font_weight_600",3,"click"],[1,"fa","fa-print"],[2,"font-size","14px"],["type","button",1,"font_weight_600","btn","btn-gradient-print","align-right","export-icon"],[1,"row","mt-20","res-mt-15"],["bsModal","","tabindex","-1","role","dialog","aria-labelledby","myLargeModalLabel","aria-hidden","true",1,"modal","fade",3,"config"],[1,"modal-dialog","modal
14-lg",2,"width","45%"],[1,"modal-content"],[1,"modal-header","schedule-pop"],[1,"modal-body",2,"background-color","#FFFFFF"],[1,"col-md-4","col-sm-8","text-right","res-tleft"],[1,"col-md-8","col-sm-4"],["type","text",1,"input-padding",3,"ngModelChange","keypress","paste","ngModel"],[1,"col-md-4","col-sm-8","text-right","res-tleft","mt-10"],[1,"select-new-trans","selectrunreport",2,"background-color","#e5e5ee !important",3,"ngModelChange","change","ngModel"],["type","text",1,"input-padding",3,"ngModelChange","ngModel"],[1,"col-md-8","col-sm-4","res-tleft","white"],[1,"date-flex1"],["type","radio","value","PDF",2,"margin-top","0px",3,"click","ngModelChange","ngModel"],[2,"color","black"],["type","radio","value","CSV",3,"click","ngModelChange","ngModel"],[1,"row"],[1,"text-center","mt-40"],["type","button",1,"save-btn","font_weight_600",3,"click"],["type","button",1,"cancel-btn","font_weight_600",3,"click"],["type","button",1,"font_weight_600","btn","btn-gradient-print","align-right","export-icon",3,"click"],[1,"fa","fa-external-link"],[1,"col-md-12"],[1,"table-max-rewards",2,"max-width","900px"],[1,"table-responsive"],[1,"table","table-center","table-responsive","table-hover","table_hover_bg"],[1,"thcss"],[2,"border-style","hidden"],[2,"font-weight","bold"],[3,"routerLink","queryParams"],[1,"col-md-12","col-sm-12","text-center","res-tleft"],["type","text","bsDatepicker","",1,"date-width",3,"ngModelChange","bsConfig","ngModel","minDate","maxDate"],["type","text",1,"date-width",3,"ngModelChange","blur","ngModel"]],template:function(o,e){if(o&1){let l=E();a(0,"div",1),v(1,"app-header",2),a(2,"section",3)(3,"div",4)(4,"div",5),v(5,"div",6),a(6,"div",7)(7,"div",8)(8,"div",9)(9,"label",10),p(10,"Date Range"),r()(),a(11,"div",11)(12,"div",12)(13,"input",13),M("ngModelChange",function(i){return u(l),y(e.startDate,i)||(e.startDate=i),f(i)}),C("ngModelChange",function(){return e.itemsDisplay=!1}),r(),a(14,"span"),p(15,"to"),r(),a(16,"input",13),M("ngModelChange",function(i){return u(l),y(e.endDate,i)||(e.endDate=i),f(i)}),C("ngModelChange",function(){return e.itemsDisplay=!1}),r()()()(),a(17,"div",8)(18,"div",9)(19,"label",14),p(20,"# of Referrals Required"),r()(),a(21,"div",11)(22,"input",15),M("ngModelChange",function(i){return u(l),y(e.numOfRef,i)||(e.numOfRef=i),f(i)}),C("ngModelChange",function(){return e.itemsDisplay=!1})("keypress",function(i){return e.isNumeric(i)})("paste",function(){return!1}),r()()()(),a(23,"div",16)(24,"div",8)(25,"div",17)(26,"label",18),p(27,"Sort By"),r()(),a(28,"div",19)(29,"select",20),C("change",function(i){return e.selectTypeOnChange(i.target.value)}),M("ngModelChange",function(i){return u(l),y(e.selectType,i)||(e.selectType=i),f(i)}),P(30,ve,2,3,"option",21,b),r()()()()(),a(32,"div",8),v(33,"div",22),a(34,"div",23)(35,"button",24),C("click",function(){return e.generateReferralReport()}),v(36,"i",25),p(37," Generate"),r(),_(38,xe,4,0,"span"),a(39,"span",26)(40,"button",27),C("click",function(){return e.printDiv()}),v(41,"i",28),p(42,"\xA0 "),a(43,"span",29),p(44,"Print"),r()(),_(45,Se,5,0,"button",30),r()()(),_(46,ke,20,1,"div",31),r()(),v(47,"app-rightbar"),r(),a(48,"div",32,0)(50,"div",33)(51,"div",34)(52,"div",35)(53,"span"),p(54,"REFERRAL REPORT"),r()(),a(55,"div",36)(56,"div",8)(57,"div",37)(58,"label"),p(59,"Option1"),r()(),a(60,"div",38)(61,"input",39),M("ngModelChange",function(i){return u(l),y(e.option1,i)||(e.option1=i),f(i)}),C("keypress",function(i){return e.isNumeric(i)})("paste",function(){return!1}),r()()(),a(62,"div",8)(63,"div",40)(64,"label"),p(65,"Run Report"),r()(),a(66,"div",38)(67,"select",41),M("ngModelChange",function(i){return u(l),y(e.runReport,i)||(e.runReport=i),f(i)}),C("change",function(){return e.onChangeRunReport()}),P(68,Fe,2,3,"option",21,b),r()()(),_(70,Ne,5,0,"div",8),_(71,We,5,0,"div",8),_(72,Be,5,0,"div",8),_(73,Ve,5,0,"div",8),_(74,Le,5,0,"div",8),_(75,Ie,5,0,"div",8),_(76,Ae,5,0,"div",8),_(77,Ye,5,0,"div",8),_(78,je,10,8,"div",8),_(79,He,10,5,"div",8),_(80,ze,6,1,"div",8),a(81,"div",8)(82,"div",37)(83,"label"),p(84,"Email Report To"),r()(),a(85,"div",38)(86,"input",42),M("ngModelChange",function(i){return u(l),y(e.scheduleEmail,i)||(e.scheduleEmail=i),f(i)}),r()()(),a(87,"div",8)(88,"div",37)(89,"label"),p(90,"File Type"),r()(),a(91,"div",43)(92,"div",44)(93,"input",45),C("click",function(i){return e.clearSerType(i.target.value)}
14),M("ngModelChange",function(i){return u(l),y(e.fileType,i)||(e.fileType=i),f(i)}),r(),a(94,"span",46),p(95,"PDF"),r(),a(96,"span")(97,"input",47),C("click",function(i){return e.clearSerType(i.target.value)}),M("ngModelChange",function(i){return u(l),y(e.fileType1,i)||(e.fileType1=i),f(i)}),r(),a(98,"span",46),p(99,"CSV"),r()()()()(),a(100,"div",48)(101,"div",49)(102,"button",50),C("click",function(){return e.saveSchedule()}),p(103,"Save"),r(),a(104,"button",51),C("click",function(){return e.cancelModal()}),p(105,"Cancel"),r()()()()()()()}o&2&&(d(),w("newMenu","nav"),d(12),R("ngModel",e.startDate),w("minDate",e.minDate)("maxDate",e.maxDate)("bsConfig",e.datePickerConfig),d(3),R("ngModel",e.endDate),w("minDate",e.minDate)("maxDate",e.maxDate)("bsConfig",e.datePickerConfig),d(6),R("ngModel",e.numOfRef),Q("value",e.numOfRef),d(7),R("ngModel",e.selectType),d(),O(e.staticData),d(8),D(e.displayMsg===!1?38:-1),d(7),D((e.refferalData==null?null:e.refferalData.length)>0&&e.decodedToken.Reports["Export Reports"]?45:-1),d(),D(e.itemsDisplay?46:-1),d(2),w("config",A(32,Me)),d(13),R("ngModel",e.option1),d(6),R("ngModel",e.runReport),d(),O(e.runReportOptions),d(2),D(e.runReport==="ASAP"?70:-1),d(),D(e.runReport==="Daily"?71:-1),d(),D(e.runReport==="Weekly"?72:-1),d(),D(e.runReport==="Biweekly"?73:-1),d(),D(e.runReport==="1st & 16th"?74:-1),d(),D(e.runReport==="Monthly"?75:-1),d(),D(e.runReport==="Quarterly"?76:-1),d(),D(e.runReport==="Yearly"?77:-1),d(),D(e.runReport==="ASAP"?78:-1),d(),D(e.runReport==="Daily"||e.runReport==="Weekly"||e.runReport==="Biweekly"?79:-1),d(),D(e.runReport==="1st & 16th"||e.runReport==="Monthly"||e.runReport==="Quarterly"||e.runReport==="Yearly"?80:-1),d(6),R("ngModel",e.scheduleEmail),d(7),R("ngModel",e.fileType),d(4),R("ngModel",e.fileType1))},dependencies:[de,ae,re,K,ne,ie,ee,te,he,ge,fe,_e,me],styles:["#inner_cont[_ngcontent-%COMP%]{margin-right:7%;color:#354452}.form_cont[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%], .form-control[_ngcontent-%COMP%], .form_cont[_ngcontent-%COMP%]   input[type=email][_ngcontent-%COMP%], .form_cont[_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%], .form_cont[_ngcontent-%COMP%]   input[type=password][_ngcontent-%COMP%], .form_cont[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{color:#354452;font-weight:400!important;font-size:15px!important}.form_cont[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]:focus, .form-control[_ngcontent-%COMP%], .form_cont[_ngcontent-%COMP%]   input[type=email][_ngcontent-%COMP%]:focus, .form_cont[_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%]:focus, .form_cont[_ngcontent-%COMP%]   input[type=password][_ngcontent-%COMP%]:focus{color:#000}.table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#354452;text-decoration:underline!important;cursor:pointer}.form_cont[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:inline-block}.form_cont[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%], .form-control[_ngcontent-%COMP%], .form_cont[_ngcontent-%COMP%]   input[type=email][_ngcontent-%COMP%], .form_cont[_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%], .form_cont[_ngcontent-%COMP%]   input[type=password][_ngcontent-%COMP%]{box-shadow:inset 0 1px 1px #00000013;width:100%;border:solid 1px #24282f!important;height:35px;padding:5px 10px;outline:none;background:none;color:#354452!important;border-radius:0;background:none!important}.form_cont[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]:focus, .form-control[_ngcontent-%COMP%]:focus, .form_cont[_ngcontent-%COMP%]   input[type=email][_ngcontent-%COMP%]:focus, .form_cont[_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%]:focus, .form_cont[_ngcontent-%COMP%]   input[type=password][_ngcontent-%COMP%]:focus{color:#354452!important;border-color:#354452!important}@media(max-width:991px){.form_cont[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{padding-left:0;padding-right:0;font-size:13px}}.form_cont[_ngcontent-%COMP%]{padding-bottom:35px}.label[_ngcontent-%COMP%]{font-weight:700;color:#354452;padding:.2em .6em .3em}[_nghost-%COMP%]     .wd-al{margin-left:0!important;text-align:left}[_nghost-%COMP%]     .text-capitalize{text-transform:uppercase}@media(max-width:768px){.table-responsive[_ngcontent-%COMP%]{margin-right:10%}}@media(device-width:1024px){.table-responsive[_ngcontent-%COMP%]{margin-right:6%}}@media(device-width:768px){.form_cont[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{font-size:10px}#inner_cont[_ngcontent-%COMP%]{margin-right:10%}}@media(device-width:1024px){.form_cont[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{font-size:10px}#inner_cont[_ngcontent-%COMP%]{margin-right:10%}}.select-new-trans[_ngcontent-%COMP%]{background-image:url(/assets/images/arrow-new-down-blk.png)!important;
14background-position:calc(100% - 10px) center!important;background-color:#d9e9f8!important;border:0px solid #fff!important;font-size:16px!important;-webkit-box-shadow:none;width:100%!important;font-weight:500!important}.input-type[_ngcontent-%COMP%]{color:#fff}.table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{padding:8px;line-height:1.42857143;vertical-align:top;border-top:0px solid #ddd}.date-flex[_ngcontent-%COMP%]{display:flex;align-items:center;width:98.5%}.date-flex[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding:0 10px}.input-padding[_ngcontent-%COMP%]{padding:5px!important;width:60%}.btn-schedule[_ngcontent-%COMP%]:hover, .btn-schedule[_ngcontent-%COMP%]:focus{color:#338ad9!important}@media only screen and (max-width:760px),(min-device-width:768px)and (max-device-width:1024px){.date-flex[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]{font-size:14px!important;padding-right:0;padding-left:3px}.date-flex[_ngcontent-%COMP%], .form_cont[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]{width:115%}.date-width[_ngcontent-%COMP%]{width:36%}}@media only screen and (max-device-width:1180px),(min-device-width:820px)and (max-device-width:1180px){.date-width[_ngcontent-%COMP%]{width:39%}.selectrunreport[_ngcontent-%COMP%]{width:80%!important}.input-padding[_ngcontent-%COMP%]{width:81%}}"]})}}return n})();var Re=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=W({type:n})}static{this.\u0275inj=N({imports:[Y.forChild([{path:"",component:H,children:[{path:"",component:H}]}]),Y]})}}return n})();var gt=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=W({type:n})}static{this.\u0275inj=N({imports:[$,Re,oe,ue,De,ce]})}}return n})();export{gt as ReferralReportModule};

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.