@genpact/genome.mfe.solidify-app 3.0.0-beta.1 → 3.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/SolidifyAdministrationEmailTemplateManagement.css +1 -1
- package/dist/css/SolidifyLearnerDone.css +1 -1
- package/dist/css/SolidifyLearnerProxyReview.css +1 -1
- package/dist/css/SolidifyLearnerSelectTask.css +1 -1
- package/dist/css/SolidifyLearnerSubmitTask.css +1 -1
- package/dist/img/Undermaintance_new.gif +0 -0
- package/dist/solidify.css +1 -1
- package/dist/solidify.umd.min.489.js +2 -0
- package/dist/solidify.umd.min.489.js.map +1 -0
- package/dist/solidify.umd.min.LearnerRereview.js +1 -1
- package/dist/solidify.umd.min.LearnerRereview.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministration.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationOffcycleDashboard.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationOperationalDetails.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationProgramAdministration.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearner.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerDone.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerDone.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerPeerReview.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js.map +1 -1
- package/dist/solidify.umd.min.js +4 -4
- package/dist/solidify.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/img/UNDERMAINTENANCEoffborder.gif +0 -0
- package/dist/solidify.umd.min.341.js +0 -2
- package/dist/solidify.umd.min.341.js.map +0 -1
- /package/dist/css/{341.css → 489.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solidify.umd.min.LearnerRereview.js","mappings":"iNAAA,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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AC3BlC,EAAYxC,OAAQ,EAGhB6E,EAAAA,EAAAA,aAAmBH,GAAQ,CAC7B,MAAMI,EAAMJ,EACZN,QAAQC,IAAIS,EAAIC,UAAUP,MAC1BpB,EAAcpD,MAAQ8E,EAAIC,UAAUP,I,MAGpCpB,EAAcpD,MAAQ,uEAExByC,EAAiBzC,OAAQ,C,KAGtB,CACL2C,eACAC,eACAK,gBACAP,yBACAK,0BACAG,2BACAC,sBACAX,cACAxD,eAEJ,ICzJoS,I,UCOlSiB,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.png\")}})])])])])])\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=36ac7944&\"\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-6 pt-4 bg-white\"},[(_vm.reReviewButton)?_c('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($event){return _vm.applyReview(_vm.reReviewButtonLink)}}},[_vm._v(\" Apply Re-Review \")]):_vm._e(),(_vm.archiveButton)?_c('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($event){return _vm.$emit('Archive')}}},[_vm._v(\"Yes\")]):_vm._e(),(_vm.closeVisible)?_c('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($event){return _vm.$emit('closeModal')}}},[_vm._v(\" No \")]):_vm._e(),(_vm.linkButton)?_c('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($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-6 pt-4 bg-white\">\n <button @click=\"applyReview(reReviewButtonLink)\" v-if=\"reReviewButton\" class=\"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\">\n Apply Re-Review\n </button>\n\n <button @click=\"$emit('Archive')\" v-if=\"archiveButton\" class=\"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\">Yes</button>\n <button @click=\"$emit('closeModal')\" v-if=\"closeVisible\" style=\"background-color: grey\" class=\"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\">\n No\n </button>\n <button @click=\"navigate(link)\" v-if=\"linkButton\" class=\"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\">{{ 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: 16px;\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=266e9535&\"\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=266e9535&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:\"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center\"},[_c('div',{staticClass:\"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full\"},[(_vm.program === 'infinity')?_c('span',[_vm._v(_vm._s(_vm.proficiency)+\" - \")]):_vm._e(),_vm._v(_vm._s(_vm.skill)+\" \")]),_c('div',{staticClass:\"my-2 md:order-2 order-1 w-full\"},[_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 },\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=40792f87&\"\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\":'',\"proficiency\":_vm.learnerRereviewDetails.proficiency,\"skill\":_vm.learnerRereviewDetails.skill}}),_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\"},[(!_vm.learnerRereviewDetails.request_for_re_review)?_c('div',[_c('p',[_vm._v(\"Genome offers you a re-review option of your \"+_vm._s(_vm.learnerRereviewDetails.proficiency)+\" \"+_vm._s(_vm.learnerRereviewDetails.skill)+\" Solidify task.\")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\"Requesting a re-review does not guarantee that your task submission will pass. It means that your task submission will be reviewed thoroughly once again.\")]),_vm._m(0),_c('p',{staticClass:\"mt-2\"},[_vm._v(\" Please note re-review requests are processed only once. While your request is ongoing, you will not be able to start Solidify on the same skill and proficiency. Upon re-review, if the reviewer finds the original review to be accurate, no changes will be made to your Solidify results. \")]),_vm._m(1),_c('div',{staticClass:\"mt-3\"},[_c('label',[_c('input',{attrs:{\"type\":\"checkbox\"},on:{\"change\":function($event){return _vm.setRereviewButtonEnable($event)}}}),_vm._v(\" I confirm that i have read and will abide by the Plagiarism statement.\")])]),_vm._m(2)]):_vm._e(),(_vm.learnerRereviewDetails.request_for_re_review)?_c('div',[_c('p',{staticClass:\"mt-2\"},[_vm._v(\"Your request for re-review has been accepted and is under progress.\")]),_vm._m(3)]):_vm._e()])]),_c('div',{staticClass:\"block text-center pt-12\"},[_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('p',{staticClass:\"mt-3\"},[_vm._v(\"Please submit your task by uploading it via the \"),_c('strong',[_vm._v(\"Choose File\")]),_vm._v(\" button. Once the task has been uploaded, \"),_c('strong',[_vm._v(\"Submit \")]),_vm._v(\"to proceed to peer reviews.\")])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('p',{staticClass:\"mt-2\"},[_vm._v(\" You will receive an email once the re-reviews have been completed telling you if your submission passed, or if you will need to redo Solidify. This can take up to \"),_c('strong',[_vm._v(\"two weeks\")]),_vm._v(\" from submitting the request. \")])\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:\"mt-2\"},[_vm._v(\"Click on \"),_c('strong',[_vm._v(\"Check Status\")]),_vm._v(\" determine the re-review status.\")])\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 = '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.';\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 = '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.';\n } else if (learnerRereviewDetails.value.re_review_status === 'Complete') {\n modalVisible.value = true;\n modalMessage.value = 'Dear learner,<br>Your request for re-review has been completed and an email is already sent to your registered email address.';\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 };\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=7f33845c&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 \"7f33845c\",\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","program","proficiency","skill","username","item","split","reverse","join","renderReady","showErrorMessage","learnerRereviewDetails","modalVisible","modalMessage","request_for_re_review","_m","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":"iNAAA,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,MAAQ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idify/./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.png\")}})])])])])])\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=36ac7944&\"\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-6 pt-4 bg-white\"},[(_vm.reReviewButton)?_c('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($event){return _vm.applyReview(_vm.reReviewButtonLink)}}},[_vm._v(\" Apply Re-Review \")]):_vm._e(),(_vm.archiveButton)?_c('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($event){return _vm.$emit('Archive')}}},[_vm._v(\"Yes\")]):_vm._e(),(_vm.closeVisible)?_c('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($event){return _vm.$emit('closeModal')}}},[_vm._v(\" No \")]):_vm._e(),(_vm.linkButton)?_c('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($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-6 pt-4 bg-white\">\n <button @click=\"applyReview(reReviewButtonLink)\" v-if=\"reReviewButton\" class=\"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\">\n Apply Re-Review\n </button>\n\n <button @click=\"$emit('Archive')\" v-if=\"archiveButton\" class=\"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\">Yes</button>\n <button @click=\"$emit('closeModal')\" v-if=\"closeVisible\" style=\"background-color: grey\" class=\"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\">\n No\n </button>\n <button @click=\"navigate(link)\" v-if=\"linkButton\" class=\"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\">{{ 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: 16px;\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=266e9535&\"\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=266e9535&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:\"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center\"},[_c('div',{staticClass:\"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full\"},[(_vm.program === 'infinity')?_c('span',[_vm._v(_vm._s(_vm.proficiency)+\" - \")]):_vm._e(),_vm._v(_vm._s(_vm.skill)+\" \")]),_c('div',{staticClass:\"my-2 md:order-2 order-1 w-full\"},[_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 },\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=40792f87&\"\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\":'',\"proficiency\":_vm.learnerRereviewDetails.proficiency,\"skill\":_vm.learnerRereviewDetails.skill}}),_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\"},[(!_vm.learnerRereviewDetails.request_for_re_review)?_c('div',[_c('p',[_vm._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.\")]),_c('p',{staticClass:\"mt-2\"},[_vm._v(\"To proceed, upload your task using the 'Choose File' button and submit it.\")]),_c('p',{staticClass:\"mt-2\"},[_vm._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. \")]),_vm._m(0),_c('div',{staticClass:\"mt-3\"},[_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(1)]):_vm._e(),(_vm.learnerRereviewDetails.request_for_re_review)?_c('div',[_c('p',{staticClass:\"mt-2\"},[_vm._v(\"Your request for re-review has been accepted and is currently in progress.\")]),_vm._m(2)]):_vm._e()])]),_c('div',{staticClass:\"block text-center pt-12\"},[_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('p',{staticClass:\"mt-2\"},[_c('strong',[_vm._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.\")])])\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:\"mt-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 = '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.';\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 = '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.';\n } else if (learnerRereviewDetails.value.re_review_status === 'Complete') {\n modalVisible.value = true;\n modalMessage.value = 'Dear learner,<br>Your re-review has been completed. Please check your registered 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 };\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=4a62aeb2&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 \"4a62aeb2\",\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","program","proficiency","skill","username","item","split","reverse","join","renderReady","showErrorMessage","learnerRereviewDetails","modalVisible","modalMessage","request_for_re_review","_m","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(2339),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(8954),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}}}]);
|
|
2
2
|
//# sourceMappingURL=solidify.umd.min.SolidifyAdministration.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[704],{4735:function(e,t,a){a.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:a(6540)}})])])])])])},r=[],l=a(7203),i=(0,l.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,l.ref)(""),a=(0,l.ref)(localStorage.getItem("helpmateLink"));return(0,l.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:a}}}),n=i,o=a(1001),u=(0,o.Z)(n,s,r,!1,null,null,null),c=u.exports},7413:function(e,t,a){a.r(t),a.d(t,{default:function(){return oe}});var s,r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[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._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},[t("div",["infinity"===e.programId?t("p",[e._v(" Proficiency: "),t("strong",[e._v(e._s(e.profName))])]):e._e(),"infinity"===e.programId?t("p",{staticClass:"pt-2"},[e._v(" Skill: "),t("strong",[e._v(e._s(e.skill))])]):e._e(),"infinity"!==e.programId?t("p",{staticClass:"pt-2"},[e._v(" Program: "),t("strong",[e._v(e._s(e.programName))])]):e._e(),t("p",{staticClass:"pt-2"},[t("strong",[e._v("Task Name: ")]),e._v(e._s(e.taskName))])]),"Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[e._m(1),t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{key:e.fileInputKey,attrs:{type:"file"},on:{change:e.selectedFile}}),e._v(" "),e.learnerSubmission?t("x-icon",{attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1)]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[e._m(2),t("div",{staticClass:"mb-4 text-center"},[null!==e.skillId&&null!==e.proficiencyId?t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId,skill_id:e.skillId,proficiency_id:e.proficiencyId}}}},[e._v("Back")]):t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary 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",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},l=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Create Off-Cycle Task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Upload the file to create off-cycle task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pt-4"},[t("p",{staticClass:"text-xl"},[t("em",[e._v("Please don't click the browser back button")])])])}],i=(a(7658),a(7203)),n=a(4856),o=a(306),u=(a(3767),a(8585),a(8696),new Uint8Array(16));function c(){if(!s&&(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(u)}var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function m(e){return"string"===typeof e&&d.test(e)}for(var f=m,v=[],p=0;p<256;++p)v.push((p+256).toString(16).substr(1));function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase();if(!f(a))throw TypeError("Stringified UUID is invalid");return a}var b,y,x=g,h=0,k=0;function w(e,t,a){var s=t&&a||0,r=t||new Array(16);e=e||{};var l=e.node||b,i=void 0!==e.clockseq?e.clockseq:y;if(null==l||null==i){var n=e.random||(e.rng||c)();null==l&&(l=b=[1|n[0],n[1],n[2],n[3],n[4],n[5]]),null==i&&(i=y=16383&(n[6]<<8|n[7]))}var o=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:k+1,d=o-h+(u-k)/1e4;if(d<0&&void 0===e.clockseq&&(i=i+1&16383),(d<0||o>h)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=o,k=u,y=i,o+=122192928e5;var m=(1e4*(268435455&o)+u)%4294967296;r[s++]=m>>>24&255,r[s++]=m>>>16&255,r[s++]=m>>>8&255,r[s++]=255&m;var f=o/4294967296*1e4&268435455;r[s++]=f>>>8&255,r[s++]=255&f,r[s++]=f>>>24&15|16,r[s++]=f>>>16&255,r[s++]=i>>>8|128,r[s++]=255&i;for(var v=0;v<6;++v)r[s+v]=l[v];return t||x(r)}var _=w;function C(e){if(!f(e))throw TypeError("Invalid UUID");var t,a=new Uint8Array(16);return a[0]=(t=parseInt(e.slice(0,8),16))>>>24,a[1]=t>>>16&255,a[2]=t>>>8&255,a[3]=255&t,a[4]=(t=parseInt(e.slice(9,13),16))>>>8,a[5]=255&t,a[6]=(t=parseInt(e.slice(14,18),16))>>>8,a[7]=255&t,a[8]=(t=parseInt(e.slice(19,23),16))>>>8,a[9]=255&t,a[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=t/4294967296&255,a[12]=t>>>24&255,a[13]=t>>>16&255,a[14]=t>>>8&255,a[15]=255&t,a}var S=C;function A(e){e=unescape(encodeURIComponent(e));for(var t=[],a=0;a<e.length;++a)t.push(e.charCodeAt(a));return t}var I="6ba7b810-9dad-11d1-80b4-00c04fd430c8",M="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function T(e,t,a){function s(e,s,r,l){if("string"===typeof e&&(e=A(e)),"string"===typeof s&&(s=S(s)),16!==s.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(s),i.set(e,s.length),i=a(i),i[6]=15&i[6]|t,i[8]=63&i[8]|128,r){l=l||0;for(var n=0;n<16;++n)r[l+n]=i[n];return r}return x(i)}try{s.name=e}catch(r){}return s.DNS=I,s.URL=M,s}function U(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var a=0;a<t.length;++a)e[a]=t.charCodeAt(a)}return E(Z(L(e),8*e.length))}function E(e){for(var t=[],a=32*e.length,s="0123456789abcdef",r=0;r<a;r+=8){var l=e[r>>5]>>>r%32&255,i=parseInt(s.charAt(l>>>4&15)+s.charAt(15&l),16);t.push(i)}return t}function R(e){return 14+(e+64>>>9<<4)+1}function Z(e,t){e[t>>5]|=128<<t%32,e[R(t)-1]=t;for(var a=1732584193,s=-271733879,r=-1732584194,l=271733878,i=0;i<e.length;i+=16){var n=a,o=s,u=r,c=l;a=B(a,s,r,l,e[i],7,-680876936),l=B(l,a,s,r,e[i+1],12,-389564586),r=B(r,l,a,s,e[i+2],17,606105819),s=B(s,r,l,a,e[i+3],22,-1044525330),a=B(a,s,r,l,e[i+4],7,-176418897),l=B(l,a,s,r,e[i+5],12,1200080426),r=B(r,l,a,s,e[i+6],17,-1473231341),s=B(s,r,l,a,e[i+7],22,-45705983),a=B(a,s,r,l,e[i+8],7,1770035416),l=B(l,a,s,r,e[i+9],12,-1958414417),r=B(r,l,a,s,e[i+10],17,-42063),s=B(s,r,l,a,e[i+11],22,-1990404162),a=B(a,s,r,l,e[i+12],7,1804603682),l=B(l,a,s,r,e[i+13],12,-40341101),r=B(r,l,a,s,e[i+14],17,-1502002290),s=B(s,r,l,a,e[i+15],22,1236535329),a=F(a,s,r,l,e[i+1],5,-165796510),l=F(l,a,s,r,e[i+6],9,-1069501632),r=F(r,l,a,s,e[i+11],14,643717713),s=F(s,r,l,a,e[i],20,-373897302),a=F(a,s,r,l,e[i+5],5,-701558691),l=F(l,a,s,r,e[i+10],9,38016083),r=F(r,l,a,s,e[i+15],14,-660478335),s=F(s,r,l,a,e[i+4],20,-405537848),a=F(a,s,r,l,e[i+9],5,568446438),l=F(l,a,s,r,e[i+14],9,-1019803690),r=F(r,l,a,s,e[i+3],14,-187363961),s=F(s,r,l,a,e[i+8],20,1163531501),a=F(a,s,r,l,e[i+13],5,-1444681467),l=F(l,a,s,r,e[i+2],9,-51403784),r=F(r,l,a,s,e[i+7],14,1735328473),s=F(s,r,l,a,e[i+12],20,-1926607734),a=N(a,s,r,l,e[i+5],4,-378558),l=N(l,a,s,r,e[i+8],11,-2022574463),r=N(r,l,a,s,e[i+11],16,1839030562),s=N(s,r,l,a,e[i+14],23,-35309556),a=N(a,s,r,l,e[i+1],4,-1530992060),l=N(l,a,s,r,e[i+4],11,1272893353),r=N(r,l,a,s,e[i+7],16,-155497632),s=N(s,r,l,a,e[i+10],23,-1094730640),a=N(a,s,r,l,e[i+13],4,681279174),l=N(l,a,s,r,e[i],11,-358537222),r=N(r,l,a,s,e[i+3],16,-722521979),s=N(s,r,l,a,e[i+6],23,76029189),a=N(a,s,r,l,e[i+9],4,-640364487),l=N(l,a,s,r,e[i+12],11,-421815835),r=N(r,l,a,s,e[i+15],16,530742520),s=N(s,r,l,a,e[i+2],23,-995338651),a=P(a,s,r,l,e[i],6,-198630844),l=P(l,a,s,r,e[i+7],10,1126891415),r=P(r,l,a,s,e[i+14],15,-1416354905),s=P(s,r,l,a,e[i+5],21,-57434055),a=P(a,s,r,l,e[i+12],6,1700485571),l=P(l,a,s,r,e[i+3],10,-1894986606),r=P(r,l,a,s,e[i+10],15,-1051523),s=P(s,r,l,a,e[i+1],21,-2054922799),a=P(a,s,r,l,e[i+8],6,1873313359),l=P(l,a,s,r,e[i+15],10,-30611744),r=P(r,l,a,s,e[i+6],15,-1560198380),s=P(s,r,l,a,e[i+13],21,1309151649),a=P(a,s,r,l,e[i+4],6,-145523070),l=P(l,a,s,r,e[i+11],10,-1120210379),r=P(r,l,a,s,e[i+2],15,718787259),s=P(s,r,l,a,e[i+9],21,-343485551),a=D(a,n),s=D(s,o),r=D(r,u),l=D(l,c)}return[a,s,r,l]}function L(e){if(0===e.length)return[];for(var t=8*e.length,a=new Uint32Array(R(t)),s=0;s<t;s+=8)a[s>>5]|=(255&e[s/8])<<s%32;return a}function D(e,t){var a=(65535&e)+(65535&t),s=(e>>16)+(t>>16)+(a>>16);return s<<16|65535&a}function V(e,t){return e<<t|e>>>32-t}function G(e,t,a,s,r,l){return D(V(D(D(t,e),D(s,l)),r),a)}function B(e,t,a,s,r,l,i){return G(t&a|~t&s,e,t,r,l,i)}function F(e,t,a,s,r,l,i){return G(t&s|a&~s,e,t,r,l,i)}function N(e,t,a,s,r,l,i){return G(t^a^s,e,t,r,l,i)}function P(e,t,a,s,r,l,i){return G(a^(t|~s),e,t,r,l,i)}var j=U,z=T("v3",48,j),W=z;function J(e,t,a){e=e||{};var s=e.random||(e.rng||c)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){a=a||0;for(var r=0;r<16;++r)t[a+r]=s[r];return t}return x(s)}var q=J;function O(e,t,a,s){switch(e){case 0:return t&a^~t&s;case 1:return t^a^s;case 2:return t&a^t&s^a&s;case 3:return t^a^s}}function X(e,t){return e<<t|e>>>32-t}function Y(e){var t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var s=unescape(encodeURIComponent(e));e=[];for(var r=0;r<s.length;++r)e.push(s.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var l=e.length/4+2,i=Math.ceil(l/16),n=new Array(i),o=0;o<i;++o){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*o+4*c]<<24|e[64*o+4*c+1]<<16|e[64*o+4*c+2]<<8|e[64*o+4*c+3];n[o]=u}n[i-1][14]=8*(e.length-1)/Math.pow(2,32),n[i-1][14]=Math.floor(n[i-1][14]),n[i-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<i;++d){for(var m=new Uint32Array(80),f=0;f<16;++f)m[f]=n[d][f];for(var v=16;v<80;++v)m[v]=X(m[v-3]^m[v-8]^m[v-14]^m[v-16],1);for(var p=a[0],g=a[1],b=a[2],y=a[3],x=a[4],h=0;h<80;++h){var k=Math.floor(h/20),w=X(p,5)+O(k,g,b,y)+x+t[k]+m[h]>>>0;x=y,y=b,b=X(g,30)>>>0,g=p,p=w}a[0]=a[0]+p>>>0,a[1]=a[1]+g>>>0,a[2]=a[2]+b>>>0,a[3]=a[3]+y>>>0,a[4]=a[4]+x>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]}var H=Y,K=T("v5",80,H),Q=K,$={v1:_,v3:W,v4:q,v5:Q};var ee=a(2339),te=a(568),ae=a(9955),se=a(4735),re=(0,i.defineComponent)({name:"LearnerSubmitTask",components:{XIcon:n.b0D,ErrorMessage:se.Z},setup(){const e=(0,i.ref)(localStorage.getItem("linkedTaskId")),t=(0,i.ref)($.v1()),a=(0,i.ref)(localStorage.getItem("programId")),s=(0,i.ref)(localStorage.getItem("programName")),r=(0,i.ref)(localStorage.getItem("skillId"));console.log("skill Id in createoffcyclle",r);const l=(0,i.ref)(localStorage.getItem("proficiencyId")),n=(0,i.ref)(localStorage.getItem("skillName")),u=(0,i.ref)(localStorage.getItem("proficiencyName")),c=(0,i.ref)(localStorage.getItem("taskName")),d=(0,i.ref)(localStorage.getItem("taskType")),m=(0,i.ref)(null),f=(0,i.ref)(),v=(0,i.ref)(),p=(0,i.ref)(),g=(0,i.ref)(!0),b=(0,i.ref)(),y=(0,i.ref)(0),x=(0,i.ref)(!1),h=(0,i.ref)(),k=(0,i.ref)(!1),w=(0,i.ref)(),_=(0,i.ref)(!1),C=async()=>{y.value+=1,console.log(`before ${v.value}`),v.value=null,console.log(`after ${v.value}`)},S=e=>{const t=e.target.checked;!0===t?(g.value=!1,console.log(g.value)):(g.value=!0,console.log(g.value))},A=async e=>{try{m.value=e.target.files[0],v.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(f.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),x.value=!0,o.Z.isAxiosError(t)){const e=t;h.value=e.response?.data?.message}else h.value="Something went wrong, please contact helpmate.";_.value=!0}},I=async()=>{try{if(x.value=!1,v.value){let s;if("Desktop"===d.value){const i={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission:v.value},n=await(0,te.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:v.value,learner_task_id:t.value}),o=n.data;p.value=o.preSignedUrl;const u=await(0,te.sc)(p.value,m.value);200===u.status?s=await(0,ae.sw)("/offcycle/create",i):(x.value=!0,h.value="There is issue in the file upload, please contact with helpmate.",_.value=!0)}else{const i={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission_text:v.value};s=await(0,ae.sw)("/offcycle/create",i)}200===s.status?(x.value=!0,w.value=s.data.message,k.value=!0,localStorage.removeItem("programId"),localStorage.removeItem("programName"),localStorage.removeItem("linkedTaskId"),localStorage.removeItem("skillId"),localStorage.removeItem("skillName"),localStorage.removeItem("proficiencyId"),localStorage.removeItem("proficiencyName"),localStorage.removeItem("taskName"),localStorage.removeItem("taskType"),null!==r.value&&null!==l.value?ee.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value,skill_id:r.value,proficiency_id:l.value}}):ee.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value}})):(x.value=!0,h.value="There is some issue while submitting learner submission, please contact with helpmate.",_.value=!0)}else"Mobile"===d.value?(x.value=!0,v.value||(f.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{f.value=null}),6e3))):"Desktop"===d.value&&(x.value=!0,console.log(`learnerSubmission.value ${v.value}`),v.value||(f.value="please select File",setTimeout((()=>{f.value=null}),6e3)))}catch(s){if(x.value=!0,console.log(`error ${s}`),o.Z.isAxiosError(s)){const e=s;h.value=e.response?.data?.message}else h.value="There is some issue while submitting learner submission, please contact with helpmate.";_.value=!0}};return(0,i.onBeforeMount)((async()=>{x.value=!0})),{learnerSubmissionFile:m,skillId:r,proficiencyId:l,programId:a,taskType:d,taskName:c,submitSubmiision:I,learnerSubmission:v,selectedFile:A,fileValidationMsg:f,learnerTaskId:t,preSignedUrl:p,buttonDisable:g,setButtonEnable:S,validationError:b,clearFile:C,fileInputKey:y,renderReady:x,errorResponse:h,showErrorMessage:_,programName:s,skill:n,profName:u,showSuccessMessage:k,resMessage:w}}}),le=re,ie=a(1001),ne=(0,ie.Z)(le,r,l,!1,null,"5bfafb19",null),oe=ne.exports},9141:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[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._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationOffCycleDetails",query:{learner_task_id:e.learnerTaskId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary 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",on:{click:e.submitSubmiision}},[e._v(" Update Submission ")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Update Learner Submission")])])}],l=a(7203),i=a(306),n=a(8451),o=a(568),u=a(4735),c=(0,l.defineComponent)({name:"UpdateSubmission",components:{ErrorMessage:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,l.ref)(e.query.linked_task_id);console.log("Task ID",t.value);const a=(0,l.ref)(e.query.learner_task_id),s=(0,l.ref)(),r=(0,l.ref)(),u=(0,l.ref)(),c=(0,l.ref)(null),d=(0,l.ref)(),m=(0,l.ref)(!0),f=(0,l.ref)(),v=(0,l.ref)(0),p=(0,l.ref)(!1),g=(0,l.ref)(),b=(0,l.ref)(!1),y=(0,l.ref)(),x=(0,l.ref)(!1),h=async e=>{try{c.value=e.target.files[0],u.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),p.value=!0,i.Z.isAxiosError(t)){const e=t;g.value=e.response?.data?.message}else g.value="Something went wrong, please contact helpmate.";x.value=!0}},k=async()=>{try{if(p.value=!1,u.value){let e;const t={learner_task_id:a.value,learner_submission:u.value,taskType:s.value};if("Desktop"===s.value){const s=await(0,o.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:u.value,learner_task_id:a.value}),r=s.data;d.value=r.preSignedUrl;const l=await(0,o.sc)(d.value,c.value);200===l.status?e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",t):(p.value=!0,g.value="There is issue in the file upload, please contact with helpmate.",x.value=!0)}else e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(p.value=!0,y.value=e.data.message,b.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3)):(p.value=!0,g.value="There is some issue while submitting learner submission, please contact with helpmate.",x.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3))}else"Mobile"===s.value?(p.value=!0,u.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{r.value=null}),6e3))):"Desktop"===s.value&&(p.value=!0,console.log(`learnerSubmission.value ${u.value}`),u.value||(r.value="please select File",setTimeout((()=>{r.value=null}),6e3)))}catch(e){if(p.value=!0,console.log(`error ${e}`),i.Z.isAxiosError(e)){const t=e;g.value=t.response?.data?.message}else g.value="There is some issue while submitting learner submission, please contact with helpmate.";x.value=!0}},w=async()=>{p.value=!1;const e=await(0,o.yW)(t.value);console.log(`task data ${JSON.stringify(e)}`);const a=e.data.data;a?s.value=a.task_type:(g.value="There is an issue to fetch task, please contact helpmate.",x.value=!0),p.value=!0};return(0,l.onBeforeMount)((async()=>{await w()})),{taskType:s,learnerTaskId:a,renderReady:p,errorResponse:g,showErrorMessage:x,showSuccessMessage:b,resMessage:y,fileValidationMsg:r,submitSubmiision:k,learnerSubmission:u,selectedFile:h,preSignedUrl:d,buttonDisable:m,validationError:f,fileInputKey:v}}}),d=c,m=a(1001),f=(0,m.Z)(d,s,r,!1,null,"08c23a5d",null),v=f.exports},840:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[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._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministration"}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary 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",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Submit Learner Submission")])])}],l=a(7203),i=a(306),n=a(8451),o=a(568),u=a(4735),c=(0,l.defineComponent)({name:"UploadSubmission",components:{ErrorMessage:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,l.ref)(e.query.linked_task_id);console.log("Task ID",t.value);const a=(0,l.ref)(e.query.learner_task_id),s=(0,l.ref)(),r=(0,l.ref)(),u=(0,l.ref)(),c=(0,l.ref)(null),d=(0,l.ref)(),m=(0,l.ref)(!0),f=(0,l.ref)(),v=(0,l.ref)(0),p=(0,l.ref)(!1),g=(0,l.ref)(),b=(0,l.ref)(!1),y=(0,l.ref)(),x=(0,l.ref)(!1),h=async e=>{try{c.value=e.target.files[0],u.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),p.value=!0,i.Z.isAxiosError(t)){const e=t;g.value=e.response?.data?.message}else g.value="Something went wrong, please contact helpmate.";x.value=!0}},k=async()=>{try{if(p.value=!1,u.value){let e;const r={learner_task_id:a.value,learner_submission:u.value,taskType:s.value,linkedTaskId:t.value};if("Desktop"===s.value){const t=await(0,o.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:u.value,learner_task_id:a.value}),s=t.data;d.value=s.preSignedUrl;const l=await(0,o.sc)(d.value,c.value);200===l.status?e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",r):(p.value=!0,g.value="There is issue in the file upload, please contact with helpmate.",x.value=!0)}else e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",r);200===e.status?(p.value=!0,y.value=e.data.message,b.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3)):(p.value=!0,g.value="There is some issue while submitting learner submission, please contact with helpmate.",x.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3))}else"Mobile"===s.value?(p.value=!0,u.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{r.value=null}),6e3))):"Desktop"===s.value&&(p.value=!0,console.log(`learnerSubmission.value ${u.value}`),u.value||(r.value="please select File",setTimeout((()=>{r.value=null}),6e3)))}catch(e){if(p.value=!0,console.log(`error ${e}`),i.Z.isAxiosError(e)){const t=e;g.value=t.response?.data?.message}else g.value="There is some issue while submitting learner submission, please contact with helpmate.";x.value=!0}},w=async()=>{p.value=!1;const e=await(0,o.yW)(t.value);console.log(`task data ${JSON.stringify(e)}`);const a=e.data.data;a?s.value=a.task_type:(g.value="There is an issue to fetch task, please contact helpmate.",x.value=!0),p.value=!0};return(0,l.onBeforeMount)((async()=>{await w()})),{taskType:s,learnerTaskId:a,renderReady:p,errorResponse:g,showErrorMessage:x,showSuccessMessage:b,resMessage:y,fileValidationMsg:r,submitSubmiision:k,learnerSubmission:u,selectedFile:h,preSignedUrl:d,buttonDisable:m,validationError:f,fileInputKey:v}}}),d=c,m=a(1001),f=(0,m.Z)(d,s,r,!1,null,"7548bb12",null),v=f.exports},9955:function(e,t,a){a.d(t,{Yg:function(){return l},sw:function(){return r}});var s=a(7129);const 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}},8451:function(e,t,a){a.d(t,{Lu:function(){return r},O6:function(){return n},QZ:function(){return u},R2:function(){return o},X5:function(){return i},oE:function(){return l}});var s=a(7129);const r=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a},i=async(e,t)=>{const a=await s.Z.post(e,t);return a},n=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},o=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},u=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 n},rC:function(){return o},sc:function(){return l},ux:function(){return r},yW:function(){return i}});var s=a(7129);const r=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{let a;const s=await fetch(`${e}`,{method:"put",body:t});return a=s,a},i=async e=>{const t=await s.Z.get(`/task/${e}`);return t},n=async(e,t)=>{const a=await s.Z.post(e,{learner_task_id:t});return a},o=async(e,t)=>{const a=await s.Z.post(e,t);return a}},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p7aQ2JmqilXrhOh5RMXjEeqNsuUEUlEMx3ILLDQKrcsixyLmIwIrAInLIfcOnz7Ivuo6QdrIOLHG/M98/nuf3zLs772d/v+f3vO9KyBoYHKKts4dHHd1WW5D7+gdlQkY9Bub+dQo/XrqLV+fb8toCqy3BMxZsYYfysoA2IFMyAfb6hzvJLdXJI6ssQd19/fxg/mbaOnrkGRNgP/pgG7r6JnlklaVoxrxNVmDTSZMKrHd4GG1nHxVd5lnb2Uvn4LB81RdLkwosq6UL6XIuUrjGPF/OIazukXzVF0uTC6y123jDowufdngeUmg2UlTBs7HxHKYhrL5NvuqLpakHFnUbyScBySEQ6aJajE1iE9kKTB5NBbBIMT7mi/T3dUj7XZFCDJlmEh/PVmDyaLKBXS1CihDlcJ8L35+7mBnLPkVyvIh0RawxxEwhmXpcYD3oq3WU6WrQ1VRzu7CG2t5Bpro1Ge7toL2zg+7n9EWmHphh/9rrxFtL/8biz9fy2sbdSF7RxlJpCsnU4wDrLY7n1AlPDgWEEhQWyNaV+zlW3kKHHJ8q9ZUkciUticxOecJMWUaG2SmZs9oG77PnWLV3Hy8r9iNdSJkY2jPAmojdYMe+1Arq5ZnuzAhi6h5SV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L2aY80aRw+7oFDqZbzfu586F8sxwapivDCzi2YqO9MSYwUwI6fR1qtEAdnN6Tdp5HmLERab2fsElUlT9aP+Rlg9wk/6M4Rv3iScjVkZlzjjJMzh3If0jNQzoU1+1gZkk5qjgZ1TghfzNzAmtgy6vsEMMU6fu2uJjU3n9Rribi7nyHggUi2di0XNq3nPZ8sMjR5JMZG4+JzieiWYdpLU1Ee8OJ0Yg7Xs9MI8L2IW1A+dfV5HDl2mLnKdHTyuavzRhC2RxzZJn5wVY1tou0xT1MPLFpAuZiG5BsvQIgG40KigGeLtHYHUkgWUowAppLXjz0BeQZYPw2ZKbh/HUdkspq46Cg8b1bR3Ge8a22aeE6EJRF7TU1Ucjz+buG4JBdSM/CAmK3rmOkQx1X1daJUiURWGUvdQFsF/httmOWcTII6ncj4NBJrjTsTI900VGTgdymO8PgkQpPzKRXpO9SoJSI2AWVSCfe65LfCHTquJF1FGa5Gc9/8c+EUAzNYQFMJxxQbbXjKcVaF5BEpSqHYu1RizrDuG4F9O/Xrc/FatZKPrjWJA4CJRsReVpbCyc/WseZWl/g5WI6mFthENkAczb5xYgY/F2BD9OjvcD1SRfDt+zSYbH+G5qNdV0xKZCwRZQ00P/kLxZTLMoH9Lz+nDJuOmlxg1heYZmtSgT3oG8SpqglPXbNZ/o+4RmWXJe0sk6dJBWaV+bICm2ayAptmsgKbZpoY2PtWYJaoGe9NAOx1AUxbbXzjY5XlaMbcjeMD+9I9nHdXHuLdT77iV59abQme+fEBVth709P35NHLY2At7V3cLKzkWo7Wagtxal45dQ9bGRl58j+Dx8Csmh6yAptWgv8CbZkYUSkpBpcAAAAASUVORK5CYII="}}]);
|
|
1
|
+
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[704],{4735:function(e,t,a){a.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:a(6540)}})])])])])])},r=[],l=a(7203),i=(0,l.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,l.ref)(""),a=(0,l.ref)(localStorage.getItem("helpmateLink"));return(0,l.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:a}}}),n=i,o=a(1001),u=(0,o.Z)(n,s,r,!1,null,null,null),c=u.exports},7413:function(e,t,a){a.r(t),a.d(t,{default:function(){return oe}});var s,r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[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._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},[t("div",["infinity"===e.programId?t("p",[e._v(" Proficiency: "),t("strong",[e._v(e._s(e.profName))])]):e._e(),"infinity"===e.programId?t("p",{staticClass:"pt-2"},[e._v(" Skill: "),t("strong",[e._v(e._s(e.skill))])]):e._e(),"infinity"!==e.programId?t("p",{staticClass:"pt-2"},[e._v(" Program: "),t("strong",[e._v(e._s(e.programName))])]):e._e(),t("p",{staticClass:"pt-2"},[t("strong",[e._v("Task Name: ")]),e._v(e._s(e.taskName))])]),"Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[e._m(1),t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{key:e.fileInputKey,attrs:{type:"file"},on:{change:e.selectedFile}}),e._v(" "),e.learnerSubmission?t("x-icon",{attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1)]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[e._m(2),t("div",{staticClass:"mb-4 text-center"},[null!==e.skillId&&null!==e.proficiencyId?t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId,skill_id:e.skillId,proficiency_id:e.proficiencyId}}}},[e._v("Back")]):t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary 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",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},l=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Create Off-Cycle Task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Upload the file to create off-cycle task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pt-4"},[t("p",{staticClass:"text-xl"},[t("em",[e._v("Please don't click the browser back button")])])])}],i=(a(7658),a(7203)),n=a(4856),o=a(306),u=(a(3767),a(8585),a(8696),new Uint8Array(16));function c(){if(!s&&(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(u)}var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function m(e){return"string"===typeof e&&d.test(e)}for(var f=m,v=[],p=0;p<256;++p)v.push((p+256).toString(16).substr(1));function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase();if(!f(a))throw TypeError("Stringified UUID is invalid");return a}var b,y,x=g,h=0,k=0;function w(e,t,a){var s=t&&a||0,r=t||new Array(16);e=e||{};var l=e.node||b,i=void 0!==e.clockseq?e.clockseq:y;if(null==l||null==i){var n=e.random||(e.rng||c)();null==l&&(l=b=[1|n[0],n[1],n[2],n[3],n[4],n[5]]),null==i&&(i=y=16383&(n[6]<<8|n[7]))}var o=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:k+1,d=o-h+(u-k)/1e4;if(d<0&&void 0===e.clockseq&&(i=i+1&16383),(d<0||o>h)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=o,k=u,y=i,o+=122192928e5;var m=(1e4*(268435455&o)+u)%4294967296;r[s++]=m>>>24&255,r[s++]=m>>>16&255,r[s++]=m>>>8&255,r[s++]=255&m;var f=o/4294967296*1e4&268435455;r[s++]=f>>>8&255,r[s++]=255&f,r[s++]=f>>>24&15|16,r[s++]=f>>>16&255,r[s++]=i>>>8|128,r[s++]=255&i;for(var v=0;v<6;++v)r[s+v]=l[v];return t||x(r)}var _=w;function C(e){if(!f(e))throw TypeError("Invalid UUID");var t,a=new Uint8Array(16);return a[0]=(t=parseInt(e.slice(0,8),16))>>>24,a[1]=t>>>16&255,a[2]=t>>>8&255,a[3]=255&t,a[4]=(t=parseInt(e.slice(9,13),16))>>>8,a[5]=255&t,a[6]=(t=parseInt(e.slice(14,18),16))>>>8,a[7]=255&t,a[8]=(t=parseInt(e.slice(19,23),16))>>>8,a[9]=255&t,a[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=t/4294967296&255,a[12]=t>>>24&255,a[13]=t>>>16&255,a[14]=t>>>8&255,a[15]=255&t,a}var S=C;function A(e){e=unescape(encodeURIComponent(e));for(var t=[],a=0;a<e.length;++a)t.push(e.charCodeAt(a));return t}var I="6ba7b810-9dad-11d1-80b4-00c04fd430c8",M="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function T(e,t,a){function s(e,s,r,l){if("string"===typeof e&&(e=A(e)),"string"===typeof s&&(s=S(s)),16!==s.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(s),i.set(e,s.length),i=a(i),i[6]=15&i[6]|t,i[8]=63&i[8]|128,r){l=l||0;for(var n=0;n<16;++n)r[l+n]=i[n];return r}return x(i)}try{s.name=e}catch(r){}return s.DNS=I,s.URL=M,s}function U(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var a=0;a<t.length;++a)e[a]=t.charCodeAt(a)}return E(Z(L(e),8*e.length))}function E(e){for(var t=[],a=32*e.length,s="0123456789abcdef",r=0;r<a;r+=8){var l=e[r>>5]>>>r%32&255,i=parseInt(s.charAt(l>>>4&15)+s.charAt(15&l),16);t.push(i)}return t}function R(e){return 14+(e+64>>>9<<4)+1}function Z(e,t){e[t>>5]|=128<<t%32,e[R(t)-1]=t;for(var a=1732584193,s=-271733879,r=-1732584194,l=271733878,i=0;i<e.length;i+=16){var n=a,o=s,u=r,c=l;a=B(a,s,r,l,e[i],7,-680876936),l=B(l,a,s,r,e[i+1],12,-389564586),r=B(r,l,a,s,e[i+2],17,606105819),s=B(s,r,l,a,e[i+3],22,-1044525330),a=B(a,s,r,l,e[i+4],7,-176418897),l=B(l,a,s,r,e[i+5],12,1200080426),r=B(r,l,a,s,e[i+6],17,-1473231341),s=B(s,r,l,a,e[i+7],22,-45705983),a=B(a,s,r,l,e[i+8],7,1770035416),l=B(l,a,s,r,e[i+9],12,-1958414417),r=B(r,l,a,s,e[i+10],17,-42063),s=B(s,r,l,a,e[i+11],22,-1990404162),a=B(a,s,r,l,e[i+12],7,1804603682),l=B(l,a,s,r,e[i+13],12,-40341101),r=B(r,l,a,s,e[i+14],17,-1502002290),s=B(s,r,l,a,e[i+15],22,1236535329),a=F(a,s,r,l,e[i+1],5,-165796510),l=F(l,a,s,r,e[i+6],9,-1069501632),r=F(r,l,a,s,e[i+11],14,643717713),s=F(s,r,l,a,e[i],20,-373897302),a=F(a,s,r,l,e[i+5],5,-701558691),l=F(l,a,s,r,e[i+10],9,38016083),r=F(r,l,a,s,e[i+15],14,-660478335),s=F(s,r,l,a,e[i+4],20,-405537848),a=F(a,s,r,l,e[i+9],5,568446438),l=F(l,a,s,r,e[i+14],9,-1019803690),r=F(r,l,a,s,e[i+3],14,-187363961),s=F(s,r,l,a,e[i+8],20,1163531501),a=F(a,s,r,l,e[i+13],5,-1444681467),l=F(l,a,s,r,e[i+2],9,-51403784),r=F(r,l,a,s,e[i+7],14,1735328473),s=F(s,r,l,a,e[i+12],20,-1926607734),a=N(a,s,r,l,e[i+5],4,-378558),l=N(l,a,s,r,e[i+8],11,-2022574463),r=N(r,l,a,s,e[i+11],16,1839030562),s=N(s,r,l,a,e[i+14],23,-35309556),a=N(a,s,r,l,e[i+1],4,-1530992060),l=N(l,a,s,r,e[i+4],11,1272893353),r=N(r,l,a,s,e[i+7],16,-155497632),s=N(s,r,l,a,e[i+10],23,-1094730640),a=N(a,s,r,l,e[i+13],4,681279174),l=N(l,a,s,r,e[i],11,-358537222),r=N(r,l,a,s,e[i+3],16,-722521979),s=N(s,r,l,a,e[i+6],23,76029189),a=N(a,s,r,l,e[i+9],4,-640364487),l=N(l,a,s,r,e[i+12],11,-421815835),r=N(r,l,a,s,e[i+15],16,530742520),s=N(s,r,l,a,e[i+2],23,-995338651),a=P(a,s,r,l,e[i],6,-198630844),l=P(l,a,s,r,e[i+7],10,1126891415),r=P(r,l,a,s,e[i+14],15,-1416354905),s=P(s,r,l,a,e[i+5],21,-57434055),a=P(a,s,r,l,e[i+12],6,1700485571),l=P(l,a,s,r,e[i+3],10,-1894986606),r=P(r,l,a,s,e[i+10],15,-1051523),s=P(s,r,l,a,e[i+1],21,-2054922799),a=P(a,s,r,l,e[i+8],6,1873313359),l=P(l,a,s,r,e[i+15],10,-30611744),r=P(r,l,a,s,e[i+6],15,-1560198380),s=P(s,r,l,a,e[i+13],21,1309151649),a=P(a,s,r,l,e[i+4],6,-145523070),l=P(l,a,s,r,e[i+11],10,-1120210379),r=P(r,l,a,s,e[i+2],15,718787259),s=P(s,r,l,a,e[i+9],21,-343485551),a=D(a,n),s=D(s,o),r=D(r,u),l=D(l,c)}return[a,s,r,l]}function L(e){if(0===e.length)return[];for(var t=8*e.length,a=new Uint32Array(R(t)),s=0;s<t;s+=8)a[s>>5]|=(255&e[s/8])<<s%32;return a}function D(e,t){var a=(65535&e)+(65535&t),s=(e>>16)+(t>>16)+(a>>16);return s<<16|65535&a}function V(e,t){return e<<t|e>>>32-t}function G(e,t,a,s,r,l){return D(V(D(D(t,e),D(s,l)),r),a)}function B(e,t,a,s,r,l,i){return G(t&a|~t&s,e,t,r,l,i)}function F(e,t,a,s,r,l,i){return G(t&s|a&~s,e,t,r,l,i)}function N(e,t,a,s,r,l,i){return G(t^a^s,e,t,r,l,i)}function P(e,t,a,s,r,l,i){return G(a^(t|~s),e,t,r,l,i)}var j=U,z=T("v3",48,j),W=z;function J(e,t,a){e=e||{};var s=e.random||(e.rng||c)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){a=a||0;for(var r=0;r<16;++r)t[a+r]=s[r];return t}return x(s)}var q=J;function O(e,t,a,s){switch(e){case 0:return t&a^~t&s;case 1:return t^a^s;case 2:return t&a^t&s^a&s;case 3:return t^a^s}}function X(e,t){return e<<t|e>>>32-t}function Y(e){var t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var s=unescape(encodeURIComponent(e));e=[];for(var r=0;r<s.length;++r)e.push(s.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var l=e.length/4+2,i=Math.ceil(l/16),n=new Array(i),o=0;o<i;++o){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*o+4*c]<<24|e[64*o+4*c+1]<<16|e[64*o+4*c+2]<<8|e[64*o+4*c+3];n[o]=u}n[i-1][14]=8*(e.length-1)/Math.pow(2,32),n[i-1][14]=Math.floor(n[i-1][14]),n[i-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<i;++d){for(var m=new Uint32Array(80),f=0;f<16;++f)m[f]=n[d][f];for(var v=16;v<80;++v)m[v]=X(m[v-3]^m[v-8]^m[v-14]^m[v-16],1);for(var p=a[0],g=a[1],b=a[2],y=a[3],x=a[4],h=0;h<80;++h){var k=Math.floor(h/20),w=X(p,5)+O(k,g,b,y)+x+t[k]+m[h]>>>0;x=y,y=b,b=X(g,30)>>>0,g=p,p=w}a[0]=a[0]+p>>>0,a[1]=a[1]+g>>>0,a[2]=a[2]+b>>>0,a[3]=a[3]+y>>>0,a[4]=a[4]+x>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]}var H=Y,K=T("v5",80,H),Q=K,$={v1:_,v3:W,v4:q,v5:Q};var ee=a(8954),te=a(568),ae=a(9955),se=a(4735),re=(0,i.defineComponent)({name:"LearnerSubmitTask",components:{XIcon:n.b0D,ErrorMessage:se.Z},setup(){const e=(0,i.ref)(localStorage.getItem("linkedTaskId")),t=(0,i.ref)($.v1()),a=(0,i.ref)(localStorage.getItem("programId")),s=(0,i.ref)(localStorage.getItem("programName")),r=(0,i.ref)(localStorage.getItem("skillId"));console.log("skill Id in createoffcyclle",r);const l=(0,i.ref)(localStorage.getItem("proficiencyId")),n=(0,i.ref)(localStorage.getItem("skillName")),u=(0,i.ref)(localStorage.getItem("proficiencyName")),c=(0,i.ref)(localStorage.getItem("taskName")),d=(0,i.ref)(localStorage.getItem("taskType")),m=(0,i.ref)(null),f=(0,i.ref)(),v=(0,i.ref)(),p=(0,i.ref)(),g=(0,i.ref)(!0),b=(0,i.ref)(),y=(0,i.ref)(0),x=(0,i.ref)(!1),h=(0,i.ref)(),k=(0,i.ref)(!1),w=(0,i.ref)(),_=(0,i.ref)(!1),C=async()=>{y.value+=1,console.log(`before ${v.value}`),v.value=null,console.log(`after ${v.value}`)},S=e=>{const t=e.target.checked;!0===t?(g.value=!1,console.log(g.value)):(g.value=!0,console.log(g.value))},A=async e=>{try{m.value=e.target.files[0],v.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(f.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),x.value=!0,o.Z.isAxiosError(t)){const e=t;h.value=e.response?.data?.message}else h.value="Something went wrong, please contact helpmate.";_.value=!0}},I=async()=>{try{if(x.value=!1,v.value){let s;if("Desktop"===d.value){const i={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission:v.value},n=await(0,te.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:v.value,learner_task_id:t.value}),o=n.data;p.value=o.preSignedUrl;const u=await(0,te.sc)(p.value,m.value);200===u.status?s=await(0,ae.sw)("/offcycle/create",i):(x.value=!0,h.value="There is issue in the file upload, please contact with helpmate.",_.value=!0)}else{const i={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission_text:v.value};s=await(0,ae.sw)("/offcycle/create",i)}200===s.status?(x.value=!0,w.value=s.data.message,k.value=!0,localStorage.removeItem("programId"),localStorage.removeItem("programName"),localStorage.removeItem("linkedTaskId"),localStorage.removeItem("skillId"),localStorage.removeItem("skillName"),localStorage.removeItem("proficiencyId"),localStorage.removeItem("proficiencyName"),localStorage.removeItem("taskName"),localStorage.removeItem("taskType"),null!==r.value&&null!==l.value?ee.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value,skill_id:r.value,proficiency_id:l.value}}):ee.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value}})):(x.value=!0,h.value="There is some issue while submitting learner submission, please contact with helpmate.",_.value=!0)}else"Mobile"===d.value?(x.value=!0,v.value||(f.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{f.value=null}),6e3))):"Desktop"===d.value&&(x.value=!0,console.log(`learnerSubmission.value ${v.value}`),v.value||(f.value="please select File",setTimeout((()=>{f.value=null}),6e3)))}catch(s){if(x.value=!0,console.log(`error ${s}`),o.Z.isAxiosError(s)){const e=s;h.value=e.response?.data?.message}else h.value="There is some issue while submitting learner submission, please contact with helpmate.";_.value=!0}};return(0,i.onBeforeMount)((async()=>{x.value=!0})),{learnerSubmissionFile:m,skillId:r,proficiencyId:l,programId:a,taskType:d,taskName:c,submitSubmiision:I,learnerSubmission:v,selectedFile:A,fileValidationMsg:f,learnerTaskId:t,preSignedUrl:p,buttonDisable:g,setButtonEnable:S,validationError:b,clearFile:C,fileInputKey:y,renderReady:x,errorResponse:h,showErrorMessage:_,programName:s,skill:n,profName:u,showSuccessMessage:k,resMessage:w}}}),le=re,ie=a(1001),ne=(0,ie.Z)(le,r,l,!1,null,"5bfafb19",null),oe=ne.exports},9141:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[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._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationOffCycleDetails",query:{learner_task_id:e.learnerTaskId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary 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",on:{click:e.submitSubmiision}},[e._v(" Update Submission ")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Update Learner Submission")])])}],l=a(7203),i=a(306),n=a(8451),o=a(568),u=a(4735),c=(0,l.defineComponent)({name:"UpdateSubmission",components:{ErrorMessage:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,l.ref)(e.query.linked_task_id);console.log("Task ID",t.value);const a=(0,l.ref)(e.query.learner_task_id),s=(0,l.ref)(),r=(0,l.ref)(),u=(0,l.ref)(),c=(0,l.ref)(null),d=(0,l.ref)(),m=(0,l.ref)(!0),f=(0,l.ref)(),v=(0,l.ref)(0),p=(0,l.ref)(!1),g=(0,l.ref)(),b=(0,l.ref)(!1),y=(0,l.ref)(),x=(0,l.ref)(!1),h=async e=>{try{c.value=e.target.files[0],u.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),p.value=!0,i.Z.isAxiosError(t)){const e=t;g.value=e.response?.data?.message}else g.value="Something went wrong, please contact helpmate.";x.value=!0}},k=async()=>{try{if(p.value=!1,u.value){let e;const t={learner_task_id:a.value,learner_submission:u.value,taskType:s.value};if("Desktop"===s.value){const s=await(0,o.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:u.value,learner_task_id:a.value}),r=s.data;d.value=r.preSignedUrl;const l=await(0,o.sc)(d.value,c.value);200===l.status?e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",t):(p.value=!0,g.value="There is issue in the file upload, please contact with helpmate.",x.value=!0)}else e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(p.value=!0,y.value=e.data.message,b.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3)):(p.value=!0,g.value="There is some issue while submitting learner submission, please contact with helpmate.",x.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3))}else"Mobile"===s.value?(p.value=!0,u.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{r.value=null}),6e3))):"Desktop"===s.value&&(p.value=!0,console.log(`learnerSubmission.value ${u.value}`),u.value||(r.value="please select File",setTimeout((()=>{r.value=null}),6e3)))}catch(e){if(p.value=!0,console.log(`error ${e}`),i.Z.isAxiosError(e)){const t=e;g.value=t.response?.data?.message}else g.value="There is some issue while submitting learner submission, please contact with helpmate.";x.value=!0}},w=async()=>{p.value=!1;const e=await(0,o.yW)(t.value);console.log(`task data ${JSON.stringify(e)}`);const a=e.data.data;a?s.value=a.task_type:(g.value="There is an issue to fetch task, please contact helpmate.",x.value=!0),p.value=!0};return(0,l.onBeforeMount)((async()=>{await w()})),{taskType:s,learnerTaskId:a,renderReady:p,errorResponse:g,showErrorMessage:x,showSuccessMessage:b,resMessage:y,fileValidationMsg:r,submitSubmiision:k,learnerSubmission:u,selectedFile:h,preSignedUrl:d,buttonDisable:m,validationError:f,fileInputKey:v}}}),d=c,m=a(1001),f=(0,m.Z)(d,s,r,!1,null,"08c23a5d",null),v=f.exports},840:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[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._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministration"}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary 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",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Submit Learner Submission")])])}],l=a(7203),i=a(306),n=a(8451),o=a(568),u=a(4735),c=(0,l.defineComponent)({name:"UploadSubmission",components:{ErrorMessage:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,l.ref)(e.query.linked_task_id);console.log("Task ID",t.value);const a=(0,l.ref)(e.query.learner_task_id),s=(0,l.ref)(),r=(0,l.ref)(),u=(0,l.ref)(),c=(0,l.ref)(null),d=(0,l.ref)(),m=(0,l.ref)(!0),f=(0,l.ref)(),v=(0,l.ref)(0),p=(0,l.ref)(!1),g=(0,l.ref)(),b=(0,l.ref)(!1),y=(0,l.ref)(),x=(0,l.ref)(!1),h=async e=>{try{c.value=e.target.files[0],u.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),p.value=!0,i.Z.isAxiosError(t)){const e=t;g.value=e.response?.data?.message}else g.value="Something went wrong, please contact helpmate.";x.value=!0}},k=async()=>{try{if(p.value=!1,u.value){let e;const r={learner_task_id:a.value,learner_submission:u.value,taskType:s.value,linkedTaskId:t.value};if("Desktop"===s.value){const t=await(0,o.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:u.value,learner_task_id:a.value}),s=t.data;d.value=s.preSignedUrl;const l=await(0,o.sc)(d.value,c.value);200===l.status?e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",r):(p.value=!0,g.value="There is issue in the file upload, please contact with helpmate.",x.value=!0)}else e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",r);200===e.status?(p.value=!0,y.value=e.data.message,b.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3)):(p.value=!0,g.value="There is some issue while submitting learner submission, please contact with helpmate.",x.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3))}else"Mobile"===s.value?(p.value=!0,u.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{r.value=null}),6e3))):"Desktop"===s.value&&(p.value=!0,console.log(`learnerSubmission.value ${u.value}`),u.value||(r.value="please select File",setTimeout((()=>{r.value=null}),6e3)))}catch(e){if(p.value=!0,console.log(`error ${e}`),i.Z.isAxiosError(e)){const t=e;g.value=t.response?.data?.message}else g.value="There is some issue while submitting learner submission, please contact with helpmate.";x.value=!0}},w=async()=>{p.value=!1;const e=await(0,o.yW)(t.value);console.log(`task data ${JSON.stringify(e)}`);const a=e.data.data;a?s.value=a.task_type:(g.value="There is an issue to fetch task, please contact helpmate.",x.value=!0),p.value=!0};return(0,l.onBeforeMount)((async()=>{await w()})),{taskType:s,learnerTaskId:a,renderReady:p,errorResponse:g,showErrorMessage:x,showSuccessMessage:b,resMessage:y,fileValidationMsg:r,submitSubmiision:k,learnerSubmission:u,selectedFile:h,preSignedUrl:d,buttonDisable:m,validationError:f,fileInputKey:v}}}),d=c,m=a(1001),f=(0,m.Z)(d,s,r,!1,null,"7548bb12",null),v=f.exports},9955:function(e,t,a){a.d(t,{Yg:function(){return l},sw:function(){return r}});var s=a(7129);const 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}},8451:function(e,t,a){a.d(t,{Lu:function(){return r},O6:function(){return n},QZ:function(){return u},R2:function(){return o},X5:function(){return i},oE:function(){return l}});var s=a(7129);const r=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a},i=async(e,t)=>{const a=await s.Z.post(e,t);return a},n=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},o=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},u=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 n},rC:function(){return o},sc:function(){return l},ux:function(){return r},yW:function(){return i}});var s=a(7129);const r=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{let a;const s=await fetch(`${e}`,{method:"put",body:t});return a=s,a},i=async e=>{const t=await s.Z.get(`/task/${e}`);return t},n=async(e,t)=>{const a=await s.Z.post(e,{learner_task_id:t});return a},o=async(e,t)=>{const a=await s.Z.post(e,t);return a}},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p7aQ2JmqilXrhOh5RMXjEeqNsuUEUlEMx3ILLDQKrcsixyLmIwIrAInLIfcOnz7Ivuo6QdrIOLHG/M98/nuf3zLs772d/v+f3vO9KyBoYHKKts4dHHd1WW5D7+gdlQkY9Bub+dQo/XrqLV+fb8toCqy3BMxZsYYfysoA2IFMyAfb6hzvJLdXJI6ssQd19/fxg/mbaOnrkGRNgP/pgG7r6JnlklaVoxrxNVmDTSZMKrHd4GG1nHxVd5lnb2Uvn4LB81RdLkwosq6UL6XIuUrjGPF/OIazukXzVF0uTC6y123jDowufdngeUmg2UlTBs7HxHKYhrL5NvuqLpakHFnUbyScBySEQ6aJajE1iE9kKTB5NBbBIMT7mi/T3dUj7XZFCDJlmEh/PVmDyaLKBXS1CihDlcJ8L35+7mBnLPkVyvIh0RawxxEwhmXpcYD3oq3WU6WrQ1VRzu7CG2t5Bpro1Ge7toL2zg+7n9EWmHphh/9rrxFtL/8biz9fy2sbdSF7RxlJpCsnU4wDrLY7n1AlPDgWEEhQWyNaV+zlW3kKHHJ8q9ZUkciUticxOecJMWUaG2SmZs9oG77PnWLV3Hy8r9iNdSJkY2jPAmojdYMe+1Arq5ZnuzAhi6h5SV3OXjBuV1A8MM8IAXfpqcm9oqeoZpKuhirybhaiL71J8p5LCggLU1a1i3S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