PageSourceSearch

https://app.mathew.ai/assets/useMinimumStudentsValidation-CQRALDjI.js

js mathew.ai collected 2026-10-04 07:45:33 UTC 889 bytes, 1 lines download raw bytes

1import{Nu as e}from"./ui-SKwpGg_Y.js";import{E as t,pt as n,ut as r}from"./errors-D-RbivT4.js";function i(){let i=n(),a=r(),{effectiveInstitution:o,minStudentsToActiveClassGroups:s}=t(),c=e(()=>!!s.value&&!a.isTeacherUnlocked),l=e(()=>c.value?s.value:0);function u(e){let t=e.subject?.curriculum?.uuid;return t?!!o.value?.minStudentsExemptCurriculums?.includes(t):!1}function d(e){return e.nStudents>=l.value||u(e)}let f=e(()=>i.classGroups.filter(e=>!d(e))),p=e(()=>f.value.length),m=e(()=>p.value>0),h=e(()=>p.value===0);function g(e){let t=i.getClassGroupById(e);return t?d(t):!1}function _(e){return!c.value||a.inTrialPeriod?!1:!d(e)}return{hasMinRequirement:c,institutionMinStudents:l,isCurriculumExempt:u,activitySavesAsDraft:_,classGroupsBelowMinimum:f,classGroupsBelowMinimumCount:p,hasClassGroupsBelowMinimum:m,allClassGroupsMeetMinimum:h,classGroupMeetsMinimum:g}}export{i as t};

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.