import{a as g}from"./chunk-54NLPTVP.js";import{c as s,d as b}from"./chunk-C2WGQZZS.js";import"./chunk-4NKYXKKW.js";import"./chunk-LNWF7VZ2.js";import"./chunk-T6NRFYFX.js";import{f as _}from"./chunk-RQCMKSAN.js";import"./chunk-JI65IOIM.js";import"./chunk-57DG2VC5.js";import"./chunk-NMMBNW5X.js";import"./chunk-5IDV7BCW.js";import"./chunk-CVFNZXIB.js";import"./chunk-EU5XKS65.js";import"./chunk-XALE2GEX.js";import"./chunk-GJIGZB63.js";import"./chunk-TOJME4VO.js";import"./chunk-2CD72B3Z.js";import"./chunk-4TDNJBFX.js";import"./chunk-4LZAXRJQ.js";import"./chunk-XHRSSCXW.js";import"./chunk-5VDVFGVW.js";import{j as D,p as L}from"./chunk-NLMVBXFK.js";import"./chunk-BUHB7MLU.js";import"./chunk-KUS3L5XF.js";import{Eb as l,Fb as p,Fd as A,Ib as f,Vb as u,a as r,b as a,cc as h,dc as C,la as m,lc as y,p as d,sb as c,uc as w,vc as v,wc as M}from"./chunk-J476KISY.js";var I=(()=>{class i extends g{constructor(t){super(),this.helpService=t,this.destroy$=new d,this.pageMeta={title:"CodeLists"},this.mainHeaderDef={viewTitle:"\u0160ifranti",viewActions:[]},this.mainOptionsDef={navigation:[{id:"subjects",label:"Menu_Subjects",link:"./subjects",featureId:"CodeLists.Subject.Access"},{id:"tax-rates",label:"Menu_TaxRates",link:"./tax-rates",featureId:"CodeLists.Taxes.Access"},{id:"payment-methods",label:"Menu_PaymentTypes",link:"./payment-methods",featureId:"CodeLists.PaymentTypes.Access"},{id:"locations",label:"Location",link:"./locations",featureId:"CodeLists.Location.Access"},{id:"postal-codes",label:"Menu_PostCodes",link:"./postal-codes",featureId:"CodeLists.Posts.Access"}]}}ngOnInit(){this.helpService.setHelpUrls({help:"",example:"",video:""}),window.__codeListsComponent=this}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),delete window.__codeListsComponent}onActivate(t){setTimeout(()=>{this.loadActionsFromChildComponent(t)},100)}loadActionsFromChildComponent(t){if(t&&typeof t.getViewActions=="function"){let e=t.getViewActions();if(e&&Array.isArray(e)){this.mainHeaderDef=a(r({},this.mainHeaderDef),{viewActions:e});return}}this.mainHeaderDef=a(r({},this.mainHeaderDef),{viewActions:[]})}static{this.\u0275fac=function(e){return new(e||i)(c(_))}}static{this.\u0275cmp=l({type:i,selectors:[["app-code-lists"]],viewQuery:function(e,o){if(e&1&&w(s,5),e&2){let n;v(n=M())&&(o.mainViewComponent=n.first)}},standalone:!1,features:[f],decls:2,vars:2,consts:[[3,"headerDef","optionsDef"],[3,"activate"]],template:function(e,o){e&1&&(h(0,"paw-main-view",0)(1,"router-outlet",1),y("activate",function(j){return o.onActivate(j)}),C()()),e&2&&u("headerDef",o.mainHeaderDef)("optionsDef",o.mainOptionsDef)},dependencies:[s,D],encapsulation:2})}}return i})();var q=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=p({type:i})}static{this.\u0275inj=m({imports:[A,b,L.forChild([{path:"",component:I,children:[]}])]})}}return i})();export{q as CodeListsModule};
