import{a as I}from"./chunk-PBOPIJUX.js";import{a as V}from"./chunk-FAZDIGO2.js";import"./chunk-DKT5LASJ.js";import{b as g,d as R}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{b as s,c as y}from"./chunk-4AOSHZTN.js";import{k as x}from"./chunk-ZZNPAPIF.js";import{T as A}from"./chunk-J2K6XPCC.js";import{s as F,t as N}from"./chunk-Z5VIOXYK.js";import"./chunk-KERO2S36.js";import"./chunk-KCUKQ67F.js";import{g as w}from"./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 M,k as S,p as C}from"./chunk-3Y5U3B3K.js";import"./chunk-QBH5ADXQ.js";import"./chunk-AIB6DFCP.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-EBMUBP7P.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-ULUYSO44.js").then(e=>e.SubjectsMainModule)},{path:"subjects-form",loadChildren:()=>import("./chunk-L4PTUWWN.js").then(e=>e.SubjectsFormModule)},{path:"subjects-form/:id",loadChildren:()=>import("./chunk-L4PTUWWN.js").then(e=>e.SubjectsFormModule)}]}])]})}}return t})();export{se as SubjectsModule};
