import{b as I}from"./chunk-X3LDVKHC.js";import{a as V}from"./chunk-FAZDIGO2.js";import"./chunk-RCLU5AJY.js";import{b as y,e as R}from"./chunk-5H5H6C4Y.js";import"./chunk-EJFPZ3YG.js";import"./chunk-QEMINC2A.js";import"./chunk-P4KRQVGS.js";import"./chunk-HVLAIORG.js";import"./chunk-7NRTBDEV.js";import"./chunk-WTAT2E5Z.js";import"./chunk-4KB2I3K5.js";import"./chunk-4EEGS4SZ.js";import"./chunk-Y46LOK5X.js";import"./chunk-3PEMIHKH.js";import{o as x}from"./chunk-DFPET44C.js";import{ea as A}from"./chunk-3SGEAGU4.js";import{y as g,z as N}from"./chunk-AXJC5PD4.js";import"./chunk-KX2PR432.js";import{e as w}from"./chunk-PCQVD4UN.js";import"./chunk-FUKRVTQR.js";import"./chunk-HMHHBN2H.js";import"./chunk-LTTEKZWN.js";import"./chunk-JD7XHN2Y.js";import"./chunk-PNYIEM2I.js";import{b as s,c as F}from"./chunk-WAKTITOT.js";import"./chunk-DIZJ6SFW.js";import"./chunk-NGFJDF4M.js";import"./chunk-DQXXLIFV.js";import{j as M,k as S,n as C}from"./chunk-BKF2JYPP.js";import"./chunk-OFEKULYN.js";import"./chunk-T3Q3DASN.js";import"./chunk-PYC6L6XB.js";import"./chunk-BEQYW66E.js";import{$b as h,Ab as l,Bb as d,Eb as f,F as u,Fd as v,Ld as H,_ as E,ac as j,ea as m,fd as n,ic as b,ja as i,m as c,ob as p,s as a}from"./chunk-LU6Q5ONP.js";import"./chunk-5VMFMKJR.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(F))}}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:[y,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,g,R,x,A,w,C.forChild([{path:"",component:_,children:[{path:"",canActivate:[D],children:[]},{path:"subjects-main",loadChildren:()=>import("./chunk-MIXVZNG2.js").then(e=>e.SubjectsMainModule)},{path:"subjects-form",loadChildren:()=>import("./chunk-226KXUDM.js").then(e=>e.SubjectsFormModule)},{path:"subjects-form/:id",loadChildren:()=>import("./chunk-226KXUDM.js").then(e=>e.SubjectsFormModule)}]}])]})}}return t})();export{se as SubjectsModule};
