import{a as v}from"./chunk-OSOJQUBM.js";import"./chunk-DKT5LASJ.js";import{a as w}from"./chunk-SFW4NJ6G.js";import{d as C}from"./chunk-WX63IFDP.js";import"./chunk-7CPWWFHE.js";import"./chunk-X6UPRG7K.js";import"./chunk-B7C5HNNP.js";import"./chunk-J25DWYAL.js";import"./chunk-RAH5V445.js";import"./chunk-EODP4Z73.js";import"./chunk-4AOSHZTN.js";import"./chunk-ZZNPAPIF.js";import{T as M}from"./chunk-J2K6XPCC.js";import"./chunk-Z5VIOXYK.js";import"./chunk-KERO2S36.js";import"./chunk-KCUKQ67F.js";import"./chunk-VH2CTNDD.js";import"./chunk-FU3L2UE5.js";import"./chunk-ISCRPPFS.js";import"./chunk-RZVYIWPU.js";import"./chunk-2AAPUETT.js";import"./chunk-4TDNJBFX.js";import"./chunk-DRQJ626T.js";import"./chunk-JOS5ROAP.js";import"./chunk-GYIOPDJL.js";import{j as f,p as h}from"./chunk-3Y5U3B3K.js";import"./chunk-QBH5ADXQ.js";import"./chunk-AIB6DFCP.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-EBMUBP7P.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-WNXN3HGA.js").then(e=>e.MeasurementUnitsFormModule)},{path:"create",loadChildren:()=>import("./chunk-WNXN3HGA.js").then(e=>e.MeasurementUnitsFormModule)},{path:"edit/:id",loadChildren:()=>import("./chunk-WNXN3HGA.js").then(e=>e.MeasurementUnitsFormModule)}]}])]})}}return i})();export{x as MeasurementUnitsMainModule};
