import{a as I}from"./chunk-YSEXFCBJ.js";import{a as V}from"./chunk-FAZDIGO2.js";import"./chunk-CVN2SFTO.js";import{b as g,d as R}from"./chunk-NWQ7TT3N.js";import"./chunk-JEJK4HLJ.js";import"./chunk-MLDEIZ4D.js";import"./chunk-BOGTXGHD.js";import"./chunk-FIGHW4X4.js";import"./chunk-W3A2JYYI.js";import{b as s,c as y}from"./chunk-W47YR7MY.js";import"./chunk-Y34C7AHI.js";import{n as x}from"./chunk-CUASPFRX.js";import{V as A}from"./chunk-HLHVLECB.js";import{w as F,x as N}from"./chunk-6IEN3EM2.js";import"./chunk-P5KJQMC2.js";import"./chunk-HCYBOTNG.js";import{g as w}from"./chunk-V47ENDL4.js";import"./chunk-S5VNTSUD.js";import"./chunk-PT2SMVM6.js";import"./chunk-H2CU6EEU.js";import"./chunk-GK2ZGAUD.js";import"./chunk-4TDNJBFX.js";import"./chunk-NUAVJ2U7.js";import"./chunk-KOATU5RH.js";import"./chunk-XWHKIKFV.js";import"./chunk-PBM4LEG7.js";import{j as M,k as S,p as C}from"./chunk-QVLAHW2O.js";import"./chunk-TI6NUUOB.js";import"./chunk-LYCHGZAM.js";import{A as c,G as a,Kb as l,Lb as d,Md as v,Ob as f,Sd as H,T as u,hc as h,ic as j,la as E,nd as n,qc as b,ra as m,wa as i,yb as p}from"./chunk-PGS4AHIT.js";H();N();n();var _=(()=>{class t extends V{constructor(e){super(),this.helpService=e}ngOnInit(){this.helpService.setHelpUrls({help:s.Subjects,example:s.ExampleSubjectsNew,video:""})}onActivate(e){this.currentChild=e}getViewActions(){return this.currentChild&&typeof this.currentChild.getViewActions=="function"?this.currentChild.getViewActions():[]}static{this.\u0275fac=function(r){return new(r||t)(p(y))}}static{this.\u0275cmp=l({type:t,selectors:[["paw-subjects"]],standalone:!1,features:[f],decls:2,vars:0,consts:[[3,"activate"]],template:function(r,o){r&1&&(h(0,"paw-main-module-view")(1,"router-outlet",0),b("activate",function(U){return o.onActivate(U)}),j()())},dependencies:[g,M],encapsulation:2})}}return t})();n();E();var D=(t,O)=>{let e=i(S);return i(I).getFirstSubject().pipe(a(o=>(o?e.navigate(["/subjects/subjects-form",o,"basic-data"],{replaceUrl:!0}):e.navigate(["/subjects/subjects-form/create/basic-data"],{replaceUrl:!0}),!1)),u(()=>(e.navigate(["/subjects/subjects-form/create/basic-data"],{replaceUrl:!0}),c(!1))))};n();var se=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=d({type:t})}static{this.\u0275inj=m({imports:[v,F,R,x,A,w,C.forChild([{path:"",component:_,children:[{path:"",canActivate:[D],children:[]},{path:"subjects-main",loadChildren:()=>import("./chunk-L7LODKSN.js").then(e=>e.SubjectsMainModule)},{path:"subjects-form",loadChildren:()=>import("./chunk-PKAYQI4I.js").then(e=>e.SubjectsFormModule)},{path:"subjects-form/:id",loadChildren:()=>import("./chunk-PKAYQI4I.js").then(e=>e.SubjectsFormModule)}]}])]})}}return t})();export{se as SubjectsModule};
