1"use strict";(self.webpackChunkpikmykid=self.webpackChunkpikmykid||[]).push([[9138],{9138:(V,I,p)=>{p.r(I),p.d(I,{ReportsContainerComponent:()=>qt});var a=p(177),u=p(2168),f=p(1141),R=p(5144),b=p(8542),_=p(1401),D=p(8427),e=p(4438),l=function(o){return o[o.Student=1]="Student",o[o.StudentChangeMode=2]="StudentChangeMode",o[o.StudentDelegation=3]="StudentDelegation",o[o.RealtimeStudentDismissal=4]="RealtimeStudentDismissal",o[o.DailyStudentDismissal=5]="DailyStudentDismissal",o[o.StudentsEarlyReleaseOrAbsent=6]="StudentsEarlyReleaseOrAbsent",o[o.Dispatcher=7]="Dispatcher",o[o.Principal=8]="Principal",o[o.StudentAddedRemoved=9]="StudentAddedRemoved",o[o.StudentDispatchActivity=10]="StudentDispatchActivity",o[o.SchoolBusBoarding=11]="SchoolBusBoarding",o[o.Notifications=12]="Notifications",o[o.NonDismissed=13]="NonDismissed",o[o.StudentId=14]="StudentId",o[o.AfterSchoolList=15]="AfterSchoolList",o[o.SchoolBusList=16]="SchoolBusList",o[o.NonCarLine=17]="NonCarLine",o[o.KidsNotDismissedByPickupMode=18]="KidsNotDismissedByPickupMode",o[o.AnnounceReport=19]="AnnounceReport",o[o.CheckInReport=20]="CheckInReport",o[o.RegisteredParents=21]="RegisteredParents",o[o.StudentsRollCall=22]="StudentsRollCall",o[o.StudentAllChanges=23]="StudentAllChanges",o[o.SIS_Rediker_RollCallImport=24]="SIS_Rediker_RollCallImport",o[o.AfterSchoolWhitelistedStudents=25]="AfterSchoolWhitelistedStudents",o[o.BusRouteWhiteListedStudents=26]="BusRouteWhiteListedStudents",o[o.StudentAbsenteeSummary=27]="StudentAbsenteeSummary",o[o.ParentCheckInReport=28]="ParentCheckInReport",o[o.ParentCheckInQuestionsReport=29]="ParentCheckInQuestionsReport",o[o.ParentConnectionCodes=30]="ParentConnectionCodes",o[o.BusStatus=31]="BusStatus",o[o.DispatcherHistory=32]="DispatcherHistory",o[o.ScheduledEarlyDismissal=33]="ScheduledEarlyDismissal",o[o.BackToSchool=34]="BackToSchool",o[o.ReunificationStudentCheckIn=35]="ReunificationStudentCheckIn",o[o.ReunificationGuardianCheckIn=36]="ReunificationGuardianCheckIn",o[o.ReunificationDismissal=37]="ReunificationDismissal",o[o.ReunificationStudentsNotAtSchool=38]="ReunificationStudentsNotAtSchool",o[o.ReunificationStudentCheckInDrill=39]="ReunificationStudentCheckInDrill",o[o.ReunificationStudentsNotAtSchoolDrill=40]="ReunificationStudentsNotAtSchoolDrill",o[o.AllHallpasses=41]="AllHallpasses",o[o.AllEmergencyNotifications=42]="AllEmergencyNotifications",o[o.StudentInTagsReport=43]="StudentInTagsReport",o[o.StudentTagHistoryReport=44]="StudentTagHistoryReport",o[o.HallPassUsage=45]="HallPassUsage",o[o.HallPassRestrictionGroups=46]="HallPassRestrictionGroups",o[o.RestrictionsOverwrittenByStaff=47]="RestrictionsOverwrittenByStaff",o[o.HallPassCreatedUpdatedDeleted=48]="HallPassCreatedUpdatedDeleted",o[o.HallPassSimultaneousDetection=49]="HallPassSimultaneousDetection",o[o.StudentNotesReport=50]="StudentNotesReport",o[o.StudentNotesHistoryReport=51]="StudentNotesHistoryReport",o[o.StudentContactsReport=52]="StudentContactsReport",o[o.NotificationsSummary=53]="NotificationsSummary",o[o.NotificationsStatusDetail=54]="NotificationsStatusDetail",o[o.ReunificationSummary=55]="ReunificationSummary",o[o.ReunificationStaffCheckIn=56]="ReunificationStaffCheckIn",o[o.ReunificationVisitorCheckIn=57]="ReunificationVisitorCheckIn",o[o.StudentPeriodAttendance=58]="StudentPeriodAttendance",o}(l||{}),w=function(o){return o[o.DismissalManagement=1]="DismissalManagement",o[o.RecordManagement=2]="RecordManagement",o[o.ReunificationReports=3]="ReunificationReports",o[o.HallPassReports=4]="HallPassReports",o[o.EmergencyNotifications=5]="EmergencyNotifications",o[o.Messenger=6]="Messenger",o}(w||{}),S=p(1626),G=p(5312),g=p(2735),m=p(2490);let c=(()=>{class o{constructor(t,r,n){this.http=t,this.systemService=r,this.cookieService=n}getSchoolReportsByCategory(t){return this.http.post(G.c.basePath+"SchoolAdmin/GetSchoolReportsByCategoryV2",{CategoryId:t},this.systemService.options)}getRecentSchoolReports(){return this.http.get(G.c.basePath+"SchoolAdmin/GetRecentSchoolReports",this.systemService.options)}getReport(t){return this.http.post(G.c.basePath+"SchoolAdmin/GetReportV2",t,this.systemService.options)}downloadReport(t){let r={headers:new S.Lr({"Content-Type":"application/json",AuthTokenId:this.cookieService.get("AuthTokenID")}),withCredentials:!0,responseType:"blob",observe:"response"};return this.http.post(G.c.basePath+"SchoolAdmin/DownloadReportV2",t,r)}static#e=this.\u0275fac=function(r){return new(r||o)(e.KVO(S.Qq),e.KVO(g.V),e.KVO(m.O))};static#t=this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac})}return o}
1)();var C=p(8833),s=p(9417),v=p(9851),B=p(2242);class M{constructor(d){this.Id=0,this.FromDate="",this.ToDate="",this.Day="",this.DispatcherId=null,this.StudentId=null,this.RouteId=null,this.ClassId=null,this.PickUpMode=null,this.DayPickUpMode="",this.SchoolStudentId="",this.DismissalPlanOptions="All",this.AfterSchoolProgramId=null,this.ReunificationId=null,this.ReunificationStatus="All",this.SelectedStudentTagId=null,this.SelectedStudentTagIds=[],this.HallPassDestinations=[],this.HallPassSharedOptionId=0,this.NotificationId="",this.DelegationChangeStatusId=0,this.Id=d??0}}var j=p(4582),A=p(6296),Q=p(9071),H=p(5779),Z=p(5430),me=p(1413),fe=p(152),ee=p(3513),F=p(8370);const _e=["tbl"],Ce=()=>[10,25,50,75,100],Re=()=>({"min-width":"200px","max-width":"300px"});function be(o,d){if(1&o){const t=e.RV6();e.j41(0,"p-checkbox",12),e.mxI("ngModelChange",function(n){e.eBV(t);const i=e.XpG(2);return e.DH7(i.selectAll,n)||(i.selectAll=n),e.Njj(n)}),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.selectAllColumns())}),e.k0s()}if(2&o){const t=e.XpG(2);e.R50("ngModel",t.selectAll),e.Y8G("binary",!0)("label","Select All")}}function De(o,d){if(1&o){const t=e.RV6();e.j41(0,"div",6)(1,"div",7)(2,"p-multiSelect",8),e.mxI("ngModelChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.selectedColumns,n)||(i.selectedColumns=n),e.Njj(n)}),e.bIt("onChange",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.onColumnsChanged())}),e.DNE(3,be,1,3,"ng-template",3),e.k0s()(),e.j41(4,"div",7)(5,"button",9),e.bIt("click",function(){e.eBV(t),e.XpG();const n=e.sdS(1);return e.Njj(n.exportCSV())}),e.k0s()(),e.j41(6,"div",7)(7,"button",10),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.print())}),e.k0s()(),e.j41(8,"div",7)(9,"button",11),e.bIt("click",function(){e.eBV(t),e.XpG();const n=e.sdS(1);return e.Njj(n.clear())}),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(2),e.Aen(e.lJ4(11,Re)),e.Y8G("options",t.reportCols)("maxSelectedLabels",2)("showToggleAll",!1)("filter",!1)("showClear",!1),e.R50("ngModel",t.selectedColumns),e.Y8G("optionLabel","header"),e.R7$(3),e.Y8G("disabled",0==t.selectedColumns.length),e.R7$(2),e.Y8G("disabled",0==t.selectedColumns.length)}}function ye(o,d){if(1&o&&(e.j41(0,"th",15)(1,"span"),e.EFF(2),e.k0s(),e.nrm(3,"p-sortIcon",16),e.k0s()),2&o){const t=d.$implicit,r=e.XpG(2);e.Y8G("pSortableColumn",t.field),e.R7$(2),e.JRh(r.toReadableLabel(t.header)),e.R7$(),e.Y8G("field",t.field)}}function we(o,d){if(1&o&&(e.j41(0,"th",17),e.nrm(1,"p-columnFilter",18),e.k0s()),2&o){const t=d.$implicit,r=e.XpG(2);e.R7$(),e.Y8G("field",t.field)("matchMode",r.matchMode)("showMenu",!1)("showButtons",!1)}}function ve(o,d){if(1&o&&(e.j41(0,"tr"),e.DNE(1,ye,4,3,"th",13),e.k0s(),e.j41(2,"tr"),e.DNE(3,we,2,4,"th",14),e.k0s()),2&o){const t=d.$implicit;e.R7$(),e.Y8G("ngForOf",t),e.R7$(2),e.Y8G("ngForOf",t)}}function xe(o,d){if(1&o&&(e.j41(0,"td",20),e.EFF(1),e.k0s()),2&o){const t=d.$implicit,r=e.XpG().$implicit;e.R7$(),e.JRh(r[t.field])}}function Se(o,d){if(1&o&&(e.j41(0,"tr"),e.DNE(1,xe,2,1,"td",19),e.k0s()),2&o){const t=d.columns;e.R7$(),e.Y8G("ngForOf",t)}}function Me(o,d){1&o&&(e.j41(0,"div",21),e.EFF(1," Please select at least one column to see the report.\n"),e.k0s())}let L=(()=>{class o{constructor(t,r){this.systemService=t,this.userSettingService=r,this.reportData=[],this.reportCols=[],this.selectedColumns=[],this.columnsChange$=new me.B,this.selectAll=!0,this.matchMode=H.Rn.CONTAINS,this.downloadCsvOptions={allValues:!0,selectionOnly:!0}}ngOnInit(){this.columnsChange$.pipe((0,fe.B)(1e3)).subscribe(t=>{this.saveUserColumnSettings(t)})}selectAllColumns(){this.selectedColumns=this.selectAll?this.reportCols:[],this.onColumnsChanged()}export(t){t.exportCSV()}print(){this.systemService.getReportPrintingData.next({SelectedColumns:this.selectedColumns,FilteredTableData:this.tblViewChild.filteredValue?this.tblViewChild.filteredValue:this.tblViewChild.value})}toReadableLabel(t){return(0,ee.q)(t)}onColumnsChanged(){this.columnsChange$.next(this.selectedColumns)}saveUserColumnSettings(t){const r=t.map(i=>i.field),n={settingName:`ReportSetting_${this.reportId}`,settingsData:JSON.stringify(r)};this.userSettingService.setUserSettings(n).subscribe()}static#e=this.\u0275fac=function(r){return new(r||o)(e.rXU(g.V),e.rXU(F.$))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-report-table"]],viewQuery:function(r,n){if(1&r&&e.GBs(_e,5),2&r){let i;e.mGM(i=e.lsd())&&(n.tblViewChild=i.first)}},inputs:{reportData:"reportData",reportCols:"reportCols",selectedColumns:"selectedColumns",reportId:"reportId"},standalone:!0,features:[e.Jv_([c]),e.aNF],decls:6,vars:13,consts:[["tbl",""],["currentPageReportTemplate","{first}-{last} of {totalRecords}","styleClass","p-datatable-gridlines settings_table",3,"value","columns","rowHover","paginator","pageLinks","showCurrentPageReport","rowsPerPageOptions","rows","totalRecords","scrollable","scrollHeight"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["class","no-columns-message",4,"ngIf"],[2,"display","flex","width","100%"],[2,"align-self","center"],["selectedItemsLabel","{0} columns selected","placeholder","Choose Columns",3,"ngModelChange","onChange","options","maxSelectedLabels","showToggleAll","filter","showClear","ngModel","optionLabel"],["pButton","","icon","pi pi-external-link","label","Export",1,"btn","btn-primary","report-btn",3,"click","disabled"],["pButton","","icon","pi pi-print","label","Print",1,"btn","btn-primary","report-btn","ml-0",3,"click","disabled"],["pButton","","label","Clear Filters",1,"btn","btn-primary","report-btn","ml-0","clear-filters",3,"click"],[3,"ngModelChange","click","ngModel","binary","label"],["class","reports-cell",3,"pSortableColumn",4,"ngFor","ngForOf"],["style","padding-left: 4px; padding-right: 4px;",4,"ngFor","ngForOf"],[1,"reports-cell",3,"pSortableColumn"],[3,"field"],[2,"padding-left","4px","padding-right","4px"],["type","text",3,"field","matchMode","showMenu","showButtons"],["class","reports-cell",4,"ngFor","ngForOf"],[1,"reports-cell"],[1,"no-columns-message"]],template:function(r,n){1&r&&(e.j41(0,"p-table",1,0),e.DNE(2,De,10,12,"ng-template",2)(3,ve,4,2,"ng-template",3)(4,Se,2,1,"ng-template",4),e.k0s(),e.DNE(5,Me,2,0,"div",5)),2&r&&(e.Y8G("value",n.reportData)("columns",n.selectedColumns)("rowHover",!n.systemService.viewportVerySmall())("paginator",n.selectedColumns.length>0)("pageLinks",n.systemService.viewportSmall()?0:5)("showCurrentPageReport",n.selectedColumns.length>0)("rowsPerPageOptions",e.lJ4(12,Ce))("rows",25)("totalRecords",n.reportData.length)("scrollable",!0)("scrollHeight","650px"),e.R7$(5),e.Y8G("ngIf",0==n.selectedColumns.length&&n.reportCols.length>0))},dependencies:[a.MD,a.Sq,a.bT,f.tm,f._f,H.Ei,b.S,_.N,D.N,R.Mk,u.iI,j.bG,j.XI,j.Tg,j.yc,j.rl,A.iV,A.KF,s.YN,s.BC,s.vS,Z.q4,Z.Sc],styles:[".no-columns-message[_ngcontent-%COMP%]{padding-left:14px;font-weight:500} .p-datatable-header{padding:0!important} .p-paginator{padding-right:0!important;padding-left:0!important} .p-paginator .p-paginator-current{padding-left:0!important;padding-right:0!important}.reports-cell[_ngcontent-%COMP%]{overflow-x:hidden;text-wrap-mode:nowrap;text-overflow:ellipsis;max-width:0px;padding-left:4px!important;padding-right:4px!important}.report-btn[_ngcontent-%COMP%]{height:43px}.ml-0[_ngcontent-%COMP%]{margin-left:0}.clear-filters[_ngcontent-%COMP%]{min-width:unset;margin-right:0}"],changeDetection:0})}return o}
1)();var U=function(o){return o[o.All=0]="All",o[o.Approved=1]="Approved",o[o.Rejected=2]="Rejected",o[o.Cancelled=3]="Cancelled",o}(U||{}),N=p(1043),x=p(3321),Y=p(6516),y=p(6798),$=p(4979),te=p(5017);let K=(()=>{class o{constructor(t){this.userSettingService=t,this.reportSelectedCols=[],this.reportSelectedColsChange=new e.bkB,this.reportData=[],this.reportDataChange=new e.bkB,this.reportCols=[],this.reportColsChange=new e.bkB,this.showResultsChange=new e.bkB,this.enableLoadFilters=!1,this.enableLoadFiltersChange=new e.bkB,this.getReportAction=()=>{this.saveFilters(),this.validateRequest(!1)},this.downloadReportAction=()=>{this.saveFilters(),this.validateRequest(!0)}}ngOnInit(){this.enableLoadFilters||(this.selectedReport=null),this.filterForm=this.buildFilterForm(),this.loadFilters()}loadFilters(){!this.selectedReport||!this.enableLoadFilters||this.userSettingService.getUserReportSettings(this.selectedReport).subscribe(t=>{if(t.Data)try{const r=JSON.parse(t.Data);r.FromDate&&(r.FromDate=new Date(r.FromDate)),r.ToDate&&(r.ToDate=new Date(r.ToDate)),this.filterForm.patchValue(r,{emitEvent:!1})}catch(r){console.warn(`Invalid saved filters for ${this.selectedReport}`,r)}this.updateEnableLoadFilters(!1)})}saveFilters(){this.selectedReport&&this.userSettingService.setUserReportSettings({reportId:this.selectedReport,userReportSettings:JSON.stringify(this.filterForm.value)}).subscribe()}filterAllowed(t){if(null==this.selectedReport)return!1;let r=this.reportAllowedFilters.find(n=>n.Id==this.selectedReport);return!(!r||!r.Filters)&&r.Filters.includes(t)}updateEnableLoadFilters(t){this.enableLoadFilters=t,this.enableLoadFiltersChange.emit(this.enableLoadFilters)}static#e=this.\u0275fac=function(r){return new(r||o)(e.rXU(F.$))};static#t=this.\u0275dir=e.FsC({type:o,inputs:{getReport:"getReport",downloadReport:"downloadReport",reportSelectedCols:"reportSelectedCols",reportData:"reportData",reportCols:"reportCols",showResults:"showResults",getReportBtnState:"getReportBtnState",downloadReportBtnState:"downloadReportBtnState",selectedReport:"selectedReport",enableLoadFilters:"enableLoadFilters"},outputs:{reportSelectedColsChange:"reportSelectedColsChange",reportDataChange:"reportDataChange",reportColsChange:"reportColsChange",showResultsChange:"showResultsChange",enableLoadFiltersChange:"enableLoadFiltersChange"}})}return o})();var Te=p(9024),Ie=p(9410),X=p(4244);const Pe=["results"],W=()=>({width:"100%"}),ke=()=>({color:"#8EA6BA !important"});function Fe(o,d){if(1&o&&(e.j41(0,"div",18)(1,"div",19)(2,"label",10),e.EFF(3,"From Date "),e.nrm(4,"app-required",20),e.k0s(),e.nrm(5,"p-calendar",21),e.k0s(),e.j41(6,"div",22)(7,"label",10),e.EFF(8,"To Date "),e.nrm(9,"app-required",20),e.k0s(),e.nrm(10,"p-calendar",23),e.k0s()()),2&o){const t=e.XpG();e.R7$(4),e.Y8G("field",t.f.FromDate),e.R7$(),e.Aen(e.lJ4(8,W)),e.Y8G("maxDate",t.maxDate),e.R7$(4),e.Y8G("field",t.f.ToDate),e.R7$(),e.Aen(e.lJ4(9,W)),e.Y8G("minDate",t.minDate)}}function Oe(o,d){if(1&o&&(e.j41(0,"div",24)(1,"label",10),e.EFF(2,"Classroom"),e.k0s(),e.nrm(3,"p-dropdown",25),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("showClear",!0)("options",t.classrooms)("optionLabel","Name")("optionValue","Id")("placeholder","All Classes")}}function Ge(o,d){if(1&o&&(e.j41(0,"div",24)(1,"label",10),e.EFF(2,"Options"),e.k0s(),e.nrm(3,"p-dropdown",26),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("options",t.dismissalOptions)("optionLabel","label")("optionValue","value")}}function Be(o,d){if(1&o&&(e.j41(0,"div",24)(1,"label",10),e.EFF(2,"Day "),e.nrm(3,"app-required",20),e.k0s(),e.nrm(4,"p-calendar",27),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.Day),e.R7$(),e.Aen(e.lJ4(3,W))}}function je(o,d){if(1&o&&(e.j41(0,"div",24)(1,"label",10),e.EFF(2,"Pickup Mode"),e.k0s(),e.nrm(3,"p-dropdown",28),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("showClear",!0)("options",t.pickupModes)("optionLabel","pickupMode")("optionValue","id")("placeholder","All Pickup Modes")}}function Ae(o,d){if(1&o&&(e.j41(0,"div",24)(1,"label",10),e.EFF(2,"Status"),e.k0s(),e.nrm(3,"p-dropdown",29),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Aen(e.lJ4(5,ke)),e.Y8G("options",t.statusType)("optionLabel","label")("optionValue","value")}}function Ne(o,d){if(1&o){const t=e.RV6();e.j41(0,"pmk-multiselect-filter-fix",32),e.mxI("filterTextChange",function(n){e.eBV(t);const i=e.XpG(2);return e.DH7(i.studentTagsFilterText,n)||(i.studentTagsFilterText=n),e.Njj(n)}),e.bIt("cb",function(n){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectAll(n))}),e.k0s()}if(2&o){e.XpG();const t=e.sdS(5),r=e.XpG();e.R50("filterText",r.studentTagsFilterText),e.Y8G("toggleClearFilter",!0)("selectAllChecked",r.studentTagsSelectAll)("multiSelectId",t)}}function Ve(o,d){if(1&o){const t=e.RV6();e.j41(0,"div",24)(1,"label",10),e.EFF(2,"Student Tags "),e.nrm(3,"app-required",20),e.k0s(),e.j41(4,"p-multiSelect",30,0),e.bIt("onChange",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.checkAllSelected())}),e.DNE(6,Ne,1,4,"ng-template",31),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.SelectedStudentTagIds),e.R7$(),e.Y8G("options",t.studentTags)("optionLabel","TagName")("optionValue","Id")("filter",!0)("placeholder","All Student Tags Selected")}}function Le(o,d){1&o&&(e.j41(0,"div",24)(1,"label",10),e.EFF(2,"Student Id"),e.k0s(),e.nrm(3,"input",33),e.k0s())}function Ye(o,d){1&o&&(e.j41(0,"div",34),e.EFF(1," No data is available for this report "),e.k0s())}function Ke(o,d){if(1&o&&(e.j41(0,"div",35,1),e.nrm(2,"app-report-table",36),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("reportData",t.reportData)("reportCols",t.reportCols)("selectedColumns",t.reportSelectedCols)("reportId",t.selectedReport)}}let Xe=(()=>{class o extends K{set resultsContent(t){t&&(this.resultsDiv=t)}constructor(t,r,n,i,h,T){super(T),this.systemService=t,this.reportsService=r,this.pickupModeService=n,this.classroomService=i,this.studentTagService=h,this.pickupModes=[],this.pickupModesChange=new e.bkB,this.classrooms=[],this.classroomsChange=new e.bkB,this.studentTags=[],this.studentTagsChange=new e.bkB,this.reports=[],this.getReportRequest=new M(this.selectedReport),this.studentTagsFilterText="",this.studentTagsSelectAll=!1,this.filterKeys={DateRange:"dateRange",DismissalOptions:"dism
1issalOptions",Classrooms:"classrooms",SingleDay:"singleDay",DelegationStatusType:"statusType",PickupModes:"pickupModes",SchoolStudentId:"schoolStudentId",StudentTag:"studentTag"},this.dismissalOptions=[{label:"All Students",value:"All"},{label:"Only Students with Changes",value:"Changes"}],this.statusType=[{label:"All",value:U.All},{label:"Approved Changes",value:U.Approved},{label:"Rejected Changes",value:U.Rejected},{label:"Cancelled Changes",value:U.Cancelled}],this.validateRequest=P=>{if(this.filterForm.invalid||null==this.selectedReport)return this.f.FromDate.markAsDirty(),this.f.ToDate.markAsDirty(),void this.f.Day.markAsDirty();const k=new M(this.selectedReport);Object.assign(k,this.filterForm.value),P?this.downloadReport(k):this.getReport(k)}}ngOnChanges(t){t.showResults&&1==t.showResults.currentValue&&setTimeout(()=>{this.reportData.length>0&&this.resultsDiv.nativeElement.scrollIntoView({behavior:"smooth"})},100)}ngOnDestroy(){this.resetData()}buildFilterForm(){return new s.gE({FromDate:new s.MJ(""),ToDate:new s.MJ(""),DismissalPlanOptions:new s.MJ("All"),ClassId:new s.MJ(null),Day:new s.MJ(""),DelegationChangeStatusId:new s.MJ(0),PickUpMode:new s.MJ(null),SchoolStudentId:new s.MJ(""),SelectedStudentTagIds:new s.MJ([])})}selectAll(t){this.studentTagsSelectAll=t,this.f.SelectedStudentTagIds.patchValue(t?this.getFilteredStudentTags().map(r=>r.Id):[])}checkAllSelected(){this.studentTagsSelectAll=this.f.SelectedStudentTagIds.value.length==this.getFilteredStudentTags().length}getFilteredStudentTags(){return this.studentTags.filter(t=>t.TagName.toLowerCase().includes(this.studentTagsFilterText))}ngOnInit(){if(this.systemService.setLoading(!0),super.ngOnInit(),this.reportAllowedFilters=[{Id:l.StudentChangeMode,Filters:[this.filterKeys.DateRange]},{Id:l.StudentDelegation,Filters:[this.filterKeys.DateRange]},{Id:l.RealtimeStudentDismissal,Filters:[this.filterKeys.DateRange]},{Id:l.DailyStudentDismissal,Filters:[this.filterKeys.Classrooms,this.filterKeys.DismissalOptions,this.filterKeys.SingleDay,this.filterKeys.StudentTag]},{Id:l.KidsNotDismissedByPickupMode,Filters:[this.filterKeys.DateRange,this.filterKeys.PickupModes]},{Id:l.AfterSchoolList,Filters:[]},{Id:l.SchoolBusList,Filters:[]},{Id:l.NonCarLine,Filters:[this.filterKeys.SingleDay]},{Id:l.NonDismissed,Filters:[this.filterKeys.SingleDay]},{Id:l.AnnounceReport,Filters:[this.filterKeys.DateRange]},{Id:l.CheckInReport,Filters:[this.filterKeys.DateRange,this.filterKeys.SchoolStudentId,this.filterKeys.StudentTag]},{Id:l.StudentAllChanges,Filters:[this.filterKeys.DateRange,this.filterKeys.DelegationStatusType]},{Id:l.BusStatus,Filters:[this.filterKeys.DateRange]},{Id:l.DispatcherHistory,Filters:[this.filterKeys.DateRange]},{Id:l.ScheduledEarlyDismissal,Filters:[this.filterKeys.DateRange]}],this.reportsService.getSchoolReportsByCategory(w.DismissalManagement).subscribe(t=>{this.reports=t.Data,this.systemService.setLoading(!1)}),0==this.pickupModes.length){let t={SearchText:"",PickUpMode:""};this.systemService.setLoading(!0,y.b.BackendRequest_1),this.pickupModeService.getPickUpModes(t).subscribe(r=>{this.pickupModes=r,this.systemService.setLoading(!1,y.b.BackendRequest_1),this.pickupModesChange.emit(this.pickupModes)})}0==this.studentTags.length&&(this.systemService.setLoading(!0,y.b.BackendRequest_3),this.studentTagService.GetStudentTags().subscribe(t=>{this.studentTags=t.Data,this.systemService.setLoading(!1,y.b.BackendRequest_3),this.studentTagsChange.emit(this.studentTags)})),0==this.classrooms.length&&(this.systemService.setLoading(!0,y.b.BackendRequest_2),this.classroomService.getClassroomsForFilter().subscribe(t=>{this.classrooms=t.Data,this.classrooms.push({Id:0,Name:"Classroom Not Assigned"}),this.systemService.setLoading(!1,y.b.BackendRequest_2),this.classroomsChange.emit(this.classrooms)}))}get f(){return this.filterForm.controls}resetRequest(){this.getReportRequest=new M(this.selectedReport),this.showResultsChange.emit(!1),this.resetData(),this.loadFilters()}resetData(){if(this.reportData=[],this.reportDataChange.emit(this.reportData),this.reportCols=[],this.reportColsChange.emit(this.reportCols),this.minDate=void 0,this.maxDate=void 0,this.resetForm(),null!=this.selectedReport){let t=this.reportAllowedFilters.find(r=>r.Id==this.selectedReport).Filters;t.includes(this.filterKeys.DateRange)&&(this.f.FromDate.setValidators((0,x.o)([{type:"required"}])),this.f.ToDate.setValidators((0,x.o)([{type:"required"}]))),t.includes(this.filterKeys.SingleDay)&&this.f.Day.setValidators((0,x.o)([{type:"required"}]))}}resetForm(){this.filterForm=this.buildFilterForm(),this.updateMinMaxDates()}updateMinMaxDates(){this.f.FromDate.valueChanges.subscribe(t=>{this.minDate=t?new Date(t):void 0,""!=this.f.ToDate.value&&""!=this.f.FromDate.value&&this.selectedReport==l.RealtimeStudentDismissal&&this.checkMaxDateRangeErrors(this.f.FromDate,this.f.ToDate)}),this.f.ToDate.valueChanges.subscribe(t=>{this.maxDate=t?new Date(t):void 0,""!=this.f.FromDate.value&&""!=this.f.ToDate.value&&this.selectedReport==l.RealtimeStudentDismissal&&this.checkMaxDateRangeErrors(this.f.FromDate,this.f.ToDate)})}static#e=this.\u0275fac=function(r){return new(r||o)(e.rXU(g.V),e.rXU(c),e.rXU(Te.V),e.rXU(Ie.w),e.rXU($.t),e.rXU(F.$))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-reports-dismissal-management"]],viewQuery:function(r,n){if(1&r&&e.GBs(Pe,5,e.aKT),2&r){let i;e.mGM(i=e.lsd())&&(n.resultsContent=i.first)}},inputs:{pickupModes:"pickupModes",classrooms:"classrooms",studentTags:"studentTags",checkMaxDateRangeErrors:"checkMaxDateRangeErrors"},outputs:{pickupModesChange:"pickupModesChange",classroomsChange:"classroomsChange",studentTagsChange:"studentTagsChange"},standalone:!0,features:[e.Jv_([c,$.t]),e.Vt3,e.OA$,e.aNF],decls:25,vars:28,consts:[["studentTagsDropdown",""],["results",""],[1,"report-category-container"],[1,"report-category-header-container",3,"ngClass"],[1,"report-category-header"],[1,"report-control
1s-container"],[3,"maxWidth","disabled","state","action","label"],[1,"report-category-body"],[1,"report-container"],[1,"select-report"],[1,"report-label"],["appendTo","body",1,"reports-dropdown",3,"ngModelChange","showClear","ngModel","options","optionLabel","optionValue","placeholder"],[1,"filters-form"],[3,"formGroup"],["class","date-range-container report-filter-container",4,"ngIf"],["class","report-filter-container",4,"ngIf"],["class","empty-result",4,"ngIf"],["class","report-table-container","style","width: 100%;",4,"ngIf"],[1,"date-range-container","report-filter-container"],[1,"date-range",2,"margin-right","8px"],[3,"field"],["appendTo","body","dataType","string","formControlName","FromDate",3,"maxDate"],[1,"date-range",2,"margin-left","8px"],["appendTo","body","dataType","string","formControlName","ToDate",3,"minDate"],[1,"report-filter-container"],["appendTo","body","formControlName","ClassId",1,"reports-dropdown",3,"showClear","options","optionLabel","optionValue","placeholder"],["appendTo","body","formControlName","DismissalPlanOptions",1,"reports-dropdown",3,"options","optionLabel","optionValue"],["appendTo","body","dataType","string","formControlName","Day"],["appendTo","body","formControlName","PickUpMode",1,"reports-dropdown",3,"showClear","options","optionLabel","optionValue","placeholder"],["appendTo","body","formControlName","DelegationChangeStatusId",1,"reports-dropdown",3,"options","optionLabel","optionValue"],["formControlName","SelectedStudentTagIds","appendTo","body",3,"onChange","options","optionLabel","optionValue","filter","placeholder"],["pTemplate","filter"],[3,"filterTextChange","cb","filterText","toggleClearFilter","selectAllChecked","multiSelectId"],["pInputeText","","formControlName","SchoolStudentId",1,"report-input-text"],[1,"empty-result"],[1,"report-table-container",2,"width","100%"],[3,"reportData","reportCols","selectedColumns","reportId"]],template:function(r,n){1&r&&(e.j41(0,"div",2)(1,"div",3)(2,"div",4),e.EFF(3,"Dismissal Management"),e.k0s(),e.j41(4,"div",5),e.nrm(5,"app-btn-primary-state",6)(6,"app-btn-primary-state",6),e.k0s()(),e.j41(7,"div",7)(8,"div",8)(9,"div",9)(10,"label",10),e.EFF(11,"Select Report Type"),e.k0s(),e.j41(12,"p-dropdown",11),e.mxI("ngModelChange",function(h){return e.DH7(n.selectedReport,h)||(n.selectedReport=h),h}),e.bIt("ngModelChange",function(){return n.resetRequest()}),e.k0s()(),e.j41(13,"div",12)(14,"form",13),e.DNE(15,Fe,11,10,"div",14)(16,Oe,4,5,"div",15)(17,Ge,4,3,"div",15)(18,Be,5,4,"div",15)(19,je,4,5,"div",15)(20,Ae,4,6,"div",15)(21,Ve,7,6,"div",15)(22,Le,4,0,"div",15),e.k0s()(),e.DNE(23,Ye,2,0,"div",16)(24,Ke,3,4,"div",17),e.k0s()()()),2&r&&(e.R7$(),e.Y8G("ngClass",n.systemService.customViewportCheck(650)?"":"st"),e.R7$(4),e.Y8G("maxWidth",!0)("disabled",null==n.selectedReport)("state",n.getReportBtnState)("action",n.getReportAction)("label","Display Report"),e.R7$(),e.Y8G("maxWidth",!0)("disabled",null==n.selectedReport)("state",n.downloadReportBtnState)("action",n.downloadReportAction)("label","Download Report"),e.R7$(6),e.Y8G("showClear",!0),e.R50("ngModel",n.selectedReport),e.Y8G("options",n.reports)("optionLabel","Name")("optionValue","Id")("placeholder","Select"),e.R7$(2),e.Y8G("formGroup",n.filterForm),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.DateRange)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.Classrooms)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.DismissalOptions)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.SingleDay)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.PickupModes)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.DelegationStatusType)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.StudentTag)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.SchoolStudentId)),e.R7$(),e.Y8G("ngIf",n.showResults&&0==n.reportData.length),e.R7$(),e.Y8G("ngIf",n.showResults&&0!=n.reportData.length))},dependencies:[a.MD,a.YU,a.bT,f.tm,H.Ei,b.S,_.N,D.N,R.Mk,u.iI,C.kr,C.ms,s.YN,s.qT,s.me,s.BC,s.cb,s.vS,v.rO,v.Vv,B.u,j.bG,s.X1,s.j4,s.JD,A.iV,A.KF,Q.h,L,N.O,X.d,Y.l,te.Y],styles:[".container[_ngcontent-%COMP%]{height:calc(100vh - 132px);display:flex;flex-direction:column}.report-label[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase;color:#8ea6ba}.reports-dropdown[_ngcontent-%COMP%]{font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase}.filters-form[_ngcontent-%COMP%]{width:80%;align-self:center;padding-bottom:24px}.report-filter-container[_ngcontent-%COMP%]{padding-bottom:8px}.date-range-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.date-range[_ngcontent-%COMP%]{width:100%} .p-inputtext{color:#8ea6ba!important;font-size:.857rem!important} .p-column-filter-clear-button{display:none!important} .p-multiselect-close{display:none!important}.report-input-text[_ngcontent-%COMP%]{border:1px solid var(--light_grey);width:100%;height:43px;color:#596165}.report-category-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.report-category-header-container[_ngcontent-%COMP%]{display:flex;background-color:#fff;align-items:center;justify-content:space-between}@media (max-width: 650px){.report-category-header-container[_ngcontent-%COMP%]{flex-direction:column}.report-category-header[_ngcontent-%COMP%]{padding-top:0!important}
1.report-controls-container[_ngcontent-%COMP%]{width:100%}}@media (max-width: 700px){.select-report[_ngcontent-%COMP%], .filters-form[_ngcontent-%COMP%]{width:100%!important}.report-container[_ngcontent-%COMP%]{padding-left:8px!important;padding-right:8px!important}}.report-category-header[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:16px;font-weight:300;font-size:2rem;color:#3d4144;margin:0}.select-report[_ngcontent-%COMP%]{margin-bottom:24px;width:80%;align-self:center;padding-top:24px}.report-category-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#fff;flex-grow:1;justify-content:space-between;width:100%}.report-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-self:center;padding:0 24px}.report-controls-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-right:8px}.mr-8[_ngcontent-%COMP%]{margin-right:8px!important}.empty-result[_ngcontent-%COMP%]{text-align:center;font-size:18px;font-weight:600} .p-scroller-viewport{height:200px;display:block}#printableArea[_ngcontent-%COMP%]{display:none}@media print{.container[_ngcontent-%COMP%]{display:none}#printableArea[_ngcontent-%COMP%]{display:block!important;height:auto!important;overflow:auto!important;width:100%}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed;border-spacing:0px!important}td[_ngcontent-%COMP%]{max-width:100px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;padding-left:3px}td[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}td[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}th[_ngcontent-%COMP%]{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;border-top:1px solid lightgrey;padding-left:3px}th[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}th[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}}"]})}return o})();var ne=p(1920),oe=p(8425),re=p(9169),ie=p(4540);const Ee=["results"],se=()=>({width:"100%"});function He(o,d){if(1&o&&(e.j41(0,"div",17)(1,"div",18)(2,"label",9),e.EFF(3,"From Date "),e.nrm(4,"app-required",19),e.k0s(),e.nrm(5,"p-calendar",20),e.k0s(),e.j41(6,"div",21)(7,"label",9),e.EFF(8,"To Date "),e.nrm(9,"app-required",19),e.k0s(),e.nrm(10,"p-calendar",22),e.k0s()()),2&o){const t=e.XpG();e.R7$(4),e.Y8G("field",t.f.FromDate),e.R7$(),e.Aen(e.lJ4(8,se)),e.Y8G("maxDate",t.maxDate),e.R7$(4),e.Y8G("field",t.f.ToDate),e.R7$(),e.Aen(e.lJ4(9,se)),e.Y8G("minDate",t.minDate)}}function Ue(o,d){if(1&o&&(e.j41(0,"div",23)(1,"label",9),e.EFF(2,"Program "),e.nrm(3,"app-required",19),e.k0s(),e.nrm(4,"p-dropdown",24),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.AfterSchoolProgramId),e.R7$(),e.Y8G("showClear",!0)("options",t.afterschoolPrograms)("optionLabel","Name")("optionValue","Id")("placeholder","All Afterschool Programs")}}function $e(o,d){if(1&o&&(e.j41(0,"div",23)(1,"label",9),e.EFF(2,"Bus Route "),e.nrm(3,"app-required",19),e.k0s(),e.nrm(4,"p-dropdown",25),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.RouteId),e.R7$(),e.Y8G("showClear",!0)("options",t.busRoutes)("optionLabel","RouteNumber")("optionValue","Id")("placeholder","Select Route")}}function Je(o,d){if(1&o&&(e.j41(0,"div",23)(1,"label",9),e.EFF(2,"Dispatcher "),e.nrm(3,"app-required",19),e.k0s(),e.nrm(4,"p-dropdown",26),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.DispatcherId),e.R7$(),e.Y8G("showClear",!0)("options",t.dispatchers)("optionValue","UserId")("optionLabel","FullName")("placeholder","Select")}}function We(o,d){if(1&o&&(e.j41(0,"div",23)(1,"label",9),e.EFF(2,"Students "),e.nrm(3,"app-required",19),e.k0s(),e.nrm(4,"p-dropdown",27),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.StudentId),e.R7$(),e.Y8G("showClear",!0)("options",t.students)("optionLabel","Label")("optionValue","Id")("placeholder","Select Student")("virtualScroll",!0)("virtualScrollItemSize",32)}}function ze(o,d){if(1&o&&(e.j41(0,"div",23)(1,"label",9),e.EFF(2,"Student Tag "),e.nrm(3,"app-required",19),e.k0s(),e.nrm(4,"p-dropdown",28),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.SelectedStudentTagId),e.R7$(),e.Y8G("showClear",!0)("options",t.studentTags)("optionLabel","TagName")("optionValue","Id")("placeholder","All")}}function qe(o,d){1&o&&(e.j41(0,"div",29),e.EFF(1," No data is available for this report "),e.k0s())}function Qe(o,d){if(1&o&&(e.j41(0,"div",30,0),e.nrm(2,"app-report-table",31),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("reportData",t.reportData)("reportCols",t.reportCols)("selectedColumns",t.reportSelectedCols)("reportId",t.selectedReport)}}let Ze=(()=>{class o extends K{set resultsContent(t){t&&(this.resultsDiv=t)}constructor(t,r,n,i,h,T,P,k){super(k),this.systemService=t,this.reportsService=r,this.afterschoolService=n,this.busService=i,this.studentService=h,this.staffService=T,this.studentTagService=P,this.afterschoolPrograms=[],this.afterschoolProgramsChange=new e.bkB,this.dispatchers=[],this.dispatchersChange=new e.bkB,this.students=[],this.studentsChange=new e.bkB,this.busRoutes=[],this.busRoutesC
1hange=new e.bkB,this.studentTags=[],this.studentTagsChange=new e.bkB,this.maxStudentsDropdown=50,this.dropdownLoading=!1,this.reports=[],this.getReportRequest=new M(this.selectedReport),this.filterKeys={DateRange:"dateRange",AfterSchool:"afterSchool",Dispatcher:"dispatcher",Student:"student",BusRoute:"busRoute",StudentTag:"studentTag"}}ngOnChanges(t){t.showResults&&1==t.showResults.currentValue&&setTimeout(()=>{this.reportData.length>0&&this.resultsDiv.nativeElement.scrollIntoView({behavior:"smooth"})},100)}ngOnDestroy(){this.resetData()}ngOnInit(){this.systemService.setLoading(!0),super.ngOnInit(),this.reportAllowedFilters=[{Id:l.StudentAbsenteeSummary,Filters:[this.filterKeys.DateRange]},{Id:l.AfterSchoolWhitelistedStudents,Filters:[this.filterKeys.AfterSchool]},{Id:l.BusRouteWhiteListedStudents,Filters:[this.filterKeys.BusRoute]},{Id:l.Dispatcher,Filters:[this.filterKeys.Dispatcher,this.filterKeys.DateRange]},{Id:l.BackToSchool,Filters:[this.filterKeys.DateRange]},{Id:l.ParentCheckInQuestionsReport,Filters:[this.filterKeys.DateRange]},{Id:l.ParentCheckInReport,Filters:[this.filterKeys.DateRange]},{Id:l.ParentConnectionCodes,Filters:[this.filterKeys.DateRange]},{Id:l.RegisteredParents,Filters:[]},{Id:l.SchoolBusBoarding,Filters:[this.filterKeys.DateRange,this.filterKeys.Bu
1sRoute]},{Id:l.StudentAddedRemoved,Filters:[this.filterKeys.DateRange]},{Id:l.StudentContactsReport,Filters:[]},{Id:l.StudentDispatchActivity,Filters:[this.filterKeys.DateRange,this.filterKeys.Student]},{Id:l.StudentId,Filters:[]},{Id:l.StudentInTagsReport,Filters:[]},{Id:l.StudentNotesHistoryReport,Filters:[]},{Id:l.StudentNotesReport,Filters:[]},{Id:l.Student,Filters:[]},{Id:l.StudentPeriodAttendance,Filters:[this.filterKeys.DateRange]},{Id:l.StudentTagHistoryReport,Filters:[this.filterKeys.DateRange,this.filterKeys.StudentTag]},{Id:l.StudentsEarlyReleaseOrAbsent,Filters:[this.filterKeys.DateRange]},{Id:l.StudentsRollCall,Filters:[this.filterKeys.DateRange]}],this.reportsService.getSchoolReportsByCategory(w.RecordManagement).subscribe(t=>{this.reports=t.Data,this.systemService.setLoading(!1)}),0==this.afterschoolPrograms.length&&(this.systemService.setLoading(!0,y.b.BackendRequest_1),this.afterschoolService.GetInstituteList().subscribe(t=>{this.afterschoolPrograms=t,this.systemService.setLoading(!1,y.b.BackendRequest_1),this.afterschoolProgramsChange.emit(this.afterschoolPrograms)})),0==this.busRoutes.length&&(this.systemService.setLoading(!0,y.b.BackendRequest_2),this.busService.getRoutes().subscribe(t=>{this.busRoutes=t.Data,this.systemService.setLoading(!1,y.b.BackendRequest_2),this.busRoutesChange.emit(this.busRoutes)})),0==this.students.length&&(this.systemService.setLoading(!0,y.b.BackendRequest_3),this.studentService.GetAllStudents().subscribe(t=>{this.students=t.map(r=>({Id:r.pk_id,Label:`${r.userName} (${r.schoolstudentid})`})),this.systemService.setLoading(!1,y.b.BackendRequest_3),this.studentsChange.emit(this.students)})),0==this.dispatchers.length&&(this.systemService.setLoading(!0,y.b.BackendRequest_4),this.staffService.GetSchoolUserNames().subscribe(t=>{this.dispatchers=t.Data;for(let r of this.dispatchers)r.FullName=r.FirstName+" "+r.LastName;this.systemService.setLoading(!1,y.b.BackendRequest_4),this.dispatchersChange.emit(this.dispatchers)})),0==this.studentTags.length&&(this.systemService.setLoading(!0,y.b.BackendRequest_5),this.studentTagService.GetStudentTags().subscribe(t=>{this.studentTags=t.Data,this.systemService.setLoading(!1,y.b.BackendRequest_5),this.studentTagsChange.emit(this.studentTags)}))}get f(){return this.filterForm.controls}buildFilterForm(){return new s.gE({FromDate:new s.MJ(""),ToDate:new s.MJ(""),AfterSchoolProgramId:new s.MJ(null),DispatcherId:new s.MJ(null),StudentId:new s.MJ(null),RouteId:new s.MJ(null),SelectedStudentTagId:new s.MJ(null)})}resetRequest(){this.getReportRequest=new M(this.selectedReport),this.showResultsChange.emit(!1),this.resetData(),this.loadFilters()}resetData(){if(this.reportData=[],this.reportDataChange.emit(this.reportData),this.reportCols=[],this.reportColsChange.emit(this.reportCols),this.minDate=void 0,this.maxDate=void 0,this.resetForm(),null!=this.selectedReport){let t=this.reportAllowedFilters.find(r=>r.Id==this.selectedReport).Filters;t.includes(this.filterKeys.DateRange)&&(this.f.FromDate.setValidators((0,x.o)([{type:"required"}])),this.f.ToDate.setValidators((0,x.o)([{type:"required"}]))),t.includes(this.filterKeys.Student)&&this.f.StudentId.setValidators((0,x.o)([{type:"required"}])),t.includes(this.filterKeys.Dispatcher)&&this.f.DispatcherId.setValidators((0,x.o)([{type:"required"}
1])),t.includes(this.filterKeys.BusRoute)&&this.selectedReport!=l.BusRouteWhiteListedStudents&&this.f.RouteId.setValidators((0,x.o)([{type:"required"}]))}}validateRequest(t){if(this.filterForm.invalid||null==this.selectedReport)return this.f.FromDate.markAsDirty(),this.f.ToDate.markAsDirty(),this.f.DispatcherId.markAsDirty(),this.f.StudentId.markAsDirty(),void this.f.RouteId.markAsDirty();let r=new M(this.selectedReport);r.FromDate=this.f.FromDate.value,r.ToDate=this.f.ToDate.value,r.DispatcherId=this.f.DispatcherId.value,r.StudentId=this.f.StudentId.value,r.RouteId=this.f.RouteId.value,r.AfterSchoolProgramId=this.f.AfterSchoolProgramId.value,r.SelectedStudentTagId=this.f.SelectedStudentTagId.value,t?this.downloadReport(r):this.getReport(r)}resetForm(){this.filterForm=new s.gE({FromDate:new s.MJ(""),ToDate:new s.MJ(""),AfterSchoolProgramId:new s.MJ(null),DispatcherId:new s.MJ(null),StudentId:new s.MJ(null),RouteId:new s.MJ(null),SelectedStudentTagId:new s.MJ(null)}),this.updateMinMaxDates()}updateMinMaxDates(){this.f.FromDate.valueChanges.subscribe(t=>{this.minDate=t?new Date(t):void 0,""!=this.f.ToDate.value&&""!=this.f.FromDate.value&&this.selectedReport==l.ParentCheckInQuestionsReport&&this.checkMaxDateRangeErrors(this.f.FromDate,this.f.ToDate)}),this.f.ToDate.valueChanges.subscribe(t=>{this.maxDate=t?new Date(t):void 0,""!=this.f.FromDate.value&&""!=this.f.ToDate.value&&this.selectedReport==l.ParentCheckInQuestionsReport&&this.checkMaxDateRangeErrors(this.f.FromDate,this.f.ToDate)})}static#e=this.\u0275fac=function(r){return new(r||o)(e.rXU(g.V),e.rXU(c),e.rXU(ne.G),e.rXU(oe.r),e.rXU(re.b),e.rXU(ie.G),e.rXU($.t),e.rXU(F.$))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-reports-record-management"]],viewQuery:function(r,n){if(1&r&&e.GBs(Ee,5,e.aKT),2&r){let i;e.mGM(i=e.lsd())&&(n.resultsContent=i.first)}},inputs:{afterschoolPrograms:"afterschoolPrograms",dispatchers:"dispatchers",students:"students",busRoutes:"busRoutes",studentTags:"studentTags",checkMaxDateRangeErrors:"checkMaxDateRangeErrors"},outputs:{afterschoolProgramsChange:"afterschoolProgramsChange",dispatchersChange:"dispatchersChange",studentsChange:"studentsChange",busRoutesChange:"busRoutesChange",studentTagsChange:"studentTagsChange"},standalone:!0,features:[e.Jv_([c,ne.G,oe.r,ie.G,re.b,$.t]),e.Vt3,e.OA$,e.aNF],decls:23,vars:26,consts:[["results",""],[1,"report-category-container"],[1,"report-category-header-container",3,"ngClass"],[1,"report-category-header"],[1,"report-controls-container"],[3,"maxWidth","disabled","state","action","label"],[1,"report-category-body"],[1,"report-container"],[1,"select-report"],[1,"report-label"],["appendTo","body",1,"reports-dropdown",3,"ngModelChange","showClear","ngModel","options","optionLabel","optionValue","placeholder"],[1,"filters-form"],[3,"formGroup"],["class","date-range-container report-filter-container",4,"ngIf"],["class","report-filter-container",4,"ngIf"],["class","empty-result",4,"ngIf"],["class","report-table-container","style","width: 100%;",4,"ngIf"],[1,"date-range-container","report-filter-container"],[1,"date-range",2,"margin-right","8px"],[3,"field"],["appendTo","body","dataType","string","formControlName","FromDate",3,"maxDate"],[1,"date-range",2,"margin-left","8px"],["appendTo","body","dataType","string","formControlName","ToDate",3,"minDate"],[1,"report-filter-container"],["appendTo","body","formControlName","AfterSchoolProgramId",1,"reports-dropdown",3,"showClear","options","optionLabel","optionValue","placeholder"],["appendTo","body","formControlName","RouteId",1,"reports-dropdown",3,"showClear","options","optionLabel","optionValue","placeholder"],["appendTo","body","formControlName","DispatcherId",1,"reports-dropdown",3,"showClear","options","optionValue","optionLabel","placeholder"],["appendTo","body","formControlName","StudentId",1,"reports-dropdown",3,"showClear","options","optionLabel","optionValue","placeholder","virtualScroll","virtualScrollItemSize"],["appendTo","body","formControlName","SelectedStudentTagId",1,"reports-dropdown",3,"showClear","options","optionLabel","optionValue","placeholder"],[1,"empty-result"],[1,"report-table-container",2,"width","100%"],[3,"reportData","reportCols","selectedColumns","reportId"]],template:function(r,n){1&r&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.EFF(3,"Record Management"),e.k0s(),e.j41(4,"div",4),e.nrm(5,"app-btn-primary-state",5)(6,"app-btn-primary-state",5),e.k0s()(),e.j41(7,"div",6)(8,"div",7)(9,"div",8)(10,"label",9),e.EFF(11,"Select Report Type"),e.k0s(),e.j41(12,"p-dropdown",10),e.mxI("ngModelChange",function(h){return e.DH7(n.selectedReport,h)||(n.selectedReport=h),h}
1),e.bIt("ngModelChange",function(){return n.resetRequest()}),e.k0s()(),e.j41(13,"div",11)(14,"form",12),e.DNE(15,He,11,10,"div",13)(16,Ue,5,6,"div",14)(17,$e,5,6,"div",14)(18,Je,5,6,"div",14)(19,We,5,8,"div",14)(20,ze,5,6,"div",14),e.k0s()(),e.DNE(21,qe,2,0,"div",15)(22,Qe,3,4,"div",16),e.k0s()()()),2&r&&(e.R7$(),e.Y8G("ngClass",n.systemService.customViewportCheck(650)?"":"st"),e.R7$(4),e.Y8G("maxWidth",!0)("disabled",null==n.selectedReport)("state",n.getReportBtnState)("action",n.getReportAction)("label","Display Report"),e.R7$(),e.Y8G("maxWidth",!0)("disabled",null==n.selectedReport)("state",n.downloadReportBtnState)("action",n.downloadReportAction)("label","Download Report"),e.R7$(6),e.Y8G("showClear",!0),e.R50("ngModel",n.selectedReport),e.Y8G("options",n.reports)("optionLabel","Name")("optionValue","Id")("placeholder","Select"),e.R7$(2),e.Y8G("formGroup",n.filterForm),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.DateRange)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.AfterSchool)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.Bu
1sRoute)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.Dispatcher)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.Student)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.StudentTag)),e.R7$(),e.Y8G("ngIf",n.showResults&&0==n.reportData.length),e.R7$(),e.Y8G("ngIf",n.showResults&&0!=n.reportData.length))},dependencies:[a.MD,a.YU,a.bT,f.tm,b.S,_.N,D.N,R.Mk,u.iI,C.kr,C.ms,s.YN,s.qT,s.BC,s.cb,s.vS,v.rO,v.Vv,B.u,L,s.X1,s.j4,s.JD,N.O,X.d,Y.l],styles:[".container[_ngcontent-%COMP%]{height:calc(100vh - 132px);display:flex;flex-direction:column}.report-label[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase;color:#8ea6ba}.reports-dropdown[_ngcontent-%COMP%]{font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase}.filters-form[_ngcontent-%COMP%]{width:80%;align-self:center;padding-bottom:24px}.report-filter-container[_ngcontent-%COMP%]{padding-bottom:8px}.date-range-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.date-range[_ngcontent-%COMP%]{width:100%} .p-inputtext{color:#8ea6ba!important;font-size:.857rem!important} .p-column-filter-clear-button{display:none!important} .p-multiselect-close{display:none!important}.report-input-text[_ngcontent-%COMP%]{border:1px solid var(--light_grey);width:100%;height:43px;color:#596165}.report-category-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.report-category-header-container[_ngcontent-%COMP%]{display:flex;background-color:#fff;align-items:center;justify-content:space-between}@media (max-width: 650px){.report-category-header-container[_ngcontent-%COMP%]{flex-direction:column}.report-category-header[_ngcontent-%COMP%]{padding-top:0!important}.report-controls-container[_ngcontent-%COMP%]{width:100%}}@media (max-width: 700px){.select-report[_ngcontent-%COMP%], .filters-form[_ngcontent-%COMP%]{width:100%!important}.report-container[_ngcontent-%COMP%]{padding-left:8px!important;padding-right:8px!important}}.report-category-header[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:16px;font-weight:300;font-size:2rem;color:#3d4144;margin:0}.select-report[_ngcontent-%COMP%]{margin-bottom:24px;width:80%;align-self:center;padding-top:24px}.report-category-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#fff;flex-grow:1;justify-content:space-between;width:100%}.report-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-self:center;padding:0 24px}.report-controls-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-right:8px}.mr-8[_ngcontent-%COMP%]{margin-right:8px!important}.empty-result[_ngcontent-%COMP%]{text-align:center;font-size:18px;font-weight:600} .p-scroller-viewport{height:200px;display:block}#printableArea[_ngcontent-%COMP%]{display:none}@media print{.container[_ngcontent-%COMP%]{display:none}#printableArea[_ngcontent-%COMP%]{display:block!important;height:auto!important;overflow:auto!important;width:100%}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed;border-spacing:0px!important}td[_ngcontent-%COMP%]{max-width:100px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;padding-left:3px}td[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}td[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}th[_ngcontent-%COMP%]{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;border-top:1px solid lightgrey;padding-left:3px}th[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}th[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}}"]})}return o})();var ae=p(5472),et=p(3351);const tt=["results"],le=()=>({width:"100%"});function nt(o,d){if(1&o&&(e.j41(0,"div",17)(1,"div",18)(2,"label",9),e.EFF(3,"From Date "),e.nrm(4,"app-required",19),e.k0s(),e.nrm(5,"p-calendar",20),e.k0s(),e.j41(6,"div",21)(7,"label",9),e.EFF(8,"To Date "),e.nrm(9,"app-required",19),e.k0s(),e.nrm(10,"p-calendar",22),e.k0s()()),2&o){const t=e.XpG();e.R7$(4),e.Y8G("field",t.f.FromDate),e.R7$(),e.Aen(e.lJ4(8,le)),e.Y8G("maxDate",t.maxDate),e.R7$(4),e.Y8G("field",t.f.ToDate),e.R7$(),e.Aen(e.lJ4(9,le)),e.Y8G("minDate",t.minDate)}}function ot(o,d){if(1&o&&(e.j41(0,"div",23)(1,"label",9),e.EFF(2,"Reunification Date "),e.nrm(3,"app-required",19),e.k0s(),e.nrm(4,"p-dropdown",24),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.ReunificationId),e.R7$(),e.Y8G("showClear",!0)("options",t.allReunificationDates)("optionLabel","Label")("optionValue","Id")("placeholder","Select Reunification Date")}}function rt(o,d){if(1&o&&(e.j41(0,"div",23)(1,"label",9),e.EFF(2,"Reunification Status "),e.nrm(3,"app-required",19),e.k0s(),e.nrm(4,"p-dropdown",25),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.ReunificationStatus),e.R7$(),e.Y8G("options",t.reunificationStatuses)("optionLabel","label")("optionValue","value")}}function it(o,d){if(1&o&&(e.j41(0,"div",23)(1,"label",9),e.EFF(2,"Student Id "),e.nrm(3,"app-required",19),e.k0s(),e.nrm(4,"input",26),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.SchoolStudentId)}}function st(o,d){1&o&&(e.j41(0,"div",27),e.EFF(1," No data is available for this report "),e.k0s())}function at(o,d){if(1&o&&(e.j41(0,"div",28,0),e.nrm(2,"app-report-table",29),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("reportData",t.reportData)("reportCols",t.reportCols)("selectedColumns",t.reportSelectedCols)("reportId",t.selectedReport)}}let lt=(()=>{class o extends K{set resultsContent(t){t&&(this.resultsDiv=t)}get reunificationStatuses(){return this.selectedReport===l.ReunificationStaffCheckIn?this.staffReunificationStatuses:this.defaultReunificationStatuses}get allReunificationDates(){return this.allReunificationDatesCache}constructor(t,r,n,i,h){super(h),this.systemService=t,this.reportsService=r,this.emergencyService=n,this.cdr=i,this.reunificationDates=[],this.reunificationDatesChange=new e.bkB,this.drillReunificationDates=[],this.drillReunificationDatesChange=new e.bkB,this.reports=[],this.getReportRequest=new M(this.selectedReport),this.allReunificationDatesCache=[],this.previousSelectedReport=null,this.filterKeys={ReunificationDate:"reunificationDate",ReunificationStatus:"reunificationStatus",Sc
1hoolStudentId:"studentId",DateRange:"dateRange"},this.defaultReunificationStatuses=[{label:"All",value:"All"},{label:"Checked In",value:"CheckedIn"},{label:"Not Checked In",value:"NotCheckedIn"},{label:"Marked Missing",value:"MarkedMissing"}],this.staffReunificationStatuses=[{label:"All",value:"All"},{label:"Checked In",value:"CheckedIn"},{label:"Not Checked In",value:"NotCheckedIn"},{label:"Marked Missing",value:"MarkedMissing"},{label:"Marked No Show",value:"MarkedNoShow"}]}ngOnChanges(t){(t.selectedReport||t.reunificationDates||t.drillReunificationDates)&&this.updateAllReunificationDates(),t.showResults&&1==t.showResults.currentValue&&setTimeout(()=>{this.reportData.length>0&&this.resultsDiv.nativeElement.scrollIntoView({behavior:"smooth"})},100)}ngDoCheck(){this.previousSelectedReport!==this.selectedReport&&(this.previousSelectedReport=this.selectedReport,this.updateAllReunificationDates())}ngOnInit(){this.systemService.setLoading(!0),super.ngOnInit(),this.updateAllReunificationDates(),this.reportAllowedFilters=[{Id:l.ReunificationStudentCheckInDrill,Filters:[this.filterKeys.ReunificationDate,this.filterKeys.ReunificationStatus,this.filterKeys.SchoolStudentId]},{Id:l.ReunificationStudentsNotAtSchoolDrill,Filters:[this.filterKeys.ReunificationDate]},{Id:l.ReunificationDismissal,Filters:[this.filterKeys.ReunificationDate]},{Id:l.ReunificationGuardianCheckIn,Filters:[this.filterKeys.ReunificationDate]},{Id:l.ReunificationStudentCheckIn,Filters:[this.filterKeys.ReunificationDate,this.filterKeys.ReunificationStatus,this.filterKeys.SchoolStudentId]},{Id:l.ReunificationStudentsNotAtSchool,Filters:[this.filterKeys.ReunificationDate]},{Id:l.ReunificationSummary,Filters:[this.filterKeys.DateRange]},{Id:l.ReunificationVisitorCheckIn,Filters:[this.filterKeys.ReunificationDate,this.filterKeys.ReunificationStatus]},{Id:l.ReunificationStaffCheckIn,Filters:[this.filterKeys.ReunificationDate,this.filterKeys.ReunificationStatus]}],this.reportsService.getSchoolReportsByCategory(w.ReunificationReports).subscribe(t=>{this.reports=t.Data.filter(r=>!(r.Id===l.ReunificationVisitorCheckIn&&!this.systemService.systemFeatures().Visitu)),this.systemService.setLoading(!1)}),0==this.reunificationDates.length&&(this.systemService.setLoading(!0,y.b.BackendRequest_1),this.emergencyService.getReunifications(!1).subscribe(t=>{this.reunificationDates=t.Data.map(r=>({Id:r.Id,Label:`${(0,ae.Yq)(r.StartTime,"Pp")} - ${r.PlanName}`,StartTime:r.StartTime,IsDrill:!1})),this.systemService.setLoading(!1,y.b.BackendRequest_1),this.updateAllReunificationDates(),this.reunificationDatesChange.emit(this.reunificationDates)})),0==this.drillReunificationDates.length&&(this.systemService.setLoading(!0,y.b.BackendRequest_2),this.emergencyService.getReunifications(!0).subscribe(t=>{this.drillReunificationDates=t.Data.map(r=>({Id:r.Id,Label:`${(0,ae.Yq)(r.StartTime,"Pp")} - ${r.PlanName}`,StartTime:r.StartTime,IsDrill:!0})),this.systemService.setLoading(!1,y.b.BackendRequest_2),this.updateAllReunificationDates(),this.drillReunificationDatesChange.emit(this.drillReunificationDates)}))}updateAllReunificationDates(){if(this.selectedReport!==l.ReunificationVisitorCheckIn&&this.selectedReport!==l.ReunificationStaffCheckIn)this.allReunificationDatesCache=this.isDrillReportSelected()?this.drillReunificationDates:this.reunificationDates;else{const t=this.reunificationDates.map(n=>({...n,IsDrill:!1})),r=this.drillReunificationDates.map(n=>({...n,IsDrill:!0,Label:n.Label&&!n.Label.endsWith(" (Drill)")?`${n.Label} (Drill)`:n.Label}));this.allReunificationDatesCache=[...t,...r].sort((n,i)=>new Date(i.StartTime).getTime()-new Date(n.StartTime).getTime())}}get f(){return this.filterForm.controls}buildFilterForm(){return new s.gE({ReunificationId:new s.MJ(null),ReunificationStatus:new s.MJ("All"),FromDate:new s.MJ(""),ToDate:new s.MJ(""),SchoolStudentId:new s.MJ("")})}isDrillReportSelected(){return null!=this.selectedReport&&(this.selectedReport==l.ReunificationStudentsNotAtSchoolDrill||this.selectedReport==l.ReunificationStudentCheckInDrill)}resetRequest(){this.getReportRequest=new M(this.selectedReport),this.showResultsChange.emit(!1),this.resetData()}resetData(){if(this.reportData=[],this.reportDataChange.emit(this.reportData),this.reportCols=[],this.reportColsChange.emit(this.reportCols),this.minDate=void 0,this.maxDate=void 0,this.resetForm(),null!=this.selectedReport){let t=this.reportAllowedFilters.find(r=>r.Id==this.selectedReport).Filters;t.includes(this.filterKeys.ReunificationDate)&&(this.f.ReunificationId.setValidators((0,x.o)([{type:"required"}
1])),this.f.ReunificationId.updateValueAndValidity()),t.includes(this.filterKeys.DateRange)&&(this.f.FromDate.setValidators((0,x.o)([{type:"required"}])),this.f.ToDate.setValidators((0,x.o)([{type:"required"}])),this.f.FromDate.updateValueAndValidity(),this.f.ToDate.updateValueAndValidity())}this.cdr.detectChanges()}validateRequest(t){if(this.filterForm.invalid||null==this.selectedReport)return this.f.FromDate.markAsDirty(),this.f.ToDate.markAsDirty(),void this.f.ReunificationId.markAsDirty();let r=new M(this.selectedReport);r.ReunificationId=this.f.ReunificationId.value,r.ReunificationStatus=this.f.ReunificationStatus.value,this.f.SchoolStudentId&&(r.SchoolStudentId=this.f.SchoolStudentId.value),r.FromDate=this.f.FromDate.value,r.ToDate=this.f.ToDate.value,t?this.downloadReport(r):this.getReport(r)}resetForm(){this.filterForm=new s.gE({ReunificationId:new s.MJ(null),ReunificationStatus:new s.MJ("All"),FromDate:new s.MJ(""),ToDate:new s.MJ(""),SchoolStudentId:new s.MJ("")}),this.updateMinMaxDates()}updateMinMaxDates(){this.f.FromDate.valueChanges.subscribe(t=>{this.minDate=t?new Date(t):void 0,""!=this.f.ToDate.value&&""!=this.f.FromDate.value&&this.selectedReport==l.RealtimeStudentDismissal&&this.checkMaxDateRangeErrors(this.f.FromDate,this.f.ToDate)}),this.f.ToDate.valueChanges.subscribe(t=>{this.maxDate=t?new Date(t):void 0,""!=this.f.FromDate.value&&""!=this.f.ToDate.value&&this.selectedReport==l.RealtimeStudentDismissal&&this.checkMaxDateRangeErrors(this.f.FromDate,this.f.ToDate)})}static#e=this.\u0275fac=function(r){return new(r||o)(e.rXU(g.V),e.rXU(c),e.rXU(et.$),e.rXU(e.gRc),e.rXU(F.$))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-reports-reunification"]],viewQuery:function(r,n){if(1&r&&e.GBs(tt,5,e.aKT),2&r){let i;e.mGM(i=e.lsd())&&(n.resultsContent=i.first)}},inputs:{reunificationDates:"reunificationDates",drillReunificationDates:"drillReunificationDates",checkMaxDateRangeErrors:"checkMaxDateRangeErrors"},outputs:{reunificationDatesChange:"reunificationDatesChange",drillReunificationDatesChange:"drillReunificationDatesChange"},standalone:!0,features:[e.Jv_([c]),e.Vt3,e.OA$,e.aNF],decls:21,vars:24,consts:[["results",""],[1,"report-category-container"],[1,"report-category-header-container",3,"ngClass"],[1,"report-category-header"],[1,"report-controls-container"],[3,"maxWidth","disabled","state","action","label"],[1,"report-category-body"],[1,"report-container"],[1,"select-report"],[1,"report-label"],["appendTo","body",1,"reports-dropdown",3,"ngModelChange","showClear","ngModel","options","optionLabel","optionValue","placeholder"],[1,"filters-form"],[3,"formGroup"],["class","date-range-container report-filter-container",4,"ngIf"],["class","report-filter-container",4,"ngIf"],["class","empty-result",4,"ngIf"],["class","report-table-container","style","width: 100%;",4,"ngIf"],[1,"date-range-container","report-filter-container"],[1,"date-range",2,"margin-right","8px"],[3,"field"],["appendTo","body","dataType","string","formControlName","FromDate",3,"maxDate"],[1,"date-range",2,"margin-left","8px"],["appendTo","body","dataType","string","formControlName","ToDate",3,"minDate"],[1,"report-filter-container"],["appendTo","body","formControlName","ReunificationId",1,"reports-dropdown",3,"showClear","options","optionLabel","optionValue","placeholder"],["appendTo","body","formControlName","ReunificationStatus",1,"reports-dropdown",3,"options","optionLabel","optionValue"],["pInputeText","","formControlName","SchoolStudentId",1,"report-input-text"],[1,"empty-result"],[1,"report-table-container",2,"width","100%"],[3,"reportData","reportCols","selectedColumns","reportId"]],template:function(r,n){1&r&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.EFF(3,"Reunification"),e.k0s(),e.j41(4,"div",4),e.nrm(5,"app-btn-primary-state",5)(6,"app-btn-primary-state",5),e.k0s()(),e.j41(7,"div",6)(8,"div",7)(9,"div",8)(10,"label",9),e.EFF(11,"Select Report Type"),e.k0s(),e.j41(12,"p-dropdown",10),e.mxI("ngModelChange",function(h){return e.DH7(n.selectedReport,h)||(n.selectedReport=h),h}
1),e.bIt("ngModelChange",function(){return n.resetRequest()}),e.k0s()(),e.j41(13,"div",11)(14,"form",12),e.DNE(15,nt,11,10,"div",13)(16,ot,5,6,"div",14)(17,rt,5,4,"div",14)(18,it,5,1,"div",14),e.k0s()(),e.DNE(19,st,2,0,"div",15)(20,at,3,4,"div",16),e.k0s()()()),2&r&&(e.R7$(),e.Y8G("ngClass",n.systemService.customViewportCheck(650)?"":"st"),e.R7$(4),e.Y8G("maxWidth",!0)("disabled",null==n.selectedReport)("state",n.getReportBtnState)("action",n.getReportAction)("label","Display Report"),e.R7$(),e.Y8G("maxWidth",!0)("disabled",null==n.selectedReport)("state",n.downloadReportBtnState)("action",n.downloadReportAction)("label","Download Report"),e.R7$(6),e.Y8G("showClear",!0),e.R50("ngModel",n.selectedReport),e.Y8G("options",n.reports)("optionLabel","Name")("optionValue","Id")("placeholder","Select"),e.R7$(2),e.Y8G("formGroup",n.filterForm),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.DateRange)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.ReunificationDate)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.ReunificationStatus)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.SchoolStudentId)),e.R7$(),e.Y8G("ngIf",n.showResults&&0==n.reportData.length),e.R7$(),e.Y8G("ngIf",n.showResults&&0!=n.reportData.length))},dependencies:[a.MD,a.YU,a.bT,f.tm,b.S,_.N,D.N,R.Mk,u.iI,C.kr,C.ms,s.YN,s.qT,s.me,s.BC,s.cb,s.vS,v.rO,v.Vv,B.u,L,s.X1,s.j4,s.JD,N.O,X.d,Y.l],styles:[".container[_ngcontent-%COMP%]{height:calc(100vh - 132px);display:flex;flex-direction:column}.report-label[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase;color:#8ea6ba}.reports-dropdown[_ngcontent-%COMP%]{font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase}.filters-form[_ngcontent-%COMP%]{width:80%;align-self:center;padding-bottom:24px}.report-filter-container[_ngcontent-%COMP%]{padding-bottom:8px}.date-range-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.date-range[_ngcontent-%COMP%]{width:100%} .p-inputtext{color:#8ea6ba!important;font-size:.857rem!important} .p-column-filter-clear-button{display:none!important} .p-multiselect-close{display:none!important}.report-input-text[_ngcontent-%COMP%]{border:1px solid var(--light_grey);width:100%;height:43px;color:#596165}.report-category-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.report-category-header-container[_ngcontent-%COMP%]{display:flex;background-color:#fff;align-items:center;justify-content:space-between}@media (max-width: 650px){.report-category-header-container[_ngcontent-%COMP%]{flex-direction:column}.report-category-header[_ngcontent-%COMP%]{padding-top:0!important}.report-controls-container[_ngcontent-%COMP%]{width:100%}}@media (max-width: 700px){.select-report[_ngcontent-%COMP%], .filters-form[_ngcontent-%COMP%]{width:100%!important}.report-container[_ngcontent-%COMP%]{padding-left:8px!important;padding-right:8px!important}}.report-category-header[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:16px;font-weight:300;font-size:2rem;color:#3d4144;margin:0}.select-report[_ngcontent-%COMP%]{margin-bottom:24px;width:80%;align-self:center;padding-top:24px}.report-category-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#fff;flex-grow:1;justify-content:space-between;width:100%}.report-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-self:center;padding:0 24px}.report-controls-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-right:8px}.mr-8[_ngcontent-%COMP%]{margin-right:8px!important}.empty-result[_ngcontent-%COMP%]{text-align:center;font-size:18px;font-weight:600} .p-scroller-viewport{height:200px;display:block}#printableArea[_ngcontent-%COMP%]{display:none}@media print{.container[_ngcontent-%COMP%]{display:none}#printableArea[_ngcontent-%COMP%]{display:block!important;height:auto!important;overflow:auto!important;width:100%}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed;border-spacing:0px!important}td[_ngcontent-%COMP%]{max-width:100px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;padding-left:3px}td[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}td[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}th[_ngcontent-%COMP%]{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;border-top:1px solid lightgrey;padding-left:3px}th[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}th[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}}"]})}return o}
1)();var pe=p(7044),pt=p(8696);const dt=["results"],de=()=>({width:"100%"});function ct(o,d){if(1&o&&(e.j41(0,"div",18)(1,"div",19)(2,"label",10),e.EFF(3,"From Date "),e.nrm(4,"app-required",20),e.k0s(),e.nrm(5,"p-calendar",21),e.k0s(),e.j41(6,"div",22)(7,"label",10),e.EFF(8,"To Date "),e.nrm(9,"app-required",20),e.k0s(),e.nrm(10,"p-calendar",23),e.k0s()()),2&o){const t=e.XpG();e.R7$(4),e.Y8G("field",t.f.FromDate),e.R7$(),e.Aen(e.lJ4(8,de)),e.Y8G("maxDate",t.maxDate),e.R7$(4),e.Y8G("field",t.f.ToDate),e.R7$(),e.Aen(e.lJ4(9,de)),e.Y8G("minDate",t.minDate)}}function ht(o,d){if(1&o){const t=e.RV6();e.j41(0,"pmk-multiselect-filter-fix",27),e.mxI("filterTextChange",function(n){e.eBV(t);const i=e.XpG(2);return e.DH7(i.destinationsFilterText,n)||(i.destinationsFilterText=n),e.Njj(n)}),e.bIt("cb",function(n){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectAll(n))}),e.k0s()}if(2&o){e.XpG();const t=e.sdS(5),r=e.XpG();e.R50("filterText",r.destinationsFilterText),e.Y8G("toggleClearFilter",!0)("selectAllChecked",r.destinationsSelectAll)("multiSelectId",t)}}function gt(o,d){if(1&o){const t=e.RV6();e.j41(0,"div",24)(1,"label",10),e.EFF(2,"Destination "),e.nrm(3,"app-required",20),e.k0s(),e.j41(4,"p-multiSelect",25,0),e.bIt("onChange",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.checkAllSelected())}),e.DNE(6,ht,1,4,"ng-template",26),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.HallPassDestinations),e.R7$(),e.Y8G("options",t.hallpassDestinations)("optionLabel","Name")("optionValue","Id")("filter",!0)("placeholder","0 Destinations Selected")}}function ut(o,d){if(1&o&&(e.j41(0,"div",24)(1,"label",10),e.EFF(2,"Options "),e.nrm(3,"app-required",20),e.k0s(),e.nrm(4,"p-dropdown",28),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.HallPassSharedOptionId),e.R7$(),e.Y8G("options",t.simlutaneousReportOptions)("optionLabel","label")("optionValue","value")}}function mt(o,d){if(1&o&&(e.j41(0,"div",24)(1,"label",10),e.EFF(2,"Student Id "),e.nrm(3,"app-required",20),e.k0s(),e.nrm(4,"input",29),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.SchoolStudentId)}}function ft(o,d){1&o&&(e.j41(0,"div",30),e.EFF(1," No data is available for this report "),e.k0s())}function _t(o,d){if(1&o&&(e.j41(0,"div",31,1),e.nrm(2,"app-report-table",32),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("reportData",t.reportData)("reportCols",t.reportCols)("selectedColumns",t.reportSelectedCols)("reportId",t.selectedReport)}}let Ct=(()=>{class o extends K{set resultsContent(t){t&&(this.resultsDiv=t)}constructor(t,r,n,i){super(i),this.systemService=t,this.reportsService=r,this.hallpassService=n,this.hallpassDestinations=[],this.hallpassDestinationsChange=new e.bkB,this.reports=[],this.getReportRequest=new M(this.selectedReport),this.filterKeys={DateRange:"dateRange",SchoolStudentId:"schoolStudentId",Destination:"destination",SimultaneousOptions:"simultaneousOptions"},this.simlutaneousReportOptions=[{label:"Include record where students shared a hall pass",value:0},{label:"Exclude record where students shared a hall pass",value:1}],this.destinationsFilterText="",this.destinationsSelectAll=!1}ngOnChanges(t){t.showResults&&1==t.showResults.currentValue&&setTimeout(()=>{this.reportData.length>0&&this.resultsDiv.nativeElement.scrollIntoView({behavior:"smooth"})},100)}ngOnInit(){this.systemService.setLoading(!0),super.ngOnInit(),this.reportAllowedFilters=[{Id:l.AllHallpasses,Filters:[this.filterKeys.DateRange]},{Id:l.HallPassCreatedUpdatedDeleted,Filters:[this.filterKeys.DateRange]},{Id:l.HallPassRestrictionGroups,Filters:[this.filterKeys.SchoolStudentId]},{Id:l.HallPassSimultaneousDetection,Filters:[this.filterKeys.DateRange,this.filterKeys.SimultaneousOptions,this.filterKeys.Destination]},{Id:l.HallPassUsage,Filters:[this.filterKeys.DateRange]},{Id:l.RestrictionsOverwrittenByStaff,Filters:[this.filterKeys.DateRange]}],this.reportsService.getSchoolReportsByCategory(w.HallPassReports).subscribe(t=>{this.reports=t.Data,this.systemService.setLoading(!1)}),0==this.hallpassDestinations.length&&(this.systemService.setLoading(!0,y.b.BackendRequest_1),this.hallpassService.GetHallPassLocationList().subscribe(t=>{this.hallpassDestinations=t.Data.map(r=>({Id:r.Id+"-"+r.LocationTypeId,Name:(r.LocationTypeId==pt.p.Room?"Room - ":"")+r.Name})),this.systemService.setLoading(!1,y.b.BackendRequest_1),this.hallpassDestinationsChange.emit(this.hallpassDestinations)}))}get f(){return this.filterForm.controls}buildFilterForm(){return new s.gE({FromDate:new s.MJ(""),ToDate:new s.MJ(""),SchoolStudentId:new s.MJ(""),HallPassDestinations:new s.MJ([]),HallPassSharedOptionId:new s.MJ(0)})}selectAll(t){this.destinationsSelectAll=t,this.f.HallPassDestinations.patchValue(t?this.getFilteredDestinations().map(r=>r.Id):[])}checkAllSelected(){this.destinationsSelectAll=this.f.HallPassDestinations.value.length==this.getFilteredDestinations().length}getFilteredDestinations(){return this.hallpassDestinations.filter(t=>t.Name.toLowerCase().includes(this.destinationsFilterText))}
1resetRequest(){this.getReportRequest=new M(this.selectedReport),this.showResultsChange.emit(!1),this.resetData()}resetData(){this.reportData=[],this.reportDataChange.emit(this.reportData),this.reportCols=[],this.reportColsChange.emit(this.reportCols),this.minDate=void 0,this.maxDate=void 0,this.resetForm(),null!=this.selectedReport&&this.reportAllowedFilters.find(r=>r.Id==this.selectedReport).Filters.includes(this.filterKeys.DateRange)&&(this.f.FromDate.setValidators((0,x.o)([{type:"required"}])),this.f.ToDate.setValidators((0,x.o)([{type:"required"}])))}validateRequest(t){if(this.filterForm.invalid||null==this.selectedReport)return this.f.FromDate.markAsDirty(),void this.f.ToDate.markAsDirty();let r=new M(this.selectedReport);r.FromDate=this.f.FromDate.value,r.ToDate=this.f.ToDate.value,r.HallPassDestinations=this.f.HallPassDestinations.value,r.HallPassSharedOptionId=this.f.HallPassSharedOptionId.value,r.SchoolStudentId=this.f.SchoolStudentId.value,t?this.downloadReport(r):this.getReport(r)}resetForm(){this.filterForm=new s.gE({FromDate:new s.MJ(""),ToDate:new s.MJ(""),SchoolStudentId:new s.MJ(""),HallPassDestinations:new s.MJ([]),HallPassSharedOptionId:new s.MJ(0)}),this.updateMinMaxDates()}updateMinMaxDates(){this.f.FromDate.valueChanges.subscribe(t=>{this.minDate=t?new Date(t):void 0}),this.f.ToDate.valueChanges.subscribe(t=>{this.maxDate=t?new Date(t):void 0})}static#e=this.\u0275fac=function(r){return new(r||o)(e.rXU(g.V),e.rXU(c),e.rXU(pe.I),e.rXU(F.$))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-reports-hallpass"]],viewQuery:function(r,n){if(1&r&&e.GBs(dt,5,e.aKT),2&r){let i;e.mGM(i=e.lsd())&&(n.resultsContent=i.first)}},inputs:{hallpassDestinations:"hallpassDestinations"},outputs:{hallpassDestinationsChange:"hallpassDestinationsChange"},standalone:!0,features:[e.Jv_([c,pe.I]),e.Vt3,e.OA$,e.aNF],decls:21,vars:24,consts:[["destinations",""],["results",""],[1,"report-category-container"],[1,"report-category-header-container",3,"ngClass"],[1,"report-category-header"],[1,"report-controls-container"],[3,"maxWidth","disabled","state","action","label"],[1,"report-category-body"],[1,"report-container"],[1,"select-report"],[1,"report-label"],["appendTo","body",1,"reports-dropdown",3,"ngModelChange","showClear","ngModel","options","optionLabel","optionValue","placeholder"],[1,"filters-form"],[3,"formGroup"],["class","date-range-container report-filter-container",4,"ngIf"],["class","report-filter-container",4,"ngIf"],["class","empty-result",4,"ngIf"],["class","report-table-container","style","width: 100%;",4,"ngIf"],[1,"date-range-container","report-filter-container"],[1,"date-range",2,"margin-right","8px"],[3,"field"],["appendTo","body","dataType","string","formControlName","FromDate",3,"maxDate"],[1,"date-range",2,"margin-left","8px"],["appendTo","body","dataType","string","formControlName","ToDate",3,"minDate"],[1,"report-filter-container"],["formControlName","HallPassDestinations","appendTo","body",3,"onChange","options","optionLabel","optionValue","filter","placeholder"],["pTemplate","filter"],[3,"filterTextChange","cb","filterText","toggleClearFilter","selectAllChecked","multiSelectId"],["appendTo","body","formControlName","HallPassSharedOptionId",1,"reports-dropdown",3,"options","optionLabel","optionValue"],["pInputeText","","formControlName","SchoolStudentId",1,"report-input-text"],[1,"empty-result"],[1,"report-table-container",2,"width","100%"],[3,"reportData","reportCols","selectedColumns","reportId"]],template:function(r,n){1&r&&(e.j41(0,"div",2)(1,"div",3)(2,"div",4),e.EFF(3,"Hall Pass"),e.k0s(),e.j41(4,"div",5),e.nrm(5,"app-btn-primary-state",6)(6,"app-btn-primary-state",6),e.k0s()(),e.j41(7,"div",7)(8,"div",8)(9,"div",9)(10,"label",10),e.EFF(11,"Select Report Type"),e.k0s(),e.j41(12,"p-dropdown",11),e.mxI("ngModelChange",function(h){return e.DH7(n.selectedReport,h)||(n.selectedReport=h),h}),e.bIt("ngModelChange",function(){return n.resetRequest()}),e.k0s()(),e.j41(13,"div",12)(14,"form",13),e.DNE(15,ct,11,10,"div",14)(16,gt,7,6,"div",15)(17,ut,5,4,"div",15)(18,mt,5,1,"div",15),e.k0s()(),e.DNE(19,ft,2,0,"div",16)(20,_t,3,4,"div",17),e.k0s()()()),2&r&&(e.R7$(),e.Y8G("ngClass",n.systemService.customViewportCheck(650)?"":"st"),e.R7$(4),e.Y8G("maxWidth",!0)("disabled",null==n.selectedReport)("state",n.getReportBtnState)("action",n.getReportAction)("label","Display Report"),e.R7$(),e.Y8G("maxWidth",!0)("disabled",null==n.selectedReport)("state",n.downloadReportBtnState)("action",n.downloadReportAction)("label","Download Report"),e.R7$(6),e.Y8G("showClear",!0),e.R50("ngModel",n.selectedReport),e.Y8G("options",n.reports)("optionLabel","Name")("optionValue","Id")("placeholder","Select"),e.R7$(2),e.Y8G("formGroup",n.filterForm),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.DateRange)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.Destination)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.SimultaneousOptions)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.SchoolStudentId)),e.R7$(),e.Y8G("ngIf",n.showResults&&0==n.reportData.length),e.R7$(),e.Y8G("ngIf",n.showResults&&0!=n.reportData.length))},dependencies:[a.MD,a.YU,a.bT,f.tm,H.Ei,b.S,_.N,D.N,R.Mk,u.iI,C.kr,C.ms,s.YN,s.qT,s.me,s.BC,s.cb,s.vS,v.rO,v.Vv,B.u,A.iV,A.KF,te.Y,s.X1,s.j4,s.JD,N.O,X.d,L,Y.l],styles:[".container[_ngcontent-%COMP%]{height:calc(100vh - 132px);display:flex;flex-direction:column}.report-label[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase;color:#8ea6ba}.reports-dropdown[_ngcontent-%COMP%]{font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase}.filters-form[_ngcontent-%COMP%]{width:80%;align-self:center;padding-bottom:24px}.report-filter-container[_ngcontent-%COMP%]{padding-bottom:8px}.date-range-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.date-range[_ngcontent-%COMP%]{width:100%} .p-inputtext{color:#8ea6ba!important;font-size:.857rem!important} .p-column-filter-clear-button{display:none!important} .p-multiselect-close{display:none!important}.report-input-text[_ngcontent-%COMP%]{border:1px solid var(--light_grey);width:100%;height:43px;color:#596165}.report-category-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.report-category-header-container[_ngcontent-%COMP%]{display:flex;background-color:#fff;align-items:center;justify-content:space-between}@media (max-width: 650px){.report-category-header-container[_ngcontent-%COMP%]{flex-direction:column}.report-category-header[_ngcontent-%COMP%]{padding-top:0!important}
1.report-controls-container[_ngcontent-%COMP%]{width:100%}}@media (max-width: 700px){.select-report[_ngcontent-%COMP%], .filters-form[_ngcontent-%COMP%]{width:100%!important}.report-container[_ngcontent-%COMP%]{padding-left:8px!important;padding-right:8px!important}}.report-category-header[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:16px;font-weight:300;font-size:2rem;color:#3d4144;margin:0}.select-report[_ngcontent-%COMP%]{margin-bottom:24px;width:80%;align-self:center;padding-top:24px}.report-category-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#fff;flex-grow:1;justify-content:space-between;width:100%}.report-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-self:center;padding:0 24px}.report-controls-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-right:8px}.mr-8[_ngcontent-%COMP%]{margin-right:8px!important}.empty-result[_ngcontent-%COMP%]{text-align:center;font-size:18px;font-weight:600} .p-scroller-viewport{height:200px;display:block}#printableArea[_ngcontent-%COMP%]{display:none}@media print{.container[_ngcontent-%COMP%]{display:none}#printableArea[_ngcontent-%COMP%]{display:block!important;height:auto!important;overflow:auto!important;width:100%}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed;border-spacing:0px!important}td[_ngcontent-%COMP%]{max-width:100px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;padding-left:3px}td[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}td[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}th[_ngcontent-%COMP%]{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;border-top:1px solid lightgrey;padding-left:3px}th[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}th[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}}"]})}return o})();const Rt=["results"],ce=()=>({width:"100%"});function bt(o,d){if(1&o&&(e.j41(0,"div",16)(1,"div",17)(2,"label",9),e.EFF(3,"From Date "),e.nrm(4,"app-required",18),e.k0s(),e.nrm(5,"p-calendar",19),e.k0s(),e.j41(6,"div",20)(7,"label",9),e.EFF(8,"To Date "),e.nrm(9,"app-required",18),e.k0s(),e.nrm(10,"p-calendar",21),e.k0s()()),2&o){const t=e.XpG();e.R7$(4),e.Y8G("field",t.f.FromDate),e.R7$(),e.Aen(e.lJ4(8,ce)),e.Y8G("maxDate",t.maxDate),e.R7$(4),e.Y8G("field",t.f.ToDate),e.R7$(),e.Aen(e.lJ4(9,ce)),e.Y8G("minDate",t.minDate)}}function Dt(o,d){1&o&&(e.j41(0,"div",22),e.EFF(1," No data is available for this report "),e.k0s())}function yt(o,d){if(1&o&&(e.j41(0,"div",23,0),e.nrm(2,"app-report-table",24),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("reportCols",t.reportCols)("reportData",t.reportData)("selectedColumns",t.reportSelectedCols)("reportId",t.selectedReport)}}let wt=(()=>{class o extends K{set resultsContent(t){t&&(this.resultsDiv=t)}constructor(t,r,n){super(n),this.systemService=t,this.reportsService=r,this.reports=[],this.getReportRequest=new M(this.selectedReport),this.filterKeys={DateRange:"dateRange"}}ngOnChanges(t){t.showResults&&1==t.showResults.currentValue&&setTimeout(()=>{this.reportData.length>0&&this.resultsDiv.nativeElement.scrollIntoView({behavior:"smooth"})},100)}ngOnInit(){this.systemService.setLoading(!0),super.ngOnInit(),this.reportAllowedFilters=[{Id:l.AllEmergencyNotifications,Filters:[this.filterKeys.DateRange]}],this.reportsService.getSchoolReportsByCategory(w.EmergencyNotifications).subscribe(t=>{this.reports=t.Data,this.systemService.setLoading(!1)})}get f(){return this.filterForm.controls}buildFilterForm(){return new s.gE({FromDate:new s.MJ(""),ToDate:new s.MJ("")})}updateMinDate(t){this.minDate=new Date(t)}updateMaxDate(t){this.maxDate=new Date(t)}resetRequest(){this.getReportRequest=new M(this.selectedReport),this.showResultsChange.emit(!1),this.resetData()}resetData(){this.reportData=[],this.reportDataChange.emit(this.reportData),this.reportCols=[],this.reportColsChange.emit(this.reportCols),this.minDate=void 0,this.maxDate=void 0,this.resetForm(),null!=this.selectedReport&&this.reportAllowedFilters.find(r=>r.Id==this.selectedReport).Filters.includes(this.filterKeys.DateRange)&&(this.f.FromDate.setValidators((0,x.o)([{type:"required"}])),this.f.ToDate.setValidators((0,x.o)([{type:"required"}])))}
1validateRequest(t){if(this.filterForm.invalid||null==this.selectedReport)return this.f.FromDate.markAsDirty(),void this.f.ToDate.markAsDirty();let r=new M(this.selectedReport);r.FromDate=this.f.FromDate.value,r.ToDate=this.f.ToDate.value,t?this.downloadReport(r):this.getReport(r)}resetForm(){this.filterForm=new s.gE({FromDate:new s.MJ(""),ToDate:new s.MJ("")}),this.updateMinMaxDates()}updateMinMaxDates(){this.f.FromDate.valueChanges.subscribe(t=>{this.minDate=t?new Date(t):void 0}),this.f.ToDate.valueChanges.subscribe(t=>{this.maxDate=t?new Date(t):void 0})}static#e=this.\u0275fac=function(r){return new(r||o)(e.rXU(g.V),e.rXU(c),e.rXU(F.$))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-reports-emergency-notifications"]],viewQuery:function(r,n){if(1&r&&e.GBs(Rt,5,e.aKT),2&r){let i;e.mGM(i=e.lsd())&&(n.resultsContent=i.first)}},standalone:!0,features:[e.Jv_([c]),e.Vt3,e.OA$,e.aNF],decls:18,vars:21,consts:[["results",""],[1,"report-category-container"],[1,"report-category-header-container",3,"ngClass"],[1,"report-category-header"],[1,"report-controls-container"],[3,"maxWidth","disabled","state","action","label"],[1,"report-category-body"],[1,"report-container"],[1,"select-report"],[1,"report-label"],["appendTo","body",1,"reports-dropdown",3,"ngModelChange","showClear","ngModel","options","optionLabel","optionValue","placeholder"],[1,"filters-form"],[3,"formGroup"],["class","date-range-container report-filter-container",4,"ngIf"],["class","empty-result",4,"ngIf"],["class","report-table-container","style","width: 100%;",4,"ngIf"],[1,"date-range-container","report-filter-container"],[1,"date-range",2,"margin-right","8px"],[3,"field"],["appendTo","body","dataType","string","formControlName","FromDate",3,"maxDate"],[1,"date-range",2,"margin-left","8px"],["appendTo","body","dataType","string","formControlName","ToDate",3,"minDate"],[1,"empty-result"],[1,"report-table-container",2,"width","100%"],[3,"reportCols","reportData","selectedColumns","reportId"]],template:function(r,n){1&r&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.EFF(3,"Emergency Notifications"),e.k0s(),e.j41(4,"div",4),e.nrm(5,"app-btn-primary-state",5)(6,"app-btn-primary-state",5),e.k0s()(),e.j41(7,"div",6)(8,"div",7)(9,"div",8)(10,"label",9),e.EFF(11,"Select Report Type"),e.k0s(),e.j41(12,"p-dropdown",10),e.mxI("ngModelChange",function(h){return e.DH7(n.selectedReport,h)||(n.selectedReport=h),h}),e.bIt("ngModelChange",function(){return n.resetRequest()}),e.k0s()(),e.j41(13,"div",11)(14,"form",12),e.DNE(15,bt,11,10,"div",13),e.k0s()(),e.DNE(16,Dt,2,0,"div",14)(17,yt,3,4,"div",15),e.k0s()()()),2&r&&(e.R7$(),e.Y8G("ngClass",n.systemService.customViewportCheck(650)?"":"st"),e.R7$(4),e.Y8G("maxWidth",!0)("disabled",null==n.selectedReport)("state",n.getReportBtnState)("action",n.getReportAction)("label","Display Report"),e.R7$(),e.Y8G("maxWidth",!0)("disabled",null==n.selectedReport)("state",n.downloadReportBtnState)("action",n.downloadReportAction)("label","Download Report"),e.R7$(6),e.Y8G("showClear",!0),e.R50("ngModel",n.selectedReport),e.Y8G("options",n.reports)("optionLabel","Name")("optionValue","Id")("placeholder","Select"),e.R7$(2),e.Y8G("formGroup",n.filterForm),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.DateRange)),e.R7$(),e.Y8G("ngIf",n.showResults&&0==n.reportData.length),e.R7$(),e.Y8G("ngIf",n.showResults&&0!=n.reportData.length))},dependencies:[a.MD,a.YU,a.bT,f.tm,b.S,_.N,D.N,R.Mk,u.iI,C.kr,C.ms,s.YN,s.qT,s.BC,s.cb,s.vS,v.rO,v.Vv,B.u,L,s.X1,s.j4,s.JD,N.O,X.d,Y.l],styles:[".container[_ngcontent-%COMP%]{height:calc(100vh - 132px);display:flex;flex-direction:column}.report-label[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase;color:#8ea6ba}.reports-dropdown[_ngcontent-%COMP%]{font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase}.filters-form[_ngcontent-%COMP%]{width:80%;align-self:center;padding-bottom:24px}.report-filter-container[_ngcontent-%COMP%]{padding-bottom:8px}.date-range-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.date-range[_ngcontent-%COMP%]{width:100%} .p-inputtext{color:#8ea6ba!important;font-size:.857rem!important} .p-column-filter-clear-button{display:none!important} .p-multiselect-close{display:none!important}.report-input-text[_ngcontent-%COMP%]{border:1px solid var(--light_grey);width:100%;height:43px;color:#596165}.report-category-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.report-category-header-container[_ngcontent-%COMP%]{display:flex;background-color:#fff;align-items:center;justify-content:space-between}@media (max-width: 650px){.report-category-header-container[_ngcontent-%COMP%]{flex-direction:column}.report-category-header[_ngcontent-%COMP%]{padding-top:0!important}
1.report-controls-container[_ngcontent-%COMP%]{width:100%}}@media (max-width: 700px){.select-report[_ngcontent-%COMP%], .filters-form[_ngcontent-%COMP%]{width:100%!important}.report-container[_ngcontent-%COMP%]{padding-left:8px!important;padding-right:8px!important}}.report-category-header[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:16px;font-weight:300;font-size:2rem;color:#3d4144;margin:0}.select-report[_ngcontent-%COMP%]{margin-bottom:24px;width:80%;align-self:center;padding-top:24px}.report-category-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#fff;flex-grow:1;justify-content:space-between;width:100%}.report-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-self:center;padding:0 24px}.report-controls-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-right:8px}.mr-8[_ngcontent-%COMP%]{margin-right:8px!important}.empty-result[_ngcontent-%COMP%]{text-align:center;font-size:18px;font-weight:600} .p-scroller-viewport{height:200px;display:block}#printableArea[_ngcontent-%COMP%]{display:none}@media print{.container[_ngcontent-%COMP%]{display:none}#printableArea[_ngcontent-%COMP%]{display:block!important;height:auto!important;overflow:auto!important;width:100%}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed;border-spacing:0px!important}td[_ngcontent-%COMP%]{max-width:100px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;padding-left:3px}td[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}td[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}th[_ngcontent-%COMP%]{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;border-top:1px solid lightgrey;padding-left:3px}th[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}th[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}}"]})}return o})();const vt=["results"],he=()=>({width:"100%"});function xt(o,d){if(1&o&&(e.j41(0,"div",17)(1,"div",18)(2,"label",9),e.EFF(3,"From Date "),e.nrm(4,"app-required",19),e.k0s(),e.nrm(5,"p-calendar",20),e.k0s(),e.j41(6,"div",21)(7,"label",9),e.EFF(8,"To Date "),e.nrm(9,"app-required",19),e.k0s(),e.nrm(10,"p-calendar",22),e.k0s()()),2&o){const t=e.XpG();e.R7$(4),e.Y8G("field",t.f.FromDate),e.R7$(),e.Aen(e.lJ4(8,he)),e.Y8G("maxDate",t.maxDate),e.R7$(4),e.Y8G("field",t.f.ToDate),e.R7$(),e.Aen(e.lJ4(9,he)),e.Y8G("minDate",t.minDate)}}function St(o,d){if(1&o&&(e.j41(0,"div",23)(1,"label",9),e.EFF(2,"Notification Id "),e.nrm(3,"app-required",19),e.k0s(),e.nrm(4,"input",24),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("field",t.f.NotificationId)}}function Mt(o,d){1&o&&(e.j41(0,"div",25),e.EFF(1," No data is available for this report "),e.k0s())}function Tt(o,d){if(1&o&&(e.j41(0,"div",26,0),e.nrm(2,"app-report-table",27),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.Y8G("reportCols",t.reportCols)("reportData",t.reportData)("selectedColumns",t.reportSelectedCols)("reportId",t.selectedReport)}}let It=(()=>{class o extends K{set resultsContent(t){t&&(this.resultsDiv=t)}constructor(t,r,n){super(n),this.systemService=t,this.reportsService=r,this.reports=[],this.getReportRequest=new M(this.selectedReport),this.filterKeys={DateRange:"dateRange",NotificationId:"notificationId"}}ngOnChanges(t){t.showResults&&1==t.showResults.currentValue&&setTimeout(()=>{this.reportData.length>0&&this.resultsDiv.nativeElement.scrollIntoView({behavior:"smooth"})},100)}ngOnInit(){this.systemService.setLoading(!0),super.ngOnInit(),this.reportAllowedFilters=[{Id:l.Notifications,Filters:[this.filterKeys.DateRange]},{Id:l.NotificationsStatusDetail,Filters:[this.filterKeys.NotificationId]},{Id:l.NotificationsSummary,Filters:[this.filterKeys.DateRange]}],this.reportsService.getSchoolReportsByCategory(w.Messenger).subscribe(t=>{this.reports=t.Data,this.systemService.setLoading(!1)})}get f(){return this.filterForm.controls}buildFilterForm(){return new s.gE({FromDate:new s.MJ(""),ToDate:new s.MJ(""),NotificationId:new s.MJ("")})}
1resetRequest(){this.getReportRequest=new M(this.selectedReport),this.showResultsChange.emit(!1),this.resetData()}resetData(){if(this.reportData=[],this.reportDataChange.emit(this.reportData),this.reportCols=[],this.reportColsChange.emit(this.reportCols),this.minDate=void 0,this.maxDate=void 0,this.resetForm(),null!=this.selectedReport){let t=this.reportAllowedFilters.find(r=>r.Id==this.selectedReport).Filters;t.includes(this.filterKeys.DateRange)&&(this.f.FromDate.setValidators((0,x.o)([{type:"required"}])),this.f.ToDate.setValidators((0,x.o)([{type:"required"}]))),t.includes(this.filterKeys.NotificationId)&&this.f.NotificationId.setValidators([(0,x.o)([{type:"required"}]),(0,x.o)([{type:"guid"}])])}}validateRequest(t){if(this.filterForm.invalid||null==this.selectedReport)return this.f.FromDate.markAsDirty(),this.f.ToDate.markAsDirty(),void this.f.NotificationId.markAsDirty();let r=new M(this.selectedReport);r.FromDate=this.f.FromDate.value,r.ToDate=this.f.ToDate.value,r.NotificationId=this.f.NotificationId.value,t?this.downloadReport(r):this.getReport(r)}resetForm(){this.filterForm=new s.gE({FromDate:new s.MJ(""),ToDate:new s.MJ(""),NotificationId:new s.MJ("")}),this.updateMinMaxDates()}updateMinMaxDates(){this.f.FromDate.valueChanges.subscribe(t=>{this.minDate=t?new Date(t):void 0}),this.f.ToDate.valueChanges.subscribe(t=>{this.maxDate=t?new Date(t):void 0})}static#e=this.\u0275fac=function(r){return new(r||o)(e.rXU(g.V),e.rXU(c),e.rXU(F.$))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-reports-messenger"]],viewQuery:function(r,n){if(1&r&&e.GBs(vt,5,e.aKT),2&r){let i;e.mGM(i=e.lsd())&&(n.resultsContent=i.first)}},standalone:!0,features:[e.Jv_([c]),e.Vt3,e.OA$,e.aNF],decls:19,vars:22,consts:[["results",""],[1,"report-category-container"],[1,"report-category-header-container",3,"ngClass"],[1,"report-category-header"],[1,"report-controls-container"],[3,"maxWidth","disabled","state","action","label"],[1,"report-category-body"],[1,"report-container"],[1,"select-report"],[1,"report-label"],["appendTo","body",1,"reports-dropdown",3,"ngModelChange","showClear","ngModel","options","optionLabel","optionValue","placeholder"],[1,"filters-form"],[3,"formGroup"],["class","date-range-container report-filter-container",4,"ngIf"],["class","report-filter-container",4,"ngIf"],["class","empty-result",4,"ngIf"],["class","report-table-container","style","width: 100%;",4,"ngIf"],[1,"date-range-container","report-filter-container"],[1,"date-range",2,"margin-right","8px"],[3,"field"],["appendTo","body","dataType","string","formControlName","FromDate",3,"maxDate"],[1,"date-range",2,"margin-left","8px"],["appendTo","body","dataType","string","formControlName","ToDate",3,"minDate"],[1,"report-filter-container"],["pInputText","","formControlName","NotificationId",1,"report-input-text"],[1,"empty-result"],[1,"report-table-container",2,"width","100%"],[3,"reportCols","reportData","selectedColumns","reportId"]],template:function(r,n){1&r&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.EFF(3,"Messenger"),e.k0s(),e.j41(4,"div",4),e.nrm(5,"app-btn-primary-state",5)(6,"app-btn-primary-state",5),e.k0s()(),e.j41(7,"div",6)(8,"div",7)(9,"div",8)(10,"label",9),e.EFF(11,"Select Report Type"),e.k0s(),e.j41(12,"p-dropdown",10),e.mxI("ngModelChange",function(h){return e.DH7(n.selectedReport,h)||(n.selectedReport=h),h}),e.bIt("ngModelChange",function(){return n.resetRequest()}),e.k0s()(),e.j41(13,"div",11)(14,"form",12),e.DNE(15,xt,11,10,"div",13)(16,St,5,1,"div",14),e.k0s()(),e.DNE(17,Mt,2,0,"div",15)(18,Tt,3,4,"div",16),e.k0s()()()),2&r&&(e.R7$(),e.Y8G("ngClass",n.systemService.customViewportCheck(650)?"":"st"),e.R7$(4),e.Y8G("maxWidth",!0)("disabled",null==n.selectedReport)("state",n.getReportBtnState)("action",n.getReportAction)("label","Display Report"),e.R7$(),e.Y8G("maxWidth",!0)("disabled",null==n.selectedReport)("state",n.downloadReportBtnState)("action",n.downloadReportAction)("label","Download Report"),e.R7$(6),e.Y8G("showClear",!0),e.R50("ngModel",n.selectedReport),e.Y8G("options",n.reports)("optionLabel","Name")("optionValue","Id")("placeholder","Select"),e.R7$(2),e.Y8G("formGroup",n.filterForm),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.DateRange)),e.R7$(),e.Y8G("ngIf",n.filterAllowed(n.filterKeys.NotificationId)),e.R7$(),e.Y8G("ngIf",n.showResults&&0==n.reportData.length),e.R7$(),e.Y8G("ngIf",n.showResults&&0!=n.reportData.length))},dependencies:[a.MD,a.YU,a.bT,f.tm,b.S,_.N,D.N,R.Mk,u.iI,C.kr,C.ms,s.YN,s.qT,s.me,s.BC,s.cb,s.vS,v.rO,v.Vv,B.u,B.S,L,s.X1,s.j4,s.JD,N.O,X.d,Y.l],styles:[".container[_ngcontent-%COMP%]{height:calc(100vh - 132px);display:flex;flex-direction:column}.report-label[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase;color:#8ea6ba}.reports-dropdown[_ngcontent-%COMP%]{font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase}.filters-form[_ngcontent-%COMP%]{width:80%;align-self:center;padding-bottom:24px}.report-filter-container[_ngcontent-%COMP%]{padding-bottom:8px}.date-range-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.date-range[_ngcontent-%COMP%]{width:100%} .p-inputtext{color:#8ea6ba!important;font-size:.857rem!important} .p-column-filter-clear-button{display:none!important} .p-multiselect-close{display:none!important}.report-input-text[_ngcontent-%COMP%]{border:1px solid var(--light_grey);width:100%;height:43px;color:#596165}.report-category-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.report-category-header-container[_ngcontent-%COMP%]{display:flex;background-color:#fff;align-items:center;justify-content:space-between}@media (max-width: 650px){.report-category-header-container[_ngcontent-%COMP%]{flex-direction:column}.report-category-header[_ngcontent-%COMP%]{padding-top:0!important}
1.report-controls-container[_ngcontent-%COMP%]{width:100%}}@media (max-width: 700px){.select-report[_ngcontent-%COMP%], .filters-form[_ngcontent-%COMP%]{width:100%!important}.report-container[_ngcontent-%COMP%]{padding-left:8px!important;padding-right:8px!important}}.report-category-header[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:16px;font-weight:300;font-size:2rem;color:#3d4144;margin:0}.select-report[_ngcontent-%COMP%]{margin-bottom:24px;width:80%;align-self:center;padding-top:24px}.report-category-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#fff;flex-grow:1;justify-content:space-between;width:100%}.report-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-self:center;padding:0 24px}.report-controls-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-right:8px}.mr-8[_ngcontent-%COMP%]{margin-right:8px!important}.empty-result[_ngcontent-%COMP%]{text-align:center;font-size:18px;font-weight:600} .p-scroller-viewport{height:200px;display:block}#printableArea[_ngcontent-%COMP%]{display:none}@media print{.container[_ngcontent-%COMP%]{display:none}#printableArea[_ngcontent-%COMP%]{display:block!important;height:auto!important;overflow:auto!important;width:100%}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed;border-spacing:0px!important}td[_ngcontent-%COMP%]{max-width:100px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;padding-left:3px}td[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}td[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}th[_ngcontent-%COMP%]{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;border-top:1px solid lightgrey;padding-left:3px}th[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}th[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}}"]})}return o})();var Pt=p(129),ge=p(4273);function ue(o,d){const t=o.getFullYear()-d.getFullYear()||o.getMonth()-d.getMonth()||o.getDate()-d.getDate()||o.getHours()-d.getHours()||o.getMinutes()-d.getMinutes()||o.getSeconds()-d.getSeconds()||o.getMilliseconds()-d.getMilliseconds();return t<0?-1:t>0?1:t}var O=p(4820),E=p(4718),Ft=p(7468);function Ot(o,d){if(1&o){const t=e.RV6();e.j41(0,"div",8),e.bIt("click",function(){const n=e.eBV(t).$implicit,i=e.XpG(2);return e.Njj(i.onCardClick(n))})("keydown.enter",function(){const n=e.eBV(t).$implicit,i=e.XpG(2);return e.Njj(i.onCardClick(n))})("keydown.space",function(n){const i=e.eBV(t).$implicit,h=e.XpG(2);return n.preventDefault(),e.Njj(h.onCardClick(i))}),e.j41(1,"button",9),e.bIt("click",function(n){const i=e.eBV(t).$implicit,h=e.XpG(2);return e.Njj(h.deleteReport(i,n))})("keydown.enter",function(n){return e.eBV(t),e.Njj(n.stopPropagation())})("keydown.space",function(n){return e.eBV(t),e.Njj(n.stopPropagation())}),e.qSk(),e.j41(2,"svg",10),e.nrm(3,"path",11),e.k0s()(),e.joV(),e.j41(4,"div",12)(5,"h3",13),e.EFF(6),e.k0s(),e.j41(7,"p",14),e.EFF(8),e.k0s()(),e.j41(9,"div",15)(10,"span",16)(11,"span",17),e.EFF(12,"\u{1f4c5}"),e.k0s(),e.EFF(13),e.nI1(14,"date"),e.k0s()()()}if(2&o){const t=d.$implicit;e.R7$(6),e.JRh(t.Report),e.R7$(2),e.SpI("Category: ",t.Category,""),e.R7$(5),e.SpI(" Last Used: ",e.i5U(14,3,t.Date,"MMM d, y - h:mm a")," ")}}function Gt(o,d){if(1&o&&(e.j41(0,"div",6),e.DNE(1,Ot,15,6,"div",7),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.reports)}}function Bt(o,d){1&o&&(e.j41(0,"div",18)(1,"p"),e.EFF(2,"No recent reports found."),e.k0s()())}let jt=(()=>{class o{constructor(t,r,n,i){this.systemService=t,this.reportsService=r,this.userSettingService=n,this.messageService=i,this.reports=[],this.cardClicked=new e.bkB}ngOnInit(){this.LoadRecentReports()}LoadRecentReports(){this.systemService.setLoading(!0),this.reportsService.getRecentSchoolReports().subscribe(t=>{this.reports=t.Data,this.systemService.setLoading(!1)})}onCardClick(t){this.cardClicked.emit(t)}deleteReport(t,r){r.stopPropagation(),this.userSettingService.deleteUserReportSettings({reportId:t.ReportId}).subscribe(n=>
1{n?(this.messageService.add({severity:"success",detail:"The saved report configuration was successfully deleted."}),this.LoadRecentReports()):this.messageService.add({severity:"error",detail:"The saved report configuration could not be deleted"})})}static#e=this.\u0275fac=function(r){return new(r||o)(e.rXU(g.V),e.rXU(c),e.rXU(F.$),e.rXU(H.bg))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-reports-recent"]],outputs:{cardClicked:"cardClicked"},standalone:!0,features:[e.Jv_([c,$.t]),e.aNF],decls:10,vars:2,consts:[["noReports",""],[1,"report-category-container"],[1,"reports-page"],[1,"reports-header"],[1,"subtitle"],["class","reports-grid",4,"ngIf","ngIfElse"],[1,"reports-grid"],["class","report-card","role","button","tabindex","0",3,"click","keydown.enter","keydown.space",4,"ngFor","ngForOf"],["role","button","tabindex","0",1,"report-card",3,"click","keydown.enter","keydown.space"],["title","Remove report","aria-label","Delete report",1,"delete-btn",3,"click","keydown.enter","keydown.space"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","width","20","height","20","aria-hidden","true"],["fill","currentColor","d","M9 3V4H4V6H5V20C5 21.1 5.9 22 7 22H17C18.1 22 19 21.1 19 20V6H20V4H15V3H9M7 6H17V20H7V6Z"],[1,"report-info"],[1,"report-name"],[1,"report-category"],[1,"report-meta"],[1,"report-date"],[1,"date-icon"],[1,"no-reports"]],template:function(r,n){if(1&r&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"h2"),e.EFF(4,"Recently Used Reports"),e.k0s(),e.j41(5,"p",4),e.EFF(6,"Here are your 10 most recently accessed reports"),e.k0s()(),e.DNE(7,Gt,2,1,"div",5)(8,Bt,3,0,"ng-template",null,0,e.C5r),e.k0s()()),2&r){const i=e.sdS(9);e.R7$(7),e.Y8G("ngIf",null==n.reports?null:n.reports.length)("ngIfElse",i)}},dependencies:[a.MD,a.Sq,a.bT,a.vh,f.tm,b.S,_.N,D.N,R.Mk,u.iI,C.kr,s.YN,v.rO,B.u,j.bG,s.X1,A.iV,Q.h,N.O],styles:[".reports-page[_ngcontent-%COMP%]{background-color:#fff;padding:2rem 3rem;min-height:100%}.reports-header[_ngcontent-%COMP%]{margin-bottom:1.5rem}.reports-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.5rem;color:#1e3a8a;font-weight:600;margin:0}.reports-header[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{color:#64748b;font-size:.95rem;margin-top:.3rem}.reports-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}.report-card[_ngcontent-%COMP%]{background:#fff;border-radius:1rem;box-shadow:0 2px 6px #0000000f;padding:1.25rem 1.5rem;display:flex;flex-direction:column;justify-content:space-between;transition:all .25s ease-in-out;border-left:4px solid #1e73be;cursor:pointer;position:relative}.report-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 4px 10px #00000014}.report-info[_ngcontent-%COMP%]{margin-bottom:.5rem}.report-name[_ngcontent-%COMP%]{font-size:1.1rem;color:#1e293b;margin:0;font-weight:600}.report-category[_ngcontent-%COMP%]{display:inline-block;background-color:#f5f5f5;padding:4px 12px;border-radius:4px;font-size:.9rem;color:#666;margin-bottom:0}.report-meta[_ngcontent-%COMP%]{border-top:1px solid #f1f5f9;padding-top:.6rem}.report-date[_ngcontent-%COMP%]{font-size:.85rem;color:#475569}.date-icon[_ngcontent-%COMP%]{margin-right:6px;color:#999}.delete-btn[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;background:transparent;border:none;color:#999;cursor:pointer;z-index:2;padding:4px;border-radius:50%;transition:background .2s,color .2s}.delete-btn[_ngcontent-%COMP%]:hover{color:#e53935;background:#e539351a}"]})}return o})();var At=p(7246),Nt=p(2092);function Vt(o,d){if(1&o){const t=e.RV6();e.j41(0,"i",17),e.bIt("click",function(n){e.eBV(t),e.XpG();const i=e.sdS(9);return e.Njj(i.toggle(n))}),e.k0s()}}function Lt(o,d){if(1&o){const t=e.RV6();e.j41(0,"pmk-tabview",18),e.bIt("cb",function(n){e.eBV(t);const i=e.XpG();return e.Njj(i.tabChange(n))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("activeIndex",t.index)("model",t.tabs)}}function Yt(o,d){if(1&o){const t=e.RV6();e.j41(0,"app-reports-recent",19),e.bIt("cardClicked",function(n){e.eBV(t);const i=e.XpG();return e.Njj(i.onCardClicked(n))}),e.k0s()}}function Kt(o,d){if(1&o){const t=e.RV6();e.j41(0,"app-reports-dismissal-management",20),e.mxI("classroomsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.classrooms,n)||(i.classrooms=n),e.Njj(n)})("pickupModesChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.pickupModes,n)||(i.pickupModes=n),e.Njj(n)})("reportDataChange",function(n){e.eBV(t);const i=e.XpG();
1return e.DH7(i.reportData,n)||(i.reportData=n),e.Njj(n)})("reportColsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportColumns,n)||(i.reportColumns=n),e.Njj(n)})("reportSelectedColsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportSelectedColumns,n)||(i.reportSelectedColumns=n),e.Njj(n)})("showResultsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.showResults,n)||(i.showResults=n),e.Njj(n)})("enableLoadFiltersChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.enableLoadFilters,n)||(i.enableLoadFilters=n),e.Njj(n)}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("getReport",t.startGetReport)("downloadReport",t.startDownloadReport)("checkMaxDateRangeErrors",t.checkMaxDateRangeErrors),e.R50("classrooms",t.classrooms)("pickupModes",t.pickupModes)("reportData",t.reportData)("reportCols",t.reportColumns)("reportSelectedCols",t.reportSelectedColumns)("showResults",t.showResults),e.Y8G("getReportBtnState",t.getReportBtnState)("downloadReportBtnState",t.downloadReportBtnState)("selectedReport",t.selectedReport),e.R50("enableLoadFilters",t.enableLoadFilters)}}function Xt(o,d){if(1&o){const t=e.RV6();e.j41(0,"app-reports-record-management",21),e.mxI("busRoutesChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.busRoutes,n)||(i.busRoutes=n),e.Njj(n)})("dispatchersChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.dispatchers,n)||(i.dispatchers=n),e.Njj(n)})("studentsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.students,n)||(i.students=n),e.Njj(n)})("studentTagsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.studentTags,n)||(i.studentTags=n),e.Njj(n)})("afterschoolProgramsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.afterschoolPrograms,n)||(i.afterschoolPrograms=n),e.Njj(n)})("reportDataChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportData,n)||(i.reportData=n),e.Njj(n)})("reportColsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportColumns,n)||(i.reportColumns=n),e.Njj(n)})("reportSelectedColsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportSelectedColumns,n)||(i.reportSelectedColumns=n),e.Njj(n)})("showResultsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.showResults,n)||(i.showResults=n),e.Njj(n)})("enableLoadFiltersChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.enableLoadFilters,n)||(i.enableLoadFilters=n),e.Njj(n)}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("getReport",t.startGetReport)("downloadReport",t.startDownloadReport)("checkMaxDateRangeErrors",t.checkMaxDateRangeErrors),e.R50("busRoutes",t.busRoutes)("dispatchers",t.dispatchers)("students",t.students)("studentTags",t.studentTags)("afterschoolPrograms",t.afterschoolPrograms)("reportData",t.reportData)("reportCols",t.reportColumns)("reportSelectedCols",t.reportSelectedColumns)("showResults",t.showResults),e.Y8G("getReportBtnState",t.getReportBtnState)("downloadReportBtnState",t.downloadReportBtnState)("selectedReport",t.selectedReport),e.R50("enableLoadFilters",t.enableLoadFilters)}}function Et(o,d){if(1&o){const t=e.RV6();e.j41(0,"app-reports-reunification",22),e.mxI("reportDataChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportData,n)||(i.reportData=n),e.Njj(n)})("reportColsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportColumns,n)||(i.reportColumns=n),e.Njj(n)})("drillReunificationDatesChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.drillReunificationDates,n)||(i.drillReunificationDates=n),e.Njj(n)})("reunificationDatesChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reunificationDates,n)||(i.reunificationDates=n),e.Njj(n)})("reportSelectedColsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportSelectedColumns,n)||(i.reportSelectedColumns=n),e.Njj(n)})("showResultsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.showResults,n)||(i.showResults=n),e.Njj(n)})("enableLoadFiltersChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.enableLoadFilters,n)||(i.enableLoadFilters=n),e.Njj(n)}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("getReport",t.startGetReport)("downloadReport",t.startDownloadReport)("checkMaxDateRangeErrors",t.checkMaxDateRangeErrors),e.R50("reportData",t.reportData)("reportCols",t.reportColumns)("drillReunificationDates",t.drillReunificationDates)("reunificationDates",t.reunificationDates)("reportSelectedCols",t.reportSelectedColumns)("showResults",t.showResults),e.Y8G("getReportBtnState",t.getReportBtnState)("downloadReportBtnState",t.downloadReportBtnState)("selectedReport",t.selectedReport),e.R50("enableLoadFilters",t.enableLoadFilters)}}function Ht(o,d){if(1&o){const t=e.RV6();e.j41(0,"app-reports-hallpass",23),e.mxI("reportDataChange",function(n){e.eBV(t);const i=e.XpG();
1return e.DH7(i.reportData,n)||(i.reportData=n),e.Njj(n)})("reportColsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportColumns,n)||(i.reportColumns=n),e.Njj(n)})("hallpassDestinationsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.hallpassDestinations,n)||(i.hallpassDestinations=n),e.Njj(n)})("reportSelectedColsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportSelectedColumns,n)||(i.reportSelectedColumns=n),e.Njj(n)})("showResultsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.showResults,n)||(i.showResults=n),e.Njj(n)})("enableLoadFiltersChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.enableLoadFilters,n)||(i.enableLoadFilters=n),e.Njj(n)}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("getReport",t.startGetReport)("downloadReport",t.startDownloadReport),e.R50("reportData",t.reportData)("reportCols",t.reportColumns)("hallpassDestinations",t.hallpassDestinations)("reportSelectedCols",t.reportSelectedColumns)("showResults",t.showResults),e.Y8G("getReportBtnState",t.getReportBtnState)("downloadReportBtnState",t.downloadReportBtnState)("selectedReport",t.selectedReport),e.R50("enableLoadFilters",t.enableLoadFilters)}}function Ut(o,d){if(1&o){const t=e.RV6();e.j41(0,"app-reports-emergency-notifications",24),e.mxI("reportDataChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportData,n)||(i.reportData=n),e.Njj(n)})("reportColsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportColumns,n)||(i.reportColumns=n),e.Njj(n)})("reportSelectedColsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportSelectedColumns,n)||(i.reportSelectedColumns=n),e.Njj(n)})("showResultsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.showResults,n)||(i.showResults=n),e.Njj(n)})("enableLoadFiltersChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.enableLoadFilters,n)||(i.enableLoadFilters=n),e.Njj(n)}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("getReport",t.startGetReport)("downloadReport",t.startDownloadReport),e.R50("reportData",t.reportData)("reportCols",t.reportColumns)("reportSelectedCols",t.reportSelectedColumns)("showResults",t.showResults),e.Y8G("getReportBtnState",t.getReportBtnState)("downloadReportBtnState",t.downloadReportBtnState)("selectedReport",t.selectedReport),e.R50("enableLoadFilters",t.enableLoadFilters)}}function $t(o,d){if(1&o){const t=e.RV6();e.j41(0,"app-reports-messenger",24),e.mxI("reportDataChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportData,n)||(i.reportData=n),e.Njj(n)})("reportColsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportColumns,n)||(i.reportColumns=n),e.Njj(n)})("reportSelectedColsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.reportSelectedColumns,n)||(i.reportSelectedColumns=n),e.Njj(n)})("showResultsChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.showResults,n)||(i.showResults=n),e.Njj(n)})("enableLoadFiltersChange",function(n){e.eBV(t);const i=e.XpG();return e.DH7(i.enableLoadFilters,n)||(i.enableLoadFilters=n),e.Njj(n)}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("getReport",t.startGetReport)("downloadReport",t.startDownloadReport),e.R50("reportData",t.reportData)("reportCols",t.reportColumns)("reportSelectedCols",t.reportSelectedColumns)("showResults",t.showResults),e.Y8G("getReportBtnState",t.getReportBtnState)("downloadReportBtnState",t.downloadReportBtnState)("selectedReport",t.selectedReport),e.R50("enableLoadFilters",t.enableLoadFilters)}}function Jt(o,d){if(1&o&&(e.j41(0,"th"),e.EFF(1),e.k0s()),2&o){const t=d.$implicit;e.R7$(),e.SpI(" ",t.header," ")}}function Wt(o,d){if(1&o&&(e.j41(0,"td"),e.EFF(1),e.k0s()),2&o){const t=d.$implicit,r=e.XpG().$implicit;e.R7$(),e.SpI(" ",r[t.field]," ")}}function zt(o,d){if(1&o&&(e.j41(0,"tr"),e.DNE(1,Wt,2,1,"td",16),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.printingCols)}}let qt=(()=>{class o{constructor(t,r,n){this.systemService=t,this.reportService=r,this.userSettingService=n,this.paths={Recent:"recent",DismissalManagement:"dismissal",RecordManagement:"record",Reunification:"reunification",HallPass:"hallpass",EmergencyNotification:"emergency",Messenger
1:"messenger"},this.tabs=[{label:"Recent",path:this.paths.Recent,showSave:!1,command:i=>{this.tabChange(i.item.path)}},{label:"Dismissal Management",path:this.paths.DismissalManagement,showSave:!1,command:i=>{this.tabChange(i.item.path)}},{label:"Record Management",path:this.paths.RecordManagement,showSave:!1,command:i=>{this.tabChange(i.item.path)}},{label:"Reunification",path:this.paths.Reunification,showSave:!1,command:i=>{this.tabChange(i.item.path)}},{label:"Hall Pass",path:this.paths.HallPass,showSave:!1,command:i=>{this.tabChange(i.item.path)}},{label:"Emergency Notifications",path:this.paths.EmergencyNotification,showSave:!1,command:i=>{this.tabChange(i.item.path)}},{label:"Messenger",path:this.paths.Messenger,showSave:!1,command:i=>{this.tabChange(i.item.path)}}],this.selectedIndex=this.paths.Recent,this.index=0,this.showResults=!1,this.downloadingResults=!1,this.pickupModes=[],this.classrooms=[],this.students=[],this.dispatchers=[],this.afterschoolPrograms=[],this.busRoutes=[],this.studentTags=[],this.reunificationDates=[],this.drillReunificationDates=[],this.hallpassDestinations=[],this.reportData=[],this.reportColumns=[],this.reportSelectedColumns=[],this.getReportBtnState=O.D.Default,this.downloadReportBtnState=O.D.Default,this.printingCols=[],this.printingData=[],this.startGetReport=i=>{0!=i.Id&&(this.getReportRequest=i,this.getReport())},this.getReport=()=>{this.showResults=!1,this.getReportBtnState=O.D.Loading,(0,Ft.p)({userSettings:this.userSettingService.getUserSettings(`ReportSetting_${this.getReportRequest.Id}`),report:this.reportService.getReport(this.getReportRequest)}).subscribe({next:({userSettings:i,report:h})=>{if(!h.IsSuccess&&h.TakeAction)this.systemService.showRestrictedActionModal.next({ShowModal:!0,CallbackFn:this.getReport,ExpirationTime:h.OtpExpirationUtc}),setTimeout(()=>{this.getReportBtnState=O.D.Error,setTimeout(()=>{this.getReportBtnState=O.D.Default},E.K.Default)},E.K.Error);else{const T=Object.keys(h.Data[0]||{}).map(P=>({field:P,header:(0,ee.q)(P)}));this.reportColumns=T,this.reportSelectedColumns=i&&Array.isArray(i)?T.filter(P=>i.includes(P.field)):T,this.reportData=h.Data,setTimeout(()=>{this.showResults=!0,this.getReportBtnState=O.D.Success,this.getReportRequest=null,setTimeout(()=>{this.getReportBtnState=O.D.Default},E.K.Default)},E.K.Success)}}})},this.startDownloadReport=i=>{0!=i.Id&&(this.getReportRequest=i,this.systemService.checkRestrictedActionAccess(At.D.Reports).subscribe(h=>{h.IsSuccess?this.downloadReport():this.systemService.showRestrictedActionModal.next({ShowModal:!0,CallbackFn:this.downloadReport,ExpirationTime:h.OtpExpirationUtc})}))},this.downloadReport=()=>{this.downloadReportBtnState=O.D.Loading,this.reportService.downloadReport(this.getReportRequest).subscribe(i=>{let h=i.headers.get("content-disposition"),T="pikmykid-report";if(h){const z=/filename\*\s*=\s*[^']*''([^;]*)/i.exec(h);if(z&&z[1])T=decodeURIComponent(z[1]);else{const q=/filename\s*=\s*"([^"]+)"/i.exec(h);q&&q[1]&&(T=q[1])}}let P=new Blob([i.body],{type:"text/csv"});const k=window.URL.createObjectURL(P);var J=document.createElement("a");J.href=k,J.download=T,setTimeout(()=>{J.click(),this.downloadReportBtnState=O.D.Success,this.getReportRequest=null,setTimeout(()=>{window.URL.revokeObjectURL(k),J.remove(),this.downloadReportBtnState=O.D.Default},E.K.Default)},E.K.Success)})},this.checkMaxDateRangeErrors=(i,h)=>{let T=new Date(i.value),k=function kt(o,d){const t=(0,ge.a)(o),r=(0,ge.a)(d),n=ue(t,r),i=Math.abs((0,Pt.m)(t,r));t.setDate(t.getDate()-n*i);const T=n*(i-+(ue(t,r)===-n));return 0===T?0:T}(new Date(h.value),T);k>31?(i.setErrors({invalid:{message:"Please select up to 31 days maximum. Current range in days: "+k}}),h.setErrors({invalid:{message:"Please select up to 31 days maximum. Current range in days: "+k}})):(i.setErrors(null),h.setErrors(null))}}ngOnInit(){this.systemService.getReportPrintingData.subscribe(t=>{this.printingCols=t.SelectedColumns,this.printingData=null!=t.FilteredTableData?t.FilteredTableData:this.reportData,setTimeout(()=>{window.print()},50)})}tabChange(t){if(t==this.selectedIndex)return;const r=this.tabs.findIndex(n=>n.path===t);this.showResults=!1,this.selectedIndex=t,this.index=r}onCardClicked(t){const r=this.tabs.find(n=>n.label===t.Category);r&&(this.enableLoadFilters=!0,this.tabChange(r.path),this.selectedReport=t.ReportId)}static#e=this.\u0275fac=function(r){return new(r||o)(e.rXU(g.V),e.rXU(c),e.rXU(F.$))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["app-reports-container"]],outputs:{selectedReport:"selectedReport",enableLoadFilters:"enableLoadFilters"},standalone:!0,features:[e.Jv_([c]),e.aNF],decls:22,vars:13,consts:[["settingsMenu",""],[1,"container"],[1,"st",2,"background-color","white"],[1,"flex",2,"height","65px"],[1,"flex-grow-1"],[2,"margin-top","10px"],["class","settings_menu pi pi-bars",3,"click",4,"ngIf"],[3,"activeIndex","model","cb",4,"ngIf"],["appendTo","body","styleClass","clean",3,"model","popup"],[3,"cardClicked",4,"ngIf"],["style","height: 100%;",3,"getReport","downloadReport","checkMaxDateRangeErrors","classrooms","pickupModes","reportData","reportCols","reportSelectedCols","showResults","getReportBtnState","downloadReportBtnState","selectedReport","enableLoadFilters","classroomsChange","pickupModesChange","reportDataChange","reportColsChange","reportSelectedColsChange","showResultsChange","enableLoadFiltersChange",4,"ngIf"],["style","height: 100%;",3,"getReport","downloadReport","checkMaxDateRangeErrors","busRoutes","dispatchers","students","studentTags","afterschoolPrograms","reportData","reportCols","reportSelectedCols","showResults","getReportBtnState","downloadReportBtnState","selectedReport","enableLoadFilters","busRoutesC
1hange","dispatchersChange","studentsChange","studentTagsChange","afterschoolProgramsChange","reportDataChange","reportColsChange","reportSelectedColsChange","showResultsChange","enableLoadFiltersChange",4,"ngIf"],["style","height: 100%;",3,"getReport","downloadReport","checkMaxDateRangeErrors","reportData","reportCols","drillReunificationDates","reunificationDates","reportSelectedCols","showResults","getReportBtnState","downloadReportBtnState","selectedReport","enableLoadFilters","reportDataChange","reportColsChange","drillReunificationDatesChange","reunificationDatesChange","reportSelectedColsChange","showResultsChange","enableLoadFiltersChange",4,"ngIf"],["style","height: 100%;",3,"getReport","downloadReport","reportData","reportCols","hallpassDestinations","reportSelectedCols","showResults","getReportBtnState","downloadReportBtnState","selectedReport","enableLoadFilters","reportDataChange","reportColsChange","hallpassDestinationsChange","reportSelectedColsChange","showResultsChange","enableLoadFiltersChange",4,"ngIf"],["style","height: 100%;",3,"getReport","downloadReport","reportData","reportCols","reportSelectedCols","showResults","getReportBtnState","downloadReportBtnState","selectedReport","enableLoadFilters","reportDataChange","reportColsChange","reportSelectedColsChange","showResultsChange","enableLoadFiltersChange",4,"ngIf"],["id","printableArea"],[4,"ngFor","ngForOf"],[1,"settings_menu","pi","pi-bars",3,"click"],[3,"cb","activeIndex","model"],[3,"cardClicked"],[2,"height","100%",3,"classroomsChange","pickupModesChange","reportDataChange","reportColsChange","reportSelectedColsChange","showResultsChange","enableLoadFiltersChange","getReport","downloadReport","checkMaxDateRangeErrors","classrooms","pickupModes","reportData","reportCols","reportSelectedCols","showResults","getReportBtnState","downloadReportBtnState","selectedReport","enableLoadFilters"],[2,"height","100%",3,"busRoutesChange","dispatchersChange","studentsChange","studentTagsChange","afterschoolProgramsChange","reportDataChange","reportColsChange","reportSelectedColsChange","showResultsChange","enableLoadFiltersChange","getReport","downloadReport","checkMaxDateRangeErrors","busRoutes","dispatchers","students","studentTags","afterschoolPrograms","reportData","reportCols","reportSelectedCols","showResults","getReportBtnState","downloadReportBtnState","selectedReport","enableLoadFilters"],[2,"height","100%",3,"reportDataChange","reportColsChange","drillReunificationDatesChange","reunificationDatesChange","reportSelectedColsChange","showResultsChange","enableLoadFiltersChange","getReport","downloadReport","checkMaxDateRangeErrors","reportData","reportCols","drillReunificationDates","reunificationDates","reportSelectedCols","showResults","getReportBtnState","downloadReportBtnState","selectedReport","enableLoadFilters"],[2,"height","100%",3,"reportDataChange","reportColsChange","hallpassDestinationsChange","reportSelectedColsChange","showResultsChange","enableLoadFiltersChange","getReport","downloadReport","reportData","reportCols","hallpassDestinations","reportSelectedCols","showResults","getReportBtnState","downloadReportBtnState","selectedReport","enableLoadFilters"],[2,"height","100%",3,"reportDataChange","reportColsChange","reportSelectedColsChange","showResultsChange","enableLoadFiltersChange","getReport","downloadReport","reportData","reportCols","reportSelectedCols","showResults","getReportBtnState","downloadReportBtnState","selectedReport","enableLoadFilters"]],template:function(r,n){1&r&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h3",5),e.EFF(5," Reports "),e.DNE(6,Vt,1,0,"i",6),e.k0s()()()(),e.DNE(7,Lt,1,2,"pmk-tabview",7),e.nrm(8,"p-menu",8,0),e.DNE(10,Yt,1,0,"app-reports-recent",9)(11,Kt,1,13,"app-reports-dismissal-management",10)(12,Xt,1,16,"app-reports-record-management",11)(13,Et,1,13,"app-reports-reunification",12)(14,Ht,1,11,"app-reports-hallpass",13)(15,Ut,1,10,"app-reports-emergency-notifications",14)(16,$t,1,10,"app-reports-messenger",14),e.k0s(),e.j41(17,"div",15)(18,"table")(19,"thead"),e.DNE(20,Jt,2,1,"th",16),e.k0s(),e.DNE(21,zt,2,1,"tr",16),e.k0s()()),2&r&&(e.R7$(6),e.Y8G("ngIf",n.systemService.viewportVerySmall()),e.R7$(),e.Y8G("ngIf",!n.systemService.viewportVerySmall()),e.R7$(),e.Y8G("model",n.tabs)("popup",!0),e.R7$(2),e.Y8G("ngIf",n.selectedIndex==n.paths.Recent),e.R7$(),e.Y8G("ngIf",n.selectedIndex==n.paths.DismissalManagement),e.R7$(),e.Y8G("ngIf",n.selectedIndex==n.paths.RecordManagement),e.R7$(),e.Y8G("ngIf",n.selectedIndex==n.paths.Reunification),e.R7$(),e.Y8G("ngIf",n.selectedIndex==n.paths.HallPass),e.R7$(),e.Y8G("ngIf",n.selectedIndex==n.paths.EmergencyNotification),e.R7$(),e.Y8G("ngIf",n.selectedIndex==n.paths.Messenger),e.R7$(4),e.Y8G("ngForOf",n.printingCols),e.R7$(),e.Y8G("ngForOf",n.printingData))},dependencies:[a.MD,a.Sq,a.bT,f.tm,b.S,_.N,D.N,Nt.y,R.Mk,R.W1,u.iI,Xe,Ze,lt,Ct,wt,It,jt],styles:[".container[_ngcontent-%COMP%]{height:calc(100vh - 132px);display:flex;flex-direction:column}.report-label[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase;color:#8ea6ba}.reports-dropdown[_ngcontent-%COMP%]{font-size:.857rem;font-family:proxima-nova,sans-serif;font-weight:500;letter-spacing:.05rem;text-transform:uppercase}.filters-form[_ngcontent-%COMP%]{width:80%;align-self:center;padding-bottom:24px}.report-filter-container[_ngcontent-%COMP%]{padding-bottom:8px}.date-range-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.date-range[_ngcontent-%COMP%]{width:100%} .p-inputtext{color:#8ea6ba!important;font-size:.857rem!important} .p-column-filter-clear-button{display:none!important} .p-multiselect-close{display:none!important}.report-input-text[_ngcontent-%COMP%]{border:1px solid var(--light_grey);width:100%;height:43px;color:#596165}.report-category-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.report-category-header-container[_ngcontent-%COMP%]{display:flex;background-color:#fff;align-items:center;justify-content:space-between}@media (max-width: 650px){.report-category-header-container[_ngcontent-%COMP%]{flex-direction:column}.report-category-header[_ngcontent-%COMP%]{padding-top:0!important}
1.report-controls-container[_ngcontent-%COMP%]{width:100%}}@media (max-width: 700px){.select-report[_ngcontent-%COMP%], .filters-form[_ngcontent-%COMP%]{width:100%!important}.report-container[_ngcontent-%COMP%]{padding-left:8px!important;padding-right:8px!important}}.report-category-header[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:16px;font-weight:300;font-size:2rem;color:#3d4144;margin:0}.select-report[_ngcontent-%COMP%]{margin-bottom:24px;width:80%;align-self:center;padding-top:24px}.report-category-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#fff;flex-grow:1;justify-content:space-between;width:100%}.report-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-self:center;padding:0 24px}.report-controls-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-right:8px}.mr-8[_ngcontent-%COMP%]{margin-right:8px!important}.empty-result[_ngcontent-%COMP%]{text-align:center;font-size:18px;font-weight:600} .p-scroller-viewport{height:200px;display:block}#printableArea[_ngcontent-%COMP%]{display:none}@media print{.container[_ngcontent-%COMP%]{display:none}#printableArea[_ngcontent-%COMP%]{display:block!important;height:auto!important;overflow:auto!important;width:100%}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed;border-spacing:0px!important}td[_ngcontent-%COMP%]{max-width:100px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;padding-left:3px}td[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}td[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}th[_ngcontent-%COMP%]{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border-right:1px solid lightgrey;border-bottom:1px solid lightgrey;border-top:1px solid lightgrey;padding-left:3px}th[_ngcontent-%COMP%]:first-child{border-left:1px solid lightgrey}th[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}}"]})}return o})()},1920:(V,I,p)=>{p.d(I,{G:()=>b});var a=p(5312),u=p(4438),f=p(1626),R=p(2735);let b=(()=>{class _{constructor(e,l){this.http=e,this.systemService=l}GetInstituteList(){return this.http.get(a.c.basePath+"SchoolAdmin/GetInstituteList",this.systemService.options)}SaveInstitute(e){return this.http.post(a.c.basePath+"SchoolAdmin/SaveInstitute",e,this.systemService.options)}GetAssignedStudents(e){return this.http.post(a.c.basePath+"SchoolAdmin/GetAssignedStudents",e,this.systemService.options)}DeleteInstitute(e){return this.http.post(a.c.basePath+"SchoolAdmin/DeleteInstitute",e,this.systemService.options)}DeleteAssignedStudents(e){return this.http.post(a.c.basePath+"SchoolAdmin/DeleteAssignedStudents",e,this.systemService.options)}getAfterSchoolPrograms(){return this.http.post(a.c.basePath+"SchoolAdmin/getAfterSchoolPrograms",null,this.systemService.options)}bulkEditAfterSchoolPrograms(e){return this.http.post(a.c.basePath+"SchoolAdmin/BulkEditAfterSchoolPrograms",e,this.systemService.options)}static#e=this.\u0275fac=function(l){return new(l||_)(u.KVO(f.Qq),u.KVO(R.V))};static#t=this.\u0275prov=u.jDH({token:_,factory:_.\u0275fac})}return _})()},8425:(V,I,p)=>{p.d(I,{r:()=>_});var a=p(5312),u=p(4438),f=p(1626),R=p(2490),b=p(2735);let _=(()=>{class D{constructor(l,w,S){this.http=l,this.cookieService=w,this.systemService=S}getRoutes(){return this.http.get(a.c.basePath+"SchoolAdmin/GetBusRoutes",this.systemService.options)}getRoutesWithStatus(){return this.http.get(a.c.basePath+"SchoolAdmin/GetBusRoutesWithStatus",this.systemService.options)}postBusRoute(l){return this.http.post(a.c.basePath+"SchoolAdmin/SaveBusRoute",l,this.systemService.options)}deleteBusRoute(l){return this.http.post(a.c.basePath+"SchoolAdmin/DeleteBusRoute",l,this.systemService.options)}bulkDeleteBusRoute(l){return this.http.post(a.c.basePath+"SchoolAdmin/BulkDeleteBusRoute",l,this.systemService.options)}getStudentRoute(l){return this.http.post(a.c.basePath+"SchoolAdmin/GetStudentsAssignedToBusRoute",l,this.systemService.options)}deleteStudentsRoute(l){return this.http.post(a.c.basePath+"SchoolAdmin/DeleteAssignedStudentsFromBusRoute",l,this.systemService.options)}bulkDeleteStudentsRoute(l){return this.http.post(a.c.basePath+"SchoolAdmin/BulkDeleteAssignedStudentsFromBusRoute",l,this.systemService.options)}getListRoutes(l){return this.http.post(a.c.basePath+"SchoolAdmin/getListRoutes",l,this.systemService.options)}bulkUpdateBusRouteToStudents(l){return this.http.post(a.c.basePath+"SchoolAdmin/UpdateBusRouteToStudents",l,this.systemService.options)}static#e=this.\u0275fac=function(w){return new(w||D)(u.KVO(f.Qq),u.KVO(R.O),u.KVO(b.V))};static#t=this.\u0275prov=u.jDH({token:D,factory:D.\u0275fac})}return D})()},9024:(V,I,p)=>{p.d(I,{V:()=>b});var a=p(5312),u=p(4438),f=p(1626),R=p(2735);let b=(()=>{class _{constructor(e,l){this.http=e,this.systemService=l}getPickUpModes(e){return this.http.post(a.c.basePath+"SchoolAdmin/getListPickUpModes",e,this.systemService.options)}bulkUpdatePickupModeToStudents(e){return this.http.post(a.c.basePath+"SchoolAdmin/UpdatePickupModeToStudents",e,this.systemService.options)}getPickupModeLineNames(e){return this.http.post(a.c.basePath+"SchoolAdmin/GetPickupModeLineNamesV2",e,this.systemService.options)}static#e=this.\u0275fac=function(l){return new(l||_)(u.KVO(f.Qq),u.KVO(R.V))};static#t=this.\u0275prov=u.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})()},4979:(V,I,p)=>{p.d(I,{t:()=>_});var a=p(1626),u=p(5312),f=p(4438),R=p(2735),b=p(2490);let _=(()=>{class D{constructor(l,w,S){this.http=l,this.systemService=w,this.cookieService=S}createTag(l){return this.http.post(u.c.basePath+"api/StudentTag/CreateStudentTag",l,this.systemService.options)}updateTag(l){return this.http.post(u.c.basePath+"api/StudentTag/EditStudentTag",l,this.systemService.options)}
1uploadTagFile(l){let w={headers:new a.Lr({AuthTokenId:this.cookieService.get("AuthTokenID")}),withCredentials:!0};return this.http.post(u.c.basePath+"api/StudentTag/ProcessStudentTagsFile",l,w)}BulkDeleteStudentTag(l){return this.http.post(u.c.basePath+"api/StudentTag/BulkDeleteStudentTag",l,this.systemService.options)}BulkRemoveStudentFromStudentTag(l){return this.http.post(u.c.basePath+"api/StudentTag/BulkRemoveStudentFromStudentTag",l,this.systemService.options)}GetStudentTags(){return this.http.get(u.c.basePath+"api/StudentTag/GetStudentTags",this.systemService.options)}BulkEditStudentTagPickupOption(l){return this.http.post(u.c.basePath+"api/StudentTag/BulkEditStudentTagPickupOption",l,this.systemService.options)}static#e=this.\u0275fac=function(w){return new(w||D)(f.KVO(a.Qq),f.KVO(R.V),f.KVO(b.O))};static#t=this.\u0275prov=f.jDH({token:D,factory:D.\u0275fac})}return D})()},2092:(V,I,p)=>{p.d(I,{y:()=>w});var a=p(4438),u=p(4820),f=p(2168),R=p(177),b=p(8542);const _=["tab_container"];function D(S,G){if(1&S){const g=a.RV6();a.j41(0,"div",6),a.bIt("click",function(){a.eBV(g);const c=a.XpG();return a.Njj(c.navLeft())})("keydown.enter",function(){a.eBV(g);const c=a.XpG();return a.Njj(c.navLeft())})("keydown.space",function(c){return a.eBV(g),a.XpG().navLeft(),a.Njj(c.preventDefault())}),a.nrm(1,"i",7),a.k0s()}}function e(S,G){if(1&S){const g=a.RV6();a.j41(0,"div",8),a.bIt("click",function(){const c=a.eBV(g),C=c.$implicit,s=c.index,v=a.XpG();return a.Njj(v.tabClick(C,s))})("keydown.enter",function(){const c=a.eBV(g),C=c.$implicit,s=c.index,v=a.XpG();return a.Njj(v.tabClick(C,s))})("keydown.space",function(c){const C=a.eBV(g),s=C.$implicit,v=C.index;return a.XpG().tabClick(s,v),a.Njj(c.preventDefault())}),a.EFF(1),a.k0s()}if(2&S){const g=G.$implicit,m=G.index,c=a.XpG();a.xc7("min-width",c.getTabMinWidth(g)),a.Y8G("id","tab"+m)("ngClass",c.activeIndex==m?"btn btn-primary tab":"btn btn-secondary tab"),a.BMQ("aria-selected",c.activeIndex==m),a.R7$(),a.JRh(g.label)}}function l(S,G){if(1&S){const g=a.RV6();a.j41(0,"div",9),a.bIt("click",function(){a.eBV(g);const c=a.XpG();return a.Njj(c.navRight())})("keydown.enter",function(){a.eBV(g);const c=a.XpG();return a.Njj(c.navRight())})("keydown.space",function(c){return a.eBV(g),a.XpG().navRight(),a.Njj(c.preventDefault())}),a.nrm(1,"i",10),a.k0s()}}let w=(()=>{class S{constructor(g,m){this.route=g,this.aRoute=m,this.cb=new a.bkB,this.activeIndex=0,this.activeIndexChange=new a.bkB,this.model=[],this.index=0,this.showNavArrows=!1}ngOnInit(){this.model=this.filteredModels(),this.activeIndex&&(this.model[this.activeIndex].selected=!0)}ngAfterViewInit(){this.scrollTo();let g=document.getElementById("tabrow").clientWidth,m=0;for(let c=0;c<this.model.length;c++)m+=document.getElementById("tab"+c).clientWidth;this.showNavArrows=!(m<g)}navLeft(){void 0!==this.btnState&&this.btnState!==u.D.Default||0!=this.activeIndex&&(this.activeIndex--,this.model[this.activeIndex].selected=!0,this.scrollTo(),this.cb.emit(this.model[this.activeIndex].path),this.activeIndexChange.emit(this.activeIndex))}navRight(){void 0!==this.btnState&&this.btnState!==u.D.Default||this.activeIndex!=this.model.length-1&&(this.activeIndex++,this.model[this.activeIndex].selected=!0,this.scrollTo(),this.cb.emit(this.model[this.activeIndex].path),this.activeIndexChange.emit(this.activeIndex))}tabClick(g,m){void 0!==this.btnState&&this.btnState!==u.D.Default||(this.activeIndex=m,g.selected=!0,this.scrollTo(),this.cb.emit(g.path),this.activeIndexChange.emit(this.activeIndex))}scrollTo(){let g=document.getElementById("tab"+this.activeIndex.toString());document.getElementById("tabrow"),document.getElementById("tab_container"),g.scrollTop=g.offsetTop}filteredModels(){return this.model.filter(g=>1!=g.hideTab)}getTabMinWidth(g){return g.minWidth?g.minWidth:"auto"}static#e=this.\u0275fac=function(m){return new(m||S)(a.rXU(f.Ix),a.rXU(f.nX))};static#t=this.\u0275cmp=a.VBU({type:S,selectors:[["pmk-tabview"]],viewQuery:function(m,c){if(1&m&&a.GBs(_,5),2&m){let C;a.mGM(C=a.lsd())&&(c.tab_container=C.first)}},inputs:{activeIndex:"activeIndex",model:"model",btnState:"btnState"},outputs:{cb:"cb",activeIndexChange:"activeIndexChange"},decls:6,vars:3,consts:[["id","tab_container"],["role","tablist",1,"flex","flex-row","tab_buttons"],["tooltipPosition","bottom","pTooltip","Click to navigate to the previous tab","class","btn btn-primary tab tableft","role","button","tabindex","0","aria-label","Previous tab",3,"click","keydown.enter","keydown.space",4,"ngIf"],["id","tabrow",1,"tab_button_row"],["role","tab","tabindex","0",3,"id","ngClass","min-width","click","keydown.enter","keydown.space",4,"ngFor","ngForOf"],["tooltipPosition","bottom","pTooltip","Click to navigate to the next tab","class","btn btn-primary tab tabright","role","button","tabindex","0","aria-label","Next tab",3,"click","keydown.enter","keydown.space",4,"ngIf"],["tooltipPosition","bottom","pTooltip","Click to navigate to the previous tab","role","button","tabindex","0","aria-label","Previous tab",1,"btn","btn-primary","tab","tableft",3,"click","keydown.enter","keydown.space"],["aria-hidden","true",1,"pi","pi-arrow-left"],["role","tab","tabindex","0",3,"click","keydown.enter","keydown.space","id","ngClass"],["tooltipPosition","bottom","pTooltip","Click to navigate to the next tab","role","button","tabindex","0","aria-label","Next tab",1,"btn","btn-primary","tab","tabright",3,"click","keydown.enter","keydown.space"],["aria-hidden","true",1,"pi","pi-arrow-right"]],template:function(m,c){1&m&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,D,2,0,"div",2),a.j41(3,"div",3),a.DNE(4,e,2,6,"div",4),a.k0s(),a.DNE(5,l,2,0,"div",5),a.k0s()()),2&m&&(a.R7$(2),a.Y8G("ngIf",c.activeIndex>0&&c.showNavArrows),a.R7$(2),a.Y8G("ngForOf",c.filteredModels()),a.R7$(),a.Y8G("ngIf",c.activeIndex<c.model.length-1&&
1c.showNavArrows))},dependencies:[R.YU,R.Sq,R.bT,b.m],styles:["#tab_container[_ngcontent-%COMP%]{width:100%;overflow:hidden;max-width:100%;background-color:#fff;white-space:nowrap;border-bottom:1px solid var(--light_grey);position:relative}.tab_buttons[_ngcontent-%COMP%]{position:relative}.tab_button_row[_ngcontent-%COMP%]{max-width:calc(100% - 32px);width:calc(100% - 32px);display:flex;overflow-x:auto}.w_1[_ngcontent-%COMP%], .w_2[_ngcontent-%COMP%]{max-width:calc(100% - 32px);width:calc(100% - 32px)}.tab_button_row[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.tab_buttons_inner[_ngcontent-%COMP%]{overflow-x:auto}.tab_arrows[_ngcontent-%COMP%]{display:flex;position:absolute;top:0;right:0;height:49px;width:64px}.tab_arrows[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%]{padding-left:12px;width:32px;height:48px;float:left;border-top-left-radius:0;border-top-right-radius:0}.tab.tableft[_ngcontent-%COMP%]{border-top-left-radius:0}.tab.tabright[_ngcontent-%COMP%]{width:32px}.tab[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;white-space:nowrap;font-size:16px!important;cursor:pointer;min-width:inherit;margin:0!important;border-radius:0}.btn-secondary.tab[_ngcontent-%COMP%]{color:var(--light_grey_tab)}.tab_buttons[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%]:last-child{border-top-right-radius:0}.tab[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--lightblue);outline-offset:-3px}.btn-primary.tab[_ngcontent-%COMP%]:focus-visible{outline-color:#fff}.selected[_ngcontent-%COMP%]{border-bottom:1px solid #cdcdcd}"]})}return S})()},8427:(V,I,p)=>{p.d(I,{N:()=>R});var a=p(177),u=p(8542),f=p(4438);let R=(()=>{class b{static#e=this.\u0275fac=function(e){return new(e||b)};static#t=this.\u0275mod=f.$C({type:b});static#n=this.\u0275inj=f.G2t({imports:[a.MD,u.S]})}return 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.