@genpact/genome.mfe.solidify-app 1.17.2-alpha.133 → 1.17.2-alpha.134

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 (74) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/js/LearnerRereview.js +1 -1
  3. package/dist/js/LearnerRereview.js.map +1 -1
  4. package/dist/js/SolidifyAbout.js +1 -1
  5. package/dist/js/SolidifyAbout.js.map +1 -1
  6. package/dist/js/SolidifyAdministration.js +1 -1
  7. package/dist/js/SolidifyAdministration.js.map +1 -1
  8. package/dist/js/SolidifyAdministrationAssignProxy.js +1 -1
  9. package/dist/js/SolidifyAdministrationAssignProxy.js.map +1 -1
  10. package/dist/js/SolidifyAdministrationAssignRoleToUser.js +1 -1
  11. package/dist/js/SolidifyAdministrationAssignRoleToUser.js.map +1 -1
  12. package/dist/js/SolidifyAdministrationCreateOffCyele.js +1 -1
  13. package/dist/js/SolidifyAdministrationCreateOffCyele.js.map +1 -1
  14. package/dist/js/SolidifyAdministrationEmailTemplateManagement.js +1 -1
  15. package/dist/js/SolidifyAdministrationEmailTemplateManagement.js.map +1 -1
  16. package/dist/js/SolidifyAdministrationLearnerEvents.js +1 -1
  17. package/dist/js/SolidifyAdministrationLearnerEvents.js.map +1 -1
  18. package/dist/js/SolidifyAdministrationLearnerGrades.js +1 -1
  19. package/dist/js/SolidifyAdministrationLearnerGrades.js.map +1 -1
  20. package/dist/js/SolidifyAdministrationManageProxy.js +1 -1
  21. package/dist/js/SolidifyAdministrationManageProxy.js.map +1 -1
  22. package/dist/js/SolidifyAdministrationMasterAdministration.js.map +1 -1
  23. package/dist/js/SolidifyAdministrationNeedReviewerReport.js +1 -1
  24. package/dist/js/SolidifyAdministrationNeedReviewerReport.js.map +1 -1
  25. package/dist/js/SolidifyAdministrationOffcycleDashboard.js +1 -1
  26. package/dist/js/SolidifyAdministrationOffcycleDashboard.js.map +1 -1
  27. package/dist/js/SolidifyAdministrationOperationalDetails.js +1 -1
  28. package/dist/js/SolidifyAdministrationOperationalDetails.js.map +1 -1
  29. package/dist/js/SolidifyAdministrationPlagiarsimReport.js +1 -1
  30. package/dist/js/SolidifyAdministrationPlagiarsimReport.js.map +1 -1
  31. package/dist/js/SolidifyAdministrationProgramAdministration.js +1 -1
  32. package/dist/js/SolidifyAdministrationProgramAdministration.js.map +1 -1
  33. package/dist/js/SolidifyAdministrationProgramDetails.js +1 -1
  34. package/dist/js/SolidifyAdministrationProgramDetails.js.map +1 -1
  35. package/dist/js/SolidifyAdministrationSystemSetting.js +1 -1
  36. package/dist/js/SolidifyAdministrationSystemSetting.js.map +1 -1
  37. package/dist/js/SolidifyAdministrationTaskDetails.js +1 -1
  38. package/dist/js/SolidifyAdministrationTaskDetails.js.map +1 -1
  39. package/dist/js/SolidifyAdministrationTaskManagement.js +1 -1
  40. package/dist/js/SolidifyAdministrationTaskManagement.js.map +1 -1
  41. package/dist/js/SolidifyAdministrationViewAllProxyRequests.js +1 -1
  42. package/dist/js/SolidifyAdministrationViewAllProxyRequests.js.map +1 -1
  43. package/dist/js/SolidifyAdministrationViewEmailQueue.js.map +1 -1
  44. package/dist/js/SolidifyAdministrationViewProxyRequests.js +1 -1
  45. package/dist/js/SolidifyAdministrationViewProxyRequests.js.map +1 -1
  46. package/dist/js/SolidifyAdministrationViewRereviewRequests.js.map +1 -1
  47. package/dist/js/SolidifyAdministrationharvestReport.js +1 -1
  48. package/dist/js/SolidifyAdministrationharvestReport.js.map +1 -1
  49. package/dist/js/SolidifyAdministrationsendEmailToUser.js +1 -1
  50. package/dist/js/SolidifyAdministrationsendEmailToUser.js.map +1 -1
  51. package/dist/js/SolidifyLearner.js +2 -2
  52. package/dist/js/SolidifyLearner.js.map +1 -1
  53. package/dist/js/SolidifyLearnerDone.js +1 -1
  54. package/dist/js/SolidifyLearnerDone.js.map +1 -1
  55. package/dist/js/SolidifyLearnerError.js.map +1 -1
  56. package/dist/js/SolidifyLearnerGating.js +1 -1
  57. package/dist/js/SolidifyLearnerGating.js.map +1 -1
  58. package/dist/js/SolidifyLearnerPeerReview.js +1 -1
  59. package/dist/js/SolidifyLearnerPeerReview.js.map +1 -1
  60. package/dist/js/SolidifyLearnerProxyReview.js +1 -1
  61. package/dist/js/SolidifyLearnerProxyReview.js.map +1 -1
  62. package/dist/js/SolidifyLearnerSelectTask.js +1 -1
  63. package/dist/js/SolidifyLearnerSelectTask.js.map +1 -1
  64. package/dist/js/SolidifyLearnerStatus.js +1 -1
  65. package/dist/js/SolidifyLearnerStatus.js.map +1 -1
  66. package/dist/js/SolidifyLearnerSubmitTask.js +1 -1
  67. package/dist/js/SolidifyLearnerSubmitTask.js.map +1 -1
  68. package/dist/js/SystemUnderMaintenance.js.map +1 -1
  69. package/dist/js/app.js +35 -35
  70. package/dist/js/app.js.map +1 -1
  71. package/dist/js/chunk-8e14f706.js +2 -0
  72. package/dist/js/{chunk-c84d4944.js.map → chunk-8e14f706.js.map} +1 -1
  73. package/package.json +1 -1
  74. package/dist/js/chunk-c84d4944.js +0 -2
