@genpact/genome.mfe.solidify-app 1.17.2-alpha.253 → 1.17.2-alpha.255

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.
Files changed (36) hide show
  1. package/dist/css/SolidifyLearner.css +1 -1
  2. package/dist/solidify.umd.min.LearnerRereview.js +1 -1
  3. package/dist/solidify.umd.min.LearnerRereview.js.map +1 -1
  4. package/dist/solidify.umd.min.SolidifyAdministration.js +1 -1
  5. package/dist/solidify.umd.min.SolidifyAdministration.js.map +1 -1
  6. package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js +1 -1
  7. package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js.map +1 -1
  8. package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js +1 -1
  9. package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js.map +1 -1
  10. package/dist/solidify.umd.min.SolidifyAdministrationGenAIReviewedSubmissions.js +1 -1
  11. package/dist/solidify.umd.min.SolidifyAdministrationGenAIReviewedSubmissions.js.map +1 -1
  12. package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js +1 -1
  13. package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js.map +1 -1
  14. package/dist/solidify.umd.min.SolidifyAdministrationOffcycleDashboard.js +1 -1
  15. package/dist/solidify.umd.min.SolidifyAdministrationOffcycleDashboard.js.map +1 -1
  16. package/dist/solidify.umd.min.SolidifyAdministrationOperationalDetails.js +1 -1
  17. package/dist/solidify.umd.min.SolidifyAdministrationOperationalDetails.js.map +1 -1
  18. package/dist/solidify.umd.min.SolidifyAdministrationProgramAdministration.js +1 -1
  19. package/dist/solidify.umd.min.SolidifyAdministrationProgramAdministration.js.map +1 -1
  20. package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js +1 -1
  21. package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js.map +1 -1
  22. package/dist/solidify.umd.min.SolidifyLearner.js +1 -1
  23. package/dist/solidify.umd.min.SolidifyLearner.js.map +1 -1
  24. package/dist/solidify.umd.min.SolidifyLearnerDone.js +1 -1
  25. package/dist/solidify.umd.min.SolidifyLearnerDone.js.map +1 -1
  26. package/dist/solidify.umd.min.SolidifyLearnerPeerReview.js +1 -1
  27. package/dist/solidify.umd.min.SolidifyLearnerPeerReview.js.map +1 -1
  28. package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js +1 -1
  29. package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js.map +1 -1
  30. package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js +1 -1
  31. package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js.map +1 -1
  32. package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js +1 -1
  33. package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js.map +1 -1
  34. package/dist/solidify.umd.min.js +2 -2
  35. package/dist/solidify.umd.min.js.map +1 -1
  36. package/package.json +1 -1
