import{a as I}from"./chunk-5UA5VHF6.js";import{a as V}from"./chunk-FAZDIGO2.js";import"./chunk-WDAZUL4E.js";import"./chunk-SFW4HL5C.js";import{b as g,e as R}from"./chunk-VUNYOK5R.js";import"./chunk-HEADD2PQ.js";import"./chunk-YD4O7GSA.js";import"./chunk-3XCQM56H.js";import"./chunk-4BJXIJID.js";import"./chunk-NP74G46F.js";import"./chunk-HFTVCBYM.js";import"./chunk-HF45QMXH.js";import{b as s,c as y}from"./chunk-3MQANUSP.js";import"./chunk-KBGRHJRS.js";import"./chunk-VPDCWC26.js";import{n as x}from"./chunk-UG3JEY24.js";import{Y as A}from"./chunk-43DYGKIM.js";import{x as F,y as N}from"./chunk-WEQN5LYX.js";import"./chunk-3Z43XD7L.js";import"./chunk-4KB2I3K5.js";import"./chunk-XX55TKIW.js";import"./chunk-YP3JSTZI.js";import"./chunk-YOIEYKEI.js";import{e as w}from"./chunk-Z7LIQ6LP.js";import"./chunk-LHFHLR5H.js";import"./chunk-LYZVOFWI.js";import"./chunk-SBDFU3ZH.js";import"./chunk-W5A7VAW2.js";import"./chunk-UGQL4IPH.js";import"./chunk-4TDNJBFX.js";import"./chunk-LI2NM675.js";import"./chunk-PUPLGGA6.js";import"./chunk-TO2CSN4Q.js";import"./chunk-YADAVUVK.js";import{j as M,k as S,p as C}from"./chunk-AVXTYPYF.js";import"./chunk-HNZDUL32.js";import"./chunk-YKFX4MVT.js";import{A as c,G as a,Kb as l,Lb as d,Nd as v,Ob as f,T as u,Td as H,ic as h,jc as j,la as E,od as n,ra as m,rc as b,wa as i,yb as p}from"./chunk-HEIW4SFT.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-7JA4YZWI.js").then(e=>e.SubjectsMainModule)},{path:"subjects-form",loadChildren:()=>import("./chunk-YRBKCH4Y.js").then(e=>e.SubjectsFormModule)},{path:"subjects-form/:id",loadChildren:()=>import("./chunk-YRBKCH4Y.js").then(e=>e.SubjectsFormModule)}]}])]})}}return t})();export{se as SubjectsModule};
