@genpact/genome.mfe.solidify-app 3.0.0-beta.16 → 3.0.0-beta.18

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.
@@ -1,2 +1,2 @@
1
- "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[712],{4735: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(6540)}})])])])])])},i=[],r=s(7203),l=(0,r.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,r.ref)(""),s=(0,r.ref)(localStorage.getItem("helpmateLink"));return(0,r.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:s}}}),o=l,n=s(1001),c=(0,n.Z)(o,a,i,!1,null,null,null),u=c.exports},6629: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-6 pt-4 bg-white"},[e.reReviewButton?t("button",{staticClass:"px-4 py-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 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 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 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=[],r=(s(7658),s(4856)),l=s(3087),o={components:{XIcon:r.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=>{l.Z.push({path:"/solidify/rereview",query:{learner_task_id:e}})},t=e=>{window.location.href=e};return{applyReview:e,navigate:t}}},n=o,c=s(1001),u=(0,c.Z)(n,a,i,!1,null,null,null),d=u.exports},5316: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:"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full"},["infinity"===e.program?t("span",[e._v(e._s(e.proficiency)+" - ")]):e._e(),e._v(e._s(e.skill)+" ")]),t("div",{staticClass:"my-2 md:order-2 order-1 w-full"},[t("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},i=[],r=s(7203),l=(0,r.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""}},setup(){const e=(0,r.ref)("");return(0,r.onBeforeMount)((async()=>{const t=localStorage.getItem("userName")||"Learner";e.value=t.split(",").reverse().join(" ")})),{username:e}}}),o=l,n=s(1001),c=(0,n.Z)(o,a,i,!1,null,null,null),u=c.exports},1037: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}}),t("div",{staticClass:"flex md:flex mt-6 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:"mt-4 p-8 border border-gray-300 lg:mr-6 md:mr-6 mr-0"},["infinity"===e.programId?t("div",{},[t("p",[e._v("Welcome to the review stage of Solidify. You have been assigned the review of this submission as a Proxy reviewer. Each task review should take you around 15 minutes.")]),t("p",{staticClass:"pt-2"},[e._v("Remember, the learners are waiting on you to complete their own Solidify, so please complete the review as soon as possible.")]),e._m(0),e.isPlagiarismEnabled?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 "'),t("strong",[e._v("Learner task submission")]),e._v('".')]):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(),t("li",[e._v("Review the submission for plagiarism and tag as appropriately below.")]),e._m(1),t("li",[e._v(" Remember, plagiarism is an integrity violation. Citing works is perfectly acceptable, and you will need to use some judgment when marking a task as plagiarized. When you mark a task as plagiarized you are saying it was directly copied from other sources, the task is an integrity violation, and it will be failed. ")]),t("li",[e._v("If the task is not plagiarized, review and score the task by referring to the scoring rubric")]),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!")]),t("li",[e._v("Do the whole process again until you have finished all your reviews!")])]):e._e(),e.isPlagiarismEnabled?e._e():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 submission.")]):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(),t("li",[e._v("Review and score the task by referring to the scoring rubric.")]),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!")]),t("li",[e._v("Do the whole process again until you have finished all your reviews!")])])]):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. Each task review should take you around "),t("strong",[e._v("15 minutes.")])]),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(2),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-8"},[t("p",[t("strong",[e._v("Task Name")]),e._v(": "+e._s(e.revieweeDetails.task_details.task_name)+" ")]),e._m(3),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-4 bg-blue-900 text-white shadow-md hover:bg-blue-900 focus:outline-none focus:ring-2 focus:ring-blue-900 focus:ring-opacity-75",on:{click:e.learnerSubmissionClicked}},[e._v(" Download Learner Task Submission ")])]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("div",[e._m(4),t("p",[e._v(e._s(e.revieweeDetails.learner_submission))])]):e._e(),t("div",{staticClass:"mt-8"},["infinity"===e.programId?t("p",[e._v("Please do not include any self-identifying information.")]):e._e(),e.isPlagiarismEnabled?t("div",{staticClass:"border border-background-secondary p-4 mt-2"},[e._m(5),e._m(6),t("p",{staticClass:"pt-2"},[e._v(" Did you find the submission plagiarised? "),t("strong",[e._v("("),e.isPlagCheckMandatory?t("span",[e._v(" Mandatory ")]):t("span",[e._v(" Optional ")]),e._v(")")])]),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 r=!0,l=e._i(s,r);a.checked?l<0&&(e.plagiarismCheckOne=s.concat([r])):l>-1&&(e.plagiarismCheckOne=s.slice(0,l).concat(s.slice(l+1)))}else e.plagiarismCheckOne=i},function(t){return e.checkPlagiarised(t,!0)}],click:e.checkOne}}),t("label",{attrs:{for:"plagriarism_check_yes"}},[e._v("Yes")])]),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 r=!1,l=e._i(s,r);a.checked?l<0&&(e.plagiarismCheckOne=s.concat([r])):l>-1&&(e.plagiarismCheckOne=s.slice(0,l).concat(s.slice(l+1)))}else e.plagiarismCheckOne=i},function(t){return e.checkPlagiarised(t,!1)}],click:e.checkOne}}),t("label",{attrs:{for:"plagriarism_check_no"}},[e._v("No")])])])]),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":""},[t("p",{staticClass:"w-3/4"},[e._v("If you found the submission significantly plagiarised,")]),t("p",{staticClass:"w-3/4"},[e._v("please upload a screenshot of the evidence in .png format")]),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 r=!1,l=e._i(s,r);a.checked?l<0&&(e.accessRestrictionCheck=s.concat([r])):l>-1&&(e.accessRestrictionCheck=s.slice(0,l).concat(s.slice(l+1)))}else e.accessRestrictionCheck=i}}}),t("label",{attrs:{for:"access_restriction"}},[e._v("I am unable to upload proof as I am working in an access restricted environment.")])])])]):e._e()]):e._e(),!e.isPlagiarised||e.isPlagiarised&&!e.isPlagiarizedChecked?t("div",[e._m(7),t("ul",{staticClass:"mt-2 list-disc pl-8"},[t("li",[t("strong",[e._v("1")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.poor?e.likertScale.poor:"Poor"))]),e._v(") - Demonstrates no evidence of meeting the performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("2")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.below_average?e.likertScale.below_average:"Below Average"))]),e._v(") - Demonstrates little evidence of meeting the performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("3")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.average?e.likertScale.average:"Average"))]),e._v(") - Demonstrates some evidence of meeting the performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("4")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.above_average?e.likertScale.above_average:"Above Average"))]),e._v(") - Demonstrates evidence of meeting the required performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("5")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.excellent?e.likertScale.excellent:"Excellent"))]),e._v(") - Demonstrates evidence of meeting more than the performance expectation or learning goal related to this question. ")])])]):e._e()])]),!e.isPlagiarised||e.isPlagiarised&&!e.isPlagiarizedChecked?t("div",{staticClass:"mt-6 p-8 border border-gray-300 lg:mr-6 md:mr-6 mr-0"},e._l(e.revieweeDetails.task_details.task_questions,(function(s,a){return t("div",{key:a,staticClass:"mb-3"},[t("p",[t("b",[e._v("Checklist Question "+e._s(a+1))])]),t("div",{staticClass:"bg-gray-100 text-gray-700 py-1 px-2 text-sm border border-gray-300 mt-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:{type:"radio",disabled:!0===e.questionEnable,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:{type:"radio",disabled:!0===e.questionEnable,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:{type:"radio",disabled:!0===e.questionEnable,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:{type:"radio",disabled:!0===e.questionEnable,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:{type:"radio",disabled:!0===e.questionEnable,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:{type:"radio",disabled:!0===e.questionEnable,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:{type:"radio",disabled:!0===e.questionEnable,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"},[e._m(8),t("p",[e._v("Share what you liked, and what you thought could be improved. The ratings should be in line with your feedback.")]),t("div",{staticClass:"mt-1"},[e._m(9),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-solid border-gray-300 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{rows:"3",placeholder:""},domProps:{value:e.reviewerComment},on:{change:e.enableSubmitButton,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(10),e.isPlagiarised?t("button",{staticClass:"mt-2 inline-block py-2 px-4 border border-blue-900 text-white shadow-md",class:e.isButtonEnabled&&e.minReviewWordCount?"bg-background-secondary":"bg-gray-500 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-4 border border-blue-900 text-white shadow-md",class:e.isButtonEnabled&&e.minReviewWordCount?"bg-background-secondary":"bg-gray-500 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("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("li",[e._v(" If the result shows significantly plagiarized, take a screenshot and save it. Then click “yes” for if the task was plagiarized and upload the screenshot you just saved (upload must be in png format, maximum file size "),t("strong",[e._v("5MB")]),e._v("). If the submission is not plagiarised, mark no. ")])},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-2"},[t("strong",[e._v("Task Description")]),e._v(":")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("strong",[e._v("Learner's Submission:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("How to check for plagiarism - ")])])},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(" You may refer to popular internet sites like "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[e._v("plagiarismdetector.net")]),e._v(", "),t("a",{staticClass:"underline",attrs:{href:"https://check-plagiarism.com",target:"_blank"}},[e._v("check-plagiarism.com")]),e._v(", "),t("a",{staticClass:"underline",attrs:{href:"https://smallseotools.com/plagiarism-checker/",target:"_blank"}},[e._v("smallseotools.com")])]),e._v(" to check for possible plagiarism. ")]),t("li",[e._v("Paste the submitted text and click on scan for plagiarism.")]),t("li",[e._v("Results will show whether the submission is plagiarized or not.")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Scoring Rubric:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[e._v("Please enter your comments in the text box below. Comments are "),t("strong",[e._v("mandatory")]),e._v(" and will be sent to your peers, so remember to give constructive feedback!")])},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.")])])}],r=(s(7658),s(7203)),l=s(1602),o=s.n(l),n=s(306),c=s(4856),u=s(4735),d=s(3087),v=s(6629),m=s(5316),p=s(9609),g=(0,r.defineComponent)({name:"LearnerSubmitTask",props:{query:{type:Object,default:()=>({})}},components:{ErrorMessage:u.Z,GenericModal:v.Z,XIcon:c.b0D,Greetings:m.Z},setup(e){const t=(0,r.ref)(!1),s=(0,r.ref)(),a=(0,r.ref)(!1),i=(0,r.ref)(""),l=(0,r.ref)(),c=(0,r.ref)(),u=(0,r.ref)(),v=(0,r.ref)(),m=(0,r.ref)(),g=(0,r.ref)(localStorage.getItem("helpmateLink")),f=(0,r.ref)(),_=(0,r.ref)(!1),h=(0,r.ref)(),b=(0,r.ref)(),k=(0,r.ref)(!1),y=(0,r.ref)(),w=(0,r.ref)(!1),x=(0,r.ref)(!1),C=(0,r.ref)(),S=(0,r.ref)(),A=(0,r.ref)(),R=(0,r.ref)(),P=(0,r.ref)(),q=(0,r.ref)(!1),D=(0,r.ref)(),M=(0,r.ref)(),B=(0,r.ref)(),L=(0,r.ref)(),I=(0,r.ref)(),U=(0,r.ref)(!0),T=(0,r.ref)([]),E=(0,r.ref)(!1),Z=(0,r.ref)({}),O=' \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 and HR. </li>\n </ul>\n </div>',W=(0,r.ref)(!1),G=(0,r.ref)(0),N=(0,r.ref)(!1),z=(0,r.ref)(0),j=(0,r.ref)(!1),J='<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 and HR. </li>\n <li class="pt-2">Please confirm the review to proceed. </li>\n </ul>\n </div>',V=e=>{G.value=e.split(" ").filter((e=>""!==e)).length,W.value=G.value>=10},Y=()=>{T.value=[]},H=async()=>{z.value+=1,A.value=null};(0,r.onBeforeMount)((async()=>{try{localStorage.getItem("message")&&localStorage.removeItem("messafe"),console.log("Before Mount"),l.value=e.query.learner_task_id,h.value=!1;const t=await(0,p.Yo)(l.value),a=t.data;if(h.value=!0,console.log("reveiwTaskRes",a),a.message)console.log(`revieweeDetails.value.message ${a}`),h.value=!0,b.value=s.value.message,k.value=!0;else{s.value=a.data,Z.value=s.value.task_details.likertScale?s.value.task_details.likertScale:{},c.value=s.value.skill,u.value=s.value.proficiency,B.value=s.value.program_name,f.value=s.value.program_name,v.value=s.value.reviewer_hold_time_in_minutes/60,y.value=o()().utc().format(),console.log("Api revieweeTaskId",JSON.stringify(s));const e=!!s.value.is_plagiarism_enabled&&s.value.is_plagiarism_enabled;I.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}`),U.value=s.value.is_plag_check_mandatory,console.log(`isPlagCheckMandatory ${U.value}`)}}catch(t){if(h.value=!0,console.log(`Save Task Data ${t}`),n.Z.isAxiosError(t)){const e=t;b.value=e.response?.data?.message}else b.value="There is an issue while fetching learner to review, please contact with helpmate.";k.value=!0}}));const Q=()=>{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)} `)},X=async()=>{try{const e={file_name:s.value.learner_submission,task_id:s.value.reviewee_id};h.value=!1;const t=await(0,p.R1)("/v1/pretAuthUrlForDownload",e);m.value=t.data.preSignedUrl,await(0,p.ng)(m.value,s.value.learner_submission),h.value=!0,a.value=!0,Q()}catch(e){if(console.log("Error in downloading learner submission",e),h.value=!0,n.Z.isAxiosError(e)){const t=e;b.value=t.response?.data?.message}else b.value="There is an issue while donwloading learner submission, please contact helpmate.";k.value=!0}},F=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?(C.value="fileSize greater than 5 MB",setTimeout((()=>{C.value=null}),6e3)):(A.value=t,R.value=s)}catch(t){A.value=null,R.value=null,console.log(t)}},K=async()=>{try{if(h.value=!1,console.log(`inside submit click ${JSON.stringify(s.value)}`),console.log(`isPlagCheckMandatory ${U.value}`),console.log(`isPlagiarismEnabled ${x.value}`),console.log("type of isPlagiarised.value "+typeof D.value),x.value){if(console.log(`isPlagiarised.value ${D.value}`),D.value&&!N.value){if(!A.value)return h.value=!0,C.value="Please upload plagiarism evidence screenshot",void setTimeout((()=>{C.value=null}),6e3);if(M.value=R.value,h.value=!1,console.log("evidenceFileName value",M.value),!R.value.endsWith("png")&&!R.value.endsWith("PNG"))return h.value=!0,C.value="You can upload only png",void setTimeout((()=>{C.value=null}),6e3);P.value=await(0,p.aQ)(I.value,A.value),D.value=!0}if(void 0===D.value&&U.value)return h.value=!0,C.value="Please Select Plagiarism Checkbox",void setTimeout((()=>{C.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:y.value,is_plagiarised:D.value,plagiarism_evidence:M.value};console.log(`params ${JSON.stringify(e)}`);const t=await(0,p.eZ)("/learnerReview",e),a=t.data;h.value=!0,localStorage.setItem("message",a.message),d.Z.push({name:"SolidifyLearnerStatus",query:{isPerformReviewVisible:"no",isProxyReview:"yes",showChevron:"no"}})}catch(e){if(h.value=!0,console.log(`error peer review ${e}`),n.Z.isAxiosError(e)){const t=e;b.value=t.response?.data?.message}else b.value="There is an issue while submitting proxy review, please contact helpmate.";k.value=!0}},$=()=>{_.value=!1,j.value=!1,D.value=void 0,E.value=!1;for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";q.value=!1,w.value=!1,Q(),Y()},ee=()=>{_.value=!1},te=async(e,t)=>{if(E.value=e.target.checked,console.log(`isPlagiarizedChecked ${E.value}`),D.value=t,console.log("isPlagiarised",{isPlagiarised:D.value}),E.value&&t){q.value=!0,_.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";w.value=!0,await Q()}else if(!0===E.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="";q.value=!1,w.value=!1,await Q()}else{for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";q.value=!1,D.value=void 0,w.value=!1,await Q()}},se=async()=>{j.value=!0};return{revieweeDetails:s,isButtonEnabled:t,enableSubmitButton:Q,learnerSubmissionClicked:X,reviewerComment:i,submitReview:K,skill:c,proficiency:u,reviewerHoldTime:v,preSignedUrl:m,helpmateLink:g,modalVisible:_,modalMessage:O,renderReady:h,errorResponse:b,showErrorMessage:k,questionEnable:w,isPlagiarismEnabled:x,errorMessage:C,successMessage:S,plagiarismSubmissionFile:A,plagiarismSubmission:R,plagiarismUploadedStatus:P,showplagiarismUpload:q,selectedFile:F,isPlagiarised:D,evidenceFileName:M,checkPlagiarised:te,programName:B,ext:L,programId:f,plagUrlForUpload:I,isPlagCheckMandatory:U,plagiarismCheckOne:T,checkOne:Y,isPlagiarizedChecked:E,likertScale:Z,confirmPlagiarism:ee,cancelPlagiarism:$,checkQuestionLength:V,minReviewWordCount:W,questionWordCount:G,accessRestrictionCheck:N,clearFile:H,fileInputKey:z,modalVisible2:j,finalPlagWarningPopup:se,modalMessage2:J}}}),f=g,_=s(1001),h=(0,_.Z)(f,a,i,!1,null,"1aa826fe",null),b=h.exports},9609:function(e,t,s){s.d(t,{R1:function(){return i},Yo:function(){return l},aQ:function(){return c},eZ:function(){return o},ng:function(){return n},uZ:function(){return r}});var a=s(7129);const i=async(e,t)=>{const s=await a.Z.post(e,t);return s},r=async e=>{const t=await a.Z.get(e);return t},l=async e=>{const t=await a.Z.get(`learnerTaskToProxyReview/${e}`);return t},o=async(e,t)=>{const s=await a.Z.post(e,t);return s},n=async(e,t)=>{console.log(t),console.log(e);const s=await fetch(e),a=await s.blob(),i=URL.createObjectURL(a),r=document.createElement("a");r.setAttribute("download",t),r.href=i,document.body.appendChild(r),r.click(),document.body.removeChild(r),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}}},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"},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p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rjTsTI900VGTgdymO8PgkQpPzKRXpO9SoJSI2AWVSCfe65LfCHTquJF1FGa5Gc9/8c+EUAzNYQFMJxxQbbXjKcVaF5BEpSqHYu1RizrDuG4F9O/Xrc/FatZKPrjWJA4CJRsReVpbCyc/WseZWl/g5WI6mFthENkAczb5xYgY/F2BD9OjvcD1SRfDt+zSYbH+G5qNdV0xKZCwRZQ00P/kLxZTLMoH9Lz+nDJuOmlxg1heYZmtSgT3oG8SpqglPXbNZ/o+4RmWXJe0sk6dJBWaV+bICm2ayAptmsgKbZpoY2PtWYJaoGe9NAOx1AUxbbXzjY5XlaMbcjeMD+9I9nHdXHuLdT77iV59abQme+fEBVth709P35NHLY2At7V3cLKzkWo7Wagtxal45dQ9bGRl58j+Dx8Csmh6yAptWgv8CbZkYUSkpBpcAAAAASUVORK5CYII="}}]);
1
+ "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[712],{4735: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(6540)}})])])])])])},i=[],r=s(7203),l=(0,r.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,r.ref)(""),s=(0,r.ref)(localStorage.getItem("helpmateLink"));return(0,r.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:s}}}),o=l,n=s(1001),c=(0,n.Z)(o,a,i,!1,null,null,null),u=c.exports},6629: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-6 pt-4 bg-white"},[e.reReviewButton?t("button",{staticClass:"px-4 py-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 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 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 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=[],r=(s(7658),s(4856)),l=s(3158),o={components:{XIcon:r.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=>{l.Z.push({path:"/solidify/rereview",query:{learner_task_id:e}})},t=e=>{window.location.href=e};return{applyReview:e,navigate:t}}},n=o,c=s(1001),u=(0,c.Z)(n,a,i,!1,null,null,null),d=u.exports},5316: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:"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full"},["infinity"===e.program?t("span",[e._v(e._s(e.proficiency)+" - ")]):e._e(),e._v(e._s(e.skill)+" ")]),t("div",{staticClass:"my-2 md:order-2 order-1 w-full"},[t("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},i=[],r=s(7203),l=(0,r.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""}},setup(){const e=(0,r.ref)("");return(0,r.onBeforeMount)((async()=>{const t=localStorage.getItem("userName")||"Learner";e.value=t.split(",").reverse().join(" ")})),{username:e}}}),o=l,n=s(1001),c=(0,n.Z)(o,a,i,!1,null,null,null),u=c.exports},1037: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}}),t("div",{staticClass:"flex md:flex mt-6 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:"mt-4 p-8 border border-gray-300 lg:mr-6 md:mr-6 mr-0"},["infinity"===e.programId?t("div",{},[t("p",[e._v("Welcome to the review stage of Solidify. You have been assigned the review of this submission as a Proxy reviewer. Each task review should take you around 15 minutes.")]),t("p",{staticClass:"pt-2"},[e._v("Remember, the learners are waiting on you to complete their own Solidify, so please complete the review as soon as possible.")]),e._m(0),e.isPlagiarismEnabled?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 "'),t("strong",[e._v("Learner task submission")]),e._v('".')]):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(),t("li",[e._v("Review the submission for plagiarism and tag as appropriately below.")]),e._m(1),t("li",[e._v(" Remember, plagiarism is an integrity violation. Citing works is perfectly acceptable, and you will need to use some judgment when marking a task as plagiarized. When you mark a task as plagiarized you are saying it was directly copied from other sources, the task is an integrity violation, and it will be failed. ")]),t("li",[e._v("If the task is not plagiarized, review and score the task by referring to the scoring rubric")]),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!")]),t("li",[e._v("Do the whole process again until you have finished all your reviews!")])]):e._e(),e.isPlagiarismEnabled?e._e():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 submission.")]):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(),t("li",[e._v("Review and score the task by referring to the scoring rubric.")]),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!")]),t("li",[e._v("Do the whole process again until you have finished all your reviews!")])])]):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. Each task review should take you around "),t("strong",[e._v("15 minutes.")])]),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(2),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-8"},[t("p",[t("strong",[e._v("Task Name")]),e._v(": "+e._s(e.revieweeDetails.task_details.task_name)+" ")]),e._m(3),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-4 bg-blue-900 text-white shadow-md hover:bg-blue-900 focus:outline-none focus:ring-2 focus:ring-blue-900 focus:ring-opacity-75",on:{click:e.learnerSubmissionClicked}},[e._v(" Download Learner Task Submission ")])]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("div",[e._m(4),t("p",[e._v(e._s(e.revieweeDetails.learner_submission))])]):e._e(),t("div",{staticClass:"mt-8"},["infinity"===e.programId?t("p",[e._v("Please do not include any self-identifying information.")]):e._e(),e.isPlagiarismEnabled?t("div",{staticClass:"border border-background-secondary p-4 mt-2"},[e._m(5),e._m(6),t("p",{staticClass:"pt-2"},[e._v(" Did you find the submission plagiarised? "),t("strong",[e._v("("),e.isPlagCheckMandatory?t("span",[e._v(" Mandatory ")]):t("span",[e._v(" Optional ")]),e._v(")")])]),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 r=!0,l=e._i(s,r);a.checked?l<0&&(e.plagiarismCheckOne=s.concat([r])):l>-1&&(e.plagiarismCheckOne=s.slice(0,l).concat(s.slice(l+1)))}else e.plagiarismCheckOne=i},function(t){return e.checkPlagiarised(t,!0)}],click:e.checkOne}}),t("label",{attrs:{for:"plagriarism_check_yes"}},[e._v("Yes")])]),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 r=!1,l=e._i(s,r);a.checked?l<0&&(e.plagiarismCheckOne=s.concat([r])):l>-1&&(e.plagiarismCheckOne=s.slice(0,l).concat(s.slice(l+1)))}else e.plagiarismCheckOne=i},function(t){return e.checkPlagiarised(t,!1)}],click:e.checkOne}}),t("label",{attrs:{for:"plagriarism_check_no"}},[e._v("No")])])])]),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":""},[t("p",{staticClass:"w-3/4"},[e._v("If you found the submission significantly plagiarised,")]),t("p",{staticClass:"w-3/4"},[e._v("please upload a screenshot of the evidence in .png format")]),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 r=!1,l=e._i(s,r);a.checked?l<0&&(e.accessRestrictionCheck=s.concat([r])):l>-1&&(e.accessRestrictionCheck=s.slice(0,l).concat(s.slice(l+1)))}else e.accessRestrictionCheck=i}}}),t("label",{attrs:{for:"access_restriction"}},[e._v("I am unable to upload proof as I am working in an access restricted environment.")])])])]):e._e()]):e._e(),!e.isPlagiarised||e.isPlagiarised&&!e.isPlagiarizedChecked?t("div",[e._m(7),t("ul",{staticClass:"mt-2 list-disc pl-8"},[t("li",[t("strong",[e._v("1")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.poor?e.likertScale.poor:"Poor"))]),e._v(") - Demonstrates no evidence of meeting the performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("2")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.below_average?e.likertScale.below_average:"Below Average"))]),e._v(") - Demonstrates little evidence of meeting the performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("3")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.average?e.likertScale.average:"Average"))]),e._v(") - Demonstrates some evidence of meeting the performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("4")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.above_average?e.likertScale.above_average:"Above Average"))]),e._v(") - Demonstrates evidence of meeting the required performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("5")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.excellent?e.likertScale.excellent:"Excellent"))]),e._v(") - Demonstrates evidence of meeting more than the performance expectation or learning goal related to this question. ")])])]):e._e()])]),!e.isPlagiarised||e.isPlagiarised&&!e.isPlagiarizedChecked?t("div",{staticClass:"mt-6 p-8 border border-gray-300 lg:mr-6 md:mr-6 mr-0"},e._l(e.revieweeDetails.task_details.task_questions,(function(s,a){return t("div",{key:a,staticClass:"mb-3"},[t("p",[t("b",[e._v("Checklist Question "+e._s(a+1))])]),t("div",{staticClass:"bg-gray-100 text-gray-700 py-1 px-2 text-sm border border-gray-300 mt-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:{type:"radio",disabled:!0===e.questionEnable,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:{type:"radio",disabled:!0===e.questionEnable,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:{type:"radio",disabled:!0===e.questionEnable,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:{type:"radio",disabled:!0===e.questionEnable,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:{type:"radio",disabled:!0===e.questionEnable,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:{type:"radio",disabled:!0===e.questionEnable,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:{type:"radio",disabled:!0===e.questionEnable,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"},[e._m(8),t("p",[e._v("Share what you liked, and what you thought could be improved. The ratings should be in line with your feedback.")]),t("div",{staticClass:"mt-1"},[e._m(9),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-solid border-gray-300 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{rows:"3",placeholder:""},domProps:{value:e.reviewerComment},on:{change:e.enableSubmitButton,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(10),e.isPlagiarised?t("button",{staticClass:"mt-2 inline-block py-2 px-4 border border-blue-900 text-white shadow-md",class:e.isButtonEnabled&&e.minReviewWordCount?"bg-background-secondary":"bg-gray-500 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-4 border border-blue-900 text-white shadow-md",class:e.isButtonEnabled&&e.minReviewWordCount?"bg-background-secondary":"bg-gray-500 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("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("li",[e._v(" If the result shows significantly plagiarized, take a screenshot and save it. Then click “yes” for if the task was plagiarized and upload the screenshot you just saved (upload must be in png format, maximum file size "),t("strong",[e._v("5MB")]),e._v("). If the submission is not plagiarised, mark no. ")])},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-2"},[t("strong",[e._v("Task Description")]),e._v(":")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("strong",[e._v("Learner's Submission:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("How to check for plagiarism - ")])])},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(" You may refer to popular internet sites like "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[e._v("plagiarismdetector.net")]),e._v(", "),t("a",{staticClass:"underline",attrs:{href:"https://check-plagiarism.com",target:"_blank"}},[e._v("check-plagiarism.com")]),e._v(", "),t("a",{staticClass:"underline",attrs:{href:"https://smallseotools.com/plagiarism-checker/",target:"_blank"}},[e._v("smallseotools.com")])]),e._v(" to check for possible plagiarism. ")]),t("li",[e._v("Paste the submitted text and click on scan for plagiarism.")]),t("li",[e._v("Results will show whether the submission is plagiarized or not.")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Scoring Rubric:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[e._v("Please enter your comments in the text box below. Comments are "),t("strong",[e._v("mandatory")]),e._v(" and will be sent to your peers, so remember to give constructive feedback!")])},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.")])])}],r=(s(7658),s(7203)),l=s(1602),o=s.n(l),n=s(306),c=s(4856),u=s(4735),d=s(3158),v=s(6629),m=s(5316),p=s(9609),g=(0,r.defineComponent)({name:"LearnerSubmitTask",props:{query:{type:Object,default:()=>({})}},components:{ErrorMessage:u.Z,GenericModal:v.Z,XIcon:c.b0D,Greetings:m.Z},setup(e){const t=(0,r.ref)(!1),s=(0,r.ref)(),a=(0,r.ref)(!1),i=(0,r.ref)(""),l=(0,r.ref)(),c=(0,r.ref)(),u=(0,r.ref)(),v=(0,r.ref)(),m=(0,r.ref)(),g=(0,r.ref)(localStorage.getItem("helpmateLink")),f=(0,r.ref)(),_=(0,r.ref)(!1),h=(0,r.ref)(),b=(0,r.ref)(),k=(0,r.ref)(!1),y=(0,r.ref)(),w=(0,r.ref)(!1),x=(0,r.ref)(!1),C=(0,r.ref)(),S=(0,r.ref)(),A=(0,r.ref)(),R=(0,r.ref)(),P=(0,r.ref)(),q=(0,r.ref)(!1),D=(0,r.ref)(),M=(0,r.ref)(),B=(0,r.ref)(),L=(0,r.ref)(),I=(0,r.ref)(),U=(0,r.ref)(!0),T=(0,r.ref)([]),E=(0,r.ref)(!1),Z=(0,r.ref)({}),O=' \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 and HR. </li>\n </ul>\n </div>',W=(0,r.ref)(!1),G=(0,r.ref)(0),N=(0,r.ref)(!1),z=(0,r.ref)(0),j=(0,r.ref)(!1),J='<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 and HR. </li>\n <li class="pt-2">Please confirm the review to proceed. </li>\n </ul>\n </div>',V=e=>{G.value=e.split(" ").filter((e=>""!==e)).length,W.value=G.value>=10},Y=()=>{T.value=[]},H=async()=>{z.value+=1,A.value=null};(0,r.onBeforeMount)((async()=>{try{localStorage.getItem("message")&&localStorage.removeItem("messafe"),console.log("Before Mount"),l.value=e.query.learner_task_id,h.value=!1;const t=await(0,p.Yo)(l.value),a=t.data;if(h.value=!0,console.log("reveiwTaskRes",a),a.message)console.log(`revieweeDetails.value.message ${a}`),h.value=!0,b.value=s.value.message,k.value=!0;else{s.value=a.data,Z.value=s.value.task_details.likertScale?s.value.task_details.likertScale:{},c.value=s.value.skill,u.value=s.value.proficiency,B.value=s.value.program_name,f.value=s.value.program_name,v.value=s.value.reviewer_hold_time_in_minutes/60,y.value=o()().utc().format(),console.log("Api revieweeTaskId",JSON.stringify(s));const e=!!s.value.is_plagiarism_enabled&&s.value.is_plagiarism_enabled;I.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}`),U.value=s.value.is_plag_check_mandatory,console.log(`isPlagCheckMandatory ${U.value}`)}}catch(t){if(h.value=!0,console.log(`Save Task Data ${t}`),n.Z.isAxiosError(t)){const e=t;b.value=e.response?.data?.message}else b.value="There is an issue while fetching learner to review, please contact with helpmate.";k.value=!0}}));const Q=()=>{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)} `)},X=async()=>{try{const e={file_name:s.value.learner_submission,task_id:s.value.reviewee_id};h.value=!1;const t=await(0,p.R1)("/v1/pretAuthUrlForDownload",e);m.value=t.data.preSignedUrl,await(0,p.ng)(m.value,s.value.learner_submission),h.value=!0,a.value=!0,Q()}catch(e){if(console.log("Error in downloading learner submission",e),h.value=!0,n.Z.isAxiosError(e)){const t=e;b.value=t.response?.data?.message}else b.value="There is an issue while donwloading learner submission, please contact helpmate.";k.value=!0}},F=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?(C.value="fileSize greater than 5 MB",setTimeout((()=>{C.value=null}),6e3)):(A.value=t,R.value=s)}catch(t){A.value=null,R.value=null,console.log(t)}},K=async()=>{try{if(h.value=!1,console.log(`inside submit click ${JSON.stringify(s.value)}`),console.log(`isPlagCheckMandatory ${U.value}`),console.log(`isPlagiarismEnabled ${x.value}`),console.log("type of isPlagiarised.value "+typeof D.value),x.value){if(console.log(`isPlagiarised.value ${D.value}`),D.value&&!N.value){if(!A.value)return h.value=!0,C.value="Please upload plagiarism evidence screenshot",void setTimeout((()=>{C.value=null}),6e3);if(M.value=R.value,h.value=!1,console.log("evidenceFileName value",M.value),!R.value.endsWith("png")&&!R.value.endsWith("PNG"))return h.value=!0,C.value="You can upload only png",void setTimeout((()=>{C.value=null}),6e3);P.value=await(0,p.aQ)(I.value,A.value),D.value=!0}if(void 0===D.value&&U.value)return h.value=!0,C.value="Please Select Plagiarism Checkbox",void setTimeout((()=>{C.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:y.value,is_plagiarised:D.value,plagiarism_evidence:M.value};console.log(`params ${JSON.stringify(e)}`);const t=await(0,p.eZ)("/learnerReview",e),a=t.data;h.value=!0,localStorage.setItem("message",a.message),d.Z.push({name:"SolidifyLearnerStatus",query:{isPerformReviewVisible:"no",isProxyReview:"yes",showChevron:"no"}})}catch(e){if(h.value=!0,console.log(`error peer review ${e}`),n.Z.isAxiosError(e)){const t=e;b.value=t.response?.data?.message}else b.value="There is an issue while submitting proxy review, please contact helpmate.";k.value=!0}},$=()=>{_.value=!1,j.value=!1,D.value=void 0,E.value=!1;for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";q.value=!1,w.value=!1,Q(),Y()},ee=()=>{_.value=!1},te=async(e,t)=>{if(E.value=e.target.checked,console.log(`isPlagiarizedChecked ${E.value}`),D.value=t,console.log("isPlagiarised",{isPlagiarised:D.value}),E.value&&t){q.value=!0,_.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";w.value=!0,await Q()}else if(!0===E.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="";q.value=!1,w.value=!1,await Q()}else{for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";q.value=!1,D.value=void 0,w.value=!1,await Q()}},se=async()=>{j.value=!0};return{revieweeDetails:s,isButtonEnabled:t,enableSubmitButton:Q,learnerSubmissionClicked:X,reviewerComment:i,submitReview:K,skill:c,proficiency:u,reviewerHoldTime:v,preSignedUrl:m,helpmateLink:g,modalVisible:_,modalMessage:O,renderReady:h,errorResponse:b,showErrorMessage:k,questionEnable:w,isPlagiarismEnabled:x,errorMessage:C,successMessage:S,plagiarismSubmissionFile:A,plagiarismSubmission:R,plagiarismUploadedStatus:P,showplagiarismUpload:q,selectedFile:F,isPlagiarised:D,evidenceFileName:M,checkPlagiarised:te,programName:B,ext:L,programId:f,plagUrlForUpload:I,isPlagCheckMandatory:U,plagiarismCheckOne:T,checkOne:Y,isPlagiarizedChecked:E,likertScale:Z,confirmPlagiarism:ee,cancelPlagiarism:$,checkQuestionLength:V,minReviewWordCount:W,questionWordCount:G,accessRestrictionCheck:N,clearFile:H,fileInputKey:z,modalVisible2:j,finalPlagWarningPopup:se,modalMessage2:J}}}),f=g,_=s(1001),h=(0,_.Z)(f,a,i,!1,null,"1aa826fe",null),b=h.exports},9609:function(e,t,s){s.d(t,{R1:function(){return i},Yo:function(){return l},aQ:function(){return c},eZ:function(){return o},ng:function(){return n},uZ:function(){return r}});var a=s(7129);const i=async(e,t)=>{const s=await a.Z.post(e,t);return s},r=async e=>{const t=await a.Z.get(e);return t},l=async e=>{const t=await a.Z.get(`learnerTaskToProxyReview/${e}`);return t},o=async(e,t)=>{const s=await a.Z.post(e,t);return s},n=async(e,t)=>{console.log(t),console.log(e);const s=await fetch(e),a=await s.blob(),i=URL.createObjectURL(a),r=document.createElement("a");r.setAttribute("download",t),r.href=i,document.body.appendChild(r),r.click(),document.body.removeChild(r),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}}},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"},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p7aQ2JmqilXrhOh5RMXjEeqNsuUEUlEMx3ILLDQKrcsixyLmIwIrAInLIfcOnz7Ivuo6QdrIOLHG/M98/nuf3zLs772d/v+f3vO9KyBoYHKKts4dHHd1WW5D7+gdlQkY9Bub+dQo/XrqLV+fb8toCqy3BMxZsYYfysoA2IFMyAfb6hzvJLdXJI6ssQd19/fxg/mbaOnrkGRNgP/pgG7r6JnlklaVoxrxNVmDTSZMKrHd4GG1nHxVd5lnb2Uvn4LB81RdLkwosq6UL6XIuUrjGPF/OIazukXzVF0uTC6y123jDowufdngeUmg2UlTBs7HxHKYhrL5NvuqLpakHFnUbyScBySEQ6aJajE1iE9kKTB5NBbBIMT7mi/T3dUj7XZFCDJlmEh/PVmDyaLKBXS1CihDlcJ8L35+7mBnLPkVyvIh0RawxxEwhmXpcYD3oq3WU6WrQ1VRzu7CG2t5Bpro1Ge7toL2zg+7n9EWmHphh/9rrxFtL/8biz9fy2sbdSF7RxlJpCsnU4wDrLY7n1AlPDgWEEhQWyNaV+zlW3kKHHJ8q9ZUkciUticxOecJMWUaG2SmZs9oG77PnWLV3Hy8r9iNdSJkY2jPAmojdYMe+1Arq5ZnuzAhi6h5SV3OXjBuV1A8MM8IAXfpqcm9oqeoZpKuhirybhaiL71J8p5LCggLU1a1i3SBt9+9w62YRN0orKSmvIP92Edm1Y/j76WzWkV+g5XbZHQrKa2kUR5aexntkagpJ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QzoU1+1gZkk5qjgZ1TghfzNzAmtgy6vsEMMU6fu2uJjU3n9Rribi7nyHggUi2di0XNq3nPZ8sMjR5JMZG4+JzieiWYdpLU1Ee8OJ0Yg7Xs9MI8L2IW1A+dfV5HDl2mLnKdHTyuavzRhC2RxzZJn5wVY1tou0xT1MPLFpAuZiG5BsvQIgG40KigGeLtHYHUkgWUowAppLXjz0BeQZYPw2ZKbh/HUdkspq46Cg8b1bR3Ge8a22aeE6EJRF7TU1Ucjz+buG4JBdSM/CAmK3rmOkQx1X1daJUiURWGUvdQFsF/httmOWcTII6ncj4NBJrjTsTI900VGTgdymO8PgkQpPzKRXpO9SoJSI2AWVSCfe65LfCHTquJF1FGa5Gc9/8c+EUAzNYQFMJxxQbbXjKcVaF5BEpSqHYu1RizrDuG4F9O/Xrc/FatZKPrjWJA4CJRsReVpbCyc/WseZWl/g5WI6mFthENkAczb5xYgY/F2BD9OjvcD1SRfDt+zSYbH+G5qNdV0xKZCwRZQ00P/kLxZTLMoH9Lz+nDJuOmlxg1heYZmtSgT3oG8SpqglPXbNZ/o+4RmWXJe0sk6dJBWaV+bICm2ayAptmsgKbZpoY2PtWYJaoGe9NAOx1AUxbbXzjY5XlaMbcjeMD+9I9nHdXHuLdT77iV59abQme+fEBVth709P35NHLY2At7V3cLKzkWo7Wagtxal45dQ9bGRl58j+Dx8Csmh6yAptWgv8CbZkYUSkpBpcAAAAASUVORK5CYII="}}]);
2
2
  //# sourceMappingURL=solidify.umd.min.SolidifyLearnerProxyReview.js.map
@@ -1,2 +1,2 @@
1
- "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[723],{4735:function(e,t,a){a.d(t,{Z:function(){return u}});var s=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:a(6540)}})])])])])])},r=[],i=a(7203),l=(0,i.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,i.ref)(""),a=(0,i.ref)(localStorage.getItem("helpmateLink"));return(0,i.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:a}}}),n=l,o=a(1001),c=(0,o.Z)(n,s,r,!1,null,null,null),u=c.exports},5316:function(e,t,a){a.d(t,{Z:function(){return u}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full"},["infinity"===e.program?t("span",[e._v(e._s(e.proficiency)+" - ")]):e._e(),e._v(e._s(e.skill)+" ")]),t("div",{staticClass:"my-2 md:order-2 order-1 w-full"},[t("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},r=[],i=a(7203),l=(0,i.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""}},setup(){const e=(0,i.ref)("");return(0,i.onBeforeMount)((async()=>{const t=localStorage.getItem("userName")||"Learner";e.value=t.split(",").reverse().join(" ")})),{username:e}}}),n=l,o=a(1001),c=(0,o.Z)(n,s,r,!1,null,null,null),u=c.exports},3387:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=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():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[t("Greetings",{attrs:{program:e.programId,proficiency:e.profName,skill:e.skillName}}),t("div",{staticClass:"flex md:flex mt-6 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0 block"},[t("div",{staticClass:"ul-nav w-full"},[t("ul",[t("li",{staticClass:"active"},[e._v("Home")]),t("li",{staticClass:"active"},[e._v("Task")]),t("li",[e._v("Submit")]),"Auto assign reviewer (reviewer task to be different)"===e.reviewerAssignmentStrategy||"Auto assign reviewer based on skill and proficiency"===e.reviewerAssignmentStrategy?t("li",[e._v("Peer Reviews")]):e._e(),t("li",[e._v("Under Review")]),t("li",[e._v("Done!")])])])]),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:"block"},[t("div",{staticClass:"text-gray-500"},[e._m(0),"Learner to choose task"===e.taskAssignmentStrategy?t("ul",{staticClass:"list-disc pl-8 mt1"},[e._m(1),e._m(2),e._m(3),t("li",[e._v("If you select a mobile friendly task (if available), please type your submission manually, whereas, for a desktop task you can upload Word, PowerPoint, Excel, .txt, or video file.")]),e._m(4)]):e._e(),"System assigns random task to learner"===e.taskAssignmentStrategy||"System uses task sequence number to assign task"===e.taskAssignmentStrategy?t("ul",{staticClass:"list-disc pl-8 mt1"},[t("li",[e._v("Please complete the task below.")]),e._m(5),e._m(6)]):e._e()]),t("div",{staticClass:"lg:flex md:flex block mt-4"},[e.rows.length>0?t("div",{staticClass:"pt-6 lg:w-1/2 md:w-1/2 lg:pr-12 md:pr-12"},[t("table",{staticClass:"table-auto border-collapse border border-gray-400 w-full"},[e._m(7),t("tbody",e._l(e.rows,(function(a){return t("tr",{key:a.task_id,staticClass:"border border-gray-400 text-blue-900"},[t("td",{staticClass:"p-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.additional,expression:"additional"}],attrs:{type:"checkbox",id:"check_id"},domProps:{value:a.task_id,checked:Array.isArray(e.additional)?e._i(e.additional,a.task_id)>-1:e.additional},on:{change:[function(t){var s=e.additional,r=t.target,i=!!r.checked;if(Array.isArray(s)){var l=a.task_id,n=e._i(s,l);r.checked?n<0&&(e.additional=s.concat([l])):n>-1&&(e.additional=s.slice(0,n).concat(s.slice(n+1)))}else e.additional=i},function(t){return e.setTaskDesc(a.task_name,a.description,t)}],click:e.checkOne}}),e._v(" "+e._s(a.task_name))]),t("td",{staticClass:"p-2"},[e._v(e._s(a.task_type))])])})),0)])]):e._e(),t("div",{staticClass:"pt-6 text-gray-700 lg:w-1/2 md:w-1/2"},[t("p",{directives:[{name:"show",rawName:"v-show",value:e.taskName,expression:"taskName"}]},[t("strong",[e._v("Task Name:")]),e._v(" "+e._s(e.taskName))]),t("p",{directives:[{name:"show",rawName:"v-show",value:e.taskDesc,expression:"taskDesc"}],staticClass:"mt-2"},[t("strong",[e._v("Task Description:")])]),t("div",{staticClass:"mt-2 rich-text-formatter",domProps:{innerHTML:e._s(e.taskDesc)}})])])]),t("div",{staticClass:"block mt-8"},[t("div",{staticClass:"text-gray-600"},[t("p",[e._v("Please provide your Genpact email address (alternatively, your client or preferred email address) to receive updates about your progress.")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],staticClass:"appearance-none border lg:w-2/4 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:e.email},on:{input:function(t){t.target.composing||(e.email=t.target.value)}}}),e.emailValidationMsg?t("div",{staticClass:"ui basic label pointing red"},[t("span",{staticClass:"text-red-700"},[e._v(e._s(e.emailValidationMsg)+" ")])]):e._e()])]),t("div",{staticClass:"mt-6 mb-6 text-center"},[t("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:e.skillId,proficiency_id:e.profId,program_id:e.programId}}}},[e._v(" Back ")]),t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md",class:e.buttonDisable?"bg-gray-500 cursor-not-allowed":"bg-background-secondary",attrs:{disabled:e.buttonDisable},on:{click:function(t){return e.createLearner()}}},[e._v("Select Task")])],1)])],1)])],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:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-3"},[t("strong",[e._v("Instructions:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v("Choose "),t("strong",[e._v("a task")]),e._v(" from the list below. If you are operating in a client-restricted environment, kindly opt for a mobile friendly task (if available) from the provided list.")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v("Read the task description thoroughly and ensure that your task submission is in "),t("strong",[e._v("English exclusively")]),e._v(".")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v("Please refrain from including any "),t("strong",[e._v("confidential details, such as client names or logos")]),e._v(", in your submission.")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v("Kindly adhere to Genpact’s policies on "),t("strong",[e._v("Plagiarism")]),e._v(" and ensure that the task is submitted in your own words "),t("strong",[e._v("(No Copying-pasting from another sources)")]),e._v(".")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v("Read the task description and submit your task "),t("strong",[e._v("in English only")]),e._v(".")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v(" Be sure to adhere to Genpact’s Policy around plagiarism. That means do not use any confidential or client materials in your submission. The work you submit "),t("strong",[e._v("must be your own. Do not copy and paste.")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",[t("tr",{staticClass:"border border-gray-400 text-gray-500"},[t("th",{staticClass:"p-2 text-left"},[e._v("Learning Task")]),t("th",{staticClass:"p-2 text-left"},[e._v("Type of Task")])])])}],i=(a(7658),a(7203)),l=a(4654),n=a(306),o=a(4735),c=a(5316),u=a(3087),d=(0,i.defineComponent)({name:"LearnerSelectTask",props:{query:{type:Object,default:()=>({})}},components:{ErrorMessage:o.Z,Greetings:c.Z},setup(e){const t=(0,i.ref)(localStorage.getItem("skillName")),a=(0,i.ref)(localStorage.getItem("proficiency")),s=(0,i.ref)(e.query.skill_id),r=(0,i.ref)(e.query.proficiency_id),o=(0,i.ref)(e.query.program_id),c=(0,i.ref)(localStorage.getItem("helpmateLink")),d=(0,i.ref)(localStorage.getItem("email")),m=(0,i.ref)(localStorage.getItem("userName")),p=(0,i.ref)(),f=(0,i.ref)(),v=(0,i.ref)(),g=(0,i.ref)([]),y=(0,i.ref)(),_=(0,i.ref)(!0),k=(0,i.ref)(),h=(0,i.ref)(),x=(0,i.ref)(),b=(0,i.ref)(!1),A=(0,i.ref)(),w=(0,i.ref)(),C=(0,i.ref)(),S=()=>{g.value=[]},I=(e,t,a)=>{const s=a.target.checked;!0===s?(_.value=!1,f.value=e,v.value=t):(_.value=!0,f.value=null,v.value=null)},L=async e=>{const t=/^\w+([.-]?\w+)*@[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+$/,a=t.test(e);return a},Z=async()=>{try{if(d.value){const t=await L(d.value);if(!t)return y.value="Enter Valid Email",void setTimeout((()=>{y.value=null}),6e3);const a={email:d.value,linked_task_id:g.value[0],skill_id:e.query.skill_id,proficiency_id:e.query.proficiency_id,program_id:e.query.program_id};k.value&&Object.assign(a,{learner_task_id:k.value}),m.value&&Object.assign(a,{fullname:m.value}),h.value=!1;const s=await(0,l.hZ)("/v1/createLearnerActivities",a),r=s.data;!1===r.emailValidation?(y.value="Enter Valid Email",setTimeout((()=>{y.value=null}),6e3)):(console.log(r.message),u.Z.push({name:"SolidifyLearnerSubmitTask",query:{learner_task_id:r.learnerTaskId,program_id:a.program_id}}))}else y.value="Please enter an email address",setTimeout((()=>{y.value=null}),6e3)}catch(t){if(h.value=!0,n.Z.isAxiosError(t)){const e=t;x.value=e.response?.data?.message}else x.value="There is some issue in registering task for learner, please contact helpmate.";b.value=!0}},R=async e=>{try{h.value=!1;const t=await(0,l.n2)("/task/search",e),a=t.data.tasks;h.value=!0,0===a.length?(x.value="There is no task available for this skill and proficiency, please contact helpmate.",b.value=!0):p.value=a}catch(t){if(h.value=!0,n.Z.isAxiosError(t)){const e=t;x.value=e.response?.data?.message}else x.value="There is an issue to fetch task record, please contact helpmate.";b.value=!0}};return(0,i.onBeforeMount)((async()=>{try{A.value=localStorage.getItem("programName"),C.value=localStorage.getItem("reviewerAssignmentStrategy"),w.value=localStorage.getItem("taskAssignmentStrategy");const t={skill:e.query.skill_id,proficiency:e.query.proficiency_id,program_id:e.query.program_id};h.value=!1;const a=await(0,l.zn)("/learner/journey/stat",t),i=a.data;if(h.value=!0,i.is_learner_not_allowed)return void u.Z.push({path:"/solidify",query:{skill_id:s.value,proficiency_id:r.value,program_id:o.value}});i.learnerData&&(i.learnerData.technical_hold&&u.Z.push({path:"/solidify",query:{skill_id:s.value,proficiency_id:r.value,program_id:o.value}}),k.value=i.learnerData.learner_task_id,"Need Reviewer and Need Reviewee"===i.learnerData.learner_status||"Need Reviewee"===i.learnerData.learner_status?u.Z.push({path:"/solidify/peerReview",query:{learner_task_id:i.learnerData.learner_task_id}}):"Need Reviewer"===i.learnerData.learner_status||"Passed"===i.learnerData.learner_status?u.Z.push({path:"/solidify/done",query:{learner_task_id:k.value}}):"infinity"!==e.query.program_id&&"Registered"===i.learnerData.learner_status&&u.Z.push({path:"/solidify/submitTask",query:{learner_task_id:i.learnerData.learner_task_id,program_id:e.query.program_id}})),await R(t)}catch(t){if(h.value=!0,n.Z.isAxiosError(t)){const e=t;x.value=e.response?.data?.message}else x.value="There is an issue in fetching Data, please contact helpmate.";b.value=!0}})),{rows:p,skillName:t,profName:a,skillId:s,profId:r,programId:o,taskName:f,taskDesc:v,additional:g,email:d,emailValidationMsg:y,buttonDisable:_,setTaskDesc:I,checkOne:S,createLearner:Z,helpmateLink:c,learnerTaskId:k,renderReady:h,fullname:m,errorResponse:x,showErrorMessage:b,programName:A,taskAssignmentStrategy:w,reviewerAssignmentStrategy:C}}}),m=d,p=a(1001),f=(0,p.Z)(m,s,r,!1,null,"0f7d0eed",null),v=f.exports},4654:function(e,t,a){a.d(t,{hZ:function(){return i},n2:function(){return r},zn:function(){return l}});var s=a(7129);const r=async(e,t)=>{const a=await s.Z.post(e,t);return a},i=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a}},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p7aQ2JmqilXrhOh5RMXjEeqNsuUEUlEMx3ILLDQKrcsixyLmIwIrAInLIfcOnz7Ivuo6QdrIOLHG/M98/nuf3zLs772d/v+f3vO9KyBoYHKKts4dHHd1WW5D7+gdlQkY9Bub+dQo/XrqLV+fb8toCqy3BMxZsYYfysoA2IFMyAfb6hzvJLdXJI6ssQd19/fxg/mbaOnrkGRNgP/pgG7r6JnlklaVoxrxNVmDTSZMKrHd4GG1nHxVd5lnb2Uvn4LB81RdLkwosq6UL6XIuUrjGPF/OIazukXzVF0uTC6y123jDowufdngeUmg2UlTBs7HxHKYhrL5NvuqLpakHFnUbyScBySEQ6aJajE1iE9kKTB5NBbBIMT7mi/T3dUj7XZFCDJlmEh/PVmDyaLKBXS1CihDlcJ8L35+7mBnLPkVyvIh0RawxxEwhmXpcYD3oq3WU6WrQ1VRzu7CG2t5Bpro1Ge7toL2zg+7n9EWm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unksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[723],{4735:function(e,t,a){a.d(t,{Z:function(){return u}});var s=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:a(6540)}})])])])])])},r=[],i=a(7203),l=(0,i.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,i.ref)(""),a=(0,i.ref)(localStorage.getItem("helpmateLink"));return(0,i.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:a}}}),n=l,o=a(1001),c=(0,o.Z)(n,s,r,!1,null,null,null),u=c.exports},5316:function(e,t,a){a.d(t,{Z:function(){return u}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full"},["infinity"===e.program?t("span",[e._v(e._s(e.proficiency)+" - ")]):e._e(),e._v(e._s(e.skill)+" ")]),t("div",{staticClass:"my-2 md:order-2 order-1 w-full"},[t("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},r=[],i=a(7203),l=(0,i.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""}},setup(){const e=(0,i.ref)("");return(0,i.onBeforeMount)((async()=>{const t=localStorage.getItem("userName")||"Learner";e.value=t.split(",").reverse().join(" ")})),{username:e}}}),n=l,o=a(1001),c=(0,o.Z)(n,s,r,!1,null,null,null),u=c.exports},3387:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=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():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[t("Greetings",{attrs:{program:e.programId,proficiency:e.profName,skill:e.skillName}}),t("div",{staticClass:"flex md:flex mt-6 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0 block"},[t("div",{staticClass:"ul-nav w-full"},[t("ul",[t("li",{staticClass:"active"},[e._v("Home")]),t("li",{staticClass:"active"},[e._v("Task")]),t("li",[e._v("Submit")]),"Auto assign reviewer (reviewer task to be different)"===e.reviewerAssignmentStrategy||"Auto assign reviewer based on skill and proficiency"===e.reviewerAssignmentStrategy?t("li",[e._v("Peer Reviews")]):e._e(),t("li",[e._v("Under Review")]),t("li",[e._v("Done!")])])])]),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:"block"},[t("div",{staticClass:"text-gray-500"},[e._m(0),"Learner to choose task"===e.taskAssignmentStrategy?t("ul",{staticClass:"list-disc pl-8 mt1"},[e._m(1),e._m(2),e._m(3),t("li",[e._v("If you select a mobile friendly task (if available), please type your submission manually, whereas, for a desktop task you can upload Word, PowerPoint, Excel, .txt, or video file.")]),e._m(4)]):e._e(),"System assigns random task to learner"===e.taskAssignmentStrategy||"System uses task sequence number to assign task"===e.taskAssignmentStrategy?t("ul",{staticClass:"list-disc pl-8 mt1"},[t("li",[e._v("Please complete the task below.")]),e._m(5),e._m(6)]):e._e()]),t("div",{staticClass:"lg:flex md:flex block mt-4"},[e.rows.length>0?t("div",{staticClass:"pt-6 lg:w-1/2 md:w-1/2 lg:pr-12 md:pr-12"},[t("table",{staticClass:"table-auto border-collapse border border-gray-400 w-full"},[e._m(7),t("tbody",e._l(e.rows,(function(a){return t("tr",{key:a.task_id,staticClass:"border border-gray-400 text-blue-900"},[t("td",{staticClass:"p-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.additional,expression:"additional"}],attrs:{type:"checkbox",id:"check_id"},domProps:{value:a.task_id,checked:Array.isArray(e.additional)?e._i(e.additional,a.task_id)>-1:e.additional},on:{change:[function(t){var s=e.additional,r=t.target,i=!!r.checked;if(Array.isArray(s)){var l=a.task_id,n=e._i(s,l);r.checked?n<0&&(e.additional=s.concat([l])):n>-1&&(e.additional=s.slice(0,n).concat(s.slice(n+1)))}else e.additional=i},function(t){return e.setTaskDesc(a.task_name,a.description,t)}],click:e.checkOne}}),e._v(" "+e._s(a.task_name))]),t("td",{staticClass:"p-2"},[e._v(e._s(a.task_type))])])})),0)])]):e._e(),t("div",{staticClass:"pt-6 text-gray-700 lg:w-1/2 md:w-1/2"},[t("p",{directives:[{name:"show",rawName:"v-show",value:e.taskName,expression:"taskName"}]},[t("strong",[e._v("Task Name:")]),e._v(" "+e._s(e.taskName))]),t("p",{directives:[{name:"show",rawName:"v-show",value:e.taskDesc,expression:"taskDesc"}],staticClass:"mt-2"},[t("strong",[e._v("Task Description:")])]),t("div",{staticClass:"mt-2 rich-text-formatter",domProps:{innerHTML:e._s(e.taskDesc)}})])])]),t("div",{staticClass:"block mt-8"},[t("div",{staticClass:"text-gray-600"},[t("p",[e._v("Please provide your Genpact email address (alternatively, your client or preferred email address) to receive updates about your progress.")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],staticClass:"appearance-none border lg:w-2/4 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:e.email},on:{input:function(t){t.target.composing||(e.email=t.target.value)}}}),e.emailValidationMsg?t("div",{staticClass:"ui basic label pointing red"},[t("span",{staticClass:"text-red-700"},[e._v(e._s(e.emailValidationMsg)+" ")])]):e._e()])]),t("div",{staticClass:"mt-6 mb-6 text-center"},[t("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:e.skillId,proficiency_id:e.profId,program_id:e.programId}}}},[e._v(" Back ")]),t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md",class:e.buttonDisable?"bg-gray-500 cursor-not-allowed":"bg-background-secondary",attrs:{disabled:e.buttonDisable},on:{click:function(t){return e.createLearner()}}},[e._v("Select Task")])],1)])],1)])],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:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-3"},[t("strong",[e._v("Instructions:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v("Choose "),t("strong",[e._v("a task")]),e._v(" from the list below. If you are operating in a client-restricted environment, kindly opt for a mobile friendly task (if available) from the provided list.")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v("Read the task description thoroughly and ensure that your task submission is in "),t("strong",[e._v("English exclusively")]),e._v(".")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v("Please refrain from including any "),t("strong",[e._v("confidential details, such as client names or logos")]),e._v(", in your submission.")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v("Kindly adhere to Genpact’s policies on "),t("strong",[e._v("Plagiarism")]),e._v(" and ensure that the task is submitted in your own words "),t("strong",[e._v("(No Copying-pasting from another sources)")]),e._v(".")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v("Read the task description and submit your task "),t("strong",[e._v("in English only")]),e._v(".")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v(" Be sure to adhere to Genpact’s Policy around plagiarism. That means do not use any confidential or client materials in your submission. The work you submit "),t("strong",[e._v("must be your own. Do not copy and paste.")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",[t("tr",{staticClass:"border border-gray-400 text-gray-500"},[t("th",{staticClass:"p-2 text-left"},[e._v("Learning Task")]),t("th",{staticClass:"p-2 text-left"},[e._v("Type of Task")])])])}],i=(a(7658),a(7203)),l=a(4654),n=a(306),o=a(4735),c=a(5316),u=a(3158),d=(0,i.defineComponent)({name:"LearnerSelectTask",props:{query:{type:Object,default:()=>({})}},components:{ErrorMessage:o.Z,Greetings:c.Z},setup(e){const t=(0,i.ref)(localStorage.getItem("skillName")),a=(0,i.ref)(localStorage.getItem("proficiency")),s=(0,i.ref)(e.query.skill_id),r=(0,i.ref)(e.query.proficiency_id),o=(0,i.ref)(e.query.program_id),c=(0,i.ref)(localStorage.getItem("helpmateLink")),d=(0,i.ref)(localStorage.getItem("email")),m=(0,i.ref)(localStorage.getItem("userName")),p=(0,i.ref)(),f=(0,i.ref)(),v=(0,i.ref)(),g=(0,i.ref)([]),y=(0,i.ref)(),_=(0,i.ref)(!0),k=(0,i.ref)(),h=(0,i.ref)(),x=(0,i.ref)(),b=(0,i.ref)(!1),A=(0,i.ref)(),w=(0,i.ref)(),C=(0,i.ref)(),S=()=>{g.value=[]},I=(e,t,a)=>{const s=a.target.checked;!0===s?(_.value=!1,f.value=e,v.value=t):(_.value=!0,f.value=null,v.value=null)},L=async e=>{const t=/^\w+([.-]?\w+)*@[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+$/,a=t.test(e);return a},Z=async()=>{try{if(d.value){const t=await L(d.value);if(!t)return y.value="Enter Valid Email",void setTimeout((()=>{y.value=null}),6e3);const a={email:d.value,linked_task_id:g.value[0],skill_id:e.query.skill_id,proficiency_id:e.query.proficiency_id,program_id:e.query.program_id};k.value&&Object.assign(a,{learner_task_id:k.value}),m.value&&Object.assign(a,{fullname:m.value}),h.value=!1;const s=await(0,l.hZ)("/v1/createLearnerActivities",a),r=s.data;!1===r.emailValidation?(y.value="Enter Valid Email",setTimeout((()=>{y.value=null}),6e3)):(console.log(r.message),u.Z.push({name:"SolidifyLearnerSubmitTask",query:{learner_task_id:r.learnerTaskId,program_id:a.program_id}}))}else y.value="Please enter an email address",setTimeout((()=>{y.value=null}),6e3)}catch(t){if(h.value=!0,n.Z.isAxiosError(t)){const e=t;x.value=e.response?.data?.message}else x.value="There is some issue in registering task for learner, please contact helpmate.";b.value=!0}},R=async e=>{try{h.value=!1;const t=await(0,l.n2)("/task/search",e),a=t.data.tasks;h.value=!0,0===a.length?(x.value="There is no task available for this skill and proficiency, please contact helpmate.",b.value=!0):p.value=a}catch(t){if(h.value=!0,n.Z.isAxiosError(t)){const e=t;x.value=e.response?.data?.message}else x.value="There is an issue to fetch task record, please contact helpmate.";b.value=!0}};return(0,i.onBeforeMount)((async()=>{try{A.value=localStorage.getItem("programName"),C.value=localStorage.getItem("reviewerAssignmentStrategy"),w.value=localStorage.getItem("taskAssignmentStrategy");const t={skill:e.query.skill_id,proficiency:e.query.proficiency_id,program_id:e.query.program_id};h.value=!1;const a=await(0,l.zn)("/learner/journey/stat",t),i=a.data;if(h.value=!0,i.is_learner_not_allowed)return void u.Z.push({path:"/solidify",query:{skill_id:s.value,proficiency_id:r.value,program_id:o.value}});i.learnerData&&(i.learnerData.technical_hold&&u.Z.push({path:"/solidify",query:{skill_id:s.value,proficiency_id:r.value,program_id:o.value}}),k.value=i.learnerData.learner_task_id,"Need Reviewer and Need Reviewee"===i.learnerData.learner_status||"Need Reviewee"===i.learnerData.learner_status?u.Z.push({path:"/solidify/peerReview",query:{learner_task_id:i.learnerData.learner_task_id}}):"Need Reviewer"===i.learnerData.learner_status||"Passed"===i.learnerData.learner_status?u.Z.push({path:"/solidify/done",query:{learner_task_id:k.value}}):"infinity"!==e.query.program_id&&"Registered"===i.learnerData.learner_status&&u.Z.push({path:"/solidify/submitTask",query:{learner_task_id:i.learnerData.learner_task_id,program_id:e.query.program_id}})),await R(t)}catch(t){if(h.value=!0,n.Z.isAxiosError(t)){const e=t;x.value=e.response?.data?.message}else x.value="There is an issue in fetching Data, please contact helpmate.";b.value=!0}})),{rows:p,skillName:t,profName:a,skillId:s,profId:r,programId:o,taskName:f,taskDesc:v,additional:g,email:d,emailValidationMsg:y,buttonDisable:_,setTaskDesc:I,checkOne:S,createLearner:Z,helpmateLink:c,learnerTaskId:k,renderReady:h,fullname:m,errorResponse:x,showErrorMessage:b,programName:A,taskAssignmentStrategy:w,reviewerAssignmentStrategy:C}}}),m=d,p=a(1001),f=(0,p.Z)(m,s,r,!1,null,"0f7d0eed",null),v=f.exports},4654:function(e,t,a){a.d(t,{hZ:function(){return i},n2:function(){return r},zn:function(){return l}});var s=a(7129);const r=async(e,t)=>{const a=await s.Z.post(e,t);return a},i=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a}},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p7aQ2JmqilXrhOh5RMXjEeqNsuUEUlEMx3ILLDQKrcsixyLmIwIrAInLIfcOnz7Ivuo6QdrIOLHG/M98/nuf3zLs772d/v+f3vO9KyBoYHKKts4dHHd1WW5D7+gdlQkY9Bub+dQo/XrqLV+fb8toCqy3BMxZsYYfysoA2IFMyAfb6hzvJLdXJI6ssQd19/fxg/mbaOnrkGRNgP/pgG7r6JnlklaVoxrxNVmDTSZMKrHd4GG1nHxVd5lnb2Uvn4LB81RdLkwosq6UL6XIuUrjGP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+bICm2ayAptmsgKbZpoY2PtWYJaoGe9NAOx1AUxbbXzjY5XlaMbcjeMD+9I9nHdXHuLdT77iV59abQme+fEBVth709P35NHLY2At7V3cLKzkWo7Wagtxal45dQ9bGRl58j+Dx8Csmh6yAptWgv8CbZkYUSkpBpcAAAAASUVORK5CYII="}}]);
2
2
  //# sourceMappingURL=solidify.umd.min.SolidifyLearnerSelectTask.js.map
