1"use strict";(self.webpackChunke_renter_plan_app=self.webpackChunke_renter_plan_app||[]).push([[852],{66852(A,D,s){s.d(D,{ResidentInformationPageModule:()=>N});var l=s(72200),c=s(84341),u=s(29330),y=s(38132),S=s(93887),h=s(8842),d=s(11514),f=s(53983),e=s(73664),o=s(2615),I=s(18608),P=s(62213),_=s(50616),g=s(98137),b=s(69909);const p=n=>({"invalid-field":n}),E=n=>({"text-danger":n}),C=n=>({"background-image":n});function x(n,v){if(1&n){const t=e.RV6();e.j41(0,"div",36),e.bIt("click",function(){o.eBV(t);const a=e.XpG(2);return o.Njj(a.gotoPropertyPhotos())}),e.j41(1,"div",37)(2,"div",38)(3,"em"),e.EFF(4,"Powered by"),e.k0s()(),e.nrm(5,"img",39),e.k0s()()}if(2&n){const t=e.XpG(2);e.Y8G("ngStyle",e.eq3(2,C,t.propertyImage))("@fadeInOut",void 0)}}function R(n,v){if(1&n){const t=e.RV6();e.j41(0,"div",21)(1,"label",40),e.EFF(2,"Lease Start Date*"),e.k0s(),e.j41(3,"div",30)(4,"input",41,1),e.bIt("click",function(){o.eBV(t);const a=e.sdS(5);return o.Njj(a.toggle())})("input",function(a){o.eBV(t);const i=e.XpG(2);return o.Njj(a.target.value=i.dateFormatter.parseInput(a))})("blur",function(a){o.eBV(t);const i=e.XpG(2);return o.Njj(i.SharedDataService.data.userActions.residentInfo.leaseStartDate=i.dateFormatter.parse(a.target.value))}),e.k0s()()()}if(2&n){const t=e.XpG(2);e.R7$(4),e.Y8G("ngClass",e.eq3(4,p,!t.validLeaseStartDate(t.SharedDataService.data.userActions.residentInfo.leaseStartDate)&&t.attemptSubmit))("ngModel",t.SharedDataService.data.userActions.residentInfo.leaseStartDate)("maxDate",t.getDateRange("leaseStartMax"))("displayMonths",2)}}function L(n,v){if(1&n){const t=e.RV6();e.j41(0,"div",3)(1,"div",4)(2,"div",5),e.nrm(3,"app-step-tracker",6),e.k0s()(),e.j41(4,"div",7)(5,"div",5)(6,"div",8)(7,"div",9)(8,"h1",10),e.EFF(9,"My Property And Details"),e.k0s()()(),e.j41(10,"div",11)(11,"div",12),e.DNE(12,x,6,4,"div",13),e.k0s(),e.j41(13,"div",14)(14,"div",15)(15,"div",16)(16,"div",17)(17,"span",18),e.EFF(18),e.k0s(),e.j41(19,"span",19),e.EFF(20),e.k0s(),e.j41(21,"span",19),e.EFF(22),e.k0s()(),e.j41(23,"div",20)(24,"div",21)(25,"label",22)(26,"span",23),e.EFF(27,"*Indicates Required Field"),e.k0s(),e.EFF(28," First Name* "),e.k0s(),e.j41(29,"input",24),e.bIt("input",function(a){o.eBV(t);const i=e.XpG();return o.Njj(i.SharedDataService.data.userActions.residentInfo.firstName=i.SharedDataService.scrubCharacters(a,"name"))}),e.mxI("ngModelChange",function(a){o.eBV(t);const i=e.XpG();return e.DH7(i.SharedDataService.data.userActions.residentInfo.firstName,a)||(i.SharedDataService.data.userActions.residentInfo.firstName=a),o.Njj(a)}),e.k0s()(),e.j41(30,"div",21)(31,"label",25),e.EFF(32,"Last Name*"),e.k0s(),e.j41(33,"input",26),e.bIt("input",function(a){o.eBV(t);const i=e.XpG();return o.Njj(i.SharedDataService.data.userActions.residentInfo.lastName=i.SharedDataService.scrubCharacters(a,"name"))}),e.mxI("ngModelChange",function(a){o.eBV(t);const i=e.XpG();return e.DH7(i.SharedDataService.data.userActions.residentInfo.lastName,a)||(i.SharedDataService.data.userActions.residentInfo.lastName=a),o.Njj(a)}),e.k0s()(),e.j41(34,"div",21)(35,"label",27),e.EFF(36,"Email*"),e.k0s(),e.j41(37,"input",28),e.mxI("ngModelChange",function(a){o.eBV(t);const i=e.XpG();return e.DH7(i.SharedDataService.data.userActions.residentInfo.email,a)||(i.SharedDataService.data.userActions.residentInfo.email=a),o.Njj(a)}),e.k0s()(),e.j41(38,"div",21)(39,"label",29),e.EFF(40,"Coverage Start Date*"),e.k0s(),e.j41(41,"div",30)(42,"input",31,0),e.bIt("click",function(){o.eBV(t);const a=e.sdS(43);return o.Njj(a.toggle())})("input",function(a){o.eBV(t);const i=e.XpG();return o.Njj(a.target.value=i.dateFormatter.parseInput(a))})("blur",function(a){o.eBV(t);const i=e.XpG();return o.Njj(i.SharedDataService.data.userActions.residentInfo.coverageDate=i.dateFormatter.parse(a.target.value))}),e.k0s()(),e.j41(44,"div",32),e.EFF(45),e.nI1(46,"date"),e.nI1(47,"date"),e.k0s()(),e.DNE(48,R,6,6,"div",33),e.j41(49,"div",34)(50,"input",35),e.bIt("click",function(){o.eBV(t);const a=e.XpG();return o.Njj(a.getQuote())}),e.k0s()()()()()()()()()()}if(2&n){const t=e.XpG();e.R7$(12),e.Y8G("ngIf",t.propertyImageShow),e.R7$(6),e.JRh(t.SharedDataService.data.userActions.selectProperty.selectedProperty.propertyName),e.R7$(2),e.JRh(t.SharedDataService.data.userActions.selectProperty.selectedProperty.address),e.R7$(2),e.E5c("",t.SharedDataService.data.userActions.selectProperty.selectedProperty.city,", ",t.SharedDataService.data.userActions.selectProperty.selectedProperty.state.abbr," ",t.SharedDataService.data.userActions.selectProperty.selectedProperty.zipCode),e.R7$(7),e.Y8G("ngClass",e.eq3(29,p,!t.SharedDataService.validateName(t.SharedDataService.data.userActions.residentInfo.firstName)&&t.attemptSubmit)),e.R50("ngModel",t.SharedDataService.data.userActions.residentInfo.firstName),e.BMQ("maxlength",30),e.R7$(4),e.Y8G("ngClass",e.eq3(31,p,!t.SharedDataService.validateLastName(t.SharedDataService.data.userActions.residentInfo.lastName)&&t.attemptSubmit)),e.R50("ngModel",t.SharedDataService.data.userActions.residentInfo.lastName),e.BMQ("maxlength",30),e.R7$(4),e.Y8G("ngClass",e.eq3(33,p,!t.SharedDataService.validateEmailFormat(t.SharedDataService.data.userActions.residentInfo.email)&&t.attemptSubmit)),e.R50("ngModel",t.SharedDataService.data.userActions.residentInfo.email),e.R7$(5),e.Y8G("ngClass",e.eq3(35,p,!t.validCoverageDate(t.SharedDataService.data.userActions.residentInfo.coverageDate)&&t.attemptSubmit))("ngModel",t.SharedDataService.data.userActions.residentInfo.coverageDate)("minDate",t.getDateRange("min"))("maxDate",t.getDateRange("max"))("displayMonths",2),e.R7$(2),e.Y8G("ngClass",e.eq3(37,E,!t.validCoverageDate(t.SharedDataService.data.userActions.residentInfo.coverageDate))),e.R7$(),e.Lme(" Your Coverage Start Date can be between ",e.i5U(46,23,t.currentDate,"longDate")," and ",e.i5U(47,26,t.propertyLimitDate,"longDate"),". "),e.R7$(3),e.Y8G("ngIf",t.showLeaseStartDate)}}const M=[{component:(()=>{class n{constructor(t,r,a,i,F,m){this.SharedDataService=t,this.ErpGatewayService=r,this.GoogleAnalyticsEventsService=a,this.router=i,this.route=F,this.renderer=m,this.primaryInfo={mobileNumber:"",email:"",dateOfBirth:{},coverageDate:{}},this.propertyID="",this.propertyImage="",this.propertyImageShow=!1,this.attemptSubmit=!1,this.propertyEffectiveDateLimit=0,this.currentDate=new Date,this.gettingPhoto=!1,this.gettingProperty=!1,this.propertyLimitDate=new Date,this.timezoneOffset=0,this.dateFormatter=new f.v,this.leaseStartMaxDays=120,this.leaseStartMaxDate=new Date,this.showLeaseStartDate=!1,this.propertyPhotoData={propertyID:0,imageSize:"940x600"},this.tokenRefreshedListener||(this.tokenRefreshedListener=m.listen("document","tokenRefreshed",k=>{console.log("TOKEN LISTENER GETTING EVENT!"),this.gettingPhoto&&this.getPropertyPhoto(this.propertyPhotoData),this.gettingProperty&&this.getPropertyInfo(this.propertyID)})),this.tokenPhotoLoadedListener||(this.tokenPhotoLoadedListener=m.listen("document","photoLoaded",k=>{console.log("PHOTO LISTENER GETTING EVENT!"),this.showPropertyImageAfterLoad()}))}gotoPropertyPhotos(){window.open("https://propertyphotos.com/","_blank")}getDateRange(t){return"min"===t?{year:this.currentDate.getFullYear(),month:this.currentDate.getMonth()+1,day:this.currentDate.getDate()}:"max"===t?{year:this.propertyLimitDate.getFullYear(),month:this.propertyLimitDate.getMonth()+1,day:this.propertyLimitDate.getDate()}:"leaseStartMax"===t?{year:this.leaseStartMaxDate.getFullYear(),month:this.leaseStartMaxDate.getMonth()+1,day:this.leaseStartMaxDate.getDate()}:void 0}validCoverageDate(t){let r=!1,a=!1;return"object"!=typeof t||""===t||!t||(t.year>this.currentDate.getFullYear()||t.year===this.currentDate.getFullYear()&&(t.month>this.currentDate.getMonth()+1||t.month===this.currentDate.getMonth()+1&&t.day>=this.currentDate.getDate()))&&(r=!0),"object"!=typeof t||""===t||!t||(t.year<this.propertyLimitDate.getFullYear()||t.year===this.propertyLimitDate.getFullYear()&&(t.month<this.propertyLimitDate.getMonth()+1||t.month===this.propertyLimitDate.getMonth()+1&&t.day<=this.propertyLimitDate.getDate()))&&(a=!0),!(!r||!a)}validLeaseStartDate(t){let r=!1;return t?new Date(`${t.month}/${t.day}
1/${t.year}`)<=this.leaseStartMaxDate&&(r=!0):r=!1,this.showLeaseStartDate||(r=!0),r}getQuote(){const t=this.SharedDataService.data.userActions.residentInfo;this.attemptSubmit=!0,this.validCoverageDate(t.coverageDate)&&this.validLeaseStartDate(t.leaseStartDate)&&this.SharedDataService.validateEmailFormat(t.email)&&this.SharedDataService.validateName(t.firstName)&&this.SharedDataService.validateLastName(t.lastName)?(console.log("passing the step event to parent function"),this.router.navigate(["/InsuranceQuote"])):this.SharedDataService.findInvalidFields()}showPropertyImageAfterLoad(){console.log("showing the property image."),this.propertyImageShow=!0}getPropertyInfo(t){this.gettingProperty=!0,this.ErpGatewayService.getProperty(t).subscribe(r=>{this.gettingProperty=!1,r.body.propertyId?(this.SharedDataService.data.userActions.selectProperty={selectedProperty:r.body,PMC:"",zipCode:r.body.zipCode,pmcName:"",altZipCode:r.body.zipCode,propertyList:[],filteredPropertyList:[],requestedProperties:!1,params:{zipCode:r.body.zipCode,pmc:""}},this.showLeaseStartDate=!!this.SharedDataService.data.showLeaseStartDate&&this.SharedDataService.data.userActions?.selectProperty?.selectedProperty?.isMultipleLiabilities,this.setupPropertyData(),this.GoogleAnalyticsEventsService.sendEvent("Resident Information","Success Get Property Info","")):(console.log(`NO PROPERTY FOUND FOR: ${t}`),this.GoogleAnalyticsEventsService.sendEvent("Resident Information","Success Get Property Info - No Property ID found",""))},r=>{this.gettingProperty=!1,this.GoogleAnalyticsEventsService.sendEvent("Resident Information","Error Get Property Info","")})}setupPropertyData(){this.propertyPhotoData.propertyID=this.SharedDataService.data.userActions.selectProperty.selectedProperty.propertyId,this.getPropertyPhoto(this.propertyPhotoData),this.timezoneOffset=this.currentDate.getTimezoneOffset()-300,console.log("CURRENT DATE: ",this.currentDate),console.log("CURRENT DATE TIMEZONE OFFSET: ",this.currentDate.getTimezoneOffset()),this.timezoneOffset>0&&(this.currentDate=new Date(+this.currentDate+6e4*this.timezoneOffset),console.log("CURRENT DATE UPDATED: ",this.currentDate)),this.propertyEffectiveDateLimit=this.SharedDataService.data.userActions.selectProperty.selectedProperty.coverageDateLimit,console.log(`GET PROPERTY EFFECTIVE DATE LIMIT (# OF DAYS): ${this.propertyEffectiveDateLimit}`),this.propertyLimitDate=new Date((new Date).setDate(this.currentDate.getDate()+this.propertyEffectiveDateLimit)),this.leaseStartMaxDate=new Date((new Date).setDate(this.currentDate.getDate()+this.leaseStartMaxDays)),c
1onsole.log(`GET PROPERTY EFFECTIVE DATE LIMIT (DATE): ${this.propertyLimitDate}`)}getPropertyPhoto(t){this.gettingPhoto=!0,this.ErpGatewayService.getPropertyPhoto(t).subscribe(r=>{if(this.gettingPhoto=!1,r.body){this.propertyImage=`url("${r.body}")`;const a=new Image;a.onload=function(){let i;document.createEvent?(i=document.createEvent("MouseEvent"),i.data=0,i.initMouseEvent("photoLoaded",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)):(i=new MouseEvent("photoLoaded",{view:window,bubbles:!0,cancelable:!0,detail:0}),i.data=0),document.dispatchEvent(i)},a.src=r.body,this.GoogleAnalyticsEventsService.sendEvent("Resident Information","Success Get Property Photo","")}else this.GoogleAnalyticsEventsService.sendEvent("Resident Information","Success Get Property Photo - No Photo","")},r=>{this.gettingPhoto=!1,this.GoogleAnalyticsEventsService.sendEvent("Resident Information","Error Get Property Photo","")})}ngOnInit(){this.SharedDataService.data.userActions.residentInfo||(this.SharedDataService.data.userActions.residentInfo={firstName:"",lastName:"",phoneNumber:"",email:"",dateOfBirth:{},coverageDate:{year:this.currentDate.getFullYear(),month:this.currentDate.getMonth()+1,day:this.currentDate.getDate()}}),this.route.queryParams.subscribe(t=>{console.log(t),t.property&&(this.propertyID=t.property,this.SharedDataService.data.userActions.selectProperty?(this.setupPropertyData(),this.showLeaseStartDate=this.SharedDataService.data.userActions?.selectProperty?.selectedProperty?.isMultipleLiabilities):this.getPropertyInfo(this.propertyID)),this.SharedDataService.data.showLeaseStartDate||(this.showLeaseStartDate=!1)})}ngOnDestroy(){this.tokenRefreshedListener&&this.tokenRefreshedListener(),this.tokenPhotoLoadedListener&&this.tokenPhotoLoadedListener()}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(I.H),e.rXU(P.v),e.rXU(_.i),e.rXU(g.Ix),e.rXU(g.nX),e.rXU(e.sFG))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-resident-information"]],standalone:!1,features:[e.Jv_([h.I5,c.Dg,{provide:h.tN,useClass:f.v}])],decls:1,vars:1,consts:[["dpCOV","ngbDatepicker"],["dpLSD","ngbDatepicker"],["class","bg-light-blue","id","residentInfoPage",4,"ngIf"],["id","residentInfoPage",1,"bg-light-blue"],[1,"top-white"],[1,"row","no-gutters"],["current","residentInformation"],[1,"page-container"],[1,"col-md-12","my-5"],[1,"text-center","pb-4"],[1,"text-center"],[1,"col-12","bg-primary-fade","pb-4","mt-5"],[1,"height-250-px","mx-auto","apartment-hero"],["class","height-250-px w-100 property-image",3,"ngStyle","click",4,"ngIf"],[1,"row","no-gutters","justify-content-center"],[1,"col-md-8","bg-primary-fade","member-info"],[1,"px-3","px-md-0"],[1,"text-center","pb-20","pt-3","mb-3"],["id","propertyTitle",1,"text-center","font-500","d-block","text-16"],[1,"d-block","font-300","ls-dot6"],[1,"row"],[1,"form-group","col-12"],["for","firstName",1,"w-100"],["aria-hidden","true",1,"float-right","text-12"],["type","text","name","firstName","id","firstName","placeholder","Legal First Name",1,"form-control",3,"input","ngModelChange","ngClass","ngModel"],["for","lastName",1,"required"],["type","text","name","lastName","id","lastName","placeholder","Legal Last Name",1,"form-control",3,"input","ngModelChange","ngClass","ngModel"],["for","email"],["type","email","name","email","id","email","placeholder","[email protected]",1,"form-control","primary-email",3,"ngModelChange","ngClass","ngModel"],["for","coverageStartDate"],[1,"input-group"],["placeholder","MM/DD/YYYY","name","coverageStartDate","id","coverageStartDate","ngbDatepicker","",1,"form-control","date-picker",3,"click","input","blur","ngClass","ngModel","minDate","maxDate","displayMonths"],[1,"text-12","mt-1",3,"ngClass"],["class","form-group col-12",4,"ngIf"],[1,"form-group","col-12","text-center","mt-3"],["type","button","value","Continue","id","Continue",1,"btn","btn-link","w-100",3,"click"],[1,"height-250-px","w-100","property-image",3,"click","ngStyle"],[1,"property-photo-cta","pointer","pb-2","px-2","bg-white","max-width-200-px"],[1,"text-8","position-absolute",2,"left","27px"],["alt","Property Photos","xmlns","http://www.w3.org/2000/svg","src","assets/images/PropertyPhotos_logo.svg",2,"padding-top","0.5rem","
1width","85%"],["for","leaseStartDate"],["placeholder","MM/DD/YYYY","name","leaseStartDate","id","leaseStartDate","ngbDatepicker","",1,"form-control","date-picker",3,"click","input","blur","ngClass","ngModel","maxDate","displayMonths"]],template:function(r,a){1&r&&e.DNE(0,L,51,39,"div",2),2&r&&e.Y8G("ngIf",a.SharedDataService.data.userActions.selectProperty&&a.SharedDataService.data.userActions.selectProperty.selectedProperty)},dependencies:[l.YU,l.bT,l.B3,c.me,c.BC,c.vS,h.cw,b.W,l.vh],styles:[".apartment-hero[_ngcontent-%COMP%]{background-size:cover;position:absolute;top:-80px;left:0;right:0;background-image:url(/assets/images/hero-people-boxes.jpg)}.member-info[_ngcontent-%COMP%]{margin-top:140px!important;border-color:#0073a8!important;border-top:8px solid}.btn-calendar[_ngcontent-%COMP%]{box-shadow:none;font-size:14px}.dob-icon-calendar[_ngcontent-%COMP%]{width:1.2rem;height:1rem;cursor:pointer}.top-white[_ngcontent-%COMP%]{width:100%;height:347px;background:#fff}.page-container[_ngcontent-%COMP%]{margin-top:-235px}.property-image[_ngcontent-%COMP%]{background-repeat:no-repeat;background-position:center;background-size:cover}.property-photo-cta[_ngcontent-%COMP%]{position:absolute;border-radius:0 0 2px;box-shadow:3px 3px 3px #00000059;color:#939596}"],data:{animation:[(0,d.hZ)("fadeInOut",[(0,d.kY)(":enter",[(0,d.iF)({opacity:0}),(0,d.i0)("500ms ease-in",(0,d.iF)({opacity:1}))]),(0,d.kY)(":leave",[(0,d.i0)("500ms ease-in",(0,d.iF)({opacity:0}))])])]}})}}return n})(),path:""}];let N=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=o.G2t({providers:[(0,u.$R)((0,u.Sx)())],imports:[l.MD,y.iI.forChild(M),c.YN,h.UN,S.G]})}}return n})()}}]);
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.