@genpact/genome.mfe.solidify-app 1.51.1 → 1.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/css/LearnerRereview.css +1 -1
  2. package/dist/css/SolidifyAdministrationTaskManagement.css +1 -1
  3. package/dist/css/SolidifyLearner.css +1 -1
  4. package/dist/css/SolidifyLearnerPeerReview.css +1 -1
  5. package/dist/css/SolidifyLearnerProxyReview.css +1 -1
  6. package/dist/img/plag_warning1.gif +0 -0
  7. package/dist/img/plag_warning2.gif +0 -0
  8. package/dist/solidify.css +1 -1
  9. package/dist/solidify.umd.min.LearnerRereview.js +1 -1
  10. package/dist/solidify.umd.min.LearnerRereview.js.map +1 -1
  11. package/dist/solidify.umd.min.SolidifyAdministration.js +1 -1
  12. package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js +1 -1
  13. package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js +1 -1
  14. package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js +1 -1
  15. package/dist/solidify.umd.min.SolidifyAdministrationOffcycleDashboard.js +1 -1
  16. package/dist/solidify.umd.min.SolidifyAdministrationOperationalDetails.js +1 -1
  17. package/dist/solidify.umd.min.SolidifyAdministrationProgramAdministration.js +1 -1
  18. package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js +1 -1
  19. package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js.map +1 -1
  20. package/dist/solidify.umd.min.SolidifyLearner.js +2 -2
  21. package/dist/solidify.umd.min.SolidifyLearner.js.map +1 -1
  22. package/dist/solidify.umd.min.SolidifyLearnerDone.js +1 -1
  23. package/dist/solidify.umd.min.SolidifyLearnerPeerReview.js +1 -1
  24. package/dist/solidify.umd.min.SolidifyLearnerPeerReview.js.map +1 -1
  25. package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js +1 -1
  26. package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js.map +1 -1
  27. package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js +1 -1
  28. package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js +1 -1
  29. package/dist/solidify.umd.min.js +2 -2
  30. package/dist/solidify.umd.min.js.map +1 -1
  31. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[351],{5041: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(1548),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(3736),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],{5041: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(6545),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(3736),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],{8200: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(3736),u=(0,o.Z)(n,s,r,!1,null,null,null),c=u.exports},4755: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(1548),te=a(568),ae=a(9955),se=a(8200),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(3736),ne=(0,ie.Z)(le,r,l,!1,null,"5bfafb19",null),oe=ne.exports},3440: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(8200),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(3736),f=(0,m.Z)(d,s,r,!1,null,"08c23a5d",null),v=f.exports},8778: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(8200),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(3736),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+1Arq5ZnuzAhi6h5SV3OXjBuV1A8MM8IAXfpqcm9oqeoZpKuhirybhaiL71J8p5LCggLU1a1i3SBt9+9w62YRN0orKSmvIP92Edm1Y/j76WzWkV+g5XbZHQrKa2kUR5aexntkagpJ1ZSQlVNGUVUDxWFebDvlhXOOngePOkUdME8WAsyRuf/cRGZ2Nqnp6Xyg2MlLu06K9j1j/NL4DLA2su0Pstw5ieTGAYbkWcN8ZYIrC98+RuDDHoGhG312AOt+voXjui7qsy+zddEnzDkRhm9oNF6ujiw/5M05fQv3Es+yZuFqFjhFERgSgdLRgRWOQUS0i9rWWIrqjBu7PEI4GxTAvx288Ukro+JWJJ9t2Mzb60+y59QlvEPiCFIeZtnmE+wOSCJNW0vziPzVvqUsJsP+IIDdysnlfs09Tjk58eZHK5EOuIt2P+dpWAaPt4fVqVGccMPeX4W/KodMkQ39hpvTf52t81wJfdgt8sugcs7P3oNTjdjfRppJ2G6DTdFoAAZ60Xoo+OG5Eoa7qgnZqWBbpRxrrSXGaTe/9M+iKM6Dvx5ORT8aGKQ+4wpf2rlxproKXz83/uhT8LgU10b5YO8ZTGS7PGGmLAPYXiW/MZREHx+USiVrbW15a9H7SEs/RnIOEU2I4XxmkmnjNh1CQw8oSQhGYefAv74KILSyGzrS2CIDM76YKObs7N0yMD1Xt9rwecFoQHQI/bRcd+WVHTHoeu4StE3BljtyrK+ZHJU7b9r64uu7nzlqk8+vy0Ppc5pVV9IJDPBkSUARvaOBIXRR3uxxCSGidXTCbFkGMHsnfrLkLyxavoI3Zs3mlXdm8dKfBax/rEc66iMA5T5dGicC9lgtZB5W8DOvfBobU1DMdyXs/wWW4car+1No6q7gkimw/mZuJXjy0y8u4ue9jzkZXXJASK/BxVfJqshUAcyDJf5F8l71XQRm6BLtXfje7xbx8p+WIS1YivTOb5G2HzV2i36i+YjIF+u/CVgLRVnVPGrtk8dCVw/yhkcG+oZ4FL93JrhprCRq8Z1th7v+CTCb0tGAKIl96ALt+UV4LXSWjwLbPvaGqa2etAtHWRxWQH7wceY55zL2aY80aRw+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],{8200: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(3736),u=(0,o.Z)(n,s,r,!1,null,null,null),c=u.exports},4755: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(6545),te=a(568),ae=a(9955),se=a(8200),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(3736),ne=(0,ie.Z)(le,r,l,!1,null,"5bfafb19",null),oe=ne.exports},3440: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(8200),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(3736),f=(0,m.Z)(d,s,r,!1,null,"08c23a5d",null),v=f.exports},8778: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(8200),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(3736),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+1Arq5ZnuzAhi6h5SV3OXjBuV1A8MM8IAXfpqcm9oqeoZpKuhirybhaiL71J8p5LCggLU1a1i3SBt9+9w62YRN0orKSmvIP92Edm1Y/j76WzWkV+g5XbZHQrKa2kUR5aexntkagpJ1ZSQlVNGUVUDxWFebDvlhXOOngePOkUdME8WAsyRuf/cRGZ2Nqnp6Xyg2MlLu06K9j1j/NL4DLA2su0Pstw5ieTGAYbkWcN8ZYIrC98+RuDDHoGhG312AOt+voXjui7qsy+zddEnzDkRhm9oNF6ujiw/5M05fQv3Es+yZuFqFjhFERgSgdLRgRWOQUS0i9rWWIrqjBu7PEI4GxTAvx288Ukro+JWJJ9t2Mzb60+y59QlvEPiCFIeZtnmE+wOSCJNW0vziPzVvqUsJsP+IIDdysnlfs09Tjk58eZHK5EOuIt2P+dpWAaPt4fVqVGccMPeX4W/KodMkQ39hpvTf52t81wJfdgt8sugcs7P3oNTjdjfRppJ2G6DTdFoAAZ60Xoo+OG5Eoa7qgnZqWBbpRxrrSXGaTe/9M+iKM6Dvx5ORT8aGKQ+4wpf2rlxproKXz83/uhT8LgU10b5YO8ZTGS7PGGmLAPYXiW/MZREHx+USiVrbW15a9H7SEs/RnIOEU2I4XxmkmnjNh1CQw8oSQhGYefAv74KILSyGzrS2CIDM76YKObs7N0yMD1Xt9rwecFoQHQI/bRcd+WVHTHoeu4StE3BljtyrK+ZHJU7b9r64uu7nzlqk8+vy0Ppc5pVV9IJDPBkSUARvaOBIXRR3uxxCSGidXTCbFkGMHsnfrLkLyxavoI3Zs3mlXdm8dKfBax/rEc66iMA5T5dGicC9lgtZB5W8DOvfBobU1DMdyXs/wWW4car+1No6q7gkimw/mZuJXjy0y8u4ue9jzkZXXJASK/BxVfJqshUAcyDJf5F8l71XQRm6BLtXfje7xbx8p+WIS1YivTOb5G2HzV2i36i+YjIF+u/CVgLRVnVPGrtk8dCVw/yhkcG+oZ4FL93JrhprCRq8Z1th7v+CTCb0tGAKIl96ALt+UV4LXSWjwLbPvaGqa2etAtHWRxWQH7wceY55zL2aY80aRw+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="}}]);
2
2
  //# sourceMappingURL=solidify.umd.min.SolidifyAdministrationCreateOffCyele.js.map
