@genpact/genome.mfe.solidify-app 1.17.2-alpha.242 → 1.17.2-alpha.244
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/SolidifyLearner.css +1 -1
- package/dist/css/SolidifyLearnerDone.css +1 -1
- package/dist/css/SolidifyLearnerPeerReview.css +1 -1
- package/dist/css/SolidifyLearnerProxyReview.css +1 -1
- package/dist/css/SolidifyLearnerSelectTask.css +1 -1
- package/dist/css/SolidifyLearnerSubmitTask.css +1 -1
- package/dist/solidify.umd.min.LearnerRereview.js +1 -1
- package/dist/solidify.umd.min.LearnerRereview.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationGenAIReviewedSubmissions.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationGenAIReviewedSubmissions.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearner.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearner.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerDone.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerDone.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerPeerReview.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerPeerReview.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js +2 -2
- package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerStatus.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerStatus.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js.map +1 -1
- package/dist/solidify.umd.min.js +2 -2
- package/dist/solidify.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[612],{4735:function(M,z,b){"use strict";b.d(z,{Z:function(){return d}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex"},[z("div",{staticClass:"w-full pt-16 px-32"},[z("div",{staticClass:"md:px-0 lg:px-0 text-center"},[z("div",{staticClass:"text-gray-500"},[z("div",{staticClass:"pt-2",domProps:{innerHTML:M._s(M.errorMsg)}})]),z("div",{staticClass:"pt-8"},[z("a",{attrs:{href:M.helpmateLink,target:"_blank"}},[z("img",{staticClass:"mx-auto",attrs:{src:b(6540)}})])])])])])},O=[],A=b(7203),c=(0,A.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(M){const z=(0,A.ref)(""),b=(0,A.ref)(localStorage.getItem("helpmateLink"));return(0,A.onBeforeMount)((async()=>{z.value=M.errorMessage})),{errorMsg:z,helpmateLink:b}}}),q=c,o=b(1001),W=(0,o.Z)(q,p,O,!1,null,null,null),d=W.exports},5316:function(M,z,b){"use strict";b.d(z,{Z:function(){return d}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center"},[z("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full"},["infinity"===M.program?z("span",[M._v(M._s(M.proficiency)+" - ")]):M._e(),M._v(M._s(M.skill)+" ")]),z("div",{staticClass:"my-2 md:order-2 order-1 w-full"},[z("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[M._v("Hi, "+M._s(M.username))])])])},O=[],A=b(7203),c=(0,A.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""}},setup(){const M=(0,A.ref)("");return(0,A.onBeforeMount)((async()=>{const z=localStorage.getItem("userName")||"Learner";M.value=z.split(",").reverse().join(" ")})),{username:M}}}),q=c,o=b(1001),W=(0,o.Z)(q,p,O,!1,null,null,null),d=W.exports},5104:function(M,z,b){"use strict";b.r(z),b.d(z,{default:function(){return h}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[M.loadingGenAIResponse?z("AILoader",{attrs:{stat:M.stat},on:{closeAIPopup:()=>M.loadingGenAIResponse=!1}}):M._e(),M.reviewPopupOpened?z("StarRating",{attrs:{rating:M.userRating,comment:M.userComment},on:{"update:comment":z=>M.userComment=z,"update:rating":z=>M.userRating=z,submitRating:()=>{M.submitSubmiision("submit_task"),M.reviewPopupOpened=!1}}}):M._e(),M.renderReady?[M.showErrorMessage?M._e():[z("div",{staticClass:"flex"},[z("div",{staticClass:"w-full pt-12"},[z("Greetings",{attrs:{program:M.programId,proficiency:M.profName,skill:M.skillName}}),z("div",{staticClass:"flex md:flex mt-6 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0"},[z("div",{staticClass:"ul-nav w-full"},[z("ul",[z("li",{staticClass:"active"},[M._v("Home")]),z("li",{staticClass:"active"},[M._v("Task")]),z("li",{staticClass:"active"},[M._v("Submit")]),"Auto assign reviewer (reviewer task to be different)"===M.reviewerAssignmentStrategy||"Auto assign reviewer based on skill and proficiency"===M.reviewerAssignmentStrategy?z("li",[M._v("Peer Reviews")]):M._e(),z("li",[M._v("Under Review")]),z("li",[M._v("Done!")])])])]),z("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 mt-1 text-sm"},[z("div",{staticClass:"block mt-4 mb-4"},[M.submissionError?z("div",{staticClass:"w-full px-3 text-center mt-4 bg-red-400 py-2 text-white"},[M._v(" "+M._s(M.submissionError)+" ")]):M._e(),z("div",{staticClass:"text-gray-600"},[z("div",{staticClass:"p-4 mb-6 rounded-lg shadow border border-gray-200"},[z("p",{staticClass:"pt-2"},[z("strong",[M._v(M._s(M.taskName))])]),z("div",{staticClass:"mt-2 rich-text-formatter",domProps:{innerHTML:M._s(M.taskDesc)}})]),"Desktop"===M.taskType?z("div",{staticClass:"p-4 mb-6 rounded-lg shadow border border-gray-200"},["Desktop"===M.taskType?z("div",[M._m(0),z("p",{staticClass:"pt-1"},[M._v("Accepted Formats: Upload a single Word, Pdf, Excel, or PPT file with a minimum of "+M._s(M.minimumWordLength)+" words.")]),z("p",{staticClass:"pt-1"},[M._v("Max Size: 200MB")]),z("p",{staticClass:"pt-1"},[M._v("Language: English only")]),z("div",{staticClass:"flex items-center gap-2 pt-2",staticStyle:{"max-width":"250px"}},[z("input",{key:M.fileInputKey,staticStyle:{width:"80%"},attrs:{type:"file"},on:{change:M.selectedFile}}),M.learnerSubmission?z("x-icon",{attrs:{size:"1.5x"},on:{click:function(z){return M.clearFile()}}}):M._e()],1)]):M._e(),"Desktop"===M.taskType&&M.stat?.taskDetails?.genAiAssistEnabled?z("div",{staticClass:"text-xs italic mt-2 -mb-2 text-background-tertiary"},[M._v(" Note: To enable AI Assist for uploaded task, please upload only .doc/ .docx/ .txt/ .pdf file. ")]):M._e()]):M._e(),"Mobile"===M.taskType?z("div",{staticClass:"mb-6"},[z("textarea",{directives:[{name:"model",rawName:"v-model",value:M.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-gray-300 rounded-lg ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Type your text here..."},domProps:{value:M.learnerSubmission},on:{keyup:function(z){return M.checkQuestionLength(M.learnerSubmission)},input:function(z){z.target.composing||(M.learnerSubmission=z.target.value)}}}),z("div",[M.questionWordCount<M.minimumWordLength?z("div",{staticClass:"text-red-700"},[M._v("(Minimum "+M._s(M.minimumWordLength)+" words required. "+M._s(M.questionWordCount)+"/"+M._s(M.minimumWordLength)+")")]):M._e()])]):M._e(),M.fileValidationMsg?z("span",{staticClass:"text-red-700"},[M._v(M._s(M.fileValidationMsg))]):M._e(),z("div",{staticClass:"p-4 mb-6 rounded-lg shadow border border-gray-200"},[M._m(1),M.checkForPlagiarismProgramLevel&&M.checkForPlagiarismTaskLevel?z("div",[z("ul",{staticClass:"pt-2 pl-8"},[z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check0",value:"check0"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check0")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check0",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-red-700 font-bold ml-1"},[M._v("*")]),M._v(" This is my original work, based on personal research and not copied from others (including colleagues or online sources). ")])])]),z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check1",value:"check1"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check1")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check1",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-red-700 font-bold ml-1"},[M._v("*")]),M._v(" No client or Genpact confidential information has been included. ")])])]),z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check2",value:"check2"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check2")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check2",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-red-700 font-bold ml-1"},[M._v("*")]),M._v(" I’ve checked for plagiarism using tools like "),M._m(2),M._v(" or "),M._m(3),M._v(" and found no significant matches. ")])])]),z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check3",value:"check3"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check3")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check3",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-red-700 font-bold ml-1"},[M._v("*")]),M._v("I understand that plagiarism is a violation of Genpact’s Code of Conduct and may result in unsuccessful completion of Solidify and/or disciplinary action. ")])])]),z("li",[M.palgiarismErrorMsg?z("span",{staticClass:"text-red-700"},[M._v(M._s(M.palgiarismErrorMsg))]):M._e()])]),M._m(4)]):z("div",[z("ul",{staticClass:"pt-2 pl-8"},[z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check0",value:"check0"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check0")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check0",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-red-700 font-bold ml-1"},[M._v("*")]),M._v(" I hereby certify that this task submission does not contain/ use any client/ Genpact confidential materials.")])])])]),M.palgiarismErrorMsg?z("span",{staticClass:"text-red-700"},[M._v(M._s(M.palgiarismErrorMsg))]):M._e()])]),M.genAIPromptResp||M.stat?.genAiAssistDetails?.[0]?.genai_evaluation_comment?z("div",{staticClass:"flex w-full h-auto p-4"},[z("div",{staticClass:"flex flex-col relative bg-gray-200 w-full lg:w-2/3 h-auto mx-4 mt-5 p-4 pl-12 rounded-xl"},[M.genAIPromptResp?z("div",[z("div",{staticClass:"font-medium text-black whitespace-pre-line"},[M._v(" "+M._s(M.genAIPromptResp?.genai_evaluation_comment)+" ")]),z("div",{staticClass:"font-medium text-black italic text-xs mt-2"},[M._v("Submitted On: "+M._s(M.moment(M.genAIPromptResp?.created_date).format("DD MMM YYYY | hh:mm a")))]),z("div",{staticClass:"font-medium text-black italic text-xs mt-0.5"},[M._v("Attempts Left: "+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length)+"/"+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts))])]):z("div",[z("div",{staticClass:"font-medium text-black whitespace-pre-line"},[M._v(" "+M._s(M.stat?.genAiAssistDetails?.[0]?.genai_evaluation_comment)+" ")]),z("div",{staticClass:"font-medium text-black italic text-xs mt-2"},[M._v("Submitted On: "+M._s(M.moment(M.stat?.genAiAssistDetails?.[0]?.created_date).format("DD MMM YYYY | hh:mm a")))]),z("div",{staticClass:"font-medium text-black italic text-xs mt-0.5"},[M._v("Attempts Left: "+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length)+"/"+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts))])]),M._m(5)])]):M._e()])]),z("div",{staticClass:"block text-center pt-2"},[M._m(6),z("div",{staticClass:"mb-4 text-center space-x-4"},["infinity"===M.programId?z("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:M.switchTask}},[M._v(" Select Different Task ")]):M._e(),M.stat?.taskDetails?.genAiAssistEnabled?z("button",{staticClass:"inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 disabled:!bg-gray-500 disabled:cursor-not-allowed bg-background-tertiary",attrs:{disabled:M.buttonDisable||!M.isEligibleForAIAssist||M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length<=0},on:{click:function(z){return M.submitSubmiision("ai_assist")}}},[M._v(" AI Assist ")]):M._e(),z("button",{staticClass:"inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 disabled:!bg-gray-500 disabled:cursor-not-allowed bg-background-secondary",attrs:{disabled:M.buttonDisable},on:{click:function(z){return M.proceedToReview()}}},[M._v(" Submit Task ")]),"infinity"===M.programId?z("button",{staticClass:"inline-block mt-2 py-2 px-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(z){return M.restart()}}},[M._v(" Restart Solidify ")]):M._e()])])])],1)])],M.showErrorMessage?z("ErrorMessage",{attrs:{"error-message":M.errorResponse}}):M._e()]:M._e(),M.renderReady?M._e():z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[z("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:b(9756),alt:"Loader Gif"}}),z("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[M._v("Loading...")])])],2)},O=[function(){var M=this,z=M._self._c;M._self._setupProxy;return z("p",{staticClass:"pt-2"},[z("strong",[M._v("File Upload Instructions ")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("p",[z("strong",[M._v("By submitting, I certify that:")])])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("strong",[z("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[M._v("Plagiarismdetector")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("strong",[z("a",{staticClass:"underline",attrs:{href:"https://papersowl.com/free-plagiarism-checker",target:"_blank"}},[M._v("Papersowl")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"mt-7"},[z("p",[z("strong",[z("a",{staticClass:"underline",attrs:{href:"https://dcl.genpact.com/media/9d86bd58-3669-41c5-bc28-aad72efdf964",target:"blank"}},[M._v("Watch this short video")])]),M._v(" to learn why originality matters and how to avoid plagiarism. ")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"absolute -left-8 -bottom-3 bg-genome-v6 w-16 h-16 rounded-full flex items-center justify-center"},[z("img",{staticClass:"bg-center bg-contain bg-no-repeat block w-10",attrs:{src:b(8768)}})])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("p",{staticClass:"text-xl"},[z("em",[M._v("Do Not Click the Browser Back Button")])])])}],A=(b(7658),b(7203)),c=b(4856),q=b(568),o=b(4654),W=b(306),d=b(4735),a=b(5316),R=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center fixed z-50 w-full h-full bg-opacity-70 bg-black -translate-x-1/2 left-1/2 -translate-y-1/2 top-1/2"},[z("div",{staticClass:"relative mx-auto px-8 py-4 bg-white text-background-secondary w-full md:w-1/2"},[z("button",{staticClass:"absolute right-0 mx-3",on:{click:function(z){return M.$emit("closeAIPopup")}}},[z("svg",{staticClass:"lucide-icon lucide lucide-x h-4 w-4",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[z("path",{attrs:{d:"M18 6 6 18"}}),z("path",{attrs:{d:"m6 6 12 12"}})])]),M._m(0),M._m(1),M._m(2),M._m(3),z("div",{staticClass:"flex justify-center items-center pt-2 font-bold"},[M._m(4),z("div",{staticClass:"text-background-tertiary text-xl pl-2 pr-2 italic"},[M._v(" Attempts Left: ["+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length-1)+"/"+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts)+"] - Make the most of it! ")]),M._m(5)]),z("div",{staticClass:"flex items-center justify-start py-4 space-y-4 text-left"},[z("img",{staticClass:"block h-6 w-6 mr-1",attrs:{src:b(9756),alt:"Loader Gif"}}),z("p",{staticClass:"text-gray-600 text-sm whitespace-pre-wrap text-left"},[M._v(" "+M._s(M.typedMessage)+" "),M.showCursor?z("span",{staticClass:"animate-blink"},[M._v("|")]):M._e()])])])])},n=[function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex justify-center"},[z("img",{attrs:{src:b(194)}})])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex justify-center items-center pt-2 font-bold"},[z("div",[z("img",{attrs:{src:b(5091)}})]),z("strong",{staticClass:"text-background-tertiary text-xl pl-2 pr-2"},[M._v("AI Assist Activated!")]),z("div",[z("img",{attrs:{src:b(6279)}})])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"pt-2 text-left"},[z("div",{staticClass:"pt-1"},[M._v("Your submission is being reviewed for "),z("strong",[M._v("relevance, clarity, and completeness")]),M._v(". Get instant insights to refine your work!")]),z("div",{staticClass:"pt-2 text-background-tertiary font-bold text-left"},[M._v("How It Works:")]),z("ul",{staticClass:"pt-1 list-disc pl-5"},[z("li",{staticClass:"pt-1 !text-background-secondary"},[M._v("AI provides feedback based on task objectives.")]),z("li",{staticClass:"pt-1 !text-background-secondary"},[M._v("You can "),z("strong",[M._v("revise your submission or proceed to peer review")])])])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"pt-2 italic text-left"},[z("div",[z("span",{staticClass:"text-background-tertiary"},[M._v("Disclaimer:")]),M._v(" AI-generated feedback is a guidance tool and may have its own biases.")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("img",{attrs:{src:b(3886)}})])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("img",{attrs:{src:b(3244)}})])}],e=(0,A.defineComponent)({name:"AILoader",props:{stat:{type:Object,required:!0}},setup(){const M=["Thinking deeply...","Analyzing context...","Generating insights...","Polishing response...","Finalizing thoughts..."],z=(0,A.ref)(""),b=(0,A.ref)(!0);let p=0,O=0;function c(){const b=M[p];O<b.length?(z.value+=b[O++],setTimeout(c,50)):setTimeout((()=>{p=(p+1)%M.length,O=0,z.value="",c()}),3e3)}return(0,A.onMounted)((()=>{c(),setInterval((()=>{b.value=!b.value}),500)})),{typedMessage:z,showCursor:b}}}),i=e,L=b(1001),f=(0,L.Z)(i,R,n,!1,null,"edd982f2",null),r=f.exports,B=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center fixed z-50 w-full h-full bg-opacity-70 bg-black -translate-x-1/2 left-1/2 -translate-y-1/2 top-1/2"},[z("div",{staticClass:"max-w-sm w-full mx-auto p-6 bg-white shadow-xl rounded-2xl"},[z("h2",{staticClass:"text-2xl font-semibold mb-4"},[M._v("Your Feedback")]),z("h3",{staticClass:"text-sm font-medium mb-4"},[M._v("Thank you for using AI Assist. Was the submission feedback helpful? Share your valuable input.")]),z("div",{staticClass:"flex items-center justify-center space-x-6 mb-4"},M._l(5,(function(b){return z("button",{key:b,staticClass:"focus:outline-none",on:{click:function(z){return M.setRating(b)},mouseenter:function(z){M.hoverRating=b},mouseleave:function(z){M.hoverRating=0}}},[z("svg",{class:[(M.hoverRating||M.internalRating)>=b?"text-[#FFAD28]":"text-gray-300","w-8 h-8 transition-colors"],attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}},[z("path",{attrs:{d:"M12 .587l3.668 7.568 8.332 1.151-6.064 5.943 1.464 8.251L12 18.896l-7.4 4.604 1.464-8.251L0 9.306l8.332-1.151z"}})])])})),0),z("p",{staticClass:"text-sm text-gray-500 pb-2"},[M._v("Rating: "+M._s(M.internalRating)+" / 5")]),z("textarea",{directives:[{name:"model",rawName:"v-model",value:M.internalComment,expression:"internalComment"}],staticClass:"w-full p-3 border rounded-xl focus:ring-2 focus:ring-background-secondary focus:outline-none resize-none",attrs:{rows:"4",placeholder:"Your Message..."},domProps:{value:M.internalComment},on:{input:function(z){z.target.composing||(M.internalComment=z.target.value)}}}),z("button",{staticClass:"inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 disabled:!bg-gray-500 disabled:cursor-not-allowed bg-background-secondary",attrs:{disabled:M.internalRating<=0},on:{click:M.submitReview}},[M._v(" Submit ")])])])},t=[],u=(0,A.defineComponent)({name:"StarRating",props:{rating:{type:Number,required:!0},comment:{type:String,required:!0}},emits:["update:rating","update:comment","submitRating"],setup(M,{emit:z}){const b=(0,A.ref)(M.rating),p=(0,A.ref)(M.comment),O=(0,A.ref)(0),c=M=>{b.value=M},q=()=>{z("submitRating")};return(0,A.watch)(b,(M=>{z("update:rating",M)})),(0,A.watch)(p,(M=>{z("update:comment",M)})),{internalRating:b,internalComment:p,hoverRating:O,setRating:c,submitReview:q}}}),N=u,X=(0,L.Z)(N,B,t,!1,null,null,null),s=X.exports,l=b(1602),T=b.n(l),m=b(1496),g=b(7881),E=b.n(g),C=(0,A.defineComponent)({name:"LearnerSubmitTask",components:{XIcon:c.b0D,ErrorMessage:d.Z,Greetings:a.Z,AILoader:r,StarRating:s},props:{query:{type:Object,default:()=>({})}},setup(M){const z=(0,A.ref)(),b=(0,A.ref)(M.query.learner_task_id),p=(0,A.ref)(M.query.program_id),O=(0,A.ref)(localStorage.getItem("skillId")),c=(0,A.ref)(localStorage.getItem("profId")),d=(0,A.ref)(localStorage.getItem("skillName")),a=(0,A.ref)(localStorage.getItem("proficiency")),R=(0,A.ref)(localStorage.getItem("helpmateLink")),n=(0,A.ref)(!1),e=(0,A.ref)(),i=(0,A.ref)(0),L=(0,A.ref)(""),f=(0,A.ref)(),r=(0,A.ref)(),B=(0,A.ref)(),t=(0,A.ref)(),u=(0,A.ref)(),N=(0,A.ref)(!1),X=(0,A.ref)(null),s=(0,A.ref)(),l=(0,A.ref)(),g=(0,A.ref)(),C=(0,A.ref)(!0),v=(0,A.ref)([]),S=(0,A.ref)(),h=(0,A.ref)(),k=(0,A.ref)(0),D=(0,A.ref)(),P=(0,A.ref)(!1),y=(0,A.ref)(),w=(0,A.ref)(!1),_=(0,A.ref)(),x=(0,A.ref)(),U=(0,A.ref)(),I=(0,A.ref)(0),Q=(0,A.ref)(100),F=(0,A.ref)(""),G=(0,A.ref)(!1),H=(0,A.ref)(localStorage.getItem("learning_path_id")),K=(0,A.ref)(localStorage.getItem("learning_content_id"));let j=null;const V=()=>{console.log("fetchMinimumWordLength is called"),"Beginner"===a.value&&(Q.value=150),"Intermediate"===a.value&&(Q.value=250),"Proficient"===a.value&&(Q.value=350),"Expert"===a.value&&(Q.value=350)},J=(0,A.computed)((()=>{const M=X.value?.name?.split(".")?.pop()?.toLowerCase();return"doc"===M||"docx"===M||"txt"===M||"pdf"===M||"Mobile"===t.value})),Y=M=>{I.value=M.split(" ").filter((M=>""!==M)).length,C.value=I.value<Q.value},Z=async()=>{k.value+=1,console.log(`before ${l.value}`),l.value=null,C.value=!0,console.log(`after ${l.value}`)},$=()=>N.value&&u.value&&v.value.length<4?(P.value=!0,h.value="Please confirm that you abide by the above statements",void setTimeout((()=>{h.value=null}),6e3)):N.value&&u.value||1===v.value.length?void(f.value?.taskDetails?.genAiAssistEnabled&&f.value?.genAiAssistDetails?.length>0?G.value=!0:zM("submit_task")):(P.value=!0,h.value="Please confirm that you abide by the above statements",void setTimeout((()=>{h.value=null}),6e3)),MM=async M=>{try{if(X.value=M.target.files[0],X.value){l.value=M.target.files[0].name;const z=M.target.files[0].size/1024/1024;X.value&&(C.value=!1),z>200&&(s.value="Uploaded filesize is greater than 200 MB",setTimeout((()=>{s.value=null}),6e3),C.value=!0)}}catch(z){if(console.log(z),P.value=!0,W.Z.isAxiosError(z)){const M=z;y.value=M.response?.data?.message}else y.value="Something went wrong, please contact helpmate.";w.value=!0}},zM=async M=>{try{if("ai_assist"!==M&&(P.value=!1),console.log("plagiarismcb",v),N.value&&u.value&&v.value.length<4)return P.value=!0,h.value="Please confirm that you will abide by the above statements",void setTimeout((()=>{h.value=null}),6e3);if((!N.value||!u.value)&&1!==v.value.length)return P.value=!0,h.value="Please confirm that you will abide by the above statements",void setTimeout((()=>{h.value=null}),6e3);if(l.value){if("ai_assist"===M&&f.value?.taskDetails?.genAiAssistMaxAttempts-f.value?.genAiAssistDetails?.length<=0)return;"ai_assist"===M&&(n.value=!0);const A={learner_submission:l.value.trim(),learner_task_id:b.value,skill:O.value,proficiency:c.value,linked_program_name:p.value,task_type:t.value,linked_task_id:z.value,assinged_reviewer_count:0};let o;if("Desktop"===t.value){const z=await(0,q.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:l.value,learner_task_id:b.value}),p=z.data;g.value=p.preSignedUrl;const O=await(0,q.sc)(g.value,X.value);if(200===O.status){if("ai_assist"===M)return void await pM({learner_submission:l.value,learner_task_id:b.value});o=await bM(A)}else P.value=!0,y.value="There is issue in the file upload, please contact with helpmate.",w.value=!0}else{if("ai_assist"===M)return void await pM({learner_submission:l.value.trim(),learner_task_id:b.value});o=await bM(A)}200===o.status?(console.log(o),"Please upload non empty file"===o.data.message?(F.value=`The submission does not meet the minimum task word limit of ${Q.value} words. Please upload a valid submission.`,Z(),setTimeout((()=>{F.value=""}),6e3),P.value=!0):m.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:A.learner_task_id}}),"Learner on hold"===o.data.message&&(console.log("learner on hold submit task"),H.value&&K.value?m.Z.push({path:"/solidify",query:{skill_id:O.value,proficiency_id:c.value,program_id:p.value}}):m.Z.push({path:"/solidify",query:{learning_path_id:H.value,learning_content_id:K.value}}))):(P.value=!0,y.value="There is some issue while submitting learner submission, please contact with helpmate.",w.value=!0)}else"Mobile"===t.value?(P.value=!0,l.value||(s.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{s.value=null}),6e3))):"Desktop"===t.value&&(P.value=!0,console.log(`learnerSubmission.value ${l.value}`),l.value||(s.value="please select File",setTimeout((()=>{s.value=null}),6e3)))}catch(A){if(P.value=!0,console.log(`error ${A}`),W.Z.isAxiosError(A)){const M=A;y.value=M.response?.data?.message}else y.value="There is some issue while submitting learner submission, please contact with helpmate.";w.value=!0}},bM=async M=>{let z=M;f.value?.taskDetails?.genAiAssistEnabled&&f.value?.genAiAssistDetails?.length>0&&(z={...M,genAiAssistLearnerFeedbackRating:i.value?.toString(),genAiAssistLearnerFeedbackComment:L.value});const b=await(0,q.rC)("/v1/uploadLearnerSubmission",z);return b},pM=async({learner_submission:M,learner_task_id:z})=>{if(J.value){e.value=null;try{const b=await(0,q.t$)("/v1/uploadLearnerSubmission?submission_type=invoke_gen_ai_assist",{learner_submission:M,learner_task_id:z});200===b.status?j=setInterval((async()=>{try{const M=await(0,q.JV)("/v1/uploadLearnerSubmission?submission_type=fetch_gen_ai_assist",{learner_task_id:z,prompt_execution_id:b?.data?.data?.prompt_execution_id});if(Object.keys(M?.data?.data?.gen_ai_assist)?.length){clearInterval(j),e.value=M?.data?.data?.gen_ai_assist,n.value=!1;const z=E().tz.guess(),b=await(0,o.zn)("/learner/journey/stat",{learning_path_id:H.value,learning_content_id:K.value,timezone:z,skill:O.value,proficiency:c.value,program_id:p.value});f.value=b.data}}catch(M){console.error("Polling error:",M.message),n.value=!1,j&&clearInterval(j)}}),2e3):b.data.message&&(console.log("Message =>",b),n.value=!1,j&&clearInterval(j))}catch(b){n.value=!1,j&&clearInterval(j)}}},OM=async()=>{try{P.value=!1,console.log("Learner Status",D.value),"Registered"!==D.value?(P.value=!0,console.log(`inside if ${D.value}`),y.value="Learner Status is not registered.",w.value=!0):(console.log("focus here",H.value),H.value&&K.value?m.Z.push({name:"SolidifyLearnerSelectTask",query:{learning_path_id:H.value,learning_content_id:K.value}}):m.Z.push({name:"SolidifyLearnerSelectTask",query:{skill_id:O.value,proficiency_id:c.value,program_id:p.value}}))}catch(M){if(P.value=!0,W.Z.isAxiosError(M)){const z=M;y.value=z.response?.data?.message}else y.value="There is an issue with the switching, please contact with helpmate.";w.value=!0}},AM=async()=>{try{if(P.value=!1,"Registered"!==D.value)P.value=!0,y.value="Learner Status is not registered.",w.value=!0;else{const M=await(0,q.ie)("/v1/restartLearnerJourney",b.value);console.log("restartLearnerJourney",M);const z='your task was removed successfully, you can restart journey again from <a href="https://genome.genpact.com/#Myplan" target="_blank" class="text-background-secondary"><strong>MyPlan</strong></a>';M?(localStorage.setItem("message",z),m.Z.push({name:"SolidifyLearnerStatus",query:{isPerformReviewVisible:"no",isProxyReview:"no",showChevron:"no"}})):(P.value=!0,y.value="There is an issue in the restart Journey, please contact helpmate.",w.value=!0)}}catch(M){if(P.value=!0,console.log(M),W.Z.isAxiosError(M)){const z=M;y.value=z.response?.data?.message}else y.value="There is an issue in the restart Journey, please contact with helpmate.";w.value=!0}},cM=M=>{P.value=!1,console.log(`task data ${JSON.stringify(M)}`);const b=M;P.value=!0,b?(z.value=b.task_id,t.value=b.task_type,r.value=b.task_name,B.value=b.description,O.value=b.skill,c.value=b.proficiency,u.value=!0===b.checkForPlagiarism):(y.value="There is an issue to fetch task, please contact helpmate.",w.value=!0)};return(0,A.onBeforeMount)((async()=>{try{P.value=!1,_.value=localStorage.getItem("programName"),U.value=localStorage.getItem("reviewerAssignmentStrategy"),x.value=localStorage.getItem("taskAssignmentStrategy");const M=E().tz.guess(),z=await(0,o.zn)("/learner/journey/stat",{learning_path_id:H.value,learning_content_id:K.value,timezone:M,skill:O.value,proficiency:c.value,program_id:p.value}),A=z.data;f.value=z.data,cM(A.taskDetails),"infinity"===_.value&&V(),N.value=!0===A.program_details.plagiarism_enabled,P.value=!0,A.learnerData&&(A.learnerData.technical_hold&&(console.log("learner on hold select task"),H.value&&K.value?m.Z.push({path:"/solidify",query:{learning_path_id:H.value,learning_content_id:K.value}}):m.Z.push({path:"/solidify",query:{skill_id:O.value,proficiency_id:c.value,program_id:p.value}})),console.log(`learner Data value ${JSON.stringify(A.learnerData)}`),console.log(`learnerStatus value ${A.learnerData.learner_status}`),D.value=A.learnerData.learner_status,b.value=A.learnerData.learner_task_id,"Need Reviewer and Need Reviewee"===A.learnerData.learner_status||"Need Reviewee"===A.learnerData.learner_status?m.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:A.learnerData.learner_task_id}}):"Need Reviewer"!==A.learnerData.learner_status&&"Passed"!==A.learnerData.learner_status||m.Z.push({name:"SolidifyLearnerDone",query:{learner_task_id:b.value}}))}catch(M){if(P.value=!0,W.Z.isAxiosError(M)){const z=M;y.value=z.response?.data?.message}else y.value="There is an issue to fetch existing record, please contact with helpmate.";w.value=!0}})),(0,A.onUnmounted)((()=>{j&&clearInterval(j)})),{stat:f,genAIPromptResp:e,loadingGenAIResponse:n,isEligibleForAIAssist:J,learnerSubmissionFile:X,reviewPopupOpened:G,proceedToReview:$,skillName:d,profName:a,skillId:O,proficiencyId:c,programId:p,taskType:t,taskName:r,taskDesc:B,userRating:i,userComment:L,submitSubmiision:zM,learnerSubmission:l,selectedFile:MM,fileValidationMsg:s,restart:AM,switchTask:OM,learnerTaskId:b,preSignedUrl:g,buttonDisable:C,validationError:S,clearFile:Z,fileInputKey:k,helpmateLink:R,learnerStatus:D,renderReady:P,errorResponse:y,showErrorMessage:w,plagiarismcb:v,palgiarismErrorMsg:h,programName:_,taskAssignmentStrategy:x,reviewerAssignmentStrategy:U,checkForPlagiarismTaskLevel:u,checkForPlagiarismProgramLevel:N,checkQuestionLength:Y,questionWordCount:I,submissionError:F,moment:T(),minimumWordLength:Q,learning_path_id:H,learning_content_id:K}}}),v=C,S=(0,L.Z)(v,p,O,!1,null,"711f47cf",null),h=S.exports},568:function(M,z,b){"use strict";b.d(z,{JV:function(){return d},ie:function(){return q},rC:function(){return o},sc:function(){return A},t$:function(){return W},ux:function(){return O},yW:function(){return c}});var p=b(7129);const O=async(M,z)=>{const b=await p.Z.post(M,z);return b},A=async(M,z)=>{let b;const p=await fetch(`${M}`,{method:"put",body:z});return b=p,b},c=async M=>{const z=await p.Z.get(`/task/${M}`);return z},q=async(M,z)=>{const b=await p.Z.post(M,{learner_task_id:z});return b},o=async(M,z)=>{const b=await p.Z.post(M,z);return b},W=async(M,z)=>{const b=await p.Z.post(M,z);return b},d=async(M,z)=>await p.Z.post(M,z)},4654:function(M,z,b){"use strict";b.d(z,{hZ:function(){return A},n2:function(){return O},zn:function(){return c}});var p=b(7129);const O=async(M,z)=>{const b=await p.Z.post(M,z);return b},A=async(M,z)=>{const b=await p.Z.post(M,z);return b},c=async(M,z)=>{const b=await p.Z.post(M,z);return b}},7881:function(M,z,b){var p=M.exports=b(8158);p.tz.load(b(1128))},8158:function(M,z,b){var p,O,A;b(7658),
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[612],{4735:function(M,z,b){"use strict";b.d(z,{Z:function(){return d}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex"},[z("div",{staticClass:"w-full pt-16 px-32"},[z("div",{staticClass:"md:px-0 lg:px-0 text-center"},[z("div",{staticClass:"text-gray-500"},[z("div",{staticClass:"pt-2",domProps:{innerHTML:M._s(M.errorMsg)}})]),z("div",{staticClass:"pt-8"},[z("a",{attrs:{href:M.helpmateLink,target:"_blank"}},[z("img",{staticClass:"mx-auto",attrs:{src:b(6540)}})])])])])])},O=[],A=b(7203),c=(0,A.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(M){const z=(0,A.ref)(""),b=(0,A.ref)(localStorage.getItem("helpmateLink"));return(0,A.onBeforeMount)((async()=>{z.value=M.errorMessage})),{errorMsg:z,helpmateLink:b}}}),q=c,o=b(1001),W=(0,o.Z)(q,p,O,!1,null,null,null),d=W.exports},2381:function(M,z,b){"use strict";b.d(z,{Z:function(){return d}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center"},[z("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full"},[M.learning_content_display_name?z("span",[M._v(" "+M._s(M.learning_content_display_name)+" ")]):z("span",["infinity"===M.program?z("span",[M._v(M._s(M.proficiency)+" - ")]):M._e(),M._v(M._s(M.skill))])]),z("div",{staticClass:"my-2 md:order-2 order-1 w-full"},[z("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[M._v("Hi, "+M._s(M.username))])])])},O=[],A=b(7203),c=(0,A.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""},learning_content_display_name:{type:String,default:""}},setup(){const M=(0,A.ref)("");return(0,A.onBeforeMount)((async()=>{const z=localStorage.getItem("userName")||"Learner";M.value=z.split(",").reverse().join(" ")})),{username:M}}}),q=c,o=b(1001),W=(0,o.Z)(q,p,O,!1,null,null,null),d=W.exports},2934:function(M,z,b){"use strict";b.r(z),b.d(z,{default:function(){return h}});var p=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[M.loadingGenAIResponse?z("AILoader",{attrs:{stat:M.stat},on:{closeAIPopup:()=>M.loadingGenAIResponse=!1}}):M._e(),M.reviewPopupOpened?z("StarRating",{attrs:{rating:M.userRating,comment:M.userComment},on:{"update:comment":z=>M.userComment=z,"update:rating":z=>M.userRating=z,submitRating:()=>{M.submitSubmiision("submit_task"),M.reviewPopupOpened=!1}}}):M._e(),M.renderReady?[M.showErrorMessage?M._e():[z("div",{staticClass:"flex"},[z("div",{staticClass:"w-full pt-12"},[z("Greetings",{attrs:{program:M.programId,proficiency:M.profName,skill:M.skillName,learning_content_display_name:M.learning_content_display_name}}),z("div",{staticClass:"flex md:flex mt-6 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0"},[z("div",{staticClass:"ul-nav w-full"},[z("ul",[z("li",{staticClass:"active"},[M._v("Home")]),z("li",{staticClass:"active"},[M._v("Task")]),z("li",{staticClass:"active"},[M._v("Submit")]),"Auto assign reviewer (reviewer task to be different)"===M.reviewerAssignmentStrategy||"Auto assign reviewer based on skill and proficiency"===M.reviewerAssignmentStrategy?z("li",[M._v("Peer Reviews")]):M._e(),z("li",[M._v("Under Review")]),z("li",[M._v("Done!")])])])]),z("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 mt-1 text-sm"},[z("div",{staticClass:"block mt-4 mb-4"},[M.submissionError?z("div",{staticClass:"w-full px-3 text-center mt-4 bg-red-400 py-2 text-white"},[M._v(" "+M._s(M.submissionError)+" ")]):M._e(),z("div",{staticClass:"text-gray-600"},[z("div",{staticClass:"p-4 mb-6 rounded-lg shadow border border-gray-200"},[z("p",{staticClass:"pt-2"},[z("strong",[M._v(M._s(M.taskName))])]),z("div",{staticClass:"mt-2 rich-text-formatter",domProps:{innerHTML:M._s(M.taskDesc)}})]),"Desktop"===M.taskType?z("div",{staticClass:"p-4 mb-6 rounded-lg shadow border border-gray-200"},["Desktop"===M.taskType?z("div",[M._m(0),z("p",{staticClass:"pt-1"},[M._v("Accepted Formats: Upload a single Word, Pdf, Excel, or PPT file with a minimum of "+M._s(M.minimumWordLength)+" words.")]),z("p",{staticClass:"pt-1"},[M._v("Max Size: 200MB")]),z("p",{staticClass:"pt-1"},[M._v("Language: English only")]),z("div",{staticClass:"flex items-center gap-2 pt-2",staticStyle:{"max-width":"250px"}},[z("input",{key:M.fileInputKey,staticStyle:{width:"80%"},attrs:{type:"file"},on:{change:M.selectedFile}}),M.learnerSubmission?z("x-icon",{attrs:{size:"1.5x"},on:{click:function(z){return M.clearFile()}}}):M._e()],1)]):M._e(),"Desktop"===M.taskType&&M.stat?.taskDetails?.genAiAssistEnabled?z("div",{staticClass:"text-xs italic mt-2 -mb-2 text-background-tertiary"},[M._v(" Note: To enable AI Assist for uploaded task, please upload only .doc/ .docx/ .txt/ .pdf file. ")]):M._e()]):M._e(),"Mobile"===M.taskType?z("div",{staticClass:"mb-6"},[z("textarea",{directives:[{name:"model",rawName:"v-model",value:M.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-gray-300 rounded-lg ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Type your text here..."},domProps:{value:M.learnerSubmission},on:{keyup:function(z){return M.checkQuestionLength(M.learnerSubmission)},input:function(z){z.target.composing||(M.learnerSubmission=z.target.value)}}}),z("div",[M.questionWordCount<M.minimumWordLength?z("div",{staticClass:"text-red-700"},[M._v("(Minimum "+M._s(M.minimumWordLength)+" words required. "+M._s(M.questionWordCount)+"/"+M._s(M.minimumWordLength)+")")]):M._e()])]):M._e(),M.fileValidationMsg?z("span",{staticClass:"text-red-700"},[M._v(M._s(M.fileValidationMsg))]):M._e(),z("div",{staticClass:"p-4 mb-6 rounded-lg shadow border border-gray-200"},[M._m(1),M.checkForPlagiarismProgramLevel&&M.checkForPlagiarismTaskLevel?z("div",[z("ul",{staticClass:"pt-2 pl-8"},[z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check0",value:"check0"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check0")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check0",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-red-700 font-bold ml-1"},[M._v("*")]),M._v(" This is my original work, based on personal research and not copied from others (including colleagues or online sources). ")])])]),z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check1",value:"check1"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check1")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check1",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-red-700 font-bold ml-1"},[M._v("*")]),M._v(" No client or Genpact confidential information has been included. ")])])]),z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check2",value:"check2"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check2")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check2",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-red-700 font-bold ml-1"},[M._v("*")]),M._v(" I’ve checked for plagiarism using tools like "),M._m(2),M._v(" or "),M._m(3),M._v(" and found no significant matches. ")])])]),z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check3",value:"check3"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check3")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check3",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-red-700 font-bold ml-1"},[M._v("*")]),M._v("I understand that plagiarism is a violation of Genpact’s Code of Conduct and may result in unsuccessful completion of Solidify and/or disciplinary action. ")])])]),z("li",[M.palgiarismErrorMsg?z("span",{staticClass:"text-red-700"},[M._v(M._s(M.palgiarismErrorMsg))]):M._e()])]),M._m(4)]):z("div",[z("ul",{staticClass:"pt-2 pl-8"},[z("li",[z("div",{staticClass:"mt-3"},[z("label",[z("input",{directives:[{name:"model",rawName:"v-model",value:M.plagiarismcb,expression:"plagiarismcb"}],attrs:{type:"checkbox",id:"check0",value:"check0"},domProps:{checked:Array.isArray(M.plagiarismcb)?M._i(M.plagiarismcb,"check0")>-1:M.plagiarismcb},on:{change:function(z){var b=M.plagiarismcb,p=z.target,O=!!p.checked;if(Array.isArray(b)){var A="check0",c=M._i(b,A);p.checked?c<0&&(M.plagiarismcb=b.concat([A])):c>-1&&(M.plagiarismcb=b.slice(0,c).concat(b.slice(c+1)))}else M.plagiarismcb=O}}}),M._v(" "),z("span",{staticClass:"text-red-700 font-bold ml-1"},[M._v("*")]),M._v(" I hereby certify that this task submission does not contain/ use any client/ Genpact confidential materials.")])])])]),M.palgiarismErrorMsg?z("span",{staticClass:"text-red-700"},[M._v(M._s(M.palgiarismErrorMsg))]):M._e()])]),M.genAIPromptResp||M.stat?.genAiAssistDetails?.[0]?.genai_evaluation_comment?z("div",{staticClass:"flex w-full h-auto p-4"},[z("div",{staticClass:"flex flex-col relative bg-gray-200 w-full lg:w-2/3 h-auto mx-4 mt-5 p-4 pl-12 rounded-xl"},[M.genAIPromptResp?z("div",[z("div",{staticClass:"font-medium text-black whitespace-pre-line"},[M._v(" "+M._s(M.genAIPromptResp?.genai_evaluation_comment)+" ")]),z("div",{staticClass:"font-medium text-black italic text-xs mt-2"},[M._v("Submitted On: "+M._s(M.moment(M.genAIPromptResp?.created_date).format("DD MMM YYYY | hh:mm a")))]),z("div",{staticClass:"font-medium text-black italic text-xs mt-0.5"},[M._v("Attempts Left: "+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length)+"/"+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts))])]):z("div",[z("div",{staticClass:"font-medium text-black whitespace-pre-line"},[M._v(" "+M._s(M.stat?.genAiAssistDetails?.[0]?.genai_evaluation_comment)+" ")]),z("div",{staticClass:"font-medium text-black italic text-xs mt-2"},[M._v("Submitted On: "+M._s(M.moment(M.stat?.genAiAssistDetails?.[0]?.created_date).format("DD MMM YYYY | hh:mm a")))]),z("div",{staticClass:"font-medium text-black italic text-xs mt-0.5"},[M._v("Attempts Left: "+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length)+"/"+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts))])]),M._m(5)])]):M._e()])]),z("div",{staticClass:"block text-center pt-2"},[M._m(6),z("div",{staticClass:"mb-4 text-center space-x-4"},["infinity"===M.programId?z("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:M.switchTask}},[M._v(" Select Different Task ")]):M._e(),M.stat?.taskDetails?.genAiAssistEnabled?z("button",{staticClass:"inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 disabled:!bg-gray-500 disabled:cursor-not-allowed bg-background-tertiary",attrs:{disabled:M.buttonDisable||!M.isEligibleForAIAssist||M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length<=0},on:{click:function(z){return M.submitSubmiision("ai_assist")}}},[M._v(" AI Assist ")]):M._e(),z("button",{staticClass:"inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 disabled:!bg-gray-500 disabled:cursor-not-allowed bg-background-secondary",attrs:{disabled:M.buttonDisable},on:{click:function(z){return M.proceedToReview()}}},[M._v(" Submit Task ")]),"infinity"===M.programId?z("button",{staticClass:"inline-block mt-2 py-2 px-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(z){return M.restart()}}},[M._v(" Restart Solidify ")]):M._e()])])])],1)])],M.showErrorMessage?z("ErrorMessage",{attrs:{"error-message":M.errorResponse}}):M._e()]:M._e(),M.renderReady?M._e():z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[z("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:b(9756),alt:"Loader Gif"}}),z("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[M._v("Loading...")])])],2)},O=[function(){var M=this,z=M._self._c;M._self._setupProxy;return z("p",{staticClass:"pt-2"},[z("strong",[M._v("File Upload Instructions ")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("p",[z("strong",[M._v("By submitting, I certify that:")])])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("strong",[z("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[M._v("Plagiarismdetector")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("strong",[z("a",{staticClass:"underline",attrs:{href:"https://papersowl.com/free-plagiarism-checker",target:"_blank"}},[M._v("Papersowl")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"mt-7"},[z("p",[z("strong",[z("a",{staticClass:"underline",attrs:{href:"https://dcl.genpact.com/media/9d86bd58-3669-41c5-bc28-aad72efdf964",target:"blank"}},[M._v("Watch this short video")])]),M._v(" to learn why originality matters and how to avoid plagiarism. ")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"absolute -left-8 -bottom-3 bg-genome-v6 w-16 h-16 rounded-full flex items-center justify-center"},[z("img",{staticClass:"bg-center bg-contain bg-no-repeat block w-10",attrs:{src:b(8768)}})])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("p",{staticClass:"text-xl"},[z("em",[M._v("Do Not Click the Browser Back Button")])])])}],A=(b(7658),b(7203)),c=b(4856),q=b(568),o=b(4654),W=b(306),d=b(4735),a=b(2381),R=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center fixed z-50 w-full h-full bg-opacity-70 bg-black -translate-x-1/2 left-1/2 -translate-y-1/2 top-1/2"},[z("div",{staticClass:"relative mx-auto px-8 py-4 bg-white text-background-secondary w-full md:w-1/2"},[z("button",{staticClass:"absolute right-0 mx-3",on:{click:function(z){return M.$emit("closeAIPopup")}}},[z("svg",{staticClass:"lucide-icon lucide lucide-x h-4 w-4",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[z("path",{attrs:{d:"M18 6 6 18"}}),z("path",{attrs:{d:"m6 6 12 12"}})])]),M._m(0),M._m(1),M._m(2),M._m(3),z("div",{staticClass:"flex justify-center items-center pt-2 font-bold"},[M._m(4),z("div",{staticClass:"text-background-tertiary text-xl pl-2 pr-2 italic"},[M._v(" Attempts Left: ["+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts-M.stat?.genAiAssistDetails?.length-1)+"/"+M._s(M.stat?.taskDetails?.genAiAssistMaxAttempts)+"] - Make the most of it! ")]),M._m(5)]),z("div",{staticClass:"flex items-center justify-start py-4 space-y-4 text-left"},[z("img",{staticClass:"block h-6 w-6 mr-1",attrs:{src:b(9756),alt:"Loader Gif"}}),z("p",{staticClass:"text-gray-600 text-sm whitespace-pre-wrap text-left"},[M._v(" "+M._s(M.typedMessage)+" "),M.showCursor?z("span",{staticClass:"animate-blink"},[M._v("|")]):M._e()])])])])},n=[function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex justify-center"},[z("img",{attrs:{src:b(194)}})])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex justify-center items-center pt-2 font-bold"},[z("div",[z("img",{attrs:{src:b(5091)}})]),z("strong",{staticClass:"text-background-tertiary text-xl pl-2 pr-2"},[M._v("AI Assist Activated!")]),z("div",[z("img",{attrs:{src:b(6279)}})])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"pt-2 text-left"},[z("div",{staticClass:"pt-1"},[M._v("Your submission is being reviewed for "),z("strong",[M._v("relevance, clarity, and completeness")]),M._v(". Get instant insights to refine your work!")]),z("div",{staticClass:"pt-2 text-background-tertiary font-bold text-left"},[M._v("How It Works:")]),z("ul",{staticClass:"pt-1 list-disc pl-5"},[z("li",{staticClass:"pt-1 !text-background-secondary"},[M._v("AI provides feedback based on task objectives.")]),z("li",{staticClass:"pt-1 !text-background-secondary"},[M._v("You can "),z("strong",[M._v("revise your submission or proceed to peer review")])])])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"pt-2 italic text-left"},[z("div",[z("span",{staticClass:"text-background-tertiary"},[M._v("Disclaimer:")]),M._v(" AI-generated feedback is a guidance tool and may have its own biases.")])])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("img",{attrs:{src:b(3886)}})])},function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",[z("img",{attrs:{src:b(3244)}})])}],e=(0,A.defineComponent)({name:"AILoader",props:{stat:{type:Object,required:!0}},setup(){const M=["Thinking deeply...","Analyzing context...","Generating insights...","Polishing response...","Finalizing thoughts..."],z=(0,A.ref)(""),b=(0,A.ref)(!0);let p=0,O=0;function c(){const b=M[p];O<b.length?(z.value+=b[O++],setTimeout(c,50)):setTimeout((()=>{p=(p+1)%M.length,O=0,z.value="",c()}),3e3)}return(0,A.onMounted)((()=>{c(),setInterval((()=>{b.value=!b.value}),500)})),{typedMessage:z,showCursor:b}}}),i=e,L=b(1001),f=(0,L.Z)(i,R,n,!1,null,"edd982f2",null),r=f.exports,B=function(){var M=this,z=M._self._c;M._self._setupProxy;return z("div",{staticClass:"flex flex-col h-min-screen justify-center text-center fixed z-50 w-full h-full bg-opacity-70 bg-black -translate-x-1/2 left-1/2 -translate-y-1/2 top-1/2"},[z("div",{staticClass:"max-w-sm w-full mx-auto p-6 bg-white shadow-xl rounded-2xl"},[z("h2",{staticClass:"text-2xl font-semibold mb-4"},[M._v("Your Feedback")]),z("h3",{staticClass:"text-sm font-medium mb-4"},[M._v("Thank you for using AI Assist. Was the submission feedback helpful? Share your valuable input.")]),z("div",{staticClass:"flex items-center justify-center space-x-6 mb-4"},M._l(5,(function(b){return z("button",{key:b,staticClass:"focus:outline-none",on:{click:function(z){return M.setRating(b)},mouseenter:function(z){M.hoverRating=b},mouseleave:function(z){M.hoverRating=0}}},[z("svg",{class:[(M.hoverRating||M.internalRating)>=b?"text-[#FFAD28]":"text-gray-300","w-8 h-8 transition-colors"],attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}},[z("path",{attrs:{d:"M12 .587l3.668 7.568 8.332 1.151-6.064 5.943 1.464 8.251L12 18.896l-7.4 4.604 1.464-8.251L0 9.306l8.332-1.151z"}})])])})),0),z("p",{staticClass:"text-sm text-gray-500 pb-2"},[M._v("Rating: "+M._s(M.internalRating)+" / 5")]),z("textarea",{directives:[{name:"model",rawName:"v-model",value:M.internalComment,expression:"internalComment"}],staticClass:"w-full p-3 border rounded-xl focus:ring-2 focus:ring-background-secondary focus:outline-none resize-none",attrs:{rows:"4",placeholder:"Your Message..."},domProps:{value:M.internalComment},on:{input:function(z){z.target.composing||(M.internalComment=z.target.value)}}}),z("button",{staticClass:"inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 disabled:!bg-gray-500 disabled:cursor-not-allowed bg-background-secondary",attrs:{disabled:M.internalRating<=0},on:{click:M.submitReview}},[M._v(" Submit ")])])])},t=[],u=(0,A.defineComponent)({name:"StarRating",props:{rating:{type:Number,required:!0},comment:{type:String,required:!0}},emits:["update:rating","update:comment","submitRating"],setup(M,{emit:z}){const b=(0,A.ref)(M.rating),p=(0,A.ref)(M.comment),O=(0,A.ref)(0),c=M=>{b.value=M},q=()=>{z("submitRating")};return(0,A.watch)(b,(M=>{z("update:rating",M)})),(0,A.watch)(p,(M=>{z("update:comment",M)})),{internalRating:b,internalComment:p,hoverRating:O,setRating:c,submitReview:q}}}),N=u,X=(0,L.Z)(N,B,t,!1,null,null,null),s=X.exports,l=b(1602),T=b.n(l),m=b(1496),g=b(7881),E=b.n(g),C=(0,A.defineComponent)({name:"LearnerSubmitTask",components:{XIcon:c.b0D,ErrorMessage:d.Z,Greetings:a.Z,AILoader:r,StarRating:s},props:{query:{type:Object,default:()=>({})}},setup(M){const z=(0,A.ref)(),b=(0,A.ref)(M.query.learner_task_id),p=(0,A.ref)(M.query.program_id),O=(0,A.ref)(localStorage.getItem("skillId")),c=(0,A.ref)(localStorage.getItem("profId")),d=(0,A.ref)(localStorage.getItem("skillName")),a=(0,A.ref)(localStorage.getItem("learning_content_display_name")),R=(0,A.ref)(localStorage.getItem("proficiency")),n=(0,A.ref)(localStorage.getItem("helpmateLink")),e=(0,A.ref)(!1),i=(0,A.ref)(),L=(0,A.ref)(0),f=(0,A.ref)(""),r=(0,A.ref)(),B=(0,A.ref)(),t=(0,A.ref)(),u=(0,A.ref)(),N=(0,A.ref)(),X=(0,A.ref)(!1),s=(0,A.ref)(null),l=(0,A.ref)(),g=(0,A.ref)(),C=(0,A.ref)(),v=(0,A.ref)(!0),S=(0,A.ref)([]),h=(0,A.ref)(),k=(0,A.ref)(),D=(0,A.ref)(0),P=(0,A.ref)(),y=(0,A.ref)(!1),w=(0,A.ref)(),_=(0,A.ref)(!1),x=(0,A.ref)(),U=(0,A.ref)(),I=(0,A.ref)(),Q=(0,A.ref)(0),F=(0,A.ref)(100),G=(0,A.ref)(""),H=(0,A.ref)(!1),K=(0,A.ref)(localStorage.getItem("learning_path_id")),j=(0,A.ref)(localStorage.getItem("learning_content_id"));let V=null;const J=()=>{console.log("fetchMinimumWordLength is called"),"Beginner"===R.value&&(F.value=150),"Intermediate"===R.value&&(F.value=250),"Proficient"===R.value&&(F.value=350),"Expert"===R.value&&(F.value=350)},Y=(0,A.computed)((()=>{const M=s.value?.name?.split(".")?.pop()?.toLowerCase();return"doc"===M||"docx"===M||"txt"===M||"pdf"===M||"Mobile"===u.value})),Z=M=>{Q.value=M.split(" ").filter((M=>""!==M)).length,v.value=Q.value<F.value},$=async()=>{D.value+=1,console.log(`before ${g.value}`),g.value=null,v.value=!0,console.log(`after ${g.value}`)},MM=()=>X.value&&N.value&&S.value.length<4?(y.value=!0,k.value="Please confirm that you abide by the above statements",void setTimeout((()=>{k.value=null}),6e3)):X.value&&N.value||1===S.value.length?void(r.value?.taskDetails?.genAiAssistEnabled&&r.value?.genAiAssistDetails?.length>0?H.value=!0:bM("submit_task")):(y.value=!0,k.value="Please confirm that you abide by the above statements",void setTimeout((()=>{k.value=null}),6e3)),zM=async M=>{try{if(s.value=M.target.files[0],s.value){g.value=M.target.files[0].name;const z=M.target.files[0].size/1024/1024;s.value&&(v.value=!1),z>200&&(l.value="Uploaded filesize is greater than 200 MB",setTimeout((()=>{l.value=null}),6e3),v.value=!0)}}catch(z){if(console.log(z),y.value=!0,W.Z.isAxiosError(z)){const M=z;w.value=M.response?.data?.message}else w.value="Something went wrong, please contact helpmate.";_.value=!0}},bM=async M=>{try{if("ai_assist"!==M&&(y.value=!1),console.log("plagiarismcb",S),X.value&&N.value&&S.value.length<4)return y.value=!0,k.value="Please confirm that you will abide by the above statements",void setTimeout((()=>{k.value=null}),6e3);if((!X.value||!N.value)&&1!==S.value.length)return y.value=!0,k.value="Please confirm that you will abide by the above statements",void setTimeout((()=>{k.value=null}),6e3);if(g.value){if("ai_assist"===M&&r.value?.taskDetails?.genAiAssistMaxAttempts-r.value?.genAiAssistDetails?.length<=0)return;"ai_assist"===M&&(e.value=!0);const A={learner_submission:g.value.trim(),learner_task_id:b.value,skill:O.value,proficiency:c.value,linked_program_name:p.value,task_type:u.value,linked_task_id:z.value,assinged_reviewer_count:0};let o;if("Desktop"===u.value){const z=await(0,q.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:g.value,learner_task_id:b.value}),p=z.data;C.value=p.preSignedUrl;const O=await(0,q.sc)(C.value,s.value);if(200===O.status){if("ai_assist"===M)return void await OM({learner_submission:g.value,learner_task_id:b.value});o=await pM(A)}else y.value=!0,w.value="There is issue in the file upload, please contact with helpmate.",_.value=!0}else{if("ai_assist"===M)return void await OM({learner_submission:g.value.trim(),learner_task_id:b.value});o=await pM(A)}200===o.status?(console.log(o),"Please upload non empty file"===o.data.message?(G.value=`The submission does not meet the minimum task word limit of ${F.value} words. Please upload a valid submission.`,$(),setTimeout((()=>{G.value=""}),6e3),y.value=!0):m.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:A.learner_task_id}}),"Learner on hold"===o.data.message&&(console.log("learner on hold submit task"),K.value&&j.value?m.Z.push({path:"/solidify",query:{skill_id:O.value,proficiency_id:c.value,program_id:p.value}}):m.Z.push({path:"/solidify",query:{learning_path_id:K.value,learning_content_id:j.value}}))):(y.value=!0,w.value="There is some issue while submitting learner submission, please contact with helpmate.",_.value=!0)}else"Mobile"===u.value?(y.value=!0,g.value||(l.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{l.value=null}),6e3))):"Desktop"===u.value&&(y.value=!0,console.log(`learnerSubmission.value ${g.value}`),g.value||(l.value="please select File",setTimeout((()=>{l.value=null}),6e3)))}catch(A){if(y.value=!0,console.log(`error ${A}`),W.Z.isAxiosError(A)){const M=A;w.value=M.response?.data?.message}else w.value="There is some issue while submitting learner submission, please contact with helpmate.";_.value=!0}},pM=async M=>{let z=M;r.value?.taskDetails?.genAiAssistEnabled&&r.value?.genAiAssistDetails?.length>0&&(z={...M,genAiAssistLearnerFeedbackRating:L.value?.toString(),genAiAssistLearnerFeedbackComment:f.value});const b=await(0,q.rC)("/v1/uploadLearnerSubmission",z);return b},OM=async({learner_submission:M,learner_task_id:z})=>{if(Y.value){i.value=null;try{const b=await(0,q.t$)("/v1/uploadLearnerSubmission?submission_type=invoke_gen_ai_assist",{learner_submission:M,learner_task_id:z});200===b.status?V=setInterval((async()=>{try{const M=await(0,q.JV)("/v1/uploadLearnerSubmission?submission_type=fetch_gen_ai_assist",{learner_task_id:z,prompt_execution_id:b?.data?.data?.prompt_execution_id});if(Object.keys(M?.data?.data?.gen_ai_assist)?.length){clearInterval(V),i.value=M?.data?.data?.gen_ai_assist,e.value=!1;const z=E().tz.guess(),b=await(0,o.zn)("/learner/journey/stat",{learning_path_id:K.value,learning_content_id:j.value,timezone:z,skill:O.value,proficiency:c.value,program_id:p.value});r.value=b.data}}catch(M){console.error("Polling error:",M.message),e.value=!1,V&&clearInterval(V)}}),2e3):b.data.message&&(console.log("Message =>",b),e.value=!1,V&&clearInterval(V))}catch(b){e.value=!1,V&&clearInterval(V)}}},AM=async()=>{try{y.value=!1,console.log("Learner Status",P.value),"Registered"!==P.value?(y.value=!0,console.log(`inside if ${P.value}`),w.value="Learner Status is not registered.",_.value=!0):(console.log("focus here",K.value),K.value&&j.value?m.Z.push({name:"SolidifyLearnerSelectTask",query:{learning_path_id:K.value,learning_content_id:j.value}}):m.Z.push({name:"SolidifyLearnerSelectTask",query:{skill_id:O.value,proficiency_id:c.value,program_id:p.value}}))}catch(M){if(y.value=!0,W.Z.isAxiosError(M)){const z=M;w.value=z.response?.data?.message}else w.value="There is an issue with the switching, please contact with helpmate.";_.value=!0}},cM=async()=>{try{if(y.value=!1,"Registered"!==P.value)y.value=!0,w.value="Learner Status is not registered.",_.value=!0;else{const M=await(0,q.ie)("/v1/restartLearnerJourney",b.value);console.log("restartLearnerJourney",M);const z='your task was removed successfully, you can restart journey again from <a href="https://genome.genpact.com/#Myplan" target="_blank" class="text-background-secondary"><strong>MyPlan</strong></a>';M?(localStorage.setItem("message",z),m.Z.push({name:"SolidifyLearnerStatus",query:{isPerformReviewVisible:"no",isProxyReview:"no",showChevron:"no"}})):(y.value=!0,w.value="There is an issue in the restart Journey, please contact helpmate.",_.value=!0)}}catch(M){if(y.value=!0,console.log(M),W.Z.isAxiosError(M)){const z=M;w.value=z.response?.data?.message}else w.value="There is an issue in the restart Journey, please contact with helpmate.";_.value=!0}},qM=M=>{y.value=!1,console.log(`task data ${JSON.stringify(M)}`);const b=M;y.value=!0,b?(z.value=b.task_id,u.value=b.task_type,B.value=b.task_name,t.value=b.description,O.value=b.skill,c.value=b.proficiency,N.value=!0===b.checkForPlagiarism):(w.value="There is an issue to fetch task, please contact helpmate.",_.value=!0)};return(0,A.onBeforeMount)((async()=>{try{y.value=!1,x.value=localStorage.getItem("programName"),I.value=localStorage.getItem("reviewerAssignmentStrategy"),U.value=localStorage.getItem("taskAssignmentStrategy");const M=E().tz.guess(),z=await(0,o.zn)("/learner/journey/stat",{learning_path_id:K.value,learning_content_id:j.value,timezone:M,skill:O.value,proficiency:c.value,program_id:p.value}),A=z.data;r.value=z.data,qM(A.taskDetails),"infinity"===x.value&&J(),X.value=!0===A.program_details.plagiarism_enabled,y.value=!0,A.learnerData&&(A.learnerData.technical_hold&&(console.log("learner on hold select task"),K.value&&j.value?m.Z.push({path:"/solidify",query:{learning_path_id:K.value,learning_content_id:j.value}}):m.Z.push({path:"/solidify",query:{skill_id:O.value,proficiency_id:c.value,program_id:p.value}})),console.log(`learner Data value ${JSON.stringify(A.learnerData)}`),console.log(`learnerStatus value ${A.learnerData.learner_status}`),P.value=A.learnerData.learner_status,b.value=A.learnerData.learner_task_id,"Need Reviewer and Need Reviewee"===A.learnerData.learner_status||"Need Reviewee"===A.learnerData.learner_status?m.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:A.learnerData.learner_task_id}}):"Need Reviewer"!==A.learnerData.learner_status&&"Passed"!==A.learnerData.learner_status||m.Z.push({name:"SolidifyLearnerDone",query:{learner_task_id:b.value}}))}catch(M){if(y.value=!0,W.Z.isAxiosError(M)){const z=M;w.value=z.response?.data?.message}else w.value="There is an issue to fetch existing record, please contact with helpmate.";_.value=!0}})),(0,A.onUnmounted)((()=>{V&&clearInterval(V)})),{stat:r,genAIPromptResp:i,loadingGenAIResponse:e,isEligibleForAIAssist:Y,learnerSubmissionFile:s,reviewPopupOpened:H,proceedToReview:MM,skillName:d,profName:R,skillId:O,proficiencyId:c,programId:p,taskType:u,taskName:B,taskDesc:t,userRating:L,userComment:f,submitSubmiision:bM,learnerSubmission:g,selectedFile:zM,fileValidationMsg:l,restart:cM,switchTask:AM,learnerTaskId:b,preSignedUrl:C,buttonDisable:v,validationError:h,clearFile:$,fileInputKey:D,helpmateLink:n,learnerStatus:P,renderReady:y,errorResponse:w,showErrorMessage:_,plagiarismcb:S,palgiarismErrorMsg:k,programName:x,taskAssignmentStrategy:U,reviewerAssignmentStrategy:I,checkForPlagiarismTaskLevel:N,checkForPlagiarismProgramLevel:X,checkQuestionLength:Z,questionWordCount:Q,submissionError:G,moment:T(),minimumWordLength:F,learning_path_id:K,learning_content_id:j,learning_content_display_name:a}}}),v=C,S=(0,L.Z)(v,p,O,!1,null,"429722b2",null),h=S.exports},568:function(M,z,b){"use strict";b.d(z,{JV:function(){return d},ie:function(){return q},rC:function(){return o},sc:function(){return A},t$:function(){return W},ux:function(){return O},yW:function(){return c}});var p=b(7129);const O=async(M,z)=>{const b=await p.Z.post(M,z);return b},A=async(M,z)=>{let b;const p=await fetch(`${M}`,{method:"put",body:z});return b=p,b},c=async M=>{const z=await p.Z.get(`/task/${M}`);return z},q=async(M,z)=>{const b=await p.Z.post(M,{learner_task_id:z});return b},o=async(M,z)=>{const b=await p.Z.post(M,z);return b},W=async(M,z)=>{const b=await p.Z.post(M,z);return b},d=async(M,z)=>await p.Z.post(M,z)},4654:function(M,z,b){"use strict";b.d(z,{hZ:function(){return A},n2:function(){return O},zn:function(){return c}});var p=b(7129);const O=async(M,z)=>{const b=await p.Z.post(M,z);return b},A=async(M,z)=>{const b=await p.Z.post(M,z);return b},c=async(M,z)=>{const b=await p.Z.post(M,z);return b}},7881:function(M,z,b){var p=M.exports=b(8158);p.tz.load(b(1128))},8158:function(M,z,b){var p,O,A;b(7658),
|
|
2
2
|
//! moment-timezone.js
|
|
3
3
|
//! version : 0.5.43
|
|
4
4
|
//! Copyright (c) JS Foundation and other contributors
|