1"use strict";(self.webpackChunkotus_app=self.webpackChunkotus_app||[]).push([[9255],{24988:(C,_,r)=>{r.d(_,{P:()=>o});var s=r(70655),n=r(29923);class o{constructor(){this.weight=0}}(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],o.prototype,"id",void 0),(0,s.gn)([(0,n.autoserializeAs)("assessment_type_id"),(0,s.w6)("design:type",Number)],o.prototype,"assessmentTypeId",void 0),(0,s.gn)([(0,n.autoserializeAs)("type_id"),(0,s.w6)("design:type",Number)],o.prototype,"typeId",void 0),(0,s.gn)([(0,n.autoserializeAs)("assessment_weighting_id"),(0,s.w6)("design:type",Number)],o.prototype,"weightingId",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],o.prototype,"weight",void 0)},88889:(C,_,r)=>{r.d(_,{X:()=>o});var s=r(70655),n=r(29923);class o{constructor(u=null,b=!1,A=null){this.title=u,this.isCorrectAnswer=b,this.placeHolder=A}set optionDescription(u){this.title=u}get optionDescription(){return this.title}clone(){return Object.assign(new o,this)}getQuestionLetterByIndex(){switch(this.index){case 0:return"A";case 1:return"B";case 2:return"C";case 3:return"D";case 4:return"E";case 5:return"F"}return"Z"}}(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],o.prototype,"id",void 0),(0,s.gn)([(0,n.autoserializeAs)("id_exam_question"),(0,s.w6)("design:type",Number)],o.prototype,"idExamQuestion",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",String)],o.prototype,"title",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],o.prototype,"index",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",String)],o.prototype,"description",void 0),(0,s.gn)([(0,n.autoserializeAs)("is_correct_answer"),(0,s.w6)("design:type",Boolean)],o.prototype,"isCorrectAnswer",void 0)},41103:(C,_,r)=>{r.d(_,{W:()=>l});var s=r(70655),n=r(29923),o=r(80059),c=r(34650),u=r(61245),b=r(80613),A=r(70809);class I{clone(){return Object.assign(new I,this)}}(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],I.prototype,"id",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],I.prototype,"index",void 0);var O=r(88889);class g{static OnDeserialized(y,h){y.attachment=(0,n.Deserialize)(h,o.g)}clone(){return Object.assign(new g,this)}}(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],g.prototype,"id",void 0),(0,s.gn)([(0,n.autoserializeAs)("exam_question_id"),(0,s.w6)("design:type",Number)],g.prototype,"questionId",void 0);var U=r(14344);class l{constructor(){this.abStandards=null}set optionDescription(y){this.title=y}get optionDescription(){return this.title}static OnDeserialized(y,h){h&&h.question_type_id==A.S.ATTACHMENT&&(y.attachment=(0,n.Deserialize)(h,o.g)),y.id||(y.id=h.exam_question_id),y.id=Number(y.id),y.gradedPoint&&(y.gradedPoint=Number(y.gradedPoint)),y.point=Number(y.point),y.questionTypeId=Number(y.questionTypeId)}clone(){return Object.assign(new l,this)}isTrueOrFalse(){return null!=this.questionTypeId&&this.questionTypeId===A.S.TRUE_FALSE}isMultipleChoice(){return null!=this.questionTypeId&&this.questionTypeId===A.S.MULTIPLE_CHOICE}isShortAnswer(){return null!=this.questionTypeId&&this.questionTypeId===A.S.SHORT_ANSWER}isRubric(){return null!=this.questionTypeId&&this.questionTypeId===A.S.RUBRIC}isAttachment(){return null!=this.questionTypeId&&this.questionTypeId===A.S.ATTACHMENT}}(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],l.prototype,"id",void 0),(0,s.gn)([(0,n.autoserializeAs)("user_id"),(0,s.w6)("design:type",Object)],l.prototype,"userId",void 0),(0,s.gn)([(0,n.autoserializeAs)("assessment_id"),(0,s.w6)("design:type",Number)],l.prototype,"assessmentId",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",String)],l.prototype,"title",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",String)],l.prototype,"description",void 0),(0,s.gn)([(0,n.autoserializeAs)("date_created"),(0,s.w6)("design:type",String)],l.prototype,"dateCreated",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],l.prototype,"point",void 0),(0,s.gn)([(0,n.autoserializeAs)("question_point"),(0,s.w6)("design:type",Number)],l.prototype,"questionPoint",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],l.prototype,"index",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",String)],l.prototype,"sample",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",String)],l.prototype,"hint",void 0),(0,s.gn)([(0,n.autoserializeAs)("question_type_id"),(0,s.w6)("design:type",Number)],l.prototype,"questionTypeId",void 0),(0,s.gn)([(0,n.autoserializeAs)(I,"correct_answers"),(0,s.w6)("design:type",Array)],l.prototype,"correctAnswers",void 0),(0,s.gn)([(0,n.autoserializeAs)("item_count"),(0,s.w6)("design:type",Number)],l.prototype,"itemCount",void 0),(0,s.gn)([(0,n.autoserializeAs)("audio_file"),(0,s.w6)("design:type",String)],l.prototype,"audioFile",void 0),(0,s.gn)([(0,n.autoserializeAs)(O.X),(0,s.w6)("design:type",Array)],l.prototype,"items",void 0),(0,s.gn)([(0,n.autoserializeAs)(c.S,"common_cores"),(0,s.w6)("design:type",Array)],l.prototype,"commonCores",void 0),(0,s.gn)([(0,n.autoserializeAs)(u.N,"custom_standards"),(0,s.w6)("design:type",Array)],l.prototype,"customStandards",void 0),(0,s.gn)([(0,n.autoserializeAs)(U.v,"rubric_grading_scales"),(0,s.w6)("design:type",Array)],l.prototype,"rubricGradingScales",void 0),(0,s.gn)([(0,n.autoserializeAs)(g),(0,s.w6)("design:type",Array)],l.prototype,"attachments",void 0),(0,s.gn)([(0,n.autoserializeAs)("graded_point"),(0,s.w6)("design:type",Number)],l.prototype,"gradedPoint",void 0),(0,s.gn)([(0,n.autoserializeAs)("graded_range"),(0,s.w6)("design:type",String)],l.prototype,"gradedRange",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],l.prototype,"deviations",void 0),(0,s.gn)([(0,n.autoserializeAs)(b.L,"ab_standards"),(0,s.w6)("design:type",Array)],l.prototype,"abStandards",void 0)},14344:(C,_,r)=>{r.d(_,{v:()=>c});var s=r(70655),n=r(29923),o=r(58347);class c{constructor(b,A,I){this.ranged=!1,this.standardRange=b,this.minPoints=A,this.maxPoints=I}clone(){return Object.assign(new c,this)}}(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],c.prototype,"id",void 0),(0,s.gn)([(0,n.autoserializeAs)(o.x,"standard_range"),(0,s.w6)("design:type",o.x)],c.prototype,"standardRange",void 0),(0,s.gn)([(0,n.autoserializeAs)("min_points"),(0,s.w6)("design:type",Number)],c.prototype,"minPoints",void 0),(0,s.gn)([(0,n.autoserializeAs)("max_points"),(0,s.w6)("design:type",Number)],c.prototype,"maxPoints",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",String)],c.prototype,"description",void 0),(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Object)],c.prototype,"ranged",void 0)},16109:(C,_,r)=>{r.d(_,{F:()=>u});var s=r(70655),n=r(29923),o=r(80059),c=r(88889);class u{}(0,s.gn)([n.autoserialize,(0,s.w6)("design:type",Number)],u.prototype,"id",void 0),(0,s.gn)([(0,n.autoserializeAs)("assignment_id"),(0,s.w6)("design:type",Number)],u.prototype,"assignmentId",void 0),(0,s.gn)([(0,n.autoserializeAs)("exam_question_id"),(0,s.w6)("design:type",Number)],u.prototype,"examQuestionId",void 0),(0,s.gn)([(0,n.autoserializeAs)(c.X,"exam_question_item_id"),(0,s.w6)("design:type",Array)],u.prototype,"answers",void 0),(0,s.gn)([(0,n.autoserializeAs)("text_answer"),(0,s.w6)("design:type",String)],u.prototype,"textAnswer",void 0),(0,s.gn)([(0,n.autoserializeAs)("fileURL"),(0,s.w6)("design:type",String)],u.prototype,"fileURL",void 0),(0,s.gn)([(0,n.autoserializeAs)("date_created"),(0,s.w6)("design:type",String)],u.prototype,"dateCreated",void 0),(0,s.gn)([(0,n.autoserializeAs)("date_updated"),(0,s.w6)("design:type",String)],u.prototype,"dateUpdated",void 0),(0,s.gn)([(0,n.autoserializeAs)("audio_file"),(0,s.w6)("design:type",String)],u.prototype,"audioFile",void 0),(0,s.gn)([(0,n.autoserializeAs)("elapsed_time"),(0,s.w6)("design:type",Number)],u.prototype,"elapsedTime",void 0),(0,s.gn)([(0,n.autoserializeAs)(o.g,"attachment"),(0,s.w6)("design:type",o.g)],u.prototype,"attachment",void 0)},9255:(C,_,r)=>{r.d(_,{e:()=>ee});var s=r(29923),n=r(39646),o=r(54004),c=r(70262),u=r(56711),b=r(21112),A=r(70517),I=r(79936),O=r(10425),g=r(97639),U=r(16287),l=r(10176),a=r(70655),y=r(24988);class h{}(0,a.gn)([s.autoserialize,(0,a.w6)("design:type",Number)],h.prototype,"id",void 0),(0,a.gn)([(0,s.autoserializeAs)("user_id"),(0,a.w6)("design:type",Number)],h.prototype,"userId",void 0),(0,a.gn)([(0,s.autoserializeAs)("course_id"),(0,a.w6)("design:type",Number)],h.prototype,"courseId",void 0),(0,a.gn)([s.autoserialize,(0,a.w6)("design:type",Number)],h.prototype,"status",void 0),(0,a.gn)([(0,s.autoserializeAs)(y.P,"items"),(0,a.w6)("design:type",Array)],h.prototype,"items",void 0);var T=r(27265),W=r(18150),M=r(24911),F=r(58347);class z{static OnDeserialized(E,e){E.submittedAt=e.submitted_at?(0,g.bR)(e.submitted_at):null}}(0,a.gn)([s.autoserialize,(0,a.w6)("design:type",Number)],z.prototype,"id",void 0),(0,a.gn)([(0,s.autoserializeAs)("assignment_id"),(0,a.w6)("design:type",Number)],z.prototype,"assignmentId",void 0),(0,a.gn)([(0,s.autoserializeAs)("submitted_at"),(0,a.w6)("design:type",Date)],z.prototype,"submittedAt",void 0),(0,a.gn)([(0,s.autoserializeAs)("user_id"),(0,a.w6)("design:type",Number)],z.prototype,"userId",void 0),(0,a.gn)([(0,s.autoserializeAs)(M.T,"user"),(0,a.w6)("design:type",M.T)],z.prototype,"user",void 0),(0,a.gn)([(0,s.autoserializeAs)("total_points"),(0,a.w6)("design:type",Number)],z.prototype,"totalPoints",void 0),(0,a.gn)([s.autoserialize,(0,a.w6)("design:type",Number)],z.prototype,"score",void 0),(0,a.gn)([(0,s.autoserializeAs)("extra_credit"),(0,a.w6)("design:type",Number)],z.prototype,"extraCredit",void 0),(0,a.gn)([(0,s.autoserializeAs)("standard_range"),(0,a.w6)("design:type",F.x)],z.prototype,"standardRange",void 0);var R=r(76329),K=r(41103),G=r(16109),J=r(79019);class P{clone(){return Object.assign(new P,this)}}(0,a.gn)([(0,s.autoserializeAs)(G.F,"student_question_submitted"),(0,a.w6)("design:type",G.F)],P.prototype,"answer",void 0),(0,a.gn)([(0,s.autoserializeAs)(J.e,"student_question_graded"),(0,a.w6)("design:type",Array)],P.prototype,"grades",void 0);var Q=r(14344),H=r(34650),V=r(61245),j=r(80613);class f{constructor(E){this.questionId=E?.questionId||null}clone(){return Object.assign(new f,this)}get id(){return this.questionId}get optionDescription(){return this.questionTitle}get optionSubtitle(){return this.assessmentTitle}}(0,a.gn)([(0,s.autoserializeAs)("id"),(0,a.w6)("design:type",Number)],f.prototype,"questionId",void 0),(0,a.gn)([(0,s.autoserializeAs)("title"),
1(0,a.w6)("design:type",String)],f.prototype,"questionTitle",void 0),(0,a.gn)([(0,s.autoserializeAs)("description"),(0,a.w6)("design:type",String)],f.prototype,"questionDescription",void 0),(0,a.gn)([(0,s.autoserializeAs)("assessment_id"),(0,a.w6)("design:type",String)],f.prototype,"assessmentId",void 0),(0,a.gn)([(0,s.autoserializeAs)("assessment_title"),(0,a.w6)("design:type",String)],f.prototype,"assessmentTitle",void 0),(0,a.gn)([(0,s.autoserializeAs)(j.L,"ab_standards"),(0,a.w6)("design:type",Array)],f.prototype,"abStandards",void 0),(0,a.gn)([(0,s.autoserializeAs)(H.S,"common_cores"),(0,a.w6)("design:type",Array)],f.prototype,"commonCores",void 0),(0,a.gn)([(0,s.autoserializeAs)(V.N,"custom_standards"),(0,a.w6)("design:type",Array)],f.prototype,"customStandards",void 0),(0,a.gn)([(0,s.autoserializeAs)(Q.v,"rubric_grading_scales"),(0,a.w6)("design:type",Array)],f.prototype,"rubricGradingScales",void 0);var $=r(48324),N=r(81400),x=r(85007),Y=r(39001),q=r(49362),X=r(47165),Z=r(37464),S=r(94650),k=r(37699);let ee=(()=>{class D{constructor(e,i,t,d,v,m,p,w){this._apiService=e,this._napiService=i,this._userSessionService=t,this._assessmentClient=d,this.bffClient=v,this.userService=m,this.respondusService=p,this.alertMessageService=w}getQuestions(e,i=!1,t=!1,d=null){const v=Object.assign({assessment_id:e,random_questions:!1,random_answer_choices:!1,hide_attachments:!!i,strip_html_tags:!!t},null!=d?{student_id:d}:{});return this._apiService.doGetTyped("/assessment/get_list_questions_of_assessment",v,K.W)}getRubricAssessmentById(e){const i=$localize`:assessmentService/getRubricAssessmentById|Alert text to notify get assessment request error:Error getting assessment`;if(this.respondusService.usingRespondus)return this._apiService.doGetTyped("/assessment/get_by_id",{assessment_id:e},T.s).pipe((0,o.U)(d=>d?.getResult()),(0,c.K)(d=>(console.error("Error getting assessment:",d),this.alertMessageService.error(i),(0,n.of)(null))));switch(this.userService.currentUser.getUserType()){case N.E.STUDENT:return this.bffClient.getAssessmentAsStudent(e,x.I.RUBRIC).pipe((0,o.U)(t=>T.s.fromAssessmentBff(t)),(0,c.K)(t=>(console.error("Error getting assessment as student:",t),this.alertMessageService.error(i),(0,n.of)(null))));case N.E.ADMIN:return this.bffClient.getAssessmentAsAdmin(e,x.I.RUBRIC).pipe((0,o.U)(t=>T.s.fromAssessmentBff(t)),(0,c.K)(t=>(console.error("Error getting assessment as admin:",t),this.alertMessageService.error(i),(0,n.of)(null))));case N.E.TEACHER:return this.bffClient.getAssessmentAsTeacher(e,x.I.RUBRIC).pipe((0,o.U)(t=>T.s.fromAssessmentBff(t)),(0,c.K)(t=>(console.error("Error getting assessment as teacher:",t),this.alertMessageService.error(i),(0,n.of)(null))));default:return console.error("Error getting assessment, unexpected user type"),this.alertMessageService.error(i),(0,n.of)(null)}}save(e){var i;const t=e.serialize();return t.user_id=e.userId,t.timed_test=t.timed?1:0,t.number_of_minutes=e.minutes,t.assessment_type_id=e.typeId,t.assessment_style_id=e.styleId,e.styleId==U.R.RUBRIC_BASED&&(t.show_descriptors=1),e.gradingType.isPoints()||(t.custom_standard_grading_id=e.gradingScaleId),!(null===(i=e.gradingType)||void 0===i)&&i.id&&(t.grading_type=e.gradingType.id),e.dueDate&&(t.due_date=(0,g.xu)(e.dueDate,"YYYY-MM-DD")),e.id>0?(t.assessment_id=t.id,this._apiService.doPostTyped("/assessment/edit_assessment",t,null,T.s)):(t.folder_id=e.folderId,this._apiService.doPostTyped("/assessment/add_assessment",t,null,T.s))}assignRubricAssessment(e,i,t,d){return this._assessmentClient.assignRubricAssessment({assessmentId:e,assignmentSettings:i,studentAndCourseIds:t,turnItInSettings:d})}cloneAssessmentV2(e,i){const t={};return Object.assign(t,e),t.folderId=i,t.usedFor=t.typeId,this._napiService.doPost(`/services/assessments/clone/${e.otusAssessmentType}/${e.id}`,null,t).pipe((0,o.U)(d=>d))}getStudentAssignment(e){return this._apiService.makeApiCall("/assessment/get_students_assignment",e.parseToJson()).pipe((0,o.U)(i=>(i.result=(0,s.Deserialize)(i.result,b.P),i)))}getAssessmentWithAssignments(e){return this._apiService.makeApiCall("/assessment/get_assessment_with_assignments",e.parseToJson()).pipe((0,o.U)(i=>{i.result=(0,s.Deserialize)(i.result,T.s);const t=u.xS.createFromJson(i.pagination);return new u.oC(t,i.result)}))}getGradebookData(e){return this._napiService.doGet(`/rubric/gradebook/${e.courseId}`,e.parseToJson()).pipe((0,o.U)(i=>(0,s.Deserialize)(i,T.s)))}assignStudentAssessment(e,i){return this._apiService.doPostTyped("/assessment/assign_student_assignment",{assignment_settings_id:e,student_id:i},null,R.t)}getAssignmentsAssociatedWithAssignmentSettings(e){return this._apiService.doGet("/assessment/get_assignments_associated_with_assignment_settings",{assignment_settings_id:e}).pipe((0,o.U)(t=>u.kO.ResultSuccess(t.result)))}getRubricAssignmentDetails(e){return this._assessmentClient.getRubricAssignmentDetails({assignmentSettingsId:e})}copyAssessment(e){return this._apiService.makeApiCall("/assessment/copy_asse
1ssment",e.parseToJson()).pipe((0,o.U)(i=>{if(i.status)return i.result=(0,s.Deserialize)(i.result,T.s)}))}copyAssessmentV2(e,i){return this._napiService.doPost("/services/rubric/assessment/copy",null,{assessment:e,folderId:i})}getAssessmentTypes(){return this._apiService.doGet("/assessment/assessment_types").pipe((0,o.U)(e=>u.kO.Deserialize(e,l.T)))}deleteAssessment(e){return this._apiService.doDelete("/assessment/delete_assessment",e.parseToJson()).pipe((0,o.U)(i=>i?.status))}deleteAssignmentFromAssessment(e){return this._apiService.doDelete("/assessment/delete_assignment_settings",e)}shareAssessmentGoogleFiles(e,i,t,d,v){const m={assessment_id:e};if(t){const p=[];for(const w of t)p.push(w.id);m.courses=p}if(d){const p=[];for(const w of d)p.push(w.id);m.flags=p}if(i)for(let p=0;p<i.length;p++)m["students["+p+"][user_id]"]=i[p].student.getId(),m["students["+p+"][course_id]"]=i[p].course.id;return v>0&&(m.assignment_setting_id=v),this._apiService.doPost("/assessment/share_assessment_google_files",m).pipe((0,o.U)(p=>p.status))}getAssignmentsByAssessmentId(e){return this._apiService.makeApiCall("/assessment/get_assignment",e.parseToJson()).pipe((0,o.U)(i=>{if(i?.status)return i.result=(0,s.Deserialize)(i.result,R.t)}))}getAssessmentWeighting(e){return this._apiService.doGet("/assessment/list_assessment_weighting",e.parseToJson()).pipe((0,o.U)(i=>u.kO.Deserialize(i,h)))}getAssessmentWeightingForStudent(e){return this._apiService.doGet("/assessment/list_assessment_weighting_for_student",e.parseToJson()).pipe((0,o.U)(i=>u.kO.Deserialize(i,h)))}editAssessmentWeighting(e){const i=e.parseToJson();for(let t=0;t<e.weightingItems.length;t++)i["item["+t+"][type_id]"]=e.weightingItems[t].assessmentTypeId,i["item["+t+"][weight]"]=e.weightingItems[t].weight;return this._apiService.doPost("/assessment/edit_assessment_weighting",i).pipe((0,o.U)(t=>new u.kO(t)))}createAssessmentWeighting(e){const i=e.parseToJson();for(let t=0;t<e.weightingItems.length;t++)i["item["+t+"][type_id]"]=e.weightingItems[t].assessmentTypeId,i["item["+t+"][weight]"]=e.weightingItems[t].weight;return this._apiService.doPost("/assessment/create_assessment_weighting",i).pipe((0,o.U)(t=>new u.kO(t)))}resetAssessmentWeighting(e){const i=e.parseToJson();return this._apiService.doPost("/assessment/reset_assessment_weighting",i).pipe((0,o.U)(t=>new u.kO(t)))}getStudentQuestionSubmitted(e,i=!1){const t=Object.assign({assignment_id:e},i?{allow_archived_classes:i}:{});return this._apiService.doGetTyped("/assessment/get_student_question_submitted",t,P)}getAssignmentSubmissions(e){return this._apiService.doGetTyped("/assessment/get_assignment_submissions",{assignment_id:e},z)}updateValidationStatus(e,i){return this._apiService.doPost("/assessment/set_validation_status",{assignment_id:e,status:i}).pipe((0,o.U)(d=>new u.kO(d)))}updateMultipleValidationStatuses(e,i,t){return this._napiService.doPut("/gradebook/update-multiple-validation-status/"+t,{},{studentList:e,assignmentSettingsId:i,assessmentEnum:Y.s.RUBRIC})}deleteAssessmentCommentByAssignments(e){return this._apiService.doPost("/assessment/delete_assessment_comment_by_assignments",{assignment_ids:e}).pipe((0,o.U)(t=>t?.status))}addAssessmentCommentToAssignments(e,i){return this._apiService.doPost("/assessment/add_assessment_comment_to_assignments",{assignment_ids:e,comment:i}).subscribe()}sendCopyToTeacherFlags(e,i,t){return this._apiService.doPost("/assessment/send_copy_to_teacher_flags",{assessment_id:e,teacher_flag_id:i,is_locked:t}).pipe((0,o.U)(v=>new u.kO(v)))}canShowAssignmentGrade(e){return this._apiService.doGet("/assessment/can_show_assignment_grade",{assignment_id:e}).pipe((0,o.U)(t=>t?.status?u.kO.ResultSuccess(t.result):u.kO.Error()))}updateTotalPointsByAssignment(e,i,t,d=!0,v){let m;return t&&(t=t.setHours(23,59,59),t=(0,g.qp)(t,g.yg)),v&&(m={showWorm:d,requestTimeout:v}),this._apiService.doPost("/assessment/update_total_points_assignment",{assignment_id:e,total_points:i,due_date:t??null,loadingParams:m}).pipe((0,o.U)(w=>new u.kO(w)))}updateAssignmentSettings(e){const i={assignment_settings_id:e.id,quarter:e.quarter?e.quarter:1,lockdown:e.lockdown?e.lockdown:0,print_enabled:0,whitelist:e.whitelist?e.whitelist:"",blacklist:e.blacklist?e.blacklist:"",timed:e.timed?e.timed:0,number_minutes:e.minutes?e.minutes:0,exclude_grade_from_total:e.excludeGradeFromTotal?e.excludeGradeFromTotal:0,allow_multiple_attempts:e.allowMultipleAttempts?e.allowMultipleAttempts:0,allow_review_after_graded:e.allowReviewAfterGraded,randomize_questions:e.randomizeQuestions?e.randomizeQuestions:0,is_turnitin_assignment:e.isTurnitinAssignment?e.isTurnitinAssignment:0,instructions:e.instructions?e.instructions:"",allowSubmittingMissingAssignments:e.allowSubmittingMissingAssignments};return e.dateSchedule&&(i.date_schedule=(0,g.qp)(e.dateSchedule,g.yg)),e.dueDate&&(i.due_date=(0,g.qp)(e.dueDate,g.yg)),e.postGradeDate?i.postGradeDate=(0,g.qp)(e.postGradeDate,g.x1):null===e.postGradeDate&&(i.postGradeDate=null),this._apiService.doPostTyped("/assessment/update_assignment_settings",i,null,W.H).pipe((0,o.U)(t=>{if(t)return this._napiService.doPost("/student-standards/rubric",{},{settingsIds:e.id}).subscribe(()=>({hasSuccess:!0}))}
1))}updateTurnitinAssignmentSettings(e){return this._napiService.doPut(`/classic-assess/edit/turnitin/${e.id}`,null,{id:e.id,assignmentSettingsId:e.assignmentSettingsId,excludeInternet:e.excludeInternet,excludePublications:e.excludePublications,excludeCrossref:e.excludeCrossref,excludeCrossrefPostedContent:e.excludeCrossrefPostedContent,excludeSubmittedWorks:e.excludeSubmittedWorks,excludeBibliography:e.excludeBibliography,excludeQuotes:e.excludeQuotes,excludeAbstract:e.excludeAbstract,excludeMethods:e.excludeMethods}).pipe((0,o.U)(d=>d))}getSimilarityLinks(e){return this._napiService.doGet("/classic-assess/submissions/url",{assignmentId:e},!1)}getTurnitinEnabledFeatures(){const e=this._userSessionService.getSelectedDistrict().id;return this._napiService.doGet(`/classic-assess/turnitin/features/available/${e}`,!1)}getAssignmentStatus(e,i){return this._napiService.doGet("/learnosity/assessment/assigned/status/"+i+"/"+e)}getAssignmentSettingsById(e){return this._napiService.doGet("/classic-assess/assignment-details/"+e)}getAssignmentsPointsByCourseId(e,i,t,d=!0,v,m){const p={course_id:e,student_id:t};let w;v&&(w={showWorm:d,requestTimeout:v}),i>0&&(p.quarter=i);const B=m?.startDate?m.startDate:null,L=m?.endDate?m.endDate:null;return B&&L&&(p.start_date=(0,g.qp)(B,g.yg),p.end_date=(0,g.qp)(L,g.yg)),this._apiService.doGet("/assessment/get_assignments_points_by_course_id",p,w)}getDescriptorsByTitle(e,i,t){const d={title:e,grading_type:i};return t&&(d.grading_scale_id=t),this._apiService.doGetTyped("/assessment/get_descriptors_by_title",d,f)}hasStandardsInAllItems(e){return this._apiService.doGetTyped("/assessment/has_standards_in_all_items",{assessment_id:e},Boolean)}getAttachmentById(e){return this._napiService.doGet("/services/rubric/assessment/attachment/"+e)}}return D.\u0275fac=function(e){return new(e||D)(S.LFG(A._),S.LFG(O.b),S.LFG(I.o),S.LFG($.G),S.LFG(k.u),S.LFG(q.K),S.LFG(X.V),S.LFG(Z.Of))},D.\u0275prov=S.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},39001:(C,_,r)=>{r.d(_,{s:()=>s});var s=(()=>{return(n=s||(s={}))[n.SIMPLE=1]="SIMPLE",n[n.ADVANCED=2]="ADVANCED",n[n.RUBRIC=3]="RUBRIC",s;var n})()}}]);
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.