import{a as v}from"./chunk-DJTW2CSU.js";import"./chunk-ZL27GBK5.js";import"./chunk-SFW4HL5C.js";import{a as w}from"./chunk-UBK5MLVY.js";import{e as C}from"./chunk-BTP5BAWI.js";import"./chunk-VIOYYLYZ.js";import"./chunk-45YTPLQT.js";import"./chunk-M7KUGYHD.js";import"./chunk-P5QIZAYR.js";import"./chunk-NP74G46F.js";import"./chunk-MJOFOQMS.js";import"./chunk-5ZFCAS3C.js";import"./chunk-6N2JUHQ5.js";import"./chunk-MD4E42DS.js";import"./chunk-3VNHWO5L.js";import"./chunk-DVT4B5G2.js";import{Y as M}from"./chunk-326XXSIW.js";import"./chunk-WEQN5LYX.js";import"./chunk-KBBR346Q.js";import"./chunk-4KB2I3K5.js";import"./chunk-HT7MXF5Y.js";import"./chunk-QH2ACZQD.js";import"./chunk-IX7AXYZA.js";import"./chunk-4JWDQVOZ.js";import"./chunk-LHFHLR5H.js";import"./chunk-R6RUMZGP.js";import"./chunk-EAEGBVDW.js";import"./chunk-W5A7VAW2.js";import"./chunk-UGQL4IPH.js";import"./chunk-4TDNJBFX.js";import"./chunk-LI2NM675.js";import"./chunk-E5QW66QZ.js";import"./chunk-VJOI5RRQ.js";import"./chunk-FD5DZJ6H.js";import{j as f,p as h}from"./chunk-AVXTYPYF.js";import"./chunk-HNZDUL32.js";import"./chunk-YKFX4MVT.js";import{Kb as s,Lb as a,Nd as l,Ob as m,Td as U,ic as d,jc as c,od as p,ra as o,rc as u,yb as r}from"./chunk-HEIW4SFT.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-IPQ4T6JR.js").then(e=>e.MeasurementUnitsFormModule)},{path:"create",loadChildren:()=>import("./chunk-IPQ4T6JR.js").then(e=>e.MeasurementUnitsFormModule)},{path:"edit/:id",loadChildren:()=>import("./chunk-IPQ4T6JR.js").then(e=>e.MeasurementUnitsFormModule)}]}])]})}}return i})();export{x as MeasurementUnitsMainModule};