@@ -1,2 +1,2 @@
1
- "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[146],{528:function(e,t,a){a.r(t),a.d(t,{default:function(){return f}});var n=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-12"},[e.isPreview?t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Template Preview")])]):t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Template Details")])]),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.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),e.renderReady?t("div",{staticClass:"w-full mt-4"},[e.isPreview?t("div",{staticClass:"max-w-4xl m-auto shadow p-5 mb-4 -text-blue-900"},[t("div",{staticClass:"w-full px-2 mb-3 text-center text-2xl font-bold text-blue-900"},[e._v(e._s(e.template.subject))]),t("div",{staticClass:"w-full md:w-full px-3 mb-4",domProps:{innerHTML:e._s(e.previewContent)}}),t("div",{staticClass:"w-full text-center"},[t("button",{staticClass:"px-4 py-2 border border-blue-900 bg-white-500 text-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 inline-block",on:{click:function(t){return e.openPreview()}}},[e._v("Back")])])]):t("div",{staticClass:"max-w-4xl m-auto shadow p-5 mb-4 -text-blue-900"},[t("div",{staticClass:"flex flex-wrap -mx-3 mb-6"},[t("div",{staticClass:"w-full md:w-full px-3 mb-4"},[t("label",{staticClass:"block tracking-wide text-background-secondary opacity-80 font-normal mb-2"},[e._v(" Template Name ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.template.template_name,expression:"template.template_name"}],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",attrs:{disabled:!e.isNew,type:"text"},domProps:{value:e.template.template_name},on:{input:function(t){t.target.composing||e.$set(e.template,"template_name",t.target.value)}}})]),t("div",{staticClass:"w-full md:w-full px-3 mb-4"},[t("label",{staticClass:"block tracking-wide text-background-secondary opacity-80 font-normal mb-2"},[e._v(" Template Subject ")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.template.subject,expression:"template.subject"}],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",domProps:{value:e.template.subject},on:{input:function(t){t.target.composing||e.$set(e.template,"subject",t.target.value)}}})]),t("div",{staticClass:"w-full md:w-full h-full px-3 mb-4"},[t("label",{staticClass:"block tracking-wide text-background-secondary opacity-80 font-normal mb-2"},[e._v(" Template Content ")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.template.content,expression:"template.content"}],staticClass:"appearance-none block w-full h-80 text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white",domProps:{value:e.template.content},on:{input:function(t){t.target.composing||e.$set(e.template,"content",t.target.value)}}})]),t("div",{staticClass:"w-full md:w-full px-3 mb-4 text-center mt-5"},[t("router-link",{staticClass:"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 mr-2",attrs:{to:{name:"SolidifyAdministrationEmailTemplateManagement"}}},[e._v(" Back ")]),t("button",{staticClass:"mr-2 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 inline-block",on:{click:function(t){return e.openPreview()}}},[e._v("Preview")]),e.showUpdate?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 inline-block",on:{click:function(t){return e.updateTemplate()}}},[e._v("Update")]):e._e()],1)])])]):e._e()]):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...")])])])},s=[],l=a(5279),r=a(7203),i=a(1232),o=a(306),c=a(539),u=(0,r.defineComponent)({name:"EmailTemplateDetails",components:{},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,r.ref)(e.query.template),a=(0,r.ref)(!0),n=(0,r.ref)({}),s=(0,r.ref)(),u=(0,r.ref)(!0),d=(0,r.ref)(),m=(0,r.ref)(),p=(0,r.ref)(!1),f=(0,r.ref)(!1),v=(0,r.ref)(),g=(0,r.ref)(!1),w=(0,r.ref)("true"===e.query.is_new),y=(0,r.ref)(!1),x=(0,r.ref)(!1),b=(0,r.ref)(),h=(0,r.ref)(),_=async()=>{try{a.value=!1,n.value={...n.value,is_new:w.value};const e=await(0,i.F)("/email/templates/save",n.value);console.log(e),v.value=e.data.message,a.value=!0,f.value=!0,g.value=!1,window.scroll(0,0),a.value=!0}catch(e){if(a.value=!0,o.Z.isAxiosError(e)){const t=e;a.value=!0,v.value=t.response?.data?.message,g.value=!0,f.value=!1,setTimeout((()=>{g.value=!1}),5e3)}}},C=()=>{const e=n.value;let t="";if(""===e?.content)return window.scroll(0,0),v.value="Template Content cannot be empty",g.value=!0,f.value=!1,void setTimeout((()=>{g.value=!1}),5e3);const a=e?.content.split("$");let s=!0;a.forEach((e=>{void 0!==b.value[e]?(console.log(b.value[e]),t+=b.value[e],s=!0):s?(t+=`${e}`,s=!1):(t+=`$${e}`,s=!1)})),console.log(t),h.value=t,y.value=!y.value},k=async()=>{a.value=!1;try{if(!1===w.value){const e=await(0,i.a)("/email/templates/all");console.log(t.value),n.value=e.data.body.Items.find((e=>{if(t.value===e.template_name)return console.log(e),e}))}}catch(e){if(o.Z.isAxiosError(e)){const t=e;a.value=!0,v.value=t.response?.statusText,g.value=!0,f.value=!1,setTimeout((()=>{g.value=!1}),7e3)}}a.value=!0};return(0,r.onBeforeMount)((async()=>{const e=await(0,l.GF)("/getUserRole");if(d.value=e.user_key,m.value=e.user_roles,m.value.length>0)if(m.value.includes("System Admin")){p.value=!0,await k();const e=await(0,c.p)("system/config");b.value=e,console.log(e)}else p.value=!1})),{templateID:t,showSuccessMessage:f,showScreen:p,resMessage:v,showErrorMessage:g,showUpdate:u,errorMessage:s,renderReady:a,template:n,openPreview:C,updateTemplate:_,isNew:w,isPreview:y,previewContent:h,previewShow:x}}}),d=u,m=a(3736),p=(0,m.Z)(d,n,s,!1,null,null,null),f=p.exports},3638:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var n=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 flex mt-6"},[t("div",{staticClass:"w-full text-left"},[t("router-link",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",attrs:{to:{name:"SolidifyAdministrationEmailTemplateDetails",query:{is_new:"true"}}}},[e._v("Add Email Template")]),e.editTemplateBtn?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){return e.editTemplate()}}},[e._v("Edit Template")]):e._e()],1)]),t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded mb-4 text-over"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.emailTemplates,(function(a){return t("tr",{key:a.template_name,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.templateCheck,expression:"templateCheck"}],attrs:{type:"checkbox",id:a.template_name},domProps:{value:a.template_name,checked:Array.isArray(e.templateCheck)?e._i(e.templateCheck,a.template_name)>-1:e.templateCheck},on:{change:[function(t){var n=e.templateCheck,s=t.target,l=!!s.checked;if(Array.isArray(n)){var r=a.template_name,i=e._i(n,r);s.checked?i<0&&(e.templateCheck=n.concat([r])):i>-1&&(e.templateCheck=n.slice(0,i).concat(n.slice(i+1)))}else e.templateCheck=l},function(t){return e.showTemplateEditBtn(t,a.template_name)}],click:e.checkOne}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.template_name))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.subject))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.content))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.modified_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.modified_by))])])})),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...")])])])},s=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full flex justify-between"},[t("div",{staticClass:"w-full text-center text-3xl text-background-secondary"},[e._v("Email Template Management")])])},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"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Template Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Template Subject")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Content")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Modified Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Modified By")])])])}],l=(a(7658),a(7203)),r=a(5279),i=a(1232),o=a(1602),c=a.n(o),u=a(1548),d=(0,l.defineComponent)({name:"EmailTemplateManagement",components:{},setup(){const e=(0,l.ref)(),t=(0,l.ref)(),a=(0,l.ref)(!1),n=(0,l.ref)([]),s=(0,l.ref)(!1),o=(0,l.ref)(!1),d=(0,l.ref)(""),m=(0,l.ref)([]),p=()=>{m.value=[]},f=async()=>{s.value=!1;try{const e=await(0,i.a)("/email/templates/all");n.value=e.data.body.Items,n.value.map((e=>(e.created_date=c()(e.created_date).format("DD-MM-YYYY hh:mm:ss"),e.modified_date=c()(e.modified_date).format("DD-MM-YYYY hh:mm:ss"),e))),s.value=!0}catch(e){const t=e;console.log(t.response)}},v=async(e,t)=>{!0===e.target.checked?(o.value=!0,d.value=t):(o.value=!1,d.value="")},g=async()=>{console.log("template editing",d.value);const e={template:d.value,is_new:"false"};u.Z.push({name:"SolidifyAdministrationEmailTemplateDetails",query:e})};return(0,l.onBeforeMount)((async()=>{const n=await(0,r.GF)("/getUserRole");e.value=n.user_key,t.value=n.user_roles,t.value.length>0&&(t.value.includes("System Admin")?(a.value=!0,await f()):a.value=!1)})),{loggedInUser:e,userRole:t,showScreen:a,emailTemplates:n,renderReady:s,showTemplateEditBtn:v,editTemplateBtn:o,editTemplate:g,templateCheck:m,checkOne:p}}}),m=d,p=a(3736),f=(0,p.Z)(m,n,s,!1,null,"57434bbe",null),v=f.exports},5279:function(e,t,a){a.d(t,{$d:function(){return s},$i:function(){return C},Ao:function(){return g},DU:function(){return f},EX:function(){return j},F5:function(){return A},FS:function(){return m},GF:function(){return M},Iu:function(){return r},J1:function(){return _},Jf:function(){return x},Kk:function(){return w},N9:function(){return P},P8:function(){return u},VP:function(){return y},Vz:function(){return k},WX:function(){return p},X$:function(){return b},XP:function(){return l},Yb:function(){return T},a4:function(){return S},dH:function(){return h},gh:function(){return v},nb:function(){return o},oA:function(){return Z},r4:function(){return d},sd:function(){return c},wp:function(){return i},xJ:function(){return E}});var n=a(7129);const s=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},l=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},r=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},i=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},o=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},c=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},u=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},d=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},m=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},p=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},f=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},v=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},g=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data.userObj,t))),t},w=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data.userObj,t))),t},y=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data.userObj,t))),t},x=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},b=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},h=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},_=async e=>{const t=await n.Z.get(e);return t},C=async e=>{const t=await n.Z.get(e);return t},k=async e=>{const t=await n.Z.get(e);return t},Z=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},T=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},M=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data.userObj,t))),t},P=async e=>{const t=await n.Z.post("/user/role",e);return t},S=async e=>{const t=await n.Z.post("/user/removeRole",e);return t},E=async()=>{const e=await n.Z.get("role");return e},j=async e=>{const t=await n.Z.post("/user/saveLSS",e);return t},A=async e=>{const t=await n.Z.post("/user/saveEnvAccess",e);return t}},539:function(e,t,a){a.d(t,{p:function(){return s},u:function(){return l}});var n=a(7129);const s=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data.sys_settings,t))),t},l=async(e,t)=>{try{let a;return await n.Z.post(e,t).then((e=>(a=e.data,a))),a}catch(a){console.log(a)}}}}]);
1
+ "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[146],{528:function(e,t,a){a.r(t),a.d(t,{default:function(){return f}});var n=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-12"},[e.isPreview?t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Template Preview")])]):t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Template Details")])]),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.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),e.renderReady?t("div",{staticClass:"w-full mt-4"},[e.isPreview?t("div",{staticClass:"max-w-4xl m-auto shadow p-5 mb-4 -text-blue-900"},[t("div",{staticClass:"w-full px-2 mb-3 text-center text-2xl font-bold text-blue-900"},[e._v(e._s(e.template.subject))]),t("div",{staticClass:"w-full md:w-full px-3 mb-4",domProps:{innerHTML:e._s(e.previewContent)}}),t("div",{staticClass:"w-full text-center"},[t("button",{staticClass:"px-4 py-2 border border-blue-900 bg-white-500 text-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 inline-block",on:{click:function(t){return e.openPreview()}}},[e._v("Back")])])]):t("div",{staticClass:"max-w-4xl m-auto shadow p-5 mb-4 -text-blue-900"},[t("div",{staticClass:"flex flex-wrap -mx-3 mb-6"},[t("div",{staticClass:"w-full md:w-full px-3 mb-4"},[t("label",{staticClass:"block tracking-wide text-background-secondary opacity-80 font-normal mb-2"},[e._v(" Template Name ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.template.template_name,expression:"template.template_name"}],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",attrs:{disabled:!e.isNew,type:"text"},domProps:{value:e.template.template_name},on:{input:function(t){t.target.composing||e.$set(e.template,"template_name",t.target.value)}}})]),t("div",{staticClass:"w-full md:w-full px-3 mb-4"},[t("label",{staticClass:"block tracking-wide text-background-secondary opacity-80 font-normal mb-2"},[e._v(" Template Subject ")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.template.subject,expression:"template.subject"}],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",domProps:{value:e.template.subject},on:{input:function(t){t.target.composing||e.$set(e.template,"subject",t.target.value)}}})]),t("div",{staticClass:"w-full md:w-full h-full px-3 mb-4"},[t("label",{staticClass:"block tracking-wide text-background-secondary opacity-80 font-normal mb-2"},[e._v(" Template Content ")]),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.template.content,expression:"template.content"}],staticClass:"appearance-none block w-full h-80 text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white",domProps:{value:e.template.content},on:{input:function(t){t.target.composing||e.$set(e.template,"content",t.target.value)}}})]),t("div",{staticClass:"w-full md:w-full px-3 mb-4 text-center mt-5"},[t("router-link",{staticClass:"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 mr-2",attrs:{to:{name:"SolidifyAdministrationEmailTemplateManagement"}}},[e._v(" Back ")]),t("button",{staticClass:"mr-2 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 inline-block",on:{click:function(t){return e.openPreview()}}},[e._v("Preview")]),e.showUpdate?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 inline-block",on:{click:function(t){return e.updateTemplate()}}},[e._v("Update")]):e._e()],1)])])]):e._e()]):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...")])])])},s=[],l=a(5279),r=a(7203),i=a(1232),o=a(306),c=a(539),u=(0,r.defineComponent)({name:"EmailTemplateDetails",components:{},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,r.ref)(e.query.template),a=(0,r.ref)(!0),n=(0,r.ref)({}),s=(0,r.ref)(),u=(0,r.ref)(!0),d=(0,r.ref)(),m=(0,r.ref)(),p=(0,r.ref)(!1),f=(0,r.ref)(!1),v=(0,r.ref)(),g=(0,r.ref)(!1),w=(0,r.ref)("true"===e.query.is_new),y=(0,r.ref)(!1),x=(0,r.ref)(!1),b=(0,r.ref)(),h=(0,r.ref)(),_=async()=>{try{a.value=!1,n.value={...n.value,is_new:w.value};const e=await(0,i.F)("/email/templates/save",n.value);console.log(e),v.value=e.data.message,a.value=!0,f.value=!0,g.value=!1,window.scroll(0,0),a.value=!0}catch(e){if(a.value=!0,o.Z.isAxiosError(e)){const t=e;a.value=!0,v.value=t.response?.data?.message,g.value=!0,f.value=!1,setTimeout((()=>{g.value=!1}),5e3)}}},C=()=>{const e=n.value;let t="";if(""===e?.content)return window.scroll(0,0),v.value="Template Content cannot be empty",g.value=!0,f.value=!1,void setTimeout((()=>{g.value=!1}),5e3);const a=e?.content.split("$");let s=!0;a.forEach((e=>{void 0!==b.value[e]?(console.log(b.value[e]),t+=b.value[e],s=!0):s?(t+=`${e}`,s=!1):(t+=`$${e}`,s=!1)})),console.log(t),h.value=t,y.value=!y.value},k=async()=>{a.value=!1;try{if(!1===w.value){const e=await(0,i.a)("/email/templates/all");console.log(t.value),n.value=e.data.body.Items.find((e=>{if(t.value===e.template_name)return console.log(e),e}))}}catch(e){if(o.Z.isAxiosError(e)){const t=e;a.value=!0,v.value=t.response?.statusText,g.value=!0,f.value=!1,setTimeout((()=>{g.value=!1}),7e3)}}a.value=!0};return(0,r.onBeforeMount)((async()=>{const e=await(0,l.GF)("/getUserRole");if(d.value=e.user_key,m.value=e.user_roles,m.value.length>0)if(m.value.includes("System Admin")){p.value=!0,await k();const e=await(0,c.p)("system/config");b.value=e,console.log(e)}else p.value=!1})),{templateID:t,showSuccessMessage:f,showScreen:p,resMessage:v,showErrorMessage:g,showUpdate:u,errorMessage:s,renderReady:a,template:n,openPreview:C,updateTemplate:_,isNew:w,isPreview:y,previewContent:h,previewShow:x}}}),d=u,m=a(3736),p=(0,m.Z)(d,n,s,!1,null,null,null),f=p.exports},3638:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var n=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 flex mt-6"},[t("div",{staticClass:"w-full text-left"},[t("router-link",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",attrs:{to:{name:"SolidifyAdministrationEmailTemplateDetails",query:{is_new:"true"}}}},[e._v("Add Email Template")]),e.editTemplateBtn?t("button",{staticClass:"bg-background-secondary inline-block text-white py-2 px-4 mr-4 mt-4",on:{click:function(t){return e.editTemplate()}}},[e._v("Edit Template")]):e._e()],1)]),t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded mb-4 text-over"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.emailTemplates,(function(a){return t("tr",{key:a.template_name,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.templateCheck,expression:"templateCheck"}],attrs:{type:"checkbox",id:a.template_name},domProps:{value:a.template_name,checked:Array.isArray(e.templateCheck)?e._i(e.templateCheck,a.template_name)>-1:e.templateCheck},on:{change:[function(t){var n=e.templateCheck,s=t.target,l=!!s.checked;if(Array.isArray(n)){var r=a.template_name,i=e._i(n,r);s.checked?i<0&&(e.templateCheck=n.concat([r])):i>-1&&(e.templateCheck=n.slice(0,i).concat(n.slice(i+1)))}else e.templateCheck=l},function(t){return e.showTemplateEditBtn(t,a.template_name)}],click:e.checkOne}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.template_name))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.subject))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.content))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.modified_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.modified_by))])])})),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...")])])])},s=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full flex justify-between"},[t("div",{staticClass:"w-full text-center text-3xl text-background-secondary"},[e._v("Email Template Management")])])},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"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Template Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Template Subject")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Content")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Modified Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Modified By")])])])}],l=(a(7658),a(7203)),r=a(5279),i=a(1232),o=a(1602),c=a.n(o),u=a(6545),d=(0,l.defineComponent)({name:"EmailTemplateManagement",components:{},setup(){const e=(0,l.ref)(),t=(0,l.ref)(),a=(0,l.ref)(!1),n=(0,l.ref)([]),s=(0,l.ref)(!1),o=(0,l.ref)(!1),d=(0,l.ref)(""),m=(0,l.ref)([]),p=()=>{m.value=[]},f=async()=>{s.value=!1;try{const e=await(0,i.a)("/email/templates/all");n.value=e.data.body.Items,n.value.map((e=>(e.created_date=c()(e.created_date).format("DD-MM-YYYY hh:mm:ss"),e.modified_date=c()(e.modified_date).format("DD-MM-YYYY hh:mm:ss"),e))),s.value=!0}catch(e){const t=e;console.log(t.response)}},v=async(e,t)=>{!0===e.target.checked?(o.value=!0,d.value=t):(o.value=!1,d.value="")},g=async()=>{console.log("template editing",d.value);const e={template:d.value,is_new:"false"};u.Z.push({name:"SolidifyAdministrationEmailTemplateDetails",query:e})};return(0,l.onBeforeMount)((async()=>{const n=await(0,r.GF)("/getUserRole");e.value=n.user_key,t.value=n.user_roles,t.value.length>0&&(t.value.includes("System Admin")?(a.value=!0,await f()):a.value=!1)})),{loggedInUser:e,userRole:t,showScreen:a,emailTemplates:n,renderReady:s,showTemplateEditBtn:v,editTemplateBtn:o,editTemplate:g,templateCheck:m,checkOne:p}}}),m=d,p=a(3736),f=(0,p.Z)(m,n,s,!1,null,"57434bbe",null),v=f.exports},5279:function(e,t,a){a.d(t,{$d:function(){return s},$i:function(){return C},Ao:function(){return g},DU:function(){return f},EX:function(){return j},F5:function(){return A},FS:function(){return m},GF:function(){return M},Iu:function(){return r},J1:function(){return _},Jf:function(){return x},Kk:function(){return w},N9:function(){return P},P8:function(){return u},VP:function(){return y},Vz:function(){return k},WX:function(){return p},X$:function(){return b},XP:function(){return l},Yb:function(){return T},a4:function(){return S},dH:function(){return h},gh:function(){return v},nb:function(){return o},oA:function(){return Z},r4:function(){return d},sd:function(){return c},wp:function(){return i},xJ:function(){return E}});var n=a(7129);const s=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},l=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},r=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},i=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},o=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},c=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},u=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},d=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},m=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},p=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},f=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},v=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},g=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data.userObj,t))),t},w=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data.userObj,t))),t},y=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data.userObj,t))),t},x=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},b=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},h=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},_=async e=>{const t=await n.Z.get(e);return t},C=async e=>{const t=await n.Z.get(e);return t},k=async e=>{const t=await n.Z.get(e);return t},Z=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},T=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data,t))),t},M=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data.userObj,t))),t},P=async e=>{const t=await n.Z.post("/user/role",e);return t},S=async e=>{const t=await n.Z.post("/user/removeRole",e);return t},E=async()=>{const e=await n.Z.get("role");return e},j=async e=>{const t=await n.Z.post("/user/saveLSS",e);return t},A=async e=>{const t=await n.Z.post("/user/saveEnvAccess",e);return t}},539:function(e,t,a){a.d(t,{p:function(){return s},u:function(){return l}});var n=a(7129);const s=async e=>{let t;return await n.Z.get(e).then((e=>(t=e.data.sys_settings,t))),t},l=async(e,t)=>{try{let a;return await n.Z.post(e,t).then((e=>(a=e.data,a))),a}catch(a){console.log(a)}}}}]);
2
2
  //# sourceMappingURL=solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js.map
