@genpact/genome.mfe.solidify-app 1.17.2-alpha.160 → 1.17.2-alpha.161
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/SolidifyAdministrationNeedReviewerReport.css +1 -1
- package/dist/css/SolidifyAdministrationProgramAdministration.css +1 -1
- package/dist/css/SolidifyAdministrationTaskManagement.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/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationEmailTemplateManagement.js.map +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.js +1 -1
- package/dist/solidify.umd.min.SolidifyAdministrationNeedReviewerReport.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.SolidifyAdministrationProgramDetails.js +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.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 +2 -2
- package/dist/solidify.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[412],{8153:function(e,t,a){a.d(t,{Z:function(){return u}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full flex mt-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"appearance-none border rounded py-2 px-14 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text",placeholder:e.placeHolder1},domProps:{value:e.search},on:{keyup:function(t){e.filterProgramDetails(),e.$emit("Filtered",e.filteredProgramDetails)},input:function(t){t.target.composing||(e.search=t.target.value)}}})])},s=[],l=a(7203),n=(0,l.defineComponent)({name:"SearchBar",props:{data:[Array],placeholder:{type:String,default:"Search"}},setup(e){const t=(0,l.ref)(""),a=(0,l.ref)(),r=(0,l.ref)(),s=(0,l.ref)(),n=()=>{s.value=e.data,r.value=s.value.filter((e=>e.toLowerCase().includes(t.value.toLowerCase())))};return(0,l.onBeforeMount)((async()=>{a.value=e.placeholder,console.log("props.placeholder",e.placeholder)})),{placeHolder1:a,filteredProgramDetails:r,filterProgramDetails:n,search:t}}}),o=n,i=a(1001),c=(0,i.Z)(o,r,s,!1,null,null,null),u=c.exports},408:function(e,t,a){a.r(t),a.d(t,{default:function(){return k}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[e.showScreen?t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._m(0),t("div",{staticClass:"flex w-full mt-6 justify-end items-center gap-2"},[t("div",{staticClass:"w-1/5"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.rangeStart,expression:"rangeStart"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{type:"date"},domProps:{value:e.rangeStart},on:{input:function(t){t.target.composing||(e.rangeStart=t.target.value)}}})]),t("div",{staticClass:"w-1/5"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.rangeEnd,expression:"rangeEnd"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{type:"date"},domProps:{value:e.rangeEnd},on:{input:function(t){t.target.composing||(e.rangeEnd=t.target.value)}}})]),t("div",{staticClass:"pr-3"},[t("button",{staticClass:"inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.triggerProxyReport()}}},[e._v("Export All Proxy Report")])])]),t("div",{staticClass:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow text-background-secondary p-4"},[t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Filter Task ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedProgram,expression:"selectedProgram"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedProgram=t.target.multiple?a:a[0]},function(t){return e.getSelectedProgram(t)}]}},[t("option",[e._v("Select Program")]),e._l(e.programDetails,(function(a){return t("option",{key:a.program_id,domProps:{value:a.program_id}},[e._v(e._s(a.program_display_name?a.program_display_name:a.program_name))])}))],2)]),e.showSkillProf?t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Skill ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedSkill,expression:"selectedSkill"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedSkill=t.target.multiple?a:a[0]},function(t){return e.getSelectedSkill(t)}]}},[t("option",[e._v("Select Skill")]),e._l(e.skills,(function(a){return t("option",{key:a.skill_id,domProps:{value:a.skill_id}},[e._v(e._s(a.skill_alias))])}))],2)]):e._e(),e.showSkillProf?t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Proficiency ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedProficiency,expression:"selectedProficiency"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedProficiency=t.target.multiple?a:a[0]},function(t){return e.getSelectedProficiency(t)}]}},[t("option",[e._v("Select Proficiency")]),e._l(e.proficiency,(function(a){return t("option",{key:a.prof_id,domProps:{value:a.prof_id}},[e._v(e._s(a.prof_name))])}))],2)]):e._e(),t("div",{staticClass:"w-1/2 pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Ageing ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedAgeing,expression:"selectedAgeing"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedAgeing=t.target.multiple?a:a[0]},function(t){return e.performAgeingFilter(t)}]}},[t("option",[e._v("Select Ageing")]),e._l(e.ageingValues,(function(a){return t("option",{key:a,domProps:{value:a}},[e._v(e._s(a))])}))],2)]),t("div",{staticClass:"w-full mb-4"},[t("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md",class:e.showSearchBtn?"bg-background-secondary":"bg-gray-500 cursor-not-allowed",attrs:{disabled:!e.showSearchBtn},on:{click:function(t){return e.getLearnerForProxy()}}},[e._v(" Search Learners ")])])]),e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e.showErrorMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-red-400 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e.proxyButtonVisible?t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-1/2 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary mr-2",on:{click:function(t){return e.showProxy()}}},[e._v("View available Proxy")]),e.nudgeButtonVisible?t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.sendNudge()}}},[e._v("Send Proxy Nudge")]):e._e()])]):e._e(),e.reportSuccessMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.learnerData?t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white rounded"},[t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Learner ID")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy OHR")]),"infinity"===e.selectedProgram?t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Skill")]):e._e(),"infinity"===e.selectedProgram?t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proficiency")]):e._e(),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Requested Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Assignment Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Re-review")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])]),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredLearnerData,(function(a){return t("tr",{key:a.id,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:a.learner_task_id},domProps:{value:a.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,a.learner_task_id)>-1:e.selectedTaskId},on:{change:[function(t){var r=e.selectedTaskId,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.learner_task_id,o=e._i(r,n);s.checked?o<0&&(e.selectedTaskId=r.concat([n])):o>-1&&(e.selectedTaskId=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedTaskId=l},function(t){return e.setProxyBtn(t)}]}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.learner_task_id))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_key))]),"infinity"===e.selectedProgram?t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.skillName))]):e._e(),"infinity"===e.selectedProgram?t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proficiencyName))]):e._e(),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_requested_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.assignment_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.isRereview))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.ageing))])])})),0)])])]):e._e(),e.isVisible?t("div",{staticClass:"w-full mt-4%"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyList?t("div",{staticClass:"w-full flex mt-6"},[t("SearchBar",{attrs:{data:e.proxyDetailsArray,placeholder:"Search By Proxy Name"},on:{Filtered:e.getFilteredList}})],1):e._e(),e.proxyAssignedBtn?t("div",{staticClass:"w-1/4 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.assignLearnerToProxy()}}},[e._v("Re-assign Proxy")])]):e._e(),t("div",{staticClass:"w-full mt-4"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Email")]),"infinity"===e.selectedProgram?t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")]):e._e(),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])]),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredproxyDetails,(function(a,r){return t("tr",{key:r,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedProxyOhr,expression:"selectedProxyOhr"}],attrs:{type:"checkbox",id:a.proxy_ohr},domProps:{value:a.proxy_ohr,checked:Array.isArray(e.selectedProxyOhr)?e._i(e.selectedProxyOhr,a.proxy_ohr)>-1:e.selectedProxyOhr},on:{change:[function(t){var r=e.selectedProxyOhr,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.proxy_ohr,o=e._i(r,n);s.checked?o<0&&(e.selectedProxyOhr=r.concat([n])):o>-1&&(e.selectedProxyOhr=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedProxyOhr=l},function(t){return e.showAssignProxyBtn(t)}],click:e.checkOne}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_name))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_email))]),"infinity"===e.selectedProgram?t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_role))]):e._e(),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(a.proxy_ohr))])])})),0)])])]):e._e()])]),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])]):t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._v("You don't have access")])])},s=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("All Proxy Review Request")])])}],l=(a(7658),a(7203)),n=a(8709),o=a(1068),i=a(5279),c=a(1602),u=a.n(c),d=a(9649),p=a(306),g=a(1815),y=a(1232),f=a(9261),v=a(8153),x=(0,l.defineComponent)({name:"ViewAllProgramProxyAssignment",components:{SearchBar:v.Z},setup(){const e=(0,l.ref)(),t=(0,l.ref)(),a=(0,l.ref)(),r=(0,l.ref)(),s=(0,l.ref)(),c=(0,l.ref)(),v=(0,l.ref)(!1),x=(0,l.ref)(!1),m=(0,l.ref)(),_=(0,l.ref)([]),h=(0,l.ref)(),k=(0,l.ref)(!1),w=(0,l.ref)(),b=(0,l.ref)(!0),C=(0,l.ref)(),P=(0,l.ref)(),S=(0,l.ref)(),A=(0,l.ref)(),Z=(0,l.ref)(!1),O=(0,l.ref)("Select Program"),$=(0,l.ref)(!1),D=(0,l.ref)(),N=(0,l.ref)(!1),T=(0,l.ref)(!1),M=(0,l.ref)(),R=(0,l.ref)(!1),L=(0,l.ref)("Select Ageing"),Y=(0,l.ref)(),I=(0,l.ref)(),B=(0,l.ref)(),E=(0,l.ref)(["0-5","5-10","10-15","15-20",">20"]),V=(0,l.ref)(""),F=(0,l.ref)(""),J=()=>{h.value=[]},q=()=>{let t,a;console.log(L.value);let r=!1;"Select Ageing"!==L.value?(L.value.includes(">")?(t=L.value.slice(1),r=!0):[t,a]=L.value.split("-"),console.log(t,a),Y.value=e.value.filter((e=>{if(console.log(e.ageing,e.ageing>=t&&(r||e.ageing<=a)),e.ageing>=t&&(r||e.ageing<=a))return e}))):Y.value=e.value},j=async()=>{const e=[];Y.value.filter((t=>{for(let a=0;a<_.value.length;a+=1)_.value[a]===t.learner_task_id&&e.push({learner_task_id:t.learner_task_id,proxyOhr:t.proxy_key})}));const t={nudge_arr:e};console.log(" Proxy OHR ",t);try{r.value=!1;const e=await(0,y.F)("/proxyreview/nudge",t);console.log(e),D.value=e.data.message,r.value=!0,N.value=!0,T.value=!1,window.scroll(0,0),r.value=!0,setTimeout((()=>{N.value=!1}),5e3)}catch(a){if(r.value=!0,p.Z.isAxiosError(a)){const e=a;r.value=!0,D.value=e.response?.data?.message,T.value=!0,N.value=!1,setTimeout((()=>{T.value=!1}),5e3)}}},H=e=>{const t=e.target.checked;!0===t?(console.log("selected Task id",_.value),x.value=!0):0===_.value.length&&(x.value=!1,v.value=!1)},G=async()=>{r.value=!1;const e=await(0,n.QZ)("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},Q=async()=>{r.value=!1,A.value=await(0,d.dr)("/cache?cache=program"),r.value=!0},X=async t=>{r.value=!1,localStorage.setItem("program",t.target.value),localStorage.removeItem("skill"),localStorage.removeItem("proficiency"),O.value=t.target.value,"Select Program"!==O.value?($.value=!0,"infinity"===O.value?(await G(),s.value="Select Skill",c.value="Select Proficiency",Z.value=!0):(Z.value=!1,s.value="",c.value="")):($.value=!1,Z.value=!1),x.value=!1,R.value=!1,e.value=[],v.value=!1,_.value=[],Y.value=[],r.value=!0},U=async()=>{try{const l={linked_program_name:O.value,skill:s.value,proficiency:c.value};console.log({data:l}),r.value=!1,await J(),_.value=[],x.value=!1,v.value=!1;const n=await(0,o.cQ)(l);e.value=n.data.allProxyList;for(let r=0;r<e.value.length;r+=1){const s=e.value[r];console.log(`res ${JSON.stringify(s)}`);const l=u()().utc().format("YYYY-MM-DD");if(s.assignment_date){const e=u()(s.assignment_date).utc().format("YYYY-MM-DD");s.ageing=u()(l).diff(u()(e),"days"),s.assignment_date=u()(s.assignment_date).format("DD-MM-YYYY")}if(s.proxy_requested_date&&(s.proxy_requested_date=u()(s.proxy_requested_date).format("DD-MM-YYYY")),"infinity"===O.value){if(s.skill){const e=t.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.skill_id;return console.log(`skill ${t}`),!!t&&t===s.skill}));console.log(`learnerSkillArr ${JSON.stringify(e)}`),s.skillName=e[0].skill_alias}else s.skillName="";if(s.proficiency){const e=a.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.prof_id;return console.log(`prof ${t}`),!!t&&t===s.proficiency}));console.log(`learnerProfArr ${JSON.stringify(e)}`),s.proficiencyName=e[0].prof_name}else s.proficiencyName=""}}const i=await(0,f.uA)(O.value),d="PROXY_NUDGE",p=i.prog_detail.email_templates;R.value=void 0!==p[d],Y.value=e.value,q(),e.value=e.value.sort(((e,t)=>t.ageing-e.ageing))}catch(l){console.log(l)}r.value=!0},z=async e=>{s.value=e.target.value,console.log(`selectedSkill.value ${s.value}`)},W=async e=>{c.value=e.target.value,console.log(`selectedProficiency.value ${c.value}`)},K=async()=>{console.log(`selectedTaskId.value[0] ${_.value[0]}`);let t=`/v2/admin/proxy/program/${O.value}`;const a=e.value.filter((e=>_.value[0]===e.learner_task_id));console.log(`selectedLearnerArr ${a}`),"infinity"===O.value&&(C.value=a[0].skill,P.value=a[0].proficiency,t=`/v2/admin/proxy/program/infinity/skill/${C.value}`),v.value=!0,r.value=!1;const s=await(0,g.oA)(t);m.value=s.all_proxies,I.value=m.value.map((e=>e.proxy_name)),B.value=m.value,r.value=!0,console.log("Proxy List",m.value)},ee=e=>{B.value=m.value.filter((t=>e.includes(t.proxy_name))),console.log("filteredproxyDetails",B.value)},te=async e=>{const t=e.target.checked;k.value=!0===t},ae=async()=>{try{console.log(`selectedProxyOhr.value[0] ${h.value[0]}`),console.log(`selectedSkill.value ${s.value}`),console.log(`selectedProficiency.value ${c.value}`),r.value=!1;const e={proxy_key:h.value[0],learners:_.value,linked_program_name:O.value,skill:C.value,proficiency:P.value},t=await(0,n.kn)("/proxyreview",e);D.value=t?.data.message,N.value=!0,setTimeout((()=>{N.value=!1}),6e3),v.value=!1,await U(),r.value=!0,console.log("data ohr",t)}catch(e){if(p.Z.isAxiosError(e)){const t=e;console.log("err.response?.data",t.response?.data),r.value=!0,D.value=t.response?.data?.message,console.log(`errorMessage.value ${M.value}`),T.value=!0,setTimeout((()=>{T.value=!1}),6e3)}}},re=async()=>{try{if(!V.value||!F.value)return D.value="Start Date or End Date should not be empty",T.value=!0,void setTimeout((()=>{T.value=!1}),6e3);const e=await(0,o.yc)(`/admin/proxy/export?start_date=${V.value}&end_date=${F.value}`);S.value="The report will be emailed to you",setTimeout((()=>{S.value=null}),6e3),console.log(`Report Trigger Response ${e}`)}catch(e){if(p.Z.isAxiosError(e)){const t=e;console.log("err.response?.data",t.response?.data),r.value=!0,D.value=t.response?.data?.message,console.log(`errorMessage.value ${M.value}`),T.value=!0,setTimeout((()=>{T.value=!1}),6e3)}}};return(0,l.onBeforeMount)((async()=>{await Q();const e=await(0,i.GF)("/getUserRole");w.value=e.user_roles,w.value.length>0&&(w.value.includes("System Admin")||w.value.includes("Community Manager")||w.value.includes("Proxy Admin")?b.value=!0:b.value=!1)})),{learnerData:e,skills:t,proficiency:a,renderReady:r,selectedSkill:s,selectedProficiency:c,getSelectedSkill:z,getSelectedProficiency:W,isVisible:v,showProxy:K,getSkillandProf:G,getLearnerForProxy:U,selectedTaskId:_,proxyButtonVisible:x,setProxyBtn:H,proxyList:m,selectedProxyOhr:h,checkOne:J,showAssignProxyBtn:te,proxyAssignedBtn:k,assignLearnerToProxy:ae,showScreen:b,triggerProxyReport:re,reportSuccessMessage:S,programDetails:A,getSelectedProgram:X,showSearchBtn:$,selectedProgram:O,showSkillProf:Z,resMessage:D,showSuccessMessage:N,showErrorMessage:T,errorMessage:M,performAgeingFilter:q,ageingValues:E,filteredLearnerData:Y,selectedAgeing:L,sendNudge:j,nudgeButtonVisible:R,getFilteredList:ee,filteredproxyDetails:B,proxyDetailsArray:I,rangeStart:V,rangeEnd:F}}}),m=x,_=a(1001),h=(0,_.Z)(m,r,s,!1,null,"7ac7a042",null),k=h.exports},1055:function(e,t,a){a.r(t),a.d(t,{default:function(){return f}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[e.showScreen?t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._m(0),t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"pr-3 mb-4 w-full text-right"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.triggerProxyReport()}}},[e._v("Export All Proxy Report")])])]),t("div",{staticClass:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow text-background-secondary p-4"},[t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Skill ")]),t("select",{staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:function(t){return e.getSelectedSkill(t)}}},[t("option",[e._v("Select Skill")]),e._l(e.skills,(function(a){return t("option",{key:a.skill_id,domProps:{value:a.skill_id}},[e._v(e._s(a.skill_alias))])}))],2)]),t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Proficiency ")]),t("select",{staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:function(t){return e.getSelectedProficiency(t)}}},[t("option",[e._v("Select Proficiency")]),e._l(e.proficiency,(function(a){return t("option",{key:a.prof_id,domProps:{value:a.prof_id}},[e._v(e._s(a.prof_name))])}))],2)]),t("div",{staticClass:"w-full mb-4"},[t("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.getLearnerForProxy()}}},[e._v("Search Learner")])])]),e.proxyButtonVisible?t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-1/4 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.showProxy()}}},[e._v("View available Proxy")])])]):e._e(),e.reportSuccessMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.learnerData?t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white rounded"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.learnerData,(function(a){return t("tr",{key:a.id,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:a.learner_task_id},domProps:{value:a.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,a.learner_task_id)>-1:e.selectedTaskId},on:{click:function(t){return e.setProxyBtn(t)},change:function(t){var r=e.selectedTaskId,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.learner_task_id,o=e._i(r,n);s.checked?o<0&&(e.selectedTaskId=r.concat([n])):o>-1&&(e.selectedTaskId=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedTaskId=l}}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.learner_task_id))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_key))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.skillName))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proficiencyName))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_requested_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.assignment_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.isRereview))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.ageing))])])})),0)])])]):e._e(),e.isVisible?t("div",{staticClass:"w-full mt-4%"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyAssignedBtn?t("div",{staticClass:"w-1/4 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.assignLearnerToProxy()}}},[e._v("Re-assign Proxy")])]):e._e(),t("div",{staticClass:"w-full mt-4"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[e._m(2),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.proxyList,(function(a){return t("tr",{key:a.proxy_ohr,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedProxyOhr,expression:"selectedProxyOhr"}],attrs:{type:"checkbox",id:a.proxy_ohr},domProps:{value:a.proxy_ohr,checked:Array.isArray(e.selectedProxyOhr)?e._i(e.selectedProxyOhr,a.proxy_ohr)>-1:e.selectedProxyOhr},on:{change:[function(t){var r=e.selectedProxyOhr,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.proxy_ohr,o=e._i(r,n);s.checked?o<0&&(e.selectedProxyOhr=r.concat([n])):o>-1&&(e.selectedProxyOhr=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedProxyOhr=l},function(t){return e.showAssignProxyBtn(t)}],click:e.checkOne}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_name))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_email))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_role))]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(a.proxy_ohr))])])})),0)])])]):e._e()])]),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])]):t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._v("You don't have access")])])},s=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("All Proxy Review Request")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Learner ID")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy OHR")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Skill")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proficiency")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Requested Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Assignment Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Re-review")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Email")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])])}],l=a(7203),n=a(8709),o=a(1068),i=a(5279),c=a(1602),u=a.n(c),d=(0,l.defineComponent)({name:"AssignProxy",setup(){const e=(0,l.ref)(),t=(0,l.ref)(),a=(0,l.ref)(),r=(0,l.ref)(),s=(0,l.ref)(),c=(0,l.ref)(),d=(0,l.ref)(!1),p=(0,l.ref)(!1),g=(0,l.ref)(),y=(0,l.ref)([]),f=(0,l.ref)(),v=(0,l.ref)(!1),x=(0,l.ref)(),m=(0,l.ref)(!0),_=(0,l.ref)(),h=(0,l.ref)(),k=(0,l.ref)(),w=()=>{f.value=[]},b=e=>{y.value=[];const t=e.target.checked;!0===t?p.value=!0:(p.value=!1,d.value=!1)},C={},P=async()=>{r.value=!1;const e=await(0,n.QZ)("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},S=async()=>{try{console.log(C),r.value=!1,await w(),y.value=[];const s=await(0,o._A)(C);e.value=s.data.allProxyList;for(let r=0;r<e.value.length;r+=1){const s=e.value[r];console.log(`res ${JSON.stringify(s)}`);const l=u()().utc().format("YYYY-MM-DD");if(s.assignment_date){const e=u()(s.assignment_date).utc().format("YYYY-MM-DD");s.ageing=u()(l).diff(u()(e),"days"),s.assignment_date=u()(s.assignment_date).format("DD-MM-YYYY")}if(s.proxy_requested_date&&(s.proxy_requested_date=u()(s.proxy_requested_date).format("DD-MM-YYYY")),s.skill){const e=t.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.skill_id;return console.log(`skill ${t}`),!!t&&t===s.skill}));console.log(`learnerSkillArr ${JSON.stringify(e)}`),s.skillName=e[0].skill_alias}else s.skillName="";if(s.proficiency){const e=a.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.prof_id;return console.log(`prof ${t}`),!!t&&t===s.proficiency}));console.log(`learnerProfArr ${JSON.stringify(e)}`),s.proficiencyName=e[0].prof_name}else s.proficiencyName=""}e.value=e.value.sort(((e,t)=>t.ageing-e.ageing)),r.value=!0}catch(s){console.log(s)}},A=async e=>{s.value=e.target.value,Object.assign(C,{skill:s.value})},Z=async e=>{c.value=e.target.value,Object.assign(C,{proficiency:c.value})},O=async()=>{console.log(`selectedTaskId.value[0] ${y.value[0]}`);const t=e.value.filter((e=>y.value[0]===e.learner_task_id));console.log(`selectedLearnerArr ${t}`),_.value=t[0].skill,h.value=t[0].proficiency,d.value=!0,r.value=!1,g.value=await(0,n.Nl)("/getAllProxyBySkill",_.value),r.value=!0,console.log("Proxy List",g.value)},$=async e=>{const t=e.target.checked;v.value=!0===t},D=async()=>{try{console.log(`selectedProxyOhr.value[0] ${f.value[0]}`),console.log(`selectedSkill.value ${_.value}`),console.log(`selectedProficiency.value ${h.value}`),r.value=!1;const e={proxy_key:f.value[0],learners:y.value,linked_program_name:"infinity",skill:_.value,proficiency:h.value},t=await(0,n.kn)("/proxyreview",e);d.value=!1,await S(),r.value=!0,console.log("data ohr",t)}catch(e){console.log("data ohr",e)}},N=async()=>{const e=await(0,o.yc)("/admin/proxy/export");k.value="The report will be emailed to you",setTimeout((()=>{k.value=null}),6e3),console.log(`Report Trigger Response ${e}`)};return(0,l.onBeforeMount)((async()=>{await P();const e=await(0,i.GF)("/getUserRole");x.value=e.user_roles,x.value.length>0&&(x.value.includes("System Admin")||x.value.includes("Community Manager")||x.value.includes("Proxy Admin")?m.value=!0:m.value=!1)})),{learnerData:e,skills:t,proficiency:a,renderReady:r,getSelectedSkill:A,getSelectedProficiency:Z,isVisible:d,showProxy:O,getSkillandProf:P,getLearnerForProxy:S,selectedTaskId:y,proxyButtonVisible:p,setProxyBtn:b,proxyList:g,selectedProxyOhr:f,checkOne:w,showAssignProxyBtn:$,proxyAssignedBtn:v,assignLearnerToProxy:D,showScreen:m,triggerProxyReport:N,reportSuccessMessage:k}}}),p=d,g=a(1001),y=(0,g.Z)(p,r,s,!1,null,"6f090fc0",null),f=y.exports},8709:function(e,t,a){a.d(t,{G7:function(){return s},Nl:function(){return n},QZ:function(){return l},kn:function(){return o}});var r=a(7129);const s=async(e,t)=>{const a=await r.Z.post(e,t);return a},l=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},n=async(e,t)=>{let a;return await r.Z.get(`${e}/${t}`).then((e=>(a=e.data.allProxyList,a))),a},o=async(e,t)=>{const a=await r.Z.post(e,t);return a}},1815:function(e,t,a){a.d(t,{Lo:function(){return n},M0:function(){return o},QZ:function(){return s},Z9:function(){return i},oA:function(){return l}});var r=a(7129);const s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},l=async e=>{const t=await r.Z.get(e);return t.data},n=async(e,t)=>{const a=await r.Z.post(e,t);return a.data},o=async(e,t)=>{const a=await r.Z.post(e,t);return a.data.resp_message},i=async(e,t)=>{const a=await r.Z.post(e,t);return a.data.resp_message}},5279:function(e,t,a){a.d(t,{$d:function(){return s},$i:function(){return b},Ao:function(){return v},DU:function(){return y},EX:function(){return D},F5:function(){return N},FS:function(){return p},GF:function(){return A},Iu:function(){return n},J1:function(){return w},Jf:function(){return _},Kk:function(){return x},N9:function(){return Z},P8:function(){return u},VP:function(){return m},Vz:function(){return C},WX:function(){return g},X$:function(){return h},XP:function(){return l},Yb:function(){return S},a4:function(){return O},dH:function(){return k},gh:function(){return f},nb:function(){return i},oA:function(){return P},r4:function(){return d},sd:function(){return c},wp:function(){return o},xJ:function(){return $}});var r=a(7129);const s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},l=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},n=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},o=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},i=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},c=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},u=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},d=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},p=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},g=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},y=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},f=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.userObj,t))),t},x=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},m=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},_=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},h=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},k=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},w=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},S=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},A=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},Z=async e=>{const t=await r.Z.post("/user/role",e);return t},O=async e=>{const t=await r.Z.post("/user/removeRole",e);return t},$=async()=>{const e=await r.Z.get("role");return e},D=async e=>{const t=await r.Z.post("/user/saveLSS",e);return t},N=async e=>{const t=await r.Z.post("/user/saveEnvAccess",e);return t}},9261:function(e,t,a){a.d(t,{DC:function(){return l},JS:function(){return n},uA:function(){return s}});var r=a(7129);const s=async e=>{try{let t;return await r.Z.get(`/program/${e}`).then((e=>(t=e.data,t))),t}catch(t){return t}},l=async e=>{try{let t;return console.log("inside update Program Service"),await r.Z.put("/program",e).then((e=>(console.log("program Response",e),t=e.data,t))),t}catch(t){return t}},n=async e=>{const t=await r.Z.post("/program/email/event/create",e);return t}},9649:function(e,t,a){a.d(t,{$M:function(){return d},F9:function(){return g},HX:function(){return o},V$:function(){return i},VA:function(){return l},dr:function(){return s},gs:function(){return y},jz:function(){return p},q$:function(){return u},rP:function(){return n},yW:function(){return c}});var r=a(7129);const s=async e=>{let t;return await r.Z.get(e).then((e=>(console.log("Response",e),t=e.data.response.program_name,t))),t},l=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},n=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.learnerDetails,a))),a},o=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},i=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data,a))),a},c=async e=>{let t;try{return await r.Z.get(`/task/${e}`).then((e=>(t=e.data.data,t))),t}catch(a){return a}},u=async(e,t)=>{try{const a=await fetch(`${e}`,{method:"put",body:t}),r=a;return r}catch(a){return console.error(a),a}},d=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},p=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},g=async e=>{console.log(`inside save task data ${JSON.stringify(e)}`);const t=await r.Z.post("/task/create",e);return t},y=async e=>{try{let t;return await r.Z.get(`/admin/task/taskExport/${e}`).then((async e=>(t=e.data,t))),t}catch(t){return t}}},1068:function(e,t,a){a.d(t,{Ho:function(){return s},_A:function(){return l},cQ:function(){return n},yc:function(){return o}});var r=a(7129);const s=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data,a))),a},l=async e=>{const t=await r.Z.post("getAllProxyAssignedLearner",e);return t},n=async e=>{const t=await r.Z.post("program/proxies/learners",e);return t},o=async e=>{const t=await r.Z.get(e);return t}},9756:function(e,t,a){e.exports=a.p+"img/loadernew.gif"}}]);
|
|
1
|
+
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[412],{8153:function(e,t,a){a.d(t,{Z:function(){return u}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full flex mt-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"appearance-none border rounded py-2 px-14 text-gray-500 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text",placeholder:e.placeHolder1},domProps:{value:e.search},on:{keyup:function(t){e.filterProgramDetails(),e.$emit("Filtered",e.filteredProgramDetails)},input:function(t){t.target.composing||(e.search=t.target.value)}}})])},s=[],l=a(7203),n=(0,l.defineComponent)({name:"SearchBar",props:{data:[Array],placeholder:{type:String,default:"Search"}},setup(e){const t=(0,l.ref)(""),a=(0,l.ref)(),r=(0,l.ref)(),s=(0,l.ref)(),n=()=>{s.value=e.data,r.value=s.value.filter((e=>e.toLowerCase().includes(t.value.toLowerCase())))};return(0,l.onBeforeMount)((async()=>{a.value=e.placeholder,console.log("props.placeholder",e.placeholder)})),{placeHolder1:a,filteredProgramDetails:r,filterProgramDetails:n,search:t}}}),o=n,i=a(1001),c=(0,i.Z)(o,r,s,!1,null,null,null),u=c.exports},408:function(e,t,a){a.r(t),a.d(t,{default:function(){return k}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[e.showScreen?t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._m(0),t("div",{staticClass:"flex w-full mt-6 justify-end items-center gap-2"},[t("div",{staticClass:"w-1/5"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.rangeStart,expression:"rangeStart"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{type:"date"},domProps:{value:e.rangeStart},on:{input:function(t){t.target.composing||(e.rangeStart=t.target.value)}}})]),t("div",{staticClass:"w-1/5"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.rangeEnd,expression:"rangeEnd"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",attrs:{type:"date"},domProps:{value:e.rangeEnd},on:{input:function(t){t.target.composing||(e.rangeEnd=t.target.value)}}})]),t("div",{staticClass:"pr-3"},[t("button",{staticClass:"inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.triggerProxyReport()}}},[e._v("Export All Proxy Report")])])]),t("div",{staticClass:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow text-background-secondary p-4"},[t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Filter Task ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedProgram,expression:"selectedProgram"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedProgram=t.target.multiple?a:a[0]},function(t){return e.getSelectedProgram(t)}]}},[t("option",[e._v("Select Program")]),e._l(e.programDetails,(function(a){return t("option",{key:a.program_id,domProps:{value:a.program_id}},[e._v(e._s(a.program_display_name?a.program_display_name:a.program_name))])}))],2)]),e.showSkillProf?t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Skill ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedSkill,expression:"selectedSkill"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedSkill=t.target.multiple?a:a[0]},function(t){return e.getSelectedSkill(t)}]}},[t("option",[e._v("Select Skill")]),e._l(e.skills,(function(a){return t("option",{key:a.skill_id,domProps:{value:a.skill_id}},[e._v(e._s(a.skill_alias))])}))],2)]):e._e(),e.showSkillProf?t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Proficiency ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedProficiency,expression:"selectedProficiency"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedProficiency=t.target.multiple?a:a[0]},function(t){return e.getSelectedProficiency(t)}]}},[t("option",[e._v("Select Proficiency")]),e._l(e.proficiency,(function(a){return t("option",{key:a.prof_id,domProps:{value:a.prof_id}},[e._v(e._s(a.prof_name))])}))],2)]):e._e(),t("div",{staticClass:"w-1/2 pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Ageing ")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedAgeing,expression:"selectedAgeing"}],staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedAgeing=t.target.multiple?a:a[0]},function(t){return e.performAgeingFilter(t)}]}},[t("option",[e._v("Select Ageing")]),e._l(e.ageingValues,(function(a){return t("option",{key:a,domProps:{value:a}},[e._v(e._s(a))])}))],2)]),t("div",{staticClass:"w-full mb-4"},[t("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md",class:e.showSearchBtn?"bg-background-secondary":"bg-gray-500 cursor-not-allowed",attrs:{disabled:!e.showSearchBtn},on:{click:function(t){return e.getLearnerForProxy()}}},[e._v(" Search Learners ")])])]),e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e.showErrorMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-red-400 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e.proxyButtonVisible?t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-1/2 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary mr-2",on:{click:function(t){return e.showProxy()}}},[e._v("View available Proxy")]),e.nudgeButtonVisible?t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.sendNudge()}}},[e._v("Send Proxy Nudge")]):e._e()])]):e._e(),e.reportSuccessMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.learnerData?t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white rounded"},[t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Learner ID")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy OHR")]),"infinity"===e.selectedProgram?t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Skill")]):e._e(),"infinity"===e.selectedProgram?t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proficiency")]):e._e(),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Requested Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Assignment Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Re-review")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])]),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredLearnerData,(function(a){return t("tr",{key:a.id,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:a.learner_task_id},domProps:{value:a.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,a.learner_task_id)>-1:e.selectedTaskId},on:{change:[function(t){var r=e.selectedTaskId,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.learner_task_id,o=e._i(r,n);s.checked?o<0&&(e.selectedTaskId=r.concat([n])):o>-1&&(e.selectedTaskId=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedTaskId=l},function(t){return e.setProxyBtn(t)}]}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.learner_task_id))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_key))]),"infinity"===e.selectedProgram?t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.skillName))]):e._e(),"infinity"===e.selectedProgram?t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proficiencyName))]):e._e(),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_requested_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.assignment_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.isRereview))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.ageing))])])})),0)])])]):e._e(),e.isVisible?t("div",{staticClass:"w-full mt-4%"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyList?t("div",{staticClass:"w-full flex mt-6"},[t("SearchBar",{attrs:{data:e.proxyDetailsArray,placeholder:"Search By Proxy Name"},on:{Filtered:e.getFilteredList}})],1):e._e(),e.proxyAssignedBtn?t("div",{staticClass:"w-1/4 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.assignLearnerToProxy()}}},[e._v("Re-assign Proxy")])]):e._e(),t("div",{staticClass:"w-full mt-4"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Email")]),"infinity"===e.selectedProgram?t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")]):e._e(),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])]),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.filteredproxyDetails,(function(a,r){return t("tr",{key:r,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedProxyOhr,expression:"selectedProxyOhr"}],attrs:{type:"checkbox",id:a.proxy_ohr},domProps:{value:a.proxy_ohr,checked:Array.isArray(e.selectedProxyOhr)?e._i(e.selectedProxyOhr,a.proxy_ohr)>-1:e.selectedProxyOhr},on:{change:[function(t){var r=e.selectedProxyOhr,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.proxy_ohr,o=e._i(r,n);s.checked?o<0&&(e.selectedProxyOhr=r.concat([n])):o>-1&&(e.selectedProxyOhr=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedProxyOhr=l},function(t){return e.showAssignProxyBtn(t)}],click:e.checkOne}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_name))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_email))]),"infinity"===e.selectedProgram?t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_role))]):e._e(),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(a.proxy_ohr))])])})),0)])])]):e._e()])]),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])]):t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._v("You don't have access")])])},s=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("All Proxy Review Request")])])}],l=(a(7658),a(7203)),n=a(8709),o=a(1068),i=a(5279),c=a(1602),u=a.n(c),d=a(9649),p=a(306),g=a(1815),y=a(1232),f=a(2027),v=a(8153),x=(0,l.defineComponent)({name:"ViewAllProgramProxyAssignment",components:{SearchBar:v.Z},setup(){const e=(0,l.ref)(),t=(0,l.ref)(),a=(0,l.ref)(),r=(0,l.ref)(),s=(0,l.ref)(),c=(0,l.ref)(),v=(0,l.ref)(!1),x=(0,l.ref)(!1),m=(0,l.ref)(),_=(0,l.ref)([]),h=(0,l.ref)(),k=(0,l.ref)(!1),w=(0,l.ref)(),b=(0,l.ref)(!0),C=(0,l.ref)(),P=(0,l.ref)(),S=(0,l.ref)(),A=(0,l.ref)(),Z=(0,l.ref)(!1),O=(0,l.ref)("Select Program"),$=(0,l.ref)(!1),D=(0,l.ref)(),N=(0,l.ref)(!1),T=(0,l.ref)(!1),M=(0,l.ref)(),R=(0,l.ref)(!1),L=(0,l.ref)("Select Ageing"),Y=(0,l.ref)(),I=(0,l.ref)(),B=(0,l.ref)(),E=(0,l.ref)(["0-5","5-10","10-15","15-20",">20"]),V=(0,l.ref)(""),F=(0,l.ref)(""),J=()=>{h.value=[]},q=()=>{let t,a;console.log(L.value);let r=!1;"Select Ageing"!==L.value?(L.value.includes(">")?(t=L.value.slice(1),r=!0):[t,a]=L.value.split("-"),console.log(t,a),Y.value=e.value.filter((e=>{if(console.log(e.ageing,e.ageing>=t&&(r||e.ageing<=a)),e.ageing>=t&&(r||e.ageing<=a))return e}))):Y.value=e.value},j=async()=>{const e=[];Y.value.filter((t=>{for(let a=0;a<_.value.length;a+=1)_.value[a]===t.learner_task_id&&e.push({learner_task_id:t.learner_task_id,proxyOhr:t.proxy_key})}));const t={nudge_arr:e};console.log(" Proxy OHR ",t);try{r.value=!1;const e=await(0,y.F)("/proxyreview/nudge",t);console.log(e),D.value=e.data.message,r.value=!0,N.value=!0,T.value=!1,window.scroll(0,0),r.value=!0,setTimeout((()=>{N.value=!1}),5e3)}catch(a){if(r.value=!0,p.Z.isAxiosError(a)){const e=a;r.value=!0,D.value=e.response?.data?.message,T.value=!0,N.value=!1,setTimeout((()=>{T.value=!1}),5e3)}}},H=e=>{const t=e.target.checked;!0===t?(console.log("selected Task id",_.value),x.value=!0):0===_.value.length&&(x.value=!1,v.value=!1)},G=async()=>{r.value=!1;const e=await(0,n.QZ)("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},Q=async()=>{r.value=!1,A.value=await(0,d.dr)("/cache?cache=program"),r.value=!0},X=async t=>{r.value=!1,localStorage.setItem("program",t.target.value),localStorage.removeItem("skill"),localStorage.removeItem("proficiency"),O.value=t.target.value,"Select Program"!==O.value?($.value=!0,"infinity"===O.value?(await G(),s.value="Select Skill",c.value="Select Proficiency",Z.value=!0):(Z.value=!1,s.value="",c.value="")):($.value=!1,Z.value=!1),x.value=!1,R.value=!1,e.value=[],v.value=!1,_.value=[],Y.value=[],r.value=!0},U=async()=>{try{const l={linked_program_name:O.value,skill:s.value,proficiency:c.value};console.log({data:l}),r.value=!1,await J(),_.value=[],x.value=!1,v.value=!1;const n=await(0,o.cQ)(l);e.value=n.data.allProxyList;for(let r=0;r<e.value.length;r+=1){const s=e.value[r];console.log(`res ${JSON.stringify(s)}`);const l=u()().utc().format("YYYY-MM-DD");if(s.assignment_date){const e=u()(s.assignment_date).utc().format("YYYY-MM-DD");s.ageing=u()(l).diff(u()(e),"days"),s.assignment_date=u()(s.assignment_date).format("DD-MM-YYYY")}if(s.proxy_requested_date&&(s.proxy_requested_date=u()(s.proxy_requested_date).format("DD-MM-YYYY")),"infinity"===O.value){if(s.skill){const e=t.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.skill_id;return console.log(`skill ${t}`),!!t&&t===s.skill}));console.log(`learnerSkillArr ${JSON.stringify(e)}`),s.skillName=e[0].skill_alias}else s.skillName="";if(s.proficiency){const e=a.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.prof_id;return console.log(`prof ${t}`),!!t&&t===s.proficiency}));console.log(`learnerProfArr ${JSON.stringify(e)}`),s.proficiencyName=e[0].prof_name}else s.proficiencyName=""}}const i=await(0,f.uA)(O.value),d="PROXY_NUDGE",p=i.prog_detail.email_templates;R.value=void 0!==p[d],Y.value=e.value,q(),e.value=e.value.sort(((e,t)=>t.ageing-e.ageing))}catch(l){console.log(l)}r.value=!0},z=async e=>{s.value=e.target.value,console.log(`selectedSkill.value ${s.value}`)},W=async e=>{c.value=e.target.value,console.log(`selectedProficiency.value ${c.value}`)},K=async()=>{console.log(`selectedTaskId.value[0] ${_.value[0]}`);let t=`/v2/admin/proxy/program/${O.value}`;const a=e.value.filter((e=>_.value[0]===e.learner_task_id));console.log(`selectedLearnerArr ${a}`),"infinity"===O.value&&(C.value=a[0].skill,P.value=a[0].proficiency,t=`/v2/admin/proxy/program/infinity/skill/${C.value}`),v.value=!0,r.value=!1;const s=await(0,g.oA)(t);m.value=s.all_proxies,I.value=m.value.map((e=>e.proxy_name)),B.value=m.value,r.value=!0,console.log("Proxy List",m.value)},ee=e=>{B.value=m.value.filter((t=>e.includes(t.proxy_name))),console.log("filteredproxyDetails",B.value)},te=async e=>{const t=e.target.checked;k.value=!0===t},ae=async()=>{try{console.log(`selectedProxyOhr.value[0] ${h.value[0]}`),console.log(`selectedSkill.value ${s.value}`),console.log(`selectedProficiency.value ${c.value}`),r.value=!1;const e={proxy_key:h.value[0],learners:_.value,linked_program_name:O.value,skill:C.value,proficiency:P.value},t=await(0,n.kn)("/proxyreview",e);D.value=t?.data.message,N.value=!0,setTimeout((()=>{N.value=!1}),6e3),v.value=!1,await U(),r.value=!0,console.log("data ohr",t)}catch(e){if(p.Z.isAxiosError(e)){const t=e;console.log("err.response?.data",t.response?.data),r.value=!0,D.value=t.response?.data?.message,console.log(`errorMessage.value ${M.value}`),T.value=!0,setTimeout((()=>{T.value=!1}),6e3)}}},re=async()=>{try{if(!V.value||!F.value)return D.value="Start Date or End Date should not be empty",T.value=!0,void setTimeout((()=>{T.value=!1}),6e3);const e=await(0,o.yc)(`/admin/proxy/export?start_date=${V.value}&end_date=${F.value}`);S.value="The report will be emailed to you",setTimeout((()=>{S.value=null}),6e3),console.log(`Report Trigger Response ${e}`)}catch(e){if(p.Z.isAxiosError(e)){const t=e;console.log("err.response?.data",t.response?.data),r.value=!0,D.value=t.response?.data?.message,console.log(`errorMessage.value ${M.value}`),T.value=!0,setTimeout((()=>{T.value=!1}),6e3)}}};return(0,l.onBeforeMount)((async()=>{await Q();const e=await(0,i.GF)("/getUserRole");w.value=e.user_roles,w.value.length>0&&(w.value.includes("System Admin")||w.value.includes("Community Manager")||w.value.includes("Proxy Admin")?b.value=!0:b.value=!1)})),{learnerData:e,skills:t,proficiency:a,renderReady:r,selectedSkill:s,selectedProficiency:c,getSelectedSkill:z,getSelectedProficiency:W,isVisible:v,showProxy:K,getSkillandProf:G,getLearnerForProxy:U,selectedTaskId:_,proxyButtonVisible:x,setProxyBtn:H,proxyList:m,selectedProxyOhr:h,checkOne:J,showAssignProxyBtn:te,proxyAssignedBtn:k,assignLearnerToProxy:ae,showScreen:b,triggerProxyReport:re,reportSuccessMessage:S,programDetails:A,getSelectedProgram:X,showSearchBtn:$,selectedProgram:O,showSkillProf:Z,resMessage:D,showSuccessMessage:N,showErrorMessage:T,errorMessage:M,performAgeingFilter:q,ageingValues:E,filteredLearnerData:Y,selectedAgeing:L,sendNudge:j,nudgeButtonVisible:R,getFilteredList:ee,filteredproxyDetails:B,proxyDetailsArray:I,rangeStart:V,rangeEnd:F}}}),m=x,_=a(1001),h=(0,_.Z)(m,r,s,!1,null,"7ac7a042",null),k=h.exports},1055:function(e,t,a){a.r(t),a.d(t,{default:function(){return f}});var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[e.showScreen?t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._m(0),t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"pr-3 mb-4 w-full text-right"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary text-right",on:{click:function(t){return e.triggerProxyReport()}}},[e._v("Export All Proxy Report")])])]),t("div",{staticClass:"w-full mt-4"},[t("div",{staticClass:"max-w-6xl m-auto shadow text-background-secondary p-4"},[t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Skill ")]),t("select",{staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:function(t){return e.getSelectedSkill(t)}}},[t("option",[e._v("Select Skill")]),e._l(e.skills,(function(a){return t("option",{key:a.skill_id,domProps:{value:a.skill_id}},[e._v(e._s(a.skill_alias))])}))],2)]),t("div",{staticClass:"w-full pr-3 mb-4"},[t("label",{staticClass:"block tracking-wide -text-blue-800 opacity-80 font-normal mb-2"},[e._v(" Proficiency ")]),t("select",{staticClass:"appearance-none block w-full text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",on:{change:function(t){return e.getSelectedProficiency(t)}}},[t("option",[e._v("Select Proficiency")]),e._l(e.proficiency,(function(a){return t("option",{key:a.prof_id,domProps:{value:a.prof_id}},[e._v(e._s(a.prof_name))])}))],2)]),t("div",{staticClass:"w-full mb-4"},[t("button",{staticClass:"mt-8 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.getLearnerForProxy()}}},[e._v("Search Learner")])])]),e.proxyButtonVisible?t("div",{staticClass:"flex w-full mt-6"},[t("div",{staticClass:"w-1/4 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.showProxy()}}},[e._v("View available Proxy")])])]):e._e(),e.reportSuccessMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.reportSuccessMessage))]):e._e(),e.learnerData?t("div",{staticClass:"flex w-full"},[t("div",{staticClass:"w-full mt-4 tableScroll"},[t("table",{staticClass:"w-full text-md bg-white rounded"},[e._m(1),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.learnerData,(function(a){return t("tr",{key:a.id,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedTaskId,expression:"selectedTaskId"}],attrs:{type:"checkbox",disabled:e.selectedTaskId.length>4,id:a.learner_task_id},domProps:{value:a.learner_task_id,checked:Array.isArray(e.selectedTaskId)?e._i(e.selectedTaskId,a.learner_task_id)>-1:e.selectedTaskId},on:{click:function(t){return e.setProxyBtn(t)},change:function(t){var r=e.selectedTaskId,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.learner_task_id,o=e._i(r,n);s.checked?o<0&&(e.selectedTaskId=r.concat([n])):o>-1&&(e.selectedTaskId=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedTaskId=l}}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.learner_task_id))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_key))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.skillName))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proficiencyName))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_requested_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.assignment_date))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.isRereview))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.ageing))])])})),0)])])]):e._e(),e.isVisible?t("div",{staticClass:"w-full mt-4%"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("Available Proxy")]),e.proxyAssignedBtn?t("div",{staticClass:"w-1/4 pr-3 mb-4"},[t("button",{staticClass:"mt-2 inline-block py-2 px-4 text-white shadow-md bg-background-secondary",on:{click:function(t){return e.assignLearnerToProxy()}}},[e._v("Re-assign Proxy")])]):e._e(),t("div",{staticClass:"w-full mt-4"},[t("table",{staticClass:"w-full text-md bg-white shadow rounded text-over"},[e._m(2),t("tbody",{staticClass:"opacity-80 -text-blue-800 align-bottom"},e._l(e.proxyList,(function(a){return t("tr",{key:a.proxy_ohr,staticClass:"border-b hover:bg-gray-300"},[t("td",{staticClass:"py-2 pl-3 pr-0 text-sm w-6"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedProxyOhr,expression:"selectedProxyOhr"}],attrs:{type:"checkbox",id:a.proxy_ohr},domProps:{value:a.proxy_ohr,checked:Array.isArray(e.selectedProxyOhr)?e._i(e.selectedProxyOhr,a.proxy_ohr)>-1:e.selectedProxyOhr},on:{change:[function(t){var r=e.selectedProxyOhr,s=t.target,l=!!s.checked;if(Array.isArray(r)){var n=a.proxy_ohr,o=e._i(r,n);s.checked?o<0&&(e.selectedProxyOhr=r.concat([n])):o>-1&&(e.selectedProxyOhr=r.slice(0,o).concat(r.slice(o+1)))}else e.selectedProxyOhr=l},function(t){return e.showAssignProxyBtn(t)}],click:e.checkOne}})]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_name))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_email))]),t("td",{staticClass:"p-2 px-3"},[e._v(e._s(a.proxy_role))]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v(e._s(a.proxy_ohr))])])})),0)])])]):e._e()])]),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center pageLoader"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])]):t("div",{staticClass:"container w-full flex flex-wrap mx-auto px-2 pt-8 lg:pt-16 md:pt-16 mt-10"},[e._v("You don't have access")])])},s=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-center text-3xl text-background-secondary"},[e._v("All Proxy Review Request")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Learner ID")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy OHR")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Skill")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proficiency")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Requested Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Proxy Assignment Date")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Re-review")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Ageing")])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("thead",{staticClass:"opacity-90 -text-blue-800"},[t("tr",{staticClass:"border-b"},[t("th",{staticClass:"text-left py-2 pl-3 pr-0 w-6 text-background-secondary"}),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Name")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Email")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("Role")]),t("th",{staticClass:"text-left p-2 px-3 text-background-secondary"},[e._v("OHR")])])])}],l=a(7203),n=a(8709),o=a(1068),i=a(5279),c=a(1602),u=a.n(c),d=(0,l.defineComponent)({name:"AssignProxy",setup(){const e=(0,l.ref)(),t=(0,l.ref)(),a=(0,l.ref)(),r=(0,l.ref)(),s=(0,l.ref)(),c=(0,l.ref)(),d=(0,l.ref)(!1),p=(0,l.ref)(!1),g=(0,l.ref)(),y=(0,l.ref)([]),f=(0,l.ref)(),v=(0,l.ref)(!1),x=(0,l.ref)(),m=(0,l.ref)(!0),_=(0,l.ref)(),h=(0,l.ref)(),k=(0,l.ref)(),w=()=>{f.value=[]},b=e=>{y.value=[];const t=e.target.checked;!0===t?p.value=!0:(p.value=!1,d.value=!1)},C={},P=async()=>{r.value=!1;const e=await(0,n.QZ)("/getAllSkillProf?skill_type=genome");t.value=e.skill,a.value=e.proficiency,r.value=!0},S=async()=>{try{console.log(C),r.value=!1,await w(),y.value=[];const s=await(0,o._A)(C);e.value=s.data.allProxyList;for(let r=0;r<e.value.length;r+=1){const s=e.value[r];console.log(`res ${JSON.stringify(s)}`);const l=u()().utc().format("YYYY-MM-DD");if(s.assignment_date){const e=u()(s.assignment_date).utc().format("YYYY-MM-DD");s.ageing=u()(l).diff(u()(e),"days"),s.assignment_date=u()(s.assignment_date).format("DD-MM-YYYY")}if(s.proxy_requested_date&&(s.proxy_requested_date=u()(s.proxy_requested_date).format("DD-MM-YYYY")),s.skill){const e=t.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.skill_id;return console.log(`skill ${t}`),!!t&&t===s.skill}));console.log(`learnerSkillArr ${JSON.stringify(e)}`),s.skillName=e[0].skill_alias}else s.skillName="";if(s.proficiency){const e=a.value.filter((e=>{console.log(`item ${JSON.stringify(e)}`);const t=e.prof_id;return console.log(`prof ${t}`),!!t&&t===s.proficiency}));console.log(`learnerProfArr ${JSON.stringify(e)}`),s.proficiencyName=e[0].prof_name}else s.proficiencyName=""}e.value=e.value.sort(((e,t)=>t.ageing-e.ageing)),r.value=!0}catch(s){console.log(s)}},A=async e=>{s.value=e.target.value,Object.assign(C,{skill:s.value})},Z=async e=>{c.value=e.target.value,Object.assign(C,{proficiency:c.value})},O=async()=>{console.log(`selectedTaskId.value[0] ${y.value[0]}`);const t=e.value.filter((e=>y.value[0]===e.learner_task_id));console.log(`selectedLearnerArr ${t}`),_.value=t[0].skill,h.value=t[0].proficiency,d.value=!0,r.value=!1,g.value=await(0,n.Nl)("/getAllProxyBySkill",_.value),r.value=!0,console.log("Proxy List",g.value)},$=async e=>{const t=e.target.checked;v.value=!0===t},D=async()=>{try{console.log(`selectedProxyOhr.value[0] ${f.value[0]}`),console.log(`selectedSkill.value ${_.value}`),console.log(`selectedProficiency.value ${h.value}`),r.value=!1;const e={proxy_key:f.value[0],learners:y.value,linked_program_name:"infinity",skill:_.value,proficiency:h.value},t=await(0,n.kn)("/proxyreview",e);d.value=!1,await S(),r.value=!0,console.log("data ohr",t)}catch(e){console.log("data ohr",e)}},N=async()=>{const e=await(0,o.yc)("/admin/proxy/export");k.value="The report will be emailed to you",setTimeout((()=>{k.value=null}),6e3),console.log(`Report Trigger Response ${e}`)};return(0,l.onBeforeMount)((async()=>{await P();const e=await(0,i.GF)("/getUserRole");x.value=e.user_roles,x.value.length>0&&(x.value.includes("System Admin")||x.value.includes("Community Manager")||x.value.includes("Proxy Admin")?m.value=!0:m.value=!1)})),{learnerData:e,skills:t,proficiency:a,renderReady:r,getSelectedSkill:A,getSelectedProficiency:Z,isVisible:d,showProxy:O,getSkillandProf:P,getLearnerForProxy:S,selectedTaskId:y,proxyButtonVisible:p,setProxyBtn:b,proxyList:g,selectedProxyOhr:f,checkOne:w,showAssignProxyBtn:$,proxyAssignedBtn:v,assignLearnerToProxy:D,showScreen:m,triggerProxyReport:N,reportSuccessMessage:k}}}),p=d,g=a(1001),y=(0,g.Z)(p,r,s,!1,null,"6f090fc0",null),f=y.exports},8709:function(e,t,a){a.d(t,{G7:function(){return s},Nl:function(){return n},QZ:function(){return l},kn:function(){return o}});var r=a(7129);const s=async(e,t)=>{const a=await r.Z.post(e,t);return a},l=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},n=async(e,t)=>{let a;return await r.Z.get(`${e}/${t}`).then((e=>(a=e.data.allProxyList,a))),a},o=async(e,t)=>{const a=await r.Z.post(e,t);return a}},1815:function(e,t,a){a.d(t,{Lo:function(){return n},M0:function(){return o},QZ:function(){return s},Z9:function(){return i},oA:function(){return l}});var r=a(7129);const s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},l=async e=>{const t=await r.Z.get(e);return t.data},n=async(e,t)=>{const a=await r.Z.post(e,t);return a.data},o=async(e,t)=>{const a=await r.Z.post(e,t);return a.data.resp_message},i=async(e,t)=>{const a=await r.Z.post(e,t);return a.data.resp_message}},5279:function(e,t,a){a.d(t,{$d:function(){return s},$i:function(){return b},Ao:function(){return v},DU:function(){return y},EX:function(){return D},F5:function(){return N},FS:function(){return p},GF:function(){return A},Iu:function(){return n},J1:function(){return w},Jf:function(){return _},Kk:function(){return x},N9:function(){return Z},P8:function(){return u},VP:function(){return m},Vz:function(){return C},WX:function(){return g},X$:function(){return h},XP:function(){return l},Yb:function(){return S},a4:function(){return O},dH:function(){return k},gh:function(){return f},nb:function(){return i},oA:function(){return P},r4:function(){return d},sd:function(){return c},wp:function(){return o},xJ:function(){return $}});var r=a(7129);const s=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},l=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},n=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},o=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},i=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},c=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},u=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},d=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},p=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},g=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},y=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},f=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.userObj,t))),t},x=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},m=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},_=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},h=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},k=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},w=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},S=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data,t))),t},A=async e=>{let t;return await r.Z.get(e).then((e=>(t=e.data.userObj,t))),t},Z=async e=>{const t=await r.Z.post("/user/role",e);return t},O=async e=>{const t=await r.Z.post("/user/removeRole",e);return t},$=async()=>{const e=await r.Z.get("role");return e},D=async e=>{const t=await r.Z.post("/user/saveLSS",e);return t},N=async e=>{const t=await r.Z.post("/user/saveEnvAccess",e);return t}},2027:function(e,t,a){a.d(t,{DC:function(){return l},JS:function(){return n},uA:function(){return s}});var r=a(7129);const s=async e=>{try{let t;return await r.Z.get(`/program/${e}`).then((e=>(t=e.data,t))),t}catch(t){return t}},l=async e=>{try{let t;return console.log("inside update Program Service"),await r.Z.put("/program",e).then((e=>(console.log("program Response",e),t=e.data,t))),t}catch(t){return t}},n=async e=>{const t=await r.Z.post("/program/email/event/create",e);return t}},9649:function(e,t,a){a.d(t,{$M:function(){return d},F9:function(){return g},HX:function(){return o},V$:function(){return i},VA:function(){return l},dr:function(){return s},gs:function(){return y},jz:function(){return p},q$:function(){return u},rP:function(){return n},yW:function(){return c}});var r=a(7129);const s=async e=>{let t;return await r.Z.get(e).then((e=>(console.log("Response",e),t=e.data.response.program_name,t))),t},l=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},n=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.learnerDetails,a))),a},o=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},i=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data,a))),a},c=async e=>{let t;try{return await r.Z.get(`/task/${e}`).then((e=>(t=e.data.data,t))),t}catch(a){return a}},u=async(e,t)=>{try{const a=await fetch(`${e}`,{method:"put",body:t}),r=a;return r}catch(a){return console.error(a),a}},d=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},p=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data.tasks,a))),a},g=async e=>{console.log(`inside save task data ${JSON.stringify(e)}`);const t=await r.Z.post("/task/create",e);return t},y=async e=>{try{let t;return await r.Z.get(`/admin/task/taskExport/${e}`).then((async e=>(t=e.data,t))),t}catch(t){return t}}},1068:function(e,t,a){a.d(t,{Ho:function(){return s},_A:function(){return l},cQ:function(){return n},yc:function(){return o}});var r=a(7129);const s=async(e,t)=>{let a;return await r.Z.post(e,t).then((e=>(a=e.data,a))),a},l=async e=>{const t=await r.Z.post("getAllProxyAssignedLearner",e);return t},n=async e=>{const t=await r.Z.post("program/proxies/learners",e);return t},o=async e=>{const t=await r.Z.get(e);return t}},9756:function(e,t,a){e.exports=a.p+"img/loadernew.gif"}}]);
|
|
2
2
|
//# sourceMappingURL=solidify.umd.min.SolidifyAdministrationViewAllProxyRequests.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[896],{4735:function(e,t,s){s.d(t,{Z:function(){return u}});var a=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:s(6540)}})])])])])])},i=[],r=s(7203),l=(0,r.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,r.ref)(""),s=(0,r.ref)(localStorage.getItem("helpmateLink"));return(0,r.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:s}}}),o=l,n=s(1001),c=(0,n.Z)(o,a,i,!1,null,null,null),u=c.exports},8899:function(e,t,s){s.d(t,{Z:function(){return d}});var a=function(){var e=this,t=e._self._c;return e.isVisible?t("main",{staticClass:"modal-wrapper relative z-50 modal-filter fixed inset-0 w-full h-screen flex mt-2 justify-center bg-semi-75 h-fit"},[t("transition",{attrs:{name:"modal-fade"}},[t("div",{staticClass:"modal-overlay",on:{click:function(t){return e.$emit("close-modal")}}},[t("div",{staticClass:"modal relative",on:{click:function(e){e.stopPropagation()}}},[e.closeVisible?t("div",{staticClass:"absolute right-0 pr-4 top-5 cursor-pointer",on:{click:function(t){return e.$emit("closeModal")}}},[t("x-icon",{attrs:{size:"1.5x"}})],1):e._e(),t("div",{staticClass:"bg-white"},[t("div",{staticClass:"text-gray-500 px-4",domProps:{innerHTML:e._s(e.message)}}),t("div",{staticClass:"pb-6 pt-4 bg-white"},[e.reReviewButton?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.applyReview(e.reReviewButtonLink)}}},[e._v(" Apply Re-Review ")]):e._e(),e.closeVisible?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2",staticStyle:{"background-color":"grey"},on:{click:function(t){return e.$emit("closeModal")}}},[e._v(" Cancel ")]):e._e(),e.archiveButton?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.$emit("Archive")}}},[e._v("Confirm")]):e._e(),e.linkButton?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.navigate(e.link)}}},[e._v(e._s(e.linkButton))]):e._e()])])])])])],1):e._e()},i=[],r=(s(7658),s(4856)),l=s(6408),o={components:{XIcon:r.b0D},name:"Generic",props:{isVisible:{type:Boolean,default:!1,required:!0},message:{type:String,default:"",required:!0},closeVisible:{type:Boolean,default:!1,required:!1},reReviewButton:{type:Boolean,default:!1,required:!1},archiveButton:{type:Boolean,default:!1,required:!1},reReviewButtonLink:{type:String,default:"",required:!1},link:{type:String,default:"",required:!1},linkButton:{type:String,default:"",required:!1}},setup(){const e=async e=>{l.Z.push({path:"/solidify/rereview",query:{learner_task_id:e}})},t=e=>{window.location.href=e};return{applyReview:e,navigate:t}}},n=o,c=s(1001),u=(0,c.Z)(n,a,i,!1,null,null,null),d=u.exports},4365:function(e,t,s){s.d(t,{Z:function(){return u}});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full"},[t("span",[e._v(e._s(e.proficiency)+" - ")]),e._v(e._s(e.skill)+" ")]),t("div",{staticClass:"my-2 md:order-2 order-1 w-full"},[t("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},i=[],r=s(7203),l=(0,r.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""}},setup(){const e=(0,r.ref)("");return(0,r.onBeforeMount)((async()=>{const t=localStorage.getItem("userName")||"Learner";e.value=t.split(",").reverse().join(" ")})),{username:e}}}),o=l,n=s(1001),c=(0,n.Z)(o,a,i,!1,null,null,null),u=c.exports},2561:function(e,t,s){s.r(t),s.d(t,{default:function(){return h}});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[e.revieweeDetails?t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[t("Greetings",{attrs:{program:e.programId,proficiency:e.proficiency,skill:e.skill}}),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:"bloc text-2xl text-center text-background-secondary"},[e._v(e._s(e.revieweeDetails.reviewee_count_string))]),t("div",{staticClass:"block"},[t("div",{staticClass:"text-gray-600"},[t("div",{staticClass:"mt-4 p-8 border border-gray-300 lg:mr-6 md:mr-6 mr-0"},["infinity"===e.programId?t("div",{},[t("p",[e._v("Welcome to the review stage of Solidify. You must complete 3 peer reviews in order to pass Solidify.")]),t("p",{staticClass:"pt-2"},[e._v(" A single review should take about 15 minutes, but if needed you can leave this page and come back within "+e._s(e.reviewerHoldTime)+" hours. Remember, other learners are waiting on you to complete their own Solidify, so please do the review as soon as possible. If you have not done this review within "+e._s(e.reviewerHoldTime)+" hours, it could be assigned to someone else and you will need to do an additional peer review. ")]),"Desktop"==e.revieweeDetails.task_details.task_type?t("p",{staticClass:"pt-2"},[e._v("You must be on a desktop in order to download the task. The review will not work on a mobile device or tablet.")]):e._e(),e._m(1),e.isPlagiarismEnabled?t("ol",{staticClass:"list-decimal pl-8 mt-1"},[t("li",[e._v("Read the Task Description.")]),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v('Read the "'),t("strong",[e._v("Learner task submission")]),e._v('".')]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Click the “"),t("strong",[e._v("Download Learner Task submission")]),e._v("” button to open the learner’s task.")]):e._e(),e._m(2),e._m(3),t("li",[e._v(" Remember, plagiarism is an integrity violation. Citing works is perfectly acceptable, and you will need to use some judgment when marking a task as plagiarized. When you mark a task as plagiarized you are saying it was directly copied from other sources, the task is an integrity violation, and it will be failed. ")]),t("li",[e._v("If the task is not plagiarized, review and score the task by referring to the scoring rubric")]),t("li",[e._v("Share your feedback in the reviewer comment box. Be specific about what you liked and what could be improved. These comments will be seen by whoever submitted the task!")]),t("li",[e._v("Do the whole process again until you have finished all your reviews!")])]):e._e(),e.isPlagiarismEnabled?e._e():t("ol",{staticClass:"list-decimal pl-8 mt-1"},[t("li",[e._v("Read the Task Description.")]),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Read the learner’s submission.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Click the “"),t("strong",[e._v("Download Learner Task submission")]),e._v("” button to open the learner’s task.")]):e._e(),t("li",[e._v("Review and score the task by referring to the scoring rubric.")]),t("li",[e._v("Share your feedback in the reviewer comment box. Be specific about what you liked and what could be improved. These comments will be seen by whoever submitted the task!")]),t("li",[e._v("Do the whole process again until you have finished all your reviews!")])])]):e._e(),"infinity"!==e.programId?t("div",{},[t("p",[e._v("Welcome to the review stage of Solidify. You must complete "+e._s(e.revieweeDetails.mandatory_reviews)+" reviews to pass Solidify.")]),t("p",{staticClass:"pt-2"},[e._v(" A single review should take about 15 minutes, but if needed you can leave this page and come back. Remember, other learners are waiting on you to complete their own Solidify, so please do the review as soon as possible. If you have not done this review "),t("strong",[e._v("within "+e._s(e.reviewerHoldTime)+" hours")]),e._v(", it could be assigned to someone else and you will need to review a different task. ")]),"Desktop"==e.revieweeDetails.task_details.task_type?t("p",{staticClass:"pt-2"},[e._v("You must be on a desktop to download the task. This review will not work on a mobile device or tablet.")]):e._e(),e._m(4),t("ol",{staticClass:"list-decimal pl-8 mt-1"},[t("li",[e._v("Read the Task Description.")]),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Read the learner's "),t("strong",[e._v("submission")]),e._v(".")]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Review and score the task by referring to the scoring rubric.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Click the “"),t("strong",[e._v("Download Learner Task submission")]),e._v("” button to open the learner’s task.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Review and score the task by referring to the scoring rubric.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v(" Share your feedback in the reviewer comment box. Be specific about what you liked and what could be improved. These comments will be seen by whoever submitted the task! ")]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v(" Share your feedback in the reviewer comment box. Be specific about what you liked and what could be improved. These comments will be seen by whoever submitted the task! ")]):e._e(),t("li",[e._v("Do the whole process again until you have finished all your reviews!")])])]):e._e(),t("div",{staticClass:"mt-8"},[t("p",[t("strong",[e._v("Task Name")]),e._v(": "+e._s(e.revieweeDetails.task_details.task_name))]),e._m(5),t("p",{staticClass:"pt-2 rich-text-formatter",domProps:{innerHTML:e._s(e.revieweeDetails.task_details.description)}})]),"Desktop"==e.revieweeDetails.task_details.task_type?t("div",{staticClass:"text-left"},[t("button",{staticClass:"inline-block mt-2 py-2 px-4 bg-blue-900 text-white shadow-md hover:bg-blue-900 focus:outline-none focus:ring-2 focus:ring-blue-900 focus:ring-opacity-75",on:{click:e.learnerSubmissionClicked}},[e._v(" Download Learner Task Submission ")])]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("div",{staticClass:"mt-2"},[e._m(6),t("p",[e._v(e._s(e.revieweeDetails.learner_submission))])]):e._e(),t("div",{staticClass:"mt-8"},["infinity"===e.programId?t("p",[e._v("Please do not include any self-identifying information.")]):e._e(),e.isPlagiarismEnabled?t("div",{staticClass:"border border-background-secondary p-4 mt-2"},[e._m(7),e._m(8),t("p",{staticClass:"pt-2"},[e._v("Did you find the submission plagiarised?")]),t("div",{staticClass:"mt-1 text-sm"},[t("div",{staticClass:"checkboxNewUi"},[t("div",{staticClass:"checkboxUi"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismCheckOne,expression:"plagiarismCheckOne"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:"plagriarism_check_yes"},domProps:{value:!0,checked:Array.isArray(e.plagiarismCheckOne)?e._i(e.plagiarismCheckOne,!0)>-1:e.plagiarismCheckOne},on:{change:[function(t){var s=e.plagiarismCheckOne,a=t.target,i=!!a.checked;if(Array.isArray(s)){var r=!0,l=e._i(s,r);a.checked?l<0&&(e.plagiarismCheckOne=s.concat([r])):l>-1&&(e.plagiarismCheckOne=s.slice(0,l).concat(s.slice(l+1)))}else e.plagiarismCheckOne=i},function(t){return e.checkPlagiarised(t,!0)}],click:e.checkOne}}),t("label",{attrs:{for:"plagriarism_check_yes"}},[e._v("Yes")])]),t("div",{staticClass:"checkboxUi"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismCheckOne,expression:"plagiarismCheckOne"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:"plagriarism_check_no"},domProps:{value:!1,checked:Array.isArray(e.plagiarismCheckOne)?e._i(e.plagiarismCheckOne,!1)>-1:e.plagiarismCheckOne},on:{change:[function(t){var s=e.plagiarismCheckOne,a=t.target,i=!!a.checked;if(Array.isArray(s)){var r=!1,l=e._i(s,r);a.checked?l<0&&(e.plagiarismCheckOne=s.concat([r])):l>-1&&(e.plagiarismCheckOne=s.slice(0,l).concat(s.slice(l+1)))}else e.plagiarismCheckOne=i},function(t){return e.checkPlagiarised(t,!1)}],click:e.checkOne}}),t("label",{attrs:{for:"plagriarism_check_no"}},[e._v("No")])])])]),e.showplagiarismUpload?t("div",{staticClass:"mt-6 w-full flex justify-left items-start"},[t("div",{staticClass:"w-1/2 pr-8 border-r-1 border-gray-500",class:e.accessRestrictionCheck?"disabledbutton":""},[t("p",{staticClass:"w-3/4"},[e._v("If you found the submission significantly plagiarised,")]),t("p",{staticClass:"w-3/4"},[e._v("please upload a screenshot of the evidence in .png format")]),t("div",{staticClass:"flex pt-2 items-center gap-2",staticStyle:{"max-width":"250px"}},[t("input",{key:e.fileInputKey,staticStyle:{width:"80%"},attrs:{type:"file",accept:".png,.PNG"},on:{change:e.selectedFile}}),e.plagiarismSubmissionFile?t("x-icon",{staticClass:"cursor-pointer",attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1),t("p",{staticClass:"pt-1 text-[14px]"},[e._v("Maximum file size: 5 MB")])]),t("div",{staticClass:"w-1/2 checkboxNewUi",class:e.plagiarismSubmissionFile?"disabledbutton":""},[t("div",{staticClass:"checkboxUi w-3/4"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.accessRestrictionCheck,expression:"accessRestrictionCheck"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:"access_restriction"},domProps:{value:!1,checked:Array.isArray(e.accessRestrictionCheck)?e._i(e.accessRestrictionCheck,!1)>-1:e.accessRestrictionCheck},on:{change:function(t){var s=e.accessRestrictionCheck,a=t.target,i=!!a.checked;if(Array.isArray(s)){var r=!1,l=e._i(s,r);a.checked?l<0&&(e.accessRestrictionCheck=s.concat([r])):l>-1&&(e.accessRestrictionCheck=s.slice(0,l).concat(s.slice(l+1)))}else e.accessRestrictionCheck=i}}}),t("label",{attrs:{for:"access_restriction"}},[e._v("I am unable to upload proof as I am working in an access restricted environment.")])])])]):e._e()]):e._e(),!e.isPlagiarised||e.isPlagiarised&&!e.isPlagiarizedChecked?t("div",[e._m(9),t("ul",{staticClass:"mt-2 list-disc pl-8"},[t("li",[t("strong",[e._v("1")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.poor?e.likertScale.poor:"Poor"))]),e._v(") - Demonstrates no evidence of meeting the performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("2")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.below_average?e.likertScale.below_average:"Below Average"))]),e._v(") - Demonstrates little evidence of meeting the performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("3")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.average?e.likertScale.average:"Average"))]),e._v(") - Demonstrates some evidence of meeting the performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("4")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.above_average?e.likertScale.above_average:"Above Average"))]),e._v(") - Demonstrates evidence of meeting the required performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("5")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.excellent?e.likertScale.excellent:"Excellent"))]),e._v(") - Demonstrates evidence of meeting more than the performance expectation or learning goal related to this question. ")])])]):e._e(),!e.isPlagiarised||e.isPlagiarised&&!e.isPlagiarizedChecked?t("div",{staticClass:"mt-6 p-8 border border-gray-300 lg:mr-6 md:mr-6 mr-0"},e._l(e.revieweeDetails.task_details.task_questions,(function(s,a){return t("div",{key:a,staticClass:"mb-3"},[t("p",[t("b",[e._v("Checklist Question "+e._s(a+1))])]),t("div",{staticClass:"bg-gray-100 text-gray-700 py-1 px-2 text-sm border border-gray-300 mt-1"},[e._v(e._s(s.text))]),"Scale"==s.type?t("div",{staticClass:"mt-1 text-sm"},[t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"0"},domProps:{checked:e._q(s.response,"0")},on:{change:[function(t){return e.$set(s,"response","0")},e.enableSubmitButton]}}),e._v(" 1 - "+e._s(e.likertScale.poor?e.likertScale.poor:"Poor"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"25"},domProps:{checked:e._q(s.response,"25")},on:{change:[function(t){return e.$set(s,"response","25")},e.enableSubmitButton]}}),e._v(" 2 - "+e._s(e.likertScale.below_average?e.likertScale.below_average:"Below Average"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"50"},domProps:{checked:e._q(s.response,"50")},on:{change:[function(t){return e.$set(s,"response","50")},e.enableSubmitButton]}}),e._v(" 3 - "+e._s(e.likertScale.average?e.likertScale.average:"Average"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"75"},domProps:{checked:e._q(s.response,"75")},on:{change:[function(t){return e.$set(s,"response","75")},e.enableSubmitButton]}}),e._v(" 4 - "+e._s(e.likertScale.above_average?e.likertScale.above_average:"Above Average"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"100"},domProps:{checked:e._q(s.response,"100")},on:{change:[function(t){return e.$set(s,"response","100")},e.enableSubmitButton]}}),e._v(" 5 - "+e._s(e.likertScale.excellent?e.likertScale.excellent:"Excellent"))])]):e._e(),"Yes/No"==s.type?t("div",{staticClass:"mt-1 text-sm"},[t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"100"},domProps:{checked:e._q(s.response,"100")},on:{change:[function(t){return e.$set(s,"response","100")},e.enableSubmitButton]}}),e._v(" Yes")]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"0"},domProps:{checked:e._q(s.response,"0")},on:{change:[function(t){return e.$set(s,"response","0")},e.enableSubmitButton]}}),e._v(" No")])]):e._e()])})),0):e._e()]),t("div",{staticClass:"mb-3"},[e._m(10),t("p",[e._v("Share what you liked, and what you thought could be improved. The ratings should be in line with your feedback.")]),t("div",{staticClass:"mt-1"},[e._m(11),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.reviewerComment,expression:"reviewerComment"}],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 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{maxlength:"10000",rows:"3",placeholder:""},domProps:{value:e.reviewerComment},on:{keyup:function(t){return e.checkQuestionLength(e.reviewerComment)},input:function(t){t.target.composing||(e.reviewerComment=t.target.value)}}}),t("div",[e.questionWordCount<10?t("div",{staticClass:"text-red-700"},[e._v("(Minimum 10 words required. Current word count - "+e._s(e.questionWordCount)+")")]):e._e()])])])]),t("div",{staticClass:"mt-6 mb-4 text-center"},[e.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),e.successMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.successMessage))]):e._e(),e._m(12),t("button",{staticClass:"mt-2 inline-block py-2 px-4 border border-blue-900 text-white shadow-md",class:e.isButtonEnabled&&e.minReviewWordCount?"bg-background-secondary":"bg-gray-500 cursor-not-allowed",attrs:{disabled:!(e.isButtonEnabled&&e.minReviewWordCount)},on:{click:e.submitReview}},[e._v(" Submit Review ")])])])])])],1)]):e._e(),t("GenericModal",{attrs:{"is-visible":e.modalVisible,message:e.modalMessage,"close-visible":!0,"archive-button":!0},on:{closeModal:e.cancelPlagiarism,Archive:e.confirmPlagiarism}})],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:s(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)},i=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex md:flex mt-6 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0 block"},[t("div",{staticClass:"ul-nav w-full"},[t("ul",[t("li",{staticClass:"active"},[e._v("Home")]),t("li",{staticClass:"active"},[e._v("Task")]),t("li",{staticClass:"active"},[e._v("Submit")]),t("li",{staticClass:"active"},[e._v("Peer Reviews")]),t("li",[e._v("Under Review")]),t("li",[e._v("Done!")])])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("To review the task:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v(" Review the submission for plagiarism by checking against sites like "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[e._v("plagiarismdetector.net")]),e._v(", "),t("a",{staticClass:"underline",attrs:{href:"https://check-plagiarism.com",target:"_blank"}},[e._v("check-plagiarism.com")]),e._v(", "),t("a",{staticClass:"underline",attrs:{href:"https://smallseotools.com/plagiarism-checker/",target:"_blank"}},[e._v("smallseotools.com")]),e._v(". ")]),e._v("Paste the text from the submission and click on scan for plagiarism. ")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v(" If the result shows significantly plagiarized, take a screenshot of the plagiarism and save it. then click “yes” for if the task was plagiarized and upload the screenshot you just saved. You must upload the evidence only in png format. The maximum file size is "),t("strong",[e._v("5MB")]),e._v(". If the submission is not plagiarised, mark no. ")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("To review the task:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Task Description")]),e._v(":")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("strong",[e._v("Learner's Submission:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("strong",[e._v("How to check for plagiarism - ")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ul",{staticClass:"mt-2 list-disc pl-8"},[t("li",[e._v(" You may refer to popular internet sites like "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[e._v("plagiarismdetector.net")]),e._v(", "),t("a",{staticClass:"underline",attrs:{href:"https://check-plagiarism.com",target:"_blank"}},[e._v("check-plagiarism.com")]),e._v(", "),t("a",{staticClass:"underline",attrs:{href:"https://smallseotools.com/plagiarism-checker/",target:"_blank"}},[e._v("smallseotools.com")])]),e._v(" to check for possible plagiarism. ")]),t("li",[e._v("Paste the submitted text and click on Scan for plagiarism")]),t("li",[e._v("Results will show whether the submission is plagiarized or not.")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Scoring Rubric:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[e._v("Please enter your comments in the text box below. Comments are "),t("strong",[e._v("mandatory")]),e._v(" and will be sent to your peers, so remember to give constructive feedback!")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("b",[e._v("Reviewer Comment")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("b",[e._v("Submit Review button will be disabled until you view the learner's submission.")])])}],r=(s(7658),s(7203)),l=s(306),o=s(4735),n=s(4856),c=s(6408),u=s(1920),d=s(8899),v=s(4365),m=s(9609),p=(0,r.defineComponent)({name:"LearnerSubmitTask",props:{query:{type:Object,default:()=>({})}},components:{ErrorMessage:o.Z,GenericModal:d.Z,XIcon:n.b0D,Greetings:v.Z},setup(e){const t=(0,r.ref)(!1),s=(0,r.ref)(),a=(0,r.ref)(!1),i=(0,r.ref)(""),o=(0,r.ref)(),n=(0,r.ref)(localStorage.getItem("skillId")),d=(0,r.ref)(localStorage.getItem("profId")),v=(0,r.ref)(localStorage.getItem("programId")),p=(0,r.ref)(localStorage.getItem("programName")),g=(0,r.ref)(),_=(0,r.ref)(),f=(0,r.ref)(),h=(0,r.ref)(),k=(0,r.ref)(),b=(0,r.ref)(),w=(0,r.ref)(),y=(0,r.ref)(!1),x=(0,r.ref)(!1),C=(0,r.ref)(!1),S=(0,r.ref)(!1),R=(0,r.ref)(),A=(0,r.ref)(),P=(0,r.ref)(),q=(0,r.ref)(),D=(0,r.ref)(),M=(0,r.ref)(),I=(0,r.ref)(),L=(0,r.ref)(),T=(0,r.ref)(localStorage.getItem("helpmateLink")),Z=(0,r.ref)([]),B=(0,r.ref)(!1),U=(0,r.ref)({}),E=(0,r.ref)(!1),N='<div class="px-4">\n <div class="font-bold text-left mb-3">By marking "Yes", you confirm the below:</div>\n <ul class="list-disc text-left px-6">\n <li>The submission is significantly copied from the Internet and is not referenced.</li>\n <li>The learner will receive a \'Fail\' notification with a copy marked to the respective manager and HR.</li>\n </ul>\n </div>',G=(0,r.ref)(!1),O=(0,r.ref)(0),W=(0,r.ref)(!1),z=(0,r.ref)(0),j=e=>{O.value=e.split(" ").filter((e=>""!==e)).length,G.value=O.value>=10},Y=()=>{Z.value=[]},V=async()=>{z.value+=1,P.value=null};(0,r.onBeforeMount)((async()=>{try{o.value=e.query.learner_task_id,k.value=!1;const t=await(0,m.uZ)(`/learnerTaskToReview/${o.value}`),a=t.data;if(k.value=!0,a.data.is_learner_not_allowed&&(console.log("learner on hold submit task"),c.Z.push({path:"/solidify",query:{skill_id:n.value,proficiency_id:d.value,program_id:v.value}})),a.data.errorMessage)y.value=!0,b.value=a.data.errorMessage;else if(a.data.message)localStorage.setItem("message",a.data.message),c.Z.push({path:"status",query:{isPerformReviewVisible:"yes",learnerTaskId:o.value,isProxyReview:"no",showChevron:"yes"}});else if("Need Reviewer"===a.data.learner_status||"Fail"===a.data.learner_status||"Passed"===a.data.learner_status)c.Z.push({name:"SolidifyLearnerDone",query:{learner_task_id:o.value}});else{s.value=a.data,U.value=s.value.task_details.likertScale?s.value.task_details.likertScale:{},g.value=s.value.skill,_.value=s.value.proficiency;const e=parseInt(s.value.reviewer_hold_time_in_minutes,10)/60,t=!!s.value.is_plagiarism_enabled&&s.value.is_plagiarism_enabled;L.value=s.value.url_to_upload_plag_evidence,console.log(`plagiarismEnabled ${t}`),S.value=!0===t,Number.isInteger(e)?f.value=e:f.value=e.toFixed(2)}}catch(t){if(k.value=!0,l.Z.isAxiosError(t)){const e=t;b.value=e.response?.data?.message}else b.value="There is an issue while fetching peer learner task to review, please contact helpmate.";y.value=!0}}));const H=()=>{let e=!0;s.value.task_details.task_questions.forEach(((t,s)=>{console.log(`que.response ${t.response} index ${s}`),t.response?(console.log(`inside if allQuestionAnswered before${e}`),e=e&&!0):(console.log(`inside else allQuestionAnswered before ${e}`),e=e&&!1)})),console.log(`allQuestionAnswered ${JSON.stringify(e)} `),!e||"Desktop"===s.value.task_details.task_type&&!a.value?t.value=!1:t.value=!0,console.log(`isButtonEnabled ${JSON.stringify(t)} `)},J=async()=>{try{const e={file_name:s.value.learner_submission,task_id:s.value.reviewee_id};k.value=!1;const t=await(0,m.R1)("/v1/pretAuthUrlForDownload",e);h.value=t.data.preSignedUrl,await(0,m.ng)(h.value,s.value.learner_submission),k.value=!0,a.value=!0,H()}catch(e){if(k.value=!0,l.Z.isAxiosError(e)){const t=e;b.value=t.response?.data?.message}else b.value="There is an issue while donwloading learner submission, please contact helpmate.";y.value=!0}},F=async e=>{try{const t=e.target.files[0],s=e.target.files[0].name,a=e.target.files[0].size/1024/1024;a>5?(R.value="fileSize greater than 5 MB",setTimeout((()=>{R.value=null}),6e3)):(P.value=t,q.value=s)}catch(t){P.value=null,q.value=null,console.log(t)}},X=async()=>{try{if(k.value=!1,S.value){if(console.log(`isPlagiarised.value ${w.value}`),w.value&&!W.value){if(!P.value)return k.value=!0,R.value="Please upload plagiarism evidence screenshot",void setTimeout((()=>{R.value=null}),6e3);if(M.value=q.value,console.log("ext.value",I.value),k.value=!1,console.log("evidenceFileName value",M.value),!q.value.endsWith("png")&&!q.value.endsWith("PNG"))return k.value=!0,R.value="You can upload only jpg, jpeg, and png",void setTimeout((()=>{R.value=null}),6e3);const e=await(0,u.G)("learnerStatus",s.value.reviewee_id);"Need Reviewer"!==e.data.current_status&&"Need Reviewer and Need Reviewee"!==e.data.current_status||(D.value=await(0,m.aQ)(L.value,P.value),w.value=!0)}if(void 0===w.value)return k.value=!0,R.value="Please Select Plagiarism Checkbox",void setTimeout((()=>{R.value=null}),6e3)}const e={reviewer_task_id:o.value,reviewee_task_id:s.value.reviewee_id,reviewer_comment:i.value,reviewer_response:s.value.task_details.task_questions,is_plagiarised:w.value,plagiarism_evidence:M.value},t=await(0,m.eZ)("/learnerReview",e),a=t.data;a.message&&(k.value=!1,localStorage.setItem("message",a.message),c.Z.push({path:"status",query:{isPerformReviewVisible:"yes",learnerTaskId:o.value,isProxyReview:"no",showChevron:"yes"}})),"Need Reviewer and Need Reviewee"!==a.reviewer_updated_status&&"Need Reviewee"!==a.reviewer_updated_status||(k.value=!1,c.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:o.value}}),c.Z.go(0)),"Need Reviewer"!==a.reviewer_updated_status&&"Passed"!==a.reviewer_updated_status&&"Fail"!==a.reviewer_updated_status||(k.value=!1,c.Z.push({name:"SolidifyLearnerDone",query:{learner_task_id:o.value}}))}catch(e){if(k.value=!0,l.Z.isAxiosError(e)){const t=e;b.value=t.response?.data?.message}else b.value="There is an issue while submitting peer review, please contact with helpmate.";y.value=!0}},Q=()=>{E.value=!1,w.value=void 0,B.value=!1;for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";C.value=!1,x.value=!1,H(),Y()},K=()=>{E.value=!1},$=async(e,t)=>{if(B.value=e.target.checked,console.log(`isPlagiarizedChecked ${B.value}`),w.value=t,console.log("isPlagiarised",{isPlagiarised:w.value}),!0===B.value&&!0===t){C.value=!0,E.value=!0;for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="0";x.value=!0,await H()}else if(!0===B.value&&!1===t){for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";C.value=!1,x.value=!1,await H()}else{for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";C.value=!1,w.value=void 0,x.value=!1,await H()}};return{revieweeDetails:s,isButtonEnabled:t,enableSubmitButton:H,learnerSubmissionClicked:J,reviewerComment:i,submitReview:X,skill:g,proficiency:_,reviewerHoldTime:f,preSignedUrl:h,errorResponse:b,showErrorMessage:y,helpmateLink:T,renderReady:k,questionEnable:x,isPlagiarised:w,showplagiarismUpload:C,errorMessage:R,successMessage:A,selectedFile:F,plagiarismSubmissionFile:P,plagiarismSubmission:q,isPlagiarismEnabled:S,evidenceFileName:M,checkPlagiarised:$,programId:v,programName:p,ext:I,plagUrlForUpload:L,plagiarismCheckOne:Z,isPlagiarizedChecked:B,checkOne:Y,likertScale:U,confirmPlagiarism:K,cancelPlagiarism:Q,modalVisible:E,modalMessage:N,checkQuestionLength:j,minReviewWordCount:G,questionWordCount:O,accessRestrictionCheck:W,clearFile:V,fileInputKey:z}}}),g=p,_=s(1001),f=(0,_.Z)(g,a,i,!1,null,"f40cf202",null),h=f.exports},1920:function(e,t,s){s.d(t,{G:function(){return i},d:function(){return r}});var a=s(7129);const i=async(e,t)=>{const s=await a.Z.get(`${e}/${t}`);return s},r=async(e,t)=>{const s=await a.Z.post(e,t);return s}},9609:function(e,t,s){s.d(t,{R1:function(){return i},Yo:function(){return l},aQ:function(){return c},eZ:function(){return o},ng:function(){return n},uZ:function(){return r}});var a=s(7129);const i=async(e,t)=>{const s=await a.Z.post(e,t);return s},r=async e=>{const t=await a.Z.get(e);return t},l=async e=>{const t=await a.Z.get(`learnerTaskToProxyReview/${e}`);return t},o=async(e,t)=>{const s=await a.Z.post(e,t);return s},n=async(e,t)=>{console.log(t),console.log(e);const s=await fetch(e),a=await s.blob(),i=URL.createObjectURL(a),r=document.createElement("a");r.setAttribute("download",t),r.href=i,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(i)},c=async(e,t)=>{try{const s=await fetch(`${e}`,{method:"put",body:t}),a=s;return a}catch(s){return console.error(s),s}}},9756:function(e,t,s){e.exports=s.p+"img/loadernew.gif"},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p7aQ2JmqilXrhOh5RMXjEeqNsuUEUlEMx3ILLDQKrcsixyLmIwIrAInLIfcOnz7Ivuo6QdrIOLHG/M98/nuf3zLs772d/v+f3vO9KyBoYHKKts4dHHd1WW5D7+gdlQkY9Bub+dQo/XrqLV+fb8toCqy3BMxZsYYfysoA2IFMyAfb6hzvJLdXJI6ssQd19/fxg/mbaOnrkGRNgP/pgG7r6JnlklaVoxrxNVmDTSZMKrHd4GG1nHxVd5lnb2Uvn4LB81RdLkwosq6UL6XIuUrjGPF/OIazukXzVF0uTC6y123jDowufdngeUmg2UlTBs7HxHKYhrL5NvuqLpakHFnUbyScBySEQ6aJajE1iE9kKTB5NBbBIMT7mi/T3dUj7XZFCDJlmEh/PVmDyaLKBXS1CihDlcJ8L35+7mBnLPkVyvIh0RawxxEwhmXpcYD3oq3WU6WrQ1VRzu7CG2t5Bpro1Ge7toL2zg+7n9EWmHphh/9rrxFtL/8biz9fy2sbdSF7RxlJpCsnU4wDrLY7n1AlPDgWEEhQWyNaV+zlW3kKHHJ8q9ZUkciUticxOecJMWUaG2SmZs9oG77PnWLV3Hy8r9iNdSJkY2jPAmojdYMe+1Arq5ZnuzAhi6h5SV3OXjBuV1A8MM8IAXfpqcm9oqeoZpKuhirybhaiL71J8p5LCggLU1a1i3SBt9+9w62YRN0orKSmvIP92Edm1Y/j76WzWkV+g5XbZHQrKa2kUR5aexntkagpJ1ZSQlVNGUVUDxWFebDvlhXOOngePOkUdME8WAsyRuf/cRGZ2Nqnp6Xyg2MlLu06K9j1j/NL4DLA2su0Pstw5ieTGAYbkWcN8ZYIrC98+RuDDHoGhG312AOt+voXjui7qsy+zddEnzDkRhm9oNF6ujiw/5M05fQv3Es+yZuFqFjhFERgSgdLRgRWOQUS0i9rWWIrqjBu7PEI4GxTAvx288Ukro+JWJJ9t2Mzb60+y59QlvEPiCFIeZtnmE+wOSCJNW0vziPzVvqUsJsP+IIDdysnlfs09Tjk58eZHK5EOuIt2P+dpWAaPt4fVqVGccMPeX4W/KodMkQ39hpvTf52t81wJfdgt8sugcs7P3oNTjdjfRppJ2G6DTdFoAAZ60Xoo+OG5Eoa7qgnZqWBbpRxrrSXGaTe/9M+iKM6Dvx5ORT8aGKQ+4wpf2rlxproKXz83/uhT8LgU10b5YO8ZTGS7PGGmLAPYXiW/MZREHx+USiVrbW15a9H7SEs/RnIOEU2I4XxmkmnjNh1CQw8oSQhGYefAv74KILSyGzrS2CIDM76YKObs7N0yMD1Xt9rwecFoQHQI/bRcd+WVHTHoeu4StE3BljtyrK+ZHJU7b9r64uu7nzlqk8+vy0Ppc5pVV9IJDPBkSUARvaOBIXRR3uxxCSGidXTCbFkGMHsnfrLkLyxavoI3Zs3mlXdm8dKfBax/rEc66iMA5T5dGicC9lgtZB5W8DOvfBobU1DMdyXs/wWW4car+1No6q7gkimw/mZuJXjy0y8u4ue9jzkZXXJASK/BxVfJqshUAcyDJf5F8l71XQRm6BLtXfje7xbx8p+WIS1YivTOb5G2HzV2i36i+YjIF+u/CVgLRVnVPGrtk8dCVw/yhkcG+oZ4FL93JrhprCRq8Z1th7v+CTCb0tGAKIl96ALt+UV4LXSWjwLbPvaGqa2etAtHWRxWQH7wceY55zL2aY80aRw+7oFDqZbzfu586F8sxwapivDCzi2YqO9MSYwUwI6fR1qtEAdnN6Tdp5HmLERab2fsElUlT9aP+Rlg9wk/6M4Rv3iScjVkZlzjjJMzh3If0jNQzoU1+1gZkk5qjgZ1TghfzNzAmtgy6vsEMMU6fu2uJjU3n9Rribi7nyHggUi2di0XNq3nPZ8sMjR5JMZG4+JzieiWYdpLU1Ee8OJ0Yg7Xs9MI8L2IW1A+dfV5HDl2mLnKdHTyuavzRhC2RxzZJn5wVY1tou0xT1MPLFpAuZiG5BsvQIgG40KigGeLtHYHUkgWUowAppLXjz0BeQZYPw2ZKbh/HUdkspq46Cg8b1bR3Ge8a22aeE6EJRF7TU1Ucjz+buG4JBdSM/CAmK3rmOkQx1X1daJUiURWGUvdQFsF/httmOWcTII6ncj4NBJrjTsTI900VGTgdymO8PgkQpPzKRXpO9SoJSI2AWVSCfe65LfCHTquJF1FGa5Gc9/8c+EUAzNYQFMJxxQbbXjKcVaF5BEpSqHYu1RizrDuG4F9O/Xrc/FatZKPrjWJA4CJRsReVpbCyc/WseZWl/g5WI6mFthENkAczb5xYgY/F2BD9OjvcD1SRfDt+zSYbH+G5qNdV0xKZCwRZQ00P/kLxZTLMoH9Lz+nDJuOmlxg1heYZmtSgT3oG8SpqglPXbNZ/o+4RmWXJe0sk6dJBWaV+bICm2ayAptmsgKbZpoY2PtWYJaoGe9NAOx1AUxbbXzjY5XlaMbcjeMD+9I9nHdXHuLdT77iV59abQme+fEBVth709P35NHLY2At7V3cLKzkWo7Wagtxal45dQ9bGRl58j+Dx8Csmh6yAptWgv8CbZkYUSkpBpcAAAAASUVORK5CYII="}}]);
|
|
1
|
+
"use strict";(("undefined"!==typeof self?self:this)["webpackChunksolidify"]=("undefined"!==typeof self?self:this)["webpackChunksolidify"]||[]).push([[896],{4735:function(e,t,s){s.d(t,{Z:function(){return u}});var a=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:s(6540)}})])])])])])},i=[],r=s(7203),l=(0,r.defineComponent)({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=(0,r.ref)(""),s=(0,r.ref)(localStorage.getItem("helpmateLink"));return(0,r.onBeforeMount)((async()=>{t.value=e.errorMessage})),{errorMsg:t,helpmateLink:s}}}),o=l,n=s(1001),c=(0,n.Z)(o,a,i,!1,null,null,null),u=c.exports},8899:function(e,t,s){s.d(t,{Z:function(){return d}});var a=function(){var e=this,t=e._self._c;return e.isVisible?t("main",{staticClass:"modal-wrapper relative z-50 modal-filter fixed inset-0 w-full h-screen flex mt-2 justify-center bg-semi-75 h-fit"},[t("transition",{attrs:{name:"modal-fade"}},[t("div",{staticClass:"modal-overlay",on:{click:function(t){return e.$emit("close-modal")}}},[t("div",{staticClass:"modal relative",on:{click:function(e){e.stopPropagation()}}},[e.closeVisible?t("div",{staticClass:"absolute right-0 pr-4 top-5 cursor-pointer",on:{click:function(t){return e.$emit("closeModal")}}},[t("x-icon",{attrs:{size:"1.5x"}})],1):e._e(),t("div",{staticClass:"bg-white"},[t("div",{staticClass:"text-gray-500 px-4",domProps:{innerHTML:e._s(e.message)}}),t("div",{staticClass:"pb-6 pt-4 bg-white"},[e.reReviewButton?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.applyReview(e.reReviewButtonLink)}}},[e._v(" Apply Re-Review ")]):e._e(),e.closeVisible?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75 mr-2",staticStyle:{"background-color":"grey"},on:{click:function(t){return e.$emit("closeModal")}}},[e._v(" Cancel ")]):e._e(),e.archiveButton?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.$emit("Archive")}}},[e._v("Confirm")]):e._e(),e.linkButton?t("button",{staticClass:"px-4 py-2 text-white shadow-md bg-background-secondary focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:function(t){return e.navigate(e.link)}}},[e._v(e._s(e.linkButton))]):e._e()])])])])])],1):e._e()},i=[],r=(s(7658),s(4856)),l=s(6408),o={components:{XIcon:r.b0D},name:"Generic",props:{isVisible:{type:Boolean,default:!1,required:!0},message:{type:String,default:"",required:!0},closeVisible:{type:Boolean,default:!1,required:!1},reReviewButton:{type:Boolean,default:!1,required:!1},archiveButton:{type:Boolean,default:!1,required:!1},reReviewButtonLink:{type:String,default:"",required:!1},link:{type:String,default:"",required:!1},linkButton:{type:String,default:"",required:!1}},setup(){const e=async e=>{l.Z.push({path:"/solidify/rereview",query:{learner_task_id:e}})},t=e=>{window.location.href=e};return{applyReview:e,navigate:t}}},n=o,c=s(1001),u=(0,c.Z)(n,a,i,!1,null,null,null),d=u.exports},4365:function(e,t,s){s.d(t,{Z:function(){return u}});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-6 flex flex-col md:flex-row justify-between items-center"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2 md:order-1 order-2 w-full"},[t("span",[e._v(e._s(e.proficiency)+" - ")]),e._v(e._s(e.skill)+" ")]),t("div",{staticClass:"my-2 md:order-2 order-1 w-full"},[t("div",{staticClass:"text-blue-900 md:text-lg text-sm text-right"},[e._v("Hi, "+e._s(e.username))])])])},i=[],r=s(7203),l=(0,r.defineComponent)({name:"Greetings",props:{proficiency:{type:String,default:""},skill:{type:String,default:""},program:{type:String,default:""}},setup(){const e=(0,r.ref)("");return(0,r.onBeforeMount)((async()=>{const t=localStorage.getItem("userName")||"Learner";e.value=t.split(",").reverse().join(" ")})),{username:e}}}),o=l,n=s(1001),c=(0,n.Z)(o,a,i,!1,null,null,null),u=c.exports},4228:function(e,t,s){s.r(t),s.d(t,{default:function(){return h}});var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[e.revieweeDetails?t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[t("Greetings",{attrs:{program:e.programId,proficiency:e.proficiency,skill:e.skill}}),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:"bloc text-2xl text-center text-background-secondary"},[e._v(e._s(e.revieweeDetails.reviewee_count_string))]),t("div",{staticClass:"block"},[t("div",{staticClass:"text-gray-600"},[t("div",{staticClass:"mt-4 p-8 border border-gray-300 lg:mr-6 md:mr-6 mr-0"},["infinity"===e.programId?t("div",{},[t("p",[e._v("Welcome to the review stage of Solidify. You must complete 3 peer reviews in order to pass Solidify.")]),t("p",{staticClass:"pt-2"},[e._v(" A single review should take about 15 minutes, but if needed you can leave this page and come back within "+e._s(e.reviewerHoldTime)+" hours. Remember, other learners are waiting on you to complete their own Solidify, so please do the review as soon as possible. If you have not done this review within "+e._s(e.reviewerHoldTime)+" hours, it could be assigned to someone else and you will need to do an additional peer review. ")]),"Desktop"==e.revieweeDetails.task_details.task_type?t("p",{staticClass:"pt-2"},[e._v("You must be on a desktop in order to download the task. The review will not work on a mobile device or tablet.")]):e._e(),e._m(1),e.isPlagiarismEnabled?t("ol",{staticClass:"list-decimal pl-8 mt-1"},[t("li",[e._v("Read the Task Description.")]),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v('Read the "'),t("strong",[e._v("Learner task submission")]),e._v('".')]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Click the “"),t("strong",[e._v("Download Learner Task submission")]),e._v("” button to open the learner’s task.")]):e._e(),e._m(2),e._m(3),t("li",[e._v(" Remember, plagiarism is an integrity violation. Citing works is perfectly acceptable, and you will need to use some judgment when marking a task as plagiarized. When you mark a task as plagiarized you are saying it was directly copied from other sources, the task is an integrity violation, and it will be failed. ")]),t("li",[e._v("If the task is not plagiarized, review and score the task by referring to the scoring rubric")]),t("li",[e._v("Share your feedback in the reviewer comment box. Be specific about what you liked and what could be improved. These comments will be seen by whoever submitted the task!")]),t("li",[e._v("Do the whole process again until you have finished all your reviews!")])]):e._e(),e.isPlagiarismEnabled?e._e():t("ol",{staticClass:"list-decimal pl-8 mt-1"},[t("li",[e._v("Read the Task Description.")]),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Read the learner’s submission.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Click the “"),t("strong",[e._v("Download Learner Task submission")]),e._v("” button to open the learner’s task.")]):e._e(),t("li",[e._v("Review and score the task by referring to the scoring rubric.")]),t("li",[e._v("Share your feedback in the reviewer comment box. Be specific about what you liked and what could be improved. These comments will be seen by whoever submitted the task!")]),t("li",[e._v("Do the whole process again until you have finished all your reviews!")])])]):e._e(),"infinity"!==e.programId?t("div",{},[t("p",[e._v("Welcome to the review stage of Solidify. You must complete "+e._s(e.revieweeDetails.mandatory_reviews)+" reviews to pass Solidify.")]),t("p",{staticClass:"pt-2"},[e._v(" A single review should take about 15 minutes, but if needed you can leave this page and come back. Remember, other learners are waiting on you to complete their own Solidify, so please do the review as soon as possible. If you have not done this review "),t("strong",[e._v("within "+e._s(e.reviewerHoldTime)+" hours")]),e._v(", it could be assigned to someone else and you will need to review a different task. ")]),"Desktop"==e.revieweeDetails.task_details.task_type?t("p",{staticClass:"pt-2"},[e._v("You must be on a desktop to download the task. This review will not work on a mobile device or tablet.")]):e._e(),e._m(4),t("ol",{staticClass:"list-decimal pl-8 mt-1"},[t("li",[e._v("Read the Task Description.")]),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Read the learner's "),t("strong",[e._v("submission")]),e._v(".")]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Review and score the task by referring to the scoring rubric.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Click the “"),t("strong",[e._v("Download Learner Task submission")]),e._v("” button to open the learner’s task.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v("Review and score the task by referring to the scoring rubric.")]):e._e(),"Desktop"==e.revieweeDetails.task_details.task_type?t("li",[e._v(" Share your feedback in the reviewer comment box. Be specific about what you liked and what could be improved. These comments will be seen by whoever submitted the task! ")]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("li",[e._v(" Share your feedback in the reviewer comment box. Be specific about what you liked and what could be improved. These comments will be seen by whoever submitted the task! ")]):e._e(),t("li",[e._v("Do the whole process again until you have finished all your reviews!")])])]):e._e(),t("div",{staticClass:"mt-8"},[t("p",[t("strong",[e._v("Task Name")]),e._v(": "+e._s(e.revieweeDetails.task_details.task_name))]),e._m(5),t("p",{staticClass:"pt-2 rich-text-formatter",domProps:{innerHTML:e._s(e.revieweeDetails.task_details.description)}})]),"Desktop"==e.revieweeDetails.task_details.task_type?t("div",{staticClass:"text-left"},[t("button",{staticClass:"inline-block mt-2 py-2 px-4 bg-blue-900 text-white shadow-md hover:bg-blue-900 focus:outline-none focus:ring-2 focus:ring-blue-900 focus:ring-opacity-75",on:{click:e.learnerSubmissionClicked}},[e._v(" Download Learner Task Submission ")])]):e._e(),"Mobile"==e.revieweeDetails.task_details.task_type?t("div",{staticClass:"mt-2"},[e._m(6),t("p",[e._v(e._s(e.revieweeDetails.learner_submission))])]):e._e(),t("div",{staticClass:"mt-8"},["infinity"===e.programId?t("p",[e._v("Please do not include any self-identifying information.")]):e._e(),e.isPlagiarismEnabled?t("div",{staticClass:"border border-background-secondary p-4 mt-2"},[e._m(7),e._m(8),t("p",{staticClass:"pt-2"},[e._v("Did you find the submission plagiarised?")]),t("div",{staticClass:"mt-1 text-sm"},[t("div",{staticClass:"checkboxNewUi"},[t("div",{staticClass:"checkboxUi"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismCheckOne,expression:"plagiarismCheckOne"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:"plagriarism_check_yes"},domProps:{value:!0,checked:Array.isArray(e.plagiarismCheckOne)?e._i(e.plagiarismCheckOne,!0)>-1:e.plagiarismCheckOne},on:{change:[function(t){var s=e.plagiarismCheckOne,a=t.target,i=!!a.checked;if(Array.isArray(s)){var r=!0,l=e._i(s,r);a.checked?l<0&&(e.plagiarismCheckOne=s.concat([r])):l>-1&&(e.plagiarismCheckOne=s.slice(0,l).concat(s.slice(l+1)))}else e.plagiarismCheckOne=i},function(t){return e.checkPlagiarised(t,!0)}],click:e.checkOne}}),t("label",{attrs:{for:"plagriarism_check_yes"}},[e._v("Yes")])]),t("div",{staticClass:"checkboxUi"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.plagiarismCheckOne,expression:"plagiarismCheckOne"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:"plagriarism_check_no"},domProps:{value:!1,checked:Array.isArray(e.plagiarismCheckOne)?e._i(e.plagiarismCheckOne,!1)>-1:e.plagiarismCheckOne},on:{change:[function(t){var s=e.plagiarismCheckOne,a=t.target,i=!!a.checked;if(Array.isArray(s)){var r=!1,l=e._i(s,r);a.checked?l<0&&(e.plagiarismCheckOne=s.concat([r])):l>-1&&(e.plagiarismCheckOne=s.slice(0,l).concat(s.slice(l+1)))}else e.plagiarismCheckOne=i},function(t){return e.checkPlagiarised(t,!1)}],click:e.checkOne}}),t("label",{attrs:{for:"plagriarism_check_no"}},[e._v("No")])])])]),e.showplagiarismUpload?t("div",{staticClass:"mt-6 w-full flex justify-left items-start"},[t("div",{staticClass:"w-1/2 pr-8 border-r-1 border-gray-500",class:e.accessRestrictionCheck?"disabledbutton":""},[t("p",{staticClass:"w-3/4"},[e._v("If you found the submission significantly plagiarised,")]),t("p",{staticClass:"w-3/4"},[e._v("please upload a screenshot of the evidence in .png format")]),t("div",{staticClass:"flex pt-2 items-center gap-2",staticStyle:{"max-width":"250px"}},[t("input",{key:e.fileInputKey,staticStyle:{width:"80%"},attrs:{type:"file",accept:".png,.PNG"},on:{change:e.selectedFile}}),e.plagiarismSubmissionFile?t("x-icon",{staticClass:"cursor-pointer",attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1),t("p",{staticClass:"pt-1 text-[14px]"},[e._v("Maximum file size: 5 MB")])]),t("div",{staticClass:"w-1/2 checkboxNewUi",class:e.plagiarismSubmissionFile?"disabledbutton":""},[t("div",{staticClass:"checkboxUi w-3/4"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.accessRestrictionCheck,expression:"accessRestrictionCheck"}],staticClass:"cursor-pointer",attrs:{type:"checkbox",id:"access_restriction"},domProps:{value:!1,checked:Array.isArray(e.accessRestrictionCheck)?e._i(e.accessRestrictionCheck,!1)>-1:e.accessRestrictionCheck},on:{change:function(t){var s=e.accessRestrictionCheck,a=t.target,i=!!a.checked;if(Array.isArray(s)){var r=!1,l=e._i(s,r);a.checked?l<0&&(e.accessRestrictionCheck=s.concat([r])):l>-1&&(e.accessRestrictionCheck=s.slice(0,l).concat(s.slice(l+1)))}else e.accessRestrictionCheck=i}}}),t("label",{attrs:{for:"access_restriction"}},[e._v("I am unable to upload proof as I am working in an access restricted environment.")])])])]):e._e()]):e._e(),!e.isPlagiarised||e.isPlagiarised&&!e.isPlagiarizedChecked?t("div",[e._m(9),t("ul",{staticClass:"mt-2 list-disc pl-8"},[t("li",[t("strong",[e._v("1")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.poor?e.likertScale.poor:"Poor"))]),e._v(") - Demonstrates no evidence of meeting the performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("2")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.below_average?e.likertScale.below_average:"Below Average"))]),e._v(") - Demonstrates little evidence of meeting the performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("3")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.average?e.likertScale.average:"Average"))]),e._v(") - Demonstrates some evidence of meeting the performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("4")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.above_average?e.likertScale.above_average:"Above Average"))]),e._v(") - Demonstrates evidence of meeting the required performance expectation or learning goal related to this question. ")]),t("li",[t("strong",[e._v("5")]),e._v(" ("),t("strong",[e._v(e._s(e.likertScale.excellent?e.likertScale.excellent:"Excellent"))]),e._v(") - Demonstrates evidence of meeting more than the performance expectation or learning goal related to this question. ")])])]):e._e(),!e.isPlagiarised||e.isPlagiarised&&!e.isPlagiarizedChecked?t("div",{staticClass:"mt-6 p-8 border border-gray-300 lg:mr-6 md:mr-6 mr-0"},e._l(e.revieweeDetails.task_details.task_questions,(function(s,a){return t("div",{key:a,staticClass:"mb-3"},[t("p",[t("b",[e._v("Checklist Question "+e._s(a+1))])]),t("div",{staticClass:"bg-gray-100 text-gray-700 py-1 px-2 text-sm border border-gray-300 mt-1"},[e._v(e._s(s.text))]),"Scale"==s.type?t("div",{staticClass:"mt-1 text-sm"},[t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"0"},domProps:{checked:e._q(s.response,"0")},on:{change:[function(t){return e.$set(s,"response","0")},e.enableSubmitButton]}}),e._v(" 1 - "+e._s(e.likertScale.poor?e.likertScale.poor:"Poor"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"25"},domProps:{checked:e._q(s.response,"25")},on:{change:[function(t){return e.$set(s,"response","25")},e.enableSubmitButton]}}),e._v(" 2 - "+e._s(e.likertScale.below_average?e.likertScale.below_average:"Below Average"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"50"},domProps:{checked:e._q(s.response,"50")},on:{change:[function(t){return e.$set(s,"response","50")},e.enableSubmitButton]}}),e._v(" 3 - "+e._s(e.likertScale.average?e.likertScale.average:"Average"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"75"},domProps:{checked:e._q(s.response,"75")},on:{change:[function(t){return e.$set(s,"response","75")},e.enableSubmitButton]}}),e._v(" 4 - "+e._s(e.likertScale.above_average?e.likertScale.above_average:"Above Average"))]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"100"},domProps:{checked:e._q(s.response,"100")},on:{change:[function(t){return e.$set(s,"response","100")},e.enableSubmitButton]}}),e._v(" 5 - "+e._s(e.likertScale.excellent?e.likertScale.excellent:"Excellent"))])]):e._e(),"Yes/No"==s.type?t("div",{staticClass:"mt-1 text-sm"},[t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"100"},domProps:{checked:e._q(s.response,"100")},on:{change:[function(t){return e.$set(s,"response","100")},e.enableSubmitButton]}}),e._v(" Yes")]),t("label",{staticClass:"lg:inline md:inline block lg:p-0 md:p-0 p-1 lg:mr-2 md:mr-2 mr-0"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.response,expression:"task.response"}],attrs:{disabled:!0===e.questionEnable,type:"radio",name:"q"+a,value:"0"},domProps:{checked:e._q(s.response,"0")},on:{change:[function(t){return e.$set(s,"response","0")},e.enableSubmitButton]}}),e._v(" No")])]):e._e()])})),0):e._e()]),t("div",{staticClass:"mb-3"},[e._m(10),t("p",[e._v("Share what you liked, and what you thought could be improved. The ratings should be in line with your feedback.")]),t("div",{staticClass:"mt-1"},[e._m(11),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.reviewerComment,expression:"reviewerComment"}],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 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{maxlength:"10000",rows:"3",placeholder:""},domProps:{value:e.reviewerComment},on:{keyup:function(t){return e.checkQuestionLength(e.reviewerComment)},input:function(t){t.target.composing||(e.reviewerComment=t.target.value)}}}),t("div",[e.questionWordCount<10?t("div",{staticClass:"text-red-700"},[e._v("(Minimum 10 words required. Current word count - "+e._s(e.questionWordCount)+")")]):e._e()])])])]),t("div",{staticClass:"mt-6 mb-4 text-center"},[e.errorMessage?t("div",{staticClass:"text-red-700"},[e._v(e._s(e.errorMessage))]):e._e(),e.successMessage?t("div",{staticClass:"text-green-700"},[e._v(e._s(e.successMessage))]):e._e(),e._m(12),t("button",{staticClass:"mt-2 inline-block py-2 px-4 border border-blue-900 text-white shadow-md",class:e.isButtonEnabled&&e.minReviewWordCount?"bg-background-secondary":"bg-gray-500 cursor-not-allowed",attrs:{disabled:!(e.isButtonEnabled&&e.minReviewWordCount)},on:{click:e.submitReview}},[e._v(" Submit Review ")])])])])])],1)]):e._e(),t("GenericModal",{attrs:{"is-visible":e.modalVisible,message:e.modalMessage,"close-visible":!0,"archive-button":!0},on:{closeModal:e.cancelPlagiarism,Archive:e.confirmPlagiarism}})],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:s(9756),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)},i=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex md:flex mt-6 mx-6 lg:pl-16 md:pl-16 lg:pr-24 md:pr-24 px-0 block"},[t("div",{staticClass:"ul-nav w-full"},[t("ul",[t("li",{staticClass:"active"},[e._v("Home")]),t("li",{staticClass:"active"},[e._v("Task")]),t("li",{staticClass:"active"},[e._v("Submit")]),t("li",{staticClass:"active"},[e._v("Peer Reviews")]),t("li",[e._v("Under Review")]),t("li",[e._v("Done!")])])])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("To review the task:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v(" Review the submission for plagiarism by checking against sites like "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[e._v("plagiarismdetector.net")]),e._v(", "),t("a",{staticClass:"underline",attrs:{href:"https://check-plagiarism.com",target:"_blank"}},[e._v("check-plagiarism.com")]),e._v(", "),t("a",{staticClass:"underline",attrs:{href:"https://smallseotools.com/plagiarism-checker/",target:"_blank"}},[e._v("smallseotools.com")]),e._v(". ")]),e._v("Paste the text from the submission and click on scan for plagiarism. ")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("li",[e._v(" If the result shows significantly plagiarized, take a screenshot of the plagiarism and save it. then click “yes” for if the task was plagiarized and upload the screenshot you just saved. You must upload the evidence only in png format. The maximum file size is "),t("strong",[e._v("5MB")]),e._v(". If the submission is not plagiarised, mark no. ")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("To review the task:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Task Description")]),e._v(":")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("strong",[e._v("Learner's Submission:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("strong",[e._v("How to check for plagiarism - ")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("ul",{staticClass:"mt-2 list-disc pl-8"},[t("li",[e._v(" You may refer to popular internet sites like "),t("strong",[t("a",{staticClass:"underline",attrs:{href:"https://plagiarismdetector.net",target:"_blank"}},[e._v("plagiarismdetector.net")]),e._v(", "),t("a",{staticClass:"underline",attrs:{href:"https://check-plagiarism.com",target:"_blank"}},[e._v("check-plagiarism.com")]),e._v(", "),t("a",{staticClass:"underline",attrs:{href:"https://smallseotools.com/plagiarism-checker/",target:"_blank"}},[e._v("smallseotools.com")])]),e._v(" to check for possible plagiarism. ")]),t("li",[e._v("Paste the submitted text and click on Scan for plagiarism")]),t("li",[e._v("Results will show whether the submission is plagiarized or not.")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Scoring Rubric:")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[e._v("Please enter your comments in the text box below. Comments are "),t("strong",[e._v("mandatory")]),e._v(" and will be sent to your peers, so remember to give constructive feedback!")])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("b",[e._v("Reviewer Comment")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",[t("b",[e._v("Submit Review button will be disabled until you view the learner's submission.")])])}],r=(s(7658),s(7203)),l=s(306),o=s(4735),n=s(4856),c=s(6408),u=s(1920),d=s(8899),v=s(4365),m=s(9609),p=(0,r.defineComponent)({name:"LearnerSubmitTask",props:{query:{type:Object,default:()=>({})}},components:{ErrorMessage:o.Z,GenericModal:d.Z,XIcon:n.b0D,Greetings:v.Z},setup(e){const t=(0,r.ref)(!1),s=(0,r.ref)(),a=(0,r.ref)(!1),i=(0,r.ref)(""),o=(0,r.ref)(),n=(0,r.ref)(localStorage.getItem("skillId")),d=(0,r.ref)(localStorage.getItem("profId")),v=(0,r.ref)(localStorage.getItem("programId")),p=(0,r.ref)(localStorage.getItem("programName")),g=(0,r.ref)(),_=(0,r.ref)(),f=(0,r.ref)(),h=(0,r.ref)(),k=(0,r.ref)(),b=(0,r.ref)(),w=(0,r.ref)(),y=(0,r.ref)(!1),x=(0,r.ref)(!1),C=(0,r.ref)(!1),S=(0,r.ref)(!1),R=(0,r.ref)(),A=(0,r.ref)(),P=(0,r.ref)(),q=(0,r.ref)(),D=(0,r.ref)(),L=(0,r.ref)(),M=(0,r.ref)(),I=(0,r.ref)(),T=(0,r.ref)(localStorage.getItem("helpmateLink")),Z=(0,r.ref)([]),B=(0,r.ref)(!1),U=(0,r.ref)({}),E=(0,r.ref)(!1),N='<div class="px-4">\n <div class="font-bold text-left mb-3">By marking "Yes", you confirm the below:</div>\n <ul class="list-disc text-left px-6">\n <li>The submission is significantly copied from the Internet and is not referenced.</li>\n <li>The learner will receive a \'Fail\' notification with a copy marked to the respective manager and HR.</li>\n </ul>\n </div>',G=(0,r.ref)(!1),O=(0,r.ref)(0),W=(0,r.ref)(!1),z=(0,r.ref)(0),j=e=>{O.value=e.split(" ").filter((e=>""!==e)).length,G.value=O.value>=10},Y=()=>{Z.value=[]},V=async()=>{z.value+=1,P.value=null};(0,r.onBeforeMount)((async()=>{try{o.value=e.query.learner_task_id,k.value=!1;const t=await(0,m.uZ)(`/learnerTaskToReview/${o.value}`),a=t.data;if(k.value=!0,a.data.is_learner_not_allowed&&(console.log("learner on hold submit task"),c.Z.push({path:"/solidify",query:{skill_id:n.value,proficiency_id:d.value,program_id:v.value}})),a.data.errorMessage)y.value=!0,b.value=a.data.errorMessage;else if(a.data.message)localStorage.setItem("message",a.data.message),c.Z.push({name:"SolidifyLearnerStatus",query:{isPerformReviewVisible:"yes",learnerTaskId:o.value,isProxyReview:"no",showChevron:"yes"}});else if("Need Reviewer"===a.data.learner_status||"Fail"===a.data.learner_status||"Passed"===a.data.learner_status)c.Z.push({name:"SolidifyLearnerDone",query:{learner_task_id:o.value}});else{s.value=a.data,U.value=s.value.task_details.likertScale?s.value.task_details.likertScale:{},g.value=s.value.skill,_.value=s.value.proficiency;const e=parseInt(s.value.reviewer_hold_time_in_minutes,10)/60,t=!!s.value.is_plagiarism_enabled&&s.value.is_plagiarism_enabled;I.value=s.value.url_to_upload_plag_evidence,console.log(`plagiarismEnabled ${t}`),S.value=!0===t,Number.isInteger(e)?f.value=e:f.value=e.toFixed(2)}}catch(t){if(k.value=!0,l.Z.isAxiosError(t)){const e=t;b.value=e.response?.data?.message}else b.value="There is an issue while fetching peer learner task to review, please contact helpmate.";y.value=!0}}));const H=()=>{let e=!0;s.value.task_details.task_questions.forEach(((t,s)=>{console.log(`que.response ${t.response} index ${s}`),t.response?(console.log(`inside if allQuestionAnswered before${e}`),e=e&&!0):(console.log(`inside else allQuestionAnswered before ${e}`),e=e&&!1)})),console.log(`allQuestionAnswered ${JSON.stringify(e)} `),!e||"Desktop"===s.value.task_details.task_type&&!a.value?t.value=!1:t.value=!0,console.log(`isButtonEnabled ${JSON.stringify(t)} `)},J=async()=>{try{const e={file_name:s.value.learner_submission,task_id:s.value.reviewee_id};k.value=!1;const t=await(0,m.R1)("/v1/pretAuthUrlForDownload",e);h.value=t.data.preSignedUrl,await(0,m.ng)(h.value,s.value.learner_submission),k.value=!0,a.value=!0,H()}catch(e){if(k.value=!0,l.Z.isAxiosError(e)){const t=e;b.value=t.response?.data?.message}else b.value="There is an issue while donwloading learner submission, please contact helpmate.";y.value=!0}},F=async e=>{try{const t=e.target.files[0],s=e.target.files[0].name,a=e.target.files[0].size/1024/1024;a>5?(R.value="fileSize greater than 5 MB",setTimeout((()=>{R.value=null}),6e3)):(P.value=t,q.value=s)}catch(t){P.value=null,q.value=null,console.log(t)}},X=async()=>{try{if(k.value=!1,S.value){if(console.log(`isPlagiarised.value ${w.value}`),w.value&&!W.value){if(!P.value)return k.value=!0,R.value="Please upload plagiarism evidence screenshot",void setTimeout((()=>{R.value=null}),6e3);if(L.value=q.value,console.log("ext.value",M.value),k.value=!1,console.log("evidenceFileName value",L.value),!q.value.endsWith("png")&&!q.value.endsWith("PNG"))return k.value=!0,R.value="You can upload only jpg, jpeg, and png",void setTimeout((()=>{R.value=null}),6e3);const e=await(0,u.G)("learnerStatus",s.value.reviewee_id);"Need Reviewer"!==e.data.current_status&&"Need Reviewer and Need Reviewee"!==e.data.current_status||(D.value=await(0,m.aQ)(I.value,P.value),w.value=!0)}if(void 0===w.value)return k.value=!0,R.value="Please Select Plagiarism Checkbox",void setTimeout((()=>{R.value=null}),6e3)}const e={reviewer_task_id:o.value,reviewee_task_id:s.value.reviewee_id,reviewer_comment:i.value,reviewer_response:s.value.task_details.task_questions,is_plagiarised:w.value,plagiarism_evidence:L.value},t=await(0,m.eZ)("/learnerReview",e),a=t.data;a.message&&(k.value=!1,localStorage.setItem("message",a.message),c.Z.push({name:"SolidifyLearnerStatus",query:{isPerformReviewVisible:"yes",learnerTaskId:o.value,isProxyReview:"no",showChevron:"yes"}})),"Need Reviewer and Need Reviewee"!==a.reviewer_updated_status&&"Need Reviewee"!==a.reviewer_updated_status||(k.value=!1,c.Z.push({name:"SolidifyLearnerPeerReview",query:{learner_task_id:o.value}}),c.Z.go(0)),"Need Reviewer"!==a.reviewer_updated_status&&"Passed"!==a.reviewer_updated_status&&"Fail"!==a.reviewer_updated_status||(k.value=!1,c.Z.push({name:"SolidifyLearnerDone",query:{learner_task_id:o.value}}))}catch(e){if(k.value=!0,l.Z.isAxiosError(e)){const t=e;b.value=t.response?.data?.message}else b.value="There is an issue while submitting peer review, please contact with helpmate.";y.value=!0}},Q=()=>{E.value=!1,w.value=void 0,B.value=!1;for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";C.value=!1,x.value=!1,H(),Y()},K=()=>{E.value=!1},$=async(e,t)=>{if(B.value=e.target.checked,console.log(`isPlagiarizedChecked ${B.value}`),w.value=t,console.log("isPlagiarised",{isPlagiarised:w.value}),!0===B.value&&!0===t){C.value=!0,E.value=!0;for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="0";x.value=!0,await H()}else if(!0===B.value&&!1===t){for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";C.value=!1,x.value=!1,await H()}else{for(let e=0;e<s.value.task_details.task_questions.length;e+=1)s.value.task_details.task_questions[e].response="";C.value=!1,w.value=void 0,x.value=!1,await H()}};return{revieweeDetails:s,isButtonEnabled:t,enableSubmitButton:H,learnerSubmissionClicked:J,reviewerComment:i,submitReview:X,skill:g,proficiency:_,reviewerHoldTime:f,preSignedUrl:h,errorResponse:b,showErrorMessage:y,helpmateLink:T,renderReady:k,questionEnable:x,isPlagiarised:w,showplagiarismUpload:C,errorMessage:R,successMessage:A,selectedFile:F,plagiarismSubmissionFile:P,plagiarismSubmission:q,isPlagiarismEnabled:S,evidenceFileName:L,checkPlagiarised:$,programId:v,programName:p,ext:M,plagUrlForUpload:I,plagiarismCheckOne:Z,isPlagiarizedChecked:B,checkOne:Y,likertScale:U,confirmPlagiarism:K,cancelPlagiarism:Q,modalVisible:E,modalMessage:N,checkQuestionLength:j,minReviewWordCount:G,questionWordCount:O,accessRestrictionCheck:W,clearFile:V,fileInputKey:z}}}),g=p,_=s(1001),f=(0,_.Z)(g,a,i,!1,null,"66013bc9",null),h=f.exports},1920:function(e,t,s){s.d(t,{G:function(){return i},d:function(){return r}});var a=s(7129);const i=async(e,t)=>{const s=await a.Z.get(`${e}/${t}`);return s},r=async(e,t)=>{const s=await a.Z.post(e,t);return s}},9609:function(e,t,s){s.d(t,{R1:function(){return i},Yo:function(){return l},aQ:function(){return c},eZ:function(){return o},ng:function(){return n},uZ:function(){return r}});var a=s(7129);const i=async(e,t)=>{const s=await a.Z.post(e,t);return s},r=async e=>{const t=await a.Z.get(e);return t},l=async e=>{const t=await a.Z.get(`learnerTaskToProxyReview/${e}`);return t},o=async(e,t)=>{const s=await a.Z.post(e,t);return s},n=async(e,t)=>{console.log(t),console.log(e);const s=await fetch(e),a=await s.blob(),i=URL.createObjectURL(a),r=document.createElement("a");r.setAttribute("download",t),r.href=i,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(i)},c=async(e,t)=>{try{const s=await fetch(`${e}`,{method:"put",body:t}),a=s;return a}catch(s){return console.error(s),s}}},9756:function(e,t,s){e.exports=s.p+"img/loadernew.gif"},6540:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAjCAYAAABxaO90AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAezSURBVGhD7Zp5UJTnHcffNNOpSfpnM9OZZtJM24nTyaTW2tbGc5rUjJ1p7aQ2JmqilXrhOh5RMXjEeqNsuUEUlEMx3ILLDQKrcsixyLmIwIrAInLIfcOnz7Ivuo6QdrIOLHG/M98/nuf3zLs772d/v+f3vO9KyBoYHKKts4dHHd1WW5D7+gdlQkY9Bub+dQo/XrqLV+fb8toCqy3BMxZsYYfysoA2IFMyAfb6hzvJLdXJI6ssQd19/fxg/mbaOnrkGRNgP/pgG7r6JnlklaVoxrxNVmDTSZMKrHd4GG1nHxVd5lnb2Uvn4LB81RdLkwosq6UL6XIuUrjGPF/OIazukXzVF0uTC6y123jDowufdngeUmg2UlTBs7HxHKYhrL5NvuqLpakHFnUbyScBySEQ6aJajE1iE9kKTB5NBbBIMT7mi/T3dUj7XZFCDJlmEh/PVmDyaLKBXS1CihDlcJ8L35+7mBnLPkVyvIh0RawxxEwhmXpcYD3oq3WU6WrQ1VRzu7CG2t5Bpro1Ge7toL2zg+7n9EWmHphh/9rrxFtL/8biz9fy2sbdSF7RxlJpCsnU4wDrLY7n1AlPDgWEEhQWyNaV+zlW3kKHHJ8q9ZUkciUticxOecJMWUaG2SmZs9oG77PnWLV3Hy8r9iNdSJkY2jPAmojdYMe+1Arq5ZnuzAhi6h5SV3OXjBuV1A8MM8IAXfpqcm9oqeoZpKuhirybhaiL71J8p5LCggLU1a1i3SBt9+9w62YRN0orKSmvIP92Edm1Y/j76WzWkV+g5XbZHQrKa2kUR5aexntkagpJ1ZSQlVNGUVUDxWFebDvlhXOOngePOkUdME8WAsyRuf/cRGZ2Nqnp6Xyg2MlLu06K9j1j/NL4DLA2su0Pstw5ieTGAYbkWcN8ZYIrC98+RuDDHoGhG312AOt+voXjui7qsy+zddEnzDkRhm9oNF6ujiw/5M05fQv3Es+yZuFqFjhFERgSgdLRgRWOQUS0i9rWWIrqjBu7PEI4GxTAvx288Ukro+JWJJ9t2Mzb60+y59QlvEPiCFIeZtnmE+wOSCJNW0vziPzVvqUsJsP+IIDdysnlfs09Tjk58eZHK5EOuIt2P+dpWAaPt4fVqVGccMPeX4W/KodMkQ39hpvTf52t81wJfdgt8sugcs7P3oNTjdjfRppJ2G6DTdFoAAZ60Xoo+OG5Eoa7qgnZqWBbpRxrrSXGaTe/9M+iKM6Dvx5ORT8aGKQ+4wpf2rlxproKXz83/uhT8LgU10b5YO8ZTGS7PGGmLAPYXiW/MZREHx+USiVrbW15a9H7SEs/RnIOEU2I4XxmkmnjNh1CQw8oSQhGYefAv74KILSyGzrS2CIDM76YKObs7N0yMD1Xt9rwecFoQHQI/bRcd+WVHTHoeu4StE3BljtyrK+ZHJU7b9r64uu7nzlqk8+vy0Ppc5pVV9IJDPBkSUARvaOBIXRR3uxxCSGidXTCbFkGMHsnfrLkLyxavoI3Zs3mlXdm8dKfBax/rEc66iMA5T5dGicC9lgtZB5W8DOvfBobU1DMdyXs/wWW4car+1No6q7gkimw/mZuJXjy0y8u4ue9jzkZXXJASK/BxVfJqshUAcyDJf5F8l71XQRm6BLtXfje7xbx8p+WIS1YivTOb5G2HzV2i36i+YjIF+u/CVgLRVnVPGrtk8dCVw/yhkcG+oZ4FL93JrhprCRq8Z1th7v+CTCb0tGAKIl96ALt+UV4LXSWjwLbPvaGqa2etAtHWRxWQH7wceY55zL2aY80aRw+7oFDqZbzfu586F8sxwapivDCzi2YqO9MSYwUwI6fR1qtEAdnN6Tdp5HmLERab2fsElUlT9aP+Rlg9wk/6M4Rv3iScjVkZlzjjJMzh3If0jNQzoU1+1gZkk5qjgZ1TghfzNzAmtgy6vsEMMU6fu2uJjU3n9Rribi7nyHggUi2di0XNq3nPZ8sMjR5JMZG4+JzieiWYdpLU1Ee8OJ0Yg7Xs9MI8L2IW1A+dfV5HDl2mLnKdHTyuavzRhC2RxzZJn5wVY1tou0xT1MPLFpAuZiG5BsvQIgG40KigGeLtHYHUkgWUowAppLXjz0BeQZYPw2ZKbh/HUdkspq46Cg8b1bR3Ge8a22aeE6EJRF7TU1Ucjz+buG4JBdSM/CAmK3rmOkQx1X1daJUiURWGUvdQFsF/httmOWcTII6ncj4NBJrjTsTI900VGTgdymO8PgkQpPzKRXpO9SoJSI2AWVSCfe65LfCHTquJF1FGa5Gc9/8c+EUAzNYQFMJxxQbbXjKcVaF5BEpSqHYu1RizrDuG4F9O/Xrc/FatZKPrjWJA4CJRsReVpbCyc/WseZWl/g5WI6mFthENkAczb5xYgY/F2BD9OjvcD1SRfDt+zSYbH+G5qNdV0xKZCwRZQ00P/kLxZTLMoH9Lz+nDJuOmlxg1heYZmtSgT3oG8SpqglPXbNZ/o+4RmWXJe0sk6dJBWaV+bICm2ayAptmsgKbZpoY2PtWYJaoGe9NAOx1AUxbbXzjY5XlaMbcjeMD+9I9nHdXHuLdT77iV59abQme+fEBVth709P35NHLY2At7V3cLKzkWo7Wagtxal45dQ9bGRl58j+Dx8Csmh6yAptWgv8CbZkYUSkpBpcAAAAASUVORK5CYII="}}]);
|
|
2
2
|
//# sourceMappingURL=solidify.umd.min.SolidifyLearnerPeerReview.js.map
|