PageSourceSearch

https://bindlabs.ai/chunk-S5B5TEXF.js

js bindlabs.ai collected 2026-10-05 14:41:23 UTC 76,565 bytes, 1 lines download raw bytes

1import{a as Te}from"./chunk-PO7XLGZ3.js";import{a as J}from"./chunk-RFNNUHI6.js";import{a as Ne,b as we}from"./chunk-E2S7DYWU.js";import{a as q,b as O,c as R,d as A,e as $,f as j,g as G,h as H,i as L,j as B,l as W,m as T}from"./chunk-DUVGOTOE.js";import{b as be,h as xe,i as ye}from"./chunk-UP25AQSP.js";import{a as ke}from"./chunk-DVQ3ONJB.js";import{A as ve,B as Se,C as Ee,b as de,d as g,g as ue,h as he,i as _e,l as Ce,p as ge,s as fe}from"./chunk-6IRMHDHK.js";import{u as Q,v as k}from"./chunk-EEG5SW43.js";import{Z as pe}from"./chunk-OY32OXPB.js";import"./chunk-NPBD6TAU.js";import{n as M,r as Ue}from"./chunk-6WQJW4U7.js";import"./chunk-CARY4E7O.js";import{Db as Z,Eb as ie,Gb as oe,Hb as ae,Ib as l,Jb as a,Kb as u,Lb as h,Mb as _,Rb as N,Tb as f,Wb as E,Xb as Y,Xc as se,Zc as ce,bc as c,cc as I,da as te,db as s,dc as C,eb as S,gc as re,hc as le,ic as me,kc as V,kd as P,lc as y,mc as b,na as F,oa as ne,wb as d,yb as p}from"./chunk-WJPPEZ4G.js";import"./chunk-DM275RSA.js";var qe=()=>["particulars","value","value1"],Pe=()=>["particularss","value","value1","value2"],Oe=()=>["particular","values","values1"],D=e=>({"input-error":e});function Xe(e,i){if(e&1&&(l(0,"mat-option",17),c(1),a()),e&2){let t=i.$implicit;p("value",t.stateId),s(),I(t.stateName)}}function Ze(e,i){e&1&&(l(0,"th",36),c(1,"Agreement value"),a())}function et(e,i){if(e&1&&(l(0,"td",37),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.label," ")}}function tt(e,i){e&1&&(l(0,"th",38)(1,"span"),u(2,"img",39),c(3," Please fill in only one field; the other will be disabled."),a(),u(4,"br"),c(5," % the of Sale value. "),a())}function nt(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": Either % the of Sale value or value is required. ")}}function it(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function ot(e,i){if(e&1&&(l(0,"td",37),u(1,"input",40),d(2,nt,2,1,"mat-error",41)(3,it,2,0,"mat-error",41),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName),p("ngClass",b(4,D,((t=m.agreementForm.get(n.controlName))==null?null:t.hasError("required"))&&((t=m.agreementForm.get(n.controlName))==null?null:t.touched)||((t=m.agreementForm.get(n.controlName))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.agreementForm.get(n.controlName))==null?null:r.hasError("required"))&&((r=m.agreementForm.get(n.controlName))==null?null:r.touched)),s(),p("ngIf",(o=m.agreementForm.get(n.controlName))==null?null:o.hasError("pattern"))}}function at(e,i){e&1&&(l(0,"th",36),c(1,"Value in (Rs)"),a())}function rt(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": Either % the of Sale value or value is required. ")}}function lt(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function mt(e,i){if(e&1&&(l(0,"td",37),u(1,"input",42),d(2,rt,2,1,"mat-error",41)(3,lt,2,0,"mat-error",41),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName1),p("ngClass",b(4,D,((t=m.agreementForm.get(n.controlName1))==null?null:t.hasError("required"))&&((t=m.agreementForm.get(n.controlName1))==null?null:t.touched)||((t=m.agreementForm.get(n.controlName1))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.agreementForm.get(n.controlName1))==null?null:r.hasError("required"))&&((r=m.agreementForm.get(n.controlName1))==null?null:r.touched)),s(),p("ngIf",(o=m.agreementForm.get(n.controlName1))==null?null:o.hasError("pattern"))}}function st(e,i){e&1&&u(0,"tr",43)}function ct(e,i){e&1&&u(0,"tr",44)}function pt(e,i){e&1&&(l(0,"th",36),c(1,"Other charges"),a())}function dt(e,i){if(e&1&&(l(0,"td",37),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.label," ")}}function ut(e,i){e&1&&(l(0,"th",38)(1,"span"),u(2,"img",39),c(3," Please fill in only one field; the other will be disabled."),a(),u(4,"br"),c(5," % the of Sale value. "),a())}function ht(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": Either % the of Sale value or value is required. ")}}function _t(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function Ct(e,i){if(e&1&&(l(0,"td",37),u(1,"input",40),d(2,ht,2,1,"mat-error",41)(3,_t,2,0,"mat-error",41),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName),p("ngClass",b(4,D,((t=m.otherCharges.get(n.controlName))==null?null:t.hasError("required"))&&((t=m.otherCharges.get(n.controlName))==null?null:t.touched)||((t=m.otherCharges.get(n.controlName))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.otherCharges.get(n.controlName))==null?null:r.hasError("required"))&&((r=m.otherCharges.get(n.controlName))==null?null:r.touched)),s(),p("ngIf",(o=m.otherCharges.get(n.controlName))==null?null:o.hasError("pattern"))}}
1function gt(e,i){e&1&&(l(0,"th",36),c(1,"Value in (Rs)"),a())}function ft(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": Either % the of Sale value or value is required. ")}}function vt(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function St(e,i){if(e&1&&(l(0,"td",37),u(1,"input",42),d(2,ft,2,1,"mat-error",41)(3,vt,2,0,"mat-error",41),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName1),p("ngClass",b(4,D,((t=m.otherCharges.get(n.controlName1))==null?null:t.hasError("required"))&&((t=m.otherCharges.get(n.controlName1))==null?null:t.touched)||((t=m.otherCharges.get(n.controlName1))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.otherCharges.get(n.controlName1))==null?null:r.hasError("required"))&&((r=m.otherCharges.get(n.controlName1))==null?null:r.touched)),s(),p("ngIf",(o=m.otherCharges.get(n.controlName1))==null?null:o.hasError("pattern"))}}function Et(e,i){e&1&&(l(0,"th",36),c(1,"GST amount F"),a())}function bt(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": GST amount is required. ")}}function xt(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function yt(e,i){if(e&1&&(l(0,"td",37),u(1,"input",42),d(2,bt,2,1,"mat-error",41)(3,xt,2,0,"mat-error",41),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName2),p("ngClass",b(4,D,((t=m.otherCharges.get(n.controlName2))==null?null:t.hasError("required"))&&((t=m.otherCharges.get(n.controlName2))==null?null:t.touched)||((t=m.otherCharges.get(n.controlName2))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.otherCharges.get(n.controlName2))==null?null:r.hasError("required"))&&((r=m.otherCharges.get(n.controlName2))==null?null:r.touched)),s(),p("ngIf",(o=m.otherCharges.get(n.controlName2))==null?null:o.hasError("pattern"))}}function Nt(e,i){e&1&&u(0,"tr",43)}function wt(e,i){e&1&&u(0,"tr",44)}function Tt(e,i){e&1&&(l(0,"th",36),c(1,"Other possession related charges (Estimate-Subject to revision"),u(2,"br"),c(3," basis actual)"),a())}function Pt(e,i){if(e&1&&(l(0,"td",37),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.label," ")}}function Dt(e,i){e&1&&(l(0,"th",38)(1,"span"),u(2,"img",39),c(3," Please fill in only one field; the other will be disabled."),a(),u(4,"br"),c(5," % the of Sale value. "),a())}function Ut(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": Either % the of Sale value or value is required. ")}}function It(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function Ft(e,i){if(e&1&&(l(0,"td",37),u(1,"input",40),d(2,Ut,2,1,"mat-error",41)(3,It,2,0,"mat-error",41),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName),p("ngClass",b(4,D,((t=m.otherPossession.get(n.controlName))==null?null:t.hasError("required"))&&((t=m.otherPossession.get(n.controlName))==null?null:t.touched)||((t=m.otherPossession.get(n.controlName))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.otherPossession.get(n.controlName))==null?null:r.hasError("required"))&&((r=m.otherPossession.get(n.controlName))==null?null:r.touched)),s(),p("ngIf",(o=m.otherPossession.get(n.controlName))==null?null:o.hasError("pattern"))}}function Vt(e,i){e&1&&(l(0,"th",36),c(1,"Value in (Rs)"),a())}function Mt(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": Either % the of Sale value or value is required. ")}}function kt(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function qt(e,i){if(e&1&&(l(0,"td",37),u(1,"input",42),d(2,Mt,2,1,"mat-error",41)(3,kt,2,0,"mat-error",41),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName1),p("ngClass",b(4,D,((t=m.otherPossession.get(n.controlName1))==null?null:t.hasError("required"))&&((t=m.otherPossession.get(n.controlName1))==null?null:t.touched)||((t=m.otherPossession.get(n.controlName1))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.otherPossession.get(n.controlName1))==null?null:r.hasError("required"))&&((r=m.otherPossession.get(n.controlName1))==null?null:r.touched)),s(),p("ngIf",(o=m.otherPossession.get(n.controlName1))==null?null:o.hasError("pattern"))}}function Ot(e,i){e&1&&(l(0,"th",36),c(1,"GST amount"),a())}function Rt(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": GST amount is required. ")}}function At(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function $t(e,i){if(e&1&&(l(0,"td",37),u(1,"input",42),d(2,Rt,2,1,"mat-error",41)(3,At,2,0,"mat-error",41),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName2),p("ngClass",b(4,D,((t=m.otherPossession.get(n.controlName2))==null?null:t.hasError("required"))&&((t=m.otherPossession.get(n.controlName2))==null?null:t.touched)||((t=m.otherPossession.get(n.controlName2))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.otherPossession.get(n.controlName2))==null?null:r.hasError("required"))&&((r=m.otherPossession.get(n.controlName2))==null?null:r.touched)),s(),p("ngIf",(o=m.otherPossession.get(n.controlName2))==null?null:o.hasError("pattern"))}}function jt(e,i){e&1&&u(0,"tr",43)}function Gt(e,i){e&1&&u(0,"tr",44)}function Ht(e,i){e&1&&u(0,"th",36)}function Lt(e,i){if(e&1&&(l(0,"td",37),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.label," ")}}function Bt(e,i){e&1&&(l(0,"th",36),c(1,"Cheque favouring"),a())}
1function Wt(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" Please enter ",t.label," ")}}function Jt(e,i){if(e&1&&(l(0,"td",37),u(1,"input",45),d(2,Wt,2,1,"mat-error",41),a()),e&2){let t,r,o=i.$implicit,n=f();s(),Y("placeholder","Enter ",o.label,""),E("formControlName",o.controlName),p("ngClass",b(5,D,((t=n.bankForm.get(o.controlName))==null?null:t.hasError("required"))&&((t=n.bankForm.get(o.controlName))==null?null:t.touched))),s(),p("ngIf",((r=n.bankForm.get(o.controlName))==null?null:r.hasError("required"))&&((r=n.bankForm.get(o.controlName))==null?null:r.touched))}}function zt(e,i){e&1&&(l(0,"th",36),c(1,"Payment towards"),a())}function Kt(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" Please enter Payment towards ",t.label," ")}}function Yt(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function Qt(e,i){if(e&1&&(l(0,"td",37),u(1,"input",45),d(2,Kt,2,1,"mat-error",41)(3,Yt,2,0,"mat-error",41),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),Y("placeholder","Enter ",n.label,""),E("formControlName",n.controlName1),p("ngClass",b(6,D,((t=m.bankForm.get(n.controlName1))==null?null:t.hasError("required"))&&((t=m.bankForm.get(n.controlName1))==null?null:t.touched)||((t=m.bankForm.get(n.controlName1))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.bankForm.get(n.controlName1))==null?null:r.hasError("required"))&&((r=m.bankForm.get(n.controlName1))==null?null:r.touched)),s(),p("ngIf",(o=m.bankForm.get(n.controlName1))==null?null:o.hasError("pattern"))}}function Xt(e,i){e&1&&u(0,"tr",43)}function Zt(e,i){e&1&&u(0,"tr",44)}var Ae=(()=>{class e{constructor(t,r,o,n,m,v){this.router=t,this.commonServices=r,this.masterServices=o,this.fb=n,this.encryptDecryptService=m,this.projectService=v,this.saveReq=JSON.parse(this.commonServices.getLocalStorage("unitCostSheetReq")),this.states=[],this.projectId=this.commonServices.getLocalStorage("projectId"),this.subscriptions=[],this.agreementDetails=[{label:"CGST on agreement value(2.5%)",controlName:"percentCGST",controlName1:"valueCGST"},{label:"SGST on agreement value",controlName:"percentSGST",controlName1:"valueSGST"},{label:"Stamp duty charges",controlName:"percentStamp",controlName1:"valueStamp"},{label:"Registration and Processing charges Separately",controlName:"percentRegistration",controlName1:"valueRegistration"}],this.otherChargesDetails=[{label:"Other charges(Estimates that may be revised at the time of possessional)",controlName:"percentOther",controlName1:"valueOther",controlName2:"gstOther"},{label:"Legal charges",controlName:"percentLegal",controlName1:"valueLegal",controlName2:"gstLegal"},{label:"Society/Condominium formation charges",controlName:"percentSociety",controlName1:"valueSociety",controlName2:"gstSociety"},{label:"Electric and Water connection charges",controlName:"percentElectric",controlName1:"valueElectric",controlName2:"gstElectric"},{label:"Charges towards MGL connection charges",controlName:"percentCharges",controlName1:"valueCharges",controlName2:"gstCharges"},{label:"Proportionate share of charges for electrical receiving and substation",controlName:"percentProportionate",controlName1:"valueProportionate",controlName2:"gstProportionate"},{label:"Share application money",controlName:"percentShare",controlName1:"valueShare",controlName2:"gstShare"},{label:"Deposite of electrical meter of substation",controlName:"percentDeposite",controlName1:"valueDeposite",controlName2:"gstDeposite"}],this.otherPossessionDetails=[{label:"Corpus",controlName:"percentCorpus",controlName1:"valueCorpus",controlName2:"gstCorpus"},{label:"Estimated advanced maintenance charges",controlName:"percentAdvanced",controlName1:"valueAdvanced",controlName2:"gstAdvanced"},{label:"Proportionate share of taxes(Property tax-Provision for 12 months)",controlName:"percentProportionate",controlName1:"valueProportionate",controlName2:"gstProportionate"}],this.bankDetails=[{label:"Account name",controlName:"accountName",controlName1:"accountPayment"},{label:"Account no",controlName:"acountNo",controlName1:"accountNoPayment"},{label:"IFSC Code",controlName:"ifscCode",controlName1:"ifscCodePayment"}
1],this.getStates()}ngOnInit(){this.buildForm(),this.setupValueChangeSubscriptions(),this.saveReq!==null&&this.viewData()}buildForm(){this.agreementForm=this.fb.group({percentCGST:[""],valueCGST:[""],percentSGST:[""],valueSGST:[""],percentStamp:[""],valueStamp:[""],percentRegistration:[""],valueRegistration:[""]}),this.agreementForm.setValidators(this.atLeastOneFieldRequired(this.agreementDetails)),this.otherCharges=this.fb.group({percentOther:[""],valueOther:[""],gstOther:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentLegal:[""],valueLegal:[""],gstLegal:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentSociety:[""],valueSociety:[""],gstSociety:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentElectric:[""],valueElectric:[""],gstElectric:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentCharges:[""],valueCharges:[""],gstCharges:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentProportionate:[""],valueProportionate:[""],gstProportionate:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentShare:[""],valueShare:[""],gstShare:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentDeposite:[""],valueDeposite:[""],gstDeposite:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]]}),this.otherCharges.setValidators(this.atLeastOneFieldRequired(this.otherChargesDetails)),this.otherPossession=this.fb.group({percentCorpus:[""],valueCorpus:[""],gstCorpus:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentAdvanced:[""],valueAdvanced:[""],gstAdvanced:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentProportionate:[""],valueProportionate:[""],gstProportionate:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]]}),this.otherPossession.setValidators(this.atLeastOneFieldRequired(this.otherPossessionDetails)),this.bankForm=this.fb.group({accountName:["",[g.required]],accountPayment:["",[g.required]],acountNo:["",[g.required]],accountNoPayment:["",[g.required]],ifscCode:["",[g.required]],ifscCodePayment:["",[g.required]]})}setupValueChangeSubscriptions(){this.agreementDetails.forEach(t=>{let r=this.agreementForm.get(t.controlName),o=this.agreementForm.get(t.controlName1);r&&o&&(this.subscriptions.push(r.valueChanges.subscribe(n=>{n?(o.setValue(null,{emitEvent:!1}),o.disable({emitEvent:!1})):o.enable({emitEvent:!1}),this.agreementForm.updateValueAndValidity()})),this.subscriptions.push(o.valueChanges.subscribe(n=>{n?(r.setValue(null,{emitEvent:!1}),r.disable({emitEvent:!1})):r.enable({emitEvent:!1}),this.agreementForm.updateValueAndValidity()})))}),this.otherChargesDetails.forEach(t=>{let r=this.otherCharges.get(t.controlName),o=this.otherCharges.get(t.controlName1);r&&o&&(this.subscriptions.push(r.valueChanges.subscribe(n=>{n?(o.setValue(null,{emitEvent:!1}),o.disable({emitEvent:!1})):o.enable({emitEvent:!1}),this.otherCharges.updateValueAndValidity()})),this.subscriptions.push(o.valueChanges.subscribe(n=>{n?(r.setValue(null,{emitEvent:!1}),r.disable({emitEvent:!1})):r.enable({emitEvent:!1}),this.otherCharges.updateValueAndValidity()})))}),this.otherPossessionDetails.forEach(t=>{let r=this.otherPossession.get(t.controlName),o=this.otherPossession.get(t.controlName1);r&&o&&(this.subscriptions.push(r.valueChanges.subscribe(n=>{n?(o.setValue(null,{emitEvent:!1}),o.disable({emitEvent:!1})):o.enable({emitEvent:!1}),this.otherPossession.updateValueAndValidity()})),this.subscriptions.push(o.valueChanges.subscribe(n=>{n?(r.setValue(null,{emitEvent:!1}),r.disable({emitEvent:!1})):r.enable({emitEvent:!1}),this.otherPossession.updateValueAndValidity()})))})}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}getStates(){let t={stateStatus:-1};this.masterServices.getAllStates(t).subscribe(r=>{console.log(r),this.states=r.map(o=>({stateId:o.stateId,stateName:o.stateName}))})}atLeastOneFieldRequired(t){return r=>{let o=!1,n=!1;if(r instanceof _e){let m=r.controls;if(t.forEach(v=>{let x=m[v.controlName],w=m[v.controlName1],z=x?.value,K=w?.value;(z||K)&&(o=!0);let X=/^[0-9]+(\.[0-9]*)?$/;(z&&!X.test(z)||K&&!X.test(K))&&(n=!0)}),!o)return t.forEach(v=>{m[v.controlName]?.setErrors({required:!0}),m[v.controlName1]?.setErrors({required:!0})}),{required:!0};if(n)return t.forEach(v=>{let x=m[v.controlName],w=m[v.controlName1];x?.value&&!/^[0-9]+(\.[0-9]*)?$/.test(x.value)&&x.setErrors({pattern:!0}),w?.value&&!/^[0-9]+(\.[0-9]*)?$/.test(w.value)&&w.setErrors({pattern:!0})}),{pattern:!0}}return null}}navigationBack(){this.router.navigate(["tablet-app-onboarding",this.projectId,"project-details"])}getTwoColumnData(t,r,o){return o==="aggreement"?r.map(n=>({labelType:"AGREEMENT_VALUE",label:n.label,percentageSaleValue:t.get(n.controlName)?.value||null,value:t.get(n.controlName1)?.value||null,gstAmount:null})):r.map(n=>({labelType:n.label=="Account name"?"ACCOUNT_NAME":n.label=="Account no"?"ACCOUNT_NO":n.label=="IFSC Code"?"IFSC_CODE":null,value:t.get(n.controlName)?.value||null,amount:t.get(n.controlName1)?.value||null}))}getThreeColumnData(t,r,o){return o==="otherCharges"?r.map(n=>({labelType:"OTHER_CHARGES",label:n.label,percentageSaleValue:t.get(n.controlName)?.value||null,value:t.get(n.controlName1)?.value||null,gstAmount:t.get(n.controlName2)?.value||null})):r.map(n=>({labelType:"OTHER_POSSESSION_RELATED_CHARGES",label:n.label,percentageSaleValue:t.get(n.controlName)?.value||null,value:t.get(n.controlName1)?.value||null,gstAmount:t.get(n.controlName2)?.value||null}))}
1saveUnitCost(){if(this.agreementForm.valid&&this.otherCharges.valid&&this.otherPossession.valid&&this.bankForm.valid){let t=this.getTwoColumnData(this.agreementForm,this.agreementDetails,"aggreement"),r=this.getThreeColumnData(this.otherCharges,this.otherChargesDetails,"otherCharges"),o=this.getThreeColumnData(this.otherPossession,this.otherPossessionDetails,"otherPossession"),n=this.getTwoColumnData(this.bankForm,this.bankDetails,"bank"),m={projectId:this.encryptDecryptService.encryptData(this.projectId),stateId:this.encryptDecryptService.encryptData(this.selectedStateId),agreementValue:t,otherChargers:r,otherPossessionRelatedCharges:o,chequeFavouring:n};console.log(m),this.commonServices.setLocalStorage("unitCostSheetReq",JSON.stringify(m)),this.router.navigate(["unit-cost-sheet","preview-unit-cost-sheet"])}else{this.agreementForm.markAllAsTouched(),this.otherCharges.markAllAsTouched(),this.otherPossession.markAllAsTouched(),this.bankForm.markAllAsTouched();return}}viewData(){this.selectedStateId=Number(this.encryptDecryptService.decryptData(this.saveReq.stateId));let t=this.saveReq.agreementValue,r=this.saveReq.otherChargers,o=this.saveReq.otherPossessionRelatedCharges,n=this.saveReq.chequeFavouring;this.agreementDetails.forEach(m=>{let v=t.find(x=>x.label===m.label);v&&this.agreementForm.patchValue({[m.controlName]:v.percentageSaleValue,[m.controlName1]:v.value})}),this.otherChargesDetails.forEach(m=>{let v=r.find(x=>x.label===m.label);v&&this.otherCharges.patchValue({[m.controlName]:v.percentageSaleValue,[m.controlName1]:v.value,[m.controlName2]:v.gstAmount})}),this.otherPossessionDetails.forEach(m=>{let v=o.find(x=>x.label===m.label);v&&this.otherPossession.patchValue({[m.controlName]:v.percentageSaleValue,[m.controlName1]:v.value,[m.controlName2]:v.gstAmount})}),this.bankDetails.forEach(m=>{let v=n.find(x=>x.labelType.trim().toLowerCase().replace(/_/g," ")===m.label.trim().toLowerCase());v&&this.bankForm.patchValue({[m.controlName]:v.value,[m.controlName1]:v.amount})})}static{this.\u0275fac=function(r){return new(r||e)(S(M),S(k),S(Te),S(ve),S(Q),S(J))}}static{this.\u0275cmp=F({type:e,selectors:[["app-unit-cost-sheet"]],standalone:!0,features:[V],decls:85,vars:25,consts:[[1,"page-wrap"],[1,"row"],[1,"col-12","right-col"],[1,"right-col-contents"],[1,"back-icon"],["src","assets/icons/back-icon.svg","alt","back",1,"img",3,"click"],[1,"right-col-title","ms-2","mb-0","mt-3"],[1,"card","right-col-card","mt-4"],[1,"card-header-section"],[1,"text-section"],[1,"card-title","fw-semibold"],[1,"card-body-section"],[1,"card","inner-card"],[1,"row","mt-0"],[1,"col-3"],[1,"dropdown-field"],["placeholder","Select State",1,"dropdown-icon",3,"ngModelChange","ngModel"],[3,"value"],[1,"table-container","p-0","mt-4"],["mat-table","",1,"custom-table",3,"dataSource","formGroup"],["matColumnDef","particulars"],["mat-header-cell","","class","table-header",4,"matHeaderCellDef"],["mat-cell","","class","table-data",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","","class","table-header sales",4,"matHeaderCellDef"],["matColumnDef","value1"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"table-container","p-0","mt-0"],["matColumnDef","particularss"],["matColumnDef","value2"],["matColumnDef","particular"],["matColumnDef","values"],["matColumnDef","values1"],[1,"button-container","float-end","mt-3","mb-5"],[1,"primary-button","pb-large",3,"click"],["mat-header-cell","",1,"table-header"],["mat-cell","",1,"table-data"],["mat-header-cell","",1,"table-header","sales"],["src","assets/icons/info-icon-grey.svg","alt","info"],["matInput","","type","text","placeholder","Enter percentage",1,"w-100","table-input",3,"formControlName","ngClass"],[4,"ngIf"],["matInput","","type","text","placeholder","Enter amount",1,"w-100","table-input",3,"formControlName","ngClass"],["mat-header-row",""],["mat-row",""],["matInput","","type","text",1,"w-100","table-input",3,"placeholder","formControlName","ngClass"]],template:function(r,o){r&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"img",5),N("click",function(){return o.navigationBack()}),a(),l(6,"p",6),c(7,"Add Unit Cost Sheet Configuration"),a()(),l(8,"div",7)(9,"div",8)(10,"div",9)(11,"div",10),c(12,"Flat / Unit details"),a()()(),l(13,"div",11)(14,"div",12)(15,"div",13)(16,"div",14)(17,"div",15)(18,"label"),c(19,"State"),a(),l(20,"mat-form-field")(21,"mat-select",16),me("ngModelChange",function(m){return le(o.selectedStateId,m)||(o.selectedStateId=m),m}),oe(22,Xe,2,2,"mat-option",17,ie),a()()()()()(),l(24,"div",18)(25,"table",19),h(26,20),d(27,Ze,2,0,"th",21)(28,et,2,1,"td",22),_(),h(29,23),d(30,tt,6,0,"th",24)(31,ot,4,6,"td",22),_(),h(32,25),d(33,at,2,0,"th",21)(34,mt,4,6,"td",22),_(),d(35,st,1,0,"tr",26)(36,ct,1,0,"tr",27),a()(),l(37,"div",28)(38,"table",19),h(39,29),d(40,pt,2,0,"th",21)(41,dt,2,1,"td",22),_(),h(42,23),d(43,ut,6,0,"th",24)(44,Ct,4,6,"td",22),_(),h(45,25),d(46,gt,2,0,"th",21)(47,St,4,6,"td",22),_(),h(48,30),d(49,Et,2,0,"th",21)(50,yt,4,6,"td",22),_(),d(51,Nt,1,0,"tr",26)(52,wt,1,0,"tr",27),a()(),l(53,"div",18)(54,"table",19),h(55,29),d(56,Tt,4,0,"th",21)(57,Pt,2,1,"td",22),_(),h(58,23),d(59,Dt,6,0,"th",24)(60,Ft,4,6,"td",22),_(),h(61,25),d(62,Vt,2,0,"th",21)(63,qt,4,6,"td",22),_(),h(64,30),d(65,Ot,2,0,"th",21)(66,$t,4,6,"td",22),_(),d(67,jt,1,0,"tr",26)(68,Gt,1,0,"tr",27),a()(),l(69,"div",18)(70,"table",19),h(71,31),d(72,Ht,1,0,"th",21)(73,Lt,2,1,"td",22),_(),h(74,32),d(75,Bt,2,0,"th",21)(76,Jt,3,7,"td",22),_(),h(77,33),d(78,zt,2,0,"th",21)(79,Qt,4,8,"td",22),_(),d(80,Xt,1,0,"tr",26)(81,Zt,1,0,"tr",27),a()()()()(),l(82,"div",34)(83,"button",35),N("click",function(){return o.saveUnitCost()}
1),c(84,"PREVIEW"),a()()()()()),r&2&&(s(21),re("ngModel",o.selectedStateId),s(),ae(o.states),s(3),p("dataSource",o.agreementDetails)("formGroup",o.agreementForm),s(10),p("matHeaderRowDef",y(17,qe)),s(),p("matRowDefColumns",y(18,qe)),s(2),p("dataSource",o.otherChargesDetails)("formGroup",o.otherCharges),s(13),p("matHeaderRowDef",y(19,Pe)),s(),p("matRowDefColumns",y(20,Pe)),s(2),p("dataSource",o.otherPossessionDetails)("formGroup",o.otherPossession),s(13),p("matHeaderRowDef",y(21,Pe)),s(),p("matRowDefColumns",y(22,Pe)),s(2),p("dataSource",o.bankDetails)("formGroup",o.bankForm),s(10),p("matHeaderRowDef",y(23,Oe)),s(),p("matRowDefColumns",y(24,Oe)))},dependencies:[Ee,de,ue,he,ge,fe,we,xe,be,Ne,pe,Se,Ce,ye,W,q,R,G,A,O,H,$,j,L,B,P,se,ce],styles:[".back-icon[_ngcontent-%COMP%]{display:flex}.back-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:3%;cursor:pointer}.table-container[_ngcontent-%COMP%]   .custom-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]{background-color:#e6e8f0;font-weight:600}.table-container[_ngcontent-%COMP%]   .custom-table[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:last-child{border:1px solid #CECECE;padding:1em}.table-container[_ngcontent-%COMP%]   .custom-table[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:disabled{opacity:.5}.sales[_ngcontent-%COMP%]{border-right:1px solid #E6E8F0!important}.sales[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:400;color:#6d6d6d;font-size:13px}.sales[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:15px;height:15px}.mat-column-value1[_ngcontent-%COMP%], .mat-column-value2[_ngcontent-%COMP%]{width:30%}.mat-column-values[_ngcontent-%COMP%], .mat-column-particulars[_ngcontent-%COMP%]{width:60%}.mat-column-particularss[_ngcontent-%COMP%]{width:40%}.input-error[_ngcontent-%COMP%]{border:1px solid #CECECE;padding:1em}"]})}}return e})();var $e=()=>["particulars","value","value1"],De=()=>["particularss","value","value1","value2"],je=()=>["particular","values","values1"],U=e=>({"input-error":e});function en(e,i){if(e&1&&(l(0,"mat-option",17),c(1),a()),e&2){let t=i.$implicit;p("value",t.stateId),s(),I(t.stateName)}}function tn(e,i){e&1&&(l(0,"th",37),c(1,"Agreement value"),a())}function nn(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.label," ")}}function on(e,i){e&1&&(l(0,"th",39)(1,"span"),u(2,"img",40),c(3," Please fill in only one field; the other will be disabled."),a(),u(4,"br"),c(5," % the of Sale value. "),a())}function an(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": Either % the of Sale value or value is required. ")}}function rn(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function ln(e,i){if(e&1&&(l(0,"td",38),u(1,"input",41),d(2,an,2,1,"mat-error",42)(3,rn,2,0,"mat-error",42),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName),p("ngClass",b(4,U,((t=m.agreementForm.get(n.controlName))==null?null:t.hasError("required"))&&((t=m.agreementForm.get(n.controlName))==null?null:t.touched)||((t=m.agreementForm.get(n.controlName))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.agreementForm.get(n.controlName))==null?null:r.hasError("required"))&&((r=m.agreementForm.get(n.controlName))==null?null:r.touched)),s(),p("ngIf",(o=m.agreementForm.get(n.controlName))==null?null:o.hasError("pattern"))}}function mn(e,i){e&1&&(l(0,"th",37),c(1,"Value in (Rs)"),a())}function sn(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": Either % the of Sale value or value is required. ")}}function cn(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function pn(e,i){if(e&1&&(l(0,"td",38),u(1,"input",43),d(2,sn,2,1,"mat-error",42)(3,cn,2,0,"mat-error",42),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName1),p("ngClass",b(4,U,((t=m.agreementForm.get(n.controlName1))==null?null:t.hasError("required"))&&((t=m.agreementForm.get(n.controlName1))==null?null:t.touched)||((t=m.agreementForm.get(n.controlName1))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.agreementForm.get(n.controlName1))==null?null:r.hasError("required"))&&((r=m.agreementForm.get(n.controlName1))==null?null:r.touched)),s(),p("ngIf",(o=m.agreementForm.get(n.controlName1))==null?null:o.hasError("pattern"))}}function dn(e,i){e&1&&u(0,"tr",44)}function un(e,i){e&1&&u(0,"tr",45)}function hn(e,i){e&1&&(l(0,"th",37),c(1,"Other charges"),a())}function _n(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.label," ")}}function Cn(e,i){e&1&&(l(0,"th",39)(1,"span"),u(2,"img",40),c(3," Please fill in only one field; the other will be disabled."),a(),u(4,"br"),c(5," % the of Sale value. "),a())}function gn(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": Either % the of Sale value or value is required. ")}}function fn(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function vn(e,i){if(e&1&&(l(0,"td",38),u(1,"input",41),d(2,gn,2,1,"mat-error",42)(3,fn,2,0,"mat-error",42),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName),p("ngClass",b(4,U,((t=m.otherCharges.get(n.controlName))==null?null:t.hasError("required"))&&((t=m.otherCharges.get(n.controlName))==null?null:t.touched)||((t=m.otherCharges.get(n.controlName))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.otherCharges.get(n.controlName))==null?null:r.hasError("required"))&&((r=m.otherCharges.get(n.controlName))==null?null:r.touched)),s(),p("ngIf",(o=m.otherCharges.get(n.controlName))==null?null:o.hasError("pattern"))}}function Sn(e,i){e&1&&(l(0,"th",37),c(1,"Value in (Rs)"),a())}function En(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": Either % the of Sale value or value is required. ")}}function bn(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function xn(e,i){if(e&1&&(l(0,"td",38),u(1,"input",43),d(2,En,2,1,"mat-error",42)(3,bn,2,0,"mat-error",42),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName1),p("ngClass",b(4,U,((t=m.otherCharges.get(n.controlName1))==null?null:t.hasError("required"))&&((t=m.otherCharges.get(n.controlName1))==null?null:t.touched)||((t=m.otherCharges.get(n.controlName1))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.otherCharges.get(n.controlName1))==null?null:r.hasError("required"))&&((r=m.otherCharges.get(n.controlName1))==null?null:r.touched)),s(),p("ngIf",(o=m.otherCharges.get(n.controlName1))==null?null:o.hasError("pattern"))}}function yn(e,i){e&1&&(l(0,"th",37),c(1,"GST amount F"),a())}function Nn(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": GST amount is required. ")}}function wn(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function Tn(e,i){if(e&1&&(l(0,"td",38),u(1,"input",43),d(2,Nn,2,1,"mat-error",42)(3,wn,2,0,"mat-error",42),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName2),p("ngClass",b(4,U,((t=m.otherCharges.get(n.controlName2))==null?null:t.hasError("required"))&&((t=m.otherCharges.get(n.controlName2))==null?null:t.touched)||((t=m.otherCharges.get(n.controlName2))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.otherCharges.get(n.controlName2))==null?null:r.hasError("required"))&&((r=m.otherCharges.get(n.controlName2))==null?null:r.touched)),s(),p("ngIf",(o=m.otherCharges.get(n.controlName2))==null?null:o.hasError("pattern"))}}function Pn(e,i){e&1&&u(0,"tr",44)}function Dn(e,i){e&1&&u(0,"tr",45)}function Un(e,i){e&1&&(l(0,"th",37),c(1,"Other possession related charges (Estimate-Subject to revision"),u(2,"br"),c(3," basis actual)"),a())}function In(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.label," ")}}function Fn(e,i){e&1&&(l(0,"th",39)(1,"span"),u(2,"img",40),c(3," Please fill in only one field; the other will be disabled."),a(),u(4,"br"),c(5," % the of Sale value. "),a())}function Vn(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": Either % the of Sale value or value is required. ")}}function Mn(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function kn(e,i){if(e&1&&(l(0,"td",38),u(1,"input",41),d(2,Vn,2,1,"mat-error",42)(3,Mn,2,0,"mat-error",42),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName),p("ngClass",b(4,U,((t=m.otherPossession.get(n.controlName))==null?null:t.hasError("required"))&&((t=m.otherPossession.get(n.controlName))==null?null:t.touched)||((t=m.otherPossession.get(n.controlName))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.otherPossession.get(n.controlName))==null?null:r.hasError("required"))&&((r=m.otherPossession.get(n.controlName))==null?null:r.touched)),s(),p("ngIf",(o=m.otherPossession.get(n.controlName))==null?null:o.hasError("pattern"))}}function qn(e,i){e&1&&(l(0,"th",37),c(1,"Value in (Rs)"),a())}function On(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": Either % the of Sale value or value is required. ")}}function Rn(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function An(e,i){if(e&1&&(l(0,"td",38),u(1,"input",43),d(2,On,2,1,"mat-error",42)(3,Rn,2,0,"mat-error",42),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName1),p("ngClass",b(4,U,((t=m.otherPossession.get(n.controlName1))==null?null:t.hasError("required"))&&((t=m.otherPossession.get(n.controlName1))==null?null:t.touched)||((t=m.otherPossession.get(n.controlName1))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.otherPossession.get(n.controlName1))==null?null:r.hasError("required"))&&((r=m.otherPossession.get(n.controlName1))==null?null:r.touched)),s(),p("ngIf",(o=m.otherPossession.get(n.controlName1))==null?null:o.hasError("pattern"))}}function $n(e,i){e&1&&(l(0,"th",37),c(1,"GST amount"),a())}function jn(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" ",t.label,": GST amount is required. ")}}function Gn(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function Hn(e,i){if(e&1&&(l(0,"td",38),u(1,"input",43),d(2,jn,2,1,"mat-error",42)(3,Gn,2,0,"mat-error",42),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),E("formControlName",n.controlName2),p("ngClass",b(4,U,((t=m.otherPossession.get(n.controlName2))==null?null:t.hasError("required"))&&((t=m.otherPossession.get(n.controlName2))==null?null:t.touched)||((t=m.otherPossession.get(n.controlName2))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.otherPossession.get(n.controlName2))==null?null:r.hasError("required"))&&((r=m.otherPossession.get(n.controlName2))==null?null:r.touched)),s(),p("ngIf",(o=m.otherPossession.get(n.controlName2))==null?null:o.hasError("pattern"))}}function Ln(e,i){e&1&&u(0,"tr",44)}function Bn(e,i){e&1&&u(0,"tr",45)}function Wn(e,i){e&1&&u(0,"th",37)}function Jn(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.label," ")}}function zn(e,i){e&1&&(l(0,"th",37),c(1,"Cheque favouring"),a())}function Kn(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" Please enter ",t.label," ")}}function Yn(e,i){if(e&1&&(l(0,"td",38),u(1,"input",46),d(2,Kn,2,1,"mat-error",42),a()),e&2){let t,r,o=i.$implicit,n=f();s(),Y("placeholder","Enter ",o.label,""),E("formControlName",o.controlName),p("ngClass",b(5,U,((t=n.bankForm.get(o.controlName))==null?null:t.hasError("required"))&&((t=n.bankForm.get(o.controlName))==null?null:t.touched))
1),s(),p("ngIf",((r=n.bankForm.get(o.controlName))==null?null:r.hasError("required"))&&((r=n.bankForm.get(o.controlName))==null?null:r.touched))}}function Qn(e,i){e&1&&(l(0,"th",37),c(1,"Payment towards"),a())}function Xn(e,i){if(e&1&&(l(0,"mat-error"),c(1),a()),e&2){let t=f().$implicit;s(),C(" Please enter Payment towards ",t.label," ")}}function Zn(e,i){e&1&&(l(0,"mat-error"),c(1," Only numeric values are allowed. "),a())}function ei(e,i){if(e&1&&(l(0,"td",38),u(1,"input",46),d(2,Xn,2,1,"mat-error",42)(3,Zn,2,0,"mat-error",42),a()),e&2){let t,r,o,n=i.$implicit,m=f();s(),Y("placeholder","Enter ",n.label,""),E("formControlName",n.controlName1),p("ngClass",b(6,U,((t=m.bankForm.get(n.controlName1))==null?null:t.hasError("required"))&&((t=m.bankForm.get(n.controlName1))==null?null:t.touched)||((t=m.bankForm.get(n.controlName1))==null?null:t.hasError("pattern")))),s(),p("ngIf",((r=m.bankForm.get(n.controlName1))==null?null:r.hasError("required"))&&((r=m.bankForm.get(n.controlName1))==null?null:r.touched)),s(),p("ngIf",(o=m.bankForm.get(n.controlName1))==null?null:o.hasError("pattern"))}}function ti(e,i){e&1&&u(0,"tr",44)}function ni(e,i){e&1&&u(0,"tr",45)}var Ge=(()=>{class e{constructor(t,r,o,n,m,v){this.router=t,this.commonServices=r,this.masterServices=o,this.fb=n,this.encryptDecryptService=m,this.projectServices=v,this.states=[],this.stateId=this.commonServices.getLocalStorage("stateId"),this.projectId=this.commonServices.getLocalStorage("projectId"),this.subscriptions=[],this.agreementDetails=[{label:"CGST on agreement value(2.5%)",controlName:"percentCGST",controlName1:"valueCGST"},{label:"SGST on agreement value",controlName:"percentSGST",controlName1:"valueSGST"},{label:"Stamp duty charges",controlName:"percentStamp",controlName1:"valueStamp"},{label:"Registration and Processing charges Separately",controlName:"percentRegistration",controlName1:"valueRegistration"}],this.otherChargesDetails=[{label:"Other charges(Estimates that may be revised at the time of possessional)",controlName:"percentOther",controlName1:"valueOther",controlName2:"gstOther"},{label:"Legal charges",controlName:"percentLegal",controlName1:"valueLegal",controlName2:"gstLegal"},{label:"Society/Condominium formation charges",controlName:"percentSociety",controlName1:"valueSociety",controlName2:"gstSociety"},{label:"Electric and Water connection charges",controlName:"percentElectric",controlName1:"valueElectric",controlName2:"gstElectric"},{label:"Charges towards MGL connection charges",controlName:"percentCharges",controlName1:"valueCharges",controlName2:"gstCharges"},{label:"Proportionate share of charges for electrical receiving and substation",controlName:"percentProportionate",controlName1:"valueProportionate",controlName2:"gstProportionate"},{label:"Share application money",controlName:"percentShare",controlName1:"valueShare",controlName2:"gstShare"},{label:"Deposite of electrical meter of substation",controlName:"percentDeposite",controlName1:"valueDeposite",controlName2:"gstDeposite"}],this.otherPossessionDetails=[{label:"Corpus",controlName:"percentCorpus",controlName1:"valueCorpus",controlName2:"gstCorpus"},{label:"Estimated advanced maintenance charges",controlName:"percentAdvanced",controlName1:"valueAdvanced",controlName2:"gstAdvanced"},{label:"Proportionate share of taxes(Property tax-Provision for 12 months)",controlName:"percentProportionate",controlName1:"valueProportionate",controlName2:"gstProportionate"}],this.bankDetails=[{label:"Account name",controlName:"accountName",controlName1:"accountPayment"},{label:"Account no",controlName:"acountNo",controlName1:"accountNoPayment"},{label:"IFSC Code",controlName:"ifscCode",controlName1:"ifscCodePayment"}],this.getStates(),this.buildForm(),this.setupValueChangeSubscriptions()}ngOnInit(){console.log(this.encryptDecryptService.decryptData("Br3Vmxof99wNY98KCv1O5g==")),this.viewData()}buildForm(){this.agreementForm=this.fb.group({percentCGST:[""],valueCGST:[""],percentSGST:[""],valueSGST:[""],percentStamp:[""],valueStamp:[""],percentRegistration:[""],valueRegistration:[""]}),this.agreementForm.setValidators(this.atLeastOneFieldRequired(this.agreementDetails)),this.otherCharges=this.fb.group({percentOther:[""],valueOther:[""],gstOther:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentLegal:[""],valueLegal:[""],gstLegal:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentSociety:[""],valueSociety:[""],gstSociety:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentElectric:[""],valueElectric:[""],gstElectric:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentCharges:[""],valueCharges:[""],gstCharges:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentProportionate:[""],valueProportionate:[""],gstProportionate:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentShare:[""],valueShare:[""],gstShare:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentDeposite:[""],valueDeposite:[""],gstDeposite:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]]}),this.otherCharges.setValidators(this.atLeastOneFieldRequired(this.otherChargesDetails)),this.otherPossession=this.fb.group({percentCorpus:[""],valueCorpus:[""],gstCorpus:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentAdvanced:[""],valueAdvanced:[""],gstAdvanced:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]],percentProportionate:[""],valueProportionate:[""],gstProportionate:["",[g.required,g.pattern(/^\d+(\.\d{1,3})?$/)]]}),this.otherPossession.setValidators(this.atLeastOneFieldRequired(this.otherPossessionDetail
1s)),this.bankForm=this.fb.group({accountName:["",[g.required]],accountPayment:["",[g.required]],acountNo:["",[g.required]],accountNoPayment:["",[g.required]],ifscCode:["",[g.required]],ifscCodePayment:["",[g.required]]})}setupValueChangeSubscriptions(){this.agreementDetails.forEach(t=>{let r=this.agreementForm.get(t.controlName),o=this.agreementForm.get(t.controlName1);r&&o&&(this.subscriptions.push(r.valueChanges.subscribe(n=>{n?(o.setValue(null,{emitEvent:!1}),o.disable({emitEvent:!1})):o.enable({emitEvent:!1}),this.agreementForm.updateValueAndValidity()})),this.subscriptions.push(o.valueChanges.subscribe(n=>{n?(r.setValue(null,{emitEvent:!1}),r.disable({emitEvent:!1})):r.enable({emitEvent:!1}),this.agreementForm.updateValueAndValidity()})))}),this.otherChargesDetails.forEach(t=>{let r=this.otherCharges.get(t.controlName),o=this.otherCharges.get(t.controlName1);r&&o&&(this.subscriptions.push(r.valueChanges.subscribe(n=>{n?(o.setValue(null,{emitEvent:!1}),o.disable({emitEvent:!1})):o.enable({emitEvent:!1}),this.otherCharges.updateValueAndValidity()})),this.subscriptions.push(o.valueChanges.subscribe(n=>{n?(r.setValue(null,{emitEvent:!1}),r.disable({emitEvent:!1})):r.enable({emitEvent:!1}),this.otherCharges.updateValueAndValidity()})))}),this.otherPossessionDetails.forEach(t=>{let r=this.otherPossession.get(t.controlName),o=this.otherPossession.get(t.controlName1);r&&o&&(this.subscriptions.push(r.valueChanges.subscribe(n=>{n?(o.setValue(null,{emitEvent:!1}),o.disable({emitEvent:!1})):o.enable({emitEvent:!1}),this.otherPossession.updateValueAndValidity()})),this.subscriptions.push(o.valueChanges.subscribe(n=>{n?(r.setValue(null,{emitEvent:!1}),r.disable({emitEvent:!1})):r.enable({emitEvent:!1}),this.otherPossession.updateValueAndValidity()})))})}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}getStates(){let t={stateStatus:-1};this.masterServices.getAllStates(t).subscribe(r=>{console.log(r),this.states=r.map(o=>({stateId:o.stateId,stateName:o.stateName}))})}atLeastOneFieldRequired(t){return r=>{let o=!1,n=!1;if(r instanceof _e){let m=r.controls;if(t.forEach(v=>{let x=m[v.controlName],w=m[v.controlName1],z=x?.value,K=w?.value;(z||K)&&(o=!0),o===!1&&(x?.setErrors({required:!0}),w?.setErrors({required:!0}));let X=/^[0-9]+(\.[0-9]*)?$/;(z&&!X.test(z)||K&&!X.test(K))&&(n=!0)}),!o)return t.forEach(v=>{m[v.controlName]?.setErrors({required:!0}),m[v.controlName1]?.setErrors({required:!0})}),{required:!0};if(n)return t.forEach(v=>{let x=m[v.controlName],w=m[v.controlName1];x?.value&&!/^[0-9]+(\.[0-9]*)?$/.test(x.value)&&x.setErrors({pattern:!0}),w?.value&&!/^[0-9]+(\.[0-9]*)?$/.test(w.value)&&w.setErrors({pattern:!0})}),{pattern:!0}}return null}}navigationBack(){this.router.navigate(["unit-cost-sheet","view-unit-cost-sheet"])}getTwoColumnData(t,r,o){return o==="aggreement"?r.map(n=>({labelType:"AGREEMENT_VALUE",label:n.label,percentageSaleValue:t.get(n.controlName)?.value||null,value:t.get(n.controlName1)?.value||null,gstAmount:null,sequence:n.sequence})):r.map(n=>({labelType:n.label=="Account name"?"ACCOUNT_NAME":n.label=="Account no"?"ACCOUNT_NO":n.label=="IFSC Code"?"IFSC_CODE":null,value:t.get(n.controlName)?.value||null,amount:t.get(n.controlName1)?.value||null}))}getThreeColumnData(t,r,o){return o==="otherCharges"?r.map(n=>({labelType:"OTHER_CHARGES",label:n.label,percentageSaleValue:t.get(n.controlName)?.value||null,value:t.get(n.controlName1)?.value||null,gstAmount:t.get(n.controlName2)?.value||null,sequence:n.sequence})):r.map(n=>({labelType:"OTHER_POSSESSION_RELATED_CHARGES",label:n.label,percentageSaleValue:t.get(n.controlName)?.value||null,value:t.get(n.controlName1)?.value||null,gstAmount:t.get(n.controlName2)?.value||null,sequence:n.sequence}))}saveUnitCost(){if(this.agreementForm.valid&&this.otherCharges.valid&&this.otherPossession.valid&&this.bankForm.valid){let t=this.getTwoColumnData(this.agreementForm,this.agreementDetails,"aggreement"),r=this.getThreeColumnData(this.otherCharges,this.otherChargesDetails,"otherCharges"),o=this.getThreeColumnData(this.otherPossession,this.otherPossessionDetails,"otherPossession"),n=this.getTwoColumnData(this.bankForm,this.bankDetail
1s,"bank"),m={projectId:this.encryptDecryptService.encryptData(this.projectId),stateId:this.encryptDecryptService.encryptData(this.selectedStateId),agreementValue:t,otherChargers:r,otherPossessionRelatedCharges:o,chequeFavouring:n};console.log(m),this.projectServices.updateUnitCostSheet(m).subscribe(v=>{console.log(v),this.commonServices.displaySuccessSnackBar(v.response),this.router.navigate(["tablet-app-onboarding",this.projectId,"project-details"])})}else{console.log(this.agreementForm),console.log(this.otherCharges.value),this.agreementForm.markAllAsTouched(),this.otherCharges.markAllAsTouched(),this.otherPossession.markAllAsTouched(),this.bankForm.markAllAsTouched();return}}viewData(){let t={projectId:this.encryptDecryptService.encryptData(this.projectId),stateId:this.stateId};console.log(t),this.projectServices.ViewUnitCostSheet(t).subscribe(r=>{console.log(r),this.viewDetails=r.response,this.selectedStateId=Number(this.encryptDecryptService.decryptData(this.viewDetails.stateId)),this.agreementDetails.forEach(o=>{let n=this.viewDetails.agreementValue.find(m=>m.label===o.label);n&&(this.agreementForm.patchValue({[o.controlName]:n.percentageSaleValue,[o.controlName1]:n.value}),o.sequence=n.sequence,this.agreementForm.controls[o.controlName].updateValueAndValidity(),this.agreementForm.controls[o.controlName1].updateValueAndValidity())}),this.otherChargesDetails.forEach(o=>{let n=this.viewDetails.otherChargers.find(m=>m.label===o.label);n&&(this.otherCharges.patchValue({[o.controlName]:n.percentageSaleValue,[o.controlName1]:n.value,[o.controlName2]:n.gstAmount}),o.sequence=n.sequence,this.otherCharges.controls[o.controlName].updateValueAndValidity(),this.otherCharges.controls[o.controlName1].updateValueAndValidity(),this.otherCharges.controls[o.controlName2].updateValueAndValidity())}),this.otherPossessionDetails.forEach(o=>{let n=this.viewDetails.otherPossessionRelatedCharges.find(m=>m.label===o.label);n&&(this.otherPossession.patchValue({[o.controlName]:n.percentageSaleValue,[o.controlName1]:n.value,[o.controlName2]:n.gstAmount}),o.sequence=n.sequence,this.otherPossession.controls[o.controlName].updateValueAndValidity(),this.otherPossession.controls[o.controlName1].updateValueAndValidity(),this.otherPossession.controls[o.controlName2].updateValueAndValidity())}),this.bankDetails.forEach(o=>{let n=this.viewDetails.chequeFavouring.find(m=>m.labelType.trim().toLowerCase().replace(/_/g," ")===o.label.trim().toLowerCase());n&&(this.bankForm.patchValue({[o.controlName]:n.value,[o.controlName1]:n.amount}),o.sequence=n.sequence,this.bankForm.controls[o.controlName].updateValueAndValidity(),this.bankForm.controls[o.controlName1].updateValueAndValidity())})})}static{this.\u0275fac=function(r){return new(r||e)(S(M),S(k),S(Te),S(ve),S(Q),S(J))}}static{this.\u0275cmp=F({type:e,selectors:[["app-edit-user-cost-sheet"]],standalone:!0,features:[V],decls:87,vars:25,consts:[[1,"page-wrap"],[1,"row"],[1,"col-12","right-col"],[1,"right-col-contents"],[1,"back-icon"],["src","assets/icons/back-icon.svg","alt","back",1,"img",3,"click"],[1,"right-col-title","ms-2","mb-0","mt-3"],[1,"card","right-col-card","mt-4"],[1,"card-header-section"],[1,"text-section"],[1,"card-title","fw-semibold"],[1,"card-body-section"],[1,"card","inner-card"],[1,"row","mt-0"],[1,"col-3"],[1,"dropdown-field"],["placeholder","Select State",1,"dropdown-icon",3,"ngModelChange","ngModel"],[3,"value"],[1,"table-container","p-0","mt-4"],["mat-table","",1,"custom-table",3,"dataSource","formGroup"],["matColumnDef","particulars"],["mat-header-cell","","class","table-header",4,"matHeaderCellDef"],["mat-cell","","class","table-data",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","","class","table-header sales",4,"matHeaderCellDef"],["matColumnDef","value1"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"table-container","p-0","mt-0"],["matColumnDef","particularss"],["matColumnDef","value2"],["matColumnDef","particular"],["matColumnDef","values"],["matColumnDef","values1"],[1,"button-container","float-end","mt-3","mb-5"],[1,"secondary-button","pb-large","me-3",3,"click"],[1,"primary-button","pb-large",3,"click"],["mat-header-cell","",1,"table-header"],["mat-cell","",1,"table-data"],["mat-header-cell","",1,"table-header","sales"],["src","assets/icons/info-icon-grey.svg","alt","info"],["matInput","","type","text","placeholder","Enter percentage",1,"w-100","table-input",3,"formControlName","ngClass"],[4,"ngIf"],["matInput","","type","text","placeholder","Enter amount",1,"w-100","table-input",3,"formControlName","ngClass"],["mat-header-row",""],["mat-row",""],["matInput","","type","text",1,"w-100","table-input",3,"placeholder","formControlName","ngClass"]],template:function(r,o){r&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"img",5),N("click",function(){return o.navigationBack()}),a(),l(6,"p",6),c(7,"Edit Unit Cost Sheet Configuration"),a()(),l(8,"div",7)(9,"div",8)(10,"div",9)(11,"div",10),c(12,"Flat / Unit details"),a()()(),l(13,"div",11)(14,"div",12)(15,"div",13)(16,"div",14)(17,"div",15)(18,"label"),c(19,"State"),a(),l(20,"mat-form-field")(21,"mat-select",16),me("ngModelChange",function(m){return le(o.selectedStateId,m)||(o.selectedStateId=m),m}),oe(22,en,2,2,"mat-option",17,ie),a()()()()()(),l(24,"div",18)(25,"table",19),h(26,20),d(27,tn,2,0,"th",21)(28,nn,2,1,"td",22),_(),h(29,23),d(30,on,6,0,"th",24)(31,ln,4,6,"td",22),_(),h(32,25),d(33,mn,2,0,"th",21)(34,pn,4,6,"td",22),_(),d(35,dn,1,0,"tr",26)(36,un,1,0,"tr",27),a()(),l(37,"div",28)(38,"table",19),h(39,29),d(40,hn,2,0,"th",21)(41,_n,2,1,"td",22),_(),h(42,23),d(43,Cn,6,0,"th",24)(44,vn,4,6,"td",22),_(),h(45,25),d(46,Sn,2,0,"th",21)(47,xn,4,6,"td",22),_(),h(48,30),d(49,yn,2,0,"th",21)(50,Tn,4,6,"td",22),_(),d(51,Pn,1,0,"tr",26)(52,Dn,1,0,"tr",27),a()(),l(53,"div",18)(54,"table",19),h(55,29),d(56,Un,4,0,"th",21)(57,In,2,1,"td",22),_(),h(58,23),d(59,Fn,6,0,"th",24)(60,kn,4,6,"td",22),_(),h(61,25),d(62,qn,2,0,"th",21)(63,An,4,6,"td",22),_(),h(64,30),d(65,$n,2,0,"th",21)(66,Hn,4,6,"td",22),_(),d(67,Ln,1,0,"tr",26)(68,Bn,1,0,"tr",27),a()(),l(69,"div",18)(70,"table",19),h(71,31),d(72,Wn,1,0,"th",21)(73,Jn,2,1,"td",22),_(),h(74,32),d(75,zn,2,0,"th",21)(76,Yn,3,7,"td",22),_(),h(77,33),d(78,Qn,2,0,"th",21)(79,ei,4,8,"td",22),_(),d(80,ti,1,0,"tr",26)(81,ni,1,0,"tr",27),a()()()()(),l(82,"div",34)(83,"button",35),N("click",function(){return o.navigationBack()}),c(84,"CANCEL"),a(),l(85,"button",36),N("click",function(){return o.saveUnitCost()}
1),c(86,"UPDATE"),a()()()()()),r&2&&(s(21),re("ngModel",o.selectedStateId),s(),ae(o.states),s(3),p("dataSource",o.agreementDetails)("formGroup",o.agreementForm),s(10),p("matHeaderRowDef",y(17,$e)),s(),p("matRowDefColumns",y(18,$e)),s(2),p("dataSource",o.otherChargesDetails)("formGroup",o.otherCharges),s(13),p("matHeaderRowDef",y(19,De)),s(),p("matRowDefColumns",y(20,De)),s(2),p("dataSource",o.otherPossessionDetails)("formGroup",o.otherPossession),s(13),p("matHeaderRowDef",y(21,De)),s(),p("matRowDefColumns",y(22,De)),s(2),p("dataSource",o.bankDetails)("formGroup",o.bankForm),s(10),p("matHeaderRowDef",y(23,je)),s(),p("matRowDefColumns",y(24,je)))},dependencies:[Ee,de,ue,he,ge,fe,we,xe,be,Ne,pe,Se,Ce,ye,W,q,R,G,A,O,H,$,j,L,B,P,se,ce],styles:[".back-icon[_ngcontent-%COMP%]{display:flex}.back-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:3%;cursor:pointer}.table-container[_ngcontent-%COMP%]   .custom-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]{background-color:#e6e8f0;font-weight:600}.table-container[_ngcontent-%COMP%]   .custom-table[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:last-child{border:1px solid #CECECE;padding:1em}.table-container[_ngcontent-%COMP%]   .custom-table[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:disabled{opacity:.5}.sales[_ngcontent-%COMP%]{border-right:1px solid #E6E8F0!important}.sales[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:400;color:#6d6d6d;font-size:13px}.sales[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:15px;height:15px}.mat-column-value1[_ngcontent-%COMP%], .mat-column-value2[_ngcontent-%COMP%]{width:30%}.mat-column-values[_ngcontent-%COMP%], .mat-column-particulars[_ngcontent-%COMP%]{width:60%}.mat-column-particularss[_ngcontent-%COMP%]{width:40%}.input-error[_ngcontent-%COMP%]{border:1px solid #CECECE;padding:1em}"]})}}return e})();function ii(e,i){e&1&&(l(0,"th",37),c(1,"Agreement value"),a())}function oi(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.label||"-"," ")}}function ai(e,i){e&1&&(l(0,"th",39),c(1,"% the of Sale value."),a())}function ri(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.percentageSaleValue||"-"," ")}}function li(e,i){e&1&&(l(0,"th",37),c(1,"Value in (Rs)"),a())}function mi(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.value||"-"," ")}}function si(e,i){e&1&&u(0,"tr",40)}function ci(e,i){e&1&&u(0,"tr",41)}function pi(e,i){e&1&&(l(0,"th",37),c(1,"Other charges"),a())}function di(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.label," ")}}function ui(e,i){e&1&&(l(0,"th",39),c(1,"% the of Sale value."),a())}function hi(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.percentageSaleValue||"-"," ")}}function _i(e,i){e&1&&(l(0,"th",37),c(1,"Value in (Rs)"),a())}function Ci(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.value||"-"," ")}}function gi(e,i){e&1&&(l(0,"th",37),c(1,"GST amount F"),a())}function fi(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.gstAmount||"-"," ")}}function vi(e,i){e&1&&u(0,"tr",40)}function Si(e,i){e&1&&u(0,"tr",41)}function Ei(e,i){e&1&&(l(0,"th",37),c(1,"Other possession related charges (Estimate-Subject to revision"),u(2,"br"),c(3," basis actual)"),a())}function bi(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.label," ")}}function xi(e,i){e&1&&(l(0,"th",39),c(1,"% the of Sale value."),a())}function yi(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.percentageSaleValue||"-"," ")}}function Ni(e,i){e&1&&(l(0,"th",37),c(1,"Value in (Rs)"),a())}function wi(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.value||"-"," ")}}function Ti(e,i){e&1&&(l(0,"th",37),c(1,"GST amount F"),a())}function Pi(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.gstAmount||"-"," ")}}function Di(e,i){e&1&&u(0,"tr",40)}function Ui(e,i){e&1&&u(0,"tr",41)}function Ii(e,i){e&1&&u(0,"th",37)}function Fi(e,i){e&1&&c(0," Account Name ")}function Vi(e,i){e&1&&c(0," Account No ")}function Mi(e,i){e&1&&c(0," IFSC Code ")}function ki(e,i){if(e&1&&(l(0,"td",38),d(1,Fi,1,0)(2,Vi,1,0)(3,Mi,1,0),a()),e&2){let t=i.$implicit;s(),Z(1,t.labelType=="ACCOUNT_NAME"?1:t.labelType=="ACCOUNT_NO"?2:3)}}function qi(e,i){e&1&&(l(0,"th",39),c(1,"Cheque favouring"),a())}function Oi(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.value||"-"," ")}}function Ri(e,i){e&1&&(l(0,"th",37),c(1,"Payment towards"),a())}function Ai(e,i){if(e&1&&(l(0,"td",38),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.amount||"-"," ")}}function $i(e,i){e&1&&u(0,"tr",40)}function ji(e,i){e&1&&u(0,"tr",41)}
1var He=(()=>{class e{constructor(t,r,o,n,m){this.router=t,this.commonServices=r,this.encryptDecryptService=o,this.projectServices=n,this.loader=m,this.projectId=this.commonServices.getLocalStorage("projectId"),this.stateId=this.commonServices.getLocalStorage("stateId"),this.displayedColumns=["aggrement","saleValue","ValueRs"],this.displayedColumns1=["otherCharges","saleValue","ValueRs","gstF"],this.displayedColumns4=["bank","cheque","payment"]}ngOnInit(){this.viewData()}navigationBack(){this.router.navigate(["tablet-app-onboarding",this.projectId,"project-details"])}closePreview(){this.router.navigate(["unit-cost-sheet/edit-unit-cost-sheet"])}viewData(){this.loader.showLoader();let t={projectId:this.encryptDecryptService.encryptData(this.projectId),stateId:this.stateId};console.log(t),this.projectServices.ViewUnitCostSheet(t).subscribe(r=>{console.log(r),this.loader.hideLoader(),this.viewDetails=r.response,this.stateIdView=this.encryptDecryptService.decryptData(this.viewDetails.stateId),this.dataSource=new T(this.viewDetails.agreementValue),this.dataSource1=new T(this.viewDetails.otherChargers),this.dataSource4=new T(this.viewDetails.otherPossessionRelatedCharges),this.dataSource5=new T(this.viewDetails.chequeFavouring)},r=>{this.loader.hideLoader()})}static{this.\u0275fac=function(r){return new(r||e)(S(M),S(k),S(Q),S(J),S(ke))}}static{this.\u0275cmp=F({type:e,selectors:[["app-view-unit-cost-sheet"]],standalone:!0,features:[V],decls:85,vars:13,consts:[[1,"page-wrap"],[1,"row"],[1,"col-12","right-col"],[1,"right-col-contents"],[1,"back-icon"],["src","assets/icons/back-icon.svg","alt","back",1,"img",3,"click"],[1,"right-col-title","ms-2","mb-0","mt-3"],[1,"card","right-col-card","mt-4"],[1,"card-header-section"],[1,"text-section"],[1,"card-title","fw-semibold"],[1,"card-body-section"],[1,"card","inner-card"],[1,"row","mt-0"],[1,"col-3","mb-0"],[1,"view-data"],[1,"label"],[1,"value","mt-3"],[1,"table-container","p-0","mt-4"],["mat-table","",1,"custom-table",3,"dataSource"],["matColumnDef","aggrement"],["mat-header-cell","","class","table-header",4,"matHeaderCellDef"],["mat-cell","","class","table-data",4,"matCellDef"],["matColumnDef","saleValue"],["mat-header-cell","","class","table-header sales",4,"matHeaderCellDef"],["matColumnDef","ValueRs"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"table-container","p-0"],["matColumnDef","otherCharges"],["matColumnDef","gstF"],["matColumnDef","bank"],["matColumnDef","cheque"],["matColumnDef","payment"],[1,"button-container","float-end","mt-3","mb-5"],[1,"secondary-button","pb-large","me-3",3,"click"],[1,"primary-button","pb-large",3,"click"],["mat-header-cell","",1,"table-header"],["mat-cell","",1,"table-data"],["mat-header-cell","",1,"table-header","sales"],["mat-header-row",""],["mat-row",""]],template:function(r,o){r&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"img",5),N("click",function(){return o.navigationBack()}),a(),l(6,"p",6),c(7,"View Unit Cost Sheet Configuration"),a()(),l(8,"div",7)(9,"div",8)(10,"div",9)(11,"div",10),c(12,"Flat / Unit details"),a()()(),l(13,"div",11)(14,"div",12)(15,"div",13)(16,"div",14)(17,"div",15)(18,"div",16),c(19,"State"),a(),l(20,"div",17),c(21),a()()()()(),l(22,"div",18)(23,"table",19),h(24,20),d(25,ii,2,0,"th",21)(26,oi,2,1,"td",22),_(),h(27,23),d(28,ai,2,0,"th",24)(29,ri,2,1,"td",22),_(),h(30,25),d(31,li,2,0,"th",21)(32,mi,2,1,"td",22),_(),d(33,si,1,0,"tr",26)(34,ci,1,0,"tr",27),a()(),l(35,"div",28)(36,"table",19),h(37,29),d(38,pi,2,0,"th",21)(39,di,2,1,"td",22),_(),h(40,23),d(41,ui,2,0,"th",24)(42,hi,2,1,"td",22),_(),h(43,25),d(44,_i,2,0,"th",21)(45,Ci,2,1,"td",22),_(),h(46,30),d(47,gi,2,0,"th",21)(48,fi,2,1,"td",22),_(),d(49,vi,1,0,"tr",26)(50,Si,1,0,"tr",27),a()(),l(51,"div",18)(52,"table",19),h(53,29),d(54,Ei,4,0,"th",21)(55,bi,2,1,"td",22),_(),h(56,23),d(57,xi,2,0,"th",24)(58,yi,2,1,"td",22),_(),h(59,25),d(60,Ni,2,0,"th",21)(61,wi,2,1,"td",22),_(),h(62,30),d(63,Ti,2,0,"th",21)(64,Pi,2,1,"td",22),_(),d(65,Di,1,0,"tr",26)(66,Ui,1,0,"tr",27),a()(),l(67,"div",18)(68,"table",19),h(69,31),d(70,Ii,1,0,"th",21)(71,ki,4,1,"td",22),_(),h(72,32),d(73,qi,2,0,"th",24)(74,Oi,2,1,"td",22),_(),h(75,33),d(76,Ri,2,0,"th",21)(77,Ai,2,1,"td",22),_(),d(78,$i,1,0,"tr",26)(79,ji,1,0,"tr",27),a()()()()(),l(80,"div",34)(81,"button",35),N("click",function(){return o.navigationBack()}),c(82,"CANCEL"),a(),l(83,"button",36),N("click",function(){return o.closePreview()}),c(84,"EDIT"),a()()()()()),r&2&&(s(21),I(o.stateIdView),s(2),p("dataSource",o.dataSource),s(10),p("matHeaderRowDef",o.displayedColumns),s(),p("matRowDefColumns",o.displayedColumns),s(2),p("dataSource",o.dataSource1),s(13),p("matHeaderRowDef",o.displayedColumns1),s(),p("matRowDefColumns",o.displayedColumns1),s(2),p("dataSource",o.dataSource4),s(13),p("matHeaderRowDef",o.displayedColumns1),s(),p("matRowDefColumns",o.displayedColumns1),s(2),p("dataSource",o.dataSource5),s(10),p("matHeaderRowDef",o.displayedColumns4),s(),p("matRowDefColumns",o.displayedColumns4))},dependencies:[P,W,q,R,G,A,O,H,$,j,L,B],styles:[".back-icon[_ngcontent-%COMP%]{display:flex}.back-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:3%;cursor:pointer}.table-container[_ngcontent-%COMP%]   .custom-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]{background-color:#e6e8f0;font-weight:600}.mat-column-cheque[_ngcontent-%COMP%]{width:60%}.mat-column-otherCharges[_ngcontent-%COMP%]{width:40%}.mat-column-aggrement[_ngcontent-%COMP%]{width:60%}"]})}}return e})();function Gi(e,i){e&1&&(l(0,"th",43),c(1,"Agreement value"),a())}function Hi(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.agreement_value," ")}}function Li(e,i){e&1&&(l(0,"th",43),c(1,"Value in (Rs)"),a())}function Bi(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.value_in_rs," ")}}function Wi(e,i){e&1&&u(0,"tr",45)}function Ji(e,i){e&1&&u(0,"tr",46)}function zi(e,i){e&1&&(l(0,"th",43),c(1,"Other charges"),a())}function Ki(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.otherCharge_value," ")}}function Yi(e,i){e&1&&(l(0,"th",43),c(1,"Value in (Rs)"),a())}function Qi(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.value_in_rs," ")}}function Xi(e,i){e&1&&(l(0,"th",43),c(1,"GST amount F"),a())}function Zi(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.gstF," ")}}function eo(e,i){e&1&&u(0,"tr",45)}function to(e,i){e&1&&u(0,"tr",46)}function no(e,i){e&1&&(l(0,"th",43),c(1,"Type of car park"),a())}function io(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.type_of_car_park," ")}}function oo(e,i){e&1&&(l(0,"th",47),c(1,"Value in (Rs)"),a())}function ao(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.value_in_rs," ")}}function ro(e,i){e&1&&u(0,"tr",45)}function lo(e,i){e&1&&u(0,"tr",46)}function mo(e,i){e&1&&(l(0,"th",43),c(1,"Type of car park"),a())}function so(e,i){if(e&1&&(l(0,"span",48),c(1),a()),e&2){let t=f().$implicit;s(),I(t.type_of_car_park)}}function co(e,i){if(e&1&&c(0),e&2){let t=f().$implicit;C(" ",t.type_of_car_park," ")}}function po(e,i){if(e&1&&(l(0,"td",44),d(1,so,2,1,"span",48)(2,co,1,1),a()),e&2){let t=i.$implicit;s(),Z(1,t.type_of_car_park==="Total amount of car parking"?1:2)}}function uo(e,i){e&1&&(l(0,"th",47),c(1,"Value in (No.)"),a())}function ho(e,i){if(e&1&&(l(0,"span",48),c(1),a()),e&2){let t=f().$implicit;s(),I(t.amount)}}function _o(e,i){if(e&1&&c(0),e&2){let t=f().$implicit;C(" ",t.amount," ")}}function Co(e,i){if(e&1&&(l(0,"td",44),d(1,ho,2,1,"span",48)(2,_o,1,1),a()),e&2){let t=i.$implicit;s(),Z(1,t.type_of_car_park==="Total amount of car parking"?1:2)}}function go(e,i){e&1&&u(0,"tr",45)}function fo(e,i){e&1&&u(0,"tr",46)}function vo(e,i){e&1&&(l(0,"th",43),c(1,"Other possession related charges (Estimate-Subject to revision"),u(2,"br"),c(3," basis actual)"),a())}function So(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.otherPossesion_value," ")}}function Eo(e,i){e&1&&(l(0,"th",43),c(1,"Value in (Rs)"),a())}function bo(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.value_in_rs," ")}}function xo(e,i){e&1&&(l(0,"th",43),c(1,"GST amount F"),a())}function yo(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.gstF," ")}}function No(e,i){e&1&&u(0,"tr",45)}function wo(e,i){e&1&&u(0,"tr",46)}function To(e,i){e&1&&u(0,"th",43)}function Po(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.bankValue," ")}}function Do(e,i){e&1&&(l(0,"th",47),c(1,"Cheque favouring"),a())}function Uo(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.cheque," ")}}function Io(e,i){e&1&&(l(0,"th",43),c(1,"Payment towards"),a())}function Fo(e,i){if(e&1&&(l(0,"td",44),c(1),a()),e&2){let t=i.$implicit;s(),C(" ",t.payment," ")}}function Vo(e,i){e&1&&u(0,"tr",45)}function Mo(e,i){e&1&&u(0,"tr",46)}var Le=(()=>{class e{constructor(t,r,o){this.router=t,this.commonServices=r,this.projectService=o,this.saveReq=this.commonServices.getLocalStorage("unitCostSheetReq"),this.projectId=this.commonServices.getLocalStorage("projectId"),this.displayedColumns=["aggrement","ValueRs"],this.displayedColumns1=["otherCharges","ValueRs","g
1stF"],this.displayedColumns2=["type","Value"],this.displayedColumns3=["type","amount"],this.displayedColumns4=["bank","cheque","payment"],this.aggrementTable=[{agreement_value:"CGST on agreement value (2.5%)",value_in_rs:"2000"},{agreement_value:"SGST on agreement value",value_in_rs:"2000"},{agreement_value:"Stamp duty charges",value_in_rs:"2000"},{agreement_value:"Registration and Processing charges Separately",value_in_rs:"2000"}],this.otherChargesTable=[{otherCharge_value:"Other charges (Estimates that may be revised at the time of possessional)",value_in_rs:"2000",gstF:"2000"},{otherCharge_value:"Legal charges",value_in_rs:"2000",gstF:"2000"},{otherCharge_value:"Society / Condominium formation charges",value_in_rs:"2000",gstF:"2500"},{otherCharge_value:"Electric and Water connection charges",value_in_rs:"2000",gstF:"2500"},{otherCharge_value:"Charges towards MGL connection charges",value_in_rs:"2000",gstF:"2000"},{otherCharge_value:"Proportionate share of charges for electrical receiving and substation",value_in_rs:"2000",gstF:"2000"},{otherCharge_value:"Share application money",value_in_rs:"2500",gstF:"2500"},{otherCharge_value:"Deposite of electrical meter of substation",value_in_rs:"2500",gstF:"2500"}],this.parkingDetails=[{type_of_car_park:"Open 2 wheeler parking",value_in_rs:"2000"},{type_of_car_park:"Closed 2 wheeler parking",value_in_rs:"2000"},{type_of_car_park:"Open 4 wheeler parking",value_in_rs:"2500"},{type_of_car_park:"Closed 4 wheeler parking",value_in_rs:"2500"},{type_of_car_park:"",value_in_rs:""}],this.parkingAmount=[{type_of_car_park:"Open 2 wheeler parking",amount:"3"},{type_of_car_park:"Closed 2 wheeler parking",amount:"3"},{type_of_car_park:"Open 4 wheeler parking",amount:"4"},{type_of_car_park:"Closed 4 wheeler parking",amount:"4"},{type_of_car_park:"Total amount of car parking",amount:"2500"}],this.otherPossessionTable=[{otherPossesion_value:"Corpus",value_in_rs:"2500",gstF:"2000"},{otherPossesion_value:"Estimated advanced maintenance charges",value_in_rs:"2500",gstF:"2000"},{otherPossesion_value:"Proportionate share of taxes (Property tax-Provision for 12 months)",value_in_rs:"2000",gstF:"2500"}],this.bankDetails=[{bankValue:"Account name",cheque:"John Perera",payment:"Jake Perera"},{bankValue:"Account no.",cheque:"HDFC78675554545",payment:"HDFC78675556565"},{bankValue:"IFSC Code",cheque:"IFSC65656",payment:"IFSC64646"}]}ngOnInit(){console.log(JSON.parse(this.saveReq)),this.dataSource=new T(this.aggrementTable),this.dataSource1=new T(this.otherChargesTable),this.dataSource2=new T(this.parkingDetails),this.dataSource3=new T(this.parkingAmount),this.dataSource4=new T(this.otherPossessionTable),this.dataSource5=new T(this.bankDetails)}navigationBack(){this.router.navigate(["unit-cost-sheet","unit-cost-sheet"])}closePreview(){let t=JSON.parse(this.saveReq);console.log(t),this.projectService.saveUnitCostSheet(t).subscribe(r=>{console.log(r),this.commonServices.displaySuccessSnackBar(r.response),this.commonServices.removeLocalStorage("unitCostSheetReq"),this.router.navigate(["tablet-app-onboarding",this.projectId,"project-details"])})}static{this.\u0275fac=function(r){return new(r||e)(S(M),S(k),S(J))}}static{this.\u0275cmp=F({type:e,selectors:[["app-preview-unit-cost-sheet"]],standalone:!0,features:[V],decls:113,vars:18,consts:[[1,"page-wrap"],[1,"row"],[1,"col-12","right-col"],[1,"right-col-contents"],[1,"back-icon"],["src","assets/icons/back-icon.svg","alt","back",1,"img",3,"click"],[1,"right-col-title","ms-2","mb-0","mt-3"],[1,"mt-2","sample"],["src","assets/icons/info-icon-grey.svg","alt","info"],[1,"mb-0"],[1,"card","right-col-card","mt-4"],[1,"card-header-section"],[1,"text-section"],[1,"card-title","fw-semibold"],[1,"card-body-section"],[1,"card","inner-card"],[1,"row","mt-0"],[1,"col-3","mb-0"],[1,"view-data"],[1,"label"],[1,"value","mt-3"],[1,"table-container","p-0","mt-4"],["mat-table","",1,"custom-table",3,"dataSource"],["matColumnDef","aggrement"],["mat-header-cell","","class","table-header",4,"matHeaderCellDef"],["mat-cell","","class","table-data",4,"matCellDef"],["matColumnDef","ValueRs"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"table-container","p-0"],["matColumnDef","otherCharges"],["matColumnDef","gstF"],[1,"col-md-6","ps-0"],["matColumnDef","type"],["matColumnDef","Value"],["mat-header-cell","","class","table-header sales",4,"matHeaderCellDef"],[1,"col-md-6","pe-0"],["matColumnDef","amount"],["matColumnDef","bank"],["matColumnDef","cheque"],["matColumnDef","payment"],[1,"button-container","float-end","mt-3","mb-5"],[1,"primary-button","pb-large",3,"click"],["mat-header-cell","",1,"table-header"],["mat-cell","",1,"table-data"],["mat-header-row",""],["mat-row",""],["mat-header-cell","",1,"table-header","sales"],[1,"fw-600"]],template:function(r,o){r&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"img",5),N("click",function(){return o.navigationBack()}),a(),l(6,"p",6),c(7,"Preview"),a()(),l(8,"div",7),u(9,"img",8),l(10,"p",9),c(11,"Please note: The values displayed are static and for reference only. Actual calculations will be based on the selected unit and configurations in the Unit Cost Sheet."),a()(),l(12,"div",10)(13,"div",11)(14,"div",12)(15,"div",13),c(16,"Flat / Unit details"),a()()(),l(17,"div",14)(18,"div",15)(19,"div",16)(20,"div",17)(21,"div",18)(22,"div",19),c(23,"State"),a(),l(24,"div",20),c(25,"Karnataka"),a()()(),l(26,"div",17)(27,"div",18)(28,"div",19),c(29,"Base price / sq.ft"),a(),l(30,"div",20),c(31,"5,000"),a()()(),l(32,"div",17)(33,"div",18)(34,"div",19),c(35,"Incremental charges as per floor"),a(),l(36,"div",20),c(37,"5,000"),a()()()()(),l(38,"div",21)(39,"table",22),h(40,23),d(41,Gi,2,0,"th",24)(42,Hi,2,1,"td",25),_(),h(43,26),d(44,Li,2,0,"th",24)(45,Bi,2,1,"td",25),_(),d(4
16,Wi,1,0,"tr",27)(47,Ji,1,0,"tr",28),a()(),l(48,"div",29)(49,"table",22),h(50,30),d(51,zi,2,0,"th",24)(52,Ki,2,1,"td",25),_(),h(53,26),d(54,Yi,2,0,"th",24)(55,Qi,2,1,"td",25),_(),h(56,31),d(57,Xi,2,0,"th",24)(58,Zi,2,1,"td",25),_(),d(59,eo,1,0,"tr",27)(60,to,1,0,"tr",28),a()(),l(61,"div",1)(62,"div",32)(63,"div",29)(64,"table",22),h(65,33),d(66,no,2,0,"th",24)(67,io,2,1,"td",25),_(),h(68,34),d(69,oo,2,0,"th",35)(70,ao,2,1,"td",25),_(),d(71,ro,1,0,"tr",27)(72,lo,1,0,"tr",28),a()()(),l(73,"div",36)(74,"div",29)(75,"table",22),h(76,33),d(77,mo,2,0,"th",24)(78,po,3,1,"td",25),_(),h(79,37),d(80,uo,2,0,"th",35)(81,Co,3,1,"td",25),_(),d(82,go,1,0,"tr",27)(83,fo,1,0,"tr",28),a()()()(),l(84,"div",21)(85,"table",22),h(86,30),d(87,vo,4,0,"th",24)(88,So,2,1,"td",25),_(),h(89,26),d(90,Eo,2,0,"th",24)(91,bo,2,1,"td",25),_(),h(92,31),d(93,xo,2,0,"th",24)(94,yo,2,1,"td",25),_(),d(95,No,1,0,"tr",27)(96,wo,1,0,"tr",28),a()(),l(97,"div",21)(98,"table",22),h(99,38),d(100,To,1,0,"th",24)(101,Po,2,1,"td",25),_(),h(102,39),d(103,Do,2,0,"th",35)(104,Uo,2,1,"td",25),_(),h(105,40),d(106,Io,2,0,"th",24)(107,Fo,2,1,"td",25),_(),d(108,Vo,1,0,"tr",27)(109,Mo,1,0,"tr",28),a()()()()(),l(110,"div",41)(111,"button",42),N("click",function(){return o.closePreview()}),c(112,"SAVE"),a()()()()()),r&2&&(s(39),p("dataSource",o.dataSource),s(7),p("matHeaderRowDef",o.displayedColumns),s(),p("matRowDefColumns",o.displayedColumns),s(2),p("dataSource",o.dataSource1),s(10),p("matHeaderRowDef",o.displayedColumns1),s(),p("matRowDefColumns",o.displayedColumns1),s(4),p("dataSource",o.dataSource2),s(7),p("matHeaderRowDef",o.displayedColumns2),s(),p("matRowDefColumns",o.displayedColumns2),s(3),p("dataSource",o.dataSource3),s(7),p("matHeaderRowDef",o.displayedColumns3),s(),p("matRowDefColumns",o.displayedColumns3),s(2),p("dataSource",o.dataSource4),s(10),p("matHeaderRowDef",o.displayedColumns1),s(),p("matRowDefColumns",o.displayedColumns1),s(2),p("dataSource",o.dataSource5),s(10),p("matHeaderRowDef",o.displayedColumns4),s(),p("matRowDefColumns",o.displayedColumns4))},dependencies:[P,W,q,R,G,A,O,H,$,j,L,B],styles:[".back-icon[_ngcontent-%COMP%]{display:flex}.back-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:3%;cursor:pointer}.table-container[_ngcontent-%COMP%]   .custom-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]{background-color:#e6e8f0;font-weight:600}.mat-column-cheque[_ngcontent-%COMP%]{width:60%}.mat-column-otherCharges[_ngcontent-%COMP%]{width:40%}.mat-column-aggrement[_ngcontent-%COMP%]{width:60%}.mat-column-ValueRs[_ngcontent-%COMP%], .mat-column-gstF[_ngcontent-%COMP%]{width:12%}.sample[_ngcontent-%COMP%]{font-size:18px;color:#6d6d6d;display:flex;justify-content:left;align-items:center;column-gap:10px;font-weight:600}.sample[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:18px;height:18px}"]})}}return e})();var ko=[{path:"",redirectTo:"unit-cost-sheet",pathMatch:"full"},{path:"unit-cost-sheet",component:Ae},{path:"edit-unit-cost-sheet",component:Ge},{path:"view-unit-cost-sheet",component:He},{path:"preview-unit-cost-sheet",component:Le}],Be=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=ne({type:e})}static{this.\u0275inj=te({imports:[Ue.forChild(ko),Ue]})}}return e})();var ca=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=ne({type:e})}static{this.\u0275inj=te({imports:[P,Be]})}}return e})();export{ca as UnitCostSheetModule};

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.