"use strict";(self.webpackChunkNew_Front=self.webpackChunkNew_Front||[]).push([[851],{4851:(h,d,e)=>{e.r(d),e.d(d,{ViewActivityModule:()=>u});var a=e(8692),p=e(3957),c=e(9631),s=e(2340),t=e(4537),l=e(5732),g=e(1997);function b(i,n){if(1&i&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.ALo(9,"date"),t.qZA()()),2&i){const o=n.$implicit;t.xp6(2),t.Oqu(o.property_id||o.request_id),t.xp6(2),t.Oqu(o.title),t.xp6(2),t.Oqu(o.action),t.xp6(2),t.Oqu(t.xi3(9,4,o.date,"yyyy-MM-dd HH:mm"))}}function m(i,n){1&i&&(t.TgZ(0,"div",4),t._uU(1," No activities found for this admin "),t.qZA())}const x=[{path:"",component:(()=>{class i{constructor(o,r){this.route=o,this.http=r,this.activities=[],this.type="property",this.title="Admin Activities"}ngOnInit(){this.adminId=Number(this.route.snapshot.queryParams.admin_id),this.type=this.route.snapshot.queryParams.type||"property",this.title="request"===this.type?"Admin Request Activities":"Admin Property Activities",this.adminId&&this.http.get("request"===this.type?`${s.N.api_base_url}admin/requests/activities/${this.adminId}`:`${s.N.api_base_url}admin/${this.adminId}/activities`).subscribe({next:r=>{this.activities=r},error:()=>{this.activities=[]}})}}return i.\u0275fac=function(o){return new(o||i)(t.Y36(p.gz),t.Y36(l.eN))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-view-activity"]],decls:18,vars:3,consts:[[1,"container"],[1,"table","table-bordered","table-striped"],[4,"ngFor","ngForOf"],["class","text-center mt-3",4,"ngIf"],[1,"text-center","mt-3"]],template:function(o,r){1&o&&(t.TgZ(0,"div",0)(1,"mat-card")(2,"h3"),t._uU(3),t.qZA(),t.TgZ(4,"table",1)(5,"thead")(6,"tr")(7,"th"),t._uU(8,"ID"),t.qZA(),t.TgZ(9,"th"),t._uU(10,"Title"),t.qZA(),t.TgZ(11,"th"),t._uU(12,"Action"),t.qZA(),t.TgZ(13,"th"),t._uU(14,"Date"),t.qZA()()(),t.TgZ(15,"tbody"),t.YNc(16,b,10,7,"tr",2),t.qZA()(),t.YNc(17,m,2,0,"div",3),t.qZA()()),2&o&&(t.xp6(3),t.Oqu(r.title),t.xp6(13),t.Q6J("ngForOf",r.activities),t.xp6(1),t.Q6J("ngIf",0===r.activities.length))},dependencies:[a.sg,a.O5,g.a8,a.uU],styles:['.timeline[_ngcontent-%COMP%]{margin-top:20px;position:relative}.timeline[_ngcontent-%COMP%]:before{position:absolute;content:"";width:4px;height:calc(100% + 50px);background:rgb(138,145,150);background:linear-gradient(to right,rgb(138,145,150) 0%,rgb(122,130,136) 60%,rgb(98,105,109) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#8a9196",endColorstr="#62696d",GradientType=1);left:14px;top:5px;border-radius:4px}.timeline-month[_ngcontent-%COMP%]{position:relative;padding:4px 15px 4px 35px;background-color:#444950;display:inline-block;width:auto;border-radius:40px;border:1px solid #17191b;border-right-color:#000;margin-bottom:30px}.timeline-month[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:absolute;top:-1px;left:calc(100% - 10px);z-index:-1;white-space:nowrap;display:inline-block;background-color:#111;padding:4px 10px 4px 20px;border-top-right-radius:40px;border-bottom-right-radius:40px;border:1px solid black;box-sizing:border-box}.timeline-month[_ngcontent-%COMP%]:before{position:absolute;content:"";width:20px;height:20px;background:rgb(138,145,150);background:linear-gradient(to bottom,rgb(138,145,150) 0%,rgb(122,130,136) 60%,rgb(112,120,125) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#8a9196",endColorstr="#70787d",GradientType=0);border-radius:100%;border:1px solid #17191b;left:5px}.timeline-section[_ngcontent-%COMP%]{padding-left:35px;display:block;position:relative;margin-bottom:30px}.timeline-date[_ngcontent-%COMP%]{margin-bottom:15px;padding:2px 15px;background:linear-gradient(#74cae3,#5bc0de 60%,#4ab9db);position:relative;display:inline-block;border-radius:20px;border:1px solid #17191b;color:#fff;text-shadow:1px 1px 1px rgba(0,0,0,.3)}.timeline-section[_ngcontent-%COMP%]   .col-sm-4[_ngcontent-%COMP%]{margin-bottom:15px}.timeline-box[_ngcontent-%COMP%]{position:relative;background-color:#444950;border-radius:0 15px/0px 15px;border:1px solid #17191b;transition:all .3s ease;overflow:hidden}.box-icon[_ngcontent-%COMP%]{position:absolute;right:5px;top:0}.box-title[_ngcontent-%COMP%]{padding:5px 15px;border-bottom:1px solid #17191b}.box-title[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:5px}.box-content[_ngcontent-%COMP%]{padding:5px 15px;background-color:#17191b}.box-content[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#666;font-style:italic;margin-right:5px}.box-item[_ngcontent-%COMP%]{margin-bottom:5px}.box-footer[_ngcontent-%COMP%]{padding:5px 15px;border-top:1px solid #17191b;background-color:#444950;text-align:right;font-style:italic}']}),i})()}];let u=(()=>{class i{}return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[a.ez,p.Bz.forChild(x),c.m]}),i})()}}]);