1"use strict";(self.webpackChunkaccoubtbook=self.webpackChunkaccoubtbook||[]).push([[2684],{96136:function(e,t,i){i.d(t,{ht:function(){return g},QV:function(){return a}});var n=i(77393),s=i(59193),r=i(25917),o=i(40205);class l{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,s.c)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new l("N",e):l.undefinedValueNotification}static createError(e){return new l("E",void 0,e)}static createComplete(){return l.completeNotification}}function a(e,t=0){return function(i){return i.lift(new c(e,t))}}l.completeNotification=new l("C"),l.undefinedValueNotification=new l("N",void 0);class c{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new g(e,this.scheduler,this.delay))}}class g extends n.L{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(g.dispatch,this.delay,new d(e,this.destination)))}_next(e){this.scheduleMessage(l.createNext(e))}_error(e){this.scheduleMessage(l.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(l.createComplete()),this.unsubscribe()}}class d{constructor(e,t){this.notification=e,this.destination=t}}},57771:function(e,t,i){i.d(t,{c:function(){return o},N:function(){return r}});var n=i(36465),s=i(16102);const r=new class extends s.v{}(class extends n.o{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),o=r},63713:function(e,t,i){i.d(t,{y:function(){return g}});var n=i(13795),s=i(32364),r=i(33018),o=i(91841),l=i(89401),a=i(86845),c=i(49900);let g=(()=>{class e extends n.a{constructor(e,t,i,n,s){super(e,t,i,n,s),this._config=t}GetAlldata(){super.GetAlldata(s.qE.Bank_GetAll)}GetAlldataforBooking(){super.GetAlldata(s.qE.Bank_GetAllForBooking)}getById(e){return super.getById(e,s.qE.Bank_GetById)}edit(e){return super.edit(e,s.qE.Bank_Update)}add(e){return super.add(e,s.qE.Bank_Add)}delete(e){super.delete(e,s.qE.Bank_Delete)}}return e.\u0275fac=function(t){return new(t||e)(r.LFG(o.eN),r.LFG(s.De),r.LFG(l.Rq),r.LFG(a.D),r.LFG(c.F0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e})()},57475:function(e,t,i){i.d(t,{v:function(){return c}});var n=i(32364),s=i(13795),r=i(33018),o=i(91841),l=i(89401),a=i(86845);let c=(()=>{class e extends s.a{constructor(e,t,i,n){super(e,t,i,n),this._config=t}GetAlldata(){super.GetAlldata(n.Sv.Customer_GetAll)}getById(e){return super.getById(e,n.Sv.Customer_GetById)}getByforbookingId(e){return super.getById(e,n.Sv.Customer_GetbyIdforbooking)}edit(e){return super.edit(e,n.Sv.Customer_Update)}add(e){return super.add(e,n.Sv.Customer_Add)}delete(e){super.delete(e,n.Sv.Customer_Delete)}CustomerImport(e,t){return super.changeInquirySite(0,e,t,n.Sv.Customer_Import)}}return e.\u0275fac=function(t){return new(t||e)(r.LFG(o.eN),r.LFG(n.De),r.LFG(l.Rq),r.LFG(a.D))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e})()},27317:function(e,t,i){i.d(t,{P:function(){return c}});var n=i(32364),s=i(13795),r=i(33018),o=i(91841),l=i(89401),a=i(86845);let c=(()=>{class e extends s.a{constructor(e,t,i,n){super(e,t,i,n),this._config=t}GetAlldata(){super.GetAlldata(n.I5.EmailTemplate_GetAll)}GetAlldataBooking(){super.GetAlldata(n.I5.EmailTemplate_GetAllForBooking)}getById(e){return super.getById(e,n.I5.EmailTemplate_GetById)}getByName(e){return super.getById(e,n.I5.EmailTemplate_GetByName)}edit(e){return super.edit(e,n.I5.EmailTemplate_Update)}add(e){return super.add(e,n.I5.EmailTemplate_Add)}delete(e){super.delete(e,n.I5.EmailTemplate_Delete)}GetAllImages(){return super.GetAllGeneral(n.I5.EmailTemplate_GetAllImages)}}return e.\u0275fac=function(t){return new(t||e)(r.LFG(o.eN),r.LFG(n.De),r.LFG(l.Rq),r.LFG(a.D))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e})()},74071:function(e,t,i){i.d(t,{M:function(){return g}});var n=i(32364),s=i(13795),r=i(27541),o=i(33018),l=i(91841),a=i(89401),c=i(86845);let g=(()=>{class e extends s.a{constructor(e,t,i,n){super(e,t,i,n),this._config=t,this.httpfunction=new r.r}GetAlldata(){this.isGetSubscribe=!0,super.GetAlldata(n.lV.Site_GetAll),null==this.subscription&&(this.subscription=this.resultObs.subscribe(e=>{let t=this.getRoleData;if(t&&"null"!=t&&null!=t){let e=t.AlwSt;this.result=this.result.filter(function(t){return e.indexOf(t.UIDN.toString())>-1}),this.totalItems=this.result.length}}))}GetAllrelatedData(){super.GetAlldata(n.lV.getAllSiteForAllCompany)}}return e.\u0275fac=function(t){return new(t||e)(o.LFG(l.eN),o.LFG(n.De),o.LFG(a.Rq),o.LFG(c.D))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e})()},27678:function(e,t,i){i.d(t,{I:function(){return c}});var n=i(13795),s=i(32364),r=i(33018),o=i(91841),l=i(89401),a=i(86845);let c=(()=>{class e extends n.a{constructor(e,t,i,n){super(e,t,i,n),this._config=t}GetAlldata(){return super.GetAllGeneral(s.O2.Whatsappsetting_Getall)}getById(e){return super.getById(e,s.O2.Whatsappsetting_GetById)}edit(e){return super.edit(e,s.O2.Whatsappsetting_Update)}add(e){return super.add(e,s.O2.Whatsappsetting_Add)}delete(e){super.delete(e,s.O2.Whatsappsetting_Delete)}AddInstance(e){return super.add(e,s.O2.Whatsappsetting_AddInstance)}GetQRCode(e){return super.add(e,s.O2.Whatsappsetting_GetQRCode)}sendMessage(e){return super.changeInquirySite(0,e,"",s.O2.Whatsappsetting_Send)}CreateTemplateMessage(e){return super.changeInquirySite(0,e,"",s.O2.Whatsappsetting_CreateTemplate)}fetchTemplates(){return super.GetAllGeneral(s.O2.Whatsappsetting_templates)}}return e.\u0275fac=function(t){return new(t||e)(r.LFG(o.eN),r.LFG(s.De),r.LFG(l.Rq),r.LFG(a.D))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},99165:function(e,t,i){i.d(t,{V:function(){return Jt}});var n=i(33018),s=i(3306),r=i(25039),o=i(62411),l=i(78980),a=i(27541),c=i(65529),g=i(82316),d=i(39302),u=i(39478),p=i(49900),m=i(38583),h=i(89401),f=i(70609),T=i(3679),Z=i(66496),A=i(58679),v=i(6642),b=i(85895),S=i(66537),C=i(92859),x=i(70199),k=i(3001),I=i(48429),M=i(3359),q=i(99172);const N=["Termform"],y=["f"],_=["whatsAppApiSendPopup"];function w(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",52),n.TgZ(1,"ul",53),n.TgZ(2,"li",54),n.TgZ(3,"button",55),n.NdJ("
1click",function(){return n.CHM(e),n.oxw().cancel()}),n._UZ(4,"i",56),n.qZA(),n.qZA(),n.TgZ(5,"li",57),n.TgZ(6,"strong"),n._uU(7),n.qZA(),n.TgZ(8,"small"),n._uU(9,"Customer, unit and payment plan"),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&e){const e=n.oxw();n.xp6(7),n.Oqu((null==e.sitestrService.singleresult?null:e.sitestrService.singleresult.UIDN)>0?"Edit Booking":"Create Booking")}}function O(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",58),n.TgZ(1,"ul",53),n.TgZ(2,"li",59),n.TgZ(3,"ion-icon",60),n.NdJ("click",function(){return n.CHM(e),n.oxw().cancel()}),n.qZA(),n.qZA(),n.TgZ(4,"li",61),n.TgZ(5,"strong"),n._uU(6,"Booking"),n.qZA(),n.TgZ(7,"small"),n._uU(8," Add/Edit"),n.qZA(),n.qZA(),n.TgZ(9,"li",62),n.TgZ(10,"a",63),n.NdJ("click",function(t){return n.CHM(e),n.oxw(),n.MAs(25).onSubmit(t)}),n._uU(11," Save "),n.qZA(),n.qZA(),n.qZA(),n.qZA()}}function D(e,t){if(1&e&&n._UZ(0,"erp-work-panel",64),2&e){const e=n.oxw();n.Q6J("entityId",e.sitestrService.singleresult.UIDN)("compact",!0)}}function E(e,t){1&e&&(n.TgZ(0,"div",65),n.TgZ(1,"div",66),n._uU(2," Since the booking was finalized, changes are restricted. "),n.qZA(),n.qZA())}function L(e,t){1&e&&(n.TgZ(0,"div"),n._uU(1,"Site selection is required"),n.qZA())}function U(e,t){if(1&e&&(n.TgZ(0,"div",67),n.YNc(1,L,2,0,"div",68),n.qZA()),2&e){n.oxw();const e=n.MAs(36);n.xp6(1),n.Q6J("ngIf",e.errors.required)}}function P(e,t){1&e&&(n.TgZ(0,"div"),n._uU(1,"Booking Status selection is required"),n.qZA())}function J(e,t){if(1&e&&(n.TgZ(0,"div",67),n.YNc(1,P,2,0,"div",68),n.qZA()),2&e){n.oxw();const e=n.MAs(44);n.xp6(1),n.Q6J("ngIf",e.errors.required)}}function F(e,t){if(1&e&&(n.TgZ(0,"small",69),n._uU(1),n.qZA()),2&e){const e=n.oxw();n.xp6(1),n.AsE(" Loaded ",e.userService.result.length," of ",e.userService.result.length," ")}}function B(e,t){1&e&&(n.TgZ(0,"div"),n._uU(1,"Sales By selection is required"),n.qZA())}function R(e,t){if(1&e&&(n.TgZ(0,"div",67),n.YNc(1,B,2,0,"div",68),n.qZA()),2&e){n.oxw();const e=n.MAs(64);n.xp6(1),n.Q6J("ngIf",e.errors.required)}}function Q(e,t){if(1&e&&(n.ynx(0),n._UZ(1,"img",70),n.BQk()),2&e){const e=t.$implicit;n.xp6(1),n.Q6J("src",e.src,n.LSH)("alt",e.name)}}function G(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@CustomerAccount@@"),n.qZA())}function Y(e,t){1&e&&n._uU(0),2&e&&n.hij(" ",t.item.LN," ")}function V(e,t){if(1&e){const e=n.EpF();
1n.TgZ(0,"a"),n._uU(1),n.qZA(),n.TgZ(2,"a",142),n.NdJ("click",function(){const t=n.CHM(e).item;return n.oxw(4).openLedgerPopup(t.UIDN)}),n._UZ(3,"i",143),n.qZA()}if(2&e){const e=t.item,i=n.oxw(4);n.xp6(1),n.Oqu(e.LN),n.xp6(1),n.Q6J("SignupId",i.SignupId)("UserId",i.UserId)}}function H(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"small",69),n.TgZ(1,"a",139),n.NdJ("click",function(){n.CHM(e),n.oxw();const t=n.MAs(17);return n.oxw(2).addNewCustomer(t)}),n._uU(2," Add New Customer "),n.qZA(),n.qZA(),n.YNc(3,Y,1,1,"ng-template",140),n.YNc(4,V,4,3,"ng-template",141)}}function W(e,t){1&e&&(n.TgZ(0,"div"),n._uU(1,"Customer Account selection is required"),n.qZA())}function $(e,t){if(1&e&&(n.TgZ(0,"div",67),n.YNc(1,W,2,0,"div",68),n.qZA()),2&e){n.oxw();const e=n.MAs(16);n.xp6(1),n.Q6J("ngIf",e.errors.required)}}function K(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"small",69),n.TgZ(1,"a",139),n.NdJ("click",function(){n.CHM(e),n.oxw();const t=n.MAs(7);return n.oxw(3).addNewCustomer(t,"gstCustomer")}),n._uU(2," Add New Ledger "),n.qZA(),n.qZA()}}function j(e,t){1&e&&n._uU(0),2&e&&n.hij(" ",t.item.LN," ")}function z(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"a"),n._uU(1),n.qZA(),n.TgZ(2,"a",148),n.NdJ("click",function(){const t=n.CHM(e).item;return n.oxw(4).openLedgerPopup(t.UIDN,"gstCustomer")}),n._UZ(3,"i",143),n.qZA()}if(2&e){const e=t.item,i=n.oxw(4);n.xp6(1),n.Oqu(e.LN),n.xp6(1),n.Q6J("SignupId",i.SignupId)("UserId",i.UserId)}}function X(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",15),n.TgZ(1,"label",144),n._uU(2,"GST Customer Account "),n.TgZ(3,"small",145),n._uU(4,"(optional)"),n.qZA(),n.qZA(),n.TgZ(5,"ng-select",146,147),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).sitestrService.singleresult.GSTCustomerLedgerId=t}),n.YNc(8,K,3,0,"ng-template",34),n.YNc(9,j,1,1,"ng-template",140),n.YNc(10,z,4,3,"ng-template",141),n.qZA(),n.TgZ(11,"small",69),n._uU(12,"GST vouchers use this receivable ledger. Blank keeps the current behavior."),n.qZA(),n.qZA()}if(2&e){const e=n.oxw(3);n.xp6(5),n.Q6J("items",e.Customers)("ngModel",e.sitestrService.singleresult.GSTCustomerLedgerId)("loading",e.companyledgerservice.loading)("clearable",!0)}}function ee(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@AllotmentDate@@"),n.qZA())}function te(e,t){1&e&&(n.TgZ(0,"div"),n._uU(1,"Please enter date"),n.qZA())}function ie(e,t){if(1&e&&(n.TgZ(0,"div",67),n.YNc(1,te,2,0,"div",68),n.qZA()),2&e){n.oxw();const e=n.MAs(28);n.xp6(1),n.Q6J("ngIf",e.errors.required)}}function ne(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@AgreementDate@@"),n.qZA())}function se(e,t){1&e&&(n.TgZ(0,"div"),n._uU(1,"Please enter date"),n.qZA())}function re(e,t){if(1&e&&(n.TgZ(0,"div",67),n.YNc(1,se,2,0,"div",68),n.qZA()),2&e){n.oxw();const e=n.MAs(35);n.xp6(1),n.Q6J("ngIf",e.errors.required)}}function oe(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@cpcompanyname@@"),n.qZA())}function le(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"small",69),n.TgZ(1,"a",139),n.NdJ("click",function(){n.CHM(e),n.oxw();const t=n.MAs(43);return n.oxw(2).openChannelPartnerPopup(t)}),n._uU(2," Add New Channel Partner "),n.qZA(),n.qZA()}}function ae(e,t){1&e&&(n.TgZ(0,"div"),n._uU(1,"selection is required"),n.qZA())}function ce(e,t){if(1&e&&(n.TgZ(0,"div",67),n.YNc(1,ae,2,0,"div",68),n.qZA()),2&e){n.oxw();const e=n.MAs(42);n.xp6(1),n.Q6J("ngIf",e.errors.required)}}function ge(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@CusAdharNo@@"),n.qZA())}function de(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@CusFullName@@"),n.qZA())}function ue(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@CusFullAddress@@"),n.qZA())}function pe(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@CusContactNo@@"),n.qZA())}function me(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@CusEmail@@"),n.qZA())}function he(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@CusPanNo@@"),n.qZA())}const fe=function(e){return{"is-invalid":e}};function Te(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",149),n.TgZ(1,"div",73),n.TgZ(2,"div",150),n.TgZ(3,"h5",75),n.TgZ(4,"button",151),n._uU(5," CUSTOMER'S INFORMATION FROM ACCOUNT LEDGER "),n.qZA(),n.qZA(),n.qZA(),n.TgZ(6,"div",152),n.TgZ(7,"div",153),n.TgZ(8,"div",12),n.TgZ(9,"div",15),n.TgZ(10,"label",154),n._uU(11," Aadhar No"),n.YNc(12,ge,2,0,"span",94),n.qZA(),n.TgZ(13,"input",155,156),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).updateAdharNo(t)}),n.qZA(),n.qZA(),n.TgZ(15,"div",15),n.TgZ(16,"label",157),n._uU(17," Name on Agreement (as per Aadhar)"),n.YNc(18,de,2,0,"span",94),n.qZA(),n.TgZ(19,"input",158,159),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).updateName(t)}),n.qZA(),n.qZA(),n.TgZ(21,"div",15),n.TgZ(22,"label",160),n._uU(23," Full Address (as per Aadhar)"),n.YNc(24,ue,2,0,"span",94),n.qZA(),n.TgZ(25,"input",161,162),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).updateAddress(t)}),n.qZA(),n.qZA(),n.TgZ(27,"div",15),n.TgZ(28,"label",163),n._uU(29," Contact No"),n.YNc(30,pe,2,0,"span",94),n.qZA(),n.TgZ(31,"input",164,165),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).updateContact(t)}
1),n.qZA(),n.qZA(),n.TgZ(33,"div",15),n.TgZ(34,"label",166),n._uU(35," Email"),n.YNc(36,me,2,0,"span",94),n.qZA(),n.TgZ(37,"input",167,168),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).updateEmail(t)}),n.qZA(),n.qZA(),n.TgZ(39,"div",15),n.TgZ(40,"label",169),n._uU(41," PAN No"),n.YNc(42,he,2,0,"span",94),n.qZA(),n.TgZ(43,"input",170,171),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).updatePAN(t)}),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&e){const e=n.MAs(14),t=n.MAs(20),i=n.MAs(26),s=n.MAs(32),r=n.MAs(38),o=n.MAs(44),l=n.oxw(3),a=n.MAs(25);n.xp6(12),n.Q6J("ngIf",1==l.IsTagView),n.xp6(1),n.Q6J("ngClass",n.VKq(18,fe,a.submitted&&e.invalid))("ngModel",null==l.companyledgerservice.singleresult?null:l.companyledgerservice.singleresult.AdharNo),n.xp6(5),n.Q6J("ngIf",1==l.IsTagView),n.xp6(1),n.Q6J("ngClass",n.VKq(20,fe,a.submitted&&t.invalid))("ngModel",null==l.companyledgerservice.singleresult?null:l.companyledgerservice.singleresult.FullNm),n.xp6(5),n.Q6J("ngIf",1==l.IsTagView),n.xp6(1),n.Q6J("ngClass",n.VKq(22,fe,a.submitted&&i.invalid))("ngModel",null==l.companyledgerservice.singleresult?null:l.companyledgerservice.singleresult.Addr),n.xp6(5),n.Q6J("ngIf",1==l.IsTagView),n.xp6(1),n.Q6J("ngClass",n.VKq(24,fe,a.submitted&&s.invalid))("ngModel",null==l.companyledgerservice.singleresult?null:l.companyledgerservice.singleresult.CNO),n.xp6(5),n.Q6J("ngIf",1==l.IsTagView),n.xp6(1),n.Q6J("ngClass",n.VKq(26,fe,a.submitted&&r.invalid))("ngModel",null==l.companyledgerservice.singleresult?null:l.companyledgerservice.singleresult.Eml),n.xp6(5),n.Q6J("ngIf",1==l.IsTagView),n.xp6(1),n.Q6J("ngClass",n.VKq(28,fe,a.submitted&&o.invalid))("ngModel",null==l.companyledgerservice.singleresult?null:l.companyledgerservice.singleresult.PanNo)}}function Ze(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"input",179,180),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw().$implicit.Value=t}),n.qZA(),n.qZA()}if(2&e){const e=n.oxw(),t=e.$implicit,i=e.index;n.xp6(1),n.MGl("placeholder","enter ",t.trms,""),n.MGl("name","termsvaluesownr_",i,""),n.MGl("id","termsvaluesownr_",i,""),n.Q6J("ngModel",t.Value)}}function Ae(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"ng-select",182,183),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(2).$implicit.Value=t}),n.qZA()}if(2&e){const e=n.MAs(1),t=n.oxw(2),i=t.index,s=t.$implicit;n.MGl("name","termsValuesOwnsdrp_",i,""),n.MGl("id","termsValuesOwnsdrp_",i,""),n.Q6J("items",s.DropDownValues)("ngClass",n.VKq(6,fe,e.invalid))("placeholder","Select an option")("ngModel",s.Value)}}function ve(e,t){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Ae,2,8,"ng-select",181),n.qZA()),2&e){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf","OWNER_FIELD_DROPDOWN"===e.FType)}}function be(e,t){if(1&e&&(n.TgZ(0,"div",177),n.TgZ(1,"label",178),n._uU(2),n.qZA(),n.YNc(3,Ze,3,4,"span",68),n.YNc(4,ve,2,1,"span",68),n.qZA()),2&e){const e=t.$implicit,i=t.index;n.xp6(1),n.MGl("for","term_",i,""),n.xp6(1),n.Oqu(e.Trms),n.xp6(1),n.Q6J("ngIf","OWNER_FIELD_DROPDOWN"!==e.FType),n.xp6(1),n.Q6J("ngIf","OWNER_FIELD_DROPDOWN"===e.FType)}}function Se(e,t){if(1&e&&(n.TgZ(0,"div",172),n.TgZ(1,"div",73),n.TgZ(2,"div",173),n.TgZ(3,"h5",75),n.TgZ(4,"button",174),n._uU(5," OWNER'S DETAILS "),n.qZA(),n.qZA(),n.qZA(),n.TgZ(6,"div",175),n.TgZ(7,"div",153),n.TgZ(8,"div",12),n.YNc(9,be,5,4,"div",176),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&e){const e=n.oxw(3);n.xp6(9),n.Q6J("ngForOf",e.sitestrService.singleresult.OwnersFields)}}function Ce(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",177),n.TgZ(1,"div",187),n.TgZ(2,"label",178),n._uU(3),n.qZA(),n.TgZ(4,"input",179,188),n.NdJ("ngModelChange",function(t){return n.CHM(e).$implicit.Value=t}),n.qZA(),n.qZA(),n.qZA()}if(2&e){const e=t.$implicit,i=t.index;n.xp6(2),n.MGl("for","term_",i,""),n.xp6(1),n.Oqu(e.Trms),n.xp6(1),n.MGl("placeholder","Enter ",e.Trms,""),n.MGl("name","term_",i,""),n.MGl("id","term_",i,""),n.Q6J("ngModel",e.Value)}}function xe(e,t){if(1&e&&(n.TgZ(0,"div",172),n.TgZ(1,"div",73),n.TgZ(2,"div",184),n.TgZ(3,"h5",75),n.TgZ(4,"button",185),n._uU(5," CO-OWNER'S DETAILS "),n.qZA(),n.qZA(),n.qZA(),n.TgZ(6,"div",186),n.TgZ(7,"div",153),n.TgZ(8,"div",12),n.YNc(9,Ce,6,6,"div",176),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&e){const e=n.oxw(3);n.xp6(9),n.Q6J("ngForOf",e.sitestrService.singleresult.siteTermsForCoowner)}}function ke(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@BookTokenAmount@@"),n.qZA())}function Ie(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@LoanAmount@@"),n.qZA())}function Me(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@Bank@@"),n.qZA())}function qe(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@PostBookingStatus@@"),n.qZA())}function Ne(e,t){1&e&&(n.TgZ(0,"span",138),n._uU(1,"@@PostBookingReason@@"),n.qZA())}function ye(e,t){1&e&&(n.TgZ(0,"div"),n._uU(1,"Remarks is required"),n.qZA())}function _e(e,t){if(1&e&&(n.TgZ(0,"div",67),n.YNc(1,ye,2,0,"div",68),n.qZA()),2&e){n.oxw();const e=n.MAs(5);n.xp6(1),n.Q6J("ngIf",e.errors.required)}}function we(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",189),n.TgZ(1,"label",190),n._uU(2,"Remarks of Post Booking if any"),n.YNc(3,Ne,2,0,"span",94),n.qZA(),n.TgZ(4,"textarea",191,192),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).sitestrService.singleresult.bkStatusReason=t}),n.qZA(),n.YNc(6,_e,2,1,"div",20),n.qZA()}if(2&e){const e=n.MAs(5),t=n.oxw(3),i=n.MAs(25);n.xp6(3),n.Q6J("ngIf",1==t.IsTagView),n.xp6(1),n.Q6J("ngClass",n.VKq(4,fe,i.submitted&&e.invali
1d))("ngModel",t.sitestrService.singleresult.bkStatusReason),n.xp6(2),n.Q6J("ngIf",i.submitted&&e.invalid)}}function Oe(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",193),n.TgZ(1,"label",194),n._uU(2," Annual Interest Rate "),n.qZA(),n.TgZ(3,"input",195,196),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).sitestrService.singleresult.BookingWiseOutstandingIntrestRate=t}),n.qZA(),n.qZA()}if(2&e){const e=n.oxw(3);n.xp6(3),n.Q6J("ngModel",e.sitestrService.singleresult.BookingWiseOutstandingIntrestRate)}}function De(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",89),n.TgZ(1,"div",73),n.TgZ(2,"div",90),n.TgZ(3,"h5",75),n.TgZ(4,"button",91),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).toggleCollapse1()}),n.TgZ(5,"span",77),n._uU(6,"CUSTOMER'S PERSONAL DETAILS"),n.qZA(),n.TgZ(7,"span",78),n._uU(8),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(9,"div",92),n.TgZ(10,"div",80),n.TgZ(11,"div",15),n.TgZ(12,"label",93),n._uU(13," Customer Account "),n.YNc(14,G,2,0,"span",94),n.qZA(),n.TgZ(15,"ng-select",95,96),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(2).sitestrService.singleresult.CusLedgerId=t})("change",function(){return n.CHM(e),n.oxw(2).ledSelcted()}),n.YNc(18,H,5,0,"ng-template",34),n.qZA(),n.YNc(19,$,2,1,"div",20),n.qZA(),n.YNc(20,X,13,4,"div",97),n.TgZ(21,"div",15),n.TgZ(22,"label",98),n._uU(23,"Allotment Date:"),n.TgZ(24,"span",17),n._uU(25,"*"),n.qZA(),n.YNc(26,ee,2,0,"span",94),n.qZA(),n.TgZ(27,"input",99,100),n.NdJ("selected",function(t){return n.CHM(e),n.oxw(2).onAllotmentdateSelect(t)}),n.qZA(),n.YNc(29,ie,2,1,"div",20),n.qZA(),n.TgZ(30,"div",15),n.TgZ(31,"label",101),n._uU(32,"Agreement Date: "),n.YNc(33,ne,2,0,"span",94),n.qZA(),n.TgZ(34,"input",102,103),n.NdJ("selected",function(t){return n.CHM(e),n.oxw(2).onAgreementdateSelect(t)}),n.qZA(),n.YNc(36,re,2,1,"div",20),n.qZA(),n.TgZ(37,"div",15),n.TgZ(38,"label",104),n._uU(39,"Select Broker (Channel Partner): "),n.YNc(40,oe,2,0,"span",94),n.qZA(),n.TgZ(41,"ng-select",105,106),n.NdJ("scrollToEnd",function(){return n.CHM(e),n.oxw(2).channelPartnerService.ScrollDown()})("ngModelChange",function(t){return n.CHM(e),n.oxw(2).sitestrService.singleresult.CpId=t}),n.YNc(44,le,3,0,"ng-template",34),n.qZA(),n.YNc(45,ce,2,1,"div",20),n.qZA(),n.YNc(46,Te,45,30,"div",107),n.YNc(47,Se,10,1,"div",108),n.YNc(48,xe,10,1,"div",108),n.TgZ(49,"div",15),n.TgZ(50,"label",109),n._uU(51," Token/DownPayment Amount "),n.YNc(52,ke,2,0,"span",94),n.qZA(),n.TgZ(53,"input",110,111),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(2).sitestrService.singleresult.TokenAmount=t}),n.qZA(),n.qZA(),n.TgZ(55,"div",15),n.TgZ(56,"label",112),n._uU(57," Loan Amount "),n.YNc(58,Ie,2,0,"span",94),n.qZA(),n.TgZ(59,"input",113,114),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(2).sitestrService.singleresult.LoanAmount=t})("change",function(){return n.CHM(e),n.oxw(2).changeLoan()}),n.qZA(),n.qZA(),n.TgZ(61,"div",15),n.TgZ(62,"label",115),n._uU(63," Bank"),n.YNc(64,Me,2,0,"span",94),n.qZA(),n.TgZ(65,"ng-select",116,117),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(2).sitestrService.singleresult.BankLedger=t}),n.qZA(),n.qZA(),n.TgZ(67,"div",15),n.TgZ(68,"label",118),n._uU(69,"Booking Progress Status "),n.YNc(70,qe,2,0,"span",94),n.qZA(),n.TgZ(71,"ng-select",119,120),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(2).sitestrService.singleresult.bkStatus=t}),n.TgZ(73,"ng-option",121),n._uU(74,"Registration Done"),n.qZA(),n.TgZ(75,"ng-option",122),n._uU(76,"Booking Finalized"),n.qZA(),n.TgZ(77,"ng-option",30),n._uU(78,"Investor"),n.qZA(),n.TgZ(79,"ng-option",123),n._uU(80,"Allotted"),n.qZA(),n.TgZ(81,"ng-option",124),n._uU(82,"Postpone"),n.qZA(),n.TgZ(83,"ng-option",125),n._uU(84,"In Progress"),n.qZA(),n.TgZ(85,"ng-option",126),n._uU(86,"Loan Issue"),n.qZA(),n.TgZ(87,"ng-option",127),n._uU(88,"Booking Cancelled"),n.qZA(),n.qZA(),n.qZA(),n.YNc(89,we,7,6,"div",128),n.TgZ(90,"div",129),n.TgZ(91,"label",130),n._uU(92," Insert Sales/Journal Entry "),n.qZA(),n._UZ(93,"br"),n.TgZ(94,"label",131),n.TgZ(95,"input",132),n.NdJ("change",function(){n.CHM(e);const t=n.oxw(2);return t.sitestrService.singleresult.IsSalesEntry=1!=t.sitestrService.singleresult.IsSalesEntry}),n.qZA(),n._UZ(96,"span",39),n.qZA(),n.qZA(),n.TgZ(97,"div",129),n.TgZ(98,"label",133),n._uU(99," Is Final Booking? "),n.qZA(),n._UZ(100,"br"),n.TgZ(101,"label",131),n.TgZ(102,"input",134),n.NdJ("
1change",function(){n.CHM(e);const t=n.oxw(2);return t.sitestrService.singleresult.IsFinalBook=1!=t.sitestrService.singleresult.IsFinalBook}),n.qZA(),n._UZ(103,"span",39),n.qZA(),n.qZA(),n.TgZ(104,"div",129),n.TgZ(105,"div",12),n.TgZ(106,"div"),n.TgZ(107,"label",135),n._uU(108," Want to add interest on Due? "),n.qZA(),n._UZ(109,"br"),n.TgZ(110,"label",131),n.TgZ(111,"input",136),n.NdJ("change",function(){n.CHM(e);const t=n.oxw(2);return t.sitestrService.singleresult.BookingWiseIsIntrestOnOutstanding=1!=t.sitestrService.singleresult.BookingWiseIsIntrestOnOutstanding}),n.qZA(),n._UZ(112,"span",39),n.qZA(),n.qZA(),n.YNc(113,Oe,5,1,"div",137),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&e){const e=n.MAs(16),t=n.MAs(28),i=n.MAs(35),s=n.MAs(42),r=n.oxw(2),o=n.MAs(25);n.xp6(4),n.uIk("aria-expanded",r.isCollapsed1?"false":"true"),n.xp6(4),n.Oqu(r.isCollapsed1?"+":"-"),n.xp6(6),n.Q6J("ngIf",1==r.IsTagView),n.xp6(1),n.Q6J("items",r.Customers)("ngModel",r.sitestrService.singleresult.CusLedgerId)("loading",r.companyledgerservice.loading)("ngClass",n.VKq(44,fe,o.submitted&&e.invali
1d))("required","UnSold"!=r.sitestrService.singleresult.BookSts),n.xp6(4),n.Q6J("ngIf",o.submitted&&"UnSold"!=r.sitestrService.singleresult.BookSts&&!r.sitestrService.singleresult.CusLedgerId),n.xp6(1),n.Q6J("ngIf",r.UseSeparateGSTCustomerLedger),n.xp6(6),n.Q6J("ngIf",1==r.IsTagView),n.xp6(1),n.Q6J("ngClass",n.VKq(46,fe,o.submitted&&t.invalid))("startDate",r.sitestrService.singleresult.AllotmentDate)("shortKey",1),n.xp6(2),n.Q6J("ngIf",o.submitted&&t.invalid),n.xp6(4),n.Q6J("ngIf",1==r.IsTagView),n.xp6(1),n.Q6J("ngClass",n.VKq(48,fe,o.submitted&&i.invalid))("startDate",r.sitestrService.singleresult.AgreementDate),n.xp6(2),n.Q6J("ngIf",o.submitted&&i.invalid),n.xp6(4),n.Q6J("ngIf",1==r.IsTagView),n.xp6(1),n.Q6J("virtualScroll",!0)("items",r.channelPartnerService.result)("ngClass",n.VKq(50,fe,o.submitted&&s.invalid))("ngModel",r.sitestrService.singleresult.CpId)("loading",r.channelPartnerService.loading),n.xp6(4),n.Q6J("ngIf",o.submitted&&s.invalid),n.xp6(1),n.Q6J("ngIf",null!=r.sitestrService.singleresult.CusLedgerId||null!=r.sitestrService.singleresult.CusLedgerId),n.xp6(1),n.Q6J("ngIf",r.sitestrService.singleresult.OwnersFields.length>0),n.xp6(1),n.Q6J("ngIf",r.sitestrService.singleresult.siteTermsForCoowner.length>0),n.xp6(4),n.Q6J("ngIf",1==r.IsTagView),n.xp6(1),n.Q6J("ngModel",r.sitestrService.singleresult.TokenAmount),n.xp6(5),n.Q6J("ngIf",1==r.IsTagView),n.xp6(1),n.Q6J("ngModel",r.sitestrService.singleresult.LoanAmount),n.xp6(5),n.Q6J("ngIf",1==r.IsTagView),n.xp6(1),n.Q6J("items",r.bankMaster)("ngModel",r.sitestrService.singleresult.BankLedger),n.xp6(5),n.Q6J("ngIf",1==r.IsTagView),n.xp6(1),n.Q6J("ngModel",r.sitestrService.singleresult.bkStatus),n.xp6(18),n.Q6J("ngIf",null!=r.sitestrService.singleresult.bkStatus),n.xp6(6),n.Q6J("checked",1==r.sitestrService.singleresult.IsSalesEntry),n.xp6(7),n.Q6J("checked",1==r.sitestrService.singleresult.IsFinalBook),n.xp6(9),n.Q6J("checked",1==r.sitestrService.singleresult.BookingWiseIsIntrestOnOutstanding)("disabled",1!=r.OutstndInterstShow),n.xp6(2),n.Q6J("ngIf",1==r.sitestrService.singleresult.BookingWiseIsIntrestOnOutstanding)}}function Ee(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"input",179,201),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw().$implicit.Value=t}),n.qZA(),n.qZA()}if(2&e){const e=n.oxw(),t=e.$implicit,i=e.index;n.xp6(1),n.MGl("placeholder","enter ",t.trms,""),n.MGl("name","termsvaluesown_",i,""),n.MGl("id","termsvaluesown_",i,""),n.Q6J("ngModel",t.Value)}}function Le(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"ng-select",182,202),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(2).$implicit.Value=t}),n.qZA()}if(2&e){const e=n.MAs(1),t=n.oxw(2),i=t.index,s=t.$implicit;n.MGl("name","termsValuesOwns_",i,""),n.MGl("id","termsValuesOwns_",i,""),n.Q6J("items",s.DropDownValuess)("ngClass",n.VKq(6,fe,e.invalid))("placeholder","Select option(s)")("ngModel",s.Value)}}function Ue(e,t){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Le,2,8,"ng-select",181),n.qZA()),2&e){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf","PROJECT_FIELD_DROPDOWN"===e.FType)}}function Pe(e,t){if(1&e&&(n.TgZ(0,"div",177),n.TgZ(1,"label",178),n._uU(2),n.qZA(),n.YNc(3,Ee,3,4,"span",68),n.YNc(4,Ue,2,1,"span",68),n.qZA()),2&e){const e=t.$implicit,i=t.index;n.xp6(1),n.MGl("for","term_",i,""),n.xp6(1),n.Oqu(e.Trms),n.xp6(1),n.Q6J("ngIf","PROJECT_FIELD_DROPDOWN"!==e.FType),n.xp6(1),n.Q6J("ngIf","PROJECT_FIELD_DROPDOWN"===e.FType)}}function Je(e,t){if(1&e&&(n.TgZ(0,"div",197),n.TgZ(1,"div",73),n.TgZ(2,"div",198),n.TgZ(3,"h5",75),n.TgZ(4,"button",199),n._uU(5," PROJECT'S DATAILS "),n.qZA(),n.qZA(),n.qZA(),n.TgZ(6,"div",200),n.TgZ(7,"div",153),n.TgZ(8,"div",12),n.YNc(9,Pe,5,4,"div",176),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&e){const e=n.oxw(2);n.xp6(9),n.Q6J("ngForOf",e.sitestrService.singleresult.ProjectsFields)}}function Fe(e,t){if(1&e&&(n.TgZ(0,"span",208),n._uU(1),n.qZA()),2&e){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.ArMeasType," ")}}function Be(e,t){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&e){const e=n.oxw(2).$implicit;n.xp6(1),n.hij(" sq m. ",n.xi3(2,1,.092903*e.Value,"1.2-2")," ")}}function Re(e,t){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&e){const e=n.oxw(2).$implicit;n.xp6(1),n.hij(" Sq ft ",n.xi3(2,1,10.764*e.Value,"1.2-2")," ")}}function Qe(e,t){if(1&e&&(n.TgZ(0,"span",209),n.TgZ(1,"small"),n._uU(2," In "),n.YNc(3,Be,3,4,"span",68),n.YNc(4,Re,3,4,"span",68),n.qZA(),n.qZA()),2&e){const e=n.oxw().$implicit;n.xp6(3),n.Q6J("ngIf","Sq. Foot"==e.ArMeasType),n.xp6(1),n.Q6J("ngIf","Sq. Meter"==e.ArMeasType)}}function Ge(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"input",210,188),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw().$implicit.Value=t})("keyup",function(t){n.CHM(e);const i=n.oxw(),s=i.$implicit,r=i.index,o=n.oxw(2);return o.IsAutoCalcAgrAmt&&("RERA_AREA_FIELD"===s.FType||"RATE_FIELD"===s.FType)&&o.ChangeAgreementValue(t,r),o.calculateAmou
1ntOnOrder(s.order,s.Value,1),o.changeLoan(),o.ChangeTotalAmtValue(t,0)}),n.qZA()}if(2&e){const e=n.oxw(),t=e.$implicit,i=e.index;n.MGl("placeholder","Enter ",t.Trms,""),n.MGl("name","SDterm_",i,""),n.MGl("id","SDterm_",i,""),n.Q6J("ngModel",t.Value)}}function Ye(e,t){if(1&e&&(n.TgZ(0,"span",138),n._uU(1),n.qZA()),2&e){const e=n.oxw(3).$implicit;n.xp6(1),n.hij("",e.Token,"SqMeter@@")}}function Ve(e,t){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Ye,2,1,"span",94),n.qZA()),2&e){const e=n.oxw(4);n.xp6(1),n.Q6J("ngIf",e.IsTagView)}}function He(e,t){if(1&e&&(n.TgZ(0,"span",138),n._uU(1),n.qZA()),2&e){const e=n.oxw(3).$implicit;n.xp6(1),n.hij("",e.Token,"SqFoot@@")}}function We(e,t){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,He,2,1,"span",94),n.qZA()),2&e){const e=n.oxw(4);n.xp6(1),n.Q6J("ngIf",e.IsTagView)}}function $e(e,t){if(1&e&&(n.TgZ(0,"span",211),n.YNc(1,Ve,2,1,"span",68),n.YNc(2,We,2,1,"span",68),n.qZA()),2&e){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf","Sq. Foot"==e.ArMeasType),n.xp6(1),n.Q6J("ngIf","Sq. Meter"==e.ArMeasType)}}function Ke(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"ng-select",182,212),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(2).$implicit.Value=t}),n.qZA()}if(2&e){const e=n.MAs(1),t=n.oxw(2),i=t.index,s=t.$implicit;n.MGl("name","termsValuesSitFie_",i,""),n.MGl("id","termsValuesSitFie_",i,""),n.Q6J("items",s.DropDownValuess)("ngClass",n.VKq(6,fe,e.invalid))("placeholder","Select option(s)")("ngModel",s.Value)}}function je(e,t){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Ke,2,8,"ng-select",181),n.qZA()),2&e){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf","DROPDOWN_FIELD"===e.FType)}}function ze(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"input",213,214),n.NdJ("selectedindex",function(t){n.CHM(e);const i=n.oxw().index;return n.oxw(2).onSiteDateSelect(t,i)}),n.qZA()}if(2&e){const e=n.oxw(),t=e.$implicit,i=e.index;n.MGl("placeholder","Enter ",t.Trms,""),n.MGl("name","SDterm_",i,""),n.MGl("id","SDterm_",i,""),n.Q6J("startDate",t.Value)}}function Xe(e,t){if(1&e&&(n.TgZ(0,"div",15),n.TgZ(1,"label",21),n._uU(2),n.YNc(3,Fe,2,1,"span",203),n.YNc(4,Qe,5,2,"span",204),n.qZA(),n.YNc(5,Ge,2,4,"input",205),n.YNc(6,$e,3,2,"span",206),n.YNc(7,je,2,1,"span",68),n.YNc(8,ze,2,4,"input",207),n.qZA()),2&e){const e=t.$implicit;n.xp6(2),n.hij("",e.Trms," "),n.xp6(1),n.Q6J("ngIf","TOTALAREA_FIELD"==e.FType||"RERA_AREA_FIELD"==e.FType),n.xp6(1),n.Q6J("ngIf",!("TOTALAREA_FIELD"!=e.FType&&"RERA_AREA_FIELD"!=e.FType||"Sq. Foot"!=e.ArMeasType&&"Sq. Meter"!=e.ArMeasType)),n.xp6(1),n.Q6J("ngIf","DATE_FIELD"!=e.FType&&"DROPDOWN_FIELD"!=e.FType),n.xp6(1),n.Q6J("ngIf",!("TOTALAREA_FIELD"!=e.FType&&"RERA_AREA_FIELD"!=e.FType||"Sq. Foot"!=e.ArMeasType&&"Sq. Meter"!=e.ArMeasType)),n.xp6(1),n.Q6J("ngIf","DROPDOWN_FIELD"===e.FType),n.xp6(1),n.Q6J("ngIf","DATE_FIELD"==e.FType)}}function et(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"input",220,221),n.NdJ("keyup",function(t){n.CHM(e);const i=n.oxw().$implicit;return n.oxw(2).ChangeTotalAmtValue(t,i.order)})("ngModelChange",function(t){return n.CHM(e),n.oxw().$implicit.Value=t})("change",function(){n.CHM(e);const t=n.oxw().$implicit,i=n.oxw(2);return!i.IsTotalWiseCalc&&i.calculateAmountOnOrder(t.order,t.Value,0)}),n.qZA()}if(2&e){const e=n.oxw(),t=e.$implicit,i=e.index;n.MGl("placeholder","Enter ",t.Trms,""),n.MGl("name","PaytermsValues",i,""),n.MGl("id","PaytermsValues",i,""),n.Q6J("ngModel",t.Value)}}function tt(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"input",222,188),n.NdJ("keyup",function(t){n.CHM(e);const i=n.oxw(3);return!i.IsTotalWiseCalc&&i.ChangeTotalAmtValue(t,0)})("ngModelChange",function(t){return n.CHM(e),n.oxw().$implicit.Value=t})("change",function(t){n.CHM(e);const i=n.oxw().$implicit,s=n.oxw(2);return!s.IsTotalWiseCalc&&s.calculateAmountOnOrder(i.order,i.Value,0),s.changeLoan(),s.ChangeTotalAmtValue(t,i.order)}),n.qZA()}if(2&e){const e=n.oxw(),t=e.$implicit,i=e.index;n.MGl("placeholder","Enter ",t.Trms,""),n.MGl("name","PaytermsValues",i,""),n.MGl("id","PaytermsValues",i,""),n.Q6J("ngModel",t.Value)}}function it(e,t){1&e&&(n.TgZ(0,"div",223),n._uU(1," Auto Count (AREA * RATE)"),n.qZA())}function nt(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"input",222,221),n.NdJ("keyup",function(t){n.CHM(e);const i=n.oxw().$implicit,s=n.oxw(2);return!s.IsTotalWiseCalc&&s.ChangeTotalAmtValue(t,i.order)})("ngModelChange",function(t){return n.CHM(e),n.oxw().$implicit.Value=t})("change",function(){n.CHM(e);const t=n.oxw().$implicit,i=n.oxw(2);
1return i.calculateAmountOnOrder(t.order,t.Value,0),i.changeLoan()}),n.qZA()}if(2&e){const e=n.oxw(),t=e.$implicit,i=e.index;n.MGl("placeholder","Enter ",t.Trms,""),n.MGl("name","PaytermsValues",i,""),n.MGl("id","PaytermsValues",i,""),n.Q6J("ngModel",t.Value)}}function st(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"input",224,188),n.NdJ("keyup",function(t){n.CHM(e);const i=n.oxw().$implicit,s=n.oxw(2);return!s.IsTotalWiseCalc&&s.ChangeTotalAmtValue(t,i.order)})("ngModelChange",function(t){n.CHM(e);const i=n.oxw().$implicit;return n.oxw(2).IsTotalWiseCalc&&i.Amt>0?i.Amt:i.Value=t})("change",function(){n.CHM(e);const t=n.oxw().$implicit,i=n.oxw(2);return i.calculateAmountOnOrder(t.order,t.Value,0),i.changeLoan()}),n.qZA()}if(2&e){const e=n.oxw(),t=e.$implicit,i=e.index,s=n.oxw(2);n.MGl("placeholder","Enter ",t.Trms,""),n.MGl("name","PaytermsValues",i,""),n.MGl("id","PaytermsValues",i,""),n.Q6J("disabled",s.IsTotalWiseCalc&&t.Amt>0)("ngModel",s.IsTotalWiseCalc&&t.Amt>0?t.Amt:t.Value)}}function rt(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"input",225,221),n.NdJ("keyup",function(t){n.CHM(e);const i=n.oxw(3);return!i.IsTotalWiseCalc&&i.ChangeTotalAmtValue(t,0)})("ngModelChange",function(t){return n.CHM(e),n.oxw().$implicit.Value=t})("change",function(){n.CHM(e);const t=n.oxw().$implicit,i=n.oxw(2);return i.calculateAmountOnOrder(t.order,t.Value,0),i.changeLoan()}),n.qZA()}if(2&e){const e=n.oxw(),t=e.$implicit,i=e.index,s=n.oxw(2),r=n.MAs(25);n.MGl("placeholder","Enter ",t.Trms,""),n.MGl("name","PaytermsValues",i,""),n.MGl("id","PaytermsValues",i,""),n.Q6J("disabled",!s.IsTotalWiseCalc)("ngModel",t.Value)("ngClass",n.VKq(7,fe,r.submitted&&s.IsTotalWiseCalc&&s.TotalOfFixedAmount>=t.Value&&"TOTAL_AMOUNT"==t.FType))("required",s.IsTotalWiseCalc)}}function ot(e,t){1&e&&(n.TgZ(0,"div",67),n._uU(1," Total Amount must be greater than the Fixed Value. "),n.qZA())}function lt(e,t){if(1&e&&(n.ynx(0),n.TgZ(1,"div",15),n.TgZ(2,"label",178),n._uU(3),n.qZA(),n.YNc(4,et,2,4,"input",215),n.YNc(5,tt,2,4,"input",216),n.YNc(6,it,2,0,"div",217),n.YNc(7,nt,2,4,"input",216),n.YNc(8,st,2,5,"input",218),n.YNc(9,rt,2,9,"input",219),n.YNc(10,ot,2,0,"div",20),n.qZA(),n.BQk()),2&e){const e=t.$implicit,i=t.index,s=n.oxw(2),r=n.MAs(25);n.xp6(2),n.MGl("for","PaytermsValues",i,""),n.xp6(1),n.Oqu(e.Trms),n.xp6(1),n.Q6J("ngIf","AGREEMENT_VALUE"!=e.FType&&"OTHER_INLUDEAGREEMENT"!=e.FType&&"OTHER_EXCLUDEAGREEMENT"!=e.FType&&"GST_AGREEMENT"!=e.FType&&"TDS_AGREEMENT"!=e.FType&&"TOTAL_AMOUNT"!=e.FType&&"SUB_TOTAL_1"!=e.FType&&"SUB_TOTAL_2"!=e.FType&&"SUB_TOTAL_3"!=e.FType),n.xp6(1),n.Q6J("ngIf","AGREEMENT_VALUE"==e.FType),n.xp6(1),n.Q6J("ngIf",s.IsAutoCalcAgrAmt&&"AGREEMENT_VALUE"==e.FType),n.xp6(1),n.Q6J("ngIf","OTHER_INLUDEAGREEMENT"==e.FType),n.xp6(1),n.Q6J("ngIf","OTHER_EXCLUDEAGREEMENT"==e.FType||"GST_AGREEMENT"==e.FType||"TDS_AGREEMENT"==e.FType),n.xp6(1),n.Q6J("ngIf","TOTAL_AMOUNT"==e.FType||"SUB_TOTAL_1"==e.FType||"SUB_TOTAL_2"==e.FType||"SUB_TOTAL_3"==e.FType),n.xp6(1),n.Q6J("ngIf",r.submitted&&s.IsTotalWiseCalc)}}function at(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"tr"),n.TgZ(1,"td"),n._uU(2),n.qZA(),n.TgZ(3,"td"),n.TgZ(4,"input",234,235),n.NdJ("ngModelChange",function(t){const i=n.CHM(e).$implicit;return n.oxw(4).IsTotalWiseCalc&&i.Amt>0?i.Amt:i.Value=t}),n.qZA(),n.qZA(),n.TgZ(6,"td"),n.TgZ(7,"input",236,237),n.NdJ("selectedindex",function(t){const i=n.CHM(e).index;return n.oxw(4).onEstimatedDateOCR_IncAgreement(t,i)}),n.qZA(),n.qZA(),n.qZA()}if(2&e){const e=t.$implicit,i=t.index,s=n.oxw(4);n.xp6(2),n.hij(" ",e.Trms," "),n.xp6(2),n.MGl("name","Agrterm_1112",i,""),n.MGl("id","Agrterm_1112",i,""),n.Q6J("disabled",s.IsTotalWiseCalc&&e.Amt>0)("ngModel",s.IsTotalWiseCalc&&e.Amt>0?e.Amt:e.Value),n.xp6(3),n.MGl("name","Agrterm_1152",i,""),n.MGl("id","Agrterm_1152",i,""),n.Q6J("startDate",e.CommitmentDate)}}function ct(e,t){if(1&e&&(n.TgZ(0,"div",231),n.TgZ(1,"table",232),n.TgZ(2,"thead"),n.TgZ(3,"tr"),n.TgZ(4,"th",233),n._uU(5,"Term"),n.qZA(),n.TgZ(6,"th",233),n._uU(7,"OCR Amount"),n.qZA(),n.TgZ(8,"th",233),n._uU(9,"Due Date"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(10,"tbody"),n.YNc(11,at,9,8,"tr",44),n.qZA(),n.qZA(),n.qZA()),2&e){const e=n.oxw(3);n.xp6(11),n.Q6J("ngForOf",e.sitestrService.singleresult.siteTermsForpayment_IncAgreement)}}function gt(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",226),n.TgZ(1,"div",73),n.TgZ(2,"div",227),n.TgZ(3,"h5",75),n.TgZ(4,"button",228),n.NdJ("
1click",function(){return n.CHM(e),n.oxw(2).toggleCollapse4()}),n.TgZ(5,"span",77),n._uU(6,"OCR PAYMENT FIELDS"),n.qZA(),n.TgZ(7,"span",78),n._uU(8),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(9,"div",229),n.YNc(10,ct,12,1,"div",230),n.ALo(11,"lowercase"),n.qZA(),n.qZA(),n.qZA()}if(2&e){const e=n.oxw(2);n.xp6(4),n.uIk("aria-expanded",e.isCollapsed4?"false":"true"),n.xp6(4),n.Oqu(e.isCollapsed4?"+":"-"),n.xp6(2),n.Q6J("ngIf","unsold"!=n.lcZ(11,3,e.sitestrService.singleresult.BookSts))}}function dt(e,t){1&e&&(n.TgZ(0,"span",17),n._uU(1,"Dynamic booking terms can't be undo once booking made, "),n._UZ(2,"br"),n._uU(3," You've to DELETE this for to do so."),n.qZA())}function ut(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",255),n.TgZ(1,"label",256),n._uU(2,"Want to Add/Edit Terms? "),n._UZ(3,"br"),n.YNc(4,dt,4,0,"span",257),n.qZA(),n.TgZ(5,"div"),n.TgZ(6,"label",131),n.TgZ(7,"input",258),n.NdJ("change",function(){n.CHM(e);const t=n.oxw(3);return t.sitestrService.singleresult.IsDynBookTrm=1!=t.sitestrService.singleresult.IsDynBookTrm}),n.qZA(),n._UZ(8,"span",39),n.qZA(),n.qZA(),n.qZA()}if(2&e){const e=n.oxw(3);n.xp6(4),n.Q6J("ngIf",e.IsdynamicBooking),n.xp6(3),n.Q6J("checked",e.sitestrService.singleresult.IsDynBookTrm&&e.IsDynamicPayTrms)("disabled",!e.IsDynamicPayTrms||e.IsdynamicBooking)}}function pt(e,t){1&e&&(n.TgZ(0,"div",67),n._uU(1," Payment Terms is Already Exist! "),n.qZA())}function mt(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",249),n.TgZ(1,"label",288),n._uU(2,"Estimated Date:"),n.qZA(),n.TgZ(3,"input",289,290),n.NdJ("selected",function(t){return n.CHM(e),n.oxw(4).onEstimatedateSelectLoanOCR(t)})("ngModelChange",function(t){return n.CHM(e),n.oxw(4).newLoanOcrTerms.EDt=t}),n.qZA(),n.qZA()}if(2&e){const e=n.MAs(4);n.oxw();const t=n.MAs(1),i=n.oxw(3);
1n.xp6(3),n.Q6J("ngClass",n.VKq(3,fe,t.submitted&&e.invalid))("ngModel",i.newLoanOcrTerms.EDt)("startDate",i.newLoanOcrTerms.EDt)}}function ht(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"form",259,260),n.NdJ("ngSubmit",function(t){n.CHM(e);const i=n.MAs(1),s=n.oxw(3);return i.form.valid&&s.AddNewLoanOCRTerm(t)}),n.TgZ(2,"div",14),n.TgZ(3,"div",261),n.TgZ(4,"label",262),n._uU(5,"Order:"),n.qZA(),n.TgZ(6,"input",263,264),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).newLoanOcrTerms.order=t}),n.qZA(),n.qZA(),n.TgZ(8,"div",189),n.TgZ(9,"label",265),n._uU(10,"Particular:"),n.qZA(),n.TgZ(11,"input",266,267),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).newLoanOcrTerms.Trms=t})("change",function(t){return n.CHM(e),n.oxw(3).IsAlredyexistTerm(null,t)}),n.qZA(),n.YNc(13,pt,2,0,"div",20),n.qZA(),n.TgZ(14,"div",261),n.TgZ(15,"label",268),n._uU(16,"Percentage:"),n.qZA(),n.TgZ(17,"input",269,270),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).newLoanOcrTerms.Prcntge=t}),n.qZA(),n.qZA(),n.TgZ(19,"div",249),n.TgZ(20,"label",271),n._uU(21,"Payment Date Type:"),n.qZA(),n.TgZ(22,"ng-select",272,273),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).newLoanOcrTerms.PayDateType=t}),n.TgZ(24,"ng-option",274),n._uU(25,"ALLOTMENT_DATE"),n.qZA(),n.TgZ(26,"ng-option",275),n._uU(27,"ESTIMATION_DATE"),n.qZA(),n.TgZ(28,"ng-option",276),n._uU(29,"TERM_COMPLETED"),n.qZA(),n.qZA(),n.qZA(),n.YNc(30,mt,5,5,"div",277),n.TgZ(31,"div",261),n.TgZ(32,"label",278),n._uU(33,"Additional Days:"),n.qZA(),n.TgZ(34,"input",279,280),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).newLoanOcrTerms.PayDays=t}),n.qZA(),n.qZA(),n.TgZ(36,"div",261),n.TgZ(37,"label",281),n._uU(38,"Reference:"),n.qZA(),n.TgZ(39,"input",282,283),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).newLoanOcrTerms.RefName=t}),n.qZA(),n.qZA(),n.TgZ(41,"div",189),n.TgZ(42,"label",284),n._uU(43,"Loan/OCR Token:"),n.qZA(),n.TgZ(44,"input",285,286),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(3).newLoanOcrTerms.Token=t}),n.qZA(),n.qZA(),n.TgZ(46,"div",261),n.TgZ(47,"button",287),n._uU(48," Add "),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&e){const e=n.MAs(1),t=n.MAs(7),i=n.MAs(12),s=n.MAs(18),r=n.MAs(23),o=n.MAs(35),l=n.MAs(40),a=n.MAs(45),c=n.oxw(3);n.xp6(6),n.Q6J("ngClass",n.VKq(16,fe,e.submitted&&t.invalid))("ngModel",c.newLoanOcrTerms.order),n.xp6(5),n.Q6J("ngClass",n.VKq(18,fe,e.submitted&&i.invalid||c.newLoanOcrTerms.IsAlreadyExist))("ngModel",c.newLoanOcrTerms.Trms),n.xp6(2),n.Q6J("ngIf",c.newLoanOcrTerms.IsAlreadyExist),n.xp6(4),n.Q6J("ngClass",n.VKq(20,fe,e.submitted&&s.invalid))("ngModel",c.newLoanOcrTerms.Prcntge),n.xp6(5),n.Q6J("ngClass",n.VKq(22,fe,e.submitted&&r.invalid))("ngModel",c.newLoanOcrTerms.PayDateType),n.xp6(8),n.Q6J("ngIf","ESTIMATION_DATE"==c.newLoanOcrTerms.PayDateType||"TERM_COMPLETED"==c.newLoanOcrTerms.PayDateType),n.xp6(4),n.Q6J("ngClass",n.VKq(24,fe,e.submitted&&o.invalid))("ngModel",c.newLoanOcrTerms.PayDays),n.xp6(5),n.Q6J("ngClass",n.VKq(26,fe,e.submitted&&l.invalid))("ngModel",c.newLoanOcrTerms.RefName),n.xp6(5),n.Q6J("ngClass",n.VKq(28,fe,e.submitted&&a.invalid))("ngModel",c.newLoanOcrTerms.Token)}}function ft(e,t){1&e&&(n.TgZ(0,"div",67),n._uU(1," Payment Terms is Already Exist! "),n.qZA())}function Tt(e,t){1&e&&(n.TgZ(0,"div"),n._uU(1," Payment Terms is required "),n.qZA())}function Zt(e,t){if(1&e&&(n.TgZ(0,"div",67),n.YNc(1,Tt,2,0,"div",68),n.qZA()),2&e){n.oxw();const e=n.MAs(8);n.xp6(1),n.Q6J("ngIf",e.errors.required)}}function At(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",187),n.TgZ(1,"input",315,316),n.NdJ("selected",function(t){n.CHM(e);const i=n.oxw().index;return n.oxw(4).onEstimatedDateOCR(t,i)}),n.qZA(),n.qZA()}if(2&e){const e=n.MAs(2),t=n.oxw(),i=t.index,s=t.$implicit;n.oxw(4);const r=n.MAs(25);n.xp6(1),n.MGl("name","Estimateddate___LO_",i,""),n.MGl("id","Estimateddate___LO_",i,""),n.Q6J("ngClass",n.VKq(4,fe,r.submitted&&e.invali
1d))("startDate",s.EDt)}}function vt(e,t){1&e&&(n.TgZ(0,"div",317),n._uU(1,"Input exceeds 75 characters!"),n.qZA())}function bt(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"tr"),n.TgZ(1,"td"),n.TgZ(2,"div",187),n.TgZ(3,"input",298,299),n.NdJ("ngModelChange",function(t){return n.CHM(e).$implicit.order=t}),n.qZA(),n.qZA(),n.qZA(),n.TgZ(5,"td"),n.TgZ(6,"div",187),n.TgZ(7,"input",300,301),n.NdJ("ngModelChange",function(t){return n.CHM(e).$implicit.Trms=t})("change",function(){const t=n.CHM(e).index;return n.oxw(4).IsAlredyexistTerm(t,null)}),n.qZA(),n.YNc(9,ft,2,0,"div",20),n.YNc(10,Zt,2,1,"div",20),n.qZA(),n.qZA(),n.TgZ(11,"td"),n.TgZ(12,"div",187),n.TgZ(13,"input",302,303),n.NdJ("ngModelChange",function(t){return n.CHM(e).$implicit.Prcntge=t})("change",function(){return n.CHM(e),n.oxw(4).changeLoan()}),n.qZA(),n.qZA(),n.qZA(),n.TgZ(15,"td"),n.TgZ(16,"ng-select",304,305),n.NdJ("ngModelChange",function(t){return n.CHM(e).$implicit.PayDateType=t}),n.TgZ(18,"ng-option",274),n._uU(19,"ALLOTMENT_DATE"),n.qZA(),n.TgZ(20,"ng-option",275),n._uU(21,"ESTIMATION_DATE"),n.qZA(),n.TgZ(22,"ng-option",276),n._uU(23,"TERM_COMPLETED"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(24,"td"),n.YNc(25,At,3,6,"div",306),n.qZA(),n.TgZ(26,"td"),n.TgZ(27,"input",307,308),n.NdJ("change",function(){return n.CHM(e),n.oxw(4).DateGetFromTerms()})("ngModelChange",function(t){return n.CHM(e).$implicit.PayDays=t}),n.qZA(),n.qZA(),n.TgZ(29,"td"),n.TgZ(30,"input",309,310),n.NdJ("input",function(t){const i=n.CHM(e).index;return n.oxw(4).validateInput(t.target.value,i)})("ngModelChange",function(t){return n.CHM(e).$implicit.RefName=t}),n.qZA(),n.YNc(32,vt,2,0,"div",311),n.qZA(),n.TgZ(33,"td"),n.TgZ(34,"input",312,313),n.NdJ("ngModelChange",function(t){return n.CHM(e).$implicit.Token=t}),n.qZA(),n.qZA(),n.TgZ(36,"td"),n.TgZ(37,"a",314),n.NdJ("click",function(){const t=n.CHM(e).index;return n.oxw(4).RemovePaymentTerm(t,1)}),n._uU(38,"Delete"),n.qZA(),n.qZA(),n.qZA()}if(2&e){const e=t.$implicit,i=t.index,s=n.MAs(8),r=n.oxw(4),o=n.MAs(25);n.xp6(3),n.MGl("name","order__LO_",i,""),n.Q6J("ngModel",e.order),n.xp6(4),n.MGl("name","ptermsLO_",i,""),n.MGl("id","ptermsLO_",i,""),n.Q6J("ngClass",n.VKq(24,fe,o.submitted&&s.invalid||e.IsAlreadyExist))("ngModel",e.Trms),n.xp6(2),n.Q6J("ngIf",e.IsAlreadyExist),n.xp6(1),n.Q6J("ngIf",o.submitted&&s.invalid),n.xp6(3),n.MGl("name","PercentageLO_",i,""),n.MGl("id","PercentageLO_",i,""),n.Q6J("ngModel",e.Prcntge),n.xp6(3),n.MGl("name","PayDateTypeLO_",i,""),n.Q6J("ngModel",e.PayDateType),n.xp6(9),n.Q6J("ngIf","ESTIMATION_DATE"==e.PayDateType||"TERM_COMPLETED"==e.PayDateType),n.xp6(2),n.MGl("name","daysLO_",i,""),n.MGl("id","PDaysLO_",i,""),n.Q6J("ngModel",e.PayDays),n.xp6(3),n.MGl("name","RNameLO_",i,""),n.MGl("id","RNameLO_",i,""),n.Q6J("ngModel",e.RefName),n.xp6(2),n.Q6J("ngIf",r.isInputTooLong[i]),n.xp6(2),n.MGl("name","TokenLO_",i,""),n.MGl("id","TokenLO_",i,""),n.Q6J("ngModel",e.Token)}}function St(e,t){if(1&e&&(n.TgZ(0,"div",291),n.TgZ(1,"table",292),n.TgZ(2,"thead"),n.TgZ(3,"tr"),n.TgZ(4,"th",293),n._uU(5," LOAN OCR TERMS"),n.qZA(),n.qZA(),n.TgZ(6,"tr"),n.TgZ(7,"th",294),n._uU(8,"Order"),n.qZA(),n.TgZ(9,"th",295),n._uU(10,"Particular"),n.qZA(),n.TgZ(11,"th"),n._uU(12,"Terms Percentage:"),n.qZA(),n.TgZ(13,"th"),n._uU(14,"Payment Date Type:"),n.qZA(),n.TgZ(15,"th"),n._uU(16,"Estimated Date:"),n.qZA(),n.TgZ(17,"th",296),n._uU(18,"Additional Days:"),n.qZA(),n.TgZ(19,"th",297),n._uU(20,"Reference:"),n.qZA(),n.TgZ(21,"th",297),n._uU(22,"Token:"),n.qZA(),n.TgZ(23,"th"),n._uU(24,"Action"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(25,"tbody"),n.YNc(26,bt,39,26,"tr",44),n.qZA(),n.qZA(),n.qZA()),2&e){const e=n.oxw(3);n.xp6(26),n.Q6J("ngForOf",e.sitestrService.singleresult.siteTermsForLoanOCR)}}function Ct(e,t){if(1&e&&(n.TgZ(0,"ng-option",318),n._uU(1),n.qZA()),2&e){const e=t.$implicit;n.Q6J("value",e),n.xp6(1),n.Oqu(e)}}function xt(e,t){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const e=n.oxw().$implicit;n.xp6(1),n.hij(" - ",e.Prcntge,"%")}}function kt(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"input",328,322),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw().$implicit.TDSAmt=t}),n.qZA()}if(2&e){const e=n.oxw(),t=e.index,i=e.$implicit;n.MGl("name","term_117",t,""),n.MGl("id","term_117",t,""),n.Q6J("readonly",!0)("ngModel",i.TDSAmt)}}function It(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"input",329,322),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw().$implicit.OCRAmt=t}),n.qZA()}if(2&e){const e=n.oxw(),t=e.index,i=e.$implicit;n.MGl("name","term_113",t,""),n.MGl("id","term_113",t,""),n.Q6J("readonly",!0)("ngModel",i.OCRAmt)}}function Mt(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"input",330,331),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw().$implicit.LoanAmt=t}),n.qZA()}if(2&e){const e=n.oxw(),t=e.index,i=e.$implicit;n.MGl("name","term_112",t,""),n.MGl("id","term_112",t,""),n.Q6J("readonly",!0)("ngModel",i.LoanAmt)}}function qt(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"tr"),n.TgZ(1,"td"),n._uU(2),n.YNc(3,xt,2,1,"span",68),n.qZA(),n.TgZ(4,"td"),n.TgZ(5,"input",321,322),n.NdJ("ngModelChange",function(t){return n.CHM(e).$implicit.Value=t}
1),n.qZA(),n.qZA(),n.TgZ(7,"td"),n.YNc(8,kt,2,4,"input",323),n.qZA(),n.TgZ(9,"td"),n.YNc(10,It,2,4,"input",324),n.qZA(),n.TgZ(11,"td"),n.YNc(12,Mt,2,4,"input",325),n.qZA(),n.TgZ(13,"td"),n.TgZ(14,"input",326,327),n.NdJ("selectedindex",function(t){const i=n.CHM(e).index;return n.oxw(4).onEstimatedDateOCR(t,i)}),n.qZA(),n.qZA(),n.qZA()}if(2&e){const e=t.$implicit,i=t.index;n.xp6(2),n.hij(" ",e.Trms," "),n.xp6(1),n.Q6J("ngIf","AGREEMENT_TERMS"==e.FType),n.xp6(2),n.MGl("name","term_111",i,""),n.MGl("id","term_111",i,""),n.Q6J("readonly",!0)("ngModel",e.Value),n.xp6(3),n.Q6J("ngIf","AGREEMENT_TERMS"==e.FType),n.xp6(2),n.Q6J("ngIf","AGREEMENT_TERMS"==e.FType),n.xp6(2),n.Q6J("ngIf","AGREEMENT_TERMS"==e.FType),n.xp6(2),n.Q6J("startDate",e.CommitmentDate)}}function Nt(e,t){if(1&e&&(n.TgZ(0,"div",319),n.TgZ(1,"table",320),n.TgZ(2,"thead"),n.TgZ(3,"tr"),n.TgZ(4,"th",233),n._uU(5,"Terms"),n.qZA(),n.TgZ(6,"th",233),n._uU(7,"Total Amount"),n.qZA(),n.TgZ(8,"th",233),n._uU(9,"TDS Amount"),n.qZA(),n.TgZ(10,"th",233),n._uU(11,"OCR Amount"),n.qZA(),n.TgZ(12,"th",233),n._uU(13,"Loan Amount"),n.qZA(),n.TgZ(14,"th",233),n._uU(15,"Due Date"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(16,"tbody"),n.YNc(17,qt,16,10,"tr",44),n.qZA(),n.qZA(),n.qZA()),2&e){const e=n.oxw(3);n.xp6(17),n.Q6J("ngForOf",e.sitestrService.singleresult.siteTermsForLoanOCR)}}const yt=function(e){return{"highlight-border":e}};function _t(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",238),n.TgZ(1,"div",73),n.TgZ(2,"div",239),n.TgZ(3,"h5",75),n.TgZ(4,"button",240),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).toggleCollapse5()}),n.TgZ(5,"span",77),n._uU(6,"PAYMENT TERMS"),n.qZA(),n.TgZ(7,"span",78),n._uU(8),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(9,"div",241),n.TgZ(10,"div",242),n.TgZ(11,"div",73),n.TgZ(12,"div",243),n.TgZ(13,"h5",75),n.TgZ(14,"button",244),n._uU(15," WOULD YOU LIKE TO DYNAMIC TERMS FOR THIS BOOKING? "),n.qZA(),n.qZA(),n.qZA(),n.TgZ(16,"div",245),n.TgZ(17,"div",153),n.YNc(18,ut,9,3,"div",246),n.ALo(19,"lowercase"),n.YNc(20,ht,49,30,"form",247),n.YNc(21,St,27,1,"div",248),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(22,"div",249),n.TgZ(23,"label",250),n._uU(24,"Site Term:"),n.qZA(),n.TgZ(25,"ng-select",251,252),n.NdJ("ngModelChange",function(t){return n.CHM(e),n.oxw(2).sitestrService.singleresult.SiteTermName=t})("change",function(t){n.CHM(e);const i=n.oxw(2);return i.ChangeSiteTerms(),i.changeLoan(),i.ChangeTotalAmtValue(t,null)}),n.YNc(27,Ct,2,2,"ng-option",253),n.qZA(),n.qZA(),n.YNc(28,Nt,18,1,"div",254),n.ALo(29,"lowercase"),n.qZA(),n.qZA(),n.qZA()}if(2&e){const e=n.oxw(2),t=n.MAs(25);n.xp6(4),n.uIk("aria-expanded",e.isCollapsed5?"false":"true"),n.xp6(4),n.Oqu(e.isCollapsed5?"+":"-"),n.xp6(10),n.Q6J("ngIf","unsold"!=n.lcZ(19,10,e.sitestrService.singleresult.BookSts)),n.xp6(2),n.Q6J("ngIf",e.sitestrService.singleresult.IsDynBookTrm&&e.IsDynamicPayTrms),n.xp6(1),n.Q6J("ngIf",e.sitestrService.singleresult.IsDynBookTrm&&e.IsDynamicPayTrms),n.xp6(4),n.Q6J("ngClass",n.VKq(14,yt,t.submitted&&(!e.sitestrService.singleresult.SiteTermName||""==e.sitestrService.singleresult.SiteTermName)))("ngModel",e.sitestrService.singleresult.SiteTermName)("disabled",1==e.sitestrService.singleresult.IsDynBookTrm),n.xp6(2),n.Q6J("ngForOf",e.siteTermNamesUnique),n.xp6(1),n.Q6J("ngIf","unsold"!=n.lcZ(29,12,e.sitestrService.singleresult.BookSts))}}function wt(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",12),n.YNc(1,De,114,52,"div",71),n.ALo(2,"lowercase"),n.TgZ(3,"div",72),n.TgZ(4,"div",73),n.TgZ(5,"div",74),n.TgZ(6,"h5",75),n.TgZ(7,"button",76),n.NdJ("click",function(){return n.CHM(e),n.oxw().toggleCollapse2()}),n.TgZ(8,"span",77),n._uU(9,"SITE FIELDS"),n.qZA(),n.TgZ(10,"span",78),n._uU(11),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(12,"div",79),n.TgZ(13,"div",80),n.YNc(14,Je,10,1,"div",81),n.YNc(15,Xe,9,7,"div",82),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(16,"div",83),n.TgZ(17,"div",73),n.TgZ(18,"div",84),n.TgZ(19,"h5",75),n.TgZ(20,"button",85),n.NdJ("click",function(){return n.CHM(e),n.oxw().toggleCollapse3()}),n.TgZ(21,"span",77),n._uU(22,"PAYMENT FIELDS"),n.qZA(),n.TgZ(23,"span",78),n._uU(24),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(25,"div",86),n.TgZ(26,"div",80),n.YNc(27,lt,11,9,"ng-container",44),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.YNc(28,gt,12,5,"div",87),n.ALo(29,"lowercase"),n.YNc(30,_t,30,16,"div",88),n.ALo(31,"lowercase"),n.qZA()}if(2&e){const e=n.oxw();n.xp6(1),n.Q6J("ngIf",null!=e.sitestrService.singleresult.SI&&"unsold"!=n.lcZ(2,10,e.sitestrService.singleresult.BookSts)),n.xp6(6),n.uIk("aria-expanded",e.isCollapsed2?"false":"true"),n.xp6(4),n.Oqu(e.isCollapsed2?"+":"-"),n.xp6(3),n.Q6J("ngIf",e.sitestrService.singleresult.ProjectsFields.length>0),n.xp6(1),n.Q6J("ngForOf",e.sitestrService.singleresult.siteTermsForSite),n.xp6(5),n.uIk("aria-expanded",e.isCollapsed3?"false":"true"),n.xp6(4),n.Oqu(e.isCollapsed3?"+":"-"),n.xp6(3),n.Q6J("ngForOf",e.sitestrService.singleresult.siteTermsForpayment),n.xp6(1),n.Q6J("ngIf","unsold"!=n.lcZ(29,12,e.sitestrService.singleresult.BookSts)),n.xp6(2),n.Q6J("ngIf","unsold"!=n.lcZ(31,14,e.sitestrService.singleresult.BookSts))}}function Ot(e,t){if(1&e){const e=n.EpF();
1n.TgZ(0,"a",337),n.NdJ("click",function(){n.CHM(e);const t=n.oxw(2);return t.DeleteStructure(2,t.sitestrService.singleresult.UIDN)}),n._uU(1,"Cancel Booking"),n.qZA()}}function Dt(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"button",338),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).openWhatsAppApiBooking()}),n._uU(1,"Send WhatsApp"),n.qZA()}}function Et(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"div",332),n.YNc(1,Ot,2,0,"a",333),n.ALo(2,"lowercase"),n.YNc(3,Dt,2,0,"button",334),n.TgZ(4,"button",335),n._uU(5),n.qZA(),n.TgZ(6,"a",336),n.NdJ("click",function(){return n.CHM(e),n.oxw().cancel()}),n._uU(7,"Cancel"),n.qZA(),n.qZA()}if(2&e){const e=n.oxw();n.xp6(1),n.Q6J("ngIf","Update Booking"==e.saveText&&"unsold"!=n.lcZ(2,4,e.sitestrService.singleresult.BookSts)&&!e.sitestrService.singleresult.IsFinalBook),n.xp6(2),n.Q6J("ngIf",e.sitestrService.singleresult.UIDN>0),n.xp6(1),n.Q6J("hidden",e.IsFinalBooking),n.xp6(1),n.Oqu(e.saveText)}}function Lt(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"nav",339),n.TgZ(1,"ul",340),n.TgZ(2,"li",341),n.TgZ(3,"button",342),n._uU(4,"Save"),n.qZA(),n.qZA(),n.TgZ(5,"li",343),n.TgZ(6,"a",336),n.NdJ("click",function(){return n.CHM(e),n.oxw().cancel()}),n._uU(7,"Cancel"),n.qZA(),n.qZA(),n.qZA(),n.qZA()}}function Ut(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"app-companyledger-addedit",344),n.NdJ("redirectAction",function(t){return n.CHM(e),n.oxw().popupAction(t)}),n.qZA()}if(2&e){const e=n.oxw();n.Q6J("isMobilePopup",!1)("inputLedgerId",e.ledgerIdVal)("CompanyIdforReport",e.sitestrService.getCompanyId)("redirectOnCancel",!1)}}function Pt(e,t){if(1&e){const e=n.EpF();
1n.TgZ(0,"app-channel-partner",345),n.NdJ("redirectActiononChannelist",function(t){return n.CHM(e),n.oxw().ChannelPartnerAdded(t)}),n.qZA()}if(2&e){const e=n.oxw();n.Q6J("isMobilePopup",!0)("redirectOnCancelonChannelist",!1)("CompanyIdforReport",e.CompanyIdforReport)("InputChannelPartnerId",e.ChannelPartnerIdVal)}}let Jt=(()=>{class e{constructor(e,t,i,l,c,g,d,u,p){this.sitestrService=e,this.siteservice=t,this.route=i,this.location=l,this.router=c,this.companyledgerservice=g,this.alertService=d,this.userService=u,this.channelPartnerService=p,this.siteTerms=[],this.locationname="",this.returnUrl="",this.sfilter=new s.e,this.paymentTerms=[],this.LoanOcrTerms=[],this.newLoanOcrTerms=new r.j6,this.FieldsList=[],this.isInputTooLong=[],this.Valid=!0,this.ledgerPopupTarget="customer",this.isLedgerpopupopen=!1,this.siteStrList=[],this.isList=!0,this._sgId=0,this.isMobilePopup=!1,this.BookingredirectOnCancel=!0,this.CompanyIdforReport=0,this.TaxLedgers=[],this.curAddLedgerLoc=0,this.taxLedger=[],this.TermLoanOCR=[],this.BookingredirectAction=new n.vpe,this.totLoan=0,this.totOCR=0,this.CustomerGroupLedger=[],this.Customers=[],this.showCompanyLedgerpopup=!1,this.OutstndInterstShow=!1,this.bankMaster=[],this.files=[],this.isChannelPartnerpopupopen=!1,this.IsTagView=!1,this.IsAutoCalcAgrAmt=!1,this.IsTotalWiseCalc=!1,this.IsDynamicPayTrms=!1,this.WantToChangeTrms=!1,this.IsdynamicBooking=!1,this.IsTDSApplicable=!1,this.UseSeparateGSTCustomerLedger=!1,this.isCollapsed1=!0,this.isCollapsed2=!0,this.isCollapsed3=!0,this.isCollapsed4=!0,this.isCollapsed5=!0,this.activeBookingSection=1,this.httpfunction=new a.r,this.TotalAgrAmtWithoutGst=0,this.IsFinalBooking=!1,this.saveText="Confirm Booking",this.TotalAgrAmt=0,this.totaltermamount=0,this.TotalOfFixedAmount=0,this.siteTermNamesUnique=[],this.whatsAppApiSendData={},this.SignupId=this.sitestrService.getSignupId,this.CompanyId=this.sitestrService.getCompanyId,this.UserId=this.sitestrService.GetUserId,e.singleresult=new o.T,e.singleresult.SI=null,this.channelPartnerService.singleresult=null,this.sitestrService.singleresult.CI=this.sitestrService.getCompanyId,this.ledSelcted(),this.route.params.subscribe(e=>{null!=e.id&&""!=e.id&&"add"!=e.id.toLowerCase()?this.getData(2,e.id):null!=e.id&&""!=e.id&&"add"==e.id.toLowerCase()&&this.getData(1,0),null!=e.location&&""!=e.location&&("booking"==e.location.toLowerCase()?this.locationname="booking":"ledgerhistory"==e.location.toLowerCase()&&(this.locationname="ledgerhistory"))}),this.route.queryParams.subscribe(e=>{const t=e.returnUrl||"";this.returnUrl=0===t.indexOf("/")?t:""})}ngOnDestroy(){null!=this.subscription&&this.subscription.unsubscribe()}goback(){this.location.back()}cancel(){if(this.returnUrl)this.router.navigateByUrl(this.returnUrl);else if(this.BookingredirectOnCancel){if(""!=this.httpfunction.getStorage("_filterData")){let t=JSON.parse(this.httpfunction.getStorage("_filterData")).reverse();if(null!=t&&null!=t){var e=t.find(e=>"Daybook"==e.Module||"Trial Balance"==e.Module||"Outstanding Payable"==e.Module||"Outstanding Receivable"==e.Module);if(null!=e||null!=e)return"Ledger"==e.SearchFilter[0].PageType?void this.router.navigate(["/transactions/ledger"]):"Group"==e.SearchFilter[0].PageType?void this.router.navigate(["/transactions/group"]):"Monthly Summary"==e.SearchFilter[0].PageType?void this.router.navigate(["/reports/monthlysummary/"+e.SearchFilter[0].LedgerId]):"Finalize"==e.SearchFilter[0].PageType?void this.router.navigate(["/transactions/finalize"]):"Restorevoucher"==e.SearchFilter[0].PageType?void this.router.navigate(["/transactions/restorevoucher"]):"Daybook"==e.SearchFilter[0].PageType?void this.router.navigate(["/transactions/daybook"]):"Trial Balance"==e.SearchFilter[0].PageType?void this.goback():"Outstanding Payable"==e.SearchFilter[0].PageType?void this.router.navigate(["/reports/outstandingpayble"]):"Outstanding Receivable"==e.SearchFilter[0].PageType?void this.router.navigate(["/reports/outstandingrecivable"]):this.router.url.toLowerCase().indexOf("bookingform")>=0?void this.router.navigate(["/marketing/bookinglist"]):void this.router.navigate(["/masters/sitestructure"]);if(this.router.url.toLowerCase().indexOf("bookingform")>=0){if(t.find(e=>"InquiryM"==e.Module))return void this.router.navigate(["/marketing/inquiry"]);this.router.navigate(["/marketing/bookinglist"])}else this.router.navigate(["/masters/sitestructure"])}else this.router.url.toLowerCase().indexOf("bookingform")>=0?this.router.navigate(["/marketing/bookinglist"]):this.router.navigate(["/masters/sitestructure"])}}else this.BookingredirectAction.emit(null)}SiteChange(e){this.getData(3,this.sitestrService.singleresult.SI)}getData(e,t){1==e?(this.sfilter.siteid=0,this.sfilter.sitestructureid=0,this.sfilter.action=1):2==e?(this.sfilter.siteid=0,this.sfilter.sitestructureid=t,this.sfilter.action=2):(this.sfilter.siteid=t,this.sfilter.action=3),this.sitestrService.filterArg=this.sfilter,this.sitestrService.GetAllDynamicData().subscribe(e=>{var i,n;if(this.sitestrService.singleresult.IsBookingFromInquiry=!1,this.companyledgerservice.singleresult=this.companyledgerservice.result.filter(e=>e.UIDN==this.sitestrService.singleresult.CusLedgerId)[0],1==this.sfilter.action)this.siteservice.result=e.site,this.sitestrService.singleresult=e.siteStructure,this.sitestrService.singleresult.St=1,this.bankMaster=e.bankdetails,this.channelPartnerService.result=e.channelPartnerMasters;else if(2==this.sfilter.action)this.siteservice.result=e.site,this.sitestrService.singleresult=e.siteStructure,this.userService.singleresult=Object.assign({},this.userService.result.filter(e=>e.UIDN==this.sitestrService.singleresult.SalBy)[0]),this.bankMaster=e.bankdetails,this.channelPartnerService.result=e.channelPartnerMasters,this.OutstndInterstShow=e.site[0].IntrestOnOutstanding,1!=this.sitestrService.singleresult.BookingWiseIsIntrestOnOutstanding&&1==e.site[0].IntrestOnOutstanding&&null!=e.site[0].IntrestOnOutstanding&&(this.sitestrService.singleresult.BookingWiseOutstandingIntrestRate=e.site[0].IntrestOutstanding),
11==e.siteStructure.IsFinalBook&&(this.IsFinalBooking=e.siteStructure.IsFinalBook),this.saveText="Update Booking",this.SiteStructureId>0&&(this.sitestrService.singleresult.IsBookingFromInquiry=!0,this.sitestrService.singleresult.InqI=this.InquiryId,this.sitestrService.singleresult.BookSts="Sold",this.sitestrService.singleresult.NameOnAgreement=this.CustomerName),this.companyledgerservice.singleresult=this.companyledgerservice.result.filter(e=>e.UIDN==this.sitestrService.singleresult.CusLedgerId)[0],this.files=e.files;else if(3==this.sfilter.action){let i=this.sitestrService.singleresult.BookSts,n=this.sitestrService.singleresult.St;this.sitestrService.singleresult=e.siteStructure,this.channelPartnerService.result=e.channelPartnerMasters,this.sitestrService.singleresult.CI=this.sitestrService.getCompanyId,this.sitestrService.singleresult.SI=t,this.sitestrService.singleresult.BookSts=i,this.sitestrService.singleresult.St=n,this.sitestrService.singleresult.BookingWiseIsIntrestOnOutstanding=e.site[0].IntrestOnOutstanding,this.OutstndInterstShow=e.site[0].IntrestOnOutstanding,this.sitestrService.singleresult.BookingWiseOutstandingIntrestRate=e.site[0].IntrestOutstanding}const s=[...new Set(this.sitestrService.singleresult.siteTerms.filter(e=>"AGREEMENT_TERMS"===e.FieldType).map(e=>e.SiteTermName?e.SiteTermName:"DEFAULT TERM"))];if(this.siteTermNamesUnique=s,1===s.length&&(this.sitestrService.singleresult.SiteTermName=s[0]),this.siteservice.result.filter(e=>e.UIDN==this.sitestrService.singleresult.SI).length>0){const e=this.siteservice.result.filter(e=>e.UIDN==this.sitestrService.singleresult.SI)[0];this.IsAutoCalcAgrAmt=!!e.IsAutoCalcAgrAmt,this.IsTotalWiseCalc=!!e.IsTotalWiseCalc,this.IsDynamicPayTrms=!!e.IsDynamicpayTrm,this.IsTDSApplicable=!!e.AddTDSOnTrm,this.UseSeparateGSTCustomerLedger=!0===e.UseSeparateGSTCustomerLedger,this.UseSeparateGSTCustomerLedger||(this.sitestrService.singleresult.GSTCustomerLedgerId=null)}this.IsdynamicBooking=null===(n=null===(i=this.sitestrService)||void 0===i?void 0:i.singleresult)||void 0===n?void 0:n.IsDynBookTrm,this.sitestrService.singleresult.siteTermsForCoowner=this.sitestrService.singleresult.siteTerms.filter(e=>"CO_OWNER_FIELD"==e.FType).sort(function(e,t){return parseFloat(e.order)-parseFloat(t.order)}),this.sitestrService.singleresult.OwnersFields=this.sitestrService.singleresult.siteTerms.filter(e=>"OWNERS_FIELD"==e.FType||"OWNER_FIELD_DROPDOWN"==e.FType).sort(function(e,t){return parseFloat(e.order)-parseFloat(t.order)});for(let t=0;t<this.sitestrService.singleresult.OwnersFields.length;t++){const e=this.sitestrService.singleresult.OwnersFields[t];"OWNER_FIELD_DROPDOWN"===e.FType&&(e.DropDownValues=e.SiteDropdownVal.split(","))}this.sitestrService.singleresult.ProjectsFields=this.sitestrService.singleresult.siteTerms.filter(e=>"PROJECT_FIELD"==e.FType||"PROJECT_FIELD_DROPDOWN"==e.FType).sort(function(e,t){return parseFloat(e.order)-parseFloat(t.order)});for(let t=0;t<this.sitestrService.singleresult.ProjectsFields.length;t++){const e=this.sitestrService.singleresult.ProjectsFields[t];"PROJECT_FIELD_DROPDOWN"===e.FType&&(e.DropDownValuess=e.SiteDropdownVal.split(","))}this.sitestrService.singleresult.siteTermsForSite=this.sitestrService.singleresult.siteTerms.filter(e=>"TOTALAREA_FIELD"==e.FType||"RATE_FIELD"==e.FType||"TEXT_FIELD"==e.FType||"FLOOR_FIELD"==e.FType||"DATE_FIELD"==e.FType||"WING_FIELD"==e.FType||"FLATNO_FIELD"==e.FType||"BUILDING_FIELD"==e.FType||"RERA_AREA_FIELD"==e.FType||"DROPDOWN_FIELD"==e.FType).sort(function(e,t){return parseFloat(e.order)-parseFloat(t.order)});for(let t=0;t<this.sitestrService.singleresult.siteTermsForSite.length;t++){const e=this.sitestrService.singleresult.siteTermsForSite[t];"DROPDOWN_FIELD"===e.FType&&(e.DropDownValuess=e.SiteDropdownVal.split(","))}this.sitestrService.singleresult.siteTermsForpayment=this.sitestrService.singleresult.siteTerms.filter(e=>"AGREEMENT_VALUE"==e.FType||"OTHER_INLUDEAGREEMENT"==e.FType||"OTHER_EXCLUDEAGREEMENT"==e.FType||"OTHER_EXCLUDEAGREEMENT_EXC_GST"==e.FType||"GST_AGREEMENT"==e.FType||"GST_OTHER"==e.FType||"TDS_AGREEMENT"==e.FType||"TOTAL_AMOUNT"==e.FType||"BROKERAGE_AMOUNT"==e.FType||"SUB_TOTAL_1"==e.FType||"SUB_TOTAL_2"==e.FType||"SUB_TOTAL_3"==e.FType).sort((e,t)=>
1parseFloat(e.order)-parseFloat(t.order)).map(e=>{if(null!=e.Value&&""!=e.Value&&null!=e.Value){const t=parseFloat(e.Value).toFixed(2);e.Value=parseFloat(t)==parseInt(t)?parseInt(t):t}return e}),this.sitestrService.singleresult.siteTermsForpayment_IncAgreement=this.sitestrService.singleresult.siteTerms.filter(e=>"OTHER_EXCLUDEAGREEMENT"==e.FType||"OTHER_EXCLUDEAGREEMENT_EXC_GST"==e.FType||"OTHER_INLUDEAGREEMENT"==e.FType||"GST_AGREEMENT"==e.FType||"TDS_AGREEMENT"==e.FType||"GST_OTHER"==e.FType).sort((e,t)=>parseFloat(e.order)-parseFloat(t.order));const r="DEFAULT TERM"===this.sitestrService.singleresult.SiteTermName?null:this.sitestrService.singleresult.SiteTermName;this.sitestrService.singleresult.siteTermsForLoanOCR=this.sitestrService.singleresult.siteTerms.filter(e=>"AGREEMENT_TERMS"===e.FType&&"GST_AGREEMENT"!==e.FType&&"TDS_AGREEMENT"!==e.FType&&(null===r?null===e.SiteTermName||"DEFAULT TERM"===e.SiteTermName:e.SiteTermName===this.sitestrService.singleresult.SiteTermName)).sort((e,t)=>parseFloat(e.order)-parseFloat(t.order));for(let t=0;t<this.sitestrService.singleresult.siteTermsForpayment_IncAgreement.length;t++){const e=this.sitestrService.singleresult.siteTermsForpayment_IncAgreement[t];if(null!=e.CommitmentDate||""!=e.CommitmentDate)if("ALLOTMENT_DATE"==e.PayDateType&&null!=this.sitestrService.singleresult.AllotmentDate){var o=moment(this.sitestrService.singleresult.AllotmentDate).format("YYYY MM DD"),l=moment(o).add(e.PayDays,"days").format("YYYY MM DD");e.CommitmentDate=l}else"TERM_COMPLETED"!=e.PayDateType&&"ESTIMATION_DATE"!=e.PayDateType||null==e.EDt||(o=moment(e.EDt).format("YYYY MM DD"),l=moment(o).add(e.PayDays,"days").format("YYYY MM DD"),e.CommitmentDate=l)}for(let t=0;t<this.sitestrService.singleresult.siteTermsForLoanOCR.length;t++){const e=this.sitestrService.singleresult.siteTermsForLoanOCR[t];if(null!=e.CommitmentDate||""!=e.CommitmentDate)if("ALLOTMENT_DATE"==e.PayDateType&&null!=this.sitestrService.singleresult.AllotmentDate)o=moment(this.sitestrService.singleresult.AllotmentDate).format("YYYY MM DD"),l=moment(o).add(e.PayDays,"days").format("YYYY MM DD"),e.CommitmentDate=l;else if("TERM_COMPLETED"!=e.PayDateType&&"ESTIMATION_DATE"!=e.PayDateType||null==e.CommitmentDate)"TERM_COMPLETED"!=e.PayDateType&&"ESTIMATION_DATE"!=e.PayDateType||null==e.EDt||(o=moment(e.EDt).format("YYYY MM DD"),l=moment(o).add(e.PayDays,"days").format("YYYY MM DD"),e.CommitmentDate=l);else{o=moment(e.CommitmentDate).format("YYYY MM DD"),l=moment(o).add(e.PayDays,"days").format("YYYY MM DD");e.CommitmentDate=l}}this.sitestrService.singleresult.siteTerms.filter(e=>"AGREEMENT_VALUE"==e.FType||"OTHER_INLUDEAGREEMENT"==e.FType).forEach(e=>{parseFloat(e.Value)>0&&(this.TotalAgrAmt+=parseFloat(e.Value))}),this.sitestrService.singleresult.siteTermsForLoanOCR.forEach(e=>{parseFloat(e.Value)>0&&(this.totaltermamount+=parseFloat(e.Value))}),this.changeLoan(),this.calculateMaxGridorderAndSet()})}changeLoan(){const e=e=>e-Math.floor(e)>=.5?Math.ceil(e):Math.floor(e);let t=0;this.sitestrService.singleresult.siteTerms.filter(e=>"AGREEMENT_VALUE"===e.FType||"OTHER_INLUDEAGREEMENT"===e.FType).forEach(i=>{const n=parseFloat(i.Value);n>0&&(t+=e(n))});let i=e(this.getNumeric(this.sitestrService.singleresult.LoanAmount)),n=e(t-i);const s=this.sitestrService.singleresult.siteTermsForLoanOCR||[],r=s.reduce((e,t)=>e+this.getNumeric(t.Prcntge),0),o=Math.abs(r-100)<1e-4;let l=0;const a=this.sitestrService.singleresult.siteTerms.find(e=>"TDS_AGREEMENT"===e.FType);let c=0,g=0;if(a&&parseFloat(a.Value)>0){g=e(parseFloat(a.Value)),c=parseFloat((a.Prcntge||"0").toString());const i=e(t*c/100);if(g!==i){const e=parseFloat((g/t*100).toFixed(2));console.warn(`TDS mismatch! Expected: \u20b9${i}, Entered: \u20b9${g}, Reverse-calculated: ${e}%`),c=e}}if(t>=0&&s.length>0)for(let d=0;d<s.length;d++){let r=e(this.getNumeric(t*s[d].Prcntge/100));o&&d===s.length-1&&(r=t-l),l+=r;let a=0,g=0,u=0;n>0?n>=r?(g=e(r),c>0&&(u=e(g*c/100),g=e(g-u)),n=e(n-r)):(g=e(n),c>0&&(u=e(g*c/100),g=e(g-u)),a=e(r-g),n=0,i=e(i-a)):(g=0,a=e(r),i=e(i-r)),this.sitestrService.singleresult.siteTermsForLoanOCR[d].LoanAmt=a,this.sitestrService.singleresult.siteTermsForLoanOCR[d].OCRAmt=g,this.sitestrService.singleresult.siteTermsForLoanOCR[d].TDSAmt=u,this.sitestrService.singleresult.siteTermsForLoanOCR[d].Value=r}}isNumeric(e){return null!=e&&/^[-+]?(\d+|\d+\.\d*|\d*\.\d+)$/.test(e.toString())}getNumeric(e){return this.isNumeric(e)?parseFloat(e):parseFloat("0")}
1calculateAmountOnOrder(e,t,i,n=0){var s,r;if(n>50)return void console.error(`Max recursion depth exceeded at order=${e}`);const o=e=>!isNaN(parseFloat(e))&&isFinite(e),l=e=>e-Math.floor(e)>=.5?Math.ceil(e):Math.floor(e);let a=0;const c=this.sitestrService.singleresult.siteTermsForpayment||[],g=c.find(t=>t.order===e&&"TOTAL_AMOUNT"===t.FieldType);if(this.IsTotalWiseCalc&&g){const e=o(g.Value)?Number(g.Value):0;this.TotalOfFixedAmount=c.reduce((e,t)=>e+(o(t.Amt)?Number(t.Amt):0),0);const t=c.find(e=>"AGREEMENT_VALUE"===e.FieldType),i=null==t?void 0:t.order;if(i){const s=1+c.filter(e=>e.FieldValPer===i).reduce((e,t)=>e+(o(t.Prcntge)?Number(t.Prcntge)/100:0),0);if(0!==s){a=(e-this.TotalOfFixedAmount)/s;const r=l(a);t&&(t.Value=r),this.calculateAmountOnOrder(i,r,0,n+1)}else console.warn(`Total percentage is zero for agreeOrder=${i}`)}else console.warn("AGREEMENT_VALUE term not found")}if(null!=e&&o(e)&&null!=t&&o(t)){let a=[];if(1===i&&this.IsAutoCalcAgrAmt){const e=c.find(e=>"AGREEMENT_VALUE"===e.FieldType);e&&(t=o(e.Value)?Number(e.Value):t,a=c.filter(t=>t.FieldValPer===e.order))}else a=c.filter(t=>t.FieldValPer===e);for(const e of a){const i=Number(c.find(e=>"AGREEMENT_VALUE"===e.FieldType).Value);if((null===(s=this.ChangeTermOrderArray)||void 0===s?void 0:s.length)>0&&(null===(r=this.ChangeTermOrderArray)||void 0===r?void 0:r.includes(e.order)))e.Value||(e.Value=0);else{let n=0;n=e.AgreeValForCompare>0&&null!=e.AgreeValForCompare?i>e.AgreeValForCompare&&o(e.Prcntge)?Number(t)*Number(e.Prcntge)/100:0:o(e.Prcntge)?Number(t)*Number(e.Prcntge)/100:0,e.Value=l(n)}this.calculateAmountOnOrder(e.order,e.Value,0,n+1)}}else{const t=c.filter(t=>t.FieldValPer===e);for(const e of t)e.Value=0,this.calculateAmountOnOrder(e.order,0,0,n+1)}this.recalculateTotalAmount()}recalculateTotalAmount(){const e=this.sitestrService.singleresult.siteTermsForpayment||[],t=e.filter(e=>"TOTAL_AMOUNT"===e.FieldType);for(const i of t){if(!i.TtlCal){console.warn(`TtlCal missing for TOTAL_AMOUNT order=${i.order}`);continue}const t=i.TtlCal.split(/\+|-/).filter(Boolean).map(Number),n=i.TtlCal.match(/[-+]/g)||[];let s=0;t.forEach((t,i)=>{const r=e.filter(e=>e.order===t&&"TOTAL_AMOUNT"!==e.FieldType&&"OTHER_INCLUDEAGREEMENT"!==e.FieldType&&null!=e.Value&&""!==e.Value).reduce((e,t)=>e+(this.isNumeric(t.Value)?Number(t.Value):0),0);0===i||"+"===n[i-1]?s+=r:"-"===n[i-1]&&(s-=r)}),i.Value=Number(s.toFixed(2)).toString()}}ChangeAgreementValue(e,t){this.IsAutoCalcAgrAmt&&this.sitestrService.singleresult.siteTerms.filter(e=>"AGREEMENT_VALUE"===e.FType).forEach(e=>{var t,i;const n=parseFloat(null===(t=this.sitestrService.singleresult.siteTerms.find(e=>"RATE_FIELD"===e.FType))||void 0===t?void 0:t.Value)||0,s=parseFloat(null===(i=this.sitestrService.singleresult.siteTerms.find(e=>"RERA_AREA_FIELD"===e.FType))||void 0===i?void 0:i.Value)||0;if(n>=0&&s>=0){const t=(n*s).toString();e.Value=t}})}ChangeTotalAmtValue(e,t){t>0&&(this.ChangeTermOrderArray||(this.ChangeTermOrderArray=[]),this.ChangeTermOrderArray.includes(t)||this.ChangeTermOrderArray.push(t));const i=this.sitestrService.singleresult.siteTermsForpayment,n=i.filter(e=>"TOTAL_AMOUNT"===e.FType),s=i.filter(e=>["SUB_TOTAL_1","SUB_TOTAL_2","SUB_TOTAL_3"].includes(e.FType)),r=e=>{const t=e.TtlCal.split(/\+|-/).filter(Boolean),n=e.TtlCal.match(/[-+]/g)||[];let s=0;t.forEach((e,t)=>{const r=i.filter(t=>parseInt(e)===t.order&&"TOTAL_AMOUNT"!==t.FType&&null!==t.Value&&""!==t.Value).reduce((e,t)=>(null!==t.Value&&""!==t.Value&&(e+=parseFloat(t.Value)),e),0);0===t||"+"===n[t-1]?s+=r:"-"===n[t-1]&&(s-=r)}),e.Value=parseFloat(s.toFixed(2)).toString(),this.calculateAmountOnOrder(e.order,s,0)};s.forEach(e=>r(e)),n.length>0&&n.forEach(e=>{const t=e.TtlCal.split(/\+|-/).filter(Boolean),n=e.TtlCal.match(/[-+]/g)||[];let s=0;t.forEach((e,t)=>{const r=i.filter(t=>parseInt(e)===t.order&&"TOTAL_AMOUNT"!==t.FType&&"OTHER_INLUDEAGREEMENT"!==t.FType&&null!==t.Value&&""!==t.Value).reduce((e,t)=>(null!==t.Value&&""!==t.Value&&(e+=parseFloat(t.Value)),e),0);0===t||"+"===n[t-1]?s+=r:"-"===n[t-1]&&(s-=r)}),e.Value=parseFloat(s.toFixed(2)).toString(),this.calculateAmou
1ntOnOrder(e.order,s,0)})}DynamicTermOption(e){this.WantToChangeTrms=e}onEstimatedDateOCR(e,t){if(null!=e.startDate)this.sitestrService.singleresult.siteTermsForLoanOCR[t].CommitmentDate=e.startDate;else{const i=e,n=(new Date).toISOString().split("T")[0]+"T00:00:00",s=new Date(i),r=`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}${n.slice(10)}`;this.sitestrService.singleresult.siteTermsForLoanOCR[t].CommitmentDate=r}this.DateGetFromTerms()}onEstimatedDateOCR_IncAgreement(e,t){this.sitestrService.singleresult.siteTermsForpayment_IncAgreement[t].CommitmentDate=e.startDate}onAgreementdateSelect(e){this.sitestrService.singleresult.AgreementDate=e}onAllotmentdateSelect(e){this.sitestrService.singleresult.AllotmentDate=e;for(let n=0;n<this.sitestrService.singleresult.siteTermsForLoanOCR.length;n++){const e=this.sitestrService.singleresult.siteTermsForLoanOCR[n];if("ALLOTMENT_DATE"==e.PayDateType){var t=moment(this.sitestrService.singleresult.AllotmentDate).format("YYYY MM DD"),i=moment(t).add(e.PayDays,"days").format("YYYY MM DD");e.CommitmentDate=i}}for(let n=0;n<this.sitestrService.singleresult.siteTermsForpayment_IncAgreement.length;n++){const e=this.sitestrService.singleresult.siteTermsForpayment_IncAgreement[n];"ALLOTMENT_DATE"==e.PayDateType&&(t=moment(this.sitestrService.singleresult.AllotmentDate).format("YYYY MM DD"),i=moment(t).add(e.PayDays,"days").format("YYYY MM DD"),e.CommitmentDate=i)}}onSiteDateSelect(e,t){this.sitestrService.singleresult.siteTermsForSite[t].Value=e.startDate}onSubmit(){if(this.form.valid){if(!("sold"!==this.sitestrService.singleresult.BookSts.toLowerCase()&&"onhold"!==this.sitestrService.singleresult.BookSts.toLowerCase()&&"tenent"!==this.sitestrService.singleresult.BookSts.toLowerCase()&&"member"!==this.sitestrService.singleresult.BookSts.toLowerCase()||1!=this.sitestrService.singleresult.IsSalesEntry||null!=this.sitestrService.singleresult.CusLedgerId&&0!=this.sitestrService.singleresult.CusLedgerId))return void this.alertService.showInfo("Info","Please select customer ledger");if(("sold"===this.sitestrService.singleresult.BookSts.toLowerCase()||"onhold"===this.sitestrService.singleresult.BookSts.toLowerCase()||"tenent"===this.sitestrService.singleresult.BookSts.toLowerCase()||"member"===this.sitestrService.singleresult.BookSts.toLowerCase())&&null==this.sitestrService.singleresult.AllotmentDate)return void this.alertService.showInfo("Info","Please Enter Allotment Date");if(0==this.sitestrService.singleresult.siteTermsForLoanOCR.length)return void this.alertService.showError("Alert","Agreement term(s) required");if("unsold"!=this.sitestrService.singleresult.BookSts.toLowerCase()&&(null==this.sitestrService.singleresult.SiteTermName||null==this.sitestrService.singleresult.SiteTermName))return void this.alertService.showInfo("Info","Please choose Site Term from PAYMENT TERMS");this.sitestrService.singleresult.SalBy=null!=this.sitestrService.singleresult&&null!=this.sitestrService.singleresult&&null!=this.userService.singleresult?this.userService.singleresult.UIDN:0;let e=this.sitestrService.singleresult.siteTermsForSite.concat(this.sitestrService.singleresult.siteTermsForpayment.filter(e=>"AGREEMENT_VALUE"==e.FType||"BROKERAGE_AMOUNT"==e.FType||"TOTAL_AMOUNT"==e.FType||"SUB_TOTAL_1"==e.FType||"SUB_TOTAL_2"==e.FType||"SUB_TOTAL_3"==e.FType)).concat(this.sitestrService.singleresult.siteTermsForLoanOCR).concat(this.sitestrService.singleresult.siteTermsForpayment_IncAgreement).concat(this.sitestrService.singleresult.siteTermsForCoowner).concat(this.sitestrService.singleresult.OwnersFields).concat(this.sitestrService.singleresult.ProjectsFields);this.sitestrService.singleresult.siteTerms=e;for(let t=0;t<this.sitestrService.singleresult.siteTerms.length;t++){const e=this.sitestrService.singleresult.siteTerms[t];null==e.Value&&(e.Value="")}this.sitestrService.add(this.sitestrService.singleresult).subscribe(e=>{if(""!=e||null!=e)if("0"==e)this.alertService.showInfo("Error","There is some issue while storing data.");else{const i=Number(this.sitestrService.singleresult.UIDN||this.SiteStructureId)||0;if(window.dispatchEvent(new CustomEvent("work-entity-updated",{detail:{entityType:"SITE_STRUCTURE",entityId:i,sourceInquiryId:this.sitestrService.singleresult.InqI||this.InquiryId||0}})),!this.BookingredirectOnCancel&&(""!=e||null!=e)){var t=window.open(e,"_blank");t.focus(),t.print()}this.cancel()}})}}popupAction(e){this.showCompanyLedgerpopup=!1,null!=e&&("gstCustomer"===this.ledgerPopupTarget?this.sitestrService.singleresult.GSTCustomerLedgerId=e.UIDN:this.sitestrService.singleresult.CusLedgerId=e.UIDN,this.Customers.some(t=>t.UIDN===e.UIDN)||(this.Customers=this.Customers.concat(e)),this.ledSelcted())}ngOnInit(){this.SiteStructureId>0&&(console.log("this.SiteStructureId"+this.SiteStructureId),this.getData(2,this.SiteStructureId)),this.userService.GetAlluserFromBookingAdd(),this.companyledgerservice.isGetSubscribe=!0,this.companyledgerservice.GetAlldatawithsub(!0),this.subscription=this.companyledgerservice.resultObs.subscribe(()=>{this.Customers=this.companyledgerservice.result.filter(e=>0==e.IsGrp),this.CustomerGroupLedger=this.companyledgerservice.result.filter(e=>1==e.IsGrp)})}IsTagViews(e){this.IsTagView=e}AddNewLoanOCRTerm(e){var t,i;if("COMPLETION_DATE"!=(null===(t=this.sitestrService.singleresult.siteTermsForLoanOCR[0])||void 0===t?void 0:t.PayDateType)||null!=this.newLoanO
1crTerms.EDt){{const e=(this.newLoanOcrTerms.Trms||"").trim().toLocaleUpperCase(),t=this.sitestrService.singleresult.siteTermsForLoanOCR||[];if(t.some(t=>(t.Trms||"").trim().toLocaleUpperCase()===e))return void this.alertService.showInfo("Info","You already have "+this.newLoanOcrTerms.Trms+", in your LOAN OCR TERMS list. Please update the record from list instead of adding new.");if(t.some(e=>Number(e.order)===Number(this.newLoanOcrTerms.order)))return void this.alertService.showInfo("Info","You already have order number:"+this.newLoanOcrTerms.order+", in your LOAN OCR TERMS list. Please update the record from list instead of adding new.");null==this.newLoanOcrTerms.Prcntge&&(this.newLoanOcrTerms.Prcntge=0),this.newLoanOcrTerms.SiteMaster_PK_Id=this.sitestrService.singleresult.SI,this.newLoanOcrTerms.FType="AGREEMENT_TERMS",this.newLoanOcrTerms.FieldType="AGREEMENT_TERMS",this.newLoanOcrTerms.SiteTermName="DEFAULT TERM"===this.sitestrService.singleresult.SiteTermName?null:this.sitestrService.singleresult.SiteTermName,this.sitestrService.singleresult.siteTermsForLoanOCR.push(this.newLoanOcrTerms),this.changeLoan(),this.newLoanOcrTerms=new r.j6,this.newLoanOcrTerms.FType="AGREEMENT_TERMS",null===(i=this.formLoanOCR)||void 0===i||i.reset()}this.calculateMaxGridorderAndSet(),this.DateGetFromTerms()}else this.alertService.showInfo("Info","Please select estimation date")}onEstimatedateSelectLoanOCR(e){this.newLoanOcrTerms.EDt=null==e?null:moment(e).format("DD-MM-YYYY")}RemovePaymentTerm(e,t){0==t?this.paymentTerms.splice(e,1):1==t?this.sitestrService.singleresult.siteTermsForLoanOCR.splice(e,1):this.FieldsList.splice(e,1),this.calculateMaxGridorderAndSet()}validateInput(e,t){this.isInputTooLong[t]=e&&e.length>75,e.length>75?(this.Valid=!1,this.alertService.showInfo("Info","Input exceeds 75 characters in Reference")):this.Valid=!0}handleCheckboxChange(){this.alertService.showError("Error","You can't off Add/Edit Terms.")}DeleteStructure(e,t){this.httpfunction.IsMobileview()?this.alertService.showMobileConfirm("Confirm Delete","Are you sure you want to delete this record","No","Delete").then(i=>{null!=i&&1==i.data&&(1==e?this.sitestrService.delete(t).subscribe(e=>{this.siteStrList=this.siteStrList.filter(e=>e.PK_Id!=t)}):this.sitestrService.DeleteBooking(t).subscribe(e=>{this.siteStrList=this.siteStrList.filter(e=>e.PK_Id!=t),this.router.navigate(["/marketing/bookinglist"])}))}):this.alertService.showconfirm("Confirm","Are you sure you want to delete this record",["Yes","No"],null).subscribe(i=>{null!=i&&"Yes"==i.answer&&(1==e?this.sitestrService.delete(t).subscribe(e=>{this.siteStrList=this.siteStrList.filter(e=>e.PK_Id!=t)}):this.sitestrService.DeleteBooking(t).subscribe(e=>{this.siteStrList=this.siteStrList.filter(e=>e.PK_Id!=t),this.router.navigate(["/marketing/bookinglist"])}))})}AssurityFinalizeBooking(){this.httpfunction.IsMobileview()?this.alertService.showMobileConfirm("Confirm Delete","Are you sure you want to finalize this booking? After finalization, you won't be able to edit this booking.","No","Delete").then(e=>{null!=e&&1==e.data&&this.onSubmit()}):this.alertService.showconfirm("Confirm","Are you sure you want to finalize this booking? After finalization, you won't be able to edit this booking.",["Yes","No"],null).subscribe(e=>{null!=e&&"Yes"==e.answer&&this.onSubmit()})}DateGetFromTerms(){for(let i=0;i<this.sitestrService.singleresult.siteTermsForLoanOCR.length;i++){const n=this.sitestrService.singleresult.siteTermsForLoanOCR[i];if(null!=n.CommitmentDate||""!=n.CommitmentDate)if("ALLOTMENT_DATE"==n.PayDateType&&null!=this.sitestrService.singleresult.AllotmentDate){var e=moment(this.sitestrService.singleresult.AllotmentDate).format("YYYY MM DD"),t=moment(e).add(n.PayDays,"days").format("YYYY MM DD");n.CommitmentDate=t}else if("TERM_COMPLETED"!=n.PayDateType&&"ESTIMATION_DATE"!=n.PayDateType||null==n.CommitmentDate)"TERM_COMPLETED"!=n.PayDateType&&"ESTIMATION_DATE"!=n.PayDateType||null==n.EDt||(n.EDt.length<=10?(e=moment(n.EDt,"DD-MM-YYYY").format("YYYY MM DD"),t=moment(e).add(n.PayDays,"days").format("YYYY MM DD"),n.CommitmentDate=t):(e=moment(n.EDt).format("YYYY MM DD"),t=moment(e).add(n.PayDays,"days").format("YYYY MM DD"),n.CommitmentDate=t));else{e=moment(n.CommitmentDate).format("YYYY MM DD"),t=moment(e).add(n.PayDays,"days").format("YYYY MM DD");n.CommitmentDate=t}}}addNewCustomer(e,t="customer"){this.ledgerPopupTarget=t,this.ledgerIdVal=null,e.close(),this.showCompanyLedgerpopup=!0}openLedgerPopup(e,t="customer"){return this.ledgerPopupTarget=t,this.ledgerIdVal=e.toString(),this.showCompanyLedgerpopup=!0,!0}ledSelcted(){var e;this.companyledgerservice.singleresult=null,this.companyledgerservice.result=JSON.parse(this.httpfunction.getStorage("_legData"+this.CompanyId+"_"+this.SignupId+"_"+this.companyledgerservice.GetUserId)),this.companyledgerservice.singleresult=null===(e=this.companyledgerservice.result)||void 0===e?void 0:e.filter(e=>e.UIDN==this.sitestrService.singleresult.CusLedgerId)[0]}toggleCollapse1(){event.preventDefault(),this.activeBookingSection=2,this.isCollapsed1=!this.isCollapsed1}toggleCollapse2(){event.preventDefault(),this.activeBookingSection=3,this.isCollapsed2=!this.isCollapsed2}toggleCollapse3(){event.preventDefault(),this.activeBookingSection=4,this.isCollapsed3=!this.isCollapsed3}toggleCollapse4(){event.preventDefault(),this.activeBookingSection=4,this.isCollapsed4=!this.isCollapsed4}toggleCollapse5(){event.preventDefault(),this.activeBookingSection=4,this.isCollapsed5=!this.isCollapsed5}openBookingSection(e){this.activeBookingSection=e;const t=2===e?"myAccordion1":3===e?"myAccordion2":4===e?"myAccordion3":null,i=2===e?this.isCollapsed1:3===e?this.isCollapsed2:4===e&&this.isCollapsed3,n=t?document.getElementById(t):document.querySelector(".booking-form-area");if(e>1&&i){const e=null==n?void 0:n.querySelector(".custom-button");null==e||e.click()}setTimeout(()=>null==n?void 0:n.scrollIntoView({behavior:"smooth",block:"start"}),100)}calculateMaxGridorderAndSet(){const e=Math.max(...this.sitestrService.singleresult.siteTermsForLoanOCR.map(e=>e.order),0);
1this.newLoanOcrTerms.order=e+1}IsAlredyexistTerm(e,t){const i=null!=t?this.newLoanOcrTerms.Trms:e>=0?this.sitestrService.singleresult.siteTermsForLoanOCR[e].Trms.trim():null;if(null!==i){const n=-1!==this.sitestrService.singleresult.siteTermsForLoanOCR.findIndex((n,s)=>null!=t?n.Trms===i:e>=0&&s!==e&&n.Trms.trim()===i);null!=e&&e>=0?this.sitestrService.singleresult.siteTermsForLoanOCR[e].IsAlreadyExist=n:this.newLoanOcrTerms.IsAlreadyExist=n}}openChannelPartnerPopup(e){return this.ChannelPartnerIdVal="0",e.close(),this.isChannelPartnerpopupopen=!0,this.addurl("masters/ChannelPartner/Add"),this.isList=!1,!0}ChannelPartnerAdded(e){null!=e&&(this.channelPartnerService.GetAlldata(),this.channelPartnerService.result.push(e),this.channelPartnerService.singleresult=e,this.sitestrService.singleresult.CpId=e.UIDN),this.isList=!0,this.resetUrl(),this.isChannelPartnerpopupopen=!1}updateProperty(e,t){this.companyledgerservice.singleresult&&(this.companyledgerservice.singleresult[e]=t)}updateAdharNo(e){this.updateProperty("AdharNo",e)}updateName(e){this.updateProperty("FullNm",e)}updateAddress(e){this.updateProperty("Addr",e)}updateContact(e){this.updateProperty("CNO",e)}openWhatsAppApiBooking(){const e=this.companyledgerservice.singleresult||{},t=this.sitestrService.singleresult||{};this.whatsAppApiSendData={moduleName:"Booking",refId:t.UIDN,mobileNo:e.CNO,customerName:e.LN||t.NameOnAgreement||this.CustomerName,parameters:{customer_name:e.LN||t.NameOnAgreement||this.CustomerName||"",booking_no:t.UIDN?t.UIDN.toString():"",mobile_no:e.CNO||"",agreement_amount:t.AgrAmt?t.AgrAmt.toString():""}},setTimeout(()=>this.whatsAppApiSendPopup.open(),0)}updateEmail(e){this.updateProperty("Eml",e)}updatePAN(e){this.updateProperty("PanNo",e)}resetUrl(){this.isList=!0,this.isList=!0;let e=this.router.url;this.route.params.subscribe(t=>{this.isList||null!=t.id&&""!=t.id&&(e=e.replace("/"+t.id,"")),this.location.go(e)}),this._sgId=0}addurl(e){let t=e,i=this.router.url;i=i.substring(0,i.lastIndexOf("/")+0),i=i.substring(0,i.lastIndexOf("/")+0),this.route.params.subscribe(e=>{null!=e.id&&""!=e.id&&(i=i.replace("/"+e.id,"")),this.location.go(`${i}/${t}`)})}onImageAdd(e){this.sitestrService.singleresult.Imgs=[];for(let t=0;t<e.length;t++){let i=new g.Q;i.name=e[t].name,i.operationType=e[t].operationType,i.src=e[t].src,i.src=e[t].src,i.BuildingMaster_PK_Id=e[t].Booking_Pk_Id,i.ModifiedDate=new Date,i.CreatedDate=new Date,i.CreatedBy=this.sitestrService.userid,i.modifyBy=this.sitestrService.userid,i.CompanyId=this.sitestrService.getCompanyId,i.SignupId=this.sitestrService.getSignupId,i.FileLength=null==e[t].PK_Id?e[t].size:e[t].FileLength,i.PK_Id=e[t].PK_Id,this.sitestrService.singleresult.Imgs.push(i)}}ClearUserData(){this.sitestrService.singleresult.CusLedgerId=null,this.sitestrService.singleresult.AllotmentDate=null,this.sitestrService.singleresult.AgreementDate=null,this.sitestrService.singleresult.CpId=null,this.sitestrService.singleresult.OwnersFields=null,this.sitestrService.singleresult.siteTermsForCoowner=null,this.sitestrService.singleresult.ProjectsFields=null,this.sitestrService.singleresult.TokenAmount=null,this.sitestrService.singleresult.LoanAmount=null,this.sitestrService.singleresult.BankLedger=null,this.sitestrService.singleresult.bkStatus=null,this.sitestrService.singleresult.bkStatusReason=null,this.sitestrService.singleresult.IsSalesEntry=null,this.sitestrService.singleresult.IsFinalBook=null,this.sitestrService.singleresult.BookingWiseIsIntrestOnOutstanding=null,this.sitestrService.singleresult.BookingWiseOutstandingIntrestRate=null}ChangeSiteTerms(){const e="DEFAULT TERM"===this.sitestrService.singleresult.SiteTermName?null:this.sitestrService.singleresult.SiteTermName;this.sitestrService.singleresult.siteTermsForLoanOCR=this.sitestrService.singleresult.siteTerms.filter(t=>"AGREEMENT_TERMS"===t.FType&&"GST_AGREEMENT"!==t.FType&&"TDS_AGREEMENT"!==t.FType&&(null===e?null===t.SiteTermName||"DEFAULT TERM"===t.SiteTermName:t.SiteTermName===this.sitestrService.singleresult.SiteTermName)).sort((e,t)=>parseFloat(e.order)-parseFloat(t.order))}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(d.l),n.Y36(u.P),n.Y36(p.gz),n.Y36(m.Ye),n.Y36(p.F0),n.Y36(l.Q),n.Y36(h.Rq),n.Y36(c.K),n.Y36(f.W))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-sitestructure-add"]],viewQuery:function(e,t){if(1&e&&(n.Gf(N,7),n.Gf(y,7),n.Gf(_,7)),2&e){let e;n.iGM(e=n.CRH())&&(t.formLoanOCR=e.first),n.iGM(e=n.CRH())&&(t.form=e.first),n.iGM(e=n.CRH())&&(t.whatsAppApiSendPopup=e.first)}},inputs:{isMobilePopup:"isMobilePopup",InquiryId:"InquiryId",SiteStructureId:"SiteStructureId",CustomerName:"CustomerName",customerId:"customerId",BookingredirectOnCancel:"BookingredirectOnCancel",CompanyIdforReport:"CompanyIdforReport"},outputs:{BookingredirectAction:"BookingredirectAction"},features:[n._Bn([l.Q,c.K])],decls:89,vars:47,consts:[["rel","stylesheet","href","https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css","integrity","sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm","crossorigin","anonymous"],[1,"n
1opadding","booking-workspace"],[1,"card","p-2","booking-shell"],["class","customsearch",4,"ngIf"],["class","customsearchM",4,"ngIf"],["entityType","SITE_STRUCTURE",3,"entityId","compact",4,"ngIf"],["aria-label","Booking sections",1,"booking-progress"],["type","button",3,"click"],[1,"mt-2","mb-5","booking-form-area"],["name","form","novalidate","",3,"ScrollToInvalid","ngSubmit"],["f","ngForm"],["id","formContainer"],[1,"row"],["class","input-group bg-danger p-2 text-white",4,"ngIf"],[1,"input-group"],[1,"md-form","col-sm-6","col-md-3"],["for","Site"],[1,"ml-1","text-danger","font-weight-bold","h5"],["name","Site","required","","bindLabel","SN","placeholder","Select Site","bindValue","UIDN",3,"virtualScroll","ngClass","items","ngModel","ngModelChange","change"],["Site","ngModel"],["class","invalid-feedback",4,"ngIf"],["for","Status"],["name","BookStatus","placeholder","Select Status","id","BookStatus","required","",3,"ngClass","ngModel","ngModelChange"],["BookStatus","ngModel"],["value",""],["value","UnSold"],["value","OnHold"],["value","Sold"],["value","Tenent"],["value","Member"],["value","Investor"],["for","SalesBy"],["selectOnTab","true","placeholder","Select Sales By","name","SalesBy","bindLabel","FN",3,"virtualScroll","ngClass","items","ngModel","loading","ngModelChange","scrollToEnd"],["SalesBy","ngModel"],["ng-header-tmp",""],[1,"form-group","col-sm-6","col-md-1"],[1,"c-switch","c-switch-pill","c-switch-primary"],["type","checkbox",1,"c-switch-input",3,"checked","change"],["inputEl",""],[1,"c-switch-slider"],[1,"form-group","col-md-*","pl-4","ml-2"],["for","CompanyLogo"],["maxFiles","10","maxSize","2","fileExt","JPG, GIF, PNG, PDF, JPEG, DOC, DOCX",3,"filelist","uploadStatus"],["fileUpload",""],[4,"ngFor","ngForOf"],["class","row",4,"ngIf"],["class","col-sm-12 text-right mt-2","
1id","formbtnContainer",4,"ngIf"],["class","navbar fixed-bottom navbar-expand-sm navbar-dark bg-light mt-2",4,"ngIf"],[3,"isMobilePopup","inputLedgerId","CompanyIdforReport","redirectOnCancel","redirectAction",4,"ngIf"],[3,"isMobilePopup","redirectOnCancelonChannelist","CompanyIdforReport","InputChannelPartnerId","redirectActiononChannelist",4,"ngIf"],[3,"moduleName","refId","mobileNo","customerName","defaultParameters"],["whatsAppApiSendPopup",""],[1,"customsearch"],[1,"c-header-nav"],[1,"mx-2","mb-3"],[1,"c-header-back",3,"click"],[1,"c-icon","c-icon-lg","cil-arrow-left"],[1,"text-center","mb-3","LeftLi"],[1,"customsearchM"],[1,"mr-1","mb-2","ml-2"],["name","chevron-back",3,"click"],[1,"mb-3","mt-1","LeftLi","text-center"],[1,"text-center","mb-2","float-right"],[1,"btn","btn-link",3,"click"],["entityType","SITE_STRUCTURE",3,"entityId","compact"],[1,"input-group","bg-danger","p-2","text-white"],[1,"md-form","col-md-12","col-sm-12","text-center","font-weight-bold"],[1,"invalid-feedback"],[4,"ngIf"],[1,"form-text","text-muted"],[3,"src","alt"],["id","accordion","class","md-form col-sm-12 col-md-12","id","myAccordion1",4,"ngIf"],["id","accordion","id","myAccordion2",1,"md-form","col-sm-12","col-md-12"],[1,"card","m-0"],["id","heading2",1,"card-header","text-white","bg-primary","pt-1","pb-1"],[1,"mb-0"],["data-toggle","collapse","data-target","#collapse2",1,"btn","btn-link","custom-button",3,"click"],[1,"white-text","text-left"],[1,"white-text","font-weight-bold",2,"font-size","20px"],["id","collapse2","aria-labelledby","heading2","data-parent","#myAccordion2",1,"collapse"],[1,"row","p-2"],["id","accordion","class","md-form col-sm-12 col-md-12 mb-2",4,"ngIf"],["class","md-form col-sm-6 col-md-3",4,"ngFor","ngForOf"],["id","accordion","id","myAccordion3",1,"md-form","col-sm-12","col-md-12"],["id","heading3",1,"card-header","text-white","bg-primary","pt-1","pb-1"],["data-toggle","collapse","data-target","#collapse3",1,"btn","btn-link","custom-button",3,"click"],["id","collapse3","aria-labelledby","heading3","data-parent","#myAccordion3",1,"collapse"],["id","accordion","class","md-form col-sm-12 col-md-12","id","myAccordion4",4,"ngIf"],["id","accordion","class","md-form col-sm-12 col-md-12","id","myAccordion5",4,"ngIf"],["id","accordion","id","myAccordion1",1,"md-form","col-sm-12","col-md-12"],["id","heading1",1,"card-header","text-white","bg-primary","pt-1","pb-1"],["data-toggle","collapse","data-target","#collapse1",1,"btn","btn-link","custom-button",3,"click"],["id","collapse1","aria-labelledby","heading1","data-parent","#myAccordion1",1,"collapse"],["for","custledgename"],["class","small text-primary ml-2",4,"ngIf"],["selectOnTab","true","id","custledgename","name","custledgename","bindLabel","LN","bindValue","UIDN","placeholder","Customer Ledger",3,"items","ngModel","loading","ngClass","required","ngModelChange","change"],["custledgename","ngModel","customerSelect",""],["class","md-form col-sm-6 col-md-3",4,"ngIf"],["for","AltDate"],["type","text","required","","appDatepicker","","autocomplete","off","name","AltDate","id","AltDate",1,"form-control",3,"ngClass","startDate","shortKey","selected"],["AltDate",""],["for","AgrDate"],["type","text","required","","appDatepicker","","name","AgrDate","id","AgrDate",1,"form-control",3,"ngClass","startDate","selected"],["AgrDate",""],["for","txtref"],["name","CPart","id","CPart","bindLabel","CP","bindValue","UIDN","placeholder","Select Channel Partner",3,"virtualScroll","items","ngClass","ngModel","loading","scrollToEnd","ngModelChange"],["CPart","ngModel","Chnprt",""],["id","accordion","class","md-form col-sm-12 col-md-12","id","myAccordion",4,"ngIf"],["id","accordion","class","md-form col-sm-12 col-md-12",4,"ngIf"],["for","txtTokenAmount"],["type","text","name","txtTokenAmount","placeholder","Please enter Token/DownPayment Amount","id","txtTokenAmount",1,"form-control",3,"ngModel","ngModelChange"],["txtTokenAmount","ngModel"],["for","txtloanAmount"],["type","text","name","txtloanAmount","placeholder","Please Enter Loan Amount","id","txtloanAmount",1,"form-control",3,"ngModel","ngModelChange","change"],["txtloanAmount","ngModel"],["for","Bankdetail"],["selectOnTab","true","name","Bankdetail","bindLabel","BN","bindValue","UIDN","placeholder","Select Bank",3,"items","ngModel","ngModelChange"],["Bankdetail",""],["for","bkStatus"],["name","bkStatus","id","bkStatus","placeholder","Select Booking Progress Status",3,"ngModel","ngModelChange"],["bkStatus","ngModel"],["value","Registration Done"],["value","Booking Finalized"],["value","Allotted"],["value","Postpone"],["value","In Progress"],["value","Loan Issue"],["value","Booking Cancelled"],["class","md-form col-md-3 col-sm-6",4,"ngIf"],[1,"md-form","col-sm-6","col-md-2"],["for","txtIsSales"],[1,"c-switch","c-switch-pill","c-switch-primary","mb-2"],["type","checkbox","id","customSwitch1",1,"c-switch-input",3,"checked","change"],["for","IsFinalBook"],["type","checkbox","id","IsFinalBook",1,"c-switch-input",3,"checked","change"],["for","OutIntrest"],["type","checkbox","id","OutIntrest",1,"c-switch-input",3,"checked","disabled","change"],["class","mt-4",4,"ngIf"],[1,"small","text-primary","ml-2"],["href","javascript:void(0);",1,"addLeg",3,"click"],["ng-label-tmp",""],["ng-option-tmp",""],["href","javascript:void(0)","title","Edit","accesslevel","Edit","mname","Led","placement","bottom",1,"pl-1",2,"text-decoration","none",3,"appRole","SignupId","UserId","click"],[1,"fas","fa-pen","text-primary"],["for","GSTCustomerLedgerId"],[1,"text-muted"],["selectOnTab","true","id","GSTCustomerLedgerId","name","GSTCustomerLedgerId","bindLabel","LN","bindValue","UIDN","placeholder","Use main customer account",3,"items","ngModel","loading","clearable","ngModelChange"],["GSTCustomerLedger","ngModel","GSTCustomerSelect",""],["href","javascript:void(0)","title","Edit Ledger","accesslevel","Edit","mname","Led","placement","bottom",1,"pl-1",2,"text-decoration","none",3,"appRole","SignupId","UserId","click"],["id","accordion","id","myAccordion",1,"md-form","col-sm-12","col-md-12"],["id","CusLedheading1",1,"card-header","pt-1","pb-1"],["data-toggle","collapse","data-target","#Cuscollapse1","aria-expanded","true","aria-controls","Cuscollapse1","onclick","event.preventDefault();",1,"btn","btn-link"],["id","Cuscollapse1","aria-labelledby","CusLedheading1","data-
1parent","#myAccordion",1,"collapse"],[1,"card-body"],["for","Aadhar"],["type","text","readonly","true","name","Aadhar","placeholder","Please enter Customer Name","value","Aadhar","id","Aadhar",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["Aadhar","ngModel"],["for","txtNameOnAgr"],["type","text","readonly","true","name","txtNameOnAgr","placeholder","Please enter Customer Name","value","txtNameOnAgr","id","txtNameOnAgr",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["txtNameOnAgr","ngModel"],["for","Addr"],["type","text","readonly","true","name","Addr","placeholder","Please enter Full Address","value","Addr","id","Addr",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["Addr","ngModel"],["for","CNO"],["type","text","readonly","true","name","CNO","placeholder","Please enter Contact No","value","CNO","id","CNO",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["CNO","ngModel"],["for","Eml"],["type","text","readonly","true","name","Eml","placeholder","Please enter Email","value","","id","Eml",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["Eml","ngModel"],["for","PanNo"],["type","text","readonly","true","name","PanNo","placeholder","Please enter PAN","value","","id","PanNo",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["PanNo","ngModel"],["id","accordion",1,"md-form","col-sm-12","col-md-12"],["id","headingOwners",1,"card-header","pt-1","pb-1"],["data-toggle","collapse","data-target","#Ownerscollaps","aria-expanded","true","aria-controls","Ownerscollaps","onclick","event.preventDefault();",1,"btn","btn-link"],["id","Ownerscollaps","aria-labelledby","headingOwners","data-parent","#Ownerscollaps",1,"collapse"],["class","col-sm-6 col-md-3",4,"ngFor","ngForOf"],[1,"col-sm-6","col-md-3"],[3,"for"],["type","text",1,"form-control",3,"placeholder","ngModel","name","id","ngModelChange"],["termsvaluesownr","ngModel"],["bindLabel","$this","bindValue","$this",3,"name","id","items","ngClass","placeholder","ngModel","ngModelChange",4,"ngIf"],["bindLabel","$this","bindValue","$this",3,"name","id","items","ngClass","placeholder","ngModel","ngModelChange"],["termsValuesOwnsdrp","ngModel"],["id","headingOwner",1,"card-header","pt-1","pb-1"],["data-toggle","collapse","data-target","#Ownercollapse2","aria-expanded","true","aria-controls","Ownercollapse2","onclick","event.preventDefault();",1,"btn","btn-link"],["id","Ownercollapse2","aria-labelledby","headingOwner","data-parent","#Ownercollapse2",1,"collapse"],[1,"md-form"],["termsValues","ngModel"],[1,"md-form","col-md-3","col-sm-6"],["for","bkStatusReason"],["autofocus","","name","bkStatusReason","id","bkStatusReason","placeholder","Enter Remarks",1,"md-textarea","form-control",3,"ngClass","ngModel","ngModelChange"],["bkStatusReason","ngModel"],[1,"mt-4"],["for","BookingWiseOutstandingIntrestRate",1,"text-primary"],["type","text","name","BookingWiseOutstandingIntrestRate","placeholder","Please Enter IntestRate","id","BookingWiseOutstandingIntrestRate",1,"form-control",3,"ngModel","ngModelChange"],["BookingWiseOutstandingIntrestRate","ngModel"],["id","accordion",1,"md-form","col-sm-12","col-md-12","mb-2"],["id","headingProject",1,"card-header","pt-1","pb-1"],["data-toggle","collapse","data-target","#Projectscollaps","aria-expanded","true","aria-controls","Projectscollaps","onclick","event.preventDefault();",1,"btn","btn-link"],["id","Projectscollaps","aria-labelledby","headingProject","data-parent","#Projectscollaps",1,"collapse"],["termsvaluesown","ngModel"],["termsValuesOwns","ngModel"],["class","small text-primary",4,"ngIf"],["class","ml-1 text-danger small font-weight-bold h6","style","font-size: 14px;",4,"ngIf"],["type","text","class","form-control",3,"placeholder","ngModel","name","id","ngModelChange","keyup",4,"ngIf"],["class","ml-1 text-danger font-weight-bold h6","style","font-size: 14px;",4,"ngIf"],["type","text","class","form-control","appDatepicker","","autocomplete","off",3,"placeholder","name","id","startDate","selectedindex",4,"ngIf"],[1,"small","text-primary"],[1,"ml-1","text-danger","small","font-weight-bold","h6",2,"font-size","14px"],["type","text",1,"form-control",3,"placeholder","ngModel","name","id","ngModelChange","keyup"],[1,"ml-1","text-danger","font-weight-bold","h6",2,"font-size","14px"],["termsValuesSitFie","ngModel"],["type","text","appDatepicker","","autocomplete","off",1,"form-control",3,"placeholder","name","id","startDate","selectedindex"],["termsValues",""],["type","text","class","form-control",3,"placeholder","ngModel","name","id","keyup","ngModelChange","change",4,"ngIf"],["type","number","class","form-control",3,"placeholder","ngModel","name","id","keyup","ngModelChange","change",4,"ngIf"],["style","font-size: 8px;","class","text-danger font-weight-bold",4,"ngIf"],["type","number","class","form-control",3,"disabled","placeholder","ngModel","name","id","keyup","ngModelChange","change",4,"ngIf"],["type","number","class","form-control",3,"disabled","placeholder","ngModel","name","id","ngClass","required","keyup","ngModelChange","change",4,"ngIf"],["type","text",1,"form-control",3,"placeholder","ngModel","name","id","keyup","ngModelChange","change"],["PaytermsValues{{i}}","ngModel"],["type","number",1,"form-control",3,"placeholder","ngModel","name","id","keyup","ngModelChange","change"],[1,"text-danger","font-weight-bold",2,"font-size","8px"],["type","number",1,"form-control",3,"disabled","placeholder","ngModel","name","id","keyup","ngModelChange","change"],["type","number",1,"form-control",3,"disabled","placeholder","ngModel","name","id","ngClass","required","keyup","ngModelChange","change"],["id","accordion","id","myAccordion4",1,"md-form","col-sm-12","col-md-12"],["id","heading4",1,"card-header","text-white","bg-primary","pt-1","pb-1"],["data-toggle","collapse","data-target","#collapse4",1,"btn","btn-link","custom-button",3,"click"],["id","collapse4","aria-labelledby","heading4","data-parent","#myAccordion4",1,"collapse"],["class","col-sm-12 col-md-12 table-responsive",4,"ngIf"],[1,"col-sm-12","col-md-12","table-responsive"],[1,"table-sm","table","table-striped","col-sm-12","col-md-12",2,"margin-bottom","40px"],[1,"grey","lighten-1","text-black","font-weight-bold"],["type","text","placeholder","Enter Total amount",1,"form-control",3,"disabled","ngModel","name","id","ngModelChange"],["termsValues_Agr","ngModel"],["type","text","appDatepicker","","required","",1,"form-control",3,"startDate","name","id","selectedindex"],["CompDate_Agr",""],["id","accordion","id","myAccordion5",1,"md-form","col-sm-12","col-md-12"],["id","heading5",1,"card-header","text-white","bg-primary","pt-1","pb-1"],["data-toggle","collapse","data-target","#collapse5",1,"btn","btn-link","custom-button",3,"click"],["id","collapse5","aria-labelledby","heading5","data-
1parent","#myAccordion5",1,"collapse"],["id","accordion",1,"mt-4","md-form","col-sm-12","col-md-12"],["id","headingDyTerms",1,"card-header","pt-1","pb-1"],["data-toggle","collapse","data-target","#DyTerms","aria-expanded","true","aria-controls","DyTerms","onclick","event.preventDefault();",1,"btn","btn-link"],["id","DyTerms","aria-labelledby","headingDyTerms","data-parent","#DyTerms",1,"collapse"],["class","form-group col",4,"ngIf"],["name","formLoanOCR","novalidate","",3,"ngSubmit",4,"ngIf"],["class","table-responsive m-2",4,"ngIf"],[1,"md-form","col-md-2","col-sm-3"],["for","stTrm",1,"mr-2"],["appendTo","body","name","stTrm","placeholder","Select Site Term",3,"ngClass","ngModel","disabled","ngModelChange","change"],["stTrm","ngModel"],[3,"value",4,"ngFor","ngForOf"],["class","mt-3 col-sm-12 col-md-12 table-responsive",4,"ngIf"],[1,"form-group","col"],["for","IsDynBookTrm"],["class","ml-1 text-danger font-weight-bold h5",4,"ngIf"],["type","checkbox","id","IsDynBookTrm",1,"c-switch-input",3,"checked","disabled","change"],["name","formLoanOCR","novalidate","",3,"ngSubmit"],["Termform","ngForm"],[1,"md-form","col-md-2","col-sm-6"],["for","orforsite1",1,"mr-2"],["type","number","placeholder","Enter Order","name","orforsite1","id","orforsite1","disabled","",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["orforsite1","ngModel"],["for","termsfrsite1",1,"mr-2"],["type","text","placeholder","Enter Terms","name","termsforsite1","id","termsfrsite1",1,"form-control",3,"ngClass","ngModel","ngModelChange","change"],["termsforsite1","ngModel"],["for","perGST1",1,"mr-2"],["type","number","placeholder","Enter Percentage","required","","name","perGST1","id","perGST1",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["perGST1","ngModel"],["for","payDateType1",1,"mr-2"],["name","payDateType1","required","","placeholder","Payment Date Type",3,"ngClass","ngModel","ngModelChange"],["payDateType1","ngModel"],["value","ALLOTMENT_DATE"],["value","ESTIMATION_DATE"],["value","TERM_COMPLETED"],["class","md-form col-md-2 col-sm-3",4,"ngIf"],["for","PayDays1",1,"mr-2"],["type","number","placeholder","Enter Days","required","","name","PayDays1","id","PayDays1",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["PayDays1","ngModel"],["for","orref1",1,"mr-2"],["type","text","placeholder","Enter Reference Name","required","","name","orref1","id","orref1",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["orref1","ngModel"],["for","Tokenfr1site",1,"mr-2"],["type","text","placeholder","Enter Token","name","Tokenfr1site","id","Tokenfr1site","required","",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["Tokenfr1site","ngModel"],["type","submit",1,"btn","btn-primary","mt-4"],["for","Estdate1",1,"mr-2"],["type","text","placeholder","Select Estimated Date","aria-colspan","form-control","required","","appDatepicker","","autocomplete","off","autocomplete","none","name","EDt","id","Estdate1",1,"form-control",3,"ngClass","ngModel","startDate","selected","ngModelChange"],["EDt","ngModel"],[1,"table-responsive","m-2"],[1,"table","table-bordered"],["colspan","12"],[2,"min-width","50px"],[2,"min-width","250px"],[2,"min-width","75px"],[2,"min-width","130px"],["type","number","name","txtOrder","id","txtOrder",1,"form-control",3,"ngModel","name","ngModelChange"],["txtOrder",""],["type","text",1,"form-control","minWidth",3,"ngClass","ngModel","name","id","ngModelChange","change"],["pterms","ngModel"],["type","number",1,"form-control",3,"ngModel","name","id","ngModelChange","change"],["txtperc11",""],["placeholder","Payment Date Type",3,"name","ngModel","ngModelChange"],["PDateType11","ngModel"],["class","md-form",4,"ngIf"],["type","number",1,"form-control",3,"ngModel","name","id","change","ngModelChange"],["txtPayDays11",""],["type","text",1,"form-control",3,"ngModel","name","id","input","ngModelChange"],["txtRef11",""],["class","text-danger font-weight-bold",4,"ngIf"],["type","text",1,"form-control",3,"ngModel","name","id","ngModelChange"],["txtRef12",""],["href","javascript:void(0)",3,"click"],["autocomplete","off","autofocus","","type","text","appDatepicker","","required","","placeholder","Select Date",1,"form-control","datec
1ontrol",3,"ngClass","startDate","name","id","selected"],["Estimateddate11",""],[1,"text-danger","font-weight-bold"],[3,"value"],[1,"mt-3","col-sm-12","col-md-12","table-responsive"],[1,"table-sm","table","table-bordered","table-striped","col-sm-12","col-md-12",2,"margin-bottom","40px"],["type","text","placeholder","Enter Total amount",1,"form-control",3,"readonly","ngModel","name","id","ngModelChange"],["termsValues_OCR","ngModel"],["type","text","placeholder","Enter TDS","class","form-control",3,"readonly","ngModel","name","id","ngModelChange",4,"ngIf"],["type","text","placeholder","Enter OCR","class","form-control",3,"readonly","ngModel","name","id","ngModelChange",4,"ngIf"],["type","text","placeholder","Enter Loan Amount","class","form-control",3,"readonly","ngModel","name","id","ngModelChange",4,"ngIf"],["type","text","appDatepicker","","required","","name","term_115{i}}","id","term_115{i}}",1,"form-control",3,"startDate","selectedindex"],["CompDate_OCR",""],["type","text","placeholder","Enter TDS",1,"form-control",3,"readonly","ngModel","name","id","ngModelChange"],["type","text","placeholder","Enter OCR",1,"form-control",3,"readonly","ngModel","name","id","ngModelChange"],["type","text","placeholder","Enter Loan Amount",1,"form-control",3,"readonly","ngModel","name","id","ngModelChange"],["termsValues_Loan","ngModel"],["id","formbtnContainer",1,"col-sm-12","text-right","mt-2"],["href","javascript:void(0)","class","btn btn-danger mr-1",3,"click",4,"ngIf"],["type","button","class","btn btn-success mr-1",3,"click",4,"ngIf"],["type","submit",1,"btn","btn-primary","mr-1",3,"hidden"],["href","javascript:void(0)",1,"btn","btn-dark",3,"click"],["href","javascript:void(0)",1,"btn","btn-danger","mr-1",3,"click"],["type","button",1,"btn","btn-success","mr-1",3,"click"],[1,"navbar","fixed-bottom","navbar-expand-sm","navbar-dark","bg-light","mt-2"],[1,"navbar-nav","ml-auto","d-flex","flex-row-reverse","bd-highlight"],[1,"nav-item","active"],["type","submit",1,"btn","btn-primary"],[1,"nav-item","active","mr-2"],[3,"isMobilePopup","inputLedgerId","CompanyIdforReport","redirectOnCancel","redirectAction"],[3,"isMobilePopup","redirectOnCancelonChannelist","CompanyIdforReport","InputChannelPartnerId","redirectActiononChannelist"]],template:function(e,t){if(1&e){const e=n.EpF();n._UZ(0,"link",0),n.TgZ(1,"div",1),n.TgZ(2,"div",2),n.YNc(3,w,10,1,"div",3),n.YNc(4,O,12,0,"div",4),n.YNc(5,D,1,2,"erp-work-panel",5),n.TgZ(6,"div",6),n.TgZ(7,"button",7),n.NdJ("click",function(){return t.openBookingSection(1)}),n.TgZ(8,"b"),n._uU(9,"1"),n.qZA(),n._uU(10," Booking"),n.qZA(),n.TgZ(11,"button",7),n.NdJ("click",function(){return t.openBookingSection(2)}),n.TgZ(12,"b"),n._uU(13,"2"),n.qZA(),n._uU(14," Customer"),n.qZA(),n.TgZ(15,"button",7),n.NdJ("click",function(){return t.openBookingSection(3)}),n.TgZ(16,"b"),n._uU(17,"3"),n.qZA(),n._uU(18," Unit"),n.qZA(),n.TgZ(19,"button",7),n.NdJ("click",function(){return t.openBookingSection(4)}),n.TgZ(20,"b"),n._uU(21,"4"),n.qZA(),n._uU(22," Payment"),n.qZA(),n.qZA(),n.TgZ(23,"div",8),n.TgZ(24,"form",9,10),n.NdJ("ngSubmit",function(){n.CHM(e);const i=n.MAs(25);return t.sitestrService.singleresult.IsFinalBook?i.form.valid&&t.AssurityFinalizeBooking():i.form.valid&&t.onSubmit()}),n.ynx(26,11),n.TgZ(27,"div",12),n.YNc(28,E,3,0,"div",13),n.TgZ(29,"div",14),n.TgZ(30,"div",15),n.TgZ(31,"label",16),n._uU(32,"Site"),n.TgZ(33,"span",17),n._uU(34,"*"),n.qZA(),n.qZA(),n.TgZ(35,"ng-select",18,19),n.NdJ("ngModelChange",function(e){return t.sitestrService.singleresult.SI=e})("change",function(e){return t.sitestrService.singleresult.SI>0&&t.SiteChange(e)}),n.qZA(),n.YNc(37,U,2,1,"div",20),n.qZA(),n.TgZ(38,"div",15),n.TgZ(39,"label",21),n._uU(40,"Status"),n.TgZ(41,"span",17),n._uU(42,"*"),n.qZA(),n.qZA(),n.TgZ(43,"ng-select",22,23),n.NdJ("ngModelChange",function(e){return t.sitestrService.singleresult.BookSts=e}),n.TgZ(45,"ng-option",24),n._uU(46,"Select Booking Status"),n.qZA(),n.TgZ(47,"ng-option",25),n._uU(48,"UnSold"),n.qZA(),n.TgZ(49,"ng-option",26),n._uU(50,"OnHold"),n.qZA(),n.TgZ(51,"ng-option",27),n._uU(52,"Sold"),n.qZA(),n.TgZ(53,"ng-option",28),n._uU(54,"Tenent"),n.qZA(),n.TgZ(55,"ng-option",29),n._uU(56,"Member"),n.qZA(),n.TgZ(57,"ng-option",30),n._uU(58,"Investor"),n.qZA(),n.qZA(),n.YNc(59,J,2,1,"div",20),n.qZA(),n.TgZ(60,"div",15),n.TgZ(61,"label",31),n._uU(62,"Sales By"),n.qZA(),n.TgZ(63,"ng-select",32,33),n.NdJ("ngModelChange",function(e){return t.userService.singleresult=e})("scrollToEnd",function(){return t.userService.ScrollDown()}),n.YNc(65,F,2,2,"ng-template",34),n.qZA(),n.YNc(66,R,2,1,"div",20),n.qZA(),n.TgZ(67,"div",35),n.TgZ(68,"strong",21),n._uU(69,"Is TagView"),n.qZA(),n.TgZ(70,"div"),n.TgZ(71,"label",36),n.TgZ(72,"input",37,38),n.NdJ("
1change",function(){n.CHM(e);const i=n.MAs(73);return t.IsTagViews(i.checked)}),n.qZA(),n._UZ(74,"span",39),n.qZA(),n.qZA(),n.qZA(),n.TgZ(75,"div",40),n.TgZ(76,"label",41),n._uU(77,"Image"),n.qZA(),n.TgZ(78,"div",14),n.TgZ(79,"app-file-upload",42,43),n.NdJ("uploadStatus",function(e){return t.onImageAdd(e)}),n.YNc(81,Q,2,2,"ng-container",44),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.YNc(82,wt,32,16,"div",45),n.BQk(),n.YNc(83,Et,8,6,"div",46),n.YNc(84,Lt,8,0,"nav",47),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.YNc(85,Ut,1,4,"app-companyledger-addedit",48),n.YNc(86,Pt,1,4,"app-channel-partner",49),n._UZ(87,"app-whatsapp-api-send-popup",50,51)}if(2&e){const e=n.MAs(25),i=n.MAs(36),s=n.MAs(44),r=n.MAs(64);n.xp6(1),n.Udp("display",t.showCompanyLedgerpopup||t.isChannelPartnerpopupopen?"none":"block"),n.xp6(2),n.Q6J("ngIf",!t.sitestrService.isMobile),n.xp6(1),n.Q6J("ngIf",t.sitestrService.isMobile),n.xp6(1),n.Q6J("ngIf",(null==t.sitestrService.singleresult?null:t.sitestrService.singleresult.UIDN)>0),n.xp6(2),n.ekj("active",1===t.activeBookingSection),n.xp6(4),n.ekj("active",2===t.activeBookingSection),n.xp6(4),n.ekj("active",3===t.activeBookingSection),n.xp6(4),n.ekj("active",4===t.activeBookingSection),n.xp6(9),n.Q6J("ngIf",t.IsFinalBooking),n.xp6(7),n.Q6J("virtualScroll",!0)("ngClass",n.VKq(41,fe,e.submitted&&i.invalid))("items",t.siteservice.result)("ngModel",t.sitestrService.singleresult.SI),n.xp6(2),n.Q6J("ngIf",e.submitted&&i.invalid),n.xp6(6),n.Q6J("ngClass",n.VKq(43,fe,e.submitted&&s.invalid))("ngModel",t.sitestrService.singleresult.BookSts),n.xp6(16),n.Q6J("ngIf",e.submitted&&s.invalid),n.xp6(4),n.Q6J("virtualScroll",!0)("ngClass",n.VKq(45,fe,e.submitted&&r.invalid))("items",t.userService.result)("ngModel",t.userService.singleresult)("loading",t.userService.loading),n.xp6(3),n.Q6J("ngIf",e.submitted&&r.invalid),n.xp6(6),n.Q6J("checked",1==t.IsTagView),n.xp6(7),n.Q6J("filelist",t.files),n.xp6(2),n.Q6J("ngForOf",t.files),n.xp6(1),n.Q6J("ngIf",null!=t.sitestrService.singleresult.SI),n.xp6(1),n.Q6J("ngIf",!t.sitestrService.isMobile),n.xp6(1),n.Q6J("ngIf",t.sitestrService.isMobile),n.xp6(1),n.Q6J("ngIf",t.showCompanyLedgerpopup),n.xp6(1),n.Q6J("ngIf",t.isChannelPartnerpopupopen),n.xp6(1),n.Q6J("moduleName",t.whatsAppApiSendData.moduleName)("refId",t.whatsAppApiSendData.refId)("mobileNo",t.whatsAppApiSendData.mobileNo)("customerName",t.whatsAppApiSendData.customerName)("defaultParameters",t.whatsAppApiSendData.parameters)}},directives:[m.O5,T._Y,T.JL,T.F,Z.u,A.w9,T.Q7,m.mk,T.JJ,T.On,v.x,A.xv,A.A3,b.Y,m.sg,S.N,C.gu,x.X,k.q,T.Fj,A.bb,A.Z2,I.g,T.wV,M.k,q.p],pipes:[m.i8,m.JJ],styles:[".white-text[_ngcontent-%COMP%]{color:#fff;font-weight:bold}.custom-button[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left}.custom-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{flex:1;text-align:right}.highlight-border[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{border:1px solid red!important}.booking-workspace[_ngcontent-%COMP%]{--booking-blue: #087ff5;--booking-ink: #172b4d;--booking-muted: #6b7b93;--booking-border: #e4eaf2;background:#f4f7fb}.booking-shell[_ngcontent-%COMP%]{border:0;border-radius:16px;background:transparent;box-shadow:none}.booking-workspace[_ngcontent-%COMP%] .customsearch[_ngcontent-%COMP%], .booking-workspace[_ngcontent-%COMP%] .customsearchM[_ngcontent-%COMP%]{padding:10px 12px;border:1px solid var(--booking-border);border-radius:14px;background:#fff;box-shadow:0 8px 24px #21344f0f}.booking-workspace[_ngcontent-%COMP%] .customsearch[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;color:var(--booking-ink);font-size:18px}.booking-workspace[_ngcontent-%COMP%] .customsearch[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{display:block;color:var(--booking-muted);font-size:11px}.booking-progress[_ngcontent-%COMP%]{display:flex;grid-gap:8px;gap:8px;margin:12px 2px 14px;padding:10px 12px;overflow-x:auto;border:1px solid var(--booking-border);border-radius:13px;background:#fff}.booking-progress[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;grid-gap:7px;gap:7px;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content;padding:7px 13px;border:0;border-radius:999px;color:var(--booking-muted);background:#f4f7fb;font-size:12px;font-weight:600;cursor:pointer;transition:color .2s ease,background .2s ease,transform .2s ease}.booking-progress[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:50%;background:#dfe7f2}.booking-progress[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#fff;background:linear-gradient(135deg,#087ff5,#3157d5)}.booking-progress[_ngcontent-%COMP%] .active[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:#1766cf;background:#fff}.booking-progress[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#1766cf;background:#e7f1ff;transform:translateY(-1px)}.booking-progress[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 0 3px #087ff526}.booking-form-area[_ngcontent-%COMP%] > form[_ngcontent-%COMP%] > .row[_ngcontent-%COMP%], .booking-workspace[_ngcontent-%COMP%] #myAccordion1[_ngcontent-%COMP%], .booking-workspace[_ngcontent-%COMP%] #myAccordion2[_ngcontent-%COMP%], .booking-workspace[_ngcontent-%COMP%] #myAccordion3[_ngcontent-%COMP%], .booking-workspace[_ngcontent-%COMP%] #myAccordion4[_ngcontent-%COMP%]{margin-bottom:14px}.booking-workspace[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{border:1px solid var(--booking-border);border-radius:14px;background:#fff;box-shadow:0 8px 24px #21344f0e}.booking-workspace[_ngcontent-%COMP%] .card-header.bg-primary[_ngcontent-%COMP%]{border:0;border-radius:13px 13px 0 0;background:linear-gradient(135deg,#087ff5,#2868df)!important}.booking-workspace[_ngcontent-%COMP%] .custom-button[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;align-items:center}.booking-workspace[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#506078;font-size:12px;font-weight:600}.booking-workspace[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], .booking-workspace[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%]{border-radius:8px}.booking-workspace[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{border:0;border-radius:9px;box-shadow:0 6px 14px #087ff538}.booking-workspace[_ngcontent-%COMP%] .btn-dark[_ngcontent-%COMP%]{border-radius:9px}@media (max-width: 767px){.booking-shell[_ngcontent-%COMP%]{padding:4px!important}.booking-progress[_ngcontent-%COMP%]{margin-top:8px}.booking-workspace[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{border-radius:12px}}"]}),e})()},60181:function(e,t,i){i.d(t,{d:function(){return Rn}});var n=i(64762),s=i(33018),r=i(14254),o=i(3306),l=i(40411),a=i(82316),c=i(32364),g=i(27541),d=i(24498),u=i(41895),p=i(78980),m=i(89525),h=i(92859),f=i(39302),T=i(89401),Z=i(12868),A=i(39478),v=i(49900),b=i(38583),S=i(66537),C=i(43647),x=i(3679),k=i(6642),I=i(
158679),M=i(66496),q=i(85895),N=i(10743),y=i(87520),_=i(21974),w=i(37919),O=i(48429),D=i(91113),E=i(25575),L=i(62411),U=i(66203),P=i(85121),J=i(61362);class F extends J.X{constructor(){super(...arguments),this.IsDoccharge=!1,this.Ismainchrge=!1,this.Isothchar=!1,this.agrval=0,this.FltCst=0,this.agrledId=null,this.GSTLedId=null,this.StmpLedId=null,this.docledId=null,this.MaintledId=null,this.Othval=0,this.OthLedId=null,this.BankId=null,this.BankName="",this.LoanAmt=0,this.p_Terms=[],this.BkNoc="",this.AgreementLetter="",this.AllotmentLetter="",this.RegNo="",this.TtlAmt=0,this.ISFAgree=!1,this.IsDueDt=!1,this.IsSJ=!0,this.rcvAmt=0,this.DemandLetter="",this.OtherGSTLedId=null,this.carParkingLedId=null,this.buildingProtectionLedId=null,this.addCoOwner=!1}}class B{constructor(){this.OCRsplit=!1,this.spitOfIndex=-1,this.PaytpId=""}}var R=i(13795),Q=i(91841),G=i(86845);let Y=(()=>{class e extends R.a{constructor(e,t,i,n){super(e,t,i,n),this._config=t}GetAlldata(){super.GetAlldata(c.IH.BookingForm_GetAll)}getById(e){return super.getById(e,c.IH.BookingForm_GetById)}Update(e){return super.edit(e,c.IH.BookingForm_Update)}GenerateDemand(e,t,i,n){return super.getById(e+"/"+t+"/"+i+"/"+n,c.IH.BookingForm_GenerateDemand)}add(e){return super.add(e,c.IH.BookingForm_Add)}directDelete(e,t){return super.directDelete(e,c.IH.BookingForm_Delete,t,!1)}GenerateNOC(e,t,i){return super.getById(e+"/"+t+"/"+i,c.IH.BookingForm_GenerateNOC)}GenerateAgreement(e,t,i){return super.getById(e+"/"+t+"/"+i,c.IH.BookingForm_GenerateAgreement)}AddImage(e,t){return super.changeInquirySite(0,t,e,c.IH.BookingForm_AddImageDocument)}}return e.\u0275fac=function(t){return new(t||e)(s.LFG(Q.eN),s.LFG(c.De),s.LFG(T.Rq),s.LFG(G.D))},e.\u0275prov=s.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var V=i(57475),H=i(7638),W=i(63713),K=i(27317),j=i(2499),z=i(3001),X=i(12366),ee=i(11661),te=i(70199),ie=i(3359);const ne=["txtNameOnAgreement"],se=["f"];function re(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",190),s.TgZ(1,"ul",191),s.TgZ(2,"li",192),s.TgZ(3,"button",193),s.NdJ("click",function(){return s.CHM(e),s.oxw().cancel()}),s._UZ(4,"i",194),s.qZA(),s.qZA(),s.TgZ(5,"li",195),s.TgZ(6,"strong"),s._uU(7,"Booking"),s.qZA(),s.TgZ(8,"small"),s._uU(9," Add/Edit"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}}function oe(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",196),s.TgZ(1,"ul",191),s.TgZ(2,"li",197),s.TgZ(3,"ion-icon",198),s.NdJ("click",function(){return s.CHM(e),s.oxw().cancel()}),s.qZA(),s.qZA(),s.TgZ(4,"li",199),s.TgZ(5,"strong"),s._uU(6,"Booking"),s.qZA(),s.TgZ(7,"small"),s._uU(8," Add/Edit"),s.qZA(),s.qZA(),s.TgZ(9,"a",200),s.NdJ("click",function(t){return s.CHM(e),s.oxw(),s.MAs(6).onSubmit(t)}),s.TgZ(10,"span"),s._uU(11),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=s.oxw();s.xp6(11),s.Oqu(e.saveText)}}function le(e,t){if(1&e&&s._UZ(0,"erp-work-panel",201),2&e){const e=s.oxw();s.Q6J("entityId",e.bookingservice.singleresult.UIDN)("compact",!0)}}function ae(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Aggrement Name is required"),s.qZA())}function ce(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,ae,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(40);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function ge(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"small",203),s.TgZ(1,"a",204),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(),i=s.MAs(46);return t.addNewCustomer(i)}),s._uU(2," Add New Customer "),s.qZA(),s.qZA()}}function de(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Required"),s.qZA())}function ue(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,de,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(52);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function pe(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Required"),s.qZA())}function me(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,pe,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(58);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function he(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Required"),s.qZA())}function fe(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1," Invalid PAN number "),s.qZA())}function Te(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,he,2,0,"div",164),s.YNc(2,fe,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(64);s.xp6(1),s.Q6J("ngIf",e.errors.required),s.xp6(1),s.Q6J("ngIf",e.hasError("pattern"))}}function Ze(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Required"),s.qZA())}function Ae(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1," Invalid Aadhar number "),s.qZA())}function ve(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,Ze,2,0,"div",164),s.YNc(2,Ae,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(70);s.xp6(1),s.Q6J("ngIf",e.errors.required),s.xp6(1),s.Q6J("ngIf",e.hasError("pattern"))}}function be(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter date"),s.qZA())}function Se(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,be,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(76);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Ce(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter referance"),s.qZA())}function xe(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,Ce,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(82);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function ke(e,t){if(1&e&&(s.TgZ(0,"small",203),s._uU(1),s.qZA()),2&e){const e=s.oxw();s.xp6(1),s.AsE(" Loaded ",e.emailtemp.result.length," of ",e.emailtemp.totalItems," ")}}function Ie(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter rera area"),s.qZA())}function Me(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,Ie,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(111);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function qe(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter Sale area"),s.qZA())}function Ne(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,qe,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(115);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function ye(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter base rate"),s.qZA())}function _e(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,ye,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(119);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function we(e,t){1&e&&s._UZ(0,"div",205)}function Oe(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter val"),s.qZA())}function De(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,Oe,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(137);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Ee(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter val"),s.qZA())}function Le(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,Ee,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(146);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Ue(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter val"),s.qZA())}function Pe(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,Ue,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(158);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Je(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter val"),s.qZA())}function Fe(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,Je,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(170);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Be(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter val"),s.qZA())}function Re(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,Be,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(176);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Qe(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter value"),s.qZA())}function Ge(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,Qe,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(182);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Ye(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter value"),s.qZA())}function Ve(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,Ye,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(188);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function He(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter value"),s.qZA())}function We(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,He,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(194);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function $e(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter val"),s.qZA())}function Ke(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,$e,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(200);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function je(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter val"),s.qZA())}function ze(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,je,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(206);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Xe(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter val"),s.qZA())}function et(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,Xe,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(212);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function tt(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter val"),s.qZA())}function it(e,t){if(1&e&&(s.TgZ(0,"div",205),s.YNc(1,tt,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(218);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function nt(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please select agreement Ledger "),s.qZA())}function st(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,nt,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(230);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function rt(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter Ledger"),s.qZA())}function ot(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,rt,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(238);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function lt(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please select field"),s.qZA())}function at(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,lt,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(246);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function ct(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please select field"),s.qZA())}function gt(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,ct,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(246);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function dt(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please select field"),s.qZA())}function ut(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,dt,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(246);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function pt(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please select field"),s.qZA())}function mt(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,pt,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(246);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function ht(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please select field"),s.qZA())}function ft(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,ht,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(278);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Tt(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please select Bank"),s.qZA())}function Zt(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,Tt,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(286);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}const At=function(e){return{"is-invalid":e}};function vt(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"input",214,215),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw().$implicit.AmtVal=t}),s.qZA()}if(2&e){const e=s.MAs(1),t=s.oxw(),i=t.index,n=t.$implicit;s.oxw(2);
1const r=s.MAs(6);s.MGl("name","Amount__",i,""),s.MGl("id","amunttxt__",i,""),s.Q6J("ngClass",s.VKq(4,At,r.submitted&&e.invalid))("ngModel",n.AmtVal)}}function bt(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"input",216,217),s.NdJ("selectedindex",function(t){s.CHM(e);const i=s.oxw().index;return s.oxw(2).onDueDchkDateSelect(t,i)}),s.ALo(2,"date"),s.qZA()}if(2&e){const e=s.MAs(1),t=s.oxw(),i=t.index,n=t.$implicit,r=s.oxw(2),o=s.MAs(6);s.MGl("name","DueD__",i,""),s.MGl("id","DueD__",i,""),s.Q6J("ngClass",s.VKq(8,At,o.submitted&&e.invalid))("ngModel",s.xi3(2,5,n.DueD,"dd-MM-yyyy"))("required",n.AmtVal>0&&1==r.bookingservice.singleresult.IsCommdate)}}function St(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"input",218,219),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw().$implicit.OCRAmtVal=t}),s.qZA()}if(2&e){const e=s.MAs(1),t=s.oxw(),i=t.index,n=t.$implicit;s.oxw(2);const r=s.MAs(6);s.MGl("name","OCRAmount__",i,""),s.MGl("id","OCRamunttxt__",i,""),s.Q6J("disabled",1==n.OCRsplit)("ngClass",s.VKq(5,At,r.submitted&&e.invalid))("ngModel",n.OCRAmtVal)}}function Ct(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"input",220,221),s.NdJ("selectedindex",function(t){s.CHM(e);const i=s.oxw().index;return s.oxw(2).onOCRDuechkDateSelect(t,i)}),s.ALo(2,"date"),s.qZA()}if(2&e){const e=s.MAs(1),t=s.oxw(),i=t.index,n=t.$implicit,r=s.oxw(2),o=s.MAs(6);s.MGl("name","OCRDueD__",i,""),s.MGl("id","OCRDueD__",i,""),s.Q6J("ngClass",s.VKq(8,At,o.submitted&&e.invali
1d))("ngModel",s.xi3(2,5,n.OCRDueD,"dd-MM-yyyy"))("required",n.OCRAmtVal>0&&0==n.OCRsplit&&1==r.bookingservice.singleresult.IsCommdate)}}function xt(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"a",222),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(),i=t.$implicit,n=t.index;return s.oxw(2).addSplitPaymentTerm(i.index,n)}),s._uU(1," Split Amount "),s.qZA()}}function kt(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"a",223),s.NdJ("click",function(){s.CHM(e);const t=s.oxw().$implicit;return s.oxw(2).removePaymentTerm(t.index)}),s._uU(1," Delete "),s.qZA()}}function It(e,t){if(1&e&&(s.ynx(0),s.TgZ(1,"tr"),s.TgZ(2,"td"),s._uU(3),s.qZA(),s.TgZ(4,"td",206),s.YNc(5,vt,2,6,"input",207),s.qZA(),s.TgZ(6,"td",206),s.YNc(7,bt,3,10,"input",208),s.qZA(),s.TgZ(8,"td",206),s.YNc(9,St,2,7,"input",209),s.qZA(),s.TgZ(10,"td",210),s.YNc(11,Ct,3,10,"input",211),s.qZA(),s.TgZ(12,"td"),s.YNc(13,xt,2,0,"a",212),s.YNc(14,kt,2,0,"a",213),s.qZA(),s.qZA(),s.BQk()),2&e){const e=t.$implicit,i=s.oxw(2);s.xp6(1),s.ekj("bg-gray-300",e.OCRsplit||-1!=e.spitOfIndex),s.xp6(2),s.Oqu(e.Nurr),s.xp6(2),s.Q6J("ngIf",-1==e.spitOfIndex),s.xp6(2),s.Q6J("ngIf",-1==e.spitOfIndex&&1==i.bookingservice.singleresult.IsCommdate),s.xp6(2),s.Q6J("ngIf","LOAN-OCR"==e.PaytpId),s.xp6(2),s.Q6J("ngIf",0==e.OCRsplit&&"LOAN-OCR"==e.PaytpId&&1==i.bookingservice.singleresult.IsCommdate),s.xp6(2),s.Q6J("ngIf",-1==e.spitOfIndex&&"LOAN-OCR"==e.PaytpId),s.xp6(1),s.Q6J("ngIf","LOAN-OCR"==e.PaytpId)}}function Mt(e,t){if(1&e&&(s.ynx(0),s.YNc(1,It,15,9,"ng-container",166),s.BQk()),2&e){const e=s.oxw();s.xp6(1),s.Q6J("ngForOf",e.bookingservice.singleresult.p_Terms)("ngForTrackBy",e.indexTracker)}}function qt(e,t){if(1&e&&(s.TgZ(0,"div",224),s._uU(1,"TOTAL "),s.TgZ(2,"b"),s._uU(3),s.qZA(),s._uU(4," WORK COMPLETED, RECEIVABLE OCR AMOUNT IS: "),s.TgZ(5,"b"),s._uU(6),s.qZA(),s.qZA()),2&e){const e=s.oxw();s.xp6(3),s.hij("",e.cmWrkPr,"%"),s.xp6(3),s.Oqu(e.DueAmtcmWrkPr)}}function Nt(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"input",214,215),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw(2).$implicit.AmtVal=t}),s.qZA()}if(2&e){const e=s.MAs(1),t=s.oxw(2),i=t.index,n=t.$implicit;s.oxw();const r=s.MAs(6);s.MGl("name","Amount__",i,""),s.MGl("id","amunttxt__",i,""),s.Q6J("ngClass",s.VKq(4,At,r.submitted&&e.invali
1d))("ngModel",n.AmtVal)}}function yt(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"input",216,217),s.NdJ("selectedindex",function(t){s.CHM(e);const i=s.oxw(2).index;return s.oxw().onDueDchkDateSelect(t,i)}),s.ALo(2,"date"),s.qZA()}if(2&e){const e=s.MAs(1),t=s.oxw(2),i=t.index,n=t.$implicit,r=s.oxw(),o=s.MAs(6);s.MGl("name","DueD__",i,""),s.MGl("id","DueD__",i,""),s.Q6J("ngClass",s.VKq(8,At,o.submitted&&e.invalid))("ngModel",s.xi3(2,5,n.DueD,"dd-MM-yyyy"))("required",n.AmtVal>0&&1==r.bookingservice.singleresult.IsCommdate)}}function _t(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"input",218,219),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw(2).$implicit.OCRAmtVal=t}),s.qZA()}if(2&e){const e=s.MAs(1),t=s.oxw(2),i=t.index,n=t.$implicit;s.oxw();const r=s.MAs(6);s.MGl("name","OCRAmount__",i,""),s.MGl("id","OCRamunttxt__",i,""),s.Q6J("disabled",1==n.OCRsplit)("ngClass",s.VKq(5,At,r.submitted&&e.invalid))("ngModel",n.OCRAmtVal)}}function wt(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"input",220,221),s.NdJ("selectedindex",function(t){s.CHM(e);const i=s.oxw(2).index;return s.oxw().onOCRDuechkDateSelect(t,i)}),s.ALo(2,"date"),s.qZA()}if(2&e){const e=s.MAs(1),t=s.oxw(2),i=t.index,n=t.$implicit,r=s.oxw(),o=s.MAs(6);s.MGl("name","OCRDueD__",i,""),s.MGl("id","OCRDueD__",i,""),s.Q6J("ngClass",s.VKq(8,At,o.submitted&&e.invali
1d))("ngModel",s.xi3(2,5,n.OCRDueD,"dd-MM-yyyy"))("required",n.OCRAmtVal>0&&0==n.OCRsplit&&1==r.bookingservice.singleresult.IsCommdate)}}function Ot(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"a",222),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(2),i=t.$implicit,n=t.index;return s.oxw().addSplitPaymentTerm(i.index,n)}),s._uU(1," Split Amount "),s.qZA()}}function Dt(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"a",223),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(2).$implicit;return s.oxw().removePaymentTerm(t.index)}),s._uU(1," Delete "),s.qZA()}}function Et(e,t){if(1&e&&(s.ynx(0),s.TgZ(1,"tr"),s.TgZ(2,"td"),s._uU(3),s.qZA(),s.TgZ(4,"td",206),s.YNc(5,Nt,2,6,"input",207),s.qZA(),s.TgZ(6,"td",206),s.YNc(7,yt,3,10,"input",208),s.qZA(),s.TgZ(8,"td",206),s.YNc(9,_t,2,7,"input",209),s.qZA(),s.TgZ(10,"td",210),s.YNc(11,wt,3,10,"input",211),s.qZA(),s.TgZ(12,"td"),s.YNc(13,Ot,2,0,"a",212),s.YNc(14,Dt,2,0,"a",213),s.qZA(),s.qZA(),s.BQk()),2&e){const e=s.oxw().$implicit,t=s.oxw();s.xp6(1),s.ekj("bg-gray-300",e.OCRsplit||-1!=e.spitOfIndex),s.xp6(2),s.Oqu(e.Nurr),s.xp6(2),s.Q6J("ngIf",-1==e.spitOfIndex),s.xp6(2),s.Q6J("ngIf",-1==e.spitOfIndex&&1==t.bookingservice.singleresult.IsCommdate),s.xp6(2),s.Q6J("ngIf","LOAN-OCR"==e.PaytpId),s.xp6(2),s.Q6J("ngIf",0==e.OCRsplit&&"LOAN-OCR"==e.PaytpId&&1==t.bookingservice.singleresult.IsCommdate),s.xp6(2),s.Q6J("ngIf",-1==e.spitOfIndex&&"LOAN-OCR"==e.PaytpId),s.xp6(1),s.Q6J("ngIf","LOAN-OCR"==e.PaytpId)}}function Lt(e,t){if(1&e&&(s.ynx(0),s.YNc(1,Et,15,9,"ng-container",164),s.BQk()),2&e){const e=t.$implicit,i=s.oxw();s.xp6(1),s.Q6J("ngIf",1==i.bookingservice.singleresult.IsDueDt&&0==e.flag&&"LOAN-OCR"==e.PaytpId)}}function Ut(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter Nurration"),s.qZA())}function Pt(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,Ut,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(345);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Jt(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please select payment type"),s.qZA())}function Ft(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,Jt,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(351);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Bt(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter amount"),s.qZA())}function Rt(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,Bt,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(361);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Qt(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter duedate."),s.qZA())}function Gt(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,Qt,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(367);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Yt(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter amount"),s.qZA())}function Vt(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,Yt,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(5);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Ht(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",225),s.TgZ(1,"label",127),s._uU(2,"OCR Amount:"),s.qZA(),s.TgZ(3,"div",226),s.TgZ(4,"input",227,228),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw().Terms.OCRAmtVal=t}),s.qZA(),s.YNc(6,Vt,2,1,"div",23),s.qZA(),s.qZA()}if(2&e){const e=s.MAs(5),t=s.oxw(),i=s.MAs(6);
1s.xp6(4),s.Q6J("ngClass",s.VKq(3,At,i.submitted&&e.invalid))("ngModel",t.Terms.OCRAmtVal),s.xp6(2),s.Q6J("ngIf",e.invalid)}}function Wt(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Please enter duedate."),s.qZA())}function $t(e,t){if(1&e&&(s.TgZ(0,"div",202),s.YNc(1,Wt,2,0,"div",164),s.qZA()),2&e){s.oxw();const e=s.MAs(5);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Kt(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",225),s.TgZ(1,"label",127),s._uU(2,"OCR Duedate:"),s.qZA(),s.TgZ(3,"div",226),s.TgZ(4,"input",229,230),s.NdJ("selected",function(t){return s.CHM(e),s.oxw().onOCRDuedateSelect(t)}),s.qZA(),s.YNc(6,$t,2,1,"div",23),s.qZA(),s.qZA()}if(2&e){const e=s.MAs(5),t=s.oxw(),i=s.MAs(6);s.xp6(4),s.Q6J("ngClass",s.VKq(3,At,i.submitted&&e.invalid))("startDate",t.Terms.OCRDueD),s.xp6(2),s.Q6J("ngIf",e.invalid)}}function jt(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",231),s.TgZ(1,"button",232),s._uU(2),s.qZA(),s.TgZ(3,"a",233),s.NdJ("click",function(){return s.CHM(e),s.oxw().cancel()}),s._uU(4,"Cancel"),s.qZA(),s.qZA()}if(2&e){const e=s.oxw();s.xp6(2),s.Oqu(e.saveText)}}function zt(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"nav",234),s.TgZ(1,"ul",235),s.TgZ(2,"li",236),s.TgZ(3,"button",237),s._uU(4),s.qZA(),s.qZA(),s.TgZ(5,"li",238),s.TgZ(6,"a",233),s.NdJ("click",function(){return s.CHM(e),s.oxw().cancel()}),s._uU(7,"Cancel"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=s.oxw();s.xp6(4),s.Oqu(e.saveText)}}function Xt(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"app-companyledger-addedit",239),s.NdJ("redirectAction",function(t){return s.CHM(e),s.oxw().popupAction(t)}),s.qZA()}if(2&e){const e=s.oxw();s.Q6J("isMobilePopup",!0)("CompanyIdforReport",e.bookingservice.singleresult.CI)("redirectOnCancel",!1)}}let ei=(()=>{class e{constructor(e,t,i,n,r,o,l,a,c,d,u,p,m,h){this.sitestrService=e,this.filterService=t,this.customerService=i,this.bookingservice=n,this.siteService=r,this.route=o,this.location=l,this._config=a,this.router=c,this.alertservice=d,this._ngZone=u,this.companyledgerservice=p,this.emailtemp=m,this.bankService=h,this.paytypenative=!1,this.totLoan=0,this.isList=!0,this._sgId=0,this.currentScrollPosition=0,this.isScrollEnabled=!0,this.httpfunction=new g.r,this.BookingVoucher=null,this.isShowConditionDest=null,this.PageType="",this.totOCR=0,this.cmWrkPr=0,this.DueAmtcmWrkPr=0,this.totOther=0,this.totGST=0,this.totOtherGST=0,this.totCarParking=0,this.totBuildPro=0,this.totStampDuty=0,this.saveText="Confirm Booking",this.paymentermindex=0,this.FromLedger=[],this.GSTLedger=[],this.CustomerGroupLedger=[],this.Customers=[],this.custledger=null,this.p_TermsRev=[],this.p_TermsPer=[],this.customer=null,this.totalAgreementLedger=null,this.totalGstAgreementLedger=null,this.totalDutyAgreementLedger=null,this.OtherAgreement=null,this.newcustomer="",this.customerName="",this.isrecevable=!1,this.baseratepattern="[0-9]+(.[0-9][0-9]?)?",this.infradevpattern="[0-9]+(.[0-9][0-9]?)?",this.socratepattern="[0-9]+(.[0-9][0-9]?)?",this.docratepattern="[0-9]+(.[0-9][0-9]?)?",this.mainratepattern="[0-9]+(.[0-9][0-9]?)?",this.otherratepattern="[0-9]+(.[0-9][0-9]?)?",this.gstratepattern="[0-9]+(.[0-9][0-9]?)?",this.stmpratepattern="[0-9]+(.[0-9][0-9]?)?",this.showCompanyLedgerpopup=!1,this.BookingredirectOnCancel=!0,this.IsSiteStructureBooking=!0,this.BookingredirectAction=new s.vpe,this.customerId=null,this.customerService.singleresult=new H.e,this.currentdate=(new Date).toJSON().split("T")[0],this.bookingservice.singleresult=new F,this.bookingservice.singleresult.CI=this.bookingservice.getCompanyId,this.bookingservice.singleresult.IsSJ=!0;var f=null,T=null;this.route.params.subscribe(e=>{f=e.bookingvoucher,T=e.outstandingrecivable}),this.emailtemp.singleresult=null,this.BookingVoucher=f,this.isShowConditionDest=T,this.Terms=new B,this.sitestrService.singleresult=new L.T,this.bankService.singleresult=null,this.emailtemp.singleresult=new j.H,this.emailtemp.singleresult.CI=this.emailtemp.getCompanyId,this.emailtemp.GetAlldataBooking(),this.bookingservice.singleresult.AltDate=new Date}ngOnInit(){this.companyledgerservice.isGetSubscribe=!0,this.companyledgerservice.GetAlldatawithsub(!0),this.subscription=this.companyledgerservice.resultObs.subscribe(()=>{if(this.Customers=this.companyledgerservice.result.filter(e=>1==e.IsSD&&0==e.IsGrp),this.FromLedger=this.companyledgerservice.result.filter(e=>1==e.IsSL&&0==e.IsGrp),this.CustomerGroupLedger=this.companyledgerservice.result.filter(e=>1==e.IsSD&&1==e.IsGrp),this.GSTLedger=this.companyledgerservice.result.filter(e=>(1==e.isTL||1==e.IsSL)&&0==e.IsGrp),null!=this.bookingservice.singleresult&&null!=this.bookingservice.singleresult.custledgename&&null!=this.bookingservice.singleresult.custledgename){let e=this.Customers.filter(e=>e.LN==this.bookingservice.singleresult.custledgename);null!=e&&e.legth>
10?this.custledger=e[0]:(this.custledger=new U.dJ,null!=this.bookingservice.singleresult.CusLedgerId&&null!=this.bookingservice.singleresult.CusLedgerId?(this.custledger.LN=this.bookingservice.singleresult.custledgename,this.custledger.UIDN=this.bookingservice.singleresult.CusLedgerId):(this.custledger.LN="",this.custledger.UIDN="0"),this.Customers=this.Customers.concat(this.custledger))}}),setTimeout(()=>{this.filterService.hideQuickFilter(!1,!1,"BookingForm (Add/Edit)",!1)},200),this.LoadBanks(),this.BookingredirectOnCancel?this.route.params.subscribe(e=>{null!=e.bookingid&&(this.bookingservice.singleresult.UIDN=e.bookingid,this.BookingId=e.bookingid,this.saveText="Update Booking",this.LoadBookingData(this.bookingservice.singleresult.UIDN))}):(this.sitestrService.singleresult=this.SiteStructure,this.bookingservice.singleresult.CId=this.customerId,this.bookingservice.singleresult.SiteId=this.SiteId,this.bookingservice.singleresult.StrID=this.SiteStructure.UIDN,this.bookingservice.singleresult.Sitename=this.SiteStructure.StNm,this.bookingservice.singleresult.Building=this.SiteStructure.Bldg,this.bookingservice.singleresult.Wing=this.SiteStructure.Wng,this.bookingservice.singleresult.BuildingName=this.SiteStructure.BLNm,this.bookingservice.singleresult.WingName=this.SiteStructure.WingNm,this.bookingservice.singleresult.Flatnum=this.SiteStructure.FltN,this.bookingservice.singleresult.salesqft=this.SiteStructure.SalAr,this.bookingservice.singleresult.bssqft=this.SiteStructure.RerCarAr,this.bookingservice.singleresult.bsrate=this.SiteStructure.Rate,this.bookingservice.singleresult.InqId=this.InquiryId,this.bookingservice.singleresult.socchrge=this.SiteStructure.InfraSocChrge,this.bookingservice.singleresult.docchrge=this.SiteStructure.Docchrge,this.bookingservice.singleresult.maintchrge=this.SiteStructure.Maintchrge,this.bookingservice.singleresult.buildProCost=this.SiteStructure.buildProCost,this.bookingservice.singleresult.regisCost=this.SiteStructure.regisCost,this.bookingservice.singleresult.carParkCrg=this.SiteStructure.carParkCrg,this.bookingservice.singleresult.NoCarPark=this.SiteStructure.NoCarPark,this.bookingservice.singleresult.OtherGst=this.SiteStructure.OtherGst,this.bookingservice.singleresult.otherchrge=0,this.bookingservice.singleresult.gstchrge=this.getNumeric(this.SiteStructure.Gst),this.bookingservice.singleresult.stmp=this.getNumeric(this.SiteStructure.Stamp),this.bookingservice.singleresult.isbssqft=!0,this.bookingservice.singleresult.Issocchrge=!0,this.bookingservice.singleresult.FltCst=this.getNumeric(this.SiteStructure.FltCst),this.onCheck(),this.CalculateGST(),this.CalculateStamp(),this.get
1SiteTerm(this.SiteId),setTimeout(()=>{this.getCustomerdetailbyId(this.customerId)},200),this.bankService.singleresult=null),setTimeout(()=>{null!=this.NameOnAgreementInput&&this.NameOnAgreementInput.nativeElement.focus()},1e3),this.httpfunction.IsMobileview()||(document.onkeydown=this.OnKeydown.bind(this))}OnKeydown(e){var t=e.key||e.keyCode;("Backspace"==t&&e.altKey||"Escape"==t)&&(setTimeout(()=>{document.scrollingElement.scrollTop=this.currentScrollPosition},150),this.router.navigate(["/marketing/bookinglist"]))}ngOnDestroy(){null!=this.subscription&&this.subscription.unsubscribe()}onCheckedChange(e,t){let i=e.object;"Soc"==t?this.bookingservice.singleresult.Issocchrge=i.checked:"Main"==t?this.bookingservice.singleresult.Ismainchrge=i.checked:this.bookingservice.singleresult.Isothchar=i.checked,this.onCheck(),this.CalculateStamp(),this.CalculateGST(),this.autoCalculateLoanOCR()}addNewCustomer(e){e.close(),this.newcustomer="",this.showCompanyLedgerpopup=!0}popupAction(e){this.showCompanyLedgerpopup=!1,null!=e&&(this.bookingservice.singleresult.custledgename=e.LN,this.custledger=e,this.Customers=this.Customers.concat(e))}saveNewCustomer(){if(null!=this.newcustomer&&null!=this.newcustomer&&""!=this.newcustomer){if(this.bookingservice.singleresult.custledgename=this.newcustomer,null!=this.bookingservice.singleresult&&null!=this.bookingservice.singleresult.custledgename&&null!=this.bookingservice.singleresult.custledgename){let e=this.Customers.filter(e=>e.LN==this.bookingservice.singleresult.custledgename);null!=e&&e.legth>0?this.custledger=e[0]:(this.custledger=new U.dJ,this.custledger.LN=this.bookingservice.singleresult.custledgename,this.custledger.UIDN=null!=this.bookingservice.singleresult.CusLedgerId&&null!=this.bookingservice.singleresult.CusLedgerId?this.bookingservice.singleresult.CusLedgerId:"0",this.Customers=this.Customers.concat(this.custledger))}this.showCompanyLedgerpopup=!1}else this.alertservice.showError("Error","Please enter customer ledger name")}isNumeric(e){return null!=e&&/^[-+]?(\d+|\d+\.\d*|\d*\.\d+)$/.test(e.toString())}getNumeric(e){return this.isNumeric(e)?parseFloat(e):parseFloat("0")}LoadBookingData(e){this.bookingservice.getById(e).subscribe(e=>{if(this.bookingservice.singleresult=e,this.bankService.singleresult=new P.j,this.bankService.singleresult.UIDN=this.bookingservice.singleresult.BankId,this.bankService.singleresult.BN=this.bookingservice.singleresult.BankName,this.LoadsiteStructure(this.bookingservice.singleresult.StrID),this.SiteId=this.bookingservice.singleresult.SiteId,this.get
1SiteTerm(this.SiteId),this.customerId=this.bookingservice.singleresult.CId,null!=this.bookingservice.singleresult&&null!=this.bookingservice.singleresult.custledgename&&null!=this.bookingservice.singleresult.custledgename){let e=this.Customers.filter(e=>e.LN==this.bookingservice.singleresult.custledgename);null!=e&&e.legth>0?this.custledger=e[0]:(this.custledger=new U.dJ,this.custledger.LN=this.bookingservice.singleresult.custledgename,this.custledger.UIDN=null!=this.bookingservice.singleresult.CusLedgerId&&null!=this.bookingservice.singleresult.CusLedgerId?this.bookingservice.singleresult.CusLedgerId:"0",this.Customers=this.Customers.concat(this.custledger))}this.getCustomerdetailbyId(this.customerId)})}LoadsiteStructure(e){this.sitestrService.getById(e).subscribe(e=>{this.sitestrService.singleresult=e,this.SiteStructure=this.sitestrService.singleresult})}LoadBanks(){this.bankService.GetAlldataforBooking()}addPaymentTermswithValidation(e,t,i,n){this.f.controls.pType.valid&&this.f.controls.Nurration.valid&&this.addPaymentTerms(e,t,i,this.Terms.OCRAmtVal,this.Terms.OCRDueD,n,-1)}ontypechange(){this.paytypenative=!0}addPaymentTermsNative(){null!=this.Terms.PaytpId&&null!=this.Terms.PaytpId&&(this.Terms.PaytpId="LOAN-OCR"),this.addPaymentTerms(this.Terms.PaytpId,this.Terms.AmtVal,this.Terms.DueD,this.Terms.OCRAmtVal,this.Terms.OCRDueD,this.Terms.Nurr,-1)}addPaymentTerms(e,t,i,n,s,r,o){let l=new B;l.PaytpId=e,l.AmtVal=this.getNumeric(t),l.DueD=i,l.OCRAmtVal=this.getNumeric(n),l.OCRDueD=s,l.Nurr=r,l.index=this.paymentermindex,l.spitOfIndex=o,this.paymentermindex=this.paymentermindex+1,this.totLoan=0,this.totOCR=0,this.totGST=0,this.totOtherGST=0,this.totStampDuty=0,this.totOther=0;for(var a=0;a<this.bookingservice.singleresult.p_Terms.length;a++)this.bookingservice.singleresult.p_Terms[a].spitOfIndex>=0||("LOAN-OCR"==this.bookingservice.singleresult.p_Terms[a].PaytpId?(this.totLoan+=this.getNumeric(this.bookingservice.singleresult.p_Terms[a].AmtVal),this.totOCR+=this.getNumeric(this.bookingservice.singleresult.p_Terms[a].OCRAmtVal)):"GST"==this.bookingservice.singleresult.p_Terms[a].PaytpId?this.totGST+=this.getNumeric(this.bookingservice.singleresult.p_Terms[a].AmtVal):"Other GST"==this.bookingservice.singleresult.p_Terms[a].PaytpId?this.totOtherGST+=this.getNumeric(this.bookingservice.singleresult.p_Terms[a].AmtVal):"Car Charges"==this.bookingservice.singleresult.p_Terms[a].PaytpId?this.totCarParking+=this.getNumeric(this.bookingservice.singleresult.p_Terms[a].AmtVal):"Building Protection"==this.bookingservice.singleresult.p_Terms[a].PaytpId?this.totBuildPro+=this.getNumeric(this.bookingservice.singleresult.p_Terms[a].AmtVal):"StampDuty"==this.bookingservice.singleresult.p_Terms[a].PaytpId?this.totStampDuty+=this.getNumeric(this.bookingservice.singleresult.p_Terms[a].AmtVal):"OTHER"==this.bookingservice.singleresult.p_Terms[a].PaytpId&&(this.totOther+=this.getNumeric(this.bookingservice.singleresult.p_Terms[a].AmtVal)));"LOAN-OCR"==l.PaytpId?(this.totLoan+=l.AmtVal,this.totOCR+=l.OCRAmtVal):"GST"==l.PaytpId?this.totGST+=l.AmtVal:"Other GST"==l.PaytpId?this.totOtherGST+=l.AmtVal:"Car Charges"==l.PaytpId?this.totCarParking+=l.AmtVal:"Building Protection"==l.PaytpId?this.totBuildPro+=l.AmtVal:"StampDuty"==l.PaytpId?this.totStampDuty+=l.AmtVal:"OTHER"==l.PaytpId&&(this.totOther+=l.AmtVal),this.bookingservice.singleresult.p_Terms.push(l)}onCheck(){this.bookingservice.singleresult.agrval=0,this.bookingservice.singleresult.Othval=0,this.bookingservice.singleresult.stmp=0,this.bookingservice.singleresult.agrval+=this.getNumeric(this.bookingservice.singleresult.FltCst),1==this.bookingservice.singleresult.Issocchrge?this.bookingservice.singleresult.agrval+=this.getNumeric(this.bookingservice.singleresult.socchrge):this.bookingservice.singleresult.Othval+=this.getNumeric(this.bookingservice.singleresult.socchrge),1==this.bookingservice.singleresult.IsDoccharge&&(this.bookingservice.singleresult.agrval+=this.getNumeric(this.bookingservice.singleresult.docchrge)),1==this.bookingservice.singleresult.Ismainchrge&&(this.bookingservice.singleresult.agrval+=this.getNumeric(this.bookingservice.singleresult.maintchrge)),1==this.bookingservice.singleresult.Isothchar?this.bookingservice.singleresult.agrval+=this.getNumeric(this.bookingservice.singleresult.otherchrge):this.bookingservice.singleresult.Othval+=this.getNumeric(this.bookingservice.singleresult.otherchrge)}onChangeTotalCost(){this.bookingservice.singleresult.bsrate=this.getNumeric((this.getNumeric(this.bookingservice.singleresult.FltCst)/this.getNumeric(this.bookingservice.singleresult.salesqft)).toFixed(2)),this.onCheck()}CalculateStamp(){this.bookingservice.singleresult.stmp=this.SiteStructure.Stamp,this.bookingservice.singleresult.stmp=this.getNumeric(this.SiteStructure.Stamp)>0?this.getNumeric(this.getNumeric(this.SiteStructure.Stamp).toFixed(2)):0}CalculateGST(){this.bookingservice.singleresult.gstPer=this.SiteStructure.Gst,this.bookingservice.singleresult.gstchrge=this.getNumeric(this.SiteStructure.Gst)>0?this.getNumeric(this.getNumeric(this.SiteStructure.Gst).toFixed(2)):0}onAgreementdateSelect(e){this.bookingservice.singleresult.AltDate=e}onDuedateSelect(e){this.Terms.DueD=e}onOCRDuedateSelect(e){this.Terms.OCRDueD=e}onOCRDuechkDateSelect(e,t){this.bookingservice.singleresult.p_Terms[t].OCRDueD=e.startDate}onDueDchkDateSelect(e,t){this.bookingservice.singleresult.p_Terms[t].DueD=e.startDate}addSplitPaymentTerm(e,t){this.bookingservice.singleresult.p_Terms.filter(t=>t.index==e)[0].OCRsplit=!0;var i=new B;i.index=this.paymentermindex,i.spitOfIndex=e,i.PaytpId="LOAN-OCR",i.OCRAmtVal=0,i.AmtVal=0,this.bookingservice.singleresult.p_Terms.splice(t+1,0,i),this.paymentermindex=this.paymentermindex+1}removePaymentTerm(e){var t=this.bookingservice.singleresult.p_Terms.filter(t=>t.index==e)[0];-1==t.spitOfIndex?("LOAN-OCR"==t.PaytpId?(this.totLoan-=t.AmtVal,this.totOCR-=t.OCRAmtVal):"GST"==t.PaytpId?this.totGST-=t.AmtVal:"Other GST"==t.PaytpId?this.totOtherGST-=t.AmtVal:"Car Charges"==t.PaytpId?this.totCarParking-=t.AmtVal:"Building Protection"==t.PaytpId?this.totBuildPro-=t.AmtVal:"StampDuty"==t.PaytpId?this.totStampDuty-=t.AmtVal:"OTHER"==t.PaytpId&&(this.totOther-=t.AmtVal),this.bookingservice.singleresult.p_Terms=this.bookingservice.singleresult.p_Terms.filter(t=>t.spitOfIndex!=e)):1==this.bookingservice.singleresult.p_Terms.filter(e=>e.spitOfIndex==t.spitOfIndex).length&&(this.bookingservice.singleresult.p_Terms.filter(e=>e.index==t.spitOfIndex)[0].OCRsplit=!1),this.bookingservice.singleresult.p_Terms=this.bookingservice.singleresult.p_Terms.filter(t=>t.index!=e)}getCustomerdetailbyId(e){if(-1==this.InquiryId){if(this.customerService.singleresult=new H.e,0==this.BookingredirectOnCancel){this.bookingservice.singleresult.NameOnAgreement=null!=this.customerService.singleresult.MN&&null!=this.customerService.singleresult.MN?this.customerService.singleresult.FN+" "+this.customerService.singleresult.MN+" "+this.customerService.singleresult.LN:"",this.bookingservice.singleresult.custledgename=this.sitestrService.singleresult.BLNm+"-"+this.sitestrService.singleresult.WingNm+"-"+this.sitestrService.singleresult.FltN+" "+this.bookingservice.singleresult.NameOnAgreement;let e=this.Customers.filter(e=>e.LN==this.bookingservice.singleresult.custledgename);null!=e&&e.legth>
10?this.custledger=e[0]:(this.custledger=new U.dJ,this.custledger.LN=this.bookingservice.singleresult.custledgename,this.custledger.UIDN="0",this.Customers=this.Customers.concat(this.custledger)),this.bookingservice.singleresult.AgreementAddress=this.customerService.singleresult.CustAddr,this.bookingservice.singleresult.PanNumber=this.customerService.singleresult.PAN,this.bookingservice.singleresult.AadharNumber=this.customerService.singleresult.Aadhar,this.bookingservice.singleresult.AgrDate=new Date}}else this.customerService.getByforbookingId(e).subscribe(e=>{if(this.customerService.singleresult=e,0==this.BookingredirectOnCancel){null!=this.customerService.singleresult.MN&&null!=this.customerService.singleresult.MN?(null==this.customerService.singleresult.LN&&(this.customerService.singleresult.LN=""),this.bookingservice.singleresult.NameOnAgreement=this.customerService.singleresult.FN+" "+this.customerService.singleresult.MN+" "+this.customerService.singleresult.LN):(null==this.customerService.singleresult.LN&&(this.customerService.singleresult.LN=""),this.bookingservice.singleresult.NameOnAgreement=this.customerService.singleresult.FN+" "+this.customerService.singleresult.LN),this.bookingservice.singleresult.custledgename=this.sitestrService.singleresult.BLNm+"-"+this.sitestrService.singleresult.WingNm+"-"+this.sitestrService.singleresult.FltN+" "+this.bookingservice.singleresult.NameOnAgreement;let e=this.Customers.filter(e=>e.LN==this.bookingservice.singleresult.custledgename);null!=e&&e.legth>0?this.custledger=e[0]:(this.custledger=new U.dJ,this.custledger.LN=this.bookingservice.singleresult.custledgename,this.custledger.UIDN="0",this.Customers=this.Customers.concat(this.custledger)),this.bookingservice.singleresult.AgreementAddress=this.customerService.singleresult.CustAddr,this.bookingservice.singleresult.PanNumber=this.customerService.singleresult.PAN,this.bookingservice.singleresult.AadharNumber=this.customerService.singleresult.Aadhar,this.bookingservice.singleresult.AgrDate=new Date}})}getSiteTerm(e){this.siteService.getByIdForBooking(e).subscribe(e=>{this.siteService.singleresult=e,this.bookingservice.singleresult.areaUnit=this.siteService.singleresult.areaUnit,0==this.BookingredirectOnCancel?(null!=this.siteService.singleresult.flatgroupId&&this.siteService.singleresult.flatgroupId>0&&(this.bookingservice.singleresult.CusParentLedgerId=this.siteService.singleresult.flatgroupId),null!=this.siteService.singleresult.agrledId&&this.siteService.singleresult.agrledId>0&&(this.bookingservice.singleresult.agrledId=this.siteService.singleresult.agrledId),null!=this.siteService.singleresult.MaintledId&&this.siteService.singleresult.MaintledId>0&&(this.bookingservice.singleresult.MaintledId=this.siteService.singleresult.MaintledId),null!=this.siteService.singleresult.GSTLedId&&this.siteService.singleresult.GSTLedId>0&&(this.bookingservice.singleresult.GSTLedId=this.siteService.singleresult.GSTLedId),null!=this.siteService.singleresult.OthLedId&&this.siteService.singleresult.OthLedId>0&&(this.bookingservice.singleresult.OthLedId=this.siteService.singleresult.OthLedId),null!=this.siteService.singleresult.OtherGSTLedId&&this.siteService.singleresult.OtherGSTLedId>0&&(this.bookingservice.singleresult.OtherGSTLedId=this.siteService.singleresult.OtherGSTLedId),null!=this.siteService.singleresult.carParkingLedId&&this.siteService.singleresult.carParkingLedId>0&&(this.bookingservice.singleresult.carParkingLedId=this.siteService.singleresult.carParkingLedId),null!=this.siteService.singleresult.buildingProtectionLedId&&this.siteService.singleresult.buildingProtectionLedId>0&&(this.bookingservice.singleresult.buildingProtectionLedId=this.siteService.singleresult.buildingProtectionLedId),this._ngZone.runOutsideAngular(()=>{this.autoCalculateLoanOCR(),this._ngZone.run(()=>{})})):(null!=this.siteService.singleresult.flatgroupId&&this.siteService.singleresult.flatgroupId>0||(this.bookingservice.singleresult.CusParentLedgerId=null),null!=this.siteService.singleresult.agrledId&&this.siteService.singleresult.agrledId>0||(this.bookingservice.singleresult.agrledId=null),null!=this.siteService.singleresult.MaintledId&&this.siteService.singleresult.MaintledId>0||(this.bookingservice.singleresult.MaintledId=null),null!=this.siteService.singleresult.GSTLedId&&this.siteService.singleresult.GSTLedId>0||(this.bookingservice.singleresult.GSTLedId=null),null!=this.siteService.singleresult.OthLedId&&this.siteService.singleresult.OthLedId>0||(this.bookingservice.singleresult.OthLedId=null))})}autoCalculateLoanOCR(){if(this.bookingservice.singleresult.stmp>
10)0==this.bookingservice.singleresult.p_Terms.filter(e=>"StampDuty"==e.PaytpId).length?this.addPaymentTerms("StampDuty",this.bookingservice.singleresult.stmp,null,0,null,"Stamp duty",-1):this.bookingservice.singleresult.p_Terms.filter(e=>"StampDuty"==e.PaytpId)[0].AmtVal=this.bookingservice.singleresult.stmp;else if(this.bookingservice.singleresult.p_Terms.filter(e=>"StampDuty"==e.PaytpId).length>0){var e=this.bookingservice.singleresult.p_Terms.filter(e=>"StampDuty"==e.PaytpId)[0].index;this.removePaymentTerm(e)}this.bookingservice.singleresult.gstchrge>0?0==this.bookingservice.singleresult.p_Terms.filter(e=>"GST"==e.PaytpId).length?this.addPaymentTerms("GST",this.bookingservice.singleresult.gstchrge,null,0,null,"GST",-1):this.bookingservice.singleresult.p_Terms.filter(e=>"GST"==e.PaytpId)[0].AmtVal=this.bookingservice.singleresult.gstchrge:this.bookingservice.singleresult.p_Terms.filter(e=>"GST"==e.PaytpId).length>0&&(e=this.bookingservice.singleresult.p_Terms.filter(e=>"GST"==e.PaytpId)[0].index,this.removePaymentTerm(e)),this.bookingservice.singleresult.OtherGst>0?0==this.bookingservice.singleresult.p_Terms.filter(e=>"Other GST"==e.PaytpId).length?this.addPaymentTerms("Other GST",this.bookingservice.singleresult.OtherGst,null,0,null,"Other GST",-1):this.bookingservice.singleresult.p_Terms.filter(e=>"Other GST"==e.PaytpId)[0].AmtVal=this.bookingservice.singleresult.OtherGst:this.bookingservice.singleresult.p_Terms.filter(e=>"Other GST"==e.PaytpId).length>0&&(e=this.bookingservice.singleresult.p_Terms.filter(e=>"Other GST"==e.PaytpId)[0].index,this.removePaymentTerm(e)),this.bookingservice.singleresult.carParkCrg>0?0==this.bookingservice.singleresult.p_Terms.filter(e=>"Car Charges"==e.PaytpId).length?this.addPaymentTerms("Car Charges",this.bookingservice.singleresult.carParkCrg,null,0,null,"Car Charges",-1):this.bookingservice.singleresult.p_Terms.filter(e=>"Car Charges"==e.PaytpId)[0].AmtVal=this.bookingservice.singleresult.carParkCrg:this.bookingservice.singleresult.p_Terms.filter(e=>"Car Charges"==e.PaytpId).length>0&&(e=this.bookingservice.singleresult.p_Terms.filter(e=>"Car Charges"==e.PaytpId)[0].index,this.removePaymentTerm(e)),this.bookingservice.singleresult.buildProCost>0?0==this.bookingservice.singleresult.p_Terms.filter(e=>"Building Protection"==e.PaytpId).length?this.addPaymentTerms("Building Protection",this.bookingservice.singleresult.buildProCost,null,0,null,"Building Protection",-1):this.bookingservice.singleresult.p_Terms.filter(e=>"Building Protection"==e.PaytpId)[0].AmtVal=this.bookingservice.singleresult.buildProCost:this.bookingservice.singleresult.p_Terms.filter(e=>"Building Protection"==e.PaytpId).length>0&&(e=this.bookingservice.singleresult.p_Terms.filter(e=>"Building Protection"==e.PaytpId)[0].index,this.removePaymentTerm(e)),this.bookingservice.singleresult.regisCost>0?0==this.bookingservice.singleresult.p_Terms.filter(e=>"Registration Cost"==e.PaytpId).length?this.addPaymentTerms("Registration Cost",this.bookingservice.singleresult.regisCost,null,0,null,"Registration Cost",-1):this.bookingservice.singleresult.p_Terms.filter(e=>"Registration Cost"==e.PaytpId)[0].AmtVal=this.bookingservice.singleresult.regisCost:this.bookingservice.singleresult.p_Terms.filter(e=>"Registration Cost"==e.PaytpId).length>0&&(e=this.bookingservice.singleresult.p_Terms.filter(e=>"Registration Cost"==e.PaytpId)[0].index,this.removePaymentTerm(e)),this.bookingservice.singleresult.Othval>0&&1!=this.bookingservice.singleresult.Isothchar?0==this.bookingservice.singleresult.p_Terms.filter(e=>"OTHER"==e.PaytpId).length?this.addPaymentTerms("OTHER",this.bookingservice.singleresult.Othval,null,0,null,"OTHER",-1):this.bookingservice.singleresult.p_Terms.filter(e=>"OTHER"==e.PaytpId)[0].AmtVal=this.bookingservice.singleresult.Othval:this.bookingservice.singleresult.p_Terms.filter(e=>"OTHER"==e.PaytpId).length>0&&(e=this.bookingservice.singleresult.p_Terms.filter(e=>"OTHER"==e.PaytpId)[0].index,this.removePaymentTerm(e)),this.bookingservice.singleresult.docchrge>0&&1!=this.bookingservice.singleresult.IsDoccharge?0==this.bookingservice.singleresult.p_Terms.filter(e=>"DOC-Charge"==e.PaytpId).length?this.addPaymentTerms("DOC-Charge",this.bookingservice.singleresult.docchrge,null,0,null,"Doc. Charge",-1):this.bookingservice.singleresult.p_Terms.filter(e=>"DOC-Charge"==e.PaytpId)[0].AmtVal=this.bookingservice.singleresult.docchrge:this.bookingservice.singleresult.p_Terms.filter(e=>"DOC-Charge"==e.PaytpId).length>0&&(e=this.bookingservice.singleresult.p_Terms.filter(e=>"DOC-Charge"==e.PaytpId)[0].index,this.removePaymentTerm(e)),this.bookingservice.singleresult.maintchrge>0&&1!=this.bookingservice.singleresult.Ismainchrge?0==this.bookingservice.singleresult.p_Terms.filter(e=>"Main-Charge"==e.PaytpId).length?this.addPaymentTerms("Main-Charge",this.bookingservice.singleresult.maintchrge,null,0,null,"Maintanance. Charge",-1):this.bookingservice.singleresult.p_Terms.filter(e=>"Main-Charge"==e.PaytpId)[0].AmtVal=this.bookingservice.singleresult.maintchrge:this.bookingservice.singleresult.p_Terms.filter(e=>"Main-Charge"==e.PaytpId).length>0&&(e=this.bookingservice.singleresult.p_Terms.filter(e=>"Main-Charge"==e.PaytpId)[0].index,this.removePaymentTerm(e)),this.changeLoan()}changeLoan(){var e=JSON.parse(JSON.stringify(this.bookingservice.singleresult.p_Terms.filter(e=>"LOAN-OCR"==e.PaytpId)));this.bookingservice.singleresult.p_Terms=this.bookingservice.singleresult.p_Terms.filter(e=>"LOAN-OCR"!=e.PaytpId),this.totLoan=0,this.totOCR=0;let t=this.getNumeric(this.bookingservice.singleresult.agrval),i=this.getNumeric(this.bookingservice.singleresult.LoanAmt),n=t-i;if(t>0&&null!=this.siteService.singleresult.payTerms&&null!=this.siteService.singleresult.payTerms&&this.siteService.singleresult.payTerms.length>0)for(var s=0;s<this.siteService.singleresult.payTerms.length;s++){let o=this.siteService.singleresult.payTerms[s].Prcntge+"% "+this.siteService.singleresult.payTerms[s].Trms,l=this.getNumeric(t*this.siteService.singleresult.payTerms[s].Prcntge/100),a=0,c=0;if(n>0&&n>=l?(a=0,c=l,n-=l):n>0?(c=n,a=l-c,n=0,i-=a):(c=0,a=l,i-=l),0==e.filter(e=>e.Nurr==o).length)this.addPaymentTerms("LOAN-OCR",a,null,c,null,o,-1);else{let t=e.filter(e=>e.Nurr==o)[0];t.AmtVal=a,t.OCRAmtVal=c,this.bookingservice.singleresult.p_Terms.push(t);let i=e.filter(e=>e.spitOfIndex==t.index);for(var r=0;r<i.length;r++)this.bookingservice.singleresult.p_Terms.push(i[r])}}}indexTracker(e){return e}cancel(){if(setTimeout(()=>{this.filterService.changeFilter(!0,!0,"booking-form List")}
1,200),this.BookingredirectOnCancel)if("true"==this.BookingVoucher)if(""!=this.httpfunction.getStorage("_filterData")){let t=JSON.parse(this.httpfunction.getStorage("_filterData")).reverse();if(null!=t&&null!=t){var e=t.find(e=>"Daybook"==e.Module||"Outstanding Payable"==e.Module||"Outstanding Receivable"==e.Module);this.router.navigate(null!=e||null!=e?"true"==this.BookingVoucher&&"Ledger"==e.SearchFilter[0].PageType?["/transactions/ledger"]:"true"==this.BookingVoucher&&"Group"==e.SearchFilter[0].PageType?["/transactions/group"]:"true"==this.BookingVoucher&&"Monthly Summary"==e.SearchFilter[0].PageType?["/reports/monthlysummary/"+e.SearchFilter[0].LedgerId]:"true"==this.BookingVoucher&&"Finalize"==e.SearchFilter[0].PageType?["/transactions/finalize"]:"true"==this.BookingVoucher&&"Restorevoucher"==e.SearchFilter[0].PageType?["/transactions/restorevoucher"]:"true"==this.BookingVoucher&&"Daybook"==e.SearchFilter[0].PageType?["/transactions/daybook"]:"true"==this.BookingVoucher&&"Outstanding Payable"==e.SearchFilter[0].PageType?["/reports/outstandingpayble"]:"true"==this.BookingVoucher&&"Outstanding Receivable"==e.SearchFilter[0].PageType?["/reports/outstandingrecivable"]:["/marketing/bookinglist"]:["/marketing/bookinglist"])}}else this.router.navigate(["/marketing/bookinglist"]);else this.router.navigate(["/marketing/bookinglist"]);else this.IsSiteStructureBooking?this.location.back():this.BookingredirectAction.emit(null)}onTemplateChange(e){this.bookingservice.singleresult.TI=null!=e?e.UIDN:null}dueDtChange(){this.p_TermsRev=[],this.p_TermsRev=[],this.cmWrkPr=0,this.DueAmtcmWrkPr=0;var e=this.bookingservice.singleresult.p_Terms.length;if(1==this.bookingservice.singleresult.IsDueDt){for(let t=0;t<e;t++)this.p_TermsRev.push(this.bookingservice.singleresult.p_Terms.filter(e=>0==e.flag)[t]),this.p_TermsPer.push(this.bookingservice.singleresult.p_Terms.filter(e=>1==e.flag)[t]);for(let e=0;e<this.p_TermsPer.length;e++)this.cmWrkPr+=this.getNumeric(this.p_TermsPer[e].Prcntge),this.DueAmtcmWrkPr+=this.getNumeric(this.p_TermsPer[e].OCRAmtVal)}}OnSubmit(){if(this.f.valid){var e=!0;let s=0,r=0,o=0;if(null!=this.bookingservice.singleresult.p_Terms&&null!=this.bookingservice.singleresult.p_Terms&&this.bookingservice.singleresult.p_Terms.length>0)for(var t=0;t<this.bookingservice.singleresult.p_Terms.length;t++)if(!("LOAN-OCR"==this.bookingservice.singleresult.p_Terms[t].PaytpId&&this.bookingservice.singleresult.p_Terms[t].spitOfIndex>=0)){var i=[];if("LOAN-OCR"==this.bookingservice.singleresult.p_Terms[t].PaytpId&&(r+=this.getNumeric(this.bookingservice.singleresult.p_Terms[t].AmtVal),o+=this.getNumeric(this.bookingservice.singleresult.p_Terms[t].OCRAmtVal),(i=this.bookingservice.singleresult.p_Terms.filter(e=>e.spitOfIndex==this.bookingservice.singleresult.p_Terms[t].index)).length>0)){let s=0;for(var n=0;n<i.length;n++){if(this.bookingservice.singleresult.IsCommdate&&null==i[n].OCRDueD&&this.getNumeric(i[n].OCRAmtVal)>0){this.alertservice.showError("Error","Please enter date and amount in payment terms"),e=!1;break}e&&(s+=this.getNumeric(i[n].OCRAmtVal))}if(this.getNumeric(this.bookingservice.singleresult.p_Terms[t].OCRAmtVal)!=s){this.alertservice.showError("Error","OCR split amount must matched with total Ocr Amount."),e=!1;break}}if(this.bookingservice.singleresult.IsCommdate&&null==this.bookingservice.singleresult.p_Terms[t].DueD&&this.getNumeric(this.bookingservice.singleresult.p_Terms[t].AmtVal)>0){this.alertservice.showError("Error","Please enter date and amount in payment terms"),e=!1;break}if(0==i.length&&this.bookingservice.singleresult.IsCommdate&&null==this.bookingservice.singleresult.p_Terms[t].OCRDueD&&this.getNumeric(this.bookingservice.singleresult.p_Terms[t].OCRAmtVal)>0){this.alertservice.showError("Error","Please enter date and amount in payment terms"),e=!1;break}s+=this.getNumeric(this.bookingservice.singleresult.p_Terms[t].AmtVal)+this.getNumeric(this.bookingservice.singleresult.p_Terms[t].OCRAmtVal)}if(e&&r!=this.bookingservice.singleresult.LoanAmt&&(e=!1,this.alertservice.showError("Error","Payment Terms did not matched with the Loan Amount")),e&&Math.round(r+o)!=Math.round(this.bookingservice.singleresult.agrval)&&(e=!1,this.alertservice.showError("Error","Load and OCR terms should be matched with agreement value")),e){let t=this.getNumeric(this.bookingservice.singleresult.agrval);1!=this.bookingservice.singleresult.Issocchrge&&(t+=this.getNumeric(this.bookingservice.singleresult.socchrge)),1!=this.bookingservice.singleresult.IsDoccharge&&(t+=this.getNumeric(this.bookingservice.singleresult.docchrge)),1!=this.bookingservice.singleresult.Ismainchrge&&(t+=this.getNumeric(this.bookingservice.singleresult.maintchrge)),1!=this.bookingservice.singleresult.Isothchar&&(t+=this.getNumeric(this.bookingservice.singleresult.otherchrge)),t+=this.getNumeric(this.bookingservice.singleresult.gstchrge),t+=this.getNumeric(this.bookingservice.singleresult.stmp),t+=this.getNumeric(this.bookingservice.singleresult.OtherGst),t+=this.getNumeric(this.bookingservice.singleresult.carParkCrg),t+=this.getNumeric(this.bookingservice.singleresult.buildProCost),t+=this.getNumeric(this.bookingservice.singleresult.regisCost),s.toFixed(2)!=t.toFixed(2)&&(e=!1,this.alertservice.showError("Error","Payment Tems did not matched with the agreement , GST, stampduty and other amount"))}e&&(null!=this.bankService.singleresult&&!this.httpfunction.IsMobileview()&&(this.bookingservice.singleresult.BankId=this.bankService.singleresult.UIDN,this.bookingservice.singleresult.BankName=this.bankService.singleresult.BN),this.bookingservice.singleresult.custledgename=this.custledger.LN,this.bookingservice.singleresult.CusLedgerId=this.custledger.UIDN,null==this.bookingservice.singleresult.CusParentLedgerId&&!(null!=this.siteService.singleresult.flatgroupId&&this.siteService.singleresult.flatgroupId>0)&&(this.bookingservice.singleresult.CusParentLedgerId=0),null!=this.bookingservice.singleresult.UIDN&&null!=this.bookingservice.singleresult.UIDN&&this.bookingservice.singleresult.UIDN>0?(this.bookingservice.singleresult.CI=this.bookingservice.getCompanyId,this.bookingservice.Upd
1ate(this.bookingservice.singleresult).subscribe(e=>{this.BookingredirectOnCancel?(setTimeout(function(){var t=window.open(e,"_blank");t.focus(),t.print(),t.onload=function(){window.close()}},200),setTimeout(()=>{this.filterService.changeFilterWithbottomfilter(!0,!0,"Booking List")},200),this.cancel()):null==e?this.alertservice.showError("Error","There is some error occured. Please check sales/journal entries before booking of this flat again"):this.BookingredirectAction.emit(e)},()=>{})):this.bookingservice.add(this.bookingservice.singleresult).subscribe(e=>{window.dispatchEvent(new CustomEvent("work-entity-updated",{detail:{entityType:"BOOKING",entityId:this.bookingservice.singleresult.UIDN,sourceInquiryId:this.bookingservice.singleresult.InqId}})),this.BookingredirectOnCancel?(setTimeout(()=>{this.filterService.changeFilterWithbottomfilter(!0,!0,"Booking List")},200),this.router.navigate(["/marketing/bookinglist"])):-1==this.InquiryId?this.BookingredirectAction.emit(e):null==e?this.alertservice.showError("Error","There is some error occured. Please check sales/journal entries before booking of this flata again"):(setTimeout(function(){var t=window.open(e,"_blank");t.focus(),t.print(),t.onload=function(){window.close()}},200),this.BookingredirectAction.emit(e))},()=>{}))}}}return e.\u0275fac=function(t){return new(t||e)(s.Y36(f.l),s.Y36(m.i),s.Y36(V.v),s.Y36(Y),s.Y36(A.P),s.Y36(v.gz),s.Y36(b.Ye),s.Y36(c.De),s.Y36(v.F0),s.Y36(T.Rq),s.Y36(s.R0b),s.Y36(p.Q),s.Y36(K.P),s.Y36(W.y))},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-booking-form"]],viewQuery:function(e,t){if(1&e&&(s.Gf(ne,7,s.SBq),s.Gf(se,7)),2&e){let e;s.iGM(e=s.CRH())&&(t.NameOnAgreementInput=e.first),s.iGM(e=s.CRH())&&(t.f=e.first)}},inputs:{BookingVoucher:"BookingVoucher",isShowConditionDest:"isShowConditionDest",BookingredirectOnCancel:"BookingredirectOnCancel",IsSiteStructureBooking:"IsSiteStructureBooking",SiteId:"SiteId",InquiryId:"InquiryId",CustomerName:"CustomerName",BookingId:"BookingId",SiteStructure:"SiteStructure",customerId:"customerId"},outputs:{BookingredirectAction:"BookingredirectAction"},features:[s._Bn([T.Rq,f.l,Y,K.P,p.Q,W.y,V.v])],decls:377,vars:264,consts:[[1,"card"],["class","customsearch",4,"ngIf"],["class","customsearchM",4,"ngIf"],[1,"mb-3"],["entityType","BOOKING",3,"entityId","compact",4,"ngIf"],["name","form","novalidate","",3,"ScrollToInvalid","ngSubmit"],["f","ngForm"],[1,"card","mt-0"],[1,"shadow","p-3","bg-white","rounded"],[1,"row","no-gutters"],[1,"col-sm-6","col-7","bg-primary","text-white"],[1,"pb-2","mb-0","pt-3","pl-3"],[1,"text-uppercase"],[1,"col-sm-6","col-5","bg-danger","text-white"],[1,"pb-0","mb-0","pt-3","pl-3"],[1,"card-header","mb-2","text-black","font-weight-bold","bg-secondary"],[1,"card-body"],[1,"card-text"],[1,"row","m-0","form-group"],[1,"md-form","col-sm-6","col-md-3","form-group","no-gutters"],["for","txtNameOnAgreement",1,"col","col-auto-sm"],["type","text","required","","name","txtNameOnAgreement","placeholder","Please enter Customer Name","value","","id","txtNameOnAgreement",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["txtNameOnAgreement","ngModel"],["class","invalid-feedback",4,"ngIf"],["for","custledgename",1,"col","col-auto-sm"],["selectOnTab","true","required","","name","custledgename","bindLabel","LN","placeholder","Customer Account",3,"items","ngModel","loading","ngModelChange"],["custledgename",""],["ng-header-tmp",""],[1,"md-form","col-sm-6","col-md-6","form-group","no-gutters"],["for","CusParentLedgerId",1,"col","col-auto-sm"],["selectOnTab","true","required","","name","CusParentLedgerId","bindLabel","LN","bindValue","UIDN","placeholder","Select Customer group",3,"items","ngClass","ngModel","loading","ngModelChange"],["CusParentLedgerId","ngModel"],[1,"md-form","col-sm-12","col-md-6","form-group","no-gutters"],["for","AgreementAddress",1,"col","col-auto-sm"],["type","text","required","","name","AgreementAddress","placeholder","Please enter Address as per Aadhar","value","","id","AgreementAddress",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["AgreementAddress","ngModel"],["for","PanNumber",1,"col","col-auto-sm"],["type","text","placeholder","Please Enter PAN Number","pattern","[A-Za-z]{5}\\d{4}[A-Za-z]{1}","name","PanNumber","value","","id","PanNumber",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["PanNumber","ngModel"],["for","AadharNumber",1,"col","col-auto-sm"],["type","number","pattern","^\\d{4}\\d{4}\\d{4}$","placeholder","Please Enter Aadhar Number","name","AadharNumber","value","","id","AadharNumber",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["AadharNumber","ngModel"],["for","AltDate",1,"col","col-auto-sm"],["type","text","appDatepicker","","required","","name","AltDate","id","AltDate",1,"form-control",3,"startDate","selected"],["AltDate",""],["for","txtref",1,"col","col-auto-sm"],["type","text","name","Refby","placeholder","Please Enter Reference","value","","id","txtref",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["Refby","ngModel"],["for","country"],[3,"countryinput","oncountrychange"],["for","states"],[3,"isRequired","StateInput","onStateChange"],["bindLabel","TN","placeholder","Select Template","bindValue","UIDN","name","emailtemplate",3,"virtualScroll","items","loading","ngModel","scrollToEnd","ngModelChange","change"],["emailtemplate","ngModel"],[1,"card-header","mb-2","font-weight-bold","bg-secondary"],[1,"row","m-0"],[1,"col-sm-7","col-md-4","no-gutters","form-group"],[1,"row"],[1,"col-12","input-group"],["for","lblSiteName",1,"col-sm-12","pl-0","font-weight-bold"],[1,"md-form","m-0",2,"max-width","78px"],["type","number","name","Ratesq","required","","placeholder","RERA Area","regexvalue","baserate","id","reratxt",1,"form-control","mt-0",3,"ngClass","ngModel","ngModelChange"],["Ratesq","ngModel"],["class","invali
1d-feedback offset-2",4,"ngIf"],["type","number","name","Salesqft","required","","placeholder","Saleble Area","regexvalue","baserate","id","saletxt","placeholder","Sale area",1,"form-control","mt-0",3,"ngClass","ngModel","ngModelChange"],["Salesqft","ngModel"],["type","number","name","baseRate","regexvalue","baserate","id","ratetxt","placeholder","Base Rate",1,"form-control","mt-0",3,"ngClass","ngModel","change","ngModelChange"],["baseRate","ngModel"],[1,"md-form","m-0","pl-2",2,"max-width","200px"],[1,"md-form","m-0","pl-2",2,"max-width","100px"],["type","number","name","FltCst","required","","regexvalue","FltCst","id","FltCst","placeholder","Flat Cost",1,"form-control","mt-0",3,"ngClass","ngModel","change","ngModelChange"],["FltCst","ngModel"],[1,"col-sm-6","col-md-3","no-gutters","form-group"],[1,"col-sm-12","input-group"],[1,"pl-0","col-2","mt-4"],[1,"c-switch","c-switch-pill","c-switch-primary","m-2"],["type","checkbox","name","societycheck","id","societycheck",1,"c-switch-input",3,"ngModel","change","ngModelChange"],[1,"c-switch-slider"],[1,"md-form","col-10"],["for","societytxt"],["type","number","placeholder","Please Enter Develop./Infra/Soc./Possession/Other Charges","name","societycharge","id","societytxt",1,"form-control",3,"ngModel","ngClass","pattern","ngModelChange","change"],["societycharge","ngModel"],["class","invalid-feedback offset-2 ",4,"ngIf"],[1,"col-sm-6","col-md-4","no-gutters","form-group"],[1,"switch","pl-0","col-2","mt-3"],["for","docchrge"],["type","number","name","doccahrge","placeholder","Please Enter Document Charge","id","docchrge",1,"form-control",3,"ngModel","ngClass","pattern","change","ngModelChange"],["doccahrge","ngModel"],["type","checkbox","name","Maincheckbox","id","Maincheck",1,"c-switch-input",3,"ngModel","change","ngModelChange"],["for","maintxt"],["type","number","name","maintainchrge","placeholder","Please Enter Maintainance Charge","id","maintxt",1,"form-control",3,"ngModel","ngClass","pattern","change","ngModelChange"],["maintainchrge","ngModel"],[1,"pl-0","col-2","mt-3"],["type","checkbox","name","Othercheckbox","id","othcheck",1,"c-switch-input",3,"ngModel","change","ngModelChange"],["for","Othertxt"],["type","number","name","othercharge","placeholder","Please Enter Other Charge","id","Othertxt",1,"form-control","txtSiteName",3,"ngModel","ngClass","pattern","change","ngModelChange"],["othercharge","ngModel"],[1,"col-sm-3","col-md-3","no-gutters","form-group"],["for","Gsttxt"],["type","number","name","gstcharge","placeholder","Please Enter GST Amount","id","Gsttxt",1,"form-control",3,"ngModel","ngClass","pattern","ngModelChange","change"],["gstcharge","ngModel"],["for","OtherGst"],["type","number","name","OtherGst","placeholder","Please Enter GST Other Amount","id","OtherGst",1,"form-control",3,"ngModel","ngClass","pattern","ngModelChange"],["OtherGst","ngModel"],["for","carParkCrg"],["type","number","name","carParkCrg","placeholder","Please Enter Car Parking Charges","id","carParkCrg",1,"form-control",3,"ngModel","ngClass","pattern","ngModelChange"],["carParkCrg","ngModel"],["for","buildProCost"],["type","number","name","buildProCost","placeholder","Please Enter Building Protection Cost","id","buildProCost",1,"form-control",3,"ngModel","ngClass","pattern","ngModelChange"],["buildProCost","ngModel"],[1,"col-sm-6","col-md-3","no-border","no-gutters","form-group"],["for","stmptxt"],["type","number","name","stampdutychrge","placeholder","Please Enter Stamp Duty amount","id","stmptxt",1,"form-control","txtSiteName",3,"ngModel","ngClass","pattern","ngModelChange","change"],["stampdutychrge","ngModel"],["for","regisCost"],["type","number","name","regisCost","placeholder","Please Enter Registration amount","id","stmptxt",1,"form-control","txtSiteName",3,"ngModel","ngClass","pattern","ngModelChange","change"],["regisCost","ngModel"],["for","AlwCarPark"],["type","number","name","AlwCarPark","placeholder","Please Enter Allowed Car Parking","id","stmptxt",1,"form-control","txtSiteName",3,"ngModel","ngClass","pattern","ngModelChange"],["AlwCarPark","ngModel"],["for","TknBookAmt"],["type","number","name","TknBookAmt","placeholder","Please Enter Token Booking Amou
1nt","id","stmptxt",1,"form-control","txtSiteName",3,"ngModel","ngClass","pattern","ngModelChange"],["TknBookAmt","ngModel"],[1,"col-md-3","col-sm-6","md-form","form-group","no-gutters"],["for","AggrementLedger"],["selectOnTab","true","name","AggrementLedger","bindLabel","LN","bindValue","UIDN","placeholder","Select Agreement Ledger",3,"items","required","ngClass","ngModel","loading","ngModelChange"],["AggrementLedger","ngModel"],["for","lblpayment",1,"font-weight-bold"],["for","MaintLedger"],["selectOnTab","true","name","MaintLedger","bindLabel","LN","bindValue","UIDN","placeholder","Select Maintanance Ledger",3,"items","required","ngClass","ngModel","loading","ngModelChange"],["MaintLedger","ngModel"],["for","FLedgerforGst"],["selectOnTab","true","name","FLedgerforGst","bindLabel","LN","bindValue","UIDN","placeholder","Select GST Account",3,"items","required","ngClass","ngModel","loading","ngModelChange"],["FLedgerforGst","ngModel"],["for","lblgst",1,"font-weight-bold"],["for","OtherGSTLedId"],["selectOnTab","true","name","OtherGSTLedId","bindLabel","LN","bindValue","UIDN","placeholder","Select Other GST Account",3,"items","required","ngClass","ngModel","loading","ngModelChange"],["OtherGSTLedId","ngModel"],["for","carParkingLedger"],["selectOnTab","true","name","carParkingLedger","bindLabel","LN","bindValue","UIDN","placeholder","Select Other GST Account",3,"items","required","ngClass","ngModel","loading","ngModelChange"],["carParkingLedger","ngModel"],["for","buildingProtecLgr"],["selectOnTab","true","name","buildingProtecLgr","bindLabel","LN","bindValue","UIDN","placeholder","Select Building Protection Account",3,"items","required","ngClass","ngModel","loading","ngModelChange"],["buildingProtecLgr","ngModel"],["for","FLedgerforOther"],["selectOnTab","true","name","FLedgerforOther","bindLabel","LN","bindValue","UIDN","placeholder","Select Other Account",3,"items","required","ngClass","ngModel","loading","ngModelChange"],["FLedgerforOther","ngModel"],["for","lblother",1,"font-weight-bold"],[1,"col-sm-6","col-md-3","md-form","form-group","no-gutters"],["for","Bankdetail"],["selectOnTab","true","name","Bankdetail","bindLabel","BN","placeholder","Select Bank",3,"items","required","ngClass","ngModel","loading","ngModelChange"],["Bankdetail","ngModel"],["for","lblbank",1,"font-weight-bold"],["for","LoanAmt"],["type","number","name","LoanAmt","id","LoanAmttxt",1,"form-control",3,"ngModel","ngClass","pattern","change","ngModelChange"],["LoanAmt","ngModel"],["for","LoanAmttxt",1,"font-weight-bold"],[1,"row","col-md-3","col-sm-12","mt-4"],[1,"c-switch","c-switch-pill","c-switch-primary","mb-2"],["type","checkbox","id","customSwitch1",1,"c-switch-input",3,"checked","change"],[1,"mb-2","ml-2","mt-1"],[1,"col-sm-12","col-md-12","table-responsive"],[1,"table-sm","table","table-striped","col-sm-12","col-md-12",2,"margin-bottom","40px"],[1,"grey","lighten-1","text-black","font-weight-bold"],[4,"ngIf"],["class","bg-info mt-4 mb-4",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"col-sm-6","md-form","col-md-3","no-gutters"],["for","PayNurration"],["type","text","id","PayNurration","rows","1","name","Nurration","placeholder","Please Enter Term if any",1,"form-control",3,"ngModel","ngClass","ngModelChange"],["Nurration","ngModel"],[1,"col-sm-6","md-form","col-md-3","form-group","no-gutters"],["for","pType"],["name","pType","placeholder","Select payment type",1,"col-sm-12","col-12",3,"ngModel","ngClass","ngModelChange"],["pType","ngModel"],["value",""],["value","LOAN-OCR"],[1,"col-sm-6","col-md-2","md-form","form-group","no-gutters"],["for","amunttxt"],["type","number","placeholder","Please Enter Amount","name","Amount","id","amunttxt",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["Amount","ngModel"],["for","DueDate"],["type","text","appDatepicker","","placeholder","Please select Due Date","autocomplete","none","name","DueDate","id","DueDate",1,"form-control",3,"ngClass","startDate","selected"],["DueDate",""],["class","col-sm-6 col-md-3 form-group no-gutters",4,"ngIf"],[1,"col-sm-6","col-md-4","mb-4","pb-2","form-group","no-gutters","m-0"],["type","button",1,"btn","btn-primary",3,"click"],["class","col-sm-12 pl-2 text-right","id","formbtnContainer",4,"ngIf"],["class","navbar fixed-bottom navbar-expand-sm navbar-dark bg-light ab-mobile-form-actions",4,"ngIf"],[3,"isMobilePopup","CompanyIdforReport","redirectOnCancel","redirectAction",4,"ngIf"],[1,"customsearch"],[1,"c-header-nav"],[1,"mx-2","mb-3"],[1,"c-header-back",3,"click"],[1,"c-icon","c-icon-lg","cil-arrow-left"],[1,"text-center","mb-3","LeftLi"],[1,"customsearchM"],[1,"mr-1","mb-2","ml-2"],["name","chevron-back",3,"click"],[1,"mb-3","mt-1","LeftLi","text-center"],[1,"btn","btn-link",3,"click"],["entityType","BOOKING",3,"entityId","compact"],[1,"invalid-feedback"],[1,"form-text","text-muted"],["href","javascript:void(0);",1,"addLeg",3,"click"],[1,"invalid-feedback","offset-2"],[1,"md-form"],["type","number","style","min-width:95px;","class","form-control col-12 float-left","required","",3,"ngClass","ngModel","name","id","ngModelChange",4,"ngIf"],["type","text","style","min-width:95px;","class","form-control col-12 float-left","appDatepicker","","placeholder","Select Date",3,"ngClass","ngModel","name","id","required","selectedindex",4,"ngIf"],["type","number","style","min-width:95px;","class","form-control col-12 float-left","required","",3,"disabled","ngClass","ngModel","name","id","ngModelChange",4,"ngIf"],[1,"md-form",2,"min-width","190px"],["type","text","class","form-control col-12 float-left","appDatepicker","","placeholder","Select Date",3,"ngClass","ngModel","name","id","required","selectedindex",4,"ngIf"],["class","pr-2","href","javascript:void(0)",3,"click",4,"ngIf"],["href","javascript:void(0)",3,"click",4,"ngIf"],["type","number","required","",1,"form-control","col-12","float-left",2,"min-width","95px",3,"ngClass","ngModel","name","id","ngModelChange"],["trmAmt","ngModel"],["type","text","appDatepicker","","placeholder","Select Date",1,"form-control","col-12","float-left",2,"min-width","95px",3,"ngClass","ngModel","name","id","required","selectedindex"],["trmdate","ngModel"],["type","number","required","",1,"form-control","col-12","float-left",2,"min-width","95px",3,"disabled","ngClass","ngModel","name","id","ngModelChange"],["OCRtrmAmt","ngModel"],["type","text","appDatepicker","","placeholder","Select Date",1,"form-control","col-12","float-left",3,"ngClass","ngModel","name","id","required","selectedindex"],["OCRtrmdate","ngModel"],["href","javascript:void(0)",1,"pr-2",3,"click"],["href","javascript:void(0)",3,"click"],[1,"bg-info","mt-4","mb-4"],[1,"col-sm-6","col-md-3","form-group","no-gutters"],[1,"col-sm-12"],["type","text","name","OCRAmount","placeholder","Amount","id","amunttxt",1,"form-control","col-12","float-left",3,"ngClass","ngModel","ngModelChange"],["OCRAmount","ngModel"],["type","text","appDatepicker","","autocomplete","none","placeholder","Due date","name","OCRDueDate","id","OCRDueDate",1,"form-control",3,"ngClass","startDate","selected"],["OCRDueDate",""],["id","formbtnContainer",1,"col-sm-12","pl-2","text-right"],["type","submit",1,"btn","btn-primary","mr-2"],["href","javascript:void(0)",1,"btn","btn-dark",3,"click"],[1,"navbar","fixed-bottom","navbar-expand-sm","navbar-dark","bg-light","ab-mobile-form-actions"],[1,"navbar-nav","ml-auto","d-flex","flex-row-reverse","bd-highlight"],[1,"nav-item","active"],["type","submit",1,"btn","btn-primary"],[1,"nav-item","active","mr-2"],[3,"isMobilePopup","CompanyIdforReport","redirectOnCancel","redirectAction"]],template:function(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",0),s.YNc(1,re,10,0,"div",1),s.YNc(2,oe,12,1,"div",2),s.TgZ(3,"div",3),s.YNc(4,le,1,2,"erp-work-panel",4),s.TgZ(5,"form",5,6),s.NdJ("ngSubmit",function(){return t.OnSubmit()}),s.TgZ(7,"div",7),s.TgZ(8,"div",8),s.TgZ(9,"div",9),s.TgZ(10,"div",10),s.TgZ(11,"address",11),s.TgZ(12,"strong",12),s._uU(13),s.qZA(),s._UZ(14,"br"),s._uU(15),s._UZ(16,"br"),s._uU(17),s._UZ(18,"br"),s._uU(19),s.qZA(),s.qZA(),s.TgZ(20,"div",13),s.TgZ(21,"address",14),s.TgZ(22,"strong",12),s._uU(23),s.qZA(),s._UZ(24,"br"),s._uU(25),s._UZ(26,"br"),s._uU(27),s._UZ(28,"br"),s._uU(29),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(30,"div",0),s.TgZ(31,"div",15),s._uU(32,"Personal Details"),s.qZA(),s.TgZ(33,"div",16),s.TgZ(34,"div",17),s.TgZ(35,"div",18),s.TgZ(36,"div",19),s.TgZ(37,"label",20),s._uU(38," Name on Agreement "),s.qZA(),s.TgZ(39,"input",21,22),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.NameOnAgreement=e}),s.qZA(),s.YNc(41,ce,2,1,"div",23),s.qZA(),s.TgZ(42,"div",19),s.TgZ(43,"label",24),s._uU(44," Customer Account "),s.qZA(),s.TgZ(45,"ng-select",25,26),s.NdJ("ngModelChange",function(e){return t.custledger=e}),s.YNc(47,ge,3,0,"ng-template",27),s.qZA(),s.qZA(),s.TgZ(48,"div",28),s.TgZ(49,"label",29),s._uU(50,"Customer group"),s.qZA(),s.TgZ(51,"ng-select",30,31),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.CusParentLedgerId=e}),s.qZA(),s.YNc(53,ue,2,1,"div",23),s.qZA(),s.TgZ(54,"div",32),s.TgZ(55,"label",33),s._uU(56," Address as per Aadhar "),s.qZA(),s.TgZ(57,"input",34,35),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.AgreementAddress=e}),s.qZA(),s.YNc(59,me,2,1,"div",23),s.qZA(),s.TgZ(60,"div",19),s.TgZ(61,"label",36),s._uU(62,"PAN Number"),s.qZA(),s.TgZ(63,"input",37,38),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.PanNumber=e}),s.qZA(),s.YNc(65,Te,3,2,"div",23),s.qZA(),s.TgZ(66,"div",19),s.TgZ(67,"label",39),s._uU(68,"Aadhar Number"),s.qZA(),s.TgZ(69,"input",40,41),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.AadharNumber=e}),s.qZA(),s.YNc(71,ve,3,2,"div",23),s.qZA(),s.TgZ(72,"div",19),s.TgZ(73,"label",42),s._uU(74,"Allotment Date:"),s.qZA(),s.TgZ(75,"input",43,44),s.NdJ("selected",function(e){return t.onAgreementdateSelect(e)}),s.qZA(),s.YNc(77,Se,2,1,"div",23),s.qZA(),s.TgZ(78,"div",19),s.TgZ(79,"label",45),s._uU(80,"Referance By:"),s.qZA(),s.TgZ(81,"input",46,47),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.RefBy=e}),s.qZA(),s.YNc(83,xe,2,1,"div",23),s.qZA(),s.TgZ(84,"div",19),s.TgZ(85,"label",48),s._uU(86,"Country"),s.qZA(),s.TgZ(87,"app-country",49),s.NdJ("oncountrychange",function(e){return t.bookingservice.singleresult.Country=e}),s.qZA(),s.qZA(),s.TgZ(88,"div",19),s.TgZ(89,"label",50),s._uU(90,"State"),s.qZA(),s.TgZ(91,"app-states",51),s.NdJ("onStateChange",function(e){return t.bookingservice.singleresult.State=e}),s.qZA(),s.qZA(),s.TgZ(92,"div",19),s.TgZ(93,"label",29),s._uU(94,"Template"),s.qZA(),s.TgZ(95,"ng-select",52,53),s.NdJ("scrollToEnd",function(){return t.emailtemp.ScrollDown()})("ngModelChange",function(e){return t.bookingservice.singleresult.TI=e})("change",function(e){return t.onTemplateChange(e)}
1),s.YNc(97,ke,2,2,"ng-template",27),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(98,"div",0),s.TgZ(99,"div",54),s._uU(100,"Payment/Site Structure Details"),s.qZA(),s.TgZ(101,"div",16),s.TgZ(102,"div",17),s.TgZ(103,"div",55),s.TgZ(104,"div",56),s.TgZ(105,"div",57),s.TgZ(106,"div",58),s.TgZ(107,"span",59),s._uU(108,"Flat Cost:"),s.qZA(),s.TgZ(109,"div",60),s.TgZ(110,"input",61,62),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.bssqft=e}),s.qZA(),s.YNc(112,Me,2,1,"div",63),s.qZA(),s.TgZ(113,"div",60),s.TgZ(114,"input",64,65),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.salesqft=e}),s.qZA(),s.YNc(116,Ne,2,1,"div",63),s.qZA(),s.TgZ(117,"div",60),s.TgZ(118,"input",66,67),s.NdJ("change",function(){return t.onCheck(),t.CalculateGST(),t.CalculateStamp(),t.autoCalculateLoanOCR()})("ngModelChange",function(e){return t.bookingservice.singleresult.bsrate=e}),s.qZA(),s.YNc(120,_e,2,1,"div",63),s.qZA(),s.qZA(),s.TgZ(121,"div",68),s._uU(122," Calculated Flat Cost "),s.qZA(),s.TgZ(123,"div",69),s.TgZ(124,"input",70,71),s.NdJ("change",function(){return t.onChangeTotalCost(),t.CalculateGST(),t.CalculateStamp(),t.autoCalculateLoanOCR()})("ngModelChange",function(e){return t.bookingservice.singleresult.FltCst=e}),s.qZA(),s.YNc(126,we,1,0,"div",63),s.qZA(),s.qZA(),s.qZA(),s.TgZ(127,"div",72),s.TgZ(128,"div",73),s.TgZ(129,"div",74),s.TgZ(130,"label",75),s.TgZ(131,"input",76),s.NdJ("change",function(){return t.onCheck(),t.CalculateStamp(),t.CalculateGST(),t.autoCalculateLoanOCR()})("ngModelChange",function(e){return t.bookingservice.singleresult.Issocchrge=e}),s.qZA(),s._UZ(132,"span",77),s.qZA(),s.qZA(),s.TgZ(133,"div",78),s.TgZ(134,"label",79),s._uU(135,"Develop./Infra/Soc./Possession/Other Charges"),s.qZA(),s.TgZ(136,"input",80,81),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.socchrge=e})("change",function(){return t.onCheck(),t.CalculateStamp(),t.CalculateGST()}),s.qZA(),s.YNc(138,De,2,1,"div",82),s.qZA(),s.qZA(),s.qZA(),s.TgZ(139,"div",83),s.TgZ(140,"div",73),s._UZ(141,"div",84),s.TgZ(142,"div",78),s.TgZ(143,"label",85),s._uU(144,"Document Charge"),s.qZA(),s.TgZ(145,"input",86,87),s.NdJ("change",function(){return t.onCheck(),t.CalculateStamp(),t.CalculateGST()})("ngModelChange",function(e){return t.bookingservice.singleresult.docchrge=e}),s.qZA(),s.YNc(147,Le,2,1,"div",82),s.qZA(),s.qZA(),s.qZA(),s.TgZ(148,"div",72),s.TgZ(149,"div",73),s.TgZ(150,"div",74),s.TgZ(151,"label",75),s.TgZ(152,"input",88),s.NdJ("change",function(){return t.onCheck(),t.CalculateStamp(),t.CalculateGST(),t.autoCalculateLoanOCR()})("ngModelChange",function(e){return t.bookingservice.singleresult.Ismainchrge=e}),s.qZA(),s._UZ(153,"span",77),s.qZA(),s.qZA(),s.TgZ(154,"div",78),s.TgZ(155,"label",89),s._uU(156,"Maintainance Charges:"),s.qZA(),s.TgZ(157,"input",90,91),s.NdJ("change",function(){return t.onCheck(),t.CalculateStamp(),t.autoCalculateLoanOCR(),t.CalculateGST()})("ngModelChange",function(e){return t.bookingservice.singleresult.maintchrge=e}),s.qZA(),s.YNc(159,Pe,2,1,"div",82),s.qZA(),s.qZA(),s.qZA(),s.TgZ(160,"div",72),s.TgZ(161,"div",73),s.TgZ(162,"div",92),s.TgZ(163,"label",75),s.TgZ(164,"input",93),s.NdJ("change",function(){return t.onCheck(),t.CalculateStamp(),t.autoCalculateLoanOCR(),t.CalculateGST()})("ngModelChange",function(e){return t.bookingservice.singleresult.Isothchar=e}),s.qZA(),s._UZ(165,"span",77),s.qZA(),s.qZA(),s.TgZ(166,"div",78),s.TgZ(167,"label",94),s._uU(168,"Other Charge:"),s.qZA(),s.TgZ(169,"input",95,96),s.NdJ("change",function(){return t.onCheck(),t.CalculateStamp(),t.CalculateGST(),t.autoCalculateLoanOCR()})("ngModelChange",function(e){return t.bookingservice.singleresult.otherchrge=e}),s.qZA(),s.YNc(171,Fe,2,1,"div",82),s.qZA(),s.qZA(),s.qZA(),s.TgZ(172,"div",97),s.TgZ(173,"label",98),s._uU(174," GST: "),s.qZA(),s.TgZ(175,"input",99,100),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.gstchrge=e})("change",function(){return t.autoCalculateLoanOCR()}),s.qZA(),s.YNc(177,Re,2,1,"div",82),s.qZA(),s.TgZ(178,"div",97),s.TgZ(179,"label",101),s._uU(180," GST Other: "),s.qZA(),s.TgZ(181,"input",102,103),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.OtherGst=e}),s.qZA(),s.YNc(183,Ge,2,1,"div",82),s.qZA(),s.TgZ(184,"div",97),s.TgZ(185,"label",104),s._uU(186," Car Parking Charges: "),s.qZA(),s.TgZ(187,"input",105,106),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.carParkCrg=e}),s.qZA(),s.YNc(189,Ve,2,1,"div",82),s.qZA(),s.TgZ(190,"div",97),s.TgZ(191,"label",107),s._uU(192," Building Protection Cost: "),s.qZA(),s.TgZ(193,"input",108,109),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.buildProCost=e}),s.qZA(),s.YNc(195,We,2,1,"div",82),s.qZA(),s.TgZ(196,"div",110),s.TgZ(197,"label",111),s._uU(198," Stamp Duty: "),s.qZA(),s.TgZ(199,"input",112,113),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.stmp=e})("change",function(){return t.autoCalculateLoanOCR()}),s.qZA(),s.YNc(201,Ke,2,1,"div",82),s.qZA(),s.TgZ(202,"div",110),s.TgZ(203,"label",114),s._uU(204," Registration Cost: "),s.qZA(),s.TgZ(205,"input",115,116),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.regisCost=e})("change",function(){return t.autoCalculateLoanOCR()}),s.qZA(),s.YNc(207,ze,2,1,"div",82),s.qZA(),s.TgZ(208,"div",110),s.TgZ(209,"label",117),s._uU(210," Allowed Car Parking: "),s.qZA(),s.TgZ(211,"input",118,119),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.NoCarPark=e}),s.qZA(),s.YNc(213,et,2,1,"div",82),s.qZA(),s.TgZ(214,"div",110),s.TgZ(215,"label",120),s._uU(216," Token Booking Amou
1nt: "),s.qZA(),s.TgZ(217,"input",121,122),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.TknBookAmt=e}),s.qZA(),s.YNc(219,it,2,1,"div",82),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(220,"div",0),s.TgZ(221,"div",54),s._uU(222,"Payment Summary"),s.qZA(),s.TgZ(223,"div",16),s.TgZ(224,"div",17),s.TgZ(225,"div",55),s.TgZ(226,"div",123),s.TgZ(227,"label",124),s._uU(228,"Agreement Ledger"),s.qZA(),s.TgZ(229,"ng-select",125,126),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.agrledId=e}),s.qZA(),s.YNc(231,st,2,1,"div",23),s.TgZ(232,"span",127),s._uU(233),s.qZA(),s.qZA(),s.TgZ(234,"div",123),s.TgZ(235,"label",128),s._uU(236,"Maintanance Ledger"),s.qZA(),s.TgZ(237,"ng-select",129,130),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.MaintledId=e}),s.qZA(),s.YNc(239,ot,2,1,"div",23),s.TgZ(240,"span",127),s._uU(241),s.qZA(),s.qZA(),s.TgZ(242,"div",123),s.TgZ(243,"label",131),s._uU(244,"GST Account"),s.qZA(),s.TgZ(245,"ng-select",132,133),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.GSTLedId=e}),s.qZA(),s.YNc(247,at,2,1,"div",23),s.TgZ(248,"span",134),s._uU(249),s.qZA(),s.qZA(),s.TgZ(250,"div",123),s.TgZ(251,"label",135),s._uU(252,"Other GST Account"),s.qZA(),s.TgZ(253,"ng-select",136,137),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.OtherGSTLedId=e}),s.qZA(),s.YNc(255,gt,2,1,"div",23),s.TgZ(256,"span",134),s._uU(257),s.qZA(),s.qZA(),s.TgZ(258,"div",123),s.TgZ(259,"label",138),s._uU(260,"Car Charges Account"),s.qZA(),s.TgZ(261,"ng-select",139,140),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.carParkingLedId=e}),s.qZA(),s.YNc(263,ut,2,1,"div",23),s.TgZ(264,"span",134),s._uU(265),s.qZA(),s.qZA(),s.TgZ(266,"div",123),s.TgZ(267,"label",141),s._uU(268,"Building Protection Account"),s.qZA(),s.TgZ(269,"ng-select",142,143),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.buildingProtectionLedId=e}),s.qZA(),s.YNc(271,mt,2,1,"div",23),s.TgZ(272,"span",134),s._uU(273),s.qZA(),s.qZA(),s.TgZ(274,"div",123),s.TgZ(275,"label",144),s._uU(276,"Other Account"),s.qZA(),s.TgZ(277,"ng-select",145,146),s.NdJ("ngModelChange",function(e){return t.bookingservice.singleresult.OthLedId=e}),s.qZA(),s.YNc(279,ft,2,1,"div",23),s.TgZ(280,"span",147),s._uU(281),s.qZA(),s.qZA(),s.TgZ(282,"div",148),s.TgZ(283,"label",149),s._uU(284,"Bank"),s.qZA(),s.TgZ(285,"ng-select",150,151),s.NdJ("ngModelChange",function(e){return t.bankService.singleresult=e}),s.qZA(),s.YNc(287,Zt,2,1,"div",23),s.TgZ(288,"span",152),s._uU(289,"Bank details:"),s.qZA(),s.qZA(),s.TgZ(290,"div",148),s.TgZ(291,"label",153),s._uU(292,"Loan Amount"),s.qZA(),s.TgZ(293,"input",154,155),s.NdJ("change",function(){return t.changeLoan()})("ngModelChange",function(e){return t.bookingservice.singleresult.LoanAmt=e}),s.qZA(),s.TgZ(295,"span",156),s._uU(296,"Loan Amount:"),s.qZA(),s.qZA(),s.TgZ(297,"div",157),s.TgZ(298,"label",158),s.TgZ(299,"input",159),s.NdJ("change",function(){return t.bookingservice.singleresult.IsCommdate=1!=t.bookingservice.singleresult.IsCommdate}),s.qZA(),s._UZ(300,"span",77),s.qZA(),s.TgZ(301,"span",160),s._uU(302,"Is Commitment Date"),s.qZA(),s.qZA(),s.TgZ(303,"div",157),s.TgZ(304,"label",158),s.TgZ(305,"input",159),s.NdJ("change",function(){return t.bookingservice.singleresult.IsDueDt=1!=t.bookingservice.singleresult.IsDueDt,t.dueDtChange()}),s.qZA(),s._UZ(306,"span",77),s.qZA(),s.TgZ(307,"span",160),s._uU(308,"Is Due Amount"),s.qZA(),s.qZA(),s.TgZ(309,"div",157),s.TgZ(310,"label",158),s.TgZ(311,"input",159),s.NdJ("change",function(){return t.bookingservice.singleresult.IsSJ=1!=t.bookingservice.singleresult.IsSJ}),s.qZA(),s._UZ(312,"span",77),s.qZA(),s.TgZ(313,"span",160),s._uU(314,"Is Sales/Journal Entry"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(315,"div",0),s.TgZ(316,"div",54),s._uU(317," Payment Terms of agreement Value "),s.qZA(),s.TgZ(318,"div",16),s.TgZ(319,"div",17),s.TgZ(320,"div",55),s.TgZ(321,"div",161),s.TgZ(322,"table",162),s.TgZ(323,"thead"),s.TgZ(324,"tr"),s.TgZ(325,"th",163),s._uU(326,"Term"),s.qZA(),s.TgZ(327,"th",163),s._uU(328,"Amount/Loan"),s.qZA(),s.TgZ(329,"th",163),s._uU(330,"Commitment Date"),s.qZA(),s.TgZ(331,"th",163),s._uU(332,"OCR Amount"),s.qZA(),s.TgZ(333,"th",163),s._uU(334,"OCR Commitment Date "),s.qZA(),s.TgZ(335,"th",163),s._uU(336,"Action"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(337,"tbody"),s.YNc(338,Mt,2,2,"ng-container",164),s.YNc(339,qt,7,2,"div",165),s.YNc(340,Lt,2,1,"ng-container",166),s.qZA(),s.qZA(),s.qZA(),s.TgZ(341,"div",167),s.TgZ(342,"label",168),s._uU(343,"Term"),s.qZA(),s.TgZ(344,"input",169,170),s.NdJ("ngModelChange",function(e){return t.Terms.Nurr=e}),s.qZA(),s.YNc(346,Pt,2,1,"div",23),s.qZA(),s.TgZ(347,"div",171),s.TgZ(348,"label",172),s._uU(349,"Payment Type"),s.qZA(),s.TgZ(350,"ng-select",173,174),s.NdJ("ngModelChange",function(e){return t.Terms.PaytpId=e}),s.TgZ(352,"ng-option",175),s._uU(353,"Select Payment Type"),s.qZA(),s.TgZ(354,"ng-option",176),s._uU(355,"LOAN-OCR"),s.qZA(),s.qZA(),s.YNc(356,Ft,2,1,"div",23),s.qZA(),s.TgZ(357,"div",177),s.TgZ(358,"label",178),s._uU(359,"Amount"),s.qZA(),s.TgZ(360,"input",179,180),s.NdJ("ngModelChange",function(e){return t.Terms.AmtVal=e}),s.qZA(),s.YNc(362,Rt,2,1,"div",23),s.qZA(),s.TgZ(363,"div",177),s.TgZ(364,"label",181),s._uU(365,"Due Date"),s.qZA(),s.TgZ(366,"input",182,183),s.NdJ("selected",function(e){return t.onDuedateSelect(e)}),s.qZA(),s.YNc(368,Gt,2,1,"div",23),s.qZA(),s.YNc(369,Ht,7,5,"div",184),s.YNc(370,Kt,7,5,"div",184),s.TgZ(371,"div",185),s.TgZ(372,"button",186),s.NdJ("
1click",function(){s.CHM(e);const i=s.MAs(351),n=s.MAs(361),r=s.MAs(367),o=s.MAs(345);return t.addPaymentTermswithValidation(i.value,n.value,r.value,o.value)}),s._uU(373," Add Payment Term "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(374,jt,5,1,"div",187),s.YNc(375,zt,8,1,"nav",188),s.qZA(),s.qZA(),s.qZA(),s.YNc(376,Xt,1,3,"app-companyledger-addedit",189)}if(2&e){const e=s.MAs(6),i=s.MAs(40),n=s.MAs(52),r=s.MAs(58),o=s.MAs(64),l=s.MAs(70),a=s.MAs(76),c=s.MAs(82),g=s.MAs(111),d=s.MAs(115),u=s.MAs(119),p=s.MAs(125),m=s.MAs(137),h=s.MAs(146),f=s.MAs(158),T=s.MAs(170),Z=s.MAs(176),A=s.MAs(182),v=s.MAs(188),b=s.MAs(194),S=s.MAs(200),C=s.MAs(206),x=s.MAs(212),k=s.MAs(218),I=s.MAs(230),M=s.MAs(238),q=s.MAs(246),N=s.MAs(254),y=s.MAs(262),_=s.MAs(270),w=s.MAs(278),O=s.MAs(286),D=s.MAs(294),E=s.MAs(345),L=s.MAs(351),U=s.MAs(361),P=s.MAs(367);s.Udp("display",t.showCompanyLedgerpopup?"none":"block"),s.xp6(1),s.Q6J("ngIf",!t.bookingservice.IsMobileview),s.xp6(1),s.Q6J("ngIf",t.bookingservice.IsMobileview),s.xp6(2),s.Q6J("ngIf",(null==t.bookingservice.singleresult?null:t.bookingservice.singleresult.UIDN)>0),s.xp6(9),s.lnq(" ",t.customerService.singleresult.FN," ",t.customerService.singleresult.MN," ",t.customerService.singleresult.LN," "),s.xp6(2),s.hij(" Address - ",t.customerService.singleresult.CustAddr,""),s.xp6(2),s.AsE(" (M:) ",t.customerService.singleresult.CNO,", ",t.customerService.singleresult.CNo2,""),s.xp6(2),s.hij(" (E:) ",t.customerService.singleresult.EID," "),s.xp6(4),s.AsE(" ",t.sitestrService.singleresult.StNm," - ",t.sitestrService.singleresult.RmTp," "),s.xp6(2),s.hij(" Building -",t.sitestrService.singleresult.BLNm,""),s.xp6(2),s.hij(" Wing - ",t.sitestrService.singleresult.WingNm,""),s.xp6(2),s.hij(" FlatNo - ",t.sitestrService.singleresult.FltN," "),s.xp6(10),s.Q6J("ngClass",s.VKq(194,At,e.submitted&&i.invalid))("ngModel",t.bookingservice.singleresult.NameOnAgreement),s.xp6(2),s.Q6J("ngIf",e.submitted&&i.invalid),s.xp6(4),s.Q6J("items",t.Customers)("ngModel",t.custledger)("loading",t.companyledgerservice.loading),s.xp6(6),s.Q6J("items",t.CustomerGroupLedger)("ngClass",s.VKq(196,At,e.submitted&&n.invalid))("ngModel",t.bookingservice.singleresult.CusParentLedgerId)("loading",t.companyledgerservice.loading),s.xp6(2),s.Q6J("ngIf",e.submitted&&n.invalid),s.xp6(4),s.Q6J("ngClass",s.VKq(198,At,e.submitted&&r.invalid))("ngModel",t.bookingservice.singleresult.AgreementAddress),s.xp6(2),s.Q6J("ngIf",e.submitted&&r.invalid),s.xp6(4),s.Q6J("ngClass",s.VKq(200,At,e.submitted&&o.invalid))("ngModel",t.bookingservice.singleresult.PanNumber),s.xp6(2),s.Q6J("ngIf",e.submitted&&o.invalid),s.xp6(4),s.Q6J("ngClass",s.VKq(202,At,e.submitted&&l.invalid))("ngModel",t.bookingservice.singleresult.AadharNumber),s.xp6(2),s.Q6J("ngIf",e.submitted&&l.invalid),s.xp6(4),s.Q6J("startDate",t.bookingservice.singleresult.AltDate),s.xp6(2),s.Q6J("ngIf",e.submitted&&a.invalid),s.xp6(4),s.Q6J("ngClass",s.VKq(204,At,e.submitted&&c.invalid))("ngModel",t.bookingservice.singleresult.RefBy),s.xp6(2),s.Q6J("ngIf",c.invalid),s.xp6(4),s.Q6J("countryinput",t.bookingservice.singleresult.Country),s.xp6(4),s.Q6J("isRequired",!0)("StateInput",t.bookingservice.singleresult.State),s.xp6(4),s.Q6J("virtualScroll",!0)("items",t.emailtemp.result)("loading",t.emailtemp.loading)("ngModel",t.bookingservice.singleresult.TI),s.xp6(15),s.Q6J("ngClass",s.VKq(206,At,e.submitted&&g.invalid))("ngModel",t.bookingservice.singleresult.bssqft),s.xp6(2),s.Q6J("ngIf",g.invalid),s.xp6(2),s.Q6J("ngClass",s.VKq(208,At,e.submitted&&d.invalid))("ngModel",t.bookingservice.singleresult.salesqft),s.xp6(2),s.Q6J("ngIf",d.invalid),s.xp6(2),s.Q6J("ngClass",s.VKq(210,At,e.submitted&&u.invalid))("ngModel",t.bookingservice.singleresult.bsrate),s.xp6(2),s.Q6J("ngIf",u.invalid),s.xp6(4),s.Q6J("ngClass",s.VKq(212,At,e.submitted&&p.invalid))("ngModel",t.bookingservice.singleresult.FltCst),s.xp6(2),s.Q6J("ngIf",p.invalid),s.xp6(5),s.Q6J("ngModel",t.bookingservice.singleresult.Issocchrge),s.xp6(5),s.s9C("pattern",t.socratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.socchrge)("ngClass",s.VKq(214,At,e.submitted&&m.invali
1d)),s.xp6(2),s.Q6J("ngIf",m.invalid),s.xp6(7),s.s9C("pattern",t.docratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.docchrge)("ngClass",s.VKq(216,At,e.submitted&&h.invalid)),s.xp6(2),s.Q6J("ngIf",h.invalid),s.xp6(5),s.Q6J("ngModel",t.bookingservice.singleresult.Ismainchrge),s.xp6(5),s.s9C("pattern",t.mainratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.maintchrge)("ngClass",s.VKq(218,At,e.submitted&&f.invalid)),s.xp6(2),s.Q6J("ngIf",f.invalid),s.xp6(5),s.Q6J("ngModel",t.bookingservice.singleresult.Isothchar),s.xp6(5),s.s9C("pattern",t.otherratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.otherchrge)("ngClass",s.VKq(220,At,e.submitted&&T.invalid)),s.xp6(2),s.Q6J("ngIf",T.invalid),s.xp6(4),s.s9C("pattern",t.gstratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.gstchrge)("ngClass",s.VKq(222,At,e.submitted&&Z.invalid)),s.xp6(2),s.Q6J("ngIf",Z.invalid),s.xp6(4),s.s9C("pattern",t.gstratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.OtherGst)("ngClass",s.VKq(224,At,e.submitted&&A.invalid)),s.xp6(2),s.Q6J("ngIf",A.invalid),s.xp6(4),s.s9C("pattern",t.gstratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.carParkCrg)("ngClass",s.VKq(226,At,e.submitted&&v.invalid)),s.xp6(2),s.Q6J("ngIf",v.invalid),s.xp6(4),s.s9C("pattern",t.gstratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.buildProCost)("ngClass",s.VKq(228,At,e.submitted&&b.invalid)),s.xp6(2),s.Q6J("ngIf",b.invalid),s.xp6(4),s.s9C("pattern",t.stmpratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.stmp)("ngClass",s.VKq(230,At,e.submitted&&S.invalid)),s.xp6(2),s.Q6J("ngIf",S.invalid),s.xp6(4),s.s9C("pattern",t.stmpratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.regisCost)("ngClass",s.VKq(232,At,e.submitted&&C.invalid)),s.xp6(2),s.Q6J("ngIf",C.invalid),s.xp6(4),s.s9C("pattern",t.stmpratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.NoCarPark)("ngClass",s.VKq(234,At,e.submitted&&x.invalid)),s.xp6(2),s.Q6J("ngIf",x.invalid),s.xp6(4),s.s9C("pattern",t.stmpratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.TknBookAmt)("ngClass",s.VKq(236,At,e.submitted&&k.invalid)),s.xp6(2),s.Q6J("ngIf",k.invalid),s.xp6(10),s.Q6J("items",t.FromLedger)("required",t.bookingservice.singleresult.agrval>0)("ngClass",s.VKq(238,At,e.submitted&&I.invalid))("ngModel",t.bookingservice.singleresult.agrledId)("loading",t.companyledgerservice.loading),s.xp6(2),s.Q6J("ngIf",I.invalid),s.xp6(2),s.hij(" Agreement Amount: ",t.bookingservice.singleresult.agrval," "),s.xp6(4),s.Q6J("items",t.FromLedger)("required",t.bookingservice.singleresult.maintchrge>0&&1!=t.bookingservice.singleresult.Ismainchrge)("ngClass",s.VKq(240,At,e.submitted&&M.invalid))("ngModel",t.bookingservice.singleresult.MaintledId)("loading",t.companyledgerservice.loading),s.xp6(2),s.Q6J("ngIf",M.invalid),s.xp6(2),s.hij(" Maintainance charge: ",1!=t.bookingservice.singleresult.Ismainchrge?t.bookingservice.singleresult.maintchrge:""," "),s.xp6(4),s.Q6J("items",t.GSTLedger)("required",t.bookingservice.singleresult.gstchrge>0)("ngClass",s.VKq(242,At,e.submitted&&q.invalid))("ngModel",t.bookingservice.singleresult.GSTLedId)("loading",t.companyledgerservice.loading),s.xp6(2),s.Q6J("ngIf",q.invali
1d),s.xp6(2),s.hij(" Total Gst: ",t.bookingservice.singleresult.gstchrge," "),s.xp6(4),s.Q6J("items",t.GSTLedger)("required",t.bookingservice.singleresult.OtherGst>0)("ngClass",s.VKq(244,At,e.submitted&&N.invalid))("ngModel",t.bookingservice.singleresult.OtherGSTLedId)("loading",t.companyledgerservice.loading),s.xp6(2),s.Q6J("ngIf",q.invalid),s.xp6(2),s.hij(" Total Gst: ",t.bookingservice.singleresult.OtherGst," "),s.xp6(4),s.Q6J("items",t.GSTLedger)("required",t.bookingservice.singleresult.carParkCrg>0)("ngClass",s.VKq(246,At,e.submitted&&y.invalid))("ngModel",t.bookingservice.singleresult.carParkingLedId)("loading",t.companyledgerservice.loading),s.xp6(2),s.Q6J("ngIf",q.invalid),s.xp6(2),s.hij(" Total Car Park Charges: ",t.bookingservice.singleresult.carParkCrg," "),s.xp6(4),s.Q6J("items",t.GSTLedger)("required",t.bookingservice.singleresult.buildProCost>0)("ngClass",s.VKq(248,At,e.submitted&&_.invalid))("ngModel",t.bookingservice.singleresult.buildingProtectionLedId)("loading",t.companyledgerservice.loading),s.xp6(2),s.Q6J("ngIf",q.invali
1d),s.xp6(2),s.hij(" Total Building Protection Charges: ",t.bookingservice.singleresult.buildProCost," "),s.xp6(4),s.Q6J("items",t.FromLedger)("required",t.bookingservice.singleresult.Othval>0)("ngClass",s.VKq(250,At,e.submitted&&w.invalid))("ngModel",t.bookingservice.singleresult.OthLedId)("loading",t.companyledgerservice.loading),s.xp6(2),s.Q6J("ngIf",w.invalid),s.xp6(2),s.hij(" Other: ",t.bookingservice.singleresult.Othval," "),s.xp6(4),s.Q6J("items",t.bankService.result)("required",t.bookingservice.singleresult.LoanAmt>0)("ngClass",s.VKq(252,At,e.submitted&&O.invalid))("ngModel",t.bankService.singleresult)("loading",t.bankService.loading),s.xp6(2),s.Q6J("ngIf",O.invalid),s.xp6(6),s.s9C("pattern",t.stmpratepattern),s.Q6J("ngModel",t.bookingservice.singleresult.LoanAmt)("ngClass",s.VKq(254,At,e.submitted&&D.invalid)),s.xp6(6),s.Q6J("checked",1==t.bookingservice.singleresult.IsCommdate),s.xp6(6),s.Q6J("checked",1==t.bookingservice.singleresult.IsDueDt),s.xp6(6),s.Q6J("checked",1==t.bookingservice.singleresult.IsSJ),s.xp6(27),s.Q6J("ngIf",0==t.bookingservice.singleresult.IsDueDt),s.xp6(1),s.Q6J("ngIf",1==t.bookingservice.singleresult.IsDueDt),s.xp6(1),s.Q6J("ngForOf",t.p_TermsRev)("ngForTrackBy",t.indexTracker),s.xp6(4),s.Q6J("ngModel",t.Terms.Nurr)("ngClass",s.VKq(256,At,e.submitted&&E.invalid)),s.xp6(2),s.Q6J("ngIf",E.invalid),s.xp6(4),s.Q6J("ngModel",t.Terms.PaytpId)("ngClass",s.VKq(258,At,e.submitted&&L.invalid)),s.xp6(6),s.Q6J("ngIf",L.invalid),s.xp6(4),s.Q6J("ngClass",s.VKq(260,At,e.submitted&&U.invalid))("ngModel",t.Terms.AmtVal),s.xp6(2),s.Q6J("ngIf",U.invalid),s.xp6(4),s.Q6J("ngClass",s.VKq(262,At,e.submitted&&P.invalid))("startDate",t.Terms.DueD),s.xp6(2),s.Q6J("ngIf",P.invalid),s.xp6(1),s.Q6J("ngIf","LOAN-OCR"==t.Terms.PaytpId),s.xp6(1),s.Q6J("ngIf","LOAN-OCR"==t.Terms.PaytpId),s.xp6(4),s.Q6J("ngIf",!t.bookingservice.IsMobileview),s.xp6(1),s.Q6J("ngIf",t.bookingservice.IsMobileview),s.xp6(1),s.Q6J("ngIf",t.showCompanyLedgerpopup)}},directives:[b.O5,x._Y,x.JL,x.F,M.u,x.Fj,x.Q7,b.mk,x.JJ,x.On,k.x,I.w9,I.A3,x.c5,x.wV,z.q,X.X,ee.a,x.Wl,b.sg,I.xv,h.gu,te.X,ie.k],pipes:[b.uU],styles:[".card[_ngcontent-%COMP%]{color:#000;margin:15 15 0}.card-layout[_ngcontent-%COMP%]{padding:20}.card-layout[_ngcontent-%COMP%] .h1[_ngcontent-%COMP%]{margin-bottom:15}.form-group[_ngcontent-%COMP%]{margin-bottom:0}"]}),e})();const ti=["f"],ii=["Site"],ni=["SearchModal"],si=["ionInfinitescroll"],ri=["ionvscroll"],oi=["ImageModal"],li=["ImageUploadModal"],ai=["EmailModal"],ci=["OtherDocument"],gi=["whatsAppApiSendPopup"];function di(e,t){if(1&e&&(s.TgZ(0,"small",149),s._uU(1),s.qZA()),2&e){const e=s.oxw(3);s.xp6(1),s.AsE(" Loaded ",e.siteService.result.length," of ",e.siteService.totalItems," ")}}function ui(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",81),s.TgZ(1,"ul",82),s.TgZ(2,"li",83),s.TgZ(3,"button",84),s.NdJ("click",function(){return s.CHM(e),s.oxw(2).goback()}),s._UZ(4,"i",85),s.qZA(),s.qZA(),s.TgZ(5,"li",86),s.TgZ(6,"form",87),s.NdJ("submit",function(){return s.CHM(e),s.oxw(2).FilterData()}),s.TgZ(7,"div",88),s._UZ(8,"span",17),s.TgZ(9,"input",89,90),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw(2).sfilter.filter=t}),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"li",91),s.TgZ(12,"button",92),s.NdJ("click",function(){return s.CHM(e),s.oxw(2).FilterData()}),s._UZ(13,"span",93),s.TgZ(14,"span",94),s._uU(15,"Search"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(16,"li",95),s.TgZ(17,"div",96),s.NdJ("isOpenChange",function(t){return s.CHM(e),s.oxw(2).change(t)}),s.TgZ(18,"button",97),s._UZ(19,"span",98),s.TgZ(20,"span",94),s._uU(21,"Filter"),s.qZA(),s.qZA(),s.TgZ(22,"div",99),s.NdJ("click",function(e){return e.stopPropagation()}),s.TgZ(23,"form",11,12),s.NdJ("ngSubmit",function(){return s.CHM(e),s.oxw(2).FilterData()}),s.TgZ(25,"div",100),s.TgZ(26,"div",101),s.TgZ(27,"label",102),s._uU(28,"Select Site"),s.qZA(),s.TgZ(29,"ng-select",103),s.NdJ("scrollToEnd",function(){return s.CHM(e),s.oxw(2).siteService.ScrollDown()})("ngModelChange",function(t){return s.CHM(e),s.oxw(2).sfilter.STIarray=t}),s.YNc(30,di,2,2,"ng-template",21),s.qZA(),s.qZA(),s.TgZ(31,"div",101),s.TgZ(32,"label",104),s._uU(33,"Select Building"),s.qZA(),s.TgZ(34,"ng-select",105),s.NdJ("scrollToEnd",function(){return s.CHM(e),s.oxw(2).siteService.ScrollDown()})("ngModelChange",function(t){return s.CHM(e),s.oxw(2).sfilter.Bldarray=t}),s.qZA(),s.qZA(),s.TgZ(35,"div",101),s.TgZ(36,"label",106),s._uU(37,"Select Wing"),s.qZA(),s.TgZ(38,"ng-select",107),s.NdJ("scrollToEnd",function(){return s.CHM(e),s.oxw(2).siteService.ScrollDown()})("ngModelChange",function(t){return s.CHM(e),s.oxw(2).sfilter.Wngarray=t}),s.qZA(),s.qZA(),s.TgZ(39,"div",101),s.TgZ(40,"label",108),s._uU(41,"Enter Flat No"),s.qZA(),s.TgZ(42,"input",109,110),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw(2).sfilter.filter=t}),s.qZA(),s.qZA(),s.TgZ(44,"div",101),s.TgZ(45,"label",111),s._uU(46,"Select Booking Status"),s.qZA(),s.TgZ(47,"ng-select",112,113),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw(2).sfilter.BookingSts=t}),s.TgZ(49,"ng-option",114),s._uU(50,"UnSold"),s.qZA(),s.TgZ(51,"ng-option",115),s._uU(52,"Sold"),s.qZA(),s.TgZ(53,"ng-option",116),s._uU(54,"OnHold"),s.qZA(),s.TgZ(55,"ng-option",117),s._uU(56,"Tenent"),s.qZA(),s.TgZ(57,"ng-option",118),s._uU(58,"Member"),s.qZA(),s.TgZ(59,"ng-option",119),s._uU(60,"Investor"),s.qZA(),s.TgZ(61,"ng-option",120),s._uU(62,"All"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(63,"div",101),s.TgZ(64,"label",121),s._uU(65,"Booking Progress Status "),s.qZA(),s.TgZ(66,"ng-select",122,123),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw(2).sfilter.BookingProgresSt=t}),s.TgZ(68,"ng-option",124),s._uU(69,"Registration Done"),s.qZA(),s.TgZ(70,"ng-option",125),s._uU(71,"Booking Finalized"),s.qZA(),s.TgZ(72,"ng-option",119),s._uU(73,"Investor"),s.qZA(),s.TgZ(74,"
1ng-option",126),s._uU(75,"Allotted"),s.qZA(),s.TgZ(76,"ng-option",127),s._uU(77,"Postpone"),s.qZA(),s.TgZ(78,"ng-option",128),s._uU(79,"In Progress"),s.qZA(),s.TgZ(80,"ng-option",129),s._uU(81,"Loan Issue"),s.qZA(),s.TgZ(82,"ng-option",130),s._uU(83,"Booking Cancelled"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(84,"div",101),s.TgZ(85,"label",131),s._uU(86," Flat Amount"),s.qZA(),s.TgZ(87,"div",53),s.TgZ(88,"ng-select",132,133),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw(2).sfilter.AmountRange=t}),s.TgZ(90,"ng-option",134),s._uU(91,"Greaterthan"),s.qZA(),s.TgZ(92,"ng-option",135),s._uU(93,"Lessthan"),s.qZA(),s.TgZ(94,"ng-option",136),s._uU(95,"EqualTo "),s.qZA(),s.TgZ(96,"ng-option",137),s._uU(97,"NotEqualTo"),s.qZA(),s.qZA(),s.TgZ(98,"input",138,139),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw(2).sfilter.Amount=t}),s.qZA(),s.qZA(),s.qZA(),s.TgZ(100,"div",101),s.TgZ(101,"label",140),s._uU(102," Block Area"),s.qZA(),s.TgZ(103,"div",53),s.TgZ(104,"ng-select",141,142),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw(2).sfilter.BlockRange=t}),s.TgZ(106,"ng-option",134),s._uU(107,"Greaterthan"),s.qZA(),s.TgZ(108,"ng-option",135),s._uU(109,"Lessthan"),s.qZA(),s.TgZ(110,"ng-option",136),s._uU(111,"EqualTo "),s.qZA(),s.TgZ(112,"ng-option",137),s._uU(113,"NotEqualTo"),s.qZA(),s.qZA(),s.TgZ(114,"input",143,144),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw(2).sfilter.Area=t}),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(116,"div",145),s.TgZ(117,"button",146),s.NdJ("click",function(t){s.CHM(e);const i=s.oxw(2);return i.clearfilterandloadnewdata(),i.toggleDropdown(t)}),s._uU(118," Clear Filter "),s.qZA(),s.TgZ(119,"button",147),s.NdJ("click",function(t){return s.CHM(e),s.oxw(2).toggleDropdown(t)}),s._UZ(120,"i",148),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(2);s.xp6(9),s.Q6J("ngModel",e.sfilter.filter),s.xp6(8),s.Q6J("isOpen",e.status.isOpen),s.xp6(5),s.ekj("show",e.status.isOpen),s.xp6(7),s.Q6J("virtualScroll",!0)("items",e.siteService.result)("multiple",!0)("ngModel",e.sfilter.STIarray)("loading",e.siteService.loading),s.xp6(5),s.Q6J("virtualScroll",!0)("items",e.BuildingcolumnList)("multiple",!0)("ngModel",e.sfilter.Bldarray)("loading",e.siteService.loading),s.xp6(4),s.Q6J("virtualScroll",!0)("items",e.WingcolumnList)("multiple",!0)("ngModel",e.sfilter.Wngarray)("loading",e.siteService.loading),s.xp6(4),s.Q6J("ngModel",e.sfilter.filter),s.xp6(5),s.Q6J("ngModel",e.sfilter.BookingSts),s.xp6(19),s.Q6J("ngModel",e.sfilter.BookingProgresSt),s.xp6(22),s.Q6J("ngModel",e.sfilter.AmountRange),s.xp6(10),s.Q6J("ngModel",e.sfilter.Amount),s.xp6(6),s.Q6J("ngModel",e.sfilter.BlockRange),s.xp6(10),s.Q6J("ngModel",e.sfilter.Area)}}function pi(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",150),s.TgZ(1,"ul",82),s.TgZ(2,"li",151),s.TgZ(3,"ion-icon",152),s.NdJ("click",function(){return s.CHM(e),s.oxw(2).goback()}),s.qZA(),s.qZA(),s.TgZ(4,"li",151),s.TgZ(5,"ion-icon",153),s.NdJ("
1click",function(){return s.CHM(e),s.oxw(2).advSearchM()}),s.qZA(),s.qZA(),s.TgZ(6,"li",154),s.TgZ(7,"div",155),s.TgZ(8,"strong"),s._uU(9),s.qZA(),s.qZA(),s.qZA(),s.TgZ(10,"li",156),s.TgZ(11,"ion-icon",157),s.NdJ("click",function(t){return s.CHM(e),s.oxw(2).sortPopover(t)}),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(2);s.xp6(9),s.Oqu(e.PageName)}}function mi(e,t){if(1&e&&(s.TgZ(0,"div",163),s.TgZ(1,"div",100),s.TgZ(2,"div",164),s.TgZ(3,"span",165),s._UZ(4,"i",166),s.qZA(),s.TgZ(5,"span"),s.TgZ(6,"strong"),s._uU(7),s.qZA(),s.TgZ(8,"small"),s._uU(9,"Customer, unit and agreement overview"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(10,"div",167),s.TgZ(11,"div",168),s._uU(12),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&e){const e=s.oxw(3);s.xp6(7),s.Oqu(e.PageName),s.xp6(5),s.hij("",e.siteStrList.length-1," Units")}}function hi(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"th",176),s.NdJ("click",function(){return s.CHM(e),s.oxw(5).FilterData()}),s._uU(1),s.qZA()}if(2&e){const e=s.oxw().$implicit,t=s.oxw(4);s.Q6J("dirsort",t.sitestrService)("sortcolumn",e),s.xp6(1),s.hij(" ",e," ")}}function fi(e,t){if(1&e&&(s.ynx(0),s.YNc(1,hi,2,3,"th",178),s.BQk()),2&e){const e=t.$implicit;s.xp6(1),s.Q6J("ngIf","ModifiedDate"!==e&&"ModifiedBy"!==e&&"IsDynamicBooking"!==e&&"BookingStatus"!==e&&"BookStatus"!==e)}}function Ti(e,t){1&e&&(s.TgZ(0,"span"),s._uU(1,"Grand Total"),s.qZA())}function Zi(e,t){if(1&e&&(s.ynx(0),s._uU(1),s.BQk()),2&e){const e=s.oxw(2).$implicit,t=s.oxw().$implicit;s.xp6(1),s.hij(" ",t[e]," ")}}const Ai=function(e,t){return{"text-right":e,"text-left":t}};function vi(e,t){if(1&e&&(s.TgZ(0,"td",188),s.YNc(1,Ti,2,0,"span",78),s.YNc(2,Zi,2,1,"ng-container",78),s.qZA()),2&e){const e=s.oxw().$implicit,t=s.oxw().$implicit,i=s.oxw(5);s.Q6J("ngClass",s.WLB(3,Ai,i.isDigit(t[e]),!i.isDigit(t[e]))),s.xp6(1),s.Q6J("ngIf","SiteName"==e&&null==t.PK_Id),s.xp6(1),s.Q6J("ngIf","IsDynamicBooking"!=e&&"BookingStatus"!=e&&"BookStatus"!==e&&"ModifiedDate"!==e&&"ModifiedBy"!==e)}}function bi(e,t){1&e&&(s.TgZ(0,"span",195),s._uU(1,"Sold"),s.qZA())}function Si(e,t){1&e&&(s.TgZ(0,"span",196),s._uU(1,"Member"),s.qZA())}function Ci(e,t){1&e&&(s.TgZ(0,"span",197),s._uU(1,"UnSold"),s.qZA())}function xi(e,t){1&e&&(s.TgZ(0,"span",198),s._uU(1,"OnHold"),s.qZA())}function ki(e,t){1&e&&(s.TgZ(0,"span",199),s._uU(1,"Tenent"),s.qZA())}function Ii(e,t){1&e&&(s.TgZ(0,"span",200),s._uU(1,"Investor"),s.qZA())}function Mi(e,t){if(1&e&&(s.ynx(0),s.YNc(1,bi,2,0,"span",189),s.YNc(2,Si,2,0,"span",190),s.YNc(3,Ci,2,0,"span",191),s.YNc(4,xi,2,0,"span",192),s.YNc(5,ki,2,0,"span",193),s.YNc(6,Ii,2,0,"span",194),s._UZ(7,"br"),s.BQk()),2&e){const e=s.oxw(4).$implicit,t=s.oxw(5);s.xp6(1),s.Q6J("ngIf",t.isSold(e.BookingStatus)),s.xp6(1),s.Q6J("ngIf",t.isMember(e.BookingStatus)),s.xp6(1),s.Q6J("ngIf",t.isUnSold(e.BookingStatus)),s.xp6(1),s.Q6J("ngIf",t.isOnHold(e.BookingStatus)),s.xp6(1),s.Q6J("ngIf",t.isTenent(e.BookingStatus)),s.xp6(1),s.Q6J("ngIf",t.isInvestor(e.BookingStatus))}}function qi(e,t){if(1&e&&(s.ynx(0),s._uU(1," Progress: "),s.TgZ(2,"span",201),s._uU(3),s.qZA(),s._UZ(4,"br"),s.BQk()),2&e){const e=s.oxw(4).$implicit;s.xp6(3),s.hij(" ",e.BookStatus,"")}}function Ni(e,t){1&e&&(s.TgZ(0,"span",200),s._uU(1,"YES"),s.qZA())}function yi(e,t){if(1&e&&(s.ynx(0),s._uU(1," Dynamic: "),s.YNc(2,Ni,2,0,"span",194),s.BQk()),2&e){const e=s.oxw(4).$implicit;s.xp6(2),s.Q6J("ngIf",1==e.IsDynamicBooking)}}function _i(e,t){if(1&e&&(s.ynx(0),s.YNc(1,Mi,8,6,"ng-container",78),s.YNc(2,qi,5,1,"ng-container",78),s.YNc(3,yi,3,1,"ng-container",78),s.BQk()),2&e){const e=s.oxw(3).$implicit;s.xp6(1),s.Q6J("ngIf",e.BookingStatus),s.xp6(1),s.Q6J("ngIf",null!=e.BookStatus||null!=e.BookStatus),s.xp6(1),s.Q6J("ngIf",e.IsDynamicBooking)}}function wi(e,t){if(1&e&&(s.TgZ(0,"td"),s.YNc(1,_i,4,3,"ng-container",78),s.qZA()),2&e){const e=s.oxw(2).$implicit;s.xp6(1),s.Q6J("ngIf",e.PK_Id>0)}}function Oi(e,t){if(1&e&&(s.ynx(0),s.TgZ(1,"span",199),s._uU(2),s.qZA(),s.TgZ(3,"span",196),s._uU(4),s.ALo(5,"date"),s.qZA(),s.TgZ(6,"span",196),s._uU(7),s.ALo(8,"date"),s.qZA(),s.BQk()),2&e){const e=s.oxw(3).$implicit;s.xp6(2),s.hij("By: ",e.ModifiedBy,""),s.xp6(2),s.hij("Date: ",s.lcZ(5,3,e.ModifiedDate),""),s.xp6(3),s.hij("Time: ",s.xi3(8,5,e.ModifiedDate,"shortTime"),"")}}function Di(e,t){if(1&e&&(s.TgZ(0,"td"),s.YNc(1,Oi,9,8,"ng-container",78),s.qZA()),2&e){const e=s.oxw(2).$implicit;s.xp6(1),s.Q6J("ngIf",e.PK_Id>0)}}function Ei(e,t){if(1&e&&(s.ynx(0),s.YNc(1,vi,3,6,"td",187),s.YNc(2,wi,2,1,"td",78),s.YNc(3,Di,2,1,"td",78),s.BQk()),2&e){const e=t.$implicit;s.xp6(1),s.Q6J("ngIf","ModifiedDate"!==e&&"ModifiedBy"!==e&&"IsDynamicBooking"!==e&&"BookingStatus"!==e&&"BookStatus"!==e),s.xp6(1),s.Q6J("ngIf","ModifiedDate"==e),s.xp6(1),s.Q6J("ngIf","ModifiedDate"==e)}}function Li(e,t){if(1&e){const e=s.EpF();
1s.TgZ(0,"a",211),s.NdJ("clickAllowed",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).edit(t.PK_Id)}),s._uU(1," Edit Site Structure "),s.qZA()}if(2&e){const e=s.oxw(8);s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function Ui(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"a",211),s.NdJ("clickAllowed",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).edit(t.PK_Id)}),s._uU(1," Edit Booking "),s.qZA()}if(2&e){const e=s.oxw(8);s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function Pi(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",212),s.NdJ("clickAllowed",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).DeleteStructure(1,t.PK_Id)}),s._uU(2," Delete Site Structure "),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(8);s.xp6(1),s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function Ji(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",212),s.NdJ("clickAllowed",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).DeleteStructure(2,t.PK_Id)}),s._uU(2," Cancel Booking "),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(8);s.xp6(1),s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function Fi(e,t){if(1&e){const e=s.EpF();
1s.TgZ(0,"li",207),s.TgZ(1,"a",213),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).GenerateDocument(t.PK_Id,t.SiteId,"BOOKING FORM")}),s._uU(2," Generate Booking Form "),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(8);s.xp6(1),s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function Bi(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",213),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).GenerateDocument(t.PK_Id,t.SiteId,"Quotation")}),s._uU(2," Generate Quotation "),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(8);s.xp6(1),s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function Ri(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",214),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).generateAndSendWhatsAppDocument(t,"Quotation")}),s._uU(2,"Generate & WhatsApp Quotation Template"),s.qZA(),s.qZA()}}function Qi(e,t){if(1&e&&(s.TgZ(0,"li",207),s.TgZ(1,"a",215),s._uU(2," Download Quotation "),s.qZA(),s.qZA()),2&e){const e=s.oxw(3).$implicit;s.xp6(1),s.s9C("href",e.Quotation,s.LSH)}}function Gi(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",214),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).openBookingDocumentWhatsApp(t,t.Quotation,"Quotation")}),s._uU(2,"WhatsApp Quotation"),s.qZA(),s.qZA()}}function Yi(e,t){if(1&e){const e=s.EpF();
1s.TgZ(0,"li",207),s.TgZ(1,"a",213),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).GenerateDocument(t.PK_Id,t.SiteId,"ALLOTMENT")}),s._uU(2," Generate Allotment "),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(8);s.xp6(1),s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function Vi(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",214),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).generateAndSendWhatsAppDocument(t,"ALLOTMENT")}),s._uU(2,"Generate & WhatsApp Allotment Template"),s.qZA(),s.qZA()}}function Hi(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",211),s.NdJ("clickAllowed",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).GenerateDocument(t.PK_Id,t.SiteId,"AGREEMENT")}),s._uU(2," Generate Agreement "),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(8);s.xp6(1),s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function Wi(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",214),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).generateAndSendWhatsAppDocument(t,"AGREEMENT")}),s._uU(2,"Generate & WhatsApp Agreement Template"),s.qZA(),s.qZA()}}function $i(e,t){if(1&e){const e=s.EpF();
1s.TgZ(0,"li",207),s.TgZ(1,"a",213),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).GenerateDocument(t.PK_Id,t.SiteId,"Booking_Demand_Letter")}),s._uU(2," Generate Demand "),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(8);s.xp6(1),s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function Ki(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",214),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).generateAndSendWhatsAppDocument(t,"Booking_Demand_Letter")}),s._uU(2,"Generate & WhatsApp Demand Template"),s.qZA(),s.qZA()}}function ji(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",213),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).GenerateDocument(t.PK_Id,t.SiteId,"BANK_NOC")}),s._uU(2," Generate Bank NOC "),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(8);s.xp6(1),s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function zi(e,t){if(1&e&&(s.TgZ(0,"li",207),s.TgZ(1,"a",216),s._uU(2," Download Allotment "),s.qZA(),s.qZA()),2&e){const e=s.oxw(3).$implicit;s.xp6(1),s.s9C("href",e.AllotmentLetter,s.LSH)}}function Xi(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",214),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).openBookingDocumentWhatsApp(t,t.AllotmentLetter,"Allotment Letter")}),s._uU(2,"WhatsApp Allotment"),s.qZA(),s.qZA()}}function en(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",217),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).OpenEmailPopup(t.PK_Id,t.SiteId,"ALLOTMENT")}),s._uU(2," Send Email "),s.qZA(),s.qZA()}}function tn(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",214),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).openBookingDocumentWhatsApp(t,t.AgreementLetter,"Agreement")}),s._uU(2,"WhatsApp Agreement"),s.qZA(),s.qZA()}}function nn(e,t){if(1&e&&(s.TgZ(0,"li",207),s.TgZ(1,"a",215),s._uU(2," Download Agreement "),s.qZA(),s.qZA()),2&e){const e=s.oxw(3).$implicit;s.xp6(1),s.s9C("href",e.AgreementLetter,s.LSH)}}function sn(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",214),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).openBookingDocumentWhatsApp(t,t.DemantLetter,"Demand Letter")}),s._uU(2,"WhatsApp Demand"),s.qZA(),s.qZA()}}function rn(e,t){if(1&e&&(s.TgZ(0,"li",207),s.TgZ(1,"a",215),s._uU(2," Download Demand "),s.qZA(),s.qZA()),2&e){const e=s.oxw(3).$implicit;s.xp6(1),s.s9C("href",e.DemantLetter,s.LSH)}}function on(e,t){if(1&e&&(s.TgZ(0,"li",207),s.TgZ(1,"a",215),s._uU(2," Download Bank NOC "),s.qZA(),s.qZA()),2&e){const e=s.oxw(3).$implicit;s.xp6(1),s.s9C("href",e.BankNoc,s.LSH)}}function ln(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"li",207),s.TgZ(1,"a",217),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(3).$implicit;return s.oxw(5).OpenOtherDocumentPopup(t.PK_Id,t.SiteId)}),s._uU(2," Other Document "),s.qZA(),s.qZA()}}function an(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"ul",206),s.TgZ(1,"li",207),s.YNc(2,Li,2,2,"a",208),s.YNc(3,Ui,2,2,"a",208),s.qZA(),s.YNc(4,Pi,3,2,"li",209),s.YNc(5,Ji,3,2,"li",209),s.YNc(6,Fi,3,2,"li",209),s.YNc(7,Bi,3,2,"li",209),s.YNc(8,Ri,3,0,"li",209),s.YNc(9,Qi,3,1,"li",209),s.YNc(10,Gi,3,0,"li",209),s.YNc(11,Yi,3,2,"li",209),s.YNc(12,Vi,3,0,"li",209),s.YNc(13,Hi,3,2,"li",209),s.YNc(14,Wi,3,0,"li",209),s.YNc(15,$i,3,2,"li",209),s.YNc(16,Ki,3,0,"li",209),s.YNc(17,ji,3,2,"li",209),s.YNc(18,zi,3,1,"li",209),s.YNc(19,Xi,3,0,"li",209),s.YNc(20,en,3,0,"li",209),s.YNc(21,tn,3,0,"li",209),s.YNc(22,nn,3,1,"li",209),s.YNc(23,sn,3,0,"li",209),s.YNc(24,rn,3,1,"li",209),s.YNc(25,on,3,1,"li",209),s.YNc(26,ln,3,0,"li",209),s.TgZ(27,"li",207),s.TgZ(28,"a",210),s.NdJ("click",function(){s.CHM(e);const t=s.oxw(2).$implicit;return s.oxw(5).OpenImagePopup(t.PK_Id)}),s._uU(29," Image Upload "),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(2).$implicit,t=s.oxw(5);s.xp6(2),s.Q6J("ngIf",0==t.hideBookingStatus),s.xp6(1),s.Q6J("ngIf",1==t.hideBookingStatus),s.xp6(1),s.Q6J("ngIf",0==t.hideBookingStatus),s.xp6(1),s.Q6J("ngIf",t.hideBookingStatus),s.xp6(1),s.Q6J("ngIf","SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase()),s.xp6(1),s.Q6J("ngIf","UNSOLD"===e.BookingStatus.toUpperCase()),s.xp6(1),s.Q6J("ngIf","UNSOLD"===e.BookingStatus.toUpperCase()),s.xp6(1),s.Q6J("ngIf",e.BookingStatus&&"UNSOLD"===e.BookingStatus.toUpperCase()&&null!=e.Quotation),s.xp6(1),s.Q6J("ngIf",e.Quotation),s.xp6(1),s.Q6J("ngIf","SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase()),s.xp6(1),s.Q6J("ngIf","SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase()),s.xp6(1),s.Q6J("ngIf","SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase()),s.xp6(1),s.Q6J("ngIf","SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase()),s.xp6(1),s.Q6J("ngIf","SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase()),s.xp6(1),s.Q6J("ngIf","SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase()),s.xp6(1),s.Q6J("ngIf","SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase()),s.xp6(1),s.Q6J("ngIf",e.BookingStatus&&("SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase())&&null!=e.AllotmentLetter),s.xp6(1),s.Q6J("ngIf",e.AllotmentLetter),s.xp6(1),s.Q6J("ngIf",e.BookingStatus&&("SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase())&&null!=e.AllotmentLetter),s.xp6(1),s.Q6J("ngIf",e.AgreementLetter),s.xp6(1),s.Q6J("ngIf",e.BookingStatus&&("SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase())&&null!=e.AgreementLetter),s.xp6(1),s.Q6J("ngIf",e.DemantLetter),s.xp6(1),s.Q6J("ngIf",e.BookingStatus&&("SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase())&&null!=e.DemantLetter),s.xp6(1),s.Q6J("ngIf",("SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase())&&null!=e.BankNoc),s.xp6(1),s.Q6J("ngIf","SOLD"===e.BookingStatus.toUpperCase()||"ONHOLD"===e.BookingStatus.toUpperCase()||"TENENT"===e.BookingStatus.toUpperCase()||"MEMBER"===e.BookingStatus.toUpperCase())}}function cn(e,t){1&e&&(s.TgZ(0,"div",202),s.TgZ(1,"button",203),s._UZ(2,"i",204),s.qZA(),s.YNc(3,an,30,25,"ul",205),s.qZA())}function gn(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"tr",182),s.NdJ("keydown.enter",function(){const t=s.CHM(e).$implicit,i=s.oxw(5);return null!=t.PK_Id&&i.editOnArrowEvent(t.PK_Id)})("keydown.arrowdown",function(){const t=s.CHM(e).index;return s.oxw(5).sitestrService.arrowDownEvent(t+151)})("keydown.arrowup",function(){const t=s.CHM(e).index;return s.oxw(5).sitestrService.arrowUpEvent(t+149)}),s.TgZ(1,"td"),s.TgZ(2,"div",171),s._UZ(3,"label",183),s.TgZ(4,"input",184),s.NdJ("ngModelChange",function(t){return s.CHM(e).$implicit.Ick=t})("change",function(){return s.CHM(e),s.oxw(5).selectSinglechange()}),s.qZA(),s.qZA(),s.qZA(),s.YNc(5,Ei,4,3,"ng-container",174),s.TgZ(6,"td",185),s.YNc(7,cn,4,0,"div",186),s.qZA(),s.qZA()}if(2&e){const e=t.$implicit,i=t.index,n=s.oxw(5);s.ekj("ToTalBackgroung",null==e.PK_Id),s.s9C("tabindex",i+150),s.xp6(3),s.MGl("for","item_",i,""),s.xp6(1),s.MGl("id","item_",i,""),s.MGl("name","
1item_",i,""),s.Q6J("checked",e.Ick)("ngModel",e.Ick),s.xp6(1),s.Q6J("ngForOf",n.columnList),s.xp6(2),s.Q6J("ngIf",null!=e.PK_Id)}}function dn(e,t){if(1&e&&(s.TgZ(0,"tbody",179,180),s.YNc(2,gn,8,10,"tr",181),s.qZA()),2&e){const e=s.oxw(4);s.xp6(2),s.Q6J("ngForOf",e.siteStrList)}}function un(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"table",169),s.TgZ(1,"thead",170),s.TgZ(2,"tr"),s.TgZ(3,"th"),s.TgZ(4,"div",171),s.TgZ(5,"input",172),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw(3).selectedAll=t})("change",function(t){return s.CHM(e),s.oxw(3).selectAllchange(t)}),s.qZA(),s._UZ(6,"label",173),s.qZA(),s.qZA(),s.YNc(7,fi,2,1,"ng-container",174),s.TgZ(8,"th",175),s.NdJ("click",function(){return s.CHM(e),s.oxw(3).FilterData()}),s._uU(9,"Booking Status Details"),s.qZA(),s.TgZ(10,"th",176),s.NdJ("click",function(){return s.CHM(e),s.oxw(3).FilterData()}),s._uU(11,"Editor & Date"),s.qZA(),s.TgZ(12,"th"),s._uU(13,"Actions"),s.qZA(),s.qZA(),s.qZA(),s.YNc(14,dn,3,1,"tbody",177),s.qZA()}if(2&e){const e=s.oxw(3);s.xp6(5),s.Q6J("checked",e.selectedAll)("ngModel",e.selectedAll),s.xp6(2),s.Q6J("ngForOf",e.columnList),s.xp6(1),s.Q6J("dirsort",e.sitestrService)("sortcolumn","ModifiedDate"),s.xp6(2),s.Q6J("dirsort",e.sitestrService)("sortcolumn","ModifiedDate"),s.xp6(4),s.Q6J("ngIf",!e.isLoading)}}function pn(e,t){if(1&e&&(s.TgZ(0,"div",163),s.TgZ(1,"div",100),s.TgZ(2,"div",220),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&e){const e=s.oxw(4);s.xp6(4),s.Oqu(e.PageName)}}function mn(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"th",176),s.NdJ("click",function(){return s.CHM(e),s.oxw(5).FilterData()}),s._uU(1),s.qZA()}if(2&e){const e=s.oxw().$implicit,t=s.oxw(4);s.Q6J("dirsort",t.sitestrService)("sortcolumn",e),s.xp6(1),s.hij(" ",e," ")}}function hn(e,t){if(1&e&&(s.ynx(0),s.YNc(1,mn,2,3,"th",178),s.BQk()),2&e){const e=t.$implicit;s.xp6(1),s.Q6J("ngIf","ModifiedDate"!==e&&"ModifiedBy"!==e&&"IsDynamicBooking"!==e&&"BookingStatus"!==e&&"BookStatus"!==e)}}function fn(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",218),s.YNc(1,pn,5,1,"div",159),s.TgZ(2,"table",219),s.TgZ(3,"thead",170),s.TgZ(4,"tr"),s.TgZ(5,"th"),s.TgZ(6,"div",171),s.TgZ(7,"input",172),s.NdJ("ngModelChange",function(t){return s.CHM(e),s.oxw(3).selectedAll=t})("change",function(t){return s.CHM(e),s.oxw(3).selectAllchange(t)}),s.qZA(),s._UZ(8,"label",173),s.qZA(),s.qZA(),s.YNc(9,hn,2,1,"ng-container",174),s.TgZ(10,"th",175),s.NdJ("click",function(){return s.CHM(e),s.oxw(3).FilterData()}),s._uU(11,"Booking Status Details"),s.qZA(),s.TgZ(12,"th",176),s.NdJ("click",function(){return s.CHM(e),s.oxw(3).FilterData()}),s._uU(13,"Editor & Date"),s.qZA(),s.TgZ(14,"th"),s._uU(15,"Actions"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(3);s.xp6(1),s.Q6J("ngIf",0==(e.sitestrService.isMobile||e.sitestrService.IsMobileview)),s.xp6(6),s.Q6J("checked",e.selectedAll)("ngModel",e.selectedAll),s.xp6(2),s.Q6J("ngForOf",e.columnList),s.xp6(1),s.Q6J("dirsort",e.sitestrService)("sortcolumn","ModifiedDate"),s.xp6(2),s.Q6J("dirsort",e.sitestrService)("sortcolumn","ModifiedDate")}}function Tn(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",158),s.YNc(1,mi,13,2,"div",159),s.TgZ(2,"div",160),s.NdJ("scrolled",function(t){return s.CHM(e),s.oxw(2).onSiteScroll(t)}),s.YNc(3,un,15,8,"table",161),s.qZA(),s.YNc(4,fn,16,8,"div",162),s.qZA()}if(2&e){const e=s.oxw(2);s.xp6(1),s.Q6J("ngIf",0==(e.sitestrService.isMobile||e.sitestrService.IsMobileview)),s.xp6(1),s.Q6J("scrollWindow",!0),s.xp6(1),s.Q6J("ngIf",e.siteStrList.length>0),s.xp6(1),s.Q6J("ngIf",e.siteStrList.length>0)}}function Zn(e,t){if(1&e&&(s.TgZ(0,"ion-col",239),s.TgZ(1,"span",240),s._uU(2),s.qZA(),s._uU(3,":"),s._UZ(4,"br"),s.TgZ(5,"span"),s._uU(6),s.qZA(),s.qZA()),2&e){const e=s.oxw().$implicit,t=s.oxw().$implicit;s.xp6(2),s.Oqu(e),s.xp6(4),s.Oqu(t[e])}}function An(e,t){if(1&e&&(s.ynx(0),s.YNc(1,Zn,7,2,"ion-col",238),s.BQk()),2&e){const e=t.$implicit,i=s.oxw().$implicit;s.xp6(1),s.Q6J("ngIf",i[e]=i[e]||(i[e]=i[e]||(i[e]=i[e])))}}function vn(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"ion-card",229),s.NdJ("click",function(){const t=s.CHM(e).$implicit;return t.Ick=!t.Ick}),s.TgZ(1,"ion-row"),s.YNc(2,An,2,1,"ng-container",174),s.qZA(),s.TgZ(3,"ion-row"),s.TgZ(4,"ion-col",230),s.TgZ(5,"ion-card-content",231),s.TgZ(6,"a",232),s.NdJ("
1click",function(e){return e.stopPropagation()})("clickAllowed",function(){const t=s.CHM(e).$implicit;return s.oxw(3).sitestrService.delete(t.PK_Id)}),s._UZ(7,"ion-icon",233),s._uU(8," Site Structure "),s.qZA(),s.TgZ(9,"a",232),s.NdJ("click",function(e){return e.stopPropagation()})("clickAllowed",function(){const t=s.CHM(e).$implicit;return s.oxw(3).sitestrService.DeleteBooking(t.PK_Id)}),s._UZ(10,"ion-icon",233),s._uU(11," Booking "),s.qZA(),s.TgZ(12,"a",234),s.NdJ("click",function(e){return e.stopPropagation()})("clickAllowed",function(){const t=s.CHM(e).$implicit;return s.oxw(3).edit(t.PK_Id)}),s._UZ(13,"ion-icon",235),s.qZA(),s.TgZ(14,"a",236),s.NdJ("click",function(t){const i=s.CHM(e).$implicit,n=s.oxw(3);return t.stopPropagation(),n.moreOptions(i)}),s._UZ(15,"ion-icon",237),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=t.$implicit,i=s.oxw(3);s.ekj("rowselected",e.Ick),s.xp6(2),s.Q6J("ngForOf",i.columnList),s.xp6(4),s.Q6J("SignupId",i.SignupId)("UserId",i.UserId),s.xp6(3),s.Q6J("SignupId",i.SignupId)("UserId",i.UserId),s.xp6(3),s.Q6J("SignupId",i.SignupId)("UserId",i.UserId)}}function bn(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",179),s.TgZ(1,"ion-content"),s.TgZ(2,"ion-refresher",221),s.NdJ("ionRefresh",function(t){return s.CHM(e),s.oxw(2).doRefresh(t)}),s._UZ(3,"ion-refresher-content",222),s.qZA(),s.TgZ(4,"ion-virtual-scroll",223,224),s.YNc(6,vn,16,9,"ion-card",225),s.qZA(),s.TgZ(7,"ion-infinite-scroll",226,227),s.NdJ("ionInfinite",function(t){return s.CHM(e),s.oxw(2).onSiteScroll(t)}),s._UZ(9,"ion-infinite-scroll-content",228),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(2);s.Udp("height",e.sitestrService.mobileContainer),s.xp6(4),s.Q6J("items",e.siteStrList),s.xp6(5),s.s9C("loadingText",e.sitestrService.nextloading)}}function Sn(e,t){1&e&&(s.TgZ(0,"ion-card",242),s.TgZ(1,"ion-row"),s.TgZ(2,"ion-col",243),s._UZ(3,"ion-skeleton-text",244),s.qZA(),s.qZA(),s.TgZ(4,"ion-row"),s.TgZ(5,"ion-col"),s._UZ(6,"ion-skeleton-text",245),s.qZA(),s.TgZ(7,"ion-col"),s._UZ(8,"ion-skeleton-text",246),s.qZA(),s.TgZ(9,"ion-col"),s._UZ(10,"ion-skeleton-text",245),s.qZA(),s.TgZ(11,"ion-col",247),s._UZ(12,"ion-skeleton-text",248),s.qZA(),s.qZA(),s.TgZ(13,"ion-row"),s.TgZ(14,"ion-col"),s._UZ(15,"ion-skeleton-text",245),s.qZA(),s.TgZ(16,"ion-col"),s._UZ(17,"ion-skeleton-text",246),s.qZA(),s.TgZ(18,"ion-col"),s._UZ(19,"ion-skeleton-text",245),s.qZA(),s.TgZ(20,"ion-col",247),s._UZ(21,"ion-skeleton-text",248),s.qZA(),s.qZA(),s.TgZ(22,"ion-row"),s.TgZ(23,"ion-col"),s._UZ(24,"ion-skeleton-text",246),s.qZA(),s.TgZ(25,"ion-col"),s._UZ(26,"ion-skeleton-text",245),s.qZA(),s.TgZ(27,"ion-col",247),s._UZ(28,"ion-skeleton-text",248),s.qZA(),s.qZA(),s.qZA())}function Cn(e,t){if(1&e&&(s.TgZ(0,"div"),s.YNc(1,Sn,29,0,"ion-card",241),s.qZA()),2&e){const e=s.oxw(2);s.xp6(1),s.Q6J("ngForOf",e.sitestrService.noImageRepeat)}}function xn(e,t){1&e&&(s.TgZ(0,"tr"),s.TgZ(1,"td"),s._UZ(2,"ion-skeleton-text",250),s.qZA(),s.TgZ(3,"td"),s._UZ(4,"ion-skeleton-text",250),s.qZA(),s.TgZ(5,"td"),s._UZ(6,"ion-skeleton-text",250),s.qZA(),s.TgZ(7,"td"),s._UZ(8,"ion-skeleton-text",250),s.qZA(),s.TgZ(9,"td"),s._UZ(10,"ion-skeleton-text",250),s.qZA(),s.TgZ(11,"td"),s._UZ(12,"ion-skeleton-text",250),s.qZA(),s.TgZ(13,"td"),s._UZ(14,"ion-skeleton-text",250),s.qZA(),s.TgZ(15,"td"),s._UZ(16,"ion-skeleton-text",250),s.qZA(),s.TgZ(17,"td"),s._UZ(18,"ion-skeleton-text",250),s.qZA(),s.TgZ(19,"td"),s._UZ(20,"ion-skeleton-text",250),s.qZA(),s.TgZ(21,"td"),s._UZ(22,"ion-skeleton-text",250),s.qZA(),s.TgZ(23,"td"),s._UZ(24,"ion-skeleton-text",250),s.qZA(),s.TgZ(25,"td"),s._UZ(26,"ion-skeleton-text",250),s.qZA(),s.TgZ(27,"td"),s._UZ(28,"ion-skeleton-text",250),s.qZA(),s.TgZ(29,"td"),s._UZ(30,"ion-skeleton-text",250),s.qZA(),s.TgZ(31,"td"),s._UZ(32,"ion-skeleton-text",250),s.qZA(),s.TgZ(33,"td"),s._UZ(34,"ion-skeleton-text",250),s.qZA(),s.TgZ(35,"td"),s._UZ(36,"ion-skeleton-text",250),s.qZA(),s.TgZ(37,"td"),s._UZ(38,"ion-skeleton-text",250),s.qZA(),s.TgZ(39,"td"),s._UZ(40,"ion-skeleton-text",250),s.qZA(),s.TgZ(41,"td"),s._UZ(42,"ion-skeleton-text",250),s.qZA(),s.qZA())}function kn(e,t){if(1&e&&(s.TgZ(0,"div"),s.TgZ(1,"table",249),s.TgZ(2,"thead",170),s.TgZ(3,"tr"),s.TgZ(4,"th"),s._UZ(5,"ion-skeleton-text",250),s.qZA(),s.TgZ(6,"th"),s._UZ(7,"ion-skeleton-text",250),s.qZA(),s.TgZ(8,"th"),s._UZ(9,"ion-skeleton-text",250),s.qZA(),s.TgZ(10,"th"),s._UZ(11,"ion-skeleton-text",250),s.qZA(),s.TgZ(12,"th"),s._UZ(13,"ion-skeleton-text",250),s.qZA(),s.TgZ(14,"th"),s._UZ(15,"ion-skeleton-text",250),s.qZA(),s.TgZ(16,"th"),s._UZ(17,"ion-skeleton-text",250),s.qZA(),s.TgZ(18,"th"),s._UZ(19,"ion-skeleton-text",250),s.qZA(),s.TgZ(20,"th"),s._UZ(21,"ion-skeleton-text",250),s.qZA(),s.TgZ(22,"th"),s._UZ(23,"ion-skeleton-text",250),s.qZA(),s.TgZ(24,"th"),s._UZ(25,"ion-skeleton-text",250),s.qZA(),s.TgZ(26,"th"),s._UZ(27,"ion-skeleton-text",250),s.qZA(),s.TgZ(28,"th"),s._UZ(29,"ion-skeleton-text",250),s.qZA(),s.TgZ(30,"th"),s._UZ(31,"ion-skeleton-text",250),s.qZA(),s.TgZ(32,"th"),s._UZ(33,"ion-skeleton-text",250),s.qZA(),s.TgZ(34,"th"),s._UZ(35,"ion-skeleton-text",250),s.qZA(),s.TgZ(36,"th"),s._UZ(37,"ion-skeleton-text",250),s.qZA(),s.TgZ(38,"th"),s._UZ(39,"ion-skeleton-text",250),s.qZA(),s.TgZ(40,"th"),s._UZ(41,"ion-skeleton-text",250),s.qZA(),s.TgZ(42,"th"),s._UZ(43,"ion-skeleton-text",250),s.qZA(),s.TgZ(44,"th"),s._UZ(45,"ion-skeleton-text",250),s.qZA(),s.qZA(),s.qZA(),s.TgZ(46,"tbody",179),s.YNc(47,xn,43,0,"tr",174),s.qZA(),s.qZA(),s.qZA()),2&e){const e=s.oxw(2);
1s.xp6(47),s.Q6J("ngForOf",e.sitestrService.noImageRepeat)}}function In(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div"),s._UZ(1,"div",252),s._UZ(2,"br"),s.TgZ(3,"div",253),s._uU(4,"Add your first record by clicking in below button. "),s._UZ(5,"br"),s._UZ(6,"br"),s.TgZ(7,"input",254),s.NdJ("clickAllowed",function(){return s.CHM(e),s.oxw(3).edit("")}),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(3);s.xp6(7),s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function Mn(e,t){if(1&e&&(s.TgZ(0,"div",251),s._UZ(1,"br"),s._UZ(2,"br"),s.YNc(3,In,8,2,"div",78),s._UZ(4,"br"),s._UZ(5,"br"),s.qZA()),2&e){const e=s.oxw(2);s.xp6(3),s.Q6J("ngIf",e.noDataImage)}}function qn(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",255),s.TgZ(1,"div",256),s.TgZ(2,"button",257,258),s.NdJ("click",function(){return s.CHM(e),s.oxw(2).GeneratePDF(1)}),s._UZ(4,"i",259),s.qZA(),s.TgZ(5,"button",260,258),s.NdJ("click",function(){return s.CHM(e),s.oxw(2).GeneratePDF(2)}),s._UZ(7,"i",261),s.qZA(),s.TgZ(8,"button",262,258),s.NdJ("click",function(){return s.CHM(e),s.oxw(2).ExportExcel()}),s._UZ(10,"i",263),s.qZA(),s.TgZ(11,"button",264),s._UZ(12,"i",265),s.qZA(),s.TgZ(13,"button",266),s.NdJ("clickAllowed",function(){return s.CHM(e),s.oxw(2).edit("")}),s._UZ(14,"i",267),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(2);s.xp6(13),s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function Nn(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"div",255),s.TgZ(1,"div",256),s.TgZ(2,"button",268,258),s.NdJ("click",function(){return s.CHM(e),s.oxw(2).GeneratePDF(1)}),s._UZ(4,"i",259),s.qZA(),s.TgZ(5,"button",269,258),s.NdJ("click",function(){return s.CHM(e),s.oxw(2).GeneratePDF(2)}),s._UZ(7,"i",261),s.qZA(),s.TgZ(8,"button",270),s.NdJ("click",function(){return s.CHM(e),s.oxw(2).toggleExcelImport()}),s._UZ(9,"i",271),s.qZA(),s.TgZ(10,"button",262,258),s.NdJ("click",function(){return s.CHM(e),s.oxw(2).ExportExcel()}),s._UZ(12,"i",263),s.qZA(),s.TgZ(13,"button",264),s._UZ(14,"i",265),s.qZA(),s.TgZ(15,"button",266),s.NdJ("clickAllowed",function(){return s.CHM(e),s.oxw(2).edit("")}),s._UZ(16,"i",267),s.qZA(),s.qZA(),s.qZA()}if(2&e){const e=s.oxw(2);s.xp6(15),s.Q6J("SignupId",e.SignupId)("UserId",e.UserId)}}function yn(e,t){if(1&e&&(s.TgZ(0,"div",73),s.YNc(1,ui,121,26,"div",74),s.YNc(2,pi,12,1,"div",75),s.YNc(3,Tn,5,4,"div",76),s.YNc(4,bn,10,4,"div",77),s.YNc(5,Cn,2,1,"div",78),s.YNc(6,kn,48,1,"div",78),s.YNc(7,Mn,6,1,"div",79),s.YNc(8,qn,15,2,"div",80),s.YNc(9,Nn,17,2,"div",80),s.qZA()),2&e){const e=s.oxw();s.xp6(1),s.Q6J("ngIf",!e.sitestrService.IsMobileview),s.xp6(1),s.Q6J("ngIf",e.sitestrService.IsMobileview),s.xp6(1),s.Q6J("ngIf",!e.sitestrService.IsMobileview),s.xp6(1),s.Q6J("ngIf",e.siteStrList.length>0&&e.sitestrService.IsMobileview),s.xp6(1),s.Q6J("ngIf",0==e.siteStrList.length&&!e.noDataImage&&e.sitestrService.IsMobileview),s.xp6(1),s.Q6J("ngIf",0==e.siteStrList.length&&!e.noDataImage&&!e.sitestrService.IsMobileview),s.xp6(1),s.Q6J("ngIf",0==e.siteStrList.length),s.xp6(1),s.Q6J("ngIf",e.sitestrService.IsMobileview),s.xp6(1),s.Q6J("ngIf",!e.sitestrService.IsMobileview)}}function _n(e,t){if(1&e&&(s.TgZ(0,"small",149),s._uU(1),s.qZA()),2&e){const e=s.oxw();s.xp6(1),s.AsE(" Loaded ",e.siteService.result.length," of ",e.siteService.totalItems," ")}}function wn(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Email is required"),s.qZA())}function On(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Email must be a valid email address"),s.qZA())}function Dn(e,t){if(1&e&&(s.TgZ(0,"div",272),s.YNc(1,wn,2,0,"div",78),s.YNc(2,On,2,0,"div",78),s.qZA()),2&e){s.oxw();const e=s.MAs(55);s.xp6(1),s.Q6J("ngIf",e.errors.required),s.xp6(1),s.Q6J("ngIf",e.errors.email)}}function En(e,t){if(1&e&&(s.TgZ(0,"small",149),s._uU(1),s.qZA()),2&e){const e=s.oxw();s.xp6(1),s.AsE(" Loaded ",e.siteService.result.length," of ",e.siteService.result.length," ")}}function Ln(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Site selection is required"),s.qZA())}function Un(e,t){if(1&e&&(s.TgZ(0,"div",272),s.YNc(1,Ln,2,0,"div",78),s.qZA()),2&e){s.oxw();const e=s.MAs(92);s.xp6(1),s.Q6J("ngIf",e.errors.required)}}function Pn(e,t){1&e&&(s.TgZ(0,"div"),s._uU(1,"Document Selection required"),s.qZA())}function Jn(e,t){if(1&e&&(s.TgZ(0,"div",272),s.YNc(1,Pn,2,0,"div",78),s.qZA()),2&e){s.oxw();const e=s.MAs(63);s.xp6(1),s.Q6J("ngIf",""==e.value)}}function Fn(e,t){if(1&e){const e=s.EpF();s.TgZ(0,"app-booking-form",273),s.NdJ("BookingredirectAction",function(t){return s.CHM(e),s.oxw().onBookAFlat(t)}),s.qZA()}if(2&e){const e=s.oxw();s.Q6J("BookingredirectOnCancel",!1)("SiteId",e.SiteidBooking)("InquiryId",-1)("SiteStructure",e.selFlat)("customerId",0)("IsSiteStructureBooking",!1)}}const Bn=function(e){return{"is-invalid":e}};let Rn=(()=>{class e{constructor(e,t,i,n,r,l,a,c,d,u,p,m,h,f){this.companyledgerservice=e,this.filterService=t,this.popoverController=i,this.sitestrService=n,this.alertService=r,this._config=l,this.page=a,this.actionSheetCtrl=c,this.siteService=d,this.flattypeService=u,this.route=p,this.router=m,this.location=h,this.templateService=f,this.sitestructuredetail={},this.documentoption=["ALLOTMENT","AGREEMENT","Booking_Demand_Letter","BANK_NOC"],this.isList=!0,this._sgId=0,this.noDataImage=!1,this.IssitestrAddEdit=!1,this.openBookingModal=!1,this.SiteidBooking=0,this.currentScrollPosition=0,this.popupwindow="",this.IsImportHidden=!0,this.isMultipleInquiryDelete=!1,this.selectedAll=!1,this.bookingObject={},this.isBusy=!0,this.httpfunction=new g.r,this.curSitestr=0,this.isLoading=!1,this.Templatedata=[],this.isDeshboardFilter=!1,this.status={isOpen:!1},this.SiteredirectOnCancel=!0,this.redirectActiononISite=new s.vpe,this.whatsAppApiSendData={},this.isScrollEnabled=!0,this.sfilter=new o.e,this.columnList=[],this.siteStrList=[],this.siteStrListSearch=[],this.BuildingcolumnList=[],this.WingcolumnList=[],this.searchResults=[],this.pageCount=0,this.hideBookingStatus=!1,this.IsBookingPage=!0,this.sortarray=[{order:this.sitestrService.sortorder,column:"Building",title:"By Building No"},{order:this.sitestrService.sortorder,column:"Wings",title:"By Wing No"},{order:this.sitestrService.sortorder,column:"FlatNumber",title:"By Flat No"},{order:this.sitestrService.sortorder,column:"FlatType",title:"By Room Type"},{order:this.sitestrService.sortorder,column:"SalebleArea",title:"By Salable Area"},{order:this.sitestrService.sortorder,column:"BookingStatus",title:"By Booking Status"},{order:this.sitestrService.sortorder,column:"Status",title:"By Status"}],this.bookingItems=[{id:0,name:"All"},{id:1,name:"sold"},{id:2,name:"member"},{id:3,name:"OnHold"},{id:4,name:"UnSoldandOnHold"}],this.Booking_stat="Book Now",this.route.params.subscribe(e=>{"/marketing/bookinglist"==this.router.url&&(this.hideBookingStatus=!0,this.IsBookingPage=!0,this.sfilter.available=1,this.PageName="Booked Units List"),"/masters/sitestructure"==this.router.url?(this.sfilter.available=2,this.PageName="Available Units List",this.IsBookingPage=!1):null!=e.SiteId?(this.SiteId=e.SiteId,this.sfilter.siteid=this.SiteId,null!=e.InqId&&(this.InqId=e.InqId)):null!=e.SiteidOrBuldingNm?(1==e.type&&(this.SiteId=JSON.parse(e.SiteidOrBuldingNm)),2==e.type&&(this.BuildingNm=e.SiteidOrBuldingNm),this.isDeshboardFilter=!0):this.resetUrl()}
1),this.templateService.GetAlldataFromBookingList(),this.templateService.isGetSubscribe=!0,this.subscription=this.templateService.resultObs.subscribe(e=>{})}onPopState(e){this.isList||(this.isList=!this.isList)}doRefresh(e){this.filterService.updatedata(!0,"Available Flat List"),this.FilterData()}ngOnInit(){if(setTimeout(()=>{this.sitestrService.arrowDownEvent(150)},400),setTimeout(()=>{this.filterService.changeFilter(!0,!0,"Available Flat List")},200),this.siteService.GetAllsitesforsitestructure(),this.SignupId=this.sitestrService.getSignupId,this.UserId=this.sitestrService.GetUserId,this.companyledgerservice.GetAlldataFromBookingList(!0),this.httpfunction.scrolltop(),this.isScrollEnabled=!0,this.httpfunction.IsMobileview()||(document.onkeydown=this.OnKeydown.bind(this)),""!=this.httpfunction.getStorage("_filterData")){let t=JSON.parse(this.httpfunction.getStorage("_filterData"));if(null!=t&&null!=t){var e=t.find(e=>"Available Flat List"==e.Module);if(null!=e||null!=e){null!=e.SearchFilter.filter&&"string"!=typeof e.SearchFilter.filter&&(e.SearchFilter.filter="");let t=this.sfilter.available;this.sfilter=e.SearchFilter,this.sfilter.available=t,this.FilterData()}else this.FilterData()}else this.FilterData()}else this.FilterData()}OnKeydown(e){var t=e.key||e.keyCode;("Backspace"==t&&e.altKey||"Escape"==t)&&(this.isList=!0,this.resetUrl(),setTimeout(()=>{document.scrollingElement.scrollTop=this.currentScrollPosition,this.sitestrService.arrowDownEvent(this.sitestrService.selectedRowIndex)},150))}ngOnDestroy(){if(this.IssitestrAddEdit||this.filterService.RemoveFillLocalData("Available Flat List"),""!=this.httpfunction.getStorage("_filterData")&&null!=this.httpfunction.getStorage("_filterData")){let e=JSON.parse(this.httpfunction.getStorage("_filterData")).reverse();if(null!=e&&null!=e)for(let t=0;t<e.length;t++)"Daybook"==e[t].Module&&this.filterService.RemoveFillLocalData("Daybook"),"Ledger"==e[t].Module&&this.filterService.RemoveFillLocalData("Ledger"),"Outstanding Receivable"==e[t].Module&&this.filterService.RemoveFillLocalData("Outstanding Receivable")}null!=this.subscription&&this.subscription.unsubscribe(),null!=this.SiteSubscription&&this.SiteSubscription.unsubscribe(),this.sitestrService.resetService()}change(e){this.status.isOpen=e}toggleDropdown(e){$("#adv-search").dropdown("hide")}cancel(e){0==this.SiteredirectOnCancel?(this.currentScrollPosition=document.scrollingElement.scrollTop,this.redirectActiononISite.emit(e)):(setTimeout(()=>{document.scrollingElement.scrollTop=this.currentScrollPosition,this.filterService.changeFilter(!0,!0,"Available Flat List"),this.sitestrService.arrowDownEvent(this.sitestrService.selectedRowIndex)},200),this.form.resetForm(),this.resetUrl(),this.httpfunction.scrolltop(),this.isScrollEnabled=!0)}resetUrl(){this.isList=!0;let e=this.router.url;this.route.params.subscribe(t=>{null!=t.id&&""!=t.id&&(e=e.replace("/"+t.id,"")),this.location.go(e)}),this._sgId=0}edit(e){this.IssitestrAddEdit=!0,this.router.navigate(e>0?1==this.hideBookingStatus?["/marketing/bookingform/"+e]:["/masters/sitestructure/"+e]:["/masters/sitestructure/add"])}DeleteStructure(e,t){this.httpfunction.IsMobileview()?this.alertService.showMobileConfirm("Confirm Delete","Are you sure you want to delete this record","No","Delete").then(i=>{null!=i&&1==i.data&&(1==e?this.sitestrService.delete(t).subscribe(e=>{this.siteStrList=this.siteStrList.filter(e=>e.PK_Id!=t)}):this.sitestrService.DeleteBooking(t).subscribe(e=>{this.siteStrList=this.siteStrList.filter(e=>e.PK_Id!=t)}))}):this.alertService.showconfirm("Confirm","Are you sure you want to delete this record",["Yes","No"],null).subscribe(i=>{null!=i&&"Yes"==i.answer&&(1==e?this.sitestrService.delete(t).subscribe(e=>{this.siteStrList=this.siteStrList.filter(e=>e.PK_Id!=t)}):this.sitestrService.DeleteBooking(t).subscribe(e=>{this.siteStrList=this.siteStrList.filter(e=>e.PK_Id!=t)}))})}onSiteScroll(e){}DownloadFile(e){null!=this.SiteIdUpload&&this.sitestrService.GetSiteStructureColumn(this.SiteIdUpload.UIDN,e).subscribe(e=>{if(null!=e){var t=this.SiteIdUpload.SN,i=e.RegColumn.split(","),n=[];null!=e.LoanColumn&&(n=e.LoanColumn.split(","));for(let e=0;e<n.length;e++){const t=n[e];i.push(t),i.push(t+"_CommitmentDate")}var s=[];for(let e=0;e<i.length;e++){var r={};r.value=i[e],r.type="string",s.push(r)}this.sitestrService.saveAsExcel(t,[s])}})}toggleExcelImport(){this._myImageModal.show(),this.IsImportHidden=!this.IsImportHidden}goback(){this.location.back()}FilterData(){return this.isLoading=!0,null==this.sfilter.available&&null==this.sfilter.available&&(this.sfilter.available=0),null==this.sfilter.flatno&&(this.sfilter.flatno=""),this.isDeshboardFilter&&(null!=this.SiteId&&(this.sfilter.STIarray=[],this.sfilter.STIarray.push(this.SiteId)),null!=this.BuildingNm&&(this.sfilter.filter=this.BuildingNm)),null==this.sfilter.STIarray||null!=this.sfilter.STIarray&&0==this.sfilter.STIarray.length?(this.sfilter.STIarray=null,this.sfilter.STI=null):this.sfilter.STI=JSON.parse(JSON.stringify(this.sfilter.STIarray)),""==this.sfilter.BookingSts&&(this.sfilter.BookingSts=null),""==this.sfilter.BookingProgresSt&&(this.sfilter.BookingProgresSt=null),null==this.sfilter.Wngarray&&(this.sfilter.Wngarray=null),null==this.sfilter.Bldarray&&(this.sfilter.Bldarray=null),""==this.sfilter.BlockRange&&(this.sfilter.BlockRange=null),""==this.sfilter.AmountRange&&(this.sfilter.AmountRange=null),this.sfilter.available=1==this.IsBookingPage?1:2,this.sitestrService.filterArg=this.sfilter,this.sitestrService.GetAlldataWithReturn().subscribe(e=>{if(this.pageCount+=1,this.isLoading=!1,this.sitestrService.result=[],e.m_Item2>0){var t=Object.getOwnPropertyNames(e.m_Item1[0][0]),i="PK_Id,Status,SiteId,AllotmentLetter,BankNoc,DemantLetter,Receipt,Quotation,AgreementLetter,IsFinalBook".split(",");for(let e=0;e<i.length;e++){var n=t.indexOf(i[e]);n>-1&&t.splice(n,1)}this.columnList=t,this.siteStrList=e.m_Item1[0],1==this.pageCount&&(this.siteStrListSearch=this.siteStrList),this.buildingColValue=e.m_Item1[1][0].BuildingCol.replace(/\[|\]/g,""),this.wingColValue=e.m_Item1[1][0].WingCol.replace(/\[|\]/g,"");const{Building:s,Wing:r}=this.sitestrService.findUniqueValuesByColumns(this.buildingColValue,this.wingColValue,this.siteStrListSearch);if(this.BuildingcolumnList=s,this.WingcolumnList=r,this.siteStrList.sort((e,t)=>
1null===e.PK_Id&&null!==t.PK_Id?-1:null!==e.PK_Id&&null===t.PK_Id?1:0),this.siteStrList.length>0){for(let e=0;e<this.siteStrList.length;e++)null!=this.siteStrList[e].AllotmentDate&&null!=this.siteStrList[e].AllotmentDate&&(this.siteStrList[e].AllotmentDate=moment(this.siteStrList[e].AllotmentDate).format("DD-MMM-YYYY")),null!=this.siteStrList[e].AgreementDate&&null!=this.siteStrList[e].AgreementDate&&(this.siteStrList[e].AgreementDate=moment(this.siteStrList[e].AgreementDate).format("DD-MMM-YYYY"));"FlatNo"==this.sitestrService.sortcolumn&&this.siteStrList.sort(0==this.sitestrService.sortorder?function(e,t){return e.FlatNo-t.FlatNo}:function(e,t){return t.FlatNo-e.FlatNo})}}1==this.isBusy&&(this.isBusy=!1),0==this.siteStrList.length&&(this.noDataImage=!0)}),this.httpfunction.IsMobileview()||this.filterService.fillLocalData(this.sitestrService.filterArg,"Available Flat List"),!1}GenerateDocument(e,t,i){this.sfilter.CompanyId=this.sitestrService.getCompanyId,this.sfilter.SignupId=this.sitestrService.getSignupId,this.sfilter.InquiryId=this.bookingObject.InquiryId,this.sfilter.siteid=t,this.sfilter.sitestructureid=e,this.sfilter.DocType=i,this.sitestrService.filterArg=this.sfilter,this.sitestrService.GenerateDocument(this.sitestrService.filterArg).subscribe(e=>{if(""!=e||null!=e){var t=window.open(e.data,"_blank");t.focus(),t.print()}})}generateAndSendWhatsAppDocument(e,t){if(!e||!e.PK_Id||!e.SiteId)return void this.alertService.showWarning("WhatsApp","Booking and site details are required before generating the document.");const i=Object.assign({},this.sfilter,{CompanyId:this.sitestrService.getCompanyId,SignupId:this.sitestrService.getSignupId,InquiryId:e.InquiryId||e.InqI||this.bookingObject.InquiryId,siteid:e.SiteId,sitestructureid:e.PK_Id,DocType:t});this.sitestrService.GenerateDocument(i).subscribe(i=>{const n=i&&(i.data||i.Data||i.url||i.Url);n?this.openBookingDocumentWhatsApp(e,n,this.getWhatsAppDocumentTitle(t)):this.alertService.showError("WhatsApp","The document was not generated. Please check the document template and try again.")},()=>this.alertService.showError("WhatsApp","Unable to generate the document for WhatsApp."))}getWhatsAppDocumentTitle(e){return{Quotation:"Quotation","BOOKING FORM":"Booking Form",ALLOTMENT:"Allotment Letter",AGREEMENT:"Agreement Letter",Booking_Demand_Letter:"Demand Letter",BANK_NOC:"Bank NOC"}[e]||e||"Document"}onBookAFlat(e){if(null!=e){setTimeout(()=>{document.scrollingElement.scrollTop=this.currentScrollPosition},250);var t=this.sitestrService.result.findIndex(e=>e.UIDN==this.selFlat.UIDN);t>-1&&this.sitestrService.result.splice(t,1),this.addurl("masters/sitestructure"),this.sitestrService.openBrowser(e),this.FilterData()}this.openBookingModal=!1,this.isList=!0,this.resetUrl()}addurl(e){let t=e,i=this.router.url;i=i.substring(0,i.lastIndexOf("/")+0),i=i.substring(0,i.lastIndexOf("/")+0),this.route.params.subscribe(e=>{null!=e.id&&""!=e.id&&(i=i.replace("/"+e.id,"")),this.location.go(`${i}/${t}`)})}exportheader(e,t){let i="All";null!=e&&""!=e&&(i=e),this.sitestrService.filterHeader=" SearchBy : "+i+" ",this.sitestrService.Export(t)}cleardata(){this.sfilter.available=null,this.sfilter.siteid=null,this.sfilter.flatno=null,this.sfilter.Building=null,this.sfilter.Building=[],this.sfilter.Wing=null,this.sfilter.roomtype=null,this.sfilter.filter=null,this.sfilter.STI=[],this.sfilter.STIarray=[],this.sfilter.BookingSts="",this.sfilter.BookingProgresSt="",this.sfilter.Wngarray=null,this.sfilter.Bldarray=null,this.sfilter.AmountRange="",this.sfilter.Amount="",this.sfilter.Area="",this.sfilter.BlockRange="",this.isDeshboardFilter=!1}clearfilterandloadnewdata(){this.cleardata(),this.FilterData()}sortPopover(e){return(0,n.mG)(this,void 0,void 0,function*(){const t=yield this.popoverController.create({component:d.r,cssClass:"my-custom-class",event:e,translucent:!0,componentProps:{sortArray:this.sortarray,onClick:(e,i)=>{let n=new c.p(e,i);this.sitestrService.sortdata=n,t.dismiss()}}});return yield t.present()})}advSearchM(){this._SearchModal.show()}editOnArrowEvent(e){this.httpfunction.RolebaseData("booking")?this.edit(e):this.alertService.showInfo("Error","You do not have sufficient rights to perform this action. Please contact administrator.")}CloseImagePopup(){this._myImageModal.hide()}onExcelAdd(e){this.excelfileData=[];for(let t=0;t<e.length;t++){let i=new a.Q;i.name=e[t].name,i.operationType=0,i.src=e[t].src,i.CompanyId=this.sitestrService.getCompanyId,i.SignupId=this.sitestrService.getSignupId,i.FileLength=e[t].size,i.ModifiedDate=new Date,i.CreatedDate=new Date,i.CreatedBy=this.sitestrService.userid,i.modifyBy=this.sitestrService.userid,this.excelfileData.push(i)}}onExcelSubmit(){null!=this.excelfileData&&this.excelfileData.length>0?(this.excelfileData[0].Site_PK_Id=this.SiteIdUpload.UIDN,this.sitestrService.ImportExcel(this.excelfileData).subscribe(()=>{this.excelfileData=[],this.IsImportHidden=!this.IsImportHidden,this.doRefresh(null)},()=>{this.excelfileData=[],this.IsImportHidden=!this.IsImportHidden}),this.SiteIdUpload=[],this._myImageModal.hide(),this.IsImportHidden=!this.IsImportHidden):this.alertService.showError("Error","Please select atleast one File")}GeneratePDF(e){this.sitestrService.filterArg.PageType="Booking",this.sitestrService.filterArg.HistoryComment="channel Parner report has been exported.",this.sitestrService.filterArg.Action="Export";var t=this.siteStrList;let i=new Array;for(let c=0;c<t.length;c++){var n=t[c];let e=new Array;for(let t=0;t<this.columnList.length;t++){let i={};i=n[this.columnList[t]],e.push(i)}i.push(e)}this.sitestrService.ExportColumn=[{title:"finalarray",dataKey:"finalarray",size:50}];let s=new Array;var r=[],o=[];for(let c=0;c<this.columnList.length;c++)r.push({text:this.columnList[c],style:"tableHeader"}),o.push(null==this.columnList[c].size?"auto":this.columnList[c].size);s.push(r);for(let c=0;c<i.length;c++){const e=i[c];var l=[];let t=new Array;for(let i=0;i<e.length;
1i++)l.push(""!=e[i]&&null!=e[i]&&null!=e[i]?e[i]:""),t.push(l);s.push(t[0])}var a="Printed on : "+moment(new Date).format("DD MMM YYYY hh:mm:ss");this.sitestrService.GeneratePDF(e,a,this.PageName,o,s,"4A0")}ExportExcel(){this.sitestrService.filterArg.PageType="Booking",this.sitestrService.filterArg.HistoryComment="Booking report has been exported.",this.sitestrService.filterArg.Action="Export";let e="",t="";t="Page Name :"+this.PageName+"Printed on : "+moment(new Date).format("DD MMM YYYY hh:mm:ss")+"\r\n";for(let r=0;r<this.columnList.length;r++)t+='"'+this.columnList[r]+'",';let i=new Array;t=t.slice(0,-1),e+=t+"\r\n",i.push(t);for(let r=0;r<this.siteStrList.length;r++){const t=this.siteStrList[r];let s="";new Array;for(let e=0;e<this.columnList.length;e++){var n=this.columnList[e];s+=""!=t[n]&&null!=t[n]&&null!=t[n]?'"'+t[n]+'",':'"",'}s=s.slice(0,-1),e+=s+"\r\n",i.push(s)}var s=document.createElement("a");document.body.appendChild(s),s.setAttribute("style","display: none"),s.href="data:text/csv;charset=utf-8,%EF%BB%BF"+encodeURI(e),s.download="SiteStructure.csv",(new Date).toISOString(),this.sitestrService.PostRequest("v1/overallhistory/Add"),s.click(),s.remove()}OpenEmailPopup(e,t,i){if(this.sitestructuredetail=this.siteStrList.filter(t=>t.PK_Id==e),this.documentoptioninpopup=Object.assign([],this.documentoption),null==this.sitestructuredetail[0].AllotmentLetter){let e=this.documentoptioninpopup.findIndex(e=>"ALLOTMENT"===e);e>0&&this.documentoptioninpopup.splice(e,1)}if(null==this.sitestructuredetail[0].AgreementLetter){let e=this.documentoptioninpopup.findIndex(e=>"AGREEMENT"===e);e>0&&this.documentoptioninpopup.splice(e,1)}if(null==this.sitestructuredetail[0].DemantLetter){let e=this.documentoptioninpopup.findIndex(e=>"Booking_Demand_Letter"===e);e>0&&this.documentoptioninpopup.splice(e,1)}if(null==this.sitestructuredetail[0].BankNoc){let e=this.documentoptioninpopup.findIndex(e=>"BANK_NOC"===e);e>0&&this.documentoptioninpopup.splice(e,1)}if(null==this.sitestructuredetail[0].CusLedgerId)this.alertService.showInfo("Warning","Please Select Customer Account");else{var n=this.companyledgerservice.result.filter(e=>e.UIDN==this.sitestructuredetail[0].CusLedgerId);this.SiteId=t,this.Ledgeremail=n[0].Eml,this._EmailModal.show()}}CloseEmailPopup(){this._EmailModal.hide()}SendEmail(e,t){let i=new l.bh;i.ToEmailId=e.value.email,i.documenttype=e.value.DocumentType,i.CI=this.sitestrService.getCompanyId,i.SI=this.sitestrService.getSignupId,i.SiteStrId=t[0].PK_Id,i.SiteId=t[0].SiteId,i.SendType="EM","ALLOTMENT"==i.documenttype&&(i.documentlink=t[0].AllotmentLetter),"AGREEMENT"==i.documenttype&&(i.documentlink=t[0].AgreementLetter),"Booking_Demand_Letter"==i.documenttype&&(i.documentlink=t[0].DemantLetter),"BANK_NOC"==i.documenttype&&(i.documentlink=t[0].BankNoc),this.sitestrService.SendEmail(i).subscribe(e=>{})}OpenOtherDocumentPopup(e,t){this.OtherDocSitestrPk_id=e,this.OtherDocSiteId=t;const i=["Receipt","Contra","Journal","Sales","Purchase","Payment","Quotation","AGREEMENT","SignupSMS","SignupVerify","PaymentEmail","PaymentReceipt","ALLOTMENT","Booking_Demand_Letter","Demand_Letter","BOOKING FORM"],n=t>0&&null!==t?this.templateService.result.filter(e=>e.SI===t||0===e.SI):this.templateService.result;this.Templatedata=n.filter(e=>!i.includes(e.TN)&&1==e.baseTemplate&&!e.TN.toLowerCase().includes("demand")),this._OtherDocument.show()}CloseOtherDocumentPopup(){this._OtherDocument.hide()}GenerateOtherDocument(e){e.valid&&this.GenerateDocument(this.OtherDocSitestrPk_id,this.OtherDocSiteId,this.SelectedOtherDocument.TN),this._OtherDocument.hide()}onImageAdd(e){this.excelfileData=[];for(let t=0;t<e.length;t++){let i=new a.Q;i.name=e[t].name,i.operationType=e[t].operationType,i.src=e[t].src,i.src=e[t].src,i.BuildingMaster_PK_Id=e[t].Booking_Pk_Id,i.ModifiedDate=new Date,i.CreatedDate=new Date,i.CreatedBy=this.sitestrService.userid,i.modifyBy=this.sitestrService.userid,i.CompanyId=this.sitestrService.getCompanyId,i.SignupId=this.sitestrService.getSignupId,i.FileLength=null==e[t].PK_Id?e[t].size:e[t].FileLength,i.PK_Id=e[t].PK_Id,this.excelfileData.push(i)}}OpenImagePopup(e){this.BookingId=e,this.excelfileData=this.siteStrList.filter(e=>e.PK_Id==this.BookingId)[0].src,this._myImageUploadModal.show()}SubmitImage(){this.sitestrService.AddImage(this.BookingId,this.excelfileData).subscribe(e=>{""==e&&null==e||(this.siteStrList.filter(e=>e.PK_Id==this.BookingId)[0].UploadImages=e.data,this._myImageUploadModal.hide())}),setTimeout(()=>{document.scrollingElement.scrollTop=this.currentScrollPosition},250)}selectAllchange(e){this.siteStrList.forEach(function(t){t.Ick=e.target.checked});var t=this.siteStrList.filter(e=>1==e.Ick).map(e=>e.PK_Id).length;this.isMultipleInquiryDelete=0!=t}selectSinglechange(){var e=this.siteStrList.filter(e=>1==e.Ick).map(e=>e.PK_Id).length;this.isMultipleInquiryDelete=0!=e,this.selectedAll=this.siteStrList.length==e}isSold(e){return"sold"===(e?e.toLowerCase():"")}isMember(e){return"member"===(e?e.toLowerCase():"")}isUnSold(e){return"unsold"===(e?e.toLowerCase():"")}isOnHold(e){return"onhold"===(e?e.toLowerCase():"")}isTenent(e){return"tenent"===(e?e.toLowerCase():"")}isInvestor(e){return"investor"===(e?e.toLowerCase():"")}moreOptions(e){return(0,n.mG)(this,void 0,void 0,function*(){var t=[{text:"Generate & WhatsApp Quotation",role:"destructive",icon:"home-outline",handler:()=>{this.generateAndSendWhatsAppDocument(e,"Quotation")}},{text:"Generate & WhatsApp Allotment",role:"destructive",icon:"logo-whatsapp",handler:()=>this.generateAndSendWhatsAppDocument(e,"ALLOTMENT")},{text:"Generate Allotment",role:"destructive",icon:"home-outline",handler:()=>{this.GenerateDocument(e.PK_Id,e.SiteId,"ALLOTMENT")}},{text:"Generate & WhatsApp Agreement",role:"destructive",icon:"logo-whatsapp",handler:()=>this.generateAndSendWhatsAppDocument(e,"AGREEMENT")},{text:"Generate Agreement",role:"destructive",icon:"home-outline",handler:()=>{this.GenerateDocument(e.PK_Id,e.SiteId,"AGREEMENT")}},{text:"Generate & WhatsApp Demand",role:"destructive",icon:"logo-whatsapp",handler:()=>this.generateAndSendWhatsAppDocument(e,"Booking_Demand_Letter")},{text:"Generate Demand",role:"destructive",icon:"person-outline",handler:()=>{this.GenerateDocument(e.PK_Id,e.SiteId,"Booking_Demand_Letter")}},{text:"Generate Bank NOC",role:"destructive",icon:"receipt-outline",handler:()=>{this.GenerateDocument(e.PK_Id,e.SiteId,"BANK_NOC")}},{text:"Other Document",role:"destructive",icon:"receipt-outline",handler:()=>{this.OpenOtherDocumentPopup(e.PK_Id,e.SiteId)}},{text:"Image Upload",role:"destructive",icon:"information-outline",handler:()=>{this.OpenImagePopup(e.PK_Id)}},{text:"Cancel",icon:"close",role:"cancel",handler:()=>{console.log("Cancel clicked")}}];!e.BookingStatus||"SOLD"!==e.BookingStatus.toUpperCase()&&"ONHOLD"!==e.BookingStatus.toUpperCase()&&"TENENT"!==e.BookingStatus.toUpperCase()&&"MEMBER"!==e.BookingStatus.toUpperCase()||null==e.AllotmentLetter||""==e.AllotmentLetter||null==e.AllotmentLetter||(t.push({text:"Download Allotment",role:"destructive",icon:"download-outline",handler:()=>{this.sitestrService.openBrowser(e.AllotmentLetter)}}),t.push({text:"WhatsApp Allotment",role:"destructive",icon:"logo-whatsapp",handler:()=>this.openBookingDocumentWhatsApp(e,e.AllotmentLetter,"Allotment Letter")})),!e.BookingStatus||"SOLD"!==e.BookingStatus.toUpperCase()&&"ONHOLD"!==e.BookingStatus.toUpperCase()&&"TENENT"!==e.BookingStatus.toUpperCase()&&"MEMBER"!==e.BookingStatus.toUpperCase()||null==e.AgreementLetter||""==e.AgreementLetter||null==e.AgreementLetter||(t.push({text:"Download AgreementLetter",role:"destructive",icon:"download-outline",handler:()=>{this.sitestrService.openBrowser(e.AgreementLetter)}}),t.push({text:"WhatsApp Agreement",role:"destructive",icon:"logo-whatsapp",handler:()=>this.openBookingDocumentWhatsApp(e,e.AgreementLetter,"Agreement")})),!e.BookingStatus||"SOLD"!==e.BookingStatus.toUpperCase()&&"ONHOLD"!==e.BookingStatus.toUpperCase()&&"TENENT"!==e.BookingStatus.toUpperCase()&&"MEMBER"!==e.BookingStatus.toUpperCase()||null==e.AgreementLetter||""==e.AgreementLetter||null==e.BankNoc||t.push({text:"Download Bank NOC",role:"destructive",icon:"download-outline",handler:()=>{this.sitestrService.openBrowser(e.BankNoc)}}),yield(yield this.actionSheetCtrl.create({header:"More - ",cssClass:"my-custom-class",buttons:t})).present()})}openBookingDocumentWhatsApp(e,t,i){if(!t)return void this.alertService.showWarning("WhatsApp","Please generate the "+i+" first.");const n=e.NameOnAgreement||e.CustomerName||e.LedgerName||e.custledgename||"";this.whatsAppApiSendData={moduleName:"Document",refId:e.PK_Id||e.UIDN,mobileNo:e.MobileNo||e.CNO||e.ContactNo||e.CusCNo||e.mobileNo||"",customerName:n,documentUrl:t,documentFileName:(i||"Booking_Document").replace(/\s+/g,"_")+".pdf",parameters:{name:n,document_type:i,document_url:t},bulkReceivers:[]},setTimeout(()=>this.whatsAppApiSendPopup.open(),0)}isDigit(e){return!isNaN(parseFloat(e))&&isFinite(e)}}return e.\u0275fac=function(t){return new(t||e)(s.Y36(p.Q),s.Y36(m.i),s.Y36(h.Dh),s.Y36(f.l),s.Y36(T.Rq),s.Y36(c.De),s.Y36(Z.T3),s.Y36(h.BX),s.Y36(A.P),s.Y36(r.G),s.Y36(v.gz),s.Y36(v.F0),s.Y36(b.Ye),s.Y36(u.E))},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-sitestructure-list"]],viewQuery:function(e,t){if(1&e&&(s.Gf(ti,5),s.Gf(ii,5,s.SBq),s.Gf(ni,5),s.Gf(si,5),s.Gf(ri,5),s.Gf(oi,5),s.Gf(li,5),s.Gf(ai,5),s.Gf(ci,5),s.Gf(gi,7)),2&e){let e;s.iGM(e=s.CRH())&&(t.form=e.first),s.iGM(e=s.CRH())&&(t.inputName=e.first),s.iGM(e=s.CRH())&&(t._SearchModal=e.first),s.iGM(e=s.CRH())&&(t.infiniteScroll=e.first),s.iGM(e=s.CRH())&&(t.virtualScroll=e.first),s.iGM(e=s.CRH())&&(t._myImageModal=e.first),s.iGM(e=s.CRH())&&(t._myImageUploadModal=e.first),s.iGM(e=s.CRH())&&(t._EmailModal=e.first),s.iGM(e=s.CRH())&&(t._OtherDocument=e.first),s.iGM(e=s.CRH())&&(t.whatsAppApiSendPopup=e.first)}},hostBindings:function(e,t){1&e&&s.NdJ("popstate",function(e){return t.onPopState(e)},!1,s.Jf7)},inputs:{SitestrId:"SitestrId",SiteredirectOnCancel:"SiteredirectOnCancel"},outputs:{redirectActiononISite:"redirectActiononISite"},features:[s._Bn([r.G,u.E])],decls:159,vars:38,consts:[["class","card booking-portfolio",4,"ngIf"],[3,"moduleName","refId","mobileNo","customerName","defaultParameters","documentUrl","documentFileName","bulkReceivers"],["whatsAppApiSendPopup",""],["bsModal","","tabindex","-1","role","dialog","aria-labelledby","SearchModal","aria-hidden","true",1,"modal","fade","bg-white",2,"z-index","99999"],["SearchModal","bs-modal"],[1,"container-fluid","p-0",2,"height","100%","background-color","white"],[1,"modal-content",2,"height","100%"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["role","form",3,"ngSubmit"],["ffilter","ngForm"],[1,"container-fluid",2,"margin-bottom","70px"],[1,"row","mt-2"],[1,"md-form","col-md-3","col-sm-6"],[1,"has-search"],[1,"fa","fa-search","form-control-feedback"],["type","text","placeholder","Search Site/Building/Wing Or Flat No.","name","search2","id","search2",1,"form-control",3,"ngModel","ngModelChange"],["search2","ngModel"],["selectOnTab","true","name","Site","bindLabel","SN","bindValue","UIDN","placeholder","Select Site",3,"virtualScroll","items","ngModel","loading","scrollToEnd","ngModelChange"],["ng-header-tmp",""],[1,"navbar","fixed-bottom","navbar-expand-sm","navbar-dark","bg-light"],[1,"navbar-nav","ml-auto","d-flex","flex-row-reverse","bd-highlight"],[1,"nav-item","active"],["type","submit",1,"btn","btn-primary","pull-right",3,"click"],[1,"fas","fa-search","mr-2"],[1,"nav-item","active","mr-2"],["type","submit",1,"btn","btn-dark",3,"click"],["bsModal","","tabindex","-1","role","dialog","aria-labelledby","myModalLabel","aria-hidden","true",1,"modalNew","fade",2,"width","90%"],["EmailModal","bs-modal"],["role","document",1,"modal-dialog","modal
1-md"],[1,"modal-content"],["novalidate","",3,"ScrollToInvalid","ngSubmit"],["frmEmail","ngForm"],[1,"modal-body"],[1,"content"],[1,"form-group","col-md-12"],[1,"form-group","md-form","col-sm-12"],[1,"ml-1","text-danger","font-weight-bold","h5"],["type","email","ngModel","","required","","name","email",1,"form-control",3,"ngModel","ngModelChange"],["email","ngModel"],["class","invalid-feedback",4,"ngIf"],["for","this.documentoptioninpopup"],["selectOnTab","true","autofocus","","ngModel","","name","DocumentType",3,"virtualScroll","items"],["DocumentType","ngModel"],[1,"modal-footer","mt-3",2,"padding-top","187px"],["type","button",1,"btn","btn-dark",3,"click"],["type","submit",1,"btn","btn-primary"],["ImageModal","bs-modal"],["frmImage","ngForm"],[1,"container"],[1,"form-group","col-md-12","p-0"],[1,"input-group"],[1,"md-form","form-group","col-sm-12","p-0"],["for","siteService"],["selectOnTab","true","autofocus","","required","","name","ImageSite","bindLabel","SN","placeholder","Select Site",3,"virtualScroll","ngClass","items","loading","ngModel","scrollToEnd","ngModelChange"],["ImageSite","ngModel"],["type","button",1,"btn","btn-primary",3,"click"],["type","button",1,"btn","btn-primary","mt-2",3,"click"],["maxFiles","1","required","","maxSize","2","fileExt","xls, xlsx",3,"filelist","uploadStatus"],["Importexcel",""],[1,"modal-footer","mt-3"],["ImageUploadModal","bs-modal"],[1,"form-group","col-sm-6","col-md-12"],["maxFiles","5","maxSize","5","fileExt","JPG, GIF, PNG, JPEG, Pdf, xls, xlsx, Docx, Doc",2,"width","100%",3,"filelist","uploadStatus"],["fileUpload",""],["type","submit",1,"btn","btn-primary",3,"click"],["OtherDocument","bs-modal"],["frmOtherDocument","ngForm"],["for","DocumentType"],["selectOnTab","true","autofocus","","name","DocumentType","id","DocumentType","bindLabel","TN","placeholder","Select Document Type",3,"virtualScroll","items","ngClass","ngModel","loading","required","ngModelChange"],[3,"BookingredirectOnCancel","SiteId","InquiryId","SiteStructure","customerId","IsSiteStructureBooking","BookingredirectAction",4,"ngIf"],[1,"card","booking-portfolio"],["class","customsearch",4,"ngIf"],["class","customsearchM",4,"ngIf"],["class","table-responsive booking-grid","id","tableContainer",4,"ngIf"],["id","tableContainerbody",3,"height",4,"ngIf"],[4,"ngIf"],["class","col-md-12 pl-0 pr-0",4,"ngIf"],["class","add-panel",3,"toggleAction",4,"ngIf"],[1,"customsearch"],[1,"c-header-nav"],[1,"mx-2","mb-3"],[1,"c-header-back",3,"click"],[1,"c-icon","c-icon-lg","cil-arrow-left"],[1,"mx-2"],[3,"submit"],["data-toggle","dropdown","aria-expanded","false",1,"form-group","has-search"],["type","text","placeholder","Search Site/Building/Wing Or Flat No.","name","search","id","search",1,"form-control",3,"ngModel","ngModelChange"],["search","ngModel"],[1,"mb-3"],["type","button",1,"btn","btnSmW","btn-primary",3,"click"],[1,"cil-search","btn-icon","mr-2"],[1,"none"],[1,"mb-2","ml-2"],["dropdown","","role","group",1,"btn-group","mb-2",3,"isOpen","isOpenChange"],["type","button","id","dropdownMenuButton","id","adv-search","data-toggle","dropdown","aria-expanded","false",1,"btn","btn-primary","dropdown-toggle"],[1,"cil-filter","mr-2"],["aria-labelledby","adv-search","role","menu",1,"dropdown-menu","filterform",2,"min-width","35rem",3,"click"],[1,"row"],[1,"md-form","col-md-6"],["for","Site"],["selectOnTab","true","name","Site","bindLabel","SN","bindValue","UIDN","placeholder","Select Site",3,"virtualScroll","items","multiple","ngModel","loading","scrollToEnd","ngModelChange"],["for","Building"],["selectOnTab","true","name","Building","placeholder","Select Building",3,"virtualScroll","items","multiple","ngModel","loading","scrollToEnd","ngModelChange"],["for","Wing"],["selectOnTab","true","name","Wing","placeholder","Select Wing",3,"virtualScroll","items","multiple","ngModel","loading","scrollToEnd","ngModelChange"],["for","FlatNofilter"],["type","text","placeholder","Enter Flat No.","name","FlatNofilter","id","FlatNofilter",1,"form-control",3,"ngModel","ngModelChange"],["FlatNofilter","ngModel"],["for","BookingStatus"],["name","BookingStatus","placeholder","Select Status","id","BookingStatus",3,"ngModel","ngModelChange"],["BookingStatus","ngModel"],["value","UnSold"],["value","Sold"],["value","OnHold"],["value","Tenent"],["value","Member"],["value","Investor"],["value","All"],["for","BookingProgresSt"],["name","BookingProgresSt","id","BookingProgresSt","placeholder","Select Booking Progress Status","dropdownPosition","top",3,"ngModel","ngModelChange"],["BookingProgresSt","ngModel"],["value","Registration Done"],["value","Booking Finalized"],["value","Allotted"],["value","Postpone"],["value","In Progress"],["value","Loan Issue"],["value","Booking Cancelled"],["for","amt"],["selectOnTab","true","name","amt","id","amt","placeholder","Select Range",3,"ngModel","ngModelChange"],["amt","ngModel"],["value","Greaterthan"],["value","Lessthan"],["value","EqualTo"],["value","NotEqualTo"],["autofocus","","type","text","placeholder","Enter Range","name","Amountvale","id","Amountvale",1,"md-form","form-control",3,"ngModel","ngModelChange"],["Amountvale","ngModel"],["for","Flattypes"],["selectOnTab","true","name","Flattypes","id","Flattypes","placeholder","Select Range",3,"ngModel","ngModelChange"],["Flattypes","ngModel"],["autofocus","","type","text","placeholder","Enter Range","name","Blcval","id","Blcval",1,"md-form","form-control",3,"ngModel","ngModelChange"],["Blcval","ngModel"],[1,"text-right","mr-3"],["type","submit",1,"btn","btn-primary","mr-2",3,"click"],["type","submit",1,"btn","btn-dark","pull-right",3,"click"],[1,"fas","fa-search"],[1,"form-text","text-muted"],[1,"customsearchM"],[1,"mr-1","mb-2","ml-2"],["name","chevron-back",3,"click"],["name","search","href","javascript:void(0)",3,"click"],[1,"mb-3","mt-1","LeftLi","text-center"],[1,"col","Font16","pl-1"],[1,"mr-3"],["name","filter-sharp",1,"pb-2",3,"click"],["id","tableContainer",1,"table-responsive","booking-grid"],["class","card-header","id","formHeader",4,"ngIf"],["infinite-scroll","",3,"scrollWindow","scrolled"],["class","table table-bordered table-striped booking-table",3,"fxHeader",4,"ngIf"],["id","fxheaderDiv","class","table-responsive fxheaderDiv",4,"ngIf"],["id","formHeader",1,"card-header"],[1,"col-md-6","col-sm-12","PageNameFsize","booking-list-title"],[1,"booking-list-icon"],[1,"fa","fa-building"],[1,"col-md-6","col-sm-12","pr-4"],[1,"booking-count"],[1,"table","table-bordered","table-striped","booking-table",3,"fxHeader"],["id","tableContainerHead"],[1,"form-check"],["type","checkbox","id","item_All",1,"form-check-input",3,"checked","ngModel","ngModelChange","change"],["for","item_All",1,"form-check-label"],[4,"ngFor","ngForOf"],[2,"min-width","195px",3,"dirsort","sortcolumn","click"],[3,"dirsort","sortcolumn","click"],["id","tableContainerbody",4,"ngIf"],[3,"dirsort","sortcolumn","click",4,"ngIf"],["id","tableContainerbody"],["container",""],["autofocus","",3,"tabindex","ToTalBackgroung","keydown.enter","keydown.arrowdown","keydown.arrowup",4,"ngFor","ngForOf"],["autofocus","",3,"tabindex","keydown.enter","keydown.arrowdown","keydown.arrowup"],[1,"form-check-label",3,"for"],["label","Select","type","checkbox",1,"form-check-input",3,"checked","ngModel","id","name","ngModelChange","change"],[2,"width","8%"],["class","btn-group actionmenu","dropdown","","container","body",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["class","badge badge-success",4,"ngIf"],["class","badge badge-secondary",4,"ngIf"],["class","badge badge-primary",4,"ngIf"],["class","badge badge-danger",4,"ngIf"],["class","badge badge-info",4,"ngIf"],["class","badge badge-warning",4,"ngIf"],[1,"badge","badge-success"],[1,"badge","badge-secondary"],[1,"badge","badge-primary"],[1,"badge","badge-danger"],[1,"badge","badge-info"],[1,"badge","badge-warning"],[1,"badge","badge-light"],["dropdown","","container","body",1,"btn-group","actionmenu"],["id","button-state-change","dropdownToggle","","type","button","aria-controls","dropdown-state-change",1,"border-0","waves-effect","btn-primary","btn-floating","btn-sm"],[1,"fas","fa-ellipsis-v"],["id","dropdown-state-change","class","dropdown-menu dropdown-menu-right","role","menu","aria-labelledby","button-state-change",4,"dropdownMenu"],["id","dropdown-state-change","role","menu","aria-labelledby","button-state-change",1,"dropdown-menu","dropdown-menu-right"],["role","menuitem"],["class","dropdown-item","href","javascript:void(0)","accesslevel","Edit","mname","booking",3,"appRole","SignupId","UserId","clickAllowed",4,"ngIf"],["role","menuitem",4,"ngIf"],["href","javascript:void(0)","title","Image Upload","placement","bottom",1,"dropdown-item","text-decoration-none",3,"click"],["href","javascript:void(0)","accesslevel","Edit","mname","booking",1,"dropdown-item",3,"appRole","SignupId","UserId","clickAllowed"],["href","javascript:void(0)","accesslevel","Delete","mname","booking",1,"dropdown-item",3,"appRole","SignupId","UserId","clickAllowed"],["href","javascript:void(0)","accesslevel","Edit","mname","booking",1,"dropdown-item",3,"appRole","SignupId","UserId","click"],["href","javascript:void(0)",1,"dropdown-item",3,"click"],["target","_blank",1,"dropdown-item","text-decoration-none",3,"href"],[1,"dropdown-item","text-decoration-none",3,"href"],["href","javascript:void(0)",1,"dropdown-item","text-decoration-none",3,"click"],["id","fxheaderDiv",1,"table-responsive","fxheaderDiv"],["id","fxheadertable",1,"table","table-bordered","table-striped","text-center"],[1,"col-md-6","col-sm-12","PageNameFsize"],["slot","fixed",3,"ionRefresh"],["pullingText","Pull to refresh","refreshingSpinner","bubbles","refreshingText","Refreshing..."],["approxItemHeight","239px",3,"items"],["ionvscroll",""],[3,"rowselected","click",4,"virtualItem"],["threshold","100px",3,"ionInfinite"],["ionInfinitescroll",""],["loadingSpinner","bubbles",3,"loadingText"],[3,"click"],[1,"pl-0","pr-0"],[1,"text-right","pl-0","pr-2"],["href","javascript:void(0)","title","Delete","accesslevel","Delete","mname","booking","placement","bottom",1,"card-link","float-right","ml-3",3,"appRole","SignupId","UserId","click","clickAllowed"],["name","trash-outline","color","danger"],["href","javascript:void(0)","title","Edit","accesslevel","Edit","mname","booking","placement","bottom",1,"card-link","float-right",3,"appRole","SignupId","UserId","click","clickAllowed"],["name","create-outline","color","primary"],["href","javascript:void(0)","placement","bottom",1,"float-right","card-link","text-dark",3,"click"],["name","ellipsis-vertical-outline"],["size-md","4","offset-md","3",4,"ngIf"],["size-md","4","offset-md","3"],[1,"font-weight-bold"],["class","skCard",4,"ngFor","ngForOf"],[1,"skCard"],[2,"text-align","-webkit-left"],["animated","",2,"width","60%"],["animated","",2,"width","90%"],["animated","",2,"width","80%"],[2,"text-align","-webkit-right"],["animated","",2,"width","70%"],[1,"table","table-bordered","table-striped",3,"fxHeader"],["animated","",2,"width","100%"],[1,"col-md-12","pl-0","pr-0"],[1,"mx-auto","noDataImage"],[1,"text-center"],["type","button","value","Add New","accesslevel","Add","mname","booking",1,"btn","btn-primary",3,"appRole","SignupId","UserId","clickAllowed"],[1,"add-panel",3,"toggleAction"],["id","add-panel-switch",1,"switch","text-right"],["tooltip","Print",1,"action-button","option","three","border-0","waves-effect","btn-amber","btn-floating",3,"click"],["search",""],["aria-hidden","true",1,"fas","fa-print"],["tooltip","Pdf",1,"action-button","option","two","border-0","waves-effect","btn-pink","btn-floating",3,"click"],["aria-hidden","true",1,"far","fa-file-pdf"],["tooltip","Export",1,"action-button","option","one","border-0","waves-effect","btn-default","btn-floating",3,"click"],["aria-hidden","true",1,"fas","fa-download"],[1,"border-0","waves-effect","btn-dark","btn-floating","action-button","plus","abs"],["aria-hidden","true",1,"fas","fa-ellipsis-v"],["accesslevel","Add","mname","booking","tooltip","Add New",1,"border-0","waves-effect","btn-primary","btn-floating",3,"appRole","SignupId","UserId","clickAllowed"],[1,"fas","fa-plus"],["tooltip","Print",1,"action-button","option","four","border-0","waves-effect","btn-amber","btn-floating",3,"click"],["tooltip","Pdf",1,"action-button","option","three","border-0","waves-effect","btn-pink","btn-floating",3,"click"],["tooltip","Import",1,"action-button","option","two","border-0","waves-effect","btn-orange","btn-floating",3,"click"],["aria-hidden","true",1,"fas","fa-upload"],[1,"invalid-feedback"],[3,"BookingredirectOnCancel","SiteId","InquiryId","SiteStructure","customerId","IsSiteStructureBooking","BookingredirectAction"]],template:function(e,t){if(1&e){const e=s.EpF();s.YNc(0,yn,10,9,"div",0),s._UZ(1,"app-whatsapp-api-send-popup",1,2),s.TgZ(3,"div",3,4),s.TgZ(5,"div",5),s.TgZ(6,"div",6),s.TgZ(7,"div",7),s.TgZ(8,"h4",8),s._uU(9,"Advance Search "),s.qZA(),s.TgZ(10,"button",9),s.NdJ("
1click",function(){return t._SearchModal.hide()}),s.TgZ(11,"span",10),s._uU(12,"\xd7"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(13,"form",11,12),s.NdJ("ngSubmit",function(){return t.FilterData()}),s.TgZ(15,"div",13),s.TgZ(16,"div",14),s.TgZ(17,"div",15),s.TgZ(18,"div",16),s._UZ(19,"span",17),s.TgZ(20,"input",18,19),s.NdJ("ngModelChange",function(e){return t.sfilter.filter=e}),s.qZA(),s.qZA(),s.qZA(),s.TgZ(22,"div",15),s.TgZ(23,"ng-select",20),s.NdJ("scrollToEnd",function(){return t.siteService.ScrollDown()})("ngModelChange",function(e){return t.sfilter.siteid=e}),s.YNc(24,_n,2,2,"ng-template",21),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(25,"nav",22),s.TgZ(26,"ul",23),s.TgZ(27,"li",24),s.TgZ(28,"button",25),s.NdJ("click",function(e){return t.toggleDropdown(e),t._SearchModal.hide()}),s._UZ(29,"i",26),s._uU(30,"Search "),s.qZA(),s.qZA(),s.TgZ(31,"li",27),s.TgZ(32,"button",28),s.NdJ("click",function(e){return t.clearfilterandloadnewdata(),t.toggleDropdown(e),t._SearchModal.hide()}),s._uU(33," Clear Filter "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(34,"div",29,30),s.TgZ(36,"div",31),s.TgZ(37,"div",32),s.TgZ(38,"div",7),s.TgZ(39,"h4",8),s._uU(40,"Send Email "),s.qZA(),s.TgZ(41,"button",9),s.NdJ("click",function(){return t.CloseEmailPopup()}),s.TgZ(42,"span",10),s._uU(43,"\xd7"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(44,"form",33,34),s.NdJ("ngSubmit",function(){s.CHM(e);const i=s.MAs(45);return i.form.valid&&t.SendEmail(i,t.sitestructuredetail)}),s.TgZ(46,"div",35),s.TgZ(47,"div",36),s.TgZ(48,"div",37),s.TgZ(49,"div",38),s.TgZ(50,"label"),s._uU(51,"Email Id"),s.TgZ(52,"span",39),s._uU(53,"*"),s.qZA(),s.qZA(),s.TgZ(54,"input",40,41),s.NdJ("ngModelChange",function(e){return t.Ledgeremail=e}),s.qZA(),s.YNc(56,Dn,3,2,"div",42),s.qZA(),s.TgZ(57,"div",38),s.TgZ(58,"label",43),s._uU(59,"Select Document Type"),s.TgZ(60,"span",39),s._uU(61,"*"),s.qZA(),s.qZA(),s._UZ(62,"ng-select",44,45),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(64,"div",46),s.TgZ(65,"button",47),s.NdJ("click",function(){return t.CloseEmailPopup()}),s._uU(66,"Close"),s.qZA(),s.TgZ(67,"button",48),s._uU(68,"Send Email"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(69,"div",29,49),s.TgZ(71,"div",31),s.TgZ(72,"div",32),s.TgZ(73,"div",7),s.TgZ(74,"h4",8),s._uU(75,"Generate Flat through sheet"),s.qZA(),s.TgZ(76,"button",9),s.NdJ("click",function(){return t.CloseImagePopup()}),s.TgZ(77,"span",10),s._uU(78,"\xd7"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(79,"form",33,50),s.NdJ("ngSubmit",function(){return s.CHM(e),s.MAs(80).form.valid&&t.onExcelSubmit()}),s.TgZ(81,"div",35),s.TgZ(82,"div",36),s.TgZ(83,"div",51),s.TgZ(84,"div",52),s.TgZ(85,"div",53),s.TgZ(86,"div",54),s.TgZ(87,"label",55),s._uU(88,"Site"),s.TgZ(89,"span",39),s._uU(90,"*"),s.qZA(),s.qZA(),s.TgZ(91,"ng-select",56,57),s.NdJ("scrollToEnd",function(){return t.siteService.ScrollDown()})("ngModelChange",function(e){return t.SiteIdUpload=e}),s.YNc(93,En,2,2,"ng-template",21),s.qZA(),s.YNc(94,Un,2,1,"div",42),s.qZA(),s.TgZ(95,"div",54),s.TgZ(96,"button",58),s.NdJ("click",function(){return t.DownloadFile(1)}),s._uU(97,"Download Import Format of Booking"),s.qZA(),s.TgZ(98,"button",59),s.NdJ("
1click",function(){return t.DownloadFile(2)}),s._uU(99,"Download Import Format of Site Structure"),s.qZA(),s.qZA(),s.TgZ(100,"div",54),s.TgZ(101,"app-file-upload",60,61),s.NdJ("uploadStatus",function(e){return t.onExcelAdd(e)}),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(103,"div",62),s.TgZ(104,"button",48),s._uU(105,"Upload File"),s.qZA(),s.TgZ(106,"button",47),s.NdJ("click",function(){return t.CloseImagePopup()}),s._uU(107,"Close"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(108,"div",29,63),s.TgZ(110,"div",31),s.TgZ(111,"div",32),s.TgZ(112,"div",7),s.TgZ(113,"h4",8),s._uU(114,"Image Upload "),s.qZA(),s.TgZ(115,"button",9),s.NdJ("click",function(){return s.CHM(e),s.MAs(109).hide()}),s.TgZ(116,"span",10),s._uU(117,"\xd7"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(118,"div",35),s.TgZ(119,"div",36),s.TgZ(120,"div",51),s.TgZ(121,"div",64),s.TgZ(122,"div",53),s.TgZ(123,"app-file-upload",65,66),s.NdJ("uploadStatus",function(e){return t.onImageAdd(e)}),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(125,"div",62),s.TgZ(126,"button",67),s.NdJ("click",function(){return t.SubmitImage()}),s._uU(127,"Submit"),s.qZA(),s.TgZ(128,"button",47),s.NdJ("click",function(){return s.CHM(e),s.MAs(109).hide()}),s._uU(129,"Close"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(130,"div",29,68),s.TgZ(132,"div",31),s.TgZ(133,"div",32),s.TgZ(134,"div",7),s.TgZ(135,"h4",8),s._uU(136,"Other Document "),s.qZA(),s.TgZ(137,"button",9),s.NdJ("click",function(){return t.CloseOtherDocumentPopup()}),s.TgZ(138,"span",10),s._uU(139,"\xd7"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(140,"form",33,69),s.NdJ("ngSubmit",function(){s.CHM(e);const i=s.MAs(141);return i.form.valid&&t.GenerateOtherDocument(i)}),s.TgZ(142,"div",35),s.TgZ(143,"div",36),s.TgZ(144,"div",37),s.TgZ(145,"div",38),s.TgZ(146,"label",70),s._uU(147,"Select Document"),s.TgZ(148,"span",39),s._uU(149,"*"),s.qZA(),s.qZA(),s.TgZ(150,"ng-select",71,45),s.NdJ("ngModelChange",function(e){return t.SelectedOtherDocument=e}),s.qZA(),s.YNc(152,Jn,2,1,"div",42),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(153,"div",46),s.TgZ(154,"button",47),s.NdJ("click",function(){return t.CloseOtherDocumentPopup()}),s._uU(155,"Close"),s.qZA(),s.TgZ(156,"button",48),s._uU(157,"Generate Document"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(158,Fn,1,6,"app-booking-form",72)}if(2&e){const e=s.MAs(45),i=s.MAs(55),n=s.MAs(63),r=s.MAs(80),o=s.MAs(92),l=s.MAs(141);s.Q6J("ngIf",t.isList),s.xp6(1),s.Q6J("moduleName",t.whatsAppApiSendData.moduleName)("refId",t.whatsAppApiSendData.refId)("mobileNo",t.whatsAppApiSendData.mobileNo)("customerName",t.whatsAppApiSendData.customerName)("defaultParameters",t.whatsAppApiSendData.parameters)("documentUrl",t.whatsAppApiSendData.documentUrl)("documentFileName",t.whatsAppApiSendData.documentFileName)("bulkReceivers",t.whatsAppApiSendData.bulkReceivers),s.xp6(19),s.Q6J("ngModel",t.sfilter.filter),s.xp6(3),s.Q6J("virtualScroll",!0)("items",t.siteService.result)("ngModel",t.sfilter.siteid)("loading",t.siteService.loading),s.xp6(31),s.Q6J("ngModel",t.Ledgeremail),s.xp6(2),s.Q6J("ngIf",e.submitted&&i.invalid),s.xp6(6),s.Q6J("virtualScroll",!0)("items",t.documentoptioninpopup),s.xp6(29),s.Q6J("virtualScroll",!0)("ngClass",s.VKq(34,Bn,r.submitted&&o.invalid))("items",t.siteService.result)("loading",t.siteService.loading)("ngModel",t.SiteIdUpload),s.xp6(3),s.Q6J("ngIf",r.submitted&&o.invalid),s.xp6(7),s.Q6J("filelist",t.excelfileData),s.xp6(22),s.Q6J("filelist",t.excelfileData),s.xp6(27),s.Q6J("virtualScroll",!0)("items",t.Templatedata)("ngClass",s.VKq(36,Bn,l.submitted&&""==n.value))("ngModel",t.SelectedOtherDocument)("loading",t.templateService.loading)("required",""==n.value),s.xp6(2),s.Q6J("ngIf",l.submitted&&""==n.value),s.xp6(6),s.Q6J("ngIf",t.openBookingModal)}},directives:[b.O5,S.N,C.oB,x._Y,x.JL,x.F,x.Fj,x.JJ,x.On,k.x,I.w9,I.A3,M.u,x.Q7,b.mk,q.Y,N.TO,I.xv,h.gu,y.R,_.n,x.Wl,b.sg,w.n,N.Mq,N.Hz,O.g,h.W2,h.nJ,h.Wo,h.aJ,h.Rw,h.ju,h.MB,h.PM,h.Nd,h.wI,h.FN,h.CK,D.e,E.i9,ei],pipes:[b.uU],styles:[".ToTalBackgroung[_ngcontent-%COMP%]{background-color:silver!important}.customsearch[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%]{min-width:97px!important}.customsearch[_ngcontent-%COMP%] .filterform[_ngcontent-%COMP%]{max-width:calc(100vw - 24px);max-height:calc(100dvh - var(--ab-header-height) - 24px);overflow-x:hidden;overflow-y:auto}.booking-portfolio[_ngcontent-%COMP%]{border:0;border-radius:16px;background:#f4f7fb;box-shadow:none;overflow:hidden}.booking-portfolio[_ngcontent-%COMP%] > .customsearch[_ngcontent-%COMP%]{padding:10px 12px;border-bottom:1px solid #e4eaf2;background:#fff}.booking-grid[_ngcontent-%COMP%]{margin:12px;width:calc(100% - 24px);border:1px solid #e1e8f1;border-radius:14px;background:#fff;box-shadow:0 8px 24px #21344f0f}.booking-grid[_ngcontent-%COMP%] > .card-header[_ngcontent-%COMP%]{position:sticky;left:0;padding:12px 16px;border:0;border-bottom:1px solid #e4eaf2;background:linear-gradient(100deg,#fff 0%,#f1f7ff 100%)}.booking-list-title[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:10px;gap:10px}.booking-list-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;color:#172b4d;font-size:16px}.booking-list-title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{display:block;margin-top:2px;color:#718096;font-size:11px}.booking-list-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;color:#fff;background:linear-gradient(135deg,#087cf0,#1559c7)}.booking-count[_ngcontent-%COMP%]{display:inline-block;float:right;margin:3px 14px 0 0;padding:7px 12px;border-radius:999px;color:#1559c7;background:#eaf3ff;font-size:11px;font-weight:700}.booking-table[_ngcontent-%COMP%]{margin-bottom:0;color:#253858}.booking-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 9px;border-color:#e5ebf3;color:#53657d;background:#f8fafc;font-size:11px;font-weight:700;white-space:nowrap}.booking-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:12px 9px;border-color:#edf1f6;vertical-align:middle}.booking-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:not(.ToTalBackgroung):hover td[_ngcontent-%COMP%]{background:#f2f7ff}.booking-table[_ngcontent-%COMP%] .ToTalBackgroung[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:#eaf1f8!important;font-weight:700}#tableContainer[_ngcontent-%COMP%]::-webkit-scrollbar{height:10px}#tableContainer[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:2px solid #fff;border-radius:999px;background:#9fb1c7}#tableContainer[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#edf2f7}@media (max-width: 767px){.booking-portfolio[_ngcontent-%COMP%]{border-radius:10px}}"]}),e})()},85121:function(e,t,i){i.d(t,{j:function(){return s}});var n=i(61362);class s extends n.X{}},7638:function(e,t,i){i.d(t,{e:function(){return s}});var n=i(61362);class s extends n.X{}},2499:function(e,t,i){i.d(t,{H:function(){return s}});var n=i(61362);class s extends n.X{}},40411:function(e,t,i){i.d(t,{bh:function(){return s},JP:function(){return r}});var n=i(61362);class s extends n.X{constructor(){super(...arguments),this.IsMarketing=!0,this.AttechmentUrlList=[]}}class r extends n.X{}},55336:function(e,t,i){i.d(t,{Y:function(){return s},X:function(){return r}});var n=i(61362);class s extends n.X{constructor(){super(...arguments),this.EB="",this.ISWA=!1,this.baseTemplate=!1,this.IsSMSTrigredByNewInq=!1}}
1class r{constructor(){this.Templatetype=0}}},84575:function(e,t,i){i.d(t,{w:function(){return p}});var n=i(79765),s=i(57771),r=i(75319),o=i(96136),l=i(77971),a=i(78858);class c extends n.xQ{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new g(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let c;if(this.closed)throw new l.N;if(this.isStopped||this.hasError?c=r.w.EMPTY:(this.observers.push(e),c=new a.W(this,e)),n&&e.add(e=new o.ht(e,n)),t)for(let r=0;r<s&&!e.closed;r++)e.next(i[r]);else for(let r=0;r<s&&!e.closed;r++)e.next(i[r].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),c}_getNow(){return(this.scheduler||s.c).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,n=this._events,s=n.length;let r=0;for(;r<s&&!(e-n[r].time<i);)r++;return s>t&&(r=Math.max(r,s-t)),r>0&&n.splice(0,r),n}}class g{constructor(e,t){this.time=e,this.value=t}}var d=i(35758),u=i(33018);let p=(()=>{class e{constructor(){this._loadedLibraries={}}lazyLoadCkeditor(){return(0,d.D)([this.loadScript("./assets/ckeditor/ckeditor.js")])}loadScript(e){if(this._loadedLibraries[e])return this._loadedLibraries[e].asObservable();this._loadedLibraries[e]=new c;const t=window.document.createElement("script");return t.type="text/javascript",t.async=!0,t.src=e,t.onload=()=>{this._loadedLibraries[e].next(),this._loadedLibraries[e].complete()},window.document.body.appendChild(t),this._loadedLibraries[e].asObservable()}loadStyle(e){if(this._loadedLibraries[e])return this._loadedLibraries[e].asObservable();this._loadedLibraries[e]=new c;const t=window.document.createElement("link");return t.type="text/css",t.href=e,t.rel="stylesheet",t.onload=()=>{this._loadedLibraries[e].next(),this._loadedLibraries[e].complete()},window.document.getElementsByTagName("head")[0].appendChild(t),this._loadedLibraries[e].asObservable()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()}}]);
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.