@@ -1,2 +1,2 @@
1
- "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[758],{9547:function(t,e,a){a.r(e),a.d(e,{default:function(){return g}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"admin"},[t.showScreen?e("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[t._m(0),e("div",{staticClass:"w-full mt-4"},[e("div",{staticClass:"flex w-full mt-6"},[t.searchBtn?e("div",{staticClass:"w-full pr-3 mb-4"},[e("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[t._v(" Program ")]),e("input",{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",attrs:{type:"text",disabled:""},domProps:{value:t.programName}})]):t._e(),t.showSkillProf?e("div",{staticClass:"w-full pr-3 mb-4"},[e("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[t._v(" Skill ")]),e("input",{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",attrs:{type:"text",disabled:""},domProps:{value:t.skillName}})]):t._e(),t.showSkillProf?e("div",{staticClass:"w-full pr-3 mb-4"},[e("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[t._v(" Proficiency ")]),e("input",{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",attrs:{type:"text",disabled:""},domProps:{value:t.profName}})]):t._e()]),e("div",{staticClass:"flex w-full"},[e("div",{staticClass:"w-full pr-3 mb-4"},[t.archiveBtn?e("button",{directives:[{name:"show",rawName:"v-show",value:t.taskBtn,expression:"taskBtn"}],staticClass:"mt-2 mr-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(e){return t.createOffCycle()}}},[t._v("Create Off-Cycle")]):t._e()])]),t.newTaskDetails?e("div",{staticClass:"w-full mb-2 h-50 tableScroll"},[e("table",{staticClass:"w-full text-md bg-white shadow rounded mb-1 tableScroll"},[t._m(1),e("tbody",{staticClass:"opacity-80 align-bottom"},t._l(t.newTaskDetails,(function(a){return e("tr",{key:a.task_id,staticClass:"border-b hover:bg-gray-300"},[e("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.taskCheckOne,expression:"taskCheckOne"}],attrs:{type:"checkbox",id:a.task_id},domProps:{value:a.task_id,checked:Array.isArray(t.taskCheckOne)?t._i(t.taskCheckOne,a.task_id)>-1:t.taskCheckOne},on:{change:[function(e){var n=t.taskCheckOne,r=e.target,s=!!r.checked;if(Array.isArray(n)){var l=a.task_id,i=t._i(n,l);r.checked?i<0&&(t.taskCheckOne=n.concat([l])):i>-1&&(t.taskCheckOne=n.slice(0,i).concat(n.slice(i+1)))}else t.taskCheckOne=s},function(e){return t.showTaskBtn(e,a.task_id,a.is_archive)}],click:t.taskcheckedOne}})]),e("td",{staticClass:"p-2 px-3",attrs:{title:a.task_name}},[t._v(t._s(a.task_name))]),e("td",{staticClass:"p-2 px-3",attrs:{title:a.is_archive}},[t._v(t._s(a.is_archive))]),e("td",{staticClass:"p-2 px-3",attrs:{title:a.task_type}},[t._v(t._s(a.task_type))])])})),0)])]):t._e(),t.searchBtn?e("div",{staticClass:"w-full text-center mb-4"},[e("router-link",{staticClass:"inline-block mt-8 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md",attrs:{to:{name:"SolidifyAdministrationOffcycleDashboard"}}},[t._v("Back")])],1):t._e()]),t.renderReady?t._e():e("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[e("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),e("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[t._v("Loading...")])])]):e("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[t._v("You don't have access")])])},r=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"w-full flex justify-between"},[e("div",{staticClass:"w-full text-center text-3xl text-background-secondary"},[t._v("Create Offcycle(Select Task)")])])},function(){var t=this,e=t._self._c;t._self._setupProxy;return e("thead",{staticClass:"opacity-90"},[e("tr",{staticClass:"border-b"},[e("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),e("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[t._v("Task Name")]),e("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[t._v("Is Archive")]),e("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[t._v("Learner Type")])])])}],s=(a(7658),a(7203)),l=a(9649),i=a(1548),c=a(5279),o=a(8709),u=(0,s.defineComponent)({name:"OffcycleManagement",props:{query:{type:Object,default:()=>({})}},setup(t){const e=(0,s.ref)(),a=(0,s.ref)(!0),n=(0,s.ref)(),r=(0,s.ref)([]),u=(0,s.ref)(t.query.Program_id),d=(0,s.ref)(),f=(0,s.ref)(),p=(0,s.ref)(),g=(0,s.ref)(!0),y=(0,s.ref)(),v=(0,s.ref)(),m=(0,s.ref)(!1),k=(0,s.ref)(),h=(0,s.ref)(),w=(0,s.ref)(),_=(0,s.ref)(t.query.skill_id);console.log("selectedSkill",_);const b=(0,s.ref)(t.query.proficiency_id),x=(0,s.ref)(!1),C=(0,s.ref)(!1),Z=(0,s.ref)(),S=(0,s.ref)(),O=(0,s.ref)(),N=(0,s.ref)(),P={},A=()=>{r.value=[]},I=(t,e,a)=>{const n=t.target.checked;!0===n?(f.value=e,d.value=!0,!0===a?(m.value=!1,k.value=!0):(m.value=!0,k.value=!1)):(d.value=!1,m.value=!1,k.value=!1)},$=async()=>{a.value=!1,Object.assign(P,{program_id:u.value}),Object.assign(P,{skill_id:_.value}),Object.assign(P,{proficiency_id:b.value}),console.log("taskdata",P),n.value=await(0,l.VA)("/getAllTaskByProgram",P),a.value=!0},T=async()=>{a.value=!1,e.value=await(0,l.dr)("/cache?cache=program");const t=e.value.find((t=>t.program_id===u.value));S.value=t.program_display_name?t.program_display_name:t.program_name,a.value=!0},R=async()=>{a.value=!1;const t=await(0,o.QZ)("/getAllSkillProf?skill_type=genome");h.value=t.skill,w.value=t.proficiency,Z.value=h.value.find((t=>t.skill_id===_.value)).skill_alias,O.value=w.value.find((t=>t.prof_id===b.value)).prof_name,a.value=!0},B=()=>{const t=e.value.find((t=>t.program_id===u.value));console.log(`programDetail ${JSON.stringify(t)}`);const a=n.value.find((t=>t.task_id===f.value));if(console.log(`taskDetail ${JSON.stringify(a)}`),console.log("programId",u.value),console.log("programName",t.program_name),console.log("linkedTaskId",f.value),console.log("taskName",a.task_name),console.log("taskType",a.task_type),localStorage.setItem("programId",u.value),localStorage.setItem("programName",t.program_name),localStorage.setItem("linkedTaskId",f.value),"infinity"===u.value){localStorage.setItem("skillId",_.value);const t=h.value.find((t=>t.skill_id===_.value));console.log(`skillDetail ${JSON.stringify(t)}`),localStorage.setItem("skillName",t.skill_alias);const e=w.value.find((t=>t.prof_id===b.value));console.log(`profDetail ${JSON.stringify(e)}`),localStorage.setItem("proficiencyId",b.value),localStorage.setItem("proficiencyName",e.prof_name),console.log("skill",_.value),console.log("skill Name",t.skill_alias),console.log("proficiency",b.value),console.log("prof Name",e.prof_name)}localStorage.setItem("taskName",a.task_name),localStorage.setItem("taskType",a.task_type),i.Z.push({name:"SolidifyAdministrationCreateOffCycle"})};return(0,s.onBeforeMount)((async()=>{const t=await(0,c.GF)("/getUserRole");p.value=t.user_roles,p.value.length>0&&(p.value.includes("System Admin")||p.value.includes("System Admin View Access")||p.value.includes("Community Manager")||p.value.includes("Program Admin")?g.value=!0:g.value=!1),await T(),await $(),N.value=n.value.filter((t=>!1===t.is_archive)),C.value=!0,"infinity"===u.value?(await R(),x.value=!0):x.value=!1})),{renderReady:a,programDetails:e,taskDetails:n,newTaskDetails:N,taskCheckOne:r,taskcheckedOne:A,checkedTaskId:f,showTaskBtn:I,taskBtn:d,showScreen:g,selectedProgram:u,errorMessage:y,successMessage:v,archiveBtn:m,unArchiveBtn:k,getTaskDetails:$,skills:h,proficiency:w,showSkillProf:x,searchBtn:C,createOffCycle:B,selectedSkill:_,selectedProficiency:b,skillName:Z,profName:O,programName:S}}}),d=u,f=a(3736),p=(0,f.Z)(d,n,r,!1,null,"677b6451",null),g=p.exports},8943:function(t,e,a){a.r(e),a.d(e,{default:function(){return f}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"admin"},[t.showScreen?e("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[t._m(0),e("div",{staticClass:"w-full mt-4"},[e("div",{staticClass:"max-w-6xl m-auto shadow p-4 text-background-secondary"},[e("div",{staticClass:"flex w-full mt-6"},[e("div",{staticClass:"w-full mb-4"},[e("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(e){return t.triggerReviewerReport()}}},[t._v("Trigger Need Reviewer Report")])])]),t.successMessage?e("div",{staticClass:"text-green-700"},[t._v(t._s(t.successMessage))]):t._e()])])]):e("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[t._v("You don't have access")])])},r=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"w-full"},[e("div",{staticClass:"text-center text-3xl text-background-secondary"},[t._v("Need Reviewer Report")])])}],s=a(7203),l=a(5279),i=a(9178),c=(0,s.defineComponent)({name:"ReviewerReport",setup(){const t=(0,s.ref)(),e=(0,s.ref)(),a=(0,s.ref)(),n=(0,s.ref)(!0),r=async()=>{await(0,i.S$)("/admin/report/NR"),a.value="The report is being processed. You should get that over email in next 15 minutes",setTimeout((()=>{a.value=null}),6e3)};return(0,s.onBeforeMount)((async()=>{const e=await(0,l.GF)("/getUserRole");t.value=e.user_roles,t.value.length>0&&(console.log("inside length"),t.value.includes("System Admin")||t.value.includes("Proxy Admin")||t.value.includes("Community Manager")?n.value=!0:n.value=!1)})),{showScreen:n,triggerReviewerReport:r,errorMessage:e,successMessage:a}}}),o=c,u=a(3736),d=(0,u.Z)(o,n,r,!1,null,"11a710d6",null),f=d.exports},8709:function(t,e,a){a.d(e,{G7:function(){return r},Nl:function(){return l},QZ:function(){return s},kn:function(){return i}});var n=a(7129);const r=async(t,e)=>{const a=await n.Z.post(t,e);return a},s=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},l=async(t,e)=>{let a;return await n.Z.get(`${t}/${e}`).then((t=>(a=t.data.allProxyList,a))),a},i=async(t,e)=>{const a=await n.Z.post(t,e);return a}},9178:function(t,e,a){a.d(e,{I$:function(){return s},N0:function(){return i},QZ:function(){return r},S$:function(){return l},WK:function(){return c}});var n=a(7129);const r=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},s=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data,a))),a},l=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},i=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},c=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e}},5279:function(t,e,a){a.d(e,{$d:function(){return r},$i:function(){return x},Ao:function(){return v},DU:function(){return g},EX:function(){return I},F5:function(){return $},FS:function(){return f},GF:function(){return O},Iu:function(){return l},J1:function(){return b},Jf:function(){return h},Kk:function(){return m},N9:function(){return N},P8:function(){return u},VP:function(){return k},Vz:function(){return C},WX:function(){return p},X$:function(){return w},XP:function(){return s},Yb:function(){return S},a4:function(){return P},dH:function(){return _},gh:function(){return y},nb:function(){return c},oA:function(){return Z},r4:function(){return d},sd:function(){return o},wp:function(){return i},xJ:function(){return A}});var n=a(7129);const r=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},s=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},l=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},i=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},c=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},o=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},u=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},d=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},f=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},p=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},g=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},y=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},v=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data.userObj,e))),e},m=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data.userObj,e))),e},k=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data.userObj,e))),e},h=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},w=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},_=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},b=async t=>{const e=await n.Z.get(t);return e},x=async t=>{const e=await n.Z.get(t);return e},C=async t=>{const e=await n.Z.get(t);return e},Z=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},S=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},O=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data.userObj,e))),e},N=async t=>{const e=await n.Z.post("/user/role",t);return e},P=async t=>{const e=await n.Z.post("/user/removeRole",t);return e},A=async()=>{const t=await n.Z.get("role");return t},I=async t=>{const e=await n.Z.post("/user/saveLSS",t);return e},$=async t=>{const e=await n.Z.post("/user/saveEnvAccess",t);return e}},9649:function(t,e,a){a.d(e,{$M:function(){return d},F9:function(){return p},HX:function(){return i},V$:function(){return c},VA:function(){return s},dr:function(){return r},gs:function(){return g},jz:function(){return f},q$:function(){return u},rP:function(){return l},yW:function(){return o}});var n=a(7129);const r=async t=>{let e;return await n.Z.get(t).then((t=>(console.log("Response",t),e=t.data.response.program_name,e))),e},s=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data.tasks,a))),a},l=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data.learnerDetails,a))),a},i=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data.tasks,a))),a},c=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data,a))),a},o=async t=>{let e;try{return await n.Z.get(`/task/${t}`).then((t=>(e=t.data.data,e))),e}catch(a){return a}},u=async(t,e)=>{try{const a=await fetch(`${t}`,{method:"put",body:e}),n=a;return n}catch(a){return console.error(a),a}},d=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data.tasks,a))),a},f=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data.tasks,a))),a},p=async t=>{console.log(`inside save task data ${JSON.stringify(t)}`);const e=await n.Z.post("/task/create",t);return e},g=async t=>{try{let e;return await n.Z.get(`/admin/task/taskExport/${t}`).then((async t=>(e=t.data,e))),e}catch(e){return e}}}}]);
1
+ "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[758],{9547:function(t,e,a){a.r(e),a.d(e,{default:function(){return g}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"admin"},[t.showScreen?e("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[t._m(0),e("div",{staticClass:"w-full mt-4"},[e("div",{staticClass:"flex w-full mt-6"},[t.searchBtn?e("div",{staticClass:"w-full pr-3 mb-4"},[e("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[t._v(" Program ")]),e("input",{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",attrs:{type:"text",disabled:""},domProps:{value:t.programName}})]):t._e(),t.showSkillProf?e("div",{staticClass:"w-full pr-3 mb-4"},[e("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[t._v(" Skill ")]),e("input",{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",attrs:{type:"text",disabled:""},domProps:{value:t.skillName}})]):t._e(),t.showSkillProf?e("div",{staticClass:"w-full pr-3 mb-4"},[e("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[t._v(" Proficiency ")]),e("input",{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",attrs:{type:"text",disabled:""},domProps:{value:t.profName}})]):t._e()]),e("div",{staticClass:"flex w-full"},[e("div",{staticClass:"w-full pr-3 mb-4"},[t.archiveBtn?e("button",{directives:[{name:"show",rawName:"v-show",value:t.taskBtn,expression:"taskBtn"}],staticClass:"mt-2 mr-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(e){return t.createOffCycle()}}},[t._v("Create Off-Cycle")]):t._e()])]),t.newTaskDetails?e("div",{staticClass:"w-full mb-2 h-50 tableScroll"},[e("table",{staticClass:"w-full text-md bg-white shadow rounded mb-1 tableScroll"},[t._m(1),e("tbody",{staticClass:"opacity-80 align-bottom"},t._l(t.newTaskDetails,(function(a){return e("tr",{key:a.task_id,staticClass:"border-b hover:bg-gray-300"},[e("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.taskCheckOne,expression:"taskCheckOne"}],attrs:{type:"checkbox",id:a.task_id},domProps:{value:a.task_id,checked:Array.isArray(t.taskCheckOne)?t._i(t.taskCheckOne,a.task_id)>-1:t.taskCheckOne},on:{change:[function(e){var n=t.taskCheckOne,r=e.target,s=!!r.checked;if(Array.isArray(n)){var l=a.task_id,i=t._i(n,l);r.checked?i<0&&(t.taskCheckOne=n.concat([l])):i>-1&&(t.taskCheckOne=n.slice(0,i).concat(n.slice(i+1)))}else t.taskCheckOne=s},function(e){return t.showTaskBtn(e,a.task_id,a.is_archive)}],click:t.taskcheckedOne}})]),e("td",{staticClass:"p-2 px-3",attrs:{title:a.task_name}},[t._v(t._s(a.task_name))]),e("td",{staticClass:"p-2 px-3",attrs:{title:a.is_archive}},[t._v(t._s(a.is_archive))]),e("td",{staticClass:"p-2 px-3",attrs:{title:a.task_type}},[t._v(t._s(a.task_type))])])})),0)])]):t._e(),t.searchBtn?e("div",{staticClass:"w-full text-center mb-4"},[e("router-link",{staticClass:"inline-block mt-8 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md",attrs:{to:{name:"SolidifyAdministrationOffcycleDashboard"}}},[t._v("Back")])],1):t._e()]),t.renderReady?t._e():e("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[e("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),e("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[t._v("Loading...")])])]):e("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[t._v("You don't have access")])])},r=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"w-full flex justify-between"},[e("div",{staticClass:"w-full text-center text-3xl text-background-secondary"},[t._v("Create Offcycle(Select Task)")])])},function(){var t=this,e=t._self._c;t._self._setupProxy;return e("thead",{staticClass:"opacity-90"},[e("tr",{staticClass:"border-b"},[e("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),e("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[t._v("Task Name")]),e("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[t._v("Is Archive")]),e("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[t._v("Learner Type")])])])}],s=(a(7658),a(7203)),l=a(9649),i=a(6545),c=a(5279),o=a(8709),u=(0,s.defineComponent)({name:"OffcycleManagement",props:{query:{type:Object,default:()=>({})}},setup(t){const e=(0,s.ref)(),a=(0,s.ref)(!0),n=(0,s.ref)(),r=(0,s.ref)([]),u=(0,s.ref)(t.query.Program_id),d=(0,s.ref)(),f=(0,s.ref)(),p=(0,s.ref)(),g=(0,s.ref)(!0),y=(0,s.ref)(),v=(0,s.ref)(),m=(0,s.ref)(!1),k=(0,s.ref)(),h=(0,s.ref)(),w=(0,s.ref)(),_=(0,s.ref)(t.query.skill_id);console.log("selectedSkill",_);const b=(0,s.ref)(t.query.proficiency_id),x=(0,s.ref)(!1),C=(0,s.ref)(!1),Z=(0,s.ref)(),S=(0,s.ref)(),O=(0,s.ref)(),N=(0,s.ref)(),P={},A=()=>{r.value=[]},I=(t,e,a)=>{const n=t.target.checked;!0===n?(f.value=e,d.value=!0,!0===a?(m.value=!1,k.value=!0):(m.value=!0,k.value=!1)):(d.value=!1,m.value=!1,k.value=!1)},$=async()=>{a.value=!1,Object.assign(P,{program_id:u.value}),Object.assign(P,{skill_id:_.value}),Object.assign(P,{proficiency_id:b.value}),console.log("taskdata",P),n.value=await(0,l.VA)("/getAllTaskByProgram",P),a.value=!0},T=async()=>{a.value=!1,e.value=await(0,l.dr)("/cache?cache=program");const t=e.value.find((t=>t.program_id===u.value));S.value=t.program_display_name?t.program_display_name:t.program_name,a.value=!0},R=async()=>{a.value=!1;const t=await(0,o.QZ)("/getAllSkillProf?skill_type=genome");h.value=t.skill,w.value=t.proficiency,Z.value=h.value.find((t=>t.skill_id===_.value)).skill_alias,O.value=w.value.find((t=>t.prof_id===b.value)).prof_name,a.value=!0},B=()=>{const t=e.value.find((t=>t.program_id===u.value));console.log(`programDetail ${JSON.stringify(t)}`);const a=n.value.find((t=>t.task_id===f.value));if(console.log(`taskDetail ${JSON.stringify(a)}`),console.log("programId",u.value),console.log("programName",t.program_name),console.log("linkedTaskId",f.value),console.log("taskName",a.task_name),console.log("taskType",a.task_type),localStorage.setItem("programId",u.value),localStorage.setItem("programName",t.program_name),localStorage.setItem("linkedTaskId",f.value),"infinity"===u.value){localStorage.setItem("skillId",_.value);const t=h.value.find((t=>t.skill_id===_.value));console.log(`skillDetail ${JSON.stringify(t)}`),localStorage.setItem("skillName",t.skill_alias);const e=w.value.find((t=>t.prof_id===b.value));console.log(`profDetail ${JSON.stringify(e)}`),localStorage.setItem("proficiencyId",b.value),localStorage.setItem("proficiencyName",e.prof_name),console.log("skill",_.value),console.log("skill Name",t.skill_alias),console.log("proficiency",b.value),console.log("prof Name",e.prof_name)}localStorage.setItem("taskName",a.task_name),localStorage.setItem("taskType",a.task_type),i.Z.push({name:"SolidifyAdministrationCreateOffCycle"})};return(0,s.onBeforeMount)((async()=>{const t=await(0,c.GF)("/getUserRole");p.value=t.user_roles,p.value.length>0&&(p.value.includes("System Admin")||p.value.includes("System Admin View Access")||p.value.includes("Community Manager")||p.value.includes("Program Admin")?g.value=!0:g.value=!1),await T(),await $(),N.value=n.value.filter((t=>!1===t.is_archive)),C.value=!0,"infinity"===u.value?(await R(),x.value=!0):x.value=!1})),{renderReady:a,programDetails:e,taskDetails:n,newTaskDetails:N,taskCheckOne:r,taskcheckedOne:A,checkedTaskId:f,showTaskBtn:I,taskBtn:d,showScreen:g,selectedProgram:u,errorMessage:y,successMessage:v,archiveBtn:m,unArchiveBtn:k,getTaskDetails:$,skills:h,proficiency:w,showSkillProf:x,searchBtn:C,createOffCycle:B,selectedSkill:_,selectedProficiency:b,skillName:Z,profName:O,programName:S}}}),d=u,f=a(3736),p=(0,f.Z)(d,n,r,!1,null,"677b6451",null),g=p.exports},8943:function(t,e,a){a.r(e),a.d(e,{default:function(){return f}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"admin"},[t.showScreen?e("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[t._m(0),e("div",{staticClass:"w-full mt-4"},[e("div",{staticClass:"max-w-6xl m-auto shadow p-4 text-background-secondary"},[e("div",{staticClass:"flex w-full mt-6"},[e("div",{staticClass:"w-full mb-4"},[e("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(e){return t.triggerReviewerReport()}}},[t._v("Trigger Need Reviewer Report")])])]),t.successMessage?e("div",{staticClass:"text-green-700"},[t._v(t._s(t.successMessage))]):t._e()])])]):e("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[t._v("You don't have access")])])},r=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"w-full"},[e("div",{staticClass:"text-center text-3xl text-background-secondary"},[t._v("Need Reviewer Report")])])}],s=a(7203),l=a(5279),i=a(9178),c=(0,s.defineComponent)({name:"ReviewerReport",setup(){const t=(0,s.ref)(),e=(0,s.ref)(),a=(0,s.ref)(),n=(0,s.ref)(!0),r=async()=>{await(0,i.S$)("/admin/report/NR"),a.value="The report is being processed. You should get that over email in next 15 minutes",setTimeout((()=>{a.value=null}),6e3)};return(0,s.onBeforeMount)((async()=>{const e=await(0,l.GF)("/getUserRole");t.value=e.user_roles,t.value.length>0&&(console.log("inside length"),t.value.includes("System Admin")||t.value.includes("Proxy Admin")||t.value.includes("Community Manager")?n.value=!0:n.value=!1)})),{showScreen:n,triggerReviewerReport:r,errorMessage:e,successMessage:a}}}),o=c,u=a(3736),d=(0,u.Z)(o,n,r,!1,null,"11a710d6",null),f=d.exports},8709:function(t,e,a){a.d(e,{G7:function(){return r},Nl:function(){return l},QZ:function(){return s},kn:function(){return i}});var n=a(7129);const r=async(t,e)=>{const a=await n.Z.post(t,e);return a},s=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},l=async(t,e)=>{let a;return await n.Z.get(`${t}/${e}`).then((t=>(a=t.data.allProxyList,a))),a},i=async(t,e)=>{const a=await n.Z.post(t,e);return a}},9178:function(t,e,a){a.d(e,{I$:function(){return s},N0:function(){return i},QZ:function(){return r},S$:function(){return l},WK:function(){return c}});var n=a(7129);const r=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},s=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data,a))),a},l=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},i=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},c=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e}},5279:function(t,e,a){a.d(e,{$d:function(){return r},$i:function(){return x},Ao:function(){return v},DU:function(){return g},EX:function(){return I},F5:function(){return $},FS:function(){return f},GF:function(){return O},Iu:function(){return l},J1:function(){return b},Jf:function(){return h},Kk:function(){return m},N9:function(){return N},P8:function(){return u},VP:function(){return k},Vz:function(){return C},WX:function(){return p},X$:function(){return w},XP:function(){return s},Yb:function(){return S},a4:function(){return P},dH:function(){return _},gh:function(){return y},nb:function(){return c},oA:function(){return Z},r4:function(){return d},sd:function(){return o},wp:function(){return i},xJ:function(){return A}});var n=a(7129);const r=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},s=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},l=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},i=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},c=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},o=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},u=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},d=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},f=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},p=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},g=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},y=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},v=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data.userObj,e))),e},m=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data.userObj,e))),e},k=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data.userObj,e))),e},h=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},w=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},_=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},b=async t=>{const e=await n.Z.get(t);return e},x=async t=>{const e=await n.Z.get(t);return e},C=async t=>{const e=await n.Z.get(t);return e},Z=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},S=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data,e))),e},O=async t=>{let e;return await n.Z.get(t).then((t=>(e=t.data.userObj,e))),e},N=async t=>{const e=await n.Z.post("/user/role",t);return e},P=async t=>{const e=await n.Z.post("/user/removeRole",t);return e},A=async()=>{const t=await n.Z.get("role");return t},I=async t=>{const e=await n.Z.post("/user/saveLSS",t);return e},$=async t=>{const e=await n.Z.post("/user/saveEnvAccess",t);return e}},9649:function(t,e,a){a.d(e,{$M:function(){return d},F9:function(){return p},HX:function(){return i},V$:function(){return c},VA:function(){return s},dr:function(){return r},gs:function(){return g},jz:function(){return f},q$:function(){return u},rP:function(){return l},yW:function(){return o}});var n=a(7129);const r=async t=>{let e;return await n.Z.get(t).then((t=>(console.log("Response",t),e=t.data.response.program_name,e))),e},s=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data.tasks,a))),a},l=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data.learnerDetails,a))),a},i=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data.tasks,a))),a},c=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data,a))),a},o=async t=>{let e;try{return await n.Z.get(`/task/${t}`).then((t=>(e=t.data.data,e))),e}catch(a){return a}},u=async(t,e)=>{try{const a=await fetch(`${t}`,{method:"put",body:e}),n=a;return n}catch(a){return console.error(a),a}},d=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data.tasks,a))),a},f=async(t,e)=>{let a;return await n.Z.post(t,e).then((t=>(a=t.data.tasks,a))),a},p=async t=>{console.log(`inside save task data ${JSON.stringify(t)}`);const e=await n.Z.post("/task/create",t);return e},g=async t=>{try{let e;return await n.Z.get(`/admin/task/taskExport/${t}`).then((async t=>(e=t.data,e))),e}catch(e){return e}}}}]);
2
2
  //# sourceMappingURL=solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js.map
@@ -1,2 +1,2 @@
1
- "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[670],{2913:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.userRole?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:"flex w-full mt-6"},[t("div",{staticClass:"w-1/2 pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Program ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedProgram,expression:"selectedProgram"}],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.selectedProgram=t.target.multiple?a:a[0]},function(t){return e.getSelectedProgram(t)}]}},[t("option",[e._v("Select Program")]),e._l(e.programDetails,(function(a){return t("option",{key:a.program_id,domProps:{value:a.program_id}},[e._v(e._s(a.program_display_name?a.program_display_name:a.program_name))])}))],2)]),e.showSkillProf?t("div",{staticClass:"w-1/2 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),e.skillErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.skillErrorMessage))]):e._e()]):e._e(),e.showSkillProf?t("div",{staticClass:"w-1/2 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),e.proficiencyError?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.proficiencyError))]):e._e()]):e._e(),e.searchBtn?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 mr-2",on:{click:function(t){return e.searchTask()}}},[e._v("Search")]),t("button",{staticClass:"mt-2 mr-4 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.exportOffcycle()}}},[e._v("Export")])]):e._e()]),e.successMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.successMessage))]):e._e(),e.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),t("div",{staticClass:"flex w-full mt-6"},[e.searchBtn?t("div",{staticClass:"pr-3 mb-4 w-full"},[t("button",{staticClass:"mt-2 mr-4 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.createOffcycle()}}},[e._v("Create Offcycle")]),e.showIsOffcycleActive&&e.showInactiveButton?t("button",{staticClass:"mt-2 mr-4 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.filterTaskDetails(!1)}}},[e._v("Show Inactive Offcycles")]):e._e(),!e.showIsOffcycleActive&&e.showInactiveButton?t("button",{staticClass:"mt-2 mr-4 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.filterTaskDetails(!0)}}},[e._v("Show Active Offcycles")]):e._e(),t("button",{directives:[{name:"show",rawName:"v-show",value:e.offCycleDetailsBtnShow,expression:"offCycleDetailsBtnShow"}],staticClass:"mt-2 mr-4 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.viewOffCycleDetails()}}},[e._v("View Details")])]):e._e()]),e.taskDetails?t("div",{staticClass:"w-full mb-8 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded mb-4 tableScroll"},[e._m(1),t("tbody",{staticClass:"opacity-80 align-bottom"},e._l(e.newTaskDetails,(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.taskCheckOne,expression:"taskCheckOne"}],attrs:{type:"checkbox",id:a.learner_task_id},domProps:{value:a.learner_task_id,checked:Array.isArray(e.taskCheckOne)?e._i(e.taskCheckOne,a.learner_task_id)>-1:e.taskCheckOne},on:{click:e.taskcheckedOne,change:[function(t){var r=e.taskCheckOne,l=t.target,n=!!l.checked;if(Array.isArray(r)){var s=a.learner_task_id,c=e._i(r,s);l.checked?c<0&&(e.taskCheckOne=r.concat([s])):c>-1&&(e.taskCheckOne=r.slice(0,c).concat(r.slice(c+1)))}else e.taskCheckOne=n},function(t){return e.showTaskBtn(t,a.learner_task_id,a.is_offcycle_active,a.linked_task_id)}]}})]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.taskName}},[e._v(e._s(a.taskName))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.is_archive}},[e._v(e._s(a.is_archive))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.is_offcycle_active}},[e._v(e._s(1==a.is_offcycle_active))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.task_type}},[e._v(e._s(a.task_type))])])})),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")])]):e._e()},l=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full flex justify-between"},[t("div",{staticClass:"w-full text-center text-3xl text-background-secondary"},[e._v("Offcycle Dashboard")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90"},[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("Task Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Task IsArchive")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Is Offcycle Active")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Task type")])])])}],n=(a(7658),a(7203)),s=a(9649),c=a(5279),o=a(8709),i=a(1548),u=a(9955),f=a(7129),d=(0,n.defineComponent)({name:"OffcycleDashboard",components:{},setup(){const e=(0,n.ref)(),t=(0,n.ref)(!0),a=(0,n.ref)(),r=(0,n.ref)(),l=(0,n.ref)(!0),d=(0,n.ref)([]),v=(0,n.ref)("Select Program"),g=(0,n.ref)(),y=(0,n.ref)(),m=(0,n.ref)(),p=(0,n.ref)(!0),k=(0,n.ref)(),h=(0,n.ref)(),_=(0,n.ref)(),w=(0,n.ref)(),b=(0,n.ref)("Select Skill"),S=(0,n.ref)("Select Proficiency"),x=(0,n.ref)(!1),C=(0,n.ref)(!1),P=(0,n.ref)(!1);let Z={};const O=(0,n.ref)(),I=(0,n.ref)(),A=(0,n.ref)(!1),T=()=>{d.value=[]},D=(e,t,a,r)=>{const l=e.target.checked;!0===l?(g.value=t,y.value=r,A.value=!0,console.log("isOffCycleActive",a)):A.value=!1},N=async e=>{r.value=e?a.value.filter((e=>1===Number(e.is_offcycle_active))):a.value.filter((e=>1!==Number(e.is_offcycle_active))),l.value=e},j=async()=>{t.value=!1,a.value=await(0,s.rP)("/getAllOffcycleByProgram",Z),await N(!0),console.log("taskDetails.value ",a.value),t.value=!0},$=async()=>{try{const e={};"Select Program"!==v.value&&(Object.assign(e,{program_id:v.value}),"Select Skill"!==b.value&&(Object.assign(e,{skill_id:b.value}),"Select Proficiency"!==S.value&&Object.assign(e,{proficiency_id:S.value}))),await(0,u.Yg)("/offcycle/fetch?action=report",e),h.value="The report is being processed. You should get that over email in next 15 minutes",setTimeout((()=>{h.value=null}),6e3)}catch(e){if(f.Z.isAxiosError(e)){const a=e;console.log("err.response?.data",a.response?.data),t.value=!0,k.value=a.response?.data?.message,console.log(`errorMessage.value ${k.value}`),setTimeout((()=>{k.value=null}),6e3)}}},B=async()=>{if(P.value=!0,Z={},"Select Program"!==v.value){if(Object.assign(Z,{program_id:v.value}),console.log("task data",Z),"Select Skill"!==b.value&&(Object.assign(Z,{skill_id:b.value}),console.log("task data",Z),"Select Proficiency"!==S.value&&(Object.assign(Z,{proficiency_id:S.value}),console.log("task data",Z))),"infinity"===v.value){if("Select Skill"===b.value)return O.value="Please Select Skill",void setTimeout((()=>{O.value=null}),6e3);if("Select Proficiency"===S.value)return I.value="Please Select Proficiency",void setTimeout((()=>{I.value=null}),6e3)}await j()}else a.value={},r.value={},P.value=!1},M=async e=>{t.value=!1,localStorage.setItem("program",e.target.value),localStorage.removeItem("skill"),localStorage.removeItem("proficiency"),v.value=e.target.value,"Select Program"!==v.value?(C.value=!0,"infinity"===v.value?(b.value="Select Skill",S.value="Select Proficiency",x.value=!0):(x.value=!1,b.value="",S.value="")):(localStorage.setItem("program","Select Program"),P.value=!1,x.value=!1),t.value=!0},E=async e=>{localStorage.setItem("skill",e.target.value),b.value=e.target.value,"Select Skill"===b.value&&localStorage.removeItem("skill")},R=async e=>{localStorage.setItem("proficiency",e.target.value),S.value=e.target.value,"Select Proficiency"===S.value&&localStorage.removeItem("proficiency")},V=async()=>{t.value=!1,e.value=await(0,s.dr)("/cache?cache=program"),console.log(e.value),t.value=!0},L=async()=>{t.value=!1;const e=await(0,o.QZ)("/getAllSkillProf?skill_type=genome");_.value=e.skill,w.value=e.proficiency,t.value=!0},F=()=>{i.Z.push({name:"SolidifyAdministrationOffCycleDetails",query:{learner_task_id:g.value}})},X=()=>{console.log("selectedProgram.value inside create offcycle",v.value),console.log("selectedSkill.value inside create offcycle",b.value),console.log("selectedProficiency.value inside create offcycle",S.value),"infinity"!==v.value&&"Select Program"!==v.value||"Select Skill"!==b.value&&"Select Proficiency"!==S.value&&S.value?(console.log("selectedProgram.value",v.value),"infinity"!==v.value?i.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:v.value}}):i.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:v.value,skill_id:b.value,proficiency_id:S.value}})):(k.value="Please select Program, and in case of infinity please select skill and proficiency",setTimeout((()=>{k.value=null}),6e3))};return(0,n.onBeforeMount)((async()=>{const e=await(0,c.GF)("/getUserRole");if(m.value=e.user_roles,m.value.length>0&&(m.value.includes("System Admin")||m.value.includes("System Admin View Access")||m.value.includes("Program Admin")?p.value=!0:p.value=!1),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"),await V(),await L(),localStorage.getItem("program")&&(v.value=localStorage.getItem("program")||"Select Program",Object.assign(Z,{program_id:localStorage.getItem("program")}),localStorage.getItem("skill")&&(b.value=localStorage.getItem("skill")||"Select Skill",Object.assign(Z,{skill_id:localStorage.getItem("skill")}),localStorage.getItem("proficiency")&&(S.value=localStorage.getItem("proficiency")||"Select Proficiency",Object.assign(Z,{proficiency_id:localStorage.getItem("proficiency")})))),console.log("Local Storage Value",Z),localStorage.getItem("program")&&"Select Program"!==localStorage.getItem("program")){console.log("inside onbefore");try{await j()}catch(a){if(f.Z.isAxiosError(a)){const e=a;console.log("err.response?.data",e.response?.data),t.value=!0,k.value=e.response?.data?.message,console.log(`errorMessage.value ${k.value}`),setTimeout((()=>{k.value=null}),6e3)}}}C.value=!0,"Select Program"!==v.value&&(P.value=!0),"infinity"===v.value?x.value=!0:x.value=!1})),{renderReady:t,programDetails:e,getSelectedProgram:M,taskDetails:a,taskCheckOne:d,taskcheckedOne:T,checkedTaskId:g,showTaskBtn:D,showScreen:p,selectedProgram:v,errorMessage:k,successMessage:h,getTaskDetails:j,skills:_,proficiency:w,getSelectedSkill:E,getSelectedProficiency:R,showSkillProf:x,searchBtn:C,selectedSkill:b,selectedProficiency:S,searchTask:B,exportOffcycle:$,offCycleDetailsBtnShow:A,viewOffCycleDetails:F,createOffcycle:X,showIsOffcycleActive:l,newTaskDetails:r,filterTaskDetails:N,userRole:m,showInactiveButton:P,skillErrorMessage:O,proficiencyError:I}}}),v=d,g=a(3736),y=(0,g.Z)(v,r,l,!1,null,"726fb9dd",null),m=y.exports},8709:function(e,t,a){a.d(t,{G7:function(){return l},Nl:function(){return s},QZ:function(){return n},kn:function(){return c}});var r=a(7129);const l=async(e,t)=>{const a=await r.Z.post(e,t);return a},n=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},s=async(e,t)=>{let a;return await r.Z.get(`${e}/${t}`).then((e=>(a=e.data.allProxyList,a))),a},c=async(e,t)=>{const a=await r.Z.post(e,t);return a}},9955:function(e,t,a){a.d(t,{Yg:function(){return n},sw:function(){return l}});var r=a(7129);const l=async(e,t)=>{const a=await r.Z.post(e,t);return a},n=async(e,t)=>{const a=await r.Z.post(e,t);return a}},5279:function(e,t,a){a.d(t,{$d:function(){return l},$i:function(){return S},Ao:function(){return m},DU:function(){return g},EX:function(){return T},F5:function(){return D},FS:function(){return d},GF:function(){return Z},Iu:function(){return s},J1:function(){return b},Jf:function(){return h},Kk:function(){return p},N9:function(){return O},P8:function(){return u},VP:function(){return k},Vz:function(){return x},WX:function(){return v},X$:function(){return _},XP:function(){return n},Yb:function(){return P},a4:function(){return I},dH:function(){return w},gh:function(){return y},nb:function(){return o},oA:function(){return C},r4:function(){return f},sd:function(){return i},wp:function(){return c},xJ:function(){return A}});var r=a(7129);const l=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},n=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},c=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},o=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},i=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},u=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},f=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},d=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},v=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},g=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},y=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},m=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},p=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},k=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},h=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},_=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},w=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},b=async e=>{const t=await r.Z.get(e);return t},S=async e=>{const t=await r.Z.get(e);return t},x=async e=>{const t=await r.Z.get(e);return t},C=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},P=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},Z=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},O=async e=>{const t=await r.Z.post("/user/role",e);return t},I=async e=>{const t=await r.Z.post("/user/removeRole",e);return t},A=async()=>{const e=await r.Z.get("role");return e},T=async e=>{const t=await r.Z.post("/user/saveLSS",e);return t},D=async e=>{const t=await r.Z.post("/user/saveEnvAccess",e);return t}},9649:function(e,t,a){a.d(t,{$M:function(){return f},F9:function(){return v},HX:function(){return c},V$:function(){return o},VA:function(){return n},dr:function(){return l},gs:function(){return g},jz:function(){return d},q$:function(){return u},rP:function(){return s},yW:function(){return i}});var r=a(7129);const l=async e=>{let t;return await r.Z.get(e).then((e=>(console.log("Response",e),t=e.data.response.program_name,t))),t},n=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},s=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.learnerDetails,a))),a},c=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},o=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data,a))),a},i=async e=>{let t;try{return await r.Z.get(`/task/${e}`).then((e=>(t=e.data.data,t))),t}catch(a){return a}},u=async(e,t)=>{try{const a=await fetch(`${e}`,{method:"put",body:t}),r=a;return r}catch(a){return console.error(a),a}},f=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},d=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},v=async e=>{console.log(`inside save task data ${JSON.stringify(e)}`);const t=await r.Z.post("/task/create",e);return t},g=async e=>{try{let t;return await r.Z.get(`/admin/task/taskExport/${e}`).then((async e=>(t=e.data,t))),t}catch(t){return t}}}}]);
1
+ "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[670],{2913:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.userRole?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:"flex w-full mt-6"},[t("div",{staticClass:"w-1/2 pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Program ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedProgram,expression:"selectedProgram"}],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.selectedProgram=t.target.multiple?a:a[0]},function(t){return e.getSelectedProgram(t)}]}},[t("option",[e._v("Select Program")]),e._l(e.programDetails,(function(a){return t("option",{key:a.program_id,domProps:{value:a.program_id}},[e._v(e._s(a.program_display_name?a.program_display_name:a.program_name))])}))],2)]),e.showSkillProf?t("div",{staticClass:"w-1/2 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),e.skillErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.skillErrorMessage))]):e._e()]):e._e(),e.showSkillProf?t("div",{staticClass:"w-1/2 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),e.proficiencyError?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.proficiencyError))]):e._e()]):e._e(),e.searchBtn?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 mr-2",on:{click:function(t){return e.searchTask()}}},[e._v("Search")]),t("button",{staticClass:"mt-2 mr-4 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.exportOffcycle()}}},[e._v("Export")])]):e._e()]),e.successMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.successMessage))]):e._e(),e.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),t("div",{staticClass:"flex w-full mt-6"},[e.searchBtn?t("div",{staticClass:"pr-3 mb-4 w-full"},[t("button",{staticClass:"mt-2 mr-4 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.createOffcycle()}}},[e._v("Create Offcycle")]),e.showIsOffcycleActive&&e.showInactiveButton?t("button",{staticClass:"mt-2 mr-4 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.filterTaskDetails(!1)}}},[e._v("Show Inactive Offcycles")]):e._e(),!e.showIsOffcycleActive&&e.showInactiveButton?t("button",{staticClass:"mt-2 mr-4 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.filterTaskDetails(!0)}}},[e._v("Show Active Offcycles")]):e._e(),t("button",{directives:[{name:"show",rawName:"v-show",value:e.offCycleDetailsBtnShow,expression:"offCycleDetailsBtnShow"}],staticClass:"mt-2 mr-4 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.viewOffCycleDetails()}}},[e._v("View Details")])]):e._e()]),e.taskDetails?t("div",{staticClass:"w-full mb-8 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded mb-4 tableScroll"},[e._m(1),t("tbody",{staticClass:"opacity-80 align-bottom"},e._l(e.newTaskDetails,(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.taskCheckOne,expression:"taskCheckOne"}],attrs:{type:"checkbox",id:a.learner_task_id},domProps:{value:a.learner_task_id,checked:Array.isArray(e.taskCheckOne)?e._i(e.taskCheckOne,a.learner_task_id)>-1:e.taskCheckOne},on:{click:e.taskcheckedOne,change:[function(t){var r=e.taskCheckOne,l=t.target,n=!!l.checked;if(Array.isArray(r)){var s=a.learner_task_id,c=e._i(r,s);l.checked?c<0&&(e.taskCheckOne=r.concat([s])):c>-1&&(e.taskCheckOne=r.slice(0,c).concat(r.slice(c+1)))}else e.taskCheckOne=n},function(t){return e.showTaskBtn(t,a.learner_task_id,a.is_offcycle_active,a.linked_task_id)}]}})]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.taskName}},[e._v(e._s(a.taskName))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.is_archive}},[e._v(e._s(a.is_archive))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.is_offcycle_active}},[e._v(e._s(1==a.is_offcycle_active))]),t("td",{staticClass:"p-2 px-3",attrs:{title:a.task_type}},[e._v(e._s(a.task_type))])])})),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")])]):e._e()},l=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full flex justify-between"},[t("div",{staticClass:"w-full text-center text-3xl text-background-secondary"},[e._v("Offcycle Dashboard")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90"},[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("Task Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Task IsArchive")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Is Offcycle Active")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Task type")])])])}],n=(a(7658),a(7203)),s=a(9649),c=a(5279),o=a(8709),i=a(6545),u=a(9955),f=a(7129),d=(0,n.defineComponent)({name:"OffcycleDashboard",components:{},setup(){const e=(0,n.ref)(),t=(0,n.ref)(!0),a=(0,n.ref)(),r=(0,n.ref)(),l=(0,n.ref)(!0),d=(0,n.ref)([]),v=(0,n.ref)("Select Program"),g=(0,n.ref)(),y=(0,n.ref)(),m=(0,n.ref)(),p=(0,n.ref)(!0),k=(0,n.ref)(),h=(0,n.ref)(),_=(0,n.ref)(),w=(0,n.ref)(),b=(0,n.ref)("Select Skill"),S=(0,n.ref)("Select Proficiency"),x=(0,n.ref)(!1),C=(0,n.ref)(!1),P=(0,n.ref)(!1);let Z={};const O=(0,n.ref)(),I=(0,n.ref)(),A=(0,n.ref)(!1),T=()=>{d.value=[]},D=(e,t,a,r)=>{const l=e.target.checked;!0===l?(g.value=t,y.value=r,A.value=!0,console.log("isOffCycleActive",a)):A.value=!1},N=async e=>{r.value=e?a.value.filter((e=>1===Number(e.is_offcycle_active))):a.value.filter((e=>1!==Number(e.is_offcycle_active))),l.value=e},j=async()=>{t.value=!1,a.value=await(0,s.rP)("/getAllOffcycleByProgram",Z),await N(!0),console.log("taskDetails.value ",a.value),t.value=!0},$=async()=>{try{const e={};"Select Program"!==v.value&&(Object.assign(e,{program_id:v.value}),"Select Skill"!==b.value&&(Object.assign(e,{skill_id:b.value}),"Select Proficiency"!==S.value&&Object.assign(e,{proficiency_id:S.value}))),await(0,u.Yg)("/offcycle/fetch?action=report",e),h.value="The report is being processed. You should get that over email in next 15 minutes",setTimeout((()=>{h.value=null}),6e3)}catch(e){if(f.Z.isAxiosError(e)){const a=e;console.log("err.response?.data",a.response?.data),t.value=!0,k.value=a.response?.data?.message,console.log(`errorMessage.value ${k.value}`),setTimeout((()=>{k.value=null}),6e3)}}},B=async()=>{if(P.value=!0,Z={},"Select Program"!==v.value){if(Object.assign(Z,{program_id:v.value}),console.log("task data",Z),"Select Skill"!==b.value&&(Object.assign(Z,{skill_id:b.value}),console.log("task data",Z),"Select Proficiency"!==S.value&&(Object.assign(Z,{proficiency_id:S.value}),console.log("task data",Z))),"infinity"===v.value){if("Select Skill"===b.value)return O.value="Please Select Skill",void setTimeout((()=>{O.value=null}),6e3);if("Select Proficiency"===S.value)return I.value="Please Select Proficiency",void setTimeout((()=>{I.value=null}),6e3)}await j()}else a.value={},r.value={},P.value=!1},M=async e=>{t.value=!1,localStorage.setItem("program",e.target.value),localStorage.removeItem("skill"),localStorage.removeItem("proficiency"),v.value=e.target.value,"Select Program"!==v.value?(C.value=!0,"infinity"===v.value?(b.value="Select Skill",S.value="Select Proficiency",x.value=!0):(x.value=!1,b.value="",S.value="")):(localStorage.setItem("program","Select Program"),P.value=!1,x.value=!1),t.value=!0},E=async e=>{localStorage.setItem("skill",e.target.value),b.value=e.target.value,"Select Skill"===b.value&&localStorage.removeItem("skill")},R=async e=>{localStorage.setItem("proficiency",e.target.value),S.value=e.target.value,"Select Proficiency"===S.value&&localStorage.removeItem("proficiency")},V=async()=>{t.value=!1,e.value=await(0,s.dr)("/cache?cache=program"),console.log(e.value),t.value=!0},L=async()=>{t.value=!1;const e=await(0,o.QZ)("/getAllSkillProf?skill_type=genome");_.value=e.skill,w.value=e.proficiency,t.value=!0},F=()=>{i.Z.push({name:"SolidifyAdministrationOffCycleDetails",query:{learner_task_id:g.value}})},X=()=>{console.log("selectedProgram.value inside create offcycle",v.value),console.log("selectedSkill.value inside create offcycle",b.value),console.log("selectedProficiency.value inside create offcycle",S.value),"infinity"!==v.value&&"Select Program"!==v.value||"Select Skill"!==b.value&&"Select Proficiency"!==S.value&&S.value?(console.log("selectedProgram.value",v.value),"infinity"!==v.value?i.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:v.value}}):i.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:v.value,skill_id:b.value,proficiency_id:S.value}})):(k.value="Please select Program, and in case of infinity please select skill and proficiency",setTimeout((()=>{k.value=null}),6e3))};return(0,n.onBeforeMount)((async()=>{const e=await(0,c.GF)("/getUserRole");if(m.value=e.user_roles,m.value.length>0&&(m.value.includes("System Admin")||m.value.includes("System Admin View Access")||m.value.includes("Program Admin")?p.value=!0:p.value=!1),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"),await V(),await L(),localStorage.getItem("program")&&(v.value=localStorage.getItem("program")||"Select Program",Object.assign(Z,{program_id:localStorage.getItem("program")}),localStorage.getItem("skill")&&(b.value=localStorage.getItem("skill")||"Select Skill",Object.assign(Z,{skill_id:localStorage.getItem("skill")}),localStorage.getItem("proficiency")&&(S.value=localStorage.getItem("proficiency")||"Select Proficiency",Object.assign(Z,{proficiency_id:localStorage.getItem("proficiency")})))),console.log("Local Storage Value",Z),localStorage.getItem("program")&&"Select Program"!==localStorage.getItem("program")){console.log("inside onbefore");try{await j()}catch(a){if(f.Z.isAxiosError(a)){const e=a;console.log("err.response?.data",e.response?.data),t.value=!0,k.value=e.response?.data?.message,console.log(`errorMessage.value ${k.value}`),setTimeout((()=>{k.value=null}),6e3)}}}C.value=!0,"Select Program"!==v.value&&(P.value=!0),"infinity"===v.value?x.value=!0:x.value=!1})),{renderReady:t,programDetails:e,getSelectedProgram:M,taskDetails:a,taskCheckOne:d,taskcheckedOne:T,checkedTaskId:g,showTaskBtn:D,showScreen:p,selectedProgram:v,errorMessage:k,successMessage:h,getTaskDetails:j,skills:_,proficiency:w,getSelectedSkill:E,getSelectedProficiency:R,showSkillProf:x,searchBtn:C,selectedSkill:b,selectedProficiency:S,searchTask:B,exportOffcycle:$,offCycleDetailsBtnShow:A,viewOffCycleDetails:F,createOffcycle:X,showIsOffcycleActive:l,newTaskDetails:r,filterTaskDetails:N,userRole:m,showInactiveButton:P,skillErrorMessage:O,proficiencyError:I}}}),v=d,g=a(3736),y=(0,g.Z)(v,r,l,!1,null,"726fb9dd",null),m=y.exports},8709:function(e,t,a){a.d(t,{G7:function(){return l},Nl:function(){return s},QZ:function(){return n},kn:function(){return c}});var r=a(7129);const l=async(e,t)=>{const a=await r.Z.post(e,t);return a},n=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},s=async(e,t)=>{let a;return await r.Z.get(`${e}/${t}`).then((e=>(a=e.data.allProxyList,a))),a},c=async(e,t)=>{const a=await r.Z.post(e,t);return a}},9955:function(e,t,a){a.d(t,{Yg:function(){return n},sw:function(){return l}});var r=a(7129);const l=async(e,t)=>{const a=await r.Z.post(e,t);return a},n=async(e,t)=>{const a=await r.Z.post(e,t);return a}},5279:function(e,t,a){a.d(t,{$d:function(){return l},$i:function(){return S},Ao:function(){return m},DU:function(){return g},EX:function(){return T},F5:function(){return D},FS:function(){return d},GF:function(){return Z},Iu:function(){return s},J1:function(){return b},Jf:function(){return h},Kk:function(){return p},N9:function(){return O},P8:function(){return u},VP:function(){return k},Vz:function(){return x},WX:function(){return v},X$:function(){return _},XP:function(){return n},Yb:function(){return P},a4:function(){return I},dH:function(){return w},gh:function(){return y},nb:function(){return o},oA:function(){return C},r4:function(){return f},sd:function(){return i},wp:function(){return c},xJ:function(){return A}});var r=a(7129);const l=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},n=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},c=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},o=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},i=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},u=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},f=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},d=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},v=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},g=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},y=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},m=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},p=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},k=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},h=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},_=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},w=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},b=async e=>{const t=await r.Z.get(e);return t},S=async e=>{const t=await r.Z.get(e);return t},x=async e=>{const t=await r.Z.get(e);return t},C=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},P=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},Z=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},O=async e=>{const t=await r.Z.post("/user/role",e);return t},I=async e=>{const t=await r.Z.post("/user/removeRole",e);return t},A=async()=>{const e=await r.Z.get("role");return e},T=async e=>{const t=await r.Z.post("/user/saveLSS",e);return t},D=async e=>{const t=await r.Z.post("/user/saveEnvAccess",e);return t}},9649:function(e,t,a){a.d(t,{$M:function(){return f},F9:function(){return v},HX:function(){return c},V$:function(){return o},VA:function(){return n},dr:function(){return l},gs:function(){return g},jz:function(){return d},q$:function(){return u},rP:function(){return s},yW:function(){return i}});var r=a(7129);const l=async e=>{let t;return await r.Z.get(e).then((e=>(console.log("Response",e),t=e.data.response.program_name,t))),t},n=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},s=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.learnerDetails,a))),a},c=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},o=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data,a))),a},i=async e=>{let t;try{return await r.Z.get(`/task/${e}`).then((e=>(t=e.data.data,t))),t}catch(a){return a}},u=async(e,t)=>{try{const a=await fetch(`${e}`,{method:"put",body:t}),r=a;return r}catch(a){return console.error(a),a}},f=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},d=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},v=async e=>{console.log(`inside save task data ${JSON.stringify(e)}`);const t=await r.Z.post("/task/create",e);return t},g=async e=>{try{let t;return await r.Z.get(`/admin/task/taskExport/${e}`).then((async e=>(t=e.data,t))),t}catch(t){return t}}}}]);
2
2
  //# sourceMappingURL=solidify.umd.min.SolidifyAdministrationOffcycleDashboard.js.map