@genpact/genome.mfe.solidify-app 1.17.2-alpha.108 → 1.17.2-alpha.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/js/LearnerRereview.js +1 -1
  2. package/dist/js/LearnerRereview.js.map +1 -1
  3. package/dist/js/SolidifyAbout.js +1 -1
  4. package/dist/js/SolidifyAbout.js.map +1 -1
  5. package/dist/js/SolidifyAdministrationAssignRoleToUser.js +1 -1
  6. package/dist/js/SolidifyAdministrationAssignRoleToUser.js.map +1 -1
  7. package/dist/js/SolidifyAdministrationCreateOffCyele.js +1 -1
  8. package/dist/js/SolidifyAdministrationCreateOffCyele.js.map +1 -1
  9. package/dist/js/SolidifyAdministrationEmailTemplateManagement.js +1 -1
  10. package/dist/js/SolidifyAdministrationEmailTemplateManagement.js.map +1 -1
  11. package/dist/js/SolidifyAdministrationNeedReviewerReport.js +1 -1
  12. package/dist/js/SolidifyAdministrationNeedReviewerReport.js.map +1 -1
  13. package/dist/js/SolidifyAdministrationOffcycleDashboard.js +1 -1
  14. package/dist/js/SolidifyAdministrationOffcycleDashboard.js.map +1 -1
  15. package/dist/js/SolidifyAdministrationOperationalDetails.js +1 -1
  16. package/dist/js/SolidifyAdministrationOperationalDetails.js.map +1 -1
  17. package/dist/js/SolidifyAdministrationProgramAdministration.js +1 -1
  18. package/dist/js/SolidifyAdministrationProgramAdministration.js.map +1 -1
  19. package/dist/js/SolidifyAdministrationTaskManagement.js +1 -1
  20. package/dist/js/SolidifyAdministrationTaskManagement.js.map +1 -1
  21. package/dist/js/SolidifyAdministrationViewAllProxyRequests.js +1 -1
  22. package/dist/js/SolidifyAdministrationViewAllProxyRequests.js.map +1 -1
  23. package/dist/js/SolidifyLearner.js +2 -2
  24. package/dist/js/SolidifyLearner.js.map +1 -1
  25. package/dist/js/SolidifyLearnerDone.js +1 -1
  26. package/dist/js/SolidifyLearnerDone.js.map +1 -1
  27. package/dist/js/SolidifyLearnerError.js +1 -1
  28. package/dist/js/SolidifyLearnerError.js.map +1 -1
  29. package/dist/js/SolidifyLearnerGating.js +1 -1
  30. package/dist/js/SolidifyLearnerGating.js.map +1 -1
  31. package/dist/js/SolidifyLearnerPeerReview.js +1 -1
  32. package/dist/js/SolidifyLearnerPeerReview.js.map +1 -1
  33. package/dist/js/SolidifyLearnerProxyReview.js +1 -1
  34. package/dist/js/SolidifyLearnerProxyReview.js.map +1 -1
  35. package/dist/js/SolidifyLearnerSelectTask.js +1 -1
  36. package/dist/js/SolidifyLearnerSelectTask.js.map +1 -1
  37. package/dist/js/SolidifyLearnerStatus.js +1 -1
  38. package/dist/js/SolidifyLearnerStatus.js.map +1 -1
  39. package/dist/js/SolidifyLearnerSubmitTask.js +1 -1
  40. package/dist/js/SolidifyLearnerSubmitTask.js.map +1 -1
  41. package/dist/js/app.js +46 -46
  42. package/dist/js/app.js.map +1 -1
  43. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- (window["webpackJsonp__@genpact/genome.mfe.solidify-app"]=window["webpackJsonp__@genpact/genome.mfe.solidify-app"]||[]).push([["SolidifyAdministrationCreateOffCyele"],{"1edb":function(e,t,a){var s=a("a8d8");t=s(!1),t.push([e.i,'.ul-nav ul[data-v-39cc4cfa]{display:flex;width:100%}.ul-nav ul li.active[data-v-39cc4cfa]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-39cc4cfa]:before{content:"";background:#fff;width:31px;height:32px;position:absolute;z-index:0;left:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-39cc4cfa]{color:#707070!important;margin-right:2px!important;list-style:none;flex:1;padding:10px;text-align:center;position:relative;border-width:1px 0 1px 1px;border-style:solid;border-color:#d9d9d9;background-color:#eee;color:#979797;font-size:16px;min-width:175px;margin:8px 10px}.ul-nav ul li[data-v-39cc4cfa]:after{content:"";background:inherit;width:31px;height:32px;position:absolute;z-index:1;right:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-39cc4cfa]{padding-left:20px!important}.box-overflow1[data-v-39cc4cfa]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-39cc4cfa]{overflow-x:scroll}.box-overflow1[data-v-39cc4cfa]{max-height:none;overflow-y:auto}.ul-nav li[data-v-39cc4cfa]:first-child,.ul-nav li[data-v-39cc4cfa]:nth-child(2){display:none}}',""]),e.exports=t},2390:function(e,t,a){"use strict";var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-16 px-32"},[t("div",{staticClass:"md:px-0 lg:px-0 text-center"},[t("div",{staticClass:"text-gray-500"},[t("div",{staticClass:"pt-2",domProps:{innerHTML:e._s(e.errorMsg)}})]),t("div",{staticClass:"pt-8"},[t("a",{attrs:{href:e.helpmateLink,target:"_blank"}},[t("img",{staticClass:"mx-auto",attrs:{src:a("a884")}})])])])])])},r=[],l=a("6bcf"),o=Object(l["b"])({name:"ErrorMessage",props:{errorMessage:{type:String,default:""}},setup(e){const t=Object(l["f"])(""),a=Object(l["f"])(localStorage.getItem("helpmateLink"));return Object(l["c"])(async()=>{t.value=e.errorMessage}),{errorMsg:t,helpmateLink:a}}}),i=o,n=a("8619"),c=Object(n["a"])(i,s,r,!1,null,null,null);t["a"]=c.exports},"32b3":function(e,t,a){"use strict";a("7b6e")},"424a":function(e,t,a){var s=a("a8d8");t=s(!1),t.push([e.i,'.ul-nav ul[data-v-d79b6af4]{display:flex;width:100%}.ul-nav ul li.active[data-v-d79b6af4]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-d79b6af4]:before{content:"";background:#fff;width:31px;height:32px;position:absolute;z-index:0;left:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-d79b6af4]{color:#707070!important;margin-right:2px!important;list-style:none;flex:1;padding:10px;text-align:center;position:relative;border-width:1px 0 1px 1px;border-style:solid;border-color:#d9d9d9;background-color:#eee;color:#979797;font-size:16px;min-width:175px;margin:8px 10px}.ul-nav ul li[data-v-d79b6af4]:after{content:"";background:inherit;width:31px;height:32px;position:absolute;z-index:1;right:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-d79b6af4]{padding-left:20px!important}.box-overflow1[data-v-d79b6af4]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-d79b6af4]{overflow-x:scroll}.box-overflow1[data-v-d79b6af4]{max-height:none;overflow-y:auto}.ul-nav li[data-v-d79b6af4]:first-child,.ul-nav li[data-v-d79b6af4]:nth-child(2){display:none}}',""]),e.exports=t},4455:function(e,t,a){var s=a("cf4a");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var r=a("c69b").default;r("3b1f9f94",s,!0,{sourceMap:!1,shadowMode:!1})},4945:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"e",(function(){return l})),a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return i})),a.d(t,"d",(function(){return n}));var s=a("26fa");const r=async(e,t)=>{let a;return await s["b"].post(e,t).then(e=>(a=e.data,a)),a},l=async(e,t)=>{const a=await s["b"].post(e,t);return a},o=async(e,t)=>{const a=await s["b"].post(e,t);return a},i=async e=>{let t;return await s["b"].get(e).then(e=>(t=e.data,t)),t},n=async e=>{let t;return await s["b"].get(e).then(e=>(t=e.data,t)),t}},"675e":function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"e",(function(){return l})),a.d(t,"d",(function(){return n}));var s=a("26fa");const r=async(e,t)=>{const a=await s["b"].post(e,t);return a},l=async(e,t)=>{let a;const s=await fetch(""+e,{method:"put",body:t});return a=s,a},o=async e=>{const t=await s["b"].get("/task/"+e);return t},i=async(e,t)=>{const a=await s["b"].post(e,{learner_task_id:t});return a},n=async(e,t)=>{const a=await s["b"].post(e,t);return a}},7430:function(e,t,a){"use strict";a("4455")},"7b6e":function(e,t,a){var s=a("1edb");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var r=a("c69b").default;r("64323ca2",s,!0,{sourceMap:!1,shadowMode:!1})},"7f15":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return l}));var s=a("26fa");const r=async(e,t)=>{const a=await s["b"].post(e,t);return a},l=async(e,t)=>{const a=await s["b"].post(e,t);return a}},9265:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministration"}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Submit Learner Submission")])])}],l=a("6bcf"),o=a("1dba"),i=a.n(o),n=a("4945"),c=a("675e"),u=a("2390"),d=Object(l["b"])({name:"UploadSubmission",components:{ErrorMessage:u["a"]},props:{query:{type:Object,default:()=>({})}},setup(e){const t=Object(l["f"])(e.query.linked_task_id);console.log("Task ID",t.value);const a=Object(l["f"])(e.query.learner_task_id),s=Object(l["f"])(),r=Object(l["f"])(),o=Object(l["f"])(),u=Object(l["f"])(null),d=Object(l["f"])(),f=Object(l["f"])(!0),p=Object(l["f"])(),v=Object(l["f"])(0),m=Object(l["f"])(!1),b=Object(l["f"])(),g=Object(l["f"])(!1),x=Object(l["f"])(),h=Object(l["f"])(!1),y=async e=>{try{u.value=e.target.files[0],o.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(a){if(console.log(a),m.value=!0,i.a.isAxiosError(a)){var t;const e=a;b.value=null===(t=e.response)||void 0===t?void 0:t.data.message}else b.value="Something went wrong, please contact helpmate.";h.value=!0}},w=async()=>{try{if(m.value=!1,o.value){let e;const t={learner_task_id:a.value,learner_submission:o.value,taskType:s.value};if("Desktop"===s.value){const s=await Object(c["a"])("/v1/pretAuthUrlForUploadLearner",{file_name:o.value,learner_task_id:a.value}),r=s.data;d.value=r.preSignedUrl;const l=await Object(c["e"])(d.value,u.value);200===l.status?e=await Object(n["e"])("/uploadLearnerSubmissionFromAdmin",t):(m.value=!0,b.value="There is issue in the file upload, please contact with helpmate.",h.value=!0)}else e=await Object(n["e"])("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(m.value=!0,x.value=e.data.message,g.value=!0,setTimeout(()=>{x.value=null,g.value=!1},6e3)):(m.value=!0,b.value="There is some issue while submitting learner submission, please contact with helpmate.",h.value=!0,setTimeout(()=>{x.value=null,g.value=!1},6e3))}else"Mobile"===s.value?(m.value=!0,o.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout(()=>{r.value=null},6e3))):"Desktop"===s.value&&(m.value=!0,console.log("learnerSubmission.value "+o.value),o.value||(r.value="please select File",setTimeout(()=>{r.value=null},6e3)))}catch(t){if(m.value=!0,console.log("error "+t),i.a.isAxiosError(t)){var e;const a=t;b.value=null===(e=a.response)||void 0===e?void 0:e.data.message}else b.value="There is some issue while submitting learner submission, please contact with helpmate.";h.value=!0}},k=async()=>{m.value=!1;const e=await Object(c["b"])(t.value);console.log("task data "+JSON.stringify(e));const a=e.data.data;a?s.value=a.task_type:(b.value="There is an issue to fetch task, please contact helpmate.",h.value=!0),m.value=!0};return Object(l["c"])(async()=>{await k()}),{taskType:s,learnerTaskId:a,renderReady:m,errorResponse:b,showErrorMessage:h,showSuccessMessage:g,resMessage:x,fileValidationMsg:r,submitSubmiision:w,learnerSubmission:o,selectedFile:y,preSignedUrl:d,buttonDisable:f,validationError:p,fileInputKey:v}}}),f=d,p=(a("32b3"),a("8619")),v=Object(p["a"])(f,s,r,!1,null,"39cc4cfa",null);t["default"]=v.exports},"9d04":function(e,t,a){e.exports=a.p+"img/loadernew.gif"},a884:function(e,t){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="},adb9:function(e,t,a){"use strict";a("bb77")},bb77:function(e,t,a){var s=a("424a");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var r=a("c69b").default;r("92f5202e",s,!0,{sourceMap:!1,shadowMode:!1})},cf4a:function(e,t,a){var s=a("a8d8");t=s(!1),t.push([e.i,'.ul-nav ul[data-v-188276e1]{display:flex;width:100%}.ul-nav ul li.active[data-v-188276e1]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-188276e1]:before{content:"";background:#fff;width:31px;height:32px;position:absolute;z-index:0;left:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-188276e1]{color:#707070!important;margin-right:2px!important;list-style:none;flex:1;padding:10px;text-align:center;position:relative;border-width:1px 0 1px 1px;border-style:solid;border-color:#d9d9d9;background-color:#eee;color:#979797;font-size:16px;min-width:175px;margin:8px 10px}.ul-nav ul li[data-v-188276e1]:after{content:"";background:inherit;width:31px;height:32px;position:absolute;z-index:1;right:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-188276e1]{padding-left:20px!important}.box-overflow1[data-v-188276e1]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-188276e1]{overflow-x:scroll}.box-overflow1[data-v-188276e1]{max-height:none;overflow-y:auto}.ul-nav li[data-v-188276e1]:first-child,.ul-nav li[data-v-188276e1]:nth-child(2){display:none}}',""]),e.exports=t},edfa:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationOffCycleDetails",query:{learner_task_id:e.learnerTaskId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v(" Update Submission ")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},r=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Update Learner Submission")])])}],l=a("6bcf"),o=a("1dba"),i=a.n(o),n=a("4945"),c=a("675e"),u=a("2390"),d=Object(l["b"])({name:"UpdateSubmission",components:{ErrorMessage:u["a"]},props:{query:{type:Object,default:()=>({})}},setup(e){const t=Object(l["f"])(e.query.linked_task_id);console.log("Task ID",t.value);const a=Object(l["f"])(e.query.learner_task_id),s=Object(l["f"])(),r=Object(l["f"])(),o=Object(l["f"])(),u=Object(l["f"])(null),d=Object(l["f"])(),f=Object(l["f"])(!0),p=Object(l["f"])(),v=Object(l["f"])(0),m=Object(l["f"])(!1),b=Object(l["f"])(),g=Object(l["f"])(!1),x=Object(l["f"])(),h=Object(l["f"])(!1),y=async e=>{try{u.value=e.target.files[0],o.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(r.value="fileSize greater than 200 MB")}catch(a){if(console.log(a),m.value=!0,i.a.isAxiosError(a)){var t;const e=a;b.value=null===(t=e.response)||void 0===t?void 0:t.data.message}else b.value="Something went wrong, please contact helpmate.";h.value=!0}},w=async()=>{try{if(m.value=!1,o.value){let e;const t={learner_task_id:a.value,learner_submission:o.value,taskType:s.value};if("Desktop"===s.value){const s=await Object(c["a"])("/v1/pretAuthUrlForUploadLearner",{file_name:o.value,learner_task_id:a.value}),r=s.data;d.value=r.preSignedUrl;const l=await Object(c["e"])(d.value,u.value);200===l.status?e=await Object(n["e"])("/uploadLearnerSubmissionFromAdmin",t):(m.value=!0,b.value="There is issue in the file upload, please contact with helpmate.",h.value=!0)}else e=await Object(n["e"])("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(m.value=!0,x.value=e.data.message,g.value=!0,setTimeout(()=>{x.value=null,g.value=!1},6e3)):(m.value=!0,b.value="There is some issue while submitting learner submission, please contact with helpmate.",h.value=!0,setTimeout(()=>{x.value=null,g.value=!1},6e3))}else"Mobile"===s.value?(m.value=!0,o.value||(r.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout(()=>{r.value=null},6e3))):"Desktop"===s.value&&(m.value=!0,console.log("learnerSubmission.value "+o.value),o.value||(r.value="please select File",setTimeout(()=>{r.value=null},6e3)))}catch(t){if(m.value=!0,console.log("error "+t),i.a.isAxiosError(t)){var e;const a=t;b.value=null===(e=a.response)||void 0===e?void 0:e.data.message}else b.value="There is some issue while submitting learner submission, please contact with helpmate.";h.value=!0}},k=async()=>{m.value=!1;const e=await Object(c["b"])(t.value);console.log("task data "+JSON.stringify(e));const a=e.data.data;a?s.value=a.task_type:(b.value="There is an issue to fetch task, please contact helpmate.",h.value=!0),m.value=!0};return Object(l["c"])(async()=>{await k()}),{taskType:s,learnerTaskId:a,renderReady:m,errorResponse:b,showErrorMessage:h,showSuccessMessage:g,resMessage:x,fileValidationMsg:r,submitSubmiision:w,learnerSubmission:o,selectedFile:y,preSignedUrl:d,buttonDisable:f,validationError:p,fileInputKey:v}}}),f=d,p=(a("7430"),a("8619")),v=Object(p["a"])(f,s,r,!1,null,"188276e1",null);t["default"]=v.exports},f568:function(e,t,a){"use strict";a.r(t);var s,r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},[t("div",["infinity"===e.programId?t("p",[e._v(" Proficiency: "),t("strong",[e._v(e._s(e.profName))])]):e._e(),"infinity"===e.programId?t("p",{staticClass:"pt-2"},[e._v(" Skill: "),t("strong",[e._v(e._s(e.skill))])]):e._e(),"infinity"!==e.programId?t("p",{staticClass:"pt-2"},[e._v(" Program: "),t("strong",[e._v(e._s(e.programName))])]):e._e(),t("p",{staticClass:"pt-2"},[t("strong",[e._v("Task Name: ")]),e._v(e._s(e.taskName))])]),"Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[e._m(1),t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{key:e.fileInputKey,attrs:{type:"file"},on:{change:e.selectedFile}}),e._v(" "),e.learnerSubmission?t("x-icon",{attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1)]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[e._m(2),t("div",{staticClass:"mb-4 text-center"},[null!==e.skillId&&null!==e.proficiencyId?t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId,skill_id:e.skillId,proficiency_id:e.proficiencyId}}}},[e._v("Back")]):t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},l=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Create Off-Cycle Task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Upload the file to create off-cycle task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pt-4"},[t("p",{staticClass:"text-xl"},[t("em",[e._v("Please don't click the browser back button")])])])}],o=(a("f9f6"),a("6bcf")),i=a("949b"),n=a("1dba"),c=a.n(n),u=new Uint8Array(16);function d(){if(!s&&(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(u)}var f=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function p(e){return"string"===typeof e&&f.test(e)}for(var v=p,m=[],b=0;b<256;++b)m.push((b+256).toString(16).substr(1));function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+"-"+m[e[t+4]]+m[e[t+5]]+"-"+m[e[t+6]]+m[e[t+7]]+"-"+m[e[t+8]]+m[e[t+9]]+"-"+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase();if(!v(a))throw TypeError("Stringified UUID is invalid");return a}var x,h,y=g,w=0,k=0;function _(e,t,a){var s=t&&a||0,r=t||new Array(16);e=e||{};var l=e.node||x,o=void 0!==e.clockseq?e.clockseq:h;if(null==l||null==o){var i=e.random||(e.rng||d)();null==l&&(l=x=[1|i[0],i[1],i[2],i[3],i[4],i[5]]),null==o&&(o=h=16383&(i[6]<<8|i[7]))}var n=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:k+1,u=n-w+(c-k)/1e4;if(u<0&&void 0===e.clockseq&&(o=o+1&16383),(u<0||n>w)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");w=n,k=c,h=o,n+=122192928e5;var f=(1e4*(268435455&n)+c)%4294967296;r[s++]=f>>>24&255,r[s++]=f>>>16&255,r[s++]=f>>>8&255,r[s++]=255&f;var p=n/4294967296*1e4&268435455;r[s++]=p>>>8&255,r[s++]=255&p,r[s++]=p>>>24&15|16,r[s++]=p>>>16&255,r[s++]=o>>>8|128,r[s++]=255&o;for(var v=0;v<6;++v)r[s+v]=l[v];return t||y(r)}var C=_;function S(e){if(!v(e))throw TypeError("Invalid UUID");var t,a=new Uint8Array(16);return a[0]=(t=parseInt(e.slice(0,8),16))>>>24,a[1]=t>>>16&255,a[2]=t>>>8&255,a[3]=255&t,a[4]=(t=parseInt(e.slice(9,13),16))>>>8,a[5]=255&t,a[6]=(t=parseInt(e.slice(14,18),16))>>>8,a[7]=255&t,a[8]=(t=parseInt(e.slice(19,23),16))>>>8,a[9]=255&t,a[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=t/4294967296&255,a[12]=t>>>24&255,a[13]=t>>>16&255,a[14]=t>>>8&255,a[15]=255&t,a}var j=S;function O(e){e=unescape(encodeURIComponent(e));for(var t=[],a=0;a<e.length;++a)t.push(e.charCodeAt(a));return t}var A="6ba7b810-9dad-11d1-80b4-00c04fd430c8",M="6ba7b811-9dad-11d1-80b4-00c04fd430c8",I=function(e,t,a){function s(e,s,r,l){if("string"===typeof e&&(e=O(e)),"string"===typeof s&&(s=j(s)),16!==s.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(s),o.set(e,s.length),o=a(o),o[6]=15&o[6]|t,o[8]=63&o[8]|128,r){l=l||0;for(var i=0;i<16;++i)r[l+i]=o[i];return r}return y(o)}try{s.name=e}catch(r){}return s.DNS=A,s.URL=M,s};function T(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var a=0;a<t.length;++a)e[a]=t.charCodeAt(a)}return U(L(E(e),8*e.length))}function U(e){for(var t=[],a=32*e.length,s="0123456789abcdef",r=0;r<a;r+=8){var l=e[r>>5]>>>r%32&255,o=parseInt(s.charAt(l>>>4&15)+s.charAt(15&l),16);t.push(o)}return t}function R(e){return 14+(e+64>>>9<<4)+1}function L(e,t){e[t>>5]|=128<<t%32,e[R(t)-1]=t;for(var a=1732584193,s=-271733879,r=-1732584194,l=271733878,o=0;o<e.length;o+=16){var i=a,n=s,c=r,u=l;a=G(a,s,r,l,e[o],7,-680876936),l=G(l,a,s,r,e[o+1],12,-389564586),r=G(r,l,a,s,e[o+2],17,606105819),s=G(s,r,l,a,e[o+3],22,-1044525330),a=G(a,s,r,l,e[o+4],7,-176418897),l=G(l,a,s,r,e[o+5],12,1200080426),r=G(r,l,a,s,e[o+6],17,-1473231341),s=G(s,r,l,a,e[o+7],22,-45705983),a=G(a,s,r,l,e[o+8],7,1770035416),l=G(l,a,s,r,e[o+9],12,-1958414417),r=G(r,l,a,s,e[o+10],17,-42063),s=G(s,r,l,a,e[o+11],22,-1990404162),a=G(a,s,r,l,e[o+12],7,1804603682),l=G(l,a,s,r,e[o+13],12,-40341101),r=G(r,l,a,s,e[o+14],17,-1502002290),s=G(s,r,l,a,e[o+15],22,1236535329),a=F(a,s,r,l,e[o+1],5,-165796510),l=F(l,a,s,r,e[o+6],9,-1069501632),r=F(r,l,a,s,e[o+11],14,643717713),s=F(s,r,l,a,e[o],20,-373897302),a=F(a,s,r,l,e[o+5],5,-701558691),l=F(l,a,s,r,e[o+10],9,38016083),r=F(r,l,a,s,e[o+15],14,-660478335),s=F(s,r,l,a,e[o+4],20,-405537848),a=F(a,s,r,l,e[o+9],5,568446438),l=F(l,a,s,r,e[o+14],9,-1019803690),r=F(r,l,a,s,e[o+3],14,-187363961),s=F(s,r,l,a,e[o+8],20,1163531501),a=F(a,s,r,l,e[o+13],5,-1444681467),l=F(l,a,s,r,e[o+2],9,-51403784),r=F(r,l,a,s,e[o+7],14,1735328473),s=F(s,r,l,a,e[o+12],20,-1926607734),a=N(a,s,r,l,e[o+5],4,-378558),l=N(l,a,s,r,e[o+8],11,-2022574463),r=N(r,l,a,s,e[o+11],16,1839030562),s=N(s,r,l,a,e[o+14],23,-35309556),a=N(a,s,r,l,e[o+1],4,-1530992060),l=N(l,a,s,r,e[o+4],11,1272893353),r=N(r,l,a,s,e[o+7],16,-155497632),s=N(s,r,l,a,e[o+10],23,-1094730640),a=N(a,s,r,l,e[o+13],4,681279174),l=N(l,a,s,r,e[o],11,-358537222),r=N(r,l,a,s,e[o+3],16,-722521979),s=N(s,r,l,a,e[o+6],23,76029189),a=N(a,s,r,l,e[o+9],4,-640364487),l=N(l,a,s,r,e[o+12],11,-421815835),r=N(r,l,a,s,e[o+15],16,530742520),s=N(s,r,l,a,e[o+2],23,-995338651),a=P(a,s,r,l,e[o],6,-198630844),l=P(l,a,s,r,e[o+7],10,1126891415),r=P(r,l,a,s,e[o+14],15,-1416354905),s=P(s,r,l,a,e[o+5],21,-57434055),a=P(a,s,r,l,e[o+12],6,1700485571),l=P(l,a,s,r,e[o+3],10,-1894986606),r=P(r,l,a,s,e[o+10],15,-1051523),s=P(s,r,l,a,e[o+1],21,-2054922799),a=P(a,s,r,l,e[o+8],6,1873313359),l=P(l,a,s,r,e[o+15],10,-30611744),r=P(r,l,a,s,e[o+6],15,-1560198380),s=P(s,r,l,a,e[o+13],21,1309151649),a=P(a,s,r,l,e[o+4],6,-145523070),l=P(l,a,s,r,e[o+11],10,-1120210379),r=P(r,l,a,s,e[o+2],15,718787259),s=P(s,r,l,a,e[o+9],21,-343485551),a=z(a,i),s=z(s,n),r=z(r,c),l=z(l,u)}return[a,s,r,l]}function E(e){if(0===e.length)return[];for(var t=8*e.length,a=new Uint32Array(R(t)),s=0;s<t;s+=8)a[s>>5]|=(255&e[s/8])<<s%32;return a}function z(e,t){var a=(65535&e)+(65535&t),s=(e>>16)+(t>>16)+(a>>16);return s<<16|65535&a}function V(e,t){return e<<t|e>>>32-t}function D(e,t,a,s,r,l){return z(V(z(z(t,e),z(s,l)),r),a)}function G(e,t,a,s,r,l,o){return D(t&a|~t&s,e,t,r,l,o)}function F(e,t,a,s,r,l,o){return D(t&s|a&~s,e,t,r,l,o)}function N(e,t,a,s,r,l,o){return D(t^a^s,e,t,r,l,o)}function P(e,t,a,s,r,l,o){return D(a^(t|~s),e,t,r,l,o)}var J=T,B=I("v3",48,J),W=B;function q(e,t,a){e=e||{};var s=e.random||(e.rng||d)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){a=a||0;for(var r=0;r<16;++r)t[a+r]=s[r];return t}return y(s)}var Z=q;function X(e,t,a,s){switch(e){case 0:return t&a^~t&s;case 1:return t^a^s;case 2:return t&a^t&s^a&s;case 3:return t^a^s}}function Y(e,t){return e<<t|e>>>32-t}function H(e){var t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var s=unescape(encodeURIComponent(e));e=[];for(var r=0;r<s.length;++r)e.push(s.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var l=e.length/4+2,o=Math.ceil(l/16),i=new Array(o),n=0;n<o;++n){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*n+4*u]<<24|e[64*n+4*u+1]<<16|e[64*n+4*u+2]<<8|e[64*n+4*u+3];i[n]=c}i[o-1][14]=8*(e.length-1)/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<o;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=i[d][p];for(var v=16;v<80;++v)f[v]=Y(f[v-3]^f[v-8]^f[v-14]^f[v-16],1);for(var m=a[0],b=a[1],g=a[2],x=a[3],h=a[4],y=0;y<80;++y){var w=Math.floor(y/20),k=Y(m,5)+X(w,b,g,x)+h+t[w]+f[y]>>>0;h=x,x=g,g=Y(b,30)>>>0,b=m,m=k}a[0]=a[0]+m>>>0,a[1]=a[1]+b>>>0,a[2]=a[2]+g>>>0,a[3]=a[3]+x>>>0,a[4]=a[4]+h>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]}var K=H,Q=I("v5",80,K),$=Q,ee={v1:C,v3:W,v4:Z,v5:$};var te=a("afbc"),ae=a("675e"),se=a("7f15"),re=a("2390"),le=Object(o["b"])({name:"LearnerSubmitTask",components:{XIcon:i["g"],ErrorMessage:re["a"]},setup(){const e=Object(o["f"])(localStorage.getItem("linkedTaskId")),t=Object(o["f"])(ee.v1()),a=Object(o["f"])(localStorage.getItem("programId")),s=Object(o["f"])(localStorage.getItem("programName")),r=Object(o["f"])(localStorage.getItem("skillId"));console.log("skill Id in createoffcyclle",r);const l=Object(o["f"])(localStorage.getItem("proficiencyId")),i=Object(o["f"])(localStorage.getItem("skillName")),n=Object(o["f"])(localStorage.getItem("proficiencyName")),u=Object(o["f"])(localStorage.getItem("taskName")),d=Object(o["f"])(localStorage.getItem("taskType")),f=Object(o["f"])(null),p=Object(o["f"])(),v=Object(o["f"])(),m=Object(o["f"])(),b=Object(o["f"])(!0),g=Object(o["f"])(),x=Object(o["f"])(0),h=Object(o["f"])(!1),y=Object(o["f"])(),w=Object(o["f"])(!1),k=Object(o["f"])(),_=Object(o["f"])(!1),C=async()=>{x.value+=1,console.log("before "+v.value),v.value=null,console.log("after "+v.value)},S=e=>{const t=e.target.checked;!0===t?(b.value=!1,console.log(b.value)):(b.value=!0,console.log(b.value))},j=async e=>{try{f.value=e.target.files[0],v.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(p.value="fileSize greater than 200 MB")}catch(a){if(console.log(a),h.value=!0,c.a.isAxiosError(a)){var t;const e=a;y.value=null===(t=e.response)||void 0===t?void 0:t.data.message}else y.value="Something went wrong, please contact helpmate.";_.value=!0}},O=async()=>{try{if(h.value=!1,v.value){let s;if("Desktop"===d.value){const o={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission:v.value},i=await Object(ae["a"])("/v1/pretAuthUrlForUploadLearner",{file_name:v.value,learner_task_id:t.value}),n=i.data;m.value=n.preSignedUrl;const c=await Object(ae["e"])(m.value,f.value);200===c.status?s=await Object(se["a"])("/offcycle/create",o):(h.value=!0,y.value="There is issue in the file upload, please contact with helpmate.",_.value=!0)}else{const o={linked_program_name:a.value,learner_task_id:t.value,skill:r.value,proficiency:l.value,linked_task_id:e.value,learner_submission_text:v.value};s=await Object(se["a"])("/offcycle/create",o)}200===s.status?(h.value=!0,k.value=s.data.message,w.value=!0,localStorage.removeItem("programId"),localStorage.removeItem("programName"),localStorage.removeItem("linkedTaskId"),localStorage.removeItem("skillId"),localStorage.removeItem("skillName"),localStorage.removeItem("proficiencyId"),localStorage.removeItem("proficiencyName"),localStorage.removeItem("taskName"),localStorage.removeItem("taskType"),null!==r.value&&null!==l.value?te["a"].push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value,skill_id:r.value,proficiency_id:l.value}}):te["a"].push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value}})):(h.value=!0,y.value="There is some issue while submitting learner submission, please contact with helpmate.",_.value=!0)}else"Mobile"===d.value?(h.value=!0,v.value||(p.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout(()=>{p.value=null},6e3))):"Desktop"===d.value&&(h.value=!0,console.log("learnerSubmission.value "+v.value),v.value||(p.value="please select File",setTimeout(()=>{p.value=null},6e3)))}catch(o){if(h.value=!0,console.log("error "+o),c.a.isAxiosError(o)){var s;const e=o;y.value=null===(s=e.response)||void 0===s?void 0:s.data.message}else y.value="There is some issue while submitting learner submission, please contact with helpmate.";_.value=!0}};return Object(o["c"])(async()=>{h.value=!0}),{learnerSubmissionFile:f,skillId:r,proficiencyId:l,programId:a,taskType:d,taskName:u,submitSubmiision:O,learnerSubmission:v,selectedFile:j,fileValidationMsg:p,learnerTaskId:t,preSignedUrl:m,buttonDisable:b,setButtonEnable:S,validationError:g,clearFile:C,fileInputKey:x,renderReady:h,errorResponse:y,showErrorMessage:_,programName:s,skill:i,profName:n,showSuccessMessage:w,resMessage:k}}}),oe=le,ie=(a("adb9"),a("8619")),ne=Object(ie["a"])(oe,r,l,!1,null,"d79b6af4",null);t["default"]=ne.exports}}]);
1
+ (window["webpackJsonp__@genpact/genome.mfe.solidify-app"]=window["webpackJsonp__@genpact/genome.mfe.solidify-app"]||[]).push([["SolidifyAdministrationCreateOffCyele"],{"00bd":function(e,t,a){var r=a("815e");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"0342":function(e,t,a){var r=a("09bd");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},"0572":function(e,t){e.exports={}},"073d":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"09bd":function(e,t){var a=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:a)(t)}},"0bd7":function(e,t,a){var r=a("9dce"),n=a("4833"),o=a("1d31"),i=a("5c13");e.exports=function(e,t,a){for(var s=n(t),l=i.f,c=o.f,u=0;u<s.length;u++){var f=s[u];r(e,f)||a&&r(a,f)||l(e,f,c(t,f))}}},"0fe5":function(e,t,a){var r=a("7d3c"),n=a("743a"),o="__core-js_shared__",i=r[o]||n(o,{});e.exports=i},1e3:function(e,t){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},"123b":function(e,t,a){var r=a("0342"),n=Math.max,o=Math.min;e.exports=function(e,t){var a=r(e);return a<0?n(a+t,0):o(a,t)}},"186a":function(e,t,a){var r=a("7d3c"),n=a("f6ba"),o=r.document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"1d31":function(e,t,a){var r=a("caa9"),n=a("c683"),o=a("52bd"),i=a("38c8"),s=a("9a69"),l=a("79b1"),c=a("9dce"),u=a("9dca"),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=l(t),u)try{return f(e,t)}catch(a){}if(c(e,t))return i(!n(o.f,e,t),e[t])}},"1edb":function(e,t,a){var r=a("a8d8");t=r(!1),t.push([e.i,'.ul-nav ul[data-v-39cc4cfa]{display:flex;width:100%}.ul-nav ul li.active[data-v-39cc4cfa]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-39cc4cfa]:before{content:"";background:#fff;width:31px;height:32px;position:absolute;z-index:0;left:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-39cc4cfa]{color:#707070!important;margin-right:2px!important;list-style:none;flex:1;padding:10px;text-align:center;position:relative;border-width:1px 0 1px 1px;border-style:solid;border-color:#d9d9d9;background-color:#eee;color:#979797;font-size:16px;min-width:175px;margin:8px 10px}.ul-nav ul li[data-v-39cc4cfa]:after{content:"";background:inherit;width:31px;height:32px;position:absolute;z-index:1;right:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-39cc4cfa]{padding-left:20px!important}.box-overflow1[data-v-39cc4cfa]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-39cc4cfa]{overflow-x:scroll}.box-overflow1[data-v-39cc4cfa]{max-height:none;overflow-y:auto}.ul-nav li[data-v-39cc4cfa]:first-child,.ul-nav li[data-v-39cc4cfa]:nth-child(2){display:none}}',""]),e.exports=t},"211b":function(e,t,a){var r=a("b1ab"),n=a("9dce"),o=a("9a69"),i=a("5435").indexOf,s=a("0572"),l=r([].push);e.exports=function(e,t){var a,r=o(e),c=0,u=[];for(a in r)!n(s,a)&&n(r,a)&&l(u,a);while(t.length>c)n(r,a=t[c++])&&(~i(u,a)||l(u,a));return u}},"23ea":function(e,t,a){var r=a("c683"),n=a("9de2"),o=a("f6ba"),i=TypeError;e.exports=function(e,t){var a,s;if("string"===t&&n(a=e.toString)&&!o(s=r(a,e)))return s;if(n(a=e.valueOf)&&!o(s=r(a,e)))return s;if("string"!==t&&n(a=e.toString)&&!o(s=r(a,e)))return s;throw i("Can't convert object to primitive value")}},"2c81":function(e,t,a){var r=a("57bb"),n=a("0fe5");(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"2deb":function(e,t,a){var r=a("7d3c"),n=a("9de2"),o=r.WeakMap;e.exports=n(o)&&/native code/.test(String(o))},"32b3":function(e,t,a){"use strict";a("7b6e")},"32b4":function(e,t,a){var r=a("b1ab"),n=a("9de2"),o=a("0fe5"),i=r(Function.toString);n(o.inspectSource)||(o.inspectSource=function(e){return i(e)}),e.exports=o.inspectSource},3470:function(e,t,a){"use strict";var r=a("caa9"),n=a("00bd"),o=TypeError,i=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(n(e)&&!i(e,"length").writable)throw o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"34ae":function(e,t,a){var r=a("211b"),n=a("a64a"),o=n.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},3508:function(e,t){var a="object"==typeof document&&document.all,r="undefined"==typeof a&&void 0!==a;e.exports={all:a,IS_HTMLDDA:r}},"385f":function(e,t,a){var r=a("0342"),n=Math.min;e.exports=function(e){return e>0?n(r(e),9007199254740991):0}},"38c8":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"3ef0":function(e,t,a){var r=a("cae3"),n=a("9de2"),o=a("6f30"),i=a("4160"),s=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&o(t.prototype,s(e))}},4160:function(e,t,a){var r=a("42c1");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"424a":function(e,t,a){var r=a("a8d8");t=r(!1),t.push([e.i,'.ul-nav ul[data-v-d79b6af4]{display:flex;width:100%}.ul-nav ul li.active[data-v-d79b6af4]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-d79b6af4]:before{content:"";background:#fff;width:31px;height:32px;position:absolute;z-index:0;left:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-d79b6af4]{color:#707070!important;margin-right:2px!important;list-style:none;flex:1;padding:10px;text-align:center;position:relative;border-width:1px 0 1px 1px;border-style:solid;border-color:#d9d9d9;background-color:#eee;color:#979797;font-size:16px;min-width:175px;margin:8px 10px}.ul-nav ul li[data-v-d79b6af4]:after{content:"";background:inherit;width:31px;height:32px;position:absolute;z-index:1;right:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-d79b6af4]{padding-left:20px!important}.box-overflow1[data-v-d79b6af4]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-d79b6af4]{overflow-x:scroll}.box-overflow1[data-v-d79b6af4]{max-height:none;overflow-y:auto}.ul-nav li[data-v-d79b6af4]:first-child,.ul-nav li[data-v-d79b6af4]:nth-child(2){display:none}}',""]),e.exports=t},"42c1":function(e,t,a){var r=a("d0e9"),n=a("073d");e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"43b7":function(e,t,a){var r=a("073d"),n=a("9de2"),o=/#|\.prototype\./,i=function(e,t){var a=l[s(e)];return a==u||a!=c&&(n(t)?r(t):!!t)},s=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},4455:function(e,t,a){var r=a("cf4a");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=a("c69b").default;n("3b1f9f94",r,!0,{sourceMap:!1,shadowMode:!1})},4833:function(e,t,a){var r=a("cae3"),n=a("b1ab"),o=a("34ae"),i=a("84d9"),s=a("8d23"),l=n([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),a=i.f;return a?l(t,a(e)):t}},4945:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"e",(function(){return o})),a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return s})),a.d(t,"d",(function(){return l}));var r=a("26fa");const n=async(e,t)=>{let a;return await r["b"].post(e,t).then(e=>(a=e.data,a)),a},o=async(e,t)=>{const a=await r["b"].post(e,t);return a},i=async(e,t)=>{const a=await r["b"].post(e,t);return a},s=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t},l=async e=>{let t;return await r["b"].get(e).then(e=>(t=e.data,t)),t}},"52bd":function(e,t,a){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},5435:function(e,t,a){var r=a("9a69"),n=a("123b"),o=a("7f94"),i=function(e){return function(t,a,i){var s,l=r(t),c=o(l),u=n(i,c);if(e&&a!=a){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===a)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"57bb":function(e,t){e.exports=!1},"59ff":function(e,t,a){var r=a("c683"),n=a("f6ba"),o=a("3ef0"),i=a("dd05"),s=a("23ea"),l=a("e285"),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!n(e)||o(e))return e;var a,l=i(e,u);if(l){if(void 0===t&&(t="default"),a=r(l,e,t),!n(a)||o(a))return a;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},"5c13":function(e,t,a){var r=a("caa9"),n=a("9dca"),o=a("dba4"),i=a("8d23"),s=a("79b1"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?o?function(e,t,a){if(i(e),t=s(t),i(a),"function"===typeof e&&"prototype"===t&&"value"in a&&p in a&&!a[p]){var r=u(e,t);r&&r[p]&&(e[t]=a.value,a={configurable:d in a?a[d]:r[d],enumerable:f in a?a[f]:r[f],writable:!1})}return c(e,t,a)}:c:function(e,t,a){if(i(e),t=s(t),i(a),n)try{return c(e,t,a)}catch(r){}if("get"in a||"set"in a)throw l("Accessors not supported");return"value"in a&&(e[t]=a.value),e}},"5f66":function(e,t){e.exports=function(e){return null===e||void 0===e}},"675e":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return n})),a.d(t,"c",(function(){return s})),a.d(t,"e",(function(){return o})),a.d(t,"d",(function(){return l}));var r=a("26fa");const n=async(e,t)=>{const a=await r["b"].post(e,t);return a},o=async(e,t)=>{let a;const r=await fetch(""+e,{method:"put",body:t});return a=r,a},i=async e=>{const t=await r["b"].get("/task/"+e);return t},s=async(e,t)=>{const a=await r["b"].post(e,{learner_task_id:t});return a},l=async(e,t)=>{const a=await r["b"].post(e,t);return a}},"6cc5":function(e,t,a){var r=a("caa9"),n=a("9dce"),o=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,s=n(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&i(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},"6f30":function(e,t,a){var r=a("b1ab");e.exports=r({}.isPrototypeOf)},7086:function(e,t){var a=String;e.exports=function(e){try{return a(e)}catch(t){return"Object"}}},7430:function(e,t,a){"use strict";a("4455")},"743a":function(e,t,a){var r=a("7d3c"),n=Object.defineProperty;e.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(a){r[e]=t}return t}},"79b1":function(e,t,a){var r=a("59ff"),n=a("3ef0");e.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}},"7b20":function(e,t,a){var r=a("9de2"),n=a("7086"),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(n(e)+" is not a function")}},"7b6e":function(e,t,a){var r=a("1edb");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=a("c69b").default;n("64323ca2",r,!0,{sourceMap:!1,shadowMode:!1})},"7d3c":function(e,t,a){(function(t){var a=function(e){return e&&e.Math==Math&&e};e.exports=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,a("d8fc"))},"7f15":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return o}));var r=a("26fa");const n=async(e,t)=>{const a=await r["b"].post(e,t);return a},o=async(e,t)=>{const a=await r["b"].post(e,t);return a}},"7f94":function(e,t,a){var r=a("385f");e.exports=function(e){return r(e.length)}},8098:function(e,t,a){var r=a("caa9"),n=a("5c13"),o=a("38c8");e.exports=r?function(e,t,a){return n.f(e,t,o(1,a))}:function(e,t,a){return e[t]=a,e}},"815e":function(e,t,a){var r=a("b1ab"),n=r({}.toString),o=r("".slice);e.exports=function(e){return o(n(e),8,-1)}},"84d9":function(e,t){t.f=Object.getOwnPropertySymbols},"89c6":function(e,t,a){var r=a("7d3c"),n=a("1d31").f,o=a("8098"),i=a("a025"),s=a("743a"),l=a("0bd7"),c=a("43b7");e.exports=function(e,t){var a,u,f,d,p,v,b=e.target,m=e.global,g=e.stat;if(u=m?r:g?r[b]||s(b,{}):(r[b]||{}).prototype,u)for(f in t){if(p=t[f],e.dontCallGetSet?(v=n(u,f),d=v&&v.value):d=u[f],a=c(m?f:b+(g?".":"#")+f,e.forced),!a&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),i(u,f,p,e)}}},"89e7":function(e,t,a){var r=a("b1ab"),n=0,o=Math.random(),i=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+o,36)}},"8d23":function(e,t,a){var r=a("f6ba"),n=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw o(n(e)+" is not an object")}},9265:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministration"}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},n=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Submit Learner Submission")])])}],o=a("6bcf"),i=a("1dba"),s=a.n(i),l=a("4945"),c=a("675e"),u=a("2390"),f=Object(o["b"])({name:"UploadSubmission",components:{ErrorMessage:u["a"]},props:{query:{type:Object,default:()=>({})}},setup(e){const t=Object(o["f"])(e.query.linked_task_id);console.log("Task ID",t.value);const a=Object(o["f"])(e.query.learner_task_id),r=Object(o["f"])(),n=Object(o["f"])(),i=Object(o["f"])(),u=Object(o["f"])(null),f=Object(o["f"])(),d=Object(o["f"])(!0),p=Object(o["f"])(),v=Object(o["f"])(0),b=Object(o["f"])(!1),m=Object(o["f"])(),g=Object(o["f"])(!1),x=Object(o["f"])(),y=Object(o["f"])(!1),h=async e=>{try{u.value=e.target.files[0],i.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(n.value="fileSize greater than 200 MB")}catch(a){if(console.log(a),b.value=!0,s.a.isAxiosError(a)){var t;const e=a;m.value=null===(t=e.response)||void 0===t?void 0:t.data.message}else m.value="Something went wrong, please contact helpmate.";y.value=!0}},w=async()=>{try{if(b.value=!1,i.value){let e;const t={learner_task_id:a.value,learner_submission:i.value,taskType:r.value};if("Desktop"===r.value){const r=await Object(c["a"])("/v1/pretAuthUrlForUploadLearner",{file_name:i.value,learner_task_id:a.value}),n=r.data;f.value=n.preSignedUrl;const o=await Object(c["e"])(f.value,u.value);200===o.status?e=await Object(l["e"])("/uploadLearnerSubmissionFromAdmin",t):(b.value=!0,m.value="There is issue in the file upload, please contact with helpmate.",y.value=!0)}else e=await Object(l["e"])("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(b.value=!0,x.value=e.data.message,g.value=!0,setTimeout(()=>{x.value=null,g.value=!1},6e3)):(b.value=!0,m.value="There is some issue while submitting learner submission, please contact with helpmate.",y.value=!0,setTimeout(()=>{x.value=null,g.value=!1},6e3))}else"Mobile"===r.value?(b.value=!0,i.value||(n.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout(()=>{n.value=null},6e3))):"Desktop"===r.value&&(b.value=!0,console.log("learnerSubmission.value "+i.value),i.value||(n.value="please select File",setTimeout(()=>{n.value=null},6e3)))}catch(t){if(b.value=!0,console.log("error "+t),s.a.isAxiosError(t)){var e;const a=t;m.value=null===(e=a.response)||void 0===e?void 0:e.data.message}else m.value="There is some issue while submitting learner submission, please contact with helpmate.";y.value=!0}},_=async()=>{b.value=!1;const e=await Object(c["b"])(t.value);console.log("task data "+JSON.stringify(e));const a=e.data.data;a?r.value=a.task_type:(m.value="There is an issue to fetch task, please contact helpmate.",y.value=!0),b.value=!0};return Object(o["c"])(async()=>{await _()}),{taskType:r,learnerTaskId:a,renderReady:b,errorResponse:m,showErrorMessage:y,showSuccessMessage:g,resMessage:x,fileValidationMsg:n,submitSubmiision:w,learnerSubmission:i,selectedFile:h,preSignedUrl:f,buttonDisable:d,validationError:p,fileInputKey:v}}}),d=f,p=(a("32b3"),a("8619")),v=Object(p["a"])(d,r,n,!1,null,"39cc4cfa",null);t["default"]=v.exports},"9a69":function(e,t,a){var r=a("f02e"),n=a("fd6a");e.exports=function(e){return r(n(e))}},"9d04":function(e,t,a){e.exports=a.p+"img/loadernew.gif"},"9dca":function(e,t,a){var r=a("caa9"),n=a("073d"),o=a("186a");e.exports=!r&&!n((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"9dce":function(e,t,a){var r=a("b1ab"),n=a("ab90"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(n(e),t)}},"9de2":function(e,t,a){var r=a("3508"),n=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},a025:function(e,t,a){var r=a("9de2"),n=a("5c13"),o=a("baa9"),i=a("743a");e.exports=function(e,t,a,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(a)&&o(a,c,s),s.global)l?e[t]=a:i(t,a);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=a:n.f(e,t,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},a2e2:function(e,t,a){var r,n,o,i=a("2deb"),s=a("7d3c"),l=a("f6ba"),c=a("8098"),u=a("9dce"),f=a("0fe5"),d=a("d9ad"),p=a("0572"),v="Object already initialized",b=s.TypeError,m=s.WeakMap,g=function(e){return o(e)?n(e):r(e,{})},x=function(e){return function(t){var a;if(!l(t)||(a=n(t)).type!==e)throw b("Incompatible receiver, "+e+" required");return a}};if(i||f.state){var y=f.state||(f.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw b(v);return t.facade=e,y.set(e,t),t},n=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var h=d("state");p[h]=!0,r=function(e,t){if(u(e,h))throw b(v);return t.facade=e,c(e,h,t),t},n=function(e){return u(e,h)?e[h]:{}},o=function(e){return u(e,h)}}e.exports={set:r,get:n,has:o,enforce:g,getterFor:x}},a64a:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},ab90:function(e,t,a){var r=a("fd6a"),n=Object;e.exports=function(e){return n(r(e))}},adb9:function(e,t,a){"use strict";a("bb77")},b1ab:function(e,t,a){var r=a("c43a"),n=Function.prototype,o=n.call,i=r&&n.bind.bind(o,o);e.exports=r?i:function(e){return function(){return o.apply(e,arguments)}}},baa9:function(e,t,a){var r=a("b1ab"),n=a("073d"),o=a("9de2"),i=a("9dce"),s=a("caa9"),l=a("6cc5").CONFIGURABLE,c=a("32b4"),u=a("a2e2"),f=u.enforce,d=u.get,p=String,v=Object.defineProperty,b=r("".slice),m=r("".replace),g=r([].join),x=s&&!n((function(){return 8!==v((function(){}),"length",{value:8}).length})),y=String(String).split("String"),h=e.exports=function(e,t,a){"Symbol("===b(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(t="get "+t),a&&a.setter&&(t="set "+t),(!i(e,"name")||l&&e.name!==t)&&(s?v(e,"name",{value:t,configurable:!0}):e.name=t),x&&a&&i(a,"arity")&&e.length!==a.arity&&v(e,"length",{value:a.arity});try{a&&i(a,"constructor")&&a.constructor?s&&v(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(n){}var r=f(e);return i(r,"source")||(r.source=g(y,"string"==typeof t?t:"")),e};Function.prototype.toString=h((function(){return o(this)&&d(this).source||c(this)}),"toString")},bb77:function(e,t,a){var r=a("424a");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=a("c69b").default;n("92f5202e",r,!0,{sourceMap:!1,shadowMode:!1})},c43a:function(e,t,a){var r=a("073d");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},c683:function(e,t,a){var r=a("c43a"),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},c7de:function(e,t){var a=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw a("Maximum allowed index exceeded");return e}},caa9:function(e,t,a){var r=a("073d");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},cae3:function(e,t,a){var r=a("7d3c"),n=a("9de2"),o=function(e){return n(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},cf4a:function(e,t,a){var r=a("a8d8");t=r(!1),t.push([e.i,'.ul-nav ul[data-v-188276e1]{display:flex;width:100%}.ul-nav ul li.active[data-v-188276e1]{background:#00adcf!important;color:#fff!important}.ul-nav ul li[data-v-188276e1]:before{content:"";background:#fff;width:31px;height:32px;position:absolute;z-index:0;left:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-188276e1]{color:#707070!important;margin-right:2px!important;list-style:none;flex:1;padding:10px;text-align:center;position:relative;border-width:1px 0 1px 1px;border-style:solid;border-color:#d9d9d9;background-color:#eee;color:#979797;font-size:16px;min-width:175px;margin:8px 10px}.ul-nav ul li[data-v-188276e1]:after{content:"";background:inherit;width:31px;height:32px;position:absolute;z-index:1;right:-16px;top:5px;transform:rotate(45deg);border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9}.ul-nav ul li[data-v-188276e1]{padding-left:20px!important}.box-overflow1[data-v-188276e1]{max-height:68vh;overflow-y:auto}@media screen and (max-width:768px){.ul-nav[data-v-188276e1]{overflow-x:scroll}.box-overflow1[data-v-188276e1]{max-height:none;overflow-y:auto}.ul-nav li[data-v-188276e1]:first-child,.ul-nav li[data-v-188276e1]:nth-child(2){display:none}}',""]),e.exports=t},d0e9:function(e,t,a){var r,n,o=a("7d3c"),i=a("1000"),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=u.split("."),n=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(n=+r[1]))),e.exports=n},d9ad:function(e,t,a){var r=a("2c81"),n=a("89e7"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=n(e))}},dba4:function(e,t,a){var r=a("caa9"),n=a("073d");e.exports=r&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},dd05:function(e,t,a){var r=a("7b20"),n=a("5f66");e.exports=function(e,t){var a=e[t];return n(a)?void 0:r(a)}},e285:function(e,t,a){var r=a("7d3c"),n=a("2c81"),o=a("9dce"),i=a("89e7"),s=a("42c1"),l=a("4160"),c=r.Symbol,u=n("wks"),f=l?c["for"]||c:c&&c.withoutSetter||i;e.exports=function(e){return o(u,e)||(u[e]=s&&o(c,e)?c[e]:f("Symbol."+e)),u[e]}},edfa:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},["Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{attrs:{type:"file"},on:{change:e.selectedFile}})])]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[t("div",{staticClass:"pt-4"}),t("div",{staticClass:"mb-4 text-center"},[t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationOffCycleDetails",query:{learner_task_id:e.learnerTaskId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v(" Update Submission ")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},n=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Update Learner Submission")])])}],o=a("6bcf"),i=a("1dba"),s=a.n(i),l=a("4945"),c=a("675e"),u=a("2390"),f=Object(o["b"])({name:"UpdateSubmission",components:{ErrorMessage:u["a"]},props:{query:{type:Object,default:()=>({})}},setup(e){const t=Object(o["f"])(e.query.linked_task_id);console.log("Task ID",t.value);const a=Object(o["f"])(e.query.learner_task_id),r=Object(o["f"])(),n=Object(o["f"])(),i=Object(o["f"])(),u=Object(o["f"])(null),f=Object(o["f"])(),d=Object(o["f"])(!0),p=Object(o["f"])(),v=Object(o["f"])(0),b=Object(o["f"])(!1),m=Object(o["f"])(),g=Object(o["f"])(!1),x=Object(o["f"])(),y=Object(o["f"])(!1),h=async e=>{try{u.value=e.target.files[0],i.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(n.value="fileSize greater than 200 MB")}catch(a){if(console.log(a),b.value=!0,s.a.isAxiosError(a)){var t;const e=a;m.value=null===(t=e.response)||void 0===t?void 0:t.data.message}else m.value="Something went wrong, please contact helpmate.";y.value=!0}},w=async()=>{try{if(b.value=!1,i.value){let e;const t={learner_task_id:a.value,learner_submission:i.value,taskType:r.value};if("Desktop"===r.value){const r=await Object(c["a"])("/v1/pretAuthUrlForUploadLearner",{file_name:i.value,learner_task_id:a.value}),n=r.data;f.value=n.preSignedUrl;const o=await Object(c["e"])(f.value,u.value);200===o.status?e=await Object(l["e"])("/uploadLearnerSubmissionFromAdmin",t):(b.value=!0,m.value="There is issue in the file upload, please contact with helpmate.",y.value=!0)}else e=await Object(l["e"])("/uploadLearnerSubmissionFromAdmin",t);200===e.status?(b.value=!0,x.value=e.data.message,g.value=!0,setTimeout(()=>{x.value=null,g.value=!1},6e3)):(b.value=!0,m.value="There is some issue while submitting learner submission, please contact with helpmate.",y.value=!0,setTimeout(()=>{x.value=null,g.value=!1},6e3))}else"Mobile"===r.value?(b.value=!0,i.value||(n.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout(()=>{n.value=null},6e3))):"Desktop"===r.value&&(b.value=!0,console.log("learnerSubmission.value "+i.value),i.value||(n.value="please select File",setTimeout(()=>{n.value=null},6e3)))}catch(t){if(b.value=!0,console.log("error "+t),s.a.isAxiosError(t)){var e;const a=t;m.value=null===(e=a.response)||void 0===e?void 0:e.data.message}else m.value="There is some issue while submitting learner submission, please contact with helpmate.";y.value=!0}},_=async()=>{b.value=!1;const e=await Object(c["b"])(t.value);console.log("task data "+JSON.stringify(e));const a=e.data.data;a?r.value=a.task_type:(m.value="There is an issue to fetch task, please contact helpmate.",y.value=!0),b.value=!0};return Object(o["c"])(async()=>{await _()}),{taskType:r,learnerTaskId:a,renderReady:b,errorResponse:m,showErrorMessage:y,showSuccessMessage:g,resMessage:x,fileValidationMsg:n,submitSubmiision:w,learnerSubmission:i,selectedFile:h,preSignedUrl:f,buttonDisable:d,validationError:p,fileInputKey:v}}}),d=f,p=(a("7430"),a("8619")),v=Object(p["a"])(d,r,n,!1,null,"188276e1",null);t["default"]=v.exports},f02e:function(e,t,a){var r=a("b1ab"),n=a("073d"),o=a("815e"),i=Object,s=r("".split);e.exports=n((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):i(e)}:i},f568:function(e,t,a){"use strict";a.r(t);var r,n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"admin"},[t("div",{staticClass:"containers mx-auto allBoxImg mt-10"},[e.renderReady?[e.showErrorMessage?e._e():[t("div",{staticClass:"flex"},[t("div",{staticClass:"w-full pt-12"},[e.showSuccessMessage?t("div",{staticClass:"w-full px-3 text-center mt-4 bg-green-600 py-2 text-white"},[e._v(" "+e._s(e.resMessage)+" ")]):e._e(),e._m(0),t("div",{staticClass:"box-overflow1 mx-4 lg:mx-24 md:mx-24 lg:mt-6 md:mt-6 mt-3 text-sm"},[t("div",{staticClass:"block mt-4"},[t("div",{staticClass:"text-gray-600"},[t("div",["infinity"===e.programId?t("p",[e._v(" Proficiency: "),t("strong",[e._v(e._s(e.profName))])]):e._e(),"infinity"===e.programId?t("p",{staticClass:"pt-2"},[e._v(" Skill: "),t("strong",[e._v(e._s(e.skill))])]):e._e(),"infinity"!==e.programId?t("p",{staticClass:"pt-2"},[e._v(" Program: "),t("strong",[e._v(e._s(e.programName))])]):e._e(),t("p",{staticClass:"pt-2"},[t("strong",[e._v("Task Name: ")]),e._v(e._s(e.taskName))])]),"Desktop"===e.taskType?t("div",{staticClass:"mt-4"},[e._m(1),t("p",{staticClass:"pt-1"},[e._v("Maximum file size: 200 MB")]),t("div",{staticClass:"flex"},[t("input",{key:e.fileInputKey,attrs:{type:"file"},on:{change:e.selectedFile}}),e._v(" "),e.learnerSubmission?t("x-icon",{attrs:{size:"1.5x"},on:{click:function(t){return e.clearFile()}}}):e._e()],1)]):e._e(),"Mobile"===e.taskType?t("div",{staticClass:"pt-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.learnerSubmission,expression:"learnerSubmission"}],staticClass:"w-full px-3 py-1.5 text-base font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-gray-300 ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",attrs:{id:"exampleFormControlTextarea1",rows:"3",placeholder:"Your message"},domProps:{value:e.learnerSubmission},on:{input:function(t){t.target.composing||(e.learnerSubmission=t.target.value)}}})]):e._e(),e.fileValidationMsg?t("span",{staticClass:"text-red-700"},[e._v(e._s(e.fileValidationMsg))]):e._e()])]),t("div",{staticClass:"block text-center pt-12"},[e._m(2),t("div",{staticClass:"mb-4 text-center"},[null!==e.skillId&&null!==e.proficiencyId?t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId,skill_id:e.skillId,proficiency_id:e.proficiencyId}}}},[e._v("Back")]):t("router-link",{staticClass:"inline-block mt-2 py-2 px-4 border border-blue-900 bg-white-500 text-gray-500 shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",attrs:{to:{name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:e.programId}}}},[e._v("Back")]),t("button",{staticClass:"bg-background-secondary ml-2 mr-2 inline-block mt-2 py-2 px-4 text-white shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75",on:{click:e.submitSubmiision}},[e._v("Submit Task")])],1)])])])])],e.showErrorMessage?t("ErrorMessage",{attrs:{"error-message":e.errorResponse}}):e._e()]:e._e(),e.renderReady?e._e():t("div",{staticClass:"flex flex-col h-min-screen justify-center text-center"},[t("img",{staticClass:"mb-8 block mx-auto loadercss mt-3%",attrs:{src:a("9d04"),alt:"Loader Gif"}}),t("p",{staticClass:"mx-auto mb-10 leading-normal px-4 loadertextcss ext-genpact-darkest-blue"},[e._v("Loading...")])])],2)])},o=[function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"lg:px-24 md:px-24 px-4 flex justify-between"},[t("div",{staticClass:"text-blue-900 lg:text-3xl md:text-3xl text-xl my-2"},[e._v("Create Off-Cycle Task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("p",{staticClass:"pt-2"},[t("strong",[e._v("Upload the file to create off-cycle task")])])},function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pt-4"},[t("p",{staticClass:"text-xl"},[t("em",[e._v("Please don't click the browser back button")])])])}],i=(a("f9f6"),a("6bcf")),s=a("949b"),l=a("1dba"),c=a.n(l),u=new Uint8Array(16);function f(){if(!r&&(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(u)}var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function p(e){return"string"===typeof e&&d.test(e)}for(var v=p,b=[],m=0;m<256;++m)b.push((m+256).toString(16).substr(1));function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(b[e[t+0]]+b[e[t+1]]+b[e[t+2]]+b[e[t+3]]+"-"+b[e[t+4]]+b[e[t+5]]+"-"+b[e[t+6]]+b[e[t+7]]+"-"+b[e[t+8]]+b[e[t+9]]+"-"+b[e[t+10]]+b[e[t+11]]+b[e[t+12]]+b[e[t+13]]+b[e[t+14]]+b[e[t+15]]).toLowerCase();if(!v(a))throw TypeError("Stringified UUID is invalid");return a}var x,y,h=g,w=0,_=0;function k(e,t,a){var r=t&&a||0,n=t||new Array(16);e=e||{};var o=e.node||x,i=void 0!==e.clockseq?e.clockseq:y;if(null==o||null==i){var s=e.random||(e.rng||f)();null==o&&(o=x=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==i&&(i=y=16383&(s[6]<<8|s[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:_+1,u=l-w+(c-_)/1e4;if(u<0&&void 0===e.clockseq&&(i=i+1&16383),(u<0||l>w)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");w=l,_=c,y=i,l+=122192928e5;var d=(1e4*(268435455&l)+c)%4294967296;n[r++]=d>>>24&255,n[r++]=d>>>16&255,n[r++]=d>>>8&255,n[r++]=255&d;var p=l/4294967296*1e4&268435455;n[r++]=p>>>8&255,n[r++]=255&p,n[r++]=p>>>24&15|16,n[r++]=p>>>16&255,n[r++]=i>>>8|128,n[r++]=255&i;for(var v=0;v<6;++v)n[r+v]=o[v];return t||h(n)}var S=k;function O(e){if(!v(e))throw TypeError("Invalid UUID");var t,a=new Uint8Array(16);return a[0]=(t=parseInt(e.slice(0,8),16))>>>24,a[1]=t>>>16&255,a[2]=t>>>8&255,a[3]=255&t,a[4]=(t=parseInt(e.slice(9,13),16))>>>8,a[5]=255&t,a[6]=(t=parseInt(e.slice(14,18),16))>>>8,a[7]=255&t,a[8]=(t=parseInt(e.slice(19,23),16))>>>8,a[9]=255&t,a[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=t/4294967296&255,a[12]=t>>>24&255,a[13]=t>>>16&255,a[14]=t>>>8&255,a[15]=255&t,a}var j=O;function C(e){e=unescape(encodeURIComponent(e));for(var t=[],a=0;a<e.length;++a)t.push(e.charCodeAt(a));return t}var M="6ba7b810-9dad-11d1-80b4-00c04fd430c8",I="6ba7b811-9dad-11d1-80b4-00c04fd430c8",T=function(e,t,a){function r(e,r,n,o){if("string"===typeof e&&(e=C(e)),"string"===typeof r&&(r=j(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(r),i.set(e,r.length),i=a(i),i[6]=15&i[6]|t,i[8]=63&i[8]|128,n){o=o||0;for(var s=0;s<16;++s)n[o+s]=i[s];return n}return h(i)}try{r.name=e}catch(n){}return r.DNS=M,r.URL=I,r};function E(e){if("string"===typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var a=0;a<t.length;++a)e[a]=t.charCodeAt(a)}return A(U(D(e),8*e.length))}function A(e){for(var t=[],a=32*e.length,r="0123456789abcdef",n=0;n<a;n+=8){var o=e[n>>5]>>>n%32&255,i=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(i)}return t}function P(e){return 14+(e+64>>>9<<4)+1}function U(e,t){e[t>>5]|=128<<t%32,e[P(t)-1]=t;for(var a=1732584193,r=-271733879,n=-1732584194,o=271733878,i=0;i<e.length;i+=16){var s=a,l=r,c=n,u=o;a=N(a,r,n,o,e[i],7,-680876936),o=N(o,a,r,n,e[i+1],12,-389564586),n=N(n,o,a,r,e[i+2],17,606105819),r=N(r,n,o,a,e[i+3],22,-1044525330),a=N(a,r,n,o,e[i+4],7,-176418897),o=N(o,a,r,n,e[i+5],12,1200080426),n=N(n,o,a,r,e[i+6],17,-1473231341),r=N(r,n,o,a,e[i+7],22,-45705983),a=N(a,r,n,o,e[i+8],7,1770035416),o=N(o,a,r,n,e[i+9],12,-1958414417),n=N(n,o,a,r,e[i+10],17,-42063),r=N(r,n,o,a,e[i+11],22,-1990404162),a=N(a,r,n,o,e[i+12],7,1804603682),o=N(o,a,r,n,e[i+13],12,-40341101),n=N(n,o,a,r,e[i+14],17,-1502002290),r=N(r,n,o,a,e[i+15],22,1236535329),a=z(a,r,n,o,e[i+1],5,-165796510),o=z(o,a,r,n,e[i+6],9,-1069501632),n=z(n,o,a,r,e[i+11],14,643717713),r=z(r,n,o,a,e[i],20,-373897302),a=z(a,r,n,o,e[i+5],5,-701558691),o=z(o,a,r,n,e[i+10],9,38016083),n=z(n,o,a,r,e[i+15],14,-660478335),r=z(r,n,o,a,e[i+4],20,-405537848),a=z(a,r,n,o,e[i+9],5,568446438),o=z(o,a,r,n,e[i+14],9,-1019803690),n=z(n,o,a,r,e[i+3],14,-187363961),r=z(r,n,o,a,e[i+8],20,1163531501),a=z(a,r,n,o,e[i+13],5,-1444681467),o=z(o,a,r,n,e[i+2],9,-51403784),n=z(n,o,a,r,e[i+7],14,1735328473),r=z(r,n,o,a,e[i+12],20,-1926607734),a=B(a,r,n,o,e[i+5],4,-378558),o=B(o,a,r,n,e[i+8],11,-2022574463),n=B(n,o,a,r,e[i+11],16,1839030562),r=B(r,n,o,a,e[i+14],23,-35309556),a=B(a,r,n,o,e[i+1],4,-1530992060),o=B(o,a,r,n,e[i+4],11,1272893353),n=B(n,o,a,r,e[i+7],16,-155497632),r=B(r,n,o,a,e[i+10],23,-1094730640),a=B(a,r,n,o,e[i+13],4,681279174),o=B(o,a,r,n,e[i],11,-358537222),n=B(n,o,a,r,e[i+3],16,-722521979),r=B(r,n,o,a,e[i+6],23,76029189),a=B(a,r,n,o,e[i+9],4,-640364487),o=B(o,a,r,n,e[i+12],11,-421815835),n=B(n,o,a,r,e[i+15],16,530742520),r=B(r,n,o,a,e[i+2],23,-995338651),a=q(a,r,n,o,e[i],6,-198630844),o=q(o,a,r,n,e[i+7],10,1126891415),n=q(n,o,a,r,e[i+14],15,-1416354905),r=q(r,n,o,a,e[i+5],21,-57434055),a=q(a,r,n,o,e[i+12],6,1700485571),o=q(o,a,r,n,e[i+3],10,-1894986606),n=q(n,o,a,r,e[i+10],15,-1051523),r=q(r,n,o,a,e[i+1],21,-2054922799),a=q(a,r,n,o,e[i+8],6,1873313359),o=q(o,a,r,n,e[i+15],10,-30611744),n=q(n,o,a,r,e[i+6],15,-1560198380),r=q(r,n,o,a,e[i+13],21,1309151649),a=q(a,r,n,o,e[i+4],6,-145523070),o=q(o,a,r,n,e[i+11],10,-1120210379),n=q(n,o,a,r,e[i+2],15,718787259),r=q(r,n,o,a,e[i+9],21,-343485551),a=F(a,s),r=F(r,l),n=F(n,c),o=F(o,u)}return[a,r,n,o]}function D(e){if(0===e.length)return[];for(var t=8*e.length,a=new Uint32Array(P(t)),r=0;r<t;r+=8)a[r>>5]|=(255&e[r/8])<<r%32;return a}function F(e,t){var a=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(a>>16);return r<<16|65535&a}function L(e,t){return e<<t|e>>>32-t}function R(e,t,a,r,n,o){return F(L(F(F(t,e),F(r,o)),n),a)}function N(e,t,a,r,n,o,i){return R(t&a|~t&r,e,t,n,o,i)}function z(e,t,a,r,n,o,i){return R(t&r|a&~r,e,t,n,o,i)}function B(e,t,a,r,n,o,i){return R(t^a^r,e,t,n,o,i)}function q(e,t,a,r,n,o,i){return R(a^(t|~r),e,t,n,o,i)}var V=E,G=T("v3",48,V),K=G;function J(e,t,a){e=e||{};var r=e.random||(e.rng||f)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){a=a||0;for(var n=0;n<16;++n)t[a+n]=r[n];return t}return h(r)}var Y=J;function H(e,t,a,r){switch(e){case 0:return t&a^~t&r;case 1:return t^a^r;case 2:return t&a^t&r^a&r;case 3:return t^a^r}}function W(e,t){return e<<t|e>>>32-t}function X(e){var t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var n=0;n<r.length;++n)e.push(r.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,i=Math.ceil(o/16),s=new Array(i),l=0;l<i;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*l+4*u]<<24|e[64*l+4*u+1]<<16|e[64*l+4*u+2]<<8|e[64*l+4*u+3];s[l]=c}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<i;++f){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=s[f][p];for(var v=16;v<80;++v)d[v]=W(d[v-3]^d[v-8]^d[v-14]^d[v-16],1);for(var b=a[0],m=a[1],g=a[2],x=a[3],y=a[4],h=0;h<80;++h){var w=Math.floor(h/20),_=W(b,5)+H(w,m,g,x)+y+t[w]+d[h]>>>0;y=x,x=g,g=W(m,30)>>>0,m=b,b=_}a[0]=a[0]+b>>>0,a[1]=a[1]+m>>>0,a[2]=a[2]+g>>>0,a[3]=a[3]+x>>>0,a[4]=a[4]+y>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]}var $=X,Q=T("v5",80,$),Z=Q,ee={v1:S,v3:K,v4:Y,v5:Z};var te=a("afbc"),ae=a("675e"),re=a("7f15"),ne=a("2390"),oe=Object(i["b"])({name:"LearnerSubmitTask",components:{XIcon:s["g"],ErrorMessage:ne["a"]},setup(){const e=Object(i["f"])(localStorage.getItem("linkedTaskId")),t=Object(i["f"])(ee.v1()),a=Object(i["f"])(localStorage.getItem("programId")),r=Object(i["f"])(localStorage.getItem("programName")),n=Object(i["f"])(localStorage.getItem("skillId"));console.log("skill Id in createoffcyclle",n);const o=Object(i["f"])(localStorage.getItem("proficiencyId")),s=Object(i["f"])(localStorage.getItem("skillName")),l=Object(i["f"])(localStorage.getItem("proficiencyName")),u=Object(i["f"])(localStorage.getItem("taskName")),f=Object(i["f"])(localStorage.getItem("taskType")),d=Object(i["f"])(null),p=Object(i["f"])(),v=Object(i["f"])(),b=Object(i["f"])(),m=Object(i["f"])(!0),g=Object(i["f"])(),x=Object(i["f"])(0),y=Object(i["f"])(!1),h=Object(i["f"])(),w=Object(i["f"])(!1),_=Object(i["f"])(),k=Object(i["f"])(!1),S=async()=>{x.value+=1,console.log("before "+v.value),v.value=null,console.log("after "+v.value)},O=e=>{const t=e.target.checked;!0===t?(m.value=!1,console.log(m.value)):(m.value=!0,console.log(m.value))},j=async e=>{try{d.value=e.target.files[0],v.value=e.target.files[0].name;const t=e.target.files[0].size/1024/1024;t>200&&(p.value="fileSize greater than 200 MB")}catch(a){if(console.log(a),y.value=!0,c.a.isAxiosError(a)){var t;const e=a;h.value=null===(t=e.response)||void 0===t?void 0:t.data.message}else h.value="Something went wrong, please contact helpmate.";k.value=!0}},C=async()=>{try{if(y.value=!1,v.value){let r;if("Desktop"===f.value){const i={linked_program_name:a.value,learner_task_id:t.value,skill:n.value,proficiency:o.value,linked_task_id:e.value,learner_submission:v.value},s=await Object(ae["a"])("/v1/pretAuthUrlForUploadLearner",{file_name:v.value,learner_task_id:t.value}),l=s.data;b.value=l.preSignedUrl;const c=await Object(ae["e"])(b.value,d.value);200===c.status?r=await Object(re["a"])("/offcycle/create",i):(y.value=!0,h.value="There is issue in the file upload, please contact with helpmate.",k.value=!0)}else{const i={linked_program_name:a.value,learner_task_id:t.value,skill:n.value,proficiency:o.value,linked_task_id:e.value,learner_submission_text:v.value};r=await Object(re["a"])("/offcycle/create",i)}200===r.status?(y.value=!0,_.value=r.data.message,w.value=!0,localStorage.removeItem("programId"),localStorage.removeItem("programName"),localStorage.removeItem("linkedTaskId"),localStorage.removeItem("skillId"),localStorage.removeItem("skillName"),localStorage.removeItem("proficiencyId"),localStorage.removeItem("proficiencyName"),localStorage.removeItem("taskName"),localStorage.removeItem("taskType"),null!==n.value&&null!==o.value?te["a"].push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value,skill_id:n.value,proficiency_id:o.value}}):te["a"].push({name:"SolidifyAdministrationCreateOffCycles",query:{Program_id:a.value}})):(y.value=!0,h.value="There is some issue while submitting learner submission, please contact with helpmate.",k.value=!0)}else"Mobile"===f.value?(y.value=!0,v.value||(p.value="please Enter Submission",console.log("inside Mobile Type"),setTimeout(()=>{p.value=null},6e3))):"Desktop"===f.value&&(y.value=!0,console.log("learnerSubmission.value "+v.value),v.value||(p.value="please select File",setTimeout(()=>{p.value=null},6e3)))}catch(i){if(y.value=!0,console.log("error "+i),c.a.isAxiosError(i)){var r;const e=i;h.value=null===(r=e.response)||void 0===r?void 0:r.data.message}else h.value="There is some issue while submitting learner submission, please contact with helpmate.";k.value=!0}};return Object(i["c"])(async()=>{y.value=!0}),{learnerSubmissionFile:d,skillId:n,proficiencyId:o,programId:a,taskType:f,taskName:u,submitSubmiision:C,learnerSubmission:v,selectedFile:j,fileValidationMsg:p,learnerTaskId:t,preSignedUrl:b,buttonDisable:m,setButtonEnable:O,validationError:g,clearFile:S,fileInputKey:x,renderReady:y,errorResponse:h,showErrorMessage:k,programName:r,skill:s,profName:l,showSuccessMessage:w,resMessage:_}}}),ie=oe,se=(a("adb9"),a("8619")),le=Object(se["a"])(ie,n,o,!1,null,"d79b6af4",null);t["default"]=le.exports},f6ba:function(e,t,a){var r=a("9de2"),n=a("3508"),o=n.all;e.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},f9f6:function(e,t,a){"use strict";var r=a("89c6"),n=a("ab90"),o=a("7f94"),i=a("3470"),s=a("c7de"),l=a("073d"),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},f=c||!u();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(e){var t=n(this),a=o(t),r=arguments.length;s(a+r);for(var l=0;l<r;l++)t[a]=arguments[l],a++;return i(t,a),a}})},fd6a:function(e,t,a){var r=a("5f66"),n=TypeError;e.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}}}]);
2
2
  //# sourceMappingURL=SolidifyAdministrationCreateOffCyele.js.map