1"use strict";(self.webpackChunkmsm=self.webpackChunkmsm||[]).push([[66],{10066:(R,M,p)=>{p.r(M),p.d(M,{BookingModule:()=>In});var l=p(36895),d=p(24006),m=p(47057),_=p(7625),t=p(94650),f=p(62169),w=p(26682),s=p(34793),h=p(7053),y=p(86834),g=p(44339),v=p(89916),I=p(24363),C=p(18455),S=p(46289),T=p(33231),L=p(52073),k=p(54755);function A(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",16),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e.StudentId),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate2("",e.FirstName," ",e.LastName," ")}}function Z(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",13)(1,"mat-form-field")(2,"mat-label"),t.\u0275\u0275text(3,"Select a student"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"mat-select",14),t.\u0275\u0275listener("selectionChange",function(i){t.\u0275\u0275restoreView(e);const r=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(r.studentProperty(i.value))}),t.\u0275\u0275elementStart(5,"mat-option")(6,"ngx-mat-select-search",15),t.\u0275\u0275listener("ngModelChange",function(i){t.\u0275\u0275restoreView(e);const r=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(r.studentFilter=i)}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(7,A,2,3,"mat-option",10),t.\u0275\u0275pipe(8,"stringFilterBy"),t.\u0275\u0275elementEnd()()()}if(2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(6),t.\u0275\u0275property("formControl",e.searchStudent)("ngModel",e.studentFilter),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind3(8,3,e.studentData,e.studentFilter,"FirstName"))}}function X(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",16),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e.id?e.id:e),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",e.name?e.name:e," ")}}function tt(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",20)(1,"div",21),t.\u0275\u0275listener("click",function(){const r=t.\u0275\u0275restoreView(e).$implicit,c=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(c.getProperty(r))}),t.\u0275\u0275elementStart(2,"div",22),t.\u0275\u0275element(3,"img",23),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div")(5,"h5",24),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"div")(8,"h4",25),t.\u0275\u0275text(9),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(10,"div")(11,"p",26),t.\u0275\u0275text(12),t.\u0275\u0275elementEnd()()()()}if(2&n){const e=a.$implicit;t.\u0275\u0275advance(3),t.\u0275\u0275property("src",e.thumbnail.url,t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",null==e?null:e.name,""),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate2("",null==e?null:e.city,",\xa0",null==e?null:e.country,""),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(e.dis
1playPrice?e.displayPrice:"Price not available")}}function et(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",27)(1,"button",28),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(i.viewMore())}),t.\u0275\u0275text(2,"view more"),t.\u0275\u0275elementEnd()()}}function nt(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div",17)(1,"div",5),t.\u0275\u0275template(2,tt,13,5,"div",18),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(3,et,3,0,"div",19),t.\u0275\u0275elementEnd()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",e.totalProperty),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",e.length!=(null==e.totalProperty?null:e.totalProperty.length))}}function rt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"div",29)(1,"h3",30),t.\u0275\u0275text(2,"Property not found, please choose another country, city or university"),t.\u0275\u0275elementEnd()())}let ot=(()=>{const a=class{constructor(o,i,r,c,u,b,x,E,G){this.booking=o,this.fb=i,this.toaster=r,this.router=c,this.authService=u,this.location=b,this.miscCountry=x,this.studentService=E,this.breadCrumb=G,this.onDestroy$=new m.Subject,this.universityList=[],this.countryList=[],this.city=[],this.propertyList=[],this.universityName=[],this.propertyStatus=!1,this.allRoomList=[],this.allpropertyList=[],this.showMore=!1,this.totalProperty=[],this.AllpropertyListStatus=!1,this.searchInput=new d.p4(""),this.searchStudent=new d.p4(""),this.allList=[],this.cityname=[],this.unId="blank",this.studentData=[],this.studentId=0,this.newData=[],this.getPropertyInfo=this.fb.group({universityId:[],city:[],country:[],search:[],state:[],student:[]})}ngOnInit(){this.studentList(),this.existingStudentFlag=this.booking.getData(),this.date=(new Date).toISOString().slice(0,10),this.getCountry(),this.getCitysearch(),this.errormsg=!1,this.localStorageData=localStorage.getItem("Ul-data"),this.parseData=JSON.parse(this.localStorageData),this.patchData(),this.breadCrumb.addRouteToBreadCrumb("New Booking",!0)}patchData(){this.getPropertyInfo.patchValue({search:this.parseData?.countryCityuniversity,student:this.parseData?.studentId})}studentList(){this.studentService.listDetailed("all").subscribe(o=>{this.studentData=o.data,this.studentData.sort((i,r)=>i.FirstName.localeCompare(r.FirstName)),this.studentProperty(this.parseData?.studentId),this.getproperty(this.parseData?.countryCityuniversity)})}setLocalStorage(){localStorage.setItem("Ul-data",JSON.stringify({studentId:this.studentId,countryCityuniversity:this.countryCityUniversity}))}studentProperty(o){this.studentId=o,this.allList=[],this.setLocalStorage(),this.allList=this.allList.concat(this.universityList,this.countryList,this.cityname),this.allList.sort()}getproperty(o){this.countryCityUniversity=o,this.setLocalStorage();let i=this.getPropertyInfo.value.search;this.city.forEach(r=>{r.name==o&&this.booking.propertiesListBasedCity(i).pipe((0,_.R)(this.onDestroy$)).subscribe(c=>{this.propertyList=c,this.propertyStatus=!0,this.length=null!=this.propertyList?this.propertyList.length:null,this.totalProperty=null!=this.propertyList?this.propertyList.splice(0,12):this.propertyList},c=>{this.toaster.pop("error",this.propertyList.msg)})}),this.countryList.forEach(r=>{o==r&&this.booking.propertiesListBasedCountry(i).pipe((0,_.R)(this.onDestroy$)).subscribe(c=>{this.propertyList=c,this.propertyStatus=!0,this.length=null!=this.propertyList?this.propertyList.length:null,this.totalProperty=null!=this.propertyList?this.propertyList.splice(0,12):this.propertyList},c=>{this.toaster.pop("error",this.propertyList.msg)})}),this.universityList.forEach(r=>{o==r.id&&(this.unId=o,this.booking.propertiesListBasedUniversity1(o).pipe((0,_.R)(this.onDestroy$)).subscribe(c=>{this.propertyList=c,this.propertyStatus=!0,this.length=null!=this.propertyList?this.propertyList.length:null,this.totalProperty=null!=this.propertyList?this.propertyList.splice(0,12):this.propertyList},c=>{this.toaster.pop("error",this.propertyList.msg)}))})}getUniversitysearch(){this.booking.universityList().pipe((0,_.R)(this.onDestroy$)).subscribe(o=>{this.universityList=o,this.universityList.forEach(i=>
1{this.universityName.push(i.name)}),"2"===this.existingStudentFlag&&(this.allList=this.allList.concat(this.universityList,this.countryList,this.cityname),this.allList.sort())},o=>{this.toaster.pop("error",this.universityList.msg)})}getCitysearch(){this.booking.cityList().pipe((0,_.R)(this.onDestroy$)).subscribe(o=>{this.city=o,this.city.forEach(i=>{this.cityname.push(i.name)}),this.getUniversitysearch()},o=>{this.toaster.pop("error",this.city.msg)})}viewMore(){let o=null!=this.propertyList?this.propertyList.splice(0,12):this.propertyList;this.totalProperty=this.totalProperty.concat(o)}getCountry(){this.booking.countryList().pipe((0,_.R)(this.onDestroy$)).subscribe(o=>{this.countryList=o},o=>{this.toaster.pop("error",this.countryList.msg)})}getProperty(o){this.scrollTop(),this.propertyId=o.id,this.propertyCity=o.city,this.propertyCountry=o.country,this.propertyStatus=!1,this.router.navigate(["/member/bording/proprtyDetails/"+this.propertyCountry+"/"+this.propertyCity+"/"+this.unId+"/"+this.propertyId+"/"+this.studentId])}scrollTop(){document.getElementById("scrollTop").scrollIntoView()}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}back(){this.location.back()}};let n=a;return a.\u0275fac=function(i){return new(i||a)(t.\u0275\u0275directiveInject(f.q),t.\u0275\u0275directiveInject(d.QS),t.\u0275\u0275directiveInject(w.MJ),t.\u0275\u0275directiveInject(s.F0),t.\u0275\u0275directiveInject(h.$),t.\u0275\u0275directiveInject(l.Location),t.\u0275\u0275directiveInject(y.Y),t.\u0275\u0275directiveInject(g.V),t.\u0275\u0275directiveInject(v._))},a.\u0275cmp=t.\u0275\u0275defineComponent({type:a,selectors:[["app-booking"]],decls:20,vars:11,consts:[["id","scrollTop"],[1,"grey-card"],[3,"formGroup"],[1,"form-group"],[1,"tittle"],[1,"row"],["class","col-sm-4 com-md-4",4,"ngIf"],[1,"col-sm-6","com-md-6"],["formControlName","search",1,"form-control",3,"selectionChange"],["name","countryFilter","placeholderL
1abel","Search","noEntriesFoundLabel","No search result found",3,"formControl","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","mt-3",4,"ngIf"],["class","text-center mt-5",4,"ngIf"],[1,"col-sm-4","com-md-4"],["formControlName","student",1,"form-control",3,"selectionChange"],["placeholderLabel","Search","noEntriesFoundLabel","No search result found",3,"formControl","ngModel","ngModelChange"],[3,"value"],[1,"mt-3"],["class","col-xs-12 col-sm-6 col-md-4 col-lg-3 mb-3",4,"ngFor","ngForOf"],["class","text-center mt-4",4,"ngIf"],[1,"col-xs-12","col-sm-6","col-md-4","col-lg-3","mb-3"],[1,"pointer",3,"click"],[1,""],[1,"img-size",3,"src"],[1,"heading","room-card"],[1,"font-weight-bold"],[1,"pricing-info"],[1,"text-center","mt-4"],[1,"btn","btn-danger",3,"click"],[1,"text-center","mt-5"],[1,"heading"]],template:function(i,r){1&i&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"form",2)(3,"div")(4,"div",3)(5,"h4",4),t.\u0275\u0275text(6,"Search Safe Home For Student"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"div",5),t.\u0275\u0275template(8,Z,9,7,"div",6),t.\u0275\u0275elementStart(9,"div",7)(10,"mat-form-field")(11,"mat-label"),t.\u0275\u0275text(12,"Search country, city or university"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"mat-select",8),t.\u0275\u0275listener("selectionChange",function(u){return r.getproperty(u.value)}),t.\u0275\u0275elementStart(14,"mat-option")(15,"ngx-mat-select-search",9),t.\u0275\u0275listener("ngModelChange",function(u){return r.countryFilter=u}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(16,X,2,2,"mat-option",10),t.\u0275\u0275pipe(17,"stringFilterBy"),t.\u0275\u0275elementEnd()()()()()()()(),t.\u0275\u0275template(18,nt,4,2,"div",11),t.\u0275\u0275template(19,rt,3,0,"div",12),t.\u0275\u0275elementEnd()),2&i&&(t.\u0275\u0275advance(2),t.\u0275\u0275property("formGroup",r.getPropertyInfo),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf","1"==r.existingStudentFlag),t.\u0275\u0275advance(7),t.\u0275\u0275property("formControl",r.searchInput)("ngModel",r.countryFilter),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind3(17,7,r.allList,r.countryFilter,"name")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.propertyStatus&&null!=r.length),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.propertyStatus&&null==r.length))},dependencies:[d._Y,d.JJ,d.JL,d.oH,d.sg,d.u,l.NgForOf,l.NgIf,I.CK,C.v_,C.$V,S.x8,T.nu,L.S,k.L],styles:[".m-r-5[_ngcontent-%COMP%]{margin-right:.5em}.m-t-1[_ngcontent-%COMP%]{margin-top:1em}[_nghost-%COMP%] .new-agent-design button.mat-icon-button .mat-button-wrapper{inset:0!important}[_nghost-%COMP%] .new-agent-ui mat-hint, [_nghost-%COMP%] .new-agent-design mat-hint{display:block!important}.form-control[_ngcontent-%COMP%]{background-image:none!important}.image[_ngcontent-%COMP%]{display:block;width:100%;height:auto;cursor:pointer}.heading[_ngcontent-%COMP%]{font-weight:600;font-size:1.375rem;color:#e8252a}.img-size[_ngcontent-%COMP%]{width:100%;height:200px}.pointer[_ngcontent-%COMP%]{cursor:pointer}.room-card[_ngcontent-%COMP%]{margin-top:10px}.form-control[_ngcontent-%COMP%]{padding-top:0!important}.pricing-info[_ngcontent-%COMP%]{text-align:center;width:50%;color:#fff;background-color:#e8252a;border-radius:5px;box-shadow:2px 2px 4px #000}"]}),n})();var H=p(29203),N=p(8897),P=p(49095),it=p(24404),W=p(97392),at=p(28034),st=p(83574),lt=p(30632),dt=p(75016),pt=p(78635),K=p(34002),V=p(1319),mt=p(77987),F=p(99818),ct=p(37084),B=p(90782);let Y=(()=>{const a=class{constructor(o){this.document=o}onWindowScroll(){window.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop>0?this.windowScrolled=!0:(this.windowScrolled&&window.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop<10)&&(this.windowScrolled=!1)}scrollToTop(){document.getElementById("scrollTop").scrollIntoView()}ngOnInit(){}};let n=a;return a.\u0275fac=function(i){return new(i||a)(t.\u0275\u0275directiveInject(l.DOCUMENT))},a.\u0275cmp=t.\u0275\u0275defineComponent({type:a,selectors:[["app-property-iamge-gallary"]],hostBindings:function(i,r){1&i&&t.\u0275\u0275listener("scroll",function(){return r.onWindowScroll()},!1,t.\u0275\u0275resolveWindow)},decls:3,vars:0,consts:[[1,"scroll-to-top"],[3,"click"],[1,"fa","fa-chevron-up"]],template:function(i,r){1&i&&(t.\u0275\u0275elementStart(0,"div",0)(1,"button",1),t.\u0275\u0275listener("click",function(){return r.scrollToTop()}),t.\u0275\u0275element(2,"i",2),t.\u0275\u0275elementEnd()())},styles:[".scroll-to-top[_ngcontent-%COMP%]{position:fixed;bottom:55px;right:15px;opacity:0;transition:all .2s ease-in-out;z-index:10}.show-scrollTop[_ngcontent-%COMP%]{opacity:1!important;transition:all .2s ease-in-out}"]}),n})();var U=p(26342),J=p(8929),ut=p(74757),ht=p(68669);function gt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"First name is required"),t.\u0275\u0275elementEnd())}function ft(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Fill correct first name "),t.\u0275\u0275elementEnd())}function yt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Last name is required "),t.\u0275\u0275elementEnd())}function vt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Fill correct last name "),t.\u0275\u0275elementEnd())}function _t(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1," Date of birth is required "),t.\u0275\u0275elementEnd())}function Ct(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Gender is required "),t.\u0275\u0275elementEnd())}function It(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e.CountryId),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",e.CountryName," ")}}function bt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Nationality is required"),t.\u0275\u0275elementEnd())}function xt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Address is required "),t.\u0275\u0275elementEnd())}function Pt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Fill correct address "),t.\u0275\u0275elementEnd())}function St(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e.CountryId),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",e.CountryName," ")}}function Et(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Country is required "),t.\u0275\u0275elementEnd())}function Tt(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e.ProvinceId),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",e.ProvinceName," ")}}function Dt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"State is required "),t.\u0275\u0275elementEnd())}function Ot(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e.CityName),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",null==e?null:e.CityName,"")}}function Mt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"City is required "),t.\u0275\u0275elementEnd())}function wt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Email is required "),t.\u0275\u0275elementEnd())}function Lt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Email is not correct "),t.\u0275\u0275elementEnd())}function kt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Contact number is required"),t.\u0275\u0275elementEnd())}function Nt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Contact number is not correct "),t.\u0275\u0275elementEnd())}function Ft(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Post code is required "),t.\u0275\u0275elementEnd())}function Rt(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e.id),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",null==e?null:e.name,"")}}function At(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"University name is required"),t.\u0275\u0275elementEnd())}function Vt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Course name is required"),t.\u0275\u0275elementEnd())}function Bt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Fill correct course name "),t.\u0275\u0275elementEnd())}function Ut(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",e,"")}}function qt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1," Year of study is required"),t.\u0275\u0275elementEnd())}function jt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1," Start date is required"),t.\u0275\u0275elementEnd())}function $t(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1," End date is required "),t.\u0275\u0275elementEnd())}function zt(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e.id),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",null==e?null:e.name,"")}}function Gt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Property is required "),t.\u0275\u0275elementEnd())}function Ht(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",null==e?null:e.categoryId),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",null==e?null:e.category,"")}}function Wt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Category is required "),t.\u0275\u0275elementEnd())}function Kt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Room is required "),t.\u0275\u0275elementEnd())}function Yt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Tenancy is required "),t.\u0275\u0275elementEnd())}function Jt(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",e," ")}}function Qt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Country is required "),t.\u0275\u0275elementEnd())}function Zt(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",null==e?null:e.name),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",e.name,"")}}function Xt(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"City is required "),t.\u0275\u0275elementEnd())}function te(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Message is required"),t.\u0275\u0275elementEnd())}function ee(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Fill correct message "),t.\u0275\u0275elementEnd())}function ne(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Full Name is required"),t.\u0275\u0275elementEnd())}function re(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Fill correct full name "),t.\u0275\u0275elementEnd())}function oe(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Relationship is required"),t.\u0275\u0275elementEnd())}function ie(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Fill correct relationship "),t.\u0275\u0275elementEnd())}function ae(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Email is required "),t.\u0275\u0275elementEnd())}function se(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Email is not correct "),t.\u0275\u0275elementEnd())}function le(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Contact number is required"),t.\u0275\u0275elementEnd())}function de(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"contact number is not correct "),t.\u0275\u0275elementEnd())}function pe(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e.CountryName),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",e.CountryName," ")}}function me(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Nationality is required"),t.\u0275\u0275elementEnd())}function ce(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Address is required "),t.\u0275\u0275elementEnd())}function ue(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Fill correct address "),t.\u0275\u0275elementEnd())}function he(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e.CountryId),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",e.CountryName," ")}}function ge(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Country is required "),t.\u0275\u0275elementEnd())}function fe(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e.ProvinceId),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",e.ProvinceName," ")}}function ye(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"State is required "),t.\u0275\u0275elementEnd())}function ve(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-option",43),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275property("value",e.CityName),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",null==e?null:e.CityName,"")}}function _e(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"City is required "),t.\u0275\u0275elementEnd())}function Ce(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Post code is required "),t.\u0275\u0275elementEnd())}function Ie(n,a){1&n&&(t.\u0275\u0275elementStart(0,"mat-error"),t.\u0275\u0275text(1,"Valid post code is required "),t.\u0275\u0275elementEnd())}function be(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"span",63),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(2);
1return t.\u0275\u0275resetView(i.back(i.currentTab))}),t.\u0275\u0275element(1,"img",64),t.\u0275\u0275text(2,"Back "),t.\u0275\u0275elementEnd()}}function xe(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div",61),t.\u0275\u0275template(1,be,3,0,"span",62),t.\u0275\u0275elementEnd()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",1!==e.currentTab)}}function Pe(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",65),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(i.saveAndContinue(i.currentTab))}),t.\u0275\u0275text(1,"Save & Continue"),t.\u0275\u0275elementEnd()}if(2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275property("disabled",1==e.currentTab&&!e.personalInfo.valid)}}function Se(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",65),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(i.saveAndContinue(i.currentTab))}),t.\u0275\u0275text(1,"Save & Continue"),t.\u0275\u0275elementEnd()}if(2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275property("disabled",2==e.currentTab&&!e.univarsityInfo.valid)}}function Ee(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",65),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(i.saveAndContinue(i.currentTab))}),t.\u0275\u0275text(1,"Save & Continue"),t.\u0275\u0275elementEnd()}if(2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275property("disabled",3==e.currentTab&&!e.roomInfo.valid)}}function Te(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",66),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(i.saveAndContinue(i.currentTab))}),t.\u0275\u0275text(1,"Save "),t.\u0275\u0275elementEnd()}if(2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275property("disabled",4==e.currentTab&&!e.guardianInfo.valid)}}const D=function(){return{standalone:!0}};let Q=(()=>{const a=class{constructor(o,i,r,c,u,b,x,E,G,bn){this.data=o,this.fb=i,this.booking=r,this.toaster=c,this.mandatoryfieldCheckService=u,this.router=b,this.studentService=x,this.authService=E,this.dialogRef=G,this.miscCountry=bn,this.onDestroy$=new J.xQ,this.postCode=/^[1-9][0-9]*$/,this.modelPattern=U.xh,this.currentTab=1,this.flagDisabled=!1,this.roomsList=[],this.rates=[],this.cityName=[],this.universityName=[],this.invalid1="invaild",this.propertyMedia=[],this.hideGallary=!1,this.propertyStatus=!1,this.propertyGallryComponentStatus=!1,this.allRoomList=[],this.hideRoomList=!1,this.defaultBtnValue=0,this.roomStatus=!1,this.section="section1",this.overviewTab=!1,this.roomTypeTab=!1,this.paymentInfoTab=!1,this.isReadMore=!0,this.formStatus=!1,this.selectedFiledDisabeled=!1,this.searchInput=new d.p4(""),this.miscCountryList=[],this.miscCountryListP=[],this.proviceNameP=[],this.nextYear=[],this.previousYear=[],this.yearList=[],this.startYear=(new Date).getFullYear(),this.studentData=[],this.studentFilterdata=[],this.disabledFlag=!0,this.guardianDisabledFlag=!0,this.currentUser=this.authService.currentUserSubject.getValue(),this.personalInfo=this.fb.group({firstName:["",[d.kI.required,d.kI.pattern(this.modelPattern.NamePattern)]],lastName:["",[d.kI.required,d.kI.pattern(this.modelPattern.NamePattern)]],email:["",[d.kI.required,d.kI.pattern(this.modelPattern.email)]],mobile:["",[d.kI.required,d.kI.pattern(this.modelPattern.mobileno)]],dob:["",[d.kI.required]],gender:["",[d.kI.required]],nationality:["",[d.kI.required]],address:["",[d.kI.required,d.kI.pattern(this.modelPattern.alphaNumericWithSpecialCharacters)]],city:["",[d.kI.required]],state:["",[d.kI.required]],country:["",[d.kI.required]],postcode:["",[d.kI.required]]}),this.univarsityInfo=this.fb.group({universityId:["",[d.kI.required]],courseName:["",[d.kI.required,d.kI.pattern(this.modelPattern.NamePattern)]],yearOfStudy:["",[d.kI.required]],startDate:["",[d.kI.required]],endDate:["",[d.kI.required]]}),this.guardianInfo=this.fb.group({fullName:["",[d.kI.required,d.kI.pattern(this.modelPattern.NamePattern)]],email:["",[d.kI.required,d.kI.pattern(this.modelPattern.email)]],mobile:["",[d.kI.required,d.kI.pattern(this.modelPattern.mobileno)]],relationship:["",[d.kI.required,d.kI.pattern(this.modelPattern.NamePattern)]],address:["",[d.kI.required,d.kI.pattern(this.modelPattern.alphaNumericWithSpecialCharacters)]],city:["",[d.kI.required]],state:["",[d.kI.required]],postcode:["",[d.kI.required]],country:["",[d.kI.required]],nationality:["",[d.kI.required]]}),this.roomInfo=this.fb.group({propertyId:[{value:"",disabled:!0}
1,[d.kI.required]],tenancyId:["",[d.kI.required]],categoryId:[{value:"",disabled:!0},[d.kI.required]],roomId:[{value:"",disabled:!0},[d.kI.required]],message:["",[d.kI.required,d.kI.pattern(this.modelPattern.alphaNumericWithSpecialCharacters)]],country:[{value:"",disabled:!0}],city:[{value:"",disabled:!0}]})}ngOnInit(){this.getYear(),this.existingStudentFlag=this.booking.getData(),this.getMiscCountryP(),this.getMiscCountry(),this.getCountry(),this.data.studentData?.StudentId>0&&(this.getMisProvinceP(this.data.studentData.Country),this.getMisCityP(this.data.studentData.Province)),this.getporpertylist(),this.patchValueData(),this.patchData(),this.guardianPatchValue(),this.personalPatchValue(),this.univercityPactValue(),this.studentDefaltId=this.data.studentId}getYear(){this.date=(new Date).toISOString().slice(0,10),this.minDob=new Date((new Date).setMonth((new Date).getMonth()-156));for(let o=0;o<5;o++)this.previousYear.push(this.startYear-o),this.nextYear.push(this.startYear+o);this.previousYear.shift(),this.yearList=this.nextYear.concat(this.previousYear),this.yearList.sort()}getMiscCountryP(){this.misCountryRequest=this.miscCountry.country().subscribe(o=>{this.miscCountryListP=o,this.data.studentData?.StudentId>0&&this.miscCountryListP.forEach(i=>{i.CountryId===this.data.studentData.Country&&(this.countryName=i.CountryName)})},o=>{this.toaster.pop("error","country not found")})}getMisProvinceP(o){this.disabledFlag=!0,this.personalCountry=o,this.personalProvince=null,this.personalCity=null,this.personalPatchValue(),this.proviceNameP=[],this.miscCityP=[],this.miscCountryListP.forEach(i=>{i.CountryId===o&&(this.countryName=i.CountryName)}),this.getcountrynameP=o.CountryName,this.proviceRequest=this.miscCountry.provinceForString(o).subscribe(i=>{this.proviceNameP=i,this.data.studentData?.StudentId>0&&this.proviceNameP.forEach(r=>{r.ProvinceId===this.data.studentData.Province&&(this.provice=r.ProvinceName)})},i=>{this.data.studentData?.StudentId>0&&this.toaster.pop("error"," Personal state information not found in country, please select another country")})}getMisCityP(o){this.disabledFlag=!0,this.personalProvince=o,this.personalCity=null,this.personalPatchValue(),this.miscCityP=[],this.proviceNameP.forEach(i=>{i.ProvinceId===o&&(this.provice=i.ProvinceName)}),this.stateValueP=o.ProvinceName,this.miscCityRequest=this.miscCountry.city(o).subscribe(i=>{this.miscCityP=i},i=>{this.data.studentData?.StudentId>0&&this.toaster.pop("error","Personal city information not found, please select another country or state")})}getSelectCity(o){this.personalCity=o,this.disabledFlag=!1,this.personalPatchValue()}getgaurdianSelectCity(o){this.guardianDisabledFlag=!1,this.gaurdianCity=o,this.guardianPatchValue()}getMiscCountry(){this.proviceName=[],this.miscCity=[],this.miscCountryRequest=this.miscCountry.country().subscribe(o=>{this.miscCountryList=o,this.miscCountryList.forEach(i=>{this.data.studentData?.StudentId>0&&i.CountryId===this.data.studentData.Citizenship&&(this.nationalityNAme=i.CountryName)}),this.miscCountryList.forEach(i=>{this.data.studentData?.StudentId>0&&i.CountryId===this.data.studentData.EmergencyCountry&&(this.guardianInfoCountryName=i.CountryName)})})}natinalityChage(o){this.miscCountryList.forEach(i=>{i.CountryId===o&&(this.nationalityNAme=i.CountryName)})}getMisProvince(o){this.guardianDisabledFlag=!0,this.gaudianCountry=o,this.gaurdianProvince=null,this.gaurdianCity=null,this.guardianPatchValue(),this.miscCity=[],this.miscCountryList.forEach(i=>{i.CountryId===o&&(this.guardianInfoCountryName=i.CountryName)}),this.miscCountry.provinceForString(o).subscribe(i=>{this.proviceName=i,this.data.studentData?.StudentId>0&&this.proviceName.forEach(r=>{r.ProvinceId===this.data.studentData.EmergencyProvince&&(this.guardianInfoprovice=r.ProvinceName)})},i=>{this.data.studentData?.StudentId>0&&this.toaster.pop("error"," Guardian state information not found, please select another country")})}getMisCity(o){this.guardianDisabledFlag=!0,this.gaurdianProvince=o,this.gaurdianCity=null,this.guardianPatchValue(),this.proviceName.forEach(i=>{i.ProvinceId===o&&(this.guardianInfoprovice=i.ProvinceName)}
1),this.miscCountry.city(o).subscribe(i=>{this.miscCity=i},i=>{this.data.studentData?.StudentId>0&&this.toaster.pop("error","Guardian city information not found, please select another country or state")})}patchValueData(){this.tenancyId=this.data.tentency,this.CityName=this.data.city,this.country1=this.data.country,this.university=this.data.university,this.propertyID=this.data.property,this.room_Id=this.data.roomid,this.category=this.data.category,this.roomName=this.data.roomName,this.tenancyname=this.data.tenancyName,this.data.studentData?.StudentId>0&&(this.personalProvince=this.data.studentData.Province,this.personalCity=this.data.studentData.City,this.personalCountry=this.data.studentData.Country,this.gaurdianCity=this.data.studentData.EmergencyCity,this.gaurdianProvince=this.data.studentData.EmergencyProvince),this.roomPacthValue()}personalPatchValue(){this.data.studentData?.StudentId>0&&this.personalInfo.patchValue({country:this.personalCountry,city:this.personalCity,state:this.personalProvince})}guardianPatchValue(){this.data.studentData?.StudentId>0&&this.guardianInfo.patchValue({city:this.gaurdianCity,state:this.gaurdianProvince,country:this.gaudianCountry})}roomPacthValue(){this.roomInfo.patchValue({propertyId:this.propertyID,tenancyId:this.tenancyId,roomId:this.room_Id,categoryId:this.category,country:this.country1,city:this.CityName})}univercityPactValue(){this.univarsityInfo.patchValue({universityId:"blank"==this.university?void 0:this.university})}patchData(){this.data.studentData?.HouseNumber&&(this.data.studentData.HouseNumber=this.data.studentData?.HouseNumber+" "),this.data.studentData?.Addres&&(this.data.studentData.Addres=this.data.studentData?.Addres+" "),this.data.studentData?.StreetName&&(this.data.studentData.StreetName=this.data.studentData?.StreetName+" "),this.data?.studentData?.StudentId>0&&(this.personalInfo.patchValue({firstName:this.data?.studentData?.FirstName,lastName:this.data?.studentData?.LastName,email:this.data?.studentData?.Email,mobile:this.data?.studentData?.MobileNo,nationality:this.data?.studentData?.Citizenship,postcode:this.data.studentData.Pincode,address:this.data.studentData?.HouseNumber+this.data.studentData?.Addres+this.data.studentData?.StreetName+this.data.studentData?.Area,dob:this.data.studentData?.DateOfBirth,gender:this.data.studentData?.Gender}),this.guardianInfo.patchValue({fullName:this.data?.studentData?.EmrgencyName,email:this.data?.studentData?.EmergencyEmail,mobile:this.data?.studentData?.EmergencyCellPhone,relationship:this.data?.studentData?.EmergencyRelation,address:this.data?.studentData?.EmergencyAddress,postcode:this.data?.studentData?.EmergencyPincode}))}getCountry(){this.booking.countryList().pipe((0,_.R)(this.onDestroy$)).subscribe(o=>{this.countryList=o,this.getCity(this.country1)},o=>{this.toaster.pop("error","Country not found")})}getCity(o){this.blankCountry=o,this.booking.cityList().pipe((0,_.R)(this.onDestroy$)).subscribe(i=>{this.city=i,this.cityName=this.city.filter(r=>r.country===o),this.getUniversity(this.CityName)},i=>{this.toaster.pop("error","City not found")})}getporpertylist(){this.propertyListRequest=this.booking.propertiesListBasedCityCountry(this.data.city,this.data.country).subscribe(o=>{this.propertyList=o})}getCityList(o){this.bookingCityListRequest=this.booking.cityList().pipe((0,_.R)(this.onDestroy$)).subscribe(i=>{this.Gcity=i,this.gcityName=this.Gcity.filter(r=>r.country===o)},i=>{this.toaster.pop("error","City not found")})}getUniversity(o){this.City=o,this.universityListRequest=this.booking.universityList().pipe((0,_.R)(this.onDestroy$)).subscribe(i=>{this.universityList=i,this.universityName=this.universityList.filter(r=>r.city===o),this.undefineUniversityName=this.universityList.filter(r=>r.country===this.blankCountry),this.universityListwithValue=0===this.universityName.length?this.undefineUniversityName:this.universityName,this.getProperty(this.propertyID)},i=>{this.toaster.pop("error","University not found")})}getPropertList(o){let i=this.personalInfo.value.country,r=this.personalInfo.value.city;"blank"!=o&&(0!=this.universityName.length&&(this.propertyBOCRequest=this.booking.propertiesListBasedUniversity(r,o,i).pipe((0,_.R)(this.onDestroy$)).subscribe(u=>{this.propertyList=u,this.getProperty(this.propertyID)},u=>{})),0===this.universityName.length&&(this.propertyBOCRequest=this.booking.propertiesListBasedCityCountry(r,i).pipe((0,_.R)(this.onDestroy$)).subscribe(u=>{this.propertyList=u,this.getProperty(this.propertyID)},u=>{})))}getProperty(o){this.propertyGetRequest=this.booking.property(o).pipe((0,_.R)(this.onDestroy$)).subscribe(i=>{this.property=i.rooms,this.propertyInfo=i,this.getCategoryId(this.category)},i=>{this.toaster.pop("error","Data not found")})}getCategoryId(o){this.userSelectedCategoryId=o.categoryId,this.property.forEac
1h(i=>{this.userSelectedCategoryId===i.categoryId&&(this.roomsList=i.types)})}back(o){this.currentTab=o-1}saveAndContinue(o){1==this.currentTab&&!this.personalInfo.valid||3==this.currentTab&&!this.roomInfo.valid||4==this.currentTab&&!this.guardianInfo.valid||2==this.currentTab&&!this.univarsityInfo.valid?this.mandatoryfieldCheckService.setinvalidFields():(this.currentTab=4===o?o:o+1,4===o&&this.SUbmitForm(),window.scrollTo(0,0))}SUbmitForm(){this.personalInfo.valid&&this.roomInfo.valid&&this.guardianInfo.valid&&this.univarsityInfo.valid?(this.data={propertyId:this.propertyID,tenancyId:this.tenancyId,categoryId:this.category,roomId:this.room_Id,message:this.roomInfo.get("message").value,guardianInfo:{country:this.guardianInfoCountryName,city:this.guardianInfo.get("city").value,state:this.guardianInfoprovice,fullName:this.guardianInfo.get("fullName").value,email:this.guardianInfo.get("email").value,mobile:this.guardianInfo.get("mobile").value,relationship:this.guardianInfo.get("relationship").value,address:this.guardianInfo.get("address").value,postcode:this.guardianInfo.get("postcode").value,nationality:this.guardianInfo.get("nationality").value},universityInfo:{universityId:this.univarsityInfo.get("universityId").value,courseName:this.univarsityInfo.get("courseName").value,yearOfStudy:this.univarsityInfo.get("yearOfStudy").value.toString(),startDate:this.univarsityInfo.get("startDate").value,endDate:this.univarsityInfo.get("endDate").value},personalInfo:{firstName:this.personalInfo.get("firstName").value,lastName:this.personalInfo.get("lastName").value,email:this.personalInfo.get("email").value,mobile:this.personalInfo.get("mobile").value,dob:this.personalInfo.get("dob").value,gender:this.personalInfo.get("gender").value,nationality:this.nationalityNAme,address:this.personalInfo.get("address").value,city:this.personalInfo.get("city").value,state:this.provice,country:this.countryName,postcode:this.personalInfo.get("postcode").value}},this.booking.bookingForm(this.data).subscribe(o=>{this.bookingInfo=o,this.flagDisabled=!0,this.toaster.pop("success","Booking Successfull."),this.insertBookingInUnify()},o=>{this.flagDisabled=!1,null!=o.error.message&&this.toaster.pop("error",o.error.message),null!=o.error.msg&&this.toaster.pop("error",o.error.msg)})):this.mandatoryfieldCheckService.setinvalidFields()}insertBookingInUnify(){this.booking.booking({FirstName:this.bookingInfo?.personalInfo.firstName,LastName:this.bookingInfo?.personalInfo.lastName,Agent_Id:this.currentUser?.RefId,BookingReferenceNo:this.bookingInfo?.orderId,Status:this.bookingInfo?.status,ContactNo:this.bookingInfo?.personalInfo.mobile,Email:this.bookingInfo?.personalInfo.email,University:this.bookingInfo?.universityInfo.name,Property:this.bookingInfo?.property.name,type:1}).subscribe(i=>{this.result=i,this.dialogRef.close(),this.router.navigate(["/member/bording/bookingList"])},i=>{this.flagDisabled=!1,this.toaster.pop("error",i.error.msg)})}datevalue(o){this.maxdate=o}ngAfterViewInit(){this.data.studentData?.StudentId>0&&(this.personalInfo.get("firstName").value&&this.personalInfo.get("firstName").markAsTouched(),this.personalInfo.get("lastName").value&&this.personalInfo.get("lastName").markAsTouched(),this.personalInfo.get("email").value&&this.personalInfo.get("email").markAsTouched(),this.personalInfo.get("mobile").value&&this.personalInfo.get("mobile").markAsTouched(),this.personalInfo.get("dob").value&&this.personalInfo.get("dob").markAsTouched(),this.personalInfo.get("address").value&&this.personalInfo.get("address").markAsTouched(),this.personalInfo.get("postcode").value&&this.personalInfo.get("postcode").markAsTouched(),this.guardianInfo.get("fullName").value&&this.guardianInfo.get("fullName").markAsTouched(),this.guardianInfo.get("email").value&&this.guardianInfo.get("email").markAsTouched(),this.guardianInfo.get("mobile").value&&this.guardianInfo.get("mobile").markAsTouched(),this.guardianInfo.get("relationship").value&&this.guardianInfo.get("relationship").markAsTouched(),this.guardianInfo.get("address").value&&this.guardianInfo.get("address").markAsTouched(),this.guardianInfo.get("postcode").value&&this.guardianInfo.get("postcode").markAsTouched())}ngOnDestroy(){this.unSubscribeAll(),this.onDestroy$.next(),this.onDestroy$.complete()}unSubscribeAll(){this.propertyGetRequest?.unsubscribe(),this.miscCityRequest?.unsubscribe(),this.proviceRequest?.unsubscribe(),this.misCountryRequest?.unsubscribe(),this.miscCountryRequest?.unsubscribe(),this.propertyBOCRequest?.unsubscribe(),this.universityListRequest?.unsubscribe(),this.propertyListRequest?.unsubscribe(),this.bookingCityListRequest?.unsubscribe()}closeModal(){this.unSubscribeAll(),this.dialogRef.close()}};let n=a;return a.\u0275fac=function(i){return new(i||a)(t.\u0275\u0275directiveInject(P.eJ),t.\u0275\u0275directiveInject(d.QS),t.\u0275\u0275directiveInject(f.q),t.\u0275\u0275directiveInject(w.MJ),t.\u0275\u0275directiveInject(ut.F),t.\u0275\u0275directiveInject(s.F0),t.\u0275\u0275directiveInject(g.V),t.\u0275\u0275directiveInject(h.$),t.\u0275\u0275directiveInject(P.hV),t.\u0275\u0275directiveInject(y.Y))},a.\u0275cmp=t.\u0275\u0275defineComponent({type:a,selectors:[["app-popupbox"]],decls:344,vars:157,consts:[["mat-dialog-title",""],[1,"text-right"],["mat-mini-fab","","color","basic",3,"click"],[1,"mat-typography"],[1,"card","card-content"],[3,"formGroup"],[3,"hidden"],[1,"form-group"],[1,"tittle"],[1,"d-flex","flex-wrap"],[1,"col-md-4"],["matInput","","type","text","name","firstName","
1id","firstName","formControlName","firstName","maxlength","50","required","",1,"form-control",3,"value"],[4,"ngIf"],["matInput","","type","text","name","lastName","formControlName","lastName","required","",1,"form-control"],["matInput","","placeholder","Date of birth","type","text","formControlName","dob",3,"matDatepicker","max"],["dateOfBirth",""],["matSuffix","",3,"for"],["formControlName","gender","name","gender","required","",1,"form-control"],["value","Male"],["value","Female"],["value","Other"],["formControlName","nationality","name","nationality","required","",1,"form-control",3,"selectionChange"],["placeholderLabel","Search","noEntriesFoundLabel","No search result found",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf","ngForTrackByProperty"],[1,"col-md-12"],["matInput","","formControlName","address","maxlength","100","required","",1,"form-control"],["formControlName","country","name","country","required","",1,"form-control",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","state","name","state","required","",1,"form-control",3,"selectionChange"],["formControlName","city","name","city","required","",1,"form-control",3,"selectionChange"],["matInput","","formControlName","email","maxlength","100","required","",1,"form-control"],["matInput","","formControlName","mobile","maxlength","15","required","",1,"form-control"],["matInput","","formControlName","postcode","required","",1,"form-control"],["formControlName","universityId","name","universityId","required","",1,"form-control",3,"disabled"],["matInput","","type","text","name","courseName","formControlName","courseName","maxlength","50","required","",1,"form-control"],["formControlName","yearOfStudy","name","yearOfStudy",1,"form-control"],["matInput","","placeholder","Start Date","type","text","formControlName","startDate",3,"matDatepicker","max"],["intekDatepicker",""],["matInput","","placeholder","End Date","type","text","formControlName","endDate",3,"matDatepicker","min"],["intekDatepicker1",""],["formControlName","propertyId","required","",1,"form-control"],["formControlName","categoryId","required","",1,"form-control"],["formControlName","roomId","required","",1,"form-control"],[3,"value"],["formControlName","tenancyId","required","",1,"form-control"],["formControlName","country","required","",1,"form-control"],["formControlName","city","required","",1,"form-control"],["matInput","","name","message","formControlName","message","maxlength","1000"],["matInput","","type","text","name","fullName","formControlName","fullName","maxlength","50","required","",1,"form-control"],["matInput","","type","text","formControlName","relationship","name","relationship","required","",1,"form-control"],["matInput","","formControlName","email","name","email","maxlength","100","required","",1,"form-control"],["matInput","","formControlName","mobile","name","mobile","maxlength","15","required","",1,"form-control"],["formControlName","nationality","name","nationality","required","",1,"form-control"],["matInput","","formControlName","postcode","name","postcode","required","",1,"form-control"],[1,"d-flex","flex-wrap","align-items-center"],[1,"col","d-flex","align-items-center"],[1,"mx-1",3,"ngClass"],["class","col-auto back-btn d-flex my-auto",4,"ngIf"],[1,"col-auto"],["class","btn-agent-green text-transform-none",3,"disabled","click",4,"ngIf"],["class","btn-agent-green",3,"disabled","click",4,"ngIf"],[1,"col-auto","back-btn","d-flex","my-auto"],["style","margin-top: 7px;",3,"click",4,"ngIf"],[2,"margin-top","7px",3,"click"],["src","/assets/img/previous_gray.svg","alt","",1,"mr-2",2,"margin-bottom","3px"],[1,"btn-agent-green","text-transform-none",3,"disabled","click"],[1,"btn-agent-green",3,"disabled","click"]],template:function(i,r){if(1&i&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"button",2),t.\u0275\u0275listener("click",function(){return r.closeModal()}),t.\u0275\u0275text(3,"x"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(4,"mat-dialog-content",3)(5,"div",4)(6,"form",5)(7,"div",6)(8,"div",7)(9,"h2",8),t.\u0275\u0275text(10,"Add Personal Information"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"div",9)(12,"div",10)(13,"div")(14,"mat-form-field")(15,"mat-label"),t.\u0275\u0275text(16,"First Name"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(17,"input",11),t.\u0275\u0275template(18,gt,2,0,"mat-error",12),t.\u0275\u0275template(19,ft,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(20,"div",10)(21,"mat-form-field")(22,"mat-label"),t.\u0275\u0275text(23,"Last Name"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(24,"input",13),t.\u0275\u0275template(25,yt,2,0,"mat-error",12),t.\u0275\u0275template(26,vt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(27,"div",10)(28,"mat-form-field")(29,"mat-label"),t.\u0275\u0275text(30,"Date of Birth"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(31,"input",14)(32,"mat-datepicker",null,15)(34,"mat-datepicker-toggle",16),t.\u0275\u0275template(35,_t,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(36,"div",9)(37,"div",10)(38,"mat-form-field")(39,"mat-label"),t.\u0275\u0275text(40,"Gender"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(41,"mat-select",17)(42,"mat-option",18),t.\u0275\u0275text(43,"Male"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(44,"mat-option",19),t.\u0275\u0275text(45,"Female"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(46,"mat-option",20),t.\u0275\u0275text(47,"Other"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(48,Ct,2,0,"mat-error",12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(49,"div",10)(50,"mat-form-field")(51,"mat-label"),t.\u0275\u0275text(52,"Nationality"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(53,"mat-select",21),t.\u0275\u0275listener("selectionChange",function(u){return r.natinalityChage(u.value)}),t.\u0275\u0275elementStart(54,"mat-option")(55,"ngx-mat-select-search",22),t.\u0275\u0275listener("ngModelChange",function(u){return r.nationalityFilter=u}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(56,It,2,2,"mat-option",23),t.\u0275\u0275pipe(57,"stringFilterBy"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(58,bt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(59,"div",24)(60,"mat-form-field")(61,"mat-label"),t.\u0275\u0275text(62,"Address"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(63,"input",25),t.\u0275\u0275template(64,xt,2,0,"mat-error",12),t.\u0275\u0275template(65,Pt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(66,"div",9)(67,"div",10)(68,"div")(69,"mat-form-field")(70,"mat-label"),t.\u0275\u0275text(71,"Country"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(72,"mat-select",26),t.\u0275\u0275listener("selectionChange",function(u){return r.getMisProvinceP(u.value)}
1),t.\u0275\u0275elementStart(73,"mat-option")(74,"ngx-mat-select-search",22),t.\u0275\u0275listener("ngModelChange",function(u){return r.countryFilter1=u}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(75,St,2,2,"mat-option",27),t.\u0275\u0275pipe(76,"stringFilterBy"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(77,Et,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(78,"div",10)(79,"div")(80,"mat-form-field")(81,"mat-label"),t.\u0275\u0275text(82,"State"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(83,"mat-select",28),t.\u0275\u0275listener("selectionChange",function(u){return r.getMisCityP(u.value)}),t.\u0275\u0275elementStart(84,"mat-option")(85,"ngx-mat-select-search",22),t.\u0275\u0275listener("ngModelChange",function(u){return r.stateFilter1=u}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(86,Tt,2,2,"mat-option",27),t.\u0275\u0275pipe(87,"stringFilterBy"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(88,Dt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(89,"div",10)(90,"div")(91,"mat-form-field")(92,"mat-label"),t.\u0275\u0275text(93,"City"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(94,"mat-select",29),t.\u0275\u0275listener("selectionChange",function(u){return r.getSelectCity(u.value)}),t.\u0275\u0275elementStart(95,"mat-option")(96,"ngx-mat-select-search",22),t.\u0275\u0275listener("ngModelChange",function(u){return r.cityFilter1=u}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(97,Ot,2,2,"mat-option",27),t.\u0275\u0275pipe(98,"stringFilterBy"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(99,Mt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275elementStart(100,"div",9)(101,"div",10)(102,"mat-form-field")(103,"mat-label"),t.\u0275\u0275text(104,"Email"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(105,"input",30),t.\u0275\u0275template(106,wt,2,0,"mat-error",12),t.\u0275\u0275template(107,Lt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(108,"div",10)(109,"mat-form-field")(110,"mat-label"),t.\u0275\u0275text(111,"Contact Number"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(112,"input",31),t.\u0275\u0275template(113,kt,2,0,"mat-error",12),t.\u0275\u0275template(114,Nt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(115,"div",10)(116,"mat-form-field")(117,"mat-label"),t.\u0275\u0275text(118,"Post Code"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(119,"input",32),t.\u0275\u0275template(120,Ft,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()()()()(),t.\u0275\u0275elementStart(121,"form",5)(122,"div",6)(123,"div",7)(124,"h2",8),t.\u0275\u0275text(125,"Add University Information"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(126,"div",9)(127,"div",10)(128,"div")(129,"mat-form-field")(130,"mat-label"),t.\u0275\u0275text(131,"University Name"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(132,"mat-select",33),t.\u0275\u0275template(133,Rt,2,2,"mat-option",27),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(134,At,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(135,"div",10)(136,"mat-form-field")(137,"mat-label"),t.\u0275\u0275text(138,"Course Name"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(139,"input",34),t.\u0275\u0275template(140,Vt,2,0,"mat-error",12),t.\u0275\u0275template(141,Bt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(142,"div",10)(143,"mat-form-field")(144,"mat-label"),t.\u0275\u0275text(145,"Year of Study"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(146,"mat-select",35)(147,"mat-option")(148,"ngx-mat-select-search",22),t.\u0275\u0275listener("ngModelChange",function(u){return r.yearfilter=u}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(149,Ut,2,2,"mat-option",27),t.\u0275\u0275pipe(150,"stringFilterBy"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(151,qt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(152,"div",9)(153,"div",10)(154,"mat-form-field")(155,"mat-label"),t.\u0275\u0275text(156,"Start Date"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(157,"input",36)(158,"mat-datepicker",null,37)(160,"mat-datepicker-toggle",16),t.\u0275\u0275template(161,jt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(162,"div",10)(163,"mat-form-field")(164,"mat-label"),t.\u0275\u0275text(165,"End Date"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(166,"input",38)(167,"mat-datepicker",null,39)(169,"mat-datepicker-toggle",16),t.\u0275\u0275template(170,$t,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()()()()(),t.\u0275\u0275elementStart(171,"form",5)(172,"div",6)(173,"div",7)(174,"h2",8),t.\u0275\u0275text(175,"Add Property Information"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(176,"div",9)(177,"div",10)(178,"div")(179,"mat-form-field")(180,"mat-label"),t.\u0275\u0275text(181,"Property"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(182,"mat-select",40),t.\u0275\u0275template(183,zt,2,2,"mat-option",27),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(184,Gt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(185,"div",10)(186,"mat-form-field")(187,"mat-label"),t.\u0275\u0275text(188,"Category"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(189,"mat-select",41),t.\u0275\u0275template(190,Ht,2,2,"mat-option",27),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(191,Wt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(192,"div",10)(193,"mat-form-field")(194,"mat-label"),t.\u0275\u0275text(195,"Room"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(196,"mat-select",42)(197,"mat-option",43),t.\u0275\u0275text(198),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(199,Kt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(200,"div",9)(201,"div",10)(202,"mat-form-field")(203,"mat-label"),t.\u0275\u0275text(204,"Tenancy"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(205,"mat-select",44)(206,"mat-option",43),t.\u0275\u0275text(207),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(208,Yt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(209,"div",10)(210,"div")(211,"mat-form-field")(212,"mat-label"),t.\u0275\u0275text(2
113,"Country"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(214,"mat-select",45),t.\u0275\u0275template(215,Jt,2,2,"mat-option",27),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(216,Qt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(217,"div",10)(218,"div")(219,"mat-form-field")(220,"mat-label"),t.\u0275\u0275text(221,"City"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(222,"mat-select",46),t.\u0275\u0275template(223,Zt,2,2,"mat-option",27),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(224,Xt,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275elementStart(225,"div",24)(226,"mat-form-field")(227,"mat-label"),t.\u0275\u0275text(228,"Message"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(229,"textarea",47),t.\u0275\u0275template(230,te,2,0,"mat-error",12),t.\u0275\u0275template(231,ee,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()()()(),t.\u0275\u0275elementStart(232,"form",5)(233,"div",6)(234,"div",7)(235,"h2",8),t.\u0275\u0275text(236,"Add Guardian Information"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(237,"div",9)(238,"div",10)(239,"div")(240,"mat-form-field")(241,"mat-label"),t.\u0275\u0275text(242,"Full Name"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(243,"input",48),t.\u0275\u0275template(244,ne,2,0,"mat-error",12),t.\u0275\u0275template(245,re,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(246,"div",10)(247,"mat-form-field")(248,"mat-label"),t.\u0275\u0275text(249,"Relationship"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(250,"input",49),t.\u0275\u0275template(251,oe,2,0,"mat-error",12),t.\u0275\u0275template(252,ie,2,0,"mat-error",12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(253,"div",10)(254,"mat-form-field")(255,"mat-label"),t.\u0275\u0275text(256,"Email"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(257,"input",50),t.\u0275\u0275template(258,ae,2,0,"mat-error",12),t.\u0275\u0275template(259,se,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(260,"div",9)(261,"div",10)(262,"mat-form-field")(263,"mat-label"),t.\u0275\u0275text(264,"Contact No"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(265,"input",51),t.\u0275\u0275template(266,le,2,0,"mat-error",12),t.\u0275\u0275template(267,de,2,0,"mat-error",12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(268,"div",10)(269,"mat-form-field")(270,"mat-label"),t.\u0275\u0275text(271,"Nationality"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(272,"mat-select",52)(273,"mat-option")(274,"ngx-mat-select-search",22),t.\u0275\u0275listener("ngModelChange",function(u){return r.gnationalityFilter=u}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(275,pe,2,2,"mat-option",23),t.\u0275\u0275pipe(276,"stringFilterBy"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(277,me,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(278,"div")(279,"div",24)(280,"mat-form-field")(281,"mat-label"),t.\u0275\u0275text(282,"Address"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(283,"input",25),t.\u0275\u0275template(284,ce,2,0,"mat-error",12),t.\u0275\u0275template(285,ue,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(286,"div",9)(287,"div",10)(288,"div")(289,"mat-form-field")(290,"mat-label"),t.\u0275\u0275text(291,"Country"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(292,"mat-select",26),t.\u0275\u0275listener("selectionChange",function(u){return r.getMisProvince(u.value)}),t.\u0275\u0275elementStart(293,"mat-option")(294,"ngx-mat-select-search",22),t.\u0275\u0275listener("ngModelChange",function(u){return r.countryFilter=u}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(295,he,2,2,"mat-option",27),t.\u0275\u0275pipe(296,"stringFilterBy"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(297,ge,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(298,"div",10)(299,"div")(300,"mat-form-field")(301,"mat-label"),t.\u0275\u0275text(302,"State"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(303,"mat-select",28),t.\u0275\u0275listener("selectionChange",function(u){return r.getMisCity(u.value)}),t.\u0275\u0275elementStart(304,"mat-option")(305,"ngx-mat-select-search",22),t.\u0275\u0275listener("ngModelChange",function(u){return r.stateFilter=u}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(306,fe,2,2,"mat-option",27),t.\u0275\u0275pipe(307,"stringFilterBy"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(308,ye,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(309,"div",10)(310,"div")(311,"mat-form-field")(312,"mat-label"),t.\u0275\u0275text(313,"City"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(314,"mat-select",29),t.\u0275\u0275listener("selectionChange",function(u){return r.getgaurdianSelectCity(u.value)}),t.\u0275\u0275elementStart(315,"mat-option")(316,"ngx-mat-select-search",22),t.\u0275\u0275listener("ngModelChange",function(u){return r.cityFilter=u}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(317,ve,2,2,"mat-option",27),t.\u0275\u0275pipe(318,"stringFilterBy"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(319,_e,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(320,"div",10)(321,"mat-form-field")(322,"mat-label"),t.\u0275\u0275text(323,"Post Code"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(324,"input",53),t.\u0275\u0275template(325,Ce,2,0,"mat-error",12),t.\u0275\u0275template(326,Ie,2,0,"mat-error",12),t.\u0275\u0275elementEnd()()()()()(),t.\u0275\u0275elementStart(327,"div",54)(328,"div",55),t.\u0275\u0275element(329,"span",56),t.\u0275\u0275text(330,"\xa0 "),t.\u0275\u0275element(331,"span",56),t.\u0275\u0275text(332,"\xa0 "),t.\u0275\u0275element(333,"span",56),t.\u0275\u0275text(334,"\xa0 "),t.\u0275\u0275element(335,"span",56),t.\u0275\u0275text(336,"\xa0 "),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(337,xe,2,1,"div",57),t.\u0275\u0275elementStart(338,"div",58)(339,"div"),t.\u0275\u0275template(340,Pe,2,1,"button",59),t.\u0275\u0275template(341,Se,2,1,"button",59),t.\u0275\u0275template(342,Ee,2,1,"button",59),t.\u0275\u0275template(343,Te,2,1,"button",60),t.\u0275\u0275elementEnd()()()()()),2&i){const c=t.\u0275\u0275reference(33),u=t.\u0275\u0275reference(159),b=t.\u0275\u0275reference(168);let x,E;t.\u0275\u0275advance(6),t.\u0275\u0275property("formGroup",r.personalInfo),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",1!=r.currentTab),t.\u0275\u0275advance(11),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("firstName").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("firstName").hasError("pattern")),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("lastName").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("lastName").hasError("pattern")),t.\u0275\u0275advance(5),t.\u0275\u0275property("matDatepicker",c)("max",r.minDob),t.\u0275\u0275advance(3),t.\u0275\u0275property("for",c),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("dob").hasError("required")),t.\u0275\u0275advance(13),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("gender").hasError("required")),t.\u0275\u0275advance(7),t.\u0275\u0275property("ngModel",r.nationalityFilter)("ngModelOptions",t.\u0275\u0275pureFunction0(148,D)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind3(57,112,r.miscCountryList,r.nationalityFilter,"CountryName"))("ngForTrackByProperty","CountryId"),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("nationality").hasError("required")),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("address").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("address").hasError("pattern")),t.\u0275\u0275advance(9),t.\u0275\u0275property("ngModel",r.countryFilter1)("ngModelOptions",t.\u0275\u0275pureFunction0(149,D)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind3(76,116,r.miscCountryListP,r.countryFilter1,"CountryName")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("country").hasError("required")),t.\u0275\u0275advance(8),t.\u0275\u0275property("ngModel",r.stateFilter1)("ngModelOptions",t.\u0275\u0275pureFunction0(150,D)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind3(87,12
10,r.proviceNameP,r.stateFilter1,"ProvinceName")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("state").hasError("required")),t.\u0275\u0275advance(8),t.\u0275\u0275property("ngModel",r.cityFilter1)("ngModelOptions",t.\u0275\u0275pureFunction0(151,D)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind3(98,124,r.miscCityP,r.cityFilter1,"CityName")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("city").hasError("required")),t.\u0275\u0275advance(7),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("email").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("email").hasError("pattern")),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("mobile").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("mobile").hasError("pattern")),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",null==r.personalInfo?null:r.personalInfo.get("postcode").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("formGroup",r.univarsityInfo),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",2!=r.currentTab),t.\u0275\u0275advance(10),t.\u0275\u0275property("disabled","blank"!=r.university),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",r.universityListwithValue),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.univarsityInfo?null:r.univarsityInfo.get("universityId").hasError("required")),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",null==r.univarsityInfo?null:r.univarsityInfo.get("courseName").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.univarsityInfo?null:r.univarsityInfo.get("courseName").hasError("pattern")),t.\u0275\u0275advance(7),t.\u0275\u0275property("ngModel",r.yearfilter)("ngModelOptions",t.\u0275\u0275pureFunction0(152,D)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind3(150,128,r.yearList,r.yearfilter,"year")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==r.univarsityInfo?null:r.univarsityInfo.get("yearOfStudy").hasError("required")),t.\u0275\u0275advance(6),t.\u0275\u0275property("matDatepicker",u)("max",null==(x=r.univarsityInfo.get("endDate"))?null:x.value),t.\u0275\u0275advance(3),t.\u0275\u0275property("for",u),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.univarsityInfo?null:r.univarsityInfo.get("startDate").hasError("required")),t.\u0275\u0275advance(5),t.\u0275\u0275property("matDatepicker",b)("min",null==(E=r.univarsityInfo.get("startDate"))?null:E.value),t.\u0275\u0275advance(3),t.\u0275\u0275property("for",b),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.univarsityInfo?null:r.univarsityInfo.get("endDate").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("formGroup",r.roomInfo),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",3!=r.currentTab),t.\u0275\u0275advance(11),t.\u0275\u0275property("ngForOf",r.propertyList),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.roomInfo?null:r.roomInfo.get("propertyId").hasError("required")),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngForOf",r.property),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.roomInfo?null:r.roomInfo.get("categoryId").hasError("required")),t.\u0275\u0275advance(6),t.\u0275\u0275property("value",r.room_Id),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",r.roomName," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.roomInfo?null:r.roomInfo.get("roomId").hasError("required")),t.\u0275\u0275advance(7),t.\u0275\u0275property("value",r.tenancyId),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",r.tenancyname,""),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.roomInfo?null:r.roomInfo.get("tenancyId").hasError("required")),t.\u0275\u0275advance(7),t.\u0275\u0275property("ngForOf",r.countryList),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.roomInfo?null:r.roomInfo.get("country").hasError("required")),t.\u0275\u0275advance(7),t.\u0275\u0275property("ngForOf",r.cityName),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.roomInfo?null:r.roomInfo.get("city").hasError("required")),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",null==r.roomInfo?null:r.roomInfo.get("message").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.roomInfo?null:r.roomInfo.get("message").hasError("pattern")),t.\u0275\u0275advance(1),t.\u0275\u0275property("formGroup",r.guardianInfo),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",4!=r.currentTab),t.\u0275\u0275advance(11),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("fullName").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("fullName").hasError("pattern")),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("relationship").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("relationship").hasError("pattern")),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("email").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("email").hasError("pattern")),t.\u0275\u0275advance(7),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("mobile").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("mobile").hasError("pattern")),t.\u0275\u0275advance(7),t.\u0275\u0275property("ngModel",r.gnationalityFilter)("ngModelOptions",t.\u0275\u0275pureFunction0(153,D)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind3(276,132,r.miscCountryList,r.gnationalityFilter,"CountryName"))("ngForTrackByProperty","CountryId"),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("nationality").hasError("required")),t.\u0275\u0275advance(7),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("address").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("address").hasError("pattern")),t.\u0275\u0275advance(9),t.\u0275\u0275property("ngModel",r.countryFilter)("ngModelOptions",t.\u0275\u0275pureFunction0(154,D)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind3(296,136,r.miscCountryList,r.countryFilter,"CountryName")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("country").hasError("required")),t.\u0275\u0275advance(8),t.\u0275\u0275property("ngModel",r.stateFilter)("ngModelOptions",t.\u0275\u0275pureFunction0(155,D)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind3(307,140,r.proviceName,r.stateFilter,"ProvinceName")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("state").hasError("required")),t.\u0275\u0275advance(8),t.\u0275\u0275property("ngModel",r.cityFilter)("ngModelOptions",t.\u0275\u0275pureFunction0(156,D)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind3(318,144,r.miscCity,r.cityFilter,"CityName")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("city").hasError("required")),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("postcode").hasError("required")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.guardianInfo?null:r.guardianInfo.get("postcode").hasError("pattern")),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass",1===r.currentTab?"dot-green":"dot-grey"),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",2===r.currentTab?"dot-green":"dot-grey"),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",3===r.currentTab?"dot-green":"dot-grey"),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",4===r.currentTab?"dot-green":"dot-grey"),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.currentTab>1),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",1==r.currentTab),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",2==r.currentTab),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",3==r.currentTab),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",4===r.currentTab)}},dependencies:[d._Y,d.Fj,d.JJ,d.JL,d.Q7,d.nD,d.On,d.sg,d.u,l.NgClass,l.NgForOf,l.NgIf,I.CK,P.YS,P.Rb,C.nI,C.v_,C.$V,C.nX,S.x8,T.nu,H.k0,N.Mq,N.hl,N.nW,ht.e,F.eB,L.S,k.L],styles:[".form-control[_ngcontent-%COMP%]{background-image:none!important;padding:0!important}input[_ngcontent-%COMP%]{height:20px}.m-r-5[_ngcontent-%COMP%]{margin-right:.5em}.m-t-1[_ngcontent-%COMP%]{margin-top:1em}.dot-grey[_ngcontent-%COMP%]{height:15px;width:15px;background-color:#aaa;border-radius:50%;display:inline-block}.dot-green[_ngcontent-%COMP%]{height:15px;width:15px;background-color:#34bf49;border-radius:50%;display:inline-block}.btn-defualt[_ngcontent-%COMP%]{background-color:#34bf49;border-radius:10px;padding:10px 20px}[_nghost-%COMP%] .mat-form-field-appearance-outline .mat-form-field-infix{padding:.5rem 0}[_nghost-%COMP%] .new-agent-design button.mat-icon-button .mat-button-wrapper{inset:0!important}[_nghost-%COMP%] .new-agent-ui mat-hint, [_nghost-%COMP%] .new-agent-design mat-hint{display:block!important}.card-content[_ngcontent-%COMP%]{padding:10px}.close-button[_ngcontent-%COMP%]{margin-right:20px}.close-backgorund[_ngcontent-%COMP%]{background-color:#fff;color:#000;border-radius:100%;padding:8px}.mat-mini-fab[_ngcontent-%COMP%]{width:30px;height:30px;line-height:0}[_nghost-%COMP%] .mat-mini-fab .mat-button-wrapper{padding:0}mat-dialog-content[_ngcontent-%COMP%]{background-color:#fff;max-height:100vh}[_nghost-%COMP%] .mat-dialog-title{padding:8px!important}"]}),n})();var q=p(58256);function De(n,a){1&n&&(t.\u0275\u0275elementStart(0,"p",8),t.\u0275\u0275text(1,"Book an Accommodation"),t.\u0275\u0275elementEnd())}function Oe(n,a){1&n&&(t.\u0275\u0275elementStart(0,"div",9)(1,"button",10),t.\u0275\u0275text(2,"x"),t.\u0275\u0275elementEnd()())}function Me(n,a){if(1&n&&t.\u0275\u0275element(0,"div",12),2&n){const e=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("innerHTML",e.descrption,t.\u0275\u0275sanitizeHtml)}}function we(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div")(1,"h4",13),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"date"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(4,"div",14),t.\u0275\u0275elementEnd()),2&n){const e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate2("",null==e.offers?null:e.offers.info,", ",t.\u0275\u0275pipeBind2(3,3,null==e.offers?null:e.offers.validTill,"medium"),""),t.\u0275\u0275advance(2),t.\u0275\u0275property("innerHtml",null==e.offers?null:e.offers.message,t.\u0275\u0275sanitizeHtml)}}function Le(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,Me,1,1,"div",11),t.\u0275\u0275template(2,we,5,6,"div",6),t.\u0275\u0275elementEnd()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!(null!=e.offers&&e.offers.info)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==e.offers?null:e.offers.info)}}function ke(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",21)(1,"button",22),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(2);
1return t.\u0275\u0275resetView(i.studentDtailssubmit())}),t.\u0275\u0275text(2,"Submit"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"button",23),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(i.cancel())}),t.\u0275\u0275text(4,"Cancel"),t.\u0275\u0275elementEnd()()}if(2&n){const e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("disabled",!e.disabledFlag)}}function Ne(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",15)(1,"div")(2,"mat-radio-group",16)(3,"mat-radio-button",17),t.\u0275\u0275listener("change",function(i){t.\u0275\u0275restoreView(e);const r=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(r.student(i.value))}),t.\u0275\u0275elementStart(4,"h4",18),t.\u0275\u0275text(5,"Existing Student"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(6,"br"),t.\u0275\u0275elementStart(7,"mat-radio-button",19),t.\u0275\u0275listener("change",function(i){t.\u0275\u0275restoreView(e);const r=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(r.student(i.value))}),t.\u0275\u0275elementStart(8,"h4",18),t.\u0275\u0275text(9,"New Student"),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275template(10,ke,5,1,"div",20),t.\u0275\u0275elementEnd()}if(2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(10),t.\u0275\u0275property("ngIf",e.studentFlag)}}let j=(()=>{const a=class{constructor(o,i,r,c){this.data=o,this.dialogRef=i,this.route=r,this.bookingService=c,this.disabledFlag=!1}ngOnInit(){this.descrption=this.data.dataKey,this.readMoreFlag=this.data.readMoreflag,this.studentFlag=this.data.studentFlag,this.offers=this.data.offer}student(o){localStorage.removeItem("Ul-data"),localStorage.setItem("Ul-data",JSON.stringify({studentId:0,countryCityuniversity:""})),this.disabledFlag=!0,this.existingStudentFlag=o}studentDtailssubmit(){this.bookingService.setData(this.existingStudentFlag),this.route.navigate(["/member/bording/booking"]),this.dialogRef.close()}cancel(){this.dialogRef.close(),this.disabledFlag=!1}};let n=a;return a.\u0275fac=function(i){return new(i||a)(t.\u0275\u0275directiveInject(P.eJ),t.\u0275\u0275directiveInject(P.hV),t.\u0275\u0275directiveInject(s.F0),t.\u0275\u0275directiveInject(f.q))},a.\u0275cmp=t.\u0275\u0275defineComponent({type:a,selectors:[["app-read-morepop-up"]],decls:8,vars:4,consts:[["mat-dialog-title",""],[1,"d-flex","tilte"],[1,"heading-text"],["class","heading-margin",4,"ngIf"],["class","close-btn",4,"ngIf"],[1,"mat-typography"],[4,"ngIf"],["class","redio-btn-margin",4,"ngIf"],[1,"heading-margin"],[1,"close-btn"],["mat-mini-fab","","color","basic","mat-dialog-close",""],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[1,"heading"],[3,"innerHtml"],[1,"redio-btn-margin"],["aria-label","Select an option"],["value","1",3,"change"],[1,"font-weight-bold","redio-text"],["value","2",3,"change"],["class","cancel-btn-postion",4,"ngIf"],[1,"cancel-btn-postion"],[1,"student-btn",3,"disabled","click"],[1,"cancel-btn",3,"click"]],template:function(i,r){1&i&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),t.\u0275\u0275template(3,De,2,0,"p",3),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,Oe,3,0,"div",4),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(5,"mat-dialog-content",5),t.\u0275\u0275template(6,Le,3,2,"div",6),t.\u0275\u0275template(7,Ne,11,1,"div",7),t.\u0275\u0275elementEnd()),2&i&&(t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",r.studentFlag),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.studentFlag),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.readMoreFlag),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.studentFlag))},dependencies:[q.OY,q.vy,l.NgIf,P.aO,P.YS,P.Rb,F.eB,l.DatePipe],styles:[".mat-mini-fab[_ngcontent-%COMP%]{width:30px;height:30px;line-height:0}[_nghost-%COMP%] .mat-mini-fab .mat-button-wrapper{padding:0}[_nghost-%COMP%] .mat-dialog-title{padding:8px!important}.heading[_ngcontent-%COMP%]{font-weight:600;font-size:1.375rem;color:#e8252a}.heading-text[_ngcontent-%COMP%]{color:#fff}.close-btn[_ngcontent-%COMP%]{text-align:right!important}.tilte[_ngcontent-%COMP%]{justify-content:space-between}.student-btn[_ngcontent-%COMP%]{border-radius:10px!important;color:#fff!important;padding:10px 20px;box-shadow:none!important;font-size:.9rem;border:none!important;background:#203C92!important;margin-right:25px}.student-btn[_ngcontent-%COMP%]:hover{background:black!important}.cancel-btn[_ngcontent-%COMP%]{border-radius:10px!important;padding:10px 20px;box-shadow:none!important;font-size:.9rem;border:none!important}.student-select-btn[_ngcontent-%COMP%]{text-align:center;padding-top:30px}
1.new-student[_ngcontent-%COMP%]{margin-left:40%}.cancel-btn-postion[_ngcontent-%COMP%]{text-align:right!important;padding-top:30px}[_nghost-%COMP%] .mat-radio-button~.mat-radio-button{margin-left:0!important;margin-top:10px!important}[_nghost-%COMP%] .mat-radio-label-content{color:#000!important}.student-btn[_ngcontent-%COMP%]:disabled, button[disabled][_ngcontent-%COMP%]{opacity:.5!important}.heading-margin[_ngcontent-%COMP%]{margin-bottom:0!important}.redio-btn-margin[_ngcontent-%COMP%]{margin-top:20px}.redio-text[_ngcontent-%COMP%]{margin-bottom:0!important}.cancel-btn[_ngcontent-%COMP%]:hover{background:black!important;color:#fff}"]}),n})();var Fe=p(11481),$=p(15551);let Re=(()=>{const a=class{constructor(o){this._el=o,this.spiedTags=[],this.sectionChange=new t.EventEmitter}onScroll(o){let i;const r=this._el.nativeElement.children;console.log(r);const c=o.target.scrollTop,u=o.target.offsetTop;for(let b=0;b<r.length;b++){const x=r[b];this.spiedTags.some(E=>E===x.tagName)&&x.offsetTop-u<=c&&(i=x.id)}i!==this.currentSection&&(this.currentSection=i,this.sectionChange.emit(this.currentSection))}};let n=a;return a.\u0275fac=function(i){return new(i||a)(t.\u0275\u0275directiveInject(t.ElementRef))},a.\u0275dir=t.\u0275\u0275defineDirective({type:a,selectors:[["","appScrollShy",""]],hostBindings:function(i,r){1&i&&t.\u0275\u0275listener("scroll",function(u){return r.onScroll(u)})},inputs:{spiedTags:"spiedTags"},outputs:{sectionChange:"sectionChange"}}),n})();function Ae(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",4)(1,"div",5),t.\u0275\u0275listener("click",function(){const r=t.\u0275\u0275restoreView(e).$implicit,c=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(c.getProperty(r.id))}),t.\u0275\u0275elementStart(2,"div",6),t.\u0275\u0275element(3,"img",7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div")(5,"h5",8),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()()()()}if(2&n){const e=a.$implicit;t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate1(" ",null==e?null:e.name,"")}}function Ve(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div")(1,"div",2),t.\u0275\u0275template(2,Ae,7,1,"div",3),t.\u0275\u0275elementEnd()()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",e.propertyList)}}function Be(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"mat-grid-tile",42),t.\u0275\u0275element(1,"img",43),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275styleProp("background",e.color),t.\u0275\u0275property("colspan",e.cols)("rowspan",e.rows),t.\u0275\u0275advance(1),t.\u0275\u0275property("src",e.text,t.\u0275\u0275sanitizeUrl)}}function Ue(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(i.scrollTo("section4"))}),t.\u0275\u0275elementStart(1,"h3"),t.\u0275\u0275text(2,"Offers"),t.\u0275\u0275elementEnd()()}if(2&n){const e=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("ngClass","section4"===e.section?"button-color tab":"tab")}}function qe(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"a",44),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(i.showDescription())}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&n){const e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",e.isReadMore1?"Read more":"Read less","")}}function je(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div",45),t.\u0275\u0275element(1,"iframe",46),t.\u0275\u0275elementEnd()),2&n){const e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("src",e.videoUrl,t.\u0275\u0275sanitizeResourceUrl)}}function $e(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div",47)(1,"div"),t.\u0275\u0275element(2,"img",48),t.\u0275\u0275text(3,"\xa0"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div")(5,"div",49)(6,"span"),t.\u0275\u0275text(7),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(8,"\xa0 "),t.\u0275\u0275elementStart(9,"span"),t.\u0275\u0275text(10),t.\u0275\u0275elementEnd()()()()),2&n){const e=a.$implicit;t.\u0275\u0275advance(2),t.\u0275\u0275property("src",null==e?null:e.url,t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(null==e?null:e.title),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(null==e?null:e.type)}}function ze(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",50)(1,"button",51),t.\u0275\u0275listener("click",function(){const i=t.\u0275\u0275restoreView(e),r=i.$implicit,c=i.index,u=t.\u0275\u0275nextContext(2);
1return u.getCategoryId(r),t.\u0275\u0275resetView(u.hideAllRoomList(c))}),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()()}if(2&n){const e=a.$implicit,o=a.index,i=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",i.defaultBtnValue==o?"btn btn1":"btn btn2")("disabled",1==(null==i.property?null:i.property.length)),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",null==e?null:e.category,"")}}function Ge(n,a){if(1&n&&t.\u0275\u0275element(0,"img",67),2&n){const e=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("src",e,t.\u0275\u0275sanitizeUrl)}}function He(n,a){if(1&n&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,Ge,1,1,"ng-template",66),t.\u0275\u0275elementContainerEnd()),2&n){const e=a.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("id",e)}}function We(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div",47)(1,"div"),t.\u0275\u0275element(2,"img",48),t.\u0275\u0275text(3,"\xa0"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div")(5,"div",49)(6,"span"),t.\u0275\u0275text(7),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(8,"\xa0 "),t.\u0275\u0275elementStart(9,"span"),t.\u0275\u0275text(10),t.\u0275\u0275elementEnd()()()()),2&n){const e=a.$implicit;t.\u0275\u0275advance(2),t.\u0275\u0275property("src",null==e?null:e.url,t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(null==e?null:e.title),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(null==e?null:e.type)}}function Ke(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"tr",61)(1,"td",68),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"td",69),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"date"),t.\u0275\u0275pipe(6,"date"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"td",68),t.\u0275\u0275text(8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"td",70)(10,"button",71),t.\u0275\u0275listener("click",function(){const r=t.\u0275\u0275restoreView(e).$implicit,c=t.\u0275\u0275nextContext().$implicit,u=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(u.gettenancyId(r,c.roomId,c.title))}),t.\u0275\u0275text(11),t.\u0275\u0275elementEnd()()()}if(2&n){const e=a.$implicit,o=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(null==e?null:e.tenancy),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate2("",t.\u0275\u0275pipeBind2(5,8,null==e?null:e.checkInDate,"medium")," - ",t.\u0275\u0275pipeBind2(6,11,null==e?null:e.checkoutDate,"medium"),""),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate2("",null==e?null:e.price," ",null==e?null:e.priceUnit," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("disabled",1==(null==o.propertyInfo?null:o.propertyInfo.isSoldOut))("ngClass",1==(null==o.propertyInfo?null:o.propertyInfo.isSoldOut)?"btn btn-danger":"btn btn-success"),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",1==(null==o.propertyInfo?null:o.propertyInfo.isSoldOut)?"Sold Out":"Book Now","")}}function Ye(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div",52)(1,"div",2)(2,"div",53)(3,"owl-carousel-o",54),t.\u0275\u0275template(4,He,2,1,"ng-container",55),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(5,"div",56)(6,"div",57)(7,"div")(8,"h4",58),t.\u0275\u0275text(9),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(10,"div",2)(11,"div",59),t.\u0275\u0275text(12," Room Area: "),t.\u0275\u0275elementStart(13,"span"),t.\u0275\u0275text(14),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(15,"div",59),t.\u0275\u0275text(16," Bathroom Type: "),t.\u0275\u0275elementStart(17,"span"),t.\u0275\u0275text(18),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(19,"div",59),t.\u0275\u0275text(20," Bed Type: "),t.\u0275\u0275elementStart(21,"span"),t.\u0275\u0275text(22),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(23,"div",60),t.\u0275\u0275text(24," Kitchen Type: "),t.\u0275\u0275elementStart(25,"span"),t.\u0275\u0275text(26),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(27,"div")(28,"div",40),t.\u0275\u0275element(29,"b"),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275element(30,"hr"),t.\u0275\u0275elementStart(31,"div")(32,"div",35)(33,"div")(34,"span")(35,"h4")(36,"b"),t.\u0275\u0275text(37,"Amenities"),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275elementStart(38,"div",2),t.\u0275\u0275template(39,We,11,3,"div",32),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275element(40,"hr"),t.\u0275\u0275elementStart(41,"div",61)(42,"span")(43,"h4")(44,"b"),t.\u0275\u0275text(45,"Tenancy"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(46,"table",62)(47,"thead",61)(48,"th",63),t.\u0275\u0275text(49,"Stay Duration"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(50,"th",53),t.\u0275\u0275text(51,"Move"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(52,"th",63),t.\u0275\u0275text(53,"Price"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(54,"th",64),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(55,"tbody"),t.\u0275\u0275template(56,Ke,12,14,"tr",65),t.\u0275\u0275elementEnd()()()()),2&n){const e=a.$implicit,o=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(3),t.\u0275\u0275property("options",o.customOptions),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",null==e?null:e.images),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(null==e?null:e.title),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(null==e?null:e.area),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1("",null==e?null:e.bathroomType," "),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1("",e.bedType," "),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1("",null==e?null:e.kitchenType," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("innerHTML",null==e?null:e.description,t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(11),t.\u0275\u0275property("ngForOf",null==e?null:e.amenities),t.\u0275\u0275advance(17),t.\u0275\u0275property("ngForOf",null==e?null:e.rates)}}function Je(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"a",44),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(2);
1return t.\u0275\u0275resetView(i.showText(null==i.propertyInfo?null:i.propertyInfo.cancellationPolicy))}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&n){const e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",e.isReadMore?"Read more":"Read less","")}}function Qe(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"a",44),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext().$implicit,r=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(r.showText(null==i?null:i.termsCondition))}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2&n){const e=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",e.isReadMore?"*T & C applied.":"Read less","")}}const z=function(n){return{limitTextHeight:n}};function Ze(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div",74)(1,"div",75)(2,"div",23)(3,"div",6)(4,"h5",76),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"date"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(7,"hr"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"div",77),t.\u0275\u0275element(9,"b"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(10,"div",78),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(11,Qe,2,1,"a",28),t.\u0275\u0275elementEnd()()),2&n){const e=a.$implicit,o=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(11,z,o.isReadMore)),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate4("",null==e?null:e.tag,"\xa0\xa3",null==e?null:e.amount," on ",null==e?null:e.type,", valid till ",t.\u0275\u0275pipeBind2(6,8,null==e?null:e.validTill,"medium"),""),t.\u0275\u0275advance(3),t.\u0275\u0275property("innerHTML",null==e?null:e.info,t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(2),t.\u0275\u0275property("innerHTML",null==e?null:e.termsCondition,t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==e?null:e.termsCondition.length)>280)}}function Xe(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div",72),t.\u0275\u0275element(1,"hr"),t.\u0275\u0275elementStart(2,"h4",22),t.\u0275\u0275text(3,"Offers"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div",2),t.\u0275\u0275template(5,Ze,12,13,"div",73),t.\u0275\u0275elementEnd()()),2&n){const e=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(5),t.\u0275\u0275property("ngForOf",null==e.propertyInfo?null:e.propertyInfo.offers)}}const tn=function(){return["DIV"]};function en(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"div",9)(2,"div",10)(3,"div",11),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(i.imageGallary())}),t.\u0275\u0275elementStart(4,"div")(5,"mat-grid-list",12),t.\u0275\u0275template(6,Be,2,5,"mat-grid-tile",13),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"div",14)(8,"div",15),t.\u0275\u0275text(9,"View All"),t.\u0275\u0275elementEnd()()()()(),t.\u0275\u0275elementStart(10,"div",16)(11,"div",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(i.scrollTo("section1"))}),t.\u0275\u0275elementStart(12,"h3"),t.\u0275\u0275text(13,"Overview"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(14,"div",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(i.scrollTo("section2"))}),t.\u0275\u0275elementStart(15,"h3"),t.\u0275\u0275text(16,"Room Type"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(17,"div",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(i.scrollTo("section3"))}),t.\u0275\u0275elementStart(18,"h3"),t.\u0275\u0275text(19,"Payment Info"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(20,Ue,3,1,"div",18),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(21,"hr"),t.\u0275\u0275elementStart(22,"div",19),t.\u0275\u0275listener("sectionChange",function(i){t.\u0275\u0275restoreView(e);const r=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(r.onSectionChange(i))}),t.\u0275\u0275elementStart(23,"div",20)(24,"div")(25,"div",21)(26,"div")(27,"h4",22),t.\u0275\u0275text(28),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(29,"div")(30,"div",6)(31,"div",23)(32,"h4",24),t.\u0275\u0275text(33),t.\u0275\u0275elementEnd()()()()(),t.\u0275\u0275elementStart(34,"div")(35,"div",25)(36,"div",26),t.\u0275\u0275element(37,"div",27),t.\u0275\u0275template(38,qe,2,1,"a",28),t.\u0275\u0275elementStart(39,"div",29)(40,"div")(41,"mat-icon"),t.\u0275\u0275text(42," place"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(43,"div"),t.\u0275\u0275text(44),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(45,je,2,1,"div",30),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275element(46,"hr"),t.\u0275\u0275elementStart(47,"div",31)(48,"h4",22),t.\u0275\u0275text(49,"Amenities"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(50,"div",2),t.\u0275\u0275template(51,$e,11,3,"div",32),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275element(52,"hr"),t.\u0275\u0275elementStart(53,"div",33)(54,"div",9)(55,"h4",22),t.\u0275\u0275text(56,"Room Type"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(57,"div",25),t.\u0275\u0275template(58,ze,3,3,"div",34),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(59,"div",35),t.\u0275\u0275template(60,Ye,57,10,"div",36),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275element(61,"hr"),t.\u0275\u0275elementStart(62,"div",37)(63,"div",2)(64,"div",38)(65,"h4",22),t.\u0275\u0275text(66,"Payment Information"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(67,"div",39),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(68,"div",38)(69,"h4",22),t.\u0275\u0275text(70,"What We Love"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(71,"div",40),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(72,"div",38)(73,"h4",22),t.\u0275\u0275text(74,"Cancellation Policy"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(75,"div"),t.\u0275\u0275element(76,"div",27),t.\u0275\u0275template(77,Je,2,1,"a",28),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275template(78,Xe,6,1,"div",41),t.\u0275\u0275elementEnd()()}if(2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(6),t.\u0275\u0275property("ngForOf",e.tiles),t.\u0275\u0275advance(5),t.\u0275\u0275property("ngClass","section1"===e.section?"button-color ":" pointer"),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass","section2"===e.section?"button-color tab":"tab"),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass","section3"===e.section?"button-color tab":"tab"),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",0!=(null==e.propertyInfo?null:e.propertyInfo.offers.length)),t.\u0275\u0275advance(2),t.\u0275\u0275property("spiedTags",t.\u0275\u0275pureFunction0(23,tn)),t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(null==e.propertyInfo?null:e.propertyInfo.name),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass",1==(null==e.propertyInfo?null:e.propertyInfo.isSoldOut)?"sold-out":"available"),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("",1==(null==e.propertyInfo?null:e.propertyInfo.isSoldOut)?"Sold Out":"Available"," "),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(24,z,e.isReadMore1))("innerHTML",null==e.propertyInfo?null:e.propertyInfo.description,t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==e.propertyInfo||null==e.propertyInfo.description?null:e.propertyInfo.description.length)>280),t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate1(" ",null==e.propertyInfo?null:e.propertyInfo.address,""),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",0!=(null==e.propertyInfo?null:e.propertyInfo.videoUrl)),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngForOf",null==e.propertyInfo?null:e.propertyInfo.amenities),t.\u0275\u0275advance(7),t.\u0275\u0275property("ngForOf",e.property),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",e.allRoomList),t.\u0275\u0275advance(7),t.\u0275\u0275property("innerHTML",null==e.propertyInfo?null:e.propertyInfo.paymentInfo,t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(4),t.\u0275\u0275property("innerHTML",null==e.propertyInfo?null:e.propertyInfo.whatWeLove,t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(5),t.\u0275\u0275propertyInterpolate("innerHTML",null==e.propertyInfo?null:e.propertyInfo.cancellationPolicy,t.\u0275\u0275sanitizeHtml),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(26,z,e.isReadMore)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==e.propertyInfo?null:e.propertyInfo.cancellationPolicy.length)>280),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",0!=(null==e.propertyInfo?null:e.propertyInfo.offers.length))}}function nn(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div",83),t.\u0275\u0275element(1,"img",84),t.\u0275\u0275elementEnd()),2&n){const e=a.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("src",e,t.\u0275\u0275sanitizeUrl)}}function rn(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"span",79),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(i.backOnDetails())}),t.\u0275\u0275element(2,"img",80),t.\u0275\u0275elementStart(3,"span",81),t.\u0275\u0275text(4,"Back"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(5,"div",2),t.\u0275\u0275template(6,nn,2,1,"div",82),t.\u0275\u0275elementEnd()()}if(2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(6),t.\u0275\u0275property("ngForOf",e.propertyMedia)}}let on=(()=>{const a=class{constructor(o,i,r,c,u,b,x,E){this.booking=o,this.toaster=i,this.studentService=r,this.route=c,this.dialog=u,this.sanitizer=b,this.location=x,this.breadCrumb=E,this.onDestroy$=new m.Subject,this.currentTab=1,this.flagDisabled=!1,this.roomsList=[],this.rates=[],this.cityName=[],this.universityName=[],this.invalid1="invaild",this.propertyMedia=[],this.hideGallary=!1,this.propertyStatus=!1,this.propertyGallryComponentStatus=!1,this.tiles=[],this.allRoomList=[],this.hideRoomList=!1,this.defaultBtnValue=0,this.roomStatus=!1,this.section="section1",this.overviewTab=!1,this.roomTypeTab=!1,this.paymentInfoTab=!1,this.isReadMore=!0,this.formStatus=!1,this.isReadMoreOffer=!0,this.isReadMore1=!0,this.customOptions={loop:!1,autoplay:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,dots:!1,navSpeed:700,margin:30,navText:['<i class="fa fa-caret-left"></i>','<i class="fa fa-caret-right"></i>'],responsive:{0:{items:1},450:{items:2}},nav:!0}}ngOnInit(){this.route.params.subscribe(o=>{this.country=o.country,this.CityName=o.City,this.university=o.university,this.propertyID=o.propertyID,this.Id=o.studentId,this.getProperty(o.propertyID)}),this.getStudentDetails(),this.breadCrumb.addRouteToBreadCrumb("Property",!0)}openDialog(){this.dialog.open(j,{data:{dataKey:this.property_descrption,studentFlag:!1,readMoreflag:!0,offer:this.offers}}).afterClosed().subscribe(i=>{})}getStudentDetails(){this.Id>0&&this.studentService.getSectionWise(this.Id).subscribe(o=>{this.studentData=o.genInfo})}openForm(){this.formStatus=!0,this.dialog.open(Q,{data:{tentency:this.tenancyId,property:this.propertyID,country:this.country,city:this.CityName,university:this.university,roomid:this.roomid,category:this.userSelectedCategoryId?this.userSelectedCategoryId:this.property[0].categoryId,roomName:this.roomName,tenancyName:this.tenancyName,studentData:this.studentData,studentId:this.Id}}).afterClosed().subscribe(i=>{})}getProperty(o){this.scrollTop(),this.booking.property(o).pipe((0,_.R)(this.onDestroy$)).subscribe(i=>{this.property=i.rooms,this.propertyInfo=i,this.propertyMedia=i.media,this.thumbnail=i.thumbnail,this.distanceFromCityCenter=i.distanceFromCityCenter,this.allRoomList=this.property[0].types,this.propertyInfo.videoUrl.forEach(r=>{this.video=r}),this.videoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.video),this.tiles=[{text:this.thumbnail,cols:2,rows:4},{text:this.propertyMedia[0],cols:1,rows:3},{text:this.propertyMedia[1],cols:1,rows:2},{text:this.propertyMedia[2],cols:1,rows:2},{text:this.propertyMedia[3],cols:1,rows:1}],this.propertyStatus=!1,this.roomStatus=!0,this.hideGallary=!1},i=>{this.toaster.pop("error",this.property.msg)})}showText(o){this.property_descrption=o,this.canceLation_properties=o,this.termAndConditon=o,this.offers=o,this.openDialog()}showDescription(){this.isReadMore1=!this.isReadMore1}getRooms(o){this.room_Id=o.roomId}getCategoryId(o){this.userSelectedCategoryId=o.categoryId,this.categoryname=o.category,this.property.forEach(i=>{this.userSelectedCategoryId===i.categoryId&&(this.allRoomList=i.types)},i=>{this.toaster.pop("error",this.roomsList.msg)})}getTentecy(o){this.roomsList.forEach(i=>{o===i.roomId&&(this.rates=i.rates)},i=>{this.toaster.pop("error",this.rates.msg)})}gettenancyId(o,i,r){this.roomid=i,this.roomName=r,this.tenancyId=o.tenancyId,this.tenancyName=o.tenancy,this.openForm()}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}imageGallary(){this.hideGallary=!0,this.propertyGallryComponentStatus=!0}scrollTop(){document.getElementById("scrollTop").scrollIntoView()}offerScrollTop(){document.getElementById("offers").scrollIntoView()}back(){this.location.back()}backOnDetails(){this.hideGallary=!1}hideAllRoomList(o){this.hideRoomList=!0,this.defaultBtnValue=o}hideCategoryRoomList(){this.hideRoomList=!1}scrollTo(o){this.section=o,document.querySelector("#"+o).scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}onSectionChange(o){this.section=o}overviewTabColor(){this.paymentInfoTab=!1,this.overviewTab=!0,this.roomTypeTab=!0}
1roomTabcolor(){this.paymentInfoTab=!1,this.overviewTab=!1,this.roomTypeTab=!1}paymentinfoTabColor(){this.paymentInfoTab=!0,this.roomTypeTab=!1,this.overviewTab=!0}};let n=a;return a.\u0275fac=function(i){return new(i||a)(t.\u0275\u0275directiveInject(f.q),t.\u0275\u0275directiveInject(w.MJ),t.\u0275\u0275directiveInject(g.V),t.\u0275\u0275directiveInject(s.gz),t.\u0275\u0275directiveInject(P.on),t.\u0275\u0275directiveInject(Fe.DomSanitizer),t.\u0275\u0275directiveInject(l.Location),t.\u0275\u0275directiveInject(v._))},a.\u0275cmp=t.\u0275\u0275defineComponent({type:a,selectors:[["app-property-details"]],decls:5,vars:3,consts:[["id","scrollTop"],[4,"ngIf"],[1,"row"],["class","card col-sm-4 col-md-4",4,"ngFor","ngForOf"],[1,"card","col-sm-4","col-md-4"],[1,"pointer",3,"click"],[1,""],["src","https://cdn.universityliving.com/cms/u8lb4iwRRxMC5sahhiHVFmwWxKR3Id.jpg",1,"img-size"],[1,"heading","room-card"],[1,"accordian-margin"],[1,"image_grid"],[1,"image",3,"click"],["cols","4","rowHeight","100px"],[3,"colspan","rowspan","background",4,"ngFor","ngForOf"],[1,"overlay"],[1,"text"],[1,"d-flex","mb-4"],[3,"ngClass","click"],[3,"ngClass","click",4,"ngIf"],["appScrollShy","",3,"spiedTags","sectionChange"],["id","section1",1,"mb-4"],[1,"accordian-margin","d-flex"],[1,"font-weight-bold"],[3,"ngClass"],[1,"font-weight-bold","available-btn-text"],[1,"d-flex"],[1,"propertyDescription"],[3,"ngClass","innerHTML"],["class","redTxt",3,"click",4,"ngIf"],[1,"d-flex","mt-3"],["class","video-frame",4,"ngIf"],[1,"accordian-margin","mb-4"],["class","col-sm-3 col-md-3 d-flex",4,"ngFor","ngForOf"],["id","section2",1,"mb-4"],["class","padding-left",4,"ngFor","ngForOf"],[1,"mb-4"],["class"," card room-card",4,"ngFor","ngForOf"],["id","section3",1,"mb-4"],[1,"accordian-margin","col-sm-4","col-md-4"],[1,"text-bold",3,"innerHTML"],[3,"innerHTML"],["id","section4","class","mb-4",4,"ngIf"],[3,"colspan","rowspan"],["alt","",1,"image-size1",3,"src"],[1,"redTxt",3,"click"],[1,"video-frame"],["frameborder","0","webkitallowfullscreen","","mozallowfullscreen","","allowfullscreen","",3,"src"],[1,"col-sm-3","col-md-3","d-flex"],[1,"image-size",3,"src"],[1,"pt-2"],[1,"padding-left"],[3,"ngClass","disabled","click"],[1,"card","room-card"],[1,"col-sm-4","col-md-4"],[1,"new-program-arrivals-slider",3,"options"],[4,"ngFor","ngForOf"],[1,"col-sm-8","col-md-8"],[1,"d-flex",2,"justify-content","space-between"],[1,"heading"],[1,"col-sm-4","col-md-4","pb-2"],[1,"col-sm-4","col-md-4","pb-4"],[1,"row","margin-remove"],[1,"table"],[1,"col-sm-3","col-md-3"],[1,"col-sm-2","col-md-2"],["class","row margin-remove",4,"ngFor","ngForOf"],["carouselSlide","",3,"id"],[3,"src"],[1,"col-sm-3","col-md-3","mb-4"],[1,"col-sm-4","col-md-4","mb-4"],[1,"col-sm-2","col-md-2","mb-4","text-center"],[3,"disabled","ngClass","click"],["id","section4",1,"mb-4"],["class"," col-md-6 col-sm-6 ",4,"ngFor","ngForOf"],[1,"col-md-6","col-sm-6"],[1,"card","offers"],[1,"offers-heading"],[1,"offer-info",3,"innerHTML"],[1,"font-weight-bold",3,"innerHTML"],[1,"back-btn","d-flex",3,"click"],["src","assets/icons/back.svg","alt","",1,"mr-1"],[1,"mx-1"],["class","col-sm-6 col-md-6 image-space",4,"ngFor","ngForOf"],[1,"col-sm-6","col-md-6","image-space"],[1,"img-height",3,"src"]],template:function(i,r){1&i&&(t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275template(1,Ve,3,1,"div",1),t.\u0275\u0275template(2,en,79,28,"div",1),t.\u0275\u0275template(3,rn,7,1,"div",1),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(4,"app-property-iamge-gallary")),2&i&&(t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.propertyStatus),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.roomStatus&&!r.hideGallary),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.hideGallary))},dependencies:[$.Fy,$.Mp,B.Il,B.DX,l.NgClass,l.NgForOf,l.NgIf,W.Hw,Y,Re,l.DatePipe],styles:[".m-r-5[_ngcontent-%COMP%]{margin-right:.5em}.m-t-1[_ngcontent-%COMP%]{margin-top:1em}.btn-defualt[_ngcontent-%COMP%]{background-color:#34bf49;border-radius:10px;padding:10px 20px}hr[_ngcontent-%COMP%]{margin-top:2.7em} .new-agent-design button.mat-icon-button .mat-button-wrapper{inset:0!important} .new-agent-ui mat-hint, .new-agent-design mat-hint{display:block!important}.form-control[_ngcontent-%COMP%]{background-image:none!important}input[_ngcontent-%COMP%]{height:20px}.invaild[_ngcontent-%COMP%]{border-color:#e8252a;border:solid 1px}.image-size[_ngcontent-%COMP%]{height:40px;width:40px}.image-size1[_ngcontent-%COMP%]{width:100%;height:100%}.img-height[_ngcontent-%COMP%]{width:100%;border-radius:10px;height:600px}.offers[_ngcontent-%COMP%]{padding:10px}.accordian-margin[_ngcontent-%COMP%]{margin-bottom:10px}.image_grid[_ngcontent-%COMP%]{position:relative;width:100%}.image[_ngcontent-%COMP%]{display:block;width:100%;height:auto;cursor:pointer}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.5s ease;background-color:#4b4d4e}.image_grid[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:.5}.text[_ngcontent-%COMP%]{color:#fff;font-size:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}.available[_ngcontent-%COMP%]{background-color:#34bf49;border-radius:15px;border:none;color:#fff;font-weight:700;margin-left:20px;padding:3px 30px}.available-btn-text[_ngcontent-%COMP%]{margin-bottom:0!important}.sold-out[_ngcontent-%COMP%]{border-radius:15px;background-color:#e8252a;border:none;color:#fff;margin-left:20px;padding:3px 30px;font-weight:700}.heading[_ngcontent-%COMP%]{font-weight:600;font-size:1.375rem;color:#e8252a}.image-space[_ngcontent-%COMP%]{padding-left:5px;padding-right:5px;padding-bottom:5px}.room-card[_ngcontent-%COMP%]{padding:8px}.image-size1[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .carousel-slide{height:200px!important}[_nghost-%COMP%] .carousel{height:200px!important}hr[_ngcontent-%COMP%]{margin-top:1em}.background[_ngcontent-%COMP%]:active{background-color:#e8252a;border:none!important}.background[_ngcontent-%COMP%]:focus{background-color:#e8252a;color:#fff}.background1[_ngcontent-%COMP%]:active, .category-btn[_ngcontent-%COMP%]:active{background-color:#e8252a;border:none!important}.category-btn[_ngcontent-%COMP%]:focus{background-color:#e8252a;color:#fff}.tenancy[_ngcontent-%COMP%]{margin-bottom:8px}.position-agin[_ngcontent-%COMP%]{margin-top:10px}.btn1[_ngcontent-%COMP%]{background-color:#e8252a}.btn2[_ngcontent-%COMP%]{background-color:gray}.radio-button[_ngcontent-%COMP%]{margin-left:10px}.padding-left[_ngcontent-%COMP%]{padding-left:10px}.img-size[_ngcontent-%COMP%]{width:100%}.pointer[_ngcontent-%COMP%]{cursor:pointer}#section1[_ngcontent-%COMP%], #section2[_ngcontent-%COMP%], #section3[_ngcontent-%COMP%]{scroll-margin-top:150px}.button-color[_ngcontent-%COMP%]{color:#e8252a;border-bottom:2px solid #E8252A;cursor:pointer}.tab[_ngcontent-%COMP%]{margin-left:20px;cursor:pointer}.limitTextHeight[_ngcontent-%COMP%]{height:197px;overflow:hidden}.descriptionHeight[_ngcontent-%COMP%]{height:50px;overflow:hidden}.redTxt[_ngcontent-%COMP%]{color:#e8252a!important;cursor:pointer}.margin-remove[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.table-width[_ngcontent-%COMP%]{width:100%}.min-price[_ngcontent-%COMP%]{justify-content:space-between}.offer-price[_ngcontent-%COMP%]{margin-left:10px;width:30%;padding:10px}.upTo-price[_ngcontent-%COMP%]{color:#e8252a}.font-heigth[_ngcontent-%COMP%]{margin:0}.tag-color[_ngcontent-%COMP%]{background-color:#00f;border-radius:10px;color:#fff}.offer-info[_ngcontent-%COMP%]{font-weight:700;color:#203c92}iframe[_ngcontent-%COMP%]{width:100%;height:30vh}.propertyDescription[_ngcontent-%COMP%]{width:100%}.video-frame[_ngcontent-%COMP%]{width:40%;margin-left:10px}.offer-card[_ngcontent-%COMP%]{width:50%;padding:10px;box-shadow:0 1px 4px #00000078!important;background:whitesmoke}.carousel-control-prev[_ngcontent-%COMP%], .carousel-control-next[_ngcontent-%COMP%]{width:2%}.new-program-arrivals-slider[_ngcontent-%COMP%] .owl-carousel .owl-prev{padding-right:10px}.new-program-arrivals-slider[_ngcontent-%COMP%] .owl-carousel .owl-next{padding-left:10px}@media (max-width: 767px){.new-program-arrivals-slider[_ngcontent-%COMP%] .owl-carousel .owl-prev{padding-right:10px}.new-program-arrivals-slider[_ngcontent-%COMP%] .owl-carousel .owl-next{padding-left:10px}.new-program-arrivals-slider[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{padding-left:10px}}[_nghost-%COMP%] .new-program-arrivals-slider .owl-next{margin-right:50px!important}[_nghost-%COMP%] .new-program-arrivals-slider .owl-prev{margin-left:50px!important}.offers-heading[_ngcontent-%COMP%]{font-weight:600;font-size:1.375rem;color:#203c92}"]}),n})();var an=p(15754),sn=p(11796),ln=p(58259),dn=p(96882),pn=p(98914),O=p(17805);function mn(n,a){if(1&n&&(t.\u0275\u0275elementStart(0,"div",3)(1,"div",4)(2,"p",5),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd()()()),2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" Unauthorized access. Please reach out to ",null!=e.primaryUserEmail?e.primaryUserEmail:"[email protected]"," ")}}function cn(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",20)(1,"h4",21),t.\u0275\u0275text(2,"Book an Accommodation"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div")(4,"button",22),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(2);
1return t.\u0275\u0275resetView(i.openDialog())}),t.\u0275\u0275text(5," Add Booking "),t.\u0275\u0275element(6,"img",23),t.\u0275\u0275elementEnd()()()}}function un(n,a){if(1&n&&(t.\u0275\u0275element(0,"dxi-column",24),t.\u0275\u0275pipe(1,"titlecase")),2&n){const e=a.$implicit;t.\u0275\u0275property("dataField",e.data)("caption",t.\u0275\u0275pipeBind1(1,4,e.title))("dataType",e.type)("format",e.format)}}function hn(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"span",25),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(3,"\xa0"),t.\u0275\u0275elementStart(4,"i",26),t.\u0275\u0275listener("click",function(){const r=t.\u0275\u0275restoreView(e).$implicit,c=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(c.getBookingStatus(r.data.BookingReferenceNo,r.data))}),t.\u0275\u0275text(5,"\uf021"),t.\u0275\u0275elementEnd()()}if(2&n){const e=a.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass","COMPLETE"==e.data.Status?"badge badge-pill badge-success text-size ":"badge badge-pill badge-info text-size"),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",e.data.Status," ")}}function gn(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"button",27),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(i.showFilterRow=!i.showFilterRow)}),t.\u0275\u0275element(2,"img",28),t.\u0275\u0275elementEnd()()}}const fn=function(){return[5,10,25,50,100]};function yn(n,a){if(1&n){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,cn,7,0,"div",6),t.\u0275\u0275elementStart(2,"div",7)(3,"dx-data-grid",8),t.\u0275\u0275listener("onExporting",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(i.activitylog())})("onToolbarPreparing",function(i){t.\u0275\u0275restoreView(e);const r=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(r.onToolbarPreparing(i))})("onRowPrepared",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(i.getItemsCount())})("onContentReady",function(){t.\u0275\u0275restoreView(e);const i=t.\u0275\u0275nextContext();return i.getItemsCount(),t.\u0275\u0275resetView(i.fixScrollBar())}),t.\u0275\u0275element(4,"dxo-load-panel",9)(5,"dxo-state-storing",10)(6,"dxo-paging",11)(7,"dxo-pager",12)(8,"dxo-filter-row",13)(9,"dxo-header-filter",14)(10,"dxo-export",15)(11,"dxo-column-fixing",9),t.\u0275\u0275template(12,un,2,6,"dxi-column",16),t.\u0275\u0275element(13,"dxi-column",17),t.\u0275\u0275template(14,hn,6,2,"div",18),t.\u0275\u0275template(15,gn,3,0,"div",18),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(16,"div",19),t.\u0275\u0275text(17),t.\u0275\u0275elementEnd()()}if(2&n){const e=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",e.accommodation_permission>1),t.\u0275\u0275advance(2),t.\u0275\u0275property("dataSource",e.data)("showBorders",!0)("allowColumnResizing",!0)("showColumnLines",!0)("showRowLines",!0)("rowAlternationEnabled",!0)("noDataText",e.gridMessage)("columnAutoWidth",!0)("noDataText",e.gridMessage)("allowColumnReordering",!0),t.\u0275\u0275advance(1),t.\u0275\u0275property("enabled",!1),t.\u0275\u0275advance(1),t.\u0275\u0275property("enabled",(null==e.columns?null:e.columns.length)>0),t.\u0275\u0275advance(1),t.\u0275\u0275property("enabled",!0)("pageSize",5),t.\u0275\u0275advance(1),t.\u0275\u0275property("showPageSizeSelector",!0)("allowedPageSizes",t.\u0275\u0275pureFunction0(30,fn))("showInfo",!0),t.\u0275\u0275advance(1),t.\u0275\u0275property("visible",e.showFilterRow),t.\u0275\u0275advance(1),t.\u0275\u0275property("visible",!0)("allowSearch",!0),t.\u0275\u0275advance(1),t.\u0275\u0275property("enabled",e.excel_permisson>0),t.\u0275\u0275advance(1),t.\u0275\u0275property("enabled",!1),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",e.columns),t.\u0275\u0275advance(1),t.\u0275\u0275property("allowExporting",!1)("width",120)("minWidth",120),t.\u0275\u0275advance(1),t.\u0275\u0275property("dxTemplateOf","actionCellTemplate"),t.\u0275\u0275advance(1),t.\u0275\u0275property("dxTemplateOf","advanceButtonTemp"),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" Number of items: ",e.numberOfItemsCount," ")}}let vn=(()=>{const a=class{constructor(o,i,r,c,u,b,x){this.booking=o,this.toasterService=i,this.authService=r,this.activityLog=c,this.dialog=u,this.breadCrumb=b,this.menuService=x,this.primaryUserEmail="",this.gridMessage="No data",this.columns=[{title:"Booking Reference No",data:"BookingReferenceNo",type:"",format:""},{title:"First Name",data:"FirstName",type:"",format:""},{title:"Last Name",data:"LastName",type:"",format:""},{title:"University",data:"University",type:"",format:""},{title:"Property",data:"Property",type:"",format:""},{title:"Contact No",data:"ContactNo",type:"",format:""},{title:"Email",data:"Email",type:"",format:""},{title:"Created Date",data:"createdDate",type:"date",format:"d MMM y h:mm:ss a"}],this.excel_permisson=0,this.ModifiedStatus="",this.myList=[],this.numberOfItemsCount=0,this.onDestroy$=new J.xQ,this.currentUser=this.authService.currentUserSubject.getValue(),this.excel_permisson=this.authService.checkPermission(U.vf.Excel_Export),this.accommodation_permission=this.authService.checkPermission(U.vf.Accommodation)}
1ngOnInit(){this.getBookingList(),this.breadCrumb.addRouteToBreadCrumb("Accommodation",!0),this.menuService.getPrimaryUser(this.currentUser.RefId).pipe().subscribe(o=>{this.primaryUserEmail=o.Email})}openDialog(){this.dialog.open(j,{data:{studentFlag:!0},width:"400px",height:"250px"}).afterClosed().subscribe(i=>{})}getBookingList(){this.agentId=this.currentUser.RefId,this.gridMessage="Loading",this.booking.bookingDetails(this.agentId,1).subscribe(o=>{this.data=o,this.gridMessage="No data"},o=>{this.toasterService.pop("error",this.data.msg)})}activitylog(){this.activityLog.activitylog(0,"Students","Export").subscribe()}onToolbarPreparing(o){o.toolbarOptions.items.unshift({location:"after",template:"advanceButtonTemp"})}getBookingStatus(o,i){this.booking.bookingStatus(o).subscribe(c=>{this.datastatus=c,this.myList.push(this.datastatus);let u=this.data.indexOf(i);this.data[u].Status=this.datastatus.status,this.updateLead()},c=>{this.toasterService.pop("error","Status not updated")})}updateLead(){this.booking.updateStatus({Status:this.datastatus.status,BookingReferenceNo:this.datastatus.orderId}).subscribe(i=>{this.updateData=i},i=>{this.toasterService.pop("error",this.updateData.msg)})}getItemsCount(){this.numberOfItemsCount=this.dataGrid&&this.dataGrid.instance?this.dataGrid.instance.totalCount():0}fixScrollBar(){const o=document.querySelector(".main-panel");new sn.Z(o).update(),ln(".main-panel").stop().animate({scrollTop:0},100)}ngOnDestroy(){this.onDestroy$.next(),this.onDestroy$.complete()}};let n=a;return a.\u0275fac=function(i){return new(i||a)(t.\u0275\u0275directiveInject(f.q),t.\u0275\u0275directiveInject(w.MJ),t.\u0275\u0275directiveInject(h.$),t.\u0275\u0275directiveInject(dn.t),t.\u0275\u0275directiveInject(P.on),t.\u0275\u0275directiveInject(v._),t.\u0275\u0275directiveInject(pn.h))},a.\u0275cmp=t.\u0275\u0275defineComponent({type:a,selectors:[["app-booking-list"]],viewQuery:function(i,r){if(1&i&&t.\u0275\u0275viewQuery(V.e,5),2&i){let c;t.\u0275\u0275queryRefresh(c=t.\u0275\u0275loadQuery())&&(r.dataGrid=c.first)}},decls:3,vars:2,consts:[[1,"new-design","new-agent-design"],["class","row",4,"ngIf"],[4,"ngIf"],[1,"row"],[1,"col-md-12"],[1,"alert","alert-danger"],["class","d-flex justify-content-between align-items-center mb-4",4,"ngIf"],[1,"grey-card"],[1,"filter",3,"dataSource","showBorders","allowColumnResizing","showColumnLines","showRowLines","rowAlternationEnabled","noDataText","columnAutoWidth","allowColumnReordering","onExporting","onToolbarPreparing","onRowPrepared","onContentReady"],[3,"enabled"],["type","localStorage","storageKey","agent-student",3,"enabled"],[3,"enabled","pageSize"],[3,"showPageSizeSelector","allowedPageSizes","showInfo"],[3,"visible"],[3,"visible","allowSearch"],["fileName","Booking_List",3,"enabled"],[3,"dataField","caption","dataType","format",4,"ngFor","ngForOf"],["caption","Status","cssClass","action-center","cellTemplate","actionCellTemplate",3,"allowExporting","width","minWidth"],[4,"dxTemplate","dxTemplateOf"],[1,"number-of-count"],[1,"d-flex","justify-content-between","align-items-center","mb-4"],[1,"tittle","m-0"],["type","button",1,"btn-agent-green","d-flex","align-items-center",3,"click"],["alt","","src","./assets/img/Vector.svg","width","15",1,"ml-2"],[3,"dataField","caption","dataType","format"],[3,"ngClass"],["title","refresh",1,"fa","refresh",3,"click"],["mat-icon-button","","data-toggle","tooltip","title","Apply Filter",1,"text-danger","p0",3,"click"],["src","../../../../assets/icons//Filter.svg","alt",""]],template:function(i,r){1&i&&(t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275template(1,mn,4,1,"div",1),t.\u0275\u0275template(2,yn,18,31,"div",2),t.\u0275\u0275elementEnd()),2&i&&(t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.accommodation_permission),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.accommodation_permission))},dependencies:[l.NgClass,l.NgForOf,l.NgIf,K.p6,V.e,O.QIp,O.qvW,O.tZE,O.Ak0,O.I62,O.mKI,O.ilc,O.sXh,O.C9T,F.eB,l.TitleCasePipe],styles:["[_nghost-%COMP%] .new-agent-ui .searchdiv .search-keyword .mat-form-field-infix, [_nghost-%COMP%] .new-agent-design .searchdiv .search-keyword .mat-form-field-infix{padding:1em 0 .5em!important}.refresh[_ngcontent-%COMP%]{cursor:pointer!important;font-size:14px}.text-size[_ngcontent-%COMP%]{font-size:12px}
1.btn-agent-green[_ngcontent-%COMP%]{background:#203C92!important;border:1px solid #203C92!important}.btn-agent-green[_ngcontent-%COMP%]:hover{background-color:#000!important}.number-of-count[_ngcontent-%COMP%]{color:#000000de!important;font-family:Roboto,RobotoFallback,Noto Kufi Arabic,Helvetica,Arial,sans-serif}"]}),n})();var _n=p(88796),Cn=p(86805);let In=(()=>{const a=class{};let n=a;return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=t.\u0275\u0275defineNgModule({type:a}),a.\u0275inj=t.\u0275\u0275defineInjector({imports:[$.bB,_n.A0,q.Xo,an.Nn,B.N6,d.u5,d.UX,l.CommonModule,it.Zh,W.Ps,I.Uc,P.yj,S.uw,T.Co,C.wp,H.x4,N.FA,at.n,st.N,lt.O,dt.B,pt.C,K.ie,V.x,mt.l,F.yu,ct.To,Cn.M,s.Bz.forChild([{path:"booking",component:ot},{path:"images",component:Y},{path:"popup",component:Q},{path:"proprtyDetails/:country/:City/:university/:propertyID/:studentId",component:on},{path:"bookingList",component:vn},{path:"readmorepopup",component:j}])]}),n})()},96882:(R,M,p)=>{p.d(M,{t:()=>_});var l=p(92340),d=p(94650),m=p(80529);let _=(()=>{const f=class{constructor(s){this.http=s,this.APIURL=l.NZ.apiurl+"ActivityLog/",this.AGENTLOGURL=l.NZ.apiurl+"Agent/"}activitylog(s,h,y){return this.http.post(this.APIURL+"Add",{EntityId:s,EntityName:h,ActionType:y})}agentActivitylog(s,h,y){this.http.post(this.AGENTLOGURL+"AgentRecentActivitiesAdd",{EntityID:h,EntityType:s,EntityDesc:y}).subscribe(g=>{})}getAgentActivities(){return this.http.get(this.AGENTLOGURL+"AgentRecentActivitiesGet")}};let t=f;return f.\u0275fac=function(h){return new(h||f)(d.\u0275\u0275inject(m.HttpClient))},f.\u0275prov=d.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac,providedIn:"root"}),t})()},44339:(R,M,p)=>{p.d(M,{V:()=>_});var l=p(92340),d=p(94650),m=p(80529);let _=(()=>{const f=class{constructor(s){this.http=s,this.APIURL=l.NZ.apiurl+"Student/",this.APIURL2=l.NZ.apiurl}add(s){return console.log("form",s),this.http.post(this.APIURL+"Add",s)}save(s){return console.log("form",s),this.http.post(this.APIURL+"Add",s)}update(s){return this.http.post(this.APIURL+"Update",s)}updateGenInfo(s){return""!=s.AncillaryService&&!s.AncillaryService&&(s.AncillaryService=null),this.http.post(this.APIURL+"UpdateGenInfo",s)}updateEduInfo(s){return this.http.post(this.APIURL+"UpdateEduInfo",s)}updateTestScore(s){return this.http.post(this.APIURL+"UpdateTestScore",s)}delete(s){return this.http.post(this.APIURL+"Delete?StudentId="+s,{})}get(s){return this.http.post(this.APIURL+"Get?StudentId="+s,{})}getSectionWise(s){return this.http.post(this.APIURL+"getSectionWise?StudentId="+s,{})}sendInvitations(s){return this.http.post(this.APIURL+"Invitation?StudentId="+s,{})}list(s){return this.http.post(this.APIURL+"List",{keyword:s})}login(s){return this.http.post(this.APIURL+"Login",s)}search(s){return this.http.get(this.APIURL+"Search?keyword="+s)}searchV1(s){return this.http.post(this.APIURL+"SearchV1",s)}signup(s){return this.http.post(this.APIURL+"Signup",s)}listDetailed(s){return this.http.post(this.APIURL+"ListDetailed",{keyword:s})}studentListWithDraftStudent(s){return this.http.get(this.APIURL+"detailedlist?keyword="+s)}studentListWithDraftStudentPaginated(s){return this.http.post(this.APIURL+"detailedlist",s)}studentListWithIndianNationality(s){return this.http.post(this.APIURL+"detailedlistindia",s)}signupWithSocialAccount(s){return this.http.post(this.APIURL+"SignupWithSocialAccount",s)}checkPassportNo(s){return this.http.get(this.APIURL+"CheckPassportNo?passportno="+s)}getShortDetailByEmail(s){return this.http.get(this.APIURL+"GetShortDetailByEmail?email="+s)}updateEmergencyInfo(s){return this.http.post(this.APIURL+"UpdateEmergencyInfo",s)}view(s){return this.http.post(this.APIURL+"View?StudentId="+s,{})}getStudentImage(s){return this.http.post(this.APIURL+"Get?StudentId="+s,{})}passportImageToText(s){return this.http.post(l.NZ.apiurl+"OCR/File",s)}checkDuplicateMobileNumber(s,h,y,g,v,I,C,S){return this.http.get(this.APIURL+"checkmobileno?AgentId="+s+"&StudentId="+h+"&firstname="+y+"&lastname="+g+"&email="+v+"&dateofbirth="+I+"&mobileno="+C+"&passportno="+S)}profileDuplicateCheck(s,h,y,g,v,I,C,S){return this.http.post(this.APIURL+"ProfileDuplicateCheck",{AgentId:s,StudentId:S,FirstName:h,LastName:y,MobileNo:I,Email:g,DateOfBirth:v,Pass
1portNo:C})}profileDuplicateCheckV1(s,h,y,g,v,I,C,S,T,L){return this.http.post(this.APIURL+"ProfileDuplicateCheckV1",{AgentId:s,StudentId:S,FirstName:h,LastName:y,MiddleName:T,MobileNo:I,Email:g,DateOfBirth:v,PassportNo:C,CitizenshipId:L})}studentListForSearch(s){return this.http.post(this.APIURL+"searchstudentlist",{keyword:s})}shortListProgramList(s){return this.http.post(this.APIURL2+"ShortListProgram/List",{StudentId:s})}shortListProgramGet(s){return this.http.get(this.APIURL2+"ShortListProgram/Get?ShortlistId="+s)}shortListProgramAdd(s,h,y,g){return this.http.post(this.APIURL2+"ShortListProgram/Add",{StudentId:s,IntakeId:h,Remark:y,SourceType:g})}shortListProgramUpdate(s,h,y,g,v){return this.http.post(this.APIURL2+"ShortListProgram/Update",{ShortlistId:s,IntakeId:h,Remark:y,SourceType:g,RemarkTypeId:v})}shortListProgramDelete(s){return this.http.post(this.APIURL2+"ShortListProgram/Delete",{ShortlistId:s})}fillInstForShortListProgram(s){return this.http.post(this.APIURL2+"Institute/ForShortlistingProgram",{StudentId:s})}fillProgramForShortListProgram(s,h,y){return this.http.post(this.APIURL2+"Program/ForShortlistingProgram",{InstitutionId:s,CountryId:h,StudentId:y})}fillIntakeForShortListProgram(s,h,y){return this.http.post(this.APIURL2+"ProgramIntek/ForShortlistingProgram",{ProgramId:s,CountryId:h,StudentId:y,ApplicationId:0})}primaryLeadSourceForDDLNew(){return this.http.get(this.APIURL+"LeadsourcePrimaryForDDL")}secondaryLeadSourceForDDLNew(s){return this.http.get(this.APIURL+"LeadsourceSecondaryForDDL?PrimaryLeadsourceId="+s)}thirdLeadSourceForDDLNew(s){return this.http.get(this.APIURL+"LeadsourceThirdForDDL?SecondaryLeadSourceId="+s)}drafVerion(s){return this.http.post(this.APIURL+"staging",s,{responseType:"text"})}draftStudentData(s){return this.http.get(this.APIURL+"stagingbystudentid?stagingstudentid="+s)}studentStaging(s,h){return this.http.post(this.APIURL+"stagingstatus?stagingstudeniId="+s+"&isDeleted="+h,s,{responseType:"text"})}getRemarkType(){return this.http.get(this.APIURL2+"B2CPaymentGateway/RemarksForB2CList")}};let t=f;return f.\u0275fac=function(h){return new(h||f)(d.\u0275\u0275inject(m.HttpClient))},f.\u0275prov=d.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac,providedIn:"root"}),t})()},75016:(R,M,p)=>{p.d(M,{B:()=>s,S:()=>w});var l=p(61547),d=p(11481),m=p(94650),_=p(64634),t=p(34002),f=p(17805);let w=(()=>{let h=class extends t.VB{constructor(g,v,I,C,S,T,L,k,A){super(g,v,I,C,k,A),this._watcherHelper=C,this._idh=S,this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"validated",emit:"onValidated"},{emit:"adapterChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"nameChange"},{emit:"validationGroupChange"},{emit:"validationRulesChange"},{emit:"widthChange"}]),this.parentElement=this.getParentElement(T),this._idh.setHost(this),L.setHost(this)}get adapter(){return this._getOption("adapter")}set adapter(g){this._setOption("adapter",g)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(g){this._setOption("elementAttr",g)}get height(){return this._getOption("height")}set height(g){this._setOption("height",g)}get name(){return this._getOption("name")}set name(g){this._setOption("name",g)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(g){this._setOption("validationGroup",g)}get validationRules(){return this._getOption("validationRules")}set validationRules(g){this._setOption("validationRules",g)}get width(){return this._getOption("width")}set width(g){this._setOption("width",g)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(g){this.setChildren("validationRules",g)}_createInstance(g,v){return new _.Z(this.parentElement?this.parentElement:g,v)}getParentElement(g){if(g)return g.getHost().element.nativeElement}ngOnDestroy(){this._destroyWidget()}ngOnChanges(g){super.ngOnChanges(g),this.setupChanges("validationRules",g)}setupChanges(g,v){g in this._optionsToUpdate||this._idh.setup(g,v)}
1ngDoCheck(){this._idh.doCheck("validationRules"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(g,v){let I=this._idh.setupSingle(g,v),C=null!==this._idh.getChanges(g,v);(I||C)&&super._setOption(g,v)}};return h.\u0275fac=function(g){return new(g||h)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(t._5),m.\u0275\u0275directiveInject(t._h),m.\u0275\u0275directiveInject(t.i9),m.\u0275\u0275directiveInject(t.al,13),m.\u0275\u0275directiveInject(t.al),m.\u0275\u0275directiveInject(d.TransferState),m.\u0275\u0275directiveInject(m.PLATFORM_ID))},h.\u0275cmp=m.\u0275\u0275defineComponent({type:h,selectors:[["dx-validator"]],contentQueries:function(g,v,I){if(1&g&&m.\u0275\u0275contentQuery(I,f.vrV,4),2&g){let C;m.\u0275\u0275queryRefresh(C=m.\u0275\u0275loadQuery())&&(v.validationRulesChildren=C)}},inputs:{adapter:"adapter",elementAttr:"elementAttr",height:"height",name:"name",validationGroup:"validationGroup",validationRules:"validationRules",width:"width"},outputs:{onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValidated:"onValidated",adapterChange:"adapterChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",nameChange:"nameChange",validationGroupChange:"validationGroupChange",validationRulesChange:"validationRulesChange",widthChange:"widthChange"},features:[m.\u0275\u0275ProvidersFeature([t._5,t._h,t.al,t.i9]),m.\u0275\u0275InheritDefinitionFeature,m.\u0275\u0275NgOnChangesFeature],decls:0,vars:0,template:function(g,v){},encapsulation:2}),(0,l.gn)([(0,m.Input)(),(0,l.w6)("design:type",Object),(0,l.w6)("design:paramtypes",[Object])],h.prototype,"adapter",null),(0,l.gn)([(0,m.Input)(),(0,l.w6)("design:type",Object),(0,l.w6)("design:paramtypes",[Object])],h.prototype,"elementAttr",null),(0,l.gn)([(0,m.Input)(),(0,l.w6)("design:type",Object),(0,l.w6)("design:paramtypes",[Object])],h.prototype,"height",null),(0,l.gn)([(0,m.Input)(),(0,l.w6)("design:type",String),(0,l.w6)("design:paramtypes",[String])],h.prototype,"name",null),(0,l.gn)([(0,m.Input)(),(0,l.w6)("design:type",String),(0,l.w6)("design:paramtypes",[String])],h.prototype,"validationGroup",null),(0,l.gn)([(0,m.Input)(),(0,l.w6)("design:type",Array),(0,l.w6)("design:paramtypes",[Array])],h.prototype,"validationRules",null),(0,l.gn)([(0,m.Input)(),(0,l.w6)("design:type",Object),(0,l.w6)("design:paramtypes",[Object])],h.prototype,"width",null),(0,l.gn)([(0,m.Output)(),(0,l.w6)("design:type",m.EventEmitter)],h.prototype,"onDisposing",void 0),(0,l.gn)([(0,m.Output)(),(0,l.w6)("design:type",m.EventEmitter)],h.prototype,"onInitialized",void 0),(0,l.gn)([(0,m.Output)(),(0,l.w6)("design:type",m.EventEmitter)],h.prototype,"onOptionChanged",void 0),(0,l.gn)([(0,m.Output)(),(0,l.w6)("design:type",m.EventEmitter)],h.prototype,"onValidated",void 0),(0,l.gn)([(0,m.Output)(),(0,l.w6)("design:type",m.EventEmitter)],h.prototype,"adapterChange",void 0),(0,l.gn)([(0,m.Output)(),(0,l.w6)("design:type",m.EventEmitter)],h.prototype,"elementAttrChange",void 0),(0,l.gn)([(0,m.Output)(),(0,l.w6)("design:type",m.EventEmitter)],h.prototype,"heightChange",void 0),(0,l.gn)([(0,m.Output)(),(0,l.w6)("design:type",m.EventEmitter)],h.prototype,"nameChange",void 0),(0,l.gn)([(0,m.Output)(),(0,l.w6)("design:type",m.EventEmitter)],h.prototype,"validationGroupChange",void 0),(0,l.gn)([(0,m.Output)(),(0,l.w6)("design:type",m.EventEmitter)],h.prototype,"validationRulesChange",void 0),(0,l.gn)([(0,m.Output)(),(0,l.w6)("design:type",m.EventEmitter)],h.prototype,"widthChange",void 0),(0,l.gn)([(0,m.ContentChildren)(f.vrV),(0,l.w6)("design:type",m.QueryList),(0,l.w6)("design:paramtypes",[Object])],h.prototype,"validationRulesChildren",null),h=(0,l.gn)([(0,l.fM)(5,(0,m.SkipSelf)()),(0,l.fM)(5,(0,m.Optional)()),(0,l.fM)(5,(0,m.Host)()),(0,l.fM)(8,(0,m.Inject)(m.PLATFORM_ID)),(0,l.w6)("design:paramtypes",[m.ElementRef,m.NgZone,t._5,t._h,t.i9,t.al,t.al,d.TransferState,Object])],h),h})(),s=(()=>{let h=class{};return h.\u0275fac=function(g){return new(g||h)},h.\u0275mod=m.\u0275\u0275defineNgModule({type:h}),h.\u0275inj=m.\u0275\u0275defineInjector({imports:[f.Vp2,f.$D5,t.Lz,t.ie,d.BrowserTransferStateModule,f.Vp2,f.$D5,t.ie]}),h})()}}]);
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.