| Server IP : 72.60.233.178 / Your IP : 216.73.216.91 Web Server : Apache System : Linux srv1210665.hstgr.cloud 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : armaladmin ( 1001) PHP Version : 8.3.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/armaladmin/public_html/pm/property/ |
Upload File : |
"use strict";(self.webpackChunkmaterial_dashboard_angular=self.webpackChunkmaterial_dashboard_angular||[]).push([[788],{65788:function(t,n,e){e.r(n),e.d(n,{PaymentModule:function(){return Mn}});var o=e(39895),a=e(22238),i=e(99692),r=e(11494),l=e(22759),c=e(66682),s=e(54395),d=e(87519),p=e(68307),m=e(28292),u=e(3679),g=e(16738),f=e(25917),h=e(88229),Z=e(79765),_=e(45435),b=e(46782),x=e(88002),y=e(65792),v=e(37716),C=e(96284),A=e(97788),q=e(19971),T=e(57404),M=e(88539),P=e(98295),O=e(67441),w=e(72458),U=e(52218),k=e(38583),I=e(49983),N=e(43220),S=e(51095),E=e(76627),Y=e(12178);const J=["stepper"];function Q(t,n){if(1&t&&(v.TgZ(0,"mat-option",35),v._uU(1),v.qZA()),2&t){const t=n.$implicit;v.Q6J("value",t),v.xp6(1),v.lnq(" ",t.first_name," ",t.middle_name," ",t.last_name," ")}}function D(t,n){if(1&t&&(v.TgZ(0,"mat-error",36),v._uU(1),v.qZA()),2&t){const t=v.oxw();v.xp6(1),v.Oqu(t.formErrors.tenant)}}function F(t,n){if(1&t&&(v.TgZ(0,"mat-hint",37),v.TgZ(1,"div"),v.TgZ(2,"span"),v.TgZ(3,"mat-icon",38),v._uU(4,"phone"),v.qZA(),v._uU(5),v.qZA(),v.TgZ(6,"span",39),v._uU(7),v.qZA(),v.TgZ(8,"span",39),v._uU(9),v.qZA(),v.qZA(),v.qZA()),2&t){const t=n.ngIf;v.xp6(5),v.hij(" ",null==t?null:t.contact_phone," "),v.xp6(2),v.hij(" ID / Pass : ",null==t?null:t.id_passport_number," "),v.xp6(2),v.hij(" ",null==t?null:t.nationality," ")}}function $(t,n){if(1&t&&(v.TgZ(0,"mat-option",35),v._uU(1),v.qZA()),2&t){const t=n.$implicit;v.Q6J("value",t),v.xp6(1),v.hij(" ",null==t?null:t.lease_number," ")}}function L(t,n){if(1&t&&(v.TgZ(0,"mat-error",36),v._uU(1),v.qZA()),2&t){const t=v.oxw();v.xp6(1),v.Oqu(t.formErrors.lease)}}function R(t,n){if(1&t&&(v.ynx(0),v.TgZ(1,"span"),v._uU(2),v.qZA(),v.BQk()),2&t){const t=n.$implicit;v.xp6(2),v.Oqu(t.unit_name)}}function B(t,n){if(1&t&&(v.TgZ(0,"mat-hint",37),v.TgZ(1,"div"),v.TgZ(2,"span"),v._uU(3),v.qZA(),v.TgZ(4,"span",39),v._uU(5," Unit : "),v.YNc(6,R,3,1,"ng-container",40),v.qZA(),v.TgZ(7,"span",39),v._uU(8),v.qZA(),v.qZA(),v.qZA()),2&t){const t=n.ngIf;v.xp6(3),v.AsE(" ",null==t||null==t.property?null:t.property.property_name," ",null==t||null==t.property?null:t.property.location," "),v.xp6(3),v.Q6J("ngForOf",null==t?null:t.units),v.xp6(2),v.hij(" Type : ",null==t||null==t.lease_type?null:t.lease_type.lease_type_display_name," ")}}function z(t,n){if(1&t&&(v.TgZ(0,"span"),v._uU(1),v.qZA()),2&t){const t=n.ngIf;v.xp6(1),v.hij(" Loan Balance: ",t,"")}}function j(t,n){if(1&t&&(v.TgZ(0,"mat-error",36),v._uU(1),v.qZA()),2&t){const t=v.oxw();v.xp6(1),v.Oqu(t.formErrors.amount)}}function H(t,n){if(1&t&&(v.TgZ(0,"mat-option",35),v._uU(1),v.qZA()),2&t){const t=n.$implicit;v.Q6J("value",t.id),v.xp6(1),v.hij(" ",t.payment_method_display_name," ")}}function G(t,n){if(1&t&&(v.TgZ(0,"mat-error",36),v._uU(1),v.qZA()),2&t){const t=v.oxw();v.xp6(1),v.Oqu(t.formErrors.payment_method_id)}}function W(t,n){if(1&t&&(v.TgZ(0,"mat-error",36),v._uU(1),v.qZA()),2&t){const t=v.oxw();v.xp6(1),v.Oqu(t.formErrors.payment_date)}}function V(t,n){if(1&t&&(v.TgZ(0,"mat-error",36),v._uU(1),v.qZA()),2&t){const t=v.oxw();v.xp6(1),v.Oqu(t.formErrors.paid_by)}}function X(t,n){if(1&t&&(v.TgZ(0,"mat-error",36),v._uU(1),v.qZA()),2&t){const t=v.oxw();v.xp6(1),v.Oqu(t.formErrors.reference_number)}}function K(t,n){if(1&t&&(v.TgZ(0,"mat-error",36),v._uU(1),v.qZA()),2&t){const t=v.oxw(2);v.xp6(1),v.Oqu(t.formErrors.cheque_number)}}function tt(t,n){if(1&t&&(v.TgZ(0,"mat-error",36),v._uU(1),v.qZA()),2&t){const t=v.oxw(2);v.xp6(1),v.Oqu(t.formErrors.cheque_date)}}function nt(t,n){if(1&t&&(v.TgZ(0,"mat-option",35),v._uU(1),v.qZA()),2&t){const t=n.$implicit;v.Q6J("value",t.name),v.xp6(1),v.hij(" ",t.name," ")}}function et(t,n){if(1&t&&(v.TgZ(0,"mat-error",36),v._uU(1),v.qZA()),2&t){const t=v.oxw(2);v.xp6(1),v.Oqu(t.formErrors.bank_name)}}function ot(t,n){if(1&t&&(v.TgZ(0,"mat-error",36),v._uU(1),v.qZA()),2&t){const t=v.oxw(2);v.xp6(1),v.Oqu(t.formErrors.bank_branch)}}function at(t,n){if(1&t&&(v.TgZ(0,"div"),v.TgZ(1,"div",41),v.TgZ(2,"div",14),v.TgZ(3,"div",25),v.TgZ(4,"mat-form-field",11),v.TgZ(5,"mat-label"),v._uU(6,"Cheque Number"),v.qZA(),v._UZ(7,"input",42),v.YNc(8,K,2,1,"mat-error",9),v.qZA(),v.qZA(),v.TgZ(9,"div",25),v.TgZ(10,"mat-form-field",11),v.TgZ(11,"mat-label"),v._uU(12,"Cheque Date"),v.qZA(),v._UZ(13,"input",43),v._UZ(14,"mat-datepicker-toggle",22),v._UZ(15,"mat-datepicker",null,44),v.YNc(17,tt,2,1,"mat-error",9),v.qZA(),v.qZA(),v.qZA(),v.TgZ(18,"div",14),v.TgZ(19,"div",25),v.TgZ(20,"mat-form-field",11),v.TgZ(21,"mat-label"),v._uU(22,"Bank Name"),v.qZA(),v.TgZ(23,"mat-select",45),v.YNc(24,nt,2,2,"mat-option",8),v.qZA(),v.YNc(25,et,2,1,"mat-error",9),v.qZA(),v.qZA(),v.TgZ(26,"div",25),v.TgZ(27,"mat-form-field",11),v.TgZ(28,"mat-label"),v._uU(29,"Bank Branch"),v.qZA(),v._UZ(30,"input",46),v.YNc(31,ot,2,1,"mat-error",9),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA()),2&t){const t=v.MAs(16),n=v.oxw();v.xp6(8),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.cheque_number),v.xp6(5),v.Q6J("matDatepicker",t),v.xp6(1),v.Q6J("for",t),v.xp6(3),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.cheque_date),v.xp6(7),v.Q6J("ngForOf",n.banks),v.xp6(1),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.bank_name),v.xp6(6),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.bank_branch)}}function it(t,n){if(1&t&&(v.TgZ(0,"mat-error",36),v._uU(1),v.qZA()),2&t){const t=v.oxw();v.xp6(1),v.Oqu(t.formErrors.notes)}}function rt(t,n){1&t&&(v.TgZ(0,"div",47),v._UZ(1,"mat-progress-bar",48),v.qZA())}let lt=(()=>{class t{constructor(t,n,e,o,a,i,r,l){this.fb=n,this.paymentService=e,this.leaseService=o,this.tenantService=a,this.notification=i,this.paymentMethodService=r,this.dialogRef=l,this.loader=!1,this.balanceLoader=!1,this.lease$=(0,f.of)(),this.tenant$=(0,f.of)(),this.isBank=!1,this.paymentMethods=[],this.banks=[],this.tenants=[],this.tenantServerSideFilteringCtrl=new u.NI,this.searching=!1,this.filteredServerSideTenants=new h.t(1),this._onDestroy=new Z.xQ}ngOnInit(){this.paymentMethods$=this.paymentMethodService.list(["payment_method_name","payment_method_display_name"]),this.tenantServerSideFilteringCtrl.valueChanges.pipe((0,_.h)(t=>!!t),(0,p.b)(()=>this.searching=!0),(0,b.R)(this._onDestroy),(0,s.b)(200),(0,d.x)(),(0,x.U)(t=>{t=t.toLowerCase(),this.tenantsFiltered$=this.tenantService.search(t)}),(0,y.g)(500)).subscribe(t=>{this.searching=!1,this.filteredServerSideTenants.next(t)},t=>{this.searching=!1}),this.form=this.fb.group({tenant:["",[u.kI.required,u.kI.minLength(1)]],lease:["",[u.kI.required,u.kI.minLength(1)]],payment_method_id:["",[u.kI.required,u.kI.minLength(1)]],amount:["",[u.kI.required,u.kI.minLength(1)]],payment_date:[g(),u.kI.required],notes:[""],paid_by:[""],reference_number:[""],bank_fields:this.fb.group({cheque_number:[""],cheque_date:[g(),u.kI.required],bank_name:[""],bank_branch:[""]})})}onTenantItemChange(t){this.tenantID=null==t?void 0:t.id,this.tenantActiveLeases$=(0,f.of)(),this.lease$=(0,f.of)(),this.tenant$=(0,f.of)(),this.tenantsFiltered$.subscribe(n=>{this.tenantActiveLeases$=(0,f.of)(n.find(n=>n.id===(null==t?void 0:t.id)).leases),this.tenant$=(0,f.of)(n.find(n=>n.id===(null==t?void 0:t.id)))}),this.form.patchValue({lease_id:""}),this.balanceLoader=!0,this.loanAccountBalance$=(0,f.of)(null)}onLeaseItemChange(t){this.leaseID=null==t?void 0:t.id,this.propertyID=null==t?void 0:t.property_id,this.leaseNumber=null==t?void 0:t.lease_number,this.lease$=this.leaseService.getById(null==t?void 0:t.id)}onPaymentMethodItemChange(t){}save(){this.dialogRef.close(this.form.value)}close(){this.dialogRef.close()}create(){const t=Object.assign({},this.payment,this.form.value);t.tenant_id=this.tenantID,t.property_id=this.propertyID,t.lease_id=this.leaseID,t.lease_number=this.leaseNumber,this.loader=!0,this.paymentService.create(t).subscribe(t=>{this.onSaveComplete(),this.notification.showNotification("success","Success !! New payment created.")},t=>{var n;if(this.loader=!1,t.error&&404===t.error.status_code)this.notification.showNotification("danger",t.error.message);else if(0!==t.payment){if(this.formErrors=t,this.formErrors)for(const t in this.formErrors)this.form&&(null===(n=this.form.controls[t])||void 0===n||n.markAsTouched(),this.form.controls[t].setErrors({incorrect:!0}))}else this.notification.showNotification("danger","Connection Error !! Nothing created. Check your connection and retry.")})}onSaveComplete(){this.loader=!1,this.form.reset(),this.dialogRef.close(this.form.value)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}}return t.\u0275fac=function(n){return new(n||t)(v.Y36(a.WI),v.Y36(u.qu),v.Y36(C.t),v.Y36(A.R),v.Y36(q.a),v.Y36(T.g),v.Y36(M.X),v.Y36(a.so))},t.\u0275cmp=v.Xpm({type:t,selectors:[["robi-add-payment"]],viewQuery:function(t,n){if(1&t&&v.Gf(J,7),2&t){let t;v.iGM(t=v.CRH())&&(n.stepper=t.first)}},decls:85,vars:37,consts:[["mat-dialog-title",""],[1,"mat-dialog-data",3,"formGroup","ngSubmit"],[1,"row","mb-4"],[1,"col-12"],["color","primary","appearance","outline"],["placeholder","Tenant*","formControlName","tenant",3,"selectionChange"],["tenantSelect",""],["placeholderLabel","Find Tenant...","noEntriesFoundLabel","No matching Tenant found ...",3,"formControl","searching"],[3,"value",4,"ngFor","ngForOf"],["align","start","class","form__error",4,"ngIf"],["class","text-info","align","start",4,"ngIf"],["color","primary","appearance","outline",1,"full-width"],["placeholder","Lease","formControlName","lease",3,"selectionChange"],["leaseSelect",""],[1,"row"],[1,"col-4"],["matInput","","type","number","min","0","formControlName","amount","placeholder","Amount"],["align","start",1,"text-success"],[4,"ngIf"],["placeholder","Payment Method","formControlName","payment_method_id",3,"selectionChange"],["paymentMethodSelect",""],["matInput","","readonly","","formControlName","payment_date","placeholder","Payment Date",3,"matDatepicker","click"],["matSuffix","",3,"for"],["touchUi",""],["payment_date",""],[1,"col-6"],["matInput","","formControlName","paid_by","placeholder","Paid By"],["matInput","","formControlName","reference_number","placeholder","Reference Number"],["formControlName","notes","matInput","","placeholder","Extra Notes","maxlength","150","rows","3"],["notes",""],["align","end"],["class","d-flex justify-content-center spinner-container",4,"ngIf"],["align","center"],["mat-button","","color","accent",1,"mr-2",3,"disabled","mat-dialog-close","click"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],["align","start",1,"form__error"],["align","start",1,"text-info"],["inline","true"],[1,"ml-5"],[4,"ngFor","ngForOf"],["formGroupName","bank_fields"],["matInput","","formControlName","cheque_number","placeholder","Cheque Number"],["matInput","","readonly","","formControlName","cheque_date","placeholder","Cheque Date",3,"matDatepicker"],["cheque_date",""],["placeholder","Bank Name","formControlName","bank_name"],["matInput","","formControlName","bank_branch","placeholder","Bank Branch"],[1,"d-flex","justify-content-center","spinner-container"],["color","green","mode","query","value","50","bufferValue","75"]],template:function(t,n){if(1&t){const t=v.EpF();v.TgZ(0,"h5",0),v._uU(1,"Add Payment"),v.qZA(),v.TgZ(2,"mat-dialog-content",1),v.NdJ("ngSubmit",function(){return n.create()}),v.TgZ(3,"div",2),v.TgZ(4,"div",3),v.TgZ(5,"mat-form-field",4),v.TgZ(6,"mat-label"),v._uU(7,"Tenant*"),v.qZA(),v.TgZ(8,"mat-select",5,6),v.NdJ("selectionChange",function(){v.CHM(t);const e=v.MAs(9);return n.onTenantItemChange(e.value)}),v.TgZ(10,"mat-option"),v._UZ(11,"ngx-mat-select-search",7),v.qZA(),v.YNc(12,Q,2,4,"mat-option",8),v.ALo(13,"async"),v.qZA(),v.YNc(14,D,2,1,"mat-error",9),v.YNc(15,F,10,3,"mat-hint",10),v.ALo(16,"async"),v.qZA(),v.qZA(),v.qZA(),v.TgZ(17,"div",2),v.TgZ(18,"div",3),v.TgZ(19,"mat-form-field",11),v.TgZ(20,"mat-label"),v._uU(21,"Lease"),v.qZA(),v.TgZ(22,"mat-select",12,13),v.NdJ("selectionChange",function(){v.CHM(t);const e=v.MAs(23);return n.onLeaseItemChange(e.value)}),v.YNc(24,$,2,2,"mat-option",8),v.ALo(25,"async"),v.qZA(),v.YNc(26,L,2,1,"mat-error",9),v.YNc(27,B,9,4,"mat-hint",10),v.ALo(28,"async"),v.qZA(),v.qZA(),v.qZA(),v.TgZ(29,"div",14),v.TgZ(30,"div",15),v.TgZ(31,"mat-form-field",11),v.TgZ(32,"mat-label"),v._uU(33,"Amount"),v.qZA(),v._UZ(34,"input",16),v.TgZ(35,"mat-hint",17),v.YNc(36,z,2,1,"span",18),v.ALo(37,"async"),v.qZA(),v.YNc(38,j,2,1,"mat-error",9),v.qZA(),v.qZA(),v.TgZ(39,"div",15),v.TgZ(40,"mat-form-field",11),v.TgZ(41,"mat-label"),v._uU(42,"Payment Method"),v.qZA(),v.TgZ(43,"mat-select",19,20),v.NdJ("selectionChange",function(){v.CHM(t);const e=v.MAs(44);return n.onPaymentMethodItemChange(e.value)}),v.YNc(45,H,2,2,"mat-option",8),v.ALo(46,"async"),v.qZA(),v.YNc(47,G,2,1,"mat-error",9),v.qZA(),v.qZA(),v.TgZ(48,"div",15),v.TgZ(49,"mat-form-field",11),v.TgZ(50,"mat-label"),v._uU(51,"Payment Date"),v.qZA(),v.TgZ(52,"input",21),v.NdJ("click",function(){return v.CHM(t),v.MAs(55).open()}),v.qZA(),v._UZ(53,"mat-datepicker-toggle",22),v._UZ(54,"mat-datepicker",23,24),v.YNc(56,W,2,1,"mat-error",9),v.qZA(),v.qZA(),v.qZA(),v.TgZ(57,"div",14),v.TgZ(58,"div",25),v.TgZ(59,"mat-form-field",11),v.TgZ(60,"mat-label"),v._uU(61,"Paid By"),v.qZA(),v._UZ(62,"input",26),v.YNc(63,V,2,1,"mat-error",9),v.qZA(),v.qZA(),v.TgZ(64,"div",25),v.TgZ(65,"mat-form-field",11),v.TgZ(66,"mat-label"),v._uU(67,"Reference Number"),v.qZA(),v._UZ(68,"input",27),v.YNc(69,X,2,1,"mat-error",9),v.qZA(),v.qZA(),v.qZA(),v.YNc(70,at,32,7,"div",18),v.TgZ(71,"mat-form-field",11),v.TgZ(72,"mat-label"),v._uU(73,"Extra Notes"),v.qZA(),v._UZ(74,"textarea",28,29),v.TgZ(76,"mat-hint",30),v._uU(77),v.qZA(),v.YNc(78,it,2,1,"mat-error",9),v.qZA(),v.qZA(),v.YNc(79,rt,2,0,"div",31),v.TgZ(80,"mat-dialog-actions",32),v.TgZ(81,"button",33),v.NdJ("click",function(){return n.close()}),v._uU(82,"Cancel"),v.qZA(),v.TgZ(83,"button",34),v.NdJ("click",function(){return n.create()}),v._uU(84,"Save"),v.qZA(),v.qZA()}if(2&t){const t=v.MAs(55),e=v.MAs(75);v.xp6(2),v.Q6J("formGroup",n.form),v.xp6(9),v.Q6J("formControl",n.tenantServerSideFilteringCtrl)("searching",n.searching),v.xp6(1),v.Q6J("ngForOf",v.lcZ(13,25,n.tenantsFiltered$)),v.xp6(2),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.tenant),v.xp6(1),v.Q6J("ngIf",v.lcZ(16,27,n.tenant$)),v.xp6(9),v.Q6J("ngForOf",v.lcZ(25,29,n.tenantActiveLeases$)),v.xp6(2),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.lease),v.xp6(1),v.Q6J("ngIf",v.lcZ(28,31,n.lease$)),v.xp6(9),v.Q6J("ngIf",v.lcZ(37,33,n.loanAccountBalance$)),v.xp6(2),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.amount),v.xp6(7),v.Q6J("ngForOf",v.lcZ(46,35,n.paymentMethods$)),v.xp6(2),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.payment_method_id),v.xp6(5),v.Q6J("matDatepicker",t),v.xp6(1),v.Q6J("for",t),v.xp6(3),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.payment_date),v.xp6(7),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.paid_by),v.xp6(6),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.reference_number),v.xp6(1),v.Q6J("ngIf",n.isBank),v.xp6(7),v.hij("",e.value.length," / 150"),v.xp6(1),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.notes),v.xp6(1),v.Q6J("ngIf",n.loader),v.xp6(2),v.Q6J("disabled",n.loader)("mat-dialog-close",!0),v.xp6(2),v.Q6J("disabled",!n.form.valid||n.loader)}},directives:[a.uh,a.xY,u.JL,u.sg,P.KE,P.hX,O.gD,u.JJ,u.u,w.ey,U.nu,u.oH,k.sg,k.O5,I.Nt,u.qQ,u.wV,u.Fj,P.bx,N.hl,N.nW,P.R9,N.Mq,u.nD,a.H8,S.lW,a.ZT,P.TO,E.Hw,u.x0,Y.pW],pipes:[k.Ov],encapsulation:2}),t})();var ct=e(5255),st=e(65),dt=e(26215),pt=e(91841);let mt=(()=>{class t extends st.b{constructor(t){super(t,"transactions"),this.selectedTransactionSource=new dt.X(null),this.selectedTransactionChanges$=this.selectedTransactionSource.asObservable(),this.localHttpClient=t}changeSelectedTransaction(t){this.selectedTransactionSource.next(t)}}return t.\u0275fac=function(n){return new(n||t)(v.LFG(pt.eN))},t.\u0275prov=v.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ut(t,n){if(1&t&&(v.TgZ(0,"div",1),v.TgZ(1,"div",2),v.TgZ(2,"mat-form-field",7),v.TgZ(3,"mat-label"),v._uU(4,"Notes"),v.qZA(),v._UZ(5,"textarea",15),v.qZA(),v.qZA(),v.qZA()),2&t){const t=v.oxw();v.xp6(5),v.s9C("value",null==t.payment?null:t.payment.notes)}}function gt(t,n){if(1&t&&(v.TgZ(0,"div",1),v.TgZ(1,"div",2),v.TgZ(2,"mat-form-field",3),v.TgZ(3,"mat-label"),v._uU(4,"Cancelled By"),v.qZA(),v._UZ(5,"input",16),v.qZA(),v.qZA(),v.qZA()),2&t){const t=v.oxw();v.xp6(5),v.hYB("value","",null==t.payment||null==t.payment.cancel_user?null:t.payment.cancel_user.first_name," ",null==t.payment||null==t.payment.cancel_user?null:t.payment.cancel_user.last_name,"")}}function ft(t,n){if(1&t&&(v.TgZ(0,"div",1),v.TgZ(1,"div",2),v.TgZ(2,"mat-form-field",7),v.TgZ(3,"mat-label"),v._uU(4,"Cancel Comments"),v.qZA(),v._UZ(5,"textarea",17),v.qZA(),v.qZA(),v.qZA()),2&t){const t=v.oxw();v.xp6(5),v.s9C("value",null==t.payment?null:t.payment.cancel_notes)}}function ht(t,n){if(1&t&&(v.TgZ(0,"div",1),v.TgZ(1,"div",2),v.TgZ(2,"mat-form-field",3),v.TgZ(3,"mat-label"),v._uU(4,"Approved By"),v.qZA(),v._UZ(5,"input",18),v.qZA(),v.qZA(),v.qZA()),2&t){const t=v.oxw();v.xp6(5),v.hYB("value","",null==t.payment||null==t.payment.approve_user?null:t.payment.approve_user.first_name," ",null==t.payment||null==t.payment.approve_user?null:t.payment.approve_user.last_name,"")}}function Zt(t,n){1&t&&(v.TgZ(0,"mat-dialog-actions",19),v.TgZ(1,"button",20),v._uU(2,"Close"),v.qZA(),v.qZA()),2&t&&(v.xp6(1),v.Q6J("mat-dialog-close",!0))}let _t=(()=>{class t{constructor(t,n,e,o,a){this.paymentService=n,this.transactionService=e,this.paymentMethodService=o,this.dialogRef=a,this.transactionColumns=["loan_id","amount","transaction_date","transaction_type"],this.pageIndex=0,this.pageSizeOptions=[5,10,25,50,100],this.loader=!1,this.paymentMethods=[],this.payment=t.data,this.isStandAlone=t.isStandAlone}ngOnInit(){this.paymentMethodService.list("name").subscribe(t=>this.paymentMethods=t,()=>this.paymentMethods=[])}close(){this.dialogRef.close()}loadData(){this.transactionDataSource.load("",this.paginator.pageIndex+1,this.paginator.pageSize,this.sort.active,this.sort.direction,"payment_id",this.payment.id)}ngAfterViewInit(){}}return t.\u0275fac=function(n){return new(n||t)(v.Y36(a.WI),v.Y36(C.t),v.Y36(mt),v.Y36(M.X),v.Y36(a.so))},t.\u0275cmp=v.Xpm({type:t,selectors:[["robi-payment-detail"]],viewQuery:function(t,n){if(1&t&&(v.Gf(i.NW,7),v.Gf(r.YE,7)),2&t){let t;v.iGM(t=v.CRH())&&(n.paginator=t.first),v.iGM(t=v.CRH())&&(n.sort=t.first)}},decls:41,vars:17,consts:[[1,"mat-dialog-data",2,"min-width","40%"],[1,"row"],[1,"col-12"],["color","primary","appearance","outline"],["matInput","","placeholder","Status","disabled","",3,"value"],["matPrefix",""],[1,"col-6"],["color","primary","appearance","outline",1,"full-width"],["matInput","","placeholder","Amount","disabled","",3,"value"],["matInput","","placeholder","Paid On","disabled","",3,"value"],["matInput","","placeholder","Payment Method","disabled","",3,"value"],["matInput","","placeholder","Tenant","disabled","",3,"value"],["matInput","","placeholder","Recorded By","disabled","",3,"value"],["class","row",4,"ngIf"],["align","center",4,"ngIf"],["matInput","","placeholder","Notes","disabled","","maxlength","150","rows","1",3,"value"],["matInput","","placeholder","Cancelled By","disabled","",3,"value"],["matInput","","placeholder","Cancel Comments","disabled","","maxlength","150","rows","1",3,"value"],["matInput","","placeholder","Approved By","disabled","",3,"value"],["align","center"],["mat-button","",1,"mat-raised-button",3,"mat-dialog-close"]],template:function(t,n){1&t&&(v.TgZ(0,"mat-dialog-content",0),v.TgZ(1,"div",1),v.TgZ(2,"div",2),v.TgZ(3,"mat-form-field",3),v._UZ(4,"input",4),v.TgZ(5,"span",5),v.TgZ(6,"mat-icon"),v._uU(7),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.TgZ(8,"div",1),v.TgZ(9,"div",6),v.TgZ(10,"mat-form-field",7),v.TgZ(11,"mat-label"),v._uU(12,"Amount"),v.qZA(),v._UZ(13,"input",8),v.qZA(),v.qZA(),v.TgZ(14,"div",6),v.TgZ(15,"mat-form-field",7),v.TgZ(16,"mat-label"),v._uU(17,"Paid On"),v.qZA(),v._UZ(18,"input",9),v.qZA(),v.qZA(),v.qZA(),v.TgZ(19,"div",1),v.TgZ(20,"div",6),v.TgZ(21,"mat-form-field",7),v.TgZ(22,"mat-label"),v._uU(23,"Payment Method"),v.qZA(),v._UZ(24,"input",10),v.qZA(),v.qZA(),v.TgZ(25,"div",6),v.TgZ(26,"mat-form-field",7),v.TgZ(27,"mat-label"),v._uU(28,"Tenant"),v.qZA(),v._UZ(29,"input",11),v.qZA(),v.qZA(),v.qZA(),v.TgZ(30,"div",1),v.TgZ(31,"div",2),v.TgZ(32,"mat-form-field",7),v.TgZ(33,"mat-label"),v._uU(34,"Recorded By"),v.qZA(),v._UZ(35,"input",12),v.qZA(),v.qZA(),v.qZA(),v.YNc(36,ut,6,1,"div",13),v.YNc(37,gt,6,2,"div",13),v.YNc(38,ft,6,1,"div",13),v.YNc(39,ht,6,2,"div",13),v.qZA(),v.YNc(40,Zt,3,1,"mat-dialog-actions",14)),2&t&&(v.xp6(3),v.Gre("full-width ",null==n.payment.status?null:n.payment.status.status_class,""),v.xp6(1),v.MGl("value"," ",null==n.payment.status?null:n.payment.status.status_text,""),v.xp6(3),v.Oqu(null==n.payment.status?null:n.payment.status.status_icon),v.xp6(6),v.s9C("value",null==n.payment?null:n.payment.amount),v.xp6(5),v.s9C("value",null==n.payment?null:n.payment.payment_date),v.xp6(6),v.s9C("value",null==n.payment||null==n.payment.payment_method?null:n.payment.payment_method.payment_method_display_name),v.xp6(5),v.cQ8("value","",null==n.payment||null==n.payment.tenant?null:n.payment.tenant.first_name," ",null==n.payment||null==n.payment.tenant?null:n.payment.tenant.middle_name," ",null==n.payment||null==n.payment.tenant?null:n.payment.tenant.last_name,""),v.xp6(6),v.s9C("value",null==n.payment||null==n.payment.tenant?null:n.payment.tenant.first_name),v.xp6(1),v.Q6J("ngIf",null==n.payment?null:n.payment.notes),v.xp6(1),v.Q6J("ngIf",null==n.payment?null:n.payment.is_cancelled),v.xp6(1),v.Q6J("ngIf",null==n.payment?null:n.payment.is_cancelled),v.xp6(1),v.Q6J("ngIf",null==n.payment?null:n.payment.is_approved),v.xp6(1),v.Q6J("ngIf",n.isStandAlone))},directives:[a.xY,P.KE,I.Nt,P.qo,E.Hw,P.hX,k.O5,a.H8,S.lW,a.ZT],encapsulation:2}),t})();var bt=e(90171);function xt(t,n){if(1&t&&(v.TgZ(0,"mat-error",14),v._uU(1),v.qZA()),2&t){const t=v.oxw();v.xp6(1),v.Oqu(t.formErrors.notes)}}function yt(t,n){1&t&&(v.TgZ(0,"div",15),v._UZ(1,"mat-progress-bar",16),v.qZA())}let vt=(()=>{class t{constructor(t,n,e,o,a,i,r){this.fb=n,this.paymentService=e,this.notification=o,this.transactionService=a,this.paymentMethodService=i,this.dialogRef=r,this.transactionColumns=["loan_id","amount","transaction_date","transaction_type"],this.pageIndex=0,this.pageSizeOptions=[5,10,25,50,100],this.loader=!1,this.paymentMethods=[],this.payment=t.data}ngOnInit(){this.form=this.fb.group({cancel_notes:["",[u.kI.required,u.kI.minLength(2)]]}),this.paymentMethodService.list("name").subscribe(t=>this.paymentMethods=t,()=>this.paymentMethods=[])}close(){this.dialogRef.close()}ngAfterViewInit(){}cancelPayment(){const t=Object.assign({},this.paymentStatus,this.form.value);t.id=this.payment.id,this.loader=!0,this.paymentService.cancel(t).subscribe(t=>{this.onSaveComplete(),this.notification.showNotification("success","Success !! Payment has been Cancelled.")},t=>{var n;if(this.loader=!1,t.error&&404===t.error.status_code)this.notification.showNotification("danger",t.error.message);else if(0!==t.payment){if(this.formErrors=t,this.formErrors)for(const t in this.formErrors)this.form&&(null===(n=this.form.controls[t])||void 0===n||n.markAsTouched(),this.form.controls[t].setErrors({incorrect:!0}))}else this.notification.showNotification("danger","Connection Error !!. Check your connection and retry.")})}onSaveComplete(){this.loader=!1,this.form.reset(),this.dialogRef.close(this.form.value)}}return t.\u0275fac=function(n){return new(n||t)(v.Y36(a.WI),v.Y36(u.qu),v.Y36(C.t),v.Y36(T.g),v.Y36(mt),v.Y36(M.X),v.Y36(a.so))},t.\u0275cmp=v.Xpm({type:t,selectors:[["robi-status-change"]],viewQuery:function(t,n){if(1&t&&(v.Gf(i.NW,7),v.Gf(r.YE,7)),2&t){let t;v.iGM(t=v.CRH())&&(n.paginator=t.first),v.iGM(t=v.CRH())&&(n.sort=t.first)}},decls:25,vars:8,consts:[[1,"mat-title"],[1,"mat-dialog-data",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-12"],["color","primary","appearance","outline",1,"full-width"],["formControlName","cancel_notes","matInput","","placeholder","Cancel Notes","maxlength","150","rows","3"],["notes",""],["align","end"],["align","start","class","form__error",4,"ngIf"],[3,"expanded"],["class","d-flex justify-content-center spinner-container",4,"ngIf"],["align","center"],["mat-button","","color","primary",1,"mr-2",3,"disabled","mat-dialog-close","click"],[1,"mat-raised-button","mat-primary",3,"disabled","click"],["align","start",1,"form__error"],[1,"d-flex","justify-content-center","spinner-container"],["color","green","mode","query","value","50","bufferValue","75"]],template:function(t,n){if(1&t&&(v.TgZ(0,"h5",0),v._uU(1,"Cancel Payment"),v.qZA(),v.TgZ(2,"mat-dialog-content",1),v.NdJ("ngSubmit",function(){return n.cancelPayment()}),v.TgZ(3,"div",2),v.TgZ(4,"div",3),v.TgZ(5,"mat-form-field",4),v.TgZ(6,"mat-label"),v._uU(7,"Cancel Notes"),v.qZA(),v._UZ(8,"textarea",5,6),v.TgZ(10,"mat-hint",7),v._uU(11),v.qZA(),v.YNc(12,xt,2,1,"mat-error",8),v.qZA(),v.qZA(),v.qZA(),v.TgZ(13,"mat-accordion"),v.TgZ(14,"mat-expansion-panel",9),v.TgZ(15,"mat-expansion-panel-header"),v.TgZ(16,"mat-panel-title"),v._uU(17," Details "),v.qZA(),v.qZA(),v._UZ(18,"robi-payment-detail"),v.qZA(),v.qZA(),v.qZA(),v.YNc(19,yt,2,0,"div",10),v.TgZ(20,"mat-dialog-actions",11),v.TgZ(21,"button",12),v.NdJ("click",function(){return n.close()}),v._uU(22,"Close"),v.qZA(),v.TgZ(23,"button",13),v.NdJ("click",function(){return n.cancelPayment()}),v._uU(24,"Cancel Payment"),v.qZA(),v.qZA()),2&t){const t=v.MAs(9);v.xp6(2),v.Q6J("formGroup",n.form),v.xp6(9),v.hij("",t.value.length," / 150"),v.xp6(1),v.Q6J("ngIf",null==n.formErrors?null:n.formErrors.notes),v.xp6(2),v.Q6J("expanded",!0),v.xp6(5),v.Q6J("ngIf",n.loader),v.xp6(2),v.Q6J("disabled",n.loader)("mat-dialog-close",!0),v.xp6(2),v.Q6J("disabled",!n.form.valid||n.loader)}},directives:[a.xY,u.JL,u.sg,P.KE,P.hX,u.Fj,I.Nt,u.JJ,u.u,u.nD,P.bx,k.O5,bt.pp,bt.ib,bt.yz,bt.yK,_t,a.H8,S.lW,a.ZT,P.TO,Y.pW],encapsulation:2}),t})();var Ct=e(86710),At=e(4919),qt=e(37771),Tt=e(19333),Mt=e(90519),Pt=e(75973),Ot=e(32802),wt=e(32789),Ut=e(33935),kt=e(11436),It=e(29790);const Nt=["search"];function St(t,n){if(1&t){const t=v.EpF();v.TgZ(0,"div",38),v.TgZ(1,"button",39),v.NdJ("click",function(){return v.CHM(t),v.oxw(2).addDialog()}),v.TgZ(2,"mat-icon"),v._uU(3,"add"),v.qZA(),v.qZA(),v.qZA()}}function Et(t,n){if(1&t&&(v.ynx(0),v.YNc(1,St,4,0,"div",37),v.ALo(2,"async"),v.BQk()),2&t){const t=v.oxw();v.xp6(1),v.Q6J("ngIf",v.lcZ(2,1,t.isAdmin$))}}function Yt(t,n){if(1&t){const t=v.EpF();v.TgZ(0,"div",41),v.TgZ(1,"button",42),v.NdJ("click",function(){return v.CHM(t),v.oxw(2).addDialog()}),v.ALo(2,"async"),v.TgZ(3,"mat-icon"),v._uU(4,"add"),v.qZA(),v._uU(5,"Add Payment "),v.qZA(),v.qZA()}if(2&t){const t=v.oxw(2);v.xp6(1),v.Q6J("disabled",v.lcZ(2,1,null==t.dataSource?null:t.dataSource.loading$))}}function Jt(t,n){if(1&t&&(v.ynx(0),v.YNc(1,Yt,6,3,"div",40),v.ALo(2,"async"),v.BQk()),2&t){const t=v.oxw();v.xp6(1),v.Q6J("ngIf",v.lcZ(2,1,t.isAdmin$))}}function Qt(t,n){if(1&t){const t=v.EpF();v.TgZ(0,"button",43),v.NdJ("click",function(){return v.CHM(t),v.oxw().clearSearch()}),v.TgZ(1,"mat-icon"),v._uU(2,"close"),v.qZA(),v.qZA()}}function Dt(t,n){1&t&&(v.TgZ(0,"mat-header-cell",44),v._uU(1," Amount "),v.qZA())}function Ft(t,n){if(1&t&&(v.TgZ(0,"mat-cell"),v._uU(1),v.qZA()),2&t){const t=n.$implicit;v.xp6(1),v.hij(" ",t.amount," ")}}function $t(t,n){1&t&&(v.TgZ(0,"mat-header-cell",44),v._uU(1," Payment Method "),v.qZA())}function Lt(t,n){if(1&t&&(v.TgZ(0,"mat-cell"),v._uU(1),v.qZA()),2&t){const t=n.$implicit;v.xp6(1),v.hij(" ",null==t.payment_method?null:t.payment_method.payment_method_display_name," ")}}function Rt(t,n){1&t&&(v.TgZ(0,"mat-header-cell",44),v._uU(1," Payment Date "),v.qZA())}function Bt(t,n){if(1&t&&(v.TgZ(0,"mat-cell"),v._uU(1),v.qZA()),2&t){const t=n.$implicit;v.xp6(1),v.hij(" ",t.payment_date," ")}}function zt(t,n){1&t&&(v.TgZ(0,"mat-header-cell",44),v._uU(1," Tenant "),v.qZA())}function jt(t,n){if(1&t&&(v.TgZ(0,"mat-cell"),v._uU(1),v.qZA()),2&t){const t=n.$implicit;v.xp6(1),v.hij(" ",null==t.tenant?null:t.tenant.first_name," ")}}function Ht(t,n){1&t&&(v.TgZ(0,"mat-header-cell",44),v._uU(1," Lease "),v.qZA())}function Gt(t,n){if(1&t&&(v.TgZ(0,"mat-cell"),v._uU(1),v.qZA()),2&t){const t=n.$implicit;v.xp6(1),v.hij(" ",null==t||null==t.lease?null:t.lease.lease_number," ")}}function Wt(t,n){1&t&&(v.TgZ(0,"mat-header-cell",44),v._uU(1," Property "),v.qZA())}function Vt(t,n){if(1&t&&(v.TgZ(0,"mat-cell"),v._uU(1),v.qZA()),2&t){const t=n.$implicit;v.xp6(1),v.hij(" ",null==t||null==t.property?null:t.property.property_name," ")}}function Xt(t,n){1&t&&(v.TgZ(0,"mat-header-cell",44),v._uU(1," Receipt Number "),v.qZA())}function Kt(t,n){if(1&t&&(v.TgZ(0,"mat-cell"),v._uU(1),v.qZA()),2&t){const t=n.$implicit;v.xp6(1),v.hij(" ",t.receipt_number," ")}}function tn(t,n){1&t&&(v.TgZ(0,"mat-header-cell",44),v._uU(1," Status "),v.qZA())}function nn(t,n){if(1&t){const t=v.EpF();v.TgZ(0,"mat-cell"),v.TgZ(1,"button",45),v.NdJ("click",function(){const n=v.CHM(t).$implicit;return v.oxw().paymentDetails(n)}),v.TgZ(2,"mat-icon"),v._uU(3),v.qZA(),v._uU(4),v.qZA(),v.qZA()}if(2&t){const t=n.$implicit;v.xp6(1),v.Tol(null==t.status?null:t.status.status_class),v.xp6(2),v.Oqu(null==t.status?null:t.status.status_icon),v.xp6(1),v.hij(" ",null==t.status?null:t.status.status_text," ")}}function en(t,n){1&t&&(v.TgZ(0,"mat-header-cell"),v._uU(1," Actions "),v.qZA())}function on(t,n){if(1&t){const t=v.EpF();v.TgZ(0,"button",53),v.NdJ("click",function(){v.CHM(t);const n=v.oxw(3).$implicit;return v.oxw().approvePayment(n)}),v.TgZ(1,"mat-icon",54),v._uU(2,"check_circle"),v.qZA(),v.TgZ(3,"span"),v._uU(4,"Approve"),v.qZA(),v.qZA()}2&t&&v.Q6J("matTooltipPosition","above")}function an(t,n){if(1&t&&(v.ynx(0),v.YNc(1,on,5,1,"button",52),v.BQk()),2&t){const t=v.oxw(2).$implicit;v.xp6(1),v.Q6J("ngIf",t.is_pending)}}function rn(t,n){if(1&t&&(v.ynx(0),v.YNc(1,an,2,1,"ng-container",33),v.ALo(2,"async"),v.BQk()),2&t){const t=v.oxw(2);v.xp6(1),v.Q6J("ngIf",v.lcZ(2,1,t.isAdmin$))}}function ln(t,n){if(1&t){const t=v.EpF();v.TgZ(0,"button",56),v.NdJ("click",function(){v.CHM(t);const n=v.oxw(3).$implicit;return v.oxw().cancelPayment(n)}),v.TgZ(1,"mat-icon",57),v._uU(2,"highlight_off"),v.qZA(),v.TgZ(3,"span"),v._uU(4,"Cancel"),v.qZA(),v.qZA()}2&t&&v.Q6J("matTooltipPosition","above")}function cn(t,n){if(1&t&&(v.ynx(0),v.YNc(1,ln,5,1,"button",55),v.BQk()),2&t){const t=v.oxw(2).$implicit;v.xp6(1),v.Q6J("ngIf",t.is_pending)}}function sn(t,n){if(1&t&&(v.ynx(0),v.YNc(1,cn,2,1,"ng-container",33),v.ALo(2,"async"),v.BQk()),2&t){const t=v.oxw(2);v.xp6(1),v.Q6J("ngIf",v.lcZ(2,1,t.isAdmin$))}}const dn=function(){return["approve-payment"]},pn=function(){return["cancel-payment"]};function mn(t,n){if(1&t){const t=v.EpF();v.TgZ(0,"mat-cell",46),v.TgZ(1,"button",47),v.TgZ(2,"mat-icon"),v._uU(3,"more_vert"),v.qZA(),v.qZA(),v.TgZ(4,"mat-menu",null,48),v.TgZ(6,"button",49),v.NdJ("click",function(){const n=v.CHM(t).$implicit;return v.oxw().paymentDetails(n,!0)}),v.TgZ(7,"mat-icon",50),v._uU(8,"visibility"),v.qZA(),v.TgZ(9,"span"),v._uU(10,"View"),v.qZA(),v.qZA(),v.TgZ(11,"button",51),v.NdJ("click",function(){const n=v.CHM(t).$implicit;return v.oxw().onSelected(n)}),v.TgZ(12,"mat-icon",50),v._uU(13,"picture_as_pdf"),v.qZA(),v.TgZ(14,"span"),v._uU(15,"Receipt"),v.qZA(),v.qZA(),v.YNc(16,rn,3,3,"ng-container",3),v.YNc(17,sn,3,3,"ng-container",3),v.qZA(),v.qZA()}if(2&t){const t=n.$implicit,e=v.MAs(5);v.xp6(1),v.Q6J("matMenuTriggerFor",e),v.xp6(5),v.Q6J("matTooltipPosition","above"),v.xp6(5),v.s9C("routerLink",t.id),v.Q6J("matTooltipPosition","above"),v.xp6(5),v.Q6J("robiPermission",v.DdM(6,dn)),v.xp6(1),v.Q6J("robiPermission",v.DdM(7,pn))}}function un(t,n){1&t&&v._UZ(0,"mat-header-row")}function gn(t,n){1&t&&v._UZ(0,"mat-row")}function fn(t,n){1&t&&(v.TgZ(0,"span"),v._uU(1,"No Payments Data"),v.qZA())}function hn(t,n){1&t&&(v.TgZ(0,"div",58),v._UZ(1,"mat-progress-bar",59),v.qZA())}const Zn=function(){return["create-payment"]};let _n=(()=>{class t{constructor(t,n,e,o,a,i,r,l,c){this.store=t,this.userService=n,this.landlordService=e,this.tenantService=o,this.paymentService=a,this.utilityBillService=i,this.notification=r,this.authenticationService=l,this.dialog=c,this.displayedColumns=["amount","payment_method_id","payment_date","tenant_id","lease_id","property_id","receipt_number","payment_status","actions"],this.loader=!1,this.pageIndex=0,this.pageSizeOptions=[5,10,25,50,100],this.isLandlord=!1,this.activeUser=this.userService.getActiveUser(),this.isAgent$=this.store.pipe((0,Ct.Ys)(At.sk)),this.isAdmin$=this.authenticationService.isAdmin(),this.store.pipe((0,Ct.Ys)(At.iG)).subscribe(t=>{t&&(this.isLandlord=!0,this.store.pipe((0,Ct.Ys)(At.Zb)).subscribe(t=>this.landlordID=t))})}ngOnInit(){var t,n,e;switch(this.dataSource=new ct.U(this.paymentService),this.dataSource.meta$.subscribe(t=>this.meta=t),null===(t=this.activeUser)||void 0===t?void 0:t.userType){case qt.x.ADMIN:this.dataSource.load("",0,0,"updated_at","desc");break;case qt.x.LANDLORD:this.dataSource.loadNested(this.landlordService.nestedPaymentsUrl(null===(n=this.activeUser)||void 0===n?void 0:n.userID),"",0,0);break;case qt.x.TENANT:this.dataSource.loadNested(this.tenantService.nestedPaymentsUrl(null===(e=this.activeUser)||void 0===e?void 0:e.userID),"",0,0)}}ngAfterViewInit(){(0,l.R)(this.search.nativeElement,"keyup").pipe((0,s.b)(1e3),(0,d.x)(),(0,p.b)(()=>{this.paginator.pageIndex=0,this.loadData()})).subscribe(),this.paginator.page.pipe((0,p.b)(()=>this.loadData())).subscribe(),this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),(0,c.T)(this.sort.sortChange,this.paginator.page).pipe((0,p.b)(()=>this.loadData())).subscribe()}loadData(){var t,n,e;switch(null===(t=this.activeUser)||void 0===t?void 0:t.userType){case qt.x.ADMIN:this.dataSource.load(this.search.nativeElement.value,this.paginator.pageIndex+1,this.paginator.pageSize,this.sort.active,this.sort.direction);break;case qt.x.LANDLORD:this.dataSource.loadNested(this.landlordService.nestedPaymentsUrl(null===(n=this.activeUser)||void 0===n?void 0:n.userID),this.search.nativeElement.value,this.paginator.pageIndex+1,this.paginator.pageSize,this.sort.active,this.sort.direction);break;case qt.x.TENANT:this.dataSource.loadNested(this.tenantService.nestedPaymentsUrl(null===(e=this.activeUser)||void 0===e?void 0:e.userID),this.search.nativeElement.value,this.paginator.pageIndex+1,this.paginator.pageSize,this.sort.active,this.sort.direction)}}clearSearch(){this.search.nativeElement.value="",this.loadData()}addDialog(){const t=new a.vA;t.disableClose=!0,t.autoFocus=!0,t.data={},this.dialog.open(lt,t).afterClosed().subscribe(t=>{t&&this.loadData()})}paymentDetails(t,n=!1){const e=new a.vA;e.disableClose=!0,e.autoFocus=!0,e.data={data:t,isStandAlone:n},this.dialog.open(_t,e).afterClosed().subscribe(t=>{})}approvePayment(t){this.dialogRef=this.dialog.open(m.z,{disableClose:!0,data:{title:"Approve Payment? Confirm permanent action."}}),this.dialogRef.afterClosed().subscribe(n=>{n&&this.paymentService.approve({id:t.id}).subscribe(t=>{this.loader=!1,this.notification.showNotification("success","Success !! Payment has been Approved."),this.loadData()},t=>{this.notification.showNotification("danger","Error !! Could not approve payment.")}),this.dialogRef=null})}cancelPayment(t){const n=new a.vA;n.disableClose=!0,n.autoFocus=!0,n.data={data:t},this.dialog.open(vt,n).afterClosed().subscribe(t=>{t&&this.loadData()})}openConfirmationDialog(t){this.dialogRef=this.dialog.open(m.z,{disableClose:!0}),this.dialogRef.afterClosed().subscribe(n=>{n&&this.delete(t),this.dialogRef=null})}delete(t){}onSelected(t){this.paymentService.changeSelectedPayment(t)}}return t.\u0275fac=function(n){return new(n||t)(v.Y36(Ct.yh),v.Y36(Tt.f),v.Y36(Mt.c),v.Y36(q.a),v.Y36(C.t),v.Y36(C.t),v.Y36(T.g),v.Y36(Pt.$),v.Y36(a.uw))},t.\u0275cmp=v.Xpm({type:t,selectors:[["robi-utility-bills"]],viewQuery:function(t,n){if(1&t&&(v.Gf(Nt,5),v.Gf(i.NW,7),v.Gf(r.YE,7)),2&t){let t;v.iGM(t=v.CRH())&&(n.search=t.first),v.iGM(t=v.CRH())&&(n.paginator=t.first),v.iGM(t=v.CRH())&&(n.sort=t.first)}},decls:57,vars:25,consts:[[1,"main-content"],[1,"container-fluid"],[1,"row"],[4,"robiPermission"],[1,"col-md-12"],[1,"card"],[1,"card-header","card-header-info"],[1,"card-title"],[1,"card-body"],[1,"row","search-form-section"],[1,"col-7",3,"hidden"],[1,"search-form-field"],["matInput","","autocomplete","off",3,"placeholder","disabled"],["search",""],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"table-responsive"],["matSort","","matSortActive","payment_date","matSortDirection","desc","matSortDisableClear","",3,"dataSource"],["table",""],["matColumnDef","amount"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","payment_method_id"],["matColumnDef","payment_date"],["matColumnDef","tenant_id"],["matColumnDef","lease_id"],["matColumnDef","property_id"],["matColumnDef","receipt_number"],["matColumnDef","payment_status"],["matColumnDef","actions"],[4,"matHeaderCellDef"],["class","button-row",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[4,"ngIf"],["class","d-flex justify-content-center spinner-container",4,"ngIf"],["showFirstLastButtons","",3,"length","pageIndex","pageSizeOptions"],["pagination",""],["class","fab-container",4,"ngIf"],[1,"fab-container"],["mat-fab","",1,"fab-toggler",3,"click"],["class","col-5",4,"ngIf"],[1,"col-5"],["mat-button","","matPrefix","","mat-stroked-button","","aria-label","add new",3,"disabled","click"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["mat-sort-header",""],["mat-button","",3,"click"],[1,"button-row"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","matTooltip","View Payment Details.",3,"matTooltipPosition","click"],["color","primary"],["mat-menu-item","","matTooltip","View Payment Details.",3,"matTooltipPosition","routerLink","click"],["mat-menu-item","","matTooltip","Approve Payment.",3,"matTooltipPosition","click",4,"ngIf"],["mat-menu-item","","matTooltip","Approve Payment.",3,"matTooltipPosition","click"],["color","",1,"text-success"],["mat-menu-item","","matTooltip","Cancel Payment.",3,"matTooltipPosition","click",4,"ngIf"],["mat-menu-item","","matTooltip","Cancel Payment.",3,"matTooltipPosition","click"],["color","warn"],[1,"d-flex","justify-content-center","spinner-container"],["color","green","mode","query","value","50","bufferValue","75"]],template:function(t,n){if(1&t&&(v.TgZ(0,"div",0),v.TgZ(1,"div",1),v.TgZ(2,"div",2),v.YNc(3,Et,3,3,"ng-container",3),v.TgZ(4,"div",4),v.TgZ(5,"div",5),v.TgZ(6,"div",6),v.TgZ(7,"h4",7),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.qZA(),v.TgZ(10,"div",8),v.TgZ(11,"div",9),v.YNc(12,Jt,3,3,"ng-container",3),v.TgZ(13,"div",10),v.ALo(14,"async"),v.TgZ(15,"mat-form-field",11),v._UZ(16,"input",12,13),v.ALo(18,"translate"),v.YNc(19,Qt,3,0,"button",14),v.qZA(),v.qZA(),v.qZA(),v.TgZ(20,"div",15),v.TgZ(21,"mat-table",16,17),v.ynx(23,18),v.YNc(24,Dt,2,0,"mat-header-cell",19),v.YNc(25,Ft,2,1,"mat-cell",20),v.BQk(),v.ynx(26,21),v.YNc(27,$t,2,0,"mat-header-cell",19),v.YNc(28,Lt,2,1,"mat-cell",20),v.BQk(),v.ynx(29,22),v.YNc(30,Rt,2,0,"mat-header-cell",19),v.YNc(31,Bt,2,1,"mat-cell",20),v.BQk(),v.ynx(32,23),v.YNc(33,zt,2,0,"mat-header-cell",19),v.YNc(34,jt,2,1,"mat-cell",20),v.BQk(),v.ynx(35,24),v.YNc(36,Ht,2,0,"mat-header-cell",19),v.YNc(37,Gt,2,1,"mat-cell",20),v.BQk(),v.ynx(38,25),v.YNc(39,Wt,2,0,"mat-header-cell",19),v.YNc(40,Vt,2,1,"mat-cell",20),v.BQk(),v.ynx(41,26),v.YNc(42,Xt,2,0,"mat-header-cell",19),v.YNc(43,Kt,2,1,"mat-cell",20),v.BQk(),v.ynx(44,27),v.YNc(45,tn,2,0,"mat-header-cell",19),v.YNc(46,nn,5,5,"mat-cell",20),v.BQk(),v.ynx(47,28),v.YNc(48,en,2,0,"mat-header-cell",29),v.YNc(49,mn,18,8,"mat-cell",30),v.BQk(),v.YNc(50,un,1,0,"mat-header-row",31),v.YNc(51,gn,1,0,"mat-row",32),v.qZA(),v.YNc(52,fn,2,0,"span",33),v.YNc(53,hn,2,0,"div",34),v.ALo(54,"async"),v._UZ(55,"mat-paginator",35,36),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA()),2&t){const t=v.MAs(17);v.xp6(3),v.Q6J("robiPermission",v.DdM(23,Zn)),v.xp6(5),v.Oqu(v.lcZ(9,15,"robi.payments.title")),v.xp6(4),v.Q6J("robiPermission",v.DdM(24,Zn)),v.xp6(1),v.Q6J("hidden",!v.lcZ(14,17,n.isAdmin$)),v.xp6(3),v.s9C("placeholder",v.lcZ(18,19,"robi.filter")),v.Q6J("disabled",0===(null==n.meta?null:n.meta.total)),v.xp6(3),v.Q6J("ngIf",t.value),v.xp6(2),v.Q6J("dataSource",n.dataSource),v.xp6(29),v.Q6J("matHeaderRowDef",n.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",n.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===(null==n.meta?null:n.meta.total)),v.xp6(1),v.Q6J("ngIf",v.lcZ(54,21,null==n.dataSource?null:n.dataSource.loading$)||n.loader),v.xp6(2),v.Q6J("length",null==n.meta?null:n.meta.total)("pageIndex",n.pageIndex)("pageSizeOptions",n.pageSizeOptions)}},directives:[Ot.A,P.KE,I.Nt,k.O5,wt.BZ,r.YE,wt.w1,wt.fO,wt.Dz,wt.as,wt.nj,i.NW,S.lW,E.Hw,P.qo,P.R9,wt.ge,r.nU,wt.ev,Ut.p6,Ut.VK,Ut.OP,kt.gM,o.rH,wt.XQ,wt.Gk,Y.pW],pipes:[It.X$,k.Ov],styles:[".fab-container[_ngcontent-%COMP%]{position:fixed;bottom:35px;right:35px;z-index:100;display:flex;flex-direction:column-reverse;align-items:center}.fab-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;align-items:center;margin-bottom:5px}.fab-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:17px}.fab-toggler[_ngcontent-%COMP%]{float:right;z-index:100}.card[_ngcontent-%COMP%]{background:none repeat scroll 0 0 #FFFFFF;border-radius:4px;color:#444}.card-container[_ngcontent-%COMP%], .front[_ngcontent-%COMP%], .back[_ngcontent-%COMP%]{width:100%;height:390px;border-radius:4px}.card[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{height:105px;overflow:hidden;border-radius:4px 4px 0 0}.card[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.user[_ngcontent-%COMP%]{border-radius:50%;display:block;height:120px;margin:-55px auto 0;overflow:hidden;width:120px;box-shadow:0 16px 38px -12px rgba(0,0,0,.561),0 4px 25px rgba(0,0,0,.122),0 8px 10px -5px rgba(0,0,0,.2)}.card[_ngcontent-%COMP%] .user[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{background:none repeat scroll 0 0 #FFFFFF;border:4px solid #FFFFFF;width:100%}.card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);box-shadow:none;padding:10px 20px 20px}.card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{min-height:160px}.card[_ngcontent-%COMP%] .back[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{height:215px}.card[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:22px;line-height:28px;margin:10px 0 0;text-align:center;text-transform:capitalize}.card[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:5px 0;font-weight:400;line-height:20px}.card[_ngcontent-%COMP%] .profession[_ngcontent-%COMP%]{color:#999;text-align:center;margin-bottom:20px}.card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{border-top:1px solid #EEEEEE;color:#999;margin:0;padding:10px 0 0;text-align:center}.card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .social-links[_ngcontent-%COMP%]{font-size:18px}.card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin:0 7px}.card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .btn-simple[_ngcontent-%COMP%]{margin-top:-6px}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:15px 20px;height:90px}.card[_ngcontent-%COMP%] .motto[_ngcontent-%COMP%]{border-bottom:1px solid #EEEEEE;color:#999;font-size:14px;font-weight:400;padding-bottom:10px;text-align:center}.card[_ngcontent-%COMP%] .stats-container[_ngcontent-%COMP%]{width:100%;margin-top:20px;display:flex;justify-content:center}.card[_ngcontent-%COMP%] .property-stats[_ngcontent-%COMP%]{display:block;float:left;width:33.333333%;text-align:center}.card[_ngcontent-%COMP%] .property-stats[_ngcontent-%COMP%]:first-child{border-right:1px solid #EEEEEE}.card[_ngcontent-%COMP%] .property-stats[_ngcontent-%COMP%]:last-child{border-left:1px solid #EEEEEE}.card[_ngcontent-%COMP%] .property-stats[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:300;margin-bottom:5px}.card[_ngcontent-%COMP%] .property-stats[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#777}.title[_ngcontent-%COMP%]{color:#506a85;text-align:center;font-weight:300;font-size:44px;margin-bottom:90px;line-height:90%}.title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:17px;color:#999;text-transform:uppercase;margin:0}.space-30[_ngcontent-%COMP%]{height:30px;display:block}.space-50[_ngcontent-%COMP%]{height:50px;display:block}.space-200[_ngcontent-%COMP%]{height:200px;display:block}.white-board[_ngcontent-%COMP%]{background-color:#fff;min-height:200px;padding:60px 60px 20px}.ct-heart[_ngcontent-%COMP%]{color:#f74933}pre.prettyprint[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #999;margin-top:20px;padding:20px;text-align:left}.atv[_ngcontent-%COMP%], .str[_ngcontent-%COMP%]{color:#05ae0e}.tag[_ngcontent-%COMP%], .pln[_ngcontent-%COMP%], .kwd[_ngcontent-%COMP%]{color:#3472f7}.atn[_ngcontent-%COMP%]{color:#2c93ff}.pln[_ngcontent-%COMP%]{color:#333}.com[_ngcontent-%COMP%]{color:#999}.btn-simple[_ngcontent-%COMP%]{opacity:.8;color:#666;background-color:transparent}.btn-simple[_ngcontent-%COMP%]:hover, .btn-simple[_ngcontent-%COMP%]:focus{background-color:transparent;box-shadow:none;opacity:1}.btn-simple[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:16px}.navbar-brand-logo[_ngcontent-%COMP%]{padding:0}.navbar-brand-logo[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border:1px solid #333333;border-radius:50%;float:left;overflow:hidden;width:60px}.navbar[_ngcontent-%COMP%] .navbar-brand-logo[_ngcontent-%COMP%] .brand[_ngcontent-%COMP%]{color:#fff;float:left;font-size:18px;font-weight:400;line-height:20px;margin-left:10px;margin-top:10px;width:60px}.navbar-default[_ngcontent-%COMP%] .navbar-brand-logo[_ngcontent-%COMP%] .brand[_ngcontent-%COMP%]{color:#555}.clickable[_ngcontent-%COMP%]{cursor:pointer}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.front[_ngcontent-%COMP%], .back[_ngcontent-%COMP%]{-webkit-backface-visibility:visible;backface-visibility:visible}.back[_ngcontent-%COMP%]{visibility:hidden;-ms-transition:all .2s cubic-bezier(.92,.01,.83,.67)}.front[_ngcontent-%COMP%]{z-index:4}.card-container[_ngcontent-%COMP%]:not(.manual-flip):hover .back[_ngcontent-%COMP%], .card-container.manual-flip.hover[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{z-index:5;visibility:visible}}"]}),t})();var bn=e(39075);function xn(t,n){1&t&&(v.TgZ(0,"div",3),v.TgZ(1,"mat-icon"),v._uU(2,"error"),v.qZA(),v._uU(3," Not Found "),v.qZA())}function yn(t,n){if(1&t&&v._UZ(0,"iframe",20),2&t){const t=v.oxw(2);v.Q6J("src",t.pdfSrc,v.uOi)}}function vn(t,n){1&t&&(v.TgZ(0,"div",21),v._UZ(1,"mat-progress-bar",22),v.qZA())}function Cn(t,n){if(1&t&&(v.TgZ(0,"span",23),v.TgZ(1,"mat-icon",24),v._uU(2,"phone"),v.qZA(),v._uU(3),v.qZA()),2&t){const t=v.oxw().ngIf;v.xp6(3),v.hij(" ",null==t||null==t.tenant?null:t.tenant.contact_phone," ")}}function An(t,n){if(1&t&&(v.TgZ(0,"div",4),v.TgZ(1,"div",5),v.TgZ(2,"div",6),v.TgZ(3,"div",7),v.TgZ(4,"div",8),v.TgZ(5,"h4",9),v._uU(6),v.qZA(),v._UZ(7,"p",10),v.qZA(),v.TgZ(8,"div",11),v.YNc(9,yn,1,1,"iframe",12),v.YNc(10,vn,2,0,"div",13),v.qZA(),v.qZA(),v.qZA(),v.TgZ(11,"div",14),v.TgZ(12,"div",7),v.TgZ(13,"div",8),v.TgZ(14,"h4",9),v._uU(15,"Summary"),v.qZA(),v.TgZ(16,"p",10),v._uU(17),v.qZA(),v.qZA(),v.TgZ(18,"div",11),v.TgZ(19,"div",5),v.TgZ(20,"div",15),v.TgZ(21,"div",16),v._uU(22," Amount "),v.qZA(),v._uU(23),v.qZA(),v.TgZ(24,"div",15),v.TgZ(25,"div",16),v._uU(26," Payment Date "),v.qZA(),v._uU(27),v.qZA(),v.qZA(),v.TgZ(28,"div",5),v.TgZ(29,"div",15),v.TgZ(30,"div",16),v._uU(31," Payment Method "),v.qZA(),v._uU(32),v.qZA(),v.qZA(),v.TgZ(33,"div",5),v.TgZ(34,"div",15),v.TgZ(35,"div",16),v._uU(36," Property "),v.qZA(),v._uU(37),v.qZA(),v.qZA(),v.TgZ(38,"div",5),v.TgZ(39,"div",15),v.TgZ(40,"div",16),v._uU(41," Lease "),v.qZA(),v._uU(42),v.qZA(),v.TgZ(43,"div",15),v.TgZ(44,"div",16),v._uU(45," Unit "),v.qZA(),v.TgZ(46,"div"),v._uU(47),v.qZA(),v.qZA(),v.qZA(),v.TgZ(48,"div",5),v.TgZ(49,"div",17),v.TgZ(50,"div",16),v._uU(51," Tenant "),v.qZA(),v.TgZ(52,"div",18),v._uU(53),v.YNc(54,Cn,4,1,"span",19),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA()),2&t){const t=n.ngIf,e=v.oxw();v.xp6(6),v.Oqu(t.receipt_number),v.xp6(3),v.Q6J("ngIf",e.pdfSrc),v.xp6(1),v.Q6J("ngIf",e.loader),v.xp6(7),v.hij(" Receipt #: ",null==t?null:t.receipt_number,""),v.xp6(6),v.hij(" ",null==t?null:t.amount," "),v.xp6(4),v.hij(" ",null==t?null:t.payment_date," "),v.xp6(5),v.hij(" ",null==t||null==t.payment_method?null:t.payment_method.payment_method_display_name," "),v.xp6(5),v.lnq(" ",null==t||null==t.property?null:t.property.property_name," (",null==t||null==t.property?null:t.property.property_code,") - ",null==t||null==t.property?null:t.property.location," "),v.xp6(5),v.hij(" ",null==t||null==t.lease?null:t.lease.lease_number," "),v.xp6(5),v.Oqu(null==t||null==t.lease?null:t.lease.unit_names),v.xp6(6),v.lnq(" ",null==t||null==t.tenant?null:t.tenant.first_name," ",null==t||null==t.tenant?null:t.tenant.middle_name," ",null==t||null==t.tenant?null:t.tenant.last_name," "),v.xp6(1),v.Q6J("ngIf",null==t||null==t.tenant?null:t.tenant.contact_phone)}}const qn=o.Bz.forChild([{path:"",component:_n},{path:"create",component:lt},{path:":id",component:(()=>{class t{constructor(t,n,e,o,a,i,r,l,c){this.store=t,this.landlordService=n,this.fb=e,this.dialog=a,this.paymentService=i,this.notification=r,this.router=l,this.route=c,this.loader=!1,this.memberStatuses=[],this.members=[],this.guarantorStatues=[],this.memberId="",this.isLandlord=!1,this.domSanitizer=o,this.store.pipe((0,Ct.Ys)(At.iG)).subscribe(t=>{t&&(this.isLandlord=!0,this.store.pipe((0,Ct.Ys)(At.Zb)).subscribe(t=>this.landlordID=t))})}ngOnInit(){this.paymentID=this.route.snapshot.paramMap.get("id"),this.paymentData$=this.paymentService.selectedPaymentChanges$,this.paymentService.selectedPaymentChanges$.subscribe(t=>{t&&(this.paymentData$=(0,f.of)(t)),t||(this.isLandlord?this.landlordService.getNestedById(this.landlordService.nestedInvoiceUrl(this.landlordID,this.paymentID)).subscribe(t=>{this.paymentData$=(0,f.of)(t),this.paymentService.changeSelectedPayment(t)}):this.paymentService.getById(this.paymentID).subscribe(t=>{this.paymentData$=(0,f.of)(t),this.paymentService.changeSelectedPayment(t)}))}),this.downloadInvoice(this.paymentID)}downloadInvoice(t){this.loader=!0,this.paymentService.downloadReceipt({id:t,pdf:!0}).subscribe(t=>{this.pdfSrc=this.domSanitizer.bypassSecurityTrustResourceUrl(URL.createObjectURL(t)),this.loader=!1},()=>{this.loader=!1,this.notification.showNotification("danger","Error downloading receipt !")})}showFile(t){const n=new Blob([t],{type:"application/pdf"});if(window.navigator&&window.navigator.msSaveOrOpenBlob)return void window.navigator.msSaveOrOpenBlob(n);const e=window.URL.createObjectURL(n),o=document.createElement("a");o.href=e,o.download="statement.pdf",o.click(),setTimeout(function(){window.URL.revokeObjectURL(e)},100)}onOutletActivated(t){}ngAfterViewInit(){}}return t.\u0275fac=function(n){return new(n||t)(v.Y36(Ct.yh),v.Y36(Mt.c),v.Y36(u.qu),v.Y36(bn.H7),v.Y36(a.uw),v.Y36(C.t),v.Y36(T.g),v.Y36(o.F0),v.Y36(o.gz))},t.\u0275cmp=v.Xpm({type:t,selectors:[["robi-view-payment"]],decls:5,vars:4,consts:[[1,"main-content"],["no_data",""],["class","container-fluid",4,"ngIf","ngIfElse"],[1,"not-found"],[1,"container-fluid"],[1,"row"],[1,"col-md-8"],[1,"card"],[1,"card-header","card-header-info"],[1,"card-title"],[1,"card-category"],[1,"card-body"],["width","500","height","600","style","width: 100%","type","application/pdf",3,"src",4,"ngIf"],["class","d-flex justify-content-center spinner-container",4,"ngIf"],[1,"col-md-4"],[1,"col-6"],[1,"card-category","text-gray"],[1,"col-12"],[1,"row","col-12"],["class","ml-5",4,"ngIf"],["width","500","height","600","type","application/pdf",2,"width","100%",3,"src"],[1,"d-flex","justify-content-center","spinner-container"],["color","primary","mode","query","value","50","bufferValue","75"],[1,"ml-5"],["inline","true"]],template:function(t,n){if(1&t&&(v.TgZ(0,"div",0),v.YNc(1,xn,4,0,"ng-template",null,1,v.W1O),v.YNc(3,An,55,16,"div",2),v.ALo(4,"async"),v.qZA()),2&t){const t=v.MAs(2);v.xp6(3),v.Q6J("ngIf",v.lcZ(4,2,n.paymentData$))("ngIfElse",t)}},directives:[k.O5,E.Hw,Y.pW],pipes:[k.Ov],styles:[".fab-container[_ngcontent-%COMP%]{position:fixed;bottom:35px;right:35px;z-index:100;display:flex;flex-direction:column-reverse;align-items:center}.fab-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;align-items:center;margin-bottom:5px}.fab-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:17px}.fab-toggler[_ngcontent-%COMP%]{float:right;z-index:100}.card[_ngcontent-%COMP%]{background:none repeat scroll 0 0 #FFFFFF;border-radius:4px;color:#444}.card-container[_ngcontent-%COMP%], .front[_ngcontent-%COMP%], .back[_ngcontent-%COMP%]{width:100%;height:390px;border-radius:4px}.card[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{height:105px;overflow:hidden;border-radius:4px 4px 0 0}.card[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.user[_ngcontent-%COMP%]{border-radius:50%;display:block;height:120px;margin:-55px auto 0;overflow:hidden;width:120px;box-shadow:0 16px 38px -12px rgba(0,0,0,.561),0 4px 25px rgba(0,0,0,.122),0 8px 10px -5px rgba(0,0,0,.2)}.card[_ngcontent-%COMP%] .user[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{background:none repeat scroll 0 0 #FFFFFF;border:4px solid #FFFFFF;width:100%}.card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);box-shadow:none;padding:10px 20px 20px}.card[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{min-height:160px}.card[_ngcontent-%COMP%] .back[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{height:215px}.card[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:22px;line-height:28px;margin:10px 0 0;text-align:center;text-transform:capitalize}.card[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:5px 0;font-weight:400;line-height:20px}.card[_ngcontent-%COMP%] .profession[_ngcontent-%COMP%]{color:#999;text-align:center;margin-bottom:20px}.card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{border-top:1px solid #EEEEEE;color:#999;margin:0;padding:10px 0 0;text-align:center}.card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .social-links[_ngcontent-%COMP%]{font-size:18px}.card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin:0 7px}.card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .btn-simple[_ngcontent-%COMP%]{margin-top:-6px}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:15px 20px;height:90px}.card[_ngcontent-%COMP%] .motto[_ngcontent-%COMP%]{border-bottom:1px solid #EEEEEE;color:#999;font-size:14px;font-weight:400;padding-bottom:10px;text-align:center}.card[_ngcontent-%COMP%] .stats-container[_ngcontent-%COMP%]{width:100%;margin-top:20px;display:flex;justify-content:center}.card[_ngcontent-%COMP%] .property-stats[_ngcontent-%COMP%]{display:block;float:left;width:33.333333%;text-align:center}.card[_ngcontent-%COMP%] .property-stats[_ngcontent-%COMP%]:first-child{border-right:1px solid #EEEEEE}.card[_ngcontent-%COMP%] .property-stats[_ngcontent-%COMP%]:last-child{border-left:1px solid #EEEEEE}.card[_ngcontent-%COMP%] .property-stats[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:300;margin-bottom:5px}.card[_ngcontent-%COMP%] .property-stats[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#777}.title[_ngcontent-%COMP%]{color:#506a85;text-align:center;font-weight:300;font-size:44px;margin-bottom:90px;line-height:90%}.title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:17px;color:#999;text-transform:uppercase;margin:0}.space-30[_ngcontent-%COMP%]{height:30px;display:block}.space-50[_ngcontent-%COMP%]{height:50px;display:block}.space-200[_ngcontent-%COMP%]{height:200px;display:block}.white-board[_ngcontent-%COMP%]{background-color:#fff;min-height:200px;padding:60px 60px 20px}.ct-heart[_ngcontent-%COMP%]{color:#f74933}pre.prettyprint[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #999;margin-top:20px;padding:20px;text-align:left}.atv[_ngcontent-%COMP%], .str[_ngcontent-%COMP%]{color:#05ae0e}.tag[_ngcontent-%COMP%], .pln[_ngcontent-%COMP%], .kwd[_ngcontent-%COMP%]{color:#3472f7}.atn[_ngcontent-%COMP%]{color:#2c93ff}.pln[_ngcontent-%COMP%]{color:#333}.com[_ngcontent-%COMP%]{color:#999}.btn-simple[_ngcontent-%COMP%]{opacity:.8;color:#666;background-color:transparent}.btn-simple[_ngcontent-%COMP%]:hover, .btn-simple[_ngcontent-%COMP%]:focus{background-color:transparent;box-shadow:none;opacity:1}.btn-simple[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:16px}.navbar-brand-logo[_ngcontent-%COMP%]{padding:0}.navbar-brand-logo[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border:1px solid #333333;border-radius:50%;float:left;overflow:hidden;width:60px}.navbar[_ngcontent-%COMP%] .navbar-brand-logo[_ngcontent-%COMP%] .brand[_ngcontent-%COMP%]{color:#fff;float:left;font-size:18px;font-weight:400;line-height:20px;margin-left:10px;margin-top:10px;width:60px}.navbar-default[_ngcontent-%COMP%] .navbar-brand-logo[_ngcontent-%COMP%] .brand[_ngcontent-%COMP%]{color:#555}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.front[_ngcontent-%COMP%], .back[_ngcontent-%COMP%]{-webkit-backface-visibility:visible;backface-visibility:visible}.back[_ngcontent-%COMP%]{visibility:hidden;-ms-transition:all .2s cubic-bezier(.92,.01,.83,.67)}.front[_ngcontent-%COMP%]{z-index:4}.card-container[_ngcontent-%COMP%]:not(.manual-flip):hover .back[_ngcontent-%COMP%], .card-container.manual-flip.hover[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{z-index:5;visibility:visible}}"]}),t})()}]);var Tn=e(83893);let Mn=(()=>{class t{constructor(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=v.oAB({type:t}),t.\u0275inj=v.cJS({imports:[[Tn.m,qn,U.Co]]}),t})()}}]);