"use strict";(self.webpackChunkNew_Front=self.webpackChunkNew_Front||[]).push([[851],{4851:(h,d,n)=>{n.r(d),n.d(d,{ViewActivityModule:()=>u});var r=n(8692),p=n(3957),c=n(9631),s=n(2340),t=n(4537),l=n(5732),g=n(1997);function b(i,e){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=e.$implicit;t.xp6(2),t.Oqu(o.property_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 x(i,e){1&i&&(t.TgZ(0,"div"),t._uU(1," No properties found for this admin "),t.qZA())}const m=[{path:"",component:(()=>{class i{constructor(o,a){this.route=o,this.http=a,this.activities=[]}ngOnInit(){this.adminId=Number(this.route.snapshot.queryParams.admin_id),this.adminId&&this.http.get(`${s.N.api_base_url}admin/${this.adminId}/activities`).subscribe({next:o=>{console.log("activities",o),this.activities=o},error:o=>{console.error("API error",o),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:2,consts:[[1,"container"],[1,"table","table-bordered","table-striped"],[4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(o,a){1&o&&(t.TgZ(0,"div",0)(1,"mat-card")(2,"h3"),t._uU(3,"Admin Properties"),t.qZA(),t.TgZ(4,"table",1)(5,"thead")(6,"tr")(7,"th"),t._uU(8,"Property 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,x,2,0,"div",3),t.qZA()()),2&o&&(t.xp6(16),t.Q6J("ngForOf",a.activities),t.xp6(1),t.Q6J("ngIf",0===a.activities.length))},dependencies:[r.sg,r.O5,g.a8,r.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:[r.ez,p.Bz.forChild(m),c.m]}),i})()}}]);