import{a as S}from"./chunk-2OMEXF4T.js";import{a as n}from"./chunk-44QN564A.js";import"./chunk-THKS2M3R.js";import{c as E,e as D,s as x}from"./chunk-GJIGZB63.js";import"./chunk-4LZAXRJQ.js";import"./chunk-5VDVFGVW.js";import{i as C,p as y}from"./chunk-NLMVBXFK.js";import"./chunk-KUS3L5XF.js";import{Bc as h,Eb as l,Fb as d,Fd as g,Ib as m,Jc as f,Zc as u,cc as p,dc as v,fa as a,la as c,p as s,sb as i}from"./chunk-J476KISY.js";var b=(()=>{class e extends n{constructor(o,t,r,M,I){super(),this.route=o,this.translateService=t,this.securityFeatureService=r,this.casesService=M,this.cdr=I,this.destroy$=new s,this.currentCase=null,this.isLoading=!1,this.events=[]}ngOnInit(){console.log("EventsTab: ngOnInit called"),this.loadCaseData()}ngOnDestroy(){console.log("EventsTab: ngOnDestroy called"),this.destroy$.next(),this.destroy$.complete()}loadCaseData(){this.casesService.model$.pipe(a(this.destroy$)).subscribe(o=>{this.currentCase=o,this.loadEvents(),this.cdr.detectChanges()})}loadEvents(){this.events=[],console.log("EventsTab: Loading events for case:",this.currentCase?.costDrv)}saveData(){console.log("EventsTab: Save action triggered")}refreshData(){console.log("EventsTab: Refresh action triggered"),this.loadEvents()}exportData(){console.log("EventsTab: Export action triggered")}static{this.\u0275fac=function(t){return new(t||e)(i(C),i(E),i(x),i(S),i(u))}}static{this.\u0275cmp=l({type:e,selectors:[["paw-events"]],standalone:!1,features:[f([{provide:n,useExisting:e}]),m],decls:3,vars:0,consts:[[1,"paw-holder","paw-offset"]],template:function(t,r){t&1&&(p(0,"div",0)(1,"p"),h(2,"Ova komponenta \u0107e biti implementirana naknadno."),v()())},styles:["h2[_ngcontent-%COMP%]{color:var(--theme-text-color);margin-bottom:16px}p[_ngcontent-%COMP%]{color:var(--theme-text-secondary-color)}"],changeDetection:0})}}return e})();var j=[{path:"",component:b}],U=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=d({type:e})}static{this.\u0275inj=c({imports:[g,D,y.forChild(j)]})}}return e})();export{U as EventsModule};