@@ -1,2 +1,2 @@
1
- (window["webpackJsonp__@genpact/genome.mfe.solidify-app"]=window["webpackJsonp__@genpact/genome.mfe.solidify-app"]||[]).push([["SolidifyAdministrationViewAllProxyRequests"],{"31fb":function(e,t,a){"use strict";a("7366")},3212:function(e,t,a){"use strict";a.d(t,"f",(function(){return s})),a.d(t,"g",(function(){return l})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return o})),a.d(t,"j",(function(){return c})),a.d(t,"b",(function(){return i})),a.d(t,"k",(function(){return u})),a.d(t,"c",(function(){return d})),a.d(t,"h",(function(){return p})),a.d(t,"i",(function(){return g})),a.d(t,"e",(function(){return v}));var r=a("26fa");const s=async e=>{let t;return await r["b"].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["b"].post(e,t).then(e=>(a=e.data.tasks,a)),a},n=async(e,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data.learnerDetails,a)),a},o=async(e,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data.tasks,a)),a},c=async(e,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data,a)),a},i=async e=>{let t;try{return await r["b"].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["b"].post(e,t).then(e=>(a=e.data.tasks,a)),a},p=async(e,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data.tasks,a)),a},g=async e=>{console.log("inside save task data "+JSON.stringify(e));const t=await r["b"].post("/task/create",e);return t},v=async e=>{try{let t;return await r["b"].get("/admin/task/taskExport/"+e).then(async e=>(t=e.data,t)),t}catch(t){return t}}},"4bb3":function(e,t,a){"use strict";a.d(t,"d",(function(){return s})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return o}));var r=a("26fa");const s=async(e,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data,a)),a},l=async e=>{const t=await r["b"].post("getAllProxyAssignedLearner",e);return t},n=async e=>{const t=await r["b"].post("program/proxies/learners",e);return t},o=async e=>{const t=await r["b"].get(e);return t}},"5cf5":function(e,t,a){"use strict";a("8e6c")},6235:function(e,t,a){"use strict";a.d(t,"c",(function(){return s})),a.d(t,"d",(function(){return l})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o}));var r=a("26fa");const s=async(e,t)=>{const a=await r["b"].post(e,t);return a},l=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},n=async(e,t)=>{let a;return await r["b"].get(`${e}/${t}`).then(e=>(a=e.data.allProxyList,a)),a},o=async(e,t)=>{const a=await r["b"].post(e,t);return a}},7366:function(e,t,a){var r=a("e1d5");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var s=a("c69b").default;s("0cf65af0",r,!0,{sourceMap:!1,shadowMode:!1})},"77d4":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"admin"},[e.showScreen?r("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),r("div",{staticClass:"flex w-full mt-6 justify-end items-center gap-2"},[r("div",{staticClass:"w-1/5"},[r("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)}}})]),r("div",{staticClass:"w-1/5"},[r("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)}}})]),r("div",{staticClass:"pr-3"},[r("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")])])]),r("div",{staticClass:"w-full mt-4"},[r("div",{staticClass:"max-w-6xl m-auto shadow text-background-secondary p-4"},[r("div",{staticClass:"flex w-full mt-6"},[r("div",{staticClass:"w-full pr-3 mb-4"},[r("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Filter Task ")]),r("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)}]}},[r("option",[e._v("Select Program")]),e._l(e.programDetails,(function(t){return r("option",{key:t.program_id,domProps:{value:t.program_id}},[e._v(e._s(t.program_display_name?t.program_display_name:t.program_name))])}))],2)]),e.showSkillProf?r("div",{staticClass:"w-full pr-3 mb-4"},[r("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Skill ")]),r("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)}]}},[r("option",[e._v("Select Skill")]),e._l(e.skills,(function(t){return r("option",{key:t.skill_id,domProps:{value:t.skill_id}},[e._v(e._s(t.skill_alias))])}))],2)]):e._e(),e.showSkillProf?r("div",{staticClass:"w-full pr-3 mb-4"},[r("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Proficiency ")]),r("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)}]}},[r("option",[e._v("Select Proficiency")]),e._l(e.proficiency,(function(t){return r("option",{key:t.prof_id,domProps:{value:t.prof_id}},[e._v(e._s(t.prof_name))])}))],2)]):e._e(),r("div",{staticClass:"w-1/2 pr-3 mb-4"},[r("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Ageing ")]),r("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)}]}},[r("option",[e._v("Select Ageing")]),e._l(e.ageingValues,(function(t){return r("option",{key:t,domProps:{value:t}},[e._v(e._s(t))])}))],2)]),r("div",{staticClass:"w-full mb-4"},[r("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md",class:e.showSearchBtn?"bg-background-secondary":"bg-gray-500 cursor-not-allowed",attrs:{disabled:!e.showSearchBtn},on:{click:function(t){return e.getLearnerForProxy()}}},[e._v(" Search Learners ")])])]),e.showSuccessMessage?r("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?r("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?r("div",{staticClass:"flex w-full mt-6"},[r("div",{staticClass:"w-1/2 pr-3 mb-4"},[r("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?r("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?r("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.learnerData?r("div",{staticClass:"flex w-full"},[r("div",{staticClass:"w-full mt-4 tableScroll"},[r("table",{staticClass:"w-full text-md bg-white rounded"},[r("thead",{staticClass:"opacity-90 -text-blue-800"},[r("tr",{staticClass:"border-b"},[r("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Learner ID")]),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy OHR")]),"infinity"===e.selectedProgram?r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Skill")]):e._e(),"infinity"===e.selectedProgram?r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proficiency")]):e._e(),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Requested Date")]),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Assignment Date")]),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Re-review")]),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])]),r("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredLearnerData,(function(t){return r("tr",{key:t.id,staticClass:"border-b hover:bg-gray-300"},[r("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:t.learner_task_id},domProps:{value:t.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,t.learner_task_id)>-1:e.selectedTaskId},on:{change:[function(a){var r=e.selectedTaskId,s=a.target,l=!!s.checked;if(Array.isArray(r)){var n=t.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)}]}})]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.learner_task_id))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_key))]),"infinity"===e.selectedProgram?r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.skillName))]):e._e(),"infinity"===e.selectedProgram?r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proficiencyName))]):e._e(),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_requested_date))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.assignment_date))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.isRereview))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.ageing))])])})),0)])])]):e._e(),e.isVisible?r("div",{staticClass:"w-full mt-4%"},[r("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyList?r("div",{staticClass:"w-full flex mt-6"},[r("SearchBar",{attrs:{data:e.proxyDetailsArray,placeholder:"Search By Proxy Name"},on:{Filtered:e.getFilteredList}})],1):e._e(),e.proxyAssignedBtn?r("div",{staticClass:"w-1/4 pr-3 mb-4"},[r("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(),r("div",{staticClass:"w-full mt-4"},[r("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[r("thead",{staticClass:"opacity-90 -text-blue-800"},[r("tr",{staticClass:"border-b"},[r("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Name")]),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Email")]),"infinity"===e.selectedProgram?r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")]):e._e(),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])]),r("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredproxyDetails,(function(t,a){return r("tr",{key:a,staticClass:"border-b hover:bg-gray-300"},[r("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedProxyOhr,expression:"selectedProxyOhr"}],attrs:{type:"checkbox",id:t.proxy_ohr},domProps:{value:t.proxy_ohr,checked:Array.isArray(e.selectedProxyOhr)?e._i(e.selectedProxyOhr,t.proxy_ohr)>-1:e.selectedProxyOhr},on:{change:[function(a){var r=e.selectedProxyOhr,s=a.target,l=!!s.checked;if(Array.isArray(r)){var n=t.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}})]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_name))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_email))]),"infinity"===e.selectedProgram?r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_role))]):e._e(),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(t.proxy_ohr))])])})),0)])])]):e._e()])]),e.renderReady?e._e():r("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[r("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),r("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])]):r("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.$createElement,a=e._self._c||t;return a("div",{staticClass:"w-full"},[a("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("All Proxy Review Request")])])}],l=a("c1ec"),n=a("6235"),o=a("4bb3"),c=a("8596"),i=a("1635"),u=a.n(i),d=a("3212"),p=a("1dba"),g=a.n(p),v=a("7856"),f=a("be10"),y=a("d642"),x=a("faec"),b=Object(l["b"])({name:"ViewAllProgramProxyAssignment",components:{SearchBar:x["a"]},setup(){const e=Object(l["f"])(),t=Object(l["f"])(),a=Object(l["f"])(),r=Object(l["f"])(),s=Object(l["f"])(),i=Object(l["f"])(),p=Object(l["f"])(!1),x=Object(l["f"])(!1),b=Object(l["f"])(),m=Object(l["f"])([]),_=Object(l["f"])(),h=Object(l["f"])(!1),k=Object(l["f"])(),w=Object(l["f"])(!0),C=Object(l["f"])(),P=Object(l["f"])(),O=Object(l["f"])(),S=Object(l["f"])(),j=Object(l["f"])(!1),A=Object(l["f"])("Select Program"),D=Object(l["f"])(!1),T=Object(l["f"])(),N=Object(l["f"])(!1),M=Object(l["f"])(!1),R=Object(l["f"])(),L=Object(l["f"])(!1),Y=Object(l["f"])("Select Ageing"),I=Object(l["f"])(),B=Object(l["f"])(),E=Object(l["f"])(),V=Object(l["f"])(["0-5","5-10","10-15","15-20",">20"]),q=Object(l["f"])(""),J=Object(l["f"])(""),$=()=>{_.value=[]},F=()=>{let t,a;console.log(Y.value);let r=!1;"Select Ageing"!==Y.value?(Y.value.includes(">")?(t=Y.value.slice(1),r=!0):[t,a]=Y.value.split("-"),console.log(t,a),I.value=e.value.filter(e=>{if(console.log(e.ageing,e.ageing>=t&&(r||e.ageing<=a)),e.ageing>=t&&(r||e.ageing<=a))return e})):I.value=e.value},H=async()=>{const e=[];I.value.filter(t=>{for(let a=0;a<m.value.length;a+=1)m.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 Object(f["b"])("/proxyreview/nudge",t);console.log(e),T.value=e.data.message,r.value=!0,N.value=!0,M.value=!1,window.scroll(0,0),r.value=!0,setTimeout(()=>{N.value=!1},5e3)}catch(s){if(r.value=!0,g.a.isAxiosError(s)){var a;const e=s;r.value=!0,T.value=null===(a=e.response)||void 0===a?void 0:a.data.message,M.value=!0,N.value=!1,setTimeout(()=>{M.value=!1},5e3)}}},G=e=>{const t=e.target.checked;!0===t?(console.log("selected Task id",m.value),x.value=!0):0===m.value.length&&(x.value=!1,p.value=!1)},U=async()=>{r.value=!1;const e=await Object(n["d"])("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},z=async()=>{r.value=!1,S.value=await Object(d["f"])("/cache?cache=program"),r.value=!0},X=async t=>{r.value=!1,localStorage.setItem("program",t.target.value),localStorage.removeItem("skill"),localStorage.removeItem("proficiency"),A.value=t.target.value,"Select Program"!==A.value?(D.value=!0,"infinity"===A.value?(await U(),s.value="Select Skill",i.value="Select Proficiency",j.value=!0):(j.value=!1,s.value="",i.value="")):(D.value=!1,j.value=!1),x.value=!1,L.value=!1,e.value=[],p.value=!1,m.value=[],I.value=[],r.value=!0},K=async()=>{try{const l={linked_program_name:A.value,skill:s.value,proficiency:i.value};console.log({data:l}),r.value=!1,await $(),m.value=[],x.value=!1,p.value=!1;const n=await Object(o["b"])(l);e.value=n.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")),"infinity"===A.value){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=""}}const c=await Object(y["a"])(A.value),d="PROXY_NUDGE",g=c.prog_detail.email_templates;L.value=void 0!==g[d],I.value=e.value,F(),e.value=e.value.sort((e,t)=>t.ageing-e.ageing)}catch(l){console.log(l)}r.value=!0},Q=async e=>{s.value=e.target.value,console.log("selectedSkill.value "+s.value)},W=async e=>{i.value=e.target.value,console.log("selectedProficiency.value "+i.value)},Z=async()=>{console.log("selectedTaskId.value[0] "+m.value[0]);let t="/v2/admin/proxy/program/"+A.value;const a=e.value.filter(e=>m.value[0]===e.learner_task_id);console.log("selectedLearnerArr "+a),"infinity"===A.value&&(C.value=a[0].skill,P.value=a[0].proficiency,t="/v2/admin/proxy/program/infinity/skill/"+C.value),p.value=!0,r.value=!1;const s=await Object(v["d"])(t);b.value=s.all_proxies,B.value=b.value.map(e=>e.proxy_name),E.value=b.value,r.value=!0,console.log("Proxy List",b.value)},ee=e=>{E.value=b.value.filter(t=>e.includes(t.proxy_name)),console.log("filteredproxyDetails",E.value)},te=async e=>{const t=e.target.checked;h.value=!0===t},ae=async()=>{try{console.log("selectedProxyOhr.value[0] "+_.value[0]),console.log("selectedSkill.value "+s.value),console.log("selectedProficiency.value "+i.value),r.value=!1;const e={proxy_key:_.value[0],learners:m.value,linked_program_name:A.value,skill:C.value,proficiency:P.value},t=await Object(n["a"])("/proxyreview",e);T.value=null===t||void 0===t?void 0:t.data.message,N.value=!0,setTimeout(()=>{N.value=!1},6e3),p.value=!1,await K(),r.value=!0,console.log("data ohr",t)}catch(a){if(g.a.isAxiosError(a)){var e,t;const s=a;console.log("err.response?.data",null===(e=s.response)||void 0===e?void 0:e.data),r.value=!0,T.value=null===(t=s.response)||void 0===t?void 0:t.data.message,console.log("errorMessage.value "+R.value),M.value=!0,setTimeout(()=>{M.value=!1},6e3)}}},re=async()=>{try{if(!q.value||!J.value)return T.value="Start Date or End Date should not be empty",M.value=!0,void setTimeout(()=>{M.value=!1},6e3);const e=await Object(o["c"])(`/admin/proxy/export?start_date=${q.value}&end_date=${J.value}`);O.value="The report will be emailed to you",setTimeout(()=>{O.value=null},6e3),console.log("Report Trigger Response "+e)}catch(a){if(g.a.isAxiosError(a)){var e,t;const s=a;console.log("err.response?.data",null===(e=s.response)||void 0===e?void 0:e.data),r.value=!0,T.value=null===(t=s.response)||void 0===t?void 0:t.data.message,console.log("errorMessage.value "+R.value),M.value=!0,setTimeout(()=>{M.value=!1},6e3)}}};return Object(l["c"])(async()=>{await z();const e=await Object(c["g"])("/getUserRole");k.value=e.user_roles,k.value.length>0&&(k.value.includes("System Admin")||k.value.includes("Community Manager")||k.value.includes("Proxy Admin")?w.value=!0:w.value=!1)}),{learnerData:e,skills:t,proficiency:a,renderReady:r,selectedSkill:s,selectedProficiency:i,getSelectedSkill:Q,getSelectedProficiency:W,isVisible:p,showProxy:Z,getSkillandProf:U,getLearnerForProxy:K,selectedTaskId:m,proxyButtonVisible:x,setProxyBtn:G,proxyList:b,selectedProxyOhr:_,checkOne:$,showAssignProxyBtn:te,proxyAssignedBtn:h,assignLearnerToProxy:ae,showScreen:w,triggerProxyReport:re,reportSuccessMessage:O,programDetails:S,getSelectedProgram:X,showSearchBtn:D,selectedProgram:A,showSkillProf:j,resMessage:T,showSuccessMessage:N,showErrorMessage:M,errorMessage:R,performAgeingFilter:F,ageingValues:V,filteredLearnerData:I,selectedAgeing:Y,sendNudge:H,nudgeButtonVisible:L,getFilteredList:ee,filteredproxyDetails:E,proxyDetailsArray:B,rangeStart:q,rangeEnd:J}}}),m=b,_=(a("31fb"),a("dcde")),h=Object(_["a"])(m,r,s,!1,null,"89eb8a76",null);t["default"]=h.exports},7856:function(e,t,a){"use strict";a.d(t,"e",(function(){return s})),a.d(t,"d",(function(){return l})),a.d(t,"c",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return c}));var r=a("26fa");const s=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},l=async e=>{const t=await r["b"].get(e);return t.data},n=async(e,t)=>{const a=await r["b"].post(e,t);return a.data},o=async(e,t)=>{const a=await r["b"].post(e,t);return a.data.resp_message},c=async(e,t)=>{const a=await r["b"].post(e,t);return a.data.resp_message}},"7fc5":function(e,t,a){var r=a("aff5");t=r(!1),t.push([e.i,".pageLoader[data-v-3852f9a4]{position:fixed;top:30%;left:42%}.tableScroll[data-v-3852f9a4]{max-height:50vh;overflow-y:auto}",""]),e.exports=t},8596:function(e,t,a){"use strict";a.d(t,"y",(function(){return s})),a.d(t,"t",(function(){return l})),a.d(t,"u",(function(){return n})),a.d(t,"e",(function(){return o})),a.d(t,"x",(function(){return c})),a.d(t,"z",(function(){return i})),a.d(t,"r",(function(){return u})),a.d(t,"s",(function(){return d})),a.d(t,"f",(function(){return p})),a.d(t,"v",(function(){return g})),a.d(t,"h",(function(){return v})),a.d(t,"j",(function(){return f})),a.d(t,"q",(function(){return y})),a.d(t,"o",(function(){return x})),a.d(t,"p",(function(){return b})),a.d(t,"m",(function(){return m})),a.d(t,"k",(function(){return _})),a.d(t,"l",(function(){return h})),a.d(t,"A",(function(){return k})),a.d(t,"C",(function(){return w})),a.d(t,"w",(function(){return C})),a.d(t,"n",(function(){return P})),a.d(t,"i",(function(){return O})),a.d(t,"g",(function(){return S})),a.d(t,"a",(function(){return j})),a.d(t,"B",(function(){return A})),a.d(t,"b",(function(){return D})),a.d(t,"d",(function(){return T})),a.d(t,"c",(function(){return N}));var r=a("26fa");const s=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},l=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},n=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},o=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},c=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},i=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},u=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},d=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},p=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},g=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},v=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},f=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},y=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data.userObj,t)),t},x=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data.userObj,t)),t},b=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data.userObj,t)),t},m=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},_=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},h=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},k=async e=>{const t=await r["b"].get(e);return t},w=async e=>{const t=await r["b"].get(e);return t},C=async e=>{const t=await r["b"].get(e);return t},P=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},O=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},S=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data.userObj,t)),t},j=async e=>{const t=await r["b"].post("/user/role",e);return t},A=async e=>{const t=await r["b"].post("/user/removeRole",e);return t},D=async()=>{const e=await r["b"].get("role");return e},T=async e=>{const t=await r["b"].post("/user/saveLSS",e);return t},N=async e=>{const t=await r["b"].post("/user/saveEnvAccess",e);return t}},"8e6c":function(e,t,a){var r=a("7fc5");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var s=a("c69b").default;s("12c9efd2",r,!0,{sourceMap:!1,shadowMode:!1})},"9d04":function(e,t,a){e.exports=a.p+"img/loadernew.gif"},d642:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return n}));var r=a("26fa");const s=async e=>{try{let t;return await r["b"].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["b"].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["b"].post("/program/email/event/create",e);return t}},e1d5:function(e,t,a){var r=a("aff5");t=r(!1),t.push([e.i,".pageLoader[data-v-89eb8a76]{position:fixed;top:30%;left:42%}.tableScroll[data-v-89eb8a76]{max-height:50vh;overflow-y:auto}",""]),e.exports=t},e738:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"admin"},[e.showScreen?r("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),r("div",{staticClass:"flex w-full mt-6"},[r("div",{staticClass:"pr-3 mb-4 w-full text-right"},[r("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")])])]),r("div",{staticClass:"w-full mt-4"},[r("div",{staticClass:"max-w-6xl m-auto shadow text-background-secondary p-4"},[r("div",{staticClass:"flex w-full mt-6"},[r("div",{staticClass:"w-full pr-3 mb-4"},[r("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Skill ")]),r("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)}}},[r("option",[e._v("Select Skill")]),e._l(e.skills,(function(t){return r("option",{key:t.skill_id,domProps:{value:t.skill_id}},[e._v(e._s(t.skill_alias))])}))],2)]),r("div",{staticClass:"w-full pr-3 mb-4"},[r("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Proficiency ")]),r("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)}}},[r("option",[e._v("Select Proficiency")]),e._l(e.proficiency,(function(t){return r("option",{key:t.prof_id,domProps:{value:t.prof_id}},[e._v(e._s(t.prof_name))])}))],2)]),r("div",{staticClass:"w-full mb-4"},[r("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?r("div",{staticClass:"flex w-full mt-6"},[r("div",{staticClass:"w-1/4 pr-3 mb-4"},[r("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?r("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.learnerData?r("div",{staticClass:"flex w-full"},[r("div",{staticClass:"w-full mt-4 tableScroll"},[r("table",{staticClass:"w-full text-md bg-white rounded"},[e._m(1),r("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.learnerData,(function(t){return r("tr",{key:t.id,staticClass:"border-b hover:bg-gray-300"},[r("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:t.learner_task_id},domProps:{value:t.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,t.learner_task_id)>-1:e.selectedTaskId},on:{click:function(t){return e.setProxyBtn(t)},change:function(a){var r=e.selectedTaskId,s=a.target,l=!!s.checked;if(Array.isArray(r)){var n=t.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}}})]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.learner_task_id))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_key))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.skillName))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proficiencyName))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_requested_date))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.assignment_date))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.isRereview))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.ageing))])])})),0)])])]):e._e(),e.isVisible?r("div",{staticClass:"w-full mt-4%"},[r("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyAssignedBtn?r("div",{staticClass:"w-1/4 pr-3 mb-4"},[r("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(),r("div",{staticClass:"w-full mt-4"},[r("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[e._m(2),r("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.proxyList,(function(t){return r("tr",{key:t.proxy_ohr,staticClass:"border-b hover:bg-gray-300"},[r("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedProxyOhr,expression:"selectedProxyOhr"}],attrs:{type:"checkbox",id:t.proxy_ohr},domProps:{value:t.proxy_ohr,checked:Array.isArray(e.selectedProxyOhr)?e._i(e.selectedProxyOhr,t.proxy_ohr)>-1:e.selectedProxyOhr},on:{change:[function(a){var r=e.selectedProxyOhr,s=a.target,l=!!s.checked;if(Array.isArray(r)){var n=t.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}})]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_name))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_email))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_role))]),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(t.proxy_ohr))])])})),0)])])]):e._e()])]),e.renderReady?e._e():r("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[r("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),r("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])]):r("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.$createElement,a=e._self._c||t;return a("div",{staticClass:"w-full"},[a("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("All Proxy Review Request")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",{staticClass:"opacity-90 -text-blue-800"},[a("tr",{staticClass:"border-b"},[a("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Learner ID")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy OHR")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Skill")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proficiency")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Requested Date")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Assignment Date")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Re-review")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",{staticClass:"opacity-90 -text-blue-800"},[a("tr",{staticClass:"border-b"},[a("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Name")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Email")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])])}],l=a("c1ec"),n=a("6235"),o=a("4bb3"),c=a("8596"),i=a("1635"),u=a.n(i),d=Object(l["b"])({name:"AssignProxy",setup(){const e=Object(l["f"])(),t=Object(l["f"])(),a=Object(l["f"])(),r=Object(l["f"])(),s=Object(l["f"])(),i=Object(l["f"])(),d=Object(l["f"])(!1),p=Object(l["f"])(!1),g=Object(l["f"])(),v=Object(l["f"])([]),f=Object(l["f"])(),y=Object(l["f"])(!1),x=Object(l["f"])(),b=Object(l["f"])(!0),m=Object(l["f"])(),_=Object(l["f"])(),h=Object(l["f"])(),k=()=>{f.value=[]},w=e=>{v.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 Object(n["d"])("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},O=async()=>{try{console.log(C),r.value=!1,await k(),v.value=[];const s=await Object(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)}},S=async e=>{s.value=e.target.value,Object.assign(C,{skill:s.value})},j=async e=>{i.value=e.target.value,Object.assign(C,{proficiency:i.value})},A=async()=>{console.log("selectedTaskId.value[0] "+v.value[0]);const t=e.value.filter(e=>v.value[0]===e.learner_task_id);console.log("selectedLearnerArr "+t),m.value=t[0].skill,_.value=t[0].proficiency,d.value=!0,r.value=!1,g.value=await Object(n["b"])("/getAllProxyBySkill",m.value),r.value=!0,console.log("Proxy List",g.value)},D=async e=>{const t=e.target.checked;y.value=!0===t},T=async()=>{try{console.log("selectedProxyOhr.value[0] "+f.value[0]),console.log("selectedSkill.value "+m.value),console.log("selectedProficiency.value "+_.value),r.value=!1;const e={proxy_key:f.value[0],learners:v.value,linked_program_name:"infinity",skill:m.value,proficiency:_.value},t=await Object(n["a"])("/proxyreview",e);d.value=!1,await O(),r.value=!0,console.log("data ohr",t)}catch(e){console.log("data ohr",e)}},N=async()=>{const e=await Object(o["c"])("/admin/proxy/export");h.value="The report will be emailed to you",setTimeout(()=>{h.value=null},6e3),console.log("Report Trigger Response "+e)};return Object(l["c"])(async()=>{await P();const e=await Object(c["g"])("/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")?b.value=!0:b.value=!1)}),{learnerData:e,skills:t,proficiency:a,renderReady:r,getSelectedSkill:S,getSelectedProficiency:j,isVisible:d,showProxy:A,getSkillandProf:P,getLearnerForProxy:O,selectedTaskId:v,proxyButtonVisible:p,setProxyBtn:w,proxyList:g,selectedProxyOhr:f,checkOne:k,showAssignProxyBtn:D,proxyAssignedBtn:y,assignLearnerToProxy:T,showScreen:b,triggerProxyReport:N,reportSuccessMessage:h}}}),p=d,g=(a("5cf5"),a("dcde")),v=Object(g["a"])(p,r,s,!1,null,"3852f9a4",null);t["default"]=v.exports},faec:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"w-full flex mt-6"},[a("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("c1ec"),n=Object(l["b"])({name:"SearchBar",props:{data:[Array],placeholder:{type:String,default:"Search"}},setup(e){const t=Object(l["f"])(""),a=Object(l["f"])(),r=Object(l["f"])(),s=Object(l["f"])(),n=()=>{s.value=e.data,r.value=s.value.filter(e=>e.toLowerCase().includes(t.value.toLowerCase()))};return Object(l["c"])(async()=>{a.value=e.placeholder,console.log("props.placeholder",e.placeholder)}),{placeHolder1:a,filteredProgramDetails:r,filterProgramDetails:n,search:t}}}),o=n,c=a("dcde"),i=Object(c["a"])(o,r,s,!1,null,null,null);t["a"]=i.exports}}]);
1
+ (window["webpackJsonp__@genpact/genome.mfe.solidify-app"]=window["webpackJsonp__@genpact/genome.mfe.solidify-app"]||[]).push([["SolidifyAdministrationViewAllProxyRequests"],{"31fb":function(e,t,a){"use strict";a("6e32")},3212:function(e,t,a){"use strict";a.d(t,"f",(function(){return s})),a.d(t,"g",(function(){return l})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return o})),a.d(t,"j",(function(){return c})),a.d(t,"b",(function(){return i})),a.d(t,"k",(function(){return u})),a.d(t,"c",(function(){return d})),a.d(t,"h",(function(){return p})),a.d(t,"i",(function(){return g})),a.d(t,"e",(function(){return v}));var r=a("26fa");const s=async e=>{let t;return await r["b"].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["b"].post(e,t).then(e=>(a=e.data.tasks,a)),a},n=async(e,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data.learnerDetails,a)),a},o=async(e,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data.tasks,a)),a},c=async(e,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data,a)),a},i=async e=>{let t;try{return await r["b"].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["b"].post(e,t).then(e=>(a=e.data.tasks,a)),a},p=async(e,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data.tasks,a)),a},g=async e=>{console.log("inside save task data "+JSON.stringify(e));const t=await r["b"].post("/task/create",e);return t},v=async e=>{try{let t;return await r["b"].get("/admin/task/taskExport/"+e).then(async e=>(t=e.data,t)),t}catch(t){return t}}},"4bb3":function(e,t,a){"use strict";a.d(t,"d",(function(){return s})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return o}));var r=a("26fa");const s=async(e,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data,a)),a},l=async e=>{const t=await r["b"].post("getAllProxyAssignedLearner",e);return t},n=async e=>{const t=await r["b"].post("program/proxies/learners",e);return t},o=async e=>{const t=await r["b"].get(e);return t}},"5cf5":function(e,t,a){"use strict";a("e532")},6235:function(e,t,a){"use strict";a.d(t,"c",(function(){return s})),a.d(t,"d",(function(){return l})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o}));var r=a("26fa");const s=async(e,t)=>{const a=await r["b"].post(e,t);return a},l=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},n=async(e,t)=>{let a;return await r["b"].get(`${e}/${t}`).then(e=>(a=e.data.allProxyList,a)),a},o=async(e,t)=>{const a=await r["b"].post(e,t);return a}},"6e32":function(e,t,a){var r=a("b047");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var s=a("c69b").default;s("56c67fcf",r,!0,{sourceMap:!1,shadowMode:!1})},"77d4":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"admin"},[e.showScreen?r("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),r("div",{staticClass:"flex w-full mt-6 justify-end items-center gap-2"},[r("div",{staticClass:"w-1/5"},[r("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)}}})]),r("div",{staticClass:"w-1/5"},[r("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)}}})]),r("div",{staticClass:"pr-3"},[r("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")])])]),r("div",{staticClass:"w-full mt-4"},[r("div",{staticClass:"max-w-6xl m-auto shadow text-background-secondary p-4"},[r("div",{staticClass:"flex w-full mt-6"},[r("div",{staticClass:"w-full pr-3 mb-4"},[r("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Filter Task ")]),r("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)}]}},[r("option",[e._v("Select Program")]),e._l(e.programDetails,(function(t){return r("option",{key:t.program_id,domProps:{value:t.program_id}},[e._v(e._s(t.program_display_name?t.program_display_name:t.program_name))])}))],2)]),e.showSkillProf?r("div",{staticClass:"w-full pr-3 mb-4"},[r("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Skill ")]),r("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)}]}},[r("option",[e._v("Select Skill")]),e._l(e.skills,(function(t){return r("option",{key:t.skill_id,domProps:{value:t.skill_id}},[e._v(e._s(t.skill_alias))])}))],2)]):e._e(),e.showSkillProf?r("div",{staticClass:"w-full pr-3 mb-4"},[r("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Proficiency ")]),r("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)}]}},[r("option",[e._v("Select Proficiency")]),e._l(e.proficiency,(function(t){return r("option",{key:t.prof_id,domProps:{value:t.prof_id}},[e._v(e._s(t.prof_name))])}))],2)]):e._e(),r("div",{staticClass:"w-1/2 pr-3 mb-4"},[r("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Ageing ")]),r("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)}]}},[r("option",[e._v("Select Ageing")]),e._l(e.ageingValues,(function(t){return r("option",{key:t,domProps:{value:t}},[e._v(e._s(t))])}))],2)]),r("div",{staticClass:"w-full mb-4"},[r("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md",class:e.showSearchBtn?"bg-background-secondary":"bg-gray-500 cursor-not-allowed",attrs:{disabled:!e.showSearchBtn},on:{click:function(t){return e.getLearnerForProxy()}}},[e._v(" Search Learners ")])])]),e.showSuccessMessage?r("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?r("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?r("div",{staticClass:"flex w-full mt-6"},[r("div",{staticClass:"w-1/2 pr-3 mb-4"},[r("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?r("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?r("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.learnerData?r("div",{staticClass:"flex w-full"},[r("div",{staticClass:"w-full mt-4 tableScroll"},[r("table",{staticClass:"w-full text-md bg-white rounded"},[r("thead",{staticClass:"opacity-90 -text-blue-800"},[r("tr",{staticClass:"border-b"},[r("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Learner ID")]),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy OHR")]),"infinity"===e.selectedProgram?r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Skill")]):e._e(),"infinity"===e.selectedProgram?r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proficiency")]):e._e(),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Requested Date")]),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Assignment Date")]),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Re-review")]),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])]),r("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredLearnerData,(function(t){return r("tr",{key:t.id,staticClass:"border-b hover:bg-gray-300"},[r("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:t.learner_task_id},domProps:{value:t.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,t.learner_task_id)>-1:e.selectedTaskId},on:{change:[function(a){var r=e.selectedTaskId,s=a.target,l=!!s.checked;if(Array.isArray(r)){var n=t.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)}]}})]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.learner_task_id))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_key))]),"infinity"===e.selectedProgram?r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.skillName))]):e._e(),"infinity"===e.selectedProgram?r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proficiencyName))]):e._e(),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_requested_date))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.assignment_date))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.isRereview))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.ageing))])])})),0)])])]):e._e(),e.isVisible?r("div",{staticClass:"w-full mt-4%"},[r("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyList?r("div",{staticClass:"w-full flex mt-6"},[r("SearchBar",{attrs:{data:e.proxyDetailsArray,placeholder:"Search By Proxy Name"},on:{Filtered:e.getFilteredList}})],1):e._e(),e.proxyAssignedBtn?r("div",{staticClass:"w-1/4 pr-3 mb-4"},[r("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(),r("div",{staticClass:"w-full mt-4"},[r("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[r("thead",{staticClass:"opacity-90 -text-blue-800"},[r("tr",{staticClass:"border-b"},[r("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Name")]),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Email")]),"infinity"===e.selectedProgram?r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")]):e._e(),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])]),r("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredproxyDetails,(function(t,a){return r("tr",{key:a,staticClass:"border-b hover:bg-gray-300"},[r("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedProxyOhr,expression:"selectedProxyOhr"}],attrs:{type:"checkbox",id:t.proxy_ohr},domProps:{value:t.proxy_ohr,checked:Array.isArray(e.selectedProxyOhr)?e._i(e.selectedProxyOhr,t.proxy_ohr)>-1:e.selectedProxyOhr},on:{change:[function(a){var r=e.selectedProxyOhr,s=a.target,l=!!s.checked;if(Array.isArray(r)){var n=t.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}})]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_name))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_email))]),"infinity"===e.selectedProgram?r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_role))]):e._e(),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(t.proxy_ohr))])])})),0)])])]):e._e()])]),e.renderReady?e._e():r("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[r("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),r("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])]):r("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.$createElement,a=e._self._c||t;return a("div",{staticClass:"w-full"},[a("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("All Proxy Review Request")])])}],l=a("c1ec"),n=a("6235"),o=a("4bb3"),c=a("8596"),i=a("1635"),u=a.n(i),d=a("3212"),p=a("1dba"),g=a.n(p),v=a("7856"),f=a("be10"),y=a("d642"),x=a("faec"),b=Object(l["b"])({name:"ViewAllProgramProxyAssignment",components:{SearchBar:x["a"]},setup(){const e=Object(l["f"])(),t=Object(l["f"])(),a=Object(l["f"])(),r=Object(l["f"])(),s=Object(l["f"])(),i=Object(l["f"])(),p=Object(l["f"])(!1),x=Object(l["f"])(!1),b=Object(l["f"])(),m=Object(l["f"])([]),_=Object(l["f"])(),h=Object(l["f"])(!1),k=Object(l["f"])(),w=Object(l["f"])(!0),C=Object(l["f"])(),P=Object(l["f"])(),O=Object(l["f"])(),S=Object(l["f"])(),j=Object(l["f"])(!1),A=Object(l["f"])("Select Program"),D=Object(l["f"])(!1),T=Object(l["f"])(),N=Object(l["f"])(!1),M=Object(l["f"])(!1),R=Object(l["f"])(),L=Object(l["f"])(!1),Y=Object(l["f"])("Select Ageing"),I=Object(l["f"])(),B=Object(l["f"])(),E=Object(l["f"])(),V=Object(l["f"])(["0-5","5-10","10-15","15-20",">20"]),q=Object(l["f"])(""),J=Object(l["f"])(""),$=()=>{_.value=[]},F=()=>{let t,a;console.log(Y.value);let r=!1;"Select Ageing"!==Y.value?(Y.value.includes(">")?(t=Y.value.slice(1),r=!0):[t,a]=Y.value.split("-"),console.log(t,a),I.value=e.value.filter(e=>{if(console.log(e.ageing,e.ageing>=t&&(r||e.ageing<=a)),e.ageing>=t&&(r||e.ageing<=a))return e})):I.value=e.value},H=async()=>{const e=[];I.value.filter(t=>{for(let a=0;a<m.value.length;a+=1)m.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 Object(f["b"])("/proxyreview/nudge",t);console.log(e),T.value=e.data.message,r.value=!0,N.value=!0,M.value=!1,window.scroll(0,0),r.value=!0,setTimeout(()=>{N.value=!1},5e3)}catch(s){if(r.value=!0,g.a.isAxiosError(s)){var a;const e=s;r.value=!0,T.value=null===(a=e.response)||void 0===a?void 0:a.data.message,M.value=!0,N.value=!1,setTimeout(()=>{M.value=!1},5e3)}}},G=e=>{const t=e.target.checked;!0===t?(console.log("selected Task id",m.value),x.value=!0):0===m.value.length&&(x.value=!1,p.value=!1)},U=async()=>{r.value=!1;const e=await Object(n["d"])("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},z=async()=>{r.value=!1,S.value=await Object(d["f"])("/cache?cache=program"),r.value=!0},X=async t=>{r.value=!1,localStorage.setItem("program",t.target.value),localStorage.removeItem("skill"),localStorage.removeItem("proficiency"),A.value=t.target.value,"Select Program"!==A.value?(D.value=!0,"infinity"===A.value?(await U(),s.value="Select Skill",i.value="Select Proficiency",j.value=!0):(j.value=!1,s.value="",i.value="")):(D.value=!1,j.value=!1),x.value=!1,L.value=!1,e.value=[],p.value=!1,m.value=[],I.value=[],r.value=!0},K=async()=>{try{const l={linked_program_name:A.value,skill:s.value,proficiency:i.value};console.log({data:l}),r.value=!1,await $(),m.value=[],x.value=!1,p.value=!1;const n=await Object(o["b"])(l);e.value=n.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")),"infinity"===A.value){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=""}}const c=await Object(y["a"])(A.value),d="PROXY_NUDGE",g=c.prog_detail.email_templates;L.value=void 0!==g[d],I.value=e.value,F(),e.value=e.value.sort((e,t)=>t.ageing-e.ageing)}catch(l){console.log(l)}r.value=!0},Q=async e=>{s.value=e.target.value,console.log("selectedSkill.value "+s.value)},W=async e=>{i.value=e.target.value,console.log("selectedProficiency.value "+i.value)},Z=async()=>{console.log("selectedTaskId.value[0] "+m.value[0]);let t="/v2/admin/proxy/program/"+A.value;const a=e.value.filter(e=>m.value[0]===e.learner_task_id);console.log("selectedLearnerArr "+a),"infinity"===A.value&&(C.value=a[0].skill,P.value=a[0].proficiency,t="/v2/admin/proxy/program/infinity/skill/"+C.value),p.value=!0,r.value=!1;const s=await Object(v["d"])(t);b.value=s.all_proxies,B.value=b.value.map(e=>e.proxy_name),E.value=b.value,r.value=!0,console.log("Proxy List",b.value)},ee=e=>{E.value=b.value.filter(t=>e.includes(t.proxy_name)),console.log("filteredproxyDetails",E.value)},te=async e=>{const t=e.target.checked;h.value=!0===t},ae=async()=>{try{console.log("selectedProxyOhr.value[0] "+_.value[0]),console.log("selectedSkill.value "+s.value),console.log("selectedProficiency.value "+i.value),r.value=!1;const e={proxy_key:_.value[0],learners:m.value,linked_program_name:A.value,skill:C.value,proficiency:P.value},t=await Object(n["a"])("/proxyreview",e);T.value=null===t||void 0===t?void 0:t.data.message,N.value=!0,setTimeout(()=>{N.value=!1},6e3),p.value=!1,await K(),r.value=!0,console.log("data ohr",t)}catch(a){if(g.a.isAxiosError(a)){var e,t;const s=a;console.log("err.response?.data",null===(e=s.response)||void 0===e?void 0:e.data),r.value=!0,T.value=null===(t=s.response)||void 0===t?void 0:t.data.message,console.log("errorMessage.value "+R.value),M.value=!0,setTimeout(()=>{M.value=!1},6e3)}}},re=async()=>{try{if(!q.value||!J.value)return T.value="Start Date or End Date should not be empty",M.value=!0,void setTimeout(()=>{M.value=!1},6e3);const e=await Object(o["c"])(`/admin/proxy/export?start_date=${q.value}&end_date=${J.value}`);O.value="The report will be emailed to you",setTimeout(()=>{O.value=null},6e3),console.log("Report Trigger Response "+e)}catch(a){if(g.a.isAxiosError(a)){var e,t;const s=a;console.log("err.response?.data",null===(e=s.response)||void 0===e?void 0:e.data),r.value=!0,T.value=null===(t=s.response)||void 0===t?void 0:t.data.message,console.log("errorMessage.value "+R.value),M.value=!0,setTimeout(()=>{M.value=!1},6e3)}}};return Object(l["c"])(async()=>{await z();const e=await Object(c["g"])("/getUserRole");k.value=e.user_roles,k.value.length>0&&(k.value.includes("System Admin")||k.value.includes("Community Manager")||k.value.includes("Proxy Admin")?w.value=!0:w.value=!1)}),{learnerData:e,skills:t,proficiency:a,renderReady:r,selectedSkill:s,selectedProficiency:i,getSelectedSkill:Q,getSelectedProficiency:W,isVisible:p,showProxy:Z,getSkillandProf:U,getLearnerForProxy:K,selectedTaskId:m,proxyButtonVisible:x,setProxyBtn:G,proxyList:b,selectedProxyOhr:_,checkOne:$,showAssignProxyBtn:te,proxyAssignedBtn:h,assignLearnerToProxy:ae,showScreen:w,triggerProxyReport:re,reportSuccessMessage:O,programDetails:S,getSelectedProgram:X,showSearchBtn:D,selectedProgram:A,showSkillProf:j,resMessage:T,showSuccessMessage:N,showErrorMessage:M,errorMessage:R,performAgeingFilter:F,ageingValues:V,filteredLearnerData:I,selectedAgeing:Y,sendNudge:H,nudgeButtonVisible:L,getFilteredList:ee,filteredproxyDetails:E,proxyDetailsArray:B,rangeStart:q,rangeEnd:J}}}),m=b,_=(a("31fb"),a("dcde")),h=Object(_["a"])(m,r,s,!1,null,"89eb8a76",null);t["default"]=h.exports},7856:function(e,t,a){"use strict";a.d(t,"e",(function(){return s})),a.d(t,"d",(function(){return l})),a.d(t,"c",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return c}));var r=a("26fa");const s=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},l=async e=>{const t=await r["b"].get(e);return t.data},n=async(e,t)=>{const a=await r["b"].post(e,t);return a.data},o=async(e,t)=>{const a=await r["b"].post(e,t);return a.data.resp_message},c=async(e,t)=>{const a=await r["b"].post(e,t);return a.data.resp_message}},"7a0d":function(e,t,a){var r=a("740a");t=r(!1),t.push([e.i,".pageLoader[data-v-3852f9a4]{position:fixed;top:30%;left:42%}.tableScroll[data-v-3852f9a4]{max-height:50vh;overflow-y:auto}",""]),e.exports=t},8596:function(e,t,a){"use strict";a.d(t,"y",(function(){return s})),a.d(t,"t",(function(){return l})),a.d(t,"u",(function(){return n})),a.d(t,"e",(function(){return o})),a.d(t,"x",(function(){return c})),a.d(t,"z",(function(){return i})),a.d(t,"r",(function(){return u})),a.d(t,"s",(function(){return d})),a.d(t,"f",(function(){return p})),a.d(t,"v",(function(){return g})),a.d(t,"h",(function(){return v})),a.d(t,"j",(function(){return f})),a.d(t,"q",(function(){return y})),a.d(t,"o",(function(){return x})),a.d(t,"p",(function(){return b})),a.d(t,"m",(function(){return m})),a.d(t,"k",(function(){return _})),a.d(t,"l",(function(){return h})),a.d(t,"A",(function(){return k})),a.d(t,"C",(function(){return w})),a.d(t,"w",(function(){return C})),a.d(t,"n",(function(){return P})),a.d(t,"i",(function(){return O})),a.d(t,"g",(function(){return S})),a.d(t,"a",(function(){return j})),a.d(t,"B",(function(){return A})),a.d(t,"b",(function(){return D})),a.d(t,"d",(function(){return T})),a.d(t,"c",(function(){return N}));var r=a("26fa");const s=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},l=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},n=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},o=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},c=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},i=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},u=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},d=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},p=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},g=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},v=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},f=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},y=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data.userObj,t)),t},x=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data.userObj,t)),t},b=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data.userObj,t)),t},m=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},_=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},h=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},k=async e=>{const t=await r["b"].get(e);return t},w=async e=>{const t=await r["b"].get(e);return t},C=async e=>{const t=await r["b"].get(e);return t},P=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},O=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},S=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data.userObj,t)),t},j=async e=>{const t=await r["b"].post("/user/role",e);return t},A=async e=>{const t=await r["b"].post("/user/removeRole",e);return t},D=async()=>{const e=await r["b"].get("role");return e},T=async e=>{const t=await r["b"].post("/user/saveLSS",e);return t},N=async e=>{const t=await r["b"].post("/user/saveEnvAccess",e);return t}},"9d04":function(e,t,a){e.exports=a.p+"img/loadernew.gif"},b047:function(e,t,a){var r=a("740a");t=r(!1),t.push([e.i,".pageLoader[data-v-89eb8a76]{position:fixed;top:30%;left:42%}.tableScroll[data-v-89eb8a76]{max-height:50vh;overflow-y:auto}",""]),e.exports=t},d642:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return n}));var r=a("26fa");const s=async e=>{try{let t;return await r["b"].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["b"].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["b"].post("/program/email/event/create",e);return t}},e532:function(e,t,a){var r=a("7a0d");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var s=a("c69b").default;s("3d2bfc9e",r,!0,{sourceMap:!1,shadowMode:!1})},e738:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"admin"},[e.showScreen?r("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),r("div",{staticClass:"flex w-full mt-6"},[r("div",{staticClass:"pr-3 mb-4 w-full text-right"},[r("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")])])]),r("div",{staticClass:"w-full mt-4"},[r("div",{staticClass:"max-w-6xl m-auto shadow text-background-secondary p-4"},[r("div",{staticClass:"flex w-full mt-6"},[r("div",{staticClass:"w-full pr-3 mb-4"},[r("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Skill ")]),r("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)}}},[r("option",[e._v("Select Skill")]),e._l(e.skills,(function(t){return r("option",{key:t.skill_id,domProps:{value:t.skill_id}},[e._v(e._s(t.skill_alias))])}))],2)]),r("div",{staticClass:"w-full pr-3 mb-4"},[r("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Proficiency ")]),r("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)}}},[r("option",[e._v("Select Proficiency")]),e._l(e.proficiency,(function(t){return r("option",{key:t.prof_id,domProps:{value:t.prof_id}},[e._v(e._s(t.prof_name))])}))],2)]),r("div",{staticClass:"w-full mb-4"},[r("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?r("div",{staticClass:"flex w-full mt-6"},[r("div",{staticClass:"w-1/4 pr-3 mb-4"},[r("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?r("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.learnerData?r("div",{staticClass:"flex w-full"},[r("div",{staticClass:"w-full mt-4 tableScroll"},[r("table",{staticClass:"w-full text-md bg-white rounded"},[e._m(1),r("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.learnerData,(function(t){return r("tr",{key:t.id,staticClass:"border-b hover:bg-gray-300"},[r("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:t.learner_task_id},domProps:{value:t.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,t.learner_task_id)>-1:e.selectedTaskId},on:{click:function(t){return e.setProxyBtn(t)},change:function(a){var r=e.selectedTaskId,s=a.target,l=!!s.checked;if(Array.isArray(r)){var n=t.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}}})]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.learner_task_id))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_key))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.skillName))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proficiencyName))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_requested_date))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.assignment_date))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.isRereview))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.ageing))])])})),0)])])]):e._e(),e.isVisible?r("div",{staticClass:"w-full mt-4%"},[r("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyAssignedBtn?r("div",{staticClass:"w-1/4 pr-3 mb-4"},[r("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(),r("div",{staticClass:"w-full mt-4"},[r("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[e._m(2),r("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.proxyList,(function(t){return r("tr",{key:t.proxy_ohr,staticClass:"border-b hover:bg-gray-300"},[r("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedProxyOhr,expression:"selectedProxyOhr"}],attrs:{type:"checkbox",id:t.proxy_ohr},domProps:{value:t.proxy_ohr,checked:Array.isArray(e.selectedProxyOhr)?e._i(e.selectedProxyOhr,t.proxy_ohr)>-1:e.selectedProxyOhr},on:{change:[function(a){var r=e.selectedProxyOhr,s=a.target,l=!!s.checked;if(Array.isArray(r)){var n=t.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}})]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_name))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_email))]),r("td",{staticClass:"p-2 px-3"},[e._v(e._s(t.proxy_role))]),r("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(t.proxy_ohr))])])})),0)])])]):e._e()])]),e.renderReady?e._e():r("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[r("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),r("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])]):r("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.$createElement,a=e._self._c||t;return a("div",{staticClass:"w-full"},[a("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("All Proxy Review Request")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",{staticClass:"opacity-90 -text-blue-800"},[a("tr",{staticClass:"border-b"},[a("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Learner ID")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy OHR")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Skill")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proficiency")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Requested Date")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Assignment Date")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Re-review")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",{staticClass:"opacity-90 -text-blue-800"},[a("tr",{staticClass:"border-b"},[a("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Name")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Email")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")]),a("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])])}],l=a("c1ec"),n=a("6235"),o=a("4bb3"),c=a("8596"),i=a("1635"),u=a.n(i),d=Object(l["b"])({name:"AssignProxy",setup(){const e=Object(l["f"])(),t=Object(l["f"])(),a=Object(l["f"])(),r=Object(l["f"])(),s=Object(l["f"])(),i=Object(l["f"])(),d=Object(l["f"])(!1),p=Object(l["f"])(!1),g=Object(l["f"])(),v=Object(l["f"])([]),f=Object(l["f"])(),y=Object(l["f"])(!1),x=Object(l["f"])(),b=Object(l["f"])(!0),m=Object(l["f"])(),_=Object(l["f"])(),h=Object(l["f"])(),k=()=>{f.value=[]},w=e=>{v.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 Object(n["d"])("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},O=async()=>{try{console.log(C),r.value=!1,await k(),v.value=[];const s=await Object(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)}},S=async e=>{s.value=e.target.value,Object.assign(C,{skill:s.value})},j=async e=>{i.value=e.target.value,Object.assign(C,{proficiency:i.value})},A=async()=>{console.log("selectedTaskId.value[0] "+v.value[0]);const t=e.value.filter(e=>v.value[0]===e.learner_task_id);console.log("selectedLearnerArr "+t),m.value=t[0].skill,_.value=t[0].proficiency,d.value=!0,r.value=!1,g.value=await Object(n["b"])("/getAllProxyBySkill",m.value),r.value=!0,console.log("Proxy List",g.value)},D=async e=>{const t=e.target.checked;y.value=!0===t},T=async()=>{try{console.log("selectedProxyOhr.value[0] "+f.value[0]),console.log("selectedSkill.value "+m.value),console.log("selectedProficiency.value "+_.value),r.value=!1;const e={proxy_key:f.value[0],learners:v.value,linked_program_name:"infinity",skill:m.value,proficiency:_.value},t=await Object(n["a"])("/proxyreview",e);d.value=!1,await O(),r.value=!0,console.log("data ohr",t)}catch(e){console.log("data ohr",e)}},N=async()=>{const e=await Object(o["c"])("/admin/proxy/export");h.value="The report will be emailed to you",setTimeout(()=>{h.value=null},6e3),console.log("Report Trigger Response "+e)};return Object(l["c"])(async()=>{await P();const e=await Object(c["g"])("/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")?b.value=!0:b.value=!1)}),{learnerData:e,skills:t,proficiency:a,renderReady:r,getSelectedSkill:S,getSelectedProficiency:j,isVisible:d,showProxy:A,getSkillandProf:P,getLearnerForProxy:O,selectedTaskId:v,proxyButtonVisible:p,setProxyBtn:w,proxyList:g,selectedProxyOhr:f,checkOne:k,showAssignProxyBtn:D,proxyAssignedBtn:y,assignLearnerToProxy:T,showScreen:b,triggerProxyReport:N,reportSuccessMessage:h}}}),p=d,g=(a("5cf5"),a("dcde")),v=Object(g["a"])(p,r,s,!1,null,"3852f9a4",null);t["default"]=v.exports},faec:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"w-full flex mt-6"},[a("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("c1ec"),n=Object(l["b"])({name:"SearchBar",props:{data:[Array],placeholder:{type:String,default:"Search"}},setup(e){const t=Object(l["f"])(""),a=Object(l["f"])(),r=Object(l["f"])(),s=Object(l["f"])(),n=()=>{s.value=e.data,r.value=s.value.filter(e=>e.toLowerCase().includes(t.value.toLowerCase()))};return Object(l["c"])(async()=>{a.value=e.placeholder,console.log("props.placeholder",e.placeholder)}),{placeHolder1:a,filteredProgramDetails:r,filterProgramDetails:n,search:t}}}),o=n,c=a("dcde"),i=Object(c["a"])(o,r,s,!1,null,null,null);t["a"]=i.exports}}]);
2
2
  //# sourceMappingURL=SolidifyAdministrationViewAllProxyRequests.js.map