PageSourceSearch

https://app-revamp.ynmodata.com/chunk-WSAELEQG.js

js ynmodata.com collected 2026-10-01 23:44:23 UTC 26,229 bytes, 1 lines download raw bytes

1import{a as Oe,b as Be}from"./chunk-GJSXLRMQ.js";import{a as Fe,b as ke}from"./chunk-EJJPUNAN.js";import{a as De}from"./chunk-2MYSDYPG.js";import"./chunk-YTKSQ5GZ.js";import{b as A,g as Me,h as Qe,k as Ie,l as Le,o as Ee}from"./chunk-BJGUOQZ7.js";import"./chunk-GASQZW7L.js";import{a as Ve}from"./chunk-FGIBIY72.js";import"./chunk-7BG55KHW.js";import"./chunk-HC4D7PDY.js";import"./chunk-6I72NLFF.js";import"./chunk-WSAI4OO5.js";import"./chunk-WBCY4GJP.js";import"./chunk-NKN25BH3.js";import"./chunk-7QHXAE3D.js";import"./chunk-MDNARPU3.js";import"./chunk-SR2Z3FYO.js";import"./chunk-WQXF4LYG.js";import{a as Ne}from"./chunk-FP36IVGY.js";import"./chunk-IZNI2UKI.js";import{b as Te}from"./chunk-4LWTBYA2.js";import"./chunk-V4HSB2UK.js";import"./chunk-KRYKJWVK.js";import"./chunk-RDAUFBOA.js";import"./chunk-ULENN4EC.js";import"./chunk-AYUMU3FA.js";import"./chunk-LFPLW6Q2.js";import"./chunk-2TBSRX74.js";import"./chunk-N2HOWMLB.js";import"./chunk-LTUIDJBQ.js";import"./chunk-TTS5XZBB.js";import"./chunk-VK27PNQX.js";import"./chunk-3QMFSVTF.js";import{E as qe}from"./chunk-IJPJQ6VW.js";import"./chunk-FD7FCE3T.js";import{Ea as de,Fa as ue,Me as be,Ne as Ae,Va as pe,Vf as ve,Wa as _e,Wf as ye,X as ie,Z as D,da as oe,de as ge,gd as Ce,hd as xe,la as re,pa as ae,ra as le,rc as Ke,ub as he,vb as fe,vd as Se,xd as we}from"./chunk-L6QVANHB.js";import{Bb as f,Db as $,Dc as b,Ea as J,Eb as q,Ec as P,Fb as N,Gb as _,Hb as u,Hd as se,Ib as p,Jb as g,Lc as T,Mc as V,Qb as S,Sb as C,Ua as X,Ub as r,Va as Z,Xa as G,Za as d,ea as z,eb as w,fc as te,hb as I,hc as E,ib as L,jc as F,ke as me,oe as ce,pa as Q,pc as R,qc as W,rc as j,rd as k,re as H,xa as m,ya as c,yb as ee,zb as h,zd as ne}from"./chunk-CUJEUYRS.js";import{a as B,h as He}from"./chunk-5BGJS47I.js";var U=He(Ke());var Ye=i=>({"bg-white mb-40 p-20 md:p-40":i}),$e=i=>[i,"answer"],O=i=>[i,"note"],Ge=(i,o)=>[i,o];function ze(i,o){if(i&1){let t=S();u(0,"app-question-item",3),C("questionChanged",function(){m(t);let n=r(),s=n.$implicit,a=n.$index,l=r();return c(l.questionChanged.emit({question:s,selectedStrand:l.domain==null?null:l.domain.strands[0],selectedGroup:l.domain,index:a}))}),p()}if(i&2){let t,e=r(),n=e.$implicit,s=e.$index,a=r();_("question",n)("questionControls",a.questionsControls.get(n.id.toString()))("questionFormControl",a.questionsControls.get(b(13,$e,n.id.toString())))("questionNoteFormControl",a.questionsControls.get(b(15,O,n.id.toString())))("showAddNote",!0)("isAddNoteVisible",((t=a.questionsControls.get(b(17,O,n==null?null:n.id.toString())))==null?null:t.value)!==null)("showQuestionNumber",!1)("isMediaVisible",!0)("questionNumber",s+1)("isAddNoteUnderQuestionInSmallScreen",!0)("multipleAnswerOptionsField","grid")("rows",1)("form",a.form)}}function Je(i,o){if(i&1){let t=S();u(0,"div")(1,"app-single-question-per-step",4),C("questionChanged",function(n){m(t);let s=r(2);return c(s.questionChanged.emit(n))}),j("domainChange",function(n){m(t);let s=r(2);return W(s.domain,n)||(s.domain=n),c(n)}),p()()}if(i&2){let t=r(),e=t.$implicit,n=t.$index,s=r();d(),_("question",e)("questionIndex",n)("questionsControls",s.questionsControls),R("domain",s.domain),_("showAddNote",!0)("rows",1)("showQuestionNumber",!1)("nextBtnLabel","studentDashboard.assessments.noScoreAssessment.nextQuestion")("previousBtnLabel","studentDashboard.assessments.noScoreAssessment.previousQuestion")("form",s.form)("isRequiredNextButtonDisabled",!1)}}function Xe(i,o){if(i&1){let t=S();u(0,"div")(1,"app-related-questions-per-step",5),C("questionChanged",function(n){m(t);let s=r(2);return c(s.questionChanged.emit(n))}),j("domainChange",function(n){m(t);let s=r(2);return W(s.domain,n)||(s.domain=n),c(n)}),p()()}if(i&2){let t=r(),e=t.$implicit,n=t.$index,s=r();d(),_("questionsControls",s.questionsControls),R("domain",s.domain),_("relatedQuestionsIndices",P(11,Ge,n-1,n))("relatedQuestions",P(14,Ge,s.domain==null||s.domain.strands[0]==null?null:s.domain.strands[0].questions[n-1],e))("isShowPrintMaterials",!1)("openEndedRows",1)("nextBtnLabel","studentDashboard.assessments.noScoreAssessment.nextQuestion")("previousBtnLabel","studentDashboard.assessments.noScoreAssessment.previousQuestion")("form",s.form)("showQuestionNumber",!1)("isRequiredNextButtonDisabled",!1)}}function Ze(i,o){if(i&1){let t=S();u(0,"app-question-item",8),C("questionChanged",function(){m(t);let n=r(),s=n.$implicit,a=n.$index,l=r(3);return c(l.questionChanged.emit({question:s,selectedStrand:l.domain==null?null:l.domain.strands[0],selectedGroup:l.domain,index:a}))}),p()}if(i&2){let t,e=r().$implicit,n=r(2).$implicit,s=r();_("question",e)("questionControls",s.questionsControls.get(n.id.toString()))("questionFormControl",s.questionsControls.get(b(7,$e,e.id.toString())))("questionNoteFormControl",s.questionsControls.get(b(9,O,e.id.toString())))("isAddNoteVisible",((t=s.questionsControls.get(b(11,O,e==null?null:e.id.toString())))==null?null:t.value)!==null)("showAddNote",!0)("form",s.form)}}function et(i,o){if(i&1&&(u(0,"div",6),h(1,Ze,1,13,"app-question-item",7),p()),i&2){let t=o.$implicit;d(),f((t==null?null:t.isHidden)===!1?1:-1)}}function tt(i,o){if(i&1&&q(0,et,2,1,"div",6,ee().trackBy,!0),i&2){let t=r().$implicit;N(t==null?null:t.nested_questions)}}function nt(i,o){if(i&1&&(u(0,"div",1),h(1,ze,1,19,"app-question-item",2),h(2,Je,2,11,"div"),h(3,Xe,2,17,"div"),h(4,tt,2,0),p()),i&2){let t=o.$implicit,e=o.$index,n=r();_("ngClass",b(5,Ye,(t==null?null:t.type)!=="related"||(t==null?null:t.type)=="related"&&(n.domain==null||n.domain.strands[0]==null||n.domain.strands[0].questions[e-1]==null?null:n.domain.strands[0].questions[e-1].type)=="related")),d(),f(t.type!=="related"?1:-1),d(),f(t.type=="hidden-options"?2:-1),d(),f((t==null?null:t.type)=="related"&&(t==null?null:t.type)=="related"&&(n.domain==null||n.domain.strands[0]==null||n.domain.strands[0].questions[e-1]==null?null:n.domain.strands[0].questions[e-1].type)=="related"?3:-1),d(),f((t==null||t.nested_questions==null?null:t.nested_questions.length)>0&&t.type!=="hidden-options"?4:-1)}}var Re=(()=>{let o=class o{constructor(){this.questionChanged=new J,this.trackBy=(e,n)=>n.id}get questionsControls(){return this.form.get("questions")}ngOnInit(){}};o.\u0275fac=function(n){return new(n||o)}
1,o.\u0275cmp=I({type:o,selectors:[["app-questions-list"]],inputs:{form:"form",domain:"domain",domainIndex:"domainIndex"},outputs:{questionChanged:"questionChanged"},standalone:!1,decls:3,vars:5,consts:[["extraClasses","mb-20",3,"number","title","instructions","indexStyle","instructionsBgColor"],[1,"rounded",3,"ngClass"],["questionExtraClass","font-bold","optionColor","gray",3,"question","questionControls","questionFormControl","questionNoteFormControl","showAddNote","isAddNoteVisible","showQuestionNumber","isMediaVisible","questionNumber","isAddNoteUnderQuestionInSmallScreen","multipleAnswerOptionsField","rows","form"],["questionExtraClass","font-bold","optionColor","gray",3,"questionChanged","question","questionControls","questionFormControl","questionNoteFormControl","showAddNote","isAddNoteVisible","showQuestionNumber","isMediaVisible","questionNumber","isAddNoteUnderQuestionInSmallScreen","multipleAnswerOptionsField","rows","form"],["questionExtraClass","font-bold","optionColor","gray","optionFieldType","box",3,"questionChanged","domainChange","question","questionIndex","questionsControls","domain","showAddNote","rows","showQuestionNumber","nextBtnLabel","previousBtnLabel","form","isRequiredNextButtonDisabled"],[3,"questionChanged","domainChange","questionsControls","domain","relatedQuestionsIndices","relatedQuestions","isShowPrintMaterials","openEndedRows","nextBtnLabel","previousBtnLabel","form","showQuestionNumber","isRequiredNextButtonDisabled"],[1,"lg:ms-60","md:ms-40","ms-30","my-20"],["questionExtraClass","font-bold","optionColor","gray",3,"question","questionControls","questionFormControl","questionNoteFormControl","isAddNoteVisible","showAddNote","form"],["questionExtraClass","font-bold","optionColor","gray",3,"questionChanged","question","questionControls","questionFormControl","questionNoteFormControl","isAddNoteVisible","showAddNote","form"]],template:function(n,s){n&1&&(g(0,"yn-item-header-with-instructions",0),q(1,nt,5,7,"div",1,s.trackBy,!0)),n&2&&(_("number",s.domainIndex+1)("title",s.domain==null?null:s.domain.name)("instructions",s.domain==null?null:s.domain.description)("indexStyle","active")("instructionsBgColor","white"),d(),N(s.domain==null||s.domain.strands[0]==null?null:s.domain.strands[0].questions))},dependencies:[k,Me,Ie,Le,ve],encapsulation:2,changeDetection:0});let i=o;return i})();var it=i=>({"p-20":i});function ot(i,o){i&1&&(u(0,"div",1),g(1,"yn-loader"),p())}function rt(i,o){i&1&&g(0,"yn-loader")}function at(i,o){if(i&1){let t=S();u(0,"yn-tree-node",13),T(1,"translate"),C("click",function(){let n=m(t).$index,s=r(2);return c(s.setActiveDomain(n))}),p()}if(i&2){let t=o.$implicit,e=o.$index,n=r(2);_("label",t.name)("id",t.id)("index",e)("totalChildren",(t==null?null:t.total_parent_questions)||0)("counter",t.total_answered_questions||0)("isDone",t.isShowTickIcon)("activeNodeId",n.activeGroup==null?null:n.activeGroup.id)("isClickable",!0)("totalChildrenLabel",V(1,11,"studentDashboard.assessments.normal.questions"))("isShowWaitIcon",t.isShowWaitingIcon)("isShowTickIcon",t.isShowTickIcon)}}function lt(i,o){if(i&1&&g(0,"app-assessment-owner-info",11),i&2){let t=r(2);_("logo",t.currentAssessment==null||t.currentAssessment.meta==null||t.currentAssessment.meta.owner==null?null:t.currentAssessment.meta.owner.avatar_path)("name",t.currentAssessment==null||t.currentAssessment.meta==null||t.currentAssessment.meta.owner==null?null:t.currentAssessment.meta.owner.name)("assessmentInfo",t.currentAssessment==null?null:t.currentAssessment.description)("cutLength",204)}}function dt(i,o){i&1&&g(0,"yn-loader")}function ut(i,o){if(i&1){let t=S();u(0,"form",14),C("ngSubmit",function(){m(t);let n=r(2);return c(n.checkAnsweredQuestion())}),u(1,"app-questions-list",15),C("questionChanged",function(n){m(t);let s=r(2);return c(s.onInputChange(n))}),p()(),u(2,"div",16)(3,"div")(4,"yn-button",17),C("onClick",function(){m(t);let n=r(2);return c(n.handlePrevious())}),p()(),u(5,"div")(6,"yn-button",17),C("onClick",function(){m(t);let n=r(2);return c(n.handleNext())}),p()()()}if(i&2){let t=r(2);_("formGroup",t.form),d(),_("form",t.form)("domain",t.activeGroup)("domainIndex",t.indexOfDomainActive),d(3),te("border"),_("hidden",(t.activeGroup==null?null:t.activeGroup.id)===(t.groups[0]==null?null:t.groups[0].id))("size","xl")("label","shared.actions.previous")("borderRadius","sm"),d(2),_("hidden",(t.activeGroup==null?null:t.activeGroup.id)===t.groups[t.groups.length-1].id)("size","xl")("label","studentDashboard.assessments.noScoreAssessment.nextDomain")("borderRadius","sm")}}function mt(i,o){if(i&1){let t=S();u(0,"section")(1,"app-sticky-assessment-navbar",4),C("handleSubmit",function(){m(t);let n=r();return c(n.checkAnsweredQuestion())})("handleSaveDraft",function(){m(t);let n=r();return c(n.onSubmit(!0))})("handleExit",function(){m(t);let n=r();return c(n.exit())}),p(),u(2,"app-responsive-assessment-report-actions",5),T(3,"async"),C("onOk",function(){m(t);let n=r();return c(n.checkAnsweredQuestion())})("onSaveDraft",function(){m(t);let n=r();return c(n.onSubmit(!0))})("handleExit",function(){m(t);let n=r();return c(n.exit())}),p(),u(4,"section",6)(5,"div",7)(6,"div",8)(7,"h4",9),E(8),T(9,"translate"),p(),h(10,rt,1,0,"yn-loader"),q(11,at,2,13,"yn-tree-node",10,$),h(13,lt,1,4,"a
1pp-assessment-owner-info",11),p(),u(14,"div",12),h(15,dt,1,0,"yn-loader"),h(16,ut,7,14),p()()()()}if(i&2){let t,e=r();d(),_("childId",e.studentId)("name",e.currentAssessment==null?null:e.currentAssessment.name)("savedByName",e.currentAssessment==null||e.currentAssessment.assessment_draft_result==null?null:e.currentAssessment.assessment_draft_result.executed_by)("updatedAtDate",e.currentAssessment==null||e.currentAssessment.assessment_draft_result==null?null:e.currentAssessment.assessment_draft_result.updated_at)("isDraft",e.isDraft)("isLoading",e.isDraftSaving)("isShowProgress",!0)("totalProgressNumber",e.assessmentQuestionsCount)("currentProgressNumber",e.answeredQuestionCount)("observers",e.currentAssessment.assessment_draft_result==null?null:e.currentAssessment.assessment_draft_result.observers)("hideActions",e.isViewMode)("hasExitAction",e.isViewMode),d(),_("name",e.currentAssessment==null||e.currentAssessment.assessment_draft_result==null?null:e.currentAssessment.assessment_draft_result.executed_by)("date",e.currentAssessment==null||e.currentAssessment.assessment_draft_result==null?null:e.currentAssessment.assessment_draft_result.updated_at)("isReport",!1)("isDraft",e.isDraft)("isLoadingSubmission",e.isSubmitting)("isLoadingSaveDraft",e.isDraftSaving)("hideSaveAndCancel",e.isViewMode)("isSubmit",!0)("assessmentName",e.currentAssessment==null?null:e.currentAssessment.name)("childName",(t=V(3,29,e.currentStudent$))==null?null:t.first_name)("observers",e.currentAssessment.assessment_draft_result==null?null:e.currentAssessment.assessment_draft_result.observers)("hasExitAction",e.isViewMode),d(6),F(" ",(e.currentAssessment==null||e.currentAssessment.meta==null?null:e.currentAssessment.meta.label)??V(9,31,"studentDashboard.assessments.domains")," "),d(2),f(e.isQuestionLoading?10:-1),d(),N(e.groups),d(2),f(e.isLoading?-1:13),d(2),f(e.isQuestionLoading?15:-1),d(),f(!e.isQuestionLoading&&e.activeGroup?16:-1)}}function ct(i,o){i&1&&g(0,"yn-loader")}function pt(i,o){if(i&1&&(u(0,"a",22),g(1,"span",23),E(2),T(3,"translate"),p()),i&2){let t=o.$implicit;_("href",t,Z),d(2),F(" ",V(3,2,"studentDashboard.assessments.noScoreAssessment.attachments")," ")}}function _t(i,o){if(i&1&&(u(0,"div",21),q(1,pt,4,4,"a",22,$),p()),i&2){let t=r(3);d(),N(t.currentAssessment.meta==null?null:t.currentAssessment.meta.resources)}}function ht(i,o){if(i&1&&(u(0,"div",19),g(1,"span",20),h(2,_t,3,0,"div",21),p()),i&2){let t=r(2);_("ngClass",b(3,it,!t.isLargeScreen)),d(),_("innerHTML",t.currentAssessment==null||t.currentAssessment.meta==null?null:t.currentAssessment.meta.instructions,X),d(),f((t.currentAssessment.meta==null||t.currentAssessment.meta.resources==null?null:t.currentAssessment.meta.resources.length)>0?2:-1)}}function ft(i,o){if(i&1){let t=S();u(0,"yn-modal",18),C("handelCancel",function(){m(t);let n=r();return c(n.isViewMode?n.exit():n.redirectToStudentAssessmentsList())})("handleOk",function(){m(t);let n=r();return c(n.okStartAssessment())}),h(1,ct,1,0,"yn-loader"),h(2,ht,3,5,"div",19),p()}if(i&2){let t=r();_("title","studentDashboard.assessments.noScoreAssessment.instructions")("isVisible",t.isGuidelinesModalOpen)("okText","shared.actions.start")("isClosable",!1)("widthClassName",t.isLargeScreen?"custom-app-modal modal-width-700":"fullscreen-modal bg-white overflow-hidden")("isFullScreen",!t.isLargeScreen),d(),f(t.isLoading?1:-1),d(),f(t.isLoading?-1:2)}}function Ct(i,o){if(i&1){let t=S();u(0,"yn-confirmation-modal",24),C("handleOk",function(){m(t);let n=r();return c(n.okConfirmationModal())})("handleCancel",function(){m(t);let n=r();return c(n.closeModal())})("handleMiddleCTA",function(n){m(t);let s=r();return c(s.okConfirmationModal(n))}),u(1,"p",25),E(2),T(3,"translate"),p()()}if(i&2){let t=r();_("title",t.warningModalKeys==null?null:t.warningModalKeys.title)("ctaText",t.warningModalKeys==null?null:t.warningModalKeys.okLabel)("secondaryActionText",t.warningModalKeys==null?null:t.warningModalKeys.closeLabel)("isVisible",t.isShowSubmitConfirmationModal||t.isEmptyAssessmentModalOpen)("isLoading",t.isSubmitting)("isOkDisabled",t.isSubmitting)("hideSecondaryButton",t.warningModalKeys.hideSecondaryCTA)("hasMiddleButton",t.isShowSubmitConfirmationModal)("middleButtonText",t.warningModalKeys.middleCtaLabel),d(2),F(" ",V(3,10,t.warningModalKeys==null?null:t.warningModalKeys.description)," ")}}var We=(()=>{let o=class o{beforeUnloadHandler(e){e.returnValue="..."}constructor(e,n,s,a,l,x,v,M,y){this.router=e,this.activatedRoute=n,this.assessmentService=s,this.assessmentExecutionService=a,this.toasterService=l,this.translate=x,this.windowService=v,this.fb=M,this.studentService=y,this.form=new D({}),this.isGuidelinesModalOpen=!1,this.isEmptyAssessmentModalOpen=!1,this.isShowSubmitConfirmationModal=!1,this.isSubmitAndSaveDraft=!1,this.currentStudent$=this.studentService.studentBasicInfo,this.isLoading=!1,this.isQuestionLoading=!1,this.isLargeScreen=!0,this.indexOfDomainActive=0,this.assessmentQuestionsCount=0,this.answeredQuestionCount=0,this.warningModalKeys={title:"",description:"",okLabel:"shared.actions.ok",closeLabel:"shared.actions.close"},this.isViewMode=this.assessmentService.isCenterAssessmentView(),this.studentId=parseInt(this.activatedRoute.snapshot.params.id,10),this.id=p
1arseInt(this.activatedRoute.snapshot.params.assessmentId,10),this.isDraft=this.activatedRoute.snapshot.params.isDraft,this.assessmentService.checkHasRunAssessmentPermission(this.studentId)}ngOnInit(){this.windowService.currentWidth$.subscribe(e=>{e>768?this.isLargeScreen=!0:this.isLargeScreen=!1}),this.getAssessmentData()}get isDraftSaving(){return this.assessmentExecutionService.isDraftSaving}get isSubmitting(){return this.assessmentExecutionService.isSubmitting}exit(){this.assessmentService.back()}getAssessmentData(){this.isLoading=!0,this.isQuestionLoading=!0,this.assessmentService.view("child",B({id:this.id},this.isViewMode&&{center_assessment:!0})).pipe(z(e=>(this.currentAssessment=e.body,this.isDraft==="false"&&this.currentAssessment.meta?.instructions&&(this.isGuidelinesModalOpen=!0),this.isLoading=!1,this.assessmentService.getAssessmentQuestions("child",B({id:this.id},this.assessmentService.getParamsForViewAssessmentGroupsWithoutAssign()))))).subscribe(e=>{if(this.groups=e.body,this.isQuestionLoading=!1,this.groups.length!==0){this.generateForm(this.groups);let n=this.currentAssessment.assessment_draft_result?.options?.activeGroup_id;if(n){let s=this.groups.findIndex(a=>a.id===n);this.setActiveDomain(s)}else this.setActiveDomain(0)}},()=>{this.isLoading=!1,this.isQuestionLoading=!1})}generateForm(e){let n={};this.allTableQuestions=[],this.assessmentQuestionsCount=0,e.map(s=>{s.strands.length>0&&s.strands.map(a=>{a.questions.forEach(l=>{n[l.id]=new D(this.assessmentExecutionService.generateQuestionFormItem(l,this.fb,this.isDraft)),l.type===A.table&&this.allTableQuestions.push(l),l.type!==A.hiddenOptions&&l.type!==A.related&&this.assessmentQuestionsCount++,l?.nested_questions?.length>0&&l.nested_questions.forEach(x=>{n[x.id]=new D(this.assessmentExecutionService.generateQuestionFormItem(x,this.fb,this.isDraft)),x.type===A.table&&this.allTableQuestions.push(x),(l.type===A.hiddenOptions||l.type===A.related)&&this.assessmentQuestionsCount++})})})}),this.form.addControl("questions",new D(n)),this.handleDraftData(this.currentAssessment.assessment_draft_result?.questions,this.groups)}checkAnsweredQuestion(){this.answeredQuestionCount==0?this.showEmptyModal():this.showSubmitConfirmation()}onSubmit(e){let n=this.form.value.questions,s=this.assessmentExecutionService.prepareDataForSubmission(this.id,this.studentId,n,e,this.allTableQuestions,null,this.isSubmitAndSaveDraft);s.options={activeGroup_id:this.activeGroup.id},e?this.answeredQuestionCount===0?this.showEmptyModal(!0):this.assessmentExecutionService.handleSaveAssessmentDraft(s,this.studentId):this.assessmentExecutionService.handleSubmitAssessmentExecution(s,this.studentId,this.id)}handleDraftData(e,n){if((this.currentAssessment.has_draft_records===1||this.currentAssessment.has_draft_records)&&this.currentAssessment.assessment_draft_result?.questions?.length!==0){let s=e.map(a=>a.question_id);n.map(a=>{a.strands.length>0&&a.strands.map(l=>{l?.questions.forEach(x=>{(0,U.includes)(s,x.id)&&this.setFormValueOfDraftedAnsweredQuestion(a,x),x?.nested_questions.forEach(v=>{(0,U.includes)(s,v.id)&&this.setFormValueOfDraftedAnsweredQuestion(a,v)})})})})}}setFormValueOfDraftedAnsweredQuestion(e,n){let s=this.currentAssessment.assessment_draft_result?.questions.find(a=>a.question_id===n.id);if(s)if(n.type===A.table){let a=this.assessmentExecutionService.reFormatTableAnswersLoadingDraft(s,this.fb,this.form);this.form.get(["questions",s.question_id]).patchValue({answer_options:[...a],note:s.note})}else this.form.get(["questions",s.question_id]).patchValue({answer:n.type===A.openEnded?s.answer:n.type==A.multipleAnswers?s.answer_option_ids:s.answer_option_id,note:s.note});this.onInputChange({question:n,selectedGroup:e})}onInputChange(e){let n=this.assessmentExecutionService.findRelatedQuestionsArray(e.question,this.form),s=e.selectedGroup,{selectedGroup:a,nestedQuestionNumber:l,increaseOrDecrease:x}=this.assessmentExecutionService.toggleQuestionsBasedOnAnswer(e.question,n,e.selectedGroup,this.form);s=this.assessmentExecutionService.changeNumberOfQuestions(a,x,l),e.question.isNestedQuestionsShown=n?.length===0,this.updateCounter(s)}updateCounter(e){let n=0,s=!1,a=this.form.get(["questions"]).value;
1e.strands.map(v=>{v.questions?.map(M=>{let y=a[M.id];y?.answer_options?.length>0&&(s=this.assessmentExecutionService.isTableQuestionHasValue(y.answer_options)),(y?.answer?.length>0||typeof y?.answer=="number"||s===!0)&&(e.isShowWaitingIcon=!0,e.isShowTickIcon=!1,n++,s=!1),M.nested_questions?.forEach(Pe=>{let Y=a[`${Pe.id}`];(Y?.answer?.length>0||typeof Y?.answer=="number"||s===!0)&&(e.isShowWaitingIcon=!0,e.isShowTickIcon=!1,n++)})})}),e.total_answered_questions=n,e.total_answered_questions===e.total_parent_questions?(e.isShowTickIcon=!0,e.isShowWaitingIcon=!1):e.total_answered_questions===0&&(e.isShowTickIcon=!1,e.isShowWaitingIcon=!1);let{answeredQuestionCount:l,totalQuestionsCount:x}=this.assessmentExecutionService.reCalculateAllAnsweredQuestions(this.groups);this.assessmentQuestionsCount=x,this.answeredQuestionCount=l}setActiveDomain(e){this.activeGroup=this.groups[e],this.indexOfDomainActive=e}handleNext(){this.setActiveDomain(this.indexOfDomainActive+1)}handlePrevious(){this.setActiveDomain(this.indexOfDomainActive-1)}redirectToStudentAssessmentsList(){this.assessmentExecutionService.redirectToChildAssessmentList(this.studentId)}okStartAssessment(){this.isGuidelinesModalOpen=!1}showSubmitConfirmation(){this.warningModalKeys={title:"studentDashboard.assessments.submitAssessmentConfirmationTitle",description:"studentDashboard.assessments.submitAssessmentConfirmationDescription",okLabel:"shared.actions.submitOnly",closeLabel:"shared.actions.cancel",hideSecondaryCTA:!1,middleCtaLabel:"shared.actions.submitAndSaveDraft"},this.isShowSubmitConfirmationModal=!0}showEmptyModal(e=!1){this.warningModalKeys={title:"studentDashboard.assessments.notAnswerAnyQuestion",description:e?"studentDashboard.assessments.answerOneQuestionToSaveDraft":"studentDashboard.assessments.answerAtLeastOneQuestion",okLabel:"shared.actions.ok",hideSecondaryCTA:!0},this.isEmptyAssessmentModalOpen=!0}closeModal(){this.isEmptyAssessmentModalOpen=!1,this.isShowSubmitConfirmationModal=!1,this.isGuidelinesModalOpen=!1}okConfirmationModal(e){this.isEmptyAssessmentModalOpen?this.closeModal():this.isShowSubmitConfirmationModal&&(this.isSubmitAndSaveDraft=e,this.onSubmit())}};o.\u0275fac=function(n){return new(n||o)(w(ce),w(me),w(Ve),w(De),w(qe),w(de),w(Ne),w(ae),w(Te))},o.\u0275cmp=I({type:o,selectors:[["app-no-score-assessment"]],hostBindings:function(n,s){n&1&&C("beforeunload",function(l){return s.beforeUnloadHandler(l)},G)},standalone:!1,decls:5,vars:4,consts:[[3,"beforeunload"],[1,"h-screen","flex","justify-center","items-center"],[3,"title","isVisible","okText","isClosable","widthClassName","isFullScreen"],["type","warning3",3,"title","ctaText","secondaryActionText","isVisible","isLoading","isOkDisabled","hideSecondaryButton","hasMiddleButton","middleButtonText"],[3,"handleSubmit","handleSaveDraft","handleExit","childId","name","savedByName","updatedAtDate","isDraft","isLoading","isShowProgress","totalProgressNumber","currentProgressNumber","observers","hideActions","hasExitAction"],[3,"onOk","onSaveDraft","handleExit","name","date","isReport","isDraft","isLoadingSubmission","isLoadingSaveDraft","hideSaveAndCancel","isSubmit","assessmentName","childName","observers","hasExitAction"],[1,"p-layout"],[1,"grid","grid-cols-12","gap-4","my-34"],[1,"col-span-12","lg:col-span-3"],[1,"pb-10","font-bold"],[1,"mb-10",3,"label","id","index","totalChildren","counter","isDone","activeNodeId","isClickable","totalChildrenLabel","isShowWaitIcon","isShowTickIcon"],[3,"logo","name","assessmentInfo","cutLength"],[1,"col-span-12","lg:col-span-9","lg:mx-30"],[1,"mb-10",3,"click","label","id","index","totalChildren","counter","isDone","activeNodeId","isClickable","totalChildrenLabel","isShowWaitIcon","isShowTickIcon"],[3,"ngSubmit","formGroup"],[3,"questionChanged","form","domain","domainIndex"],[1,"flex","justify-between","my-20"],[3,"onClick","hidden","size","label","borderRadius"],[3,"handelCancel","handleOk","title","isVisible","okText","isClosable","widthClassName","isFullScreen"],[3,"ngClass"],[3,"innerHTML"],[1,"mt-20"],["target","_blank",1,"leading-3xloose","font-bold","text-color01","me-10",3,"href"],[1,"yn-icon__pdf","me-10"],["type","warning3",3,"handleOk","handleCancel","handleMiddleCTA","title","ctaText","secondaryActionText","isVisible","isLoading","isOkDisabled","hideSecondaryButton","hasMiddleButton","middleButtonText"],[1,"text-sm","text-color-text"]],template:function(n,s){n&1&&(u(0,"div",0),C("beforeunload",function(l){return s.beforeUnloadHandler(l)},G),p(),h(1,ot,2,0,"div",1),h(2,mt,17,33,"section"),h(3,ft,3,8,"yn-modal",2),h(4,Ct,4,12,"yn-confirmation-modal",3)),n&2&&(d(),f(s.isLoading?1:-1),d(),f(s.isLoading?-1:2),d(),f(s.isGuidelinesModalOpen?3:-1),d(),f(s.isShowSubmitConfirmationModal||s.isEmptyAssessmentModalOpen?4:-1))},dependencies:[k,Oe,Fe,Qe,oe,ie,re,_e,pe,Se,Ce,be,Re,ne,ue],encapsulation:2});let i=o;return i})();var xt=[{path:"",component:We}],je=(()=>{let o=class o{};o.\u0275fac=function(n){return new(n||o)}
1,o.\u0275mod=L({type:o}),o.\u0275inj=Q({imports:[H.forChild(xt),H]});let i=o;return i})();var un=(()=>{let o=class o{};o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=L({type:o}),o.\u0275inj=Q({imports:[se,je,Be,ke,Ee,le,fe,he,we,xe,ge,Ae,ye]});let i=o;return i})();export{un as NoScoreAssessmentModule};

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.