@genpact/genome.mfe.solidify-app 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/SolidifyAdministrationEmailTemplateManagement.css +1 -1
- package/dist/css/SolidifyAdministrationGenAIReviewedSubmissions.css +1 -0
- package/dist/css/SolidifyAdministrationTaskDetails.css +1 -1
- package/dist/css/SolidifyLearner.css +1 -1
- package/dist/css/SolidifyLearnerDone.css +1 -1
- package/dist/css/SolidifyLearnerPeerReview.css +1 -1
- package/dist/css/SolidifyLearnerProxyReview.css +1 -1
- package/dist/css/SolidifyLearnerSelectTask.css +1 -1
- package/dist/css/SolidifyLearnerSubmitTask.css +1 -1
- package/dist/img/Help_Button.svg +32 -0
- package/dist/solidify.css +1 -1
- package/dist/{solidify.umd.min.607.js → solidify.umd.min.936.js} +2 -2
- package/dist/{solidify.umd.min.607.js.map → solidify.umd.min.936.js.map} +1 -1
- package/dist/solidify.umd.min.LearnerRereview.js +1 -1
- package/dist/solidify.umd.min.LearnerRereview.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministration.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministration.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationAssignProxy.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationAssignProxy.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationCreateOffCyele.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationGenAIReviewedSubmissions.js +2 -0
- package/dist/solidify.umd.min.SolidifyAdministrationGenAIReviewedSubmissions.js.map +1 -0
- package/dist/solidify.umd.min.SolidifyAdministrationManageProxy.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationManageProxy.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationMasterAdministration.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationMasterAdministration.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationOffcycleDashboard.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationOffcycleDashboard.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationOperationalDetails.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationOperationalDetails.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationProgramAdministration.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationProgramAdministration.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationTaskDetails.js +2 -2
- package/dist/solidify.umd.min.SolidifyAdministrationTaskDetails.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationTaskManagement.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationViewAllProxyRequests.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationViewAllProxyRequests.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearner.js +2 -2
- package/dist/solidify.umd.min.SolidifyLearner.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerDone.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerDone.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerPeerReview.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerPeerReview.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerProxyReview.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSelectTask.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js +1 -1
- package/dist/solidify.umd.min.SolidifyLearnerSubmitTask.js.map +1 -1
- package/dist/solidify.umd.min.js +4 -4
- package/dist/solidify.umd.min.js.map +1 -1
- package/package.json +1 -1
- /package/dist/css/{607.css → 936.css} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[326],{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)}}})])},n=[],s=a(7203),l=(0,s.defineComponent)({name:"SearchBar",props:{data:[Array],placeholder:{type:String,default:"Search"}},setup(e){const t=(0,s.ref)(""),a=(0,s.ref)(),r=(0,s.ref)(),n=(0,s.ref)(),l=()=>{n.value=e.data,r.value=n.value.filter((e=>e.toLowerCase().includes(t.value.toLowerCase())))};return(0,s.onBeforeMount)((async()=>{a.value=e.placeholder,console.log("props.placeholder",e.placeholder)})),{placeHolder1:a,filteredProgramDetails:r,filterProgramDetails:l,search:t}}}),o=l,i=a(1001),c=(0,i.Z)(o,r,n,!1,null,null,null),u=c.exports},6491:function(e,t,a){a.r(t),a.d(t,{default:function(){return x}});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:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow p-4 text-background-secondary"},[t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Select Program ")]),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.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.programErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.programErrorMessage))]):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(" 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),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",{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),e.proficiencyError?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.proficiencyError))]):e._e()]):e._e(),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.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:{change:[function(t){var r=e.selectedTaskId,n=t.target,s=!!n.checked;if(Array.isArray(r)){var l=a.learner_task_id,o=e._i(r,l);n.checked?o<0&&(e.selectedTaskId=r.concat([l])):o>-1&&(e.selectedTaskId=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedTaskId=s},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_requested_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.submission_date))]),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("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.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,n=t.target,s=!!n.checked;if(Array.isArray(r)){var l=a.proxy_ohr,o=e._i(r,l);n.checked?o<0&&(e.selectedProxyOhr=r.concat([l])):o>-1&&(e.selectedProxyOhr=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedProxyOhr=s},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")])])},n=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Assign Proxy")])])},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("ID - Learner Activities")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Reviewer Requested Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Task Submission Date")]),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")])])])}],s=a(7203),l=a(1602),o=a.n(l),i=a(5279),c=a(8709),u=a(9649),d=a(1815),f=a(8153),y=(0,s.defineComponent)({name:"AssignProxy",components:{SearchBar:f.Z},setup(){const e=(0,s.ref)(),t=(0,s.ref)(),a=(0,s.ref)(),r=(0,s.ref)(),n=(0,s.ref)(),l=(0,s.ref)(),f=(0,s.ref)(!1),y=(0,s.ref)(!1),p=(0,s.ref)(),v=(0,s.ref)([]),g=(0,s.ref)(),x=(0,s.ref)(!1),h=(0,s.ref)(),_=(0,s.ref)(),m=(0,s.ref)(!0),w=(0,s.ref)(!1),k=(0,s.ref)(),b=(0,s.ref)(),C=(0,s.ref)(),P=(0,s.ref)(),Z=(0,s.ref)(),S=(0,s.ref)(),A=()=>{g.value=[]},D=e=>{const t=e.target.checked;!0===t?(console.log("selected Task id",v.value),y.value=!0):0===v.value.length&&(y.value=!1,f.value=!1)},T={},O=async()=>{r.value=!1,_.value=await(0,u.dr)("/cache?cache=program"),r.value=!0},L=async()=>{r.value=!1;const e=await(0,c.QZ)("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},M=async()=>{try{if(!k.value)return b.value="Please Select Program",void setTimeout((()=>{b.value=null}),6e3);if("infinity"===k.value){if(!n.value)return C.value="Please Select Skill",void setTimeout((()=>{C.value=null}),6e3);if(!l.value)return P.value="Please Select Proficiency",void setTimeout((()=>{P.value=null}),6e3)}r.value=!1,await A(),v.value=[],y.value=!1;const t=await(0,c.G7)("/learnerTaskToProxyAssign",T),a=t.data;if(e.value=a.learnerToProxyAssign,e.value){for(let t=0;t<e.value.length;t+=1){const a=e.value[t],r=o()().utc().format("YYYY-MM-DD");if(a.proxy_requested_date){const e=o()(a.proxy_requested_date).utc().format("YYYY-MM-DD");a.ageing=o()(r).diff(o()(e),"days"),a.proxy_requested_date=o()(a.proxy_requested_date).format("DD-MM-YYYY")}a.submission_date&&(a.submission_date=o()(a.submission_date).format("DD-MM-YYYY"))}e.value=e.value.sort(((e,t)=>t.ageing-e.ageing))}f.value=!1,console.log("Learner Data",e.value),r.value=!0}catch(t){console.log(t)}},Y=async e=>{k.value=e.target.value,Object.assign(T,{program_id:k.value}),"Select Program"!==k.value&&("infinity"===k.value?w.value=!0:(n.value="",w.value=!1))},$=async e=>{n.value=e.target.value,Object.assign(T,{skill:n.value})},B=async e=>{l.value=e.target.value,Object.assign(T,{proficiency:l.value})},E=async()=>{f.value=!0,r.value=!1;let e=`/v2/admin/proxy/program/${k.value}`;if(!k.value)return b.value="Please Select Program",void setTimeout((()=>{b.value=null}),6e3);if("infinity"===k.value&&(e=`/v2/admin/proxy/program/infinity/skill/${n.value}`,!n.value))return C.value="Please Select Skill",void setTimeout((()=>{C.value=null}),6e3);const t=await(0,d.oA)(e);p.value=t.all_proxies,Z.value=p.value.map((e=>e.proxy_name)),S.value=p.value,console.log("Proxy Data",p.value),r.value=!0,console.log("Proxy List",p.value)},I=e=>{S.value=p.value.filter((t=>e.includes(t.proxy_name))),console.log("filteredproxyDetails",S.value)},F=async e=>{const t=e.target.checked;x.value=!0===t},j=async()=>{try{r.value=!1;const e={proxy_key:g.value[0],learners:v.value,linked_program_name:k.value,skill:n.value,proficiency:l.value};console.log("Selected Data",e);const t=await(0,c.kn)("/proxyreview",e);f.value=!1,await M(),r.value=!0,console.log("data ohr",t)}catch(e){console.log("data ohr",e)}};return(0,s.onBeforeMount)((async()=>{const e=await(0,i.GF)("/getUserRole");h.value=e.user_roles,h.value.length>0&&(console.log("inside length"),h.value.includes("System Admin")||h.value.includes("Proxy Admin")||h.value.includes("Community Manager")?(m.value=!0,await L(),await O()):m.value=!1)})),{learnerData:e,skills:t,proficiency:a,renderReady:r,getSelectedSkill:$,getSelectedProficiency:B,isVisible:f,showProxy:E,getSkillandProf:L,getLearnerForProxy:M,selectedTaskId:v,proxyButtonVisible:y,setProxyBtn:D,proxyList:p,selectedProxyOhr:g,checkOne:A,showAssignProxyBtn:F,proxyAssignedBtn:x,assignLearnerToProxy:j,showScreen:m,programDetails:_,showSkillProf:w,getSelectedProgram:Y,programErrorMessage:b,skillErrorMessage:C,proficiencyError:P,proxyDetailsArray:Z,getFilteredList:I,filteredproxyDetails:S}}}),p=y,v=a(1001),g=(0,v.Z)(p,r,n,!1,null,"5cc4919a",null),x=g.exports},8709:function(e,t,a){a.d(t,{G7:function(){return n},Nl:function(){return l},QZ:function(){return s},kn:function(){return o}});var r=a(7129);const n=async(e,t)=>{const a=await r.Z.post(e,t);return a},s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},l=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 l},M0:function(){return o},QZ:function(){return n},Z9:function(){return i},oA:function(){return s}});var r=a(7129);const n=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},s=async e=>{const t=await r.Z.get(e);return t.data},l=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 n},$i:function(){return b},Ao:function(){return g},DU:function(){return p},EX:function(){return O},F5:function(){return L},FS:function(){return f},GF:function(){return S},Iu:function(){return l},J1:function(){return k},Jf:function(){return _},Kk:function(){return x},N9:function(){return A},P8:function(){return u},VP:function(){return h},Vz:function(){return C},WX:function(){return y},X$:function(){return m},XP:function(){return s},Yb:function(){return Z},a4:function(){return D},dH:function(){return w},gh:function(){return v},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 n=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},l=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},f=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},y=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},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},g=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},h=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},m=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},w=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},k=async e=>{const t=await r.Z.get(e);return t},b=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},Z=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.userObj,t))),t},A=async e=>{const t=await r.Z.post("/user/role",e);return t},D=async e=>{const t=await r.Z.post("/user/removeRole",e);return t},T=async()=>{const e=await r.Z.get("role");return e},O=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}},9649:function(e,t,a){a.d(t,{$M:function(){return d},F9:function(){return y},HX:function(){return o},V$:function(){return i},VA:function(){return s},dr:function(){return n},gs:function(){return p},jz:function(){return f},q$:function(){return u},rP:function(){return l},yW:function(){return c}});var r=a(7129);const n=async e=>{let t;return await r.Z.get(e).then((e=>(console.log("Response",e),t=e.data.response.program_name,t))),t},s=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},l=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},f=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},y=async e=>{console.log(`inside save task data ${JSON.stringify(e)}`);const t=await r.Z.post("/task/create",e);return t},p=async e=>{try{let t;return await r.Z.get(`/admin/task/taskExport/${e}`).then((async e=>(t=e.data,t))),t}catch(t){return t}}}}]);
|
|
1
|
+
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[326],{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)}}})])},n=[],s=a(7203),l=(0,s.defineComponent)({name:"SearchBar",props:{data:[Array],placeholder:{type:String,default:"Search"}},setup(e){const t=(0,s.ref)(""),a=(0,s.ref)(),r=(0,s.ref)(),n=(0,s.ref)(),l=()=>{n.value=e.data,r.value=n.value.filter((e=>e.toLowerCase().includes(t.value.toLowerCase())))};return(0,s.onBeforeMount)((async()=>{a.value=e.placeholder,console.log("props.placeholder",e.placeholder)})),{placeHolder1:a,filteredProgramDetails:r,filterProgramDetails:l,search:t}}}),o=l,i=a(1001),c=(0,i.Z)(o,r,n,!1,null,null,null),u=c.exports},6491:function(e,t,a){a.r(t),a.d(t,{default:function(){return x}});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:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow p-4 text-background-secondary"},[t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Select Program ")]),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.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.programErrorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.programErrorMessage))]):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(" 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),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",{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),e.proficiencyError?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.proficiencyError))]):e._e()]):e._e(),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.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:{change:[function(t){var r=e.selectedTaskId,n=t.target,s=!!n.checked;if(Array.isArray(r)){var l=a.learner_task_id,o=e._i(r,l);n.checked?o<0&&(e.selectedTaskId=r.concat([l])):o>-1&&(e.selectedTaskId=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedTaskId=s},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_requested_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.submission_date))]),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("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.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,n=t.target,s=!!n.checked;if(Array.isArray(r)){var l=a.proxy_ohr,o=e._i(r,l);n.checked?o<0&&(e.selectedProxyOhr=r.concat([l])):o>-1&&(e.selectedProxyOhr=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedProxyOhr=s},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")])])},n=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Assign Proxy")])])},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("ID - Learner Activities")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Reviewer Requested Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Task Submission Date")]),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")])])])}],s=a(7203),l=a(1602),o=a.n(l),i=a(5279),c=a(8709),u=a(9649),d=a(1815),f=a(8153),y=(0,s.defineComponent)({name:"AssignProxy",components:{SearchBar:f.Z},setup(){const e=(0,s.ref)(),t=(0,s.ref)(),a=(0,s.ref)(),r=(0,s.ref)(),n=(0,s.ref)(),l=(0,s.ref)(),f=(0,s.ref)(!1),y=(0,s.ref)(!1),p=(0,s.ref)(),v=(0,s.ref)([]),g=(0,s.ref)(),x=(0,s.ref)(!1),h=(0,s.ref)(),_=(0,s.ref)(),m=(0,s.ref)(!0),w=(0,s.ref)(!1),k=(0,s.ref)(),b=(0,s.ref)(),C=(0,s.ref)(),P=(0,s.ref)(),Z=(0,s.ref)(),S=(0,s.ref)(),A=()=>{g.value=[]},D=e=>{const t=e.target.checked;!0===t?(console.log("selected Task id",v.value),y.value=!0):0===v.value.length&&(y.value=!1,f.value=!1)},T={},O=async()=>{r.value=!1,_.value=await(0,u.dr)("/cache?cache=program"),r.value=!0},L=async()=>{r.value=!1;const e=await(0,c.QZ)("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},M=async()=>{try{if(!k.value)return b.value="Please Select Program",void setTimeout((()=>{b.value=null}),6e3);if("infinity"===k.value){if(!n.value)return C.value="Please Select Skill",void setTimeout((()=>{C.value=null}),6e3);if(!l.value)return P.value="Please Select Proficiency",void setTimeout((()=>{P.value=null}),6e3)}r.value=!1,await A(),v.value=[],y.value=!1;const t=await(0,c.G7)("/learnerTaskToProxyAssign",T),a=t.data;if(e.value=a.learnerToProxyAssign,e.value){for(let t=0;t<e.value.length;t+=1){const a=e.value[t],r=o()().utc().format("YYYY-MM-DD");if(a.proxy_requested_date){const e=o()(a.proxy_requested_date).utc().format("YYYY-MM-DD");a.ageing=o()(r).diff(o()(e),"days"),a.proxy_requested_date=o()(a.proxy_requested_date).format("DD-MM-YYYY")}a.submission_date&&(a.submission_date=o()(a.submission_date).format("DD-MM-YYYY"))}e.value=e.value.sort(((e,t)=>t.ageing-e.ageing))}f.value=!1,console.log("Learner Data",e.value),r.value=!0}catch(t){console.log(t)}},Y=async e=>{k.value=e.target.value,Object.assign(T,{program_id:k.value}),"Select Program"!==k.value&&("infinity"===k.value?w.value=!0:(n.value="",w.value=!1))},$=async e=>{n.value=e.target.value,Object.assign(T,{skill:n.value})},B=async e=>{l.value=e.target.value,Object.assign(T,{proficiency:l.value})},E=async()=>{f.value=!0,r.value=!1;let e=`/v2/admin/proxy/program/${k.value}`;if(!k.value)return b.value="Please Select Program",void setTimeout((()=>{b.value=null}),6e3);if("infinity"===k.value&&(e=`/v2/admin/proxy/program/infinity/skill/${n.value}`,!n.value))return C.value="Please Select Skill",void setTimeout((()=>{C.value=null}),6e3);const t=await(0,d.oA)(e);p.value=t.all_proxies,Z.value=p.value.map((e=>e.proxy_name)),S.value=p.value,console.log("Proxy Data",p.value),r.value=!0,console.log("Proxy List",p.value)},I=e=>{S.value=p.value.filter((t=>e.includes(t.proxy_name))),console.log("filteredproxyDetails",S.value)},F=async e=>{const t=e.target.checked;x.value=!0===t},V=async()=>{try{r.value=!1;const e={proxy_key:g.value[0],learners:v.value,linked_program_name:k.value,skill:n.value,proficiency:l.value};console.log("Selected Data",e);const t=await(0,c.kn)("/proxyreview",e);f.value=!1,await M(),r.value=!0,console.log("data ohr",t)}catch(e){console.log("data ohr",e)}};return(0,s.onBeforeMount)((async()=>{const e=await(0,i.GF)("/getUserRole");h.value=e.user_roles,h.value.length>0&&(console.log("inside length"),h.value.includes("System Admin")||h.value.includes("Proxy Admin")||h.value.includes("Community Manager")?(m.value=!0,await L(),await O()):m.value=!1)})),{learnerData:e,skills:t,proficiency:a,renderReady:r,getSelectedSkill:$,getSelectedProficiency:B,isVisible:f,showProxy:E,getSkillandProf:L,getLearnerForProxy:M,selectedTaskId:v,proxyButtonVisible:y,setProxyBtn:D,proxyList:p,selectedProxyOhr:g,checkOne:A,showAssignProxyBtn:F,proxyAssignedBtn:x,assignLearnerToProxy:V,showScreen:m,programDetails:_,showSkillProf:w,getSelectedProgram:Y,programErrorMessage:b,skillErrorMessage:C,proficiencyError:P,proxyDetailsArray:Z,getFilteredList:I,filteredproxyDetails:S}}}),p=y,v=a(1001),g=(0,v.Z)(p,r,n,!1,null,"5cc4919a",null),x=g.exports},8709:function(e,t,a){a.d(t,{G7:function(){return n},Nl:function(){return l},QZ:function(){return s},kn:function(){return o}});var r=a(7129);const n=async(e,t)=>{const a=await r.Z.post(e,t);return a},s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},l=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 l},M0:function(){return o},QZ:function(){return n},Z9:function(){return i},oA:function(){return s}});var r=a(7129);const n=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},s=async e=>{const t=await r.Z.get(e);return t.data},l=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 n},$i:function(){return b},Ao:function(){return g},DU:function(){return p},EX:function(){return O},F5:function(){return L},FS:function(){return f},GF:function(){return S},Iu:function(){return l},J1:function(){return k},Jf:function(){return _},Kk:function(){return x},N9:function(){return A},P8:function(){return u},VP:function(){return h},Vz:function(){return C},WX:function(){return y},X$:function(){return m},XP:function(){return s},Yb:function(){return Z},a4:function(){return D},dH:function(){return w},gh:function(){return v},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 n=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},l=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},f=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},y=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},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},g=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},h=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},m=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},w=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},k=async e=>{const t=await r.Z.get(e);return t},b=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},Z=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.userObj,t))),t},A=async e=>{const t=await r.Z.post("/user/role",e);return t},D=async e=>{const t=await r.Z.post("/user/removeRole",e);return t},T=async()=>{const e=await r.Z.get("role");return e},O=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}},9649:function(e,t,a){a.d(t,{$M:function(){return f},F9:function(){return p},HX:function(){return i},V$:function(){return c},VA:function(){return s},Vz:function(){return l},dr:function(){return n},gs:function(){return v},jz:function(){return y},q$:function(){return d},rP:function(){return o},yW:function(){return u}});var r=a(7129);const n=async e=>{let t;return await r.Z.get(e).then((e=>(console.log("Response",e),t=e.data.response.program_name,t))),t},s=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},l=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}},f=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},y=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},p=async e=>{console.log(`inside save task data ${JSON.stringify(e)}`);const t=await r.Z.post("/task/create",e);return t},v=async e=>{try{let t;return await r.Z.get(`/admin/task/taskExport/${e}`).then((async e=>(t=e.data,t))),t}catch(t){return t}}}}]);
|
|
2
2
|
//# sourceMappingURL=solidify.umd.min.SolidifyAdministrationAssignProxy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solidify.umd.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AIEC,EAAiB5K,MAAOsG,EAAUuE,KAC7C,IAAIrF,EAMJ,aAJM2B,EAAAA,EAAAA,KAAWb,EAAKuE,GAAazD,MAAMC,IACvC7B,EAAM6B,EAASnI,KAAK0K,MACbpE,KAEFA,CAAG,EAGCsF,EAA0B9K,MAAOsG,EAAUpH,KACtD,IAAIsG,EAMJ,aAJM2B,EAAAA,EAAAA,KAAWb,EAAKpH,GAAMkI,MAAMC,IAChC7B,EAAM6B,EAASnI,KAAK0K,MACbpE,KAEFA,CAAG,EAGCuF,EAAW/K,UACtBC,QAAQC,IAAI,yBAAyB8K,KAAKC,UAAU/L,MACpD,MAAMgM,QAAiB/D,EAAAA,EAAAA,KAAW,eAAgBjI,GAClD,OAAOgM,CAAQ,EAGJC,EAAmBnL,UAC9B,IACE,IAAIwF,EAgBJ,aAfM2B,EAAAA,EAAAA,IAAU,0BAA0BwC,KAAavC,MAAKpH,UAE1DwF,EAAM6B,EAASnI,KAWRsG,KAEFA,C,CACP,MAAOU,GACP,OAAOA,C","sources":["webpack://solidify/./src/components/global/SearchBar.vue","webpack://solidify/./src/components/global/SearchBar.vue?f7b9","webpack://solidify/./src/components/global/SearchBar.vue?b082","webpack://solidify/./src/components/global/SearchBar.vue?f9bc","webpack://solidify/./src/views/Admin/Assign_Proxy.vue","webpack://solidify/./src/views/Admin/Assign_Proxy.vue?882b","webpack://solidify/./src/views/Admin/Assign_Proxy.vue?0600","webpack://solidify/./src/views/Admin/Assign_Proxy.vue?ac88","webpack://solidify/./src/utils/admin/assign_proxy_service.ts","webpack://solidify/./src/utils/admin/manage_proxy_service.ts","webpack://solidify/./src/utils/admin/master_service.ts","webpack://solidify/./src/utils/admin/task_management_service.ts"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"w-full flex mt-6\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.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\":_vm.placeHolder1},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){_vm.filterProgramDetails() & _vm.$emit('Filtered', _vm.filteredProgramDetails)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { defineComponent, onBeforeMount, ref } from 'vue';\n\nexport default defineComponent({\n name: 'SearchBar',\n // eslint-disable-next-line vue/require-default-prop\n props: { data: [Array], placeholder: { type: String, default: 'Search' } },\n setup(props) {\n const search = ref('');\n const placeHolder1 = ref();\n const filteredProgramDetails = ref();\n const ProgramDetails = ref();\n const filterProgramDetails = () => {\n // console.log('props.data', props.data);\n ProgramDetails.value = props.data;\n filteredProgramDetails.value = ProgramDetails.value.filter((program) => program.toLowerCase().includes(search.value.toLowerCase()));\n // console.log('filteredProgramDetails', filteredProgramDetails);\n };\n onBeforeMount(async () => {\n // console.log('props.data onbefore mount', props.data);\n placeHolder1.value = props.placeholder;\n console.log('props.placeholder', props.placeholder);\n });\n return { placeHolder1, filteredProgramDetails, filterProgramDetails, search };\n },\n});\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SearchBar.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SearchBar.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SearchBar.vue?vue&type=template&id=7e210d5c&\"\nimport script from \"./SearchBar.vue?vue&type=script&lang=ts&\"\nexport * from \"./SearchBar.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"admin\"},[(_vm.showScreen)?_c('div',{staticClass:\"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10\"},[_vm._m(0),_c('div',{staticClass:\"w-full mt-4\"},[_c('div',{staticClass:\"max-w-6xl m-auto shadow p-4 text-background-secondary\"},[_c('div',{staticClass:\"flex w-full mt-6\"},[_c('div',{staticClass:\"w-full pr-3 mb-4\"},[_c('label',{staticClass:\"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2\"},[_vm._v(\" Select Program \")]),_c('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($event){return _vm.getSelectedProgram($event)}}},[_c('option',[_vm._v(\"Select Program\")]),_vm._l((_vm.programDetails),function(program){return _c('option',{key:program.program_id,domProps:{\"value\":program.program_id}},[_vm._v(_vm._s(program.program_display_name ? program.program_display_name : program.program_name))])})],2),(_vm.programErrorMessage)?_c('div',{staticClass:\"text-red-700\"},[_vm._v(_vm._s(_vm.programErrorMessage))]):_vm._e()]),(_vm.showSkillProf)?_c('div',{staticClass:\"w-full pr-3 mb-4\"},[_c('label',{staticClass:\"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2\"},[_vm._v(\" Skill \")]),_c('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($event){return _vm.getSelectedSkill($event)}}},[_c('option',[_vm._v(\"Select Skill\")]),_vm._l((_vm.skills),function(skill){return _c('option',{key:skill.skill_id,domProps:{\"value\":skill.skill_id}},[_vm._v(_vm._s(skill.skill_alias))])})],2),(_vm.skillErrorMessage)?_c('div',{staticClass:\"text-red-700\"},[_vm._v(_vm._s(_vm.skillErrorMessage))]):_vm._e()]):_vm._e(),(_vm.showSkillProf)?_c('div',{staticClass:\"w-full pr-3 mb-4\"},[_c('label',{staticClass:\"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2\"},[_vm._v(\" Proficiency \")]),_c('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($event){return _vm.getSelectedProficiency($event)}}},[_c('option',[_vm._v(\"Select Proficiency\")]),_vm._l((_vm.proficiency),function(prof){return _c('option',{key:prof.prof_id,domProps:{\"value\":prof.prof_id}},[_vm._v(_vm._s(prof.prof_name))])})],2),(_vm.proficiencyError)?_c('div',{staticClass:\"text-red-700\"},[_vm._v(_vm._s(_vm.proficiencyError))]):_vm._e()]):_vm._e(),_c('div',{staticClass:\"w-full mb-4\"},[_c('button',{staticClass:\"mt-8 inline-block py-2 px-4 text-white shadow-md bg-background-secondary\",on:{\"click\":function($event){return _vm.getLearnerForProxy()}}},[_vm._v(\"Search Learner\")])])]),(_vm.proxyButtonVisible)?_c('div',{staticClass:\"flex w-full mt-6\"},[_c('div',{staticClass:\"w-1/4 pr-3 mb-4\"},[_c('button',{staticClass:\"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary\",on:{\"click\":function($event){return _vm.showProxy()}}},[_vm._v(\"View available Proxy\")])])]):_vm._e(),(_vm.learnerData)?_c('div',{staticClass:\"flex w-full\"},[_c('div',{staticClass:\"w-full mt-4 tableScroll\"},[_c('table',{staticClass:\"w-full text-md bg-white rounded\"},[_vm._m(1),_c('tbody',{staticClass:\"opacity-80 -text-blue-800 align-bottom\"},_vm._l((_vm.learnerData),function(data){return _c('tr',{key:data.id,staticClass:\"border-b hover:bg-gray-300\"},[_c('td',{staticClass:\"py-2 pl-3 pr-0 text-sm w-6\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedTaskId),expression:\"selectedTaskId\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.selectedTaskId.length > 4,\"id\":data.learner_task_id},domProps:{\"value\":data.learner_task_id,\"checked\":Array.isArray(_vm.selectedTaskId)?_vm._i(_vm.selectedTaskId,data.learner_task_id)>-1:(_vm.selectedTaskId)},on:{\"change\":[function($event){var $$a=_vm.selectedTaskId,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=data.learner_task_id,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.selectedTaskId=$$a.concat([$$v]))}else{$$i>-1&&(_vm.selectedTaskId=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.selectedTaskId=$$c}},function($event){return _vm.setProxyBtn($event)}]}})]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(data.learner_task_id))]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(data.proxy_requested_date))]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(data.submission_date))]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(data.ageing))])])}),0)])])]):_vm._e(),(_vm.isVisible)?_c('div',{staticClass:\"w-full mt-4%\"},[_c('div',{staticClass:\"text-center text-3xl text-background-secondary\"},[_vm._v(\"Available Proxy\")]),(_vm.proxyList)?_c('div',{staticClass:\"w-full flex mt-6\"},[_c('SearchBar',{attrs:{\"data\":_vm.proxyDetailsArray,\"placeholder\":\"Search By Proxy Name\"},on:{\"Filtered\":_vm.getFilteredList}})],1):_vm._e(),(_vm.proxyAssignedBtn)?_c('div',{staticClass:\"w-1/4 pr-3 mb-4\"},[_c('button',{staticClass:\"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary\",on:{\"click\":function($event){return _vm.assignLearnerToProxy()}}},[_vm._v(\"Assign Proxy\")])]):_vm._e(),_c('div',{staticClass:\"w-full mt-4\"},[_c('table',{staticClass:\"w-full text-md bg-white shadow rounded text-over\"},[_vm._m(2),_c('tbody',{staticClass:\"opacity-80 -text-blue-800 align-bottom\"},_vm._l((_vm.filteredproxyDetails),function(proxy,id){return _c('tr',{key:id,staticClass:\"border-b hover:bg-gray-300\"},[_c('td',{staticClass:\"py-2 pl-3 pr-0 text-sm w-6\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedProxyOhr),expression:\"selectedProxyOhr\"}],attrs:{\"type\":\"checkbox\",\"id\":proxy.proxy_ohr},domProps:{\"value\":proxy.proxy_ohr,\"checked\":Array.isArray(_vm.selectedProxyOhr)?_vm._i(_vm.selectedProxyOhr,proxy.proxy_ohr)>-1:(_vm.selectedProxyOhr)},on:{\"change\":[function($event){var $$a=_vm.selectedProxyOhr,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=proxy.proxy_ohr,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.selectedProxyOhr=$$a.concat([$$v]))}else{$$i>-1&&(_vm.selectedProxyOhr=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.selectedProxyOhr=$$c}},function($event){return _vm.showAssignProxyBtn($event)}],\"click\":_vm.checkOne}})]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(proxy.proxy_name))]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(proxy.proxy_email))]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(proxy.proxy_role))]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(_vm._s(proxy.proxy_ohr))])])}),0)])])]):_vm._e()])]),(!_vm.renderReady)?_c('div',{staticClass:\"flex flex-col h-min-screen justify-center text-center pageLoader\"},[_c('img',{staticClass:\"mb-8 block mx-auto loadercss mt-3%\",attrs:{\"src\":require(\"@/assets/images/loadernew.gif\"),\"alt\":\"Loader Gif\"}}),_c('p',{staticClass:\"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue\"},[_vm._v(\"Loading...\")])]):_vm._e()]):_c('div',{staticClass:\"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10\"},[_vm._v(\"You don't have access\")])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"w-full\"},[_c('div',{staticClass:\"text-center text-3xl text-background-secondary\"},[_vm._v(\"Assign Proxy\")])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('thead',{staticClass:\"opacity-90 -text-blue-800\"},[_c('tr',{staticClass:\"border-b\"},[_c('th',{staticClass:\"text-left py-2 pl-3 pr-0 w-6 text-background-secondary\"}),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"ID - Learner Activities\")]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"Proxy Reviewer Requested Date\")]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"Task Submission Date\")]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"Ageing\")])])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('thead',{staticClass:\"opacity-90 -text-blue-800\"},[_c('tr',{staticClass:\"border-b\"},[_c('th',{staticClass:\"text-left py-2 pl-3 pr-0 w-6 text-background-secondary\"}),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"Name\")]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"Email\")]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"Role\")]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"OHR\")])])])\n}]\n\nexport { render, staticRenderFns }","\nimport { defineComponent, onBeforeMount, ref } from 'vue';\nimport moment from 'moment';\nimport { invokeGetUserRole } from '@/utils/admin/master_service';\nimport { invokeAssignProxyToLearners, invokegetSkillProf, invokeLearnerForProxyReviewer } from '@/utils/admin/assign_proxy_service';\nimport { invokegetAllProgram } from '@/utils/admin/task_management_service';\nimport { invokegetAllProxies } from '@/utils/admin/manage_proxy_service';\nimport SearchBar from '@/components/global/SearchBar.vue';\n\n// eslint-disable-next-line\n// import router from '@/router';\n// import { XIcon } from 'vue-feather-icons';\n\nexport default defineComponent({\n name: 'AssignProxy',\n components: { SearchBar },\n setup() {\n const learnerData = ref();\n const skills = ref();\n const proficiency = ref();\n const renderReady = ref();\n const selectedSkill = ref();\n const selectedProficiency = ref();\n const isVisible = ref(false);\n const proxyButtonVisible = ref(false);\n const proxyList = ref();\n const selectedTaskId = ref([]);\n const selectedProxyOhr = ref();\n const proxyAssignedBtn = ref(false);\n const userRole = ref();\n const programDetails = ref();\n const showScreen = ref(true);\n const showSkillProf = ref(false);\n const selectedProgram = ref();\n const programErrorMessage = ref();\n const skillErrorMessage = ref();\n const proficiencyError = ref();\n const proxyDetailsArray = ref();\n const filteredproxyDetails = ref();\n\n const checkOne = () => {\n selectedProxyOhr.value = [];\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const setProxyBtn = (event: any) => {\n const cb = event.target.checked;\n // console.log('length', cb.length);\n if (cb === true) {\n console.log('selected Task id', selectedTaskId.value);\n proxyButtonVisible.value = true;\n // console.log(cb);\n } else if (selectedTaskId.value.length === 0) {\n proxyButtonVisible.value = false;\n isVisible.value = false;\n }\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const FilterData: any = {};\n const getProgram = async () => {\n renderReady.value = false;\n programDetails.value = await invokegetAllProgram('/cache?cache=program');\n // console.log(programDetails.value);\n renderReady.value = true;\n };\n const getSkillandProf = async () => {\n renderReady.value = false;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const dataRes: any = await invokegetSkillProf('/getAllSkillProf?skill_type=genome');\n skills.value = dataRes.skill;\n proficiency.value = dataRes.proficiency;\n renderReady.value = true;\n };\n const getLearnerForProxy = async () => {\n try {\n if (!selectedProgram.value) {\n programErrorMessage.value = 'Please Select Program';\n setTimeout(() => {\n programErrorMessage.value = null;\n }, 6000);\n return;\n }\n if (selectedProgram.value === 'infinity') {\n if (!selectedSkill.value) {\n skillErrorMessage.value = 'Please Select Skill';\n setTimeout(() => {\n skillErrorMessage.value = null;\n }, 6000);\n return;\n }\n if (!selectedProficiency.value) {\n proficiencyError.value = 'Please Select Proficiency';\n setTimeout(() => {\n proficiencyError.value = null;\n }, 6000);\n return;\n }\n }\n\n // if (FilterData.skill && FilterData.proficiency) {\n // console.log(FilterData);\n renderReady.value = false;\n await checkOne();\n selectedTaskId.value = [];\n proxyButtonVisible.value = false;\n // selectedTaskId.value.length == 0;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const resLearnerList: any = await invokeLearnerForProxyReviewer('/learnerTaskToProxyAssign', FilterData);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const dataRes: any = resLearnerList.data;\n learnerData.value = dataRes.learnerToProxyAssign;\n // const sortedArray = dataRes.sort((a: any, b: any) => moment(b.proxy_requested_date).utc().unix() - moment(a.submission_date).utc().unix());\n if (learnerData.value) {\n for (let index = 0; index < learnerData.value.length; index += 1) {\n const res = learnerData.value[index];\n const today = moment().utc().format('YYYY-MM-DD');\n if (res.proxy_requested_date) {\n const requestedDateFormatted = moment(res.proxy_requested_date).utc().format('YYYY-MM-DD');\n res.ageing = moment(today).diff(moment(requestedDateFormatted), 'days');\n res.proxy_requested_date = moment(res.proxy_requested_date).format('DD-MM-YYYY');\n }\n if (res.submission_date) {\n res.submission_date = moment(res.submission_date).format('DD-MM-YYYY');\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n learnerData.value = learnerData.value.sort((a: any, b: any) => b.ageing - a.ageing);\n }\n\n isVisible.value = false;\n console.log('Learner Data', learnerData.value);\n renderReady.value = true;\n // }\n } catch (error) {\n console.log(error);\n }\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const getSelectedProgram = async (e: any) => {\n selectedProgram.value = e.target.value;\n Object.assign(FilterData, { program_id: selectedProgram.value });\n if (selectedProgram.value !== 'Select Program') {\n if (selectedProgram.value === 'infinity') {\n showSkillProf.value = true;\n } else {\n selectedSkill.value = '';\n showSkillProf.value = false;\n }\n }\n // localStorage.setItem('program', selectedProgram.value);\n // localStorage.removeItem('inputValue');\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const getSelectedSkill = async (e: any) => {\n // console.log(e.target.removeAttr('selected'));\n selectedSkill.value = e.target.value;\n Object.assign(FilterData, { skill: selectedSkill.value });\n\n // await getLearnerForProxy();\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const getSelectedProficiency = async (e: any) => {\n selectedProficiency.value = e.target.value;\n Object.assign(FilterData, { proficiency: selectedProficiency.value });\n // isVisible.value = false;\n // await getLearnerForProxy();\n };\n const showProxy = async () => {\n isVisible.value = true;\n renderReady.value = false;\n let url = `/v2/admin/proxy/program/${selectedProgram.value}`;\n if (!selectedProgram.value) {\n programErrorMessage.value = 'Please Select Program';\n setTimeout(() => {\n programErrorMessage.value = null;\n }, 6000);\n return;\n }\n if (selectedProgram.value === 'infinity') {\n url = `/v2/admin/proxy/program/infinity/skill/${selectedSkill.value}`;\n if (!selectedSkill.value) {\n skillErrorMessage.value = 'Please Select Skill';\n setTimeout(() => {\n skillErrorMessage.value = null;\n }, 6000);\n return;\n }\n }\n const res = await invokegetAllProxies(url);\n proxyList.value = res.all_proxies;\n proxyDetailsArray.value = proxyList.value.map((proxy) => proxy.proxy_name);\n filteredproxyDetails.value = proxyList.value;\n console.log('Proxy Data', proxyList.value);\n // proxyList.value = await invokeGetProxyList('/getAllProxyBySkill', selectedSkill.value);\n renderReady.value = true;\n console.log('Proxy List', proxyList.value);\n };\n const getFilteredList = (value) => {\n // filteredProgramDetails.value = value;\n // console.log('ProgramDetails.value in final', ProgramDetails.value);\n filteredproxyDetails.value = proxyList.value.filter((proxy) => value.includes(proxy.proxy_name));\n console.log('filteredproxyDetails', filteredproxyDetails.value);\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const showAssignProxyBtn = async (event: any) => {\n const proxyOhr = event.target.checked;\n if (proxyOhr === true) {\n proxyAssignedBtn.value = true;\n } else {\n proxyAssignedBtn.value = false;\n }\n };\n const assignLearnerToProxy = async () => {\n try {\n renderReady.value = false;\n const data = {\n proxy_key: selectedProxyOhr.value[0],\n learners: selectedTaskId.value,\n linked_program_name: selectedProgram.value,\n skill: selectedSkill.value,\n proficiency: selectedProficiency.value,\n };\n console.log('Selected Data', data);\n const assignProxyRes = await invokeAssignProxyToLearners('/proxyreview', data);\n isVisible.value = false;\n await getLearnerForProxy();\n // router.push({ path: 'assignProxy' });\n // router.go(0);\n renderReady.value = true;\n console.log('data ohr', assignProxyRes);\n } catch (error) {\n console.log('data ohr', error);\n }\n };\n onBeforeMount(async () => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const role: any = await invokeGetUserRole('/getUserRole');\n userRole.value = role.user_roles;\n if (userRole.value.length > 0) {\n console.log('inside length');\n if (userRole.value.includes('System Admin') || userRole.value.includes('Proxy Admin') || userRole.value.includes('Community Manager')) {\n showScreen.value = true;\n await getSkillandProf();\n await getProgram();\n } else {\n showScreen.value = false;\n }\n }\n });\n return {\n learnerData,\n skills,\n proficiency,\n renderReady,\n getSelectedSkill,\n getSelectedProficiency,\n isVisible,\n showProxy,\n getSkillandProf,\n getLearnerForProxy,\n selectedTaskId,\n proxyButtonVisible,\n setProxyBtn,\n proxyList,\n selectedProxyOhr,\n checkOne,\n showAssignProxyBtn,\n proxyAssignedBtn,\n assignLearnerToProxy,\n showScreen,\n programDetails,\n showSkillProf,\n getSelectedProgram,\n programErrorMessage,\n skillErrorMessage,\n proficiencyError,\n proxyDetailsArray,\n getFilteredList,\n filteredproxyDetails,\n };\n },\n});\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Assign_Proxy.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Assign_Proxy.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Assign_Proxy.vue?vue&type=template&id=5cc4919a&scoped=true&\"\nimport script from \"./Assign_Proxy.vue?vue&type=script&lang=ts&\"\nexport * from \"./Assign_Proxy.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Assign_Proxy.vue?vue&type=style&index=0&id=5cc4919a&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5cc4919a\",\n null\n \n)\n\nexport default component.exports","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n// import axios from 'axios';\nimport $http from '../../plugins/axios';\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n\nexport const invokeLearnerForProxyReviewer = async (url: string, data: any) => {\n // let res;\n // eslint-disable-next-line camelcase\n // await $http.post(url, data).then((response) => {\n // // console.log(response.data.sys_settings);\n // res = response.data;\n // return res;\n // });\n const res = await $http.post(url, data);\n return res;\n};\nexport const invokegetSkillProf = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n // console.log(response.data.sys_settings);\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeGetProxyList = async (url: string, skillId: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(`${url}/${skillId}`).then((response) => {\n // console.log(response.data.sys_settings);\n res = response.data.allProxyList;\n return res;\n });\n return res;\n};\n\nexport const invokeProgramProxies = async (url: string, data: any) => {\n const res = await $http.post(url, data);\n // await $http.post(url, data).then((response) => {\n // // console.log(response.data.sys_settings);\n // res = response.data.allProxyList;\n // return res;\n // });\n return res;\n};\nexport const invokegetAllProxies = async (url: string, data: any) => {\n const res = await $http.post(url, data);\n // await $http.post(url, data).then((response) => {\n // // console.log(response.data.sys_settings);\n // res = response.data.allProxyList;\n // return res;\n // });\n return res;\n};\n\nexport const invokeAssignProxyToLearners = async (url: string, data: any) => {\n // let res;\n const res = await $http.post(url, data);\n // await $http.post(url, data).then((response) => {\n // // console.log(response.data.sys_settings);\n // res = response.data.allProxyList;\n // return res;\n // });\n return res;\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n// import axios from 'axios';\nimport $http from '../../plugins/axios';\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n\nexport const invokegetSkillProf = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n // console.log(response.data.sys_settings);\n res = response.data;\n return res;\n });\n return res;\n};\n\nexport const invokeProgramProxies = async (url: string, data: any) => {\n const res = await $http.post(url, data);\n // await $http.post(url, data).then((response) => {\n // // console.log(response.data.sys_settings);\n // res = response.data.allProxyList;\n // return res;\n // });\n return res;\n};\nexport const invokegetAllProxies = async (url: string) => {\n const res = await $http.get(url);\n return res.data;\n};\nexport const invokeProxyImport = async (url: string, data: any) => {\n const res = await $http.post(url, data);\n return res.data;\n};\n\nexport const deleteProxy = async (url: string, data: any) => {\n const res = await $http.post(url, data);\n return res.data.resp_message;\n};\nexport const addProxies = async (url: string, data: any) => {\n const res = await $http.post(url, data);\n return res.data.resp_message;\n};\n","/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n// import axios from 'axios';\nimport $http from '../../plugins/axios';\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport const invokeseedMaster = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\n\nexport const invokeSkillSync = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeTemplateSeed = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeCacheSync = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeseedDefaultProgram = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeseedRoles = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeSeedProxyReviewers = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeSeedUser = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeDiffAccess = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokemigrateCohort = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeMigrateCohortLA = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeMigrateCohortReview = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeS2TasksMigration = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data.userObj;\n return res;\n });\n return res;\n};\nexport const invokeS2LAImport = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data.userObj;\n return res;\n });\n return res;\n};\nexport const invokeS2LAMigration = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data.userObj;\n return res;\n });\n return res;\n};\nexport const invokeMigrateS3Task = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeMigrateS3LA = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeMigrateS3Review = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const removeDuplicateProxyLearner = async (url: string) => {\n const res = await $http.get(url);\n return res;\n};\nexport const updateS3CohortsLearnerModifiedDate = async (url: string) => {\n const res = await $http.get(url);\n return res;\n};\nexport const invokeofcon = async (url: string) => {\n const res = await $http.get(url);\n return res;\n};\n// export const invokeMasterSeed = async (url: string) => {\n// let res;\n// // eslint-disable-next-line camelcase\n// await $http.get(`${url}}`).then((response) => {\n// res = response.data;\n// return res;\n// });\n// return res;\n// };\n\nexport const invokeProxyReviewSeed = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\n\nexport const invokeMigrateCohortProgram = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\n\nexport const invokeGetUserRole = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data.userObj;\n return res;\n });\n return res;\n};\n\nexport const assignRoleToUser = async (data: any) => {\n const res = await $http.post('/user/role', data);\n return res;\n};\n\nexport const removeRoleFromUser = async (data: any) => {\n const res = await $http.post('/user/removeRole', data);\n return res;\n};\n\nexport const getAllRoles = async () => {\n const res = await $http.get('role');\n return res;\n};\nexport const importLSS = async (key: any) => {\n const res = await $http.post('/user/saveLSS', key);\n return res;\n};\nexport const importEnvaccess = async (key: any) => {\n const res = await $http.post('/user/saveEnvAccess', key);\n return res;\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n// import axios from 'axios';\nimport $http from '../../plugins/axios';\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n\nexport const invokegetAllProgram = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n console.log('Response', response);\n res = response.data.response.program_name;\n return res;\n });\n return res;\n};\n\nexport const invokegetAllTaskByProgram = async (url: string, programId: any) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.post(url, programId).then((response) => {\n res = response.data.tasks;\n return res;\n });\n return res;\n};\nexport const getAllOffCycleByByProgram = async (url: string, programId: any) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.post(url, programId).then((response) => {\n res = response.data.learnerDetails;\n return res;\n });\n return res;\n};\nexport const invokeArchieveTask = async (url: string, taskData: any) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.post(url, taskData).then((response) => {\n res = response.data.tasks;\n return res;\n });\n return res;\n};\nexport const updateOffcyclestatus = async (url: string, taskData: any) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.post(url, taskData).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const getTaskById = async (taskId: any) => {\n let getTaskres: any;\n try {\n await $http.get(`/task/${taskId}`).then((response) => {\n getTaskres = response.data.data;\n return getTaskres;\n });\n return getTaskres;\n } catch (error) {\n return error;\n }\n};\nexport const uploadBulkTasks = async (url: any, bulkTaskFile: any) => {\n try {\n const res = await fetch(`${url}`, {\n method: 'put',\n body: bulkTaskFile,\n });\n const uploadResponse = res;\n return uploadResponse;\n } catch (err) {\n console.error(err);\n return err;\n }\n};\n\nexport const importBulkTask = async (url: any, bulkTasData: any) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.post(url, bulkTasData).then((response) => {\n res = response.data.tasks;\n return res;\n });\n return res;\n};\n\nexport const resetActiveTaskSequence = async (url: any, data: any) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.post(url, data).then((response) => {\n res = response.data.tasks;\n return res;\n });\n return res;\n};\n\nexport const saveTask = async (data: any) => {\n console.log(`inside save task data ${JSON.stringify(data)}`);\n const savedRes = await $http.post('/task/create', data);\n return savedRes;\n};\n\nexport const invokeExportTask = async (programId: string) => {\n try {\n let res;\n await $http.get(`/admin/task/taskExport/${programId}`).then(async (response) => {\n // console.log(response.data.sys_settings);\n res = response.data;\n // await downloadEdcastUrl(res, programName);\n // const fileLink = document.createElement('a');\n // fileLink.href = res;\n // fileLink.setAttribute('download', learnerSubmission);\n // document.body.appendChild(fileLink);\n\n // fileLink.click();\n // fileLink.download = 'EdcastUrl.csv';\n // fileLink.click();\n // URL.revokeObjectURL(fileLink.href);\n return res;\n });\n return res;\n } catch (error) {\n return error;\n }\n};\n"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","directives","name","rawName","value","search","expression","attrs","placeHolder1","domProps","on","$event","filterProgramDetails","$emit","filteredProgramDetails","target","composing","staticRenderFns","defineComponent","props","data","Array","placeholder","type","String","default","setup","ref","ProgramDetails","filter","program","toLowerCase","includes","onBeforeMount","async","console","log","component","showScreen","_m","_v","getSelectedProgram","_l","programDetails","key","program_id","_s","program_display_name","program_name","programErrorMessage","_e","showSkillProf","getSelectedSkill","skills","skill","skill_id","skill_alias","skillErrorMessage","getSelectedProficiency","proficiency","prof","prof_id","prof_name","proficiencyError","getLearnerForProxy","proxyButtonVisible","showProxy","learnerData","id","selectedTaskId","length","learner_task_id","isArray","_i","$$a","$$el","$$c","checked","$$v","$$i","concat","slice","setProxyBtn","proxy_requested_date","submission_date","ageing","isVisible","proxyList","proxyDetailsArray","getFilteredList","proxyAssignedBtn","assignLearnerToProxy","filteredproxyDetails","proxy","selectedProxyOhr","proxy_ohr","showAssignProxyBtn","checkOne","proxy_name","proxy_email","proxy_role","renderReady","require","components","SearchBar","selectedSkill","selectedProficiency","userRole","selectedProgram","event","cb","FilterData","getProgram","invokegetAllProgram","getSkillandProf","dataRes","invokegetSkillProf","setTimeout","resLearnerList","invokeLearnerForProxyReviewer","learnerToProxyAssign","index","res","today","moment","utc","format","requestedDateFormatted","diff","sort","a","b","error","e","Object","assign","url","invokegetAllProxies","all_proxies","map","proxyOhr","proxy_key","learners","linked_program_name","assignProxyRes","invokeAssignProxyToLearners","role","invokeGetUserRole","user_roles","$http","then","response","invokeGetProxyList","skillId","allProxyList","invokeProxyImport","deleteProxy","resp_message","addProxies","invokeseedMaster","invokeSkillSync","invokeTemplateSeed","invokeCacheSync","invokeseedDefaultProgram","invokeseedRoles","invokeSeedProxyReviewers","invokeSeedUser","invokeDiffAccess","invokemigrateCohort","invokeMigrateCohortLA","invokeMigrateCohortReview","invokeS2TasksMigration","userObj","invokeS2LAImport","invokeS2LAMigration","invokeMigrateS3Task","invokeMigrateS3LA","invokeMigrateS3Review","removeDuplicateProxyLearner","updateS3CohortsLearnerModifiedDate","invokeofcon","invokeProxyReviewSeed","invokeMigrateCohortProgram","assignRoleToUser","removeRoleFromUser","getAllRoles","importLSS","importEnvaccess","invokegetAllTaskByProgram","programId","tasks","getAllOffCycleByByProgram","learnerDetails","invokeArchieveTask","taskData","updateOffcyclestatus","getTaskById","getTaskres","taskId","uploadBulkTasks","bulkTaskFile","fetch","method","body","uploadResponse","err","importBulkTask","bulkTasData","resetActiveTaskSequence","saveTask","JSON","stringify","savedRes","invokeExportTask"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"solidify.umd.min.SolidifyAdministrationAssignProxy.js","mappings":"iNAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,oBAAoB,CAACH,EAAG,QAAQ,CAACI,WAAW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7C,IAAIvF,EAMJ,aAJM2B,EAAAA,EAAAA,KAAWb,EAAKyE,GAAa3D,MAAMC,IACvC7B,EAAM6B,EAASnI,KAAK0K,MACbpE,KAEFA,CAAG,EAGCwF,EAA0BhL,MAAOsG,EAAUpH,KACtD,IAAIsG,EAMJ,aAJM2B,EAAAA,EAAAA,KAAWb,EAAKpH,GAAMkI,MAAMC,IAChC7B,EAAM6B,EAASnI,KAAK0K,MACbpE,KAEFA,CAAG,EAGCyF,EAAWjL,UACtBC,QAAQC,IAAI,yBAAyBgL,KAAKC,UAAUjM,MACpD,MAAMkM,QAAiBjE,EAAAA,EAAAA,KAAW,eAAgBjI,GAClD,OAAOkM,CAAQ,EAGJC,EAAmBrL,UAC9B,IACE,IAAIwF,EAgBJ,aAfM2B,EAAAA,EAAAA,IAAU,0BAA0BwC,KAAavC,MAAKpH,UAE1DwF,EAAM6B,EAASnI,KAWRsG,KAEFA,C,CACP,MAAOU,GACP,OAAOA,C","sources":["webpack://solidify/./src/components/global/SearchBar.vue","webpack://solidify/./src/components/global/SearchBar.vue?f7b9","webpack://solidify/./src/components/global/SearchBar.vue?b082","webpack://solidify/./src/components/global/SearchBar.vue?f9bc","webpack://solidify/./src/views/Admin/Assign_Proxy.vue","webpack://solidify/./src/views/Admin/Assign_Proxy.vue?882b","webpack://solidify/./src/views/Admin/Assign_Proxy.vue?0600","webpack://solidify/./src/views/Admin/Assign_Proxy.vue?ac88","webpack://solidify/./src/utils/admin/assign_proxy_service.ts","webpack://solidify/./src/utils/admin/manage_proxy_service.ts","webpack://solidify/./src/utils/admin/master_service.ts","webpack://solidify/./src/utils/admin/task_management_service.ts"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"w-full flex mt-6\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.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\":_vm.placeHolder1},domProps:{\"value\":(_vm.search)},on:{\"keyup\":function($event){_vm.filterProgramDetails() & _vm.$emit('Filtered', _vm.filteredProgramDetails)},\"input\":function($event){if($event.target.composing)return;_vm.search=$event.target.value}}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { defineComponent, onBeforeMount, ref } from 'vue';\n\nexport default defineComponent({\n name: 'SearchBar',\n // eslint-disable-next-line vue/require-default-prop\n props: { data: [Array], placeholder: { type: String, default: 'Search' } },\n setup(props) {\n const search = ref('');\n const placeHolder1 = ref();\n const filteredProgramDetails = ref();\n const ProgramDetails = ref();\n const filterProgramDetails = () => {\n // console.log('props.data', props.data);\n ProgramDetails.value = props.data;\n filteredProgramDetails.value = ProgramDetails.value.filter((program) => program.toLowerCase().includes(search.value.toLowerCase()));\n // console.log('filteredProgramDetails', filteredProgramDetails);\n };\n onBeforeMount(async () => {\n // console.log('props.data onbefore mount', props.data);\n placeHolder1.value = props.placeholder;\n console.log('props.placeholder', props.placeholder);\n });\n return { placeHolder1, filteredProgramDetails, filterProgramDetails, search };\n },\n});\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SearchBar.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SearchBar.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SearchBar.vue?vue&type=template&id=7e210d5c&\"\nimport script from \"./SearchBar.vue?vue&type=script&lang=ts&\"\nexport * from \"./SearchBar.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"admin\"},[(_vm.showScreen)?_c('div',{staticClass:\"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10\"},[_vm._m(0),_c('div',{staticClass:\"w-full mt-4\"},[_c('div',{staticClass:\"max-w-6xl m-auto shadow p-4 text-background-secondary\"},[_c('div',{staticClass:\"flex w-full mt-6\"},[_c('div',{staticClass:\"w-full pr-3 mb-4\"},[_c('label',{staticClass:\"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2\"},[_vm._v(\" Select Program \")]),_c('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($event){return _vm.getSelectedProgram($event)}}},[_c('option',[_vm._v(\"Select Program\")]),_vm._l((_vm.programDetails),function(program){return _c('option',{key:program.program_id,domProps:{\"value\":program.program_id}},[_vm._v(_vm._s(program.program_display_name ? program.program_display_name : program.program_name))])})],2),(_vm.programErrorMessage)?_c('div',{staticClass:\"text-red-700\"},[_vm._v(_vm._s(_vm.programErrorMessage))]):_vm._e()]),(_vm.showSkillProf)?_c('div',{staticClass:\"w-full pr-3 mb-4\"},[_c('label',{staticClass:\"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2\"},[_vm._v(\" Skill \")]),_c('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($event){return _vm.getSelectedSkill($event)}}},[_c('option',[_vm._v(\"Select Skill\")]),_vm._l((_vm.skills),function(skill){return _c('option',{key:skill.skill_id,domProps:{\"value\":skill.skill_id}},[_vm._v(_vm._s(skill.skill_alias))])})],2),(_vm.skillErrorMessage)?_c('div',{staticClass:\"text-red-700\"},[_vm._v(_vm._s(_vm.skillErrorMessage))]):_vm._e()]):_vm._e(),(_vm.showSkillProf)?_c('div',{staticClass:\"w-full pr-3 mb-4\"},[_c('label',{staticClass:\"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2\"},[_vm._v(\" Proficiency \")]),_c('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($event){return _vm.getSelectedProficiency($event)}}},[_c('option',[_vm._v(\"Select Proficiency\")]),_vm._l((_vm.proficiency),function(prof){return _c('option',{key:prof.prof_id,domProps:{\"value\":prof.prof_id}},[_vm._v(_vm._s(prof.prof_name))])})],2),(_vm.proficiencyError)?_c('div',{staticClass:\"text-red-700\"},[_vm._v(_vm._s(_vm.proficiencyError))]):_vm._e()]):_vm._e(),_c('div',{staticClass:\"w-full mb-4\"},[_c('button',{staticClass:\"mt-8 inline-block py-2 px-4 text-white shadow-md bg-background-secondary\",on:{\"click\":function($event){return _vm.getLearnerForProxy()}}},[_vm._v(\"Search Learner\")])])]),(_vm.proxyButtonVisible)?_c('div',{staticClass:\"flex w-full mt-6\"},[_c('div',{staticClass:\"w-1/4 pr-3 mb-4\"},[_c('button',{staticClass:\"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary\",on:{\"click\":function($event){return _vm.showProxy()}}},[_vm._v(\"View available Proxy\")])])]):_vm._e(),(_vm.learnerData)?_c('div',{staticClass:\"flex w-full\"},[_c('div',{staticClass:\"w-full mt-4 tableScroll\"},[_c('table',{staticClass:\"w-full text-md bg-white rounded\"},[_vm._m(1),_c('tbody',{staticClass:\"opacity-80 -text-blue-800 align-bottom\"},_vm._l((_vm.learnerData),function(data){return _c('tr',{key:data.id,staticClass:\"border-b hover:bg-gray-300\"},[_c('td',{staticClass:\"py-2 pl-3 pr-0 text-sm w-6\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedTaskId),expression:\"selectedTaskId\"}],attrs:{\"type\":\"checkbox\",\"disabled\":_vm.selectedTaskId.length > 4,\"id\":data.learner_task_id},domProps:{\"value\":data.learner_task_id,\"checked\":Array.isArray(_vm.selectedTaskId)?_vm._i(_vm.selectedTaskId,data.learner_task_id)>-1:(_vm.selectedTaskId)},on:{\"change\":[function($event){var $$a=_vm.selectedTaskId,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=data.learner_task_id,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.selectedTaskId=$$a.concat([$$v]))}else{$$i>-1&&(_vm.selectedTaskId=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.selectedTaskId=$$c}},function($event){return _vm.setProxyBtn($event)}]}})]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(data.learner_task_id))]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(data.proxy_requested_date))]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(data.submission_date))]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(data.ageing))])])}),0)])])]):_vm._e(),(_vm.isVisible)?_c('div',{staticClass:\"w-full mt-4%\"},[_c('div',{staticClass:\"text-center text-3xl text-background-secondary\"},[_vm._v(\"Available Proxy\")]),(_vm.proxyList)?_c('div',{staticClass:\"w-full flex mt-6\"},[_c('SearchBar',{attrs:{\"data\":_vm.proxyDetailsArray,\"placeholder\":\"Search By Proxy Name\"},on:{\"Filtered\":_vm.getFilteredList}})],1):_vm._e(),(_vm.proxyAssignedBtn)?_c('div',{staticClass:\"w-1/4 pr-3 mb-4\"},[_c('button',{staticClass:\"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary\",on:{\"click\":function($event){return _vm.assignLearnerToProxy()}}},[_vm._v(\"Assign Proxy\")])]):_vm._e(),_c('div',{staticClass:\"w-full mt-4\"},[_c('table',{staticClass:\"w-full text-md bg-white shadow rounded text-over\"},[_vm._m(2),_c('tbody',{staticClass:\"opacity-80 -text-blue-800 align-bottom\"},_vm._l((_vm.filteredproxyDetails),function(proxy,id){return _c('tr',{key:id,staticClass:\"border-b hover:bg-gray-300\"},[_c('td',{staticClass:\"py-2 pl-3 pr-0 text-sm w-6\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedProxyOhr),expression:\"selectedProxyOhr\"}],attrs:{\"type\":\"checkbox\",\"id\":proxy.proxy_ohr},domProps:{\"value\":proxy.proxy_ohr,\"checked\":Array.isArray(_vm.selectedProxyOhr)?_vm._i(_vm.selectedProxyOhr,proxy.proxy_ohr)>-1:(_vm.selectedProxyOhr)},on:{\"change\":[function($event){var $$a=_vm.selectedProxyOhr,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=proxy.proxy_ohr,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.selectedProxyOhr=$$a.concat([$$v]))}else{$$i>-1&&(_vm.selectedProxyOhr=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.selectedProxyOhr=$$c}},function($event){return _vm.showAssignProxyBtn($event)}],\"click\":_vm.checkOne}})]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(proxy.proxy_name))]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(proxy.proxy_email))]),_c('td',{staticClass:\"p-2 px-3\"},[_vm._v(_vm._s(proxy.proxy_role))]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(_vm._s(proxy.proxy_ohr))])])}),0)])])]):_vm._e()])]),(!_vm.renderReady)?_c('div',{staticClass:\"flex flex-col h-min-screen justify-center text-center pageLoader\"},[_c('img',{staticClass:\"mb-8 block mx-auto loadercss mt-3%\",attrs:{\"src\":require(\"@/assets/images/loadernew.gif\"),\"alt\":\"Loader Gif\"}}),_c('p',{staticClass:\"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue\"},[_vm._v(\"Loading...\")])]):_vm._e()]):_c('div',{staticClass:\"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10\"},[_vm._v(\"You don't have access\")])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"w-full\"},[_c('div',{staticClass:\"text-center text-3xl text-background-secondary\"},[_vm._v(\"Assign Proxy\")])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('thead',{staticClass:\"opacity-90 -text-blue-800\"},[_c('tr',{staticClass:\"border-b\"},[_c('th',{staticClass:\"text-left py-2 pl-3 pr-0 w-6 text-background-secondary\"}),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"ID - Learner Activities\")]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"Proxy Reviewer Requested Date\")]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"Task Submission Date\")]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"Ageing\")])])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('thead',{staticClass:\"opacity-90 -text-blue-800\"},[_c('tr',{staticClass:\"border-b\"},[_c('th',{staticClass:\"text-left py-2 pl-3 pr-0 w-6 text-background-secondary\"}),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"Name\")]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"Email\")]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"Role\")]),_c('th',{staticClass:\"text-left p-2 px-3 text-background-secondary\"},[_vm._v(\"OHR\")])])])\n}]\n\nexport { render, staticRenderFns }","\nimport { defineComponent, onBeforeMount, ref } from 'vue';\nimport moment from 'moment';\nimport { invokeGetUserRole } from '@/utils/admin/master_service';\nimport { invokeAssignProxyToLearners, invokegetSkillProf, invokeLearnerForProxyReviewer } from '@/utils/admin/assign_proxy_service';\nimport { invokegetAllProgram } from '@/utils/admin/task_management_service';\nimport { invokegetAllProxies } from '@/utils/admin/manage_proxy_service';\nimport SearchBar from '@/components/global/SearchBar.vue';\n\n// eslint-disable-next-line\n// import router from '@/router';\n// import { XIcon } from 'vue-feather-icons';\n\nexport default defineComponent({\n name: 'AssignProxy',\n components: { SearchBar },\n setup() {\n const learnerData = ref();\n const skills = ref();\n const proficiency = ref();\n const renderReady = ref();\n const selectedSkill = ref();\n const selectedProficiency = ref();\n const isVisible = ref(false);\n const proxyButtonVisible = ref(false);\n const proxyList = ref();\n const selectedTaskId = ref([]);\n const selectedProxyOhr = ref();\n const proxyAssignedBtn = ref(false);\n const userRole = ref();\n const programDetails = ref();\n const showScreen = ref(true);\n const showSkillProf = ref(false);\n const selectedProgram = ref();\n const programErrorMessage = ref();\n const skillErrorMessage = ref();\n const proficiencyError = ref();\n const proxyDetailsArray = ref();\n const filteredproxyDetails = ref();\n\n const checkOne = () => {\n selectedProxyOhr.value = [];\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const setProxyBtn = (event: any) => {\n const cb = event.target.checked;\n // console.log('length', cb.length);\n if (cb === true) {\n console.log('selected Task id', selectedTaskId.value);\n proxyButtonVisible.value = true;\n // console.log(cb);\n } else if (selectedTaskId.value.length === 0) {\n proxyButtonVisible.value = false;\n isVisible.value = false;\n }\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const FilterData: any = {};\n const getProgram = async () => {\n renderReady.value = false;\n programDetails.value = await invokegetAllProgram('/cache?cache=program');\n // console.log(programDetails.value);\n renderReady.value = true;\n };\n const getSkillandProf = async () => {\n renderReady.value = false;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const dataRes: any = await invokegetSkillProf('/getAllSkillProf?skill_type=genome');\n skills.value = dataRes.skill;\n proficiency.value = dataRes.proficiency;\n renderReady.value = true;\n };\n const getLearnerForProxy = async () => {\n try {\n if (!selectedProgram.value) {\n programErrorMessage.value = 'Please Select Program';\n setTimeout(() => {\n programErrorMessage.value = null;\n }, 6000);\n return;\n }\n if (selectedProgram.value === 'infinity') {\n if (!selectedSkill.value) {\n skillErrorMessage.value = 'Please Select Skill';\n setTimeout(() => {\n skillErrorMessage.value = null;\n }, 6000);\n return;\n }\n if (!selectedProficiency.value) {\n proficiencyError.value = 'Please Select Proficiency';\n setTimeout(() => {\n proficiencyError.value = null;\n }, 6000);\n return;\n }\n }\n\n // if (FilterData.skill && FilterData.proficiency) {\n // console.log(FilterData);\n renderReady.value = false;\n await checkOne();\n selectedTaskId.value = [];\n proxyButtonVisible.value = false;\n // selectedTaskId.value.length == 0;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const resLearnerList: any = await invokeLearnerForProxyReviewer('/learnerTaskToProxyAssign', FilterData);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const dataRes: any = resLearnerList.data;\n learnerData.value = dataRes.learnerToProxyAssign;\n // const sortedArray = dataRes.sort((a: any, b: any) => moment(b.proxy_requested_date).utc().unix() - moment(a.submission_date).utc().unix());\n if (learnerData.value) {\n for (let index = 0; index < learnerData.value.length; index += 1) {\n const res = learnerData.value[index];\n const today = moment().utc().format('YYYY-MM-DD');\n if (res.proxy_requested_date) {\n const requestedDateFormatted = moment(res.proxy_requested_date).utc().format('YYYY-MM-DD');\n res.ageing = moment(today).diff(moment(requestedDateFormatted), 'days');\n res.proxy_requested_date = moment(res.proxy_requested_date).format('DD-MM-YYYY');\n }\n if (res.submission_date) {\n res.submission_date = moment(res.submission_date).format('DD-MM-YYYY');\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n learnerData.value = learnerData.value.sort((a: any, b: any) => b.ageing - a.ageing);\n }\n\n isVisible.value = false;\n console.log('Learner Data', learnerData.value);\n renderReady.value = true;\n // }\n } catch (error) {\n console.log(error);\n }\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const getSelectedProgram = async (e: any) => {\n selectedProgram.value = e.target.value;\n Object.assign(FilterData, { program_id: selectedProgram.value });\n if (selectedProgram.value !== 'Select Program') {\n if (selectedProgram.value === 'infinity') {\n showSkillProf.value = true;\n } else {\n selectedSkill.value = '';\n showSkillProf.value = false;\n }\n }\n // localStorage.setItem('program', selectedProgram.value);\n // localStorage.removeItem('inputValue');\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const getSelectedSkill = async (e: any) => {\n // console.log(e.target.removeAttr('selected'));\n selectedSkill.value = e.target.value;\n Object.assign(FilterData, { skill: selectedSkill.value });\n\n // await getLearnerForProxy();\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const getSelectedProficiency = async (e: any) => {\n selectedProficiency.value = e.target.value;\n Object.assign(FilterData, { proficiency: selectedProficiency.value });\n // isVisible.value = false;\n // await getLearnerForProxy();\n };\n const showProxy = async () => {\n isVisible.value = true;\n renderReady.value = false;\n let url = `/v2/admin/proxy/program/${selectedProgram.value}`;\n if (!selectedProgram.value) {\n programErrorMessage.value = 'Please Select Program';\n setTimeout(() => {\n programErrorMessage.value = null;\n }, 6000);\n return;\n }\n if (selectedProgram.value === 'infinity') {\n url = `/v2/admin/proxy/program/infinity/skill/${selectedSkill.value}`;\n if (!selectedSkill.value) {\n skillErrorMessage.value = 'Please Select Skill';\n setTimeout(() => {\n skillErrorMessage.value = null;\n }, 6000);\n return;\n }\n }\n const res = await invokegetAllProxies(url);\n proxyList.value = res.all_proxies;\n proxyDetailsArray.value = proxyList.value.map((proxy) => proxy.proxy_name);\n filteredproxyDetails.value = proxyList.value;\n console.log('Proxy Data', proxyList.value);\n // proxyList.value = await invokeGetProxyList('/getAllProxyBySkill', selectedSkill.value);\n renderReady.value = true;\n console.log('Proxy List', proxyList.value);\n };\n const getFilteredList = (value) => {\n // filteredProgramDetails.value = value;\n // console.log('ProgramDetails.value in final', ProgramDetails.value);\n filteredproxyDetails.value = proxyList.value.filter((proxy) => value.includes(proxy.proxy_name));\n console.log('filteredproxyDetails', filteredproxyDetails.value);\n };\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const showAssignProxyBtn = async (event: any) => {\n const proxyOhr = event.target.checked;\n if (proxyOhr === true) {\n proxyAssignedBtn.value = true;\n } else {\n proxyAssignedBtn.value = false;\n }\n };\n const assignLearnerToProxy = async () => {\n try {\n renderReady.value = false;\n const data = {\n proxy_key: selectedProxyOhr.value[0],\n learners: selectedTaskId.value,\n linked_program_name: selectedProgram.value,\n skill: selectedSkill.value,\n proficiency: selectedProficiency.value,\n };\n console.log('Selected Data', data);\n const assignProxyRes = await invokeAssignProxyToLearners('/proxyreview', data);\n isVisible.value = false;\n await getLearnerForProxy();\n // router.push({ path: 'assignProxy' });\n // router.go(0);\n renderReady.value = true;\n console.log('data ohr', assignProxyRes);\n } catch (error) {\n console.log('data ohr', error);\n }\n };\n onBeforeMount(async () => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const role: any = await invokeGetUserRole('/getUserRole');\n userRole.value = role.user_roles;\n if (userRole.value.length > 0) {\n console.log('inside length');\n if (userRole.value.includes('System Admin') || userRole.value.includes('Proxy Admin') || userRole.value.includes('Community Manager')) {\n showScreen.value = true;\n await getSkillandProf();\n await getProgram();\n } else {\n showScreen.value = false;\n }\n }\n });\n return {\n learnerData,\n skills,\n proficiency,\n renderReady,\n getSelectedSkill,\n getSelectedProficiency,\n isVisible,\n showProxy,\n getSkillandProf,\n getLearnerForProxy,\n selectedTaskId,\n proxyButtonVisible,\n setProxyBtn,\n proxyList,\n selectedProxyOhr,\n checkOne,\n showAssignProxyBtn,\n proxyAssignedBtn,\n assignLearnerToProxy,\n showScreen,\n programDetails,\n showSkillProf,\n getSelectedProgram,\n programErrorMessage,\n skillErrorMessage,\n proficiencyError,\n proxyDetailsArray,\n getFilteredList,\n filteredproxyDetails,\n };\n },\n});\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Assign_Proxy.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Assign_Proxy.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Assign_Proxy.vue?vue&type=template&id=5cc4919a&scoped=true&\"\nimport script from \"./Assign_Proxy.vue?vue&type=script&lang=ts&\"\nexport * from \"./Assign_Proxy.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Assign_Proxy.vue?vue&type=style&index=0&id=5cc4919a&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5cc4919a\",\n null\n \n)\n\nexport default component.exports","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n// import axios from 'axios';\nimport $http from '../../plugins/axios';\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n\nexport const invokeLearnerForProxyReviewer = async (url: string, data: any) => {\n // let res;\n // eslint-disable-next-line camelcase\n // await $http.post(url, data).then((response) => {\n // // console.log(response.data.sys_settings);\n // res = response.data;\n // return res;\n // });\n const res = await $http.post(url, data);\n return res;\n};\nexport const invokegetSkillProf = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n // console.log(response.data.sys_settings);\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeGetProxyList = async (url: string, skillId: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(`${url}/${skillId}`).then((response) => {\n // console.log(response.data.sys_settings);\n res = response.data.allProxyList;\n return res;\n });\n return res;\n};\n\nexport const invokeProgramProxies = async (url: string, data: any) => {\n const res = await $http.post(url, data);\n // await $http.post(url, data).then((response) => {\n // // console.log(response.data.sys_settings);\n // res = response.data.allProxyList;\n // return res;\n // });\n return res;\n};\nexport const invokegetAllProxies = async (url: string, data: any) => {\n const res = await $http.post(url, data);\n // await $http.post(url, data).then((response) => {\n // // console.log(response.data.sys_settings);\n // res = response.data.allProxyList;\n // return res;\n // });\n return res;\n};\n\nexport const invokeAssignProxyToLearners = async (url: string, data: any) => {\n // let res;\n const res = await $http.post(url, data);\n // await $http.post(url, data).then((response) => {\n // // console.log(response.data.sys_settings);\n // res = response.data.allProxyList;\n // return res;\n // });\n return res;\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n// import axios from 'axios';\nimport $http from '../../plugins/axios';\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n\nexport const invokegetSkillProf = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n // console.log(response.data.sys_settings);\n res = response.data;\n return res;\n });\n return res;\n};\n\nexport const invokeProgramProxies = async (url: string, data: any) => {\n const res = await $http.post(url, data);\n // await $http.post(url, data).then((response) => {\n // // console.log(response.data.sys_settings);\n // res = response.data.allProxyList;\n // return res;\n // });\n return res;\n};\nexport const invokegetAllProxies = async (url: string) => {\n const res = await $http.get(url);\n return res.data;\n};\nexport const invokeProxyImport = async (url: string, data: any) => {\n const res = await $http.post(url, data);\n return res.data;\n};\n\nexport const deleteProxy = async (url: string, data: any) => {\n const res = await $http.post(url, data);\n return res.data.resp_message;\n};\nexport const addProxies = async (url: string, data: any) => {\n const res = await $http.post(url, data);\n return res.data.resp_message;\n};\n","/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n// import axios from 'axios';\nimport $http from '../../plugins/axios';\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport const invokeseedMaster = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\n\nexport const invokeSkillSync = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeTemplateSeed = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeCacheSync = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeseedDefaultProgram = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeseedRoles = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeSeedProxyReviewers = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeSeedUser = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeDiffAccess = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokemigrateCohort = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeMigrateCohortLA = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeMigrateCohortReview = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeS2TasksMigration = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data.userObj;\n return res;\n });\n return res;\n};\nexport const invokeS2LAImport = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data.userObj;\n return res;\n });\n return res;\n};\nexport const invokeS2LAMigration = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data.userObj;\n return res;\n });\n return res;\n};\nexport const invokeMigrateS3Task = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeMigrateS3LA = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const invokeMigrateS3Review = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const removeDuplicateProxyLearner = async (url: string) => {\n const res = await $http.get(url);\n return res;\n};\nexport const updateS3CohortsLearnerModifiedDate = async (url: string) => {\n const res = await $http.get(url);\n return res;\n};\nexport const invokeofcon = async (url: string) => {\n const res = await $http.get(url);\n return res;\n};\n// export const invokeMasterSeed = async (url: string) => {\n// let res;\n// // eslint-disable-next-line camelcase\n// await $http.get(`${url}}`).then((response) => {\n// res = response.data;\n// return res;\n// });\n// return res;\n// };\n\nexport const invokeProxyReviewSeed = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\n\nexport const invokeMigrateCohortProgram = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\n\nexport const invokeGetUserRole = async (url: string) => {\n let res;\n await $http.get(url).then((response) => {\n res = response.data.userObj;\n return res;\n });\n return res;\n};\n\nexport const assignRoleToUser = async (data: any) => {\n const res = await $http.post('/user/role', data);\n return res;\n};\n\nexport const removeRoleFromUser = async (data: any) => {\n const res = await $http.post('/user/removeRole', data);\n return res;\n};\n\nexport const getAllRoles = async () => {\n const res = await $http.get('role');\n return res;\n};\nexport const importLSS = async (key: any) => {\n const res = await $http.post('/user/saveLSS', key);\n return res;\n};\nexport const importEnvaccess = async (key: any) => {\n const res = await $http.post('/user/saveEnvAccess', key);\n return res;\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n// import axios from 'axios';\nimport $http from '../../plugins/axios';\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n\nexport const invokegetAllProgram = async (url: string) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.get(url).then((response) => {\n console.log('Response', response);\n res = response.data.response.program_name;\n return res;\n });\n return res;\n};\n\nexport const invokegetAllTaskByProgram = async (url: string, programId: any) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.post(url, programId).then((response) => {\n res = response.data.tasks;\n return res;\n });\n return res;\n};\n\nexport const invokeGetAllGenAIReviewedSubmissions = async (url: string, payload: any) => {\n let res: any;\n // eslint-disable-next-line camelcase\n await $http.post(url, payload).then((response) => {\n res = response?.data?.data;\n return res;\n });\n return res;\n};\nexport const getAllOffCycleByByProgram = async (url: string, programId: any) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.post(url, programId).then((response) => {\n res = response.data.learnerDetails;\n return res;\n });\n return res;\n};\nexport const invokeArchieveTask = async (url: string, taskData: any) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.post(url, taskData).then((response) => {\n res = response.data.tasks;\n return res;\n });\n return res;\n};\nexport const updateOffcyclestatus = async (url: string, taskData: any) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.post(url, taskData).then((response) => {\n res = response.data;\n return res;\n });\n return res;\n};\nexport const getTaskById = async (taskId: any) => {\n let getTaskres: any;\n try {\n await $http.get(`/task/${taskId}`).then((response) => {\n getTaskres = response.data.data;\n return getTaskres;\n });\n return getTaskres;\n } catch (error) {\n return error;\n }\n};\nexport const uploadBulkTasks = async (url: any, bulkTaskFile: any) => {\n try {\n const res = await fetch(`${url}`, {\n method: 'put',\n body: bulkTaskFile,\n });\n const uploadResponse = res;\n return uploadResponse;\n } catch (err) {\n console.error(err);\n return err;\n }\n};\n\nexport const importBulkTask = async (url: any, bulkTasData: any) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.post(url, bulkTasData).then((response) => {\n res = response.data.tasks;\n return res;\n });\n return res;\n};\n\nexport const resetActiveTaskSequence = async (url: any, data: any) => {\n let res;\n // eslint-disable-next-line camelcase\n await $http.post(url, data).then((response) => {\n res = response.data.tasks;\n return res;\n });\n return res;\n};\n\nexport const saveTask = async (data: any) => {\n console.log(`inside save task data ${JSON.stringify(data)}`);\n const savedRes = await $http.post('/task/create', data);\n return savedRes;\n};\n\nexport const invokeExportTask = async (programId: string) => {\n try {\n let res;\n await $http.get(`/admin/task/taskExport/${programId}`).then(async (response) => {\n // console.log(response.data.sys_settings);\n res = response.data;\n // await downloadEdcastUrl(res, programName);\n // const fileLink = document.createElement('a');\n // fileLink.href = res;\n // fileLink.setAttribute('download', learnerSubmission);\n // document.body.appendChild(fileLink);\n\n // fileLink.click();\n // fileLink.download = 'EdcastUrl.csv';\n // fileLink.click();\n // URL.revokeObjectURL(fileLink.href);\n return res;\n });\n return res;\n } catch (error) {\n return error;\n }\n};\n"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","directives","name","rawName","value","search","expression","attrs","placeHolder1","domProps","on","$event","filterProgramDetails","$emit","filteredProgramDetails","target","composing","staticRenderFns","defineComponent","props","data","Array","placeholder","type","String","default","setup","ref","ProgramDetails","filter","program","toLowerCase","includes","onBeforeMount","async","console","log","component","showScreen","_m","_v","getSelectedProgram","_l","programDetails","key","program_id","_s","program_display_name","program_name","programErrorMessage","_e","showSkillProf","getSelectedSkill","skills","skill","skill_id","skill_alias","skillErrorMessage","getSelectedProficiency","proficiency","prof","prof_id","prof_name","proficiencyError","getLearnerForProxy","proxyButtonVisible","showProxy","learnerData","id","selectedTaskId","length","learner_task_id","isArray","_i","$$a","$$el","$$c","checked","$$v","$$i","concat","slice","setProxyBtn","proxy_requested_date","submission_date","ageing","isVisible","proxyList","proxyDetailsArray","getFilteredList","proxyAssignedBtn","assignLearnerToProxy","filteredproxyDetails","proxy","selectedProxyOhr","proxy_ohr","showAssignProxyBtn","checkOne","proxy_name","proxy_email","proxy_role","renderReady","require","components","SearchBar","selectedSkill","selectedProficiency","userRole","selectedProgram","event","cb","FilterData","getProgram","invokegetAllProgram","getSkillandProf","dataRes","invokegetSkillProf","setTimeout","resLearnerList","invokeLearnerForProxyReviewer","learnerToProxyAssign","index","res","today","moment","utc","format","requestedDateFormatted","diff","sort","a","b","error","e","Object","assign","url","invokegetAllProxies","all_proxies","map","proxyOhr","proxy_key","learners","linked_program_name","assignProxyRes","invokeAssignProxyToLearners","role","invokeGetUserRole","user_roles","$http","then","response","invokeGetProxyList","skillId","allProxyList","invokeProxyImport","deleteProxy","resp_message","addProxies","invokeseedMaster","invokeSkillSync","invokeTemplateSeed","invokeCacheSync","invokeseedDefaultProgram","invokeseedRoles","invokeSeedProxyReviewers","invokeSeedUser","invokeDiffAccess","invokemigrateCohort","invokeMigrateCohortLA","invokeMigrateCohortReview","invokeS2TasksMigration","userObj","invokeS2LAImport","invokeS2LAMigration","invokeMigrateS3Task","invokeMigrateS3LA","invokeMigrateS3Review","removeDuplicateProxyLearner","updateS3CohortsLearnerModifiedDate","invokeofcon","invokeProxyReviewSeed","invokeMigrateCohortProgram","assignRoleToUser","removeRoleFromUser","getAllRoles","importLSS","importEnvaccess","invokegetAllTaskByProgram","programId","tasks","invokeGetAllGenAIReviewedSubmissions","payload","getAllOffCycleByByProgram","learnerDetails","invokeArchieveTask","taskData","updateOffcyclestatus","getTaskById","getTaskres","taskId","uploadBulkTasks","bulkTaskFile","fetch","method","body","uploadResponse","err","importBulkTask","bulkTasData","resetActiveTaskSequence","saveTask","JSON","stringify","savedRes","invokeExportTask"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[704],{4735:function(e,t,a){a.d(t,{Z:function(){return c}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-16 px-32"},[t("div",{staticClass:"md:px-0 lg:px-0 text-center"},[t("div",{staticClass:"text-gray-500"},[t("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),t("div",{staticClass:"pt-8"},[t("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[t("img",{staticClass:"mx-auto",attrs:{src:a(6540)}})])])])])])},r=[],l=a(7203),i=(0,l.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,l.ref)(""),a=(0,l.ref)(localStorage.getItem("helpmateLink"));return(0,l.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:a}}}),n=i,o=a(1001),u=(0,o.Z)(n,s,r,!1,null,null,null),c=u.exports},7413:function(e,t,a){a.r(t),a.d(t,{default:function(){return oe}});var s,r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},[t("div",["infinity"===e.programId?t("p",[e._v(" Proficiency: "),t("strong",[e._v(e._s(e.profName))])]):e._e(),"infinity"===e.programId?t("p",{staticClass:"pt-2"},[e._v(" Skill: "),t("strong",[e._v(e._s(e.skill))])]):e._e(),"infinity"!==e.programId?t("p",{staticClass:"pt-2"},[e._v(" Program: "),t("strong",[e._v(e._s(e.programName))])]):e._e(),t("p",{staticClass:"pt-2"},[t("strong",[e._v("Task Name: ")]),e._v(e._s(e.taskName))])]),"Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[e._m(1),t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{key:e.fileInputKey,attrs:{type:"file"},on:{change:e.selectedFile}}),e._v(" "),e.learnerSubmission?t("x-icon",{attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1)]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[e._m(2),t("div",{staticClass:"mb-4 text-center"},[null!==e.skillId&&null!==e.proficiencyId?t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId,skill_id:e.skillId,proficiency_id:e.proficiencyId}}}},[e._v("Back")]):t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},l=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Create Off-Cycle Task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Upload the file to create off-cycle task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pt-4"},[t("p",{staticClass:"text-xl"},[t("em",[e._v("Please don't click the browser back button")])])])}],i=(a(7658),a(7203)),n=a(4856),o=a(306),u=(a(3767),a(8585),a(8696),new Uint8Array(16));function c(){if(!s&&(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(u)}var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function m(e){return"string"===typeof e&&d.test(e)}for(var f=m,v=[],p=0;p<256;++p)v.push((p+256).toString(16).substr(1));function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase();if(!f(a))throw TypeError("Stringified UUID is invalid");return a}var b,y,x=g,h=0,k=0;function w(e,t,a){var s=t&&a||0,r=t||new Array(16);e=e||{};var l=e.node||b,i=void 0!==e.clockseq?e.clockseq:y;if(null==l||null==i){var n=e.random||(e.rng||c)();null==l&&(l=b=[1|n[0],n[1],n[2],n[3],n[4],n[5]]),null==i&&(i=y=16383&(n[6]<<8|n[7]))}var o=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:k+1,d=o-h+(u-k)/1e4;if(d<0&&void 0===e.clockseq&&(i=i+1&16383),(d<0||o>h)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=o,k=u,y=i,o+=122192928e5;var m=(1e4*(268435455&o)+u)%4294967296;r[s++]=m>>>24&255,r[s++]=m>>>16&255,r[s++]=m>>>8&255,r[s++]=255&m;var f=o/4294967296*1e4&268435455;r[s++]=f>>>8&255,r[s++]=255&f,r[s++]=f>>>24&15|16,r[s++]=f>>>16&255,r[s++]=i>>>8|128,r[s++]=255&i;for(var v=0;v<6;++v)r[s+v]=l[v];return t||x(r)}var _=w;function C(e){if(!f(e))throw TypeError("Invalid UUID");var t,a=new Uint8Array(16);return a[0]=(t=parseInt(e.slice(0,8),16))>>>24,a[1]=t>>>16&255,a[2]=t>>>8&255,a[3]=255&t,a[4]=(t=parseInt(e.slice(9,13),16))>>>8,a[5]=255&t,a[6]=(t=parseInt(e.slice(14,18),16))>>>8,a[7]=255&t,a[8]=(t=parseInt(e.slice(19,23),16))>>>8,a[9]=255&t,a[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=t/4294967296&255,a[12]=t>>>24&255,a[13]=t>>>16&255,a[14]=t>>>8&255,a[15]=255&t,a}var S=C;function A(e){e=unescape(encodeURIComponent(e));for(var t=[],a=0;a<e.length;++a)t.push(e.charCodeAt(a));return t}var I="6ba7b810-9dad-11d1-80b4-00c04fd430c8",M="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function T(e,t,a){function s(e,s,r,l){if("string"===typeof e&&(e=A(e)),"string"===typeof s&&(s=S(s)),16!==s.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(s),i.set(e,s.length),i=a(i),i[6]=15&i[6]|t,i[8]=63&i[8]|128,r){l=l||0;for(var n=0;n<16;++n)r[l+n]=i[n];return r}return x(i)}try{s.name=e}catch(r){}return s.DNS=I,s.URL=M,s}function U(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var a=0;a<t.length;++a)e[a]=t.charCodeAt(a)}return E(Z(L(e),8*e.length))}function E(e){for(var t=[],a=32*e.length,s="0123456789abcdef",r=0;r<a;r+=8){var l=e[r>>5]>>>r%32&255,i=parseInt(s.charAt(l>>>4&15)+s.charAt(15&l),16);t.push(i)}return t}function R(e){return 14+(e+64>>>9<<4)+1}function Z(e,t){e[t>>5]|=128<<t%32,e[R(t)-1]=t;for(var a=1732584193,s=-271733879,r=-1732584194,l=271733878,i=0;i<e.length;i+=16){var n=a,o=s,u=r,c=l;a=B(a,s,r,l,e[i],7,-680876936),l=B(l,a,s,r,e[i+1],12,-389564586),r=B(r,l,a,s,e[i+2],17,606105819),s=B(s,r,l,a,e[i+3],22,-1044525330),a=B(a,s,r,l,e[i+4],7,-176418897),l=B(l,a,s,r,e[i+5],12,1200080426),r=B(r,l,a,s,e[i+6],17,-1473231341),s=B(s,r,l,a,e[i+7],22,-45705983),a=B(a,s,r,l,e[i+8],7,1770035416),l=B(l,a,s,r,e[i+9],12,-1958414417),r=B(r,l,a,s,e[i+10],17,-42063),s=B(s,r,l,a,e[i+11],22,-1990404162),a=B(a,s,r,l,e[i+12],7,1804603682),l=B(l,a,s,r,e[i+13],12,-40341101),r=B(r,l,a,s,e[i+14],17,-1502002290),s=B(s,r,l,a,e[i+15],22,1236535329),a=F(a,s,r,l,e[i+1],5,-165796510),l=F(l,a,s,r,e[i+6],9,-1069501632),r=F(r,l,a,s,e[i+11],14,643717713),s=F(s,r,l,a,e[i],20,-373897302),a=F(a,s,r,l,e[i+5],5,-701558691),l=F(l,a,s,r,e[i+10],9,38016083),r=F(r,l,a,s,e[i+15],14,-660478335),s=F(s,r,l,a,e[i+4],20,-405537848),a=F(a,s,r,l,e[i+9],5,568446438),l=F(l,a,s,r,e[i+14],9,-1019803690),r=F(r,l,a,s,e[i+3],14,-187363961),s=F(s,r,l,a,e[i+8],20,1163531501),a=F(a,s,r,l,e[i+13],5,-1444681467),l=F(l,a,s,r,e[i+2],9,-51403784),r=F(r,l,a,s,e[i+7],14,1735328473),s=F(s,r,l,a,e[i+12],20,-1926607734),a=N(a,s,r,l,e[i+5],4,-378558),l=N(l,a,s,r,e[i+8],11,-2022574463),r=N(r,l,a,s,e[i+11],16,1839030562),s=N(s,r,l,a,e[i+14],23,-35309556),a=N(a,s,r,l,e[i+1],4,-1530992060),l=N(l,a,s,r,e[i+4],11,1272893353),r=N(r,l,a,s,e[i+7],16,-155497632),s=N(s,r,l,a,e[i+10],23,-1094730640),a=N(a,s,r,l,e[i+13],4,681279174),l=N(l,a,s,r,e[i],11,-358537222),r=N(r,l,a,s,e[i+3],16,-722521979),s=N(s,r,l,a,e[i+6],23,76029189),a=N(a,s,r,l,e[i+9],4,-640364487),l=N(l,a,s,r,e[i+12],11,-421815835),r=N(r,l,a,s,e[i+15],16,530742520),s=N(s,r,l,a,e[i+2],23,-995338651),a=P(a,s,r,l,e[i],6,-198630844),l=P(l,a,s,r,e[i+7],10,1126891415),r=P(r,l,a,s,e[i+14],15,-1416354905),s=P(s,r,l,a,e[i+5],21,-57434055),a=P(a,s,r,l,e[i+12],6,1700485571),l=P(l,a,s,r,e[i+3],10,-1894986606),r=P(r,l,a,s,e[i+10],15,-1051523),s=P(s,r,l,a,e[i+1],21,-2054922799),a=P(a,s,r,l,e[i+8],6,1873313359),l=P(l,a,s,r,e[i+15],10,-30611744),r=P(r,l,a,s,e[i+6],15,-1560198380),s=P(s,r,l,a,e[i+13],21,1309151649),a=P(a,s,r,l,e[i+4],6,-145523070),l=P(l,a,s,r,e[i+11],10,-1120210379),r=P(r,l,a,s,e[i+2],15,718787259),s=P(s,r,l,a,e[i+9],21,-343485551),a=D(a,n),s=D(s,o),r=D(r,u),l=D(l,c)}return[a,s,r,l]}function L(e){if(0===e.length)return[];for(var t=8*e.length,a=new Uint32Array(R(t)),s=0;s<t;s+=8)a[s>>5]|=(255&e[s/8])<<s%32;return a}function D(e,t){var a=(65535&e)+(65535&t),s=(e>>16)+(t>>16)+(a>>16);return s<<16|65535&a}function V(e,t){return e<<t|e>>>32-t}function G(e,t,a,s,r,l){return D(V(D(D(t,e),D(s,l)),r),a)}function B(e,t,a,s,r,l,i){return G(t&a|~t&s,e,t,r,l,i)}function F(e,t,a,s,r,l,i){return G(t&s|a&~s,e,t,r,l,i)}function N(e,t,a,s,r,l,i){return G(t^a^s,e,t,r,l,i)}function P(e,t,a,s,r,l,i){return G(a^(t|~s),e,t,r,l,i)}var j=U,z=T("v3",48,j),W=z;function J(e,t,a){e=e||{};var s=e.random||(e.rng||c)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){a=a||0;for(var r=0;r<16;++r)t[a+r]=s[r];return t}return x(s)}var q=J;function O(e,t,a,s){switch(e){case 0:return t&a^~t&s;case 1:return t^a^s;case 2:return t&a^t&s^a&s;case 3:return t^a^s}}function X(e,t){return e<<t|e>>>32-t}function Y(e){var t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var s=unescape(encodeURIComponent(e));e=[];for(var r=0;r<s.length;++r)e.push(s.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var l=e.length/4+2,i=Math.ceil(l/16),n=new Array(i),o=0;o<i;++o){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*o+4*c]<<24|e[64*o+4*c+1]<<16|e[64*o+4*c+2]<<8|e[64*o+4*c+3];n[o]=u}n[i-1][14]=8*(e.length-1)/Math.pow(2,32),n[i-1][14]=Math.floor(n[i-1][14]),n[i-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<i;++d){for(var m=new Uint32Array(80),f=0;f<16;++f)m[f]=n[d][f];for(var v=16;v<80;++v)m[v]=X(m[v-3]^m[v-8]^m[v-14]^m[v-16],1);for(var p=a[0],g=a[1],b=a[2],y=a[3],x=a[4],h=0;h<80;++h){var k=Math.floor(h/20),w=X(p,5)+O(k,g,b,y)+x+t[k]+m[h]>>>0;x=y,y=b,b=X(g,30)>>>0,g=p,p=w}a[0]=a[0]+p>>>0,a[1]=a[1]+g>>>0,a[2]=a[2]+b>>>0,a[3]=a[3]+y>>>0,a[4]=a[4]+x>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]}var H=Y,K=T("v5",80,H),Q=K,$={v1:_,v3:W,v4:q,v5:Q};var ee=a(2612),te=a(568),ae=a(9955),se=a(4735),re=(0,i.defineComponent)({name:"LearnerSubmitTask",components:{XIcon:n.b0D,ErrorMessage:se.Z},setup(){const e=(0,i.ref)(localStorage.getItem("linkedTaskId")),t=(0,i.ref)($.v1()),a=(0,i.ref)(localStorage.getItem("programId")),s=(0,i.ref)(localStorage.getItem("programName")),r=(0,i.ref)(localStorage.getItem("skillId"));console.log("skill Id in createoffcyclle",r);const l=(0,i.ref)(localStorage.getItem("proficiencyId")),n=(0,i.ref)(localStorage.getItem("skillName")),u=(0,i.ref)(localStorage.getItem("proficiencyName")),c=(0,i.ref)(localStorage.getItem("taskName")),d=(0,i.ref)(localStorage.getItem("taskType")),m=(0,i.ref)(null),f=(0,i.ref)(),v=(0,i.ref)(),p=(0,i.ref)(),g=(0,i.ref)(!0),b=(0,i.ref)(),y=(0,i.ref)(0),x=(0,i.ref)(!1),h=(0,i.ref)(),k=(0,i.ref)(!1),w=(0,i.ref)(),_=(0,i.ref)(!1),C=async()=>{y.value+=1,console.log(`before ${v.value}`),v.value=null,console.log(`after ${v.value}`)},S=e=>{const t=e.target.checked;!0===t?(g.value=!1,console.log(g.value)):(g.value=!0,console.log(g.value))},A=async e=>{try{m.value=e.target.files[0],v.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(f.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),x.value=!0,o.Z.isAxiosError(t)){const e=t;h.value=e.response?.data?.message}else h.value="Something went wrong, please contact helpmate.";_.value=!0}},I=async()=>{try{if(x.value=!1,v.value){let s;if("Desktop"===d.value){const i={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission:v.value},n=await(0,te.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:v.value,learner_task_id:t.value}),o=n.data;p.value=o.preSignedUrl;const u=await(0,te.sc)(p.value,m.value);200===u.status?s=await(0,ae.sw)("/offcycle/create",i):(x.value=!0,h.value="There is issue in the file upload, please contact with helpmate.",_.value=!0)}else{const i={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission_text:v.value};s=await(0,ae.sw)("/offcycle/create",i)}200===s.status?(x.value=!0,w.value=s.data.message,k.value=!0,localStorage.removeItem("programId"),localStorage.removeItem("programName"),localStorage.removeItem("linkedTaskId"),localStorage.removeItem("skillId"),localStorage.removeItem("skillName"),localStorage.removeItem("proficiencyId"),localStorage.removeItem("proficiencyName"),localStorage.removeItem("taskName"),localStorage.removeItem("taskType"),null!==r.value&&null!==l.value?ee.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value,skill_id:r.value,proficiency_id:l.value}}):ee.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value}})):(x.value=!0,h.value="There is some issue while submitting learner submission, please contact with helpmate.",_.value=!0)}else"Mobile"===d.value?(x.value=!0,v.value||(f.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{f.value=null}),6e3))):"Desktop"===d.value&&(x.value=!0,console.log(`learnerSubmission.value ${v.value}`),v.value||(f.value="please select File",setTimeout((()=>{f.value=null}),6e3)))}catch(s){if(x.value=!0,console.log(`error ${s}`),o.Z.isAxiosError(s)){const e=s;h.value=e.response?.data?.message}else h.value="There is some issue while submitting learner submission, please contact with helpmate.";_.value=!0}};return(0,i.onBeforeMount)((async()=>{x.value=!0})),{learnerSubmissionFile:m,skillId:r,proficiencyId:l,programId:a,taskType:d,taskName:c,submitSubmiision:I,learnerSubmission:v,selectedFile:A,fileValidationMsg:f,learnerTaskId:t,preSignedUrl:p,buttonDisable:g,setButtonEnable:S,validationError:b,clearFile:C,fileInputKey:y,renderReady:x,errorResponse:h,showErrorMessage:_,programName:s,skill:n,profName:u,showSuccessMessage:k,resMessage:w}}}),le=re,ie=a(1001),ne=(0,ie.Z)(le,r,l,!1,null,"5bfafb19",null),oe=ne.exports},9141:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationOffCycleDetails",query:{learner_task_id:e.learnerTaskId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v(" Update Submission ")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Update Learner Submission")])])}],l=a(7203),i=a(306),n=a(8451),o=a(568),u=a(4735),c=(0,l.defineComponent)({name:"UpdateSubmission",components:{ErrorMessage:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,l.ref)(e.query.linked_task_id);console.log("Task ID",t.value);const a=(0,l.ref)(e.query.learner_task_id),s=(0,l.ref)(),r=(0,l.ref)(),u=(0,l.ref)(),c=(0,l.ref)(null),d=(0,l.ref)(),m=(0,l.ref)(!0),f=(0,l.ref)(),v=(0,l.ref)(0),p=(0,l.ref)(!1),g=(0,l.ref)(),b=(0,l.ref)(!1),y=(0,l.ref)(),x=(0,l.ref)(!1),h=async e=>{try{c.value=e.target.files[0],u.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),p.value=!0,i.Z.isAxiosError(t)){const e=t;g.value=e.response?.data?.message}else g.value="Something went wrong, please contact helpmate.";x.value=!0}},k=async()=>{try{if(p.value=!1,u.value){let e;const t={learner_task_id:a.value,learner_submission:u.value,taskType:s.value};if("Desktop"===s.value){const s=await(0,o.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:u.value,learner_task_id:a.value}),r=s.data;d.value=r.preSignedUrl;const l=await(0,o.sc)(d.value,c.value);200===l.status?e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",t):(p.value=!0,g.value="There is issue in the file upload, please contact with helpmate.",x.value=!0)}else e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(p.value=!0,y.value=e.data.message,b.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3)):(p.value=!0,g.value="There is some issue while submitting learner submission, please contact with helpmate.",x.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3))}else"Mobile"===s.value?(p.value=!0,u.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{r.value=null}),6e3))):"Desktop"===s.value&&(p.value=!0,console.log(`learnerSubmission.value ${u.value}`),u.value||(r.value="please select File",setTimeout((()=>{r.value=null}),6e3)))}catch(e){if(p.value=!0,console.log(`error ${e}`),i.Z.isAxiosError(e)){const t=e;g.value=t.response?.data?.message}else g.value="There is some issue while submitting learner submission, please contact with helpmate.";x.value=!0}},w=async()=>{p.value=!1;const e=await(0,o.yW)(t.value);console.log(`task data ${JSON.stringify(e)}`);const a=e.data.data;a?s.value=a.task_type:(g.value="There is an issue to fetch task, please contact helpmate.",x.value=!0),p.value=!0};return(0,l.onBeforeMount)((async()=>{await w()})),{taskType:s,learnerTaskId:a,renderReady:p,errorResponse:g,showErrorMessage:x,showSuccessMessage:b,resMessage:y,fileValidationMsg:r,submitSubmiision:k,learnerSubmission:u,selectedFile:h,preSignedUrl:d,buttonDisable:m,validationError:f,fileInputKey:v}}}),d=c,m=a(1001),f=(0,m.Z)(d,s,r,!1,null,"08c23a5d",null),v=f.exports},840:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministration"}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Submit Learner Submission")])])}],l=a(7203),i=a(306),n=a(8451),o=a(568),u=a(4735),c=(0,l.defineComponent)({name:"UploadSubmission",components:{ErrorMessage:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,l.ref)(e.query.linked_task_id);console.log("Task ID",t.value);const a=(0,l.ref)(e.query.learner_task_id),s=(0,l.ref)(),r=(0,l.ref)(),u=(0,l.ref)(),c=(0,l.ref)(null),d=(0,l.ref)(),m=(0,l.ref)(!0),f=(0,l.ref)(),v=(0,l.ref)(0),p=(0,l.ref)(!1),g=(0,l.ref)(),b=(0,l.ref)(!1),y=(0,l.ref)(),x=(0,l.ref)(!1),h=async e=>{try{c.value=e.target.files[0],u.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),p.value=!0,i.Z.isAxiosError(t)){const e=t;g.value=e.response?.data?.message}else g.value="Something went wrong, please contact helpmate.";x.value=!0}},k=async()=>{try{if(p.value=!1,u.value){let e;const r={learner_task_id:a.value,learner_submission:u.value,taskType:s.value,linkedTaskId:t.value};if("Desktop"===s.value){const t=await(0,o.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:u.value,learner_task_id:a.value}),s=t.data;d.value=s.preSignedUrl;const l=await(0,o.sc)(d.value,c.value);200===l.status?e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",r):(p.value=!0,g.value="There is issue in the file upload, please contact with helpmate.",x.value=!0)}else e=await(0,n.oE)("/uploadLearnerSubmissionFromAdmin",r);200===e.status?(p.value=!0,y.value=e.data.message,b.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3)):(p.value=!0,g.value="There is some issue while submitting learner submission, please contact with helpmate.",x.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3))}else"Mobile"===s.value?(p.value=!0,u.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{r.value=null}),6e3))):"Desktop"===s.value&&(p.value=!0,console.log(`learnerSubmission.value ${u.value}`),u.value||(r.value="please select File",setTimeout((()=>{r.value=null}),6e3)))}catch(e){if(p.value=!0,console.log(`error ${e}`),i.Z.isAxiosError(e)){const t=e;g.value=t.response?.data?.message}else g.value="There is some issue while submitting learner submission, please contact with helpmate.";x.value=!0}},w=async()=>{p.value=!1;const e=await(0,o.yW)(t.value);console.log(`task data ${JSON.stringify(e)}`);const a=e.data.data;a?s.value=a.task_type:(g.value="There is an issue to fetch task, please contact helpmate.",x.value=!0),p.value=!0};return(0,l.onBeforeMount)((async()=>{await w()})),{taskType:s,learnerTaskId:a,renderReady:p,errorResponse:g,showErrorMessage:x,showSuccessMessage:b,resMessage:y,fileValidationMsg:r,submitSubmiision:k,learnerSubmission:u,selectedFile:h,preSignedUrl:d,buttonDisable:m,validationError:f,fileInputKey:v}}}),d=c,m=a(1001),f=(0,m.Z)(d,s,r,!1,null,"7548bb12",null),v=f.exports},9955:function(e,t,a){a.d(t,{Yg:function(){return l},sw:function(){return r}});var s=a(7129);const r=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a}},8451:function(e,t,a){a.d(t,{Lu:function(){return r},O6:function(){return n},QZ:function(){return u},R2:function(){return o},X5:function(){return i},oE:function(){return l}});var s=a(7129);const r=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a},i=async(e,t)=>{const a=await s.Z.post(e,t);return a},n=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},o=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},u=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t}},568:function(e,t,a){a.d(t,{ie:function(){return n},rC:function(){return o},sc:function(){return l},ux:function(){return r},yW:function(){return i}});var s=a(7129);const r=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{let a;const s=await fetch(`${e}`,{method:"put",body:t});return a=s,a},i=async e=>{const t=await s.Z.get(`/task/${e}`);return t},n=async(e,t)=>{const a=await s.Z.post(e,{learner_task_id:t});return a},o=async(e,t)=>{const a=await s.Z.post(e,t);return a}},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p7aQ2JmqilXrhOh5RMXjEeqNsuUEUlEMx3ILLDQKrcsixyLmIwIrAInLIfcOnz7Ivuo6QdrIOLHG/M98/nuf3zLs772d/v+f3vO9KyBoYHKKts4dHHd1WW5D7+gdlQkY9Bub+dQo/XrqLV+fb8toCqy3BMxZsYYfysoA2IFMyAfb6hzvJLdXJI6ssQd19/fxg/mbaOnrkGRNgP/pgG7r6JnlklaVoxrxNVmDTSZMKrHd4GG1nHxVd5lnb2Uvn4LB81RdLkwosq6UL6XIuUrjGPF/OIazukXzVF0uTC6y123jDowufdngeUmg2UlTBs7HxHKYhrL5NvuqLpakHFnUbyScBySEQ6aJajE1iE9kKTB5NBbBIMT7mi/T3dUj7XZFCDJlmEh/PVmDyaLKBXS1CihDlcJ8L35+7mBnLPkVyvIh0RawxxEwhmXpcYD3oq3WU6WrQ1VRzu7CG2t5Bpro1Ge7toL2zg+7n9EWmHphh/9rrxFtL/8biz9fy2sbdSF7RxlJpCsnU4wDrLY7n1AlPDgWEEhQWyNaV+zlW3kKHHJ8q9ZUkciUticxOecJMWU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q8Z1th7v+CTCb0tGAKIl96ALt+UV4LXSWjwLbPvaGqa2etAtHWRxWQH7wceY55zL2aY80aRw+7oFDqZbzfu586F8sxwapivDCzi2YqO9MSYwUwI6fR1qtEAdnN6Tdp5HmLERab2fsElUlT9aP+Rlg9wk/6M4Rv3iScjVkZlzjjJMzh3If0jNQzoU1+1gZkk5qjgZ1TghfzNzAmtgy6vsEMMU6fu2uJjU3n9Rribi7nyHggUi2di0XNq3nPZ8sMjR5JMZG4+JzieiWYdpLU1Ee8OJ0Yg7Xs9MI8L2IW1A+dfV5HDl2mLnKdHTyuavzRhC2RxzZJn5wVY1tou0xT1MPLFpAuZiG5BsvQIgG40KigGeLtHYHUkgWUowAppLXjz0BeQZYPw2ZKbh/HUdkspq46Cg8b1bR3Ge8a22aeE6EJRF7TU1Ucjz+buG4JBdSM/CAmK3rmOkQx1X1daJUiURWGUvdQFsF/httmOWcTII6ncj4NBJrjTsTI900VGTgdymO8PgkQpPzKRXpO9SoJSI2AWVSCfe65LfCHTquJF1FGa5Gc9/8c+EUAzNYQFMJxxQbbXjKcVaF5BEpSqHYu1RizrDuG4F9O/Xrc/FatZKPrjWJA4CJRsReVpbCyc/WseZWl/g5WI6mFthENkAczb5xYgY/F2BD9OjvcD1SRfDt+zSYbH+G5qNdV0xKZCwRZQ00P/kLxZTLMoH9Lz+nDJuOmlxg1heYZmtSgT3oG8SpqglPXbNZ/o+4RmWXJe0sk6dJBWaV+bICm2ayAptmsgKbZpoY2PtWYJaoGe9NAOx1AUxbbXzjY5XlaMbcjeMD+9I9nHdXHuLdT77iV59abQme+fEBVth709P35NHLY2At7V3cLKzkWo7Wagtxal45dQ9bGRl58j+Dx8Csmh6yAptWgv8CbZkYUSkpBpcAAAAASUVORK5CYII="}}]);
|
|
1
|
+
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[704],{4735:function(e,t,a){a.d(t,{Z:function(){return c}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-16 px-32"},[t("div",{staticClass:"md:px-0 lg:px-0 text-center"},[t("div",{staticClass:"text-gray-500"},[t("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),t("div",{staticClass:"pt-8"},[t("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[t("img",{staticClass:"mx-auto",attrs:{src:a(6540)}})])])])])])},r=[],l=a(7203),n=(0,l.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,l.ref)(""),a=(0,l.ref)(localStorage.getItem("helpmateLink"));return(0,l.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:a}}}),i=n,o=a(1001),u=(0,o.Z)(i,s,r,!1,null,null,null),c=u.exports},7413:function(e,t,a){a.r(t),a.d(t,{default:function(){return oe}});var s,r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},[t("div",["infinity"===e.programId?t("p",[e._v(" Proficiency: "),t("strong",[e._v(e._s(e.profName))])]):e._e(),"infinity"===e.programId?t("p",{staticClass:"pt-2"},[e._v(" Skill: "),t("strong",[e._v(e._s(e.skill))])]):e._e(),"infinity"!==e.programId?t("p",{staticClass:"pt-2"},[e._v(" Program: "),t("strong",[e._v(e._s(e.programName))])]):e._e(),t("p",{staticClass:"pt-2"},[t("strong",[e._v("Task Name: ")]),e._v(e._s(e.taskName))])]),"Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[e._m(1),t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{key:e.fileInputKey,attrs:{type:"file"},on:{change:e.selectedFile}}),e._v(" "),e.learnerSubmission?t("x-icon",{attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1)]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[e._m(2),t("div",{staticClass:"mb-4 text-center"},[null!==e.skillId&&null!==e.proficiencyId?t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId,skill_id:e.skillId,proficiency_id:e.proficiencyId}}}},[e._v("Back")]):t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},l=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Create Off-Cycle Task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Upload the file to create off-cycle task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pt-4"},[t("p",{staticClass:"text-xl"},[t("em",[e._v("Please don't click the browser back button")])])])}],n=(a(7658),a(7203)),i=a(4856),o=a(306),u=(a(3767),a(8585),a(8696),new Uint8Array(16));function c(){if(!s&&(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(u)}var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function f(e){return"string"===typeof e&&d.test(e)}for(var m=f,v=[],p=0;p<256;++p)v.push((p+256).toString(16).substr(1));function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase();if(!m(a))throw TypeError("Stringified UUID is invalid");return a}var b,y,x=g,h=0,k=0;function w(e,t,a){var s=t&&a||0,r=t||new Array(16);e=e||{};var l=e.node||b,n=void 0!==e.clockseq?e.clockseq:y;if(null==l||null==n){var i=e.random||(e.rng||c)();null==l&&(l=b=[1|i[0],i[1],i[2],i[3],i[4],i[5]]),null==n&&(n=y=16383&(i[6]<<8|i[7]))}var o=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:k+1,d=o-h+(u-k)/1e4;if(d<0&&void 0===e.clockseq&&(n=n+1&16383),(d<0||o>h)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=o,k=u,y=n,o+=122192928e5;var f=(1e4*(268435455&o)+u)%4294967296;r[s++]=f>>>24&255,r[s++]=f>>>16&255,r[s++]=f>>>8&255,r[s++]=255&f;var m=o/4294967296*1e4&268435455;r[s++]=m>>>8&255,r[s++]=255&m,r[s++]=m>>>24&15|16,r[s++]=m>>>16&255,r[s++]=n>>>8|128,r[s++]=255&n;for(var v=0;v<6;++v)r[s+v]=l[v];return t||x(r)}var _=w;function C(e){if(!m(e))throw TypeError("Invalid UUID");var t,a=new Uint8Array(16);return a[0]=(t=parseInt(e.slice(0,8),16))>>>24,a[1]=t>>>16&255,a[2]=t>>>8&255,a[3]=255&t,a[4]=(t=parseInt(e.slice(9,13),16))>>>8,a[5]=255&t,a[6]=(t=parseInt(e.slice(14,18),16))>>>8,a[7]=255&t,a[8]=(t=parseInt(e.slice(19,23),16))>>>8,a[9]=255&t,a[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=t/4294967296&255,a[12]=t>>>24&255,a[13]=t>>>16&255,a[14]=t>>>8&255,a[15]=255&t,a}var S=C;function A(e){e=unescape(encodeURIComponent(e));for(var t=[],a=0;a<e.length;++a)t.push(e.charCodeAt(a));return t}var I="6ba7b810-9dad-11d1-80b4-00c04fd430c8",M="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function T(e,t,a){function s(e,s,r,l){if("string"===typeof e&&(e=A(e)),"string"===typeof s&&(s=S(s)),16!==s.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var n=new Uint8Array(16+e.length);if(n.set(s),n.set(e,s.length),n=a(n),n[6]=15&n[6]|t,n[8]=63&n[8]|128,r){l=l||0;for(var i=0;i<16;++i)r[l+i]=n[i];return r}return x(n)}try{s.name=e}catch(r){}return s.DNS=I,s.URL=M,s}function U(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var a=0;a<t.length;++a)e[a]=t.charCodeAt(a)}return Z(R(L(e),8*e.length))}function Z(e){for(var t=[],a=32*e.length,s="0123456789abcdef",r=0;r<a;r+=8){var l=e[r>>5]>>>r%32&255,n=parseInt(s.charAt(l>>>4&15)+s.charAt(15&l),16);t.push(n)}return t}function E(e){return 14+(e+64>>>9<<4)+1}function R(e,t){e[t>>5]|=128<<t%32,e[E(t)-1]=t;for(var a=1732584193,s=-271733879,r=-1732584194,l=271733878,n=0;n<e.length;n+=16){var i=a,o=s,u=r,c=l;a=B(a,s,r,l,e[n],7,-680876936),l=B(l,a,s,r,e[n+1],12,-389564586),r=B(r,l,a,s,e[n+2],17,606105819),s=B(s,r,l,a,e[n+3],22,-1044525330),a=B(a,s,r,l,e[n+4],7,-176418897),l=B(l,a,s,r,e[n+5],12,1200080426),r=B(r,l,a,s,e[n+6],17,-1473231341),s=B(s,r,l,a,e[n+7],22,-45705983),a=B(a,s,r,l,e[n+8],7,1770035416),l=B(l,a,s,r,e[n+9],12,-1958414417),r=B(r,l,a,s,e[n+10],17,-42063),s=B(s,r,l,a,e[n+11],22,-1990404162),a=B(a,s,r,l,e[n+12],7,1804603682),l=B(l,a,s,r,e[n+13],12,-40341101),r=B(r,l,a,s,e[n+14],17,-1502002290),s=B(s,r,l,a,e[n+15],22,1236535329),a=F(a,s,r,l,e[n+1],5,-165796510),l=F(l,a,s,r,e[n+6],9,-1069501632),r=F(r,l,a,s,e[n+11],14,643717713),s=F(s,r,l,a,e[n],20,-373897302),a=F(a,s,r,l,e[n+5],5,-701558691),l=F(l,a,s,r,e[n+10],9,38016083),r=F(r,l,a,s,e[n+15],14,-660478335),s=F(s,r,l,a,e[n+4],20,-405537848),a=F(a,s,r,l,e[n+9],5,568446438),l=F(l,a,s,r,e[n+14],9,-1019803690),r=F(r,l,a,s,e[n+3],14,-187363961),s=F(s,r,l,a,e[n+8],20,1163531501),a=F(a,s,r,l,e[n+13],5,-1444681467),l=F(l,a,s,r,e[n+2],9,-51403784),r=F(r,l,a,s,e[n+7],14,1735328473),s=F(s,r,l,a,e[n+12],20,-1926607734),a=N(a,s,r,l,e[n+5],4,-378558),l=N(l,a,s,r,e[n+8],11,-2022574463),r=N(r,l,a,s,e[n+11],16,1839030562),s=N(s,r,l,a,e[n+14],23,-35309556),a=N(a,s,r,l,e[n+1],4,-1530992060),l=N(l,a,s,r,e[n+4],11,1272893353),r=N(r,l,a,s,e[n+7],16,-155497632),s=N(s,r,l,a,e[n+10],23,-1094730640),a=N(a,s,r,l,e[n+13],4,681279174),l=N(l,a,s,r,e[n],11,-358537222),r=N(r,l,a,s,e[n+3],16,-722521979),s=N(s,r,l,a,e[n+6],23,76029189),a=N(a,s,r,l,e[n+9],4,-640364487),l=N(l,a,s,r,e[n+12],11,-421815835),r=N(r,l,a,s,e[n+15],16,530742520),s=N(s,r,l,a,e[n+2],23,-995338651),a=P(a,s,r,l,e[n],6,-198630844),l=P(l,a,s,r,e[n+7],10,1126891415),r=P(r,l,a,s,e[n+14],15,-1416354905),s=P(s,r,l,a,e[n+5],21,-57434055),a=P(a,s,r,l,e[n+12],6,1700485571),l=P(l,a,s,r,e[n+3],10,-1894986606),r=P(r,l,a,s,e[n+10],15,-1051523),s=P(s,r,l,a,e[n+1],21,-2054922799),a=P(a,s,r,l,e[n+8],6,1873313359),l=P(l,a,s,r,e[n+15],10,-30611744),r=P(r,l,a,s,e[n+6],15,-1560198380),s=P(s,r,l,a,e[n+13],21,1309151649),a=P(a,s,r,l,e[n+4],6,-145523070),l=P(l,a,s,r,e[n+11],10,-1120210379),r=P(r,l,a,s,e[n+2],15,718787259),s=P(s,r,l,a,e[n+9],21,-343485551),a=V(a,i),s=V(s,o),r=V(r,u),l=V(l,c)}return[a,s,r,l]}function L(e){if(0===e.length)return[];for(var t=8*e.length,a=new Uint32Array(E(t)),s=0;s<t;s+=8)a[s>>5]|=(255&e[s/8])<<s%32;return a}function V(e,t){var a=(65535&e)+(65535&t),s=(e>>16)+(t>>16)+(a>>16);return s<<16|65535&a}function D(e,t){return e<<t|e>>>32-t}function G(e,t,a,s,r,l){return V(D(V(V(t,e),V(s,l)),r),a)}function B(e,t,a,s,r,l,n){return G(t&a|~t&s,e,t,r,l,n)}function F(e,t,a,s,r,l,n){return G(t&s|a&~s,e,t,r,l,n)}function N(e,t,a,s,r,l,n){return G(t^a^s,e,t,r,l,n)}function P(e,t,a,s,r,l,n){return G(a^(t|~s),e,t,r,l,n)}var j=U,z=T("v3",48,j),J=z;function W(e,t,a){e=e||{};var s=e.random||(e.rng||c)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){a=a||0;for(var r=0;r<16;++r)t[a+r]=s[r];return t}return x(s)}var q=W;function O(e,t,a,s){switch(e){case 0:return t&a^~t&s;case 1:return t^a^s;case 2:return t&a^t&s^a&s;case 3:return t^a^s}}function X(e,t){return e<<t|e>>>32-t}function Y(e){var t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var s=unescape(encodeURIComponent(e));e=[];for(var r=0;r<s.length;++r)e.push(s.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var l=e.length/4+2,n=Math.ceil(l/16),i=new Array(n),o=0;o<n;++o){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*o+4*c]<<24|e[64*o+4*c+1]<<16|e[64*o+4*c+2]<<8|e[64*o+4*c+3];i[o]=u}i[n-1][14]=8*(e.length-1)/Math.pow(2,32),i[n-1][14]=Math.floor(i[n-1][14]),i[n-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<n;++d){for(var f=new Uint32Array(80),m=0;m<16;++m)f[m]=i[d][m];for(var v=16;v<80;++v)f[v]=X(f[v-3]^f[v-8]^f[v-14]^f[v-16],1);for(var p=a[0],g=a[1],b=a[2],y=a[3],x=a[4],h=0;h<80;++h){var k=Math.floor(h/20),w=X(p,5)+O(k,g,b,y)+x+t[k]+f[h]>>>0;x=y,y=b,b=X(g,30)>>>0,g=p,p=w}a[0]=a[0]+p>>>0,a[1]=a[1]+g>>>0,a[2]=a[2]+b>>>0,a[3]=a[3]+y>>>0,a[4]=a[4]+x>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]}var H=Y,K=T("v5",80,H),Q=K,$={v1:_,v3:J,v4:q,v5:Q};var ee=a(1496),te=a(568),ae=a(9955),se=a(4735),re=(0,n.defineComponent)({name:"LearnerSubmitTask",components:{XIcon:i.b0D,ErrorMessage:se.Z},setup(){const e=(0,n.ref)(localStorage.getItem("linkedTaskId")),t=(0,n.ref)($.v1()),a=(0,n.ref)(localStorage.getItem("programId")),s=(0,n.ref)(localStorage.getItem("programName")),r=(0,n.ref)(localStorage.getItem("skillId"));console.log("skill Id in createoffcyclle",r);const l=(0,n.ref)(localStorage.getItem("proficiencyId")),i=(0,n.ref)(localStorage.getItem("skillName")),u=(0,n.ref)(localStorage.getItem("proficiencyName")),c=(0,n.ref)(localStorage.getItem("taskName")),d=(0,n.ref)(localStorage.getItem("taskType")),f=(0,n.ref)(null),m=(0,n.ref)(),v=(0,n.ref)(),p=(0,n.ref)(),g=(0,n.ref)(!0),b=(0,n.ref)(),y=(0,n.ref)(0),x=(0,n.ref)(!1),h=(0,n.ref)(),k=(0,n.ref)(!1),w=(0,n.ref)(),_=(0,n.ref)(!1),C=async()=>{y.value+=1,console.log(`before ${v.value}`),v.value=null,console.log(`after ${v.value}`)},S=e=>{const t=e.target.checked;!0===t?(g.value=!1,console.log(g.value)):(g.value=!0,console.log(g.value))},A=async e=>{try{f.value=e.target.files[0],v.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(m.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),x.value=!0,o.Z.isAxiosError(t)){const e=t;h.value=e.response?.data?.message}else h.value="Something went wrong, please contact helpmate.";_.value=!0}},I=async()=>{try{if(x.value=!1,v.value){let s;if("Desktop"===d.value){const n={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission:v.value},i=await(0,te.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:v.value,learner_task_id:t.value}),o=i.data;p.value=o.preSignedUrl;const u=await(0,te.sc)(p.value,f.value);200===u.status?s=await(0,ae.sw)("/offcycle/create",n):(x.value=!0,h.value="There is issue in the file upload, please contact with helpmate.",_.value=!0)}else{const n={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission_text:v.value};s=await(0,ae.sw)("/offcycle/create",n)}200===s.status?(x.value=!0,w.value=s.data.message,k.value=!0,localStorage.removeItem("programId"),localStorage.removeItem("programName"),localStorage.removeItem("linkedTaskId"),localStorage.removeItem("skillId"),localStorage.removeItem("skillName"),localStorage.removeItem("proficiencyId"),localStorage.removeItem("proficiencyName"),localStorage.removeItem("taskName"),localStorage.removeItem("taskType"),null!==r.value&&null!==l.value?ee.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value,skill_id:r.value,proficiency_id:l.value}}):ee.Z.push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value}})):(x.value=!0,h.value="There is some issue while submitting learner submission, please contact with helpmate.",_.value=!0)}else"Mobile"===d.value?(x.value=!0,v.value||(m.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{m.value=null}),6e3))):"Desktop"===d.value&&(x.value=!0,console.log(`learnerSubmission.value ${v.value}`),v.value||(m.value="please select File",setTimeout((()=>{m.value=null}),6e3)))}catch(s){if(x.value=!0,console.log(`error ${s}`),o.Z.isAxiosError(s)){const e=s;h.value=e.response?.data?.message}else h.value="There is some issue while submitting learner submission, please contact with helpmate.";_.value=!0}};return(0,n.onBeforeMount)((async()=>{x.value=!0})),{learnerSubmissionFile:f,skillId:r,proficiencyId:l,programId:a,taskType:d,taskName:c,submitSubmiision:I,learnerSubmission:v,selectedFile:A,fileValidationMsg:m,learnerTaskId:t,preSignedUrl:p,buttonDisable:g,setButtonEnable:S,validationError:b,clearFile:C,fileInputKey:y,renderReady:x,errorResponse:h,showErrorMessage:_,programName:s,skill:i,profName:u,showSuccessMessage:k,resMessage:w}}}),le=re,ne=a(1001),ie=(0,ne.Z)(le,r,l,!1,null,"5bfafb19",null),oe=ie.exports},9141:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationOffCycleDetails",query:{learner_task_id:e.learnerTaskId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v(" Update Submission ")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Update Learner Submission")])])}],l=a(7203),n=a(306),i=a(8451),o=a(568),u=a(4735),c=(0,l.defineComponent)({name:"UpdateSubmission",components:{ErrorMessage:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,l.ref)(e.query.linked_task_id);console.log("Task ID",t.value);const a=(0,l.ref)(e.query.learner_task_id),s=(0,l.ref)(),r=(0,l.ref)(),u=(0,l.ref)(),c=(0,l.ref)(null),d=(0,l.ref)(),f=(0,l.ref)(!0),m=(0,l.ref)(),v=(0,l.ref)(0),p=(0,l.ref)(!1),g=(0,l.ref)(),b=(0,l.ref)(!1),y=(0,l.ref)(),x=(0,l.ref)(!1),h=async e=>{try{c.value=e.target.files[0],u.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),p.value=!0,n.Z.isAxiosError(t)){const e=t;g.value=e.response?.data?.message}else g.value="Something went wrong, please contact helpmate.";x.value=!0}},k=async()=>{try{if(p.value=!1,u.value){let e;const t={learner_task_id:a.value,learner_submission:u.value,taskType:s.value};if("Desktop"===s.value){const s=await(0,o.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:u.value,learner_task_id:a.value}),r=s.data;d.value=r.preSignedUrl;const l=await(0,o.sc)(d.value,c.value);200===l.status?e=await(0,i.oE)("/uploadLearnerSubmissionFromAdmin",t):(p.value=!0,g.value="There is issue in the file upload, please contact with helpmate.",x.value=!0)}else e=await(0,i.oE)("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(p.value=!0,y.value=e.data.message,b.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3)):(p.value=!0,g.value="There is some issue while submitting learner submission, please contact with helpmate.",x.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3))}else"Mobile"===s.value?(p.value=!0,u.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{r.value=null}),6e3))):"Desktop"===s.value&&(p.value=!0,console.log(`learnerSubmission.value ${u.value}`),u.value||(r.value="please select File",setTimeout((()=>{r.value=null}),6e3)))}catch(e){if(p.value=!0,console.log(`error ${e}`),n.Z.isAxiosError(e)){const t=e;g.value=t.response?.data?.message}else g.value="There is some issue while submitting learner submission, please contact with helpmate.";x.value=!0}},w=async()=>{p.value=!1;const e=await(0,o.yW)(t.value);console.log(`task data ${JSON.stringify(e)}`);const a=e.data.data;a?s.value=a.task_type:(g.value="There is an issue to fetch task, please contact helpmate.",x.value=!0),p.value=!0};return(0,l.onBeforeMount)((async()=>{await w()})),{taskType:s,learnerTaskId:a,renderReady:p,errorResponse:g,showErrorMessage:x,showSuccessMessage:b,resMessage:y,fileValidationMsg:r,submitSubmiision:k,learnerSubmission:u,selectedFile:h,preSignedUrl:d,buttonDisable:f,validationError:m,fileInputKey:v}}}),d=c,f=a(1001),m=(0,f.Z)(d,s,r,!1,null,"08c23a5d",null),v=m.exports},840:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministration"}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Submit Learner Submission")])])}],l=a(7203),n=a(306),i=a(8451),o=a(568),u=a(4735),c=(0,l.defineComponent)({name:"UploadSubmission",components:{ErrorMessage:u.Z},props:{query:{type:Object,default:()=>({})}},setup(e){const t=(0,l.ref)(e.query.linked_task_id);console.log("Task ID",t.value);const a=(0,l.ref)(e.query.learner_task_id),s=(0,l.ref)(),r=(0,l.ref)(),u=(0,l.ref)(),c=(0,l.ref)(null),d=(0,l.ref)(),f=(0,l.ref)(!0),m=(0,l.ref)(),v=(0,l.ref)(0),p=(0,l.ref)(!1),g=(0,l.ref)(),b=(0,l.ref)(!1),y=(0,l.ref)(),x=(0,l.ref)(!1),h=async e=>{try{c.value=e.target.files[0],u.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(t){if(console.log(t),p.value=!0,n.Z.isAxiosError(t)){const e=t;g.value=e.response?.data?.message}else g.value="Something went wrong, please contact helpmate.";x.value=!0}},k=async()=>{try{if(p.value=!1,u.value){let e;const r={learner_task_id:a.value,learner_submission:u.value,taskType:s.value,linkedTaskId:t.value};if("Desktop"===s.value){const t=await(0,o.ux)("/v1/pretAuthUrlForUploadLearner",{file_name:u.value,learner_task_id:a.value}),s=t.data;d.value=s.preSignedUrl;const l=await(0,o.sc)(d.value,c.value);200===l.status?e=await(0,i.oE)("/uploadLearnerSubmissionFromAdmin",r):(p.value=!0,g.value="There is issue in the file upload, please contact with helpmate.",x.value=!0)}else e=await(0,i.oE)("/uploadLearnerSubmissionFromAdmin",r);200===e.status?(p.value=!0,y.value=e.data.message,b.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3)):(p.value=!0,g.value="There is some issue while submitting learner submission, please contact with helpmate.",x.value=!0,setTimeout((()=>{y.value=null,b.value=!1}),6e3))}else"Mobile"===s.value?(p.value=!0,u.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout((()=>{r.value=null}),6e3))):"Desktop"===s.value&&(p.value=!0,console.log(`learnerSubmission.value ${u.value}`),u.value||(r.value="please select File",setTimeout((()=>{r.value=null}),6e3)))}catch(e){if(p.value=!0,console.log(`error ${e}`),n.Z.isAxiosError(e)){const t=e;g.value=t.response?.data?.message}else g.value="There is some issue while submitting learner submission, please contact with helpmate.";x.value=!0}},w=async()=>{p.value=!1;const e=await(0,o.yW)(t.value);console.log(`task data ${JSON.stringify(e)}`);const a=e.data.data;a?s.value=a.task_type:(g.value="There is an issue to fetch task, please contact helpmate.",x.value=!0),p.value=!0};return(0,l.onBeforeMount)((async()=>{await w()})),{taskType:s,learnerTaskId:a,renderReady:p,errorResponse:g,showErrorMessage:x,showSuccessMessage:b,resMessage:y,fileValidationMsg:r,submitSubmiision:k,learnerSubmission:u,selectedFile:h,preSignedUrl:d,buttonDisable:f,validationError:m,fileInputKey:v}}}),d=c,f=a(1001),m=(0,f.Z)(d,s,r,!1,null,"7548bb12",null),v=m.exports},9955:function(e,t,a){a.d(t,{Yg:function(){return l},sw:function(){return r}});var s=a(7129);const r=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a}},8451:function(e,t,a){a.d(t,{Lu:function(){return r},O6:function(){return i},QZ:function(){return u},R2:function(){return o},X5:function(){return n},oE:function(){return l}});var s=a(7129);const r=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},l=async(e,t)=>{const a=await s.Z.post(e,t);return a},n=async(e,t)=>{const a=await s.Z.post(e,t);return a},i=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t},o=async(e,t)=>{let a;return await s.Z.post(e,t).then((e=>(a=e.data,a))),a},u=async e=>{let t;return await s.Z.get(e).then((e=>(t=e.data,t))),t}},568:function(e,t,a){a.d(t,{JV:function(){return c},ie:function(){return i},rC:function(){return o},sc:function(){return l},t$:function(){return u},ux:function(){return r},yW:function(){return n}});var s=a(7129);const r=async(e,t)=>{const a=await s.Z.post(e,t);return a},l=async(e,t)=>{let a;const s=await fetch(`${e}`,{method:"put",body:t});return a=s,a},n=async e=>{const t=await s.Z.get(`/task/${e}`);return t},i=async(e,t)=>{const a=await s.Z.post(e,{learner_task_id:t});return a},o=async(e,t)=>{const a=await s.Z.post(e,t);return a},u=async(e,t)=>{const a=await s.Z.post(e,t);return a},c=async(e,t)=>await s.Z.post(e,t)},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p7aQ2JmqilXrhOh5RMXjEeqNsuUEUlEMx3ILLDQKrcsixyLmIwIrAInLIfcOnz7Ivuo6QdrIOLHG/M98/nuf3zLs772d/v+f3vO9KyBoYHKKts4dHHd1WW5D7+gdlQkY9Bub+dQo/XrqLV+fb8toCqy3BMxZsYYfysoA2IFMyAfb6hzvJLdXJI6ssQd19/fxg/mbaOnrkGRNgP/pgG7r6JnlklaVoxrxNVmDTSZMKrHd4GG1nHxVd5lnb2Uvn4LB81RdLkwosq6UL6XIuUrjGPF/OIazukXzVF0uTC6y123jDowufdngeUmg2UlTBs7HxHKYhrL5NvuqLpakHFnUbyScBySEQ6aJajE1iE9kKTB5NBbBIMT7mi/T3dUj7XZFCDJlmEh/PVmDyaLKBXS1CihDlcJ8L35+7mBnLPkVyvIh0RawxxEwhmXpcYD3oq3WU6WrQ1VRzu7CG2t5Bpro1Ge7toL2zg+7n9EWmHphh/9rrxFtL/8biz9fy2sbdSF7RxlJpCsnU4wDrLY7n1AlPDgWEEhQWyNaV+zlW3kKHHJ8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