@genpact/genome.mfe.solidify-app 3.0.0-beta.12 → 3.0.0-beta.14

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([[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(8954),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+f3vO9KyBoYHKKts4dHHd1WW5D7+gdlQkY9Bub+dQo/XrqLV+fb8toCqy3BMxZsYYfysoA2IFMyAfb6hzvJLdXJI6ssQd19/fxg/mbaOnrkGRNgP/pgG7r6JnlklaVox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lz+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(8656),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+f3vO9KyBoYHKKts4dHHd1WW5D7+gd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