PageSourceSearch

https://classroom.freckle.com/js/index-DggSBOKL.js

js freckle.com collected 2026-09-24 10:30:44 UTC 4,215 bytes, 2 lines download raw bytes

1import{ae as e,af as s,u as t,j as r,a1 as a,R as o,b$ as n,at as i,Q as m,S as l,au as _,aj as c,ak as p,aw as d,ax as u,X as T,Z as E,bh as A,bi as f,c0 as N}from"./index-B1wCbfWL.js";import{u as O}from"./use-current-course-id-ZGLulyTi.js";import{M as S}from"./index-Baw9fUk7.js";import{S as L}from"./session-history-C6UwsXQR.js";import{C as j}from"./course-selector-handler-CrpwuhNG.js";import{S as x}from"./session-history-menu-CG-fmkd5.js";import{g as C}from"./map-Cgnw5VE3.js";import{T as g}from"./table-BrruizSd.js";import{c as G}from"./table-DqbDCvXI.js";import{T as h}from"./index-DLhDblpL.js";import"/config.js";import"./course-selector-9u2iN8uj.js";import"./index-CktT7jKP.js";import"./memoize-one.esm-o-udwBZD.js";import"./index-ALFUeIM9.js";import"./index-lO6aVWDV.js";import"./dropdown-Bxwjx4bb.js";import"./session-history-access-DqDrR8LQ.js";import"./index-DTw-Ryrt.js";import"./index-M8JOUAVd.js";import"./partition-CA_7apTz.js";import"./_createAggregator-BXQG9Dfe.js";function R({students:e,goals:s}){const{t:a}=t(),o=function(e,s,t){const r=C(t,e=>e.studentId);return s.flatMap(s=>{const t=r.get(s.id);return void 0!==t?t.flatMap(t=>"levels"===t.metric?[]:[{firstName:s.firstName,lastName:s.lastName,description:D(e,t.metric,t.value),percentComplete:t.percentComplete}]):[{firstName:s.firstName,lastName:s.lastName,description:e("STUDENT_GOAL_TABLE_NO_GOAL_DESCRIPTION"),percentComplete:null}]})}(a,e,s);return r.jsx(g,{data:o,columns:[{Header:a("STUDENT_GOAL_TABLE_FIRST_NAME_COLUMN_HEADER"),accessor:e=>e.firstName,id:"first-name",alignment:"left"},{Header:a("STUDENT_GOAL_TABLE_LAST_NAME_COLUMN_HEADER"),accessor:e=>e.lastName,id:"last-name",alignment:"left",defaultSortOrder:"desc"},{Header:a("STUDENT_GOAL_TABLE_GOAL_COLUMN_HEADER"),accessor:e=>e.description,id:"goal",alignment:"left"},{Header:a("STUDENT_GOAL_TABLE_STATUS_COLUMN_HEADER"),Cell:G(({percentComplete:e})=>r.jsx(M,{percentComplete:e})),accessor:e=>e.percentComplete,id:"percent-complete",alignment:"left"}]})}function D(e,s,t){switch(s){case"accuracy":return e("STUDENT_GOAL_TABLE_DESCRIBE_ACCURACY_GOAL",{numGoal:t});case"correctQuestions":return e("STUDENT_GOAL_TABLE_DESCRIBE_CORRECT_QUESTIONS_GOAL",{numGoal:t});default:return a.exhaustive(s,"StudentGoalMetricT")}}function M({percentComplete:e}){const{t:s}=t();return null==e?r.jsx("span",{className:"_notAvailableStyle_x50z2_93",children:s("STUDENT_GOAL_TABLE_FORMAT_NO_PERCENT_COMPLETE")}):e>=100?r.jsx("span",{className:"_completeStyle_x50z2_89",children:s("STUDENT_GOAL_TABLE_FORMAT_COMPLETED_PERCENT_COMPLETE")}):r.jsx(h,{leftStat:e,middleStat:100-e,rightStat:0,leftPopoverText:`${e}%`,middlePopoverText:s("STUDENT_GOAL_TABLE_FORMAT_INCOMPLETE_PERCENT_COMPLETE"),rightPopoverText:"",leftClassName:(a=e,a<50?"_badStyle_x50z2_81":a>=80?"_goodStyle_x50z2_73":"_neutralStyle_x50z2_77"),middleClassName:"_incompleteStyle_x50z2_85",rightClassName:""});var a}function U(e){const{t:s}=t(),{goals:a,students:_,isPremium:c,selectedDateOption:p,from:d,to:u}=e,T={currentItemName:n(s("STUDENT_GOALS_PAGE_TITLE")),path:[{url:o.reportsOverview("math"),name:s("BREADCRUMB_REPORT_OVERVIEW_NAME")}]};return r.jsx(i,{breadcrumbsConfig:T,pageHeaderText:s("STUDENT_GOALS_PAGE_TITLE"),children:r.jsxs(r.Fragment,{children:[r.jsx(m,{type:"warning",children:r.jsx(l,{i18nKey:"STUDENT_GOALS_PAGE_WARNING",components:{bold:r.jsx("strong",{})}})}),r.jsx(S,{children:r.jsxs(r.Fragment,{children:[r.jsx(j,{withLabel:!0}),r.jsx(x,{sessionType:L,isPremium:c,dateOption:p,from:d,to:u})]})}),r.jsx(R,{students:_,goals:a})]})})}function P(){const{from:t,to:a,dateOption:o}=_(),n=c(),i=p(),m=d(),{dateOption:l,from:S,to:L}=u(o,t,a),j=O(),x=T(()=>((t,r,a)=>e.GET("/2/courses/{CoursesStudentGoalsR-CourseId}/student-goals",{params:{path:{"CoursesStudentGoalsR-CourseId":t},query:{from:r.valueOf(),to:a.valueOf()}}}).then(s))(j,S,L),"fetchCoursesStudentGoals",[j,S,L]);return r.jsx(E,{resources:{premiumLicenses:m,students:n,courseMemberships:i,goals:x},render:({premiumLicenses:e,students:s,courseMemberships:t,goals:a})=>{const o=A(e),n=f(e);return r.jsx(U,{goals:a,students:N(s,j,t),isPremium:o||n,selectedDateOption:l,from:S,to:L})}})}
1export{P as default};
2//# sourceMappingURL=index-DggSBOKL.js.map

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.