@genpact/genome.mfe.solidify-app 1.17.2-alpha.213 → 1.17.2-alpha.217

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 (61) hide show
  1. package/dist/css/782.css +1 -0
  2. package/dist/css/SolidifyAdministrationEmailTemplateManagement.css +1 -1
  3. package/dist/css/SolidifyAdministrationGenAIReviewedSubmissions.css +1 -0
  4. package/dist/css/SolidifyAdministrationPlagiarsimReport.css +1 -1
  5. package/dist/css/SolidifyAdministrationTaskDetails.css +1 -1
  6. package/dist/css/SolidifyLearner.css +1 -1
  7. package/dist/css/SolidifyLearnerDone.css +1 -1
  8. package/dist/css/SolidifyLearnerSubmitTask.css +1 -1
  9. package/dist/img/GenomeAI.gif +0 -0
  10. package/dist/solidify.css +1 -1
  11. package/dist/solidify.umd.min.782.js +2 -0
  12. package/dist/solidify.umd.min.782.js.map +1 -0
  13. package/dist/solidify.umd.min.LearnerRereview.js +1 -1
  14. package/dist/solidify.umd.min.LearnerRereview.js.map +1 -1
  15. package/dist/solidify.umd.min.SolidifyAdministration.js +1 -1
  16. package/dist/solidify.umd.min.SolidifyAdministration.js.map +1 -1
  17. package/dist/solidify.umd.min.SolidifyAdministrationAssignProxy.js +1 -1
  18. package/dist/solidify.umd.min.SolidifyAdministrationAssignProxy.js.map +1 -1
  19. package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js +1 -1
  20. package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js.map +1 -1
  21. package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js +1 -1
  22. package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js.map +1 -1
  23. package/dist/solidify.umd.min.SolidifyAdministrationGenAIReviewedSubmissions.js +2 -0
  24. package/dist/solidify.umd.min.SolidifyAdministrationGenAIReviewedSubmissions.js.map +1 -0
  25. package/dist/solidify.umd.min.SolidifyAdministrationManageProxy.js +1 -1
  26. package/dist/solidify.umd.min.SolidifyAdministrationManageProxy.js.map +1 -1
  27. package/dist/solidify.umd.min.SolidifyAdministrationMasterAdministration.js +1 -1
  28. package/dist/solidify.umd.min.SolidifyAdministrationMasterAdministration.js.map +1 -1
  29. package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js +1 -1
  30. package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js.map +1 -1
  31. package/dist/solidify.umd.min.SolidifyAdministrationOffcycleDashboard.js +1 -1
  32. package/dist/solidify.umd.min.SolidifyAdministrationOffcycleDashboard.js.map +1 -1
  33. package/dist/solidify.umd.min.SolidifyAdministrationOperationalDetails.js +1 -1
  34. package/dist/solidify.umd.min.SolidifyAdministrationOperationalDetails.js.map +1 -1
  35. package/dist/solidify.umd.min.SolidifyAdministrationPlagiarsimReport.js +1 -1
  36. package/dist/solidify.umd.min.SolidifyAdministrationPlagiarsimReport.js.map +1 -1
  37. package/dist/solidify.umd.min.SolidifyAdministrationProgramAdministration.js +1 -1
  38. package/dist/solidify.umd.min.SolidifyAdministrationProgramAdministration.js.map +1 -1
  39. package/dist/solidify.umd.min.SolidifyAdministrationTaskDetails.js +2 -2
  40. package/dist/solidify.umd.min.SolidifyAdministrationTaskDetails.js.map +1 -1
  41. package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js +1 -1
  42. package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js.map +1 -1
  43. package/dist/solidify.umd.min.SolidifyAdministrationViewAllProxyRequests.js +1 -1
  44. package/dist/solidify.umd.min.SolidifyAdministrationViewAllProxyRequests.js.map +1 -1
  45. package/dist/solidify.umd.min.SolidifyAdministrationharvestReport.js +1 -1
  46. package/dist/solidify.umd.min.SolidifyAdministrationharvestReport.js.map +1 -1
  47. package/dist/solidify.umd.min.SolidifyLearner.js +1 -1
  48. package/dist/solidify.umd.min.SolidifyLearner.js.map +1 -1
  49. package/dist/solidify.umd.min.SolidifyLearnerDone.js +1 -1
  50. package/dist/solidify.umd.min.SolidifyLearnerDone.js.map +1 -1
  51. package/dist/solidify.umd.min.SolidifyLearnerPeerReview.js +1 -1
  52. package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js +1 -1
  53. package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js +1 -1
  54. package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js +1 -1
  55. package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js.map +1 -1
  56. package/dist/solidify.umd.min.js +4 -4
  57. package/dist/solidify.umd.min.js.map +1 -1
  58. package/package.json +1 -1
  59. package/dist/css/489.css +0 -1
  60. package/dist/solidify.umd.min.489.js +0 -2
  61. package/dist/solidify.umd.min.489.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[412],{8153:function(e,t,a){a.d(t,{Z:function(){return u}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full flex mt-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"appearance-none border rounded py-2 px-14 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text",placeholder:e.placeHolder1},domProps:{value:e.search},on:{keyup:function(t){e.filterProgramDetails(),e.$emit("Filtered",e.filteredProgramDetails)},input:function(t){t.target.composing||(e.search=t.target.value)}}})])},s=[],l=a(7203),n=(0,l.defineComponent)({name:"SearchBar",props:{data:[Array],placeholder:{type:String,default:"Search"}},setup(e){const t=(0,l.ref)(""),a=(0,l.ref)(),r=(0,l.ref)(),s=(0,l.ref)(),n=()=>{s.value=e.data,r.value=s.value.filter((e=>e.toLowerCase().includes(t.value.toLowerCase())))};return(0,l.onBeforeMount)((async()=>{a.value=e.placeholder,console.log("props.placeholder",e.placeholder)})),{placeHolder1:a,filteredProgramDetails:r,filterProgramDetails:n,search:t}}}),o=n,i=a(1001),c=(0,i.Z)(o,r,s,!1,null,null,null),u=c.exports},7308:function(e,t,a){a.r(t),a.d(t,{default:function(){return k}});var r=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:"flex w-full mt-6 justify-end items-center gap-2"},[t("div",{staticClass:"w-1/5"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.rangeStart,expression:"rangeStart"}],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:"date"},domProps:{value:e.rangeStart},on:{input:function(t){t.target.composing||(e.rangeStart=t.target.value)}}})]),t("div",{staticClass:"w-1/5"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.rangeEnd,expression:"rangeEnd"}],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:"date"},domProps:{value:e.rangeEnd},on:{input:function(t){t.target.composing||(e.rangeEnd=t.target.value)}}})]),t("div",{staticClass:"pr-3"},[t("button",{staticClass:"inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.triggerProxyReport()}}},[e._v("Export All Proxy Report")])])]),t("div",{staticClass:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow text-background-secondary p-4"},[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(" 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-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),e.skillErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.skillErrorMessage))]):e._e()]):e._e(),e.showSkillProf?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(" 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(),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(" Ageing ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedAgeing,expression:"selectedAgeing"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-3 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.selectedAgeing=t.target.multiple?a:a[0]},function(t){return e.performAgeingFilter(t)}]}},[t("option",[e._v("Select Ageing")]),e._l(e.ageingValues,(function(a){return t("option",{key:a,domProps:{value:a}},[e._v(e._s(a))])}))],2)]),t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide text-background-secondary opacity-80 font-normal mb-2"},[e._v(" Proxy OHR ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enteredProxyOHR,expression:"enteredProxyOHR"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{type:"text"},domProps:{value:e.enteredProxyOHR},on:{input:function(t){t.target.composing||(e.enteredProxyOHR=t.target.value)}}})])]),t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full pr-3"},[t("label",{staticClass:"block tracking-wide text-background-secondary opacity-80 font-normal mb-2"},[e._v(" Learner Task ID ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enteredLearnerTaskId,expression:"enteredLearnerTaskId"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{type:"text"},domProps:{value:e.enteredLearnerTaskId},on:{input:function(t){t.target.composing||(e.enteredLearnerTaskId=t.target.value)}}})]),t("div",{staticClass:"w-full pr-3"}),t("div",{staticClass:"w-full pr-3"})]),e.defaultErrorMessage?t("div",{staticClass:"text-red-700 flex w-full"},[e._v(e._s(e.defaultErrorMessage))]):e._e(),t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full mb-4 mt-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-6 text-base text-white shadow-md",class:"bg-background-secondary",on:{click:function(t){return e.getLearnerForProxy()}}},[e._v("Search Learners")])])]),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.proxyButtonVisible?t("div",{staticClass:"flex w-full mt-2"},[t("div",{staticClass:"w-1/2 pr-3 mb-4"},[t("button",{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("View available Proxy")]),e.nudgeButtonVisible?t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.sendNudge()}}},[e._v("Send Proxy Nudge")]):e._e()])]):e._e(),e.reportSuccessMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.learnerData?t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white rounded"},[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("Learner ID")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy OHR")]),"infinity"===e.selectedProgram?t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Skill")]):e._e(),"infinity"===e.selectedProgram?t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proficiency")]):e._e(),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Requested Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Assignment Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Re-review")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])]),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredLearnerData,(function(a){return t("tr",{key:a.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.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:a.learner_task_id},domProps:{value:a.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,a.learner_task_id)>-1:e.selectedTaskId},on:{change:[function(t){var r=e.selectedTaskId,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.learner_task_id,o=e._i(r,n);s.checked?o<0&&(e.selectedTaskId=r.concat([n])):o>-1&&(e.selectedTaskId=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedTaskId=l},function(t){return e.setProxyBtn(t)}]}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.learner_task_id))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_key))]),"infinity"===e.selectedProgram?t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.skillName))]):e._e(),"infinity"===e.selectedProgram?t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proficiencyName))]):e._e(),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_requested_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.assignment_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.isRereview))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.ageing))])])})),0)])])]):e._e(),e.isVisible?t("div",{staticClass:"w-full mt-4%"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyList?t("div",{staticClass:"w-full flex mt-6"},[t("SearchBar",{attrs:{data:e.proxyDetailsArray,placeholder:"Search By Proxy Name"},on:{Filtered:e.getFilteredList}})],1):e._e(),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("Re-assign Proxy")])]):e._e(),t("div",{staticClass:"w-full mt-4"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[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")]),"infinity"===e.selectedProgram?t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")]):e._e(),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])]),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredproxyDetails,(function(a,r){return t("tr",{key:r,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 r=e.selectedProxyOhr,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.proxy_ohr,o=e._i(r,n);s.checked?o<0&&(e.selectedProxyOhr=r.concat([n])):o>-1&&(e.selectedProxyOhr=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedProxyOhr=l},function(t){return e.showAssignProxyBtn(t)}],click:e.checkOne}})]),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))]),"infinity"===e.selectedProgram?t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_role))]):e._e(),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(a.proxy_ohr))])])})),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")])])},s=[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("All Proxy Review Request")])])}],l=(a(7658),a(7203)),n=a(8709),o=a(1068),i=a(5279),c=a(1602),u=a.n(c),d=a(9649),p=a(306),v=a(1815),f=a(1232),g=a(2027),y=a(8153),x=(0,l.defineComponent)({name:"ViewAllProgramProxyAssignment",components:{SearchBar:y.Z},setup(){const e=(0,l.ref)(),t=(0,l.ref)(),a=(0,l.ref)(),r=(0,l.ref)(),s=(0,l.ref)(),c=(0,l.ref)(),y=(0,l.ref)(!1),x=(0,l.ref)(!1),m=(0,l.ref)(),_=(0,l.ref)([]),h=(0,l.ref)(),k=(0,l.ref)(!1),b=(0,l.ref)(),w=(0,l.ref)(!0),C=(0,l.ref)(),P=(0,l.ref)(),S=(0,l.ref)(),A=(0,l.ref)(),Z=(0,l.ref)(!1),O=(0,l.ref)("Select Program"),T=(0,l.ref)(!1),D=(0,l.ref)(),L=(0,l.ref)(!1),N=(0,l.ref)(!1),$=(0,l.ref)(),M=(0,l.ref)(!1),R=(0,l.ref)("Select Ageing"),I=(0,l.ref)(),Y=(0,l.ref)(),B=(0,l.ref)(),E=(0,l.ref)(),V=(0,l.ref)(!1),F=(0,l.ref)(),H=(0,l.ref)(),J=(0,l.ref)(),q=(0,l.ref)(["0-5","5-10","10-15","15-20",">20"]),j=(0,l.ref)(""),G=(0,l.ref)(""),Q=(0,l.ref)(),U=(0,l.ref)(),X=(0,l.ref)(),z=()=>{h.value=[]},W=()=>{if(console.log(R.value),V.value=!1,"Select Ageing"===R.value)return F.value=e.value,B.value=!1,void(E.value=!1);R.value.includes(">")?(B.value=R.value.slice(1),V.value=!0,E.value=!0):[B.value,E.value]=R.value.split("-"),console.log(B.value,E.value)},K=async()=>{const e=[];F.value.filter((t=>{for(let a=0;a<_.value.length;a+=1)_.value[a]===t.learner_task_id&&e.push({learner_task_id:t.learner_task_id,proxyOhr:t.proxy_key})}));const t={nudge_arr:e};console.log(" Proxy OHR ",t);try{r.value=!1;const e=await(0,f.F)("/proxyreview/nudge",t);console.log(e),D.value=e.data.message,r.value=!0,L.value=!0,N.value=!1,window.scroll(0,0),r.value=!0,setTimeout((()=>{L.value=!1}),5e3)}catch(a){if(r.value=!0,p.Z.isAxiosError(a)){const e=a;r.value=!0,D.value=e.response?.data?.message,N.value=!0,L.value=!1,setTimeout((()=>{N.value=!1}),5e3)}}},ee=e=>{const t=e.target.checked;!0===t?(console.log("selected Task id",_.value),x.value=!0):0===_.value.length&&(x.value=!1,y.value=!1)},te=async()=>{r.value=!1;const e=await(0,n.QZ)("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},ae=async()=>{r.value=!1,A.value=await(0,d.dr)("/cache?cache=program"),r.value=!0},re=async t=>{r.value=!1,localStorage.setItem("program",t.target.value),localStorage.removeItem("skill"),localStorage.removeItem("proficiency"),O.value=t.target.value,"Select Program"!==O.value?(T.value=!0,"infinity"===O.value?(await te(),s.value="Select Skill",c.value="Select Proficiency",Z.value=!0):(Z.value=!1,s.value="",c.value="")):(T.value=!1,Z.value=!1),x.value=!1,M.value=!1,e.value=[],y.value=!1,_.value=[],F.value=[],r.value=!0},se=async()=>{try{if("Select Program"===O.value&&!Y.value)return X.value="Please Select Program or Enter Learner Task ID",void setTimeout((()=>{X.value=null}),6e3);if("infinity"===O.value){if("Select Skill"===s.value)return Q.value="Please Select Skill",void setTimeout((()=>{Q.value=null}),6e3);if("Select Proficiency"===c.value)return U.value="Please Select Proficiency",void setTimeout((()=>{U.value=null}),6e3)}const l={linked_program_name:O.value,skill:s.value,proficiency:c.value,proxy_key:I.value,learner_task_id:Y.value,selectedLowerBound:B.value,selectedUpperBound:E.value,noUpperBound:V.value};console.log({data:l}),r.value=!1,await z(),_.value=[],x.value=!1,y.value=!1;const n=await(0,o.cQ)(l);e.value=n.data.allProxyList,console.log(" learnerData.value",e.value),await te();for(let r=0;r<e.value.length;r+=1){const s=e.value[r];console.log(`res ${JSON.stringify(s)}`);const l=u()().utc().format("YYYY-MM-DD");if(s.assignment_date){const e=u()(s.assignment_date).utc().format("YYYY-MM-DD");s.ageing=u()(l).diff(u()(e),"days"),s.assignment_date=u()(s.assignment_date).format("DD-MM-YYYY")}if(s.proxy_requested_date&&(s.proxy_requested_date=u()(s.proxy_requested_date).format("DD-MM-YYYY")),"infinity"===s.linked_program_name){if(s.skill){const e=t.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.skill_id;return console.log(`skill ${t}`),!!t&&t===s.skill}));console.log(`learnerSkillArr ${JSON.stringify(e)}`),s.skillName=e[0].skill_alias}else s.skillName="";if(s.proficiency){const e=a.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.prof_id;return console.log(`prof ${t}`),!!t&&t===s.proficiency}));console.log(`learnerProfArr ${JSON.stringify(e)}`),s.proficiencyName=e[0].prof_name}else s.proficiencyName=""}}e.value.length>0&&"infinity"===e.value[0].linked_program_name?(s.value=e.value[0].skill,c.value=e.value[0].proficiency,Z.value=!0):Z.value=!1,e.value.length>0&&(O.value=e.value[0].linked_program_name);const i=await(0,g.uA)(O.value),d="PROXY_NUDGE",p=i.prog_detail.email_templates;M.value=void 0!==p[d],F.value=e.value,e.value=e.value.sort(((e,t)=>t.ageing-e.ageing))}catch(l){console.log(l)}r.value=!0},le=async e=>{s.value=e.target.value,console.log(`selectedSkill.value ${s.value}`)},ne=async e=>{c.value=e.target.value,console.log(`selectedProficiency.value ${c.value}`)},oe=async()=>{console.log(`selectedTaskId.value[0] ${_.value[0]}`);let t=`/v2/admin/proxy/program/${O.value}`;const a=e.value.filter((e=>_.value[0]===e.learner_task_id));console.log(`selectedLearnerArr ${a}`),"infinity"===O.value&&(C.value=a[0].skill,P.value=a[0].proficiency,t=`/v2/admin/proxy/program/infinity/skill/${C.value}`),y.value=!0,r.value=!1;const s=await(0,v.oA)(t);m.value=s.all_proxies,H.value=m.value.map((e=>e.proxy_name)),J.value=m.value,r.value=!0,console.log("Proxy List",m.value)},ie=e=>{J.value=m.value.filter((t=>e.includes(t.proxy_name))),console.log("filteredproxyDetails",J.value)},ce=async e=>{const t=e.target.checked;k.value=!0===t},ue=async()=>{try{console.log(`selectedProxyOhr.value[0] ${h.value[0]}`),console.log(`selectedSkill.value ${s.value}`),console.log(`selectedProficiency.value ${c.value}`),r.value=!1;const e={proxy_key:h.value[0],learners:_.value,linked_program_name:O.value,skill:C.value,proficiency:P.value},t=await(0,n.kn)("/proxyreview",e);D.value=t?.data.message,L.value=!0,setTimeout((()=>{L.value=!1}),6e3),y.value=!1,await se(),r.value=!0,console.log("data ohr",t)}catch(e){if(p.Z.isAxiosError(e)){const t=e;console.log("err.response?.data",t.response?.data),r.value=!0,D.value=t.response?.data?.message,console.log(`errorMessage.value ${$.value}`),N.value=!0,setTimeout((()=>{N.value=!1}),6e3)}}},de=async()=>{try{if(!j.value||!G.value)return D.value="Start Date or End Date should not be empty",N.value=!0,void setTimeout((()=>{N.value=!1}),6e3);const e={start_date:j.value,end_date:G.value,program_id:O.value,skill:s.value,proficiency:c.value,proxy_ohr:I.value,learner_task_id:Y.value},t=await(0,o.yc)(e);S.value="The report will be emailed to you",setTimeout((()=>{S.value=null}),6e3),console.log(`Report Trigger Response ${t}`)}catch(e){if(p.Z.isAxiosError(e)){const t=e;console.log("err.response?.data",t.response?.data),r.value=!0,D.value=t.response?.data?.message,console.log(`errorMessage.value ${$.value}`),N.value=!0,setTimeout((()=>{N.value=!1}),6e3)}}};return(0,l.onBeforeMount)((async()=>{await ae();const e=await(0,i.GF)("/getUserRole");b.value=e.user_roles,b.value.length>0&&(b.value.includes("System Admin")||b.value.includes("Community Manager")||b.value.includes("Proxy Admin")?w.value=!0:w.value=!1)})),{learnerData:e,skills:t,proficiency:a,renderReady:r,selectedSkill:s,selectedProficiency:c,getSelectedSkill:le,getSelectedProficiency:ne,isVisible:y,showProxy:oe,getSkillandProf:te,getLearnerForProxy:se,selectedTaskId:_,proxyButtonVisible:x,setProxyBtn:ee,proxyList:m,selectedProxyOhr:h,checkOne:z,showAssignProxyBtn:ce,proxyAssignedBtn:k,assignLearnerToProxy:ue,showScreen:w,triggerProxyReport:de,reportSuccessMessage:S,programDetails:A,getSelectedProgram:re,showSearchBtn:T,selectedProgram:O,showSkillProf:Z,resMessage:D,showSuccessMessage:L,showErrorMessage:N,errorMessage:$,performAgeingFilter:W,ageingValues:q,filteredLearnerData:F,selectedAgeing:R,sendNudge:K,nudgeButtonVisible:M,getFilteredList:ie,filteredproxyDetails:J,proxyDetailsArray:H,rangeStart:j,rangeEnd:G,enteredProxyOHR:I,enteredLearnerTaskId:Y,skillErrorMessage:Q,proficiencyError:U,defaultErrorMessage:X}}}),m=x,_=a(1001),h=(0,_.Z)(m,r,s,!1,null,"5c0088d5",null),k=h.exports},1055:function(e,t,a){a.r(t),a.d(t,{default:function(){return g}});var r=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:"flex w-full mt-6"},[t("div",{staticClass:"pr-3 mb-4 w-full text-right"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.triggerProxyReport()}}},[e._v("Export All Proxy Report")])])]),t("div",{staticClass:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow text-background-secondary p-4"},[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(" Skill ")]),t("select",{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){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",{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",{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){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.getLearnerForProxy()}}},[e._v("Search Learner")])])]),e.proxyButtonVisible?t("div",{staticClass:"flex w-full mt-6"},[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.showProxy()}}},[e._v("View available Proxy")])])]):e._e(),e.reportSuccessMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.learnerData?t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white rounded"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.learnerData,(function(a){return t("tr",{key:a.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.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:a.learner_task_id},domProps:{value:a.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,a.learner_task_id)>-1:e.selectedTaskId},on:{click:function(t){return e.setProxyBtn(t)},change:function(t){var r=e.selectedTaskId,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.learner_task_id,o=e._i(r,n);s.checked?o<0&&(e.selectedTaskId=r.concat([n])):o>-1&&(e.selectedTaskId=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedTaskId=l}}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.learner_task_id))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_key))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.skillName))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proficiencyName))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_requested_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.assignment_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.isRereview))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.ageing))])])})),0)])])]):e._e(),e.isVisible?t("div",{staticClass:"w-full mt-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("Re-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(2),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 r=e.selectedProxyOhr,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.proxy_ohr,o=e._i(r,n);s.checked?o<0&&(e.selectedProxyOhr=r.concat([n])):o>-1&&(e.selectedProxyOhr=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedProxyOhr=l},function(t){return e.showAssignProxyBtn(t)}],click:e.checkOne}})]),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("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_role))]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(a.proxy_ohr))])])})),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")])])},s=[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("All Proxy Review Request")])])},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("Learner ID")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy OHR")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Skill")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proficiency")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Requested Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Assignment Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Re-review")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])])},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("Role")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])])}],l=a(7203),n=a(8709),o=a(1068),i=a(5279),c=a(1602),u=a.n(c),d=(0,l.defineComponent)({name:"AssignProxy",setup(){const e=(0,l.ref)(),t=(0,l.ref)(),a=(0,l.ref)(),r=(0,l.ref)(),s=(0,l.ref)(),c=(0,l.ref)(),d=(0,l.ref)(!1),p=(0,l.ref)(!1),v=(0,l.ref)(),f=(0,l.ref)([]),g=(0,l.ref)(),y=(0,l.ref)(!1),x=(0,l.ref)(),m=(0,l.ref)(!0),_=(0,l.ref)(),h=(0,l.ref)(),k=(0,l.ref)(),b=()=>{g.value=[]},w=e=>{f.value=[];const t=e.target.checked;!0===t?p.value=!0:(p.value=!1,d.value=!1)},C={},P=async()=>{r.value=!1;const e=await(0,n.QZ)("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},S=async()=>{try{console.log(C),r.value=!1,await b(),f.value=[];const s=await(0,o._A)(C);e.value=s.data.allProxyList;for(let r=0;r<e.value.length;r+=1){const s=e.value[r];console.log(`res ${JSON.stringify(s)}`);const l=u()().utc().format("YYYY-MM-DD");if(s.assignment_date){const e=u()(s.assignment_date).utc().format("YYYY-MM-DD");s.ageing=u()(l).diff(u()(e),"days"),s.assignment_date=u()(s.assignment_date).format("DD-MM-YYYY")}if(s.proxy_requested_date&&(s.proxy_requested_date=u()(s.proxy_requested_date).format("DD-MM-YYYY")),s.skill){const e=t.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.skill_id;return console.log(`skill ${t}`),!!t&&t===s.skill}));console.log(`learnerSkillArr ${JSON.stringify(e)}`),s.skillName=e[0].skill_alias}else s.skillName="";if(s.proficiency){const e=a.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.prof_id;return console.log(`prof ${t}`),!!t&&t===s.proficiency}));console.log(`learnerProfArr ${JSON.stringify(e)}`),s.proficiencyName=e[0].prof_name}else s.proficiencyName=""}e.value=e.value.sort(((e,t)=>t.ageing-e.ageing)),r.value=!0}catch(s){console.log(s)}},A=async e=>{s.value=e.target.value,Object.assign(C,{skill:s.value})},Z=async e=>{c.value=e.target.value,Object.assign(C,{proficiency:c.value})},O=async()=>{console.log(`selectedTaskId.value[0] ${f.value[0]}`);const t=e.value.filter((e=>f.value[0]===e.learner_task_id));console.log(`selectedLearnerArr ${t}`),_.value=t[0].skill,h.value=t[0].proficiency,d.value=!0,r.value=!1,v.value=await(0,n.Nl)("/getAllProxyBySkill",_.value),r.value=!0,console.log("Proxy List",v.value)},T=async e=>{const t=e.target.checked;y.value=!0===t},D=async()=>{try{console.log(`selectedProxyOhr.value[0] ${g.value[0]}`),console.log(`selectedSkill.value ${_.value}`),console.log(`selectedProficiency.value ${h.value}`),r.value=!1;const e={proxy_key:g.value[0],learners:f.value,linked_program_name:"infinity",skill:_.value,proficiency:h.value},t=await(0,n.kn)("/proxyreview",e);d.value=!1,await S(),r.value=!0,console.log("data ohr",t)}catch(e){console.log("data ohr",e)}},L=async()=>{const e=await(0,o.yc)("/admin/proxy/export");k.value="The report will be emailed to you",setTimeout((()=>{k.value=null}),6e3),console.log(`Report Trigger Response ${e}`)};return(0,l.onBeforeMount)((async()=>{await P();const e=await(0,i.GF)("/getUserRole");x.value=e.user_roles,x.value.length>0&&(x.value.includes("System Admin")||x.value.includes("Community Manager")||x.value.includes("Proxy Admin")?m.value=!0:m.value=!1)})),{learnerData:e,skills:t,proficiency:a,renderReady:r,getSelectedSkill:A,getSelectedProficiency:Z,isVisible:d,showProxy:O,getSkillandProf:P,getLearnerForProxy:S,selectedTaskId:f,proxyButtonVisible:p,setProxyBtn:w,proxyList:v,selectedProxyOhr:g,checkOne:b,showAssignProxyBtn:T,proxyAssignedBtn:y,assignLearnerToProxy:D,showScreen:m,triggerProxyReport:L,reportSuccessMessage:k}}}),p=d,v=a(1001),f=(0,v.Z)(p,r,s,!1,null,"6f090fc0",null),g=f.exports},8709:function(e,t,a){a.d(t,{G7:function(){return s},Nl:function(){return n},QZ:function(){return l},kn:function(){return o}});var r=a(7129);const s=async(e,t)=>{const a=await r.Z.post(e,t);return a},l=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},n=async(e,t)=>{let a;return await r.Z.get(`${e}/${t}`).then((e=>(a=e.data.allProxyList,a))),a},o=async(e,t)=>{const a=await r.Z.post(e,t);return a}},1815:function(e,t,a){a.d(t,{Lo:function(){return n},M0:function(){return o},QZ:function(){return s},Z9:function(){return i},oA:function(){return l}});var r=a(7129);const s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},l=async e=>{const t=await r.Z.get(e);return t.data},n=async(e,t)=>{const a=await r.Z.post(e,t);return a.data},o=async(e,t)=>{const a=await r.Z.post(e,t);return a.data.resp_message},i=async(e,t)=>{const a=await r.Z.post(e,t);return a.data.resp_message}},5279:function(e,t,a){a.d(t,{$d:function(){return s},$i:function(){return w},Ao:function(){return y},DU:function(){return f},EX:function(){return D},F5:function(){return L},FS:function(){return p},GF:function(){return A},Iu:function(){return n},J1:function(){return b},Jf:function(){return _},Kk:function(){return x},N9:function(){return Z},P8:function(){return u},VP:function(){return m},Vz:function(){return C},WX:function(){return v},X$:function(){return h},XP:function(){return l},Yb:function(){return S},a4:function(){return O},dH:function(){return k},gh:function(){return g},nb:function(){return i},oA:function(){return P},r4:function(){return d},sd:function(){return c},wp:function(){return o},xJ:function(){return T}});var r=a(7129);const s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},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},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},c=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},d=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},v=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},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.userObj,t))),t},x=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},m=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},_=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},h=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},k=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},w=async e=>{const t=await r.Z.get(e);return t},C=async e=>{const t=await r.Z.get(e);return t},P=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},A=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},Z=async e=>{const t=await r.Z.post("/user/role",e);return t},O=async e=>{const t=await r.Z.post("/user/removeRole",e);return t},T=async()=>{const e=await r.Z.get("role");return e},D=async e=>{const t=await r.Z.post("/user/saveLSS",e);return t},L=async e=>{const t=await r.Z.post("/user/saveEnvAccess",e);return t}},2027:function(e,t,a){a.d(t,{DC:function(){return l},JS:function(){return n},uA:function(){return s}});var r=a(7129);const s=async e=>{try{let t;return await r.Z.get(`/program/${e}`).then((e=>(t=e.data,t))),t}catch(t){return t}},l=async e=>{try{let t;return console.log("inside update Program Service"),await r.Z.put("/program",e).then((e=>(console.log("program Response",e),t=e.data,t))),t}catch(t){return t}},n=async e=>{const t=await r.Z.post("/program/email/event/create",e);return t}},9649:function(e,t,a){a.d(t,{$M:function(){return d},F9:function(){return v},HX:function(){return o},V$:function(){return i},VA:function(){return l},dr:function(){return s},gs:function(){return f},jz:function(){return p},q$:function(){return u},rP:function(){return n},yW:function(){return c}});var r=a(7129);const s=async e=>{let t;return await r.Z.get(e).then((e=>(console.log("Response",e),t=e.data.response.program_name,t))),t},l=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},n=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.learnerDetails,a))),a},o=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},i=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data,a))),a},c=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}},d=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},p=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},f=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}}},1068:function(e,t,a){a.d(t,{Ho:function(){return s},_A:function(){return l},cQ:function(){return n},yc:function(){return o}});var r=a(7129);const s=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data,a))),a},l=async e=>{const t=await r.Z.post("getAllProxyAssignedLearner",e);return t},n=async e=>{const t=await r.Z.post("program/proxies/learners",e);return t},o=async e=>{const t=await r.Z.post("admin/proxy/export",e);return t}}}]);
