403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/armaladmin/public_html/pm/property/257-es5.45a6561b393d9544b23e.js
!function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function e(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}function n(t,e,i){return(n="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,i||t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return l(this,n)}}function l(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}(self.webpackChunkmaterial_dashboard_angular=self.webpackChunkmaterial_dashboard_angular||[]).push([[257],{81257:function(t,r,l){l.r(r),l.d(r,{UnitModule:function(){return St}});var s,u=l(39895),d=l(22238),m=l(99692),f=l(11494),p=l(22759),g=l(66682),h=l(54395),_=l(87519),v=l(68307),b=l(28292),y=function(t){o(n,t);var e=a(n);function n(t){return i(this,n),e.call(this,t)}return n}(l(1581).y),Z=l(37716),x=l(3679),A=l(26215),C=l(48700),O=l(57404),T=l(65),q=l(91841),P=((s=function(t){o(l,t);var r=a(l);function l(t){var e;return i(this,l),(e=r.call(this,t,"units")).selectedUnitSource=new A.X(null),e.selectedUnitChanges$=e.selectedUnitSource.asObservable(),e.localHttpClient=t,e}return e(l,[{key:"changeSelectedUnit",value:function(t){this.selectedUnitSource.next(t)}},{key:"search",value:function(t){var e="".concat(n(c(l.prototype),"getResourceUrl",this).call(this),"/search");return this.localHttpClient.post(e,{filter:t})}}]),l}(T.b)).\u0275fac=function(t){return new(t||s)(Z.LFG(q.eN))},s.\u0275prov=Z.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s),U=l(75973),M=l(38583),w=l(42542),k=l(76627),E=l(98295),I=l(49983),N=l(67441),S=l(51095),D=l(72458),Y=l(12178),F=["stepper"];function Q(t,e){1&t&&(Z.ynx(0),Z.TgZ(1,"mat-icon",28),Z._uU(2,"error_outline"),Z.qZA(),Z.BQk())}function J(t,e){if(1&t&&(Z.TgZ(0,"h5",27),Z._uU(1,"New Property Unit "),Z.YNc(2,Q,3,0,"ng-container",24),Z.ALo(3,"async"),Z.qZA()),2&t){var n=Z.oxw();Z.xp6(2),Z.Q6J("ngIf",Z.lcZ(3,1,n.formError$))}}function R(t,e){1&t&&(Z.ynx(0),Z.TgZ(1,"mat-icon",28),Z._uU(2,"error_outline"),Z.qZA(),Z.BQk())}function $(t,e){if(1&t&&(Z.TgZ(0,"div",27),Z._uU(1,"Edit Property Unit "),Z.YNc(2,R,3,0,"ng-container",24),Z.ALo(3,"async"),Z.qZA()),2&t){var n=Z.oxw();Z.xp6(2),Z.Q6J("ngIf",Z.lcZ(3,1,n.formError$))}}function j(t,e){if(1&t&&(Z.TgZ(0,"mat-error",29),Z._uU(1),Z.qZA()),2&t){var n=Z.oxw();Z.xp6(1),Z.Oqu(n.formErrors.unit_name)}}function V(t,e){if(1&t&&(Z.TgZ(0,"mat-error",29),Z._uU(1),Z.qZA()),2&t){var n=Z.oxw();Z.xp6(1),Z.Oqu(n.formErrors.unit_floor)}}function L(t,e){if(1&t&&(Z.TgZ(0,"mat-error",29),Z._uU(1),Z.qZA()),2&t){var n=Z.oxw();Z.xp6(1),Z.Oqu(n.formErrors.rent_amount)}}function z(t,e){if(1&t&&(Z.TgZ(0,"mat-option",30),Z._uU(1),Z.qZA()),2&t){var n=e.$implicit;Z.Q6J("value",n.id),Z.xp6(1),Z.hij(" ",n.unit_type_display_name," ")}}function B(t,e){if(1&t&&(Z.TgZ(0,"mat-error",29),Z._uU(1),Z.qZA()),2&t){var n=Z.oxw();Z.xp6(1),Z.Oqu(n.formErrors.unit_type_id)}}function H(t,e){if(1&t&&(Z.TgZ(0,"mat-error",29),Z._uU(1),Z.qZA()),2&t){var n=Z.oxw(2);Z.xp6(1),Z.Oqu(n.formErrors.bed_rooms)}}function G(t,e){if(1&t&&(Z.TgZ(0,"mat-error",29),Z._uU(1),Z.qZA()),2&t){var n=Z.oxw(2);Z.xp6(1),Z.Oqu(n.formErrors.bath_rooms)}}function W(t,e){if(1&t&&(Z.TgZ(0,"div",9),Z.TgZ(1,"div",19),Z.TgZ(2,"mat-form-field",11),Z.TgZ(3,"mat-label"),Z._uU(4,"Bed Rooms"),Z.qZA(),Z._UZ(5,"input",31),Z.YNc(6,H,2,1,"mat-error",13),Z.qZA(),Z.qZA(),Z.TgZ(7,"div",19),Z.TgZ(8,"mat-form-field",11),Z.TgZ(9,"mat-label"),Z._uU(10,"Bath Rooms"),Z.qZA(),Z._UZ(11,"input",32),Z.YNc(12,G,2,1,"mat-error",13),Z.qZA(),Z.qZA(),Z.qZA()),2&t){var n=Z.oxw();Z.xp6(6),Z.Q6J("ngIf",null==n.formErrors?null:n.formErrors.bed_rooms),Z.xp6(6),Z.Q6J("ngIf",null==n.formErrors?null:n.formErrors.bath_rooms)}}function X(t,e){if(1&t&&(Z.TgZ(0,"mat-error",29),Z._uU(1),Z.qZA()),2&t){var n=Z.oxw();Z.xp6(1),Z.Oqu(n.formErrors.total_rooms)}}function K(t,e){if(1&t&&(Z.TgZ(0,"mat-error",29),Z._uU(1),Z.qZA()),2&t){var n=Z.oxw();Z.xp6(1),Z.Oqu(n.formErrors.square_foot)}}function tt(t,e){1&t&&(Z.TgZ(0,"div",33),Z._UZ(1,"mat-progress-bar",34),Z.qZA())}function et(t,e){if(1&t){var n=Z.EpF();Z.TgZ(0,"button",36),Z.NdJ("click",function(){return Z.CHM(n),Z.oxw(2).deleting()}),Z._uU(1,"Delete "),Z.qZA()}if(2&t){var i=Z.oxw(2);Z.Q6J("disabled",i.loader)("mat-dialog-close",!0)}}function nt(t,e){if(1&t&&(Z.ynx(0),Z.YNc(1,et,2,2,"button",35),Z.BQk()),2&t){var n=Z.oxw();Z.xp6(1),Z.Q6J("ngIf",!n.isAdd)}}var it=function(){var t=function(){function t(e,n,o,r,a,l){var c;i(this,t),this.fb=n,this.notification=o,this.unitService=r,this.authenticationService=a,this.dialogRef=l,this.errorInForm=new A.X(!1),this.formError$=this.errorInForm.asObservable(),this.loader=!1,this.panelOpenState=!1,this.disableAnimation=!0,this.amenities=Array(),this.optionsAmenity=Array(),this.optionsUtility=Array(),this.toggle=new Z.vpe,this.isAdmin$=this.authenticationService.isAdmin(),this.unitValue=e.unit,this.utilities$=e.utilities,this.amenities$=e.amenities$,this.unitTypes$=e.unitTypes$,this.amenities=e.amenitiesData,this.optionsAmenity=e.amenityOptions,this.optionsUtility=e.utilityOptions,this.isAdd=e.isAdd,this.unitID=null===(c=null==e?void 0:e.unit)||void 0===c?void 0:c.id,this.propertyID=null==e?void 0:e.propertyID,this.billingFrequencies=C.G}return e(t,[{key:"ngOnInit",value:function(){var t,e,n,i,o,r,a,l,c,s,u,d,m,f=this;this.selectedValuesAmenity=(null===(t=this.unitValue)||void 0===t?void 0:t.selected_amenities)?null===(e=this.unitValue)||void 0===e?void 0:e.selected_amenities:[],this.selectedValuesUtility=(null===(n=this.unitValue)||void 0===n?void 0:n.selected_utilities)?null===(i=this.unitValue)||void 0===i?void 0:i.selected_utilities:[],this.selectedUnitType=this.unitValue?null===(o=this.unitValue)||void 0===o?void 0:o.unit_mode:"residential",this.form=this.fb.group({unit_mode:[this.selectedUnitType],unit_type_id:[null===(r=this.unitValue)||void 0===r?void 0:r.unit_type_id,[x.kI.required,x.kI.minLength(1)]],unit_name:[null===(a=this.unitValue)||void 0===a?void 0:a.unit_name,[x.kI.required,x.kI.minLength(1)]],unit_floor:[null===(l=this.unitValue)||void 0===l?void 0:l.unit_floor],rent_amount:[null===(c=this.unitValue)||void 0===c?void 0:c.rent_amount],bed_rooms:[null===(s=this.unitValue)||void 0===s?void 0:s.bed_rooms],bath_rooms:[null===(u=this.unitValue)||void 0===u?void 0:u.bath_rooms],square_foot:[null===(d=this.unitValue)||void 0===d?void 0:d.square_foot],total_rooms:[null===(m=this.unitValue)||void 0===m?void 0:m.total_rooms],utilityFields:new x.Oe([]),amenityFields:new x.Oe([])}),this.form.valueChanges.subscribe(function(t){for(var e=new Array,n=0;n<f.itemsAmenities.length;n++)f.itemsAmenities.get(n.toString()).value&&e.push(f.optionsAmenity[n].value);f.toggle.emit(e)}),this.form.valueChanges.subscribe(function(t){for(var e=new Array,n=0;n<f.itemsUtilities.length;n++)f.itemsUtilities.get(n.toString()).value&&e.push(f.optionsUtility[n].value);f.toggle.emit(e)}),0===this.itemsAmenities.length&&this.optionsAmenity.forEach(function(t){f.itemsAmenities.push(new x.NI(!1))}),0===this.itemsUtilities.length&&this.optionsUtility.forEach(function(t){f.itemsUtilities.push(new x.NI(!1))}),this.selectedValuesAmenity.forEach(function(t){var e=f.optionsAmenity.findIndex(function(e){return e.value===t});e>=0&&f.itemsAmenities.get(e.toString()).setValue(!0)}),this.selectedValuesUtility.forEach(function(t){var e=f.optionsUtility.findIndex(function(e){return e.value===t});e>=0&&f.itemsUtilities.get(e.toString()).setValue(!0)})}},{key:"selectedAmenities",value:function(){var t=this;return this.form.value.amenityFields.map(function(e,n){return e?t.optionsAmenity[n].value:null}).filter(function(t){return null!==t})}},{key:"itemsAmenities",get:function(){return this.form.get("amenityFields")}},{key:"selectedUtilities",value:function(){var t=this;return this.form.value.utilityFields.map(function(e,n){return e?t.optionsUtility[n].value:null}).filter(function(t){return null!==t})}},{key:"itemsUtilities",get:function(){return this.form.get("utilityFields")}},{key:"ngAfterViewInit",value:function(){var t=this;setTimeout(function(){return t.disableAnimation=!1})}},{key:"onToggleChange",value:function(t){this.selectedUnitType=t}},{key:"closeDialog",value:function(t){console.log("xxxxDATxxxx",t),t.selected_amenities=this.selectedAmenities(),t.selected_utilities=this.selectedUtilities(),console.log("Data with selected amenities",t),this.dialogRef.close({event:"close",data:t})}},{key:"close",value:function(){this.dialogRef.close()}},{key:"onSaveComplete",value:function(){this.loader=!1,this.form.reset(),this.dialogRef.close(this.form.value)}},{key:"create",value:function(){var t=this;this.errorInForm.next(!1);var e=Object.assign({},this.unit,this.form.value);e.property_id=this.propertyID,console.log("unit create",e),this.loader=!0,this.unitService.create(e).subscribe(function(e){t.onSaveComplete(),t.notification.showNotification("success","Success !! Unit created.")},function(e){var n,i;if(t.errorInForm.next(!0),t.loader=!1,0!==e.member){if(t.formErrors=e,t.formErrors)for(var o in t.formErrors)t.form&&(null===(n=t.form.controls[o])||void 0===n||n.markAsTouched(),null===(i=t.form.controls[o])||void 0===i||i.setErrors({incorrect:!0}))}else t.notification.showNotification("danger","Connection Error !! Nothing created. Check your connection and retry.")})}},{key:"update",value:function(){var t=this,e=Object.assign({},this.unit,this.form.value);e.id=this.unitID,this.loader=!0,this.errorInForm.next(!1),this.unitService.update(e).subscribe(function(e){t.loader=!1,t.dialogRef.close(t.form.value),t.notification.showNotification("success","Success !! Unit has been updated.")},function(e){var n,i;if(t.loader=!1,t.errorInForm.next(!0),0!==e.utility&&(t.formErrors=null==e?void 0:e.error,t.formErrors))for(var o in t.formErrors)t.form&&(null===(n=t.form.controls[o])||void 0===n||n.markAsTouched(),null===(i=t.form.controls[o])||void 0===i||i.setErrors({incorrect:!0}))})}},{key:"createOrUpdate",value:function(){this.isAdd?this.create():this.update()}},{key:"deleting",value:function(){this.dialogRef.close("deleting")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Z.Y36(d.WI),Z.Y36(x.qu),Z.Y36(O.g),Z.Y36(P),Z.Y36(U.$),Z.Y36(d.so))},t.\u0275cmp=Z.Xpm({type:t,selectors:[["robi-add-unit"]],viewQuery:function(t,e){var n;(1&t&&Z.Gf(F,7),2&t)&&(Z.iGM(n=Z.CRH())&&(e.stepper=n.first))},outputs:{toggle:"toggle"},decls:70,vars:20,consts:[["mat-dialog-title","",4,"ngIf"],[3,"formGroup"],[1,"row",2,"margin-bottom","20px"],[1,"col-md-12"],["formControlName","unit_mode",3,"change"],["group","matButtonToggleGroup"],["value","residential","aria-label","Text align left"],["value","commercial","aria-label","Text align right"],[1,"mat-dialog-data"],[1,"row"],[1,"col-sm-12"],["color","primary","appearance","outline",1,"full-width"],["matInput","","formControlName","unit_name","placeholder","Unit Name"],["align","start","class","form__error",4,"ngIf"],["matInput","","type","number","formControlName","unit_floor","placeholder","Unit Floor"],["matInput","","type","number","min","0","formControlName","rent_amount","placeholder","Rent Amount"],["placeholder","Unit Type *","formControlName","unit_type_id"],[3,"value",4,"ngFor","ngForOf"],["class","row",4,"ngIf"],[1,"col-sm-6"],["matInput","","type","number","min","0","formControlName","total_rooms","placeholder","Total Rooms"],["matInput","","type","number","min","0","formControlName","square_foot","placeholder","Square Foot"],["class","d-flex justify-content-center spinner-container",4,"ngIf"],["align","center"],[4,"ngIf"],["mat-button","","color","primary",1,"mr-2",3,"disabled","mat-dialog-close","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-dialog-title",""],["color","warn"],["align","start",1,"form__error"],[3,"value"],["matInput","","type","number","min","0","formControlName","bed_rooms","placeholder","Bed Rooms"],["matInput","","type","number","min","0","formControlName","bath_rooms","placeholder","Bath Rooms"],[1,"d-flex","justify-content-center","spinner-container"],["color","primary","mode","query","value","50","bufferValue","75"],["class","float-left mr-2","mat-button","","color","warn",3,"disabled","mat-dialog-close","click",4,"ngIf"],["mat-button","","color","warn",1,"float-left","mr-2",3,"disabled","mat-dialog-close","click"]],template:function(t,e){if(1&t){var n=Z.EpF();Z.YNc(0,J,4,3,"h5",0),Z.YNc(1,$,4,3,"div",0),Z.TgZ(2,"form",1),Z.TgZ(3,"div",2),Z.TgZ(4,"div",3),Z.TgZ(5,"mat-button-toggle-group",4,5),Z.NdJ("change",function(){Z.CHM(n);var t=Z.MAs(6);return e.onToggleChange(t.value)}),Z.TgZ(7,"mat-button-toggle",6),Z.TgZ(8,"mat-icon"),Z._uU(9,"home"),Z.qZA(),Z.TgZ(10,"span"),Z._uU(11,"Residential"),Z.qZA(),Z.qZA(),Z.TgZ(12,"mat-button-toggle",7),Z.TgZ(13,"mat-icon"),Z._uU(14,"business"),Z.qZA(),Z.TgZ(15,"span"),Z._uU(16,"Commercial"),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(17,"mat-dialog-content",8),Z.TgZ(18,"div",9),Z.TgZ(19,"div",10),Z.TgZ(20,"mat-form-field",11),Z.TgZ(21,"mat-label"),Z._uU(22,"Unit Name *"),Z.qZA(),Z._UZ(23,"input",12),Z.YNc(24,j,2,1,"mat-error",13),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(25,"div",9),Z.TgZ(26,"div",10),Z.TgZ(27,"mat-form-field",11),Z.TgZ(28,"mat-label"),Z._uU(29," Unit Floor"),Z.qZA(),Z._UZ(30,"input",14),Z.YNc(31,V,2,1,"mat-error",13),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(32,"div",9),Z.TgZ(33,"div",10),Z.TgZ(34,"mat-form-field",11),Z.TgZ(35,"mat-label"),Z._uU(36,"Rent Amount"),Z.qZA(),Z._UZ(37,"input",15),Z.YNc(38,L,2,1,"mat-error",13),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(39,"div",9),Z.TgZ(40,"div",10),Z.TgZ(41,"mat-form-field",11),Z.TgZ(42,"mat-label"),Z._uU(43,"Unit Type *"),Z.qZA(),Z.TgZ(44,"mat-select",16),Z.YNc(45,z,2,2,"mat-option",17),Z.ALo(46,"async"),Z.qZA(),Z.YNc(47,B,2,1,"mat-error",13),Z.qZA(),Z.qZA(),Z.qZA(),Z.YNc(48,W,13,2,"div",18),Z.TgZ(49,"div",9),Z.TgZ(50,"div",19),Z.TgZ(51,"mat-form-field",11),Z.TgZ(52,"mat-label"),Z._uU(53,"Total Rooms"),Z.qZA(),Z._UZ(54,"input",20),Z.YNc(55,X,2,1,"mat-error",13),Z.qZA(),Z.qZA(),Z.TgZ(56,"div",19),Z.TgZ(57,"mat-form-field",11),Z.TgZ(58,"mat-label"),Z._uU(59,"Square Foot"),Z.qZA(),Z._UZ(60,"input",21),Z.YNc(61,K,2,1,"mat-error",13),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.YNc(62,tt,2,0,"div",22),Z.TgZ(63,"mat-dialog-actions",23),Z.YNc(64,nt,2,1,"ng-container",24),Z.ALo(65,"async"),Z.TgZ(66,"button",25),Z.NdJ("click",function(){return e.close()}),Z._uU(67,"Cancel"),Z.qZA(),Z.TgZ(68,"button",26),Z.NdJ("click",function(){return e.createOrUpdate()}),Z._uU(69," Save Unit "),Z.qZA(),Z.qZA(),Z.qZA()}2&t&&(Z.Q6J("ngIf",e.isAdd),Z.xp6(1),Z.Q6J("ngIf",!e.isAdd),Z.xp6(1),Z.Q6J("formGroup",e.form),Z.xp6(22),Z.Q6J("ngIf",null==e.formErrors?null:e.formErrors.unit_name),Z.xp6(7),Z.Q6J("ngIf",null==e.formErrors?null:e.formErrors.unit_floor),Z.xp6(7),Z.Q6J("ngIf",null==e.formErrors?null:e.formErrors.rent_amount),Z.xp6(7),Z.Q6J("ngForOf",Z.lcZ(46,16,e.unitTypes$)),Z.xp6(2),Z.Q6J("ngIf",null==e.formErrors?null:e.formErrors.unit_type_id),Z.xp6(1),Z.Q6J("ngIf","residential"==e.selectedUnitType),Z.xp6(7),Z.Q6J("ngIf",null==e.formErrors?null:e.formErrors.total_rooms),Z.xp6(6),Z.Q6J("ngIf",null==e.formErrors?null:e.formErrors.square_foot),Z.xp6(1),Z.Q6J("ngIf",e.loader),Z.xp6(2),Z.Q6J("ngIf",Z.lcZ(65,18,e.isAdmin$)),Z.xp6(2),Z.Q6J("disabled",e.loader)("mat-dialog-close",!0),Z.xp6(2),Z.Q6J("disabled",!e.form.valid||e.loader))},directives:[M.O5,x._Y,x.JL,x.sg,w.A9,x.JJ,x.u,w.Yi,k.Hw,d.xY,E.KE,E.hX,I.Nt,x.Fj,x.wV,x.qQ,N.gD,M.sg,d.H8,S.lW,d.ZT,d.uh,E.TO,D.ey,Y.pW],pipes:[M.Ov],styles:[".dialog-row[_ngcontent-%COMP%]{max-width:400px!important}"]}),t}(),ot=l(66058),rt=l(90519),at=l(63385),lt=l(99170),ct=l(88211),st=l(28508),ut=l(32789),dt=l(11436),mt=l(29790),ft=["search"];function pt(t,e){if(1&t){var n=Z.EpF();Z.TgZ(0,"button",38),Z.NdJ("click",function(){return Z.CHM(n),Z.oxw().clearSearch()}),Z.TgZ(1,"mat-icon"),Z._uU(2,"close"),Z.qZA(),Z.qZA()}}function gt(t,e){1&t&&(Z.TgZ(0,"mat-header-cell",39),Z._uU(1," Unit Name "),Z.qZA())}function ht(t,e){if(1&t&&(Z.TgZ(0,"mat-cell"),Z._uU(1),Z.qZA()),2&t){var n=e.$implicit;Z.xp6(1),Z.hij(" ",n.unit_name," ")}}function _t(t,e){1&t&&(Z.TgZ(0,"mat-header-cell",39),Z._uU(1," Unit Mode "),Z.qZA())}function vt(t,e){if(1&t&&(Z.TgZ(0,"mat-cell"),Z._uU(1),Z.qZA()),2&t){var n=e.$implicit;Z.xp6(1),Z.hij(" ",n.unit_mode," ")}}function bt(t,e){1&t&&(Z.TgZ(0,"mat-header-cell",39),Z._uU(1," Unit Type "),Z.qZA())}function yt(t,e){if(1&t&&(Z.TgZ(0,"mat-cell"),Z._uU(1),Z.qZA()),2&t){var n=e.$implicit;Z.xp6(1),Z.hij(" ",null==n.unit_type?null:n.unit_type.unit_type_display_name," ")}}function Zt(t,e){1&t&&(Z.TgZ(0,"mat-header-cell",39),Z._uU(1," Total Rooms "),Z.qZA())}function xt(t,e){if(1&t&&(Z.TgZ(0,"mat-cell"),Z._uU(1),Z.qZA()),2&t){var n=e.$implicit;Z.xp6(1),Z.hij(" ",n.total_rooms," ")}}function At(t,e){1&t&&(Z.TgZ(0,"mat-header-cell",39),Z._uU(1," Bed Rooms "),Z.qZA())}function Ct(t,e){if(1&t&&(Z.TgZ(0,"mat-cell"),Z._uU(1),Z.qZA()),2&t){var n=e.$implicit;Z.xp6(1),Z.hij(" ",n.bed_rooms," ")}}function Ot(t,e){1&t&&(Z.TgZ(0,"mat-header-cell"),Z._uU(1,"Actions"),Z.qZA())}function Tt(t,e){if(1&t){var n=Z.EpF();Z.TgZ(0,"mat-cell",40),Z.TgZ(1,"button",41),Z.NdJ("click",function(){var t=Z.CHM(n).$implicit;return Z.oxw().addDialog(!1,t)}),Z.TgZ(2,"i",42),Z._uU(3,"edit"),Z.qZA(),Z.qZA(),Z.qZA()}2&t&&(Z.xp6(1),Z.Q6J("matTooltipPosition","above"))}function qt(t,e){1&t&&Z._UZ(0,"mat-header-row")}function Pt(t,e){1&t&&Z._UZ(0,"mat-row")}function Ut(t,e){1&t&&(Z.TgZ(0,"span"),Z._uU(1,"No Data"),Z.qZA())}function Mt(t,e){1&t&&(Z.TgZ(0,"div",43),Z._UZ(1,"mat-progress-bar",44),Z.qZA())}var wt=u.Bz.forChild([{path:"",component:function(){var t=function(){function t(e,n,o,r,a,l,c,s,u){i(this,t),this.landlordService=e,this.unitsService=n,this.propertyService=o,this.notification=r,this.route=a,this.unitTypeService=l,this.amenityService=c,this.utilityService=s,this.dialog=u,this.displayedColumns=["unit_name","unit_mode","unit_type_id","total_rooms","bed_rooms","actions"],this.loader=!1,this.isLandlord=!1,this.pageIndex=0,this.pageSizeOptions=[5,10,25,50,100],this.allAmenitiesOptions=new Array,this.allUtilitiesOptions=new Array,this.isLandlord=this.landlordService.isLandlord(),this.landlordID=this.landlordService.getLoggedInLandlordID(),this.propertyID=this.route.snapshot.paramMap.get("id"),this.property$=this.propertyService.selectedPropertyChanges$}return e(t,[{key:"ngOnInit",value:function(){var t=this;this.dataSource=new y(this.unitsService),this.dataSource.meta$.subscribe(function(e){return t.meta=e}),this.propertyID?this.dataSource.loadNested(this.propertyService.nestedUnitsUrl(this.propertyID),"",0,0):this.dataSource.load("",0,0,"created_at","desc","property_id",this.propertyID),this.unitTypes$=this.unitTypeService.list(["unit_type_name ","unit_type_display_name "]),this.amenities$=this.amenityService.list(["amenity_name ","amenity_display_name "]),this.amenities$.subscribe(function(e){t.allAmenitiesOptions=e.map(function(t){return new ot.o(t.id,t.amenity_display_name)})}),this.utilities$=this.utilityService.list(["utility_name ","utility_display_name "]),this.utilities$.subscribe(function(e){t.allUtilitiesOptions=e.map(function(t){return new ot.o(t.id,t.utility_display_name)})})}},{key:"ngAfterViewInit",value:function(){var t=this;(0,p.R)(this.search.nativeElement,"keyup").pipe((0,h.b)(1e3),(0,_.x)(),(0,v.b)(function(){t.paginator.pageIndex=0,t.loadData()})).subscribe(),this.paginator.page.pipe((0,v.b)(function(){return t.loadData()})).subscribe(),this.sort.sortChange.subscribe(function(){return t.paginator.pageIndex=0}),(0,g.T)(this.sort.sortChange,this.paginator.page).pipe((0,v.b)(function(){return t.loadData()})).subscribe()}},{key:"clearSearch",value:function(){this.search.nativeElement.value="",this.loadData()}},{key:"addDialog",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1?arguments[1]:void 0,i=new d.vA;i.disableClose=!0,i.autoFocus=!0,i.data={unit:n,isAdd:e,propertyID:this.propertyID,utilities:this.utilities$,amenities$:this.amenities$,unitTypes$:this.unitTypes$,amenitiesData:this.amenities,amenityOptions:this.allAmenitiesOptions,utilityOptions:this.allUtilitiesOptions},this.dialog.open(it,i).afterClosed().subscribe(function(e){e&&("deleting"===e?t.openConfirmationDialog(n):t.loadData())})}},{key:"loadData",value:function(){this.dataSource.loadNested(this.propertyService.nestedUnitsUrl(this.propertyID),this.search.nativeElement.value,this.paginator.pageIndex+1,this.paginator.pageSize,this.sort.active,this.sort.direction)}},{key:"openConfirmationDialog",value:function(t){var e=this;this.dialogRef=this.dialog.open(b.z,{disableClose:!0}),this.dialogRef.afterClosed().subscribe(function(n){n&&e.delete(t),e.dialogRef=null})}},{key:"delete",value:function(t){var e=this;this.loader=!0,this.unitsService.delete(t).subscribe(function(t){e.loader=!1,e.loadData(),e.notification.showNotification("success","Success !! Unit has been deleted.")},function(t){e.loader=!1,e.notification.showNotification("danger",t.error.message?t.error.message:"Delete Error !! ")})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Z.Y36(rt.c),Z.Y36(P),Z.Y36(at.b),Z.Y36(O.g),Z.Y36(u.gz),Z.Y36(lt.L),Z.Y36(ct.p),Z.Y36(st.t),Z.Y36(d.uw))},t.\u0275cmp=Z.Xpm({type:t,selectors:[["robi-units"]],viewQuery:function(t,e){var n;(1&t&&(Z.Gf(ft,5),Z.Gf(m.NW,7),Z.Gf(f.YE,7)),2&t)&&(Z.iGM(n=Z.CRH())&&(e.search=n.first),Z.iGM(n=Z.CRH())&&(e.paginator=n.first),Z.iGM(n=Z.CRH())&&(e.sort=n.first))},decls:60,vars:29,consts:[[1,"main-content"],[1,"container-fluid"],[1,"row"],[1,"fab-container"],["mat-fab","",1,"fab-toggler",3,"click"],[1,"col-md-12"],[1,"card"],[1,"card-header","card-header-info"],[1,"card-title"],[1,"card-category"],[1,"card-body"],[1,"row","search-form-section"],[1,"col-5"],["mat-button","","matPrefix","","mat-stroked-button","","aria-label","add new",3,"disabled","click"],[1,"col-7"],[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","unit_name","matSortDirection","desc","matSortDisableClear","",3,"dataSource"],["table",""],["matColumnDef","unit_name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","unit_mode"],["matColumnDef","unit_type_id"],["matColumnDef","total_rooms"],["matColumnDef","bed_rooms"],["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",""],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["mat-sort-header",""],[1,"button-row"],["mat-raised-button","","type","button","matTooltip","Edit Property",1,"btn","btn-link","btn-sm","btn-just-icon",3,"matTooltipPosition","click"],[1,"material-icons"],[1,"d-flex","justify-content-center","spinner-container"],["color","green","mode","query","value","50","bufferValue","75"]],template:function(t,e){if(1&t&&(Z.TgZ(0,"div",0),Z.TgZ(1,"div",1),Z.TgZ(2,"div",2),Z.TgZ(3,"div",3),Z.TgZ(4,"button",4),Z.NdJ("click",function(){return e.addDialog()}),Z.TgZ(5,"mat-icon"),Z._uU(6,"add"),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(7,"div",5),Z.TgZ(8,"div",6),Z.TgZ(9,"div",7),Z.TgZ(10,"h4",8),Z._uU(11,"Property Units"),Z.qZA(),Z.TgZ(12,"p",9),Z._uU(13),Z.ALo(14,"async"),Z.ALo(15,"async"),Z.ALo(16,"async"),Z.qZA(),Z.qZA(),Z.TgZ(17,"div",10),Z.TgZ(18,"div",11),Z.TgZ(19,"div",12),Z.TgZ(20,"button",13),Z.NdJ("click",function(){return e.addDialog()}),Z.ALo(21,"async"),Z.TgZ(22,"mat-icon"),Z._uU(23,"add"),Z.qZA(),Z._uU(24,"Add Unit "),Z.qZA(),Z.qZA(),Z.TgZ(25,"div",14),Z.TgZ(26,"mat-form-field",15),Z._UZ(27,"input",16,17),Z.ALo(29,"translate"),Z.YNc(30,pt,3,0,"button",18),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(31,"div",19),Z.TgZ(32,"mat-table",20,21),Z.ynx(34,22),Z.YNc(35,gt,2,0,"mat-header-cell",23),Z.YNc(36,ht,2,1,"mat-cell",24),Z.BQk(),Z.ynx(37,25),Z.YNc(38,_t,2,0,"mat-header-cell",23),Z.YNc(39,vt,2,1,"mat-cell",24),Z.BQk(),Z.ynx(40,26),Z.YNc(41,bt,2,0,"mat-header-cell",23),Z.YNc(42,yt,2,1,"mat-cell",24),Z.BQk(),Z.ynx(43,27),Z.YNc(44,Zt,2,0,"mat-header-cell",23),Z.YNc(45,xt,2,1,"mat-cell",24),Z.BQk(),Z.ynx(46,28),Z.YNc(47,At,2,0,"mat-header-cell",23),Z.YNc(48,Ct,2,1,"mat-cell",24),Z.BQk(),Z.ynx(49,29),Z.YNc(50,Ot,2,0,"mat-header-cell",30),Z.YNc(51,Tt,4,1,"mat-cell",31),Z.BQk(),Z.YNc(52,qt,1,0,"mat-header-row",32),Z.YNc(53,Pt,1,0,"mat-row",33),Z.qZA(),Z.YNc(54,Ut,2,0,"span",34),Z.ALo(55,"async"),Z.YNc(56,Mt,2,0,"div",35),Z.ALo(57,"async"),Z._UZ(58,"mat-paginator",36,37),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA()),2&t){var n,i=Z.MAs(28);Z.xp6(13),Z.lnq("",null==(n=Z.lcZ(14,15,e.property$))?null:n.property_name," (",null==(n=Z.lcZ(15,17,e.property$))?null:n.property_code,") - ",null==(n=Z.lcZ(16,19,e.property$))?null:n.location,""),Z.xp6(7),Z.Q6J("disabled",Z.lcZ(21,21,null==e.dataSource?null:e.dataSource.loading$)),Z.xp6(7),Z.s9C("placeholder",Z.lcZ(29,23,"robi.filter")),Z.Q6J("disabled",0===(null==e.meta?null:e.meta.total)),Z.xp6(3),Z.Q6J("ngIf",i.value),Z.xp6(2),Z.Q6J("dataSource",e.dataSource),Z.xp6(20),Z.Q6J("matHeaderRowDef",e.displayedColumns),Z.xp6(1),Z.Q6J("matRowDefColumns",e.displayedColumns),Z.xp6(1),Z.Q6J("ngIf",0===Z.lcZ(55,25,e.dataSource.meta$).total),Z.xp6(2),Z.Q6J("ngIf",Z.lcZ(57,27,null==e.dataSource?null:e.dataSource.loading$)||e.loader),Z.xp6(2),Z.Q6J("length",null==e.meta?null:e.meta.total)("pageIndex",e.pageIndex)("pageSizeOptions",e.pageSizeOptions)}},directives:[S.lW,k.Hw,E.qo,E.KE,I.Nt,M.O5,ut.BZ,f.YE,ut.w1,ut.fO,ut.Dz,ut.as,ut.nj,m.NW,E.R9,ut.ge,f.nU,ut.ev,dt.gM,ut.XQ,ut.Gk,Y.pW],pipes:[M.Ov,mt.X$],styles:[".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}()}]),kt=l(83893),Et=l(52218),It=l(37094),Nt=l(14735),St=function(){var t=function t(){i(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Z.oAB({type:t}),t.\u0275inj=Z.cJS({imports:[[kt.m,wt,Et.Co,It.a4,Nt.f]]}),t}()}}])}();

Youez - 2016 - github.com/yon3zu
LinuXploit