1"use strict";(self.webpackChunkiApartmentApp=self.webpackChunkiApartmentApp||[]).push([[7383],{47383:(A,x,c)=>{c.r(x),c.d(x,{LeasingDashboardComponent:()=>Rt});var C=c(71031),D=c(47610),f=(c(96508),c(33380)),L=c(74480),w=c(68988),m=c(92887),h=c(60177),y=c(2578),g=c(97586),b=c(46272),F=c(49701),T=c(81847),k=c(89417),E=c(28833),R=c(45144),e=c(54438);let $=(()=>{class n{transform(t){return!t||(!t?.LockStatus||"jammed"===t?.LockStatus.toLowerCase())&&Number(t?.Battery)<50&&(Number(t?.Temperature)>t?.HighTemperatureRange||Number(t?.Temperature)<t?.LowTemperatureRange)&&"offline"!==t?.Connectivity?.toLowerCase()}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275pipe=e.EJ8({name:"selectBox",type:n,pure:!0,standalone:!0})}}return n})();var S=c(24422),G=c(95306);const Y=["modelBoxContainer"],U=["vacantBoxContainer"],j=n=>["/adminportal/community/unit-detail",n],N=()=>[],O=n=>({active:n});function z(n,s){1&n&&e.nrm(0,"i",31)}function X(n,s){if(1&n&&(e.nrm(0,"i",32),e.nI1(1,"selectBox")),2&n){const t=e.XpG().$implicit;e.AVh("error-icon",e.bMT(1,2,t))}}function J(n,s){if(1&n&&(e.nrm(0,"i",33),e.nI1(1,"selectBox")),2&n){const t=e.XpG().$implicit;e.AVh("error-icon",e.bMT(1,2,t))}}function W(n,s){if(1&n&&(e.nrm(0,"i",34),e.nI1(1,"selectBox")),2&n){const t=e.XpG().$implicit;e.AVh("error-icon",e.bMT(1,2,t))}}function Z(n,s){if(1&n&&(e.nrm(0,"i",35),e.nI1(1,"selectBox")),2&n){const t=e.XpG().$implicit;e.AVh("error-icon",e.bMT(1,2,t))}}function K(n,s){if(1&n&&(e.nrm(0,"i",36),e.nI1(1,"selectBox")),2&n){const t=e.XpG().$implicit;e.AVh("error-icon",e.bMT(1,2,t))}}function Q(n,s){if(1&n&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI("",null==t?null:t.Temperature,"\xb0")}}function q(n,s){1&n&&(e.j41(0,"span",38),e.EFF(1,"N/A"),e.k0s())}function ee(n,s){if(1&n&&e.nrm(0,"i",39),2&n){const t=e.XpG().$implicit;e.AVh("error-icon",!(!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())))}}function te(n,s){1&n&&e.nrm(0,"i",40)}function ne(n,s){1&n&&e.nrm(0,"i",41)}function ie(n,s){1&n&&(e.j41(0,"span",38),e.EFF(1,"N/A"),e.k0s())}function oe(n,s){1&n&&e.nrm(0,"i",42)}function ae(n,s){1&n&&e.nrm(0,"i",43)}function se(n,s){1&n&&e.nrm(0,"i",44)}function re(n,s){1&n&&e.nrm(0,"i",44)}function le(n,s){if(1&n&&(e.j41(0,"div")(1,"div",12),e.nI1(2,"selectBox"),e.j41(3,"div",13),e.EFF(4,"Unit "),e.j41(5,"span",14),e.EFF(6),e.k0s()(),e.j41(7,"div",15)(8,"div",16),e.DNE(9,z,1,0,"i",17)(10,X,2,4,"i",18)(11,J,2,4,"i",19)(12,W,2,4,"i",20)(13,Z,2,4,"i",21)(14,K,2,4,"i",22),e.k0s(),e.j41(15,"div",16),e.DNE(16,Q,2,1,"span",23)(17,q,2,0,"span",24),e.k0s(),e.j41(18,"div",16),e.DNE(19,ee,1,2,"i",25)(20,te,1,0,"i",26)(21,ne,1,0,"i",27)(22,ie,2,0,"span",24),e.k0s(),e.j41(23,"div",16),e.DNE(24,oe,1,0,"i",28)(25,ae,1,0,"i",29)(26,se,1,0,"i",30)(27,re,1,0,"i",30),e.k0s()()()()),2&n){const t=s.$implicit;e.R7$(),e.AVh("selected",e.bMT(2,34,t)),e.R7$(2),e.Y8G("routerLink",e.eq3(36,j,t.ApartmentId)),e.R7$(3),e.JRh(t.ApartmentNumber),e.R7$(2),e.AVh("error-border",(!t.Battery||+(null==t?null:t.Battery)<50)&&!(!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())))("box-disabled",!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())),e.R7$(),e.Y8G("ngIf",!t.Battery||+(null==t?null:t.Battery)<=15),e.R7$(),e.Y8G("ngIf",+(null==t?null:t.Battery)>15&&+(null==t?null:t.Battery)<=30),e.R7$(),e.Y8G("ngIf",+(null==t?null:t.Battery)>30&&+(null==t?null:t.Battery)<=50),e.R7$(),e.Y8G("ngIf",+(null==t?null:t.Battery)>50&&+(null==t?null:t.Battery)<=79),e.R7$(),e.Y8G("ngIf",+(null==t?null:t.Battery)>79&&+(null==t?null:t.Battery)<=99),e.R7$(),e.Y8G("ngIf",100==+(null==t?null:t.Battery)),e.R7$(),e.AVh("error-border",(!t.Temperature||+(null==t?null:t.Temperature)<(null==t?null:t.LowTemperatureRange)||+(null==t?null:t.Temperature)>(null==t?null:t.HighTemperatureRange))&&!(!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())))("box-disabled",!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())),e.R7$(),e.Y8G("ngIf",null==t?null:t.Temperature),e.R7$(),e.Y8G("ngIf",null==(null==t?null:t.Temperature)),e.R7$(),e.AVh("error-border",!(t.LockStatus&&null!=t.LockStatus&&"N/A"!=t.LockStatus&&"jammed"!=(null==t.LockStatus?null:t.LockStatus.toLowerCase())||!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())))("box-disabled",!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())),e.R7$(),e.Y8G("ngIf","jammed"==(null==t.LockStatus?null:t.LockStatus.toLowerCase())),e.R7$(),e.Y8G("ngIf","locked"==(null==t.LockStatus?null:t.LockStatus.toLowerCase())),e.R7$(),e.Y8G("ngIf","unlocked"==(null==t.LockStatus?null:t.LockStatus.toLowerCase())),e.R7$(),e.Y8G("ngIf",null==(null==t?null:t.LockStatus)||"N/A"==(null==t?null:t.LockStatus)),e.R7$(),e.AVh("error-border",!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())),e.R7$(),e.Y8G("ngIf",!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())),e.R7$(),e.Y8G("ngIf",null==t.Connectivity?null:t.Connectivity.toLowerCase().includes("wi-fi")),e.R7$(),e.Y8G("ngIf",null==t.Connectivity?null:t.Connectivity.toLowerCase().includes("lte")),e.R7$(),e.Y8G("ngIf",((null==t.Connectivity?null:t.Connectivity.toLowerCase().includes("hotspot"))||(null==t.Connectivity?null:t.Connectivity.toLowerCase().includes("inet")))&&!(null!=t.Connectivity&&t.Connectivity.toLowerCase().includes("lte")))}}
1function ce(n,s){if(1&n){const t=e.RV6();e.j41(0,"span",51),e.bIt("click",function(){const i=e.eBV(t).index,a=e.XpG(3);return e.Njj(a.goToPage(i,"model"))}),e.k0s()}if(2&n){const t=s.index,o=e.XpG(3);e.Y8G("ngClass",e.eq3(1,O,t===o.modelCurrentPage))}}function de(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",45),e.qSk(),e.j41(1,"svg",46),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.goToPrev("model"))}),e.nrm(2,"path",47),e.k0s(),e.DNE(3,ce,1,3,"span",48),e.j41(4,"svg",49),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.goToNext("model"))}),e.nrm(5,"path",50),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(2),e.BMQ("fill",0==t.modelCurrentPage?"#CDCFD2":"#6F767E"),e.R7$(),e.Y8G("ngForOf",e.lJ4(3,N).constructor(t.modelTotalPages)),e.R7$(2),e.BMQ("fill",t.modelCurrentPage==t.modelTotalPages-1?"#CDCFD2":"#6F767E")}}function ue(n,s){if(1&n&&(e.j41(0,"div",5)(1,"div",6)(2,"h2",7),e.EFF(3),e.k0s(),e.j41(4,"h2",8),e.EFF(5,"Model"),e.k0s(),e.j41(6,"div",9,0),e.DNE(8,le,28,38,"div",10),e.k0s()(),e.DNE(9,de,6,4,"div",11),e.k0s()),2&n){const t=e.XpG();e.R7$(3),e.JRh(t.modelTotalElements),e.R7$(3),e.AVh("active-carousal",t.modelTotalElements>t.modelPerPage),e.R7$(2),e.Y8G("ngForOf",t.currentModelItems),e.R7$(),e.Y8G("ngIf",t.modelTotalElements>t.modelPerPage)}}function pe(n,s){1&n&&e.nrm(0,"i",31)}function me(n,s){if(1&n&&(e.nrm(0,"i",32),e.nI1(1,"selectBox")),2&n){const t=e.XpG().$implicit;e.AVh("error-icon",e.bMT(1,2,t))}}function ge(n,s){if(1&n&&(e.nrm(0,"i",33),e.nI1(1,"selectBox")),2&n){const t=e.XpG().$implicit;e.AVh("error-icon",e.bMT(1,2,t))}}function he(n,s){if(1&n&&(e.nrm(0,"i",34),e.nI1(1,"selectBox")),2&n){const t=e.XpG().$implicit;e.AVh("error-icon",e.bMT(1,2,t))}}function _e(n,s){if(1&n&&(e.nrm(0,"i",35),e.nI1(1,"selectBox")),2&n){const t=e.XpG().$implicit;e.AVh("error-icon",e.bMT(1,2,t))}}function fe(n,s){if(1&n&&(e.nrm(0,"i",36),e.nI1(1,"selectBox")),2&n){const t=e.XpG().$implicit;e.AVh("error-icon",e.bMT(1,2,t))}}function be(n,s){if(1&n&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI("",null==t?null:t.Temperature,"\xb0")}}function Ce(n,s){1&n&&(e.j41(0,"span",55),e.EFF(1,"N/A"),e.k0s())}function ye(n,s){if(1&n&&e.nrm(0,"i",39),2&n){const t=e.XpG().$implicit;e.AVh("error-icon",!(!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())))}}function ve(n,s){1&n&&e.nrm(0,"i",40)}function De(n,s){1&n&&e.nrm(0,"i",41)}function Le(n,s){1&n&&(e.j41(0,"span",38),e.EFF(1,"N/A"),e.k0s())}function xe(n,s){1&n&&e.nrm(0,"i",42)}function Te(n,s){1&n&&e.nrm(0,"i",43)}function we(n,s){1&n&&e.nrm(0,"i",44)}function ke(n,s){1&n&&e.nrm(0,"i",44)}
1function Pe(n,s){if(1&n&&(e.j41(0,"div")(1,"div",12),e.nI1(2,"selectBox"),e.j41(3,"div",13),e.EFF(4,"Unit "),e.j41(5,"span",14),e.EFF(6),e.k0s()(),e.j41(7,"div",15)(8,"div",16),e.DNE(9,pe,1,0,"i",17)(10,me,2,4,"i",18)(11,ge,2,4,"i",19)(12,he,2,4,"i",20)(13,_e,2,4,"i",21)(14,fe,2,4,"i",22),e.k0s(),e.j41(15,"div",16),e.DNE(16,be,2,1,"span",23)(17,Ce,2,0,"span",54),e.k0s(),e.j41(18,"div",16),e.DNE(19,ye,1,2,"i",25)(20,ve,1,0,"i",26)(21,De,1,0,"i",27)(22,Le,2,0,"span",24),e.k0s(),e.j41(23,"div",16),e.DNE(24,xe,1,0,"i",28)(25,Te,1,0,"i",29)(26,we,1,0,"i",30)(27,ke,1,0,"i",30),e.k0s()()()()),2&n){const t=s.$implicit;e.R7$(),e.AVh("selected",e.bMT(2,34,t)),e.R7$(2),e.Y8G("routerLink",e.eq3(36,j,t.ApartmentId)),e.R7$(3),e.JRh(t.ApartmentNumber),e.R7$(2),e.AVh("error-border",(!t.Battery||+(null==t?null:t.Battery)<50)&&!(!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())))("box-disabled",!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())),e.R7$(),e.Y8G("ngIf",!t.Battery||+(null==t?null:t.Battery)<=15),e.R7$(),e.Y8G("ngIf",+(null==t?null:t.Battery)>15&&+(null==t?null:t.Battery)<=30),e.R7$(),e.Y8G("ngIf",+(null==t?null:t.Battery)>30&&+(null==t?null:t.Battery)<=50),e.R7$(),e.Y8G("ngIf",+(null==t?null:t.Battery)>50&&+(null==t?null:t.Battery)<=79),e.R7$(),e.Y8G("ngIf",+(null==t?null:t.Battery)>79&&+(null==t?null:t.Battery)<=99),e.R7$(),e.Y8G("ngIf",100==+(null==t?null:t.Battery)),e.R7$(),e.AVh("error-border",(!t.Temperature||+(null==t?null:t.Temperature)<(null==t?null:t.LowTemperatureRange)||+(null==t?null:t.Temperature)>(null==t?null:t.HighTemperatureRange))&&!(!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())))("box-disabled",!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())),e.R7$(),e.Y8G("ngIf",null==t?null:t.Temperature),e.R7$(),e.Y8G("ngIf",null==(null==t?null:t.Temperature)),e.R7$(),e.AVh("error-border",(!t.LockStatus||"jammed"==(null==t.LockStatus?null:t.LockStatus.toLowerCase()))&&!(!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase()))||null==(null==t?null:t.LockStatus)||"N/A"==(null==t?null:t.LockStatus))("box-disabled",!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())),e.R7$(),e.Y8G("ngIf","jammed"==(null==t.LockStatus?null:t.LockStatus.toLowerCase())),e.R7$(),e.Y8G("ngIf","locked"==(null==t.LockStatus?null:t.LockStatus.toLowerCase())),e.R7$(),e.Y8G("ngIf","unlocked"==(null==t.LockStatus?null:t.LockStatus.toLowerCase())),e.R7$(),e.Y8G("ngIf",null==(null==t?null:t.LockStatus)||"N/A"==(null==t?null:t.LockStatus)),e.R7$(),e.AVh("error-border",!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())),e.R7$(),e.Y8G("ngIf",!t.Connectivity||"offline"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())||"installed"==(null==t.Connectivity?null:t.Connectivity.toLowerCase())),e.R7$(),e.Y8G("ngIf",null==t.Connectivity?null:t.Connectivity.toLowerCase().includes("wi-fi")),e.R7$(),e.Y8G("ngIf",null==t.Connectivity?null:t.Connectivity.toLowerCase().includes("lte")),e.R7$(),e.Y8G("ngIf",((null==t.Connectivity?null:t.Connectivity.toLowerCase().includes("hotspot"))||(null==t.Connectivity?null:t.Connectivity.toLowerCase().includes("inet")))&&!(null!=t.Connectivity&&t.Connectivity.toLowerCase().includes("lte")))}}function Ie(n,s){if(1&n){const t=e.RV6();e.j41(0,"span",51),e.bIt("click",function(){const i=e.eBV(t).index,a=e.XpG(3);return e.Njj(a.goToPage(i,"vacant"))}),e.k0s()}if(2&n){const t=s.index,o=e.XpG(3);e.Y8G("ngClass",e.eq3(1,O,t===o.vacantCurrentPage))}}
1function Fe(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",45),e.qSk(),e.j41(1,"svg",56),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.goToPrev("vacant"))}),e.nrm(2,"path",57),e.k0s(),e.DNE(3,Ie,1,3,"span",48),e.j41(4,"svg",49),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.goToNext("vacant"))}),e.nrm(5,"path",50),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(2),e.BMQ("fill",0==t.vacantCurrentPage?"#CDCFD2":"#6F767E"),e.R7$(),e.Y8G("ngForOf",e.lJ4(3,N).constructor(t.vacantTotalPages)),e.R7$(2),e.BMQ("fill",t.vacantCurrentPage==t.vacantTotalPages-1?"#CDCFD2":"#6F767E")}}function Me(n,s){if(1&n&&(e.j41(0,"div",52)(1,"div",53)(2,"h2",7),e.EFF(3),e.k0s(),e.j41(4,"h2",8),e.EFF(5,"Vacant"),e.k0s(),e.j41(6,"div",9,1),e.DNE(8,Pe,28,38,"div",10),e.k0s()(),e.DNE(9,Fe,6,4,"div",11),e.k0s()),2&n){const t=e.XpG();e.R7$(3),e.JRh(t.vacantTotalElements),e.R7$(3),e.AVh("active-carousal",t.vacantTotalElements>t.vacantPerPage),e.R7$(2),e.Y8G("ngForOf",t.currentVacantItems),e.R7$(),e.Y8G("ngIf",t.vacantTotalElements>t.vacantPerPage)}}let Ae=(()=>{class n{constructor(t,o,i,a,r,l){this.cdr=t,this.route=o,this.communityService=i,this.notifyService=a,this.renderer=r,this.loaderService=l,this.modelGridData=[],this.vacantGridData=[],this.currentModelItems=[],this.currentVacantItems=[],this.PageNumber=0,this.PageSize=200,this.modelPerPage=0,this.vacantPerPage=0,this.modelCurrentPage=0,this.vacantCurrentPage=0,this.checkWindowSize()}onResize(t){console.log("resize"),this.checkWindowSize(!0)}ngOnInit(){this.activeCommunityId=+this.route.snapshot.params.communityId,this.getGridData(this.activeCommunityId,"model"),this.getGridData(this.activeCommunityId,"vacant")}getGridData(t,o){this.modelSubscription=this.communityService.getLeasingDashboard({ComunityId:t,pageNumber:this.PageNumber,pageSize:this.PageSize,filterValue:o}).subscribe(a=>{"model"==o?this.handleModelSuccessResponse(a):this.handleVacantSuccessResponse(a)},a=>{"model"==o?this.handleModelErrorResponse(a):this.handleVacantErrorResponse(a)})}handleModelSuccessResponse(t){t.body.leasingData?.length>0?(this.modelGridData=[],this.modelGridData=t.body.leasingData,this.modelTotalElements=t.body.Total,this.cdr.detectChanges(),this.updateModelCurrentItems()):(this.modelGridData=[],this.modelTotalElements=0)}handleVacantSuccessResponse(t){t.body.leasingData?.length>0?(this.vacantGridData=[],this.vacantGridData=t.body.leasingData,this.vacantTotalElements=t.body.Total,this.cdr.detectChanges(),this.updateVacantCurrentItems()):(this.vacantGridData=[],this.vacantTotalElements=0)}handleModelErrorResponse(t){this.modelGridData=[],this.modelTotalElements=0,this.notifyService.showError(t.error.response_message)}handleVacantErrorResponse(t){this.vacantGridData=[],this.vacantTotalElements=0,this.notifyService.showError(t.error.response_message)}checkWindowSize(t=!1){const o=window.innerWidth;o>=1720?(this.modelPerPage=12,this.vacantPerPage=12):o>=1520?(this.modelPerPage=10,this.vacantPerPage=10):o>=1290?(this.modelPerPage=8,this.vacantPerPage=8):o>=980||o>=760?(this.modelPerPage=6,this.vacantPerPage=6):o>=520&&(this.modelPerPage=4,this.vacantPerPage=4),t&&(this.updateModelCurrentItems(),this.updateVacantCurrentItems())}updateVacantCurrentItems(){this.vacantTotalPages=Math.ceil(this.vacantGridData.length/this.vacantPerPage);const t=this.vacantCurrentPage*this.vacantPerPage,o=t+this.vacantPerPage;this.vacantBoxContainer&&(this.loaderService.show(),setTimeout(()=>{this.currentVacantItems=[...this.vacantGridData].slice(t,o),setTimeout(()=>{this.loaderService.hide()},200)},50))}updateModelCurrentItems(){this.modelTotalPages=Math.ceil(this.modelGridData.length/this.modelPerPage);const t=this.modelCurrentPage*this.modelPerPage,o=t+this.modelPerPage;this.modelBoxContainer&&(this.loaderService.show(),setTimeout(()=>{this.currentModelItems=[...this.modelGridData].slice(t,o),setTimeout(()=>{this.loaderService.hide()},200)},50))}goToPage(t,o){"model"==o?(this.modelCurrentPage=t,this.updateModelCurrentItems()):(this.vacantCurrentPage=t,this.updateVacantCurrentItems())}goToNext(t){"model"==t?this.modelCurrentPage<this.modelTotalPages-1&&(this.modelCurrentPage++,this.updateModelCurrentItems()):this.vacantCurrentPage<this.vacantTotalPages-1&&(this.vacantCurrentPage++,this.updateV
1acantCurrentItems())}goToPrev(t){"model"==t?this.modelCurrentPage>0&&(this.modelCurrentPage--,this.updateModelCurrentItems()):this.vacantCurrentPage>0&&(this.vacantCurrentPage--,this.updateVacantCurrentItems())}ngOnDestroy(){this.modelSubscription.unsubscribe()}static{this.\u0275fac=function(o){return new(o||n)(e.rXU(e.gRc),e.rXU(D.nX),e.rXU(C.B),e.rXU(S.J),e.rXU(e.sFG),e.rXU(G.Z))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-leasing-dashboard-grid"]],viewQuery:function(o,i){if(1&o&&(e.GBs(Y,5),e.GBs(U,5)),2&o){let a;e.mGM(a=e.lsd())&&(i.modelBoxContainer=a.first),e.mGM(a=e.lsd())&&(i.vacantBoxContainer=a.first)}},hostBindings:function(o,i){1&o&&e.bIt("resize",function(r){return i.onResize(r)},!1,e.tSv)},standalone:!0,features:[e.aNF],decls:4,vars:2,consts:[["modelBoxContainer",""],["vacantBoxContainer",""],["class","model-container",4,"ngIf"],[1,"mt-0","mb-0","ml-4","mr-4"],["class","vacant-container",4,"ngIf"],[1,"model-container"],[1,"model-container-header"],[1,"length"],[1,"type"],[1,"box-container"],[4,"ngFor","ngForOf"],["class","custom-carousel-indicators",4,"ngIf"],[1,"box"],[1,"box-unit",3,"routerLink"],[1,"box-unit-span"],[1,"box-icons"],[1,"box-item"],["class","battery-icon24-0",4,"ngIf"],["class","battery-icon24-30",3,"error-icon",4,"ngIf"],["class","battery-icon24-50",3,"error-icon",4,"ngIf"],["class","battery-icon24-70",3,"error-icon",4,"ngIf"],["class","battery-icon24-90",3,"error-icon",4,"ngIf"],["class","battery-icon24-100",3,"error-icon",4,"ngIf"],["class","temperature",4,"ngIf"],["class","temperature n-a",4,"ngIf"],["class","jammed-lock-icon24",3,"error-icon",4,"ngIf"],["class","lock-icon24",4,"ngIf"],["class","unlock-icon24",4,"ngIf"],["class","offline-icon24",4,"ngIf"],["class","wifi-icon24",4,"ngIf"],["class","lte-icon24",4,"ngIf"],[1,"battery-icon24-0"],[1,"battery-icon24-30"],[1,"battery-icon24-50"],[1,"battery-icon24-70"],[1,"battery-icon24-90"],[1,"battery-icon24-100"],[1,"temperature"],[1,"temperature","n-a"],[1,"jammed-lock-icon24"],[1,"lock-icon24"],[1,"unlock-icon24"],[1,"offline-icon24"],[1,"wifi-icon24"],[1,"lte-icon24"],[1,"custom-carousel-indicators"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg",3,"click"],["fill-rule","evenodd","clip-rule","evenodd","d","M12.7071 5.29289C13.0976 5.68342 13.0976 6.31658 12.7071 6.70711L9.41421 10L12.7071 13.2929C13.0976 13.6834 13.0976 14.3166 12.7071 14.7071C12.3166 15.0976 11.6834 15.0976 11.2929 14.7071L7.29289 10.7071C6.90237 10.3166 6.90237 9.68342 7.29289 9.29289L11.2929 5.29289C11.6834 4.90237 12.3166 4.90237 12.7071 5.29289Z","fill-opacity","0.56","stroke","white","stroke-width","0.2","stroke-linecap","round","stroke-linejoin","round"],[3,"ngClass","click",4,"ngFor","ngForOf"],["width","20","height","20","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",3,"click"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.83432 11.7657C5.5219 11.4533 5.5219 10.9467 5.83432 10.6343L8.46864 8L5.83432 5.36569C5.5219 5.05327 5.5219 4.54673 5.83432 4.23431C6.14674 3.9219 6.65327 3.9219 6.96569 4.23431L10.1657 7.43431C10.4781 7.74673 10.4781 8.25327 10.1657 8.56569L6.96569 11.7657C6.65327 12.0781 6.14674 12.0781 5.83432 11.7657Z","stroke","white","stroke-width","0.2","stroke-linecap","round","stroke-linejoin","round"],[3,"click","ngClass"],[1,"vacant-container"],[1,"vacant-container-header"],["class","n-a temperature",4,"ngIf"],[1,"n-a","temperature"],["width","8","height","12","viewBox","0 0 8 12","fill","none","xmlns","http://www.w3.org/2000/svg",3,"click"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.70711 1.29289C7.09763 1.68342 7.09763 2.31658 6.70711 2.70711L3.41421 6L6.70711 9.29289C7.09763 9.68342 7.09763 10.3166 6.70711 10.7071C6.31658 11.0976 5.68342 11.0976 5.29289 10.7071L1.29289 6.70711C0.902369 6.31658 0.902369 5.68342 1.29289 5.29289L5.29289 1.29289C5.68342 0.902369 6.31658 0.902369 6.70711 1.29289Z","stroke","white","stroke-width","0.2","stroke-linecap","round","stroke-linejoin","round"]],template:function(o,i){1&o&&(e.j41(0,"div"),e.DNE(1,ue,10,5,"div",2),e.nrm(2,"hr",3),e.DNE(3,Me,10,5,"div",4),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",i.modelTotalElements>0),e.R7$(2),e.Y8G("ngIf",i.vacantTotalElements>0))},dependencies:[h.MD,h.YU,h.Sq,h.bT,k.YN,D.iI,D.Wk,$],styles:[".model-container[_ngcontent-%COMP%], .vacant-container[_ngcontent-%COMP%]{padding:24px}.length[_ngcontent-%COMP%], .type[_ngcontent-%COMP%]{font-weight:600}.type[_ngcontent-%COMP%]{font-size:20px;margin-bottom:24px}
1.active-carousal[_ngcontent-%COMP%]{height:460px;overflow:hidden}.box-container[_ngcontent-%COMP%]{display:flex;gap:24px;flex-wrap:wrap;transition:transform .5s ease-in-out;transform:translate(0)}.box[_ngcontent-%COMP%]{width:200px;height:218px;background-color:#f6f6f6;border-radius:6px;padding:24px;justify-items:center;box-shadow:0 2px 5px #0000001a;position:relative;transition:.3s ease-in-out}.temperature[_ngcontent-%COMP%]{font-size:24px;font-weight:700;color:#6f767e}.box.selected[_ngcontent-%COMP%]{background-color:#fff1e5;border:2px solid #ff7d2d}.box.selected[_ngcontent-%COMP%] .temperature[_ngcontent-%COMP%]{color:#ff7d2d}.box-item[_ngcontent-%COMP%]{width:64px;height:64px;display:flex;align-items:center;justify-content:center;background-color:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a}.box-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:36px;height:36px}.box-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:40px}.box-unit[_ngcontent-%COMP%]{text-align:left;font-weight:700;font-size:14px;color:#333;margin-bottom:8px;
1cursor:pointer}.box-unit-span[_ngcontent-%COMP%]{color:#6f767e}.box-icons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}.box.selected[_ngcontent-%COMP%] .box-unit[_ngcontent-%COMP%], .box.selected[_ngcontent-%COMP%] .box-unit-span[_ngcontent-%COMP%]{color:#ff7d2d}.box-disabled[_ngcontent-%COMP%]{background:#fcfcfc}.box-disabled[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#dee2ed!important}.box-disabled[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{opacity:.4;filter:grayscale(1)}.custom-carousel-indicators[_ngcontent-%COMP%]{margin-top:20px;width:100%;display:flex;align-items:center;justify-content:center;gap:12px}.custom-carousel-indicators[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:12px;height:12px;background-color:#d9d9d9;border-radius:50%}.custom-carousel-indicators[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .custom-carousel-indicators[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{cursor:pointer}.active[_ngcontent-%COMP%]{background-color:#ff7a1a!important}.error-icon[_ngcontent-%COMP%]{filter:invert(50%) sepia(75%) saturate(1312%) hue-rotate(348deg) brightness(101%) contrast(101%)}.error-border[_ngcontent-%COMP%]{border:1px solid #FF7A1A}.transition[_ngcontent-%COMP%]{transform:translate(-5%);transform:translate(5%)}.battery-icon24-0[_ngcontent-%COMP%]{filter:invert(51%) sepia(55%) saturate(1798%) hue-rotate(348deg) brightness(103%) contrast(101%)}.n-a[_ngcontent-%COMP%]{color:#ff7d2d}"]})}}return n})();var Ee=c(56875),B=c(38542),V=c(37243),H=c(91667);const Re=["tablepgaccess"],Se=["calendar"],P=()=>({active:!1}),Ge=n=>["/adminportal/community/unit","unit-view",n],je=n=>["/adminportal/community/unit","resident-view",n],Ne=n=>["/adminportal/community/unit","generate-inception",n],Oe=n=>["/adminportal/community/community-info/",n],Be=n=>["/adminportal/community/community-settings",n],Ve=n=>["/adminportal/community/installer-checklist",n],He=()=>({active:!0}),$e=n=>["/adminportal/community/","community-dashboard",n],Ye=n=>["/adminportal/community/unit","sgt-view",n],Ue=n=>["/adminportal/community/unit","pms-view",n],ze=n=>["/adminportal/community/unit-detail",n],Xe=(n,s)=>({"thermostat-primary":n,"thermostat-secondary":s}),Je=(n,s,t,o)=>({"hvac-off":n,"hvac-heat":s,"hvac-cold":t,"hvac-heat-cold":o}),We=n=>({"spinner-border text-dark btspinner":n});function Ze(n,s){if(1&n&&(e.j41(0,"button",71),e.nrm(1,"i",72),e.k0s()),2&n){const t=e.XpG();e.Y8G("routerLink",e.eq3(1,Oe,t.communityId))}}function Ke(n,s){if(1&n&&(e.j41(0,"button",71),e.nrm(1,"i",72),e.k0s()),2&n){const t=e.XpG();e.Y8G("routerLink",e.eq3(1,Be,t.communityId))}}function Qe(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",73),e.qSk(),e.j41(1,"svg",74),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.toggleList("list"))}),e.nrm(2,"path",75),e.k0s(),e.j41(3,"svg",74),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.toggleList("grid"))}),e.nrm(4,"rect",76)(5,"rect",77)(6,"rect",78)(7,"rect",79),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.AVh("active",t.activeList),e.R7$(2),e.AVh("active",!t.activeList)}}function qe(n,s){if(1&n&&(e.j41(0,"li")(1,"a",80),e.EFF(2,"Checklist"),e.k0s()()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngClass",e.lJ4(2,P))("routerLink",e.eq3(3,Ve,t.communityId))}}function et(n,s){if(1&n&&(e.j41(0,"li")(1,"a",23),e.EFF(2,"Community Dashboard"),e.k0s()()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngClass",e.lJ4(2,He))("routerLink",e.eq3(3,$e,t.communityId))}}function tt(n,s){if(1&n&&(e.j41(0,"li",81)(1,"a",82),e.EFF(2,"Self Tours"),e.k0s()()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngClass",e.lJ4(2,P))("routerLink",e.eq3(3,Ye,t.communityId))}}function nt(n,s){if(1&n&&(e.j41(0,"li")(1,"a",83),e.EFF(2,"PMS"),e.k0s()()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngClass",e.lJ4(2,P))("routerLink",e.eq3(3,Ue,t.communityId))}}function it(n,s){if(1&n&&(e.j41(0,"a",84)(1,"div",85)(2,"span"),e.EFF(3),e.k0s()()()),2&n){const t=s.row;e.Y8G("routerLink",e.eq3(2,ze,t.ApartmentId)),e.R7$(3),e.JRh(t.ApartmentNumber)}}function ot(n,s){if(1&n&&(e.j41(0,"div",86),e.EFF(1),e.k0s()),2&n){const t=s.row;e.R7$(),e.JRh(t.VacantSchedule)}}function at(n,s){1&n&&(e.j41(0,"div",91)(1,"span"),e.EFF(2,"TEMPERATURE"),e.k0s(),e.j41(3,"div",92),e.nrm(4,"i",93),e.k0s()())}
1function st(n,s){if(1&n&&(e.j41(0,"div",95)(1,"div",96)(2,"span",97),e.nrm(3,"i",98),e.k0s(),e.j41(4,"span",99),e.EFF(5),e.k0s(),e.j41(6,"span",100),e.nrm(7,"i",98),e.k0s()()()),2&n){const t=e.XpG().$implicit;e.R7$(),e.yjJ("pTooltip","","primary"==(null==t?null:t.Type)?"Primary":"secondary"==(null==t?null:t.Type)?"Secondary":"",":\n",(null==t?null:t.AmbientTemperature)||"N/A","\xb0F (Ambient) / ",(null==t?null:t.SetTemperature)||"N/A","\xb0F (Set)."),e.R7$(2),e.Y8G("ngClass",e.l_i(8,Xe,"primary"==(null==t?null:t.Type),"secondary"==(null==t?null:t.Type))),e.R7$(2),e.Lme(" ",(null==t?null:t.AmbientTemperature)||"N/A","/",(null==t?null:t.SetTemperature)||"N/A"," \xb0F "),e.R7$(2),e.Y8G("ngClass",e.ziG(11,Je,0==(null==t?null:t.TemperatureTargetMode),2==(null==t?null:t.TemperatureTargetMode),1==(null==t?null:t.TemperatureTargetMode),4==(null==t?null:t.TemperatureTargetMode)))}}function rt(n,s){if(1&n&&e.DNE(0,st,8,16,"div",95),2&n){const t=s.$implicit,o=e.XpG(5);e.vxM(o.shouldHideTemperaturePill(t)?-1:0)}}function lt(n,s){if(1&n&&(e.j41(0,"div",94),e.Z7z(1,rt,1,1,null,null,e.fX1),e.k0s()),2&n){const t=e.XpG().row,o=e.XpG(3);e.R7$(),e.Dyx(o.getSortedThermostats(t.ThermostatTemperatures))}}function ct(n,s){1&n&&(e.j41(0,"div",94)(1,"span",101),e.EFF(2,"N/A"),e.k0s()())}function dt(n,s){if(1&n&&e.DNE(0,lt,3,0,"div",94)(1,ct,3,0,"div",94),2&n){const t=s.row,o=e.XpG(3);e.vxM(null!=t&&t.ThermostatTemperatures&&t.ThermostatTemperatures.length>0&&o.hasVisibleThermostats(t.ThermostatTemperatures)?0:-1),e.R7$(),e.vxM(null!=t&&t.ThermostatTemperatures&&0!==t.ThermostatTemperatures.length&&o.hasVisibleThermostats(t.ThermostatTemperatures)?-1:1)}}function ut(n,s){1&n&&(e.j41(0,"ngx-datatable-column",87),e.DNE(1,at,5,0,"ng-template",90)(2,dt,2,2,"ng-template",46),e.k0s()),2&n&&e.Y8G("sortable",!1)}function pt(n,s){if(1&n&&(e.j41(0,"span",98),e.EFF(1),e.k0s()),2&n){const t=s.row,o=e.XpG(3);e.Y8G("ngClass",o.getLockStatusClass(t)),e.R7$(),e.SpI(" ",null===(null==t?null:t.LockStatus)||""===(null==t?null:t.LockStatus)||null===(null==t?null:t.Battery)||""===(null==t?null:t.Battery)?"N/A":null==t?null:t.LockStatus," ")}}function mt(n,s){1&n&&(e.j41(0,"ngx-datatable-column",88),e.DNE(1,pt,2,2,"ng-template",46),e.k0s()),2&n&&e.Y8G("sortable",!0)}function gt(n,s){if(1&n&&(e.j41(0,"span",98)(1,"span",98),e.EFF(2),e.k0s()()),2&n){const t=s.row,o=e.XpG(3);e.Y8G("ngClass",o.getBatteryClass(t.Battery)),e.R7$(),e.Y8G("ngClass",e.eq3(3,We,!o.isAlertsLoaded)),e.R7$(),e.SpI(" ",null!==(null==t?null:t.Battery)&&null!==(null==t?null:t.DeviceId)&&o.isAlertsLoaded?null==t?null:t.Battery:null==(null==t?null:t.Battery)&&null==(null==t?null:t.DeviceId)&&o.isAlertsLoaded?"N/A":""," ")}}function ht(n,s){1&n&&(e.j41(0,"ngx-datatable-column",89),e.DNE(1,gt,3,5,"ng-template",46),e.k0s()),2&n&&e.Y8G("sortable",!0)}function _t(n,s){if(1&n&&e.DNE(0,ut,3,1,"ngx-datatable-column",87)(1,mt,2,1,"ngx-datatable-column",88)(2,ht,2,1,"ngx-datatable-column",89),2&n){const t=s.$implicit,o=e.XpG();e.vxM("TEMPERATURE"===t?0:-1),e.R7$(),e.vxM("LOCK STATUS"===t&&"NoLock"!=o.communityLockStatus?1:-1),e.R7$(),e.vxM("BATTERY"===t&&"NoLock"!=o.communityLockStatus?2:-1)}}function ft(n,s){if(1&n&&(e.j41(0,"span",98),e.EFF(1),e.k0s()),2&n){const t=s.row,o=e.XpG();e.Y8G("ngClass",o.getConnectivityClass(t.Connectivity)),e.R7$(),e.SpI(" ","iNet/LTE"===t.Connectivity||"iNet"===t.Connectivity?"LTE":t.Connectivity," ")}}function bt(n,s){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(),o=t.rowCount,i=t.pageSize,a=t.selectedCount,r=t.curPage,l=t.offset,d=e.XpG(2);e.R7$(),e.SpI(" ",d.getLeasingDashboardFooterPagingDetails(l,r,a,i,o)," ")}}
1function Ct(n,s){if(1&n){const t=e.RV6();e.j41(0,"datatable-pager",105),e.bIt("change",function(i){e.eBV(t),e.XpG(3);const a=e.sdS(59);return e.Njj(a.onFooterPage(i))}),e.k0s()}if(2&n){const t=e.XpG(),o=t.rowCount,i=t.pageSize,a=t.curPage;e.Y8G("pagerLeftArrowIcon","datatable-icon-left")("pagerRightArrowIcon","datatable-icon-right")("pagerPreviousIcon","datatable-icon-prev")("pagerNextIcon","datatable-icon-skip")("page",a)("size",i)("count",o)}}function yt(n,s){if(1&n&&e.DNE(0,bt,2,1,"div",25)(1,Ct,1,7,"datatable-pager",104),2&n){const t=e.XpG(2);e.Y8G("ngIf",!t.isLoading&&!t.isDataFound),e.R7$(),e.Y8G("ngIf",!t.isLoading&&!t.isDataFound)}}function vt(n,s){1&n&&(e.j41(0,"ngx-datatable-footer",102),e.DNE(1,yt,2,2,"ng-template",103),e.k0s())}function Dt(n,s){1&n&&e.nrm(0,"app-leasing-dashboard-grid")}function Lt(n,s){if(1&n&&(e.EFF(0),e.nI1(1,"formatUtcDate")),2&n){const t=s.row;e.SpI(" ",e.brH(1,1,t.AccessDate,t.CommunityTimeZone,"date")," ")}}function xt(n,s){if(1&n&&(e.EFF(0),e.nI1(1,"formatUtcDate")),2&n){const t=s.row;e.SpI(" ",e.brH(1,1,t.AccessDate,t.CommunityTimeZone,"time")," ")}}function Tt(n,s){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(),o=t.rowCount,i=t.pageSize,a=t.selectedCount,r=t.curPage,l=t.offset,d=e.XpG(2);e.R7$(),e.SpI(" ",d.getAccessHistoryFooterPagingDetails(l,r,a,i,o)," ")}}function wt(n,s){if(1&n){const t=e.RV6();e.j41(0,"datatable-pager",105),e.bIt("change",function(i){e.eBV(t),e.XpG(3);const a=e.sdS(108);return e.Njj(a.onFooterPage(i))}),e.k0s()}if(2&n){const t=e.XpG(),o=t.rowCount,i=t.pageSize,a=t.curPage;e.Y8G("pagerLeftArrowIcon","datatable-icon-left")("pagerRightArrowIcon","datatable-icon-right")("pagerPreviousIcon","datatable-icon-prev")("pagerNextIcon","datatable-icon-skip")("page",a)("size",i)("count",o)}}
1function kt(n,s){if(1&n&&e.DNE(0,Tt,2,1,"div",25)(1,wt,1,7,"datatable-pager",104),2&n){const t=e.XpG(2);e.Y8G("ngIf",!t.isAccessHistoryLoading&&!t.isAccessHistoryDataFound),e.R7$(),e.Y8G("ngIf",!t.isAccessHistoryLoading&&!t.isAccessHistoryDataFound)}}function Pt(n,s){1&n&&(e.j41(0,"ngx-datatable-footer",102),e.DNE(1,kt,2,2,"ng-template",103),e.k0s())}function It(n,s){1&n&&(e.j41(0,"span",121),e.EFF(1,"Please select Expiration date"),e.k0s())}function Ft(n,s){1&n&&(e.j41(0,"span",121),e.EFF(1,"Please select Expiration time"),e.k0s())}function Mt(n,s){1&n&&(e.j41(0,"div",122)(1,"p"),e.EFF(2," Inspection code generated for 361 Units on 11/03/2020 expiring on 11/12/2020 "),e.k0s(),e.j41(3,"div",123)(4,"label"),e.EFF(5,"Error for the following 5 Units:"),e.k0s(),e.j41(6,"div",124)(7,"ul")(8,"li")(9,"span"),e.EFF(10,"764"),e.k0s(),e.j41(11,"i"),e.EFF(12,"Error"),e.k0s()(),e.j41(13,"li")(14,"span"),e.EFF(15,"251"),e.k0s(),e.j41(16,"i"),e.EFF(17,"Error"),e.k0s()(),e.j41(18,"li")(19,"span"),e.EFF(20,"552"),e.k0s(),e.j41(21,"i"),e.EFF(22,"Error"),e.k0s()(),e.j41(23,"li")(24,"span"),e.EFF(25,"361"),e.k0s(),e.j41(26,"i"),e.EFF(27,"Error"),e.k0s()(),e.j41(28,"li")(29,"span"),e.EFF(30,"897"),e.k0s(),e.j41(31,"i"),e.EFF(32,"Error"),e.k0s()()()()()())}function At(n,s){1&n&&(e.j41(0,"div",125)(1,"p"),e.EFF(2," Inspection code generated for 361 Units on 11/03/2020 expiring on 11/12/2020 "),e.k0s()())}function Et(n,s){if(1&n){const t=e.RV6();e.j41(0,"button",106),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onHideInspectionTab(i.modalRef.hide()))}),e.k0s(),e.j41(1,"div",107)(2,"div",108)(3,"p",109),e.EFF(4,"Inspection Mode"),e.k0s(),e.j41(5,"p",110),e.EFF(6," Inspection mode allows you to create a single, randomly generated passcode for all Units. "),e.k0s()(),e.j41(7,"div",111)(8,"div",112)(9,"label",12),e.EFF(10,"Enter An Expiration Date"),e.k0s(),e.j41(11,"p-calendar",113),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.date3,i)||(a.date3=i),e.Njj(i)}),e.bIt("ngModelChange",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.selectDate(i))}),e.k0s(),e.DNE(12,It,2,0,"span",114),e.k0s(),e.j41(13,"div",115)(14,"label",12),e.EFF(15,"Enter An Expiration Time"),e.k0s(),e.j41(16,"p-dropdown",116),e.bIt("onClick",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.openSelectInspectionTime())}),e.mxI("ngModelChange",function(i){e.eBV(t);const a=e.XpG();return e.DH7(a.selecttimeoption,i)||(a.selecttimeoption=i),e.Njj(i)}),e.k0s(),e.DNE(17,Ft,2,0,"span",114),e.k0s()(),e.DNE(18,Mt,33,0,"div",117)(19,At,3,0,"div",118),e.j41(20,"div",119)(21,"p",110),e.EFF(22," Any unused codes will be deleted after the expiration date and time. "),e.k0s(),e.j41(23,"button",120),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.InspectionMode())}),e.EFF(24," GENERATE CODES "),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(11),e.R50("ngModel",t.date3),e.Y8G("minDate",t.minimumDate)("showIcon",!0),e.R7$(),e.Y8G("ngIf",t.isInspectionCodeEndDateSelected),e.R7$(4),e.Y8G("options",t.timeoption),e.R50("ngModel",t.selecttimeoption),e.R7$(),e.Y8G("ngIf",t.isInspectionCodeEndTimeSelected),e.R7$(),e.Y8G("ngIf",t.isInspectionSecond),e.R7$(),e.Y8G("ngIf",t.isInspectionFinal)}}let Rt=(()=>{class n{get tableMessages(){return{emptyMessage:this.isLoading?'Please wait while the data is being loaded... <i class="alertspinner spinner-border text-dark btspinner"></i>':"No Record(s) Found."}}get accessHistoryTableMessages(){return{emptyMessage:this.isAccessHistoryLoading?'Please wait while the data is being loaded... <i class="alertspinner spinner-border text-dark btspinner"></i>':"No Record(s) Found."}}constructor(t,o,i,a,r,l,d,_,p){this.communityService=t,this.router=o,this.notifyService=i,this.utilityService=a,this.route=r,this.datePipe=l,this.loaderService=d,this.amplifyHelper=_,this.cdref=p,this.sortFilter="",this.sortValue="",this.isExportRole=!0,this.unAuthorizedScreen=!1,this.userRole=[],this.unitCount="",this.leasingDashboardData=[],this.BatteryData=[],this.isAlertsLoaded=!1,this.isLoading=!0,this.isDataFound=!1,this.isAccessHistoryLoading=!0,this.isAccessHistoryDataFound=!1,this.offset=3,this.ColumnMode=f.oZ,this.SelectionType=f.hO,this.basicSelectedOption=5,this.filterValue=null,this.page=new L.Y,this.pageaccess=new L.Y,this.pageOffset=0,this.basicSelectedOptionForLeasingDashboardView=10,this.basicSelectedOptionForAccessHistoryView=10,this.filterValueForleasingDashboardView=null,this.filterValueForAccessHistoryView=null,this.leasingDashboardPage=new L.Y,this.pageAccessHistory=new L.Y,this.ColumnModeAccessHistory=f.oZ,this.downUnitList=[],this.modelUnitList=[],this.unitField="",this.reasonField="",this.activeList=!0,this.pageNumber=0,this.pageSize=1,this.filterJson="{}",this.isEditCommunityAllowed=!1,this.isChecklistTabAllowed=!1,this.communitySettingsUpgraded=!1,this.userRoles=[],this.requestAccessAdmin=!1,this.backURL="",this.communityTypeId=0,this.isSelfGuidedToursAvailableForCommunity=!1,this.rdIsPms=!1,this.isPmsCommunity=!1,this.clickCounter=0,this.btnRestoreDisable=!1,this.isExportFile=!1,this.isAccessHistoryExportFile=!1,this.maxLimit=9999999,this.formatUtcDatePipe=new T.C,this.accessType=[{label:"All",value:null},{label:"Maintenance Request",value:"Maintenance Request"},{label:"Preventative Maintenance",value:"Preventative Maintenance"},{label:"Unit Turn",value:"Unit Turn"},{label:"Unit Inspections",value:"Unit Inspections"},{label:"Pest Control",value:"Pest Control"},{label:"Emergency",value:"Emergency"},{label:"Other",value:"Other"}],this.pageSizeList=[],this.pageSizeHistoryViewList=[],this.moveLockBatteryTogetherColumns=[],this.hubTypeId=0,this.isLeasingDashboardVisible=!1,this.siteTeamAccessDuration="",this.siteTeamAccessfilter="3",this.siteTeamAccessList=[],this.accessHistoryMinDate=g().subtract(90,"days").toDate(),this.accessHistoryMaxD
1ate=new Date,this.userRoles=this.amplifyHelper.getUserRoles(),this.siteTeamAccessList=[{value:"1",label:"This Week"},{value:"2",label:"Last Week"},{value:"3",label:"This Month"},{value:"4",label:"Last Month"},{value:"5",label:"Custom Date Range"}],this.siteTeamAccessfilter=this.siteTeamAccessList[2].value}ngOnInit(){this.communityId=+(this.route.snapshot.params.communityId||0),this.getCommunityInfo(this.communityId),this.getCommunityInforForHeader(),this.items=[{label:"Export as .csv",command:()=>this.UnitExport("csv")},{label:"Export as .xlsx",command:()=>this.UnitExport("excel")}],this.Accesshistoryitems=[{label:"Export as .csv",command:()=>this.AccessHistoryExport("csv")},{label:"Export as .xlsx",command:()=>this.AccessHistoryExport("excel")}],this.page.pageNumber=0,this.page.size=this.basicSelectedOption,this.getUnits(this.communityId),this.pageaccess.pageNumber=0,this.pageaccess.size=this.basicSelectedOption,this.pageAccessHistory.pageNumber=0,this.pageAccessHistory.size=this.basicSelectedOptionForAccessHistoryView,this.onGraphTimeChanged(),this.communitySettingsUpgraded=!0,this.userRoles.includes(b.fo.iAptsAdmin)&&(this.isChecklistTabAllowed=!0),this.userRoles.includes(b.fo.iAptsAdmin)&&(this.isEditCommunityAllowed=!0),this.userRoles.includes(b.fo.CommunityAdmin)&&(this.isEditCommunityAllowed=!0),this.userRoles.includes(b.fo.LeasingAgent)&&(this.isEditCommunityAllowed=!0),this.userRoles.includes(b.fo.MaintenanceWorker)&&(this.isEditCommunityAllowed=!0),this.userRoles.includes(b.fo.CorporateAdministrator)&&(this.isEditCommunityAllowed=!0),this.backURL=`/adminportal/community/community-dashboard/${this.communityId}`,localStorage.setItem("backURL",this.backURL),this.pageSizeList=[{label:"10",value:10},{label:"25",value:25},{label:"50",value:50},{label:"100",value:100}],this.pageSizeHistoryViewList=[{label:"10",value:10},{label:"25",value:25},{label:"50",value:50},{label:"100",value:100}],(this.userRoles.includes(b.fo.iAptsAdmin)||this.userRoles.includes(b.fo.CommunityAdmin)||this.userRoles.includes(b.fo.LeasingAgent)||this.userRoles.includes(b.fo.CorporateAdministrator))&&(this.isLeasingDashboardVisible=!0)}setmoveLockBatteryTogetherColumns(){this.moveLockBatteryTogetherColumns=["TEMPERATURE","LOCK STATUS","BATTERY"],this.hubTypeId===V.t.HubOnly&&(this.moveLockBatteryTogetherColumns=this.moveLockBatteryTogetherColumns.filter(t=>"TEMPERATURE"!==t))}AccessHistoryExport(t){this.isAccessHistoryExportFile=!0,this.accessHistoryfileExportType=t,this.getAccessHistory(this.communityId,{offset:0},null,null,null,null)}escapeCsvValue(t){return null==t?"":(((t=String(t)).includes(",")||t.includes('"')||t.includes("\n"))&&(t='"'+t.replace(/"/g,'""')+'"'),t)}ExportAccessHistoryFile(t,o){let i=new m.Workbook,a=i.addWorksheet("Units"),r="NAME,UNIT,DATE,TIME,REASON\n",l=this.datePipe.transform(this.endDate,"M_d_yyyy"),d=this.datePipe.transform(this.startDate,"M_d_yyyy"),_=this.communityInfoData?.[0]?.CommunityName+"_SiteTeamAccess_"+d+" to "+l;if("csv"==o){t.forEach(u=>{let v="",M="";u.AccessDate&&"0001-01-01T00:00:00"!==u.AccessDate&&(v=this.timeZoneFormatForSiteTeamAccess(u.CommunityTimeZone,u.AccessDate,"date")||"",M=this.timeZoneFormatForSiteTeamAccess(u.CommunityTimeZone,u.AccessDate,"time")||"");const St=this.escapeCsvValue(u.Name||""),Gt=this.escapeCsvValue(u.ApartmentNumber||""),jt=v?`="${v}"`:"",Nt=M?`="${M}"`:"",Ot=this.escapeCsvValue(u.Reason||"");r+=`${St},${Gt},${jt},${Nt},${Ot}\n`});const p=new Blob(["\ufeff"+r],{type:"text/csv;charset=utf-8;"});y.saveAs(p,`${_}.csv`)}else if("excel"==o){let p=[];p.push({header:"NAME",key:"Name",width:10}),p.push({header:"UNIT",key:"ApartmentNumber",width:10}),p.push({header:"DATE",key:"AccessDate",width:20}),p.push({header:"TIME",key:"Time",width:20}),p.push({header:"REASON",key:"Reason",width:20}),a.columns=p,t.forEach(u=>{let v={};
1v.Name=u.Name,v.ApartmentNumber=u.ApartmentNumber,u.AccessDate&&"0001-01-01T00:00:00"!==u.AccessDate?(v.AccessDate=this.timeZoneFormatForSiteTeamAccess(u.CommunityTimeZone,u.AccessDate,"date"),v.Time=this.timeZoneFormatForSiteTeamAccess(u.CommunityTimeZone,u.AccessDate,"time")):(v.AccessDate="",v.Time=""),v.Reason=u.Reason,a.addRow(v)}),this.saveWorkbook(i,"excel",_)}}UnitExport(t){this.isExportFile=!0,this.fileExportType=t,this.getLeasingDashboardData(this.communityId,{offset:0},null,null,null,null)}ExportFile(t,o){let i=new m.Workbook,a=i.addWorksheet("Units"),r=[];r.push({header:"UNIT",key:"ApartmentNumber",width:10}),r.push({header:"ROOM NUMBER",key:"RoomNumber",width:10}),r.push({header:"TYPE",key:"VacantSchedule",width:20}),r.push({header:"BATTERY",key:"Battery",width:20}),r.push({header:"TEMPERATURE",key:"Temperature",width:20}),r.push({header:"LOCK STATUS",key:"LockStatus",width:20}),r.push({header:"CONNECTIVITY",key:"Connectivity",width:20}),a.columns=r,t.forEach(_=>{let p={};p.ApartmentNumber=_.ApartmentNumber,p.RoomNumber=_.RoomNumber,p.Battery=_.Battery,p.VacantSchedule=_.VacantSchedule,p.Temperature=_.Temperature,p.LockStatus=_.LockStatus,p.Connectivity="iNet/LTE"===_.Connectivity||"iNet"===_.Connectivity?"LTE":_.Connectivity,a.addRow(p)});let d=this.datePipe.transform(new Date,"MM_dd_yyyy");d=this.communityInfoData?.[0]?.CommunityName+" "+d,"csv"==o?this.saveWorkbook(i,"csv",d):"excel"==o&&this.saveWorkbook(i,"excel",d)}saveWorkbook(t,o,i){"csv"===o?t.csv.writeBuffer().then(a=>{const r=new Blob(["\ufeff",a],{type:"text/csv;charset=utf-8;"});y.saveAs(r,`${i}.csv`)}):"excel"===o&&t.xlsx.writeBuffer().then(a=>{const r=new Blob([a],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});y.saveAs(r,`${i}.xlsx`)})}getLeasingDashboardData(t,o,i,a,r,l){const d=this.prepareDashboardParams(o,i,a,r,l);let _=new Date;_.setFullYear(_.getFullYear()+4);const p={ComunityId:t,pageNumber:this.leasingDashboardPage.pageNumber,pageSize:this.isExportFile?this.maxLimit:+this.leasingDashboardPage.size,filterValue:d.filterValue,sortField:d.sortField,sortValue:d.sortValue};this.isLoading=!0,this.isDataFound=!1,this.subscription=this.communityService.getLeasingDashboard(p).subscribe(u=>{this.handleLeasingDashboardSuccessResponse(u),this.isExportFile=!1},u=>{this.leasingDashboardData=[],this.page.totalElements=0,this.isLoading=!1,this.isDataFound=!0,this.unAuthorizedScreen=!0,this.notifyService.showToast({messageHeader:"Error",message:u.error.response_message,type:"error"})})}prepareDashboardParams(t,o,i,a,r){this.handlePageSizeForLeasingDashboard(o,t),this.handleFilterValuesForLeasingDashboard(i);const l=this.table?.sorts?.length>0?this.table.sorts[0]:null;return a||(a=l?l.prop:""),r||(r=l?l.dir:""),{filterValue:i,sortField:a,sortValue:r}}handlePageSizeForLeasingDashboard(t,o){null==t||null==t?this.leasingDashboardPage.pageNumber=o.offset:(this.leasingDashboardPage.size=t,this.leasingDashboardPage.pageNumber=this.leasingDashboardPage.size>10?0:this.leasingDashboardPage.pageNumber)}handleFilterValuesForLeasingDashboard(t){null!=t||null!=t?this.leasingDashboardPage.pageNumber=0:t=this.filterValueForleasingDashboardView||""}handleLeasingDashboardSuccessResponse(t){const o=t.body?.leasingData||[];o?.length?(this.isExportFile&&this.exportLeasingData(o),this.leasingDashboardData=o,this.leasingDashboardPage.totalElements=t.body.Total,this.leasingDashboardPage.size&&this.leasingDashboardPage.size>0&&(this.basicSelectedOptionForLeasingDashboardView=this.leasingDashboardPage.size),this.basicSelectedOptionForLeasingDashboardView=Number(this.basicSelectedOptionForLeasingDashboardView)||10,this.leasingDashboardPage.size=Number(this.leasingDashboardPage.size)||10,this.leasingDashboardPage.totalElements=Number(this.leasingDashboardPage.totalElements)||0,this.isLoading=!1,this.isDataFound=!1,this.cdref.detectChanges(),this.loadBatteryData(o),this.loaderService.hide()):this.resetLeasingDashboard()}resetLeasingDashboard(){this.leasingDashboardData=[],this.page.totalElements=0,this.leasingDashboardPage.totalElements=0,this.isLoading=!1,this.isDataFound=!0}exportLeasingData(t){this.ExportFile(t,this.fileExportType)}loadBatteryData(t){const o={DeviceId:t.filter(i=>null!==i.DeviceId).map(i=>i.DeviceId)};this.isAlertsLoaded=!1,this.subscription=this.communityService.getLeasingDashboardBattery(o).subscribe(i=>{this.BatteryData=i.body?.BatteryData??[],t.forEach(a=>{this.enrichBatteryData(a)}),this.isAlertsLoaded=!0})}enrichBatteryData(t){if(null===t.Battery)return;const o=this.getRelevantBatteryEntries(t.DeviceId),i=o.some(r=>"req"===r.Types),a=o.some(r=>"notif"===r.Types);i&&!a?t.Battery=this.getBatteryStatus(t.DeviceCount,t.FaultReason):this.setFormattedBatteryValue(t)}getRelevantBatteryEntries(t){return this.BatteryData?.filter(o=>
1o.DeviceId===t&&("ZW.DeviceReport"===o.Name||"ZW.Control"===o.Name||"ZW.GetReport"===o.Name))??[]}setFormattedBatteryValue(t){const o=Number(t.Battery);isNaN(o)||(t.Battery=this.formatBatteryValue(o))}formatBatteryValue(t){return t>100?"0%":`${t}%`}getBatteryStatus(t,o){const i=o?.includes("Battery");return t>0||i?"Unknown":"Unresponsive"}getBatteryValue(t){return this.isAlertsLoaded?null!==t?t:"N/A":""}onPageChange(t){this.getLeasingDashboardData(this.communityId,t.offset,t.pageSize,"","","")}onPageSizeNgGridChanged(){this.getLeasingDashboardData(this.communityId,null,this.basicSelectedOptionForLeasingDashboardView,null,this.filterValueForleasingDashboardView,null)}changeDateFormat(t){return t.getDate()+"/"+(t.getMonth()+1)+"/"+t.getFullYear()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()}ngAfterViewInit(){(!this.basicSelectedOptionForLeasingDashboardView||0===this.basicSelectedOptionForLeasingDashboardView)&&(this.basicSelectedOptionForLeasingDashboardView=10),(!this.basicSelectedOptionForAccessHistoryView||0===this.basicSelectedOptionForAccessHistoryView)&&(this.basicSelectedOptionForAccessHistoryView=10)}filterUpdateNgxGrid(t){const o=t.target.value.toLowerCase().trim();this.getLeasingDashboardData(this.communityId,this.leasingDashboardPage,null,o,null,null),this.table.offset=0}filterUpdateSiteTeamAccessGrid(t){const o=t.target.value.toLowerCase().trim();this.getAccessHistory(this.communityId,this.pageAccessHistory.pageNumber,null,o,null,null),this.tablePageAccess.offset=0}onLeasingDashboardListSort(t){this.sortFilter=t.column.prop,this.sortValue=t.newValue,this.getLeasingDashboardData(this.communityId,{offset:0},null,null,t.column.prop,t.newValue)}onLeasingDashboardPageChange(t){this.getLeasingDashboardData(this.communityId,t,null,null,null,null)}getLeasingDashboardFooterPagingDetails(t,o,i,a,r){return this.pageOffset=t,this.utilityService.getFooterPagingDetails(t,o,i,a,r)}getBatteryClass(t){if(!t)return"badge badge-orange";const o=parseInt(t.replace("%",""),10);return o<50||"Unresponsive"===t||"Unknown"===t?"badge badge-orange":o?"badge badge-gray":""}getTemperatureClass(t){const o=t.Temperature?parseInt(t?.Temperature.replace("\xb0",""),10):null;return!o||o<(t?.LowTemperatureRange??0)-5||o>(t?.HighTemperatureRange??0)+5?"badge badge-orange":o?"badge badge-gray":""}getLockStatusClass(t){return!t?.LockStatus||t?.LockStatus.includes("Jammed")||t?.LockStatus.includes("Unresponsive")||null===t?.Battery||"0%"===t?.Battery&&(!t?.LockStatus||"N/A"==t?.LockStatus)?"badge badge-orange":"badge badge-gray"}getConnectivityClass(t){return t.toLocaleLowerCase().includes("offline")?"badge badge-orange":t?"badge badge-gray":""}getRowClass(t){const o=parseInt(t.Battery?.replace("%","")||"0",10),i=parseInt(t.Temperature?.replace("\xb0","")||"0",10);return null!=o&&o<0||i<0||""===t.LockStatus?"":(o<50||"Unresponsive"===t.Battery||"Unknown"===t.Battery)&&("Jammed"===t.LockStatus||null==t.LockStatus)&&(i<t.LowTemperatureRange||i>t.HighTemperatureRange)?"row-color":""}getSortedThermostats(t=[]){if(!t.length)return[];const o={primary:1,secondary:2},i=a=>o[a?.toLowerCase().trim()??""]??3;return[...t].sort((a,r)=>i(a.Type)-i(r.Type))}getRowHeight(t){const a=t?.ThermostatTemperatures||[];if(0===a.length)return 45;const r=a.filter(l=>!this.shouldHideTemperaturePill(l));return!r||r.length<=1?45:45+32*(r.length-1)}shouldHideTemperaturePill(t){return this.hubTypeId===V.t.HubOnly&&"primary"===t?.Type?.toLowerCase()}hasVisibleThermostats(t){return!(!t||0===t.length)&&t.some(o=>!this.shouldHideTemperaturePill(o))}getAccessHistory(t,o,i,a,r,l){const d=this.prepareAccessHistoryParams(o,i,a,r,l);let _=new Date;_.setFullYear(_.getFullYear()+4);const p={CommunityId:this.communityId,PageNumber:this.pageAccessHistory.pageNumber,PageSize:this.isAccessHistoryExportFile?this.maxLimit:+this.pageAccessHistory.size,FilterValue:d.filterValue,SortField:d.sortField,SortValue:d.sortValue,UnitField:this.unitField??"",ReasonField:this.reasonField??""};p.StartDate=this.startDate,p.EndDate=this.endDate,this.isAccessHistoryLoading=!0,this.isAccessHistoryDataFound=!1,this.subscription=this.communityService.getUnitAccessHistoryByCommunity(p).subscribe(u=>{this.handleAccessHistorySuccessResponse(u),this.isAccessHistoryExportFile=!1},u=>{this.rowData=[],this.pageaccess.totalElements=0,this.isAccessHistoryLoading=!1,this.isAccessHistoryDataFound=!0,this.unAuthorizedScreen=!0,this.notifyService.showToast({messageHeader:"Error",message:u.error.response_message,type:"error"})})}prepareAccessHistoryParams(t,o,i,a,r){this.handlePageSize(o,t),i=this.handleFiltervalue(i);let l=this.table&&this.table.sorts&&this.table.sorts.length>0&&this.table.sorts[0];return(null==a||null==a)&&(a=l?l.prop:""),(null==r||null==r)&&(r=l?l.dir:""),{filterValue:i,sortField:a,sortValue:r}}handlePageSize(t,o){null==t||null==t?this.pageAccessHistory.pageNumber=o.offset:(this.pageAccessHistory.size=t,this.pageAccessHistory.pageNumber=this.pageAccessHistory.size>10?0:this.pageAccessHistory.pageNumber)}handleFiltervalue(t){return null!=t||null!=t?this.pageAccessHistory.pageNumber=0:(null==(t=this.filterValueForAccessHistoryView)||null==t)&&(t=""),t}handleAccessHistorySuccessResponse(t){t.body.accessHistoryData?.length>0?(this.isAccessHistoryExportFile&&this.ExportAccessHistoryFile(t.body.accessHistoryData,this.accessHistoryfileExportType),this.rowData=t.body.accessHistoryData,this.pageAccessHistory.totalElements=t.body.Total,this.isAccessHistoryLoading=!1,this.isAccessHistoryDataFound=!1,this.loaderService.hide()):(this.rowData=[],this.pageaccess.totalElements=0,this.pageAccessHistory.totalElements=0,this.isAccessHistoryLoading=!1,this.isAccessHistoryDataFound=!0)}onAccessHistoryPageSizeNgGridChanged(){this.getAccessHistory(this.communityId,null,this.basicSelectedOptionForAccessHistoryView,null,this.filterValueForAccessHistoryView,null),this.tablePageAccess.offset=0}onAccessHistoryListSort(t){this.sortFilter=t.column.prop,this.sortValue=t.newValue,this.getAccessHistory(this.communityId,{offset:0},null,null,t.column.prop,t.newValue)}onAccessHistoryPageChange(t){this.getAccessHistory(this.communityId,t,null,null,null,null)}getAccessHistoryFooterPagingDetails(t,o,i,a,r){return this.utilityService.getFooterPagingDetails(t,o,i,a,r)}
1getUnitApi(){this.communityId=+this.route.snapshot.params.communityId,this.communityId>0&&this.getUnits(this.communityId)}getUnits(t){this.downUnitList=[],this.subscription=this.communityService.getUnit({communityId:t}).subscribe(i=>{i.body&&i.body.length>0&&(Array.isArray(this.modelUnitList)||(this.modelUnitList=[]),this.modelUnitList=[{label:"All",value:null},...i.body.map(a=>({label:a.unit,value:a.unitId}))])})}filterAccessHistoryByUnit(){this.getAccessHistory(this.communityId,0,this.basicSelectedOptionForAccessHistoryView,"","",""),this.tablePageAccess.offset=0}filterAccessHistoryByReason(){this.getAccessHistory(this.communityId,0,this.basicSelectedOptionForAccessHistoryView,"","",""),this.tablePageAccess.offset=0}RedirectToUnitList(){this.router.navigateByUrl("/adminportal/community/list")}toggleList(t){this.activeList="list"===t}getCommunityInforForHeader(){this.subscription=this.communityService.getUnitNew({communityId:this.communityId,pageNumber:this.pageNumber,pageSize:this.pageSize,filterValue:"",sortField:"",sortValue:"",filterJson:this.filterJson,isExport:!1}).subscribe(o=>{if(null!=o.body.Error&&("Not Valid Request"==o.body.Error||"UnAuthorized"==o.body.Error))return this.notifyService.showToast({messageHeader:"Error",message:"Community does not exist.",type:"error"}),void this.router.navigateByUrl("/adminportal/community/list");0!=o.body.Total?(this.communityInfoData=o.body.UnitAdminResponses,this.unitCount=o.body.Total.toString()+" Units"):this.notifyService.showToast({messageHeader:"Error",message:"No Record Found.",type:"error"})})}getCommunityInfo(t){this.subscription=this.communityService.getcommunityInfo({communityId:t}).subscribe(i=>{this.communityLockStatus=i.body?.communityLockStatus,this.communityTypeId=i.body?.communityTypeId,this.communityName=i.body?.communityName,this.isSelfGuidedToursAvailableForCommunity=i.body?.selfGuidedTourEnabled,this.rdIsPms=i.body?.isPms,this.hubTypeId=i.body?.hubTypeId||0,1==this.rdIsPms&&(this.userRoles.includes(b.fo.iAptsAdmin)||this.userRoles.includes(b.fo.CommunityAdmin)||this.userRoles.includes(b.fo.LeasingAgent))&&(this.isPmsCommunity=!0),this.setmoveLockBatteryTogetherColumns(),this.leasingDashboardPage.pageNumber=0,this.leasingDashboardPage.size=this.basicSelectedOptionForLeasingDashboardView,(!this.leasingDashboardPage.size||0===this.leasingDashboardPage.size)&&(this.leasingDashboardPage.size=10,this.basicSelectedOptionForLeasingDashboardView=10),this.basicSelectedOptionForLeasingDashboardView=Number(this.basicSelectedOptionForLeasingDashboardView)||10,this.leasingDashboardPage.size=Number(this.leasingDashboardPage.size)||10,this.getLeasingDashboardData(this.communityId,0,this.basicSelectedOptionForLeasingDashboardView,"","","")},i=>{})}onGraphTimeChanged(){let t,o,i=this.siteTeamAccessfilter;switch(i){case"1":const a=g();t=a.clone().subtract(a.day(),"days"),o=a;break;case"2":const r=g(),l=r.clone().subtract(0===r.day()?1:r.day()+1,"days");t=l.clone().subtract(6,"days"),o=l;break;case"3":const d=g();t=d?.clone().startOf("month"),o=d;break;case"4":t=g().subtract(1,"months").startOf("month"),o=g().subtract(1,"months").endOf("month");break;case"5":t=this.startDate,o=this.endDate,setTimeout(()=>this.openCalendarPopup(),100);break;default:t=g().clone().startOf("month"),o=g()}t=t?.format("l").toString(),o=o?.format("l").toString(),this.startDate=t,this.endDate=o,this.siteTeamAccessDuration=t+" - "+o,"5"!==i&&this.getAccessHistory(this.communityId,0,this.basicSelectedOptionForAccessHistoryView,"","","")}onCalendarRangeSelect(){this.rangeDates&&2===this.rangeDates.length&&this.rangeDates[1]&&(g(this.rangeDates[0]).isBefore(this.accessHistoryMinDate,"day")&&(this.rangeDates=[new Date(this.accessHistoryMinDate),this.rangeDates[1]]),this.startDate=g(this.rangeDates[0]).format("l"),this.endDate=g(this.rangeDates[1]).format("l"),this.siteTeamAccessDuration=this.startDate+" - "+this.endDate,this.siteTeamAccessfilter="5",this.getAccessHistory(this.communityId,0,this.basicSelectedOptionForAccessHistoryView,"","",""))}openCalendarPopup(){if(!this.calendar)return;const t=this.calendar.el?.nativeElement?.querySelector("button.p-datepicker-trigger");t?t.click():this.calendar.showOverlay()}timeZoneFormatForSiteTeamAccess(t,o,i){let a;
1if("0001-01-01T00:00:00"!=o&&null!=o){if(o=g.utc(o),null!=t){var l=JSON.parse(t).display;"date"===i?a=g(o).tz(l).format("M/D/YYYY"):"time"===i&&(a=g(o).tz(l).format("h:mm A"))}else"date"===i?a=g(o).tz(l).format("M/D/YYYY"):"time"===i&&(a=g(o).tz(l).format("h:mm A"));return a}}static{this.\u0275fac=function(o){return new(o||n)(e.rXU(C.B),e.rXU(D.Ix),e.rXU(S.J),e.rXU(w.Q),e.rXU(D.nX),e.rXU(h.vh),e.rXU(G.Z),e.rXU(F.t),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-leasing-dashboard"]],viewQuery:function(o,i){if(1&o&&(e.GBs(f.ge,5),e.GBs(f.ge,5),e.GBs(Re,5),e.GBs(Se,5)),2&o){let a;e.mGM(a=e.lsd())&&(i.basicSelectedOptionForLeasingDashboardView=a.first),e.mGM(a=e.lsd())&&(i.table=a.first),e.mGM(a=e.lsd())&&(i.tablePageAccess=a.first),e.mGM(a=e.lsd())&&(i.calendar=a.first)}},standalone:!0,features:[e.aNF],decls:119,vars:87,consts:[["menu",""],["table",""],["calendar",""],["accessMenu",""],["tablepgaccess",""],["inspectiontemplate",""],[1,""],[2,"height","24px"],["appBackNavigate","",1,"back"],[1,"fa-solid","fa-arrow-left"],[1,"d-flex","align-items-center"],[1,"heading","xl","lh-1"],[1,"lh-1"],["class","btn-icon-transparent clr-theme","pTooltip","Edit Community","tooltipEvent","hover","tooltipPosition","top",3,"routerLink",4,"ngIf"],[1,"text","clr-muted","fs-16","mt-1"],[1,"text","clr-light2","fs-16"],[1,"card","app-card","app-card-border"],[1,"mt-2","dashboard-headings"],[1,"heading-btn","fs-20","mb-2","mt-3","justify-content-between"],["class","dashboard-tabs",4,"ngIf"],[1,"mt-3"],[1,"app-tabs","pt-1"],["href","javascript:void(0)","id","unit-view-btn",3,"ngClass","routerLink"],["href","javascript:void(0)","id","resident-view-btn",3,"ngClass","routerLink"],["class","self-tours",4,"ngIf"],[4,"ngIf"],["href","javascript:void(0)",3,"routerLink"],[1,"card-body",3,"hidden"],[1,"mt-2"],[1,"card","app-card-border"],[1,"card-body","p-3"],[1,"row","justify-content-between","row-gap-10","app-ngx-table-top"],[1,"col-md-12","col-lg-12","col-xl-12","col-12"],[1,"header-styling"],[1,"table-entries"],[1,"custom-dropdowns","custom-height",3,"ngModelChange","onChange","options","ngModel"],[1,"filters-styling"],[1,"filtering-search"],["id","search","type","text","placeholder","Search",1,"form-control",3,"keyup.enter","ngModelChange","ngModel"],[1,"search-icon-styling","iapts-icon-search"],[1,"app-p-menu"],[1,"btn","btn-border-transparent","btn-sm","btn-export","export-btn",3,"click"],[1,"export-download"],[3,"popup","model"],[1,"app-ngx-table","material","expandable",3,"sort","page","rows","count","externalPaging","externalSorting","columnMode","headerHeight","rowHeight","footerHeight","limit","rowClass","messages","scrollbarH"],["name","UNITS","prop","ApartmentNumber",3,"sortable"],["ngx-datatable-cell-template",""],["name","TYPE","prop","VacantSchedule",3,"sortable"],["name","CONNECTIVITY","prop","Connectivity",3,"sortable"],["class","app-ngx-table-footer",4,"ngIf"],[1,"card-body","d-flex","justify-content-between","gap-10","flex-wrap","py-0"],[1,"heading-btn","fs-20"],[1,"d-flex","gap-10","flex-wrap"],[1,"input","d-flex","align-items-center","gap-10","flex-nowrap"],["for","tour-duration",1,"m-0","text-nowrap",2,"font-weight","600 !important"],[1,"custom-dropdowns",3,"ngModelChange","onChange","options","ngModel"],[1,"pcalender-tour"],["selectionMode","range",3,"ngModelChange","onSelect","ngModel","showIcon","readonlyInput"],[1,"card-body","pt-3"],[1,"mt-0"],["for","entries"],["placeholder","Unit",1,"custom-dropdowns","custom-height","custom-dropdowns-filter",3,"ngModelChange","onChange","options","ngModel","filter"],["placeholder","Reason",1,"custom-dropdowns","custom-height",3,"ngModelChange","onChange","options","ngModel"],[1,"btn","btn-border-transparent","btn-sm","btn-export","export-btn","m-r-10",3,"click"],[1,"app-ngx-table","material","expandable",3,"sort","page","rows","count","externalPaging","externalSorting","columnMode","headerHeight","footerHeight","limit","rowHeight","messages"],["name","NAME","prop","Name",3,"width","sortable"],["name","UNIT","prop","ApartmentNumber",3,"width","sortable"],["name","DATE",3,"width","sortable"],["name","TIME",3,"width","sortable"],["name","REASON","prop","Reason",3,"width","sortable"],["id","inspectiontemplate"],["pTooltip","Edit Community","tooltipEvent","hover","tooltipPosition","top",1,"btn-icon-transparent","clr-theme",3,"routerLink"],[1,"iapts-icon-settings"],[1,"dashboard-tabs"],["width","28","height","28","viewBox","0 0 28 28","fill","none","xmlns","http://www.w3.org/2000/svg",3,"click"],["d","M4.66667 7H23.3333M4.66667 11.6667H23.3333M4.66667 16.3333H23.3333M4.66667 21H23.3333","stroke","#6F767E","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["x","7","y","7","width","5.83333","height","5.83333","rx","1","stroke","#6F767E","stroke-width","2"],["x","7","y","16.333","width","5.83333","height","5.83333","rx","1","stroke","#6F767E","stroke-width","2"],["x","16.3334","y","7","width","5.83333","height","5.83333","rx","1","stroke","#6F767E","stroke-width","2"],["x","16.3334","y","16.333","width","5.83333","height","5.83333","rx","1","stroke","#6F767E","stroke-width","2"],["href","javascript:void(0)","id","check-list-view-btn",3,"ngClass","routerLink"],[1,"self-tours"],["href","javascript:void(0)",3,"ngClass","routerLink"],["href","javascript:void(0)","id","pms-history-view-btn",3,"ngClass","routerLink"],[3,"routerLink"],[1,"highlight-units","mt-1"],[1,"mt-1"],["name","TEMPERATURE","prop","Thermostat","headerClass","temperature-header",3,"sortable"],["name","LOCK STATUS","prop","LockStatus",3,"sortable"],["name","BATTERY","prop","Battery",3,"sortable"],["ngx-datatable-header-template",""],[1,"d-flex","align-items-center","gap-1","position-relative"],[1,"thermostat-header-icon","position-relative"],["pTooltip","Temperature:\n72\xb0F (Ambient) / 76\xb0F (Set).","tooltipPosition","top","tooltipEvent","hover",1,"thermostat-icon"],[1,"thermostat-wrapper"],[1,"thermostat-badge","badge","mr-1","badge-gray"],["tooltipPosition","top","tooltipEvent","hover",1,"thermostat-type",3,"pTooltip"],[1,"thermostat-content"],[3,"ngClass"],[1,"temperature-content"],[1,"hvac-content"],[1,"badge","badge-orange"],[1,"app-ngx-table-footer"],["ngx-datatable-footer-template",""],[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","change",4,"ngIf"],[3,"change","pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count"],["type","button","aria-label","Close",1,"app-modal-close",3,"click"],[1,"modal-body"],[1,"mb-3"],[1,"heading","fs-18"],[1,"text","clr-light2"],[1,"row"],["
1id","first",1,"col-md-6","form-group","input"],["inputId","icon",3,"ngModelChange","ngModel","minDate","showIcon"],["class","input-error-message",4,"ngIf"],["id","",1,"col-md-6","from-group","input"],["placeholder"," ",1,"time-picker-p-dropdown","custom-dropdowns",3,"onClick","ngModelChange","options","ngModel"],["id","second",4,"ngIf"],["id","final",4,"ngIf"],[1,"mt-3","d-flex","gap-10","justify-content-between"],["type","button","id","inspectionbtn",1,"btn","btn-primary-outline","text-nowrap",3,"click"],[1,"input-error-message"],["id","second"],[1,"inspection-error"],[1,"error-list"],["id","final"]],template:function(o,i){if(1&o){const a=e.RV6();e.j41(0,"div",6)(1,"div",7)(2,"a",8),e.nrm(3,"i",9),e.EFF(4,"Back"),e.k0s()(),e.j41(5,"div",10)(6,"p",11),e.EFF(7),e.k0s(),e.j41(8,"div",12),e.DNE(9,Ze,2,3,"button",13)(10,Ke,2,3,"button",13),e.k0s()(),e.j41(11,"p",14),e.EFF(12),e.k0s(),e.j41(13,"p",15),e.EFF(14),e.k0s()(),e.j41(15,"div",16)(16,"div",17)(17,"div",18)(18,"span"),e.EFF(19,"Community Info"),e.k0s(),e.DNE(20,Qe,8,4,"div",19),e.k0s(),e.qex(21),e.j41(22,"div",20)(23,"ul",21),e.DNE(24,qe,3,5,"li")(25,et,3,5,"li"),e.j41(26,"li")(27,"a",22),e.EFF(28,"Unit View"),e.k0s()(),e.j41(29,"li")(30,"a",23),e.EFF(31,"Resident View"),e.k0s()(),e.DNE(32,tt,3,5,"li",24)(33,nt,3,5,"li",25),e.j41(34,"li")(35,"a",26),e.EFF(36," Inspection Mode "),e.k0s()()()(),e.bVm(),e.k0s(),e.j41(37,"div",27)(38,"div",28)(39,"div",29)(40,"div",30)(41,"div",31)(42,"div",32)(43,"div",33)(44,"div",34)(45,"label",6),e.EFF(46,"Entries"),e.k0s(),e.j41(47,"p-dropdown",35),e.mxI("ngModelChange",function(l){return e.eBV(a),e.DH7(i.basicSelectedOptionForLeasingDashboardView,l)||(i.basicSelectedOptionForLeasingDashboardView=l),e.Njj(l)}),e.bIt("onChange",function(){return e.eBV(a),e.Njj(i.onPageSizeNgGridChanged())}),e.k0s()(),e.j41(48,"div",36)(49,"div",37)(50,"input",38),e.bIt("keyup.enter",function(l){return e.eBV(a),e.Njj(i.filterUpdateNgxGrid(l))}),e.mxI("ngModelChange",function(l){return e.eBV(a),e.DH7(i.filterValueForleasingDashboardView,l)||(i.filterValueForleasingDashboardView=l),e.Njj(l)}),e.k0s(),e.nrm(51,"i",39),e.k0s(),e.j41(52,"div",40)(53,"button",41),e.bIt("click",function(l){e.eBV(a);const d=e.sdS(57);return e.Njj(d.toggle(l))}),e.EFF(54," Export "),e.nrm(55,"i",42),e.k0s(),e.nrm(56,"p-menu",43,0),e.k0s()()()()()(),e.j41(58,"ngx-datatable",44,1),e.bIt("sort",function(l){return e.eBV(a),e.Njj(i.onLeasingDashboardListSort(l))})("page",function(l){return e.eBV(a),e.Njj(i.onLeasingDashboardPageChange(l))}),e.j41(60,"ngx-datatable-column",45),e.DNE(61,it,4,4,"ng-template",46),e.k0s(),e.j41(62,"ngx-datatable-column",47),e.DNE(63,ot,2,1,"ng-template",46),e.k0s(),e.Z7z(64,_t,3,3,null,null,e.fX1),e.j41(66,"ngx-datatable-column",48),e.DNE(67,ft,2,2,"ng-template",46),e.k0s(),e.DNE(68,vt,2,0,"ngx-datatable-footer",49),e.k0s()()()(),e.DNE(69,Dt,1,0,"app-leasing-dashboard-grid",25),e.j41(70,"div",50)(71,"p",51),e.EFF(72,"Site Team Access"),e.k0s(),e.j41(73,"div",52)(74,"div",53)(75,"label",54),e.EFF(76),e.k0s(),e.j41(77,"p-dropdown",55),e.mxI("ngModelChange",function(l){return e.eBV(a),e.DH7(i.siteTeamAccessfilter,l)||(i.siteTeamAccessfilter=l),e.Njj(l)}),e.bIt("onChange",function(){return e.eBV(a),e.Njj(i.onGraphTimeChanged())}),e.k0s()(),e.j41(78,"div",56)(79,"p-calendar",57,2),e.mxI("ngModelChange",function(l){return e.eBV(a),e.DH7(i.rangeDates,l)||(i.rangeDates=l),e.Njj(l)}),e.bIt("onSelect",function(){return e.eBV(a),e.Njj(i.onCalendarRangeSelect())}),e.k0s()()()(),e.j41(81,"div",58)(82,"div",59)(83,"div",29)(84,"div",30)(85,"div",31)(86,"div",32)(87,"div",33)(88,"div",34)(89,"label",60),e.EFF(90,"Entries"),e.k0s(),e.j41(91,"p-dropdown",35),e.mxI("ngModelChange",function(l){return e.eBV(a),e.DH7(i.basicSelectedOptionForAccessHistoryView,l)||(i.basicSelectedOptionForAccessHistoryView=l),e.Njj(l)}),e.bIt("onChange",function(){return e.eBV(a),e.Njj(i.onAccessHistoryPageSizeNgGridChanged())}),e.k0s()(),e.j41(92,"div",36)(93,"div",37)(94,"input",38),e.bIt("keyup.enter",function(l){return e.eBV(a),e.Njj(i.filterUpdateSiteTeamAccessGrid(l))}),e.mxI("ngModelChange",function(l){return e.eBV(a),e.DH7(i.filterValueForAccessHistoryView,l)||(i.filterValueForAccessHistoryView=l),e.Njj(l)}),e.k0s(),e.nrm(95,"i",39),e.k0s(),e.j41(96,"div",37)(97,"p-dropdown",61),e.mxI("ngModelChange",function(l){return e.eBV(a),e.DH7(i.unitField,l)||(i.unitField=l),e.Njj(l)}),e.bIt("onChange",function(){return e.eBV(a),e.Njj(i.filterAccessHistoryByUnit())}),e.k0s()(),e.j41(98,"div",40)(99,"p-dropdown",62),e.mxI("ngModelChange",function(l){return e.eBV(a),e.DH7(i.reasonField,l)||(i.reasonField=l),e.Njj(l)}),e.bIt("onChange",function(){return e.eBV(a),e.Njj(i.filterAccessHistoryByReason())}),e.k0s()(),e.j41(100,"div",40)(101,"button",63),e.bIt("click",function(l){e.eBV(a);const d=e.sdS(105);return e.Njj(d.toggle(l))}),e.EFF(102," Export "),e.nrm(103,"i",42),e.k0s(),e.nrm(104,"p-menu",43,3),e.k0s()()()()()(),e.j41(106,"div")(107,"ngx-datatable",64,4),e.bIt("sort",function(l){return e.eBV(a),e.Njj(i.onAccessHistoryListSort(l))})("page",function(l){return e.eBV(a),e.Njj(i.onAccessHistoryPageChange(l))}),e.nrm(109,"ngx-datatable-column",65)(110,"ngx-datatable-column",66),e.j41(111,"ngx-datatable-column",67),e.DNE(112,Lt,2,5,"ng-template",46),e.k0s(),e.j41(113,"ngx-datatable-column",68),e.DNE(114,xt,2,5,"ng-template",46),e.k0s(),e.nrm(115,"ngx-datatable-column",69),e.DNE(116,Pt,2,0,"ngx-datatable-footer",49),e.k0s()()()()()(),e.DNE(117,Et,25,9,"ng-template",70,5,e.C5r)}if(2&o){let a,r;e.R7$(7),e.SpI(" ",null!==(a=null!==(a=i.communityName)&&void 0!==a?a:null==i.communityInfoData||null==i.communityInfoData[0]?null:i.communityInfoData[0].CommunityName)&&void 0!==a?a:""," "),e.R7$(2),e.Y8G("ngIf",i.isEditCommunityAllowed&&!i.communitySettingsUpgraded),e.R7$(),e.Y8G("ngIf",i.isEditCommunityAllowed&&i.communitySettingsUpgraded),e.R7$(2),e.SjE(" ",null!==(r=null==i.communityInfoData||null==i.communityInfoData[0]?null:i.communityInfoData[0].AddressLine1)&&void 0!==r?r:""," ",null!=i.communityInfoData&&null!=i.communityInfoData[0]&&i.communityInfoData[0].AddressLine2?(null==i.communityInfoData||null==i.communityInfoData[0]?null:i.communityInfoData[0].AddressLine2)+",":""," ",null!=i.communityInfoData&&null!=i.communityInfoData[0]&&i.communityInfoData[0].City?(null==i.communityInfoData||null==i.communityInfoData[0]?null:i.communityInfoData[0].City)+",":""," ",null!=i.communityInfoData&&null!=i.communityInfoData[0]&&i.communityInfoData[0].State?null==i.communityInfoData||null==i.communityInfoData[0]?null:i.communityInfoData[0].State:""," ",null!=i.communityInfoData&&null!=i.communityInfoData[0]&&i.communityInfoData[0].ZipCode?null==i.communityInfoData||null==i.communityInfoData[0]?null:i.communityInfoData[0].ZipCode:""," "),e.R7$(2),e.SpI(" ",i.unitCount,""),e.R7$(6),e.Y8G("ngIf",(null==i.leasingDashboardData?null:i.leasingDashboardData.length)>0),e.R7$(4),e.vxM(i.isChecklistTabAllowed?24:-1),e.R7$(),e.vxM(i.isLeasingDashboardVisible?25:-1),e.R7$(2),e.Y8G("ngClass",e.lJ4(79,P))("routerLink",e.eq3(80,Ge,i.communityId)),e.R7$(3),e.Y8G("ngClass",e.lJ4(82,P))("routerLink",e.eq3(83,je,i.communityId)),e.R7$(2),e.Y8G("ngIf",4==i.communityTypeId||i.isSelfGuidedToursAvailableForCommunity&&"NoLock"!=i.communityLockStatus),e.R7$(),e.Y8G("ngIf",i.isPmsCommunity),e.R7$(2),e.Y8G("routerLink",e.eq3(85,Ne,i.communityId)),e.R7$(2),e.Y8G("hidden",!i.activeList),e.R7$(10),e.Y8G("options",i.pageSizeList),e.R50("ngModel",i.basicSelectedOptionForLeasingDashboardView),e.R7$(3),e.R50("ngModel",i.filterValueForleasingDashboardView),e.R7$(6),e.Y8G("popup",!0)("model",i.items),e.R7$(2),e.Y8G("rows",i.leasingDashboardData)("count",i.leasingDashboardPage.totalElements)("externalPaging",!0)("externalSorting",!0)("columnMode",i.ColumnMode.force)("headerHeight",40)("rowHeight",i.getRowHeight.bind(i))("footerHeight",50)("limit",i.basicSelectedOptionForLeasingDashboardView)("rowClass",i.getRowClass.bind(i))("messages",i.tableMessages)("scrollbarH",!0),e.R7$(2),e.Y8G("sortable",!0),e.R7$(2),e.Y8G("sortable",!0),e.R7$(2),e.Dyx(i.moveLockBatteryTogetherColumns),e.R7$(2),e.Y8G("sortable",!0),e.R7$(2),e.Y8G("ngIf",!0),e.R7$(),e.Y8G("ngIf",!i.activeList),e.R7$(7),e.SpI("",i.siteTeamAccessDuration," "),e.R7$(),e.Y8G("options",i.siteTeamAccessList),e.R50("ngModel",i.siteTeamAccessfilter),e.R7$(2),e.R50("ngModel",i.rangeDates),e.Y8G("showIcon",!0)("readonlyInput",!0),e.R7$(12),e.Y8G("options",i.pageSizeHistoryViewList),e.R50("ngModel",i.basicSelectedOptionForAccessHistoryView),e.R7$(3),e.R50("ngModel",i.filterValueForAccessHistoryView),e.R7$(3),e.Y8G("options",i.modelUnitList),e.R50("ngModel",i.unitField),e.Y8G("filter",!0),e.R7$(2),e.Y8G("options",i.accessType),e.R50("ngModel",i.reasonField),e.R7$(5),e.Y8G("popup",!0)("model",i.Accesshistoryitems),e.R7$(3),e.Y8G("rows",i.rowData)("count",i.pageAccessHistory.totalElements)("externalPaging",!0)("externalSorting",!0)("columnMode","force")("headerHeight",40)("footerHeight",50)("limit",i.basicSelectedOptionForAccessHistoryView)("rowHeight",45)("messages",i.accessHistoryTableMessages),e.R7$(2),e.Y8G("width",200)("sortable",!0),e.R7$(),e.Y8G("width",200)("sortable",!0),e.R7$(),e.Y8G("width",200)("sortable",!0),e.R7$(2),e.Y8G("width",185)("sortable",!0),e.R7$(2),e.Y8G("width",185)("sortable",!0),e.R7$(),e.Y8G("ngIf",!0)}},dependencies:[h.MD,h.YU,h.bT,k.YN,k.me,k.BC,k.vS,f.Kj,f.ge,f.ed,f.V,f.QI,f.jS,f.J0,f.bJ,E.kr,E.ms,D.iI,D.Wk,R.Mk,R.W1,B.m,Ae,T.C,Ee.w,B.S,H.rO,H.Vv],styles:[".ngx-table{font-size:16px} .ngx-table td, .ngx-table th{font-size:16px}.active[_ngcontent-%COMP%]{filter:invert(55%) sepia(66%) saturate(3601%) hue-rotate(332deg) brightness(104%) contrast(84%)}.badge[_ngcontent-%COMP%]{display:inline-block;padding:5px 10px;border-radius:15px;font-size:12px;text-align:center;min-width:80px;max-width:120px}.badge-gray[_ngcontent-%COMP%]{background-color:#f0f0f0;color:#333;font-weight:500}.badge-orange[_ngcontent-%COMP%]{background-color:#ffdac0;color:#000;font-weight:500}.highlight-row[_ngcontent-%COMP%]{background-color:#8b5e823d;color:#000;font-weight:500}.temperature[_ngcontent-%COMP%]{font-size:24px;color:#333;font-weight:700} .row-color{background-color:#fff3ea}.alertspinner[_ngcontent-%COMP%]{margin-left:10px;font-weight:400!important;font-size:14px!important}.search-icon[_ngcontent-%COMP%]{position:relative}.search-icon[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{padding-right:40px}.search-icon[_ngcontent-%COMP%] .iapts-icon-search[_ngcontent-%COMP%]{color:#6f767e;position:absolute;font-size:16px;right:15px;top:12px}.custom-dropdown[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto;position:absolute;z-index:1000}.form-control[_ngcontent-%COMP%]{height:100%!important;border-radius:8px!important;border:1px solid #ebebeb!important;background-color:transparent!important;box-shadow:none!important}.taglist-select-search[_ngcontent-%COMP%]{position:relative}.taglist-select-search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{height:38px;display:flex;flex-wrap:nowrap;gap:16px}.taglist-select-search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-prepend[_ngcontent-%COMP%]{border:none;min-width:118px}.taglist-select-search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-prepend[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border:1px solid #ebebeb;background:transparent;height:100%!important;border-radius:8px!important}.taglist-select-search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-prepend[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{box-shadow:none;outline:none}.taglist-select-search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-prepend[_ngcontent-%COMP%] + .input-search-icon[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border-radius:0 4px 4px 0;border:1px solid #ebebeb;background:transparent}.taglist-select-search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-prepend[_ngcontent-%COMP%] + .input-search-icon[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{box-shadow:none;outline:none}.taglist-select-search[_ngcontent-%COMP%] .search-tags-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;padding:15px 20px;position:absolute;width:100%;background:#fff;box-shadow:0 8px 12px #1113150d;border-radius:8px;top:38px;z-index:99}.taglist-select-search[_ngcontent-%COMP%] .search-tags-container[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{position:absolute;top:1px;right:3px;display:block;width:16px;height:16px;font-size:100%;cursor:pointer}.export-download[_ngcontent-%COMP%]{background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.33594 13.3332L3.33594 14.1665C3.33594 15.5472 4.45523 16.6665 5.83594 16.6665L14.1693 16.6665C15.55 16.6665 16.6693 15.5472 16.6693 14.1665L16.6693 13.3332M13.3359 9.99984L10.0026 13.3332M10.0026 13.3332L6.66927 9.99984M10.0026 13.3332L10.0026 3.33317' stroke='%236F767E' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");background-size:20px 20px;background-repeat:no-repeat;margin-right:8px;width:20px;height:20px;
1display:inline-block;position:relative;top:4px}.btn-export[_ngcontent-%COMP%]{padding:0 16px!important;line-height:28px!important}.dashboard-headings[_ngcontent-%COMP%]{padding:0 2%}.dashboard-tabs[_ngcontent-%COMP%]{cursor:pointer}.filtering-wrapper[_ngcontent-%COMP%]{display:flex;gap:8px}.filtering-wrapper-selects[_ngcontent-%COMP%]{width:146px;height:38px;position:relative}.filtering-search[_ngcontent-%COMP%]{width:216;height:38px;position:relative;margin-right:10px}.export-btn[_ngcontent-%COMP%]{width:100;height:38px;position:relative}.header-styling[_ngcontent-%COMP%], .filters-styling[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.highlight-units[_ngcontent-%COMP%]{color:#007bff;font-weight:700}.search-icon-styling[_ngcontent-%COMP%]{position:absolute;right:15px;top:50%;transform:translateY(-50%);pointer-events:none;color:gray}.no-pointer-events[_ngcontent-%COMP%]{pointer-events:none}.app-card-border[_ngcontent-%COMP%]{overflow:initial}.m-r-10[_ngcontent-%COMP%]{margin-left:10px}.thermostat-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;width:max-content}.thermostat-wrapper[_ngcontent-%COMP%] .thermostat-type[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.thermostat-wrapper[_ngcontent-%COMP%] .thermostat-type[_ngcontent-%COMP%] .temperature-content[_ngcontent-%COMP%]{font-size:12px;margin:1px 0 0}.thermostat-wrapper[_ngcontent-%COMP%] .thermostat-content[_ngcontent-%COMP%] .thermostat-primary[_ngcontent-%COMP%], .thermostat-wrapper[_ngcontent-%COMP%] .thermostat-content[_ngcontent-%COMP%] .thermostat-secondary[_ngcontent-%COMP%], .thermostat-wrapper[_ngcontent-%COMP%] .hvac-content[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block}.thermostat-header-icon[_ngcontent-%COMP%]{margin:0 0 -6px;position:relative;vertical-align:middle}.thermostat-header-icon[_ngcontent-%COMP%] .thermostat-icon[_ngcontent-%COMP%]{background-size:16px 16px;width:16px;height:16px;margin:0 0 0 8px}.thermostat-badge[_ngcontent-%COMP%]{position:relative;vertical-align:middle;min-width:105px;max-width:max-content}.thermostat-badge[_ngcontent-%COMP%]:nth-child(1){margin-right:4px} .p-tooltip .p-tooltip-text{color:#fff!important;font-family:Gilroy,sans-serif!important;font-size:12px!important;line-height:18px!important;letter-spacing:.1px!important;padding:8px!important;width:168px!important;border-radius:4px!important;background-color:#000!important;opacity:.8!important;margin:0 0 4px 50px!important} .p-tooltip:before, .p-tooltip:after{display:none!important} .p-tooltip .p-tooltip-arrow{display:none!important} .app-ngx-table.ngx-datatable.material .datatable-body-row, .app-ngx-table.ngx-datatable.material .datatable-scroll .datatable-body-row, .app-ngx-table.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row, .app-ngx-table.ngx-datatable .datatable-scroll .datatable-body-row{height:auto!important;min-height:45px} .app-ngx-table.ngx-datatable.material .datatable-body .datatable-body-row .datatable-body-cell, .app-ngx-table.ngx-datatable.material .datatable-body .datatable-body-row .datatable-body-group-cell{align-items:flex-start!important;justify-content:flex-start!important;padding-top:.7rem!important}[_nghost-%COMP%] .p-calendar .p-inputtext{display:none!important;position:absolute}[_nghost-%COMP%] .p-datepicker{left:auto!important;right:0;z-index:1000;top:48px!important}[_nghost-%COMP%] p-calendar:not(.not-applied) .p-calendar .p-datepicker-trigger{border-radius:8px;height:40px;background:#f4f4f4;border:2px solid #f4f4f4;border-left:none;transition:none;width:48px;cursor:pointer}[_nghost-%COMP%] .p-datepicker table td{padding:.4em}[_nghost-%COMP%] .p-datepicker table td>a, [_nghost-%COMP%] .p-datepicker table td>span{text-align:center;color:#333;padding:.2em .6em;transition:box-shadow .2s;border-radius:3px}"]})}}return n})()},56875:(A,x,c)=>{c.d(x,{w:()=>I});var C=c(54438),D=c(60177);let I=(()=>{class f{constructor(w){this.location=w}onClick(){this.location.back()}static{this.\u0275fac=function(m){return new(m||f)(C.rXU(D.aZ))}}static{this.\u0275dir=C.FsC({type:f,selectors:[["","appBackNavigate",""]],hostBindings:function(m,h){1&m&&C.bIt("click",function(){return h.onClick()})},standalone:!0})}}return f})()},81847:(A,x,c)=>{c.d(x,{C:()=>f});
1var C=c(96508),I=c(54438);let f=(()=>{class L{transform(m,h,y){return"date"===y?this.localDateConv(m,h):"time"===y?this.localTimeConv(m,h):""}localDateConv(m,h){let y,g;if("0001-01-01T00:00:00"!=m&&null!=m){let b=C.utc(m);if(null!=h){let T=JSON.parse(h).display;y=m.includes("T00:00:00")?C(b).format("M/D/YYYY"):C(b).tz(T).format("M/D/YYYY")}else y=C(b).local();g=y}return g}localTimeConv(m,h){let y,g;if("0001-01-01T00:00:00"!=m&&null!=m){let b=C.utc(m);if(null!=h){let T=JSON.parse(h).display;y=C(b).tz(T)}else y=C(b).local();null!=(m=y)&&(g=C(m).format("h:mm A"))}return g}static{this.\u0275fac=function(h){return new(h||L)}}static{this.\u0275pipe=I.EJ8({name:"formatUtcDate",type:L,pure:!0,standalone:!0})}}return L})()}}]);
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.