1
+ "use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[412],{8153:function(e,t,a){a.d(t,{Z:function(){return u}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full flex mt-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"appearance-none border rounded py-2 px-14 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text",placeholder:e.placeHolder1},domProps:{value:e.search},on:{keyup:function(t){e.filterProgramDetails(),e.$emit("Filtered",e.filteredProgramDetails)},input:function(t){t.target.composing||(e.search=t.target.value)}}})])},s=[],l=a(7203),n=(0,l.defineComponent)({name:"SearchBar",props:{data:[Array],placeholder:{type:String,default:"Search"}},setup(e){const t=(0,l.ref)(""),a=(0,l.ref)(),r=(0,l.ref)(),s=(0,l.ref)(),n=()=>{s.value=e.data,r.value=s.value.filter((e=>e.toLowerCase().includes(t.value.toLowerCase())))};return(0,l.onBeforeMount)((async()=>{a.value=e.placeholder,console.log("props.placeholder",e.placeholder)})),{placeHolder1:a,filteredProgramDetails:r,filterProgramDetails:n,search:t}}}),o=n,i=a(1001),c=(0,i.Z)(o,r,s,!1,null,null,null),u=c.exports},7308:function(e,t,a){a.r(t),a.d(t,{default:function(){return k}});var r=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:"flex w-full mt-6 justify-end items-center gap-2"},[t("div",{staticClass:"w-1/5"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.rangeStart,expression:"rangeStart"}],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:"date"},domProps:{value:e.rangeStart},on:{input:function(t){t.target.composing||(e.rangeStart=t.target.value)}}})]),t("div",{staticClass:"w-1/5"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.rangeEnd,expression:"rangeEnd"}],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:"date"},domProps:{value:e.rangeEnd},on:{input:function(t){t.target.composing||(e.rangeEnd=t.target.value)}}})]),t("div",{staticClass:"pr-3"},[t("button",{staticClass:"inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.triggerProxyReport()}}},[e._v("Export All Proxy Report")])])]),t("div",{staticClass:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow text-background-secondary p-4"},[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(" 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-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),e.skillErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.skillErrorMessage))]):e._e()]):e._e(),e.showSkillProf?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(" 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(),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(" Ageing ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedAgeing,expression:"selectedAgeing"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-3 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.selectedAgeing=t.target.multiple?a:a[0]},function(t){return e.performAgeingFilter(t)}]}},[t("option",[e._v("Select Ageing")]),e._l(e.ageingValues,(function(a){return t("option",{key:a,domProps:{value:a}},[e._v(e._s(a))])}))],2)]),t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide text-background-secondary opacity-80 font-normal mb-2"},[e._v(" Proxy OHR ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enteredProxyOHR,expression:"enteredProxyOHR"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{type:"text"},domProps:{value:e.enteredProxyOHR},on:{input:function(t){t.target.composing||(e.enteredProxyOHR=t.target.value)}}})])]),t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full pr-3"},[t("label",{staticClass:"block tracking-wide text-background-secondary opacity-80 font-normal mb-2"},[e._v(" Learner Task ID ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enteredLearnerTaskId,expression:"enteredLearnerTaskId"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{type:"text"},domProps:{value:e.enteredLearnerTaskId},on:{input:function(t){t.target.composing||(e.enteredLearnerTaskId=t.target.value)}}})]),t("div",{staticClass:"w-full pr-3"}),t("div",{staticClass:"w-full pr-3"})]),e.defaultErrorMessage?t("div",{staticClass:"text-red-700 flex w-full"},[e._v(e._s(e.defaultErrorMessage))]):e._e(),t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full mb-4 mt-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-6 text-base text-white shadow-md",class:"bg-background-secondary",on:{click:function(t){return e.getLearnerForProxy()}}},[e._v("Search Learners")])])]),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.proxyButtonVisible?t("div",{staticClass:"flex w-full mt-2"},[t("div",{staticClass:"w-1/2 pr-3 mb-4"},[t("button",{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("View available Proxy")]),e.nudgeButtonVisible?t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.sendNudge()}}},[e._v("Send Proxy Nudge")]):e._e()])]):e._e(),e.reportSuccessMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.learnerData?t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white rounded"},[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("Learner ID")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy OHR")]),"infinity"===e.selectedProgram?t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Skill")]):e._e(),"infinity"===e.selectedProgram?t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proficiency")]):e._e(),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Requested Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Assignment Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Re-review")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])]),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredLearnerData,(function(a){return t("tr",{key:a.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.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:a.learner_task_id},domProps:{value:a.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,a.learner_task_id)>-1:e.selectedTaskId},on:{change:[function(t){var r=e.selectedTaskId,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.learner_task_id,o=e._i(r,n);s.checked?o<0&&(e.selectedTaskId=r.concat([n])):o>-1&&(e.selectedTaskId=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedTaskId=l},function(t){return e.setProxyBtn(t)}]}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.learner_task_id))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_key))]),"infinity"===e.selectedProgram?t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.skillName))]):e._e(),"infinity"===e.selectedProgram?t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proficiencyName))]):e._e(),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_requested_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.assignment_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.isRereview))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.ageing))])])})),0)])])]):e._e(),e.isVisible?t("div",{staticClass:"w-full mt-4%"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyList?t("div",{staticClass:"w-full flex mt-6"},[t("SearchBar",{attrs:{data:e.proxyDetailsArray,placeholder:"Search By Proxy Name"},on:{Filtered:e.getFilteredList}})],1):e._e(),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("Re-assign Proxy")])]):e._e(),t("div",{staticClass:"w-full mt-4"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[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")]),"infinity"===e.selectedProgram?t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")]):e._e(),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])]),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredproxyDetails,(function(a,r){return t("tr",{key:r,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 r=e.selectedProxyOhr,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.proxy_ohr,o=e._i(r,n);s.checked?o<0&&(e.selectedProxyOhr=r.concat([n])):o>-1&&(e.selectedProxyOhr=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedProxyOhr=l},function(t){return e.showAssignProxyBtn(t)}],click:e.checkOne}})]),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))]),"infinity"===e.selectedProgram?t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_role))]):e._e(),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(a.proxy_ohr))])])})),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")])])},s=[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("All Proxy Review Request")])])}],l=(a(7658),a(7203)),n=a(8709),o=a(1068),i=a(5279),c=a(1602),u=a.n(c),d=a(9649),p=a(306),v=a(1815),f=a(1232),g=a(2027),y=a(8153),x=(0,l.defineComponent)({name:"ViewAllProgramProxyAssignment",components:{SearchBar:y.Z},setup(){const e=(0,l.ref)(),t=(0,l.ref)(),a=(0,l.ref)(),r=(0,l.ref)(),s=(0,l.ref)(),c=(0,l.ref)(),y=(0,l.ref)(!1),x=(0,l.ref)(!1),m=(0,l.ref)(),_=(0,l.ref)([]),h=(0,l.ref)(),k=(0,l.ref)(!1),b=(0,l.ref)(),w=(0,l.ref)(!0),C=(0,l.ref)(),P=(0,l.ref)(),S=(0,l.ref)(),A=(0,l.ref)(),Z=(0,l.ref)(!1),O=(0,l.ref)("Select Program"),T=(0,l.ref)(!1),D=(0,l.ref)(),L=(0,l.ref)(!1),N=(0,l.ref)(!1),$=(0,l.ref)(),M=(0,l.ref)(!1),R=(0,l.ref)("Select Ageing"),I=(0,l.ref)(),Y=(0,l.ref)(),B=(0,l.ref)(),E=(0,l.ref)(),V=(0,l.ref)(!1),F=(0,l.ref)(),H=(0,l.ref)(),J=(0,l.ref)(),q=(0,l.ref)(["0-5","5-10","10-15","15-20",">20"]),j=(0,l.ref)(""),G=(0,l.ref)(""),Q=(0,l.ref)(),U=(0,l.ref)(),X=(0,l.ref)(),z=()=>{h.value=[]},W=()=>{if(console.log(R.value),V.value=!1,"Select Ageing"===R.value)return F.value=e.value,B.value=!1,void(E.value=!1);R.value.includes(">")?(B.value=R.value.slice(1),V.value=!0,E.value=!0):[B.value,E.value]=R.value.split("-"),console.log(B.value,E.value)},K=async()=>{const e=[];F.value.filter((t=>{for(let a=0;a<_.value.length;a+=1)_.value[a]===t.learner_task_id&&e.push({learner_task_id:t.learner_task_id,proxyOhr:t.proxy_key})}));const t={nudge_arr:e};console.log(" Proxy OHR ",t);try{r.value=!1;const e=await(0,f.F)("/proxyreview/nudge",t);console.log(e),D.value=e.data.message,r.value=!0,L.value=!0,N.value=!1,window.scroll(0,0),r.value=!0,setTimeout((()=>{L.value=!1}),5e3)}catch(a){if(r.value=!0,p.Z.isAxiosError(a)){const e=a;r.value=!0,D.value=e.response?.data?.message,N.value=!0,L.value=!1,setTimeout((()=>{N.value=!1}),5e3)}}},ee=e=>{const t=e.target.checked;!0===t?(console.log("selected Task id",_.value),x.value=!0):0===_.value.length&&(x.value=!1,y.value=!1)},te=async()=>{r.value=!1;const e=await(0,n.QZ)("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},ae=async()=>{r.value=!1,A.value=await(0,d.dr)("/cache?cache=program"),r.value=!0},re=async t=>{r.value=!1,localStorage.setItem("program",t.target.value),localStorage.removeItem("skill"),localStorage.removeItem("proficiency"),O.value=t.target.value,"Select Program"!==O.value?(T.value=!0,"infinity"===O.value?(await te(),s.value="Select Skill",c.value="Select Proficiency",Z.value=!0):(Z.value=!1,s.value="",c.value="")):(T.value=!1,Z.value=!1),x.value=!1,M.value=!1,e.value=[],y.value=!1,_.value=[],F.value=[],r.value=!0},se=async()=>{try{if("Select Program"===O.value&&!Y.value)return X.value="Please Select Program or Enter Learner Task ID",void setTimeout((()=>{X.value=null}),6e3);if("infinity"===O.value){if("Select Skill"===s.value)return Q.value="Please Select Skill",void setTimeout((()=>{Q.value=null}),6e3);if("Select Proficiency"===c.value)return U.value="Please Select Proficiency",void setTimeout((()=>{U.value=null}),6e3)}const l={linked_program_name:O.value,skill:s.value,proficiency:c.value,proxy_key:I.value,learner_task_id:Y.value,selectedLowerBound:B.value,selectedUpperBound:E.value,noUpperBound:V.value};console.log({data:l}),r.value=!1,await z(),_.value=[],x.value=!1,y.value=!1;const n=await(0,o.cQ)(l);e.value=n.data.allProxyList,console.log(" learnerData.value",e.value),await te();for(let r=0;r<e.value.length;r+=1){const s=e.value[r];console.log(`res ${JSON.stringify(s)}`);const l=u()().utc().format("YYYY-MM-DD");if(s.assignment_date){const e=u()(s.assignment_date).utc().format("YYYY-MM-DD");s.ageing=u()(l).diff(u()(e),"days"),s.assignment_date=u()(s.assignment_date).format("DD-MM-YYYY")}if(s.proxy_requested_date&&(s.proxy_requested_date=u()(s.proxy_requested_date).format("DD-MM-YYYY")),"infinity"===s.linked_program_name){if(s.skill){const e=t.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.skill_id;return console.log(`skill ${t}`),!!t&&t===s.skill}));console.log(`learnerSkillArr ${JSON.stringify(e)}`),s.skillName=e[0].skill_alias}else s.skillName="";if(s.proficiency){const e=a.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.prof_id;return console.log(`prof ${t}`),!!t&&t===s.proficiency}));console.log(`learnerProfArr ${JSON.stringify(e)}`),s.proficiencyName=e[0].prof_name}else s.proficiencyName=""}}e.value.length>0&&"infinity"===e.value[0].linked_program_name?(s.value=e.value[0].skill,c.value=e.value[0].proficiency,Z.value=!0):Z.value=!1,e.value.length>0&&(O.value=e.value[0].linked_program_name);const i=await(0,g.uA)(O.value),d="PROXY_NUDGE",p=i.prog_detail.email_templates;M.value=void 0!==p[d],F.value=e.value,e.value=e.value.sort(((e,t)=>t.ageing-e.ageing))}catch(l){console.log(l)}r.value=!0},le=async e=>{s.value=e.target.value,console.log(`selectedSkill.value ${s.value}`)},ne=async e=>{c.value=e.target.value,console.log(`selectedProficiency.value ${c.value}`)},oe=async()=>{console.log(`selectedTaskId.value[0] ${_.value[0]}`);let t=`/v2/admin/proxy/program/${O.value}`;const a=e.value.filter((e=>_.value[0]===e.learner_task_id));console.log(`selectedLearnerArr ${a}`),"infinity"===O.value&&(C.value=a[0].skill,P.value=a[0].proficiency,t=`/v2/admin/proxy/program/infinity/skill/${C.value}`),y.value=!0,r.value=!1;const s=await(0,v.oA)(t);m.value=s.all_proxies,H.value=m.value.map((e=>e.proxy_name)),J.value=m.value,r.value=!0,console.log("Proxy List",m.value)},ie=e=>{J.value=m.value.filter((t=>e.includes(t.proxy_name))),console.log("filteredproxyDetails",J.value)},ce=async e=>{const t=e.target.checked;k.value=!0===t},ue=async()=>{try{console.log(`selectedProxyOhr.value[0] ${h.value[0]}`),console.log(`selectedSkill.value ${s.value}`),console.log(`selectedProficiency.value ${c.value}`),r.value=!1;const e={proxy_key:h.value[0],learners:_.value,linked_program_name:O.value,skill:C.value,proficiency:P.value},t=await(0,n.kn)("/proxyreview",e);D.value=t?.data.message,L.value=!0,setTimeout((()=>{L.value=!1}),6e3),y.value=!1,await se(),r.value=!0,console.log("data ohr",t)}catch(e){if(p.Z.isAxiosError(e)){const t=e;console.log("err.response?.data",t.response?.data),r.value=!0,D.value=t.response?.data?.message,console.log(`errorMessage.value ${$.value}`),N.value=!0,setTimeout((()=>{N.value=!1}),6e3)}}},de=async()=>{try{if(!j.value||!G.value)return D.value="Start Date or End Date should not be empty",N.value=!0,void setTimeout((()=>{N.value=!1}),6e3);const e={start_date:j.value,end_date:G.value,program_id:O.value,skill:s.value,proficiency:c.value,proxy_ohr:I.value,learner_task_id:Y.value},t=await(0,o.yc)(e);S.value="The report will be emailed to you",setTimeout((()=>{S.value=null}),6e3),console.log(`Report Trigger Response ${t}`)}catch(e){if(p.Z.isAxiosError(e)){const t=e;console.log("err.response?.data",t.response?.data),r.value=!0,D.value=t.response?.data?.message,console.log(`errorMessage.value ${$.value}`),N.value=!0,setTimeout((()=>{N.value=!1}),6e3)}}};return(0,l.onBeforeMount)((async()=>{await ae();const e=await(0,i.GF)("/getUserRole");b.value=e.user_roles,b.value.length>0&&(b.value.includes("System Admin")||b.value.includes("Community Manager")||b.value.includes("Proxy Admin")?w.value=!0:w.value=!1)})),{learnerData:e,skills:t,proficiency:a,renderReady:r,selectedSkill:s,selectedProficiency:c,getSelectedSkill:le,getSelectedProficiency:ne,isVisible:y,showProxy:oe,getSkillandProf:te,getLearnerForProxy:se,selectedTaskId:_,proxyButtonVisible:x,setProxyBtn:ee,proxyList:m,selectedProxyOhr:h,checkOne:z,showAssignProxyBtn:ce,proxyAssignedBtn:k,assignLearnerToProxy:ue,showScreen:w,triggerProxyReport:de,reportSuccessMessage:S,programDetails:A,getSelectedProgram:re,showSearchBtn:T,selectedProgram:O,showSkillProf:Z,resMessage:D,showSuccessMessage:L,showErrorMessage:N,errorMessage:$,performAgeingFilter:W,ageingValues:q,filteredLearnerData:F,selectedAgeing:R,sendNudge:K,nudgeButtonVisible:M,getFilteredList:ie,filteredproxyDetails:J,proxyDetailsArray:H,rangeStart:j,rangeEnd:G,enteredProxyOHR:I,enteredLearnerTaskId:Y,skillErrorMessage:Q,proficiencyError:U,defaultErrorMessage:X}}}),m=x,_=a(1001),h=(0,_.Z)(m,r,s,!1,null,"5c0088d5",null),k=h.exports},1055:function(e,t,a){a.r(t),a.d(t,{default:function(){return g}});var r=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:"flex w-full mt-6"},[t("div",{staticClass:"pr-3 mb-4 w-full text-right"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.triggerProxyReport()}}},[e._v("Export All Proxy Report")])])]),t("div",{staticClass:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow text-background-secondary p-4"},[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(" Skill ")]),t("select",{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){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",{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",{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){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.getLearnerForProxy()}}},[e._v("Search Learner")])])]),e.proxyButtonVisible?t("div",{staticClass:"flex w-full mt-6"},[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.showProxy()}}},[e._v("View available Proxy")])])]):e._e(),e.reportSuccessMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.learnerData?t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white rounded"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.learnerData,(function(a){return t("tr",{key:a.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.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:a.learner_task_id},domProps:{value:a.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,a.learner_task_id)>-1:e.selectedTaskId},on:{click:function(t){return e.setProxyBtn(t)},change:function(t){var r=e.selectedTaskId,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.learner_task_id,o=e._i(r,n);s.checked?o<0&&(e.selectedTaskId=r.concat([n])):o>-1&&(e.selectedTaskId=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedTaskId=l}}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.learner_task_id))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_key))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.skillName))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proficiencyName))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_requested_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.assignment_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.isRereview))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.ageing))])])})),0)])])]):e._e(),e.isVisible?t("div",{staticClass:"w-full mt-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("Re-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(2),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 r=e.selectedProxyOhr,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.proxy_ohr,o=e._i(r,n);s.checked?o<0&&(e.selectedProxyOhr=r.concat([n])):o>-1&&(e.selectedProxyOhr=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedProxyOhr=l},function(t){return e.showAssignProxyBtn(t)}],click:e.checkOne}})]),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("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_role))]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(a.proxy_ohr))])])})),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")])])},s=[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("All Proxy Review Request")])])},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("Learner ID")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy OHR")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Skill")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proficiency")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Requested Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Assignment Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Re-review")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])])},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("Role")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])])}],l=a(7203),n=a(8709),o=a(1068),i=a(5279),c=a(1602),u=a.n(c),d=(0,l.defineComponent)({name:"AssignProxy",setup(){const e=(0,l.ref)(),t=(0,l.ref)(),a=(0,l.ref)(),r=(0,l.ref)(),s=(0,l.ref)(),c=(0,l.ref)(),d=(0,l.ref)(!1),p=(0,l.ref)(!1),v=(0,l.ref)(),f=(0,l.ref)([]),g=(0,l.ref)(),y=(0,l.ref)(!1),x=(0,l.ref)(),m=(0,l.ref)(!0),_=(0,l.ref)(),h=(0,l.ref)(),k=(0,l.ref)(),b=()=>{g.value=[]},w=e=>{f.value=[];const t=e.target.checked;!0===t?p.value=!0:(p.value=!1,d.value=!1)},C={},P=async()=>{r.value=!1;const e=await(0,n.QZ)("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},S=async()=>{try{console.log(C),r.value=!1,await b(),f.value=[];const s=await(0,o._A)(C);e.value=s.data.allProxyList;for(let r=0;r<e.value.length;r+=1){const s=e.value[r];console.log(`res ${JSON.stringify(s)}`);const l=u()().utc().format("YYYY-MM-DD");if(s.assignment_date){const e=u()(s.assignment_date).utc().format("YYYY-MM-DD");s.ageing=u()(l).diff(u()(e),"days"),s.assignment_date=u()(s.assignment_date).format("DD-MM-YYYY")}if(s.proxy_requested_date&&(s.proxy_requested_date=u()(s.proxy_requested_date).format("DD-MM-YYYY")),s.skill){const e=t.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.skill_id;return console.log(`skill ${t}`),!!t&&t===s.skill}));console.log(`learnerSkillArr ${JSON.stringify(e)}`),s.skillName=e[0].skill_alias}else s.skillName="";if(s.proficiency){const e=a.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.prof_id;return console.log(`prof ${t}`),!!t&&t===s.proficiency}));console.log(`learnerProfArr ${JSON.stringify(e)}`),s.proficiencyName=e[0].prof_name}else s.proficiencyName=""}e.value=e.value.sort(((e,t)=>t.ageing-e.ageing)),r.value=!0}catch(s){console.log(s)}},A=async e=>{s.value=e.target.value,Object.assign(C,{skill:s.value})},Z=async e=>{c.value=e.target.value,Object.assign(C,{proficiency:c.value})},O=async()=>{console.log(`selectedTaskId.value[0] ${f.value[0]}`);const t=e.value.filter((e=>f.value[0]===e.learner_task_id));console.log(`selectedLearnerArr ${t}`),_.value=t[0].skill,h.value=t[0].proficiency,d.value=!0,r.value=!1,v.value=await(0,n.Nl)("/getAllProxyBySkill",_.value),r.value=!0,console.log("Proxy List",v.value)},T=async e=>{const t=e.target.checked;y.value=!0===t},D=async()=>{try{console.log(`selectedProxyOhr.value[0] ${g.value[0]}`),console.log(`selectedSkill.value ${_.value}`),console.log(`selectedProficiency.value ${h.value}`),r.value=!1;const e={proxy_key:g.value[0],learners:f.value,linked_program_name:"infinity",skill:_.value,proficiency:h.value},t=await(0,n.kn)("/proxyreview",e);d.value=!1,await S(),r.value=!0,console.log("data ohr",t)}catch(e){console.log("data ohr",e)}},L=async()=>{const e=await(0,o.yc)("/admin/proxy/export");k.value="The report will be emailed to you",setTimeout((()=>{k.value=null}),6e3),console.log(`Report Trigger Response ${e}`)};return(0,l.onBeforeMount)((async()=>{await P();const e=await(0,i.GF)("/getUserRole");x.value=e.user_roles,x.value.length>0&&(x.value.includes("System Admin")||x.value.includes("Community Manager")||x.value.includes("Proxy Admin")?m.value=!0:m.value=!1)})),{learnerData:e,skills:t,proficiency:a,renderReady:r,getSelectedSkill:A,getSelectedProficiency:Z,isVisible:d,showProxy:O,getSkillandProf:P,getLearnerForProxy:S,selectedTaskId:f,proxyButtonVisible:p,setProxyBtn:w,proxyList:v,selectedProxyOhr:g,checkOne:b,showAssignProxyBtn:T,proxyAssignedBtn:y,assignLearnerToProxy:D,showScreen:m,triggerProxyReport:L,reportSuccessMessage:k}}}),p=d,v=a(1001),f=(0,v.Z)(p,r,s,!1,null,"6f090fc0",null),g=f.exports},8709:function(e,t,a){a.d(t,{G7:function(){return s},Nl:function(){return n},QZ:function(){return l},kn:function(){return o}});var r=a(7129);const s=async(e,t)=>{const a=await r.Z.post(e,t);return a},l=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},n=async(e,t)=>{let a;return await r.Z.get(`${e}/${t}`).then((e=>(a=e.data.allProxyList,a))),a},o=async(e,t)=>{const a=await r.Z.post(e,t);return a}},1815:function(e,t,a){a.d(t,{Lo:function(){return n},M0:function(){return o},QZ:function(){return s},Z9:function(){return i},oA:function(){return l}});var r=a(7129);const s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},l=async e=>{const t=await r.Z.get(e);return t.data},n=async(e,t)=>{const a=await r.Z.post(e,t);return a.data},o=async(e,t)=>{const a=await r.Z.post(e,t);return a.data.resp_message},i=async(e,t)=>{const a=await r.Z.post(e,t);return a.data.resp_message}},5279:function(e,t,a){a.d(t,{$d:function(){return s},$i:function(){return w},Ao:function(){return y},DU:function(){return f},EX:function(){return D},F5:function(){return L},FS:function(){return p},GF:function(){return A},Iu:function(){return n},J1:function(){return b},Jf:function(){return _},Kk:function(){return x},N9:function(){return Z},P8:function(){return u},VP:function(){return m},Vz:function(){return C},WX:function(){return v},X$:function(){return h},XP:function(){return l},Yb:function(){return S},a4:function(){return O},dH:function(){return k},gh:function(){return g},nb:function(){return i},oA:function(){return P},r4:function(){return d},sd:function(){return c},wp:function(){return o},xJ:function(){return T}});var r=a(7129);const s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},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},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},c=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},d=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},v=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},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.userObj,t))),t},x=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},m=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},_=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},h=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},k=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},w=async e=>{const t=await r.Z.get(e);return t},C=async e=>{const t=await r.Z.get(e);return t},P=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},A=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},Z=async e=>{const t=await r.Z.post("/user/role",e);return t},O=async e=>{const t=await r.Z.post("/user/removeRole",e);return t},T=async()=>{const e=await r.Z.get("role");return e},D=async e=>{const t=await r.Z.post("/user/saveLSS",e);return t},L=async e=>{const t=await r.Z.post("/user/saveEnvAccess",e);return t}},2027:function(e,t,a){a.d(t,{DC:function(){return l},JS:function(){return n},uA:function(){return s}});var r=a(7129);const s=async e=>{try{let t;return await r.Z.get(`/program/${e}`).then((e=>(t=e.data,t))),t}catch(t){return t}},l=async e=>{try{let t;return console.log("inside update Program Service"),await r.Z.put("/program",e).then((e=>(console.log("program Response",e),t=e.data,t))),t}catch(t){return t}},n=async e=>{const t=await r.Z.post("/program/email/event/create",e);return t}},9649:function(e,t,a){a.d(t,{$M:function(){return p},F9:function(){return f},HX:function(){return i},V$:function(){return c},VA:function(){return l},Vz:function(){return n},dr:function(){return s},gs:function(){return g},jz:function(){return v},q$:function(){return d},rP:function(){return o},yW:function(){return u}});var r=a(7129);const s=async e=>{let t;return await r.Z.get(e).then((e=>(console.log("Response",e),t=e.data.response.program_name,t))),t},l=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},n=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e?.data?.data,a))),a},o=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.learnerDetails,a))),a},i=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},c=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data,a))),a},u=async e=>{let t;try{return await r.Z.get(`/task/${e}`).then((e=>(t=e.data.data,t))),t}catch(a){return a}},d=async(e,t)=>{try{const a=await fetch(`${e}`,{method:"put",body:t}),r=a;return r}catch(a){return console.error(a),a}},p=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},v=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},f=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}}},1068:function(e,t,a){a.d(t,{Ho:function(){return s},_A:function(){return l},cQ:function(){return n},yc:function(){return o}});var r=a(7129);const s=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data,a))),a},l=async e=>{const t=await r.Z.post("getAllProxyAssignedLearner",e);return t},n=async e=>{const t=await r.Z.post("program/proxies/learners",e);return t},o=async e=>{const t=await r.Z.post("admin/proxy/export",e);return t}}}]);
2
2
  //# sourceMappingURL=solidify.umd.min.SolidifyAdministrationViewAllProxyRequests.js.map