@genpact/genome.mfe.solidify-app 1.17.2-alpha.255 → 1.17.2-alpha.256
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/solidify.umd.min.LearnerRereview.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministration.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationGenAIReviewedSubmissions.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationOffcycleDashboard.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationOperationalDetails.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationProgramAdministration.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearner.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerDone.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerPeerReview.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js +1 -1
- package/dist/solidify.umd.min.js +2 -2
- package/dist/solidify.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[712],{460:function(e,t,s){s.d(t,{Z:function(){return u}});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-16 px-32"},[t("div",{staticClass:"md:px-0 lg:px-0 text-center"},[t("div",{staticClass:"text-gray-500"},[t("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),t("div",{staticClass:"pt-8"},[t("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[t("img",{staticClass:"mx-auto",attrs:{src:s(3126)}})])])])])])},i=[],l=s(7203),r=(0,l.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,l.ref)(""),s=(0,l.ref)(localStorage.getItem("helpmateLink"));return(0,l.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:s}}}),n=r,o=s(1001),c=(0,o.Z)(n,a,i,!1,null,null,null),u=c.exports},2148:function(e,t,s){s.d(t,{Z:function(){return d}});var a=function(){var e=this,t=e._self._c;return e.isVisible?t("main",{staticClass:"modal-wrapper relative z-50 modal-filter fixed inset-0 w-full h-screen flex mt-2 justify-center bg-semi-75 h-fit"},[t("transition",{attrs:{name:"modal-fade"}},[t("div",{staticClass:"modal-overlay",on:{click:function(t){return e.$emit("close-modal")}}},[t("div",{staticClass:"modal relative",on:{click:function(e){e.stopPropagation()}}},[e.closeVisible?t("div",{staticClass:"absolute right-0 pr-4 top-5 cursor-pointer",on:{click:function(t){return e.$emit("closeModal")}}},[t("x-icon",{attrs:{size:"1.5x"}})],1):e._e(),t("div",{staticClass:"bg-white"},[t("div",[e.popUpImage1||e.popUpImage2?t("div",{staticClass:"font-bold text-center mb-3 flex justify-center text-base sm:text-xl"},[t("div",[t("strong",[e._v("Do you want to mark the submission Plagiarised?")])])]):e._e(),e.popUpImage1?t("div",{staticClass:"w-full"},[t("img",{staticClass:"block px-4 pb-2 mx-auto w-3/12",attrs:{src:s(2191)}})]):e._e(),e.popUpImage2?t("div",{staticClass:"w-full"},[t("img",{staticClass:"block px-4 pb-2 mx-auto w-2/5",attrs:{src:s(5861)}})]):e._e()]),t("div",{staticClass:"text-gray-500 px-4",domProps:{innerHTML:e._s(e.message)}}),t("div",{staticClass:"pb-4 pt-4 bg-white flex flex-col items-center"},[e.reReviewButton?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.applyReview(e.reReviewButtonLink)}}},[e._v(" Apply Re-Review ")]):e._e(),e.archiveButton?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2",on:{click:function(t){return e.$emit("Archive")}}},[e._v("Yes")]):e._e(),e.closeVisible?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",staticStyle:{"background-color":"grey"},on:{click:function(t){return e.$emit("closeModal")}}},[e._v(" No ")]):e._e(),e.linkButton?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.navigate(e.link)}}},[e._v(e._s(e.linkButton))]):e._e()])])])])])],1):e._e()},i=[],l=(s(7658),s(4856)),r=s(9896),n={components:{XIcon:l.b0D},name:"Generic",props:{isVisible:{type:Boolean,default:!1,required:!0},message:{type:String,default:"",required:!0},closeVisible:{type:Boolean,default:!1,required:!1},reReviewButton:{type:Boolean,default:!1,required:!1},archiveButton:{type:Boolean,default:!1,required:!1},reReviewButtonLink:{type:String,default:"",required:!1},link:{type:String,default:"",required:!1},linkButton:{type:String,default:"",required:!1},popUpImage1:{type:Boolean,default:!1,required:!1},popUpImage2:{type:Boolean,default:!1,required:!1}},setup(){const e=async e=>{r.Z.push({path:"/solidify/rereview",query:{learner_task_id:e}})},t=e=>{window.location.href=e};return{applyReview:e,navigate:t}}},o=n,c=s(1001),u=(0,c.Z)(o,a,i,!1,null,null,null),d=u.exports},8235:function(e,t,s){s.d(t,{Z:function(){return u}});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"mt-4 lg:px-24 md:px-24 px-4 flex justify-between items-center w-full"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e.learning_content_display_name?t("span",[e._v(" "+e._s(e.learning_content_display_name)+" ")]):t("span",["infinity"===e.program?t("span",[e._v(e._s(e.proficiency)+" - ")]):e._e(),e._v(e._s(e.skill))])]),t("div",{staticClass:"my-2"},[t("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},i=[],l=s(7203),r=(0,l.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""},learning_content_display_name:{type:String,default:""}},setup(){const e=(0,l.ref)("");return(0,l.onBeforeMount)((async()=>{const t=localStorage.getItem("userName")||"Learner";e.value=t.split(",").reverse().join(" ")})),{username:e}}}),n=r,o=s(1001),c=(0,o.Z)(n,a,i,!1,null,null,null),u=c.exports},3588:function(e,t,s){s.r(t),s.d(t,{default:function(){return b}});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[e.revieweeDetails?t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[t("Greetings",{attrs:{program:e.programId,proficiency:e.proficiency,skill:e.skill,learning_content_display_name:e.learning_content_display_name}}),t("div",{staticClass:"flex md:flex mt-3 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0 block"}),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"bloc text-2xl text-center text-background-secondary"},[e._v(" "+e._s(e.revieweeDetails.reviewee_count_string)+" ")]),t("div",{staticClass:"block"},[t("div",{staticClass:"text-gray-600"},[t("div",{staticClass:"pt-4"},["infinity"===e.programId?t("div",{},[e._m(0),t("div",{staticClass:"mt-4 p-4 mb-3 rounded-lg shadow border border-gray-200"},[e._m(1),e.isPlagiarismEnabled?t("ol",{staticClass:"list-decimal pl-8 mt-1"},["Mobile"==e.revieweeDetails.task_details.task_type?t("li",{staticClass:"pt-1"},[e._v("Read the Task Description "),t("strong",[e._v(" → ")]),e._v("Understand the task requirement.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",{staticClass:"pt-1"},[e._v("Read the task description "),t("strong",[e._v(" → ")]),e._v(" Download the submission")]):e._e(),e._m(2),e._m(3),t("li",{staticClass:"pt-1"},[e._v("Give feedback - be specific and constructive")])]):e._e(),e.isPlagiarismEnabled?e._e():t("ol",{staticClass:"list-decimal pl-8 mt-1"},[t("li",[e._v("Read the Task Description – Understand the task requirement.")]),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Review the Submission – Go through your peer’s response.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Download the learner's task submission.")]):e._e(),t("li",[e._v("Rate the Submission – Use the rubric to assess fairly.")]),t("li",[e._v("Give Feedback – Share what worked well and what could be improved.")])])])]):e._e(),"infinity"!==e.programId?t("div",{},[t("p",[e._v("Welcome to the review stage of Solidify. You must complete "+e._s(e.revieweeDetails.mandatory_reviews)+" reviews to pass Solidify.")]),t("p",{staticClass:"pt-2"},[e._v(" A single review should take about 15 minutes, but if needed you can leave this page and come back. Remember, other learners are waiting on you to complete their own Solidify, so please do the review as soon as possible. If you have not done this review "),t("strong",[e._v("within "+e._s(e.reviewerHoldTime)+" hours")]),e._v(", it could be assigned to someone else and you will need to review a different task. ")]),"Desktop"==e.revieweeDetails.task_details.task_type?t("p",{staticClass:"pt-2"},[e._v("You must be on a desktop to download the task. This review will not work on a mobile device or tablet.")]):e._e(),e._m(4),t("ol",{staticClass:"list-decimal pl-8 mt-1"},[t("li",[e._v("Read the Task Description.")]),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Read the learner's "),t("strong",[e._v("submission")]),e._v(".")]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Review and score the task by referring to the scoring rubric.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Click the “"),t("strong",[e._v("Download Learner Task submission")]),e._v("” button to open the learner’s task.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Review and score the task by referring to the scoring rubric.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v(" Share your feedback in the reviewer comment box. Be specific about what you liked and what could be improved. These comments will be seen by whoever submitted the task! ")]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v(" Share your feedback in the reviewer comment box. Be specific about what you liked and what could be improved. These comments will be seen by whoever submitted the task! ")]):e._e(),t("li",[e._v("Do the whole process again until you have finished all your reviews!")])])]):e._e(),t("div",{staticClass:"mt-4 p-4 mb-3 rounded-lg shadow border border-gray-200"},[t("div",[t("p",[t("strong",[e._v(e._s(e.revieweeDetails.task_details.task_name))])]),t("p",{staticClass:"pt-2 rich-text-formatter",domProps:{innerHTML:e._s(e.revieweeDetails.task_details.description)}})]),"Desktop"==e.revieweeDetails.task_details.task_type?t("div",{staticClass:"text-left"},[t("button",{staticClass:"inline-block mt-2 py-2 px-6 bg-background-secondary",on:{click:e.learnerSubmissionClicked}},[e._v("Download Submission")])]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("div",{staticClass:"mt-2"},[e._m(5),t("p",{staticClass:"pt-2"},[e._v(e._s(e.revieweeDetails.learner_submission))])]):e._e()]),t("div",{staticClass:"mt-4"},[e.isPlagiarismEnabled?t("div",{staticClass:"border rounded-lg shadow p-4 mt-4"},[e._m(6),e._m(7),t("p",{staticClass:"italic pt-2"},[e._v("Note: Proper citations are acceptable - only mark as plagiarized if directly copied without attribution.")]),e._m(8),t("div",{staticClass:"mt-1 text-sm"},[t("div",{staticClass:"checkboxNewUi"},[t("div",{staticClass:"checkboxUi"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismCheckOne,expression:"plagiarismCheckOne"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:"plagriarism_check_yes"},domProps:{value:!0,checked:Array.isArray(e.plagiarismCheckOne)?e._i(e.plagiarismCheckOne,!0)>-1:e.plagiarismCheckOne},on:{change:[function(t){var s=e.plagiarismCheckOne,a=t.target,i=!!a.checked;if(Array.isArray(s)){var l=!0,r=e._i(s,l);a.checked?r<0&&(e.plagiarismCheckOne=s.concat([l])):r>-1&&(e.plagiarismCheckOne=s.slice(0,r).concat(s.slice(r+1)))}else e.plagiarismCheckOne=i},function(t){return e.checkPlagiarised(t,!0)}],click:e.checkOne}}),e._m(9)]),t("div",{staticClass:"checkboxUi"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismCheckOne,expression:"plagiarismCheckOne"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:"plagriarism_check_no"},domProps:{value:!1,checked:Array.isArray(e.plagiarismCheckOne)?e._i(e.plagiarismCheckOne,!1)>-1:e.plagiarismCheckOne},on:{change:[function(t){var s=e.plagiarismCheckOne,a=t.target,i=!!a.checked;if(Array.isArray(s)){var l=!1,r=e._i(s,l);a.checked?r<0&&(e.plagiarismCheckOne=s.concat([l])):r>-1&&(e.plagiarismCheckOne=s.slice(0,r).concat(s.slice(r+1)))}else e.plagiarismCheckOne=i},function(t){return e.checkPlagiarised(t,!1)}],click:e.checkOne}}),e._m(10)])])]),e.showplagiarismUpload?t("div",{staticClass:"mt-6 w-full flex justify-left items-start"},[t("div",{staticClass:"w-1/2 pr-8 border-r-1 border-gray-500",class:e.accessRestrictionCheck?"disabledbutton":""},[e._m(11),t("div",{staticClass:"flex pt-2 items-center gap-2",staticStyle:{"max-width":"250px"}},[t("input",{key:e.fileInputKey,staticStyle:{width:"80%"},attrs:{type:"file",accept:".png,.PNG"},on:{change:e.selectedFile}}),e.plagiarismSubmissionFile?t("x-icon",{staticClass:"cursor-pointer",attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1),t("p",{staticClass:"pt-1 text-[14px]"},[e._v("Maximum file size: 5 MB")])]),t("div",{staticClass:"w-1/2 checkboxNewUi",class:e.plagiarismSubmissionFile?"disabledbutton":""},[t("div",{staticClass:"checkboxUi w-3/4"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.accessRestrictionCheck,expression:"accessRestrictionCheck"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:"access_restriction"},domProps:{value:!1,checked:Array.isArray(e.accessRestrictionCheck)?e._i(e.accessRestrictionCheck,!1)>-1:e.accessRestrictionCheck},on:{change:function(t){var s=e.accessRestrictionCheck,a=t.target,i=!!a.checked;if(Array.isArray(s)){var l=!1,r=e._i(s,l);a.checked?r<0&&(e.accessRestrictionCheck=s.concat([l])):r>-1&&(e.accessRestrictionCheck=s.slice(0,r).concat(s.slice(r+1)))}else e.accessRestrictionCheck=i}}}),t("label",{attrs:{for:"access_restriction"}},[e._v("I’m working in an access-restricted environment and am unable to upload the evidence at this time.")])])])]):e._e()]):e._e(),!e.isPlagiarised||e.isPlagiarised&&!e.isPlagiarizedChecked?t("div",{staticClass:"mt-4"},[e._m(12),t("table",{staticClass:"table-auto py-2 border-separate border-spacing-0 shadow rounded-lg border mt-2 w-full text-left md:w-3/5"},[e._m(13),t("tbody",[t("tr",[t("td",{staticClass:"p-1 pl-6"},[t("strong",[e._v("1 - ")]),e._v(" "),t("strong",[e._v(e._s(e.likertScale.poor?e.likertScale.poor:"Poor"))])]),t("td",{staticClass:"p-1 pl-6"},[e._v("No evidence of meeting the performance expectation or learning goal.")])]),t("tr",[t("td",{staticClass:"p-1 pl-6"},[t("strong",[e._v("2 - ")]),e._v(" "),t("strong",[e._v(e._s(e.likertScale.below_average?e.likertScale.below_average:"Below Average"))])]),t("td",{staticClass:"p-1 pl-6"},[e._v("Shows minimal effort and understanding; key elements are missing or unclear.")])]),t("tr",[t("td",{staticClass:"p-1 pl-6"},[t("strong",[e._v("3 - ")]),e._v(" "),t("strong",[e._v(e._s(e.likertScale.average?e.likertScale.average:"Average"))])]),t("td",{staticClass:"p-1 pl-6"},[e._v("Covers the basics and shows reasonable understanding; some areas could improve.")])]),t("tr",[t("td",{staticClass:"p-1 pl-6"},[t("strong",[e._v("4 - ")]),e._v(" "),t("strong",[e._v(e._s(e.likertScale.above_average?e.likertScale.above_average:"Above Average"))])]),t("td",{staticClass:"p-1 pl-6"},[e._v("Well done, and meets all expectations with clarity and insight.")])]),t("tr",[t("td",{staticClass:"p-1 pl-6"},[t("strong",[e._v("5 - ")]),e._v(" "),t("strong",[e._v(e._s(e.likertScale.excellent?e.likertScale.excellent:"Excellent"))])]),t("td",{staticClass:"p-1 pl-6"},[e._v("Goes beyond expectations with clear, thoughtful, and high-quality responses.")])])])])]):e._e(),!e.isPlagiarised||e.isPlagiarised&&!e.isPlagiarizedChecked?t("div",{staticClass:"mt-6 p-6 border border-gray-200 rounded-lg shadow"},e._l(e.revieweeDetails.task_details.task_questions,(function(s,a){return t("div",{key:a,staticClass:"mb-3"},[t("div",{staticClass:"bg-gray-100 text-gray-700 py-1 px-2 text-sm border border-gray-300 mt-2"},[t("strong",{staticClass:"pr-1"},[e._v(e._s(a+1)+")")]),e._v(" "+e._s(s.text)+" ")]),"Scale"==s.type?t("div",{staticClass:"mt-1 text-sm"},[t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"0"},domProps:{checked:e._q(s.response,"0")},on:{change:[function(t){return e.$set(s,"response","0")},e.enableSubmitButton]}}),e._v(" 1 - "+e._s(e.likertScale.poor?e.likertScale.poor:"Poor"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"25"},domProps:{checked:e._q(s.response,"25")},on:{change:[function(t){return e.$set(s,"response","25")},e.enableSubmitButton]}}),e._v(" 2 - "+e._s(e.likertScale.below_average?e.likertScale.below_average:"Below Average"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"50"},domProps:{checked:e._q(s.response,"50")},on:{change:[function(t){return e.$set(s,"response","50")},e.enableSubmitButton]}}),e._v(" 3 - "+e._s(e.likertScale.average?e.likertScale.average:"Average"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"75"},domProps:{checked:e._q(s.response,"75")},on:{change:[function(t){return e.$set(s,"response","75")},e.enableSubmitButton]}}),e._v(" 4 - "+e._s(e.likertScale.above_average?e.likertScale.above_average:"Above Average"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"100"},domProps:{checked:e._q(s.response,"100")},on:{change:[function(t){return e.$set(s,"response","100")},e.enableSubmitButton]}}),e._v(" 5 - "+e._s(e.likertScale.excellent?e.likertScale.excellent:"Excellent"))])]):e._e(),"Yes/No"==s.type?t("div",{staticClass:"mt-1 text-sm"},[t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"100"},domProps:{checked:e._q(s.response,"100")},on:{change:[function(t){return e.$set(s,"response","100")},e.enableSubmitButton]}}),e._v(" Yes")]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"0"},domProps:{checked:e._q(s.response,"0")},on:{change:[function(t){return e.$set(s,"response","0")},e.enableSubmitButton]}}),e._v(" No")])]):e._e()])})),0):e._e()]),t("div",{staticClass:"mb-3 mt-4"},[t("div",[e._m(14),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.reviewerComment,expression:"reviewerComment"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border border-[#ffad28] rounded-lg focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{maxlength:"10000",rows:"3",placeholder:"Your feedback will be shared with the learner. Be clear and respectful. Avoid using names or personal details. "},domProps:{value:e.reviewerComment},on:{keyup:function(t){return e.checkQuestionLength(e.reviewerComment)},input:function(t){t.target.composing||(e.reviewerComment=t.target.value)}}}),t("div",[e.questionWordCount<10?t("div",{staticClass:"text-red-700"},[e._v("(Minimum 10 words required. Current word count - "+e._s(e.questionWordCount)+")")]):e._e()])])])]),t("div",{staticClass:"mt-6 mb-4 text-center"},[e.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),e.successMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.successMessage))]):e._e(),e._m(15),e.isPlagiarised?t("button",{staticClass:"mt-2 inline-block py-2 px-6 shadow-md",class:e.isButtonEnabled&&e.minReviewWordCount?"bg-background-secondary":"bg-gray-500 text-white font-medium rounded-full cursor-not-allowed",attrs:{disabled:!(e.isButtonEnabled&&e.minReviewWordCount)},on:{click:e.finalPlagWarningPopup}},[e._v(" Submit Review ")]):t("button",{staticClass:"mt-2 inline-block py-2 px-6 shadow-md",class:e.isButtonEnabled&&e.minReviewWordCount?"bg-background-secondary":"bg-gray-500 text-white font-medium rounded-full cursor-not-allowed",attrs:{disabled:!(e.isButtonEnabled&&e.minReviewWordCount)},on:{click:e.submitReview}},[e._v(" Submit Review ")])])])])])],1)]):e._e(),t("GenericModal",{attrs:{"pop-up-image1":!0,"is-visible":e.modalVisible,message:e.modalMessage,"close-visible":!0,"archive-button":!0},on:{closeModal:e.cancelPlagiarism,Archive:e.confirmPlagiarism}}),t("GenericModal",{attrs:{"pop-up-image2":!0,"is-visible":e.modalVisible2,message:e.modalMessage2,"close-visible":!0,"archive-button":!0},on:{closeModal:e.cancelPlagiarism,Archive:e.submitReview}})],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:s(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)},i=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{},[t("p",[e._v("You've been assigned to review a submission as a Proxy reviewer. Each review takes approximately 15 minutes; timely reviews help learners progress, while delays may lead to reassignment.")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("strong",{staticClass:"text-base"},[e._v("How to Review")]),e._v(":")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",{staticClass:"pt-1"},[e._v(" Paste text into "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[e._v("Plagiarismdetector")])]),e._v(" or "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://papersowl.com/free-plagiarism-checker",target:"_blank"}},[e._v("Papersowl")])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ul",{staticClass:"list-disc pl-4"},[t("li",{staticClass:"pt-1"},[t("strong",[e._v("Plagiarized?")]),e._v(" Take a screenshot "),t("strong",[e._v(" → ")]),e._v(' Mark "Yes" '),t("strong",[e._v(" → ")]),e._v(" Upload PNG (max 5MB)")]),t("li",{staticClass:"pt-1"},[t("strong",[e._v("Clean?")]),e._v(' Mark "No" '),t("strong",[e._v(" → ")]),e._v(" Score using the rubric")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("To review the task:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-4"},[t("strong",[e._v("Learner's Submission:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("strong",[e._v("Quick Plagiarism Check:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ul",{staticClass:"mt-2 list-disc pl-8"},[t("li",[e._v("Help us maintain academic integrity by checking if this submission is original.")]),t("li",[e._v(" Copy the text and check it using "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[e._v("Plagiarismdetector")])]),e._v(" or "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://papersowl.com/free-plagiarism-checker",target:"_blank"}},[e._v("Papersowl")]),e._v(".")]),t("ul",{staticClass:"list-disc"},[t("li",[e._v("Original work shows minimal matches (usually under 15%)")]),t("li",[e._v("High match percentages may indicate copying")])])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-4"},[t("strong",[e._v("Did you find any evidence of plagiarism?")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("label",{attrs:{for:"plagriarism_check_yes"}},[t("strong",[e._v("Yes")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("label",{attrs:{for:"plagriarism_check_no"}},[t("strong",[e._v("No")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"w-3/4"},[t("strong",[e._v(" If the submission is significantly plagiarized, upload a screenshot of the evidence in .png format. ")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Scoring Rubric (1-5 Scale)")]),e._v(":")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",[t("tr",[t("th",{staticClass:"p-2 pl-6"},[t("strong",[e._v("Score")])]),t("th",{staticClass:"p-2 pl-6"},[t("strong",[e._v("What it means")])])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("b",[e._v("Reviewer Comment")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("b",[e._v("Submit Review button will be disabled until you view the learner's submission.")])])}],l=(s(7658),s(7203)),r=s(1602),n=s.n(r),o=s(306),c=s(4856),u=s(460),d=s(9896),v=s(2148),p=s(8235),m=s(9609),g=(0,l.defineComponent)({name:"LearnerSubmitTask",props:{query:{type:Object,default:()=>({})}},components:{ErrorMessage:u.Z,GenericModal:v.Z,XIcon:c.b0D,Greetings:p.Z},setup(e){const t=(0,l.ref)(!1),s=(0,l.ref)(),a=(0,l.ref)(!1),i=(0,l.ref)(""),r=(0,l.ref)(),c=(0,l.ref)(),u=(0,l.ref)(),v=(0,l.ref)(),p=(0,l.ref)(),g=(0,l.ref)(),_=(0,l.ref)(localStorage.getItem("helpmateLink")),f=(0,l.ref)(),h=(0,l.ref)(!1),b=(0,l.ref)(),k=(0,l.ref)(),y=(0,l.ref)(!1),w=(0,l.ref)(),C=(0,l.ref)(!1),x=(0,l.ref)(!1),P=(0,l.ref)(),S=(0,l.ref)(),R=(0,l.ref)(),q=(0,l.ref)(),M=(0,l.ref)(),D=(0,l.ref)(!1),B=(0,l.ref)(),A=(0,l.ref)(),E=(0,l.ref)(),$=(0,l.ref)(),N=(0,l.ref)(),O=(0,l.ref)(!0),T=(0,l.ref)([]),U=(0,l.ref)(!1),I=(0,l.ref)({}),L=' \n <div class="px-4">\n <div class="font-bold text-left mb-3"><strong>By selecting "Yes," you confirm the following: </strong></div>\n <ul class="list-disc text-left px-6">\n <li>The submission is extensively copied from the Internet without proper source referencing. </li>\n <li>The learner will receive a <strong>\'Fail\'</strong> notification, with a copy sent to the respective manager. </li>\n </ul>\n </div>',Z=(0,l.ref)(!1),G=(0,l.ref)(0),W=(0,l.ref)(!1),F=(0,l.ref)(0),z=(0,l.ref)(!1),Y='<div class="px-4">\n <ul class="list-disc text-left px-6">\n <li>The learner will receive a <strong>\'Fail\'</strong> notification, with a copy sent to the respective manager. </li>\n <li class="pt-2">Please confirm the review to proceed. </li>\n </ul>\n </div>',Q=e=>{G.value=e.split(" ").filter((e=>""!==e)).length,Z.value=G.value>=10},V=()=>{T.value=[]},j=async()=>{F.value+=1,R.value=null};(0,l.onBeforeMount)((async()=>{try{localStorage.getItem("message")&&localStorage.removeItem("messafe"),console.log("Before Mount"),r.value=e.query.learner_task_id,b.value=!1;const t=await(0,m.Yo)(r.value),a=t.data;if(b.value=!0,console.log("reveiwTaskRes",a),a.message)console.log(`revieweeDetails.value.message ${a}`),b.value=!0,k.value=s.value.message,y.value=!0;else{s.value=a.data,I.value=s.value.task_details.likertScale?s.value.task_details.likertScale:{},c.value=s.value.skill,v.value=s.value.proficiency,u.value=s.value.learning_content_display_name,E.value=s.value.program_name,f.value=s.value.program_name,p.value=s.value.reviewer_hold_time_in_minutes/60,w.value=n()().utc().format(),console.log("Api revieweeTaskId",JSON.stringify(s));const e=!!s.value.is_plagiarism_enabled&&s.value.is_plagiarism_enabled;N.value=s.value.url_to_upload_plag_evidence,x.value=!0===e,console.log(`revieweeDetails.value.is_plag_check_mandatory ${s.value.is_plag_check_mandatory}`),O.value=s.value.is_plag_check_mandatory,console.log(`isPlagCheckMandatory ${O.value}`)}}catch(t){if(b.value=!0,console.log(`Save Task Data ${t}`),o.Z.isAxiosError(t)){const e=t;k.value=e.response?.data?.message}else k.value="There is an issue while fetching learner to review, please contact with helpmate.";y.value=!0}}));const H=()=>{let e=!0;s.value.task_details.task_questions.forEach((t=>{t.response?(console.log(`inside if allQuestionAnswered before${e}`),e=e&&!0,console.log(`inside if allQuestionAnswered after ${e}`)):(console.log(`inside else allQuestionAnswered before ${e}`),e=e&&!1,console.log(`inside else allQuestionAnswered after ${e}`))})),console.log(`allQuestionAnswered ${JSON.stringify(e)} `),console.log(`revieweeDetails.value.task_details.task_type ${s.value.task_details.task_type}`),console.log(`reviewedLearnerSubmission ${a.value}`),console.log(`reviewerComment ${i.value}`),!e||"Desktop"===s.value.task_details.task_type&&!a.value?t.value=!1:t.value=!0,console.log(`isButtonEnabled ${JSON.stringify(t)} `)},J=async()=>{try{const e={file_name:s.value.learner_submission,task_id:s.value.reviewee_id};b.value=!1;const t=await(0,m.R1)("/v1/pretAuthUrlForDownload",e);g.value=t.data.preSignedUrl,await(0,m.ng)(g.value,s.value.learner_submission),b.value=!0,a.value=!0,H()}catch(e){if(console.log("Error in downloading learner submission",e),b.value=!0,o.Z.isAxiosError(e)){const t=e;k.value=t.response?.data?.message}else k.value="There is an issue while donwloading learner submission, please contact helpmate.";y.value=!0}},K=async e=>{try{const t=e.target.files[0],s=e.target.files[0].name,a=e.target.files[0].size/1024/1024;a>5?(P.value="fileSize greater than 5 MB",setTimeout((()=>{P.value=null}),6e3)):(R.value=t,q.value=s)}catch(t){R.value=null,q.value=null,console.log(t)}},X=async()=>{try{if(b.value=!1,console.log(`inside submit click ${JSON.stringify(s.value)}`),console.log(`isPlagCheckMandatory ${O.value}`),console.log(`isPlagiarismEnabled ${x.value}`),console.log("type of isPlagiarised.value "+typeof B.value),x.value){if(console.log(`isPlagiarised.value ${B.value}`),B.value&&!W.value){if(!R.value)return b.value=!0,P.value="Please upload plagiarism evidence screenshot",void setTimeout((()=>{P.value=null}),6e3);if(A.value=q.value,b.value=!1,console.log("evidenceFileName value",A.value),!q.value.endsWith("png")&&!q.value.endsWith("PNG"))return b.value=!0,P.value="You can upload only png",void setTimeout((()=>{P.value=null}),6e3);M.value=await(0,m.aQ)(N.value,R.value),B.value=!0}if(void 0===B.value&&O.value)return b.value=!0,P.value="Please Select Plagiarism Checkbox",void setTimeout((()=>{P.value=null}),6e3)}const e={reviewee_task_id:s.value.reviewee_id,reviewer_comment:i.value,reviewer_response:s.value.task_details.task_questions,is_proxy_reviewer:!0,review_start_date_for_proxy:w.value,is_plagiarised:B.value,plagiarism_evidence:A.value};console.log(`params ${JSON.stringify(e)}`);const t=await(0,m.eZ)("/learnerReview",e),a=t.data;b.value=!0,localStorage.setItem("message",a.message),d.Z.push({name:"SolidifyLearnerStatus",query:{isPerformReviewVisible:"no",isProxyReview:"yes",showChevron:"no"}})}catch(e){if(b.value=!0,console.log(`error peer review ${e}`),o.Z.isAxiosError(e)){const t=e;k.value=t.response?.data?.message}else k.value="There is an issue while submitting proxy review, please contact helpmate.";y.value=!0}},ee=()=>{h.value=!1,z.value=!1,B.value=void 0,U.value=!1;for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";D.value=!1,C.value=!1,H(),V()},te=()=>{h.value=!1},se=async(e,t)=>{if(U.value=e.target.checked,console.log(`isPlagiarizedChecked ${U.value}`),B.value=t,console.log("isPlagiarised",{isPlagiarised:B.value}),U.value&&t){D.value=!0,h.value=!0;for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="0";C.value=!0,await H()}else if(!0===U.value&&!1===t){for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";D.value=!1,C.value=!1,await H()}else{for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";D.value=!1,B.value=void 0,C.value=!1,await H()}},ae=async()=>{z.value=!0};return{revieweeDetails:s,isButtonEnabled:t,enableSubmitButton:H,learnerSubmissionClicked:J,reviewerComment:i,submitReview:X,skill:c,proficiency:v,reviewerHoldTime:p,preSignedUrl:g,helpmateLink:_,modalVisible:h,modalMessage:L,renderReady:b,errorResponse:k,showErrorMessage:y,questionEnable:C,isPlagiarismEnabled:x,errorMessage:P,successMessage:S,plagiarismSubmissionFile:R,plagiarismSubmission:q,plagiarismUploadedStatus:M,showplagiarismUpload:D,selectedFile:K,isPlagiarised:B,evidenceFileName:A,checkPlagiarised:se,programName:E,ext:$,programId:f,plagUrlForUpload:N,isPlagCheckMandatory:O,plagiarismCheckOne:T,checkOne:V,isPlagiarizedChecked:U,likertScale:I,confirmPlagiarism:te,cancelPlagiarism:ee,checkQuestionLength:Q,minReviewWordCount:Z,questionWordCount:G,accessRestrictionCheck:W,clearFile:j,fileInputKey:F,modalVisible2:z,finalPlagWarningPopup:ae,modalMessage2:Y,learning_content_display_name:u}}}),_=g,f=s(1001),h=(0,f.Z)(_,a,i,!1,null,"37dbccd6",null),b=h.exports},9609:function(e,t,s){s.d(t,{R1:function(){return i},Yo:function(){return r},aQ:function(){return c},eZ:function(){return n},ng:function(){return o},uZ:function(){return l}});var a=s(7129);const i=async(e,t)=>{const s=await a.Z.post(e,t);return s},l=async e=>{const t=await a.Z.get(e);return t},r=async e=>{const t=await a.Z.get(`learnerTaskToProxyReview/${e}`);return t},n=async(e,t)=>{const s=await a.Z.post(e,t);return s},o=async(e,t)=>{console.log(t),console.log(e);const s=await fetch(e),a=await s.blob(),i=URL.createObjectURL(a),l=document.createElement("a");l.setAttribute("download",t),l.href=i,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(i)},c=async(e,t)=>{try{const s=await fetch(`${e}`,{method:"put",body:t}),a=s;return a}catch(s){return console.error(s),s}}},3126:function(e,t,s){e.exports=s.p+"img/support.svg"},2191:function(e,t,s){e.exports=s.p+"img/plag_warning1.gif"},5861:function(e,t,s){e.exports=s.p+"img/plag_warning2.gif"}}]);
|
|
1
|
+
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[712],{460:function(e,t,s){s.d(t,{Z:function(){return u}});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-16 px-32"},[t("div",{staticClass:"md:px-0 lg:px-0 text-center"},[t("div",{staticClass:"text-gray-500"},[t("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),t("div",{staticClass:"pt-8"},[t("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[t("img",{staticClass:"mx-auto",attrs:{src:s(3126)}})])])])])])},i=[],l=s(7203),r=(0,l.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,l.ref)(""),s=(0,l.ref)(localStorage.getItem("helpmateLink"));return(0,l.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:s}}}),n=r,o=s(1001),c=(0,o.Z)(n,a,i,!1,null,null,null),u=c.exports},2148:function(e,t,s){s.d(t,{Z:function(){return d}});var a=function(){var e=this,t=e._self._c;return e.isVisible?t("main",{staticClass:"modal-wrapper relative z-50 modal-filter fixed inset-0 w-full h-screen flex mt-2 justify-center bg-semi-75 h-fit"},[t("transition",{attrs:{name:"modal-fade"}},[t("div",{staticClass:"modal-overlay",on:{click:function(t){return e.$emit("close-modal")}}},[t("div",{staticClass:"modal relative",on:{click:function(e){e.stopPropagation()}}},[e.closeVisible?t("div",{staticClass:"absolute right-0 pr-4 top-5 cursor-pointer",on:{click:function(t){return e.$emit("closeModal")}}},[t("x-icon",{attrs:{size:"1.5x"}})],1):e._e(),t("div",{staticClass:"bg-white"},[t("div",[e.popUpImage1||e.popUpImage2?t("div",{staticClass:"font-bold text-center mb-3 flex justify-center text-base sm:text-xl"},[t("div",[t("strong",[e._v("Do you want to mark the submission Plagiarised?")])])]):e._e(),e.popUpImage1?t("div",{staticClass:"w-full"},[t("img",{staticClass:"block px-4 pb-2 mx-auto w-3/12",attrs:{src:s(2191)}})]):e._e(),e.popUpImage2?t("div",{staticClass:"w-full"},[t("img",{staticClass:"block px-4 pb-2 mx-auto w-2/5",attrs:{src:s(5861)}})]):e._e()]),t("div",{staticClass:"text-gray-500 px-4",domProps:{innerHTML:e._s(e.message)}}),t("div",{staticClass:"pb-4 pt-4 bg-white flex flex-col items-center"},[e.reReviewButton?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.applyReview(e.reReviewButtonLink)}}},[e._v(" Apply Re-Review ")]):e._e(),e.archiveButton?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2",on:{click:function(t){return e.$emit("Archive")}}},[e._v("Yes")]):e._e(),e.closeVisible?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",staticStyle:{"background-color":"grey"},on:{click:function(t){return e.$emit("closeModal")}}},[e._v(" No ")]):e._e(),e.linkButton?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.navigate(e.link)}}},[e._v(e._s(e.linkButton))]):e._e()])])])])])],1):e._e()},i=[],l=(s(7658),s(4856)),r=s(4642),n={components:{XIcon:l.b0D},name:"Generic",props:{isVisible:{type:Boolean,default:!1,required:!0},message:{type:String,default:"",required:!0},closeVisible:{type:Boolean,default:!1,required:!1},reReviewButton:{type:Boolean,default:!1,required:!1},archiveButton:{type:Boolean,default:!1,required:!1},reReviewButtonLink:{type:String,default:"",required:!1},link:{type:String,default:"",required:!1},linkButton:{type:String,default:"",required:!1},popUpImage1:{type:Boolean,default:!1,required:!1},popUpImage2:{type:Boolean,default:!1,required:!1}},setup(){const e=async e=>{r.Z.push({path:"/solidify/rereview",query:{learner_task_id:e}})},t=e=>{window.location.href=e};return{applyReview:e,navigate:t}}},o=n,c=s(1001),u=(0,c.Z)(o,a,i,!1,null,null,null),d=u.exports},8235:function(e,t,s){s.d(t,{Z:function(){return u}});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"mt-4 lg:px-24 md:px-24 px-4 flex justify-between items-center w-full"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e.learning_content_display_name?t("span",[e._v(" "+e._s(e.learning_content_display_name)+" ")]):t("span",["infinity"===e.program?t("span",[e._v(e._s(e.proficiency)+" - ")]):e._e(),e._v(e._s(e.skill))])]),t("div",{staticClass:"my-2"},[t("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},i=[],l=s(7203),r=(0,l.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""},learning_content_display_name:{type:String,default:""}},setup(){const e=(0,l.ref)("");return(0,l.onBeforeMount)((async()=>{const t=localStorage.getItem("userName")||"Learner";e.value=t.split(",").reverse().join(" ")})),{username:e}}}),n=r,o=s(1001),c=(0,o.Z)(n,a,i,!1,null,null,null),u=c.exports},3588:function(e,t,s){s.r(t),s.d(t,{default:function(){return b}});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[e.revieweeDetails?t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[t("Greetings",{attrs:{program:e.programId,proficiency:e.proficiency,skill:e.skill,learning_content_display_name:e.learning_content_display_name}}),t("div",{staticClass:"flex md:flex mt-3 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0 block"}),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"bloc text-2xl text-center text-background-secondary"},[e._v(" "+e._s(e.revieweeDetails.reviewee_count_string)+" ")]),t("div",{staticClass:"block"},[t("div",{staticClass:"text-gray-600"},[t("div",{staticClass:"pt-4"},["infinity"===e.programId?t("div",{},[e._m(0),t("div",{staticClass:"mt-4 p-4 mb-3 rounded-lg shadow border border-gray-200"},[e._m(1),e.isPlagiarismEnabled?t("ol",{staticClass:"list-decimal pl-8 mt-1"},["Mobile"==e.revieweeDetails.task_details.task_type?t("li",{staticClass:"pt-1"},[e._v("Read the Task Description "),t("strong",[e._v(" → ")]),e._v("Understand the task requirement.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",{staticClass:"pt-1"},[e._v("Read the task description "),t("strong",[e._v(" → ")]),e._v(" Download the submission")]):e._e(),e._m(2),e._m(3),t("li",{staticClass:"pt-1"},[e._v("Give feedback - be specific and constructive")])]):e._e(),e.isPlagiarismEnabled?e._e():t("ol",{staticClass:"list-decimal pl-8 mt-1"},[t("li",[e._v("Read the Task Description – Understand the task requirement.")]),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Review the Submission – Go through your peer’s response.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Download the learner's task submission.")]):e._e(),t("li",[e._v("Rate the Submission – Use the rubric to assess fairly.")]),t("li",[e._v("Give Feedback – Share what worked well and what could be improved.")])])])]):e._e(),"infinity"!==e.programId?t("div",{},[t("p",[e._v("Welcome to the review stage of Solidify. You must complete "+e._s(e.revieweeDetails.mandatory_reviews)+" reviews to pass Solidify.")]),t("p",{staticClass:"pt-2"},[e._v(" A single review should take about 15 minutes, but if needed you can leave this page and come back. Remember, other learners are waiting on you to complete their own Solidify, so please do the review as soon as possible. If you have not done this review "),t("strong",[e._v("within "+e._s(e.reviewerHoldTime)+" hours")]),e._v(", it could be assigned to someone else and you will need to review a different task. ")]),"Desktop"==e.revieweeDetails.task_details.task_type?t("p",{staticClass:"pt-2"},[e._v("You must be on a desktop to download the task. This review will not work on a mobile device or tablet.")]):e._e(),e._m(4),t("ol",{staticClass:"list-decimal pl-8 mt-1"},[t("li",[e._v("Read the Task Description.")]),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Read the learner's "),t("strong",[e._v("submission")]),e._v(".")]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Review and score the task by referring to the scoring rubric.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Click the “"),t("strong",[e._v("Download Learner Task submission")]),e._v("” button to open the learner’s task.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Review and score the task by referring to the scoring rubric.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v(" Share your feedback in the reviewer comment box. Be specific about what you liked and what could be improved. These comments will be seen by whoever submitted the task! ")]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v(" Share your feedback in the reviewer comment box. Be specific about what you liked and what could be improved. These comments will be seen by whoever submitted the task! ")]):e._e(),t("li",[e._v("Do the whole process again until you have finished all your reviews!")])])]):e._e(),t("div",{staticClass:"mt-4 p-4 mb-3 rounded-lg shadow border border-gray-200"},[t("div",[t("p",[t("strong",[e._v(e._s(e.revieweeDetails.task_details.task_name))])]),t("p",{staticClass:"pt-2 rich-text-formatter",domProps:{innerHTML:e._s(e.revieweeDetails.task_details.description)}})]),"Desktop"==e.revieweeDetails.task_details.task_type?t("div",{staticClass:"text-left"},[t("button",{staticClass:"inline-block mt-2 py-2 px-6 bg-background-secondary",on:{click:e.learnerSubmissionClicked}},[e._v("Download Submission")])]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("div",{staticClass:"mt-2"},[e._m(5),t("p",{staticClass:"pt-2"},[e._v(e._s(e.revieweeDetails.learner_submission))])]):e._e()]),t("div",{staticClass:"mt-4"},[e.isPlagiarismEnabled?t("div",{staticClass:"border rounded-lg shadow p-4 mt-4"},[e._m(6),e._m(7),t("p",{staticClass:"italic pt-2"},[e._v("Note: Proper citations are acceptable - only mark as plagiarized if directly copied without attribution.")]),e._m(8),t("div",{staticClass:"mt-1 text-sm"},[t("div",{staticClass:"checkboxNewUi"},[t("div",{staticClass:"checkboxUi"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismCheckOne,expression:"plagiarismCheckOne"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:"plagriarism_check_yes"},domProps:{value:!0,checked:Array.isArray(e.plagiarismCheckOne)?e._i(e.plagiarismCheckOne,!0)>-1:e.plagiarismCheckOne},on:{change:[function(t){var s=e.plagiarismCheckOne,a=t.target,i=!!a.checked;if(Array.isArray(s)){var l=!0,r=e._i(s,l);a.checked?r<0&&(e.plagiarismCheckOne=s.concat([l])):r>-1&&(e.plagiarismCheckOne=s.slice(0,r).concat(s.slice(r+1)))}else e.plagiarismCheckOne=i},function(t){return e.checkPlagiarised(t,!0)}],click:e.checkOne}}),e._m(9)]),t("div",{staticClass:"checkboxUi"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismCheckOne,expression:"plagiarismCheckOne"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:"plagriarism_check_no"},domProps:{value:!1,checked:Array.isArray(e.plagiarismCheckOne)?e._i(e.plagiarismCheckOne,!1)>-1:e.plagiarismCheckOne},on:{change:[function(t){var s=e.plagiarismCheckOne,a=t.target,i=!!a.checked;if(Array.isArray(s)){var l=!1,r=e._i(s,l);a.checked?r<0&&(e.plagiarismCheckOne=s.concat([l])):r>-1&&(e.plagiarismCheckOne=s.slice(0,r).concat(s.slice(r+1)))}else e.plagiarismCheckOne=i},function(t){return e.checkPlagiarised(t,!1)}],click:e.checkOne}}),e._m(10)])])]),e.showplagiarismUpload?t("div",{staticClass:"mt-6 w-full flex justify-left items-start"},[t("div",{staticClass:"w-1/2 pr-8 border-r-1 border-gray-500",class:e.accessRestrictionCheck?"disabledbutton":""},[e._m(11),t("div",{staticClass:"flex pt-2 items-center gap-2",staticStyle:{"max-width":"250px"}},[t("input",{key:e.fileInputKey,staticStyle:{width:"80%"},attrs:{type:"file",accept:".png,.PNG"},on:{change:e.selectedFile}}),e.plagiarismSubmissionFile?t("x-icon",{staticClass:"cursor-pointer",attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1),t("p",{staticClass:"pt-1 text-[14px]"},[e._v("Maximum file size: 5 MB")])]),t("div",{staticClass:"w-1/2 checkboxNewUi",class:e.plagiarismSubmissionFile?"disabledbutton":""},[t("div",{staticClass:"checkboxUi w-3/4"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.accessRestrictionCheck,expression:"accessRestrictionCheck"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:"access_restriction"},domProps:{value:!1,checked:Array.isArray(e.accessRestrictionCheck)?e._i(e.accessRestrictionCheck,!1)>-1:e.accessRestrictionCheck},on:{change:function(t){var s=e.accessRestrictionCheck,a=t.target,i=!!a.checked;if(Array.isArray(s)){var l=!1,r=e._i(s,l);a.checked?r<0&&(e.accessRestrictionCheck=s.concat([l])):r>-1&&(e.accessRestrictionCheck=s.slice(0,r).concat(s.slice(r+1)))}else e.accessRestrictionCheck=i}}}),t("label",{attrs:{for:"access_restriction"}},[e._v("I’m working in an access-restricted environment and am unable to upload the evidence at this time.")])])])]):e._e()]):e._e(),!e.isPlagiarised||e.isPlagiarised&&!e.isPlagiarizedChecked?t("div",{staticClass:"mt-4"},[e._m(12),t("table",{staticClass:"table-auto py-2 border-separate border-spacing-0 shadow rounded-lg border mt-2 w-full text-left md:w-3/5"},[e._m(13),t("tbody",[t("tr",[t("td",{staticClass:"p-1 pl-6"},[t("strong",[e._v("1 - ")]),e._v(" "),t("strong",[e._v(e._s(e.likertScale.poor?e.likertScale.poor:"Poor"))])]),t("td",{staticClass:"p-1 pl-6"},[e._v("No evidence of meeting the performance expectation or learning goal.")])]),t("tr",[t("td",{staticClass:"p-1 pl-6"},[t("strong",[e._v("2 - ")]),e._v(" "),t("strong",[e._v(e._s(e.likertScale.below_average?e.likertScale.below_average:"Below Average"))])]),t("td",{staticClass:"p-1 pl-6"},[e._v("Shows minimal effort and understanding; key elements are missing or unclear.")])]),t("tr",[t("td",{staticClass:"p-1 pl-6"},[t("strong",[e._v("3 - ")]),e._v(" "),t("strong",[e._v(e._s(e.likertScale.average?e.likertScale.average:"Average"))])]),t("td",{staticClass:"p-1 pl-6"},[e._v("Covers the basics and shows reasonable understanding; some areas could improve.")])]),t("tr",[t("td",{staticClass:"p-1 pl-6"},[t("strong",[e._v("4 - ")]),e._v(" "),t("strong",[e._v(e._s(e.likertScale.above_average?e.likertScale.above_average:"Above Average"))])]),t("td",{staticClass:"p-1 pl-6"},[e._v("Well done, and meets all expectations with clarity and insight.")])]),t("tr",[t("td",{staticClass:"p-1 pl-6"},[t("strong",[e._v("5 - ")]),e._v(" "),t("strong",[e._v(e._s(e.likertScale.excellent?e.likertScale.excellent:"Excellent"))])]),t("td",{staticClass:"p-1 pl-6"},[e._v("Goes beyond expectations with clear, thoughtful, and high-quality responses.")])])])])]):e._e(),!e.isPlagiarised||e.isPlagiarised&&!e.isPlagiarizedChecked?t("div",{staticClass:"mt-6 p-6 border border-gray-200 rounded-lg shadow"},e._l(e.revieweeDetails.task_details.task_questions,(function(s,a){return t("div",{key:a,staticClass:"mb-3"},[t("div",{staticClass:"bg-gray-100 text-gray-700 py-1 px-2 text-sm border border-gray-300 mt-2"},[t("strong",{staticClass:"pr-1"},[e._v(e._s(a+1)+")")]),e._v(" "+e._s(s.text)+" ")]),"Scale"==s.type?t("div",{staticClass:"mt-1 text-sm"},[t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"0"},domProps:{checked:e._q(s.response,"0")},on:{change:[function(t){return e.$set(s,"response","0")},e.enableSubmitButton]}}),e._v(" 1 - "+e._s(e.likertScale.poor?e.likertScale.poor:"Poor"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"25"},domProps:{checked:e._q(s.response,"25")},on:{change:[function(t){return e.$set(s,"response","25")},e.enableSubmitButton]}}),e._v(" 2 - "+e._s(e.likertScale.below_average?e.likertScale.below_average:"Below Average"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"50"},domProps:{checked:e._q(s.response,"50")},on:{change:[function(t){return e.$set(s,"response","50")},e.enableSubmitButton]}}),e._v(" 3 - "+e._s(e.likertScale.average?e.likertScale.average:"Average"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"75"},domProps:{checked:e._q(s.response,"75")},on:{change:[function(t){return e.$set(s,"response","75")},e.enableSubmitButton]}}),e._v(" 4 - "+e._s(e.likertScale.above_average?e.likertScale.above_average:"Above Average"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"100"},domProps:{checked:e._q(s.response,"100")},on:{change:[function(t){return e.$set(s,"response","100")},e.enableSubmitButton]}}),e._v(" 5 - "+e._s(e.likertScale.excellent?e.likertScale.excellent:"Excellent"))])]):e._e(),"Yes/No"==s.type?t("div",{staticClass:"mt-1 text-sm"},[t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"100"},domProps:{checked:e._q(s.response,"100")},on:{change:[function(t){return e.$set(s,"response","100")},e.enableSubmitButton]}}),e._v(" Yes")]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"0"},domProps:{checked:e._q(s.response,"0")},on:{change:[function(t){return e.$set(s,"response","0")},e.enableSubmitButton]}}),e._v(" No")])]):e._e()])})),0):e._e()]),t("div",{staticClass:"mb-3 mt-4"},[t("div",[e._m(14),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.reviewerComment,expression:"reviewerComment"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border border-[#ffad28] rounded-lg focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{maxlength:"10000",rows:"3",placeholder:"Your feedback will be shared with the learner. Be clear and respectful. Avoid using names or personal details. "},domProps:{value:e.reviewerComment},on:{keyup:function(t){return e.checkQuestionLength(e.reviewerComment)},input:function(t){t.target.composing||(e.reviewerComment=t.target.value)}}}),t("div",[e.questionWordCount<10?t("div",{staticClass:"text-red-700"},[e._v("(Minimum 10 words required. Current word count - "+e._s(e.questionWordCount)+")")]):e._e()])])])]),t("div",{staticClass:"mt-6 mb-4 text-center"},[e.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),e.successMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.successMessage))]):e._e(),e._m(15),e.isPlagiarised?t("button",{staticClass:"mt-2 inline-block py-2 px-6 shadow-md",class:e.isButtonEnabled&&e.minReviewWordCount?"bg-background-secondary":"bg-gray-500 text-white font-medium rounded-full cursor-not-allowed",attrs:{disabled:!(e.isButtonEnabled&&e.minReviewWordCount)},on:{click:e.finalPlagWarningPopup}},[e._v(" Submit Review ")]):t("button",{staticClass:"mt-2 inline-block py-2 px-6 shadow-md",class:e.isButtonEnabled&&e.minReviewWordCount?"bg-background-secondary":"bg-gray-500 text-white font-medium rounded-full cursor-not-allowed",attrs:{disabled:!(e.isButtonEnabled&&e.minReviewWordCount)},on:{click:e.submitReview}},[e._v(" Submit Review ")])])])])])],1)]):e._e(),t("GenericModal",{attrs:{"pop-up-image1":!0,"is-visible":e.modalVisible,message:e.modalMessage,"close-visible":!0,"archive-button":!0},on:{closeModal:e.cancelPlagiarism,Archive:e.confirmPlagiarism}}),t("GenericModal",{attrs:{"pop-up-image2":!0,"is-visible":e.modalVisible2,message:e.modalMessage2,"close-visible":!0,"archive-button":!0},on:{closeModal:e.cancelPlagiarism,Archive:e.submitReview}})],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:s(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)},i=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{},[t("p",[e._v("You've been assigned to review a submission as a Proxy reviewer. Each review takes approximately 15 minutes; timely reviews help learners progress, while delays may lead to reassignment.")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("strong",{staticClass:"text-base"},[e._v("How to Review")]),e._v(":")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",{staticClass:"pt-1"},[e._v(" Paste text into "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[e._v("Plagiarismdetector")])]),e._v(" or "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://papersowl.com/free-plagiarism-checker",target:"_blank"}},[e._v("Papersowl")])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ul",{staticClass:"list-disc pl-4"},[t("li",{staticClass:"pt-1"},[t("strong",[e._v("Plagiarized?")]),e._v(" Take a screenshot "),t("strong",[e._v(" → ")]),e._v(' Mark "Yes" '),t("strong",[e._v(" → ")]),e._v(" Upload PNG (max 5MB)")]),t("li",{staticClass:"pt-1"},[t("strong",[e._v("Clean?")]),e._v(' Mark "No" '),t("strong",[e._v(" → ")]),e._v(" Score using the rubric")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("To review the task:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-4"},[t("strong",[e._v("Learner's Submission:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("strong",[e._v("Quick Plagiarism Check:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ul",{staticClass:"mt-2 list-disc pl-8"},[t("li",[e._v("Help us maintain academic integrity by checking if this submission is original.")]),t("li",[e._v(" Copy the text and check it using "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[e._v("Plagiarismdetector")])]),e._v(" or "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://papersowl.com/free-plagiarism-checker",target:"_blank"}},[e._v("Papersowl")]),e._v(".")]),t("ul",{staticClass:"list-disc"},[t("li",[e._v("Original work shows minimal matches (usually under 15%)")]),t("li",[e._v("High match percentages may indicate copying")])])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-4"},[t("strong",[e._v("Did you find any evidence of plagiarism?")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("label",{attrs:{for:"plagriarism_check_yes"}},[t("strong",[e._v("Yes")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("label",{attrs:{for:"plagriarism_check_no"}},[t("strong",[e._v("No")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"w-3/4"},[t("strong",[e._v(" If the submission is significantly plagiarized, upload a screenshot of the evidence in .png format. ")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Scoring Rubric (1-5 Scale)")]),e._v(":")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",[t("tr",[t("th",{staticClass:"p-2 pl-6"},[t("strong",[e._v("Score")])]),t("th",{staticClass:"p-2 pl-6"},[t("strong",[e._v("What it means")])])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("b",[e._v("Reviewer Comment")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("b",[e._v("Submit Review button will be disabled until you view the learner's submission.")])])}],l=(s(7658),s(7203)),r=s(1602),n=s.n(r),o=s(306),c=s(4856),u=s(460),d=s(4642),v=s(2148),p=s(8235),m=s(9609),g=(0,l.defineComponent)({name:"LearnerSubmitTask",props:{query:{type:Object,default:()=>({})}},components:{ErrorMessage:u.Z,GenericModal:v.Z,XIcon:c.b0D,Greetings:p.Z},setup(e){const t=(0,l.ref)(!1),s=(0,l.ref)(),a=(0,l.ref)(!1),i=(0,l.ref)(""),r=(0,l.ref)(),c=(0,l.ref)(),u=(0,l.ref)(),v=(0,l.ref)(),p=(0,l.ref)(),g=(0,l.ref)(),_=(0,l.ref)(localStorage.getItem("helpmateLink")),f=(0,l.ref)(),h=(0,l.ref)(!1),b=(0,l.ref)(),k=(0,l.ref)(),y=(0,l.ref)(!1),w=(0,l.ref)(),C=(0,l.ref)(!1),x=(0,l.ref)(!1),P=(0,l.ref)(),S=(0,l.ref)(),R=(0,l.ref)(),q=(0,l.ref)(),M=(0,l.ref)(),D=(0,l.ref)(!1),B=(0,l.ref)(),A=(0,l.ref)(),E=(0,l.ref)(),$=(0,l.ref)(),N=(0,l.ref)(),O=(0,l.ref)(!0),T=(0,l.ref)([]),U=(0,l.ref)(!1),I=(0,l.ref)({}),L=' \n <div class="px-4">\n <div class="font-bold text-left mb-3"><strong>By selecting "Yes," you confirm the following: </strong></div>\n <ul class="list-disc text-left px-6">\n <li>The submission is extensively copied from the Internet without proper source referencing. </li>\n <li>The learner will receive a <strong>\'Fail\'</strong> notification, with a copy sent to the respective manager. </li>\n </ul>\n </div>',Z=(0,l.ref)(!1),G=(0,l.ref)(0),W=(0,l.ref)(!1),F=(0,l.ref)(0),z=(0,l.ref)(!1),Y='<div class="px-4">\n <ul class="list-disc text-left px-6">\n <li>The learner will receive a <strong>\'Fail\'</strong> notification, with a copy sent to the respective manager. </li>\n <li class="pt-2">Please confirm the review to proceed. </li>\n </ul>\n </div>',Q=e=>{G.value=e.split(" ").filter((e=>""!==e)).length,Z.value=G.value>=10},V=()=>{T.value=[]},j=async()=>{F.value+=1,R.value=null};(0,l.onBeforeMount)((async()=>{try{localStorage.getItem("message")&&localStorage.removeItem("messafe"),console.log("Before Mount"),r.value=e.query.learner_task_id,b.value=!1;const t=await(0,m.Yo)(r.value),a=t.data;if(b.value=!0,console.log("reveiwTaskRes",a),a.message)console.log(`revieweeDetails.value.message ${a}`),b.value=!0,k.value=s.value.message,y.value=!0;else{s.value=a.data,I.value=s.value.task_details.likertScale?s.value.task_details.likertScale:{},c.value=s.value.skill,v.value=s.value.proficiency,u.value=s.value.learning_content_display_name,E.value=s.value.program_name,f.value=s.value.program_name,p.value=s.value.reviewer_hold_time_in_minutes/60,w.value=n()().utc().format(),console.log("Api revieweeTaskId",JSON.stringify(s));const e=!!s.value.is_plagiarism_enabled&&s.value.is_plagiarism_enabled;N.value=s.value.url_to_upload_plag_evidence,x.value=!0===e,console.log(`revieweeDetails.value.is_plag_check_mandatory ${s.value.is_plag_check_mandatory}`),O.value=s.value.is_plag_check_mandatory,console.log(`isPlagCheckMandatory ${O.value}`)}}catch(t){if(b.value=!0,console.log(`Save Task Data ${t}`),o.Z.isAxiosError(t)){const e=t;k.value=e.response?.data?.message}else k.value="There is an issue while fetching learner to review, please contact with helpmate.";y.value=!0}}));const H=()=>{let e=!0;s.value.task_details.task_questions.forEach((t=>{t.response?(console.log(`inside if allQuestionAnswered before${e}`),e=e&&!0,console.log(`inside if allQuestionAnswered after ${e}`)):(console.log(`inside else allQuestionAnswered before ${e}`),e=e&&!1,console.log(`inside else allQuestionAnswered after ${e}`))})),console.log(`allQuestionAnswered ${JSON.stringify(e)} `),console.log(`revieweeDetails.value.task_details.task_type ${s.value.task_details.task_type}`),console.log(`reviewedLearnerSubmission ${a.value}`),console.log(`reviewerComment ${i.value}`),!e||"Desktop"===s.value.task_details.task_type&&!a.value?t.value=!1:t.value=!0,console.log(`isButtonEnabled ${JSON.stringify(t)} `)},J=async()=>{try{const e={file_name:s.value.learner_submission,task_id:s.value.reviewee_id};b.value=!1;const t=await(0,m.R1)("/v1/pretAuthUrlForDownload",e);g.value=t.data.preSignedUrl,await(0,m.ng)(g.value,s.value.learner_submission),b.value=!0,a.value=!0,H()}catch(e){if(console.log("Error in downloading learner submission",e),b.value=!0,o.Z.isAxiosError(e)){const t=e;k.value=t.response?.data?.message}else k.value="There is an issue while donwloading learner submission, please contact helpmate.";y.value=!0}},K=async e=>{try{const t=e.target.files[0],s=e.target.files[0].name,a=e.target.files[0].size/1024/1024;a>5?(P.value="fileSize greater than 5 MB",setTimeout((()=>{P.value=null}),6e3)):(R.value=t,q.value=s)}catch(t){R.value=null,q.value=null,console.log(t)}},X=async()=>{try{if(b.value=!1,console.log(`inside submit click ${JSON.stringify(s.value)}`),console.log(`isPlagCheckMandatory ${O.value}`),console.log(`isPlagiarismEnabled ${x.value}`),console.log("type of isPlagiarised.value "+typeof B.value),x.value){if(console.log(`isPlagiarised.value ${B.value}`),B.value&&!W.value){if(!R.value)return b.value=!0,P.value="Please upload plagiarism evidence screenshot",void setTimeout((()=>{P.value=null}),6e3);if(A.value=q.value,b.value=!1,console.log("evidenceFileName value",A.value),!q.value.endsWith("png")&&!q.value.endsWith("PNG"))return b.value=!0,P.value="You can upload only png",void setTimeout((()=>{P.value=null}),6e3);M.value=await(0,m.aQ)(N.value,R.value),B.value=!0}if(void 0===B.value&&O.value)return b.value=!0,P.value="Please Select Plagiarism Checkbox",void setTimeout((()=>{P.value=null}),6e3)}const e={reviewee_task_id:s.value.reviewee_id,reviewer_comment:i.value,reviewer_response:s.value.task_details.task_questions,is_proxy_reviewer:!0,review_start_date_for_proxy:w.value,is_plagiarised:B.value,plagiarism_evidence:A.value};console.log(`params ${JSON.stringify(e)}`);const t=await(0,m.eZ)("/learnerReview",e),a=t.data;b.value=!0,localStorage.setItem("message",a.message),d.Z.push({name:"SolidifyLearnerStatus",query:{isPerformReviewVisible:"no",isProxyReview:"yes",showChevron:"no"}})}catch(e){if(b.value=!0,console.log(`error peer review ${e}`),o.Z.isAxiosError(e)){const t=e;k.value=t.response?.data?.message}else k.value="There is an issue while submitting proxy review, please contact helpmate.";y.value=!0}},ee=()=>{h.value=!1,z.value=!1,B.value=void 0,U.value=!1;for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";D.value=!1,C.value=!1,H(),V()},te=()=>{h.value=!1},se=async(e,t)=>{if(U.value=e.target.checked,console.log(`isPlagiarizedChecked ${U.value}`),B.value=t,console.log("isPlagiarised",{isPlagiarised:B.value}),U.value&&t){D.value=!0,h.value=!0;for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="0";C.value=!0,await H()}else if(!0===U.value&&!1===t){for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";D.value=!1,C.value=!1,await H()}else{for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";D.value=!1,B.value=void 0,C.value=!1,await H()}},ae=async()=>{z.value=!0};return{revieweeDetails:s,isButtonEnabled:t,enableSubmitButton:H,learnerSubmissionClicked:J,reviewerComment:i,submitReview:X,skill:c,proficiency:v,reviewerHoldTime:p,preSignedUrl:g,helpmateLink:_,modalVisible:h,modalMessage:L,renderReady:b,errorResponse:k,showErrorMessage:y,questionEnable:C,isPlagiarismEnabled:x,errorMessage:P,successMessage:S,plagiarismSubmissionFile:R,plagiarismSubmission:q,plagiarismUploadedStatus:M,showplagiarismUpload:D,selectedFile:K,isPlagiarised:B,evidenceFileName:A,checkPlagiarised:se,programName:E,ext:$,programId:f,plagUrlForUpload:N,isPlagCheckMandatory:O,plagiarismCheckOne:T,checkOne:V,isPlagiarizedChecked:U,likertScale:I,confirmPlagiarism:te,cancelPlagiarism:ee,checkQuestionLength:Q,minReviewWordCount:Z,questionWordCount:G,accessRestrictionCheck:W,clearFile:j,fileInputKey:F,modalVisible2:z,finalPlagWarningPopup:ae,modalMessage2:Y,learning_content_display_name:u}}}),_=g,f=s(1001),h=(0,f.Z)(_,a,i,!1,null,"37dbccd6",null),b=h.exports},9609:function(e,t,s){s.d(t,{R1:function(){return i},Yo:function(){return r},aQ:function(){return c},eZ:function(){return n},ng:function(){return o},uZ:function(){return l}});var a=s(7129);const i=async(e,t)=>{const s=await a.Z.post(e,t);return s},l=async e=>{const t=await a.Z.get(e);return t},r=async e=>{const t=await a.Z.get(`learnerTaskToProxyReview/${e}`);return t},n=async(e,t)=>{const s=await a.Z.post(e,t);return s},o=async(e,t)=>{console.log(t),console.log(e);const s=await fetch(e),a=await s.blob(),i=URL.createObjectURL(a),l=document.createElement("a");l.setAttribute("download",t),l.href=i,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(i)},c=async(e,t)=>{try{const s=await fetch(`${e}`,{method:"put",body:t}),a=s;return a}catch(s){return console.error(s),s}}},3126:function(e,t,s){e.exports=s.p+"img/support.svg"},2191:function(e,t,s){e.exports=s.p+"img/plag_warning1.gif"},5861:function(e,t,s){e.exports=s.p+"img/plag_warning2.gif"}}]);
|
|
2
2
|
//# sourceMappingURL=solidify.umd.min.SolidifyLearnerProxyReview.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[723],{460:function(M,z,b){"use strict";b.d(z,{Z:function(){return d}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex"},[z("div",{staticClass:"w-full pt-16 px-32"},[z("div",{staticClass:"md:px-0 lg:px-0 text-center"},[z("div",{staticClass:"text-gray-500"},[z("div",{staticClass:"pt-2",domProps:{innerHTML:M._s(M.errorMsg)}})]),z("div",{staticClass:"pt-8"},[z("a",{attrs:{href:M.helpmateLink,target:"_blank"}},[z("img",{staticClass:"mx-auto",attrs:{src:b(3126)}})])])])])])},O=[],A=b(7203),c=(0,A.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(M){const z=(0,A.ref)(""),b=(0,A.ref)(localStorage.getItem("helpmateLink"));return(0,A.onBeforeMount)((async()=>{z.value=M.errorMessage})),{errorMsg:z,helpmateLink:b}}}),q=c,o=b(1001),W=(0,o.Z)(q,p,O,!1,null,null,null),d=W.exports},8235:function(M,z,b){"use strict";b.d(z,{Z:function(){return d}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"mt-4 lg:px-24 md:px-24 px-4 flex justify-between items-center w-full"},[z("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[M.learning_content_display_name?z("span",[M._v(" "+M._s(M.learning_content_display_name)+" ")]):z("span",["infinity"===M.program?z("span",[M._v(M._s(M.proficiency)+" - ")]):M._e(),M._v(M._s(M.skill))])]),z("div",{staticClass:"my-2"},[z("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[M._v("Hi, "+M._s(M.username))])])])},O=[],A=b(7203),c=(0,A.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""},learning_content_display_name:{type:String,default:""}},setup(){const M=(0,A.ref)("");return(0,A.onBeforeMount)((async()=>{const z=localStorage.getItem("userName")||"Learner";M.value=z.split(",").reverse().join(" ")})),{username:M}}}),q=c,o=b(1001),W=(0,o.Z)(q,p,O,!1,null,null,null),d=W.exports},4049:function(M,z,b){"use strict";b.r(z),b.d(z,{default:function(){return e}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[M.renderReady?[M.showErrorMessage?M._e():[z("div",{staticClass:"flex"},[z("div",{staticClass:"w-full pt-12"},[z("Greetings",{attrs:{program:M.programId,proficiency:M.profName,skill:M.skillName,learning_content_display_name:M.learning_content_display_name}}),z("div",{staticClass:"flex md:flex mt-3 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0 block"},[z("div",{staticClass:"ul-nav w-full"},[z("ul",[z("li",{staticClass:"active"},[M._v("Home")]),z("li",{staticClass:"active"},[M._v("Task")]),z("li",[M._v("Submit")]),"Auto assign reviewer (reviewer task to be different)"===M.reviewerAssignmentStrategy||"Auto assign reviewer based on skill and proficiency"===M.reviewerAssignmentStrategy?z("li",[M._v("Peer Reviews")]):M._e(),z("li",[M._v("Under Review")]),z("li",[M._v("Done!")])])])]),z("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[z("div",{staticClass:"block"},[M._m(0),M._m(1),z("div",{staticClass:"lg:flex md:flex block mt-4 bg-white gap-x-3"},[M.rows.length>0?z("div",{staticClass:"lg:w-1/2 md:w-1/2 mb-6 md:mb-2 p-4 mb-3 rounded-lg shadow border border-gray-200"},[z("table",{staticClass:"table-auto border-collapse w-full"},[M._m(2),z("tbody",M._l(M.rows,(function(b){return z("tr",{key:b.task_id,staticClass:"border-y-2 border-b-0 border-gray-300 text-blue-900"},[z("td",{staticClass:"p-2 align-top"},[z("input",{directives:[{name:"model",rawName:"v-model",value:M.additional,expression:"additional"}],attrs:{type:"checkbox",id:"check_id"},domProps:{value:b.task_id,checked:Array.isArray(M.additional)?M._i(M.additional,b.task_id)>-1:M.additional},on:{change:[function(z){var p=M.additional,O=z.target,A=!!O.checked;if(Array.isArray(p)){var c=b.task_id,q=M._i(p,c);O.checked?q<0&&(M.additional=p.concat([c])):q>-1&&(M.additional=p.slice(0,q).concat(p.slice(q+1)))}else M.additional=A},function(z){return M.setTaskDesc(b.task_name,b.description,z)}],click:M.checkOne}}),M._v(" "+M._s(b.task_name)+" ")]),z("td",{staticClass:"p-2 align-top"},[M._v(M._s(b.task_type))])])})),0)]),z("div",{staticClass:"hidden md:block"},[z("div",{staticClass:"block mt-4 px-2"},[z("div",{staticClass:"text-[#161916]"},[z("div",{staticClass:"pb-1"},[M._v("Enter your Genpact or preferred email to receive progress updates:")]),z("input",{directives:[{name:"model",rawName:"v-model",value:M.email,expression:"email"}],staticClass:"appearance-none border border-[#ffad28] rounded-lg w-full py-2 px-3 text-[#161916] leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text"},domProps:{value:M.email},on:{input:function(z){z.target.composing||(M.email=z.target.value)}}}),M.emailValidationMsg?z("div",{staticClass:"ui basic label pointing red"},[z("span",{staticClass:"text-red-700"},[M._v(M._s(M.emailValidationMsg)+" ")])]):M._e()])]),z("div",{staticClass:"mt-4 mb-4 text-center"},[M.learning_path_id?z("router-link",{staticClass:"py-2 px-6 border border-[#ffad28] bg-white-500 text-[#161916] hover:bg-[#ffad28] rounded-full shadow-md mr-2",attrs:{to:{name:"SolidifyLearner",query:{learning_path_id:M.learning_path_id,learning_content_id:M.learning_content_id}}}},[M._v(" Back ")]):z("router-link",{staticClass:"py-2 px-6 border border-[#ffad28] bg-white-500 text-[#161916] hover:bg-[#ffad28] rounded-full mr-2",attrs:{to:{name:"SolidifyLearner",query:{skill_id:M.skillId,proficiency_id:M.profId,program_id:M.programId}}}},[M._v(" Back ")]),z("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md",class:M.buttonDisable?"bg-gray-500 rounded-full cursor-not-allowed":"bg-background-secondary",attrs:{disabled:M.buttonDisable},on:{click:function(z){return M.createLearner()}}},[M._v(" Select Task ")])],1)])]):M._e(),M.taskDesc?z("div",{staticClass:"lg:w-1/2 md:w-1/2 bg-white mb-6 md:mb-2 p-4 mb-3 rounded-lg shadow border border-gray-200"},[z("div",{directives:[{name:"show",rawName:"v-show",value:M.taskName,expression:"taskName"}]},[z("strong",[M._v("Task Name:")]),M._v(" "+M._s(M.taskName))]),z("div",{directives:[{name:"show",rawName:"v-show",value:M.taskDesc,expression:"taskDesc"}],staticClass:"mt-3"},[z("strong",[M._v("Task Description:")])]),z("div",{staticClass:"mt-1 rich-text-formatter",domProps:{innerHTML:M._s(M.taskDesc)}})]):z("div")])]),z("div",{staticClass:"md:hidden sm:block"},[z("div",{staticClass:"block mt-8"},[z("div",{staticClass:"text-gray-600"},[z("p",[M._v("Enter your Genpact or preferred email to receive progress updates:")]),z("input",{directives:[{name:"model",rawName:"v-model",value:M.email,expression:"email"}],staticClass:"appearance-none border md:w-2/4 w-full py-2 px-3 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text"},domProps:{value:M.email},on:{input:function(z){z.target.composing||(M.email=z.target.value)}}}),M.emailValidationMsg?z("div",{staticClass:"ui basic label pointing red"},[z("span",{staticClass:"text-red-700"},[M._v(M._s(M.emailValidationMsg)+" ")])]):M._e()])]),z("div",{staticClass:"mt-6 mb-6 text-center"},[M.learning_path_id?z("router-link",{staticClass:"py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2",attrs:{to:{name:"SolidifyLearner",query:{learning_path_id:M.learning_path_id,learning_content_id:M.learning_content_id}}}},[M._v(" Back ")]):z("router-link",{staticClass:"py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2",attrs:{to:{name:"SolidifyLearner",query:{skill_id:M.skillId,proficiency_id:M.profId,program_id:M.programId}}}},[M._v(" Back ")]),z("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md",class:M.buttonDisable?"bg-gray-500 cursor-not-allowed":"bg-background-secondary",attrs:{disabled:M.buttonDisable},on:{click:function(z){return M.createLearner()}}},[M._v("Select Task")])],1)])])],1)])],M.showErrorMessage?z("ErrorMessage",{attrs:{"error-message":M.errorResponse}}):M._e()]:M._e(),M.renderReady?M._e():z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[z("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:b(9756),alt:"Loader Gif"}}),z("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[M._v("Loading...")])])],2)},O=[function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"text-gray-500"},[z("p",{staticClass:"pt-1 text-3xl"},[z("strong",{staticClass:"text-xl"},[M._v("Available Tasks:")])])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("p",{staticClass:"pt-3"},[M._v("Select a task from the options below. If you're in a client-restricted environment, choose a mobile-friendly task (if available).")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("thead",[z("tr",{staticClass:"border-b border-gray-300 text-[#161916]"},[z("th",{staticClass:"p-2 text-left"},[M._v("Learning Task")]),z("th",{staticClass:"p-2 text-left min-w-[100px]"},[M._v("Type of Task")])])])}],A=(b(7658),b(7203)),c=b(4654),q=b(306),o=b(460),W=b(8235),d=b(9896),R=b(7881),a=b.n(R),n=(0,A.defineComponent)({name:"LearnerSelectTask",props:{query:{type:Object,default:()=>({})}},components:{ErrorMessage:o.Z,Greetings:W.Z},setup(M){const z=(0,A.ref)(localStorage.getItem("skillName")),b=(0,A.ref)(localStorage.getItem("proficiency")),p=(0,A.ref)(localStorage.getItem("learning_content_display_name")),O=(0,A.ref)(localStorage.getItem("skillId")),o=(0,A.ref)(localStorage.getItem("profId")),W=(0,A.ref)(localStorage.getItem("programId")),R=(0,A.ref)(localStorage.getItem("helpmateLink")),n=(0,A.ref)(localStorage.getItem("email")),L=(0,A.ref)(localStorage.getItem("userName")),f=(0,A.ref)(),i=(0,A.ref)(),e=(0,A.ref)(),B=(0,A.ref)([]),N=(0,A.ref)(),X=(0,A.ref)(!0),r=(0,A.ref)(),u=(0,A.ref)(),t=(0,A.ref)(),l=(0,A.ref)(!1),s=(0,A.ref)(),T=(0,A.ref)(),m=(0,A.ref)(),g=(0,A.ref)(),E=(0,A.ref)(),C=()=>{B.value=[]},S=(M,z,b)=>{const p=b.target.checked;!0===p?(X.value=!1,i.value=M,e.value=z):(X.value=!0,i.value=null,e.value=null)},P=async M=>{const z=/^\w+([.-]?\w+)*@[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+$/,b=z.test(M);return b},h=async()=>{try{if(n.value){const M=await P(n.value);if(!M)return N.value="Enter Valid Email",void setTimeout((()=>{N.value=null}),6e3);const z={email:n.value,linked_task_id:B.value[0],skill_id:O.value,proficiency_id:o.value,program_id:W.value,learning_content_id:E.value,learning_path_id:g.value};r.value&&Object.assign(z,{learner_task_id:r.value}),L.value&&Object.assign(z,{fullname:L.value}),u.value=!1;const b=await(0,c.hZ)("/v1/createLearnerActivities",z),p=b.data;!1===p.emailValidation?(N.value="Enter Valid Email",setTimeout((()=>{N.value=null}),6e3)):(console.log(p.message),console.log({learner_task_id:p.learnerTaskId,program_id:z.program_id}),d.Z.push({name:"SolidifyLearnerSubmitTask",query:{learner_task_id:p.learnerTaskId,program_id:z.program_id}}))}else N.value="Please enter an email address",setTimeout((()=>{N.value=null}),6e3)}catch(M){if(u.value=!0,q.Z.isAxiosError(M)){const z=M;t.value=z.response?.data?.message}else t.value="There is some issue in registering task for learner, please contact helpmate.";l.value=!0}},v=async M=>{try{u.value=!1;const z=await(0,c.n2)("/task/search",M),b=z.data.tasks;u.value=!0,0===b.length?(t.value="There is no task available for this skill and proficiency, please contact helpmate.",l.value=!0):(b.sort(((M,z)=>M.task_type.localeCompare(z.task_type))),f.value=b)}catch(z){if(u.value=!0,q.Z.isAxiosError(z)){const M=z;t.value=M.response?.data?.message}else t.value="There is an issue to fetch task record, please contact helpmate.";l.value=!0}};return(0,A.onBeforeMount)((async()=>{try{g.value=M.query.learning_path_id,E.value=M.query.learning_content_id,u.value=!1;const z=a().tz.guess();s.value=localStorage.getItem("programName"),m.value=localStorage.getItem("reviewerAssignmentStrategy"),T.value=localStorage.getItem("taskAssignmentStrategy");const b={skill:M.query.skill_id,proficiency:M.query.proficiency_id,program_id:M.query.program_id,learning_path_id:g.value,learning_content_id:E.value,timezone:z};u.value=!1;const p=await(0,c.zn)("/learner/journey/stat",b),A=p.data;if(u.value=!0,A.is_learner_not_allowed)return void(g.value&&E.value?d.Z.push({path:"/solidify",query:{learning_path_id:g.value,learning_content_id:E.value}}):d.Z.push({path:"/solidify",query:{skill_id:M.query.skill_id,proficiency_id:M.query.proficiency_id,program_id:M.query.program_id}}));A.learnerData&&(A.learnerData.technical_hold&&(g.value&&E.value?d.Z.push({path:"/solidify",query:{learning_path_id:g.value,learning_content_id:E.value}}):d.Z.push({path:"/solidify",query:{skill_id:M.query.skill_id,proficiency_id:M.query.proficiency_id,program_id:M.query.program_id}})),r.value=A.learnerData.learner_task_id,"Need Reviewer and Need Reviewee"===A.learnerData.learner_status||"Need Reviewee"===A.learnerData.learner_status?d.Z.push({path:"/solidify/peerReview",query:{learner_task_id:A.learnerData.learner_task_id}}):"Need Reviewer"===A.learnerData.learner_status||"Passed"===A.learnerData.learner_status?d.Z.push({path:"/solidify/done",query:{learner_task_id:r.value}}):"infinity"!==W.value&&"Registered"===A.learnerData.learner_status&&(g.value&&E.value?d.Z.push({path:"/solidify/submitTask",query:{learner_task_id:A.learnerData.learnerData.learner_task_id,program_id:W.value,learning_path_id:g.value,learning_content_id:E.value}}):d.Z.push({path:"/solidify/submitTask",query:{learner_task_id:A.learnerData.learnerData.learner_task_id,program_id:W.value}})));const q={skill:O.value,proficiency:o.value,program_id:W.value};console.log("see this",q),await v(q)}catch(z){if(u.value=!0,q.Z.isAxiosError(z)){const M=z;t.value=M.response?.data?.message}else t.value="There is an issue in fetching Data, please contact helpmate.";l.value=!0}})),{rows:f,skillName:z,profName:b,skillId:O,profId:o,programId:W,taskName:i,taskDesc:e,additional:B,email:n,emailValidationMsg:N,buttonDisable:X,setTaskDesc:S,checkOne:C,createLearner:h,helpmateLink:R,learnerTaskId:r,renderReady:u,fullname:L,errorResponse:t,showErrorMessage:l,programName:s,taskAssignmentStrategy:T,reviewerAssignmentStrategy:m,learning_path_id:g,learning_content_id:E,learning_content_display_name:p}}}),L=n,f=b(1001),i=(0,f.Z)(L,p,O,!1,null,"f5698c14",null),e=i.exports},4654:function(M,z,b){"use strict";b.d(z,{hZ:function(){return A},n2:function(){return O},zn:function(){return c}});var p=b(7129);const O=async(M,z)=>{const b=await p.Z.post(M,z);return b},A=async(M,z)=>{const b=await p.Z.post(M,z);return b},c=async(M,z)=>{const b=await p.Z.post(M,z);return b}},7881:function(M,z,b){var p=M.exports=b(8158);p.tz.load(b(1128))},8158:function(M,z,b){var p,O,A;b(7658),
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[723],{460:function(M,z,b){"use strict";b.d(z,{Z:function(){return d}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex"},[z("div",{staticClass:"w-full pt-16 px-32"},[z("div",{staticClass:"md:px-0 lg:px-0 text-center"},[z("div",{staticClass:"text-gray-500"},[z("div",{staticClass:"pt-2",domProps:{innerHTML:M._s(M.errorMsg)}})]),z("div",{staticClass:"pt-8"},[z("a",{attrs:{href:M.helpmateLink,target:"_blank"}},[z("img",{staticClass:"mx-auto",attrs:{src:b(3126)}})])])])])])},O=[],A=b(7203),c=(0,A.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(M){const z=(0,A.ref)(""),b=(0,A.ref)(localStorage.getItem("helpmateLink"));return(0,A.onBeforeMount)((async()=>{z.value=M.errorMessage})),{errorMsg:z,helpmateLink:b}}}),q=c,o=b(1001),W=(0,o.Z)(q,p,O,!1,null,null,null),d=W.exports},8235:function(M,z,b){"use strict";b.d(z,{Z:function(){return d}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"mt-4 lg:px-24 md:px-24 px-4 flex justify-between items-center w-full"},[z("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[M.learning_content_display_name?z("span",[M._v(" "+M._s(M.learning_content_display_name)+" ")]):z("span",["infinity"===M.program?z("span",[M._v(M._s(M.proficiency)+" - ")]):M._e(),M._v(M._s(M.skill))])]),z("div",{staticClass:"my-2"},[z("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[M._v("Hi, "+M._s(M.username))])])])},O=[],A=b(7203),c=(0,A.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""},learning_content_display_name:{type:String,default:""}},setup(){const M=(0,A.ref)("");return(0,A.onBeforeMount)((async()=>{const z=localStorage.getItem("userName")||"Learner";M.value=z.split(",").reverse().join(" ")})),{username:M}}}),q=c,o=b(1001),W=(0,o.Z)(q,p,O,!1,null,null,null),d=W.exports},4049:function(M,z,b){"use strict";b.r(z),b.d(z,{default:function(){return e}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[M.renderReady?[M.showErrorMessage?M._e():[z("div",{staticClass:"flex"},[z("div",{staticClass:"w-full pt-12"},[z("Greetings",{attrs:{program:M.programId,proficiency:M.profName,skill:M.skillName,learning_content_display_name:M.learning_content_display_name}}),z("div",{staticClass:"flex md:flex mt-3 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0 block"},[z("div",{staticClass:"ul-nav w-full"},[z("ul",[z("li",{staticClass:"active"},[M._v("Home")]),z("li",{staticClass:"active"},[M._v("Task")]),z("li",[M._v("Submit")]),"Auto assign reviewer (reviewer task to be different)"===M.reviewerAssignmentStrategy||"Auto assign reviewer based on skill and proficiency"===M.reviewerAssignmentStrategy?z("li",[M._v("Peer Reviews")]):M._e(),z("li",[M._v("Under Review")]),z("li",[M._v("Done!")])])])]),z("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[z("div",{staticClass:"block"},[M._m(0),M._m(1),z("div",{staticClass:"lg:flex md:flex block mt-4 bg-white gap-x-3"},[M.rows.length>0?z("div",{staticClass:"lg:w-1/2 md:w-1/2 mb-6 md:mb-2 p-4 mb-3 rounded-lg shadow border border-gray-200"},[z("table",{staticClass:"table-auto border-collapse w-full"},[M._m(2),z("tbody",M._l(M.rows,(function(b){return z("tr",{key:b.task_id,staticClass:"border-y-2 border-b-0 border-gray-300 text-blue-900"},[z("td",{staticClass:"p-2 align-top"},[z("input",{directives:[{name:"model",rawName:"v-model",value:M.additional,expression:"additional"}],attrs:{type:"checkbox",id:"check_id"},domProps:{value:b.task_id,checked:Array.isArray(M.additional)?M._i(M.additional,b.task_id)>-1:M.additional},on:{change:[function(z){var p=M.additional,O=z.target,A=!!O.checked;if(Array.isArray(p)){var c=b.task_id,q=M._i(p,c);O.checked?q<0&&(M.additional=p.concat([c])):q>-1&&(M.additional=p.slice(0,q).concat(p.slice(q+1)))}else M.additional=A},function(z){return M.setTaskDesc(b.task_name,b.description,z)}],click:M.checkOne}}),M._v(" "+M._s(b.task_name)+" ")]),z("td",{staticClass:"p-2 align-top"},[M._v(M._s(b.task_type))])])})),0)]),z("div",{staticClass:"hidden md:block"},[z("div",{staticClass:"block mt-4 px-2"},[z("div",{staticClass:"text-[#161916]"},[z("div",{staticClass:"pb-1"},[M._v("Enter your Genpact or preferred email to receive progress updates:")]),z("input",{directives:[{name:"model",rawName:"v-model",value:M.email,expression:"email"}],staticClass:"appearance-none border border-[#ffad28] rounded-lg w-full py-2 px-3 text-[#161916] leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text"},domProps:{value:M.email},on:{input:function(z){z.target.composing||(M.email=z.target.value)}}}),M.emailValidationMsg?z("div",{staticClass:"ui basic label pointing red"},[z("span",{staticClass:"text-red-700"},[M._v(M._s(M.emailValidationMsg)+" ")])]):M._e()])]),z("div",{staticClass:"mt-4 mb-4 text-center"},[M.learning_path_id?z("router-link",{staticClass:"py-2 px-6 border border-[#ffad28] bg-white-500 text-[#161916] hover:bg-[#ffad28] rounded-full shadow-md mr-2",attrs:{to:{name:"SolidifyLearner",query:{learning_path_id:M.learning_path_id,learning_content_id:M.learning_content_id}}}},[M._v(" Back ")]):z("router-link",{staticClass:"py-2 px-6 border border-[#ffad28] bg-white-500 text-[#161916] hover:bg-[#ffad28] rounded-full mr-2",attrs:{to:{name:"SolidifyLearner",query:{skill_id:M.skillId,proficiency_id:M.profId,program_id:M.programId}}}},[M._v(" Back ")]),z("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md",class:M.buttonDisable?"bg-gray-500 rounded-full cursor-not-allowed":"bg-background-secondary",attrs:{disabled:M.buttonDisable},on:{click:function(z){return M.createLearner()}}},[M._v(" Select Task ")])],1)])]):M._e(),M.taskDesc?z("div",{staticClass:"lg:w-1/2 md:w-1/2 bg-white mb-6 md:mb-2 p-4 mb-3 rounded-lg shadow border border-gray-200"},[z("div",{directives:[{name:"show",rawName:"v-show",value:M.taskName,expression:"taskName"}]},[z("strong",[M._v("Task Name:")]),M._v(" "+M._s(M.taskName))]),z("div",{directives:[{name:"show",rawName:"v-show",value:M.taskDesc,expression:"taskDesc"}],staticClass:"mt-3"},[z("strong",[M._v("Task Description:")])]),z("div",{staticClass:"mt-1 rich-text-formatter",domProps:{innerHTML:M._s(M.taskDesc)}})]):z("div")])]),z("div",{staticClass:"md:hidden sm:block"},[z("div",{staticClass:"block mt-8"},[z("div",{staticClass:"text-gray-600"},[z("p",[M._v("Enter your Genpact or preferred email to receive progress updates:")]),z("input",{directives:[{name:"model",rawName:"v-model",value:M.email,expression:"email"}],staticClass:"appearance-none border md:w-2/4 w-full py-2 px-3 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text"},domProps:{value:M.email},on:{input:function(z){z.target.composing||(M.email=z.target.value)}}}),M.emailValidationMsg?z("div",{staticClass:"ui basic label pointing red"},[z("span",{staticClass:"text-red-700"},[M._v(M._s(M.emailValidationMsg)+" ")])]):M._e()])]),z("div",{staticClass:"mt-6 mb-6 text-center"},[M.learning_path_id?z("router-link",{staticClass:"py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2",attrs:{to:{name:"SolidifyLearner",query:{learning_path_id:M.learning_path_id,learning_content_id:M.learning_content_id}}}},[M._v(" Back ")]):z("router-link",{staticClass:"py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2",attrs:{to:{name:"SolidifyLearner",query:{skill_id:M.skillId,proficiency_id:M.profId,program_id:M.programId}}}},[M._v(" Back ")]),z("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md",class:M.buttonDisable?"bg-gray-500 cursor-not-allowed":"bg-background-secondary",attrs:{disabled:M.buttonDisable},on:{click:function(z){return M.createLearner()}}},[M._v("Select Task")])],1)])])],1)])],M.showErrorMessage?z("ErrorMessage",{attrs:{"error-message":M.errorResponse}}):M._e()]:M._e(),M.renderReady?M._e():z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[z("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:b(9756),alt:"Loader Gif"}}),z("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[M._v("Loading...")])])],2)},O=[function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"text-gray-500"},[z("p",{staticClass:"pt-1 text-3xl"},[z("strong",{staticClass:"text-xl"},[M._v("Available Tasks:")])])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("p",{staticClass:"pt-3"},[M._v("Select a task from the options below. If you're in a client-restricted environment, choose a mobile-friendly task (if available).")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("thead",[z("tr",{staticClass:"border-b border-gray-300 text-[#161916]"},[z("th",{staticClass:"p-2 text-left"},[M._v("Learning Task")]),z("th",{staticClass:"p-2 text-left min-w-[100px]"},[M._v("Type of Task")])])])}],A=(b(7658),b(7203)),c=b(4654),q=b(306),o=b(460),W=b(8235),d=b(4642),R=b(7881),a=b.n(R),n=(0,A.defineComponent)({name:"LearnerSelectTask",props:{query:{type:Object,default:()=>({})}},components:{ErrorMessage:o.Z,Greetings:W.Z},setup(M){const z=(0,A.ref)(localStorage.getItem("skillName")),b=(0,A.ref)(localStorage.getItem("proficiency")),p=(0,A.ref)(localStorage.getItem("learning_content_display_name")),O=(0,A.ref)(localStorage.getItem("skillId")),o=(0,A.ref)(localStorage.getItem("profId")),W=(0,A.ref)(localStorage.getItem("programId")),R=(0,A.ref)(localStorage.getItem("helpmateLink")),n=(0,A.ref)(localStorage.getItem("email")),L=(0,A.ref)(localStorage.getItem("userName")),f=(0,A.ref)(),i=(0,A.ref)(),e=(0,A.ref)(),B=(0,A.ref)([]),N=(0,A.ref)(),X=(0,A.ref)(!0),r=(0,A.ref)(),u=(0,A.ref)(),t=(0,A.ref)(),l=(0,A.ref)(!1),s=(0,A.ref)(),T=(0,A.ref)(),m=(0,A.ref)(),g=(0,A.ref)(),E=(0,A.ref)(),C=()=>{B.value=[]},S=(M,z,b)=>{const p=b.target.checked;!0===p?(X.value=!1,i.value=M,e.value=z):(X.value=!0,i.value=null,e.value=null)},P=async M=>{const z=/^\w+([.-]?\w+)*@[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+$/,b=z.test(M);return b},h=async()=>{try{if(n.value){const M=await P(n.value);if(!M)return N.value="Enter Valid Email",void setTimeout((()=>{N.value=null}),6e3);const z={email:n.value,linked_task_id:B.value[0],skill_id:O.value,proficiency_id:o.value,program_id:W.value,learning_content_id:E.value,learning_path_id:g.value};r.value&&Object.assign(z,{learner_task_id:r.value}),L.value&&Object.assign(z,{fullname:L.value}),u.value=!1;const b=await(0,c.hZ)("/v1/createLearnerActivities",z),p=b.data;!1===p.emailValidation?(N.value="Enter Valid Email",setTimeout((()=>{N.value=null}),6e3)):(console.log(p.message),console.log({learner_task_id:p.learnerTaskId,program_id:z.program_id}),d.Z.push({name:"SolidifyLearnerSubmitTask",query:{learner_task_id:p.learnerTaskId,program_id:z.program_id}}))}else N.value="Please enter an email address",setTimeout((()=>{N.value=null}),6e3)}catch(M){if(u.value=!0,q.Z.isAxiosError(M)){const z=M;t.value=z.response?.data?.message}else t.value="There is some issue in registering task for learner, please contact helpmate.";l.value=!0}},v=async M=>{try{u.value=!1;const z=await(0,c.n2)("/task/search",M),b=z.data.tasks;u.value=!0,0===b.length?(t.value="There is no task available for this skill and proficiency, please contact helpmate.",l.value=!0):(b.sort(((M,z)=>M.task_type.localeCompare(z.task_type))),f.value=b)}catch(z){if(u.value=!0,q.Z.isAxiosError(z)){const M=z;t.value=M.response?.data?.message}else t.value="There is an issue to fetch task record, please contact helpmate.";l.value=!0}};return(0,A.onBeforeMount)((async()=>{try{g.value=M.query.learning_path_id,E.value=M.query.learning_content_id,u.value=!1;const z=a().tz.guess();s.value=localStorage.getItem("programName"),m.value=localStorage.getItem("reviewerAssignmentStrategy"),T.value=localStorage.getItem("taskAssignmentStrategy");const b={skill:M.query.skill_id,proficiency:M.query.proficiency_id,program_id:M.query.program_id,learning_path_id:g.value,learning_content_id:E.value,timezone:z};u.value=!1;const p=await(0,c.zn)("/learner/journey/stat",b),A=p.data;if(u.value=!0,A.is_learner_not_allowed)return void(g.value&&E.value?d.Z.push({path:"/solidify",query:{learning_path_id:g.value,learning_content_id:E.value}}):d.Z.push({path:"/solidify",query:{skill_id:M.query.skill_id,proficiency_id:M.query.proficiency_id,program_id:M.query.program_id}}));A.learnerData&&(A.learnerData.technical_hold&&(g.value&&E.value?d.Z.push({path:"/solidify",query:{learning_path_id:g.value,learning_content_id:E.value}}):d.Z.push({path:"/solidify",query:{skill_id:M.query.skill_id,proficiency_id:M.query.proficiency_id,program_id:M.query.program_id}})),r.value=A.learnerData.learner_task_id,"Need Reviewer and Need Reviewee"===A.learnerData.learner_status||"Need Reviewee"===A.learnerData.learner_status?d.Z.push({path:"/solidify/peerReview",query:{learner_task_id:A.learnerData.learner_task_id}}):"Need Reviewer"===A.learnerData.learner_status||"Passed"===A.learnerData.learner_status?d.Z.push({path:"/solidify/done",query:{learner_task_id:r.value}}):"infinity"!==W.value&&"Registered"===A.learnerData.learner_status&&(g.value&&E.value?d.Z.push({path:"/solidify/submitTask",query:{learner_task_id:A.learnerData.learnerData.learner_task_id,program_id:W.value,learning_path_id:g.value,learning_content_id:E.value}}):d.Z.push({path:"/solidify/submitTask",query:{learner_task_id:A.learnerData.learnerData.learner_task_id,program_id:W.value}})));const q={skill:O.value,proficiency:o.value,program_id:W.value};console.log("see this",q),await v(q)}catch(z){if(u.value=!0,q.Z.isAxiosError(z)){const M=z;t.value=M.response?.data?.message}else t.value="There is an issue in fetching Data, please contact helpmate.";l.value=!0}})),{rows:f,skillName:z,profName:b,skillId:O,profId:o,programId:W,taskName:i,taskDesc:e,additional:B,email:n,emailValidationMsg:N,buttonDisable:X,setTaskDesc:S,checkOne:C,createLearner:h,helpmateLink:R,learnerTaskId:r,renderReady:u,fullname:L,errorResponse:t,showErrorMessage:l,programName:s,taskAssignmentStrategy:T,reviewerAssignmentStrategy:m,learning_path_id:g,learning_content_id:E,learning_content_display_name:p}}}),L=n,f=b(1001),i=(0,f.Z)(L,p,O,!1,null,"f5698c14",null),e=i.exports},4654:function(M,z,b){"use strict";b.d(z,{hZ:function(){return A},n2:function(){return O},zn:function(){return c}});var p=b(7129);const O=async(M,z)=>{const b=await p.Z.post(M,z);return b},A=async(M,z)=>{const b=await p.Z.post(M,z);return b},c=async(M,z)=>{const b=await p.Z.post(M,z);return b}},7881:function(M,z,b){var p=M.exports=b(8158);p.tz.load(b(1128))},8158:function(M,z,b){var p,O,A;b(7658),
|
|
2
2
|
//! moment-timezone.js
|
|
3
3
|
//! version : 0.5.43
|
|
4
4
|
//! Copyright (c) JS Foundation and other contributors
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[612],{460:function(M,z,b){"use strict";b.d(z,{Z:function(){return d}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex"},[z("div",{staticClass:"w-full pt-16 px-32"},[z("div",{staticClass:"md:px-0 lg:px-0 text-center"},[z("div",{staticClass:"text-gray-500"},[z("div",{staticClass:"pt-2",domProps:{innerHTML:M._s(M.errorMsg)}})]),z("div",{staticClass:"pt-8"},[z("a",{attrs:{href:M.helpmateLink,target:"_blank"}},[z("img",{staticClass:"mx-auto",attrs:{src:b(3126)}})])])])])])},O=[],A=b(7203),c=(0,A.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(M){const z=(0,A.ref)(""),b=(0,A.ref)(localStorage.getItem("helpmateLink"));return(0,A.onBeforeMount)((async()=>{z.value=M.errorMessage})),{errorMsg:z,helpmateLink:b}}}),q=c,o=b(1001),W=(0,o.Z)(q,p,O,!1,null,null,null),d=W.exports},8235:function(M,z,b){"use strict";b.d(z,{Z:function(){return d}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"mt-4 lg:px-24 md:px-24 px-4 flex justify-between items-center w-full"},[z("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[M.learning_content_display_name?z("span",[M._v(" "+M._s(M.learning_content_display_name)+" ")]):z("span",["infinity"===M.program?z("span",[M._v(M._s(M.proficiency)+" - ")]):M._e(),M._v(M._s(M.skill))])]),z("div",{staticClass:"my-2"},[z("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[M._v("Hi, "+M._s(M.username))])])])},O=[],A=b(7203),c=(0,A.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""},learning_content_display_name:{type:String,default:""}},setup(){const M=(0,A.ref)("");return(0,A.onBeforeMount)((async()=>{const z=localStorage.getItem("userName")||"Learner";M.value=z.split(",").reverse().join(" ")})),{username:M}}}),q=c,o=b(1001),W=(0,o.Z)(q,p,O,!1,null,null,null),d=W.exports},9157:function(M,z,b){"use strict";b.r(z),b.d(z,{default:function(){return h}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[M.loadingGenAIResponse?z("AILoader",{attrs:{stat:M.stat},on:{closeAIPopup:()=>M.loadingGenAIResponse=!1}}):M._e(),M.reviewPopupOpened?z("StarRating",{attrs:{rating:M.userRating,comment:M.userComment},on:{"update:comment":z=>M.userComment=z,"update:rating":z=>M.userRating=z,submitRating:()=>{M.submitSubmiision("submit_task"),M.reviewPopupOpened=!1}}}):M._e(),M.renderReady?[M.showErrorMessage?M._e():[z("div",{staticClass:"flex"},[z("div",{staticClass:"w-full pt-12"},[z("Greetings",{attrs:{program:M.programId,proficiency:M.profName,skill:M.skillName,learning_content_display_name:M.learning_content_display_name}}),z("div",{staticClass:"flex md:flex mt-6 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0"},[z("div",{staticClass:"ul-nav w-full"},[z("ul",[z("li",{staticClass:"active"},[M._v("Home")]),z("li",{staticClass:"active"},[M._v("Task")]),z("li",{staticClass:"active"},[M._v("Submit")]),"Auto assign reviewer (reviewer task to be different)"===M.reviewerAssignmentStrategy||"Auto assign reviewer based on skill and proficiency"===M.reviewerAssignmentStrategy?z("li",[M._v("Peer Reviews")]):M._e(),z("li",[M._v("Under Review")]),z("li",[M._v("Done!")])])])]),z("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 mt-1 text-sm"},[z("div",{staticClass:"block mt-4 mb-4"},[M.submissionError?z("div",{staticClass:"w-full px-3 text-center mt-4 bg-[#ffad28] py-2 text-[#161916]"},[M._v(M._s(M.submissionError))]):M._e(),z("div",{staticClass:"text-gray-600"},[z("div",{staticClass:"p-4 mb-6 rounded-lg shadow border border-gray-200"},[z("p",{staticClass:"pt-2"},[z("strong",[M._v(M._s(M.taskName))])]),z("div",{staticClass:"mt-2 rich-text-formatter",domProps:{innerHTML:M._s(M.taskDesc)}})]),"Desktop"===M.taskType?z("div",{staticClass:"p-4 mb-6 rounded-lg shadow border border-gray-200"},["Desktop"===M.taskType?z("div",[M._m(0),z("p",{staticClass:"pt-1"},[M._v("Accepted Formats: Upload a single Word, Pdf, Excel, or PPT file with a minimum of "+M._s(M.minimumWordLength)+" words.")]),z("p",{staticClass:"pt-1"},[M._v("Max Size: 200MB")]),z("p",{staticClass:"pt-1"},[M._v("Language: English only")]),z("div",{staticClass:"flex items-center gap-2 pt-2",staticStyle:{"max-width":"250px"}},[z("input",{key:M.fileInputKey,staticStyle:{width:"80%"},attrs:{type:"file"},on:{change:M.selectedFile}}),M.learnerSubmission?z("x-icon",{attrs:{size:"1.5x"},on:{click:function(z){return M.clearFile()}}}):M._e()],1)]):M._e(),"Desktop"===M.taskType&&M.stat?.taskDetails?.genAiAssistEnabled?z("div",{staticClass:"text-xs italic mt-2 -mb-2"},[M._v("Note: To enable AI Assist for uploaded task, please upload only .doc/ .docx/ .txt/ .pdf file.")]):M._e()]):M._e(),"Mobile"===M.taskType?z("div",{staticClass:"mb-6"},[z("textarea",{directives:[{name:"model",rawName:"v-model",value:M.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal bg-white bg-clip-padding border border-[#ffad28] rounded-lg ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Type your text here..."},domProps:{value:M.learnerSubmission},on:{keyup:function(z){return M.checkQuestionLength(M.learnerSubmission)},input:function(z){z.target.composing||(M.learnerSubmission=z.target.value)}}}),z("div",[M.questionWordCount<M.minimumWordLength?z("div",[M._v("(Minimum "+M._s(M.minimumWordLength)+" words required. "+M._s(M.questionWordCount)+"/"+M._s(M.minimumWordLength)+")")]):M._e()])]):M._e(),M.fileValidationMsg?z("span",{staticClass:"text-[#ff4f59]"},[M._v(M._s(M.fileValidationMsg))]):M._e(),z("div",{staticClass:"p-4 mb-6 rounded-lg shadow border border-gray-200"},[M._m(1),M.checkForPlagiarismProgramLevel&&M.checkForPlagiarismTaskLevel?z("div",[z("ul",{staticClass:"pt-2 pl-8"},[z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check0",value:"check0"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check0")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check0",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-[#ff4f59] font-bold ml-1"},[M._v("*")]),M._v(" This is my original work, based on personal research and not copied from others (including colleagues or online sources). ")])])]),z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check1",value:"check1"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check1")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check1",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-[#ff4f59] font-bold ml-1"},[M._v("*")]),M._v(" No client or Genpact confidential information has been included. ")])])]),z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check2",value:"check2"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check2")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check2",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-[#ff4f59] font-bold ml-1"},[M._v("*")]),M._v(" I’ve checked for plagiarism using tools like "),M._m(2),M._v(" or "),M._m(3),M._v(" and found no significant matches. ")])])]),z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check3",value:"check3"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check3")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check3",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-[#ff4f59] font-bold ml-1"},[M._v("*")]),M._v("I understand that plagiarism is a violation of Genpact’s Code of Conduct and may result in unsuccessful completion of Solidify and/or disciplinary action. ")])])]),z("li",[M.palgiarismErrorMsg?z("span",{staticClass:"text-[#ff4f59]"},[M._v(M._s(M.palgiarismErrorMsg))]):M._e()])]),M._m(4)]):z("div",[z("ul",{staticClass:"pt-2 pl-8"},[z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check0",value:"check0"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check0")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check0",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-[#ff4f59] font-bold ml-1"},[M._v("*")]),M._v(" I hereby certify that this task submission does not contain/ use any client/ Genpact confidential materials.")])])])]),M.palgiarismErrorMsg?z("span",{staticClass:"text-[#ff4f59]"},[M._v(M._s(M.palgiarismErrorMsg))]):M._e()])]),M.genAIPromptResp||M.stat?.genAiAssistDetails?.[0]?.genai_evaluation_comment?z("div",{staticClass:"flex w-full h-auto p-4"},[z("div",{staticClass:"flex flex-col relative bg-gray-200 w-full lg:w-2/3 h-auto mx-4 mt-5 p-4 pl-12 rounded-xl"},[M.genAIPromptResp?z("div",[z("div",{staticClass:"font-medium text-black whitespace-pre-line"},[M._v(" "+M._s(M.genAIPromptResp?.genai_evaluation_comment)+" ")]),z("div",{staticClass:"font-medium text-black italic text-xs mt-2"},[M._v("Submitted On: "+M._s(M.moment(M.genAIPromptResp?.created_date).format("DD MMM YYYY | hh:mm a")))]),z("div",{staticClass:"font-medium text-black italic text-xs mt-0.5"},[M._v("Attempts Left: "+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length)+"/"+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts))])]):z("div",[z("div",{staticClass:"font-medium text-black whitespace-pre-line"},[M._v(" "+M._s(M.stat?.genAiAssistDetails?.[0]?.genai_evaluation_comment)+" ")]),z("div",{staticClass:"font-medium text-black italic text-xs mt-2"},[M._v("Submitted On: "+M._s(M.moment(M.stat?.genAiAssistDetails?.[0]?.created_date).format("DD MMM YYYY | hh:mm a")))]),z("div",{staticClass:"font-medium text-black italic text-xs mt-0.5"},[M._v("Attempts Left: "+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length)+"/"+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts))])]),M._m(5)])]):M._e()])]),z("div",{staticClass:"block text-center pt-2"},[M._m(6),z("div",{staticClass:"mb-4 text-center md:space-x-2 space-x-1"},["infinity"===M.programId?z("button",{staticClass:"inline-block mt-2 py-2 px-6 border border-[#ffad28] bg-white-500 text-[#161916] hover:bg-[#ffad28] rounded-full font-medium",on:{click:M.switchTask}},[M._v("Select Different Task")]):M._e(),M.stat?.taskDetails?.genAiAssistEnabled?z("button",{staticClass:"inline-block mt-2 py-2 px-6 text-white shadow-md disabled:!bg-gray-500 disabled:cursor-not-allowed disabled:text-white disabled!font-medium bg-background-secondary",attrs:{disabled:M.buttonDisable||!M.isEligibleForAIAssist||M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length<=0},on:{click:function(z){return M.submitSubmiision("ai_assist")}}},[M._v(" AI Assist ")]):M._e(),z("button",{staticClass:"inline-block mt-2 py-2 px-6 text-white shadow-md disabled:!bg-gray-500 disabled:cursor-not-allowed disabled:text-white disabled!font-medium bg-background-secondary",attrs:{disabled:M.buttonDisable},on:{click:function(z){return M.proceedToReview()}}},[M._v(" Submit Task ")]),"infinity"===M.programId?z("button",{staticClass:"inline-block mt-2 py-2 px-6 border border-[#ffad28] bg-white-500 text-[#161916] hover:bg-[#ffad28] rounded-full font-medium",on:{click:function(z){return M.restart()}}},[M._v("Restart Solidify")]):M._e()])])])],1)])],M.showErrorMessage?z("ErrorMessage",{attrs:{"error-message":M.errorResponse}}):M._e()]:M._e(),M.renderReady?M._e():z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[z("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:b(9756),alt:"Loader Gif"}}),z("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[M._v("Loading...")])])],2)},O=[function(){var M=this,z=M._self._c;M._self._setupProxy;return z("p",{staticClass:"pt-2"},[z("strong",[M._v("File Upload Instructions ")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("p",[z("strong",[M._v("By submitting, I certify that:")])])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("strong",[z("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[M._v("Plagiarismdetector")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("strong",[z("a",{staticClass:"underline",attrs:{href:"https://papersowl.com/free-plagiarism-checker",target:"_blank"}},[M._v("Papersowl")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"mt-7"},[z("p",[z("strong",[z("a",{staticClass:"underline",attrs:{href:"https://dcl.genpact.com/media/9d86bd58-3669-41c5-bc28-aad72efdf964",target:"blank"}},[M._v("Watch this short video")])]),M._v(" to learn why originality matters and how to avoid plagiarism. ")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"absolute -left-8 -bottom-3 bg-genome-v6 w-16 h-16 rounded-full flex items-center justify-center"},[z("img",{staticClass:"bg-center bg-contain bg-no-repeat block w-10",attrs:{src:b(8768)}})])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("p",{staticClass:"text-xl"},[z("em",[M._v("Do Not Click the Browser Back Button")])])])}],A=(b(7658),b(7203)),c=b(4856),q=b(568),o=b(4654),W=b(306),d=b(460),a=b(8235),R=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center fixed z-50 w-full h-full bg-opacity-70 bg-black -translate-x-1/2 left-1/2 -translate-y-1/2 top-1/2"},[z("div",{staticClass:"relative mx-auto px-8 py-4 bg-white text-background-secondary w-full md:w-1/2"},[z("button",{staticClass:"absolute right-0 mx-3",on:{click:function(z){return M.$emit("closeAIPopup")}}},[z("svg",{staticClass:"lucide-icon lucide lucide-x h-4 w-4",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[z("path",{attrs:{d:"M18 6 6 18"}}),z("path",{attrs:{d:"m6 6 12 12"}})])]),M._m(0),M._m(1),M._m(2),M._m(3),z("div",{staticClass:"flex justify-center items-center pt-2 font-bold"},[M._m(4),z("div",{staticClass:"text-background-tertiary text-xl pl-2 pr-2 italic"},[M._v(" Attempts Left: ["+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length-1)+"/"+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts)+"] - Make the most of it! ")]),M._m(5)]),z("div",{staticClass:"flex items-center justify-start py-4 space-y-4 text-left"},[z("img",{staticClass:"block h-6 w-6 mr-1",attrs:{src:b(9756),alt:"Loader Gif"}}),z("p",{staticClass:"text-gray-600 text-sm whitespace-pre-wrap text-left"},[M._v(" "+M._s(M.typedMessage)+" "),M.showCursor?z("span",{staticClass:"animate-blink"},[M._v("|")]):M._e()])])])])},n=[function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex justify-center"},[z("img",{attrs:{src:b(194)}})])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex justify-center items-center pt-2 font-bold"},[z("div",[z("img",{attrs:{src:b(5091)}})]),z("strong",{staticClass:"text-background-tertiary text-xl pl-2 pr-2"},[M._v("AI Assist Activated!")]),z("div",[z("img",{attrs:{src:b(6279)}})])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"pt-2 text-left"},[z("div",{staticClass:"pt-1"},[M._v("Your submission is being reviewed for "),z("strong",[M._v("relevance, clarity, and completeness")]),M._v(". Get instant insights to refine your work!")]),z("div",{staticClass:"pt-2 text-background-tertiary font-bold text-left"},[M._v("How It Works:")]),z("ul",{staticClass:"pt-1 list-disc pl-5"},[z("li",{staticClass:"pt-1 !text-background-secondary"},[M._v("AI provides feedback based on task objectives.")]),z("li",{staticClass:"pt-1 !text-background-secondary"},[M._v("You can "),z("strong",[M._v("revise your submission or proceed to peer review")])])])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"pt-2 italic text-left"},[z("div",[z("span",{staticClass:"text-background-tertiary"},[M._v("Disclaimer:")]),M._v(" AI-generated feedback is a guidance tool and may have its own biases.")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("img",{attrs:{src:b(3886)}})])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("img",{attrs:{src:b(3244)}})])}],e=(0,A.defineComponent)({name:"AILoader",props:{stat:{type:Object,required:!0}},setup(){const M=["Thinking deeply...","Analyzing context...","Generating insights...","Polishing response...","Finalizing thoughts..."],z=(0,A.ref)(""),b=(0,A.ref)(!0);let p=0,O=0;function c(){const b=M[p];O<b.length?(z.value+=b[O++],setTimeout(c,50)):setTimeout((()=>{p=(p+1)%M.length,O=0,z.value="",c()}),3e3)}return(0,A.onMounted)((()=>{c(),setInterval((()=>{b.value=!b.value}),500)})),{typedMessage:z,showCursor:b}}}),i=e,L=b(1001),f=(0,L.Z)(i,R,n,!1,null,"edd982f2",null),r=f.exports,B=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center fixed z-50 w-full h-full bg-opacity-70 bg-black -translate-x-1/2 left-1/2 -translate-y-1/2 top-1/2"},[z("div",{staticClass:"max-w-sm w-full mx-auto p-6 bg-white shadow-xl rounded-2xl"},[z("h2",{staticClass:"text-2xl font-semibold mb-4"},[M._v("Your Feedback")]),z("h3",{staticClass:"text-sm font-medium mb-4"},[M._v("Thank you for using AI Assist. Was the submission feedback helpful? Share your valuable input.")]),z("div",{staticClass:"flex items-center justify-center space-x-6 mb-4"},M._l(5,(function(b){return z("button",{key:b,staticClass:"focus:outline-none",on:{click:function(z){return M.setRating(b)},mouseenter:function(z){M.hoverRating=b},mouseleave:function(z){M.hoverRating=0}}},[z("svg",{class:[(M.hoverRating||M.internalRating)>=b?"text-[#FFAD28]":"text-gray-300","w-8 h-8 transition-colors"],attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}},[z("path",{attrs:{d:"M12 .587l3.668 7.568 8.332 1.151-6.064 5.943 1.464 8.251L12 18.896l-7.4 4.604 1.464-8.251L0 9.306l8.332-1.151z"}})])])})),0),z("p",{staticClass:"text-sm text-gray-500 pb-2"},[M._v("Rating: "+M._s(M.internalRating)+" / 5")]),z("textarea",{directives:[{name:"model",rawName:"v-model",value:M.internalComment,expression:"internalComment"}],staticClass:"w-full p-3 border rounded-xl focus:ring-2 focus:ring-background-secondary focus:outline-none resize-none",attrs:{rows:"4",placeholder:"Your Message..."},domProps:{value:M.internalComment},on:{input:function(z){z.target.composing||(M.internalComment=z.target.value)}}}),z("button",{staticClass:"inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 disabled:!bg-gray-500 disabled:cursor-not-allowed bg-background-secondary",attrs:{disabled:M.internalRating<=0},on:{click:M.submitReview}},[M._v(" Submit ")])])])},t=[],u=(0,A.defineComponent)({name:"StarRating",props:{rating:{type:Number,required:!0},comment:{type:String,required:!0}},emits:["update:rating","update:comment","submitRating"],setup(M,{emit:z}){const b=(0,A.ref)(M.rating),p=(0,A.ref)(M.comment),O=(0,A.ref)(0),c=M=>{b.value=M},q=()=>{z("submitRating")};return(0,A.watch)(b,(M=>{z("update:rating",M)})),(0,A.watch)(p,(M=>{z("update:comment",M)})),{internalRating:b,internalComment:p,hoverRating:O,setRating:c,submitReview:q}}}),N=u,X=(0,L.Z)(N,B,t,!1,null,null,null),s=X.exports,l=b(1602),T=b.n(l),m=b(9896),g=b(7881),E=b.n(g),C=(0,A.defineComponent)({name:"LearnerSubmitTask",components:{XIcon:c.b0D,ErrorMessage:d.Z,Greetings:a.Z,AILoader:r,StarRating:s},props:{query:{type:Object,default:()=>({})}},setup(M){const z=(0,A.ref)(),b=(0,A.ref)(M.query.learner_task_id),p=(0,A.ref)(M.query.program_id),O=(0,A.ref)(localStorage.getItem("skillId")),c=(0,A.ref)(localStorage.getItem("profId")),d=(0,A.ref)(localStorage.getItem("skillName")),a=(0,A.ref)(localStorage.getItem("learning_content_display_name")),R=(0,A.ref)(localStorage.getItem("proficiency")),n=(0,A.ref)(localStorage.getItem("helpmateLink")),e=(0,A.ref)(!1),i=(0,A.ref)(),L=(0,A.ref)(0),f=(0,A.ref)(""),r=(0,A.ref)(),B=(0,A.ref)(),t=(0,A.ref)(),u=(0,A.ref)(),N=(0,A.ref)(),X=(0,A.ref)(!1),s=(0,A.ref)(null),l=(0,A.ref)(),g=(0,A.ref)(),C=(0,A.ref)(),v=(0,A.ref)(!0),S=(0,A.ref)([]),h=(0,A.ref)(),k=(0,A.ref)(),P=(0,A.ref)(0),D=(0,A.ref)(),y=(0,A.ref)(!1),_=(0,A.ref)(),w=(0,A.ref)(!1),x=(0,A.ref)(),U=(0,A.ref)(),I=(0,A.ref)(),Q=(0,A.ref)(0),F=(0,A.ref)(100),H=(0,A.ref)(""),K=(0,A.ref)(!1),G=(0,A.ref)(localStorage.getItem("learning_path_id")),j=(0,A.ref)(localStorage.getItem("learning_content_id"));let V=null;const J=()=>{console.log("fetchMinimumWordLength is called"),"Beginner"===R.value&&(F.value=150),"Intermediate"===R.value&&(F.value=250),"Proficient"===R.value&&(F.value=350),"Expert"===R.value&&(F.value=350)},Y=(0,A.computed)((()=>{const M=s.value?.name?.split(".")?.pop()?.toLowerCase();return"doc"===M||"docx"===M||"txt"===M||"pdf"===M||"Mobile"===u.value})),Z=M=>{Q.value=M.split(" ").filter((M=>""!==M)).length,v.value=Q.value<F.value},$=async()=>{P.value+=1,console.log(`before ${g.value}`),g.value=null,v.value=!0,console.log(`after ${g.value}`)},MM=()=>X.value&&N.value&&S.value.length<4?(y.value=!0,k.value="Please confirm that you abide by the above statements",void setTimeout((()=>{k.value=null}),6e3)):X.value&&N.value||1===S.value.length?void(r.value?.taskDetails?.genAiAssistEnabled&&r.value?.genAiAssistDetails?.length>0?K.value=!0:bM("submit_task")):(y.value=!0,k.value="Please confirm that you abide by the above statements",void setTimeout((()=>{k.value=null}),6e3)),zM=async M=>{try{if(s.value=M.target.files[0],s.value){g.value=M.target.files[0].name;const z=M.target.files[0].size/1024/1024;s.value&&(v.value=!1),z>200&&(l.value="Uploaded filesize is greater than 200 MB",setTimeout((()=>{l.value=null}),6e3),v.value=!0)}}catch(z){if(console.log(z),y.value=!0,W.Z.isAxiosError(z)){const M=z;_.value=M.response?.data?.message}else _.value="Something went wrong, please contact helpmate.";w.value=!0}},bM=async M=>{try{if("ai_assist"!==M&&(y.value=!1),console.log("plagiarismcb",S),X.value&&N.value&&S.value.length<4)return y.value=!0,k.value="Please confirm that you will abide by the above statements",void setTimeout((()=>{k.value=null}),6e3);if((!X.value||!N.value)&&1!==S.value.length)return y.value=!0,k.value="Please confirm that you will abide by the above statements",void setTimeout((()=>{k.value=null}),6e3);if(g.value){if("ai_assist"===M&&r.value?.taskDetails?.genAiAssistMaxAttempts-r.value?.genAiAssistDetails?.length<=0)return;"ai_assist"===M&&(e.value=!0);const A={learner_submission:g.value.trim(),learner_task_id:b.value,skill:O.value,proficiency:c.value,linked_program_name:p.value,task_type:u.value,linked_task_id:z.value,assinged_reviewer_count:0};let o;if("Desktop"===u.value){const z=await(0,q.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:g.value,learner_task_id:b.value}),p=z.data;C.value=p.preSignedUrl;const O=await(0,q.sc)(C.value,s.value);if(200===O.status){if("ai_assist"===M)return void await OM({learner_submission:g.value,learner_task_id:b.value});o=await pM(A)}else y.value=!0,_.value="There is issue in the file upload, please contact with helpmate.",w.value=!0}else{if("ai_assist"===M)return void await OM({learner_submission:g.value.trim(),learner_task_id:b.value});o=await pM(A)}200===o.status?(console.log(o),"Please upload non empty file"===o.data.message?(H.value=`The submission does not meet the minimum task word limit of ${F.value} words. Please upload a valid submission.`,$(),setTimeout((()=>{H.value=""}),6e3),y.value=!0):m.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:A.learner_task_id}}),"Learner on hold"===o.data.message&&(console.log("learner on hold submit task"),G.value&&j.value?m.Z.push({path:"/solidify",query:{skill_id:O.value,proficiency_id:c.value,program_id:p.value}}):m.Z.push({path:"/solidify",query:{learning_path_id:G.value,learning_content_id:j.value}}))):(y.value=!0,_.value="There is some issue while submitting learner submission, please contact with helpmate.",w.value=!0)}else"Mobile"===u.value?(y.value=!0,g.value||(l.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{l.value=null}),6e3))):"Desktop"===u.value&&(y.value=!0,console.log(`learnerSubmission.value ${g.value}`),g.value||(l.value="please select File",setTimeout((()=>{l.value=null}),6e3)))}catch(A){if(y.value=!0,console.log(`error ${A}`),W.Z.isAxiosError(A)){const M=A;_.value=M.response?.data?.message}else _.value="There is some issue while submitting learner submission, please contact with helpmate.";w.value=!0}},pM=async M=>{let z=M;r.value?.taskDetails?.genAiAssistEnabled&&r.value?.genAiAssistDetails?.length>0&&(z={...M,genAiAssistLearnerFeedbackRating:L.value?.toString(),genAiAssistLearnerFeedbackComment:f.value});const b=await(0,q.rC)("/v1/uploadLearnerSubmission",z);return b},OM=async({learner_submission:M,learner_task_id:z})=>{if(Y.value){i.value=null;try{const b=await(0,q.t$)("/v1/uploadLearnerSubmission?submission_type=invoke_gen_ai_assist",{learner_submission:M,learner_task_id:z});200===b.status?V=setInterval((async()=>{try{const M=await(0,q.JV)("/v1/uploadLearnerSubmission?submission_type=fetch_gen_ai_assist",{learner_task_id:z,prompt_execution_id:b?.data?.data?.prompt_execution_id});if(Object.keys(M?.data?.data?.gen_ai_assist)?.length){clearInterval(V),i.value=M?.data?.data?.gen_ai_assist,e.value=!1;const z=E().tz.guess(),b=await(0,o.zn)("/learner/journey/stat",{learning_path_id:G.value,learning_content_id:j.value,timezone:z,skill:O.value,proficiency:c.value,program_id:p.value});r.value=b.data}}catch(M){console.error("Polling error:",M.message),e.value=!1,V&&clearInterval(V)}}),2e3):b.data.message&&(console.log("Message =>",b),e.value=!1,V&&clearInterval(V))}catch(b){e.value=!1,V&&clearInterval(V)}}},AM=async()=>{try{y.value=!1,console.log("Learner Status",D.value),"Registered"!==D.value?(y.value=!0,console.log(`inside if ${D.value}`),_.value="Learner Status is not registered.",w.value=!0):(console.log("focus here",G.value),G.value&&j.value?m.Z.push({name:"SolidifyLearnerSelectTask",query:{learning_path_id:G.value,learning_content_id:j.value}}):m.Z.push({name:"SolidifyLearnerSelectTask",query:{skill_id:O.value,proficiency_id:c.value,program_id:p.value}}))}catch(M){if(y.value=!0,W.Z.isAxiosError(M)){const z=M;_.value=z.response?.data?.message}else _.value="There is an issue with the switching, please contact with helpmate.";w.value=!0}},cM=async()=>{try{if(y.value=!1,"Registered"!==D.value)y.value=!0,_.value="Learner Status is not registered.",w.value=!0;else{const M=await(0,q.ie)("/v1/restartLearnerJourney",b.value);console.log("restartLearnerJourney",M);const z='your task was removed successfully, you can restart journey again from <a href="https://genome.genpact.com/#Myplan" target="_blank" class="text-background-secondary"><strong>MyPlan</strong></a>';M?(localStorage.setItem("message",z),m.Z.push({name:"SolidifyLearnerStatus",query:{isPerformReviewVisible:"no",isProxyReview:"no",showChevron:"no"}})):(y.value=!0,_.value="There is an issue in the restart Journey, please contact helpmate.",w.value=!0)}}catch(M){if(y.value=!0,console.log(M),W.Z.isAxiosError(M)){const z=M;_.value=z.response?.data?.message}else _.value="There is an issue in the restart Journey, please contact with helpmate.";w.value=!0}},qM=M=>{y.value=!1,console.log(`task data ${JSON.stringify(M)}`);const b=M;y.value=!0,b?(z.value=b.task_id,u.value=b.task_type,B.value=b.task_name,t.value=b.description,O.value=b.skill,c.value=b.proficiency,N.value=!0===b.checkForPlagiarism):(_.value="There is an issue to fetch task, please contact helpmate.",w.value=!0)};return(0,A.onBeforeMount)((async()=>{try{y.value=!1,x.value=localStorage.getItem("programName"),I.value=localStorage.getItem("reviewerAssignmentStrategy"),U.value=localStorage.getItem("taskAssignmentStrategy");const M=E().tz.guess(),z=await(0,o.zn)("/learner/journey/stat",{learning_path_id:G.value,learning_content_id:j.value,timezone:M,skill:O.value,proficiency:c.value,program_id:p.value}),A=z.data;r.value=z.data,qM(A.taskDetails),"infinity"===x.value&&J(),X.value=!0===A.program_details.plagiarism_enabled,y.value=!0,A.learnerData&&(A.learnerData.technical_hold&&(console.log("learner on hold select task"),G.value&&j.value?m.Z.push({path:"/solidify",query:{learning_path_id:G.value,learning_content_id:j.value}}):m.Z.push({path:"/solidify",query:{skill_id:O.value,proficiency_id:c.value,program_id:p.value}})),console.log(`learner Data value ${JSON.stringify(A.learnerData)}`),console.log(`learnerStatus value ${A.learnerData.learner_status}`),D.value=A.learnerData.learner_status,b.value=A.learnerData.learner_task_id,"Need Reviewer and Need Reviewee"===A.learnerData.learner_status||"Need Reviewee"===A.learnerData.learner_status?m.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:A.learnerData.learner_task_id}}):"Need Reviewer"!==A.learnerData.learner_status&&"Passed"!==A.learnerData.learner_status||m.Z.push({name:"SolidifyLearnerDone",query:{learner_task_id:b.value}}))}catch(M){if(y.value=!0,W.Z.isAxiosError(M)){const z=M;_.value=z.response?.data?.message}else _.value="There is an issue to fetch existing record, please contact with helpmate.";w.value=!0}})),(0,A.onUnmounted)((()=>{V&&clearInterval(V)})),{stat:r,genAIPromptResp:i,loadingGenAIResponse:e,isEligibleForAIAssist:Y,learnerSubmissionFile:s,reviewPopupOpened:K,proceedToReview:MM,skillName:d,profName:R,skillId:O,proficiencyId:c,programId:p,taskType:u,taskName:B,taskDesc:t,userRating:L,userComment:f,submitSubmiision:bM,learnerSubmission:g,selectedFile:zM,fileValidationMsg:l,restart:cM,switchTask:AM,learnerTaskId:b,preSignedUrl:C,buttonDisable:v,validationError:h,clearFile:$,fileInputKey:P,helpmateLink:n,learnerStatus:D,renderReady:y,errorResponse:_,showErrorMessage:w,plagiarismcb:S,palgiarismErrorMsg:k,programName:x,taskAssignmentStrategy:U,reviewerAssignmentStrategy:I,checkForPlagiarismTaskLevel:N,checkForPlagiarismProgramLevel:X,checkQuestionLength:Z,questionWordCount:Q,submissionError:H,moment:T(),minimumWordLength:F,learning_path_id:G,learning_content_id:j,learning_content_display_name:a}}}),v=C,S=(0,L.Z)(v,p,O,!1,null,"10bd5095",null),h=S.exports},568:function(M,z,b){"use strict";b.d(z,{JV:function(){return d},ie:function(){return q},rC:function(){return o},sc:function(){return A},t$:function(){return W},ux:function(){return O},yW:function(){return c}});var p=b(7129);const O=async(M,z)=>{const b=await p.Z.post(M,z);return b},A=async(M,z)=>{let b;const p=await fetch(`${M}`,{method:"put",body:z});return b=p,b},c=async M=>{const z=await p.Z.get(`/task/${M}`);return z},q=async(M,z)=>{const b=await p.Z.post(M,{learner_task_id:z});return b},o=async(M,z)=>{const b=await p.Z.post(M,z);return b},W=async(M,z)=>{const b=await p.Z.post(M,z);return b},d=async(M,z)=>await p.Z.post(M,z)},4654:function(M,z,b){"use strict";b.d(z,{hZ:function(){return A},n2:function(){return O},zn:function(){return c}});var p=b(7129);const O=async(M,z)=>{const b=await p.Z.post(M,z);return b},A=async(M,z)=>{const b=await p.Z.post(M,z);return b},c=async(M,z)=>{const b=await p.Z.post(M,z);return b}},7881:function(M,z,b){var p=M.exports=b(8158);p.tz.load(b(1128))},8158:function(M,z,b){var p,O,A;b(7658),
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[612],{460:function(M,z,b){"use strict";b.d(z,{Z:function(){return d}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex"},[z("div",{staticClass:"w-full pt-16 px-32"},[z("div",{staticClass:"md:px-0 lg:px-0 text-center"},[z("div",{staticClass:"text-gray-500"},[z("div",{staticClass:"pt-2",domProps:{innerHTML:M._s(M.errorMsg)}})]),z("div",{staticClass:"pt-8"},[z("a",{attrs:{href:M.helpmateLink,target:"_blank"}},[z("img",{staticClass:"mx-auto",attrs:{src:b(3126)}})])])])])])},O=[],A=b(7203),c=(0,A.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(M){const z=(0,A.ref)(""),b=(0,A.ref)(localStorage.getItem("helpmateLink"));return(0,A.onBeforeMount)((async()=>{z.value=M.errorMessage})),{errorMsg:z,helpmateLink:b}}}),q=c,o=b(1001),W=(0,o.Z)(q,p,O,!1,null,null,null),d=W.exports},8235:function(M,z,b){"use strict";b.d(z,{Z:function(){return d}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"mt-4 lg:px-24 md:px-24 px-4 flex justify-between items-center w-full"},[z("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[M.learning_content_display_name?z("span",[M._v(" "+M._s(M.learning_content_display_name)+" ")]):z("span",["infinity"===M.program?z("span",[M._v(M._s(M.proficiency)+" - ")]):M._e(),M._v(M._s(M.skill))])]),z("div",{staticClass:"my-2"},[z("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[M._v("Hi, "+M._s(M.username))])])])},O=[],A=b(7203),c=(0,A.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""},learning_content_display_name:{type:String,default:""}},setup(){const M=(0,A.ref)("");return(0,A.onBeforeMount)((async()=>{const z=localStorage.getItem("userName")||"Learner";M.value=z.split(",").reverse().join(" ")})),{username:M}}}),q=c,o=b(1001),W=(0,o.Z)(q,p,O,!1,null,null,null),d=W.exports},9157:function(M,z,b){"use strict";b.r(z),b.d(z,{default:function(){return h}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[M.loadingGenAIResponse?z("AILoader",{attrs:{stat:M.stat},on:{closeAIPopup:()=>M.loadingGenAIResponse=!1}}):M._e(),M.reviewPopupOpened?z("StarRating",{attrs:{rating:M.userRating,comment:M.userComment},on:{"update:comment":z=>M.userComment=z,"update:rating":z=>M.userRating=z,submitRating:()=>{M.submitSubmiision("submit_task"),M.reviewPopupOpened=!1}}}):M._e(),M.renderReady?[M.showErrorMessage?M._e():[z("div",{staticClass:"flex"},[z("div",{staticClass:"w-full pt-12"},[z("Greetings",{attrs:{program:M.programId,proficiency:M.profName,skill:M.skillName,learning_content_display_name:M.learning_content_display_name}}),z("div",{staticClass:"flex md:flex mt-6 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0"},[z("div",{staticClass:"ul-nav w-full"},[z("ul",[z("li",{staticClass:"active"},[M._v("Home")]),z("li",{staticClass:"active"},[M._v("Task")]),z("li",{staticClass:"active"},[M._v("Submit")]),"Auto assign reviewer (reviewer task to be different)"===M.reviewerAssignmentStrategy||"Auto assign reviewer based on skill and proficiency"===M.reviewerAssignmentStrategy?z("li",[M._v("Peer Reviews")]):M._e(),z("li",[M._v("Under Review")]),z("li",[M._v("Done!")])])])]),z("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 mt-1 text-sm"},[z("div",{staticClass:"block mt-4 mb-4"},[M.submissionError?z("div",{staticClass:"w-full px-3 text-center mt-4 bg-[#ffad28] py-2 text-[#161916]"},[M._v(M._s(M.submissionError))]):M._e(),z("div",{staticClass:"text-gray-600"},[z("div",{staticClass:"p-4 mb-6 rounded-lg shadow border border-gray-200"},[z("p",{staticClass:"pt-2"},[z("strong",[M._v(M._s(M.taskName))])]),z("div",{staticClass:"mt-2 rich-text-formatter",domProps:{innerHTML:M._s(M.taskDesc)}})]),"Desktop"===M.taskType?z("div",{staticClass:"p-4 mb-6 rounded-lg shadow border border-gray-200"},["Desktop"===M.taskType?z("div",[M._m(0),z("p",{staticClass:"pt-1"},[M._v("Accepted Formats: Upload a single Word, Pdf, Excel, or PPT file with a minimum of "+M._s(M.minimumWordLength)+" words.")]),z("p",{staticClass:"pt-1"},[M._v("Max Size: 200MB")]),z("p",{staticClass:"pt-1"},[M._v("Language: English only")]),z("div",{staticClass:"flex items-center gap-2 pt-2",staticStyle:{"max-width":"250px"}},[z("input",{key:M.fileInputKey,staticStyle:{width:"80%"},attrs:{type:"file"},on:{change:M.selectedFile}}),M.learnerSubmission?z("x-icon",{attrs:{size:"1.5x"},on:{click:function(z){return M.clearFile()}}}):M._e()],1)]):M._e(),"Desktop"===M.taskType&&M.stat?.taskDetails?.genAiAssistEnabled?z("div",{staticClass:"text-xs italic mt-2 -mb-2"},[M._v("Note: To enable AI Assist for uploaded task, please upload only .doc/ .docx/ .txt/ .pdf file.")]):M._e()]):M._e(),"Mobile"===M.taskType?z("div",{staticClass:"mb-6"},[z("textarea",{directives:[{name:"model",rawName:"v-model",value:M.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal bg-white bg-clip-padding border border-[#ffad28] rounded-lg ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Type your text here..."},domProps:{value:M.learnerSubmission},on:{keyup:function(z){return M.checkQuestionLength(M.learnerSubmission)},input:function(z){z.target.composing||(M.learnerSubmission=z.target.value)}}}),z("div",[M.questionWordCount<M.minimumWordLength?z("div",[M._v("(Minimum "+M._s(M.minimumWordLength)+" words required. "+M._s(M.questionWordCount)+"/"+M._s(M.minimumWordLength)+")")]):M._e()])]):M._e(),M.fileValidationMsg?z("span",{staticClass:"text-[#ff4f59]"},[M._v(M._s(M.fileValidationMsg))]):M._e(),z("div",{staticClass:"p-4 mb-6 rounded-lg shadow border border-gray-200"},[M._m(1),M.checkForPlagiarismProgramLevel&&M.checkForPlagiarismTaskLevel?z("div",[z("ul",{staticClass:"pt-2 pl-8"},[z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check0",value:"check0"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check0")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check0",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-[#ff4f59] font-bold ml-1"},[M._v("*")]),M._v(" This is my original work, based on personal research and not copied from others (including colleagues or online sources). ")])])]),z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check1",value:"check1"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check1")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check1",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-[#ff4f59] font-bold ml-1"},[M._v("*")]),M._v(" No client or Genpact confidential information has been included. ")])])]),z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check2",value:"check2"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check2")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check2",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-[#ff4f59] font-bold ml-1"},[M._v("*")]),M._v(" I’ve checked for plagiarism using tools like "),M._m(2),M._v(" or "),M._m(3),M._v(" and found no significant matches. ")])])]),z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check3",value:"check3"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check3")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check3",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-[#ff4f59] font-bold ml-1"},[M._v("*")]),M._v("I understand that plagiarism is a violation of Genpact’s Code of Conduct and may result in unsuccessful completion of Solidify and/or disciplinary action. ")])])]),z("li",[M.palgiarismErrorMsg?z("span",{staticClass:"text-[#ff4f59]"},[M._v(M._s(M.palgiarismErrorMsg))]):M._e()])]),M._m(4)]):z("div",[z("ul",{staticClass:"pt-2 pl-8"},[z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check0",value:"check0"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check0")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check0",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-[#ff4f59] font-bold ml-1"},[M._v("*")]),M._v(" I hereby certify that this task submission does not contain/ use any client/ Genpact confidential materials.")])])])]),M.palgiarismErrorMsg?z("span",{staticClass:"text-[#ff4f59]"},[M._v(M._s(M.palgiarismErrorMsg))]):M._e()])]),M.genAIPromptResp||M.stat?.genAiAssistDetails?.[0]?.genai_evaluation_comment?z("div",{staticClass:"flex w-full h-auto p-4"},[z("div",{staticClass:"flex flex-col relative bg-gray-200 w-full lg:w-2/3 h-auto mx-4 mt-5 p-4 pl-12 rounded-xl"},[M.genAIPromptResp?z("div",[z("div",{staticClass:"font-medium text-black whitespace-pre-line"},[M._v(" "+M._s(M.genAIPromptResp?.genai_evaluation_comment)+" ")]),z("div",{staticClass:"font-medium text-black italic text-xs mt-2"},[M._v("Submitted On: "+M._s(M.moment(M.genAIPromptResp?.created_date).format("DD MMM YYYY | hh:mm a")))]),z("div",{staticClass:"font-medium text-black italic text-xs mt-0.5"},[M._v("Attempts Left: "+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length)+"/"+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts))])]):z("div",[z("div",{staticClass:"font-medium text-black whitespace-pre-line"},[M._v(" "+M._s(M.stat?.genAiAssistDetails?.[0]?.genai_evaluation_comment)+" ")]),z("div",{staticClass:"font-medium text-black italic text-xs mt-2"},[M._v("Submitted On: "+M._s(M.moment(M.stat?.genAiAssistDetails?.[0]?.created_date).format("DD MMM YYYY | hh:mm a")))]),z("div",{staticClass:"font-medium text-black italic text-xs mt-0.5"},[M._v("Attempts Left: "+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length)+"/"+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts))])]),M._m(5)])]):M._e()])]),z("div",{staticClass:"block text-center pt-2"},[M._m(6),z("div",{staticClass:"mb-4 text-center md:space-x-2 space-x-1"},["infinity"===M.programId?z("button",{staticClass:"inline-block mt-2 py-2 px-6 border border-[#ffad28] bg-white-500 text-[#161916] hover:bg-[#ffad28] rounded-full font-medium",on:{click:M.switchTask}},[M._v("Select Different Task")]):M._e(),M.stat?.taskDetails?.genAiAssistEnabled?z("button",{staticClass:"inline-block mt-2 py-2 px-6 text-white shadow-md disabled:!bg-gray-500 disabled:cursor-not-allowed disabled:text-white disabled!font-medium bg-background-secondary",attrs:{disabled:M.buttonDisable||!M.isEligibleForAIAssist||M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length<=0},on:{click:function(z){return M.submitSubmiision("ai_assist")}}},[M._v(" AI Assist ")]):M._e(),z("button",{staticClass:"inline-block mt-2 py-2 px-6 text-white shadow-md disabled:!bg-gray-500 disabled:cursor-not-allowed disabled:text-white disabled!font-medium bg-background-secondary",attrs:{disabled:M.buttonDisable},on:{click:function(z){return M.proceedToReview()}}},[M._v(" Submit Task ")]),"infinity"===M.programId?z("button",{staticClass:"inline-block mt-2 py-2 px-6 border border-[#ffad28] bg-white-500 text-[#161916] hover:bg-[#ffad28] rounded-full font-medium",on:{click:function(z){return M.restart()}}},[M._v("Restart Solidify")]):M._e()])])])],1)])],M.showErrorMessage?z("ErrorMessage",{attrs:{"error-message":M.errorResponse}}):M._e()]:M._e(),M.renderReady?M._e():z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[z("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:b(9756),alt:"Loader Gif"}}),z("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[M._v("Loading...")])])],2)},O=[function(){var M=this,z=M._self._c;M._self._setupProxy;return z("p",{staticClass:"pt-2"},[z("strong",[M._v("File Upload Instructions ")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("p",[z("strong",[M._v("By submitting, I certify that:")])])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("strong",[z("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[M._v("Plagiarismdetector")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("strong",[z("a",{staticClass:"underline",attrs:{href:"https://papersowl.com/free-plagiarism-checker",target:"_blank"}},[M._v("Papersowl")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"mt-7"},[z("p",[z("strong",[z("a",{staticClass:"underline",attrs:{href:"https://dcl.genpact.com/media/9d86bd58-3669-41c5-bc28-aad72efdf964",target:"blank"}},[M._v("Watch this short video")])]),M._v(" to learn why originality matters and how to avoid plagiarism. ")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"absolute -left-8 -bottom-3 bg-genome-v6 w-16 h-16 rounded-full flex items-center justify-center"},[z("img",{staticClass:"bg-center bg-contain bg-no-repeat block w-10",attrs:{src:b(8768)}})])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("p",{staticClass:"text-xl"},[z("em",[M._v("Do Not Click the Browser Back Button")])])])}],A=(b(7658),b(7203)),c=b(4856),q=b(568),o=b(4654),W=b(306),d=b(460),a=b(8235),R=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center fixed z-50 w-full h-full bg-opacity-70 bg-black -translate-x-1/2 left-1/2 -translate-y-1/2 top-1/2"},[z("div",{staticClass:"relative mx-auto px-8 py-4 bg-white text-background-secondary w-full md:w-1/2"},[z("button",{staticClass:"absolute right-0 mx-3",on:{click:function(z){return M.$emit("closeAIPopup")}}},[z("svg",{staticClass:"lucide-icon lucide lucide-x h-4 w-4",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[z("path",{attrs:{d:"M18 6 6 18"}}),z("path",{attrs:{d:"m6 6 12 12"}})])]),M._m(0),M._m(1),M._m(2),M._m(3),z("div",{staticClass:"flex justify-center items-center pt-2 font-bold"},[M._m(4),z("div",{staticClass:"text-background-tertiary text-xl pl-2 pr-2 italic"},[M._v(" Attempts Left: ["+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length-1)+"/"+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts)+"] - Make the most of it! ")]),M._m(5)]),z("div",{staticClass:"flex items-center justify-start py-4 space-y-4 text-left"},[z("img",{staticClass:"block h-6 w-6 mr-1",attrs:{src:b(9756),alt:"Loader Gif"}}),z("p",{staticClass:"text-gray-600 text-sm whitespace-pre-wrap text-left"},[M._v(" "+M._s(M.typedMessage)+" "),M.showCursor?z("span",{staticClass:"animate-blink"},[M._v("|")]):M._e()])])])])},n=[function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex justify-center"},[z("img",{attrs:{src:b(194)}})])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex justify-center items-center pt-2 font-bold"},[z("div",[z("img",{attrs:{src:b(5091)}})]),z("strong",{staticClass:"text-background-tertiary text-xl pl-2 pr-2"},[M._v("AI Assist Activated!")]),z("div",[z("img",{attrs:{src:b(6279)}})])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"pt-2 text-left"},[z("div",{staticClass:"pt-1"},[M._v("Your submission is being reviewed for "),z("strong",[M._v("relevance, clarity, and completeness")]),M._v(". Get instant insights to refine your work!")]),z("div",{staticClass:"pt-2 text-background-tertiary font-bold text-left"},[M._v("How It Works:")]),z("ul",{staticClass:"pt-1 list-disc pl-5"},[z("li",{staticClass:"pt-1 !text-background-secondary"},[M._v("AI provides feedback based on task objectives.")]),z("li",{staticClass:"pt-1 !text-background-secondary"},[M._v("You can "),z("strong",[M._v("revise your submission or proceed to peer review")])])])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"pt-2 italic text-left"},[z("div",[z("span",{staticClass:"text-background-tertiary"},[M._v("Disclaimer:")]),M._v(" AI-generated feedback is a guidance tool and may have its own biases.")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("img",{attrs:{src:b(3886)}})])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("img",{attrs:{src:b(3244)}})])}],e=(0,A.defineComponent)({name:"AILoader",props:{stat:{type:Object,required:!0}},setup(){const M=["Thinking deeply...","Analyzing context...","Generating insights...","Polishing response...","Finalizing thoughts..."],z=(0,A.ref)(""),b=(0,A.ref)(!0);let p=0,O=0;function c(){const b=M[p];O<b.length?(z.value+=b[O++],setTimeout(c,50)):setTimeout((()=>{p=(p+1)%M.length,O=0,z.value="",c()}),3e3)}return(0,A.onMounted)((()=>{c(),setInterval((()=>{b.value=!b.value}),500)})),{typedMessage:z,showCursor:b}}}),i=e,L=b(1001),f=(0,L.Z)(i,R,n,!1,null,"edd982f2",null),r=f.exports,B=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center fixed z-50 w-full h-full bg-opacity-70 bg-black -translate-x-1/2 left-1/2 -translate-y-1/2 top-1/2"},[z("div",{staticClass:"max-w-sm w-full mx-auto p-6 bg-white shadow-xl rounded-2xl"},[z("h2",{staticClass:"text-2xl font-semibold mb-4"},[M._v("Your Feedback")]),z("h3",{staticClass:"text-sm font-medium mb-4"},[M._v("Thank you for using AI Assist. Was the submission feedback helpful? Share your valuable input.")]),z("div",{staticClass:"flex items-center justify-center space-x-6 mb-4"},M._l(5,(function(b){return z("button",{key:b,staticClass:"focus:outline-none",on:{click:function(z){return M.setRating(b)},mouseenter:function(z){M.hoverRating=b},mouseleave:function(z){M.hoverRating=0}}},[z("svg",{class:[(M.hoverRating||M.internalRating)>=b?"text-[#FFAD28]":"text-gray-300","w-8 h-8 transition-colors"],attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}},[z("path",{attrs:{d:"M12 .587l3.668 7.568 8.332 1.151-6.064 5.943 1.464 8.251L12 18.896l-7.4 4.604 1.464-8.251L0 9.306l8.332-1.151z"}})])])})),0),z("p",{staticClass:"text-sm text-gray-500 pb-2"},[M._v("Rating: "+M._s(M.internalRating)+" / 5")]),z("textarea",{directives:[{name:"model",rawName:"v-model",value:M.internalComment,expression:"internalComment"}],staticClass:"w-full p-3 border rounded-xl focus:ring-2 focus:ring-background-secondary focus:outline-none resize-none",attrs:{rows:"4",placeholder:"Your Message..."},domProps:{value:M.internalComment},on:{input:function(z){z.target.composing||(M.internalComment=z.target.value)}}}),z("button",{staticClass:"inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 disabled:!bg-gray-500 disabled:cursor-not-allowed bg-background-secondary",attrs:{disabled:M.internalRating<=0},on:{click:M.submitReview}},[M._v(" Submit ")])])])},t=[],u=(0,A.defineComponent)({name:"StarRating",props:{rating:{type:Number,required:!0},comment:{type:String,required:!0}},emits:["update:rating","update:comment","submitRating"],setup(M,{emit:z}){const b=(0,A.ref)(M.rating),p=(0,A.ref)(M.comment),O=(0,A.ref)(0),c=M=>{b.value=M},q=()=>{z("submitRating")};return(0,A.watch)(b,(M=>{z("update:rating",M)})),(0,A.watch)(p,(M=>{z("update:comment",M)})),{internalRating:b,internalComment:p,hoverRating:O,setRating:c,submitReview:q}}}),N=u,X=(0,L.Z)(N,B,t,!1,null,null,null),s=X.exports,l=b(1602),T=b.n(l),m=b(4642),g=b(7881),E=b.n(g),C=(0,A.defineComponent)({name:"LearnerSubmitTask",components:{XIcon:c.b0D,ErrorMessage:d.Z,Greetings:a.Z,AILoader:r,StarRating:s},props:{query:{type:Object,default:()=>({})}},setup(M){const z=(0,A.ref)(),b=(0,A.ref)(M.query.learner_task_id),p=(0,A.ref)(M.query.program_id),O=(0,A.ref)(localStorage.getItem("skillId")),c=(0,A.ref)(localStorage.getItem("profId")),d=(0,A.ref)(localStorage.getItem("skillName")),a=(0,A.ref)(localStorage.getItem("learning_content_display_name")),R=(0,A.ref)(localStorage.getItem("proficiency")),n=(0,A.ref)(localStorage.getItem("helpmateLink")),e=(0,A.ref)(!1),i=(0,A.ref)(),L=(0,A.ref)(0),f=(0,A.ref)(""),r=(0,A.ref)(),B=(0,A.ref)(),t=(0,A.ref)(),u=(0,A.ref)(),N=(0,A.ref)(),X=(0,A.ref)(!1),s=(0,A.ref)(null),l=(0,A.ref)(),g=(0,A.ref)(),C=(0,A.ref)(),v=(0,A.ref)(!0),S=(0,A.ref)([]),h=(0,A.ref)(),k=(0,A.ref)(),P=(0,A.ref)(0),D=(0,A.ref)(),y=(0,A.ref)(!1),_=(0,A.ref)(),w=(0,A.ref)(!1),x=(0,A.ref)(),U=(0,A.ref)(),I=(0,A.ref)(),Q=(0,A.ref)(0),F=(0,A.ref)(100),H=(0,A.ref)(""),K=(0,A.ref)(!1),G=(0,A.ref)(localStorage.getItem("learning_path_id")),j=(0,A.ref)(localStorage.getItem("learning_content_id"));let V=null;const J=()=>{console.log("fetchMinimumWordLength is called"),"Beginner"===R.value&&(F.value=150),"Intermediate"===R.value&&(F.value=250),"Proficient"===R.value&&(F.value=350),"Expert"===R.value&&(F.value=350)},Y=(0,A.computed)((()=>{const M=s.value?.name?.split(".")?.pop()?.toLowerCase();return"doc"===M||"docx"===M||"txt"===M||"pdf"===M||"Mobile"===u.value})),Z=M=>{Q.value=M.split(" ").filter((M=>""!==M)).length,v.value=Q.value<F.value},$=async()=>{P.value+=1,console.log(`before ${g.value}`),g.value=null,v.value=!0,console.log(`after ${g.value}`)},MM=()=>X.value&&N.value&&S.value.length<4?(y.value=!0,k.value="Please confirm that you abide by the above statements",void setTimeout((()=>{k.value=null}),6e3)):X.value&&N.value||1===S.value.length?void(r.value?.taskDetails?.genAiAssistEnabled&&r.value?.genAiAssistDetails?.length>0?K.value=!0:bM("submit_task")):(y.value=!0,k.value="Please confirm that you abide by the above statements",void setTimeout((()=>{k.value=null}),6e3)),zM=async M=>{try{if(s.value=M.target.files[0],s.value){g.value=M.target.files[0].name;const z=M.target.files[0].size/1024/1024;s.value&&(v.value=!1),z>200&&(l.value="Uploaded filesize is greater than 200 MB",setTimeout((()=>{l.value=null}),6e3),v.value=!0)}}catch(z){if(console.log(z),y.value=!0,W.Z.isAxiosError(z)){const M=z;_.value=M.response?.data?.message}else _.value="Something went wrong, please contact helpmate.";w.value=!0}},bM=async M=>{try{if("ai_assist"!==M&&(y.value=!1),console.log("plagiarismcb",S),X.value&&N.value&&S.value.length<4)return y.value=!0,k.value="Please confirm that you will abide by the above statements",void setTimeout((()=>{k.value=null}),6e3);if((!X.value||!N.value)&&1!==S.value.length)return y.value=!0,k.value="Please confirm that you will abide by the above statements",void setTimeout((()=>{k.value=null}),6e3);if(g.value){if("ai_assist"===M&&r.value?.taskDetails?.genAiAssistMaxAttempts-r.value?.genAiAssistDetails?.length<=0)return;"ai_assist"===M&&(e.value=!0);const A={learner_submission:g.value.trim(),learner_task_id:b.value,skill:O.value,proficiency:c.value,linked_program_name:p.value,task_type:u.value,linked_task_id:z.value,assinged_reviewer_count:0};let o;if("Desktop"===u.value){const z=await(0,q.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:g.value,learner_task_id:b.value}),p=z.data;C.value=p.preSignedUrl;const O=await(0,q.sc)(C.value,s.value);if(200===O.status){if("ai_assist"===M)return void await OM({learner_submission:g.value,learner_task_id:b.value});o=await pM(A)}else y.value=!0,_.value="There is issue in the file upload, please contact with helpmate.",w.value=!0}else{if("ai_assist"===M)return void await OM({learner_submission:g.value.trim(),learner_task_id:b.value});o=await pM(A)}200===o.status?(console.log(o),"Please upload non empty file"===o.data.message?(H.value=`The submission does not meet the minimum task word limit of ${F.value} words. Please upload a valid submission.`,$(),setTimeout((()=>{H.value=""}),6e3),y.value=!0):m.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:A.learner_task_id}}),"Learner on hold"===o.data.message&&(console.log("learner on hold submit task"),G.value&&j.value?m.Z.push({path:"/solidify",query:{skill_id:O.value,proficiency_id:c.value,program_id:p.value}}):m.Z.push({path:"/solidify",query:{learning_path_id:G.value,learning_content_id:j.value}}))):(y.value=!0,_.value="There is some issue while submitting learner submission, please contact with helpmate.",w.value=!0)}else"Mobile"===u.value?(y.value=!0,g.value||(l.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{l.value=null}),6e3))):"Desktop"===u.value&&(y.value=!0,console.log(`learnerSubmission.value ${g.value}`),g.value||(l.value="please select File",setTimeout((()=>{l.value=null}),6e3)))}catch(A){if(y.value=!0,console.log(`error ${A}`),W.Z.isAxiosError(A)){const M=A;_.value=M.response?.data?.message}else _.value="There is some issue while submitting learner submission, please contact with helpmate.";w.value=!0}},pM=async M=>{let z=M;r.value?.taskDetails?.genAiAssistEnabled&&r.value?.genAiAssistDetails?.length>0&&(z={...M,genAiAssistLearnerFeedbackRating:L.value?.toString(),genAiAssistLearnerFeedbackComment:f.value});const b=await(0,q.rC)("/v1/uploadLearnerSubmission",z);return b},OM=async({learner_submission:M,learner_task_id:z})=>{if(Y.value){i.value=null;try{const b=await(0,q.t$)("/v1/uploadLearnerSubmission?submission_type=invoke_gen_ai_assist",{learner_submission:M,learner_task_id:z});200===b.status?V=setInterval((async()=>{try{const M=await(0,q.JV)("/v1/uploadLearnerSubmission?submission_type=fetch_gen_ai_assist",{learner_task_id:z,prompt_execution_id:b?.data?.data?.prompt_execution_id});if(Object.keys(M?.data?.data?.gen_ai_assist)?.length){clearInterval(V),i.value=M?.data?.data?.gen_ai_assist,e.value=!1;const z=E().tz.guess(),b=await(0,o.zn)("/learner/journey/stat",{learning_path_id:G.value,learning_content_id:j.value,timezone:z,skill:O.value,proficiency:c.value,program_id:p.value});r.value=b.data}}catch(M){console.error("Polling error:",M.message),e.value=!1,V&&clearInterval(V)}}),2e3):b.data.message&&(console.log("Message =>",b),e.value=!1,V&&clearInterval(V))}catch(b){e.value=!1,V&&clearInterval(V)}}},AM=async()=>{try{y.value=!1,console.log("Learner Status",D.value),"Registered"!==D.value?(y.value=!0,console.log(`inside if ${D.value}`),_.value="Learner Status is not registered.",w.value=!0):(console.log("focus here",G.value),G.value&&j.value?m.Z.push({name:"SolidifyLearnerSelectTask",query:{learning_path_id:G.value,learning_content_id:j.value}}):m.Z.push({name:"SolidifyLearnerSelectTask",query:{skill_id:O.value,proficiency_id:c.value,program_id:p.value}}))}catch(M){if(y.value=!0,W.Z.isAxiosError(M)){const z=M;_.value=z.response?.data?.message}else _.value="There is an issue with the switching, please contact with helpmate.";w.value=!0}},cM=async()=>{try{if(y.value=!1,"Registered"!==D.value)y.value=!0,_.value="Learner Status is not registered.",w.value=!0;else{const M=await(0,q.ie)("/v1/restartLearnerJourney",b.value);console.log("restartLearnerJourney",M);const z='your task was removed successfully, you can restart journey again from <a href="https://genome.genpact.com/#Myplan" target="_blank" class="text-background-secondary"><strong>MyPlan</strong></a>';M?(localStorage.setItem("message",z),m.Z.push({name:"SolidifyLearnerStatus",query:{isPerformReviewVisible:"no",isProxyReview:"no",showChevron:"no"}})):(y.value=!0,_.value="There is an issue in the restart Journey, please contact helpmate.",w.value=!0)}}catch(M){if(y.value=!0,console.log(M),W.Z.isAxiosError(M)){const z=M;_.value=z.response?.data?.message}else _.value="There is an issue in the restart Journey, please contact with helpmate.";w.value=!0}},qM=M=>{y.value=!1,console.log(`task data ${JSON.stringify(M)}`);const b=M;y.value=!0,b?(z.value=b.task_id,u.value=b.task_type,B.value=b.task_name,t.value=b.description,O.value=b.skill,c.value=b.proficiency,N.value=!0===b.checkForPlagiarism):(_.value="There is an issue to fetch task, please contact helpmate.",w.value=!0)};return(0,A.onBeforeMount)((async()=>{try{y.value=!1,x.value=localStorage.getItem("programName"),I.value=localStorage.getItem("reviewerAssignmentStrategy"),U.value=localStorage.getItem("taskAssignmentStrategy");const M=E().tz.guess(),z=await(0,o.zn)("/learner/journey/stat",{learning_path_id:G.value,learning_content_id:j.value,timezone:M,skill:O.value,proficiency:c.value,program_id:p.value}),A=z.data;r.value=z.data,qM(A.taskDetails),"infinity"===x.value&&J(),X.value=!0===A.program_details.plagiarism_enabled,y.value=!0,A.learnerData&&(A.learnerData.technical_hold&&(console.log("learner on hold select task"),G.value&&j.value?m.Z.push({path:"/solidify",query:{learning_path_id:G.value,learning_content_id:j.value}}):m.Z.push({path:"/solidify",query:{skill_id:O.value,proficiency_id:c.value,program_id:p.value}})),console.log(`learner Data value ${JSON.stringify(A.learnerData)}`),console.log(`learnerStatus value ${A.learnerData.learner_status}`),D.value=A.learnerData.learner_status,b.value=A.learnerData.learner_task_id,"Need Reviewer and Need Reviewee"===A.learnerData.learner_status||"Need Reviewee"===A.learnerData.learner_status?m.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:A.learnerData.learner_task_id}}):"Need Reviewer"!==A.learnerData.learner_status&&"Passed"!==A.learnerData.learner_status||m.Z.push({name:"SolidifyLearnerDone",query:{learner_task_id:b.value}}))}catch(M){if(y.value=!0,W.Z.isAxiosError(M)){const z=M;_.value=z.response?.data?.message}else _.value="There is an issue to fetch existing record, please contact with helpmate.";w.value=!0}})),(0,A.onUnmounted)((()=>{V&&clearInterval(V)})),{stat:r,genAIPromptResp:i,loadingGenAIResponse:e,isEligibleForAIAssist:Y,learnerSubmissionFile:s,reviewPopupOpened:K,proceedToReview:MM,skillName:d,profName:R,skillId:O,proficiencyId:c,programId:p,taskType:u,taskName:B,taskDesc:t,userRating:L,userComment:f,submitSubmiision:bM,learnerSubmission:g,selectedFile:zM,fileValidationMsg:l,restart:cM,switchTask:AM,learnerTaskId:b,preSignedUrl:C,buttonDisable:v,validationError:h,clearFile:$,fileInputKey:P,helpmateLink:n,learnerStatus:D,renderReady:y,errorResponse:_,showErrorMessage:w,plagiarismcb:S,palgiarismErrorMsg:k,programName:x,taskAssignmentStrategy:U,reviewerAssignmentStrategy:I,checkForPlagiarismTaskLevel:N,checkForPlagiarismProgramLevel:X,checkQuestionLength:Z,questionWordCount:Q,submissionError:H,moment:T(),minimumWordLength:F,learning_path_id:G,learning_content_id:j,learning_content_display_name:a}}}),v=C,S=(0,L.Z)(v,p,O,!1,null,"10bd5095",null),h=S.exports},568:function(M,z,b){"use strict";b.d(z,{JV:function(){return d},ie:function(){return q},rC:function(){return o},sc:function(){return A},t$:function(){return W},ux:function(){return O},yW:function(){return c}});var p=b(7129);const O=async(M,z)=>{const b=await p.Z.post(M,z);return b},A=async(M,z)=>{let b;const p=await fetch(`${M}`,{method:"put",body:z});return b=p,b},c=async M=>{const z=await p.Z.get(`/task/${M}`);return z},q=async(M,z)=>{const b=await p.Z.post(M,{learner_task_id:z});return b},o=async(M,z)=>{const b=await p.Z.post(M,z);return b},W=async(M,z)=>{const b=await p.Z.post(M,z);return b},d=async(M,z)=>await p.Z.post(M,z)},4654:function(M,z,b){"use strict";b.d(z,{hZ:function(){return A},n2:function(){return O},zn:function(){return c}});var p=b(7129);const O=async(M,z)=>{const b=await p.Z.post(M,z);return b},A=async(M,z)=>{const b=await p.Z.post(M,z);return b},c=async(M,z)=>{const b=await p.Z.post(M,z);return b}},7881:function(M,z,b){var p=M.exports=b(8158);p.tz.load(b(1128))},8158:function(M,z,b){var p,O,A;b(7658),
|
|
2
2
|
//! moment-timezone.js
|
|
3
3
|
//! version : 0.5.43
|
|
4
4
|
//! Copyright (c) JS Foundation and other contributors
|