import{a as v}from"./chunk-ZDFNZLFB.js";import"./chunk-RCLU5AJY.js";import{a as w}from"./chunk-4XLO6U6N.js";import{e as C}from"./chunk-5H5H6C4Y.js";import"./chunk-EJFPZ3YG.js";import"./chunk-QEMINC2A.js";import"./chunk-P4KRQVGS.js";import"./chunk-HVLAIORG.js";import"./chunk-7NRTBDEV.js";import"./chunk-WTAT2E5Z.js";import"./chunk-4KB2I3K5.js";import"./chunk-4EEGS4SZ.js";import"./chunk-Y46LOK5X.js";import"./chunk-3PEMIHKH.js";import"./chunk-DFPET44C.js";import{ea as M}from"./chunk-3SGEAGU4.js";import"./chunk-AXJC5PD4.js";import"./chunk-KX2PR432.js";import"./chunk-PCQVD4UN.js";import"./chunk-FUKRVTQR.js";import"./chunk-HMHHBN2H.js";import"./chunk-LTTEKZWN.js";import"./chunk-JD7XHN2Y.js";import"./chunk-PNYIEM2I.js";import"./chunk-WAKTITOT.js";import"./chunk-DIZJ6SFW.js";import"./chunk-NGFJDF4M.js";import"./chunk-DQXXLIFV.js";import{j as f,n as h}from"./chunk-BKF2JYPP.js";import"./chunk-OFEKULYN.js";import"./chunk-T3Q3DASN.js";import"./chunk-PYC6L6XB.js";import"./chunk-BEQYW66E.js";import{$b as d,Ab as s,Bb as a,Eb as m,Fd as l,Ld as U,ac as c,ea as o,fd as p,ic as u,ob as r}from"./chunk-LU6Q5ONP.js";import"./chunk-5VMFMKJR.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-6JD27ABI.js").then(e=>e.MeasurementUnitsFormModule)},{path:"create",loadChildren:()=>import("./chunk-6JD27ABI.js").then(e=>e.MeasurementUnitsFormModule)},{path:"edit/:id",loadChildren:()=>import("./chunk-6JD27ABI.js").then(e=>e.MeasurementUnitsFormModule)}]}])]})}}return i})();export{x as MeasurementUnitsMainModule};
