import{a as v}from"./chunk-VAM73QEL.js";import"./chunk-SFW4HL5C.js";import{a as w}from"./chunk-JPYTLRUG.js";import{d as C}from"./chunk-JACPFDGH.js";import"./chunk-JULIFMOQ.js";import"./chunk-PQLCDWQ6.js";import"./chunk-Y2RSZ5WF.js";import"./chunk-PKUFMOZE.js";import"./chunk-UJ4ETQW2.js";import"./chunk-MGS26YYO.js";import"./chunk-3LM5OI6G.js";import"./chunk-NR2EH2YV.js";import{V as M}from"./chunk-52M7WMZM.js";import"./chunk-FCHM4KKB.js";import"./chunk-HZCNZJUF.js";import"./chunk-DFEQHBPN.js";import"./chunk-ZEBPBUY2.js";import"./chunk-Q7WVU44Z.js";import"./chunk-W5A7VAW2.js";import"./chunk-UGQL4IPH.js";import"./chunk-4TDNJBFX.js";import"./chunk-LI2NM675.js";import"./chunk-M2LMD7BR.js";import"./chunk-YK4A5QUC.js";import"./chunk-I6HXBYFU.js";import{j as f,p as h}from"./chunk-AVXTYPYF.js";import"./chunk-HNZDUL32.js";import"./chunk-5EZRMHVZ.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-XCGLKFBR.js").then(e=>e.MeasurementUnitsFormModule)},{path:"create",loadChildren:()=>import("./chunk-XCGLKFBR.js").then(e=>e.MeasurementUnitsFormModule)},{path:"edit/:id",loadChildren:()=>import("./chunk-XCGLKFBR.js").then(e=>e.MeasurementUnitsFormModule)}]}])]})}}return i})();export{x as MeasurementUnitsMainModule};
