import{a as w}from"./chunk-VIVYDRC6.js";import"./chunk-CVN2SFTO.js";import{a as I}from"./chunk-EPNXFLH5.js";import{e as M}from"./chunk-CX35JBUF.js";import"./chunk-KB3WCNL5.js";import"./chunk-CBK2CW43.js";import"./chunk-SU74KE7C.js";import{c as C,f as _}from"./chunk-7AC745CZ.js";import"./chunk-GK2ZGAUD.js";import"./chunk-4TDNJBFX.js";import"./chunk-NUAVJ2U7.js";import"./chunk-RD7SHR2D.js";import"./chunk-OEBXBRYJ.js";import{j as h,k as v,p as g}from"./chunk-QVLAHW2O.js";import"./chunk-TI6NUUOB.js";import"./chunk-B46M6TSS.js";import{Kb as a,Lb as c,Md as f,Ob as d,Sd as y,hc as m,ic as l,nd as u,qc as p,ra as s,yb as o}from"./chunk-PGS4AHIT.js";y();u();_();var A=(()=>{class i extends I{constructor(e,t,n,r){super(),this.identsService=e,this.translate=t,this.dialogService=n,this.router=r,this.pageMeta={title:"Idents"},this.mainHeaderDef={},this.mainOptionsDef={navigation:[]}}ngOnInit(){this.identsService.getFirstIdent().subscribe({next:e=>{e?this.router.navigate(["/idents/idents-form",e,"basic-data"],{replaceUrl:!0}):this.router.navigate(["/idents/idents-form/create/basic-data"],{replaceUrl:!0})},error:e=>{console.error("[IdentsMain] Error loading first ident:",e),this.router.navigate(["/idents/idents-form/create/basic-data"],{replaceUrl:!0})}})}ngOnDestroy(){this.identsService.unset()}onActivate(e){if(e&&typeof e.getViewActions=="function"){let t=e.getViewActions();if(t&&Array.isArray(t)){this.mainHeaderDef.viewActions=t,setTimeout(()=>{let n=window.__codeListsComponent;n&&n.loadActionsFromChildComponent(this)},0);return}}this.mainHeaderDef.viewActions=[],setTimeout(()=>{let t=window.__codeListsComponent;t&&t.loadActionsFromChildComponent(this)},0)}getViewActions(){return this.mainHeaderDef.viewActions||[]}static{this.\u0275fac=function(t){return new(t||i)(o(w),o(C),o(M),o(v))}}static{this.\u0275cmp=a({type:i,selectors:[["paw-idents-main"]],standalone:!1,features:[d],decls:1,vars:0,consts:[[3,"activate"]],template:function(t,n){t&1&&(m(0,"router-outlet",0),p("activate",function(D){return n.onActivate(D)}),l())},dependencies:[h],encapsulation:2})}}return i})();u();var j=[{path:"",component:A,children:[{path:"",redirectTo:"list",pathMatch:"full"},{path:"list",loadChildren:()=>import("./chunk-2ZV26NSK.js").then(i=>i.IdentsListModule)}]}],E=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=c({type:i})}static{this.\u0275inj=s({imports:[f,g.forChild(j)]})}}return i})();export{E as IdentsMainModule};