@@ -1,2 +1,2 @@
1
- "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[612],{4735:function(e,a,t){t.d(a,{Z:function(){return u}});var s=function(){var e=this,a=e._self._c;e._self._setupProxy;return a("div",{staticClass:"flex"},[a("div",{staticClass:"w-full pt-16 px-32"},[a("div",{staticClass:"md:px-0 lg:px-0 text-center"},[a("div",{staticClass:"text-gray-500"},[a("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),a("div",{staticClass:"pt-8"},[a("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[a("img",{staticClass:"mx-auto",attrs:{src:t(6540)}})])])])])])},i=[],r=t(7203),l=(0,r.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const a=(0,r.ref)(""),t=(0,r.ref)(localStorage.getItem("helpmateLink"));return(0,r.onBeforeMount)((async()=>{a.value=e.errorMessage})),{errorMsg:a,helpmateLink:t}}}),n=l,o=t(1001),c=(0,o.Z)(n,s,i,!1,null,null,null),u=c.exports},5316:function(e,a,t){t.d(a,{Z:function(){return u}});var s=function(){var e=this,a=e._self._c;e._self._setupProxy;return a("div",{staticClass:"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center"},[a("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full"},["infinity"===e.program?a("span",[e._v(e._s(e.proficiency)+" - ")]):e._e(),e._v(e._s(e.skill)+" ")]),a("div",{staticClass:"my-2 md:order-2 order-1 w-full"},[a("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},i=[],r=t(7203),l=(0,r.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""}},setup(){const e=(0,r.ref)("");return(0,r.onBeforeMount)((async()=>{const a=localStorage.getItem("userName")||"Learner";e.value=a.split(",").reverse().join(" ")})),{username:e}}}),n=l,o=t(1001),c=(0,o.Z)(n,s,i,!1,null,null,null),u=c.exports},3203:function(e,a,t){t.r(a),t.d(a,{default:function(){return h}});var s=function(){var e=this,a=e._self._c;e._self._setupProxy;return a("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[a("div",{staticClass:"flex"},[a("div",{staticClass:"w-full pt-12"},[a("Greetings",{attrs:{program:e.programId,proficiency:e.profName,skill:e.skillName}}),a("div",{staticClass:"flex md:flex mt-6 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0 block"},[a("div",{staticClass:"ul-nav w-full"},[a("ul",[a("li",{staticClass:"active"},[e._v("Home")]),a("li",{staticClass:"active"},[e._v("Task")]),a("li",{staticClass:"active"},[e._v("Submit")]),"Auto assign reviewer (reviewer task to be different)"===e.reviewerAssignmentStrategy||"Auto assign reviewer based on skill and proficiency"===e.reviewerAssignmentStrategy?a("li",[e._v("Peer Reviews")]):e._e(),a("li",[e._v("Under Review")]),a("li",[e._v("Done!")])])])]),a("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[a("div",{staticClass:"block mt-4 mb-4"},[e.submissionError?a("div",{staticClass:"w-full px-3 text-center mt-4 bg-red-400 py-2 text-white"},[e._v(" "+e._s(e.submissionError)+" ")]):e._e(),a("div",{staticClass:"text-gray-600"},[a("div",["infinity"!==e.programName&&"Desktop"===e.taskType?a("p",{staticClass:"pt-3"},[e._v(" Please submit your task by uploading it via the "),a("strong",[e._v("Choose File")]),e._v(" button. Once the task has been uploaded, click "),a("strong",[e._v("Submit")]),e._v(". ")]):e._e(),"infinity"===e.programName&&"Desktop"===e.taskType?a("p",{staticClass:"pt-3"},[e._v(" Please submit your task by uploading it via the "),a("strong",[e._v("Choose File")]),e._v(" button. After uploading, click "),a("strong",[e._v("Submit")]),e._v(" to proceed for peer reviews. ")]):e._e(),"Desktop"===e.taskType?a("p",{staticClass:"pt-2"},[e._v(" You can submit your submission, either in "),a("strong",[e._v("Word, PDF, PPT, Excel, .txt or video format")]),e._v(", with a maximum file size of "),a("strong",[e._v("200MB")]),e._v("(Large file may take more time to upload, so please be patient and avoid refreshing the page. ")]):e._e(),"Mobile"===e.taskType?a("p",{staticClass:"pt-3"},[e._v('Please submit your task by typing it into the text box provided (Word limit within 150-500 words) and then click "Submit" to proceed for peer reviews.')]):e._e(),e._m(0),e._m(1)]),a("div",{staticClass:"mt-4"},[a("p",{staticClass:"pt-2"},[a("strong",[e._v("Task Name: ")]),e._v(e._s(e.taskName))]),e._m(2),a("div",{staticClass:"mt-2 rich-text-formatter",domProps:{innerHTML:e._s(e.taskDesc)}})]),"Desktop"===e.taskType?a("div",{staticClass:"mt-4"},["infinity"===e.programId?a("p",[e._v("If you prefer not to proceed with this task, you can select a different one by clicking "),a("strong",[e._v("Select Different Task")]),e._v(".")]):e._e(),"infinity"!==e.programId?a("p",{staticClass:"pt-2"},[e._v("Upload the file you created for this then click "),a("strong",[e._v("Submit")]),e._v(" to continue.")]):e._e(),a("div",{staticClass:"flex items-center gap-2 pt-2",staticStyle:{"max-width":"250px"}},[a("input",{key:e.fileInputKey,staticStyle:{width:"80%"},attrs:{type:"file"},on:{change:e.selectedFile}}),e.learnerSubmission?a("x-icon",{attrs:{size:"1.5x"},on:{click:function(a){return e.clearFile()}}}):e._e()],1)]):e._e(),"Mobile"===e.taskType?a("div",{staticClass:"pt-12"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 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:"Your message"},domProps:{value:e.learnerSubmission},on:{keyup:function(a){return e.checkQuestionLength(e.learnerSubmission)},input:function(a){a.target.composing||(e.learnerSubmission=a.target.value)}}}),a("div",[e.questionWordCount<100?a("div",{staticClass:"text-red-700"},[e._v("(Minimum 100 words required. Current word count - "+e._s(e.questionWordCount)+")")]):e._e()])]):e._e(),e.fileValidationMsg?a("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e(),e._m(3),e.checkForPlagiarismProgramLevel&&e.checkForPlagiarismTaskLevel?a("div",[a("ul",{staticClass:"pt-2 pl-8"},[a("li",[a("div",{staticClass:"mt-3"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check0",value:"check0"},domProps:{checked:Array.isArray(e.plagiarismcb)?e._i(e.plagiarismcb,"check0")>-1:e.plagiarismcb},on:{change:function(a){var t=e.plagiarismcb,s=a.target,i=!!s.checked;if(Array.isArray(t)){var r="check0",l=e._i(t,r);s.checked?l<0&&(e.plagiarismcb=t.concat([r])):l>-1&&(e.plagiarismcb=t.slice(0,l).concat(t.slice(l+1)))}else e.plagiarismcb=i}}}),e._v(" "),a("span",{staticClass:"text-red-700 font-bold ml-1"},[e._v("*")]),e._v(" I hereby certify that the task submission is solely my own work, derived from personal study/research, and any content taken from the internet has been referenced. ")])])]),a("li",[a("div",{staticClass:"mt-3"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check1",value:"check1"},domProps:{checked:Array.isArray(e.plagiarismcb)?e._i(e.plagiarismcb,"check1")>-1:e.plagiarismcb},on:{change:function(a){var t=e.plagiarismcb,s=a.target,i=!!s.checked;if(Array.isArray(t)){var r="check1",l=e._i(t,r);s.checked?l<0&&(e.plagiarismcb=t.concat([r])):l>-1&&(e.plagiarismcb=t.slice(0,l).concat(t.slice(l+1)))}else e.plagiarismcb=i}}}),e._v(" "),a("span",{staticClass:"text-red-700 font-bold ml-1"},[e._v("*")]),e._v(" I hereby certify that the task submission does not incorporate any client/Genpact’s confidential materials. ")])])]),a("li",[a("div",{staticClass:"mt-3"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check2",value:"check2"},domProps:{checked:Array.isArray(e.plagiarismcb)?e._i(e.plagiarismcb,"check2")>-1:e.plagiarismcb},on:{change:function(a){var t=e.plagiarismcb,s=a.target,i=!!s.checked;if(Array.isArray(t)){var r="check2",l=e._i(t,r);s.checked?l<0&&(e.plagiarismcb=t.concat([r])):l>-1&&(e.plagiarismcb=t.slice(0,l).concat(t.slice(l+1)))}else e.plagiarismcb=i}}}),e._v(" "),a("span",{staticClass:"text-red-700 font-bold ml-1"},[e._v("*")]),e._v(" I've checked my submission on popular plagiarism detection sites like "),e._m(4),e._v(" and found no significant plagiarism")])])]),a("li",[a("div",{staticClass:"mt-3"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check3",value:"check3"},domProps:{checked:Array.isArray(e.plagiarismcb)?e._i(e.plagiarismcb,"check3")>-1:e.plagiarismcb},on:{change:function(a){var t=e.plagiarismcb,s=a.target,i=!!s.checked;if(Array.isArray(t)){var r="check3",l=e._i(t,r);s.checked?l<0&&(e.plagiarismcb=t.concat([r])):l>-1&&(e.plagiarismcb=t.slice(0,l).concat(t.slice(l+1)))}else e.plagiarismcb=i}}}),e._v(" "),a("span",{staticClass:"text-red-700 font-bold ml-1"},[e._v("*")]),e._v(" I affirm the originality of the submission and confirm that it has not been copied from anyone or anywhere, including the work submitted by my colleagues/team members. ")])])]),a("li",[a("div",{staticClass:"mt-3"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check4",value:"check4"},domProps:{checked:Array.isArray(e.plagiarismcb)?e._i(e.plagiarismcb,"check4")>-1:e.plagiarismcb},on:{change:function(a){var t=e.plagiarismcb,s=a.target,i=!!s.checked;if(Array.isArray(t)){var r="check4",l=e._i(t,r);s.checked?l<0&&(e.plagiarismcb=t.concat([r])):l>-1&&(e.plagiarismcb=t.slice(0,l).concat(t.slice(l+1)))}else e.plagiarismcb=i}}}),e._v(" "),a("span",{staticClass:"text-red-700 font-bold ml-1"},[e._v("*")]),e._v("I acknowledge that plagiarism constitutes an infringement on others' work and is a violation of the Genpact's code of conduct. Such actions may result in unsuccessful completion of Solidify and/or disciplinary action. ")])])]),a("li",[e.palgiarismErrorMsg?a("span",{staticClass:"text-red-700"},[e._v(e._s(e.palgiarismErrorMsg))]):e._e()])]),a("div",{staticClass:"mt-4"},[e._m(5),"infinity"===e.programId?a("p",{staticClass:"pt-2"},[e._v("If you prefer to start your Solidify journey afresh, click on "),a("strong",[e._v("Restart Solidify")]),e._v(".")]):e._e()])]):a("div",[a("ul",{staticClass:"pt-2 pl-8"},[a("li",[a("div",{staticClass:"mt-3"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check0",value:"check0"},domProps:{checked:Array.isArray(e.plagiarismcb)?e._i(e.plagiarismcb,"check0")>-1:e.plagiarismcb},on:{change:function(a){var t=e.plagiarismcb,s=a.target,i=!!s.checked;if(Array.isArray(t)){var r="check0",l=e._i(t,r);s.checked?l<0&&(e.plagiarismcb=t.concat([r])):l>-1&&(e.plagiarismcb=t.slice(0,l).concat(t.slice(l+1)))}else e.plagiarismcb=i}}}),e._v(" "),a("span",{staticClass:"text-red-700 font-bold ml-1"},[e._v("*")]),e._v(" I hereby certify that this task submission does not contain/ use any client/ Genpact confidential materials.")])])])]),e.palgiarismErrorMsg?a("span",{staticClass:"text-red-700"},[e._v(e._s(e.palgiarismErrorMsg))]):e._e()])])]),a("div",{staticClass:"block text-center pt-2"},[e._m(6),a("div",{staticClass:"mb-4 text-center"},["infinity"===e.programId?a("button",{staticClass:"inline-block mt-2 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",on:{click:e.switchTask}},[e._v(" Select Different Task ")]):e._e(),a("button",{staticClass:"ml-2 mr-2 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",class:e.buttonDisable?"bg-gray-500 cursor-not-allowed":"bg-background-secondary",attrs:{disabled:e.buttonDisable},on:{click:e.submitSubmiision}},[e._v(" Submit Task ")]),"infinity"===e.programId?a("button",{staticClass:"inline-block mt-2 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",on:{click:function(a){return e.restart()}}},[e._v(" Restart Solidify ")]):e._e()])])])],1)])],e.showErrorMessage?a("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():a("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[a("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:t(9756),alt:"Loader Gif"}}),a("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)},i=[function(){var e=this,a=e._self._c;e._self._setupProxy;return a("p",{staticClass:"pt-2"},[e._v(" Please ensure the submission reflects you individual learnings and kindly adhere to Genpact's policies on "),a("strong",[e._v("Plagiarism")]),e._v(", submitting the task in your own words"),a("strong",[e._v("(No Copying-pasting from other sources)")]),e._v(". ")])},function(){var e=this,a=e._self._c;e._self._setupProxy;return a("p",{staticClass:"pt-2"},[a("strong",[e._v("Note: ")]),e._v("The task submission must be in "),a("strong",[e._v("English exclusively")]),e._v(".")])},function(){var e=this,a=e._self._c;e._self._setupProxy;return a("p",{staticClass:"pt-2"},[a("strong",[e._v("Task Description:")])])},function(){var e=this,a=e._self._c;e._self._setupProxy;return a("div",{staticClass:"pt-2"},[a("p",{staticClass:"pt-2"},[e._v("When submitting a task, certify that your work adheres to the following guidelines:")])])},function(){var e=this,a=e._self._c;e._self._setupProxy;return a("strong",[a("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[e._v("plagiarismdetector.net")]),e._v(", "),a("a",{staticClass:"underline",attrs:{href:"https://check-plagiarism.com",target:"_blank"}},[e._v("check-plagiarism.com")])])},function(){var e=this,a=e._self._c;e._self._setupProxy;return a("p",[e._v(" Kindly watch this "),a("strong",[a("a",{staticClass:"underline",attrs:{href:"https://dcl.genpact.com/media/9df055db-c09e-4e2a-843e-a5b950003d89",target:"blank"}},[e._v("video")])]),e._v(" to understand the importance of originality in your submissions and to gain insights into the concept of plagiarism . ")])},function(){var e=this,a=e._self._c;e._self._setupProxy;return a("div",[a("p",{staticClass:"text-xl"},[a("em",[e._v("Please don't click the browser back button")])])])}],r=(t(7658),t(7203)),l=t(4856),n=t(568),o=t(4654),c=t(306),u=t(4735),m=t(5316),d=t(3087),p=(0,r.defineComponent)({name:"LearnerSubmitTask",components:{XIcon:l.b0D,ErrorMessage:u.Z,Greetings:m.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const a=(0,r.ref)(),t=(0,r.ref)(e.query.learner_task_id),s=(0,r.ref)(localStorage.getItem("programId")),i=(0,r.ref)(localStorage.getItem("skillId")),l=(0,r.ref)(localStorage.getItem("profId")),u=(0,r.ref)(localStorage.getItem("skillName")),m=(0,r.ref)(localStorage.getItem("proficiency")),p=(0,r.ref)(localStorage.getItem("helpmateLink")),v=(0,r.ref)(),g=(0,r.ref)(),f=(0,r.ref)(),h=(0,r.ref)(),b=(0,r.ref)(),y=(0,r.ref)(!1),k=(0,r.ref)(null),_=(0,r.ref)(),x=(0,r.ref)(),w=(0,r.ref)(),A=(0,r.ref)(!0),C=(0,r.ref)([]),S=(0,r.ref)(),I=(0,r.ref)(),L=(0,r.ref)(0),P=(0,r.ref)(),T=(0,r.ref)(!1),Z=(0,r.ref)(),M=(0,r.ref)(!1),R=(0,r.ref)(),D=(0,r.ref)(),U=(0,r.ref)(),E=(0,r.ref)(0),G=(0,r.ref)(""),N=e=>{E.value=e.split(" ").filter((e=>""!==e)).length,A.value=E.value<100},W=async()=>{L.value+=1,console.log(`before ${x.value}`),x.value=null,A.value=!0,console.log(`after ${x.value}`)},J=async e=>{try{if(k.value=e.target.files[0],k.value){x.value=e.target.files[0].name;const a=e.target.files[0].size/1024/1024;k.value&&(A.value=!1),a>200&&(_.value="Uploaded filesize is greater than 200 MB",setTimeout((()=>{_.value=null}),6e3),A.value=!0)}}catch(a){if(console.log(a),T.value=!0,c.Z.isAxiosError(a)){const e=a;Z.value=e.response?.data?.message}else Z.value="Something went wrong, please contact helpmate.";M.value=!0}},j=async()=>{try{if(T.value=!1,console.log("plagiarismcb",C),y.value&&b.value&&5!==C.value.length)return T.value=!0,I.value="Please confirm that you will abide by the above statements",void setTimeout((()=>{I.value=null}),6e3);if((!y.value||!b.value)&&1!==C.value.length)return T.value=!0,I.value="Please confirm that you will abide by the above statements",void setTimeout((()=>{I.value=null}),6e3);if(x.value){const e={learner_submission:x.value.trim(),learner_task_id:t.value,skill:i.value,proficiency:l.value,linked_program_name:s.value,task_type:f.value,linked_task_id:a.value,assinged_reviewer_count:0};let r;if("Desktop"===f.value){const a=await(0,n.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:x.value,learner_task_id:t.value}),s=a.data;w.value=s.preSignedUrl;const i=await(0,n.sc)(w.value,k.value);200===i.status?r=await(0,n.rC)("/v1/uploadLearnerSubmission",e):(T.value=!0,Z.value="There is issue in the file upload, please contact with helpmate.",M.value=!0)}else r=await(0,n.rC)("/v1/uploadLearnerSubmission",e);200===r.status?(console.log(r),"Please upload non empty file"===r.data.message?(G.value="The submission does not meet the minimum task word limit of 100 words. Please upload a valid submission.",W(),setTimeout((()=>{G.value=""}),6e3),T.value=!0):d.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:e.learner_task_id}}),"Learner on hold"===r.data.message&&(console.log("learner on hold submit task"),d.Z.push({path:"/solidify",query:{skill_id:i.value,proficiency_id:l.value,program_id:s.value}}))):(T.value=!0,Z.value="There is some issue while submitting learner submission, please contact with helpmate.",M.value=!0)}else"Mobile"===f.value?(T.value=!0,x.value||(_.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{_.value=null}),6e3))):"Desktop"===f.value&&(T.value=!0,console.log(`learnerSubmission.value ${x.value}`),x.value||(_.value="please select File",setTimeout((()=>{_.value=null}),6e3)))}catch(e){if(T.value=!0,console.log(`error ${e}`),c.Z.isAxiosError(e)){const a=e;Z.value=a.response?.data?.message}else Z.value="There is some issue while submitting learner submission, please contact with helpmate.";M.value=!0}},z=async()=>{try{T.value=!1,console.log("Learner Status",P.value),"Registered"!==P.value?(T.value=!0,console.log(`inside if ${P.value}`),Z.value="Learner Status is not registered.",M.value=!0):d.Z.push({name:"SolidifyLearnerSelectTask",query:{skill_id:i.value,proficiency_id:l.value,program_id:s.value}})}catch(e){if(T.value=!0,c.Z.isAxiosError(e)){const a=e;Z.value=a.response?.data?.message}else Z.value="There is an issue with the switching, please contact with helpmate.";M.value=!0}},F=async()=>{try{if(T.value=!1,"Registered"!==P.value)T.value=!0,Z.value="Learner Status is not registered.",M.value=!0;else{const e=await(0,n.ie)("/v1/restartLearnerJourney",t.value);console.log("restartLearnerJourney",e);const a='your task was removed successfully, you can restart journey again from <a href="https://genome.genpact.com/my-plan" target="_blank" class="text-background-secondary"><strong>MyPlan</strong></a>';e?(localStorage.setItem("message",a),d.Z.push({name:"SolidifyLearnerStatus",query:{isPerformReviewVisible:"no",isProxyReview:"no",showChevron:"no"}})):(T.value=!0,Z.value="There is an issue in the restart Journey, please contact helpmate.",M.value=!0)}}catch(e){if(T.value=!0,console.log(e),c.Z.isAxiosError(e)){const a=e;Z.value=a.response?.data?.message}else Z.value="There is an issue in the restart Journey, please contact with helpmate.";M.value=!0}},q=e=>{T.value=!1,console.log(`task data ${JSON.stringify(e)}`);const t=e;T.value=!0,t?(a.value=t.task_id,f.value=t.task_type,v.value=t.task_name,g.value=t.description,i.value=t.skill,l.value=t.proficiency,h.value=t.linked_task_group,b.value=!0===t.checkForPlagiarism):(Z.value="There is an issue to fetch task, please contact helpmate.",M.value=!0)};return(0,r.onBeforeMount)((async()=>{try{T.value=!1,R.value=localStorage.getItem("programName"),U.value=localStorage.getItem("reviewerAssignmentStrategy"),D.value=localStorage.getItem("taskAssignmentStrategy");const e=await(0,o.zn)("/learner/journey/stat",{skill:i.value,proficiency:l.value,program_id:s.value}),a=e.data;q(a.taskDetails),y.value=!0===a.program_details.plagiarism_enabled,T.value=!0,a.learnerData&&(a.learnerData.technical_hold&&(console.log("learner on hold select task"),d.Z.push({path:"/solidify",query:{skill_id:i.value,proficiency_id:l.value,program_id:s.value}})),console.log(`learner Data value ${JSON.stringify(a.learnerData)}`),console.log(`learnerStatus value ${a.learnerData.learner_status}`),P.value=a.learnerData.learner_status,t.value=a.learnerData.learner_task_id,"Need Reviewer and Need Reviewee"===a.learnerData.learner_status||"Need Reviewee"===a.learnerData.learner_status?d.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:a.learnerData.learner_task_id}}):"Need Reviewer"!==a.learnerData.learner_status&&"Passed"!==a.learnerData.learner_status||d.Z.push({name:"SolidifyLearnerDone",query:{learner_task_id:t.value}}))}catch(e){if(T.value=!0,c.Z.isAxiosError(e)){const a=e;Z.value=a.response?.data?.message}else Z.value="There is an issue to fetch existing record, please contact with helpmate.";M.value=!0}})),{learnerSubmissionFile:k,skillName:u,profName:m,skillId:i,proficiencyId:l,programId:s,taskType:f,taskName:v,taskDesc:g,linkedTask:h,submitSubmiision:j,learnerSubmission:x,selectedFile:J,fileValidationMsg:_,restart:F,switchTask:z,learnerTaskId:t,preSignedUrl:w,buttonDisable:A,validationError:S,clearFile:W,fileInputKey:L,helpmateLink:p,learnerStatus:P,renderReady:T,errorResponse:Z,showErrorMessage:M,plagiarismcb:C,palgiarismErrorMsg:I,programName:R,taskAssignmentStrategy:D,reviewerAssignmentStrategy:U,checkForPlagiarismTaskLevel:b,checkForPlagiarismProgramLevel:y,checkQuestionLength:N,questionWordCount:E,submissionError:G}}}),v=p,g=t(1001),f=(0,g.Z)(v,s,i,!1,null,"efeac406",null),h=f.exports},568:function(e,a,t){t.d(a,{ie:function(){return n},rC:function(){return o},sc:function(){return r},ux:function(){return i},yW:function(){return l}});var s=t(7129);const i=async(e,a)=>{const t=await s.Z.post(e,a);return t},r=async(e,a)=>{let t;const s=await fetch(`${e}`,{method:"put",body:a});return t=s,t},l=async e=>{const a=await s.Z.get(`/task/${e}`);return a},n=async(e,a)=>{const t=await s.Z.post(e,{learner_task_id:a});return t},o=async(e,a)=>{const t=await s.Z.post(e,a);return t}},4654:function(e,a,t){t.d(a,{hZ:function(){return r},n2:function(){return i},zn:function(){return l}});var s=t(7129);const i=async(e,a)=>{const t=await s.Z.post(e,a);return t},r=async(e,a)=>{const t=await s.Z.post(e,a);return t},l=async(e,a)=>{const t=await s.Z.post(e,a);return t}},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p7aQ2JmqilXrhOh5RMXjEeqNsuUEUlEMx3ILLDQKrcsixyLmIwIrAInLIfcOnz7Ivuo6QdrIOLHG/M98/nuf3zLs772d/v+f3vO9KyBoYHKKts4dHHd1WW5D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KPrjWJA4CJRsReVpbCyc/WseZWl/g5WI6mFthENkAczb5xYgY/F2BD9OjvcD1SRfDt+zSYbH+G5qNdV0xKZCwRZQ00P/kLxZTLMoH9Lz+nDJuOmlxg1heYZmtSgT3oG8SpqglPXbNZ/o+4RmWXJe0sk6dJBWaV+bICm2ayAptmsgKbZpoY2PtWYJaoGe9NAOx1AUxbbXzjY5XlaMbcjeMD+9I9nHdXHuLdT77iV59abQme+fEBVth709P35NHLY2At7V3cLKzkWo7Wagtxal45dQ9bGRl58j+Dx8Csmh6yAptWgv8CbZkYUSkpBpcAAAAASUVORK5CYII="}}]);
1
+ "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[612],{4735:function(e,a,t){t.d(a,{Z:function(){return u}});var s=function(){var e=this,a=e._self._c;e._self._setupProxy;return a("div",{staticClass:"flex"},[a("div",{staticClass:"w-full pt-16 px-32"},[a("div",{staticClass:"md:px-0 lg:px-0 text-center"},[a("div",{staticClass:"text-gray-500"},[a("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),a("div",{staticClass:"pt-8"},[a("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[a("img",{staticClass:"mx-auto",attrs:{src:t(6540)}})])])])])])},i=[],r=t(7203),l=(0,r.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const a=(0,r.ref)(""),t=(0,r.ref)(localStorage.getItem("helpmateLink"));return(0,r.onBeforeMount)((async()=>{a.value=e.errorMessage})),{errorMsg:a,helpmateLink:t}}}),n=l,o=t(1001),c=(0,o.Z)(n,s,i,!1,null,null,null),u=c.exports},5316:function(e,a,t){t.d(a,{Z:function(){return u}});var s=function(){var e=this,a=e._self._c;e._self._setupProxy;return a("div",{staticClass:"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center"},[a("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full"},["infinity"===e.program?a("span",[e._v(e._s(e.proficiency)+" - ")]):e._e(),e._v(e._s(e.skill)+" ")]),a("div",{staticClass:"my-2 md:order-2 order-1 w-full"},[a("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},i=[],r=t(7203),l=(0,r.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""}},setup(){const e=(0,r.ref)("");return(0,r.onBeforeMount)((async()=>{const a=localStorage.getItem("userName")||"Learner";e.value=a.split(",").reverse().join(" ")})),{username:e}}}),n=l,o=t(1001),c=(0,o.Z)(n,s,i,!1,null,null,null),u=c.exports},3203:function(e,a,t){t.r(a),t.d(a,{default:function(){return h}});var s=function(){var e=this,a=e._self._c;e._self._setupProxy;return a("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[a("div",{staticClass:"flex"},[a("div",{staticClass:"w-full pt-12"},[a("Greetings",{attrs:{program:e.programId,proficiency:e.profName,skill:e.skillName}}),a("div",{staticClass:"flex md:flex mt-6 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0 block"},[a("div",{staticClass:"ul-nav w-full"},[a("ul",[a("li",{staticClass:"active"},[e._v("Home")]),a("li",{staticClass:"active"},[e._v("Task")]),a("li",{staticClass:"active"},[e._v("Submit")]),"Auto assign reviewer (reviewer task to be different)"===e.reviewerAssignmentStrategy||"Auto assign reviewer based on skill and proficiency"===e.reviewerAssignmentStrategy?a("li",[e._v("Peer Reviews")]):e._e(),a("li",[e._v("Under Review")]),a("li",[e._v("Done!")])])])]),a("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[a("div",{staticClass:"block mt-4 mb-4"},[e.submissionError?a("div",{staticClass:"w-full px-3 text-center mt-4 bg-red-400 py-2 text-white"},[e._v(" "+e._s(e.submissionError)+" ")]):e._e(),a("div",{staticClass:"text-gray-600"},[a("div",["infinity"!==e.programName&&"Desktop"===e.taskType?a("p",{staticClass:"pt-3"},[e._v(" Please submit your task by uploading it via the "),a("strong",[e._v("Choose File")]),e._v(" button. Once the task has been uploaded, click "),a("strong",[e._v("Submit")]),e._v(". ")]):e._e(),"infinity"===e.programName&&"Desktop"===e.taskType?a("p",{staticClass:"pt-3"},[e._v(" Please submit your task by uploading it via the "),a("strong",[e._v("Choose File")]),e._v(" button. After uploading, click "),a("strong",[e._v("Submit")]),e._v(" to proceed for peer reviews. ")]):e._e(),"Desktop"===e.taskType?a("p",{staticClass:"pt-2"},[e._v(" You can submit your submission, either in "),a("strong",[e._v("Word, PDF, PPT, Excel, .txt or video format")]),e._v(", with a maximum file size of "),a("strong",[e._v("200MB")]),e._v("(Large file may take more time to upload, so please be patient and avoid refreshing the page. ")]):e._e(),"Mobile"===e.taskType?a("p",{staticClass:"pt-3"},[e._v('Please submit your task by typing it into the text box provided (Word limit within 150-500 words) and then click "Submit" to proceed for peer reviews.')]):e._e(),e._m(0),e._m(1)]),a("div",{staticClass:"mt-4"},[a("p",{staticClass:"pt-2"},[a("strong",[e._v("Task Name: ")]),e._v(e._s(e.taskName))]),e._m(2),a("div",{staticClass:"mt-2 rich-text-formatter",domProps:{innerHTML:e._s(e.taskDesc)}})]),"Desktop"===e.taskType?a("div",{staticClass:"mt-4"},["infinity"===e.programId?a("p",[e._v("If you prefer not to proceed with this task, you can select a different one by clicking "),a("strong",[e._v("Select Different Task")]),e._v(".")]):e._e(),"infinity"!==e.programId?a("p",{staticClass:"pt-2"},[e._v("Upload the file you created for this then click "),a("strong",[e._v("Submit")]),e._v(" to continue.")]):e._e(),a("div",{staticClass:"flex items-center gap-2 pt-2",staticStyle:{"max-width":"250px"}},[a("input",{key:e.fileInputKey,staticStyle:{width:"80%"},attrs:{type:"file"},on:{change:e.selectedFile}}),e.learnerSubmission?a("x-icon",{attrs:{size:"1.5x"},on:{click:function(a){return e.clearFile()}}}):e._e()],1)]):e._e(),"Mobile"===e.taskType?a("div",{staticClass:"pt-12"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 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:"Your message"},domProps:{value:e.learnerSubmission},on:{keyup:function(a){return e.checkQuestionLength(e.learnerSubmission)},input:function(a){a.target.composing||(e.learnerSubmission=a.target.value)}}}),a("div",[e.questionWordCount<100?a("div",{staticClass:"text-red-700"},[e._v("(Minimum 100 words required. Current word count - "+e._s(e.questionWordCount)+")")]):e._e()])]):e._e(),e.fileValidationMsg?a("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e(),e._m(3),e.checkForPlagiarismProgramLevel&&e.checkForPlagiarismTaskLevel?a("div",[a("ul",{staticClass:"pt-2 pl-8"},[a("li",[a("div",{staticClass:"mt-3"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check0",value:"check0"},domProps:{checked:Array.isArray(e.plagiarismcb)?e._i(e.plagiarismcb,"check0")>-1:e.plagiarismcb},on:{change:function(a){var t=e.plagiarismcb,s=a.target,i=!!s.checked;if(Array.isArray(t)){var r="check0",l=e._i(t,r);s.checked?l<0&&(e.plagiarismcb=t.concat([r])):l>-1&&(e.plagiarismcb=t.slice(0,l).concat(t.slice(l+1)))}else e.plagiarismcb=i}}}),e._v(" "),a("span",{staticClass:"text-red-700 font-bold ml-1"},[e._v("*")]),e._v(" I hereby certify that the task submission is solely my own work, derived from personal study/research, and any content taken from the internet has been referenced. ")])])]),a("li",[a("div",{staticClass:"mt-3"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check1",value:"check1"},domProps:{checked:Array.isArray(e.plagiarismcb)?e._i(e.plagiarismcb,"check1")>-1:e.plagiarismcb},on:{change:function(a){var t=e.plagiarismcb,s=a.target,i=!!s.checked;if(Array.isArray(t)){var r="check1",l=e._i(t,r);s.checked?l<0&&(e.plagiarismcb=t.concat([r])):l>-1&&(e.plagiarismcb=t.slice(0,l).concat(t.slice(l+1)))}else e.plagiarismcb=i}}}),e._v(" "),a("span",{staticClass:"text-red-700 font-bold ml-1"},[e._v("*")]),e._v(" I hereby certify that the task submission does not incorporate any client/Genpact’s confidential materials. ")])])]),a("li",[a("div",{staticClass:"mt-3"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check2",value:"check2"},domProps:{checked:Array.isArray(e.plagiarismcb)?e._i(e.plagiarismcb,"check2")>-1:e.plagiarismcb},on:{change:function(a){var t=e.plagiarismcb,s=a.target,i=!!s.checked;if(Array.isArray(t)){var r="check2",l=e._i(t,r);s.checked?l<0&&(e.plagiarismcb=t.concat([r])):l>-1&&(e.plagiarismcb=t.slice(0,l).concat(t.slice(l+1)))}else e.plagiarismcb=i}}}),e._v(" "),a("span",{staticClass:"text-red-700 font-bold ml-1"},[e._v("*")]),e._v(" I've checked my submission on popular plagiarism detection sites like "),e._m(4),e._v(" and found no significant plagiarism")])])]),a("li",[a("div",{staticClass:"mt-3"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check3",value:"check3"},domProps:{checked:Array.isArray(e.plagiarismcb)?e._i(e.plagiarismcb,"check3")>-1:e.plagiarismcb},on:{change:function(a){var t=e.plagiarismcb,s=a.target,i=!!s.checked;if(Array.isArray(t)){var r="check3",l=e._i(t,r);s.checked?l<0&&(e.plagiarismcb=t.concat([r])):l>-1&&(e.plagiarismcb=t.slice(0,l).concat(t.slice(l+1)))}else e.plagiarismcb=i}}}),e._v(" "),a("span",{staticClass:"text-red-700 font-bold ml-1"},[e._v("*")]),e._v(" I affirm the originality of the submission and confirm that it has not been copied from anyone or anywhere, including the work submitted by my colleagues/team members. ")])])]),a("li",[a("div",{staticClass:"mt-3"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check4",value:"check4"},domProps:{checked:Array.isArray(e.plagiarismcb)?e._i(e.plagiarismcb,"check4")>-1:e.plagiarismcb},on:{change:function(a){var t=e.plagiarismcb,s=a.target,i=!!s.checked;if(Array.isArray(t)){var r="check4",l=e._i(t,r);s.checked?l<0&&(e.plagiarismcb=t.concat([r])):l>-1&&(e.plagiarismcb=t.slice(0,l).concat(t.slice(l+1)))}else e.plagiarismcb=i}}}),e._v(" "),a("span",{staticClass:"text-red-700 font-bold ml-1"},[e._v("*")]),e._v("I acknowledge that plagiarism constitutes an infringement on others' work and is a violation of the Genpact's code of conduct. Such actions may result in unsuccessful completion of Solidify and/or disciplinary action. ")])])]),a("li",[e.palgiarismErrorMsg?a("span",{staticClass:"text-red-700"},[e._v(e._s(e.palgiarismErrorMsg))]):e._e()])]),a("div",{staticClass:"mt-4"},[e._m(5),"infinity"===e.programId?a("p",{staticClass:"pt-2"},[e._v("If you prefer to start your Solidify journey afresh, click on "),a("strong",[e._v("Restart Solidify")]),e._v(".")]):e._e()])]):a("div",[a("ul",{staticClass:"pt-2 pl-8"},[a("li",[a("div",{staticClass:"mt-3"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check0",value:"check0"},domProps:{checked:Array.isArray(e.plagiarismcb)?e._i(e.plagiarismcb,"check0")>-1:e.plagiarismcb},on:{change:function(a){var t=e.plagiarismcb,s=a.target,i=!!s.checked;if(Array.isArray(t)){var r="check0",l=e._i(t,r);s.checked?l<0&&(e.plagiarismcb=t.concat([r])):l>-1&&(e.plagiarismcb=t.slice(0,l).concat(t.slice(l+1)))}else e.plagiarismcb=i}}}),e._v(" "),a("span",{staticClass:"text-red-700 font-bold ml-1"},[e._v("*")]),e._v(" I hereby certify that this task submission does not contain/ use any client/ Genpact confidential materials.")])])])]),e.palgiarismErrorMsg?a("span",{staticClass:"text-red-700"},[e._v(e._s(e.palgiarismErrorMsg))]):e._e()])])]),a("div",{staticClass:"block text-center pt-2"},[e._m(6),a("div",{staticClass:"mb-4 text-center"},["infinity"===e.programId?a("button",{staticClass:"inline-block mt-2 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",on:{click:e.switchTask}},[e._v(" Select Different Task ")]):e._e(),a("button",{staticClass:"ml-2 mr-2 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",class:e.buttonDisable?"bg-gray-500 cursor-not-allowed":"bg-background-secondary",attrs:{disabled:e.buttonDisable},on:{click:e.submitSubmiision}},[e._v(" Submit Task ")]),"infinity"===e.programId?a("button",{staticClass:"inline-block mt-2 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",on:{click:function(a){return e.restart()}}},[e._v(" Restart Solidify ")]):e._e()])])])],1)])],e.showErrorMessage?a("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():a("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[a("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:t(9756),alt:"Loader Gif"}}),a("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)},i=[function(){var e=this,a=e._self._c;e._self._setupProxy;return a("p",{staticClass:"pt-2"},[e._v(" Please ensure the submission reflects you individual learnings and kindly adhere to Genpact's policies on "),a("strong",[e._v("Plagiarism")]),e._v(", submitting the task in your own words"),a("strong",[e._v("(No Copying-pasting from other sources)")]),e._v(". ")])},function(){var e=this,a=e._self._c;e._self._setupProxy;return a("p",{staticClass:"pt-2"},[a("strong",[e._v("Note: ")]),e._v("The task submission must be in "),a("strong",[e._v("English exclusively")]),e._v(".")])},function(){var e=this,a=e._self._c;e._self._setupProxy;return a("p",{staticClass:"pt-2"},[a("strong",[e._v("Task Description:")])])},function(){var e=this,a=e._self._c;e._self._setupProxy;return a("div",{staticClass:"pt-2"},[a("p",{staticClass:"pt-2"},[e._v("When submitting a task, certify that your work adheres to the following guidelines:")])])},function(){var e=this,a=e._self._c;e._self._setupProxy;return a("strong",[a("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[e._v("plagiarismdetector.net")]),e._v(", "),a("a",{staticClass:"underline",attrs:{href:"https://check-plagiarism.com",target:"_blank"}},[e._v("check-plagiarism.com")])])},function(){var e=this,a=e._self._c;e._self._setupProxy;return a("p",[e._v(" Kindly watch this "),a("strong",[a("a",{staticClass:"underline",attrs:{href:"https://dcl.genpact.com/media/9df055db-c09e-4e2a-843e-a5b950003d89",target:"blank"}},[e._v("video")])]),e._v(" to understand the importance of originality in your submissions and to gain insights into the concept of plagiarism . ")])},function(){var e=this,a=e._self._c;e._self._setupProxy;return a("div",[a("p",{staticClass:"text-xl"},[a("em",[e._v("Please don't click the browser back button")])])])}],r=(t(7658),t(7203)),l=t(4856),n=t(568),o=t(4654),c=t(306),u=t(4735),m=t(5316),d=t(3158),p=(0,r.defineComponent)({name:"LearnerSubmitTask",components:{XIcon:l.b0D,ErrorMessage:u.Z,Greetings:m.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const a=(0,r.ref)(),t=(0,r.ref)(e.query.learner_task_id),s=(0,r.ref)(localStorage.getItem("programId")),i=(0,r.ref)(localStorage.getItem("skillId")),l=(0,r.ref)(localStorage.getItem("profId")),u=(0,r.ref)(localStorage.getItem("skillName")),m=(0,r.ref)(localStorage.getItem("proficiency")),p=(0,r.ref)(localStorage.getItem("helpmateLink")),v=(0,r.ref)(),g=(0,r.ref)(),f=(0,r.ref)(),h=(0,r.ref)(),b=(0,r.ref)(),y=(0,r.ref)(!1),k=(0,r.ref)(null),_=(0,r.ref)(),x=(0,r.ref)(),w=(0,r.ref)(),A=(0,r.ref)(!0),C=(0,r.ref)([]),S=(0,r.ref)(),I=(0,r.ref)(),L=(0,r.ref)(0),P=(0,r.ref)(),T=(0,r.ref)(!1),Z=(0,r.ref)(),M=(0,r.ref)(!1),R=(0,r.ref)(),D=(0,r.ref)(),U=(0,r.ref)(),E=(0,r.ref)(0),G=(0,r.ref)(""),N=e=>{E.value=e.split(" ").filter((e=>""!==e)).length,A.value=E.value<100},W=async()=>{L.value+=1,console.log(`before ${x.value}`),x.value=null,A.value=!0,console.log(`after ${x.value}`)},J=async e=>{try{if(k.value=e.target.files[0],k.value){x.value=e.target.files[0].name;const a=e.target.files[0].size/1024/1024;k.value&&(A.value=!1),a>200&&(_.value="Uploaded filesize is greater than 200 MB",setTimeout((()=>{_.value=null}),6e3),A.value=!0)}}catch(a){if(console.log(a),T.value=!0,c.Z.isAxiosError(a)){const e=a;Z.value=e.response?.data?.message}else Z.value="Something went wrong, please contact helpmate.";M.value=!0}},j=async()=>{try{if(T.value=!1,console.log("plagiarismcb",C),y.value&&b.value&&5!==C.value.length)return T.value=!0,I.value="Please confirm that you will abide by the above statements",void setTimeout((()=>{I.value=null}),6e3);if((!y.value||!b.value)&&1!==C.value.length)return T.value=!0,I.value="Please confirm that you will abide by the above statements",void setTimeout((()=>{I.value=null}),6e3);if(x.value){const e={learner_submission:x.value.trim(),learner_task_id:t.value,skill:i.value,proficiency:l.value,linked_program_name:s.value,task_type:f.value,linked_task_id:a.value,assinged_reviewer_count:0};let r;if("Desktop"===f.value){const a=await(0,n.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:x.value,learner_task_id:t.value}),s=a.data;w.value=s.preSignedUrl;const i=await(0,n.sc)(w.value,k.value);200===i.status?r=await(0,n.rC)("/v1/uploadLearnerSubmission",e):(T.value=!0,Z.value="There is issue in the file upload, please contact with helpmate.",M.value=!0)}else r=await(0,n.rC)("/v1/uploadLearnerSubmission",e);200===r.status?(console.log(r),"Please upload non empty file"===r.data.message?(G.value="The submission does not meet the minimum task word limit of 100 words. Please upload a valid submission.",W(),setTimeout((()=>{G.value=""}),6e3),T.value=!0):d.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:e.learner_task_id}}),"Learner on hold"===r.data.message&&(console.log("learner on hold submit task"),d.Z.push({path:"/solidify",query:{skill_id:i.value,proficiency_id:l.value,program_id:s.value}}))):(T.value=!0,Z.value="There is some issue while submitting learner submission, please contact with helpmate.",M.value=!0)}else"Mobile"===f.value?(T.value=!0,x.value||(_.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{_.value=null}),6e3))):"Desktop"===f.value&&(T.value=!0,console.log(`learnerSubmission.value ${x.value}`),x.value||(_.value="please select File",setTimeout((()=>{_.value=null}),6e3)))}catch(e){if(T.value=!0,console.log(`error ${e}`),c.Z.isAxiosError(e)){const a=e;Z.value=a.response?.data?.message}else Z.value="There is some issue while submitting learner submission, please contact with helpmate.";M.value=!0}},z=async()=>{try{T.value=!1,console.log("Learner Status",P.value),"Registered"!==P.value?(T.value=!0,console.log(`inside if ${P.value}`),Z.value="Learner Status is not registered.",M.value=!0):d.Z.push({name:"SolidifyLearnerSelectTask",query:{skill_id:i.value,proficiency_id:l.value,program_id:s.value}})}catch(e){if(T.value=!0,c.Z.isAxiosError(e)){const a=e;Z.value=a.response?.data?.message}else Z.value="There is an issue with the switching, please contact with helpmate.";M.value=!0}},F=async()=>{try{if(T.value=!1,"Registered"!==P.value)T.value=!0,Z.value="Learner Status is not registered.",M.value=!0;else{const e=await(0,n.ie)("/v1/restartLearnerJourney",t.value);console.log("restartLearnerJourney",e);const a='your task was removed successfully, you can restart journey again from <a href="https://genome.genpact.com/my-plan" target="_blank" class="text-background-secondary"><strong>MyPlan</strong></a>';e?(localStorage.setItem("message",a),d.Z.push({name:"SolidifyLearnerStatus",query:{isPerformReviewVisible:"no",isProxyReview:"no",showChevron:"no"}})):(T.value=!0,Z.value="There is an issue in the restart Journey, please contact helpmate.",M.value=!0)}}catch(e){if(T.value=!0,console.log(e),c.Z.isAxiosError(e)){const a=e;Z.value=a.response?.data?.message}else Z.value="There is an issue in the restart Journey, please contact with helpmate.";M.value=!0}},q=e=>{T.value=!1,console.log(`task data ${JSON.stringify(e)}`);const t=e;T.value=!0,t?(a.value=t.task_id,f.value=t.task_type,v.value=t.task_name,g.value=t.description,i.value=t.skill,l.value=t.proficiency,h.value=t.linked_task_group,b.value=!0===t.checkForPlagiarism):(Z.value="There is an issue to fetch task, please contact helpmate.",M.value=!0)};return(0,r.onBeforeMount)((async()=>{try{T.value=!1,R.value=localStorage.getItem("programName"),U.value=localStorage.getItem("reviewerAssignmentStrategy"),D.value=localStorage.getItem("taskAssignmentStrategy");const e=await(0,o.zn)("/learner/journey/stat",{skill:i.value,proficiency:l.value,program_id:s.value}),a=e.data;q(a.taskDetails),y.value=!0===a.program_details.plagiarism_enabled,T.value=!0,a.learnerData&&(a.learnerData.technical_hold&&(console.log("learner on hold select task"),d.Z.push({path:"/solidify",query:{skill_id:i.value,proficiency_id:l.value,program_id:s.value}})),console.log(`learner Data value ${JSON.stringify(a.learnerData)}`),console.log(`learnerStatus value ${a.learnerData.learner_status}`),P.value=a.learnerData.learner_status,t.value=a.learnerData.learner_task_id,"Need Reviewer and Need Reviewee"===a.learnerData.learner_status||"Need Reviewee"===a.learnerData.learner_status?d.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:a.learnerData.learner_task_id}}):"Need Reviewer"!==a.learnerData.learner_status&&"Passed"!==a.learnerData.learner_status||d.Z.push({name:"SolidifyLearnerDone",query:{learner_task_id:t.value}}))}catch(e){if(T.value=!0,c.Z.isAxiosError(e)){const a=e;Z.value=a.response?.data?.message}else Z.value="There is an issue to fetch existing record, please contact with helpmate.";M.value=!0}})),{learnerSubmissionFile:k,skillName:u,profName:m,skillId:i,proficiencyId:l,programId:s,taskType:f,taskName:v,taskDesc:g,linkedTask:h,submitSubmiision:j,learnerSubmission:x,selectedFile:J,fileValidationMsg:_,restart:F,switchTask:z,learnerTaskId:t,preSignedUrl:w,buttonDisable:A,validationError:S,clearFile:W,fileInputKey:L,helpmateLink:p,learnerStatus:P,renderReady:T,errorResponse:Z,showErrorMessage:M,plagiarismcb:C,palgiarismErrorMsg:I,programName:R,taskAssignmentStrategy:D,reviewerAssignmentStrategy:U,checkForPlagiarismTaskLevel:b,checkForPlagiarismProgramLevel:y,checkQuestionLength:N,questionWordCount:E,submissionError:G}}}),v=p,g=t(1001),f=(0,g.Z)(v,s,i,!1,null,"efeac406",null),h=f.exports},568:function(e,a,t){t.d(a,{ie:function(){return n},rC:function(){return o},sc:function(){return r},ux:function(){return i},yW:function(){return l}});var s=t(7129);const i=async(e,a)=>{const t=await s.Z.post(e,a);return t},r=async(e,a)=>{let t;const s=await fetch(`${e}`,{method:"put",body:a});return t=s,t},l=async e=>{const a=await s.Z.get(`/task/${e}`);return a},n=async(e,a)=>{const t=await s.Z.post(e,{learner_task_id:a});return t},o=async(e,a)=>{const t=await s.Z.post(e,a);return t}},4654:function(e,a,t){t.d(a,{hZ:function(){return r},n2:function(){return i},zn:function(){return l}});var s=t(7129);const i=async(e,a)=>{const t=await s.Z.post(e,a);return t},r=async(e,a)=>{const t=await s.Z.post(e,a);return t},l=async(e,a)=>{const t=await s.Z.post(e,a);return t}},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p7aQ2JmqilXrhOh5RMXjE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