-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5577.73d419c26a52927c3076.js
1 lines (1 loc) · 198 KB
/
5577.73d419c26a52927c3076.js
1
"use strict";(self.webpackChunkchekt_web_wcs=self.webpackChunkchekt_web_wcs||[]).push([[5577],{37349:(T,v,s)=>{s.d(v,{A:()=>Lt});var x=s(61855),A=s(59053),n=s(42741),h=s(54414),y=s(16253),O=s(50692),b=s(35460),f=s(93220),g=s(16274),M=s(56880),w=s(7611);function z(e,i){1&e&&(n.TgZ(0,"div",4),n.TgZ(1,"div",16),n._uU(2,"Alarm Video"),n.qZA(),n.qZA())}function E(e,i){1&e&&(n.TgZ(0,"div",4),n.TgZ(1,"div",17),n._uU(2,"Automation Event"),n.qZA(),n.qZA())}function q(e,i){1&e&&(n.TgZ(0,"div",18),n._uU(1,"Video AI"),n.qZA())}function S(e,i){1&e&&(n.TgZ(0,"div",19),n._uU(1,"Verification"),n.qZA())}function N(e,i){if(1&e&&(n.ynx(0),n.TgZ(1,"div",20),n._uU(2),n.qZA(),n.BQk()),2&e){const t=i.$implicit;n.xp6(2),n.Oqu(t.code)}}function U(e,i){if(1&e&&(n.TgZ(0,"div",21),n._uU(1),n.qZA()),2&e){const t=n.oxw();n.xp6(1),n.Oqu(t.log.zone_number)}}function D(e,i){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.hij("(",t.parseVideoAIResult(t.log.meta),")")}}function B(e,i){if(1&e&&(n.TgZ(0,"div",22),n.TgZ(1,"div"),n._uU(2,"AI Result"),n.qZA(),n.TgZ(3,"div",23),n.TgZ(4,"span",24),n._uU(5),n.qZA(),n.YNc(6,D,2,1,"span",25),n.qZA(),n.qZA()),2&e){const t=n.oxw();n.xp6(5),n.hij("- ",t.log.videoAIResult," "),n.xp6(1),n.Q6J("ngIf","True"===t.log.videoAIResult||"False"===t.log.videoAIResult)}}function L(e,i){if(1&e&&(n.TgZ(0,"div",29),n._uU(1),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.hij("- ",t.log.email,"")}}function Q(e,i){if(1&e&&(n.TgZ(0,"div",29),n._uU(1),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.AsE("- ",t.IPuserName," (",t.log.ip,")")}}function Y(e,i){if(1&e&&(n.TgZ(0,"div",26),n.TgZ(1,"div",27),n._uU(2,"Viewed "),n.qZA(),n.YNc(3,L,2,1,"div",28),n.YNc(4,Q,2,2,"div",28),n.qZA()),2&e){const t=n.oxw();n.xp6(3),n.Q6J("ngIf",!t.IPuserName),n.xp6(1),n.Q6J("ngIf",t.IPuserName)}}function J(e,i){1&e&&(n.TgZ(0,"div",30),n.TgZ(1,"div",31),n.O4$(),n.TgZ(2,"svg",32),n._UZ(3,"circle",33),n.qZA(),n.qZA(),n.qZA())}function j(e,i){1&e&&(n.TgZ(0,"div",38),n._uU(1,"No Permission"),n.qZA())}function R(e,i){1&e&&(n.TgZ(0,"div",38),n._uU(1,"Upgrade your dealer plan to access archived video."),n.qZA())}function V(e,i){1&e&&(n.TgZ(0,"div",38),n._uU(1,"This video is expired"),n.qZA())}function $(e,i){1&e&&(n.TgZ(0,"div",38),n._uU(1,"This camera is in privacy mode"),n.qZA())}function H(e,i){1&e&&(n.TgZ(0,"div",38),n._uU(1,"Broken Image"),n.qZA())}function W(e,i){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"img",39),n.NdJ("error",function(){return n.CHM(t),n.oxw(2).isBrokenImage=!0}),n.qZA(),n.BQk()}if(2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("src",t.log.imageUrl,n.LSH)}}function G(e,i){1&e&&n._UZ(0,"div")}function X(e,i){if(1&e&&(n.TgZ(0,"div",34),n.YNc(1,j,2,0,"div",35),n.YNc(2,R,2,0,"div",35),n.YNc(3,V,2,0,"div",35),n.YNc(4,$,2,0,"div",35),n.YNc(5,H,2,0,"div",35),n.YNc(6,W,2,1,"ng-container",36),n.YNc(7,G,1,0,"div",37),n.qZA()),2&e){const t=n.oxw();n.Q6J("ngSwitch",t.canIShowImage()),n.xp6(1),n.Q6J("ngSwitchCase","no permission"),n.xp6(1),n.Q6J("ngSwitchCase","need to upgrade plan"),n.xp6(1),n.Q6J("ngSwitchCase","expired"),n.xp6(1),n.Q6J("ngSwitchCase","privacy mode"),n.xp6(1),n.Q6J("ngSwitchCase","broken image"),n.xp6(1),n.Q6J("ngSwitchCase","image")}}function nn(e,i){if(1&e&&(n.TgZ(0,"div",13),n._uU(1),n.qZA()),2&e){const t=n.oxw();n.Q6J("ngClass",t.computedActionName(t.log.action)+"-background"),n.xp6(1),n.Oqu(t.capitalizeFirstLetter(t.log.action))}}function tn(e,i){if(1&e&&(n.TgZ(0,"div",14),n._uU(1),n.qZA()),2&e){const t=n.oxw();n.xp6(1),n.Oqu(t.capitalizeFirstLetter(t.log.action))}}function en(e,i){1&e&&(n.TgZ(0,"div",15),n._uU(1,"Automation Action"),n.qZA())}function on(e,i){if(1&e&&(n.ynx(0),n.TgZ(1,"div",16),n._uU(2),n.qZA(),n.BQk()),2&e){const t=i.$implicit;n.xp6(2),n.Oqu(t.code)}}function an(e,i){if(1&e&&(n.TgZ(0,"div",17),n._uU(1),n.qZA()),2&e){const t=n.oxw();n.xp6(1),n.Oqu(t.log.zone_number)}}function cn(e,i){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw();n.xp6(1),n.AsE("",t.log.trigger," - ",t.log.status_text,"")}}function rn(e,i){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw();n.xp6(1),n.AsE("",t.log.email," - ",t.log.status_text,"")}}function ln(e,i){1&e&&(n.TgZ(0,"div",8),n._uU(1,"Manual Audio Event"),n.qZA())}function dn(e,i){if(1&e&&(n.ynx(0),n.TgZ(1,"div",9),n._uU(2),n.qZA(),n.BQk()),2&e){const t=i.$implicit;n.xp6(2),n.Oqu(t.code)}}function sn(e,i){1&e&&(n.TgZ(0,"div",12),n._uU(1,"Automation Action"),n.qZA())}function _n(e,i){if(1&e&&(n.ynx(0),n.TgZ(1,"div",13),n._uU(2),n.qZA(),n.BQk()),2&e){const t=i.$implicit;n.xp6(2),n.Oqu(t.code)}}function mn(e,i){if(1&e&&(n.TgZ(0,"div",14),n._uU(1),n.qZA()),2&e){const t=n.oxw();n.xp6(1),n.Oqu(t.log.zone_number)}}function xn(e,i){if(1&e&&(n.TgZ(0,"div",15),n._uU(1),n.qZA()),2&e){const t=n.oxw();n.xp6(1),n.AsE("",t.log.trigger," - ",t.log.status_text,"")}}function un(e,i){if(1&e&&(n.TgZ(0,"div",16),n._uU(1),n.qZA()),2&e){const t=n.oxw();let o;n.xp6(1),n.Oqu(null!==(o=t.procedureName)&&void 0!==o?o:" No Procedure Name")}}function Cn(e,i){1&e&&(n.TgZ(0,"div",17),n.TgZ(1,"div",18),n.O4$(),n.TgZ(2,"svg",19),n._UZ(3,"circle",20),n.qZA(),n.qZA(),n.qZA())}function On(e,i){1&e&&(n.TgZ(0,"div",16),n._uU(1,"Automation Action"),n.qZA())}function Mn(e,i){1&e&&(n.TgZ(0,"div",17),n._uU(1,"Verification"),n.qZA())}function bn(e,i){if(1&e&&(n.ynx(0),n.TgZ(1,"div",18),n._uU(2),n.qZA(),n.BQk()),2&e){const t=i.$implicit;n.xp6(2),n.Oqu(t.code)}}function fn(e,i){if(1&e&&(n.TgZ(0,"div",19),n._uU(1),n.qZA()),2&e){const t=n.oxw();n.xp6(1),n.Oqu(t.log.zone_number)}}function hn(e,i){if(1&e&&(n.TgZ(0,"div",23),n._uU(1),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.hij("- ",t.log.email,"")}}function vn(e,i){if(1&e&&(n.TgZ(0,"div",23),n._uU(1),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.AsE("- ",t.IPuserName," (",t.log.ip,")")}}function yn(e,i){if(1&e&&(n.TgZ(0,"div",20),n.TgZ(1,"div",21),n._uU(2,"Viewed "),n.qZA(),n.YNc(3,hn,2,1,"div",22),n.YNc(4,vn,2,2,"div",22),n.qZA()),2&e){const t=n.oxw();n.xp6(3),n.Q6J("ngIf",!t.IPuserName),n.xp6(1),n.Q6J("ngIf",t.IPuserName)}}function wn(e,i){1&e&&(n.TgZ(0,"div",24),n.TgZ(1,"div",25),n.O4$(),n.TgZ(2,"svg",26),n._UZ(3,"circle",27),n.qZA(),n.qZA(),n.qZA())}function kn(e,i){1&e&&(n.TgZ(0,"div",32),n._uU(1,"No Permission"),n.qZA())}function Fn(e,i){1&e&&(n.TgZ(0,"div",32),n._uU(1,"Upgrade your dealer plan to access archived video."),n.qZA())}function Zn(e,i){1&e&&(n.TgZ(0,"div",32),n._uU(1,"This video is expired"),n.qZA())}function An(e,i){1&e&&(n.TgZ(0,"div",32),n._uU(1,"This camera is in privacy mode"),n.qZA())}function In(e,i){1&e&&(n.TgZ(0,"div",32),n._uU(1,"Broken Image"),n.qZA())}function Tn(e,i){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"img",33),n.NdJ("error",function(){return n.CHM(t),n.oxw(2).isBrokenImage=!0}),n.qZA(),n.BQk()}if(2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("src",t.log.imageUrl,n.LSH)}}function zn(e,i){1&e&&n._UZ(0,"div")}function En(e,i){if(1&e&&(n.TgZ(0,"div",28),n.YNc(1,kn,2,0,"div",29),n.YNc(2,Fn,2,0,"div",29),n.YNc(3,Zn,2,0,"div",29),n.YNc(4,An,2,0,"div",29),n.YNc(5,In,2,0,"div",29),n.YNc(6,Tn,2,1,"ng-container",30),n.YNc(7,zn,1,0,"div",31),n.qZA()),2&e){const t=n.oxw();n.Q6J("ngSwitch",t.canIShowImage()),n.xp6(1),n.Q6J("ngSwitchCase","no permission"),n.xp6(1),n.Q6J("ngSwitchCase","need to upgrade plan"),n.xp6(1),n.Q6J("ngSwitchCase","expired"),n.xp6(1),n.Q6J("ngSwitchCase","privacy mode"),n.xp6(1),n.Q6J("ngSwitchCase","broken image"),n.xp6(1),n.Q6J("ngSwitchCase","image")}}function Sn(e,i){1&e&&(n.TgZ(0,"div",10),n._uU(1,"Automation Action"),n.qZA())}function Nn(e,i){if(1&e&&(n.ynx(0),n.TgZ(1,"div",11),n._uU(2),n.qZA(),n.BQk()),2&e){const t=i.$implicit;n.xp6(2),n.Oqu(t.code)}}function Dn(e,i){1&e&&(n.TgZ(0,"div",14),n._uU(1,"Automation Event"),n.qZA())}function Bn(e,i){if(1&e&&(n.ynx(0),n.TgZ(1,"div",15),n._uU(2),n.qZA(),n.BQk()),2&e){const t=i.$implicit;n.xp6(2),n.Oqu(t.code)}}function Ln(e,i){if(1&e&&(n.TgZ(0,"div",16),n._uU(1),n.qZA()),2&e){const t=n.oxw();n.xp6(1),n.Oqu(t.log.zone_number)}}function Qn(e,i){if(1&e&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.hij("- ",t.log.email,"")}}function Yn(e,i){if(1&e&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.AsE("- ",t.IPuserName," (",t.log.ip,")")}}function Jn(e,i){if(1&e&&(n.TgZ(0,"div",17),n.TgZ(1,"div",18),n._uU(2,"Viewed "),n.qZA(),n.YNc(3,Qn,2,1,"div",19),n.YNc(4,Yn,2,2,"div",19),n.qZA()),2&e){const t=n.oxw();n.xp6(3),n.Q6J("ngIf",!t.IPuserName),n.xp6(1),n.Q6J("ngIf",t.IPuserName)}}function jn(e,i){1&e&&(n.TgZ(0,"div",21),n.TgZ(1,"div",22),n.O4$(),n.TgZ(2,"svg",23),n._UZ(3,"circle",24),n.qZA(),n.qZA(),n.qZA())}function Rn(e,i){1&e&&(n.TgZ(0,"div",29),n._uU(1,"No Permission"),n.qZA())}function Vn(e,i){1&e&&(n.TgZ(0,"div",29),n._uU(1,"Upgrade your dealer plan to access archived video."),n.qZA())}function $n(e,i){1&e&&(n.TgZ(0,"div",29),n._uU(1,"This video is expired"),n.qZA())}function Hn(e,i){1&e&&(n.TgZ(0,"div",29),n._uU(1,"This camera is in privacy mode"),n.qZA())}function Wn(e,i){1&e&&(n.TgZ(0,"div",29),n._uU(1,"Broken Image"),n.qZA())}function Gn(e,i){1&e&&(n.TgZ(0,"div",29),n._uU(1,"Broken Video"),n.qZA())}function Xn(e,i){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"img",30),n.NdJ("error",function(){return n.CHM(t),n.oxw(2).isBrokenImage=!0}),n.qZA(),n.BQk()}if(2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("src",t.log.imageUrl,n.LSH)}}function Kn(e,i){1&e&&n._UZ(0,"div")}function nt(e,i){if(1&e&&(n.TgZ(0,"div",25),n.YNc(1,Rn,2,0,"div",26),n.YNc(2,Vn,2,0,"div",26),n.YNc(3,$n,2,0,"div",26),n.YNc(4,Hn,2,0,"div",26),n.YNc(5,Wn,2,0,"div",26),n.YNc(6,Gn,2,0,"div",26),n.YNc(7,Xn,2,1,"ng-container",27),n.YNc(8,Kn,1,0,"div",28),n.qZA()),2&e){const t=n.oxw();n.Q6J("ngSwitch",t.canIShowImage()),n.xp6(1),n.Q6J("ngSwitchCase","no permission"),n.xp6(1),n.Q6J("ngSwitchCase","need to upgrade plan"),n.xp6(1),n.Q6J("ngSwitchCase","expired"),n.xp6(1),n.Q6J("ngSwitchCase","privacy mode"),n.xp6(1),n.Q6J("ngSwitchCase","broken image"),n.xp6(1),n.Q6J("ngSwitchCase","broken video"),n.xp6(1),n.Q6J("ngSwitchCase","image")}}function et(e,i){if(1&e&&(n.ynx(0),n.TgZ(1,"div",11),n._uU(2),n.qZA(),n.BQk()),2&e){const t=i.$implicit;n.xp6(2),n.Oqu(t)}}function ot(e,i){1&e&&(n.TgZ(0,"div",16),n._uU(1,"No Permission"),n.qZA())}function it(e,i){1&e&&(n.TgZ(0,"div",16),n._uU(1,"Upgrade your dealer plan to access archived video."),n.qZA())}function at(e,i){1&e&&(n.TgZ(0,"div",16),n._uU(1,"This video is expired"),n.qZA())}function ct(e,i){1&e&&(n.TgZ(0,"div",16),n._uU(1,"This camera is in privacy mode"),n.qZA())}function rt(e,i){1&e&&(n.TgZ(0,"div",16),n._uU(1,"Broken Image"),n.qZA())}function gt(e,i){1&e&&(n.TgZ(0,"div",16),n._uU(1,"Broken Video"),n.qZA())}function lt(e,i){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"img",17),n.NdJ("error",function(){return n.CHM(t),n.oxw(2).isBrokenImage=!0}),n.qZA(),n.BQk()}if(2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("src",t.log.imageUrl,n.LSH)}}function dt(e,i){1&e&&(n.TgZ(0,"div",18),n.TgZ(1,"i",19),n._uU(2,"verified_user"),n.qZA(),n.qZA())}function pt(e,i){if(1&e&&(n.TgZ(0,"div",12),n.YNc(1,ot,2,0,"div",13),n.YNc(2,it,2,0,"div",13),n.YNc(3,at,2,0,"div",13),n.YNc(4,ct,2,0,"div",13),n.YNc(5,rt,2,0,"div",13),n.YNc(6,gt,2,0,"div",13),n.YNc(7,lt,2,1,"ng-container",14),n.YNc(8,dt,3,0,"div",15),n.qZA()),2&e){const t=n.oxw();n.Q6J("ngSwitch",t.canIShowImage()),n.xp6(1),n.Q6J("ngSwitchCase","no permission"),n.xp6(1),n.Q6J("ngSwitchCase","need to upgrade plan"),n.xp6(1),n.Q6J("ngSwitchCase","expired"),n.xp6(1),n.Q6J("ngSwitchCase","privacy mode"),n.xp6(1),n.Q6J("ngSwitchCase","broken image"),n.xp6(1),n.Q6J("ngSwitchCase","broken video"),n.xp6(1),n.Q6J("ngSwitchCase","image")}}function _t(e,i){1&e&&(n.TgZ(0,"div",14),n._uU(1,"Video AI"),n.qZA())}function mt(e,i){if(1&e&&(n.ynx(0),n.TgZ(1,"div",15),n._uU(2),n.qZA(),n.BQk()),2&e){const t=i.$implicit;n.xp6(2),n.Oqu(t.code)}}function xt(e,i){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.hij("(",t.parseVideoAIResult(t.log.meta),")")}}function ut(e,i){if(1&e&&(n.TgZ(0,"div",16),n.TgZ(1,"div"),n._uU(2,"AI Result"),n.qZA(),n.TgZ(3,"div",17),n.TgZ(4,"span",18),n._uU(5),n.qZA(),n.YNc(6,xt,2,1,"span",19),n.qZA(),n.qZA()),2&e){const t=n.oxw();n.xp6(5),n.hij("- ",t.log.videoAIResult," "),n.xp6(1),n.Q6J("ngIf","True"===t.log.videoAIResult||"False"===t.log.videoAIResult)}}function Ct(e,i){1&e&&(n.TgZ(0,"div",20),n.TgZ(1,"div",21),n.O4$(),n.TgZ(2,"svg",22),n._UZ(3,"circle",23),n.qZA(),n.qZA(),n.qZA())}function Pt(e,i){1&e&&(n.TgZ(0,"div",28),n._uU(1,"No Permission"),n.qZA())}function Ot(e,i){1&e&&(n.TgZ(0,"div",28),n._uU(1,"Upgrade your dealer plan to access archived video."),n.qZA())}function Mt(e,i){1&e&&(n.TgZ(0,"div",28),n._uU(1,"This video is expired"),n.qZA())}function bt(e,i){1&e&&(n.TgZ(0,"div",28),n._uU(1,"This camera is in privacy mode"),n.qZA())}function ft(e,i){1&e&&(n.TgZ(0,"div",28),n._uU(1,"Broken Image"),n.qZA())}function ht(e,i){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"img",29),n.NdJ("error",function(){return n.CHM(t),n.oxw(2).isBrokenImage=!0}),n.qZA(),n.BQk()}if(2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("src",t.log.imageUrl,n.LSH)}}function vt(e,i){1&e&&n._UZ(0,"div")}function yt(e,i){if(1&e&&(n.TgZ(0,"div",24),n.YNc(1,Pt,2,0,"div",25),n.YNc(2,Ot,2,0,"div",25),n.YNc(3,Mt,2,0,"div",25),n.YNc(4,bt,2,0,"div",25),n.YNc(5,ft,2,0,"div",25),n.YNc(6,ht,2,1,"ng-container",26),n.YNc(7,vt,1,0,"div",27),n.qZA()),2&e){const t=n.oxw();n.Q6J("ngSwitch",t.canIShowImage()),n.xp6(1),n.Q6J("ngSwitchCase","no permission"),n.xp6(1),n.Q6J("ngSwitchCase","need to upgrade plan"),n.xp6(1),n.Q6J("ngSwitchCase","expired"),n.xp6(1),n.Q6J("ngSwitchCase","privacy mode"),n.xp6(1),n.Q6J("ngSwitchCase","broken image"),n.xp6(1),n.Q6J("ngSwitchCase","image")}}const I={"video event":(()=>{class e{constructor(t,o,a,c,r){this.commonService=t,this.usersService=o,this.eventViewerService=a,this.sanitizer=c,this.helper=r,this.snapshotPermission=!1,this.isBrokenImage=!1,this.isLoadingVideo=!1,this.IPuserName=""}watch(){this.snapshotPermission$w=this.eventViewerService.snapshotPermission$w.subscribe(t=>this.snapshotPermission=t)}unwatch(){var t;null===(t=this.snapshotPermission$w)||void 0===t||t.unsubscribe()}ngOnInit(){return(0,x.mG)(this,void 0,void 0,function*(){this.watch(),this.log.email&&this.log.ip&&(yield this.getIPUserName()),this.log.imageUrl&&this.safeBlobUrl()})}ngOnDestroy(){this.unwatch()}getIPUserName(){var t,o;return(0,x.mG)(this,void 0,void 0,function*(){try{if(!this.log.email||!this.log.user_id||this.log.email!=this.log.ip)return;const a=yield this.helper.me.get_my_dealer_id(),c=this.log.user_id,r=yield this.usersService.getIpMember(a,c).toPromise();this.IPuserName=null!==(o=null===(t=r[0])||void 0===t?void 0:t.name)&&void 0!==o?o:"No Name"}catch(a){console.debug("getIPUserName:>",a)}})}safeBlobUrl(){var t;const o=null===(t=this.log.imageUrl)||void 0===t?void 0:t.changingThisBreaksApplicationSecurity;!o||(this.log.imageUrl=this.sanitizer.bypassSecurityTrustUrl(o))}computedBackground(){return this.log.isLoading?"loading-background":this.snapshotPermission?"need to upgrade plan"===this.canIShowImage()||"expired"===this.canIShowImage()||"privacy mode"===this.canIShowImage()||"broken image"===this.canIShowImage()?"no-permission":"image"===this.canIShowImage()?"full-height":"default"===this.canIShowImage()?"alarm-video":void 0:"no permission"}canIShowImage(){const t=this.helper.dealer_plan.isPremiumPlan()||this.helper.dealer_plan.isResellerPlan();return this.snapshotPermission?t&&this.log.is_expired?"expired":!t&&this.log.is_expired?"need to upgrade plan":this.log.isPrivacy?"privacy mode":this.isBrokenImage?"broken image":this.log.imageUrl?"image":"default":"no permission"}isAutomationRule(){return this.log.description.toLowerCase().includes("automation")||this.log.isAutomation}isVideoAI(){return!!this.log.trigger.toLowerCase().includes("videoai")}parseVideoAIResult(t){var o,a,c;if(!t||"string"!=typeof t)return"Failed";const r=JSON.parse(t),l=null===(o=null==r?void 0:r.req)||void 0===o?void 0:o.body,p=null==l?void 0:l.summary_entity_ids;if(!p)return"Failed";let C="";const d=JSON.parse(p),P=Object.values(d);let _="",m="";const F=P.every(u=>null==u?void 0:u.includes("person")),Z=P.every(u=>null==u?void 0:u.includes("vehicle"));return(null===(a=d.static)||void 0===a?void 0:a.length)&&(d.static.includes("person")&&(_="Stationary Person"),d.static.includes("vehicle")&&(m="Stationary Vehicle")),(null===(c=d.motion)||void 0===c?void 0:c.length)&&(d.motion.includes("person")&&(_="Moving Person"),d.motion.includes("vehicle")&&(m="Moving Vehicle")),F&&(_="Person"),Z&&(m="Vehicle"),_&&m?C=`${_}, ${m}`:_||m?C=`${_||m}`:!_&&!m&&(C="Nothing Detected"),C}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(M.v),n.Y36(w.f),n.Y36(O.w),n.Y36(f.H7),n.Y36(b.W))},e.\u0275cmp=n.Xpm({type:e,selectors:[["log_box_alarm_video"]],inputs:{log:"log"},decls:20,vars:14,consts:[[1,"log-metadata"],[1,"v-center",2,"gap","8px"],[1,"log-metadata-time"],["class","log-metadata-category",4,"ngIf"],[1,"log-metadata-category"],["class","badge video-ai-background",4,"ngIf"],["class","badge verification-background",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"log-metadata-device"],["class","log-metadata-device-zone",4,"ngIf"],[1,"log-metadata-device-name"],[1,"log-metadata-other"],["class","flex v-center",4,"ngIf"],["class","flex v-center","style","justify-content: end;",4,"ngIf"],["class","loading-box",4,"ngIf"],["class","flex","style","justify-content: end;",3,"ngSwitch",4,"ngIf"],[1,"badge","alarm-video-background"],[1,"badge","automation-background"],[1,"badge","video-ai-background"],[1,"badge","verification-background"],[1,"badge","xml-code"],[1,"log-metadata-device-zone"],[1,"flex","v-center"],[2,"margin-left","4px"],[2,"font-weight","600"],[4,"ngIf"],[1,"flex","v-center",2,"justify-content","end"],[1,"badge","operator-viewed-background"],["style","margin-left: 8px",4,"ngIf"],[2,"margin-left","8px"],[1,"loading-box"],[1,"loader","absolute","log-loader"],["viewBox","25 25 50 50",1,"circular"],["cx","50","cy","50","r","20","fill","none","stroke-width","4","stroke-miterlimit","10",1,"path","log-stroke-color"],[1,"flex",2,"justify-content","end",3,"ngSwitch"],["class","no-permission",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"no-permission"],[3,"src","error"]],template:function(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"div",0),n.TgZ(2,"div",1),n.TgZ(3,"div",2),n._uU(4),n.qZA(),n.YNc(5,z,3,0,"div",3),n.YNc(6,E,3,0,"div",3),n.qZA(),n.TgZ(7,"div",4),n.YNc(8,q,2,0,"div",5),n.YNc(9,S,2,0,"div",6),n.YNc(10,N,3,1,"ng-container",7),n.qZA(),n.TgZ(11,"div",8),n.YNc(12,U,2,1,"div",9),n.TgZ(13,"div",10),n._uU(14),n.qZA(),n.qZA(),n.TgZ(15,"div",11),n.YNc(16,B,7,2,"div",12),n.YNc(17,Y,5,2,"div",13),n.qZA(),n.qZA(),n.YNc(18,J,4,0,"div",14),n.YNc(19,X,8,7,"div",15),n.BQk()),2&t){let a;n.xp6(4),n.Oqu(o.log.eventCreated),n.xp6(1),n.Q6J("ngIf",!o.isAutomationRule()),n.xp6(1),n.Q6J("ngIf",o.isAutomationRule()),n.xp6(2),n.Q6J("ngIf",o.isVideoAI()),n.xp6(1),n.Q6J("ngIf",o.log.isHasVerification),n.xp6(1),n.Q6J("ngForOf",o.log.eventCodeList),n.xp6(2),n.Q6J("ngIf",o.log.zone_number),n.xp6(1),n.ekj("no-name",!o.log.name),n.xp6(1),n.Oqu(null!==(a=o.log.name)&&void 0!==a?a:"No Name"),n.xp6(2),n.Q6J("ngIf",o.isVideoAI()),n.xp6(1),n.Q6J("ngIf",o.log.email),n.xp6(1),n.Q6J("ngIf",o.log.isLoading),n.xp6(1),n.Q6J("ngIf",!o.log.isLoading)}},directives:[g.O5,g.sg,g.RF,g.n9,g.ED],styles:['.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:calc(100% - 14px);max-width:1200px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.disabled[_ngcontent-%COMP%]{opacity:.6;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e88e5}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#1e88e5}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box;padding:0 6px}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.has-child[_ngcontent-%COMP%]{cursor:pointer}.has-child[_ngcontent-%COMP%]:hover{background:#f0f0f0}.table-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.table-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.table-container[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px;height:100px}.loader.absolute[_ngcontent-%COMP%]{margin:auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.selectitem[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer;display:flex;flex-direction:row;font-size:14px}.selectitem[_ngcontent-%COMP%]:hover{background-color:#ebebeb}.selectitem.selected[_ngcontent-%COMP%]{background-color:#e0e0e0}.selectitem.label[_ngcontent-%COMP%]{margin:2px 0;max-width:420px;font-size:14px;padding:8px 10px;justify-content:space-between}.select-list[_ngcontent-%COMP%]{position:fixed;width:100%;background:#fff;font-size:14px;border-style:solid;border-width:1px;border-radius:5px;border-color:#dfdfdf;overflow-x:hidden;white-space:nowrap;z-index:500;font-weight:500}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]{width:100%;outline:none;border:0;border-bottom:1px solid rgba(0,0,0,.1);height:30px;text-indent:16px}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]::placeholder{color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%]{display:flex}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{color:#1e90ff;filter:none}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%]{display:flex;margin-right:5px;justify-content:center;color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{font-size:18px}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon.checked[_ngcontent-%COMP%]{color:#1f8fff}.select-list[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{margin:14px}[sortable-column][_ngcontent-%COMP%]{cursor:pointer}','.no-name[_ngcontent-%COMP%]{color:#0000004d}.loading-box[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;color:#fff;position:relative;background-color:#000}.loading[_ngcontent-%COMP%]{width:20px;height:20px;cursor:none}.loader[_ngcontent-%COMP%]{position:absolute;width:20px;height:20px;top:calc(50% - 10px)!important;left:calc(50% - 10px)!important}.loader[_ngcontent-%COMP%] .circular[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:#8792a2}.timeline-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;font-size:.8rem;padding:20px 0}.timeline-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:calc(50%);width:2px;background:rgba(0,0,0,.1);height:calc(100% - 50px)}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:start;margin-bottom:10px;position:relative}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{flex:2;padding:10px;color:#55647b}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area[_ngcontent-%COMP%]{flex:2;padding:10px 10px 10px 20px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;grid-gap:2px;gap:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-id[_ngcontent-%COMP%]{color:#55647b;font-size:12px;margin-bottom:4px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-time[_ngcontent-%COMP%]{opacity:.87;font-size:20px;letter-spacing:-.129px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;font-size:14px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%]{position:relative;height:100px;max-height:150px;min-height:60px;flex:.3}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;position:absolute;top:10px;left:calc(50% - 5px);transform:translate(-50%);z-index:2}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area[_ngcontent-%COMP%]{position:relative;width:20px;height:20px;top:2px;left:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.guard-tour[_ngcontent-%COMP%]{top:-1px;left:0px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.print-mode[_ngcontent-%COMP%]{position:relative;width:16px;height:16px;top:8px;left:8px}.timeline-title[_ngcontent-%COMP%]{display:flex}.timeline-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex:1;height:30px;align-items:center;justify-content:center;background:#F2F6F9;opacity:.87}.no-permission[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;background-color:#000;color:#fff;display:flex;justify-content:center;align-items:center;text-align:center}.no-permission[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{padding:8px}.xml-code[_ngcontent-%COMP%]{background:rgba(30,136,229,.1);color:#0087ec!important}img[_ngcontent-%COMP%]{width:230px;border-radius:5px;margin:10px 0}.log-metadata[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;align-items:flex-end;text-align:end;flex:2}.log-metadata-time[_ngcontent-%COMP%]{opacity:.87;font-size:1.1rem;letter-spacing:-.129px}.log-metadata-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px;display:flex;align-items:center;flex-wrap:wrap;grid-gap:4px;gap:4px;justify-content:end}.log-metadata-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.log-metadata-device-zone[_ngcontent-%COMP%]{font-size:12px;padding:2px 6px;border-radius:3px;background:#E3E8EE}.log-metadata-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.log-metadata-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:8px;gap:8px}.badge[_ngcontent-%COMP%]{padding:2px 5px 3px;border-radius:3px;color:#000}.default[_ngcontent-%COMP%]{background-color:#8b8b8b}.default-background[_ngcontent-%COMP%]{background-color:#e6e6e6}.alarm-video[_ngcontent-%COMP%]{background:#FF6B6B}.alarm-video-background[_ngcontent-%COMP%]{background:#FFE2DD}.armed[_ngcontent-%COMP%]{background:#FF7F16}.armed-background[_ngcontent-%COMP%]{background:#FFE5D0}.disarmed[_ngcontent-%COMP%]{background:#1EA675}.disarmed-background[_ngcontent-%COMP%]{background:#DBEDDB}.audio[_ngcontent-%COMP%]{background:#C34A36}.audio-background[_ngcontent-%COMP%]{background:#F3E2E0}.automation[_ngcontent-%COMP%]{background:#FFA07A}.automation-background[_ngcontent-%COMP%]{background:#FFEDE0}.playback[_ngcontent-%COMP%]{background:#276749}.playback-background[_ngcontent-%COMP%]{background:#C9E4DE}.relay[_ngcontent-%COMP%]{background:#FFC75F}.relay-background[_ngcontent-%COMP%]{background:#FFF5E6}.timelapse[_ngcontent-%COMP%]{background:#276749}.timelapse-background[_ngcontent-%COMP%]{background:#c4f2ee}.operator-viewed[_ngcontent-%COMP%]{background:#F9CB9C}.operator-viewed-background[_ngcontent-%COMP%]{background:#FFF4E8}.disarmed-event[_ngcontent-%COMP%]{background:#5FC0FD}.disarmed-event-background[_ngcontent-%COMP%]{background:#D0EDFF}.verification[_ngcontent-%COMP%]{background:#4D96FF}.verification-background[_ngcontent-%COMP%]{background:#C1E1FF}.video-ai[_ngcontent-%COMP%]{background:#6578D8}.video-ai-background[_ngcontent-%COMP%]{background:#E6E9F8}']}),e})(),arming:(()=>{class e{constructor(t){this.commonService=t,this.logIcon={type:"",name:""}}ngOnInit(){this.checkLogType()}ngOnDestroy(){}computedActionName(t){return t.split(" ")[0].toLowerCase()}armingIconColor(t){const a=t.split(" ")[0].toLocaleLowerCase();return"armed"===a||"armed away"===a||"armed stay"===a||a.includes("armed stay")?"#FF7F16":"#1EA675"}capitalizeFirstLetter(t){if(t&&"string"==typeof t)return t.charAt(0).toUpperCase()+t.slice(1)}isAutomationRule(t){return t.description.toLowerCase().includes("automation")}checkLogType(){this.checkArmingStatus()||this.checkArmingDelay()||(this.logIcon={type:"material",name:"settings"})}checkArmingStatus(){const t=this.log.status_text.toLowerCase();return!("armed"!==t&&"disarmed"!==t&&"armed away"!==t&&"armed stay"!==t&&!t.includes("armed stay"))}checkArmingDelay(){const t=this.log.status_text.toLocaleLowerCase();return(t.includes("end")||!!t.includes("start"))&&(this.logIcon={type:"material",name:"sync_lock"},!0)}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(M.v))},e.\u0275cmp=n.Xpm({type:e,selectors:[["log_box_arming"]],inputs:{log:"log",timezone:"timezone"},decls:19,vars:11,consts:[[1,"log-metadata"],[1,"v-center",2,"gap","8px"],[1,"log-metadata-time"],[1,"log-metadata-category"],["class","badge",3,"ngClass",4,"ngIf"],["class","badge default-background",4,"ngIf"],["class","badge automation","style","margin-left: 4px",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"log-metadata-device"],["class","log-metadata-device-zone",4,"ngIf"],[1,"log-metadata-device-name"],[1,"log-metadata-other"],[4,"ngIf"],[1,"badge",3,"ngClass"],[1,"badge","default-background"],[1,"badge","automation",2,"margin-left","4px"],[1,"badge","xml-code"],[1,"log-metadata-device-zone"]],template:function(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"div",0),n.TgZ(2,"div",1),n.TgZ(3,"div",2),n._uU(4),n.qZA(),n.TgZ(5,"div",3),n.YNc(6,nn,2,2,"div",4),n.YNc(7,tn,2,1,"div",5),n.qZA(),n.qZA(),n.TgZ(8,"div",3),n.YNc(9,en,2,0,"div",6),n.qZA(),n.TgZ(10,"div",3),n.YNc(11,on,3,1,"ng-container",7),n.qZA(),n.TgZ(12,"div",8),n.YNc(13,an,2,1,"div",9),n.TgZ(14,"div",10),n._uU(15),n.qZA(),n.qZA(),n.TgZ(16,"div",11),n.YNc(17,cn,2,2,"ng-container",12),n.YNc(18,rn,2,2,"ng-container",12),n.qZA(),n.qZA(),n.BQk()),2&t){let a;n.xp6(4),n.Oqu(o.log.eventCreated),n.xp6(2),n.Q6J("ngIf",o.checkArmingStatus()),n.xp6(1),n.Q6J("ngIf",!o.checkArmingStatus()),n.xp6(2),n.Q6J("ngIf",o.isAutomationRule(o.log)),n.xp6(2),n.Q6J("ngForOf",o.log.eventCodeList),n.xp6(2),n.Q6J("ngIf",o.log.zone_number),n.xp6(1),n.ekj("no-name",!o.log.name),n.xp6(1),n.Oqu(null!==(a=o.log.name)&&void 0!==a?a:"No Name"),n.xp6(2),n.Q6J("ngIf",!o.log.email),n.xp6(1),n.Q6J("ngIf",o.log.email)}},directives:[g.O5,g.sg,g.mk],styles:['.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:calc(100% - 14px);max-width:1200px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.disabled[_ngcontent-%COMP%]{opacity:.6;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e88e5}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#1e88e5}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box;padding:0 6px}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.has-child[_ngcontent-%COMP%]{cursor:pointer}.has-child[_ngcontent-%COMP%]:hover{background:#f0f0f0}.table-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.table-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.table-container[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px;height:100px}.loader.absolute[_ngcontent-%COMP%]{margin:auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.selectitem[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer;display:flex;flex-direction:row;font-size:14px}.selectitem[_ngcontent-%COMP%]:hover{background-color:#ebebeb}.selectitem.selected[_ngcontent-%COMP%]{background-color:#e0e0e0}.selectitem.label[_ngcontent-%COMP%]{margin:2px 0;max-width:420px;font-size:14px;padding:8px 10px;justify-content:space-between}.select-list[_ngcontent-%COMP%]{position:fixed;width:100%;background:#fff;font-size:14px;border-style:solid;border-width:1px;border-radius:5px;border-color:#dfdfdf;overflow-x:hidden;white-space:nowrap;z-index:500;font-weight:500}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]{width:100%;outline:none;border:0;border-bottom:1px solid rgba(0,0,0,.1);height:30px;text-indent:16px}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]::placeholder{color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%]{display:flex}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{color:#1e90ff;filter:none}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%]{display:flex;margin-right:5px;justify-content:center;color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{font-size:18px}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon.checked[_ngcontent-%COMP%]{color:#1f8fff}.select-list[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{margin:14px}[sortable-column][_ngcontent-%COMP%]{cursor:pointer}','.no-name[_ngcontent-%COMP%]{color:#0000004d}.loading-box[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;color:#fff;position:relative;background-color:#000}.loading[_ngcontent-%COMP%]{width:20px;height:20px;cursor:none}.loader[_ngcontent-%COMP%]{position:absolute;width:20px;height:20px;top:calc(50% - 10px)!important;left:calc(50% - 10px)!important}.loader[_ngcontent-%COMP%] .circular[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:#8792a2}.timeline-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;font-size:.8rem;padding:20px 0}.timeline-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:calc(50%);width:2px;background:rgba(0,0,0,.1);height:calc(100% - 50px)}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:start;margin-bottom:10px;position:relative}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{flex:2;padding:10px;color:#55647b}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area[_ngcontent-%COMP%]{flex:2;padding:10px 10px 10px 20px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;grid-gap:2px;gap:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-id[_ngcontent-%COMP%]{color:#55647b;font-size:12px;margin-bottom:4px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-time[_ngcontent-%COMP%]{opacity:.87;font-size:20px;letter-spacing:-.129px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;font-size:14px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%]{position:relative;height:100px;max-height:150px;min-height:60px;flex:.3}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;position:absolute;top:10px;left:calc(50% - 5px);transform:translate(-50%);z-index:2}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area[_ngcontent-%COMP%]{position:relative;width:20px;height:20px;top:2px;left:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.guard-tour[_ngcontent-%COMP%]{top:-1px;left:0px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.print-mode[_ngcontent-%COMP%]{position:relative;width:16px;height:16px;top:8px;left:8px}.timeline-title[_ngcontent-%COMP%]{display:flex}.timeline-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex:1;height:30px;align-items:center;justify-content:center;background:#F2F6F9;opacity:.87}.no-permission[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;background-color:#000;color:#fff;display:flex;justify-content:center;align-items:center;text-align:center}.no-permission[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{padding:8px}.xml-code[_ngcontent-%COMP%]{background:rgba(30,136,229,.1);color:#0087ec!important}img[_ngcontent-%COMP%]{width:230px;border-radius:5px;margin:10px 0}.log-metadata[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;align-items:flex-end;text-align:end;flex:2}.log-metadata-time[_ngcontent-%COMP%]{opacity:.87;font-size:1.1rem;letter-spacing:-.129px}.log-metadata-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px;display:flex;align-items:center;flex-wrap:wrap;grid-gap:4px;gap:4px;justify-content:end}.log-metadata-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.log-metadata-device-zone[_ngcontent-%COMP%]{font-size:12px;padding:2px 6px;border-radius:3px;background:#E3E8EE}.log-metadata-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.log-metadata-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:8px;gap:8px}.badge[_ngcontent-%COMP%]{padding:2px 5px 3px;border-radius:3px;color:#000}.default[_ngcontent-%COMP%]{background-color:#8b8b8b}.default-background[_ngcontent-%COMP%]{background-color:#e6e6e6}.alarm-video[_ngcontent-%COMP%]{background:#FF6B6B}.alarm-video-background[_ngcontent-%COMP%]{background:#FFE2DD}.armed[_ngcontent-%COMP%]{background:#FF7F16}.armed-background[_ngcontent-%COMP%]{background:#FFE5D0}.disarmed[_ngcontent-%COMP%]{background:#1EA675}.disarmed-background[_ngcontent-%COMP%]{background:#DBEDDB}.audio[_ngcontent-%COMP%]{background:#C34A36}.audio-background[_ngcontent-%COMP%]{background:#F3E2E0}.automation[_ngcontent-%COMP%]{background:#FFA07A}.automation-background[_ngcontent-%COMP%]{background:#FFEDE0}.playback[_ngcontent-%COMP%]{background:#276749}.playback-background[_ngcontent-%COMP%]{background:#C9E4DE}.relay[_ngcontent-%COMP%]{background:#FFC75F}.relay-background[_ngcontent-%COMP%]{background:#FFF5E6}.timelapse[_ngcontent-%COMP%]{background:#276749}.timelapse-background[_ngcontent-%COMP%]{background:#c4f2ee}.operator-viewed[_ngcontent-%COMP%]{background:#F9CB9C}.operator-viewed-background[_ngcontent-%COMP%]{background:#FFF4E8}.disarmed-event[_ngcontent-%COMP%]{background:#5FC0FD}.disarmed-event-background[_ngcontent-%COMP%]{background:#D0EDFF}.verification[_ngcontent-%COMP%]{background:#4D96FF}.verification-background[_ngcontent-%COMP%]{background:#C1E1FF}.video-ai[_ngcontent-%COMP%]{background:#6578D8}.video-ai-background[_ngcontent-%COMP%]{background:#E6E9F8}']}),e})(),audio:(()=>{class e{constructor(t,o){this.commonService=t,this.sitesService=o}ngOnInit(){this.site=this.sitesService.selSite}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(M.v),n.Y36(h.f))},e.\u0275cmp=n.Xpm({type:e,selectors:[["log_box_audio"]],inputs:{log:"log",timezone:"timezone"},decls:12,vars:6,consts:[[1,"log-metadata"],[1,"flex",2,"flex-direction","column","gap","8px"],[1,"log-metadata-time"],[1,"log-metadata-category"],["class","badge audio-background",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"log-metadata-device"],[1,"log-metadata-device-name"],[1,"badge","audio-background"],[1,"badge","xml-code"]],template:function(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"div",0),n.TgZ(2,"div",1),n.TgZ(3,"div",2),n._uU(4),n.qZA(),n.TgZ(5,"div",3),n.YNc(6,ln,2,0,"div",4),n.qZA(),n.qZA(),n.TgZ(7,"div",3),n.YNc(8,dn,3,1,"ng-container",5),n.qZA(),n.TgZ(9,"div",6),n.TgZ(10,"div",7),n._uU(11),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){let a;n.xp6(4),n.Oqu(o.log.eventCreated),n.xp6(2),n.Q6J("ngIf",!(null!=o.log&&o.log.isAutomation)),n.xp6(2),n.Q6J("ngForOf",o.log.eventCodeList),n.xp6(2),n.ekj("no-name",!o.log.name),n.xp6(1),n.Oqu(null!==(a=o.log.name)&&void 0!==a?a:"No Name")}},directives:[g.O5,g.sg],styles:['.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:calc(100% - 14px);max-width:1200px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.disabled[_ngcontent-%COMP%]{opacity:.6;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e88e5}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#1e88e5}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box;padding:0 6px}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.has-child[_ngcontent-%COMP%]{cursor:pointer}.has-child[_ngcontent-%COMP%]:hover{background:#f0f0f0}.table-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.table-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.table-container[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px;height:100px}.loader.absolute[_ngcontent-%COMP%]{margin:auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.selectitem[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer;display:flex;flex-direction:row;font-size:14px}.selectitem[_ngcontent-%COMP%]:hover{background-color:#ebebeb}.selectitem.selected[_ngcontent-%COMP%]{background-color:#e0e0e0}.selectitem.label[_ngcontent-%COMP%]{margin:2px 0;max-width:420px;font-size:14px;padding:8px 10px;justify-content:space-between}.select-list[_ngcontent-%COMP%]{position:fixed;width:100%;background:#fff;font-size:14px;border-style:solid;border-width:1px;border-radius:5px;border-color:#dfdfdf;overflow-x:hidden;white-space:nowrap;z-index:500;font-weight:500}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]{width:100%;outline:none;border:0;border-bottom:1px solid rgba(0,0,0,.1);height:30px;text-indent:16px}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]::placeholder{color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%]{display:flex}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{color:#1e90ff;filter:none}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%]{display:flex;margin-right:5px;justify-content:center;color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{font-size:18px}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon.checked[_ngcontent-%COMP%]{color:#1f8fff}.select-list[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{margin:14px}[sortable-column][_ngcontent-%COMP%]{cursor:pointer}','.no-name[_ngcontent-%COMP%]{color:#0000004d}.loading-box[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;color:#fff;position:relative;background-color:#000}.loading[_ngcontent-%COMP%]{width:20px;height:20px;cursor:none}.loader[_ngcontent-%COMP%]{position:absolute;width:20px;height:20px;top:calc(50% - 10px)!important;left:calc(50% - 10px)!important}.loader[_ngcontent-%COMP%] .circular[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:#8792a2}.timeline-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;font-size:.8rem;padding:20px 0}.timeline-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:calc(50%);width:2px;background:rgba(0,0,0,.1);height:calc(100% - 50px)}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:start;margin-bottom:10px;position:relative}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{flex:2;padding:10px;color:#55647b}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area[_ngcontent-%COMP%]{flex:2;padding:10px 10px 10px 20px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;grid-gap:2px;gap:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-id[_ngcontent-%COMP%]{color:#55647b;font-size:12px;margin-bottom:4px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-time[_ngcontent-%COMP%]{opacity:.87;font-size:20px;letter-spacing:-.129px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;font-size:14px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%]{position:relative;height:100px;max-height:150px;min-height:60px;flex:.3}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;position:absolute;top:10px;left:calc(50% - 5px);transform:translate(-50%);z-index:2}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area[_ngcontent-%COMP%]{position:relative;width:20px;height:20px;top:2px;left:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.guard-tour[_ngcontent-%COMP%]{top:-1px;left:0px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.print-mode[_ngcontent-%COMP%]{position:relative;width:16px;height:16px;top:8px;left:8px}.timeline-title[_ngcontent-%COMP%]{display:flex}.timeline-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex:1;height:30px;align-items:center;justify-content:center;background:#F2F6F9;opacity:.87}.no-permission[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;background-color:#000;color:#fff;display:flex;justify-content:center;align-items:center;text-align:center}.no-permission[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{padding:8px}.xml-code[_ngcontent-%COMP%]{background:rgba(30,136,229,.1);color:#0087ec!important}img[_ngcontent-%COMP%]{width:230px;border-radius:5px;margin:10px 0}.log-metadata[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;align-items:flex-end;text-align:end;flex:2}.log-metadata-time[_ngcontent-%COMP%]{opacity:.87;font-size:1.1rem;letter-spacing:-.129px}.log-metadata-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px;display:flex;align-items:center;flex-wrap:wrap;grid-gap:4px;gap:4px;justify-content:end}.log-metadata-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.log-metadata-device-zone[_ngcontent-%COMP%]{font-size:12px;padding:2px 6px;border-radius:3px;background:#E3E8EE}.log-metadata-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.log-metadata-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:8px;gap:8px}.badge[_ngcontent-%COMP%]{padding:2px 5px 3px;border-radius:3px;color:#000}.default[_ngcontent-%COMP%]{background-color:#8b8b8b}.default-background[_ngcontent-%COMP%]{background-color:#e6e6e6}.alarm-video[_ngcontent-%COMP%]{background:#FF6B6B}.alarm-video-background[_ngcontent-%COMP%]{background:#FFE2DD}.armed[_ngcontent-%COMP%]{background:#FF7F16}.armed-background[_ngcontent-%COMP%]{background:#FFE5D0}.disarmed[_ngcontent-%COMP%]{background:#1EA675}.disarmed-background[_ngcontent-%COMP%]{background:#DBEDDB}.audio[_ngcontent-%COMP%]{background:#C34A36}.audio-background[_ngcontent-%COMP%]{background:#F3E2E0}.automation[_ngcontent-%COMP%]{background:#FFA07A}.automation-background[_ngcontent-%COMP%]{background:#FFEDE0}.playback[_ngcontent-%COMP%]{background:#276749}.playback-background[_ngcontent-%COMP%]{background:#C9E4DE}.relay[_ngcontent-%COMP%]{background:#FFC75F}.relay-background[_ngcontent-%COMP%]{background:#FFF5E6}.timelapse[_ngcontent-%COMP%]{background:#276749}.timelapse-background[_ngcontent-%COMP%]{background:#c4f2ee}.operator-viewed[_ngcontent-%COMP%]{background:#F9CB9C}.operator-viewed-background[_ngcontent-%COMP%]{background:#FFF4E8}.disarmed-event[_ngcontent-%COMP%]{background:#5FC0FD}.disarmed-event-background[_ngcontent-%COMP%]{background:#D0EDFF}.verification[_ngcontent-%COMP%]{background:#4D96FF}.verification-background[_ngcontent-%COMP%]{background:#C1E1FF}.video-ai[_ngcontent-%COMP%]{background:#6578D8}.video-ai-background[_ngcontent-%COMP%]{background:#E6E9F8}']}),e})(),default:(()=>{class e{constructor(t,o){this.commonService=t,this.eventViewerService=o,this.snapshotPermission=!1,this.logIcon={type:"",name:""},this.isBrokenImage=!1,this.procedureName=""}watch(){this.snapshotPermission$w=this.eventViewerService.snapshotPermission$w.subscribe(t=>this.snapshotPermission=t)}unwatch(){var t;null===(t=this.snapshotPermission$w)||void 0===t||t.unsubscribe()}ngOnInit(){this.setIconName(),this.setProcedureName(),this.watch()}ngOnDestroy(){this.unwatch()}capitalizeFirstLetters(t){return t?t.split(" ").map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join(" "):""}isAutomationRule(){return this.log.description.toLowerCase().includes("automation")||this.log.isAutomation}computedIconColor(t){return(null==t?void 0:t.isAutomation)?"#FFA07A":"#8B8B8B"}computedIconSize(){return"metabolism"===this.logIcon.name||"http"===this.logIcon.name?"40":"30"}setIconName(){this.setSensorIcon(),this.logIcon.name||this.setBridgeIcon(),this.logIcon.name||this.setOtherCategory()}setOtherCategory(){switch(this.log.category.toLowerCase()){case"alarm":return this.logIcon={type:"material",name:"notifications_active"};case"guard tour":return this.logIcon={type:"comp",name:"metabolism"};case"live video":return this.logIcon={type:"material",name:"smart_display"};case"monitoring portal":return this.logIcon={type:"material",name:"live_tv"};case"boot":return this.logIcon={type:"material",name:"power_settings_new"};case"privacy mode access":return this.logIcon={type:"material",name:"passkey"};case"share download link":return this.logIcon={type:"material",name:"download"};case"share response link":return this.logIcon={type:"material",name:"reply"};case"site procedure action":return this.logIcon={type:"material",name:"interests"};case"site procedure http request":return this.logIcon={type:"material",name:"http"};case"trouble":return this.logIcon={type:"material",name:"warning"};default:return this.logIcon={type:"",name:""}}}setSensorIcon(){const t=this.log.category.toLowerCase(),o=this.log.trigger.toLowerCase();return"sensor"!=t?{type:"",name:""}:o.includes("di")?this.logIcon={type:"material",name:"settings_input_component"}:o.includes("oe")?this.logIcon={type:"material",name:"psychology"}:o.includes("le")||o.includes("local")?this.logIcon={type:"comp",name:"bridge"}:o.includes("camera")?this.logIcon={type:"comp",name:"bypass"}:void 0}setBridgeIcon(){const t=this.log.category.toLowerCase(),o=this.log.description.toLowerCase();return"bridge"!=t?{type:"",name:""}:this.logIcon=o.includes("automation")?{type:"comp",name:"autopay"}:{type:"comp",name:"bridge"}}setProcedureName(){var t;if("procedure"!=this.log.trigger.toLowerCase())return;const o=JSON.parse(this.log.meta),a=null==o?void 0:o.additionalInfo;this.procedureName=a?null==a?void 0:a.procedure_name:null===(t=null==o?void 0:o.info)||void 0===t?void 0:t.procedure_name}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(M.v),n.Y36(O.w))},e.\u0275cmp=n.Xpm({type:e,selectors:[["log_box_default_template"]],inputs:{log:"log"},decls:19,vars:11,consts:[[1,"log-metadata"],[1,"log-metadata-time"],[1,"v-center"],[1,"log-metadata-category"],["class","badge automation-background","style","margin-left: 4px",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"log-metadata-device"],["class","log-metadata-device-zone",4,"ngIf"],[1,"log-metadata-device-name"],["class","log-metadata-other",4,"ngIf"],["class","event-log-metadata-other",4,"ngIf"],["class","loading-box",4,"ngIf"],[1,"badge","automation-background",2,"margin-left","4px"],[1,"badge","xml-code"],[1,"log-metadata-device-zone"],[1,"log-metadata-other"],[1,"event-log-metadata-other"],[1,"loading-box"],[1,"loader","absolute","log-loader"],["viewBox","25 25 50 50",1,"circular"],["cx","50","cy","50","r","20","fill","none","stroke-width","4","stroke-miterlimit","10",1,"path","log-stroke-color"]],template:function(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"div",0),n.TgZ(2,"div",1),n._uU(3),n.qZA(),n.TgZ(4,"div",2),n.TgZ(5,"div",3),n.TgZ(6,"div"),n._uU(7),n.qZA(),n.qZA(),n.TgZ(8,"div",3),n.YNc(9,sn,2,0,"div",4),n.qZA(),n.qZA(),n.TgZ(10,"div",3),n.YNc(11,_n,3,1,"ng-container",5),n.qZA(),n.TgZ(12,"div",6),n.YNc(13,mn,2,1,"div",7),n.TgZ(14,"div",8),n._uU(15),n.qZA(),n.qZA(),n.YNc(16,xn,2,2,"div",9),n.YNc(17,un,2,1,"div",10),n.qZA(),n.YNc(18,Cn,4,0,"div",11),n.BQk()),2&t){let a;n.xp6(3),n.Oqu(o.log.eventCreated),n.xp6(4),n.Oqu(o.capitalizeFirstLetters(o.log.category)),n.xp6(2),n.Q6J("ngIf",o.isAutomationRule()),n.xp6(2),n.Q6J("ngForOf",o.log.eventCodeList),n.xp6(2),n.Q6J("ngIf",o.log.zone_number),n.xp6(1),n.ekj("no-name",!o.log.name),n.xp6(1),n.Oqu(null!==(a=o.log.name)&&void 0!==a?a:"No Name"),n.xp6(1),n.Q6J("ngIf","procedure"!=o.log.trigger.toLowerCase()),n.xp6(1),n.Q6J("ngIf","procedure"===o.log.trigger.toLowerCase()),n.xp6(1),n.Q6J("ngIf",o.log.isLoading)}},directives:[g.O5,g.sg],styles:['.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:calc(100% - 14px);max-width:1200px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.disabled[_ngcontent-%COMP%]{opacity:.6;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e88e5}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#1e88e5}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box;padding:0 6px}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.has-child[_ngcontent-%COMP%]{cursor:pointer}.has-child[_ngcontent-%COMP%]:hover{background:#f0f0f0}.table-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.table-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.table-container[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px;height:100px}.loader.absolute[_ngcontent-%COMP%]{margin:auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.selectitem[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer;display:flex;flex-direction:row;font-size:14px}.selectitem[_ngcontent-%COMP%]:hover{background-color:#ebebeb}.selectitem.selected[_ngcontent-%COMP%]{background-color:#e0e0e0}.selectitem.label[_ngcontent-%COMP%]{margin:2px 0;max-width:420px;font-size:14px;padding:8px 10px;justify-content:space-between}.select-list[_ngcontent-%COMP%]{position:fixed;width:100%;background:#fff;font-size:14px;border-style:solid;border-width:1px;border-radius:5px;border-color:#dfdfdf;overflow-x:hidden;white-space:nowrap;z-index:500;font-weight:500}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]{width:100%;outline:none;border:0;border-bottom:1px solid rgba(0,0,0,.1);height:30px;text-indent:16px}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]::placeholder{color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%]{display:flex}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{color:#1e90ff;filter:none}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%]{display:flex;margin-right:5px;justify-content:center;color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{font-size:18px}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon.checked[_ngcontent-%COMP%]{color:#1f8fff}.select-list[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{margin:14px}[sortable-column][_ngcontent-%COMP%]{cursor:pointer}','.no-name[_ngcontent-%COMP%]{color:#0000004d}.loading-box[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;color:#fff;position:relative;background-color:#000}.loading[_ngcontent-%COMP%]{width:20px;height:20px;cursor:none}.loader[_ngcontent-%COMP%]{position:absolute;width:20px;height:20px;top:calc(50% - 10px)!important;left:calc(50% - 10px)!important}.loader[_ngcontent-%COMP%] .circular[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:#8792a2}.timeline-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;font-size:.8rem;padding:20px 0}.timeline-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:calc(50%);width:2px;background:rgba(0,0,0,.1);height:calc(100% - 50px)}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:start;margin-bottom:10px;position:relative}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{flex:2;padding:10px;color:#55647b}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area[_ngcontent-%COMP%]{flex:2;padding:10px 10px 10px 20px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;grid-gap:2px;gap:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-id[_ngcontent-%COMP%]{color:#55647b;font-size:12px;margin-bottom:4px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-time[_ngcontent-%COMP%]{opacity:.87;font-size:20px;letter-spacing:-.129px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;font-size:14px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%]{position:relative;height:100px;max-height:150px;min-height:60px;flex:.3}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;position:absolute;top:10px;left:calc(50% - 5px);transform:translate(-50%);z-index:2}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area[_ngcontent-%COMP%]{position:relative;width:20px;height:20px;top:2px;left:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.guard-tour[_ngcontent-%COMP%]{top:-1px;left:0px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.print-mode[_ngcontent-%COMP%]{position:relative;width:16px;height:16px;top:8px;left:8px}.timeline-title[_ngcontent-%COMP%]{display:flex}.timeline-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex:1;height:30px;align-items:center;justify-content:center;background:#F2F6F9;opacity:.87}.no-permission[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;background-color:#000;color:#fff;display:flex;justify-content:center;align-items:center;text-align:center}.no-permission[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{padding:8px}.xml-code[_ngcontent-%COMP%]{background:rgba(30,136,229,.1);color:#0087ec!important}img[_ngcontent-%COMP%]{width:230px;border-radius:5px;margin:10px 0}.log-metadata[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;align-items:flex-end;text-align:end;flex:2}.log-metadata-time[_ngcontent-%COMP%]{opacity:.87;font-size:1.1rem;letter-spacing:-.129px}.log-metadata-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px;display:flex;align-items:center;flex-wrap:wrap;grid-gap:4px;gap:4px;justify-content:end}.log-metadata-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.log-metadata-device-zone[_ngcontent-%COMP%]{font-size:12px;padding:2px 6px;border-radius:3px;background:#E3E8EE}.log-metadata-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.log-metadata-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:8px;gap:8px}.badge[_ngcontent-%COMP%]{padding:2px 5px 3px;border-radius:3px;color:#000}.default[_ngcontent-%COMP%]{background-color:#8b8b8b}.default-background[_ngcontent-%COMP%]{background-color:#e6e6e6}.alarm-video[_ngcontent-%COMP%]{background:#FF6B6B}.alarm-video-background[_ngcontent-%COMP%]{background:#FFE2DD}.armed[_ngcontent-%COMP%]{background:#FF7F16}.armed-background[_ngcontent-%COMP%]{background:#FFE5D0}.disarmed[_ngcontent-%COMP%]{background:#1EA675}.disarmed-background[_ngcontent-%COMP%]{background:#DBEDDB}.audio[_ngcontent-%COMP%]{background:#C34A36}.audio-background[_ngcontent-%COMP%]{background:#F3E2E0}.automation[_ngcontent-%COMP%]{background:#FFA07A}.automation-background[_ngcontent-%COMP%]{background:#FFEDE0}.playback[_ngcontent-%COMP%]{background:#276749}.playback-background[_ngcontent-%COMP%]{background:#C9E4DE}.relay[_ngcontent-%COMP%]{background:#FFC75F}.relay-background[_ngcontent-%COMP%]{background:#FFF5E6}.timelapse[_ngcontent-%COMP%]{background:#276749}.timelapse-background[_ngcontent-%COMP%]{background:#c4f2ee}.operator-viewed[_ngcontent-%COMP%]{background:#F9CB9C}.operator-viewed-background[_ngcontent-%COMP%]{background:#FFF4E8}.disarmed-event[_ngcontent-%COMP%]{background:#5FC0FD}.disarmed-event-background[_ngcontent-%COMP%]{background:#D0EDFF}.verification[_ngcontent-%COMP%]{background:#4D96FF}.verification-background[_ngcontent-%COMP%]{background:#C1E1FF}.video-ai[_ngcontent-%COMP%]{background:#6578D8}.video-ai-background[_ngcontent-%COMP%]{background:#E6E9F8}']}),e})(),"playback event":(()=>{class e{constructor(t,o,a,c,r){this.commonService=t,this.usersService=o,this.eventViewerService=a,this.sanitizer=c,this.helper=r,this.snapshotPermission=!1,this.isBrokenImage=!1,this.IPuserName=""}watch(){this.snapshotPermission$w=this.eventViewerService.snapshotPermission$w.subscribe(t=>this.snapshotPermission=t)}unwatch(){var t;null===(t=this.snapshotPermission$w)||void 0===t||t.unsubscribe()}ngOnInit(){return(0,x.mG)(this,void 0,void 0,function*(){this.watch(),this.log.email&&this.log.ip&&(yield this.getIPUserName()),this.log.imageUrl&&this.safeBlobUrl()})}ngOnDestroy(){this.unwatch()}parseWarningLog(){let t=!1;return 2===this.log.is_send_xml_signal&&(t=!0),this.log.status?this.log.status>300&&(t=!0):t=!0,t}isAutomationRule(t){return t.description.toLowerCase().includes("automation")||this.log.isAutomation}getIPUserName(){var t,o;return(0,x.mG)(this,void 0,void 0,function*(){try{if(!this.log.email||!this.log.user_id||this.log.email!=this.log.ip)return;const a=yield this.helper.me.get_my_dealer_id(),c=this.log.user_id,r=yield this.usersService.getIpMember(a,c).toPromise();this.IPuserName=null!==(o=null===(t=r[0])||void 0===t?void 0:t.name)&&void 0!==o?o:"No Name"}catch(a){console.debug("getIPUserName:>",a)}})}safeBlobUrl(){var t;const o=null===(t=this.log.imageUrl)||void 0===t?void 0:t.changingThisBreaksApplicationSecurity;!o||(this.log.imageUrl=this.sanitizer.bypassSecurityTrustUrl(o))}computedBackground(){return this.log.isLoading?"loading-background":this.snapshotPermission&&"need to upgrade plan"!==this.canIShowImage()&&"expired"!==this.canIShowImage()&&"privacy mode"!==this.canIShowImage()&&"broken image"!==this.canIShowImage()?"image"===this.canIShowImage()?"full-height":"default"===this.canIShowImage()?"playback":void 0:"no-permission"}canIShowImage(){const t=this.helper.dealer_plan.isPremiumPlan()||this.helper.dealer_plan.isResellerPlan();return this.snapshotPermission?t&&this.log.is_expired?"expired":!t&&this.log.is_expired?"need to upgrade plan":this.log.isPrivacy?"privacy mode":this.isBrokenImage?"broken image":this.log.imageUrl?"image":"default":"no permission"}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(M.v),n.Y36(w.f),n.Y36(O.w),n.Y36(f.H7),n.Y36(b.W))},e.\u0275cmp=n.Xpm({type:e,selectors:[["log_box_playback"]],inputs:{log:"log"},decls:23,vars:13,consts:[[1,"log-metadata"],[1,"v-center",2,"gap","8px"],[1,"log-metadata-time"],[1,"log-metadata-category"],[1,"badge","playback-background"],[1,"v-center",2,"gap","8px","flex-wrap","wrap"],["class","badge automation","style","margin-left: 4px",4,"ngIf"],["class","badge verification-background",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"log-metadata-device"],["class","log-metadata-device-zone",4,"ngIf"],[1,"log-metadata-device-name"],[1,"log-metadata-other"],["class","flex v-center","style","justify-content: end;",4,"ngIf"],["class","loading-box",4,"ngIf"],["class","flex","style","justify-content: end;",3,"ngSwitch",4,"ngIf"],[1,"badge","automation",2,"margin-left","4px"],[1,"badge","verification-background"],[1,"badge","xml-code"],[1,"log-metadata-device-zone"],[1,"flex","v-center",2,"justify-content","end"],[1,"badge","operator-viewed-background"],["style","margin-left: 8px",4,"ngIf"],[2,"margin-left","8px"],[1,"loading-box"],[1,"loader","absolute","log-loader"],["viewBox","25 25 50 50",1,"circular"],["cx","50","cy","50","r","20","fill","none","stroke-width","4","stroke-miterlimit","10",1,"path","log-stroke-color"],[1,"flex",2,"justify-content","end",3,"ngSwitch"],["class","no-permission",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"no-permission"],[3,"src","error"]],template:function(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"div",0),n.TgZ(2,"div",1),n.TgZ(3,"div",2),n._uU(4),n.qZA(),n.TgZ(5,"div",3),n.TgZ(6,"div",4),n._uU(7,"Playback Video"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(8,"div",5),n.YNc(9,On,2,0,"div",6),n.YNc(10,Mn,2,0,"div",7),n.qZA(),n.TgZ(11,"div",3),n.YNc(12,bn,3,1,"ng-container",8),n.qZA(),n.TgZ(13,"div",9),n.YNc(14,fn,2,1,"div",10),n.TgZ(15,"div",11),n._uU(16),n.qZA(),n.qZA(),n.TgZ(17,"div",12),n.YNc(18,yn,5,2,"div",13),n.TgZ(19,"div"),n._uU(20),n.qZA(),n.qZA(),n.qZA(),n.YNc(21,wn,4,0,"div",14),n.YNc(22,En,8,7,"div",15),n.BQk()),2&t){let a;n.xp6(4),n.Oqu(o.log.eventCreated),n.xp6(5),n.Q6J("ngIf",o.isAutomationRule(o.log)),n.xp6(1),n.Q6J("ngIf",o.log.isHasVerification),n.xp6(2),n.Q6J("ngForOf",o.log.eventCodeList),n.xp6(2),n.Q6J("ngIf",o.log.zone_number),n.xp6(1),n.ekj("no-name",!o.log.name),n.xp6(1),n.Oqu(null!==(a=o.log.name)&&void 0!==a?a:"No Name"),n.xp6(2),n.Q6J("ngIf",o.log.email),n.xp6(2),n.AsE("",o.log.status_text," by ",o.log.trigger,""),n.xp6(1),n.Q6J("ngIf",o.log.isLoading),n.xp6(1),n.Q6J("ngIf",!o.log.isLoading)}},directives:[g.O5,g.sg,g.RF,g.n9,g.ED],styles:['.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:calc(100% - 14px);max-width:1200px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.disabled[_ngcontent-%COMP%]{opacity:.6;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e88e5}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#1e88e5}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box;padding:0 6px}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.has-child[_ngcontent-%COMP%]{cursor:pointer}.has-child[_ngcontent-%COMP%]:hover{background:#f0f0f0}.table-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.table-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.table-container[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px;height:100px}.loader.absolute[_ngcontent-%COMP%]{margin:auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.selectitem[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer;display:flex;flex-direction:row;font-size:14px}.selectitem[_ngcontent-%COMP%]:hover{background-color:#ebebeb}.selectitem.selected[_ngcontent-%COMP%]{background-color:#e0e0e0}.selectitem.label[_ngcontent-%COMP%]{margin:2px 0;max-width:420px;font-size:14px;padding:8px 10px;justify-content:space-between}.select-list[_ngcontent-%COMP%]{position:fixed;width:100%;background:#fff;font-size:14px;border-style:solid;border-width:1px;border-radius:5px;border-color:#dfdfdf;overflow-x:hidden;white-space:nowrap;z-index:500;font-weight:500}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]{width:100%;outline:none;border:0;border-bottom:1px solid rgba(0,0,0,.1);height:30px;text-indent:16px}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]::placeholder{color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%]{display:flex}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{color:#1e90ff;filter:none}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%]{display:flex;margin-right:5px;justify-content:center;color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{font-size:18px}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon.checked[_ngcontent-%COMP%]{color:#1f8fff}.select-list[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{margin:14px}[sortable-column][_ngcontent-%COMP%]{cursor:pointer}','.no-name[_ngcontent-%COMP%]{color:#0000004d}.loading-box[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;color:#fff;position:relative;background-color:#000}.loading[_ngcontent-%COMP%]{width:20px;height:20px;cursor:none}.loader[_ngcontent-%COMP%]{position:absolute;width:20px;height:20px;top:calc(50% - 10px)!important;left:calc(50% - 10px)!important}.loader[_ngcontent-%COMP%] .circular[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:#8792a2}.timeline-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;font-size:.8rem;padding:20px 0}.timeline-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:calc(50%);width:2px;background:rgba(0,0,0,.1);height:calc(100% - 50px)}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:start;margin-bottom:10px;position:relative}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{flex:2;padding:10px;color:#55647b}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area[_ngcontent-%COMP%]{flex:2;padding:10px 10px 10px 20px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;grid-gap:2px;gap:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-id[_ngcontent-%COMP%]{color:#55647b;font-size:12px;margin-bottom:4px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-time[_ngcontent-%COMP%]{opacity:.87;font-size:20px;letter-spacing:-.129px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;font-size:14px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%]{position:relative;height:100px;max-height:150px;min-height:60px;flex:.3}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;position:absolute;top:10px;left:calc(50% - 5px);transform:translate(-50%);z-index:2}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area[_ngcontent-%COMP%]{position:relative;width:20px;height:20px;top:2px;left:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.guard-tour[_ngcontent-%COMP%]{top:-1px;left:0px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.print-mode[_ngcontent-%COMP%]{position:relative;width:16px;height:16px;top:8px;left:8px}.timeline-title[_ngcontent-%COMP%]{display:flex}.timeline-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex:1;height:30px;align-items:center;justify-content:center;background:#F2F6F9;opacity:.87}.no-permission[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;background-color:#000;color:#fff;display:flex;justify-content:center;align-items:center;text-align:center}.no-permission[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{padding:8px}.xml-code[_ngcontent-%COMP%]{background:rgba(30,136,229,.1);color:#0087ec!important}img[_ngcontent-%COMP%]{width:230px;border-radius:5px;margin:10px 0}.log-metadata[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;align-items:flex-end;text-align:end;flex:2}.log-metadata-time[_ngcontent-%COMP%]{opacity:.87;font-size:1.1rem;letter-spacing:-.129px}.log-metadata-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px;display:flex;align-items:center;flex-wrap:wrap;grid-gap:4px;gap:4px;justify-content:end}.log-metadata-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.log-metadata-device-zone[_ngcontent-%COMP%]{font-size:12px;padding:2px 6px;border-radius:3px;background:#E3E8EE}.log-metadata-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.log-metadata-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:8px;gap:8px}.badge[_ngcontent-%COMP%]{padding:2px 5px 3px;border-radius:3px;color:#000}.default[_ngcontent-%COMP%]{background-color:#8b8b8b}.default-background[_ngcontent-%COMP%]{background-color:#e6e6e6}.alarm-video[_ngcontent-%COMP%]{background:#FF6B6B}.alarm-video-background[_ngcontent-%COMP%]{background:#FFE2DD}.armed[_ngcontent-%COMP%]{background:#FF7F16}.armed-background[_ngcontent-%COMP%]{background:#FFE5D0}.disarmed[_ngcontent-%COMP%]{background:#1EA675}.disarmed-background[_ngcontent-%COMP%]{background:#DBEDDB}.audio[_ngcontent-%COMP%]{background:#C34A36}.audio-background[_ngcontent-%COMP%]{background:#F3E2E0}.automation[_ngcontent-%COMP%]{background:#FFA07A}.automation-background[_ngcontent-%COMP%]{background:#FFEDE0}.playback[_ngcontent-%COMP%]{background:#276749}.playback-background[_ngcontent-%COMP%]{background:#C9E4DE}.relay[_ngcontent-%COMP%]{background:#FFC75F}.relay-background[_ngcontent-%COMP%]{background:#FFF5E6}.timelapse[_ngcontent-%COMP%]{background:#276749}.timelapse-background[_ngcontent-%COMP%]{background:#c4f2ee}.operator-viewed[_ngcontent-%COMP%]{background:#F9CB9C}.operator-viewed-background[_ngcontent-%COMP%]{background:#FFF4E8}.disarmed-event[_ngcontent-%COMP%]{background:#5FC0FD}.disarmed-event-background[_ngcontent-%COMP%]{background:#D0EDFF}.verification[_ngcontent-%COMP%]{background:#4D96FF}.verification-background[_ngcontent-%COMP%]{background:#C1E1FF}.video-ai[_ngcontent-%COMP%]{background:#6578D8}.video-ai-background[_ngcontent-%COMP%]{background:#E6E9F8}']}),e})(),relay:(()=>{class e{constructor(t){this.commonService=t}isAutomationRule(t){return t.description.toLowerCase().includes("automation")||this.log.isAutomation}relayIcon(t){var o,a,c;if(!t||"string"!=typeof t)return"relay";const r=JSON.parse(t);return null!==(c=null===(a=null===(o=null==r?void 0:r.info)||void 0===o?void 0:o.relay)||void 0===a?void 0:a.icon)&&void 0!==c?c:"relay"}capitalizeFirstLetter(t){if(t&&"string"==typeof t)return t.charAt(0).toUpperCase()+t.slice(1)}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(M.v))},e.\u0275cmp=n.Xpm({type:e,selectors:[["log_box_relay"]],inputs:{log:"log",timezone:"timezone"},decls:17,vars:7,consts:[[1,"log-metadata"],[1,"v-center",2,"gap","8px"],[1,"log-metadata-time"],[1,"log-metadata-category"],[1,"badge","relay-background"],["class","badge automation-background","style","margin-left: 4px",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"log-metadata-device"],[1,"log-metadata-device-name"],[1,"log-metadata-other"],[1,"badge","automation-background",2,"margin-left","4px"],[1,"badge","xml-code"]],template:function(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"div",0),n.TgZ(2,"div",1),n.TgZ(3,"div",2),n._uU(4),n.qZA(),n.TgZ(5,"div",3),n.TgZ(6,"div",4),n._uU(7,"Manual Relay Event"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(8,"div",3),n.YNc(9,Sn,2,0,"div",5),n.qZA(),n.TgZ(10,"div",3),n.YNc(11,Nn,3,1,"ng-container",6),n.qZA(),n.TgZ(12,"div",7),n.TgZ(13,"div",8),n._uU(14),n.qZA(),n.qZA(),n.TgZ(15,"div",9),n._uU(16),n.qZA(),n.qZA(),n.BQk()),2&t){let a;n.xp6(4),n.Oqu(o.log.eventCreated),n.xp6(5),n.Q6J("ngIf",o.isAutomationRule(o.log)),n.xp6(2),n.Q6J("ngForOf",o.log.eventCodeList),n.xp6(2),n.ekj("no-name",!o.log.name),n.xp6(1),n.Oqu(null!==(a=o.log.name)&&void 0!==a?a:"No Name"),n.xp6(2),n.Oqu(o.capitalizeFirstLetter(o.log.status_text))}},directives:[g.O5,g.sg],styles:['.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:calc(100% - 14px);max-width:1200px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.disabled[_ngcontent-%COMP%]{opacity:.6;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e88e5}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#1e88e5}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box;padding:0 6px}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.has-child[_ngcontent-%COMP%]{cursor:pointer}.has-child[_ngcontent-%COMP%]:hover{background:#f0f0f0}.table-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.table-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.table-container[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px;height:100px}.loader.absolute[_ngcontent-%COMP%]{margin:auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.selectitem[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer;display:flex;flex-direction:row;font-size:14px}.selectitem[_ngcontent-%COMP%]:hover{background-color:#ebebeb}.selectitem.selected[_ngcontent-%COMP%]{background-color:#e0e0e0}.selectitem.label[_ngcontent-%COMP%]{margin:2px 0;max-width:420px;font-size:14px;padding:8px 10px;justify-content:space-between}.select-list[_ngcontent-%COMP%]{position:fixed;width:100%;background:#fff;font-size:14px;border-style:solid;border-width:1px;border-radius:5px;border-color:#dfdfdf;overflow-x:hidden;white-space:nowrap;z-index:500;font-weight:500}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]{width:100%;outline:none;border:0;border-bottom:1px solid rgba(0,0,0,.1);height:30px;text-indent:16px}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]::placeholder{color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%]{display:flex}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{color:#1e90ff;filter:none}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%]{display:flex;margin-right:5px;justify-content:center;color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{font-size:18px}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon.checked[_ngcontent-%COMP%]{color:#1f8fff}.select-list[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{margin:14px}[sortable-column][_ngcontent-%COMP%]{cursor:pointer}','.no-name[_ngcontent-%COMP%]{color:#0000004d}.loading-box[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;color:#fff;position:relative;background-color:#000}.loading[_ngcontent-%COMP%]{width:20px;height:20px;cursor:none}.loader[_ngcontent-%COMP%]{position:absolute;width:20px;height:20px;top:calc(50% - 10px)!important;left:calc(50% - 10px)!important}.loader[_ngcontent-%COMP%] .circular[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:#8792a2}.timeline-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;font-size:.8rem;padding:20px 0}.timeline-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:calc(50%);width:2px;background:rgba(0,0,0,.1);height:calc(100% - 50px)}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:start;margin-bottom:10px;position:relative}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{flex:2;padding:10px;color:#55647b}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area[_ngcontent-%COMP%]{flex:2;padding:10px 10px 10px 20px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;grid-gap:2px;gap:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-id[_ngcontent-%COMP%]{color:#55647b;font-size:12px;margin-bottom:4px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-time[_ngcontent-%COMP%]{opacity:.87;font-size:20px;letter-spacing:-.129px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;font-size:14px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%]{position:relative;height:100px;max-height:150px;min-height:60px;flex:.3}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;position:absolute;top:10px;left:calc(50% - 5px);transform:translate(-50%);z-index:2}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area[_ngcontent-%COMP%]{position:relative;width:20px;height:20px;top:2px;left:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.guard-tour[_ngcontent-%COMP%]{top:-1px;left:0px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.print-mode[_ngcontent-%COMP%]{position:relative;width:16px;height:16px;top:8px;left:8px}.timeline-title[_ngcontent-%COMP%]{display:flex}.timeline-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex:1;height:30px;align-items:center;justify-content:center;background:#F2F6F9;opacity:.87}.no-permission[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;background-color:#000;color:#fff;display:flex;justify-content:center;align-items:center;text-align:center}.no-permission[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{padding:8px}.xml-code[_ngcontent-%COMP%]{background:rgba(30,136,229,.1);color:#0087ec!important}img[_ngcontent-%COMP%]{width:230px;border-radius:5px;margin:10px 0}.log-metadata[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;align-items:flex-end;text-align:end;flex:2}.log-metadata-time[_ngcontent-%COMP%]{opacity:.87;font-size:1.1rem;letter-spacing:-.129px}.log-metadata-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px;display:flex;align-items:center;flex-wrap:wrap;grid-gap:4px;gap:4px;justify-content:end}.log-metadata-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.log-metadata-device-zone[_ngcontent-%COMP%]{font-size:12px;padding:2px 6px;border-radius:3px;background:#E3E8EE}.log-metadata-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.log-metadata-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:8px;gap:8px}.badge[_ngcontent-%COMP%]{padding:2px 5px 3px;border-radius:3px;color:#000}.default[_ngcontent-%COMP%]{background-color:#8b8b8b}.default-background[_ngcontent-%COMP%]{background-color:#e6e6e6}.alarm-video[_ngcontent-%COMP%]{background:#FF6B6B}.alarm-video-background[_ngcontent-%COMP%]{background:#FFE2DD}.armed[_ngcontent-%COMP%]{background:#FF7F16}.armed-background[_ngcontent-%COMP%]{background:#FFE5D0}.disarmed[_ngcontent-%COMP%]{background:#1EA675}.disarmed-background[_ngcontent-%COMP%]{background:#DBEDDB}.audio[_ngcontent-%COMP%]{background:#C34A36}.audio-background[_ngcontent-%COMP%]{background:#F3E2E0}.automation[_ngcontent-%COMP%]{background:#FFA07A}.automation-background[_ngcontent-%COMP%]{background:#FFEDE0}.playback[_ngcontent-%COMP%]{background:#276749}.playback-background[_ngcontent-%COMP%]{background:#C9E4DE}.relay[_ngcontent-%COMP%]{background:#FFC75F}.relay-background[_ngcontent-%COMP%]{background:#FFF5E6}.timelapse[_ngcontent-%COMP%]{background:#276749}.timelapse-background[_ngcontent-%COMP%]{background:#c4f2ee}.operator-viewed[_ngcontent-%COMP%]{background:#F9CB9C}.operator-viewed-background[_ngcontent-%COMP%]{background:#FFF4E8}.disarmed-event[_ngcontent-%COMP%]{background:#5FC0FD}.disarmed-event-background[_ngcontent-%COMP%]{background:#D0EDFF}.verification[_ngcontent-%COMP%]{background:#4D96FF}.verification-background[_ngcontent-%COMP%]{background:#C1E1FF}.video-ai[_ngcontent-%COMP%]{background:#6578D8}.video-ai-background[_ngcontent-%COMP%]{background:#E6E9F8}']}),e})(),"timelapse event":(()=>{class e{constructor(t,o,a,c,r){this.commonService=t,this.eventViewerService=o,this.usersService=a,this.sanitizer=c,this.helper=r,this.snapshotPermission=!1,this.isBrokenImage=!1,this.IPuserName=""}watch(){this.snapshotPermission$w=this.eventViewerService.snapshotPermission$w.subscribe(t=>this.snapshotPermission=t)}unwatch(){var t;null===(t=this.snapshotPermission$w)||void 0===t||t.unsubscribe()}ngOnInit(){return(0,x.mG)(this,void 0,void 0,function*(){this.watch(),this.log.email&&this.log.ip&&(yield this.getIPUserName()),this.log.imageUrl&&this.safeBlobUrl()})}ngOnDestroy(){this.unwatch()}parseWarningLog(){let t=!1;return 2===this.log.is_send_xml_signal&&(t=!0),this.log.status?this.log.status>300&&(t=!0):t=!0,t}isAutomationRule(t){return t.description.toLowerCase().includes("automation")}getIPUserName(){var t,o;return(0,x.mG)(this,void 0,void 0,function*(){try{if(!this.log.email||!this.log.user_id||this.log.email!=this.log.ip)return;const a=yield this.helper.me.get_my_dealer_id(),c=this.log.user_id,r=yield this.usersService.getIpMember(a,c).toPromise();this.IPuserName=null!==(o=null===(t=r[0])||void 0===t?void 0:t.name)&&void 0!==o?o:"No Name"}catch(a){console.debug("getIPUserName:>",a)}})}safeBlobUrl(){var t;const o=null===(t=this.log.imageUrl)||void 0===t?void 0:t.changingThisBreaksApplicationSecurity;!o||(this.log.imageUrl=this.sanitizer.bypassSecurityTrustUrl(o))}computedBackground(){return this.log.isLoading?"loading-background":this.snapshotPermission&&"need to upgrade plan"!==this.canIShowImage()&&"expired"!==this.canIShowImage()&&"privacy mode"!==this.canIShowImage()&&"broken image"!==this.canIShowImage()?"image"===this.canIShowImage()?"full-height":"default"===this.canIShowImage()?"timelapse":void 0:"no-permission"}canIShowImage(){const t=this.helper.dealer_plan.isPremiumPlan()||this.helper.dealer_plan.isResellerPlan();return this.snapshotPermission?t&&this.log.is_expired?"expired":!t&&this.log.is_expired?"need to upgrade plan":this.log.isPrivacy?"privacy mode":this.isBrokenImage?"broken image":this.log.imageUrl?"image":"default":"no permission"}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(M.v),n.Y36(O.w),n.Y36(w.f),n.Y36(f.H7),n.Y36(b.W))},e.\u0275cmp=n.Xpm({type:e,selectors:[["log_box_timelapse"]],inputs:{log:"log"},decls:20,vars:10,consts:[[1,"log-metadata"],[1,"v-center",2,"gap","8px"],[1,"log-metadata-time"],[1,"log-metadata-category"],[1,"badge","timelapse-background"],["class","badge automation-background","style","margin-left: 4px",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"log-metadata-device"],["class","log-metadata-device-zone",4,"ngIf"],[1,"log-metadata-device-name"],[1,"log-metadata-other"],["class","flex v-center","style","justify-content: end;",4,"ngIf"],["class","loading-box",4,"ngIf"],["class","flex","style","justify-content: end;",3,"ngSwitch",4,"ngIf"],[1,"badge","automation-background",2,"margin-left","4px"],[1,"badge","xml-code"],[1,"log-metadata-device-zone"],[1,"flex","v-center",2,"justify-content","end"],[1,"badge","operator-viewed-background"],["style","margin-left: 8px",4,"ngIf"],[2,"margin-left","8px"],[1,"loading-box"],[1,"loader","absolute","log-loader"],["viewBox","25 25 50 50",1,"circular"],["cx","50","cy","50","r","20","fill","none","stroke-width","4","stroke-miterlimit","10",1,"path","log-stroke-color"],[1,"flex",2,"justify-content","end",3,"ngSwitch"],["class","no-permission",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"no-permission"],[3,"src","error"]],template:function(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"div",0),n.TgZ(2,"div",1),n.TgZ(3,"div",2),n._uU(4),n.qZA(),n.TgZ(5,"div",3),n.TgZ(6,"div",4),n._uU(7,"Time-Lapse Event"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(8,"div",3),n.YNc(9,Dn,2,0,"div",5),n.qZA(),n.TgZ(10,"div",3),n.YNc(11,Bn,3,1,"ng-container",6),n.qZA(),n.TgZ(12,"div",7),n.YNc(13,Ln,2,1,"div",8),n.TgZ(14,"div",9),n._uU(15),n.qZA(),n.qZA(),n.TgZ(16,"div",10),n.YNc(17,Jn,5,2,"div",11),n.qZA(),n.qZA(),n.YNc(18,jn,4,0,"div",12),n.YNc(19,nt,9,8,"div",13),n.BQk()),2&t){let a;n.xp6(4),n.Oqu(o.log.eventCreated),n.xp6(5),n.Q6J("ngIf",o.isAutomationRule(o.log)),n.xp6(2),n.Q6J("ngForOf",o.log.eventCodeList),n.xp6(2),n.Q6J("ngIf",o.log.zone_number),n.xp6(1),n.ekj("no-name",!o.log.name),n.xp6(1),n.Oqu(null!==(a=o.log.name)&&void 0!==a?a:"No Name"),n.xp6(2),n.Q6J("ngIf",o.log.email),n.xp6(1),n.Q6J("ngIf",o.log.isLoading),n.xp6(1),n.Q6J("ngIf",!o.log.isLoading)}},directives:[g.O5,g.sg,g.RF,g.n9,g.ED],styles:['.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:calc(100% - 14px);max-width:1200px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.disabled[_ngcontent-%COMP%]{opacity:.6;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e88e5}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#1e88e5}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box;padding:0 6px}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.has-child[_ngcontent-%COMP%]{cursor:pointer}.has-child[_ngcontent-%COMP%]:hover{background:#f0f0f0}.table-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.table-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.table-container[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px;height:100px}.loader.absolute[_ngcontent-%COMP%]{margin:auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.selectitem[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer;display:flex;flex-direction:row;font-size:14px}.selectitem[_ngcontent-%COMP%]:hover{background-color:#ebebeb}.selectitem.selected[_ngcontent-%COMP%]{background-color:#e0e0e0}.selectitem.label[_ngcontent-%COMP%]{margin:2px 0;max-width:420px;font-size:14px;padding:8px 10px;justify-content:space-between}.select-list[_ngcontent-%COMP%]{position:fixed;width:100%;background:#fff;font-size:14px;border-style:solid;border-width:1px;border-radius:5px;border-color:#dfdfdf;overflow-x:hidden;white-space:nowrap;z-index:500;font-weight:500}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]{width:100%;outline:none;border:0;border-bottom:1px solid rgba(0,0,0,.1);height:30px;text-indent:16px}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]::placeholder{color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%]{display:flex}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{color:#1e90ff;filter:none}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%]{display:flex;margin-right:5px;justify-content:center;color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{font-size:18px}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon.checked[_ngcontent-%COMP%]{color:#1f8fff}.select-list[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{margin:14px}[sortable-column][_ngcontent-%COMP%]{cursor:pointer}','.no-name[_ngcontent-%COMP%]{color:#0000004d}.loading-box[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;color:#fff;position:relative;background-color:#000}.loading[_ngcontent-%COMP%]{width:20px;height:20px;cursor:none}.loader[_ngcontent-%COMP%]{position:absolute;width:20px;height:20px;top:calc(50% - 10px)!important;left:calc(50% - 10px)!important}.loader[_ngcontent-%COMP%] .circular[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:#8792a2}.timeline-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;font-size:.8rem;padding:20px 0}.timeline-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:calc(50%);width:2px;background:rgba(0,0,0,.1);height:calc(100% - 50px)}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:start;margin-bottom:10px;position:relative}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{flex:2;padding:10px;color:#55647b}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area[_ngcontent-%COMP%]{flex:2;padding:10px 10px 10px 20px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;grid-gap:2px;gap:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-id[_ngcontent-%COMP%]{color:#55647b;font-size:12px;margin-bottom:4px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-time[_ngcontent-%COMP%]{opacity:.87;font-size:20px;letter-spacing:-.129px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;font-size:14px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%]{position:relative;height:100px;max-height:150px;min-height:60px;flex:.3}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;position:absolute;top:10px;left:calc(50% - 5px);transform:translate(-50%);z-index:2}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area[_ngcontent-%COMP%]{position:relative;width:20px;height:20px;top:2px;left:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.guard-tour[_ngcontent-%COMP%]{top:-1px;left:0px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.print-mode[_ngcontent-%COMP%]{position:relative;width:16px;height:16px;top:8px;left:8px}.timeline-title[_ngcontent-%COMP%]{display:flex}.timeline-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex:1;height:30px;align-items:center;justify-content:center;background:#F2F6F9;opacity:.87}.no-permission[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;background-color:#000;color:#fff;display:flex;justify-content:center;align-items:center;text-align:center}.no-permission[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{padding:8px}.xml-code[_ngcontent-%COMP%]{background:rgba(30,136,229,.1);color:#0087ec!important}img[_ngcontent-%COMP%]{width:230px;border-radius:5px;margin:10px 0}.log-metadata[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;align-items:flex-end;text-align:end;flex:2}.log-metadata-time[_ngcontent-%COMP%]{opacity:.87;font-size:1.1rem;letter-spacing:-.129px}.log-metadata-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px;display:flex;align-items:center;flex-wrap:wrap;grid-gap:4px;gap:4px;justify-content:end}.log-metadata-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.log-metadata-device-zone[_ngcontent-%COMP%]{font-size:12px;padding:2px 6px;border-radius:3px;background:#E3E8EE}.log-metadata-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.log-metadata-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:8px;gap:8px}.badge[_ngcontent-%COMP%]{padding:2px 5px 3px;border-radius:3px;color:#000}.default[_ngcontent-%COMP%]{background-color:#8b8b8b}.default-background[_ngcontent-%COMP%]{background-color:#e6e6e6}.alarm-video[_ngcontent-%COMP%]{background:#FF6B6B}.alarm-video-background[_ngcontent-%COMP%]{background:#FFE2DD}.armed[_ngcontent-%COMP%]{background:#FF7F16}.armed-background[_ngcontent-%COMP%]{background:#FFE5D0}.disarmed[_ngcontent-%COMP%]{background:#1EA675}.disarmed-background[_ngcontent-%COMP%]{background:#DBEDDB}.audio[_ngcontent-%COMP%]{background:#C34A36}.audio-background[_ngcontent-%COMP%]{background:#F3E2E0}.automation[_ngcontent-%COMP%]{background:#FFA07A}.automation-background[_ngcontent-%COMP%]{background:#FFEDE0}.playback[_ngcontent-%COMP%]{background:#276749}.playback-background[_ngcontent-%COMP%]{background:#C9E4DE}.relay[_ngcontent-%COMP%]{background:#FFC75F}.relay-background[_ngcontent-%COMP%]{background:#FFF5E6}.timelapse[_ngcontent-%COMP%]{background:#276749}.timelapse-background[_ngcontent-%COMP%]{background:#c4f2ee}.operator-viewed[_ngcontent-%COMP%]{background:#F9CB9C}.operator-viewed-background[_ngcontent-%COMP%]{background:#FFF4E8}.disarmed-event[_ngcontent-%COMP%]{background:#5FC0FD}.disarmed-event-background[_ngcontent-%COMP%]{background:#D0EDFF}.verification[_ngcontent-%COMP%]{background:#4D96FF}.verification-background[_ngcontent-%COMP%]{background:#C1E1FF}.video-ai[_ngcontent-%COMP%]{background:#6578D8}.video-ai-background[_ngcontent-%COMP%]{background:#E6E9F8}']}),e})(),verification:(()=>{class e{constructor(t,o,a){this.commonService=t,this.eventViewerService=o,this.helper=a,this.isSelected=!1,this.isBuildReportMode=!1,this.snapshotPermission=!1,this.isBrokenImage=!1}watch(){this.snapshotPermission$w=this.eventViewerService.snapshotPermission$w.subscribe(t=>this.snapshotPermission=t)}unwatch(){var t;null===(t=this.snapshotPermission$w)||void 0===t||t.unsubscribe()}ngOnInit(){this.watch()}ngOnDestroy(){this.unwatch()}parseWarningLog(){let t=!1;return 2===this.log.is_send_xml_signal&&(t=!0),this.log.status?this.log.status>300&&(t=!0):t=!0,t}isAutomationRule(t){return t.description.toLowerCase().includes("automation")}computedBackground(){return this.log.isLoading?"loading-background":this.snapshotPermission&&"need to upgrade plan"!==this.canIShowImage()&&"expired"!==this.canIShowImage()&&"privacy mode"!==this.canIShowImage()&&"broken image"!==this.canIShowImage()?"image"===this.canIShowImage()?"full-height":"broken video"===this.canIShowImage()?"no-permission":"video"===this.canIShowImage()?"full-height":"default"===this.canIShowImage()?"verification":void 0:"no-permission"}canIShowImage(){const t=this.helper.dealer_plan.isPremiumPlan()||this.helper.dealer_plan.isResellerPlan();return this.snapshotPermission?t&&this.log.is_expired?"expired":!t&&this.log.is_expired?"need to upgrade plan":this.log.isPrivacy?"privacy mode":this.isBrokenImage?"broken image":this.log.imageUrl?"image":this.log.videoUrl&&!this.log.safetyVideoUrl?"broken video":this.log.safetyVideoUrl?"video":"default":"no permission"}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(M.v),n.Y36(O.w),n.Y36(b.W))},e.\u0275cmp=n.Xpm({type:e,selectors:[["log_box_verification"]],inputs:{log:"log",timezone:"timezone",toolbar:"toolbar"},decls:17,vars:9,consts:[[1,"log-metadata"],[1,"v-center",2,"gap","8px"],[1,"log-metadata-time"],[1,"log-metadata-category"],[1,"badge","verification-background"],[4,"ngFor","ngForOf"],[1,"log-metadata-device"],[1,"log-metadata-device-zone"],[1,"log-metadata-device-name"],[1,"log-metadata-other"],["class","flex","style","justify-content: end;",3,"ngSwitch",4,"ngIf"],[1,"badge","xml-code"],[1,"flex",2,"justify-content","end",3,"ngSwitch"],["class","no-permission",4,"ngSwitchCase"],[4,"ngSwitchCase"],["style","height: 168px;",4,"ngSwitchDefault"],[1,"no-permission"],[3,"src","error"],[2,"height","168px"],[1,"material-icons",2,"color","#4D96FF","font-size","32px"]],template:function(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"div",0),n.TgZ(2,"div",1),n.TgZ(3,"div",2),n._uU(4),n.qZA(),n.TgZ(5,"div",3),n.TgZ(6,"div",4),n._uU(7,"Verification"),n.qZA(),n.YNc(8,et,3,1,"ng-container",5),n.qZA(),n.qZA(),n.TgZ(9,"div",6),n.TgZ(10,"div",7),n._uU(11),n.qZA(),n.TgZ(12,"div",8),n._uU(13),n.qZA(),n.qZA(),n.TgZ(14,"div",9),n._uU(15),n.qZA(),n.qZA(),n.YNc(16,pt,9,8,"div",10),n.BQk()),2&t){let a;n.xp6(4),n.Oqu(o.log.eventCreated),n.xp6(4),n.Q6J("ngForOf",o.log.eventCodeList),n.xp6(3),n.Oqu(o.log.zone_number),n.xp6(1),n.ekj("no-name",!o.log.name),n.xp6(1),n.Oqu(null!==(a=o.log.name)&&void 0!==a?a:"No Name"),n.xp6(2),n.AsE("",o.log.email," - ",o.log.status_text,""),n.xp6(1),n.Q6J("ngIf",!o.log.isLoading)}},directives:[g.sg,g.O5,g.RF,g.n9,g.ED],styles:['.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:calc(100% - 14px);max-width:1200px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.disabled[_ngcontent-%COMP%]{opacity:.6;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e88e5}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#1e88e5}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box;padding:0 6px}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.has-child[_ngcontent-%COMP%]{cursor:pointer}.has-child[_ngcontent-%COMP%]:hover{background:#f0f0f0}.table-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.table-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.table-container[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px;height:100px}.loader.absolute[_ngcontent-%COMP%]{margin:auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.selectitem[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer;display:flex;flex-direction:row;font-size:14px}.selectitem[_ngcontent-%COMP%]:hover{background-color:#ebebeb}.selectitem.selected[_ngcontent-%COMP%]{background-color:#e0e0e0}.selectitem.label[_ngcontent-%COMP%]{margin:2px 0;max-width:420px;font-size:14px;padding:8px 10px;justify-content:space-between}.select-list[_ngcontent-%COMP%]{position:fixed;width:100%;background:#fff;font-size:14px;border-style:solid;border-width:1px;border-radius:5px;border-color:#dfdfdf;overflow-x:hidden;white-space:nowrap;z-index:500;font-weight:500}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]{width:100%;outline:none;border:0;border-bottom:1px solid rgba(0,0,0,.1);height:30px;text-indent:16px}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]::placeholder{color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%]{display:flex}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{color:#1e90ff;filter:none}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%]{display:flex;margin-right:5px;justify-content:center;color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{font-size:18px}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon.checked[_ngcontent-%COMP%]{color:#1f8fff}.select-list[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{margin:14px}[sortable-column][_ngcontent-%COMP%]{cursor:pointer}','.no-name[_ngcontent-%COMP%]{color:#0000004d}.loading-box[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;color:#fff;position:relative;background-color:#000}.loading[_ngcontent-%COMP%]{width:20px;height:20px;cursor:none}.loader[_ngcontent-%COMP%]{position:absolute;width:20px;height:20px;top:calc(50% - 10px)!important;left:calc(50% - 10px)!important}.loader[_ngcontent-%COMP%] .circular[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:#8792a2}.timeline-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;font-size:.8rem;padding:20px 0}.timeline-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:calc(50%);width:2px;background:rgba(0,0,0,.1);height:calc(100% - 50px)}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:start;margin-bottom:10px;position:relative}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{flex:2;padding:10px;color:#55647b}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area[_ngcontent-%COMP%]{flex:2;padding:10px 10px 10px 20px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;grid-gap:2px;gap:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-id[_ngcontent-%COMP%]{color:#55647b;font-size:12px;margin-bottom:4px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-time[_ngcontent-%COMP%]{opacity:.87;font-size:20px;letter-spacing:-.129px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;font-size:14px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%]{position:relative;height:100px;max-height:150px;min-height:60px;flex:.3}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;position:absolute;top:10px;left:calc(50% - 5px);transform:translate(-50%);z-index:2}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area[_ngcontent-%COMP%]{position:relative;width:20px;height:20px;top:2px;left:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.guard-tour[_ngcontent-%COMP%]{top:-1px;left:0px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.print-mode[_ngcontent-%COMP%]{position:relative;width:16px;height:16px;top:8px;left:8px}.timeline-title[_ngcontent-%COMP%]{display:flex}.timeline-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex:1;height:30px;align-items:center;justify-content:center;background:#F2F6F9;opacity:.87}.no-permission[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;background-color:#000;color:#fff;display:flex;justify-content:center;align-items:center;text-align:center}.no-permission[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{padding:8px}.xml-code[_ngcontent-%COMP%]{background:rgba(30,136,229,.1);color:#0087ec!important}img[_ngcontent-%COMP%]{width:230px;border-radius:5px;margin:10px 0}.log-metadata[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;align-items:flex-end;text-align:end;flex:2}.log-metadata-time[_ngcontent-%COMP%]{opacity:.87;font-size:1.1rem;letter-spacing:-.129px}.log-metadata-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px;display:flex;align-items:center;flex-wrap:wrap;grid-gap:4px;gap:4px;justify-content:end}.log-metadata-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.log-metadata-device-zone[_ngcontent-%COMP%]{font-size:12px;padding:2px 6px;border-radius:3px;background:#E3E8EE}.log-metadata-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.log-metadata-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:8px;gap:8px}.badge[_ngcontent-%COMP%]{padding:2px 5px 3px;border-radius:3px;color:#000}.default[_ngcontent-%COMP%]{background-color:#8b8b8b}.default-background[_ngcontent-%COMP%]{background-color:#e6e6e6}.alarm-video[_ngcontent-%COMP%]{background:#FF6B6B}.alarm-video-background[_ngcontent-%COMP%]{background:#FFE2DD}.armed[_ngcontent-%COMP%]{background:#FF7F16}.armed-background[_ngcontent-%COMP%]{background:#FFE5D0}.disarmed[_ngcontent-%COMP%]{background:#1EA675}.disarmed-background[_ngcontent-%COMP%]{background:#DBEDDB}.audio[_ngcontent-%COMP%]{background:#C34A36}.audio-background[_ngcontent-%COMP%]{background:#F3E2E0}.automation[_ngcontent-%COMP%]{background:#FFA07A}.automation-background[_ngcontent-%COMP%]{background:#FFEDE0}.playback[_ngcontent-%COMP%]{background:#276749}.playback-background[_ngcontent-%COMP%]{background:#C9E4DE}.relay[_ngcontent-%COMP%]{background:#FFC75F}.relay-background[_ngcontent-%COMP%]{background:#FFF5E6}.timelapse[_ngcontent-%COMP%]{background:#276749}.timelapse-background[_ngcontent-%COMP%]{background:#c4f2ee}.operator-viewed[_ngcontent-%COMP%]{background:#F9CB9C}.operator-viewed-background[_ngcontent-%COMP%]{background:#FFF4E8}.disarmed-event[_ngcontent-%COMP%]{background:#5FC0FD}.disarmed-event-background[_ngcontent-%COMP%]{background:#D0EDFF}.verification[_ngcontent-%COMP%]{background:#4D96FF}.verification-background[_ngcontent-%COMP%]{background:#C1E1FF}.video-ai[_ngcontent-%COMP%]{background:#6578D8}.video-ai-background[_ngcontent-%COMP%]{background:#E6E9F8}']}),e})(),"disarmed event":(()=>{class e{constructor(t,o,a,c){this.commonService=t,this.eventViewerService=o,this.sanitizer=a,this.helper=c,this.snapshotPermission=!1,this.isBrokenImage=!1,this.isLoadingVideo=!1}watch(){this.snapshotPermission$w=this.eventViewerService.snapshotPermission$w.subscribe(t=>this.snapshotPermission=t)}unwatch(){var t;null===(t=this.snapshotPermission$w)||void 0===t||t.unsubscribe()}ngOnInit(){return(0,x.mG)(this,void 0,void 0,function*(){this.watch(),this.log.imageUrl&&this.safeBlobUrl()})}ngOnDestroy(){this.unwatch()}safeBlobUrl(){var t;const o=null===(t=this.log.imageUrl)||void 0===t?void 0:t.changingThisBreaksApplicationSecurity;!o||(this.log.imageUrl=this.sanitizer.bypassSecurityTrustUrl(o))}computedBackground(){return this.log.isLoading?"loading-background":this.snapshotPermission?"need to upgrade plan"===this.canIShowImage()||"expired"===this.canIShowImage()||"privacy mode"===this.canIShowImage()||"broken image"===this.canIShowImage()?"no-permission":"image"===this.canIShowImage()?"full-height":"default"===this.canIShowImage()?"disarmed-event":void 0:"no permission"}canIShowImage(){const t=this.helper.dealer_plan.isPremiumPlan()||this.helper.dealer_plan.isResellerPlan();return this.snapshotPermission?t&&this.log.is_expired?"expired":!t&&this.log.is_expired?"need to upgrade plan":this.log.isPrivacy?"privacy mode":this.isBrokenImage?"broken image":this.log.imageUrl?"image":"default":"no permission"}parseWarningLog(){let t=!1;return 2===this.log.is_send_xml_signal&&(t=!0),this.log.status?this.log.status>300&&(t=!0):t=!0,t}isVideoAI(){return!!this.log.trigger.toLowerCase().includes("videoai")}parseVideoAIResult(t){var o,a,c;if(!t||"string"!=typeof t)return"Failed";const r=JSON.parse(t),l=null===(o=null==r?void 0:r.req)||void 0===o?void 0:o.body,p=null==l?void 0:l.summary_entity_ids;if(!p)return"Failed";let C="";const d=JSON.parse(p),P=Object.values(d);let _="",m="";const F=P.every(u=>null==u?void 0:u.includes("person")),Z=P.every(u=>null==u?void 0:u.includes("vehicle"));return(null===(a=d.static)||void 0===a?void 0:a.length)&&(d.static.includes("person")&&(_="Stationary Person"),d.static.includes("vehicle")&&(m="Stationary Vehicle")),(null===(c=d.motion)||void 0===c?void 0:c.length)&&(d.motion.includes("person")&&(_="Moving Person"),d.motion.includes("vehicle")&&(m="Moving Vehicle")),F&&(_="Person"),Z&&(m="Vehicle"),_&&m?C=`${_}, ${m}`:_||m?C=`${_||m}`:!_&&!m&&(C="Nothing Detected"),C}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(M.v),n.Y36(O.w),n.Y36(f.H7),n.Y36(b.W))},e.\u0275cmp=n.Xpm({type:e,selectors:[["log_box_disarmed_event"]],inputs:{log:"log",timezone:"timezone"},decls:22,vars:11,consts:[[1,"log-metadata"],[1,"v-center",2,"gap","8px"],[1,"log-metadata-time"],[1,"log-metadata-category"],[1,"badge","disarmed-event-background"],["class","badge video-ai-background",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"log-metadata-device"],[1,"log-metadata-device-zone"],[1,"log-metadata-device-name"],[1,"log-metadata-other"],["class","flex v-center",4,"ngIf"],["class","loading-box",4,"ngIf"],["class","flex","style","justify-content: end;",3,"ngSwitch",4,"ngIf"],[1,"badge","video-ai-background"],[1,"badge","xml-code"],[1,"flex","v-center"],[2,"margin-left","4px"],[2,"font-weight","600"],[4,"ngIf"],[1,"loading-box"],[1,"loader","absolute","log-loader"],["viewBox","25 25 50 50",1,"circular"],["cx","50","cy","50","r","20","fill","none","stroke-width","4","stroke-miterlimit","10",1,"path","log-stroke-color"],[1,"flex",2,"justify-content","end",3,"ngSwitch"],["class","no-permission",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"no-permission"],[3,"src","error"]],template:function(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"div",0),n.TgZ(2,"div",1),n.TgZ(3,"div",2),n._uU(4),n.qZA(),n.TgZ(5,"div",3),n.TgZ(6,"div",4),n._uU(7,"Disarmed Event"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(8,"div",3),n.YNc(9,_t,2,0,"div",5),n.YNc(10,mt,3,1,"ng-container",6),n.qZA(),n.TgZ(11,"div",7),n.TgZ(12,"div",8),n._uU(13),n.qZA(),n.TgZ(14,"div",9),n._uU(15),n.qZA(),n.qZA(),n.TgZ(16,"div",10),n.YNc(17,ut,7,2,"div",11),n.TgZ(18,"div"),n._uU(19),n.qZA(),n.qZA(),n.qZA(),n.YNc(20,Ct,4,0,"div",12),n.YNc(21,yt,8,7,"div",13),n.BQk()),2&t){let a;n.xp6(4),n.Oqu(o.log.eventCreated),n.xp6(5),n.Q6J("ngIf",o.isVideoAI()),n.xp6(1),n.Q6J("ngForOf",o.log.eventCodeList),n.xp6(3),n.Oqu(o.log.zone_number),n.xp6(1),n.ekj("no-name",!o.log.name),n.xp6(1),n.Oqu(null!==(a=o.log.name)&&void 0!==a?a:"No Name"),n.xp6(2),n.Q6J("ngIf",o.isVideoAI()),n.xp6(2),n.Oqu(o.log.status_text),n.xp6(1),n.Q6J("ngIf",o.log.isLoading),n.xp6(1),n.Q6J("ngIf",!o.log.isLoading)}},directives:[g.O5,g.sg,g.RF,g.n9,g.ED],styles:['.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:calc(100% - 14px);max-width:1200px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.disabled[_ngcontent-%COMP%]{opacity:.6;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e88e5}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#1e88e5}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box;padding:0 6px}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.has-child[_ngcontent-%COMP%]{cursor:pointer}.has-child[_ngcontent-%COMP%]:hover{background:#f0f0f0}.table-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.table-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.table-container[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px;height:100px}.loader.absolute[_ngcontent-%COMP%]{margin:auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.selectitem[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer;display:flex;flex-direction:row;font-size:14px}.selectitem[_ngcontent-%COMP%]:hover{background-color:#ebebeb}.selectitem.selected[_ngcontent-%COMP%]{background-color:#e0e0e0}.selectitem.label[_ngcontent-%COMP%]{margin:2px 0;max-width:420px;font-size:14px;padding:8px 10px;justify-content:space-between}.select-list[_ngcontent-%COMP%]{position:fixed;width:100%;background:#fff;font-size:14px;border-style:solid;border-width:1px;border-radius:5px;border-color:#dfdfdf;overflow-x:hidden;white-space:nowrap;z-index:500;font-weight:500}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]{width:100%;outline:none;border:0;border-bottom:1px solid rgba(0,0,0,.1);height:30px;text-indent:16px}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]::placeholder{color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%]{display:flex}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{color:#1e90ff;filter:none}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%]{display:flex;margin-right:5px;justify-content:center;color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{font-size:18px}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon.checked[_ngcontent-%COMP%]{color:#1f8fff}.select-list[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{margin:14px}[sortable-column][_ngcontent-%COMP%]{cursor:pointer}','.no-name[_ngcontent-%COMP%]{color:#0000004d}.loading-box[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;color:#fff;position:relative;background-color:#000}.loading[_ngcontent-%COMP%]{width:20px;height:20px;cursor:none}.loader[_ngcontent-%COMP%]{position:absolute;width:20px;height:20px;top:calc(50% - 10px)!important;left:calc(50% - 10px)!important}.loader[_ngcontent-%COMP%] .circular[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:#8792a2}.timeline-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;font-size:.8rem;padding:20px 0}.timeline-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:calc(50%);width:2px;background:rgba(0,0,0,.1);height:calc(100% - 50px)}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:start;margin-bottom:10px;position:relative}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{flex:2;padding:10px;color:#55647b}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area[_ngcontent-%COMP%]{flex:2;padding:10px 10px 10px 20px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;grid-gap:2px;gap:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-id[_ngcontent-%COMP%]{color:#55647b;font-size:12px;margin-bottom:4px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-time[_ngcontent-%COMP%]{opacity:.87;font-size:20px;letter-spacing:-.129px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;font-size:14px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%]{position:relative;height:100px;max-height:150px;min-height:60px;flex:.3}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;position:absolute;top:10px;left:calc(50% - 5px);transform:translate(-50%);z-index:2}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area[_ngcontent-%COMP%]{position:relative;width:20px;height:20px;top:2px;left:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.guard-tour[_ngcontent-%COMP%]{top:-1px;left:0px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.print-mode[_ngcontent-%COMP%]{position:relative;width:16px;height:16px;top:8px;left:8px}.timeline-title[_ngcontent-%COMP%]{display:flex}.timeline-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex:1;height:30px;align-items:center;justify-content:center;background:#F2F6F9;opacity:.87}.no-permission[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;background-color:#000;color:#fff;display:flex;justify-content:center;align-items:center;text-align:center}.no-permission[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{padding:8px}.xml-code[_ngcontent-%COMP%]{background:rgba(30,136,229,.1);color:#0087ec!important}img[_ngcontent-%COMP%]{width:230px;border-radius:5px;margin:10px 0}.log-metadata[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;align-items:flex-end;text-align:end;flex:2}.log-metadata-time[_ngcontent-%COMP%]{opacity:.87;font-size:1.1rem;letter-spacing:-.129px}.log-metadata-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px;display:flex;align-items:center;flex-wrap:wrap;grid-gap:4px;gap:4px;justify-content:end}.log-metadata-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.log-metadata-device-zone[_ngcontent-%COMP%]{font-size:12px;padding:2px 6px;border-radius:3px;background:#E3E8EE}.log-metadata-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.log-metadata-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:8px;gap:8px}.badge[_ngcontent-%COMP%]{padding:2px 5px 3px;border-radius:3px;color:#000}.default[_ngcontent-%COMP%]{background-color:#8b8b8b}.default-background[_ngcontent-%COMP%]{background-color:#e6e6e6}.alarm-video[_ngcontent-%COMP%]{background:#FF6B6B}.alarm-video-background[_ngcontent-%COMP%]{background:#FFE2DD}.armed[_ngcontent-%COMP%]{background:#FF7F16}.armed-background[_ngcontent-%COMP%]{background:#FFE5D0}.disarmed[_ngcontent-%COMP%]{background:#1EA675}.disarmed-background[_ngcontent-%COMP%]{background:#DBEDDB}.audio[_ngcontent-%COMP%]{background:#C34A36}.audio-background[_ngcontent-%COMP%]{background:#F3E2E0}.automation[_ngcontent-%COMP%]{background:#FFA07A}.automation-background[_ngcontent-%COMP%]{background:#FFEDE0}.playback[_ngcontent-%COMP%]{background:#276749}.playback-background[_ngcontent-%COMP%]{background:#C9E4DE}.relay[_ngcontent-%COMP%]{background:#FFC75F}.relay-background[_ngcontent-%COMP%]{background:#FFF5E6}.timelapse[_ngcontent-%COMP%]{background:#276749}.timelapse-background[_ngcontent-%COMP%]{background:#c4f2ee}.operator-viewed[_ngcontent-%COMP%]{background:#F9CB9C}.operator-viewed-background[_ngcontent-%COMP%]{background:#FFF4E8}.disarmed-event[_ngcontent-%COMP%]{background:#5FC0FD}.disarmed-event-background[_ngcontent-%COMP%]{background:#D0EDFF}.verification[_ngcontent-%COMP%]{background:#4D96FF}.verification-background[_ngcontent-%COMP%]{background:#C1E1FF}.video-ai[_ngcontent-%COMP%]{background:#6578D8}.video-ai-background[_ngcontent-%COMP%]{background:#E6E9F8}']}),e})()};let wt=(()=>{class e{constructor(t,o){this.viewContainerRef=t,this.componentFactoryResolver=o}ngOnInit(){const t=this.componentFactoryResolver.resolveComponentFactory(this.getComponentForLog(this.appLogRenderer.log));this.viewContainerRef.createComponent(t).instance.log=this.appLogRenderer.log}getComponentForLog(t){let o=this.computedCategory(t);const c=Object.keys(I).includes(o)?o:"default";return I[c]}computedCategory(t){return(null==t?void 0:t.category)&&"string"==typeof t.category?t.category.toLowerCase():"default"}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(n.s_b),n.Y36(n._Vd))},e.\u0275dir=n.lG2({type:e,selectors:[["","appLogRenderer",""]],inputs:{appLogRenderer:"appLogRenderer"}}),e})();var k=s(93324);const kt=["memoTextArea"];function Ft(e,i){if(1&e&&(n.TgZ(0,"div",7),n._uU(1),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.AsE("",t.noteLength," / ",t.maxLength,"")}}function Zt(e,i){1&e&&(n.TgZ(0,"div",8),n._uU(1,"Text input limit reached. Please shorten your text."),n.qZA())}function At(e,i){if(1&e){const t=n.EpF();n.TgZ(0,"div",2),n.TgZ(1,"textarea",3,4),n.NdJ("ngModelChange",function(a){return n.CHM(t),n.oxw().log.notes=a})("input",function(a){return n.CHM(t),n.oxw().checkTextarea(a)}),n.qZA(),n.YNc(3,Ft,2,2,"div",5),n.YNc(4,Zt,2,0,"div",6),n.qZA()}if(2&e){const t=n.oxw();n.xp6(1),n.Q6J("rows",t.maxRows)("maxLength",t.maxLength)("ngModel",t.log.notes),n.xp6(2),n.Q6J("ngIf",!t.isShowErr),n.xp6(1),n.Q6J("ngIf",t.isShowErr)}}function It(e,i){if(1&e&&(n.TgZ(0,"pre"),n._uU(1),n.qZA()),2&e){const t=n.oxw();n.xp6(1),n.Oqu(t.log.notes)}}let Tt=(()=>{class e{constructor(t,o){this.cdr=t,this.eventViewerService=o,this.maxRows=3,this.maxLength=160,this.noteLength=0,this.noteList=[],this.isShowErr=!1}ngAfterViewInit(){this.adjustTextArea(),this.cdr.detectChanges()}adjustTextArea(){var t;if(null===(t=this.memoTextArea)||void 0===t?void 0:t.nativeElement){if(this.isHasImage){const a=230;this.memoTextArea.nativeElement.style.height=`${a}px`;const l=Math.floor(a/20.8);return this.maxRows=l,this.maxLength=450,void console.log("adjustedHeight",a,"rows",l)}this.memoTextArea.nativeElement.style.height="80px",this.maxRows=3,this.maxLength=160}}checkTextarea(t){const o=t.target,a=o.value.split("\n");this.noteLength=o.value.length;const c=this.isHasImage?230:80;this.isShowErr=!1,this.eventViewerService.isShowErrInTextArea=!1,this.memoTextArea.nativeElement.scrollHeight>c&&(o.value=o.value.substring(0,o.value.length-1),this.isShowErr=!0,this.eventViewerService.isShowErrInTextArea=!0),a.length>this.maxRows&&(o.value=a.slice(0,this.maxRows).join("\n")),console.log(o.value,o.value.length,a.length,this.maxRows)}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(n.sBO),n.Y36(O.w))},e.\u0275cmp=n.Xpm({type:e,selectors:[["c_card_event_viewer_time_line_input_area_component"]],viewQuery:function(t,o){if(1&t&&n.Gf(kt,5),2&t){let a;n.iGM(a=n.CRH())&&(o.memoTextArea=a.first)}},inputs:{log:"log",isMode:"isMode",isHasImage:"isHasImage"},decls:3,vars:2,consts:[["style","position: relative",4,"ngIf"],[4,"ngIf"],[2,"position","relative"],["type","text","placeholder","Enter notes here",3,"rows","maxLength","ngModel","ngModelChange","input"],["memoTextArea",""],["class","textarea-text-length",4,"ngIf"],["class","textarea-err",4,"ngIf"],[1,"textarea-text-length"],[1,"textarea-err"]],template:function(t,o){1&t&&(n.ynx(0),n.YNc(1,At,5,5,"div",0),n.YNc(2,It,2,1,"pre",1),n.BQk()),2&t&&(n.xp6(1),n.Q6J("ngIf","create"==o.isMode),n.xp6(1),n.Q6J("ngIf","create"!=o.isMode))},directives:[g.O5,k.Fj,k.JJ,k.On],styles:["textarea[_ngcontent-%COMP%]{width:80%;height:60px;box-sizing:border-box;padding:5px 8px;background-color:#fff;border:1px solid rgba(0,0,0,.2);border-radius:5px;transition:.2s;text-indent:0px;font-weight:400;font-size:.8rem;line-height:1.1rem;resize:none;overflow:hidden}pre[_ngcontent-%COMP%]{width:300px;line-height:1.1rem;margin:0;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word}.textarea-text-length[_ngcontent-%COMP%]{position:absolute;right:70px;color:#ccc;font-size:12px}.textarea-err[_ngcontent-%COMP%]{color:#cd3d64}"]}),e})();var zt=s(95974);function Et(e,i){1&e&&(n.TgZ(0,"div",4),n.O4$(),n.TgZ(1,"svg",5),n._UZ(2,"circle",6),n.qZA(),n.qZA())}function qt(e,i){1&e&&n.GkF(0)}function St(e,i){if(1&e&&(n.TgZ(0,"i",18),n._uU(1),n.qZA()),2&e){const t=n.oxw().$implicit,o=n.oxw(2);n.Udp("color",o.computedIconColor(t))("font-size",o.computedIconSize(t)+"px"),n.xp6(1),n.Oqu(null==t.logIcon?null:t.logIcon.name)}}function Nt(e,i){if(1&e&&(n.TgZ(0,"div",19),n._UZ(1,"comp-icon",20),n.qZA()),2&e){const t=n.oxw().$implicit,o=n.oxw(2);n.ekj("guard-tour",o.styleClassForGuardTourIcon(t))("print-mode","print"===o.isMode),n.xp6(1),n.Q6J("icon",null==t.logIcon?null:t.logIcon.name)("color",o.computedIconColor(t))("size",o.computedIconSize(t))}}const Ut=function(e){return{log:e}};function Dt(e,i){if(1&e&&(n.TgZ(0,"div",9),n.TgZ(1,"div",10),n.YNc(2,qt,1,0,"ng-container",11),n.qZA(),n.TgZ(3,"div",12),n.TgZ(4,"div",13),n.YNc(5,St,2,5,"i",14),n.YNc(6,Nt,2,7,"div",15),n.qZA(),n.qZA(),n.TgZ(7,"div",16),n._UZ(8,"c_card_event_viewer_time_line_input_area_component",17),n.qZA(),n.qZA()),2&e){const t=i.$implicit,o=n.oxw(2);n.xp6(2),n.Q6J("appLogRenderer",n.VKq(7,Ut,t)),n.xp6(2),n.Q6J("ngClass",o.computedClassNameForBackgroundColor(t)),n.xp6(1),n.Q6J("ngIf","material"===(null==t.logIcon?null:t.logIcon.type)),n.xp6(1),n.Q6J("ngIf","comp"===(null==t.logIcon?null:t.logIcon.type)),n.xp6(2),n.Q6J("log",t)("isMode",o.isMode)("isHasImage",o.isHasImage(t))}}function Bt(e,i){if(1&e&&(n.TgZ(0,"div",7),n.YNc(1,Dt,9,9,"div",8),n.qZA()),2&e){const t=n.oxw();n.xp6(1),n.Q6J("ngForOf",t.selectedLogs)}}let Lt=(()=>{class e{constructor(t,o,a,c,r){this.sitesService=t,this.eventsService=o,this.eventViewerService=a,this.helper=c,this.sanitizer=r,this.snapshotPermission=!1,this.site={},this.isLoading=!1}ngOnInit(){this.site=this.sitesService.selSite,A.Z.moment.tz.setDefault(this.site.timezone)}ngOnChanges(t){!t.logs||!t.logs.currentValue||(this.isLoading=!0,this.parsedSelectedLogs(this.logs))}parsedSelectedLogs(t){return(0,x.mG)(this,void 0,void 0,function*(){if(!t||!Array.isArray(t)||!(null==t?void 0:t.length))return this.isLoading=!1;this.selectedLogs=t,this.selectedLogs.forEach(o=>(0,x.mG)(this,void 0,void 0,function*(){let a=this.computedCategory(o);"sensor"===a&&this.isVideoAI(o)&&(a="videoai"),o.category=a,o.notes||(o.notes=""),o.logIcon={type:"",name:""},o.isLoading=!0,this.setIconName(o)})),this.isLoading=!1,yield this.setLogSnapshots()})}computedCategory(t){return(null==t?void 0:t.category)&&"string"==typeof t.category?t.category.toLowerCase():"default"}isVideoAI(t){return t?"video event"==this.computedCategory(t)&&"videoai"===t.trigger.toLowerCase():void 0}isAutomationRule(t){var o;return(null!==(o=null==t?void 0:t.description.toLowerCase())&&void 0!==o?o:"").includes("automation")||(null==t?void 0:t.isAutomation)}setLogSnapshots(){var t;return(0,x.mG)(this,void 0,void 0,function*(){const o=yield this.helper.me.get_my_dealer_id(),a=this.sitesService.selSite.site_id;try{const c=[];let r="";this.selectedLogs.forEach(p=>{if(!(null==p?void 0:p.event_id)||!this.isVideoEvent(p)&&!this.isAutomationEvent(p)&&!this.isTimelapse(p)&&!this.isPlaybackEvent(p))return p.isLoading=!1;c.push(p.event_id)}),r=c.join(",");const l=yield null===(t=this.eventsService.getEventsReportsInfoSnapshots(o,a,r,"3"))||void 0===t?void 0:t.toPromise();if(((null==l?void 0:l.has_download_permission)||(null==l?void 0:l.has_share_download_link_permission))&&this.eventViewerService.setSnapshotPermission(!0),!(null==l?void 0:l.events))return;for(const p in l.events){const C=l.events[p],d=this.selectedLogs.find(_=>_.event_id===p);if(!d){d.isLoading=!1;continue}const P=C[0];C.length?(d.isPrivacy=!!P.privacy_enabled,d.is_expired=P.is_expired,yield this.getImageUrl(d,P.url)):yield this.getThumbnail(o,a,p,d),d.isLoading=!1}}catch(c){this.selectedLogs.forEach(r=>r.isLoading=!1),console.debug("setLogSnapshots in time_line",c)}})}getImageUrl(t,o){return(0,x.mG)(this,void 0,void 0,function*(){if(!o)return t.isLoading=!1;let a=window.URL;try{const c=yield this.eventsService.getSnapshotFromUrl(o).toPromise();t.imageUrl=this.sanitizer.bypassSecurityTrustUrl(a.createObjectURL(c)),t.isLoading=!1}catch(c){console.debug("getImageUrl",c),t.isLoading=!1}})}getThumbnail(t,o,a,c){var r;return(0,x.mG)(this,void 0,void 0,function*(){try{const l=yield null===(r=this.eventsService.getEventsReportsInfoSnapshots(t,o,a,"100"))||void 0===r?void 0:r.toPromise();if(!(null==l?void 0:l.events))return;const p=l.events[a],C=c.event_id===a;if(!p||!C)return;const d=p.find(P=>P.is_thumbnail);d&&(yield this.getImageUrl(c,null==d?void 0:d.url))}catch(l){console.debug("getThumbnail",l),c.isLoading=!1}})}capitalizeFirstLetter(t){return 0===t.length?"":t.charAt(0).toUpperCase()+t.slice(1)}computedClassNameForBackgroundColor(t){const o=t.category;return this.isAutomationRule(t)?"automation-background":"video event"===o?"alarm-video-background":"arming"===o?this.setClassNameForArmingBackgroundColor(t):"audio"===o?`${o}-background`:"playback event"===o?"playback-background":"relay"===o?`${o}-background`:"timelapse event"===o?"timelapse-background":"verification"===o?`${o}-background`:"videoai"===o?"video-ai-background":"disarmed event"===o?"disarmed-event-background":"default-background"}setClassNameForArmingBackgroundColor(t){const o=this.computedArmingActionName(t.action);return this.checkArmingStatus(t)?`${o}-background`:"default-background"}computedIconColor(t){const o=t.category;return this.isAutomationRule(t)?"#FFA07A":"video event"===o?"#FF6B6B":"arming"===o?this.armingIconColor(t):"audio"===o?"#C34A36":"playback event"===o?"#276749":"relay"===o?"#FFC75F":"timelapse event"===o?"#276749":"verification"===o?"#4D96FF":"sensor"===o?"#8B8B8B":"videoai"===o?"#6578D8":"disarmed event"===o?"#5FC0FD":"#8B8B8B"}armingIconColor(t){const c=t.action.split(" ")[0].toLocaleLowerCase();return this.checkArmingStatus(t)?"armed"===c||"armed away"===c||"armed stay"===c||c.includes("armed stay")?"#FF7F16":"#1EA675":"#8B8B8B"}computedIconSize(t){return"metabolism"===t.logIcon.name||"http"===t.logIcon.name?"22":"16"}styleClassForGuardTourIcon(t){return"guard tour"===t.category.toLowerCase()&&"print"!=this.isMode}setIconName(t){if("bridge"===t.category)return this.setBridgeIcon(t);t.logIcon.name||this.setIconsByReportCategory(t),t.logIcon.name||this.setOtherCategory(t)}setIconsByReportCategory(t){const o=t.category;return this.isAutomationRule(t)?t.logIcon={type:"comp",name:"autopay"}:"video event"===o?t.logIcon={type:"material",name:"videocam"}:"arming"===o?this.setArmingIcon(t):"audio"===o?t.logIcon={type:"material",name:"mic"}:"playback event"===o?t.logIcon={type:"material",name:"replay"}:"relay"===o?this.setRelayIcon(t):"timelapse event"===o?t.logIcon={type:"material",name:"timelapse"}:"sensor"===o?this.setSensorIcon(t):"disarmed event"===o?t.logIcon={type:"comp",name:"disarmed_event"}:void 0}setArmingIcon(t){if(this.checkArmingStatus(t))return this.setArmingStatusIcon(t);this.checkArmingDelay(t)||(t.logIcon={type:"material",name:"settings"})}setArmingStatusIcon(t){const o=this.computedArmingActionName(t.action);t.logIcon={type:"comp",name:o}}computedArmingActionName(t){return t.split(" ")[0].toLowerCase()}checkArmingStatus(t){const o=t.status_text.toLowerCase();return!("armed"!==o&&"disarmed"!==o&&"armed away"!==o&&"armed stay"!==o&&!o.includes("armed stay"))}checkArmingDelay(t){const o=t.status_text.toLocaleLowerCase();return(o.includes("end")||!!o.includes("start"))&&(t.logIcon={type:"material",name:"sync_lock"},!0)}setRelayIcon(t){var o,a,c;const r=t.meta;if(!r||"string"!=typeof r)return"relay";const l=JSON.parse(r),p=null!==(c=null===(a=null===(o=null==l?void 0:l.info)||void 0===o?void 0:o.relay)||void 0===a?void 0:a.icon)&&void 0!==c?c:"relay_action";return t.logIcon={type:"comp",name:p}}setSensorIcon(t){const o=t.category.toLowerCase(),a=t.trigger.toLowerCase();return"sensor"!=o?{type:"",name:""}:a.includes("di")?t.logIcon={type:"material",name:"settings_input_component"}:a.includes("oe")?t.logIcon={type:"material",name:"psychology"}:a.includes("le")||a.includes("local")?t.logIcon={type:"comp",name:"bridge"}:a.includes("camera")?t.logIcon={type:"comp",name:"bypass"}:void 0}setBridgeIcon(t){return t.logIcon=t.description.toLowerCase().includes("automation")?{type:"comp",name:"autopay"}:{type:"comp",name:"bridge"}}setOtherCategory(t){switch(t.category.toLowerCase()){case"alarm":return t.logIcon={type:"material",name:"notifications_active"};case"guard tour":return t.logIcon={type:"comp",name:"metabolism"};case"live video":return t.logIcon={type:"material",name:"smart_display"};case"monitoring portal":return t.logIcon={type:"material",name:"live_tv"};case"boot":return t.logIcon={type:"material",name:"power_settings_new"};case"privacy mode access":return t.logIcon={type:"material",name:"passkey"};case"share download link":return t.logIcon={type:"material",name:"download"};case"share response link":return t.logIcon={type:"material",name:"reply"};case"site procedure action":return t.logIcon={type:"material",name:"interests"};case"site procedure http request":return t.logIcon={type:"material",name:"http"};case"trouble":return t.logIcon={type:"material",name:"warning"};case"timelapse event":return t.logIcon={type:"material",name:"timelapse"}}}isHasImage(t){return!!t&&((null==t?void 0:t.imageUrl)||(null==t?void 0:t.is_expired)||(null==t?void 0:t.isPrivacy))}isVideoEvent(t){return"video event"===t.category.toLowerCase()}isPlaybackEvent(t){return"playback event"===t.category.toLowerCase()}isTimelapse(t){return"timelapse event"===t.category.toLowerCase()}isAutomationEvent(t){return t.isAutomation}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(h.f),n.Y36(y.n),n.Y36(O.w),n.Y36(b.W),n.Y36(f.H7))},e.\u0275cmp=n.Xpm({type:e,selectors:[["c_card_event_viewer_time_line_component"]],inputs:{logs:"logs",isMode:"isMode"},features:[n.TTD],decls:7,vars:2,consts:[[1,"timeline-title"],[1,"title"],["class","loader",4,"ngIf"],["class","timeline-container",4,"ngIf"],[1,"loader"],["viewBox","25 25 50 50",1,"circular"],["cx","50","cy","50","r","20","fill","none","stroke-width","4","stroke-miterlimit","10",1,"path"],[1,"timeline-container"],["class","timeline-item",4,"ngFor","ngForOf"],[1,"timeline-item"],[1,"content-area"],[4,"appLogRenderer"],[1,"timeline-point-area"],[1,"timeline-point",3,"ngClass"],["class","material-icons","style","font-size: 16px",3,"color","font-size",4,"ngIf"],["class","comp-icon-area",3,"guard-tour","print-mode",4,"ngIf"],[1,"input-area"],[3,"log","isMode","isHasImage"],[1,"material-icons",2,"font-size","16px"],[1,"comp-icon-area"],[2,"position","absolute",3,"icon","color","size"]],template:function(t,o){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"div",1),n._uU(2,"EVENTS"),n.qZA(),n.TgZ(3,"div",1),n._uU(4,"NOTES"),n.qZA(),n.qZA(),n.YNc(5,Et,3,0,"div",2),n.YNc(6,Bt,2,1,"div",3)),2&t&&(n.xp6(5),n.Q6J("ngIf",o.isLoading),n.xp6(1),n.Q6J("ngIf",!o.isLoading))},directives:[g.O5,g.sg,wt,g.mk,Tt,zt.U],styles:['.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:calc(100% - 14px);max-width:1200px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.disabled[_ngcontent-%COMP%]{opacity:.6;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e88e5}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#1e88e5}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box;padding:0 6px}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.has-child[_ngcontent-%COMP%]{cursor:pointer}.has-child[_ngcontent-%COMP%]:hover{background:#f0f0f0}.table-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.table-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.table-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.table-container[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px;height:100px}.loader.absolute[_ngcontent-%COMP%]{margin:auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px)}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.selectitem[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer;display:flex;flex-direction:row;font-size:14px}.selectitem[_ngcontent-%COMP%]:hover{background-color:#ebebeb}.selectitem.selected[_ngcontent-%COMP%]{background-color:#e0e0e0}.selectitem.label[_ngcontent-%COMP%]{margin:2px 0;max-width:420px;font-size:14px;padding:8px 10px;justify-content:space-between}.select-list[_ngcontent-%COMP%]{position:fixed;width:100%;background:#fff;font-size:14px;border-style:solid;border-width:1px;border-radius:5px;border-color:#dfdfdf;overflow-x:hidden;white-space:nowrap;z-index:500;font-weight:500}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%]{font-size:14px;color:#000000de}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]{width:100%;outline:none;border:0;border-bottom:1px solid rgba(0,0,0,.1);height:30px;text-indent:16px}.select-list[_ngcontent-%COMP%] .search-result-input[_ngcontent-%COMP%] .list-search-input[_ngcontent-%COMP%]::placeholder{color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%]{display:flex}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{color:#1e90ff;filter:none}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%]{display:flex;margin-right:5px;justify-content:center;color:#0000004d}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{font-size:18px}.select-list[_ngcontent-%COMP%] .select-result[_ngcontent-%COMP%] .check-area[_ngcontent-%COMP%] .check-icon.checked[_ngcontent-%COMP%]{color:#1f8fff}.select-list[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{margin:14px}[sortable-column][_ngcontent-%COMP%]{cursor:pointer}','.no-name[_ngcontent-%COMP%]{color:#0000004d}.loading-box[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;color:#fff;position:relative;background-color:#000}.loading[_ngcontent-%COMP%]{width:20px;height:20px;cursor:none}.loader[_ngcontent-%COMP%]{position:absolute;width:20px;height:20px;top:calc(50% - 10px)!important;left:calc(50% - 10px)!important}.loader[_ngcontent-%COMP%] .circular[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:#8792a2}.timeline-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;font-size:.8rem;padding:20px 0}.timeline-container[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:calc(50%);width:2px;background:rgba(0,0,0,.1);height:calc(100% - 50px)}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:start;margin-bottom:10px;position:relative}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{flex:2;padding:10px;color:#55647b}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area[_ngcontent-%COMP%]{flex:2;padding:10px 10px 10px 20px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;grid-gap:2px;gap:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-id[_ngcontent-%COMP%]{color:#55647b;font-size:12px;margin-bottom:4px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-time[_ngcontent-%COMP%]{opacity:.87;font-size:20px;letter-spacing:-.129px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .content-area-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;font-size:14px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%]{position:relative;height:100px;max-height:150px;min-height:60px;flex:.3}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;position:absolute;top:10px;left:calc(50% - 5px);transform:translate(-50%);z-index:2}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area[_ngcontent-%COMP%]{position:relative;width:20px;height:20px;top:2px;left:2px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.guard-tour[_ngcontent-%COMP%]{top:-1px;left:0px}.timeline-container[_ngcontent-%COMP%] .timeline-item[_ngcontent-%COMP%] .timeline-point-area[_ngcontent-%COMP%] .timeline-point[_ngcontent-%COMP%] .comp-icon-area.print-mode[_ngcontent-%COMP%]{position:relative;width:16px;height:16px;top:8px;left:8px}.timeline-title[_ngcontent-%COMP%]{display:flex}.timeline-title[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex:1;height:30px;align-items:center;justify-content:center;background:#F2F6F9;opacity:.87}.no-permission[_ngcontent-%COMP%]{width:250px;height:150px;border-radius:5px;margin:10px 0;background-color:#000;color:#fff;display:flex;justify-content:center;align-items:center;text-align:center}.no-permission[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{padding:8px}.xml-code[_ngcontent-%COMP%]{background:rgba(30,136,229,.1);color:#0087ec!important}img[_ngcontent-%COMP%]{width:230px;border-radius:5px;margin:10px 0}.log-metadata[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:4px;gap:4px;align-items:flex-end;text-align:end;flex:2}.log-metadata-time[_ngcontent-%COMP%]{opacity:.87;font-size:1.1rem;letter-spacing:-.129px}.log-metadata-category[_ngcontent-%COMP%]{color:#55647b;letter-spacing:-.091px;display:flex;align-items:center;flex-wrap:wrap;grid-gap:4px;gap:4px;justify-content:end}.log-metadata-device[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:8px;gap:8px}.log-metadata-device-zone[_ngcontent-%COMP%]{font-size:12px;padding:2px 6px;border-radius:3px;background:#E3E8EE}.log-metadata-device-name[_ngcontent-%COMP%]{color:#55647b;font-weight:500;letter-spacing:-.104px}.log-metadata-other[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:8px;gap:8px}.badge[_ngcontent-%COMP%]{padding:2px 5px 3px;border-radius:3px;color:#000}.default[_ngcontent-%COMP%]{background-color:#8b8b8b}.default-background[_ngcontent-%COMP%]{background-color:#e6e6e6}.alarm-video[_ngcontent-%COMP%]{background:#FF6B6B}.alarm-video-background[_ngcontent-%COMP%]{background:#FFE2DD}.armed[_ngcontent-%COMP%]{background:#FF7F16}.armed-background[_ngcontent-%COMP%]{background:#FFE5D0}.disarmed[_ngcontent-%COMP%]{background:#1EA675}.disarmed-background[_ngcontent-%COMP%]{background:#DBEDDB}.audio[_ngcontent-%COMP%]{background:#C34A36}.audio-background[_ngcontent-%COMP%]{background:#F3E2E0}.automation[_ngcontent-%COMP%]{background:#FFA07A}.automation-background[_ngcontent-%COMP%]{background:#FFEDE0}.playback[_ngcontent-%COMP%]{background:#276749}.playback-background[_ngcontent-%COMP%]{background:#C9E4DE}.relay[_ngcontent-%COMP%]{background:#FFC75F}.relay-background[_ngcontent-%COMP%]{background:#FFF5E6}.timelapse[_ngcontent-%COMP%]{background:#276749}.timelapse-background[_ngcontent-%COMP%]{background:#c4f2ee}.operator-viewed[_ngcontent-%COMP%]{background:#F9CB9C}.operator-viewed-background[_ngcontent-%COMP%]{background:#FFF4E8}.disarmed-event[_ngcontent-%COMP%]{background:#5FC0FD}.disarmed-event-background[_ngcontent-%COMP%]{background:#D0EDFF}.verification[_ngcontent-%COMP%]{background:#4D96FF}.verification-background[_ngcontent-%COMP%]{background:#C1E1FF}.video-ai[_ngcontent-%COMP%]{background:#6578D8}.video-ai-background[_ngcontent-%COMP%]{background:#E6E9F8}']}),e})()},25229:(T,v,s)=>{s.d(v,{Z:()=>O});var x=s(46243),n=s(76052),h=s.n(n),y=s(49951);const O={_:x,moment:h(),tool:y.Z}}}]);