import{a as S,b as N}from"./chunk-5TTXT2K2.js";import{G as w,N as q}from"./chunk-3NJAM5KX.js";import{b as I}from"./chunk-7CQSSHSC.js";import{Bb as p,Db as u,Dc as P,Ib as M,Jb as o,Kb as l,Kc as C,Lb as y,Mc as g,Ub as b,Vd as F,Xb as T,Xc as E,Xd as A,Yc as s,Za as d,Zb as f,ib as D,lc as L,mc as a,nc as _,oc as h,ra as k,va as v,wa as x}from"./chunk-GJDGQISV.js";var H=e=>({"cursor-pointer":e});function R(e,m){e&1&&(o(0,"span"),a(1,"/"),l())}function V(e,m){e&1&&(o(0,"span"),a(1,"/"),l())}function B(e,m){if(e&1&&(o(0,"div",3)(1,"span",4),a(2,"Modified:"),l(),o(3,"span"),a(4),C(5,"IsMinDate"),l(),p(6,V,2,0,"span"),o(7,"span"),a(8),l()()),e&2){let t,r,c,n=f(2);d(4),_(g(5,3,(t=n.modified())==null?null:t.Date,"dd MMM yyyy HH:mm:ss")),d(2),u((r=n.modified())!=null&&r.User?6:-1),d(2),_((c=n.modified())==null?null:c.User)}}function j(e,m){if(e&1){let t=b();o(0,"div",1),T("click",function(){v(t);let c=f();return x(c.onClick())}),y(1,"i",2),o(2,"div",3)(3,"span",4),a(4,"Created:"),l(),o(5,"span"),a(6),C(7,"IsMinDate"),l(),p(8,R,2,0,"span"),o(9,"span"),a(10),l()(),p(11,B,9,6,"div",3),l()}if(e&2){let t,r,c,n,i=f();L(P(12,H,i.hasClick()||i.redirectLink())),M("matTooltip",i.tooltipDesc())("routerLink",i.redirectLink())("queryParams",i.queryParamsLink()),d(6),h(" ",g(7,9,(t=i.created())==null?null:t.Date,"dd MMM yyyy HH:mm:ss")),d(2),u((r=i.created())!=null&&r.User?8:-1),d(2),_((c=i.created())==null?null:c.User),d(),u((n=i.modified())!=null&&n.Date&&i.isNotMinimumDateTime((n=i.modified())==null?null:n.Date)||(n=i.modified())!=null&&n.User?11:-1)}}var U=class e{role=k(I);created=s(null);modified=s(null);tooltipDesc=s("");redirectLink=s(null);queryParamsLink=s(null);hasClick=s(!1);onClickEvent=E();isNotMinimumDateTime(m){let t=new Date("0001-01-01T00:00:00");return new Date(m).getTime()!==t.getTime()}onClick(){this.hasClick()&&this.onClickEvent.emit()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=D({type:e,selectors:[["pos-footer-alert"]],inputs:{created:[1,"created"],modified:[1,"modified"],tooltipDesc:[1,"tooltipDesc"],redirectLink:[1,"redirectLink"],queryParamsLink:[1,"queryParamsLink"],hasClick:[1,"hasClick"]},outputs:{onClickEvent:"onClickEvent"},decls:1,vars:1,consts:[["matTooltipPosition","above",1,"alert","alert-warning","d-flex","align-items-center","gap-3",3,"class","matTooltip","routerLink","queryParams"],["matTooltipPosition","above",1,"alert","alert-warning","d-flex","align-items-center","gap-3",3,"click","matTooltip","routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-file"],[1,"d-flex","gap-2"],[1,"fw-bold"]],template:function(t,r){t&1&&p(0,j,12,14,"div",0),t&2&&u(r.role.users.LogRestriction?-1:0)},dependencies:[q,A,F,N,S,w],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{U as a};
