PageSourceSearch

https://neptun.or-zse.hu/hallgato/chunk-QF6NWIYV.js

js or-zse.hu collected 2026-10-01 12:18:30 UTC 1,446 bytes, 1 lines download raw bytes

1import{E as l,Rf as b,Xg as p,ia as h,ie as u,la as m,ph as f,sh as A,v as a,w as d}from"./chunk-IVN2VXRW.js";var L=(()=>{class o{constructor(e){this.store=e,this.accessList$=this.store.select(f.getMenuPermissions),this.currentTraining$=this.store.select(A.currentTraining),this.isSubstituteSession$=this.store.select(p.isSubstituteSession),this.isSubstitutionReadonly$=this.store.select(b.isSubstitutionReadonly)}getAccessMode(e){return d([this.accessList$.pipe(l(t=>!!t.controllers.length)),this.currentTraining$.pipe(l(Boolean)),this.isSubstituteSession$,this.isSubstitutionReadonly$]).pipe(a(([t,s,i,n])=>{let r=t.controllers.find(c=>c.guid.toLowerCase()===e.toLowerCase());return r=i&&n?t.controllersAccessibleForSubstitutor.find(c=>c.guid.toLowerCase()===e.toLowerCase()):r,{accessMode:r?this.getAccessBasedOnTraining(t,e,s):i&&n?"disabled":"hidden",permissionGuid:e}}))}getAccessBasedOnTraining(e,t,s){if(!s)return"hidden";let i=this.isDisabled(t,s.isArchived,e.controllersAccessibleOnArchivedTraining),n=this.isDisabled(t,s.isClosedTraining,e.controllersAccessibleOnClosedTraining),r=this.isDisabled(t,!s.hasActualTerm,e.controllersAccessibleWithoutActualTerm);return i||n||r?"disabled":"enabled"}isDisabled(e,t,s){return t&&!s.some(i=>i.guid.toLowerCase()===e.toLowerCase())}static{this.\u0275fac=function(t){return new(t||o)(m(u))}}static{this.\u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{L as a};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.