import{a as v}from"./chunk-HHE6B6XY.js";import"./chunk-CVN2SFTO.js";import{a as w}from"./chunk-EPNXFLH5.js";import{e as C}from"./chunk-MGBWIAMY.js";import"./chunk-S7XIGZZD.js";import"./chunk-HGASQ3QN.js";import"./chunk-KTGVICBF.js";import"./chunk-B3T7BVZL.js";import"./chunk-77EBS4NN.js";import"./chunk-QY6NZY57.js";import"./chunk-SDTI6HTZ.js";import"./chunk-5OBTR33Q.js";import"./chunk-AN36NZJP.js";import"./chunk-KFYKC726.js";import{W as M}from"./chunk-2UFYIZBQ.js";import"./chunk-PZHJ5CIW.js";import"./chunk-FSQQALR6.js";import"./chunk-MJMWESWV.js";import"./chunk-54D6BXOV.js";import"./chunk-JOECKKGU.js";import"./chunk-OPI7WJ55.js";import"./chunk-4ZOOZI6F.js";import"./chunk-BRJ3RGGT.js";import"./chunk-H2CU6EEU.js";import"./chunk-GK2ZGAUD.js";import"./chunk-4TDNJBFX.js";import"./chunk-NUAVJ2U7.js";import"./chunk-ATM2DSM6.js";import"./chunk-77VV6VS7.js";import"./chunk-E7BKRPHP.js";import{j as f,p as h}from"./chunk-QVLAHW2O.js";import"./chunk-TI6NUUOB.js";import"./chunk-2IY7RDIH.js";import{Kb as s,Lb as a,Md as l,Ob as m,Sd as U,hc as d,ic as c,nd as p,qc as u,ra as o,yb as r}from"./chunk-PGS4AHIT.js";U();p();var A=(()=>{class i extends w{constructor(e){super(),this.measurementUnitsService=e,this.mainHeaderDef={}}ngOnDestroy(){this.measurementUnitsService.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)},150);return}}e&&"mainHeaderDef"in e?(this.mainHeaderDef=e.mainHeaderDef,setTimeout(()=>{let t=window.__codeListsComponent;t&&t.loadActionsFromChildComponent(this)},0)):(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)(r(v))}}static{this.\u0275cmp=s({type:i,selectors:[["paw-measurement-units-main"]],standalone:!1,features:[m],decls:1,vars:0,consts:[[3,"activate"]],template:function(t,n){t&1&&(d(0,"router-outlet",0),u("activate",function(D){return n.onActivate(D)}),c())},dependencies:[f],encapsulation:2})}}return i})();p();var x=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=a({type:i})}static{this.\u0275inj=o({imports:[l,C,M,h.forChild([{path:"",component:A,children:[{path:"",loadChildren:()=>import("./chunk-T25E467W.js").then(e=>e.MeasurementUnitsFormModule)},{path:"create",loadChildren:()=>import("./chunk-T25E467W.js").then(e=>e.MeasurementUnitsFormModule)},{path:"edit/:id",loadChildren:()=>import("./chunk-T25E467W.js").then(e=>e.MeasurementUnitsFormModule)}]}])]})}}return i})();export{x as MeasurementUnitsMainModule};
