@genpact/genome.mfe.solidify-app 3.6.0 → 3.7.0

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 (48) hide show
  1. package/dist/css/SolidifyAdministrationEmailTemplateManagement.css +1 -1
  2. package/dist/css/SolidifyAdministrationGenAIReviewedSubmissions.css +1 -0
  3. package/dist/css/SolidifyAdministrationTaskDetails.css +1 -1
  4. package/dist/css/SolidifyLearnerSubmitTask.css +1 -1
  5. package/dist/img/Help_Button.svg +32 -0
  6. package/dist/solidify.css +1 -1
  7. package/dist/{solidify.umd.min.607.js → solidify.umd.min.936.js} +2 -2
  8. package/dist/{solidify.umd.min.607.js.map → solidify.umd.min.936.js.map} +1 -1
  9. package/dist/solidify.umd.min.LearnerRereview.js +1 -1
  10. package/dist/solidify.umd.min.SolidifyAdministration.js +1 -1
  11. package/dist/solidify.umd.min.SolidifyAdministration.js.map +1 -1
  12. package/dist/solidify.umd.min.SolidifyAdministrationAssignProxy.js +1 -1
  13. package/dist/solidify.umd.min.SolidifyAdministrationAssignProxy.js.map +1 -1
  14. package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js +1 -1
  15. package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js.map +1 -1
  16. package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js +1 -1
  17. package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js.map +1 -1
  18. package/dist/solidify.umd.min.SolidifyAdministrationGenAIReviewedSubmissions.js +2 -0
  19. package/dist/solidify.umd.min.SolidifyAdministrationGenAIReviewedSubmissions.js.map +1 -0
  20. package/dist/solidify.umd.min.SolidifyAdministrationManageProxy.js +1 -1
  21. package/dist/solidify.umd.min.SolidifyAdministrationManageProxy.js.map +1 -1
  22. package/dist/solidify.umd.min.SolidifyAdministrationMasterAdministration.js +1 -1
  23. package/dist/solidify.umd.min.SolidifyAdministrationMasterAdministration.js.map +1 -1
  24. package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js +1 -1
  25. package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js.map +1 -1
  26. package/dist/solidify.umd.min.SolidifyAdministrationOffcycleDashboard.js +1 -1
  27. package/dist/solidify.umd.min.SolidifyAdministrationOffcycleDashboard.js.map +1 -1
  28. package/dist/solidify.umd.min.SolidifyAdministrationOperationalDetails.js +1 -1
  29. package/dist/solidify.umd.min.SolidifyAdministrationOperationalDetails.js.map +1 -1
  30. package/dist/solidify.umd.min.SolidifyAdministrationProgramAdministration.js +1 -1
  31. package/dist/solidify.umd.min.SolidifyAdministrationProgramAdministration.js.map +1 -1
  32. package/dist/solidify.umd.min.SolidifyAdministrationTaskDetails.js +2 -2
  33. package/dist/solidify.umd.min.SolidifyAdministrationTaskDetails.js.map +1 -1
  34. package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js +1 -1
  35. package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js.map +1 -1
  36. package/dist/solidify.umd.min.SolidifyAdministrationViewAllProxyRequests.js +1 -1
  37. package/dist/solidify.umd.min.SolidifyAdministrationViewAllProxyRequests.js.map +1 -1
  38. package/dist/solidify.umd.min.SolidifyLearner.js +1 -1
  39. package/dist/solidify.umd.min.SolidifyLearnerDone.js +1 -1
  40. package/dist/solidify.umd.min.SolidifyLearnerPeerReview.js +1 -1
  41. package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js +1 -1
  42. package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js +1 -1
  43. package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js +1 -1
  44. package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js.map +1 -1
  45. package/dist/solidify.umd.min.js +4 -4
  46. package/dist/solidify.umd.min.js.map +1 -1
  47. package/package.json +1 -1
  48. /package/dist/css/{607.css → 936.css} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[901],{4735:function(e,t,r){r.d(t,{Z:function(){return c}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-16 px-32"},[t("div",{staticClass:"md:px-0 lg:px-0 text-center"},[t("div",{staticClass:"text-gray-500"},[t("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),t("div",{staticClass:"pt-8"},[t("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[t("img",{staticClass:"mx-auto",attrs:{src:r(6540)}})])])])])])},a=[],i=r(7203),o=(0,i.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,i.ref)(""),r=(0,i.ref)(localStorage.getItem("helpmateLink"));return(0,i.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:r}}}),n=o,l=r(1001),u=(0,l.Z)(n,s,a,!1,null,null,null),c=u.exports},6629:function(e,t,r){r.d(t,{Z:function(){return d}});var s=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:r(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:r(5861)}})]):e._e()]),t("div",{staticClass:"text-gray-500 px-4",domProps:{innerHTML:e._s(e.message)}}),t("div",{staticClass:"pb-6 pt-4 bg-white"},[e.reReviewButton?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.applyReview(e.reReviewButtonLink)}}},[e._v(" Apply Re-Review ")]):e._e(),e.archiveButton?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2",on:{click:function(t){return e.$emit("Archive")}}},[e._v("Yes")]):e._e(),e.closeVisible?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",staticStyle:{"background-color":"grey"},on:{click:function(t){return e.$emit("closeModal")}}},[e._v(" No ")]):e._e(),e.linkButton?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.navigate(e.link)}}},[e._v(e._s(e.linkButton))]):e._e()])])])])])],1):e._e()},a=[],i=(r(7658),r(4856)),o=r(2612),n={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=>{o.Z.push({path:"/solidify/rereview",query:{learner_task_id:e}})},t=e=>{window.location.href=e};return{applyReview:e,navigate:t}}},l=n,u=r(1001),c=(0,u.Z)(l,s,a,!1,null,null,null),d=c.exports},5316:function(e,t,r){r.d(t,{Z:function(){return c}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full"},["infinity"===e.program?t("span",[e._v(e._s(e.proficiency)+" - ")]):e._e(),e._v(e._s(e.skill)+" ")]),t("div",{staticClass:"my-2 md:order-2 order-1 w-full"},[t("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},a=[],i=r(7203),o=(0,i.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""}},setup(){const e=(0,i.ref)("");return(0,i.onBeforeMount)((async()=>{const t=localStorage.getItem("userName")||"Learner";e.value=t.split(",").reverse().join(" ")})),{username:e}}}),n=o,l=r(1001),u=(0,l.Z)(n,s,a,!1,null,null,null),c=u.exports},6054:function(e,t,r){r.r(t),r.d(t,{default:function(){return y}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[e.learnerRereviewDetails?t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[t("Greetings",{attrs:{program:"",proficiency:e.learnerRereviewDetails.proficiency,skill:e.learnerRereviewDetails.skill}}),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"},[e.learnerRereviewDetails.request_for_re_review?e._e():t("div",[t("p",[e._v("Submitting a re-review request does not guarantee approval of your task submission; it signifies that your submission will undergo a thorough re-evaluation.")]),t("p",{staticClass:"mt-2"},[e._v("To proceed, upload your task using the 'Choose File' button and submit it.")]),t("p",{staticClass:"mt-2"},[e._v(" You'll receive an email notification once the re-reviews are completed, indicating whether your submission passed or if you need to redo Solidify. This process may take up to two weeks from the time of your request. ")]),e._m(0),t("div",{staticClass:"mt-3"},[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(1)]),e.learnerRereviewDetails.request_for_re_review?t("div",[t("p",{staticClass:"mt-2"},[e._v("Your request for re-review has been accepted and is currently in progress.")]),e._m(2)]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[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:r(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("p",{staticClass:"mt-2"},[t("strong",[e._v(" Note: Re-review requests are processed only once, and during this process, you cannot initiate Solidify for the same skill and proficiency. If the reviewer finds the original assessment to be accurate, no changes will be made to your Solidify results.")])])},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:"mt-2"},[e._v("Click "),t("strong",[e._v("'Check Status'")]),e._v(" to track the status of the re-review.")])}],i=r(7203),o=r(6629),n=r(306),l=r(4735),u=r(5316),c=r(7129);const d=async e=>{const t=await c.Z.get(`/learnerRereviewStatus/${e}`);return t},p=async(e,t)=>{const r=await c.Z.post("/learnerRereview",{learner_task_id:e,requestFromAdmin:t});return r};var v=(0,i.defineComponent)({name:"LearnerRereview",components:{Generic:o.Z,ErrorMessage:l.Z,Greetings:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,i.ref)(e.query.learner_task_id),r=(0,i.ref)(),s=(0,i.ref)(!1),a=(0,i.ref)(),o=(0,i.ref)(!0),l=(0,i.ref)(!1),u=(0,i.ref)(),c=(0,i.ref)(!1),v=(0,i.ref)(localStorage.getItem("helpmateLink")),f=e=>{const t=e.target.checked;!0===t?(o.value=!1,console.log(o.value)):(o.value=!0,console.log(o.value))},g=async()=>{try{if(l.value=!1,r.value.is_plagiarised&&r.value.plagiarism_reevaluation_requested)return s.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);r.value.request_for_re_review=e.data?.request_for_re_review,r.value.re_review_status=e.data?.re_review_status,l.value=!0,s.value=!0,a.value="Dear learner,<br>Your request for re-review has been accepted and is under progress. You will receive an email once the review has been completed."}catch(e){if(console.log("inside catch error"),console.log(JSON.stringify(e)),l.value=!0,n.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 d(t.value);return r.value=e.data,l.value=!0,console.log(`after check status ${JSON.stringify(r)}`),void("Re-review Accepted Proxy Assigned"===r.value.re_review_status||"Re-review Accepted Proxy Unavailable"===r.value.re_review_status?(s.value=!0,a.value="Dear learner,<br>Your request for re-review has been accepted and is under progress. You will receive an email once the review has been completed."):"Complete"===r.value.re_review_status&&(s.value=!0,a.value="Dear learner,<br>Your re-review has been completed. Please check your registered email for details."))}catch(e){if(console.log("inside catch error"),console.log(JSON.stringify(e)),l.value=!0,n.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 d(t.value);r.value=e.data,l.value=!0,console.log(`learnerRereviewDetails.value ${JSON.stringify(r.value)}`),r.value.is_plagiarised&&r.value.plagiarism_reevaluation_requested&&(s.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,n.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:s,modalMessage:a,buttonDisable:o,learnerRereviewDetails:r,setRereviewButtonEnable:f,requestForRereviewSubmit:g,checkRereviewStatus:m,renderReady:l,helpmateLink:v}}}),f=v,g=r(1001),m=(0,g.Z)(f,s,a,!1,null,"4a62aeb2",null),y=m.exports},2191:function(e,t,r){e.exports=r.p+"img/plag_warning1.gif"},5861:function(e,t,r){e.exports=r.p+"img/plag_warning2.gif"},6540:function(e){e.exports="data:image/png;base64,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"}}]);
1
+ "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[901],{4735:function(e,t,r){r.d(t,{Z:function(){return c}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-16 px-32"},[t("div",{staticClass:"md:px-0 lg:px-0 text-center"},[t("div",{staticClass:"text-gray-500"},[t("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),t("div",{staticClass:"pt-8"},[t("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[t("img",{staticClass:"mx-auto",attrs:{src:r(6540)}})])])])])])},a=[],i=r(7203),o=(0,i.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,i.ref)(""),r=(0,i.ref)(localStorage.getItem("helpmateLink"));return(0,i.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:r}}}),n=o,l=r(1001),u=(0,l.Z)(n,s,a,!1,null,null,null),c=u.exports},6629:function(e,t,r){r.d(t,{Z:function(){return d}});var s=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:r(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:r(5861)}})]):e._e()]),t("div",{staticClass:"text-gray-500 px-4",domProps:{innerHTML:e._s(e.message)}}),t("div",{staticClass:"pb-6 pt-4 bg-white"},[e.reReviewButton?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.applyReview(e.reReviewButtonLink)}}},[e._v(" Apply Re-Review ")]):e._e(),e.archiveButton?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2",on:{click:function(t){return e.$emit("Archive")}}},[e._v("Yes")]):e._e(),e.closeVisible?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",staticStyle:{"background-color":"grey"},on:{click:function(t){return e.$emit("closeModal")}}},[e._v(" No ")]):e._e(),e.linkButton?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.navigate(e.link)}}},[e._v(e._s(e.linkButton))]):e._e()])])])])])],1):e._e()},a=[],i=(r(7658),r(4856)),o=r(1496),n={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=>{o.Z.push({path:"/solidify/rereview",query:{learner_task_id:e}})},t=e=>{window.location.href=e};return{applyReview:e,navigate:t}}},l=n,u=r(1001),c=(0,u.Z)(l,s,a,!1,null,null,null),d=c.exports},5316:function(e,t,r){r.d(t,{Z:function(){return c}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full"},["infinity"===e.program?t("span",[e._v(e._s(e.proficiency)+" - ")]):e._e(),e._v(e._s(e.skill)+" ")]),t("div",{staticClass:"my-2 md:order-2 order-1 w-full"},[t("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},a=[],i=r(7203),o=(0,i.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""}},setup(){const e=(0,i.ref)("");return(0,i.onBeforeMount)((async()=>{const t=localStorage.getItem("userName")||"Learner";e.value=t.split(",").reverse().join(" ")})),{username:e}}}),n=o,l=r(1001),u=(0,l.Z)(n,s,a,!1,null,null,null),c=u.exports},6054:function(e,t,r){r.r(t),r.d(t,{default:function(){return y}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[e.learnerRereviewDetails?t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[t("Greetings",{attrs:{program:"",proficiency:e.learnerRereviewDetails.proficiency,skill:e.learnerRereviewDetails.skill}}),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"},[e.learnerRereviewDetails.request_for_re_review?e._e():t("div",[t("p",[e._v("Submitting a re-review request does not guarantee approval of your task submission; it signifies that your submission will undergo a thorough re-evaluation.")]),t("p",{staticClass:"mt-2"},[e._v("To proceed, upload your task using the 'Choose File' button and submit it.")]),t("p",{staticClass:"mt-2"},[e._v(" You'll receive an email notification once the re-reviews are completed, indicating whether your submission passed or if you need to redo Solidify. This process may take up to two weeks from the time of your request. ")]),e._m(0),t("div",{staticClass:"mt-3"},[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(1)]),e.learnerRereviewDetails.request_for_re_review?t("div",[t("p",{staticClass:"mt-2"},[e._v("Your request for re-review has been accepted and is currently in progress.")]),e._m(2)]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[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:r(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("p",{staticClass:"mt-2"},[t("strong",[e._v(" Note: Re-review requests are processed only once, and during this process, you cannot initiate Solidify for the same skill and proficiency. If the reviewer finds the original assessment to be accurate, no changes will be made to your Solidify results.")])])},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:"mt-2"},[e._v("Click "),t("strong",[e._v("'Check Status'")]),e._v(" to track the status of the re-review.")])}],i=r(7203),o=r(6629),n=r(306),l=r(4735),u=r(5316),c=r(7129);const d=async e=>{const t=await c.Z.get(`/learnerRereviewStatus/${e}`);return t},p=async(e,t)=>{const r=await c.Z.post("/learnerRereview",{learner_task_id:e,requestFromAdmin:t});return r};var v=(0,i.defineComponent)({name:"LearnerRereview",components:{Generic:o.Z,ErrorMessage:l.Z,Greetings:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,i.ref)(e.query.learner_task_id),r=(0,i.ref)(),s=(0,i.ref)(!1),a=(0,i.ref)(),o=(0,i.ref)(!0),l=(0,i.ref)(!1),u=(0,i.ref)(),c=(0,i.ref)(!1),v=(0,i.ref)(localStorage.getItem("helpmateLink")),f=e=>{const t=e.target.checked;!0===t?(o.value=!1,console.log(o.value)):(o.value=!0,console.log(o.value))},g=async()=>{try{if(l.value=!1,r.value.is_plagiarised&&r.value.plagiarism_reevaluation_requested)return s.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);r.value.request_for_re_review=e.data?.request_for_re_review,r.value.re_review_status=e.data?.re_review_status,l.value=!0,s.value=!0,a.value="Dear learner,<br>Your request for re-review has been accepted and is under progress. You will receive an email once the review has been completed."}catch(e){if(console.log("inside catch error"),console.log(JSON.stringify(e)),l.value=!0,n.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 d(t.value);return r.value=e.data,l.value=!0,console.log(`after check status ${JSON.stringify(r)}`),void("Re-review Accepted Proxy Assigned"===r.value.re_review_status||"Re-review Accepted Proxy Unavailable"===r.value.re_review_status?(s.value=!0,a.value="Dear learner,<br>Your request for re-review has been accepted and is under progress. You will receive an email once the review has been completed."):"Complete"===r.value.re_review_status&&(s.value=!0,a.value="Dear learner,<br>Your re-review has been completed. Please check your registered email for details."))}catch(e){if(console.log("inside catch error"),console.log(JSON.stringify(e)),l.value=!0,n.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 d(t.value);r.value=e.data,l.value=!0,console.log(`learnerRereviewDetails.value ${JSON.stringify(r.value)}`),r.value.is_plagiarised&&r.value.plagiarism_reevaluation_requested&&(s.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,n.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:s,modalMessage:a,buttonDisable:o,learnerRereviewDetails:r,setRereviewButtonEnable:f,requestForRereviewSubmit:g,checkRereviewStatus:m,renderReady:l,helpmateLink:v}}}),f=v,g=r(1001),m=(0,g.Z)(f,s,a,!1,null,"4a62aeb2",null),y=m.exports},2191:function(e,t,r){e.exports=r.p+"img/plag_warning1.gif"},5861:function(e,t,r){e.exports=r.p+"img/plag_warning2.gif"},6540:function(e){e.exports="data:image/png;base64,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"}}]);
2
2
  //# sourceMappingURL=solidify.umd.min.LearnerRereview.js.map
@@ -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(2612),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)(),G=(0,r.ref)(),$=(0,r.ref)(),F=(0,r.ref)(),I=(0,r.ref)([]),V=(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=()=>{I.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,F.value=o,W.value=1===i,K.value=1===i?c:"",G.value=l,q.value=a,console.log(`Learner OHR ${F.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,$.value=await(0,v.Nl)("/getAllProxyBySkill",Y.value),l.value=!0,console.log("Proxy List",$.value)},ge=async()=>{console.log("Assign Proxy");try{l.value=!1;const e={learner:b.value,proxy_key:I.value[0],learner_key:F.value,skill:Y.value,proficiency:G.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,V.value=!0,setTimeout((()=>{V.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:$,proxyAssignedBtn:j,assignLearnerToProxy:ge,selectedProxyOhr:I,showAssignProxyBtn:xe,showSuccessMessage:V,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,{ie:function(){return o},rC:function(){return i},sc:function(){return r},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}}}]);
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(1496),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