@@ -1 +1 @@
1
- .modal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;justify-content:center;background-color:#000000da}.modal{text-align:center;background-color:#fff;height:200px;width:600px;margin-top:10%;padding:40px 0}p{font-size:15px;margin:20px 0}.modal-fade-enter,.modal-fade-leave-to{opacity:0}.modal-fade-enter-active,.modal-fade-leave-active{transition:opacity .5s ease}.custom-shadow[data-v-bd18dd2a]{box-shadow:0 10px 25px rgba(0,0,0,.08),0 4px 10px rgba(0,0,0,.05)}.border-blue-900[data-v-bd18dd2a]{border-color:#d3d3d3!important}.bg-blue-900[data-v-bd18dd2a]{background:#161916!important}.box-overflow1[data-v-bd18dd2a]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-bd18dd2a]{overflow-x:scroll}.box-overflow1[data-v-bd18dd2a]{max-height:none;overflow-y:auto}}.custom-shadow[data-v-4b94a4ee]{box-shadow:0 10px 25px rgba(0,0,0,.08),0 4px 10px rgba(0,0,0,.05)}.border-blue-900[data-v-4b94a4ee]{border-color:#d3d3d3!important}.bg-blue-900[data-v-4b94a4ee]{background:#161916!important}@media screen and (max-width:768px){.ul-nav[data-v-4b94a4ee]{overflow-x:scroll}.box-overflow1[data-v-4b94a4ee]{max-height:none;overflow-y:auto}}.box-overflow1[data-v-a440ef62]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-a440ef62]{overflow-x:scroll}.box-overflow1[data-v-a440ef62]{max-height:none;overflow-y:auto}}
1
+ .modal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;justify-content:center;background-color:#000000da}.modal{text-align:center;background-color:#fff;height:200px;width:600px;margin-top:10%;padding:40px 0}p{font-size:15px;margin:20px 0}.modal-fade-enter,.modal-fade-leave-to{opacity:0}.modal-fade-enter-active,.modal-fade-leave-active{transition:opacity .5s ease}.custom-shadow[data-v-bd18dd2a]{box-shadow:0 10px 25px rgba(0,0,0,.08),0 4px 10px rgba(0,0,0,.05)}.border-blue-900[data-v-bd18dd2a]{border-color:#d3d3d3!important}.bg-blue-900[data-v-bd18dd2a]{background:#161916!important}.box-overflow1[data-v-bd18dd2a]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-bd18dd2a]{overflow-x:scroll}.box-overflow1[data-v-bd18dd2a]{max-height:none;overflow-y:auto}}.custom-shadow[data-v-3f7a3f24]{box-shadow:0 10px 25px rgba(0,0,0,.08),0 4px 10px rgba(0,0,0,.05)}.border-blue-900[data-v-3f7a3f24]{border-color:#d3d3d3!important}.bg-blue-900[data-v-3f7a3f24]{background:#161916!important}@media screen and (max-width:768px){.ul-nav[data-v-3f7a3f24]{overflow-x:scroll}.box-overflow1[data-v-3f7a3f24]{max-height:none;overflow-y:auto}}.box-overflow1[data-v-a440ef62]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-a440ef62]{overflow-x:scroll}.box-overflow1[data-v-a440ef62]{max-height:none;overflow-y:auto}}
@@ -1,2 +1,2 @@
1
- "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[901],{460:function(e,t,s){s.d(t,{Z:function(){return c}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-16 px-32"},[t("div",{staticClass:"md:px-0 lg:px-0 text-center"},[t("div",{staticClass:"text-gray-500"},[t("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),t("div",{staticClass:"pt-8"},[t("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[t("img",{staticClass:"mx-auto",attrs:{src:s(3126)}})])])])])])},a=[],i=s(7203),n=(0,i.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,i.ref)(""),s=(0,i.ref)(localStorage.getItem("helpmateLink"));return(0,i.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:s}}}),o=n,l=s(1001),u=(0,l.Z)(o,r,a,!1,null,null,null),c=u.exports},2148:function(e,t,s){s.d(t,{Z:function(){return v}});var r=function(){var e=this,t=e._self._c;return e.isVisible?t("main",{staticClass:"modal-wrapper relative z-50 modal-filter fixed inset-0 w-full h-screen flex mt-2 justify-center bg-semi-75 h-fit"},[t("transition",{attrs:{name:"modal-fade"}},[t("div",{staticClass:"modal-overlay",on:{click:function(t){return e.$emit("close-modal")}}},[t("div",{staticClass:"modal relative",on:{click:function(e){e.stopPropagation()}}},[e.closeVisible?t("div",{staticClass:"absolute right-0 pr-4 top-5 cursor-pointer",on:{click:function(t){return e.$emit("closeModal")}}},[t("x-icon",{attrs:{size:"1.5x"}})],1):e._e(),t("div",{staticClass:"bg-white"},[t("div",[e.popUpImage1||e.popUpImage2?t("div",{staticClass:"font-bold text-center mb-3 flex justify-center text-base sm:text-xl"},[t("div",[t("strong",[e._v("Do you want to mark the submission Plagiarised?")])])]):e._e(),e.popUpImage1?t("div",{staticClass:"w-full"},[t("img",{staticClass:"block px-4 pb-2 mx-auto w-3/12",attrs:{src:s(2191)}})]):e._e(),e.popUpImage2?t("div",{staticClass:"w-full"},[t("img",{staticClass:"block px-4 pb-2 mx-auto w-2/5",attrs:{src:s(5861)}})]):e._e()]),t("div",{staticClass:"text-gray-500 px-4",domProps:{innerHTML:e._s(e.message)}}),t("div",{staticClass:"pb-4 pt-4 bg-white flex flex-col items-center"},[e.reReviewButton?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.applyReview(e.reReviewButtonLink)}}},[e._v(" Apply Re-Review ")]):e._e(),e.archiveButton?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2",on:{click:function(t){return e.$emit("Archive")}}},[e._v("Yes")]):e._e(),e.closeVisible?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",staticStyle:{"background-color":"grey"},on:{click:function(t){return e.$emit("closeModal")}}},[e._v(" No ")]):e._e(),e.linkButton?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.navigate(e.link)}}},[e._v(e._s(e.linkButton))]):e._e()])])])])])],1):e._e()},a=[],i=(s(7658),s(4856)),n=s(442),o={components:{XIcon:i.b0D},name:"Generic",props:{isVisible:{type:Boolean,default:!1,required:!0},message:{type:String,default:"",required:!0},closeVisible:{type:Boolean,default:!1,required:!1},reReviewButton:{type:Boolean,default:!1,required:!1},archiveButton:{type:Boolean,default:!1,required:!1},reReviewButtonLink:{type:String,default:"",required:!1},link:{type:String,default:"",required:!1},linkButton:{type:String,default:"",required:!1},popUpImage1:{type:Boolean,default:!1,required:!1},popUpImage2:{type:Boolean,default:!1,required:!1}},setup(){const e=async e=>{n.Z.push({path:"/solidify/rereview",query:{learner_task_id:e}})},t=e=>{window.location.href=e};return{applyReview:e,navigate:t}}},l=o,u=s(1001),c=(0,u.Z)(l,r,a,!1,null,null,null),v=c.exports},8235:function(e,t,s){s.d(t,{Z:function(){return c}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"mt-4 lg:px-24 md:px-24 px-4 flex justify-between items-center w-full"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e.learning_content_display_name?t("span",[e._v(" "+e._s(e.learning_content_display_name)+" ")]):t("span",["infinity"===e.program?t("span",[e._v(e._s(e.proficiency)+" - ")]):e._e(),e._v(e._s(e.skill))])]),t("div",{staticClass:"my-2"},[t("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},a=[],i=s(7203),n=(0,i.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""},learning_content_display_name:{type:String,default:""}},setup(){const e=(0,i.ref)("");return(0,i.onBeforeMount)((async()=>{const t=localStorage.getItem("userName")||"Learner";e.value=t.split(",").reverse().join(" ")})),{username:e}}}),o=n,l=s(1001),u=(0,l.Z)(o,r,a,!1,null,null,null),c=u.exports},8269:function(e,t,s){s.r(t),s.d(t,{default:function(){return _}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[e.learnerRereviewDetails?t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[t("Greetings",{attrs:{program:e.learnerRereviewDetails.program,proficiency:e.learnerRereviewDetails.proficiency,skill:e.learnerRereviewDetails.skill,learning_content_display_name:e.learnerRereviewDetails.learning_content_display_name}}),t("Generic",{attrs:{"is-visible":e.modalVisible,message:e.modalMessage}}),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},[t("div",{staticClass:"p-4 mb-3 rounded-lg shadow border border-gray-200"},[e._m(0),e.learnerRereviewDetails.request_for_re_review?e._e():t("div",[t("p",{staticClass:"pt-4"},[e._v("Requesting a re-review doesn't guarantee that your submission will pass. You'll receive an email once the review is complete (allow up to 2 weeks).")]),e._m(1),t("p",{staticClass:"pt-6"},[t("label",[t("input",{attrs:{type:"checkbox"},on:{change:function(t){return e.setRereviewButtonEnable(t)}}}),e._v(" By proceeding, you confirm that you've read and agree to abide by the Plagiarism statement.")])]),e._m(2)]),e.learnerRereviewDetails.request_for_re_review?t("div",[t("p",{staticClass:"pt-4"},[e._v("Your request for re-review has been accepted and is currently in progress.")]),e._m(3)]):e._e()])])]),t("div",{staticClass:"block text-center pt-6"},[t("div",{staticClass:"mb-4 text-center"},[e.learnerRereviewDetails.request_for_re_review?e._e():t("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.requestForRereviewSubmit}},[e._v(" Re-review ")]),e.learnerRereviewDetails.request_for_re_review?t("button",{staticClass:"ml-2 mr-2 inline-block mt-2 py-2 px-4 bg-background-secondary text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.checkRereviewStatus}},[e._v(" Check Status ")]):e._e()])])])],1)]):e._e()],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:s(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)},a=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("strong",[e._v("Re-Review Request")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pt-4"},[t("p",[t("strong",[e._v("Key Limitations: ")])]),t("ul",{staticClass:"mt-2 list-disc pl-8"},[t("li",[e._v("Each submission is eligible for only one re-review.")]),t("li",[e._v("You cannot start a new Solidify journey for the same skill while your re-review is pending.")]),t("li",[e._v("If our reviewers determine the original assessment was correct, your results will remain unchanged.")])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"mt-2"},[e._v("Click on "),t("strong",[e._v('"Re-review"')]),e._v(" to continue.")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[e._v("Click "),t("strong",[e._v("'Check Status'")]),e._v(" to track the status of the re-review.")])}],i=s(7203),n=s(2148),o=s(306),l=s(460),u=s(8235),c=s(7129);const v=async e=>{const t=await c.Z.get(`/learnerRereviewStatus/${e}`);return t},p=async(e,t)=>{const s=await c.Z.post("/learnerRereview",{learner_task_id:e,requestFromAdmin:t});return s};var d=(0,i.defineComponent)({name:"LearnerRereview",components:{Generic:n.Z,ErrorMessage:l.Z,Greetings:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,i.ref)(e.query.learner_task_id),s=(0,i.ref)(),r=(0,i.ref)(!1),a=(0,i.ref)(),n=(0,i.ref)(!0),l=(0,i.ref)(!1),u=(0,i.ref)(),c=(0,i.ref)(!1),d=(0,i.ref)(localStorage.getItem("helpmateLink")),f=e=>{const t=e.target.checked;!0===t?(n.value=!1,console.log(n.value)):(n.value=!0,console.log(n.value))},g=async()=>{try{if(l.value=!1,s.value.is_plagiarised&&s.value.plagiarism_reevaluation_requested)return r.value=!0,void(a.value="Learner already requested for re-evaluation for plagiarism so cannot request for re-review now");const e=await p(t.value,!1);s.value.request_for_re_review=e.data?.request_for_re_review,s.value.re_review_status=e.data?.re_review_status,l.value=!0,r.value=!0,a.value="<strong>Re-review in Progress</strong>,<br> You’ll receive an email as soon as the review is complete."}catch(e){if(console.log("inside catch error"),console.log(JSON.stringify(e)),l.value=!0,o.Z.isAxiosError(e)){const t=e;console.log(t.response?.data),u.value=t.response?.data}else u.value="There is an issue in requesting for review, please contact helpmate.";c.value=!0}},m=async()=>{try{l.value=!1;const e=await v(t.value);return s.value=e.data,l.value=!0,console.log(`after check status ${JSON.stringify(s)}`),void("Re-review Accepted Proxy Assigned"===s.value.re_review_status||"Re-review Accepted Proxy Unavailable"===s.value.re_review_status?(r.value=!0,a.value="<br><strong>Re-review in Progress</strong>,<br> You’ll receive an email as soon as the review is complete."):"Complete"===s.value.re_review_status&&(r.value=!0,a.value="<br><br>Great news! Your re-review is complete — check your email for details."))}catch(e){if(console.log("inside catch error"),console.log(JSON.stringify(e)),l.value=!0,o.Z.isAxiosError(e)){const t=e;console.log(t.response?.data),u.value=t.response?.data}else u.value="There is an issue in fetching learner re-review status, please contact helpmate.";c.value=!0}};return(0,i.onBeforeMount)((async()=>{try{l.value=!1;const e=await v(t.value);s.value=e.data,l.value=!0,console.log(`learnerRereviewDetails.value ${JSON.stringify(s.value)}`),s.value.is_plagiarised&&s.value.plagiarism_reevaluation_requested&&(r.value=!0,a.value="Learner already requested for re-evaluation for plagiarism so cannot request for re-review now")}catch(e){if(console.log("inside catch error"),console.log(JSON.stringify(e)),l.value=!0,o.Z.isAxiosError(e)){const t=e;console.log(t.response?.data),u.value=t.response?.data}else u.value="There is an issue to fetch existing record, please contact helpmate.";c.value=!0}})),{modalVisible:r,modalMessage:a,buttonDisable:n,learnerRereviewDetails:s,setRereviewButtonEnable:f,requestForRereviewSubmit:g,checkRereviewStatus:m,renderReady:l,helpmateLink:d,showErrorMessage:c}}}),f=d,g=s(1001),m=(0,g.Z)(f,r,a,!1,null,"2176a016",null),_=m.exports},3126:function(e,t,s){e.exports=s.p+"img/support.svg"},2191:function(e,t,s){e.exports=s.p+"img/plag_warning1.gif"},5861:function(e,t,s){e.exports=s.p+"img/plag_warning2.gif"}}]);
1
+ "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[901],{460:function(e,t,s){s.d(t,{Z:function(){return c}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-16 px-32"},[t("div",{staticClass:"md:px-0 lg:px-0 text-center"},[t("div",{staticClass:"text-gray-500"},[t("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),t("div",{staticClass:"pt-8"},[t("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[t("img",{staticClass:"mx-auto",attrs:{src:s(3126)}})])])])])])},a=[],i=s(7203),n=(0,i.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,i.ref)(""),s=(0,i.ref)(localStorage.getItem("helpmateLink"));return(0,i.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:s}}}),o=n,l=s(1001),u=(0,l.Z)(o,r,a,!1,null,null,null),c=u.exports},2148:function(e,t,s){s.d(t,{Z:function(){return v}});var r=function(){var e=this,t=e._self._c;return e.isVisible?t("main",{staticClass:"modal-wrapper relative z-50 modal-filter fixed inset-0 w-full h-screen flex mt-2 justify-center bg-semi-75 h-fit"},[t("transition",{attrs:{name:"modal-fade"}},[t("div",{staticClass:"modal-overlay",on:{click:function(t){return e.$emit("close-modal")}}},[t("div",{staticClass:"modal relative",on:{click:function(e){e.stopPropagation()}}},[e.closeVisible?t("div",{staticClass:"absolute right-0 pr-4 top-5 cursor-pointer",on:{click:function(t){return e.$emit("closeModal")}}},[t("x-icon",{attrs:{size:"1.5x"}})],1):e._e(),t("div",{staticClass:"bg-white"},[t("div",[e.popUpImage1||e.popUpImage2?t("div",{staticClass:"font-bold text-center mb-3 flex justify-center text-base sm:text-xl"},[t("div",[t("strong",[e._v("Do you want to mark the submission Plagiarised?")])])]):e._e(),e.popUpImage1?t("div",{staticClass:"w-full"},[t("img",{staticClass:"block px-4 pb-2 mx-auto w-3/12",attrs:{src:s(2191)}})]):e._e(),e.popUpImage2?t("div",{staticClass:"w-full"},[t("img",{staticClass:"block px-4 pb-2 mx-auto w-2/5",attrs:{src:s(5861)}})]):e._e()]),t("div",{staticClass:"text-gray-500 px-4",domProps:{innerHTML:e._s(e.message)}}),t("div",{staticClass:"pb-4 pt-4 bg-white flex flex-col items-center"},[e.reReviewButton?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.applyReview(e.reReviewButtonLink)}}},[e._v(" Apply Re-Review ")]):e._e(),e.archiveButton?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2",on:{click:function(t){return e.$emit("Archive")}}},[e._v("Yes")]):e._e(),e.closeVisible?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",staticStyle:{"background-color":"grey"},on:{click:function(t){return e.$emit("closeModal")}}},[e._v(" No ")]):e._e(),e.linkButton?t("button",{staticClass:"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.navigate(e.link)}}},[e._v(e._s(e.linkButton))]):e._e()])])])])])],1):e._e()},a=[],i=(s(7658),s(4856)),n=s(9896),o={components:{XIcon:i.b0D},name:"Generic",props:{isVisible:{type:Boolean,default:!1,required:!0},message:{type:String,default:"",required:!0},closeVisible:{type:Boolean,default:!1,required:!1},reReviewButton:{type:Boolean,default:!1,required:!1},archiveButton:{type:Boolean,default:!1,required:!1},reReviewButtonLink:{type:String,default:"",required:!1},link:{type:String,default:"",required:!1},linkButton:{type:String,default:"",required:!1},popUpImage1:{type:Boolean,default:!1,required:!1},popUpImage2:{type:Boolean,default:!1,required:!1}},setup(){const e=async e=>{n.Z.push({path:"/solidify/rereview",query:{learner_task_id:e}})},t=e=>{window.location.href=e};return{applyReview:e,navigate:t}}},l=o,u=s(1001),c=(0,u.Z)(l,r,a,!1,null,null,null),v=c.exports},8235:function(e,t,s){s.d(t,{Z:function(){return c}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"mt-4 lg:px-24 md:px-24 px-4 flex justify-between items-center w-full"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e.learning_content_display_name?t("span",[e._v(" "+e._s(e.learning_content_display_name)+" ")]):t("span",["infinity"===e.program?t("span",[e._v(e._s(e.proficiency)+" - ")]):e._e(),e._v(e._s(e.skill))])]),t("div",{staticClass:"my-2"},[t("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},a=[],i=s(7203),n=(0,i.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""},learning_content_display_name:{type:String,default:""}},setup(){const e=(0,i.ref)("");return(0,i.onBeforeMount)((async()=>{const t=localStorage.getItem("userName")||"Learner";e.value=t.split(",").reverse().join(" ")})),{username:e}}}),o=n,l=s(1001),u=(0,l.Z)(o,r,a,!1,null,null,null),c=u.exports},8269:function(e,t,s){s.r(t),s.d(t,{default:function(){return _}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[e.learnerRereviewDetails?t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[t("Greetings",{attrs:{program:e.learnerRereviewDetails.program,proficiency:e.learnerRereviewDetails.proficiency,skill:e.learnerRereviewDetails.skill,learning_content_display_name:e.learnerRereviewDetails.learning_content_display_name}}),t("Generic",{attrs:{"is-visible":e.modalVisible,message:e.modalMessage}}),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},[t("div",{staticClass:"p-4 mb-3 rounded-lg shadow border border-gray-200"},[e._m(0),e.learnerRereviewDetails.request_for_re_review?e._e():t("div",[t("p",{staticClass:"pt-4"},[e._v("Requesting a re-review doesn't guarantee that your submission will pass. You'll receive an email once the review is complete (allow up to 2 weeks).")]),e._m(1),t("p",{staticClass:"pt-6"},[t("label",[t("input",{attrs:{type:"checkbox"},on:{change:function(t){return e.setRereviewButtonEnable(t)}}}),e._v(" By proceeding, you confirm that you've read and agree to abide by the Plagiarism statement.")])]),e._m(2)]),e.learnerRereviewDetails.request_for_re_review?t("div",[t("p",{staticClass:"pt-4"},[e._v("Your request for re-review has been accepted and is currently in progress.")]),e._m(3)]):e._e()])])]),t("div",{staticClass:"block text-center pt-6"},[t("div",{staticClass:"mb-4 text-center"},[e.learnerRereviewDetails.request_for_re_review?e._e():t("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.requestForRereviewSubmit}},[e._v(" Re-review ")]),e.learnerRereviewDetails.request_for_re_review?t("button",{staticClass:"ml-2 mr-2 inline-block mt-2 py-2 px-4 bg-background-secondary text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.checkRereviewStatus}},[e._v(" Check Status ")]):e._e()])])])],1)]):e._e()],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:s(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)},a=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("strong",[e._v("Re-Review Request")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pt-4"},[t("p",[t("strong",[e._v("Key Limitations: ")])]),t("ul",{staticClass:"mt-2 list-disc pl-8"},[t("li",[e._v("Each submission is eligible for only one re-review.")]),t("li",[e._v("You cannot start a new Solidify journey for the same skill while your re-review is pending.")]),t("li",[e._v("If our reviewers determine the original assessment was correct, your results will remain unchanged.")])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"mt-2"},[e._v("Click on "),t("strong",[e._v('"Re-review"')]),e._v(" to continue.")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[e._v("Click "),t("strong",[e._v("'Check Status'")]),e._v(" to track the status of the re-review.")])}],i=s(7203),n=s(2148),o=s(306),l=s(460),u=s(8235),c=s(7129);const v=async e=>{const t=await c.Z.get(`/learnerRereviewStatus/${e}`);return t},p=async(e,t)=>{const s=await c.Z.post("/learnerRereview",{learner_task_id:e,requestFromAdmin:t});return s};var d=(0,i.defineComponent)({name:"LearnerRereview",components:{Generic:n.Z,ErrorMessage:l.Z,Greetings:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,i.ref)(e.query.learner_task_id),s=(0,i.ref)(),r=(0,i.ref)(!1),a=(0,i.ref)(),n=(0,i.ref)(!0),l=(0,i.ref)(!1),u=(0,i.ref)(),c=(0,i.ref)(!1),d=(0,i.ref)(localStorage.getItem("helpmateLink")),f=e=>{const t=e.target.checked;!0===t?(n.value=!1,console.log(n.value)):(n.value=!0,console.log(n.value))},g=async()=>{try{if(l.value=!1,s.value.is_plagiarised&&s.value.plagiarism_reevaluation_requested)return r.value=!0,void(a.value="Learner already requested for re-evaluation for plagiarism so cannot request for re-review now");const e=await p(t.value,!1);s.value.request_for_re_review=e.data?.request_for_re_review,s.value.re_review_status=e.data?.re_review_status,l.value=!0,r.value=!0,a.value="<strong>Re-review in Progress</strong>,<br> You’ll receive an email as soon as the review is complete."}catch(e){if(console.log("inside catch error"),console.log(JSON.stringify(e)),l.value=!0,o.Z.isAxiosError(e)){const t=e;console.log(t.response?.data),u.value=t.response?.data}else u.value="There is an issue in requesting for review, please contact helpmate.";c.value=!0}},m=async()=>{try{l.value=!1;const e=await v(t.value);return s.value=e.data,l.value=!0,console.log(`after check status ${JSON.stringify(s)}`),void("Re-review Accepted Proxy Assigned"===s.value.re_review_status||"Re-review Accepted Proxy Unavailable"===s.value.re_review_status?(r.value=!0,a.value="<br><strong>Re-review in Progress</strong>,<br> You’ll receive an email as soon as the review is complete."):"Complete"===s.value.re_review_status&&(r.value=!0,a.value="<br><br>Great news! Your re-review is complete — check your email for details."))}catch(e){if(console.log("inside catch error"),console.log(JSON.stringify(e)),l.value=!0,o.Z.isAxiosError(e)){const t=e;console.log(t.response?.data),u.value=t.response?.data}else u.value="There is an issue in fetching learner re-review status, please contact helpmate.";c.value=!0}};return(0,i.onBeforeMount)((async()=>{try{l.value=!1;const e=await v(t.value);s.value=e.data,l.value=!0,console.log(`learnerRereviewDetails.value ${JSON.stringify(s.value)}`),s.value.is_plagiarised&&s.value.plagiarism_reevaluation_requested&&(r.value=!0,a.value="Learner already requested for re-evaluation for plagiarism so cannot request for re-review now")}catch(e){if(console.log("inside catch error"),console.log(JSON.stringify(e)),l.value=!0,o.Z.isAxiosError(e)){const t=e;console.log(t.response?.data),u.value=t.response?.data}else u.value="There is an issue to fetch existing record, please contact helpmate.";c.value=!0}})),{modalVisible:r,modalMessage:a,buttonDisable:n,learnerRereviewDetails:s,setRereviewButtonEnable:f,requestForRereviewSubmit:g,checkRereviewStatus:m,renderReady:l,helpmateLink:d,showErrorMessage:c}}}),f=d,g=s(1001),m=(0,g.Z)(f,r,a,!1,null,"2176a016",null),_=m.exports},3126:function(e,t,s){e.exports=s.p+"img/support.svg"},2191:function(e,t,s){e.exports=s.p+"img/plag_warning1.gif"},5861:function(e,t,s){e.exports=s.p+"img/plag_warning2.gif"}}]);
2
2
  //# sourceMappingURL=solidify.umd.min.LearnerRereview.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"solidify.umd.min.LearnerRereview.js","mappings":"gNAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,QAAQ,CAACH,EAAG,MAAM,CAACG,YAAY,sBAAsB,CAACH,EAAG,MAAM,CAACG,YAAY,+BAA+B,CAACH,EAAG,MAAM,CAACG,YAAY,iBAAiB,CAACH,EAAG,MAAM,CAACG,YAAY,OAAOC,SAAS,CAAC,UAAYN,EAAIO,GAAGP,EAAIQ,eAAeN,EAAG,MAAM,CAACG,YAAY,QAAQ,CAACH,EAAG,IAAI,CAACO,MAAM,CAAC,KAAOT,EAAIU,aAAa,OAAS,WAAW,CAACR,EAAG,MAAM,CAACG,YAAY,UAAUI,MAAM,CAAC,IAAME,EAAQ,kBACve,EACIC,EAAkB,G,UCCtB,GAAeC,EAAAA,EAAAA,iBAAgB,CAC7BC,KAAM,eACNC,MAAO,CACLC,aAAc,CACZC,KAAMC,OACNC,QAAS,KAGbC,MAAML,GACJ,MAAMP,GAAWa,EAAAA,EAAAA,KAAI,IACfX,GAAeW,EAAAA,EAAAA,KAAIC,aAAaC,QAAQ,iBAI9C,OAHAC,EAAAA,EAAAA,gBAAcC,UACZjB,EAASkB,MAAQX,EAAMC,YAAY,IAE9B,CAAER,WAAUE,eACrB,IClB4S,I,UCO1SiB,GAAY,OACd,EACA5B,EACAa,GACA,EACA,KACA,KACA,MAIF,EAAee,EAAiB,O,uDClBhC,IAAI5B,EAAS,WAAkB,IAAIC,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,EACZN,QAAQC,IAAIS,EAAIC,UAAUP,MAC1BpB,EAAcrD,MAAQ+E,EAAIC,UAAUP,I,MAGpCpB,EAAcrD,MAAQ,uEAExB0C,EAAiB1C,OAAQ,C,KAGtB,CACL4C,eACAC,eACAK,gBACAP,yBACAK,0BACAG,2BACAC,sBACAX,cACAzD,eACA0D,mBAEJ,IC1JoS,I,UCOlSzC,GAAY,OACd,EACA5B,EACAa,GACA,EACA,KACA,WACA,MAIF,EAAee,EAAiB,O","sources":["webpack://solidify/./src/components/global/ErrorMessage.vue","webpack://solidify/./src/components/global/ErrorMessage.vue?930e","webpack://solidify/./src/components/global/ErrorMessage.vue?65e2","webpack://solidify/./src/components/global/ErrorMessage.vue?8776","webpack://solidify/./src/components/global/GenericModal.vue","webpack://solidify/src/components/global/GenericModal.vue","webpack://solidify/./src/components/global/GenericModal.vue?8dbf","webpack://solidify/./src/components/global/GenericModal.vue?0027","webpack://solidify/./src/components/global/Greetings.vue","webpack://solidify/./src/components/global/Greetings.vue?c163","webpack://solidify/./src/components/global/Greetings.vue?def6","webpack://solidify/./src/components/global/Greetings.vue?819d","webpack://solidify/./src/views/Learner_Rereview.vue","webpack://solidify/./src/utils/re_review_service.ts","webpack://solidify/./src/views/Learner_Rereview.vue?0630","webpack://solidify/./src/views/Learner_Rereview.vue?08a1","webpack://solidify/./src/views/Learner_Rereview.vue?2523"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"flex\"},[_c('div',{staticClass:\"w-full pt-16 px-32\"},[_c('div',{staticClass:\"md:px-0 lg:px-0 text-center\"},[_c('div',{staticClass:\"text-gray-500\"},[_c('div',{staticClass:\"pt-2\",domProps:{\"innerHTML\":_vm._s(_vm.errorMsg)}})]),_c('div',{staticClass:\"pt-8\"},[_c('a',{attrs:{\"href\":_vm.helpmateLink,\"target\":\"_blank\"}},[_c('img',{staticClass:\"mx-auto\",attrs:{\"src\":require(\"@/assets/images/support.svg\")}})])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { defineComponent, onBeforeMount, ref } from 'vue';\n\nexport default defineComponent({\n name: 'ErrorMessage',\n props: {\n errorMessage: {\n type: String,\n default: '',\n },\n },\n setup(props) {\n const errorMsg = ref('');\n const helpmateLink = ref(localStorage.getItem('helpmateLink'));\n onBeforeMount(async () => {\n errorMsg.value = props.errorMessage;\n });\n return { errorMsg, helpmateLink };\n },\n});\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ErrorMessage.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ErrorMessage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ErrorMessage.vue?vue&type=template&id=3c863459&\"\nimport script from \"./ErrorMessage.vue?vue&type=script&lang=ts&\"\nexport * from \"./ErrorMessage.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.isVisible)?_c('main',{staticClass:\"modal-wrapper relative z-50 modal-filter fixed inset-0 w-full h-screen flex mt-2 justify-center bg-semi-75 h-fit\"},[_c('transition',{attrs:{\"name\":\"modal-fade\"}},[_c('div',{staticClass:\"modal-overlay\",on:{\"click\":function($event){return _vm.$emit('close-modal')}}},[_c('div',{staticClass:\"modal relative\",on:{\"click\":function($event){$event.stopPropagation();}}},[(_vm.closeVisible)?_c('div',{staticClass:\"absolute right-0 pr-4 top-5 cursor-pointer\",on:{\"click\":function($event){return _vm.$emit('closeModal')}}},[_c('x-icon',{attrs:{\"size\":\"1.5x\"}})],1):_vm._e(),_c('div',{staticClass:\"bg-white\"},[_c('div',[(_vm.popUpImage1 || _vm.popUpImage2)?_c('div',{staticClass:\"font-bold text-center mb-3 flex justify-center text-base sm:text-xl\"},[_c('div',[_c('strong',[_vm._v(\"Do you want to mark the submission Plagiarised?\")])])]):_vm._e(),(_vm.popUpImage1)?_c('div',{staticClass:\"w-full\"},[_c('img',{staticClass:\"block px-4 pb-2 mx-auto w-3/12\",attrs:{\"src\":require(\"@/assets/images/plag_warning1.gif\")}})]):_vm._e(),(_vm.popUpImage2)?_c('div',{staticClass:\"w-full\"},[_c('img',{staticClass:\"block px-4 pb-2 mx-auto w-2/5\",attrs:{\"src\":require(\"@/assets/images/plag_warning2.gif\")}})]):_vm._e()]),_c('div',{staticClass:\"text-gray-500 px-4\",domProps:{\"innerHTML\":_vm._s(_vm.message)}}),_c('div',{staticClass:\"pb-4 pt-4 bg-white flex flex-col items-center\"},[(_vm.reReviewButton)?_c('button',{staticClass:\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\",on:{\"click\":function($event){return _vm.applyReview(_vm.reReviewButtonLink)}}},[_vm._v(\" Apply Re-Review \")]):_vm._e(),(_vm.archiveButton)?_c('button',{staticClass:\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2\",on:{\"click\":function($event){return _vm.$emit('Archive')}}},[_vm._v(\"Yes\")]):_vm._e(),(_vm.closeVisible)?_c('button',{staticClass:\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\",staticStyle:{\"background-color\":\"grey\"},on:{\"click\":function($event){return _vm.$emit('closeModal')}}},[_vm._v(\" No \")]):_vm._e(),(_vm.linkButton)?_c('button',{staticClass:\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\",on:{\"click\":function($event){return _vm.navigate(_vm.link)}}},[_vm._v(_vm._s(_vm.linkButton))]):_vm._e()])])])])])],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <main v-if=\"isVisible\" class=\"modal-wrapper relative z-50 modal-filter fixed inset-0 w-full h-screen flex mt-2 justify-center bg-semi-75 h-fit\">\n <transition name=\"modal-fade\">\n <div class=\"modal-overlay\" @click=\"$emit('close-modal')\">\n <div class=\"modal relative\" @click.stop>\n <!-- <h6>Saved!</h6> -->\n <div @click=\"$emit('closeModal')\" class=\"absolute right-0 pr-4 top-5 cursor-pointer\" v-if=\"closeVisible\">\n <x-icon size=\"1.5x\"></x-icon>\n </div>\n <div class=\"bg-white\">\n <!-- adding gif in Plagiarism warning from Peer Review page-->\n\n <div>\n <div v-if=\"popUpImage1 || popUpImage2\" class=\"font-bold text-center mb-3 flex justify-center text-base sm:text-xl\">\n <div><strong>Do you want to mark the submission Plagiarised?</strong></div>\n </div>\n <div v-if=\"popUpImage1\" class=\"w-full\">\n <img src=\"@/assets/images/plag_warning1.gif\" class=\"block px-4 pb-2 mx-auto w-3/12\" />\n </div>\n <div v-if=\"popUpImage2\" class=\"w-full\">\n <img src=\"@/assets/images/plag_warning2.gif\" class=\"block px-4 pb-2 mx-auto w-2/5\" />\n </div>\n </div>\n\n <div class=\"text-gray-500 px-4\" v-html=\"message\"></div>\n <div class=\"pb-4 pt-4 bg-white flex flex-col items-center\">\n <button @click=\"applyReview(reReviewButtonLink)\" v-if=\"reReviewButton\" class=\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\">\n Apply Re-Review\n </button>\n\n <button @click=\"$emit('Archive')\" v-if=\"archiveButton\" class=\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2\">Yes</button>\n <button\n @click=\"$emit('closeModal')\"\n v-if=\"closeVisible\"\n style=\"background-color: grey\"\n class=\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\"\n >\n No\n </button>\n <button @click=\"navigate(link)\" v-if=\"linkButton\" class=\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\">{{ linkButton }}</button>\n <!-- <button class=\"py-2 px-4 bg-blue-900 text-white shadow-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\">Helpmate</button> -->\n </div>\n </div>\n </div>\n </div>\n </transition>\n </main>\n</template>\n\n<script>\nimport { XIcon } from 'vue-feather-icons';\n// eslint-disable-next-line\nimport router from '@/router';\n\nexport default {\n components: { XIcon },\n name: 'Generic',\n props: {\n isVisible: {\n type: Boolean,\n default: false,\n required: true,\n },\n message: {\n type: String,\n default: '',\n required: true,\n },\n closeVisible: {\n type: Boolean,\n default: false,\n required: false,\n },\n reReviewButton: {\n type: Boolean,\n default: false,\n required: false,\n },\n archiveButton: {\n type: Boolean,\n default: false,\n required: false,\n },\n reReviewButtonLink: {\n type: String,\n default: '',\n required: false,\n },\n link: {\n type: String,\n default: '',\n required: false,\n },\n linkButton: {\n type: String,\n default: '',\n required: false,\n },\n popUpImage1: {\n type: Boolean,\n default: false,\n required: false,\n },\n popUpImage2: {\n type: Boolean,\n default: false,\n required: false,\n },\n },\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n setup() {\n const applyReview = async (reReviewButtonLink) => {\n router.push({ path: '/solidify/rereview', query: { learner_task_id: reReviewButtonLink } });\n };\n const navigate = (link) => {\n window.location.href = link;\n };\n return { applyReview, navigate };\n },\n};\n</script>\n\n<style lang=\"postcss\">\n.modal-overlay {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n justify-content: center;\n background-color: #000000da;\n}\n.modal {\n text-align: center;\n background-color: white;\n height: 200px;\n width: 600px;\n margin-top: 10%;\n padding: 40px 0;\n /* border-radius: 20px; */\n}\np {\n /* font-weight: 500; */\n font-size: 15px;\n margin: 20px 0;\n}\n/* button {\n background-color: #ac003e;\n width: 150px;\n height: 40px;\n color: white;\n font-size: 14px;\n border-radius: 16px;\n margin-top: 50px;\n} */\n.modal-fade-enter,\n.modal-fade-leave-to {\n opacity: 0;\n}\n.modal-fade-enter-active,\n.modal-fade-leave-active {\n transition: opacity 0.5s ease;\n}\n</style>\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./GenericModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./GenericModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GenericModal.vue?vue&type=template&id=01921342&\"\nimport script from \"./GenericModal.vue?vue&type=script&lang=js&\"\nexport * from \"./GenericModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./GenericModal.vue?vue&type=style&index=0&id=01921342&prod&lang=postcss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"mt-4 lg:px-24 md:px-24 px-4 flex justify-between items-center w-full\"},[_c('div',{staticClass:\"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2\"},[(_vm.learning_content_display_name)?_c('span',[_vm._v(\" \"+_vm._s(_vm.learning_content_display_name)+\" \")]):_c('span',[(_vm.program === 'infinity')?_c('span',[_vm._v(_vm._s(_vm.proficiency)+\" - \")]):_vm._e(),_vm._v(_vm._s(_vm.skill))])]),_c('div',{staticClass:\"my-2\"},[_c('div',{staticClass:\"text-blue-900 md:text-lg text-sm text-right\"},[_vm._v(\"Hi, \"+_vm._s(_vm.username))])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { defineComponent, onBeforeMount, ref } from 'vue';\n\nexport default defineComponent({\n name: 'Greetings',\n props: {\n proficiency: {\n type: String,\n default: '',\n },\n skill: {\n type: String,\n default: '',\n },\n program: {\n type: String,\n default: '',\n },\n learning_content_display_name: {\n type: String,\n default: '',\n },\n },\n setup() {\n const username = ref('');\n onBeforeMount(async () => {\n const item = localStorage.getItem('userName') || 'Learner';\n username.value = item.split(',').reverse().join(' ');\n });\n return { username };\n },\n});\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Greetings.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Greetings.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Greetings.vue?vue&type=template&id=1cbddefa&\"\nimport script from \"./Greetings.vue?vue&type=script&lang=ts&\"\nexport * from \"./Greetings.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"containers mx-auto allBoxImg mt-10\"},[(_vm.renderReady)?[(!_vm.showErrorMessage)?[(_vm.learnerRereviewDetails)?_c('div',{staticClass:\"flex\"},[_c('div',{staticClass:\"w-full pt-12\"},[_c('Greetings',{attrs:{\"program\":_vm.learnerRereviewDetails.program,\"proficiency\":_vm.learnerRereviewDetails.proficiency,\"skill\":_vm.learnerRereviewDetails.skill,\"learning_content_display_name\":_vm.learnerRereviewDetails.learning_content_display_name}}),_c('Generic',{attrs:{\"is-visible\":_vm.modalVisible,\"message\":_vm.modalMessage}}),_c('div',{staticClass:\"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3\"},[_c('div',{staticClass:\"block mt-4\"},[_c('div',{staticClass:\"text-gray-600\"},[_c('div',{staticClass:\"p-4 mb-3 rounded-lg shadow border border-gray-200\"},[_vm._m(0),(!_vm.learnerRereviewDetails.request_for_re_review)?_c('div',[_c('p',{staticClass:\"pt-4\"},[_vm._v(\"Requesting a re-review doesn't guarantee that your submission will pass. You'll receive an email once the review is complete (allow up to 2 weeks).\")]),_vm._m(1),_c('p',{staticClass:\"pt-6\"},[_c('label',[_c('input',{attrs:{\"type\":\"checkbox\"},on:{\"change\":function($event){return _vm.setRereviewButtonEnable($event)}}}),_vm._v(\" By proceeding, you confirm that you've read and agree to abide by the Plagiarism statement.\")])]),_vm._m(2)]):_vm._e(),(_vm.learnerRereviewDetails.request_for_re_review)?_c('div',[_c('p',{staticClass:\"pt-4\"},[_vm._v(\"Your request for re-review has been accepted and is currently in progress.\")]),_vm._m(3)]):_vm._e()])])]),_c('div',{staticClass:\"block text-center pt-6\"},[_c('div',{staticClass:\"mb-4 text-center\"},[(!_vm.learnerRereviewDetails.request_for_re_review)?_c('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:_vm.buttonDisable ? 'bg-gray-500 cursor-not-allowed' : 'bg-background-secondary',attrs:{\"disabled\":_vm.buttonDisable},on:{\"click\":_vm.requestForRereviewSubmit}},[_vm._v(\" Re-review \")]):_vm._e(),(_vm.learnerRereviewDetails.request_for_re_review)?_c('button',{staticClass:\"ml-2 mr-2 inline-block mt-2 py-2 px-4 bg-background-secondary text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\",on:{\"click\":_vm.checkRereviewStatus}},[_vm._v(\" Check Status \")]):_vm._e()])])])],1)]):_vm._e()]:_vm._e(),(_vm.showErrorMessage)?_c('ErrorMessage',{attrs:{\"error-message\":_vm.errorResponse}}):_vm._e()]:_vm._e(),(!_vm.renderReady)?_c('div',{staticClass:\"flex flex-col h-min-screen justify-center text-center\"},[_c('img',{staticClass:\"mb-8 block mx-auto loadercss mt-3%\",attrs:{\"src\":require(\"@/assets/images/loadernew.gif\"),\"alt\":\"Loader Gif\"}}),_c('p',{staticClass:\"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue\"},[_vm._v(\"Loading...\")])]):_vm._e()],2)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('strong',[_vm._v(\"Re-Review Request\")])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"pt-4\"},[_c('p',[_c('strong',[_vm._v(\"Key Limitations: \")])]),_c('ul',{staticClass:\"mt-2 list-disc pl-8\"},[_c('li',[_vm._v(\"Each submission is eligible for only one re-review.\")]),_c('li',[_vm._v(\"You cannot start a new Solidify journey for the same skill while your re-review is pending.\")]),_c('li',[_vm._v(\"If our reviewers determine the original assessment was correct, your results will remain unchanged.\")])])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('p',{staticClass:\"mt-2\"},[_vm._v(\"Click on \"),_c('strong',[_vm._v(\"\\\"Re-review\\\"\")]),_vm._v(\" to continue.\")])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('p',{staticClass:\"pt-2\"},[_vm._v(\"Click \"),_c('strong',[_vm._v(\"'Check Status'\")]),_vm._v(\" to track the status of the re-review.\")])\n}]\n\nexport { render, staticRenderFns }","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport $http from '../plugins/axios';\n\nconst fetchLearnerStatusForReview = async (learnerTaskId: string) => {\n // let reReviewStatusResponse: any;\n // try {\n // await $http.get(`/learnerRereviewStatus/${learnerTaskId}`).then((response) => {\n // reReviewStatusResponse = response.data;\n // return reReviewStatusResponse;\n // });\n // return reReviewStatusResponse;\n // } catch (error) {\n // return error;\n // }\n const reReviewStatusResponse = await $http.get(`/learnerRereviewStatus/${learnerTaskId}`);\n return reReviewStatusResponse;\n};\n\nconst requestForRereview = async (learnerTaskId: string, requestFromAdmin: boolean) => {\n // try {\n // let res: any;\n // await $http.post('/learnerRereview/', { learner_task_id: learnerTaskId, requestFromAdmin }).then((response) => {\n // res = response.data;\n // return res;\n // });\n // return res;\n // } catch (error) {\n // return error;\n // }\n const res = await $http.post('/learnerRereview', { learner_task_id: learnerTaskId, requestFromAdmin });\n return res;\n};\nexport { fetchLearnerStatusForReview, requestForRereview };\n","\nimport { defineComponent, onBeforeMount, ref } from 'vue';\n// import router from '@/router';\nimport Generic from '@/components/global/GenericModal.vue';\nimport axios, { AxiosError } from 'axios';\nimport ErrorMessage from '@/components/global/ErrorMessage.vue';\nimport Greetings from '@/components/global/Greetings.vue';\nimport { fetchLearnerStatusForReview, requestForRereview } from '../utils/re_review_service';\n\nexport default defineComponent({\n name: 'LearnerRereview',\n components: { Generic, ErrorMessage, Greetings },\n // props: ['query'],\n props: {\n query: {\n type: Object,\n default: () => ({}),\n },\n },\n setup(props) {\n const learnerTaskId = ref(props.query.learner_task_id);\n const learnerRereviewDetails = ref();\n const modalVisible = ref(false);\n const modalMessage = ref();\n const buttonDisable = ref(true);\n const renderReady = ref(false);\n const errorResponse = ref();\n const showErrorMessage = ref(false);\n const helpmateLink = ref(localStorage.getItem('helpmateLink'));\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const setRereviewButtonEnable = (e: any) => {\n const cb = e.target.checked;\n if (cb === true) {\n buttonDisable.value = false;\n console.log(buttonDisable.value);\n } else {\n buttonDisable.value = true;\n console.log(buttonDisable.value);\n }\n };\n\n const requestForRereviewSubmit = async () => {\n try {\n renderReady.value = false;\n if (learnerRereviewDetails.value.is_plagiarised && learnerRereviewDetails.value.plagiarism_reevaluation_requested) {\n modalVisible.value = true;\n modalMessage.value = 'Learner already requested for re-evaluation for plagiarism so cannot request for re-review now';\n return;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const res: any = await requestForRereview(learnerTaskId.value, false);\n learnerRereviewDetails.value.request_for_re_review = res.data?.request_for_re_review;\n learnerRereviewDetails.value.re_review_status = res.data?.re_review_status;\n renderReady.value = true;\n modalVisible.value = true;\n modalMessage.value = '<strong>Re-review in Progress</strong>,<br> You’ll receive an email as soon as the review is complete.';\n } catch (error) {\n // modalVisible.value = true;\n // modalMessage.value = `There is an issue in requesting for review ${error}`;\n console.log('inside catch error');\n console.log(JSON.stringify(error));\n renderReady.value = true;\n // localStorage.setItem('errorMsg', JSON.stringify(error));\n // router.push({ path: '/solidify/Error' });\n if (axios.isAxiosError(error)) {\n const err = error as AxiosError;\n console.log(err.response?.data);\n errorResponse.value = err.response?.data;\n // console.log(`errorMessage.value ${errorMessage.value}`);\n } else {\n errorResponse.value = 'There is an issue in requesting for review, please contact helpmate.';\n }\n showErrorMessage.value = true;\n // console.log(error);\n }\n };\n const checkRereviewStatus = async () => {\n try {\n renderReady.value = false;\n const res = await fetchLearnerStatusForReview(learnerTaskId.value);\n learnerRereviewDetails.value = res.data;\n renderReady.value = true;\n console.log(`after check status ${JSON.stringify(learnerRereviewDetails)}`);\n if (learnerRereviewDetails.value.re_review_status === 'Re-review Accepted Proxy Assigned' || learnerRereviewDetails.value.re_review_status === 'Re-review Accepted Proxy Unavailable') {\n modalVisible.value = true;\n modalMessage.value = '<br><strong>Re-review in Progress</strong>,<br> You’ll receive an email as soon as the review is complete.';\n } else if (learnerRereviewDetails.value.re_review_status === 'Complete') {\n modalVisible.value = true;\n modalMessage.value = '<br><br>Great news! Your re-review is complete — check your email for details.';\n }\n return;\n } catch (error) {\n // modalVisible.value = true;\n // modalMessage.value = `There is an issue in fetching learner re-review status ${error}`;\n console.log('inside catch error');\n console.log(JSON.stringify(error));\n renderReady.value = true;\n // localStorage.setItem('errorMsg', JSON.stringify(error));\n // router.push({ path: '/solidify/Error' });\n if (axios.isAxiosError(error)) {\n const err = error as AxiosError;\n console.log(err.response?.data);\n errorResponse.value = err.response?.data;\n // console.log(`errorMessage.value ${errorMessage.value}`);\n } else {\n errorResponse.value = 'There is an issue in fetching learner re-review status, please contact helpmate.';\n }\n showErrorMessage.value = true;\n }\n };\n\n onBeforeMount(async () => {\n try {\n renderReady.value = false;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const res: any = await fetchLearnerStatusForReview(learnerTaskId.value);\n learnerRereviewDetails.value = res.data;\n renderReady.value = true;\n console.log(`learnerRereviewDetails.value ${JSON.stringify(learnerRereviewDetails.value)}`);\n if (learnerRereviewDetails.value.is_plagiarised && learnerRereviewDetails.value.plagiarism_reevaluation_requested) {\n modalVisible.value = true;\n modalMessage.value = 'Learner already requested for re-evaluation for plagiarism so cannot request for re-review now';\n }\n } catch (error) {\n // modalVisible.value = true;\n // modalMessage.value = 'There is an issue to fetch existing record';\n console.log('inside catch error');\n console.log(JSON.stringify(error));\n renderReady.value = true;\n // localStorage.setItem('errorMsg', JSON.stringify(error));\n // router.push({ path: '/solidify/Error' });\n if (axios.isAxiosError(error)) {\n const err = error as AxiosError;\n console.log(err.response?.data);\n errorResponse.value = err.response?.data;\n // console.log(`errorMessage.value ${errorMessage.value}`);\n } else {\n errorResponse.value = 'There is an issue to fetch existing record, please contact helpmate.';\n }\n showErrorMessage.value = true;\n }\n });\n return {\n modalVisible,\n modalMessage,\n buttonDisable,\n learnerRereviewDetails,\n setRereviewButtonEnable,\n requestForRereviewSubmit,\n checkRereviewStatus,\n renderReady,\n helpmateLink,\n showErrorMessage,\n };\n },\n});\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Learner_Rereview.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Learner_Rereview.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Learner_Rereview.vue?vue&type=template&id=2176a016&scoped=true&\"\nimport script from \"./Learner_Rereview.vue?vue&type=script&lang=ts&\"\nexport * from \"./Learner_Rereview.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2176a016\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","domProps","_s","errorMsg","attrs","helpmateLink","require","staticRenderFns","defineComponent","name","props","errorMessage","type","String","default","setup","ref","localStorage","getItem","onBeforeMount","async","value","component","isVisible","on","$event","$emit","stopPropagation","closeVisible","_e","popUpImage1","popUpImage2","_v","message","reReviewButton","applyReview","reReviewButtonLink","archiveButton","staticStyle","linkButton","navigate","link","components","XIcon","Boolean","required","router","path","query","learner_task_id","window","location","href","learning_content_display_name","program","proficiency","skill","username","item","split","reverse","join","renderReady","showErrorMessage","learnerRereviewDetails","modalVisible","modalMessage","_m","request_for_re_review","setRereviewButtonEnable","class","buttonDisable","requestForRereviewSubmit","checkRereviewStatus","errorResponse","fetchLearnerStatusForReview","reReviewStatusResponse","$http","learnerTaskId","requestForRereview","requestFromAdmin","res","Generic","ErrorMessage","Greetings","Object","e","cb","target","checked","console","log","is_plagiarised","plagiarism_reevaluation_requested","data","re_review_status","error","JSON","stringify","axios","err","response"],"sourceRoot":""}
1
+ {"version":3,"file":"solidify.umd.min.LearnerRereview.js","mappings":"gNAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,QAAQ,CAACH,EAAG,MAAM,CAACG,YAAY,sBAAsB,CAACH,EAAG,MAAM,CAACG,YAAY,+BAA+B,CAACH,EAAG,MAAM,CAACG,YAAY,iBAAiB,CAACH,EAAG,MAAM,CAACG,YAAY,OAAOC,SAAS,CAAC,UAAYN,EAAIO,GAAGP,EAAIQ,eAAeN,EAAG,MAAM,CAACG,YAAY,QAAQ,CAACH,EAAG,IAAI,CAACO,MAAM,CAAC,KAAOT,EAAIU,aAAa,OAAS,WAAW,CAACR,EAAG,MAAM,CAACG,YAAY,UAAUI,MAAM,CAAC,IAAME,EAAQ,kBACve,EACIC,EAAkB,G,UCCtB,GAAeC,EAAAA,EAAAA,iBAAgB,CAC7BC,KAAM,eACNC,MAAO,CACLC,aAAc,CACZC,KAAMC,OACNC,QAAS,KAGbC,MAAML,GACJ,MAAMP,GAAWa,EAAAA,EAAAA,KAAI,IACfX,GAAeW,EAAAA,EAAAA,KAAIC,aAAaC,QAAQ,iBAI9C,OAHAC,EAAAA,EAAAA,gBAAcC,UACZjB,EAASkB,MAAQX,EAAMC,YAAY,IAE9B,CAAER,WAAUE,eACrB,IClB4S,I,UCO1SiB,GAAY,OACd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UAAUF,IAC3BlC,EAAYzC,OAAQ,EAGhB8E,EAAAA,EAAAA,aAAmBH,GAAQ,CAC7B,MAAMI,EAAMJ,EACZN,QAAQC,IAAIS,EAAIC,UAAUP,MAC1BpB,EAAcrD,MAAQ+E,EAAIC,UAAUP,I,MAGpCpB,EAAcrD,MAAQ,uEAExB0C,EAAiB1C,OAAQ,C,KAGtB,CACL4C,eACAC,eACAK,gBACAP,yBACAK,0BACAG,2BACAC,sBACAX,cACAzD,eACA0D,mBAEJ,IC1JoS,I,UCOlSzC,GAAY,OACd,EACA5B,EACAa,GACA,EACA,KACA,WACA,MAIF,EAAee,EAAiB,O","sources":["webpack://solidify/./src/components/global/ErrorMessage.vue","webpack://solidify/./src/components/global/ErrorMessage.vue?930e","webpack://solidify/./src/components/global/ErrorMessage.vue?65e2","webpack://solidify/./src/components/global/ErrorMessage.vue?8776","webpack://solidify/./src/components/global/GenericModal.vue","webpack://solidify/src/components/global/GenericModal.vue","webpack://solidify/./src/components/global/GenericModal.vue?8dbf","webpack://solidify/./src/components/global/GenericModal.vue?0027","webpack://solidify/./src/components/global/Greetings.vue","webpack://solidify/./src/components/global/Greetings.vue?c163","webpack://solidify/./src/components/global/Greetings.vue?def6","webpack://solidify/./src/components/global/Greetings.vue?819d","webpack://solidify/./src/views/Learner_Rereview.vue","webpack://solidify/./src/utils/re_review_service.ts","webpack://solidify/./src/views/Learner_Rereview.vue?0630","webpack://solidify/./src/views/Learner_Rereview.vue?08a1","webpack://solidify/./src/views/Learner_Rereview.vue?2523"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"flex\"},[_c('div',{staticClass:\"w-full pt-16 px-32\"},[_c('div',{staticClass:\"md:px-0 lg:px-0 text-center\"},[_c('div',{staticClass:\"text-gray-500\"},[_c('div',{staticClass:\"pt-2\",domProps:{\"innerHTML\":_vm._s(_vm.errorMsg)}})]),_c('div',{staticClass:\"pt-8\"},[_c('a',{attrs:{\"href\":_vm.helpmateLink,\"target\":\"_blank\"}},[_c('img',{staticClass:\"mx-auto\",attrs:{\"src\":require(\"@/assets/images/support.svg\")}})])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { defineComponent, onBeforeMount, ref } from 'vue';\n\nexport default defineComponent({\n name: 'ErrorMessage',\n props: {\n errorMessage: {\n type: String,\n default: '',\n },\n },\n setup(props) {\n const errorMsg = ref('');\n const helpmateLink = ref(localStorage.getItem('helpmateLink'));\n onBeforeMount(async () => {\n errorMsg.value = props.errorMessage;\n });\n return { errorMsg, helpmateLink };\n },\n});\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ErrorMessage.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ErrorMessage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ErrorMessage.vue?vue&type=template&id=3c863459&\"\nimport script from \"./ErrorMessage.vue?vue&type=script&lang=ts&\"\nexport * from \"./ErrorMessage.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.isVisible)?_c('main',{staticClass:\"modal-wrapper relative z-50 modal-filter fixed inset-0 w-full h-screen flex mt-2 justify-center bg-semi-75 h-fit\"},[_c('transition',{attrs:{\"name\":\"modal-fade\"}},[_c('div',{staticClass:\"modal-overlay\",on:{\"click\":function($event){return _vm.$emit('close-modal')}}},[_c('div',{staticClass:\"modal relative\",on:{\"click\":function($event){$event.stopPropagation();}}},[(_vm.closeVisible)?_c('div',{staticClass:\"absolute right-0 pr-4 top-5 cursor-pointer\",on:{\"click\":function($event){return _vm.$emit('closeModal')}}},[_c('x-icon',{attrs:{\"size\":\"1.5x\"}})],1):_vm._e(),_c('div',{staticClass:\"bg-white\"},[_c('div',[(_vm.popUpImage1 || _vm.popUpImage2)?_c('div',{staticClass:\"font-bold text-center mb-3 flex justify-center text-base sm:text-xl\"},[_c('div',[_c('strong',[_vm._v(\"Do you want to mark the submission Plagiarised?\")])])]):_vm._e(),(_vm.popUpImage1)?_c('div',{staticClass:\"w-full\"},[_c('img',{staticClass:\"block px-4 pb-2 mx-auto w-3/12\",attrs:{\"src\":require(\"@/assets/images/plag_warning1.gif\")}})]):_vm._e(),(_vm.popUpImage2)?_c('div',{staticClass:\"w-full\"},[_c('img',{staticClass:\"block px-4 pb-2 mx-auto w-2/5\",attrs:{\"src\":require(\"@/assets/images/plag_warning2.gif\")}})]):_vm._e()]),_c('div',{staticClass:\"text-gray-500 px-4\",domProps:{\"innerHTML\":_vm._s(_vm.message)}}),_c('div',{staticClass:\"pb-4 pt-4 bg-white flex flex-col items-center\"},[(_vm.reReviewButton)?_c('button',{staticClass:\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\",on:{\"click\":function($event){return _vm.applyReview(_vm.reReviewButtonLink)}}},[_vm._v(\" Apply Re-Review \")]):_vm._e(),(_vm.archiveButton)?_c('button',{staticClass:\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2\",on:{\"click\":function($event){return _vm.$emit('Archive')}}},[_vm._v(\"Yes\")]):_vm._e(),(_vm.closeVisible)?_c('button',{staticClass:\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\",staticStyle:{\"background-color\":\"grey\"},on:{\"click\":function($event){return _vm.$emit('closeModal')}}},[_vm._v(\" No \")]):_vm._e(),(_vm.linkButton)?_c('button',{staticClass:\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\",on:{\"click\":function($event){return _vm.navigate(_vm.link)}}},[_vm._v(_vm._s(_vm.linkButton))]):_vm._e()])])])])])],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <main v-if=\"isVisible\" class=\"modal-wrapper relative z-50 modal-filter fixed inset-0 w-full h-screen flex mt-2 justify-center bg-semi-75 h-fit\">\n <transition name=\"modal-fade\">\n <div class=\"modal-overlay\" @click=\"$emit('close-modal')\">\n <div class=\"modal relative\" @click.stop>\n <!-- <h6>Saved!</h6> -->\n <div @click=\"$emit('closeModal')\" class=\"absolute right-0 pr-4 top-5 cursor-pointer\" v-if=\"closeVisible\">\n <x-icon size=\"1.5x\"></x-icon>\n </div>\n <div class=\"bg-white\">\n <!-- adding gif in Plagiarism warning from Peer Review page-->\n\n <div>\n <div v-if=\"popUpImage1 || popUpImage2\" class=\"font-bold text-center mb-3 flex justify-center text-base sm:text-xl\">\n <div><strong>Do you want to mark the submission Plagiarised?</strong></div>\n </div>\n <div v-if=\"popUpImage1\" class=\"w-full\">\n <img src=\"@/assets/images/plag_warning1.gif\" class=\"block px-4 pb-2 mx-auto w-3/12\" />\n </div>\n <div v-if=\"popUpImage2\" class=\"w-full\">\n <img src=\"@/assets/images/plag_warning2.gif\" class=\"block px-4 pb-2 mx-auto w-2/5\" />\n </div>\n </div>\n\n <div class=\"text-gray-500 px-4\" v-html=\"message\"></div>\n <div class=\"pb-4 pt-4 bg-white flex flex-col items-center\">\n <button @click=\"applyReview(reReviewButtonLink)\" v-if=\"reReviewButton\" class=\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\">\n Apply Re-Review\n </button>\n\n <button @click=\"$emit('Archive')\" v-if=\"archiveButton\" class=\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2\">Yes</button>\n <button\n @click=\"$emit('closeModal')\"\n v-if=\"closeVisible\"\n style=\"background-color: grey\"\n class=\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\"\n >\n No\n </button>\n <button @click=\"navigate(link)\" v-if=\"linkButton\" class=\"px-4 py-2 my-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\">{{ linkButton }}</button>\n <!-- <button class=\"py-2 px-4 bg-blue-900 text-white shadow-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\">Helpmate</button> -->\n </div>\n </div>\n </div>\n </div>\n </transition>\n </main>\n</template>\n\n<script>\nimport { XIcon } from 'vue-feather-icons';\n// eslint-disable-next-line\nimport router from '@/router';\n\nexport default {\n components: { XIcon },\n name: 'Generic',\n props: {\n isVisible: {\n type: Boolean,\n default: false,\n required: true,\n },\n message: {\n type: String,\n default: '',\n required: true,\n },\n closeVisible: {\n type: Boolean,\n default: false,\n required: false,\n },\n reReviewButton: {\n type: Boolean,\n default: false,\n required: false,\n },\n archiveButton: {\n type: Boolean,\n default: false,\n required: false,\n },\n reReviewButtonLink: {\n type: String,\n default: '',\n required: false,\n },\n link: {\n type: String,\n default: '',\n required: false,\n },\n linkButton: {\n type: String,\n default: '',\n required: false,\n },\n popUpImage1: {\n type: Boolean,\n default: false,\n required: false,\n },\n popUpImage2: {\n type: Boolean,\n default: false,\n required: false,\n },\n },\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n setup() {\n const applyReview = async (reReviewButtonLink) => {\n router.push({ path: '/solidify/rereview', query: { learner_task_id: reReviewButtonLink } });\n };\n const navigate = (link) => {\n window.location.href = link;\n };\n return { applyReview, navigate };\n },\n};\n</script>\n\n<style lang=\"postcss\">\n.modal-overlay {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n justify-content: center;\n background-color: #000000da;\n}\n.modal {\n text-align: center;\n background-color: white;\n height: 200px;\n width: 600px;\n margin-top: 10%;\n padding: 40px 0;\n /* border-radius: 20px; */\n}\np {\n /* font-weight: 500; */\n font-size: 15px;\n margin: 20px 0;\n}\n/* button {\n background-color: #ac003e;\n width: 150px;\n height: 40px;\n color: white;\n font-size: 14px;\n border-radius: 16px;\n margin-top: 50px;\n} */\n.modal-fade-enter,\n.modal-fade-leave-to {\n opacity: 0;\n}\n.modal-fade-enter-active,\n.modal-fade-leave-active {\n transition: opacity 0.5s ease;\n}\n</style>\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./GenericModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./GenericModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GenericModal.vue?vue&type=template&id=01921342&\"\nimport script from \"./GenericModal.vue?vue&type=script&lang=js&\"\nexport * from \"./GenericModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./GenericModal.vue?vue&type=style&index=0&id=01921342&prod&lang=postcss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"mt-4 lg:px-24 md:px-24 px-4 flex justify-between items-center w-full\"},[_c('div',{staticClass:\"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2\"},[(_vm.learning_content_display_name)?_c('span',[_vm._v(\" \"+_vm._s(_vm.learning_content_display_name)+\" \")]):_c('span',[(_vm.program === 'infinity')?_c('span',[_vm._v(_vm._s(_vm.proficiency)+\" - \")]):_vm._e(),_vm._v(_vm._s(_vm.skill))])]),_c('div',{staticClass:\"my-2\"},[_c('div',{staticClass:\"text-blue-900 md:text-lg text-sm text-right\"},[_vm._v(\"Hi, \"+_vm._s(_vm.username))])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { defineComponent, onBeforeMount, ref } from 'vue';\n\nexport default defineComponent({\n name: 'Greetings',\n props: {\n proficiency: {\n type: String,\n default: '',\n },\n skill: {\n type: String,\n default: '',\n },\n program: {\n type: String,\n default: '',\n },\n learning_content_display_name: {\n type: String,\n default: '',\n },\n },\n setup() {\n const username = ref('');\n onBeforeMount(async () => {\n const item = localStorage.getItem('userName') || 'Learner';\n username.value = item.split(',').reverse().join(' ');\n });\n return { username };\n },\n});\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Greetings.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Greetings.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Greetings.vue?vue&type=template&id=1cbddefa&\"\nimport script from \"./Greetings.vue?vue&type=script&lang=ts&\"\nexport * from \"./Greetings.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"containers mx-auto allBoxImg mt-10\"},[(_vm.renderReady)?[(!_vm.showErrorMessage)?[(_vm.learnerRereviewDetails)?_c('div',{staticClass:\"flex\"},[_c('div',{staticClass:\"w-full pt-12\"},[_c('Greetings',{attrs:{\"program\":_vm.learnerRereviewDetails.program,\"proficiency\":_vm.learnerRereviewDetails.proficiency,\"skill\":_vm.learnerRereviewDetails.skill,\"learning_content_display_name\":_vm.learnerRereviewDetails.learning_content_display_name}}),_c('Generic',{attrs:{\"is-visible\":_vm.modalVisible,\"message\":_vm.modalMessage}}),_c('div',{staticClass:\"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3\"},[_c('div',{staticClass:\"block mt-4\"},[_c('div',{staticClass:\"text-gray-600\"},[_c('div',{staticClass:\"p-4 mb-3 rounded-lg shadow border border-gray-200\"},[_vm._m(0),(!_vm.learnerRereviewDetails.request_for_re_review)?_c('div',[_c('p',{staticClass:\"pt-4\"},[_vm._v(\"Requesting a re-review doesn't guarantee that your submission will pass. You'll receive an email once the review is complete (allow up to 2 weeks).\")]),_vm._m(1),_c('p',{staticClass:\"pt-6\"},[_c('label',[_c('input',{attrs:{\"type\":\"checkbox\"},on:{\"change\":function($event){return _vm.setRereviewButtonEnable($event)}}}),_vm._v(\" By proceeding, you confirm that you've read and agree to abide by the Plagiarism statement.\")])]),_vm._m(2)]):_vm._e(),(_vm.learnerRereviewDetails.request_for_re_review)?_c('div',[_c('p',{staticClass:\"pt-4\"},[_vm._v(\"Your request for re-review has been accepted and is currently in progress.\")]),_vm._m(3)]):_vm._e()])])]),_c('div',{staticClass:\"block text-center pt-6\"},[_c('div',{staticClass:\"mb-4 text-center\"},[(!_vm.learnerRereviewDetails.request_for_re_review)?_c('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:_vm.buttonDisable ? 'bg-gray-500 cursor-not-allowed' : 'bg-background-secondary',attrs:{\"disabled\":_vm.buttonDisable},on:{\"click\":_vm.requestForRereviewSubmit}},[_vm._v(\" Re-review \")]):_vm._e(),(_vm.learnerRereviewDetails.request_for_re_review)?_c('button',{staticClass:\"ml-2 mr-2 inline-block mt-2 py-2 px-4 bg-background-secondary text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75\",on:{\"click\":_vm.checkRereviewStatus}},[_vm._v(\" Check Status \")]):_vm._e()])])])],1)]):_vm._e()]:_vm._e(),(_vm.showErrorMessage)?_c('ErrorMessage',{attrs:{\"error-message\":_vm.errorResponse}}):_vm._e()]:_vm._e(),(!_vm.renderReady)?_c('div',{staticClass:\"flex flex-col h-min-screen justify-center text-center\"},[_c('img',{staticClass:\"mb-8 block mx-auto loadercss mt-3%\",attrs:{\"src\":require(\"@/assets/images/loadernew.gif\"),\"alt\":\"Loader Gif\"}}),_c('p',{staticClass:\"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue\"},[_vm._v(\"Loading...\")])]):_vm._e()],2)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('strong',[_vm._v(\"Re-Review Request\")])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"pt-4\"},[_c('p',[_c('strong',[_vm._v(\"Key Limitations: \")])]),_c('ul',{staticClass:\"mt-2 list-disc pl-8\"},[_c('li',[_vm._v(\"Each submission is eligible for only one re-review.\")]),_c('li',[_vm._v(\"You cannot start a new Solidify journey for the same skill while your re-review is pending.\")]),_c('li',[_vm._v(\"If our reviewers determine the original assessment was correct, your results will remain unchanged.\")])])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('p',{staticClass:\"mt-2\"},[_vm._v(\"Click on \"),_c('strong',[_vm._v(\"\\\"Re-review\\\"\")]),_vm._v(\" to continue.\")])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('p',{staticClass:\"pt-2\"},[_vm._v(\"Click \"),_c('strong',[_vm._v(\"'Check Status'\")]),_vm._v(\" to track the status of the re-review.\")])\n}]\n\nexport { render, staticRenderFns }","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport $http from '../plugins/axios';\n\nconst fetchLearnerStatusForReview = async (learnerTaskId: string) => {\n // let reReviewStatusResponse: any;\n // try {\n // await $http.get(`/learnerRereviewStatus/${learnerTaskId}`).then((response) => {\n // reReviewStatusResponse = response.data;\n // return reReviewStatusResponse;\n // });\n // return reReviewStatusResponse;\n // } catch (error) {\n // return error;\n // }\n const reReviewStatusResponse = await $http.get(`/learnerRereviewStatus/${learnerTaskId}`);\n return reReviewStatusResponse;\n};\n\nconst requestForRereview = async (learnerTaskId: string, requestFromAdmin: boolean) => {\n // try {\n // let res: any;\n // await $http.post('/learnerRereview/', { learner_task_id: learnerTaskId, requestFromAdmin }).then((response) => {\n // res = response.data;\n // return res;\n // });\n // return res;\n // } catch (error) {\n // return error;\n // }\n const res = await $http.post('/learnerRereview', { learner_task_id: learnerTaskId, requestFromAdmin });\n return res;\n};\nexport { fetchLearnerStatusForReview, requestForRereview };\n","\nimport { defineComponent, onBeforeMount, ref } from 'vue';\n// import router from '@/router';\nimport Generic from '@/components/global/GenericModal.vue';\nimport axios, { AxiosError } from 'axios';\nimport ErrorMessage from '@/components/global/ErrorMessage.vue';\nimport Greetings from '@/components/global/Greetings.vue';\nimport { fetchLearnerStatusForReview, requestForRereview } from '../utils/re_review_service';\n\nexport default defineComponent({\n name: 'LearnerRereview',\n components: { Generic, ErrorMessage, Greetings },\n // props: ['query'],\n props: {\n query: {\n type: Object,\n default: () => ({}),\n },\n },\n setup(props) {\n const learnerTaskId = ref(props.query.learner_task_id);\n const learnerRereviewDetails = ref();\n const modalVisible = ref(false);\n const modalMessage = ref();\n const buttonDisable = ref(true);\n const renderReady = ref(false);\n const errorResponse = ref();\n const showErrorMessage = ref(false);\n const helpmateLink = ref(localStorage.getItem('helpmateLink'));\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const setRereviewButtonEnable = (e: any) => {\n const cb = e.target.checked;\n if (cb === true) {\n buttonDisable.value = false;\n console.log(buttonDisable.value);\n } else {\n buttonDisable.value = true;\n console.log(buttonDisable.value);\n }\n };\n\n const requestForRereviewSubmit = async () => {\n try {\n renderReady.value = false;\n if (learnerRereviewDetails.value.is_plagiarised && learnerRereviewDetails.value.plagiarism_reevaluation_requested) {\n modalVisible.value = true;\n modalMessage.value = 'Learner already requested for re-evaluation for plagiarism so cannot request for re-review now';\n return;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const res: any = await requestForRereview(learnerTaskId.value, false);\n learnerRereviewDetails.value.request_for_re_review = res.data?.request_for_re_review;\n learnerRereviewDetails.value.re_review_status = res.data?.re_review_status;\n renderReady.value = true;\n modalVisible.value = true;\n modalMessage.value = '<strong>Re-review in Progress</strong>,<br> You’ll receive an email as soon as the review is complete.';\n } catch (error) {\n // modalVisible.value = true;\n // modalMessage.value = `There is an issue in requesting for review ${error}`;\n console.log('inside catch error');\n console.log(JSON.stringify(error));\n renderReady.value = true;\n // localStorage.setItem('errorMsg', JSON.stringify(error));\n // router.push({ path: '/solidify/Error' });\n if (axios.isAxiosError(error)) {\n const err = error as AxiosError;\n console.log(err.response?.data);\n errorResponse.value = err.response?.data;\n // console.log(`errorMessage.value ${errorMessage.value}`);\n } else {\n errorResponse.value = 'There is an issue in requesting for review, please contact helpmate.';\n }\n showErrorMessage.value = true;\n // console.log(error);\n }\n };\n const checkRereviewStatus = async () => {\n try {\n renderReady.value = false;\n const res = await fetchLearnerStatusForReview(learnerTaskId.value);\n learnerRereviewDetails.value = res.data;\n renderReady.value = true;\n console.log(`after check status ${JSON.stringify(learnerRereviewDetails)}`);\n if (learnerRereviewDetails.value.re_review_status === 'Re-review Accepted Proxy Assigned' || learnerRereviewDetails.value.re_review_status === 'Re-review Accepted Proxy Unavailable') {\n modalVisible.value = true;\n modalMessage.value = '<br><strong>Re-review in Progress</strong>,<br> You’ll receive an email as soon as the review is complete.';\n } else if (learnerRereviewDetails.value.re_review_status === 'Complete') {\n modalVisible.value = true;\n modalMessage.value = '<br><br>Great news! Your re-review is complete — check your email for details.';\n }\n return;\n } catch (error) {\n // modalVisible.value = true;\n // modalMessage.value = `There is an issue in fetching learner re-review status ${error}`;\n console.log('inside catch error');\n console.log(JSON.stringify(error));\n renderReady.value = true;\n // localStorage.setItem('errorMsg', JSON.stringify(error));\n // router.push({ path: '/solidify/Error' });\n if (axios.isAxiosError(error)) {\n const err = error as AxiosError;\n console.log(err.response?.data);\n errorResponse.value = err.response?.data;\n // console.log(`errorMessage.value ${errorMessage.value}`);\n } else {\n errorResponse.value = 'There is an issue in fetching learner re-review status, please contact helpmate.';\n }\n showErrorMessage.value = true;\n }\n };\n\n onBeforeMount(async () => {\n try {\n renderReady.value = false;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const res: any = await fetchLearnerStatusForReview(learnerTaskId.value);\n learnerRereviewDetails.value = res.data;\n renderReady.value = true;\n console.log(`learnerRereviewDetails.value ${JSON.stringify(learnerRereviewDetails.value)}`);\n if (learnerRereviewDetails.value.is_plagiarised && learnerRereviewDetails.value.plagiarism_reevaluation_requested) {\n modalVisible.value = true;\n modalMessage.value = 'Learner already requested for re-evaluation for plagiarism so cannot request for re-review now';\n }\n } catch (error) {\n // modalVisible.value = true;\n // modalMessage.value = 'There is an issue to fetch existing record';\n console.log('inside catch error');\n console.log(JSON.stringify(error));\n renderReady.value = true;\n // localStorage.setItem('errorMsg', JSON.stringify(error));\n // router.push({ path: '/solidify/Error' });\n if (axios.isAxiosError(error)) {\n const err = error as AxiosError;\n console.log(err.response?.data);\n errorResponse.value = err.response?.data;\n // console.log(`errorMessage.value ${errorMessage.value}`);\n } else {\n errorResponse.value = 'There is an issue to fetch existing record, please contact helpmate.';\n }\n showErrorMessage.value = true;\n }\n });\n return {\n modalVisible,\n modalMessage,\n buttonDisable,\n learnerRereviewDetails,\n setRereviewButtonEnable,\n requestForRereviewSubmit,\n checkRereviewStatus,\n renderReady,\n helpmateLink,\n showErrorMessage,\n };\n },\n});\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Learner_Rereview.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Learner_Rereview.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Learner_Rereview.vue?vue&type=template&id=2176a016&scoped=true&\"\nimport script from \"./Learner_Rereview.vue?vue&type=script&lang=ts&\"\nexport * from \"./Learner_Rereview.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2176a016\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","domProps","_s","errorMsg","attrs","helpmateLink","require","staticRenderFns","defineComponent","name","props","errorMessage","type","String","default","setup","ref","localStorage","getItem","onBeforeMount","async","value","component","isVisible","on","$event","$emit","stopPropagation","closeVisible","_e","popUpImage1","popUpImage2","_v","message","reReviewButton","applyReview","reReviewButtonLink","archiveButton","staticStyle","linkButton","navigate","link","components","XIcon","Boolean","required","router","path","query","learner_task_id","window","location","href","learning_content_display_name","program","proficiency","skill","username","item","split","reverse","join","renderReady","showErrorMessage","learnerRereviewDetails","modalVisible","modalMessage","_m","request_for_re_review","setRereviewButtonEnable","class","buttonDisable","requestForRereviewSubmit","checkRereviewStatus","errorResponse","fetchLearnerStatusForReview","reReviewStatusResponse","$http","learnerTaskId","requestForRereview","requestFromAdmin","res","Generic","ErrorMessage","Greetings","Object","e","cb","target","checked","console","log","is_plagiarised","plagiarism_reevaluation_requested","data","re_review_status","error","JSON","stringify","axios","err","response"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[351],{4302:function(e,t,a){a.r(t),a.d(t,{default:function(){return w}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[e.showScreen?t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._m(0),t("div",{staticClass:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow p-4 text-background-secondary"},[t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Search by OHR/email ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.ohrEmail,expression:"ohrEmail"}],staticClass:"appearance-none border rounded w-full py-2 px-3 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text"},domProps:{value:e.ohrEmail},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchData()},keydown:e.showHideCancel,input:function(t){t.target.composing||(e.ohrEmail=t.target.value)}}})]),t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Skill ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedSkill,expression:"selectedSkill"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedSkill=t.target.multiple?a:a[0]},function(t){return e.getSelectedSkill(t)}]}},[t("option",[e._v("Select Skill")]),e._l(e.skills,(function(a){return t("option",{key:a.skill_id,domProps:{value:a.skill_id}},[e._v(e._s(a.skill_alias))])}))],2)]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showProficiency,expression:"showProficiency"}],staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Proficiency ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedProficiency,expression:"selectedProficiency"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedProficiency=t.target.multiple?a:a[0]},function(t){return e.getSelectedProficiency(t)}]}},[t("option",[e._v("Select Proficiency")]),e._l(e.proficiency,(function(a){return t("option",{key:a.prof_id,domProps:{value:a.prof_id}},[e._v(e._s(a.prof_name))])}))],2)]),t("div",{staticClass:"w-full mb-4"},[t("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.searchData()}}},[e._v("Search")])])])])]),t("div",{staticClass:"flex w-full mt-2"},[t("div",{staticClass:"mt-10 text-left w-4/6 mb-2"},[e.showdiffAccess?t("label",{staticClass:"block tracking-wide -text-blue-800 font-normal"},[t("span",{staticClass:"opacity-80"},[e._v("Differential access status -")]),e._v(" "),t("span",{staticClass:"capitalize text-background-secondary font-bold"},[e._v(e._s(e.diffAccess))])]):e._e()]),t("div")]),t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("button",{directives:[{name:"show",rawName:"v-show",value:e.journeyBtnShow,expression:"journeyBtnShow"}],staticClass:"mt-2 mr-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.viewLearnerDetails()}}},[e._v("Learner Journey")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showEventBtn,expression:"showEventBtn"}],staticClass:"mt-2 mr-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.viewEvents()}}},[e._v("View Events")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showGradBtn,expression:"showGradBtn"}],staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary mr-2",on:{click:function(t){return e.viewGrades()}}},[e._v("View Grades")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showDeleteBtn,expression:"showDeleteBtn"}],staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary mr-2",on:{click:function(t){return e.DeleteLearnerDetails()}}},[e._v("Delete")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showUploadBtn,expression:"showUploadBtn"}],staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary mr-2",on:{click:function(t){return e.uploadLearnerSubmission()}}},[e._v("Upload Learner Submission")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.holdLearnerBtn,expression:"holdLearnerBtn"}],staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary mr-2",on:{click:function(t){return e.showLearnerHoldPanel()}}},[e._v(e._s(e.isLearnerOnHold?"Unhold Learner":"Hold Learner"))]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showPlagiarismBtn,expression:"showPlagiarismBtn"}],staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary mr-2",on:{click:function(t){return e.showProxy()}}},[e._v("Re-evaluate Plagiarism")])])]),e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e.showErrorMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-red-400 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e.showReEvaluatePanel?t("div",{staticClass:"w-full mt-4% mb-4"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyAssignedBtn?t("div",{staticClass:"w-1/4 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.assignLearnerToProxy()}}},[e._v("Assign Proxy")])]):e._e(),t("div",{staticClass:"w-full mt-4"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.proxyList,(function(a){return t("tr",{key:a.proxy_ohr,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedProxyOhr,expression:"selectedProxyOhr"}],attrs:{type:"checkbox",id:a.proxy_ohr},domProps:{value:a.proxy_ohr,checked:Array.isArray(e.selectedProxyOhr)?e._i(e.selectedProxyOhr,a.proxy_ohr)>-1:e.selectedProxyOhr},on:{change:[function(t){var s=e.selectedProxyOhr,n=t.target,r=!!n.checked;if(Array.isArray(s)){var l=a.proxy_ohr,o=e._i(s,l);n.checked?o<0&&(e.selectedProxyOhr=s.concat([l])):o>-1&&(e.selectedProxyOhr=s.slice(0,o).concat(s.slice(o+1)))}else e.selectedProxyOhr=r},function(t){return e.showAssignProxyBtn(t)}],click:e.proxyCheckedOne}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_name))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_email))]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(a.proxy_ohr))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_role))])])})),0)])])]):e._e(),e.showTaskImport?t("div",{staticClass:"border border-background-secondary mt-6 p-8 w-full"},[t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})]),e.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),e.successMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.successMessage))]):e._e(),t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mt-4",on:{click:e.submitSubmiision}},[e._v("Upload Learner Submission")])]):e._e(),e.learnerHoldPanel?t("div",{staticClass:"border border-background-secondary mt-6 mb-6 p-8 w-full"},[t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Enter Reason ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.learnerHoldReason,expression:"learnerHoldReason"}],staticClass:"appearance-none border rounded w-full py-2 px-3 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text",disabled:!0===e.isLearnerOnHold},domProps:{value:e.learnerHoldReason},on:{input:function(t){t.target.composing||(e.learnerHoldReason=t.target.value)}}})]),t("div",{staticClass:"w-full mb-4"},[t("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.callHoldLearner()}}},[e._v(e._s(e.isLearnerOnHold?"Unhold Learner":"Hold Learner"))])])])]):e._e(),e.learnerData?t("div",{staticClass:"w-full mb-8 tableScroll"},[t("table",{staticClass:"text-left w-full text-md bg-white shadow rounded mb-4"},[e._m(2),t("tbody",{staticClass:"opacity-80 -text-blue-800"},e._l(e.learnerData,(function(a){return t("tr",{key:a.learner_task_id,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.checkOne,expression:"checkOne"}],attrs:{type:"checkbox"},domProps:{value:a.learner_task_id,checked:Array.isArray(e.checkOne)?e._i(e.checkOne,a.learner_task_id)>-1:e.checkOne},on:{change:[function(t){var s=e.checkOne,n=t.target,r=!!n.checked;if(Array.isArray(s)){var l=a.learner_task_id,o=e._i(s,l);n.checked?o<0&&(e.checkOne=s.concat([l])):o>-1&&(e.checkOne=s.slice(0,o).concat(s.slice(o+1)))}else e.checkOne=r},function(t){return e.showJourneyBtn(t,a.learner_task_id,a.linked_task_id,a.learner_status,a.is_plagiarised,a.skill,a.proficiency,a.learner_key,a.technical_hold,a.reason_for_hold)}],click:e.checkedOne}})]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.fullname}},[e._v(e._s(a.fullname))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.email}},[e._v(e._s(a.email))]),t("td",{staticClass:"p-2 px-3 text-center",attrs:{title:a.learner_key}},[e._v(e._s(a.learner_key))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.proficiencyName}},[e._v(e._s(a.proficiencyName))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.skillName}},[e._v(e._s(a.skillName))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.learner_status}},[e._v(e._s(a.learner_status))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.registration_date}},[e._v(e._s(a.registration_date))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.submission_date}},[e._v(e._s(a.submission_date))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.completion_date}},[e._v(e._s(a.completion_date))])])})),0)])]):e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])]):t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._v("You don't have access")])])},n=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Operational data")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Email")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"py-2 pl-3 pr-0 w-6"}),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Full name")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Email")]),t("th",{staticClass:"p-2 px-3 text-background-secondary text-center"},[e._v("OHR")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Proficiency")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Skill")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Status")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Registration Date")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Submission Date")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Completion Date")])])])}],r=a(7203),l=a(1602),o=a.n(l),i=a(8451),c=a(5279),u=a(442),d=a(568),v=a(8709),p=a(306),f=(0,r.defineComponent)({name:"OperationalTab",setup(){const e=(0,r.ref)(),t=(0,r.ref)(),a=(0,r.ref)(),s=(0,r.ref)(),n=(0,r.ref)(),l=(0,r.ref)(!0),f=(0,r.ref)(!1),y=(0,r.ref)(!1),h=(0,r.ref)(!1),m=(0,r.ref)([]),w=(0,r.ref)(!1),g=(0,r.ref)(!1),_=(0,r.ref)(!1),x=(0,r.ref)(!1),b=(0,r.ref)(),k=(0,r.ref)(),C=(0,r.ref)(!0),S=(0,r.ref)(),P=(0,r.ref)(!1),Z=(0,r.ref)(!1),O=(0,r.ref)(!1),L=(0,r.ref)(!1),A=(0,r.ref)(),D=(0,r.ref)(),B=(0,r.ref)(),E=(0,r.ref)(),R=(0,r.ref)(),H=(0,r.ref)(),M=(0,r.ref)("Select Skill"),N=(0,r.ref)("Select Proficiency"),T={},U=(0,r.ref)(!1),j=(0,r.ref)(!1),Y=(0,r.ref)(),$=(0,r.ref)(),G=(0,r.ref)(),V=(0,r.ref)(),F=(0,r.ref)([]),I=(0,r.ref)(!1),J=(0,r.ref)(),X=(0,r.ref)(!1),q=(0,r.ref)(),z=(0,r.ref)(!1),Q=(0,r.ref)(!1),W=(0,r.ref)(!1),K=(0,r.ref)(""),ee=()=>{m.value=[]},te=()=>{F.value=[]},ae=()=>{Q.value=!Q.value},se=(e,t,a,s,n,r,l,o,i,c)=>{const u=e.target.checked;!0===u?(O.value=!1,w.value=!0,g.value=!0,_.value=!0,x.value=!0,z.value=!0,b.value=t,Y.value=r,V.value=o,W.value=1===i,K.value=1===i?c:"",$.value=l,q.value=a,console.log(`Learner OHR ${V.value}`),localStorage.setItem("inputValue",S.value),"Registered"===s&&k.value.includes("System Admin")?y.value=!0:y.value=!1,U.value=!0===n):(w.value=!1,z.value=!1,W.value=!1,g.value=!1,y.value=!1,_.value=!1,U.value=!1,O.value=!1)},ne=()=>{const e=u.Z.resolve({name:"SolidifyAdministrationOperationalDetails",query:{learner_task_id:b.value}});window.open(e.href,"_blank")},re=()=>{const e=u.Z.resolve({name:"SolidifyAdministrationUploadSubmission",query:{linked_task_id:q.value,learner_task_id:b.value}});window.open(e.href,"_blank")},le=()=>{const e=u.Z.resolve({name:"SolidifyAdministrationLearnerEvents",query:{learner_task_id:b.value}});window.open(e.href,"_blank")},oe=()=>{const e=u.Z.resolve({name:"SolidifyAdministrationLearnerGrades",query:{learner_task_id:b.value}});window.open(e.href,"_blank")},ie=async()=>{l.value=!1;const e=await(0,i.QZ)("/getAllSkillProf");t.value=e.skill,a.value=e.proficiency,l.value=!0},ce=async()=>{try{O.value=!1,l.value=!1;const t=await(0,i.Lu)("/getAllOperationData",T);if(e.value=t.operationData,A.value=t.diffStatus,console.log("diffAccess.value",A.value),A.value&&(P.value=!0),e.value)for(let a=0;a<e.value.length;a+=1){const t=e.value[a];t.registration_date&&(t.registration_date=o()(t.registration_date).format("DD-MM-YYYY")),t.completion_date&&(t.completion_date=o()(t.completion_date).format("DD-MM-YYYY")),t.submission_date&&(t.submission_date=o()(t.submission_date).format("DD-MM-YYYY"))}localStorage.removeItem("inputValue"),l.value=!0}catch(t){console.log(t)}},ue=async()=>{S.value&&(Object.assign(T,{ohrEmail:S.value}),await ce())},de=async()=>{l.value=!1,await(0,i.O6)(`/deleteRegisteredLearner/${b.value}`),await ce(),l.value=!0},ve=()=>{S.value="",h.value=!1},pe=()=>{S.value?h.value=!0:h.value=!1},fe=async e=>{try{const t=e.target.files[0],a=e.target.files[0].name,s=e.target.files[0].size/1024/1024;s>200?(E.value="fileSize greater than 200 MB",setTimeout((()=>{E.value=null}),6e3)):(D.value=t,B.value=a)}catch(t){console.log(t)}},ye=async()=>{if(B.value){l.value=!1;const e=await(0,d.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:B.value,learner_task_id:b.value}),t=e.data;H.value=t.preSignedUrl;const a=await(0,d.sc)(H.value,D.value);if(console.log("Upload Response",a),200===a.status){const e={learner_submission:B.value,learner_task_id:b.value},t=await(0,i.oE)("/uploadLearnerSubmissionFromAdmin",e);console.log(t),R.value="File uploaded Successfully",setTimeout((()=>{R.value=null,Z.value=!1,ce()}),6e3)}else E.value="There is issue in the file upload",setTimeout((()=>{E.value=null}),6e3);l.value=!0}},he=async e=>{N.value=e.target.value,"Select Proficiency"===N.value?(N.value="Select Proficiency",Object.assign(T,{proficiency_id:""})):Object.assign(T,{proficiency_id:N.value})},me=async e=>{M.value=e.target.value,"Select Skill"===M.value?(M.value="Select Skill",L.value=!1,Object.assign(T,{skill_id:"",proficiency_id:""})):(Object.assign(T,{skill_id:M.value}),L.value=!0)},we=async()=>{l.value=!1,O.value=!0,G.value=await(0,v.Nl)("/getAllProxyBySkill",Y.value),l.value=!0,console.log("Proxy List",G.value)},ge=async()=>{console.log("Assign Proxy");try{l.value=!1;const e={learner:b.value,proxy_key:F.value[0],learner_key:V.value,skill:Y.value,proficiency:$.value};console.log("Selected Data",e);const t=await(0,i.X5)("/reevaluatePlagiarism",e);O.value=!1,l.value=!0,console.log("assignProxyRes?.data.message",t?.data.message),J.value=t?.data.message,I.value=!0,setTimeout((()=>{I.value=!1}),6e3),await ce()}catch(e){if(p.Z.isAxiosError(e)){const t=e;console.log("err.response?.data",t.response?.data),l.value=!0,J.value=t.response?.data?.message,console.log(`errorMessage.value ${E.value}`),X.value=!0,setTimeout((()=>{X.value=!1}),6e3)}}},_e=async()=>{l.value=!1;const e={learner_task_id:b.value,action:!0===!W.value?"1":"0",reason:K.value};try{const t=await(0,i.R2)("/admin/learner/perform_technical_hold",e);console.log(t),R.value=t,W.value=!W.value,setTimeout((()=>{R.value=null,ce()}),6e3),l.value=!0}catch(t){if(p.Z.isAxiosError(t)){const e=t;console.log("err.response?.data",e.response?.data),l.value=!0,J.value=e.response?.data?.message,console.log(`errorMessage.value ${E.value}`),X.value=!0,setTimeout((()=>{X.value=!1}),6e3)}}Q.value=!1},xe=async e=>{const t=e.target.checked;j.value=!0===t};return(0,r.onBeforeMount)((async()=>{const e=await(0,c.GF)("/getUserRole");k.value=e.user_roles,k.value.length>0&&(k.value.includes("System Admin")||k.value.includes("System Admin View Access")||k.value.includes("Program Admin")?(console.log("inside Role"),C.value=!0,await ie()):C.value=!1),localStorage.getItem("inputValue")&&(S.value=localStorage.getItem("inputValue"),Object.assign(T,{ohrEmail:localStorage.getItem("inputValue")}),await ce())})),{learnerData:e,skills:t,proficiency:a,programme:s,status:n,showOperationTab:f,renderReady:l,checkOne:m,checkedOne:ee,showJourneyBtn:se,journeyBtnShow:w,viewLearnerDetails:ne,ohrEmail:S,searchData:ue,showDeleteBtn:y,DeleteLearnerDetails:de,isShowCancel:h,clearInput:ve,showHideCancel:pe,showEventBtn:g,viewEvents:le,showGradBtn:_,viewGrades:oe,showScreen:C,showdiffAccess:P,diffAccess:A,showUploadBtn:x,submitSubmiision:ye,showTaskImport:Z,selectedFile:fe,preSignedUrl:H,successMessage:R,errorMessage:E,getSkillandProf:ie,getSelectedSkill:me,selectedProficiency:N,selectedSkill:M,getSelectedProficiency:he,showProficiency:L,showPlagiarismBtn:U,showReEvaluatePanel:O,checkedSkill:Y,showProxy:we,proxyList:G,proxyAssignedBtn:j,assignLearnerToProxy:ge,selectedProxyOhr:F,showAssignProxyBtn:xe,showSuccessMessage:I,resMessage:J,showErrorMessage:X,proxyCheckedOne:te,linkedTaskId:q,uploadLearnerSubmission:re,holdLearnerBtn:z,learnerHoldPanel:Q,showLearnerHoldPanel:ae,callHoldLearner:_e,isLearnerOnHold:W,learnerHoldReason:K}}}),y=f,h=a(1001),m=(0,h.Z)(y,s,n,!1,null,"389aa30b",null),w=m.exports},8709:function(e,t,a){a.d(t,{G7:function(){return n},Nl:function(){return l},QZ:function(){return r},kn:function(){return o}});var s=a(7129);const n=async(e,t)=>{const a=await s.Z.post(e,t);return a},r=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},l=async(e,t)=>{let a;return await s.Z.get(`${e}/${t}`).then((e=>(a=e.data.allProxyList,a))),a},o=async(e,t)=>{const a=await s.Z.post(e,t);return a}},5279:function(e,t,a){a.d(t,{$d:function(){return n},$i:function(){return k},Ao:function(){return h},DU:function(){return f},EX:function(){return D},F5:function(){return B},FS:function(){return v},GF:function(){return Z},Iu:function(){return l},J1:function(){return b},Jf:function(){return g},Kk:function(){return m},N9:function(){return O},P8:function(){return u},VP:function(){return w},Vz:function(){return C},WX:function(){return p},X$:function(){return _},XP:function(){return r},Yb:function(){return P},a4:function(){return L},dH:function(){return x},gh:function(){return y},nb:function(){return i},oA:function(){return S},r4:function(){return d},sd:function(){return c},wp:function(){return o},xJ:function(){return A}});var s=a(7129);const n=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},r=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},l=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},o=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},i=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},c=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},u=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},d=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},v=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},p=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},f=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},y=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},h=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data.userObj,t))),t},m=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data.userObj,t))),t},w=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data.userObj,t))),t},g=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},_=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},x=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},b=async e=>{const t=await s.Z.get(e);return t},k=async e=>{const t=await s.Z.get(e);return t},C=async e=>{const t=await s.Z.get(e);return t},S=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},P=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},Z=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data.userObj,t))),t},O=async e=>{const t=await s.Z.post("/user/role",e);return t},L=async e=>{const t=await s.Z.post("/user/removeRole",e);return t},A=async()=>{const e=await s.Z.get("role");return e},D=async e=>{const t=await s.Z.post("/user/saveLSS",e);return t},B=async e=>{const t=await s.Z.post("/user/saveEnvAccess",e);return t}},8451:function(e,t,a){a.d(t,{Lu:function(){return n},O6:function(){return o},QZ:function(){return c},R2:function(){return i},X5:function(){return l},oE:function(){return r}});var s=a(7129);const n=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},r=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a},o=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},i=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},c=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t}},568:function(e,t,a){a.d(t,{JV:function(){return u},ie:function(){return o},rC:function(){return i},sc:function(){return r},t$:function(){return c},ux:function(){return n},yW:function(){return l}});var s=a(7129);const n=async(e,t)=>{const a=await s.Z.post(e,t);return a},r=async(e,t)=>{let a;const s=await fetch(`${e}`,{method:"put",body:t});return a=s,a},l=async e=>{const t=await s.Z.get(`/task/${e}`);return t},o=async(e,t)=>{const a=await s.Z.post(e,{learner_task_id:t});return a},i=async(e,t)=>{const a=await s.Z.post(e,t);return a},c=async(e,t)=>{const a=await s.Z.post(e,t);return a},u=async(e,t)=>await s.Z.post(e,t)}}]);
1
+ "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[351],{4302:function(e,t,a){a.r(t),a.d(t,{default:function(){return w}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[e.showScreen?t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._m(0),t("div",{staticClass:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow p-4 text-background-secondary"},[t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Search by OHR/email ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.ohrEmail,expression:"ohrEmail"}],staticClass:"appearance-none border rounded w-full py-2 px-3 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text"},domProps:{value:e.ohrEmail},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchData()},keydown:e.showHideCancel,input:function(t){t.target.composing||(e.ohrEmail=t.target.value)}}})]),t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Skill ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedSkill,expression:"selectedSkill"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedSkill=t.target.multiple?a:a[0]},function(t){return e.getSelectedSkill(t)}]}},[t("option",[e._v("Select Skill")]),e._l(e.skills,(function(a){return t("option",{key:a.skill_id,domProps:{value:a.skill_id}},[e._v(e._s(a.skill_alias))])}))],2)]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showProficiency,expression:"showProficiency"}],staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Proficiency ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedProficiency,expression:"selectedProficiency"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedProficiency=t.target.multiple?a:a[0]},function(t){return e.getSelectedProficiency(t)}]}},[t("option",[e._v("Select Proficiency")]),e._l(e.proficiency,(function(a){return t("option",{key:a.prof_id,domProps:{value:a.prof_id}},[e._v(e._s(a.prof_name))])}))],2)]),t("div",{staticClass:"w-full mb-4"},[t("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.searchData()}}},[e._v("Search")])])])])]),t("div",{staticClass:"flex w-full mt-2"},[t("div",{staticClass:"mt-10 text-left w-4/6 mb-2"},[e.showdiffAccess?t("label",{staticClass:"block tracking-wide -text-blue-800 font-normal"},[t("span",{staticClass:"opacity-80"},[e._v("Differential access status -")]),e._v(" "),t("span",{staticClass:"capitalize text-background-secondary font-bold"},[e._v(e._s(e.diffAccess))])]):e._e()]),t("div")]),t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("button",{directives:[{name:"show",rawName:"v-show",value:e.journeyBtnShow,expression:"journeyBtnShow"}],staticClass:"mt-2 mr-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.viewLearnerDetails()}}},[e._v("Learner Journey")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showEventBtn,expression:"showEventBtn"}],staticClass:"mt-2 mr-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.viewEvents()}}},[e._v("View Events")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showGradBtn,expression:"showGradBtn"}],staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary mr-2",on:{click:function(t){return e.viewGrades()}}},[e._v("View Grades")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showDeleteBtn,expression:"showDeleteBtn"}],staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary mr-2",on:{click:function(t){return e.DeleteLearnerDetails()}}},[e._v("Delete")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showUploadBtn,expression:"showUploadBtn"}],staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary mr-2",on:{click:function(t){return e.uploadLearnerSubmission()}}},[e._v("Upload Learner Submission")]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.holdLearnerBtn,expression:"holdLearnerBtn"}],staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary mr-2",on:{click:function(t){return e.showLearnerHoldPanel()}}},[e._v(e._s(e.isLearnerOnHold?"Unhold Learner":"Hold Learner"))]),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showPlagiarismBtn,expression:"showPlagiarismBtn"}],staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary mr-2",on:{click:function(t){return e.showProxy()}}},[e._v("Re-evaluate Plagiarism")])])]),e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e.showErrorMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-red-400 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e.showReEvaluatePanel?t("div",{staticClass:"w-full mt-4% mb-4"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyAssignedBtn?t("div",{staticClass:"w-1/4 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.assignLearnerToProxy()}}},[e._v("Assign Proxy")])]):e._e(),t("div",{staticClass:"w-full mt-4"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.proxyList,(function(a){return t("tr",{key:a.proxy_ohr,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedProxyOhr,expression:"selectedProxyOhr"}],attrs:{type:"checkbox",id:a.proxy_ohr},domProps:{value:a.proxy_ohr,checked:Array.isArray(e.selectedProxyOhr)?e._i(e.selectedProxyOhr,a.proxy_ohr)>-1:e.selectedProxyOhr},on:{change:[function(t){var s=e.selectedProxyOhr,n=t.target,r=!!n.checked;if(Array.isArray(s)){var l=a.proxy_ohr,o=e._i(s,l);n.checked?o<0&&(e.selectedProxyOhr=s.concat([l])):o>-1&&(e.selectedProxyOhr=s.slice(0,o).concat(s.slice(o+1)))}else e.selectedProxyOhr=r},function(t){return e.showAssignProxyBtn(t)}],click:e.proxyCheckedOne}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_name))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_email))]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(a.proxy_ohr))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_role))])])})),0)])])]):e._e(),e.showTaskImport?t("div",{staticClass:"border border-background-secondary mt-6 p-8 w-full"},[t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})]),e.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),e.successMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.successMessage))]):e._e(),t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mt-4",on:{click:e.submitSubmiision}},[e._v("Upload Learner Submission")])]):e._e(),e.learnerHoldPanel?t("div",{staticClass:"border border-background-secondary mt-6 mb-6 p-8 w-full"},[t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Enter Reason ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.learnerHoldReason,expression:"learnerHoldReason"}],staticClass:"appearance-none border rounded w-full py-2 px-3 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text",disabled:!0===e.isLearnerOnHold},domProps:{value:e.learnerHoldReason},on:{input:function(t){t.target.composing||(e.learnerHoldReason=t.target.value)}}})]),t("div",{staticClass:"w-full mb-4"},[t("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.callHoldLearner()}}},[e._v(e._s(e.isLearnerOnHold?"Unhold Learner":"Hold Learner"))])])])]):e._e(),e.learnerData?t("div",{staticClass:"w-full mb-8 tableScroll"},[t("table",{staticClass:"text-left w-full text-md bg-white shadow rounded mb-4"},[e._m(2),t("tbody",{staticClass:"opacity-80 -text-blue-800"},e._l(e.learnerData,(function(a){return t("tr",{key:a.learner_task_id,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.checkOne,expression:"checkOne"}],attrs:{type:"checkbox"},domProps:{value:a.learner_task_id,checked:Array.isArray(e.checkOne)?e._i(e.checkOne,a.learner_task_id)>-1:e.checkOne},on:{change:[function(t){var s=e.checkOne,n=t.target,r=!!n.checked;if(Array.isArray(s)){var l=a.learner_task_id,o=e._i(s,l);n.checked?o<0&&(e.checkOne=s.concat([l])):o>-1&&(e.checkOne=s.slice(0,o).concat(s.slice(o+1)))}else e.checkOne=r},function(t){return e.showJourneyBtn(t,a.learner_task_id,a.linked_task_id,a.learner_status,a.is_plagiarised,a.skill,a.proficiency,a.learner_key,a.technical_hold,a.reason_for_hold)}],click:e.checkedOne}})]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.fullname}},[e._v(e._s(a.fullname))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.email}},[e._v(e._s(a.email))]),t("td",{staticClass:"p-2 px-3 text-center",attrs:{title:a.learner_key}},[e._v(e._s(a.learner_key))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.proficiencyName}},[e._v(e._s(a.proficiencyName))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.skillName}},[e._v(e._s(a.skillName))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.learner_status}},[e._v(e._s(a.learner_status))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.registration_date}},[e._v(e._s(a.registration_date))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.submission_date}},[e._v(e._s(a.submission_date))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.completion_date}},[e._v(e._s(a.completion_date))])])})),0)])]):e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])]):t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._v("You don't have access")])])},n=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Operational data")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Email")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"py-2 pl-3 pr-0 w-6"}),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Full name")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Email")]),t("th",{staticClass:"p-2 px-3 text-background-secondary text-center"},[e._v("OHR")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Proficiency")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Skill")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Status")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Registration Date")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Submission Date")]),t("th",{staticClass:"p-2 px-3 text-background-secondary"},[e._v("Completion Date")])])])}],r=a(7203),l=a(1602),o=a.n(l),i=a(8451),c=a(5279),u=a(9896),d=a(568),v=a(8709),p=a(306),f=(0,r.defineComponent)({name:"OperationalTab",setup(){const e=(0,r.ref)(),t=(0,r.ref)(),a=(0,r.ref)(),s=(0,r.ref)(),n=(0,r.ref)(),l=(0,r.ref)(!0),f=(0,r.ref)(!1),y=(0,r.ref)(!1),h=(0,r.ref)(!1),m=(0,r.ref)([]),w=(0,r.ref)(!1),g=(0,r.ref)(!1),_=(0,r.ref)(!1),x=(0,r.ref)(!1),b=(0,r.ref)(),k=(0,r.ref)(),C=(0,r.ref)(!0),S=(0,r.ref)(),P=(0,r.ref)(!1),Z=(0,r.ref)(!1),O=(0,r.ref)(!1),L=(0,r.ref)(!1),A=(0,r.ref)(),D=(0,r.ref)(),B=(0,r.ref)(),E=(0,r.ref)(),R=(0,r.ref)(),H=(0,r.ref)(),M=(0,r.ref)("Select Skill"),N=(0,r.ref)("Select Proficiency"),T={},U=(0,r.ref)(!1),j=(0,r.ref)(!1),Y=(0,r.ref)(),$=(0,r.ref)(),G=(0,r.ref)(),V=(0,r.ref)(),F=(0,r.ref)([]),I=(0,r.ref)(!1),J=(0,r.ref)(),X=(0,r.ref)(!1),q=(0,r.ref)(),z=(0,r.ref)(!1),Q=(0,r.ref)(!1),W=(0,r.ref)(!1),K=(0,r.ref)(""),ee=()=>{m.value=[]},te=()=>{F.value=[]},ae=()=>{Q.value=!Q.value},se=(e,t,a,s,n,r,l,o,i,c)=>{const u=e.target.checked;!0===u?(O.value=!1,w.value=!0,g.value=!0,_.value=!0,x.value=!0,z.value=!0,b.value=t,Y.value=r,V.value=o,W.value=1===i,K.value=1===i?c:"",$.value=l,q.value=a,console.log(`Learner OHR ${V.value}`),localStorage.setItem("inputValue",S.value),"Registered"===s&&k.value.includes("System Admin")?y.value=!0:y.value=!1,U.value=!0===n):(w.value=!1,z.value=!1,W.value=!1,g.value=!1,y.value=!1,_.value=!1,U.value=!1,O.value=!1)},ne=()=>{const e=u.Z.resolve({name:"SolidifyAdministrationOperationalDetails",query:{learner_task_id:b.value}});window.open(e.href,"_blank")},re=()=>{const e=u.Z.resolve({name:"SolidifyAdministrationUploadSubmission",query:{linked_task_id:q.value,learner_task_id:b.value}});window.open(e.href,"_blank")},le=()=>{const e=u.Z.resolve({name:"SolidifyAdministrationLearnerEvents",query:{learner_task_id:b.value}});window.open(e.href,"_blank")},oe=()=>{const e=u.Z.resolve({name:"SolidifyAdministrationLearnerGrades",query:{learner_task_id:b.value}});window.open(e.href,"_blank")},ie=async()=>{l.value=!1;const e=await(0,i.QZ)("/getAllSkillProf");t.value=e.skill,a.value=e.proficiency,l.value=!0},ce=async()=>{try{O.value=!1,l.value=!1;const t=await(0,i.Lu)("/getAllOperationData",T);if(e.value=t.operationData,A.value=t.diffStatus,console.log("diffAccess.value",A.value),A.value&&(P.value=!0),e.value)for(let a=0;a<e.value.length;a+=1){const t=e.value[a];t.registration_date&&(t.registration_date=o()(t.registration_date).format("DD-MM-YYYY")),t.completion_date&&(t.completion_date=o()(t.completion_date).format("DD-MM-YYYY")),t.submission_date&&(t.submission_date=o()(t.submission_date).format("DD-MM-YYYY"))}localStorage.removeItem("inputValue"),l.value=!0}catch(t){console.log(t)}},ue=async()=>{S.value&&(Object.assign(T,{ohrEmail:S.value}),await ce())},de=async()=>{l.value=!1,await(0,i.O6)(`/deleteRegisteredLearner/${b.value}`),await ce(),l.value=!0},ve=()=>{S.value="",h.value=!1},pe=()=>{S.value?h.value=!0:h.value=!1},fe=async e=>{try{const t=e.target.files[0],a=e.target.files[0].name,s=e.target.files[0].size/1024/1024;s>200?(E.value="fileSize greater than 200 MB",setTimeout((()=>{E.value=null}),6e3)):(D.value=t,B.value=a)}catch(t){console.log(t)}},ye=async()=>{if(B.value){l.value=!1;const e=await(0,d.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:B.value,learner_task_id:b.value}),t=e.data;H.value=t.preSignedUrl;const a=await(0,d.sc)(H.value,D.value);if(console.log("Upload Response",a),200===a.status){const e={learner_submission:B.value,learner_task_id:b.value},t=await(0,i.oE)("/uploadLearnerSubmissionFromAdmin",e);console.log(t),R.value="File uploaded Successfully",setTimeout((()=>{R.value=null,Z.value=!1,ce()}),6e3)}else E.value="There is issue in the file upload",setTimeout((()=>{E.value=null}),6e3);l.value=!0}},he=async e=>{N.value=e.target.value,"Select Proficiency"===N.value?(N.value="Select Proficiency",Object.assign(T,{proficiency_id:""})):Object.assign(T,{proficiency_id:N.value})},me=async e=>{M.value=e.target.value,"Select Skill"===M.value?(M.value="Select Skill",L.value=!1,Object.assign(T,{skill_id:"",proficiency_id:""})):(Object.assign(T,{skill_id:M.value}),L.value=!0)},we=async()=>{l.value=!1,O.value=!0,G.value=await(0,v.Nl)("/getAllProxyBySkill",Y.value),l.value=!0,console.log("Proxy List",G.value)},ge=async()=>{console.log("Assign Proxy");try{l.value=!1;const e={learner:b.value,proxy_key:F.value[0],learner_key:V.value,skill:Y.value,proficiency:$.value};console.log("Selected Data",e);const t=await(0,i.X5)("/reevaluatePlagiarism",e);O.value=!1,l.value=!0,console.log("assignProxyRes?.data.message",t?.data.message),J.value=t?.data.message,I.value=!0,setTimeout((()=>{I.value=!1}),6e3),await ce()}catch(e){if(p.Z.isAxiosError(e)){const t=e;console.log("err.response?.data",t.response?.data),l.value=!0,J.value=t.response?.data?.message,console.log(`errorMessage.value ${E.value}`),X.value=!0,setTimeout((()=>{X.value=!1}),6e3)}}},_e=async()=>{l.value=!1;const e={learner_task_id:b.value,action:!0===!W.value?"1":"0",reason:K.value};try{const t=await(0,i.R2)("/admin/learner/perform_technical_hold",e);console.log(t),R.value=t,W.value=!W.value,setTimeout((()=>{R.value=null,ce()}),6e3),l.value=!0}catch(t){if(p.Z.isAxiosError(t)){const e=t;console.log("err.response?.data",e.response?.data),l.value=!0,J.value=e.response?.data?.message,console.log(`errorMessage.value ${E.value}`),X.value=!0,setTimeout((()=>{X.value=!1}),6e3)}}Q.value=!1},xe=async e=>{const t=e.target.checked;j.value=!0===t};return(0,r.onBeforeMount)((async()=>{const e=await(0,c.GF)("/getUserRole");k.value=e.user_roles,k.value.length>0&&(k.value.includes("System Admin")||k.value.includes("System Admin View Access")||k.value.includes("Program Admin")?(console.log("inside Role"),C.value=!0,await ie()):C.value=!1),localStorage.getItem("inputValue")&&(S.value=localStorage.getItem("inputValue"),Object.assign(T,{ohrEmail:localStorage.getItem("inputValue")}),await ce())})),{learnerData:e,skills:t,proficiency:a,programme:s,status:n,showOperationTab:f,renderReady:l,checkOne:m,checkedOne:ee,showJourneyBtn:se,journeyBtnShow:w,viewLearnerDetails:ne,ohrEmail:S,searchData:ue,showDeleteBtn:y,DeleteLearnerDetails:de,isShowCancel:h,clearInput:ve,showHideCancel:pe,showEventBtn:g,viewEvents:le,showGradBtn:_,viewGrades:oe,showScreen:C,showdiffAccess:P,diffAccess:A,showUploadBtn:x,submitSubmiision:ye,showTaskImport:Z,selectedFile:fe,preSignedUrl:H,successMessage:R,errorMessage:E,getSkillandProf:ie,getSelectedSkill:me,selectedProficiency:N,selectedSkill:M,getSelectedProficiency:he,showProficiency:L,showPlagiarismBtn:U,showReEvaluatePanel:O,checkedSkill:Y,showProxy:we,proxyList:G,proxyAssignedBtn:j,assignLearnerToProxy:ge,selectedProxyOhr:F,showAssignProxyBtn:xe,showSuccessMessage:I,resMessage:J,showErrorMessage:X,proxyCheckedOne:te,linkedTaskId:q,uploadLearnerSubmission:re,holdLearnerBtn:z,learnerHoldPanel:Q,showLearnerHoldPanel:ae,callHoldLearner:_e,isLearnerOnHold:W,learnerHoldReason:K}}}),y=f,h=a(1001),m=(0,h.Z)(y,s,n,!1,null,"389aa30b",null),w=m.exports},8709:function(e,t,a){a.d(t,{G7:function(){return n},Nl:function(){return l},QZ:function(){return r},kn:function(){return o}});var s=a(7129);const n=async(e,t)=>{const a=await s.Z.post(e,t);return a},r=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},l=async(e,t)=>{let a;return await s.Z.get(`${e}/${t}`).then((e=>(a=e.data.allProxyList,a))),a},o=async(e,t)=>{const a=await s.Z.post(e,t);return a}},5279:function(e,t,a){a.d(t,{$d:function(){return n},$i:function(){return k},Ao:function(){return h},DU:function(){return f},EX:function(){return D},F5:function(){return B},FS:function(){return v},GF:function(){return Z},Iu:function(){return l},J1:function(){return b},Jf:function(){return g},Kk:function(){return m},N9:function(){return O},P8:function(){return u},VP:function(){return w},Vz:function(){return C},WX:function(){return p},X$:function(){return _},XP:function(){return r},Yb:function(){return P},a4:function(){return L},dH:function(){return x},gh:function(){return y},nb:function(){return i},oA:function(){return S},r4:function(){return d},sd:function(){return c},wp:function(){return o},xJ:function(){return A}});var s=a(7129);const n=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},r=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},l=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},o=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},i=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},c=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},u=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},d=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},v=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},p=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},f=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},y=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},h=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data.userObj,t))),t},m=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data.userObj,t))),t},w=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data.userObj,t))),t},g=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},_=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},x=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},b=async e=>{const t=await s.Z.get(e);return t},k=async e=>{const t=await s.Z.get(e);return t},C=async e=>{const t=await s.Z.get(e);return t},S=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},P=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},Z=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data.userObj,t))),t},O=async e=>{const t=await s.Z.post("/user/role",e);return t},L=async e=>{const t=await s.Z.post("/user/removeRole",e);return t},A=async()=>{const e=await s.Z.get("role");return e},D=async e=>{const t=await s.Z.post("/user/saveLSS",e);return t},B=async e=>{const t=await s.Z.post("/user/saveEnvAccess",e);return t}},8451:function(e,t,a){a.d(t,{Lu:function(){return n},O6:function(){return o},QZ:function(){return c},R2:function(){return i},X5:function(){return l},oE:function(){return r}});var s=a(7129);const n=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},r=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a},o=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},i=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},c=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t}},568:function(e,t,a){a.d(t,{JV:function(){return u},ie:function(){return o},rC:function(){return i},sc:function(){return r},t$:function(){return c},ux:function(){return n},yW:function(){return l}});var s=a(7129);const n=async(e,t)=>{const a=await s.Z.post(e,t);return a},r=async(e,t)=>{let a;const s=await fetch(`${e}`,{method:"put",body:t});return a=s,a},l=async e=>{const t=await s.Z.get(`/task/${e}`);return t},o=async(e,t)=>{const a=await s.Z.post(e,{learner_task_id:t});return a},i=async(e,t)=>{const a=await s.Z.post(e,t);return a},c=async(e,t)=>{const a=await s.Z.post(e,t);return a},u=async(e,t)=>await s.Z.post(e,t)}}]);
2
2
  //# sourceMappingURL=solidify.umd.min.SolidifyAdministration.js.map