1import{ae as s,af as e,j as t,aj as n,gv as a,u as i,aO as r,bs as d,am as o,ij as l,Z as m,ei as u,cj as c,ce as p}from"./index-DwY57-TY.js";import{m as j,p as f,E as S}from"./index-DumqM_1B.js";import{P as x,T as I}from"./index-CZnv2UBU.js";import{E as g,a as E,b as T}from"./index-w2Ddko3h.js";import{d as h,e as y}from"./alignment-8s4tmlhw.js";import{u as _}from"./practice-DxMu1W90.js";import{u as k}from"./use-current-course-id-Czuftnei.js";import{W as P}from"./with-ela-system-DTBxMSvb.js";import"/config.js";import"./index-GB9LgcLm.js";import"./index-DeuvGIch.js";import"./index-DtSzBnTk.js";import"./created-for-Bj2asDTb.js";import"./rich-text-format-BgrL2qZj.js";import"./index-Dvvwaap7.js";import"./index-CedMhWZ3.js";import"./map-D73ICZdg.js";import"./skill-set-CWsOmR8k.js";import"./rl-standard-set-J8B8fgs0.js";function w({elaStandardSet:P}){const w=n(),q=k(),K=a(),N=h(),A=y({tag:"all-standards"}),{t:v}=i(),C=_({courseId:q,products:r.mkNonEmptySingleton(d.ElaFocusSkillsPractice),params:{assignmentIds:[K]}}),L=o(({assignmentSessions:t})=>async function(t,n,a){return s.POST("/3/{ContentAreaP-ContentArea}/focus-skills/skills",{params:{path:{"ContentAreaP-ContentArea":a}},body:{studentIds:t,standardSetId:n.id}}).then(e).then(s=>Object.entries(s).map(([s,e])=>[parseInt(s,10),e]))}(t.map(s=>s.studentId),P,"ela"),"fetch student proficiencies",[P],{assignmentSessions:C}),b=o(({skillProficiencies:s,standards:e,skills:t})=>Promise.all(s.map(async([s,n])=>{var a;const i=j(e,t),r=await l(n,(null==(a=i.get(n))?void 0:a.standard.id)??null,P.id,10);return Promise.resolve([s,n,r])})),"fetchQuestionTypes",[P.id],{skillProficiencies:L,standards:N,skills:A});return t.jsx(m,{resources:{students:w,assignmentSessions:C,studentSkillQuestions:b,standards:N,skills:A},render:({students:s,assignmentSessions:e,studentSkillQuestions:n,standards:a,skills:i})=>{const r=j(a,i),o=e[0];u(o,`Unable to find ELA Focus Skills Practice Session with ID ${K}`);const{title:l,metadata:m}=o;u("ela_focus_skills_practice"===m.tag,"We have already filtered the session");const h={itemId:"questions",itemTitle:v("QUESTIONS")},y=[h,{itemId:"answerKey",itemTitle:v("PREVIEW_PRINT_ASSINGMENT_ANSWER_KEY_TITLE")}],_=l??c(v("FOCUS_SKILLS_PRACTICE_TITLE")),{questions:k,answerKey:P}=function(s,e,n){const a=e.map(([e,a,i])=>{const r=s.find(s=>s.id=e),d=n.get(a);if(void 0===r||void 0===d)return null;const{lefts:o,rights:l}=f(i);if(o.length>0){const s=o.flatMap(s=>s.questions.map(s=>s.answersIndexes));return{questions:t.jsx(g,{student:r,passages:o,standard:d.standard}),answerKey:t.jsx(S,{student:r,standard:d.standard,answerIndeces:s})}}return l.length>0?{questions:t.jsx(T,{student:r,standard:d.standard,questions:l}),answerKey:t.jsx(E,{student:r,standard:d.standard,questions:l})}:null});return a.reduce((s,e)=>null===e?s:{questions:[...s.questions,e.questions],answerKey:[...s.answerKey,e.answerKey]},{questions:[],answerKey:[]})}(s,n,r);return t.jsx(x,{menuTitle:v("PRINT_PREVIEW_MENU_TITLE"),menuItems:y,answerKeys:[{tag:"element",content:P}],assignmentType:d.ElaAdaptiveSkillsPractice,hideNameField:!0,children:t.jsxs(t.Fragment,{children:[t.jsx(I,{dataTest:"assignment-title",title:p(_)}),t.jsx("ol",{className:"_sessionList_1nm06_73",children:t.jsx("span",{id:h.itemId,children:k})})]})})}})}function q(){return t.jsx(P,{render:({elaStandardSet:s})=>t.jsx(w,{elaStandardSet:s})})}export{q as default}; 2//# sourceMappingURL=index-De1abj76.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.